@ckeditor/ckeditor5-track-changes 47.2.0-alpha.4 → 47.2.0-alpha.5

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,7 +20,7 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x189985,Plugin as _0x4942e1,PendingActions as _0x404716}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x16ebc5,ObservableMixin as _0x56428c,uid as _0x512e19,priorities as _0x2f03ee,insertToPriorityArray as _0x16e1e3,logWarning as _0x6e283a,getEnvKeystrokeText as _0x1f6e36,FocusTracker as _0x55f986,KeystrokeHandler as _0x452982,Collection as _0x2455fd}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x8a9674,IconCancel as _0x5289ec,IconTrackChanges as _0x1fde3f}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x45a464,View as _0x48f0dd,ViewCollection as _0x946761,FocusCycler as _0x38cca0,UIModel as _0x746fc5,createDropdown as _0x46abfb,SplitButtonView as _0x1341a2,addListToDropdown as _0x4e853f,MenuBarMenuView as _0x9a08bc,MenuBarMenuListView as _0x26bc00,ListSeparatorView as _0x4c5d96,MenuBarMenuListItemView as _0x33a1b1,MenuBarMenuListItemButtonView as _0x341474,BodyCollection as _0x44c0a0,Dialog as _0x2e2e8e}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x91df2d,DocumentCompare as _0x3d631f,hashObject as _0x50d2ee,surroundingMarkersDetector as _0xf9c874,FOCUS_ANNOTATION_KEYSTROKE as _0x441f38,AriaDescriptionView as _0x33e922,setupThreadKeyboardNavigation as _0x3989fc,trimHtml as _0x46f0ef,UserView as _0x5a8190,LateFocusButtonView as _0x3311b2,getDateTimeFormatter as _0x425671,getAllMarkersDomElementsSorted as _0x5234aa,sanitizeEditorConfig as _0x276efb}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x39e7b6,ModelLiveRange as _0x5bf397,ModelLivePosition as _0x193721,ViewDowncastWriter as _0x4fc21c}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as _0x1b6cff,set as _0x49c1bc,isEqual as _0x5cdaa6,unset as _0x5b597e,omit as Pt}from'es-toolkit/compat';import{Delete as _0x5cc173,Input as _0x51147b}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x35d2b7}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x31755d}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{SuggestionsConversion as Jt,fixElementSuggestionRange as Lt,splitSuggestionMarkerName as Gt}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';class $ extends _0x189985{['_enabledCommands'];constructor(_0x4608cb,_0x4d63a9){super(_0x4608cb),this['_enabledCommands']=_0x4d63a9,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 _0x34c611 of this['editor']['commands']['commands']())_0x34c611['affectsData']&&!this['_enabledCommands']['has'](_0x34c611)&&_0x34c611['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x5c9ac2 of this['editor']['commands']['commands']())_0x5c9ac2['affectsData']&&!this['_enabledCommands']['has'](_0x5c9ac2)&&_0x5c9ac2['clearForceDisabled']('TrackChangesCommand');}}class v extends _0x189985{['_suggestions'];constructor(_0x177e37,_0x17129d){super(_0x177e37),this['_suggestions']=_0x17129d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x21fbce){const _0x45b175=this['_suggestions']['get'](_0x21fbce);if(!_0x45b175)throw new _0x16ebc5('track-changes-accept-suggestion-not-found',this);const _0x5eee40=_0x45b175['getRanges']();this['editor']['model']['canEditAt'](_0x5eee40)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x45b175);}}class D extends _0x189985{['_suggestions'];constructor(_0x1d6ce1,_0x1c71d4){super(_0x1d6ce1),this['_suggestions']=_0x1c71d4,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xd4dbbc){const _0x66f94c=this['_suggestions']['get'](_0xd4dbbc);if(!_0x66f94c)throw new _0x16ebc5('track-changes-discard-suggestion-not-found',this);const _0x4a6334=_0x66f94c['getRanges']();this['editor']['model']['canEditAt'](_0x4a6334)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x66f94c);}}function ls(_0x467b05,_0x10ebbf){let _0x1b4ac5='';return _0x1b4ac5+=_0x467b05['split']('*')['map']((_0x2d6012,_0x1bd7ed)=>_0x1bd7ed%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+rn(_0x2d6012)+'</span>':rn(_0x2d6012))['join'](''),_0x10ebbf&&(_0x1b4ac5+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x10ebbf['value']+'\x22\x20title=\x22'+_0x10ebbf['title']+'\x22></span>'),_0x1b4ac5;}function rn(_0x4b4a77){const _0x95ab90=document['createElement']('span');return _0x95ab90['innerText']=_0x4b4a77,_0x95ab90['innerHTML'];}function ts(_0x3ff2c5){return _0x3ff2c5['sort']((_0x5a892b,_0x12cfa6)=>'attribute'===_0x5a892b['type']&&'attribute'!==_0x12cfa6['type']?-0x1:'attribute'!==_0x5a892b['type']&&'attribute'===_0x12cfa6['type']?0x1:'deletion'==_0x5a892b['type']&&'deletion'!=_0x12cfa6['type']?-0x1:'deletion'!=_0x5a892b['type']&&'deletion'==_0x12cfa6['type']?0x1:0x0);}function to(_0x4c437c,_0x5be456){let _0x256155,_0x54c977=0x0;const _0x20f8c6=[],_0x2bef51=_0x5be456['schema'];for(;_0x54c977<_0x4c437c['length'];){const _0x20cdb5=_0x4c437c[_0x54c977],_0x2ea872=_0x4c437c[_0x54c977+0x1];_0x256155||(_0x256155=_0x5be456['createPositionBefore'](_0x20cdb5)),cn(_0x5be456,_0x20cdb5,_0x2ea872)||(_0x20f8c6['push'](_0x5be456['createRange'](_0x256155,_0x2bef51['isObject'](_0x20cdb5)?_0x5be456['createPositionAfter'](_0x20cdb5):_0x5be456['createPositionAt'](_0x20cdb5,'end'))),_0x256155=null),_0x54c977++;}return _0x20f8c6;}function cn(_0x1674f0,_0x316baa,_0x4ca8d8){if(!_0x4ca8d8)return!0x1;const _0x5e61c7=_0x1674f0['createPositionAfter'](_0x316baa),_0x533b86=_0x1674f0['createPositionBefore'](_0x4ca8d8);return _0x5e61c7['isTouching'](_0x533b86);}function rs(_0x21653d,_0x38bcb1,_0x2a9a6e){for(;_0x2a9a6e['length'];){const _0x3f332f=_0x2a9a6e['splice'](0x0,0x64);_0x21653d['change'](()=>{for(const _0xb5d62e of _0x3f332f)_0xb5d62e['isInContent']&&_0x38bcb1['execute'](_0xb5d62e['id']);});}}class B extends _0x189985{['_command'];['_suggestions'];constructor(_0x54afed,_0x271c72,_0x4d07a6){super(_0x54afed),this['_command']=_0x271c72,this['_suggestions']=_0x4d07a6,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x24afb2=Array['from'](this['_suggestions']['values']())['some'](_0x51903b=>_0x51903b['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x24afb2;}['execute'](){const _0x30c00a=ts(Array['from'](this['_suggestions']['values']()));for(const _0x36b346 of _0x30c00a){const _0x2513e9=_0x36b346['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2513e9))return;}rs(this['editor']['model'],this['_command'],_0x30c00a);}}class O extends _0x189985{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x5ddc64,_0x2a98dc,_0x428792){super(_0x5ddc64),this['_command']=_0x2a98dc,this['_suggestions']=_0x428792,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x71bd25=this['editor']['model']['document']['selection'],_0x193565=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x31507b,_0x4b3f21){const _0x3abdaa=Array['from'](_0x31507b['getRanges']()),_0x17df94=new Set();for(const _0x3b541d of _0x4b3f21)if(_0x3b541d['isInContent']){for(const _0x1220c2 of _0x3abdaa)for(const _0x430982 of _0x3b541d['getRanges']())(_0x1220c2['isIntersecting'](_0x430982)||_0x31507b['isCollapsed']&&!_0x3b541d['isMultiRange']&&_0x3b541d['next']&&_0x430982['end']['isTouching'](_0x1220c2['start']))&&_0x17df94['add'](_0x3b541d);}return _0x17df94;}(_0x71bd25,_0x193565),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x179d5c=ts(Array['from'](this['_selectedSuggestions']));for(const _0x25fda5 of _0x179d5c){const _0x3f92f0=_0x25fda5['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3f92f0))return;}rs(this['editor']['model'],this['_command'],_0x179d5c);}}class x extends/* #__PURE__ -- @preserve */
24
- _0x56428c(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4535dc,_0x5c9659){super(),this['id']=_0x5c9659['id'],this['type']=_0x5c9659['type'],this['subType']=_0x5c9659['subType']||null,this['author']=_0x5c9659['author'],this['creator']=_0x5c9659['creator']||_0x5c9659['author'],this['isExternal']=Boolean(_0x5c9659['attributes']&&_0x5c9659['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x5c9659['originalSuggestionId']||null,this['_model']=_0x4535dc,this['_onAccept']=_0x5c9659['onAccept'],this['_onDiscard']=_0x5c9659['onDiscard'],this['_onAttributesChange']=_0x5c9659['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5c9659['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 _0x441591=this;for(;_0x441591['previous'];)_0x441591=_0x441591['previous'];return _0x441591;}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'](_0x311759){this['_markerNames']['add'](_0x311759);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x3f3891=>this['_model']['markers']['get'](_0x3f3891))['filter'](_0x1fa849=>_0x1fa849);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x35be2e=>{for(const _0x49bb75 of this['getMarkers']())_0x35be2e['removeMarker'](_0x49bb75);}),this['_markerNames']['clear']();}['removeMarker'](_0x49cece){this['_model']['change'](_0x19cd28=>{_0x19cd28['removeMarker'](_0x49cece);}),this['_markerNames']['delete'](_0x49cece);}['addRange'](_0x1c223c){const _0x37ab16='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+x['getMultiRangeId']();this['addMarkerName'](_0x37ab16),this['_model']['change'](_0x550b89=>{_0x550b89['addMarker'](_0x37ab16,{'range':_0x1c223c,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x154bf2){for(const _0x36bba9 of this['getRanges']())if(_0x36bba9['isIntersecting'](_0x154bf2))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x104d96=>_0x104d96['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x29483b,_0x33a2a0)=>[..._0x29483b,..._0x33a2a0['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x433f7b=this['getRanges']();if(0x1!=_0x433f7b['length'])return null;const _0xe666ed=_0x433f7b[0x0],_0x1d2e0a=_0xe666ed['start']['nodeAfter'],_0x4814fb=_0xe666ed['end']['nodeBefore'];return _0x1d2e0a instanceof _0x39e7b6?_0x1d2e0a!=_0x4814fb?null:_0x1d2e0a: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 _0x1cbc9b=[];let _0x376971=this['head'];for(;_0x376971;)_0x1cbc9b['push'](_0x376971),_0x376971=_0x376971['next'];return _0x1cbc9b;}['setAttribute'](_0x450353,_0x2a58f2){const _0x385fde=_0x1b6cff(this['attributes']);_0x49c1bc(_0x385fde,_0x450353,_0x2a58f2),_0x5cdaa6(_0x385fde,this['attributes'])||(this['attributes']=_0x385fde,this['_onAttributesChange'](_0x385fde));}['removeAttribute'](_0xcdf0e1){const _0x3b1438=_0x1b6cff(this['attributes']);_0x5b597e(_0x3b1438,_0xcdf0e1),_0x5cdaa6(_0x3b1438,this['attributes'])||(this['attributes']=_0x3b1438,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 _0x512e19()['substr'](0x1,0x5);}}function o(_0x3ba5c3,_0x112050,_0x266aac){const _0x35e1eb=_0x3ba5c3['t'],t=_0x3ba5c3['t'];switch(_0x112050){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',_0x266aac);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x266aac);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x266aac);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x266aac);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x266aac);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',_0x266aac);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x266aac);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',_0x266aac);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x266aac);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x266aac);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x266aac);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x266aac);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x266aac);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x266aac);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x266aac);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x266aac);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x266aac);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x266aac);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x266aac);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x266aac);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x266aac);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x266aac);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x266aac);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x266aac);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x266aac);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'},_0x266aac);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x266aac);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x266aac);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x266aac);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x266aac);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x266aac);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x266aac);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x266aac);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'},_0x266aac);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x266aac);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x266aac);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x266aac);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x266aac);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'},_0x266aac);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x266aac);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'},_0x266aac);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'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});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'},_0x266aac);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x266aac);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'},_0x266aac);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x266aac);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'},_0x266aac);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x266aac);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x266aac);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x266aac);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x266aac);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x266aac);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'},_0x266aac);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x266aac);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 _0x35e1eb({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x266aac);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x35e1eb({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x266aac);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x266aac);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'},_0x266aac);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'},_0x266aac);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'},_0x266aac);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x112050;}}class M{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x69782f,_0x290c72){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x69782f,this['_locale']=_0x290c72;}['getDescriptions'](_0x24a20c){const _0x198b23=[],_0x196d96=new Set(),_0x18c8c5=new Set();for(let _0x1f3726=0x0;_0x1f3726<_0x24a20c['length'];_0x1f3726++){const _0x119a63=_0x24a20c[_0x1f3726];if(!_0x119a63['isInContent'])continue;const _0x3b70a9=this['_handleCustomCallbackDescription'](_0x119a63);if(_0x3b70a9){if(null!=_0x119a63['subType']){if(_0x196d96['has'](_0x119a63['subType']))continue;_0x196d96['add'](_0x119a63['subType']);}_0x198b23['push'](_0x3b70a9);}else{if('attribute'==_0x119a63['type']){const _0x127cc8=_0x119a63['data']['key'];if(_0x18c8c5['has'](_0x127cc8))continue;_0x18c8c5['add'](_0x119a63['data']['key']),_0x127cc8==m?this['_handleRenameSuggestionDescription'](_0x198b23,_0x119a63):this['_handleAttributeSuggestionDescription'](_0x198b23,_0x119a63);continue;}'insertion'!=_0x119a63['type']&&'deletion'!=_0x119a63['type']||this['_handleInsertRemoveSuggestionDescription'](_0x198b23,_0x119a63,_0x24a20c[_0x1f3726+0x1]);}}return this['_resolveDescriptionItems'](_0x198b23);}['registerDescriptionCallback'](_0x5a3de5){this['_customCallbacks']['push'](_0x5a3de5);}['registerElementLabel'](_0xb61006,_0x24712a,_0xf172b5=_0x2f03ee['normal']){'function'==typeof _0xb61006?_0x16e1e3(this['_itemLabelsCallbacks'],{'matchingCallback':_0xb61006,'label':_0x24712a,'priority':_0xf172b5}):this['_itemLabels']['set'](_0xb61006,_0x24712a);}['registerAttributeLabel'](_0x39caa7,_0x4d2844){this['_attributeLabels']['set'](_0x39caa7,_0x4d2844);}['getItemLabel'](_0x464109,_0x2c3d69=0x1){let _0x200566;for(const _0x1ff629 of this['_itemLabelsCallbacks'])if(_0x1ff629['matchingCallback'](_0x464109)){_0x200566=_0x1ff629['label'];break;}return _0x200566||(_0x200566=this['_itemLabels']['get'](_0x464109['name'])),_0x200566?_0x200566(_0x2c3d69):0x1!==_0x2c3d69?_0x2c3d69+'\x20'+_0x464109['name']+'s':''+_0x464109['name'];}['_addDescriptionItems'](_0x2e3b08,_0x37d892){const _0x50feb3=_0x37d892['getFirstRange']()['getWalker'](),_0x59d814='insertion'==_0x37d892['type']?'add':'remove';for(const _0x398beb of _0x50feb3){const _0x30f712=_0x398beb['item'],_0x377aac=_0x2e3b08[_0x2e3b08['length']-0x1];if(_0x30f712['is']('$textProxy'))_0x377aac&&_0x377aac['type']['indexOf']('Container')>-0x1&&_0x2e3b08['pop'](),_0x377aac&&'text'==_0x377aac['type']?_0x377aac[_0x59d814]+=_0x30f712['data']:_0x2e3b08['push']({'type':'text','add':'add'==_0x59d814?_0x30f712['data']:'','remove':'remove'==_0x59d814?_0x30f712['data']:''});else{if(this['_schema']['isObject'](_0x30f712)){const _0x10dade=_0x30f712;if(_0x377aac&&_0x377aac['type']['indexOf']('Container')>-0x1&&_0x2e3b08['pop'](),'elementEnd'==_0x398beb['type'])continue;_0x377aac&&_0x377aac['type']==_0x59d814+'Object'&&_0x377aac['element']['name']==_0x10dade['name']?_0x377aac['quantity']++:_0x2e3b08['push']({'type':_0x59d814+'Object','element':_0x10dade,'quantity':0x1}),_0x50feb3['skip'](_0x42d8ad=>!('elementEnd'==_0x42d8ad['type']&&_0x42d8ad['item']==_0x30f712));}else{if(this['_schema']['checkChild'](_0x30f712,'$text')||_0x30f712['is']('element','softBreak')){const _0x2012a8=_0x30f712;if('add'==_0x59d814&&'elementStart'==_0x398beb['type']||'remove'==_0x59d814&&'elementEnd'==_0x398beb['type'])continue;if(_0x377aac&&-0x1==_0x377aac['type']['indexOf']('Container')){'text'==_0x377aac['type']&&(_0x377aac[_0x59d814]+='\x0a');continue;}let _0x5a48f5;if(_0x5a48f5='add'==_0x59d814?_0x2012a8['nextSibling']&&!this['_schema']['isObject'](_0x2012a8['nextSibling'])?_0x2012a8['nextSibling']:null:_0x2012a8['previousSibling']&&!this['_schema']['isObject'](_0x2012a8['previousSibling'])?_0x2012a8['previousSibling']:null,_0x2012a8['isEmpty']||_0x5a48f5&&_0x5a48f5['isEmpty']){const _0x4a0bee=_0x5a48f5&&_0x5a48f5['isEmpty']?_0x5a48f5:_0x2012a8;_0x377aac&&_0x377aac['type']==_0x59d814+'EmptyContainer'&&_0x377aac['element']['name']==_0x4a0bee['name']?_0x377aac['quantity']++:_0x2e3b08['push']({'type':_0x59d814+'EmptyContainer','element':_0x4a0bee,'quantity':0x1});}else _0x2e3b08['push']({'type':_0x59d814+'Container','element':_0x2012a8});}}}}}['_resolveDescriptionItems'](_0x340a82){const _0x33b353=this['_locale'],_0x49055e=[],_0x21bc07=[],_0x116769=[];for(const _0x49544f of _0x340a82)switch(_0x49544f['type']){case'text':if(_0x49544f['add']=_0x49544f['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x49544f['remove']=_0x49544f['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x49544f['add']&&''!=_0x49544f['remove']){_0x49055e['push']({'type':'replace','content':o(_0x33b353,'REPLACE_TEXT',['\x22'+_0x49544f['remove']+'\x22','\x22'+_0x49544f['add']+'\x22'])});continue;}if(null!=_0x49544f['add']['match'](/^ +$/)){_0x49055e['push']({'type':'insertion','content':o(_0x33b353,'*Insert:*\x20%0',o(_0x33b353,'ELEMENT_SPACE',_0x49544f['add']['length']))});continue;}if(null!=_0x49544f['remove']['match'](/^ +$/)){_0x49055e['push']({'type':'deletion','content':o(_0x33b353,'*Remove:*\x20%0',o(_0x33b353,'ELEMENT_SPACE',_0x49544f['remove']['length']))});continue;}if(''!=_0x49544f['add']){_0x49055e['push']({'type':'insertion','content':o(_0x33b353,'*Insert:*\x20%0','\x22'+_0x49544f['add']+'\x22')});continue;}_0x49055e['push']({'type':'deletion','content':o(_0x33b353,'*Remove:*\x20%0','\x22'+_0x49544f['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x49055e['push']({'type':'insertion','content':o(_0x33b353,'*Insert:*\x20%0',this['getItemLabel'](_0x49544f['element'],_0x49544f['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x49055e['push']({'type':'deletion','content':o(_0x33b353,'*Remove:*\x20%0',this['getItemLabel'](_0x49544f['element'],_0x49544f['quantity']))});continue;case'addContainer':_0x49055e['push']({'type':'insertion','content':o(_0x33b353,'*Split:*\x20%0',this['getItemLabel'](_0x49544f['element'],_0x49544f['quantity']))});continue;case'removeContainer':_0x49055e['push']({'type':'deletion','content':o(_0x33b353,'*Merge:*\x20%0',this['getItemLabel'](_0x49544f['element'],_0x49544f['quantity']))});continue;case'addFormat':_0x21bc07['push'](_0x49544f['key']);continue;case'removeFormat':_0x116769['push'](_0x49544f['key']);continue;default:_0x49055e['push'](_0x49544f);}if(_0x21bc07['length']){const _0x2fba58=_0x21bc07['map'](_0xaa088a=>this['_attributeLabels']['has'](_0xaa088a)?this['_attributeLabels']['get'](_0xaa088a):_0xaa088a)['join'](',\x20');_0x49055e['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x2fba58)});}if(_0x116769['length']){const _0x1e6a7b=_0x116769['map'](_0x3d24df=>this['_attributeLabels']['has'](_0x3d24df)?this['_attributeLabels']['get'](_0x3d24df):_0x3d24df)['join'](',\x20');_0x49055e['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x1e6a7b)});}return _0x49055e;}['_handleCustomCallbackDescription'](_0x178bbf){for(const _0x406d1a of this['_customCallbacks']){const _0x30c816=_0x406d1a(_0x178bbf);if(_0x30c816&&'type'in _0x30c816)return _0x30c816;}}['_handleAttributeSuggestionDescription'](_0x40628d,_0x4f68c6){const _0x2a1be8=_0x4f68c6['data'],_0x455f9e=void 0x0===_0x2a1be8['newValue']?'removeFormat':'addFormat';_0x40628d['push']({'type':_0x455f9e,'key':_0x2a1be8['key']});}['_handleRenameSuggestionDescription'](_0x2106f6,_0x57232d){_0x2106f6['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x57232d['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x163521,_0x38d389,_0x40b01f){if(this['_addDescriptionItems'](_0x163521,_0x38d389),_0x40b01f&&_0x40b01f['getFirstRange']()&&!_0x38d389['getFirstRange']()['end']['isEqual'](_0x40b01f['getFirstRange']()['start'])){const _0x1d1566=_0x163521[_0x163521['length']-0x1],_0x448151='insertion'==_0x38d389['type']?'add':'remove';_0x1d1566&&'text'==_0x1d1566['type']&&(_0x1d1566[_0x448151]+='\x0a');}}}class R extends _0x4942e1{['afterInit'](){const _0x49a7d4=this['editor'],_0x7a3b78=_0x49a7d4['plugins']['get']('TrackChangesEditing');_0x49a7d4['commands']['get']('showAIAssistant')&&_0x7a3b78['enableCommand']('showAIAssistant');}}class T extends _0x4942e1{['afterInit'](){const _0x40c250=this['editor'],_0x114789=_0x40c250['plugins']['get']('TrackChangesEditing');_0x40c250['commands']['get']('toggleAi')&&_0x114789['enableCommand']('toggleAi');}}class E extends _0x4942e1{['afterInit'](){const _0xa3eb28=this['editor'],_0x4b3d55=_0xa3eb28['plugins']['get']('TrackChangesEditing');_0xa3eb28['commands']['get']('aiQuickAction')&&_0x4b3d55['enableCommand']('aiQuickAction');}}class U extends _0x4942e1{['afterInit'](){const _0x31b952=this['editor'],_0x5d201b=_0x31b952['locale'];if(!_0x31b952['plugins']['has']('AlignmentEditing'))return;const _0x43efe9=_0x31b952['plugins']['get']('TrackChangesEditing');_0x43efe9['enableDefaultAttributesIntegration']('alignment'),_0x43efe9['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x5d201b,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5112f8=this['editor'],_0xa5b901=_0x5112f8['locale'];_0x5112f8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5409f8=>{if('formatBlock'!=_0x5409f8['type'])return;const {data:_0x475ee8}=_0x5409f8;if(_0x475ee8&&'alignment'==_0x475ee8['commandName']){const _0x3cb95c=_0x475ee8['commandParams'][0x0]['value'];return{'type':'format','content':o(_0xa5b901,'*Format:*\x20%0',function(_0x1c4eb1){switch(_0x1c4eb1){case'left':return o(_0xa5b901,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0xa5b901,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0xa5b901,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0xa5b901,'FORMAT_JUSTIFY_TEXT');}}(_0x3cb95c))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class V extends _0x4942e1{['afterInit'](){const _0x267188=this['editor'],_0x5e0afd=_0x267188['plugins']['get']('TrackChangesEditing'),_0x2880aa=_0x267188['locale'];for(const _0x2fe3b4 of ti){if(!_0x267188['plugins']['has'](_0x2fe3b4))continue;const _0x5c9aa3=_0x2fe3b4['slice'](0x0,-0x7)['toLowerCase'](),_0x3a94d6='FORMAT_'+_0x5c9aa3['toUpperCase']();_0x5e0afd['enableDefaultAttributesIntegration'](_0x5c9aa3),_0x5e0afd['descriptionFactory']['registerAttributeLabel'](_0x5c9aa3,o(_0x2880aa,_0x3a94d6));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2ca437=this['editor'],_0x529984=_0x2ca437['locale'],_0x4cb283=_0x2ca437['plugins']['get']('TrackChangesEditing');function _0x39ecb9(_0x45372d,_0x41324e){_0x4cb283['descriptionFactory']['registerDescriptionCallback'](_0x54007d=>{if('formatInline'!=_0x54007d['type'])return;const {data:_0x2c3db0}=_0x54007d;return _0x2c3db0&&_0x2c3db0['commandName']===_0x45372d?_0x2c3db0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x529984,'*Format:*\x20%0',_0x41324e)}:{'type':'format','content':o(_0x529984,'*Remove\x20format:*\x20%0',_0x41324e)}:void 0x0;});}_0x39ecb9('bold',o(_0x529984,'FORMAT_BOLD')),_0x39ecb9('italic',o(_0x529984,'FORMAT_ITALIC')),_0x39ecb9('underline',o(_0x529984,'FORMAT_UNDERLINE')),_0x39ecb9('code',o(_0x529984,'FORMAT_CODE')),_0x39ecb9('strikethrough',o(_0x529984,'FORMAT_STRIKETHROUGH')),_0x39ecb9('subscript',o(_0x529984,'FORMAT_SUBSCRIPT')),_0x39ecb9('superscript',o(_0x529984,'FORMAT_SUPERSCRIPT'));}}class F extends _0x4942e1{['afterInit'](){const _0x5ae4bc=this['editor'],_0x1692a3=_0x5ae4bc['locale'];if(!_0x5ae4bc['plugins']['has']('BlockQuoteEditing'))return;const _0x40b3b5=_0x5ae4bc['plugins']['get']('TrackChangesEditing'),_0x50742e=this['editor']['commands']['get']('blockQuote');_0x40b3b5['enableCommand']('blockQuote',(_0x37252c,_0x1fa71f={})=>{const _0x345ddd=this['editor']['model']['document']['selection'],_0x2b6d12=_0x1fa71f&&void 0x0!==_0x1fa71f['forceValue']?_0x1fa71f['forceValue']:!_0x50742e['value'];let _0x381eb5=[];if(_0x2b6d12){const _0x4d94ef=Array['from'](_0x345ddd['getSelectedBlocks']())['filter'](_0x5d3bcd=>oo(_0x5d3bcd)||function(_0x346676,_0x10fd5d){const _0x1f69e9=_0x10fd5d['checkChild'](_0x346676['parent'],'blockQuote'),_0x1b6864=_0x10fd5d['checkChild'](['$root','blockQuote'],_0x346676);return _0x1f69e9&&_0x1b6864;}(_0x5d3bcd,this['editor']['model']['schema']));_0x381eb5=to(_0x4d94ef,_0x5ae4bc['model']);}else{const _0x9c6f78=Array['from'](_0x345ddd['getSelectedBlocks']())['filter'](_0x16b705=>oo(_0x16b705));_0x381eb5=to(_0x9c6f78,_0x5ae4bc['model']);}_0x5ae4bc['model']['change'](()=>{for(const _0x2fa97f of _0x381eb5)_0x40b3b5['markBlockFormat'](_0x2fa97f,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2b6d12}]});});}),_0x40b3b5['descriptionFactory']['registerDescriptionCallback'](_0x51353c=>{const {data:_0x398cda}=_0x51353c;if(_0x398cda&&'blockQuote'==_0x398cda['commandName']){const _0x2179f2=o(_0x1692a3,'ELEMENT_BLOCK_QUOTE');return _0x398cda['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1692a3,'*Set\x20format:*\x20%0',_0x2179f2)}:{'type':'format','content':o(_0x1692a3,'*Remove\x20format:*\x20%0',_0x2179f2)};}});}}function oo(_0x12b628){return'blockQuote'==_0x12b628['parent']['name'];}class G extends _0x4942e1{['afterInit'](){const _0x5a15dd=this['editor'],_0x5fa9e4=_0x5a15dd['locale'],_0x26fbd3=_0x5a15dd['plugins']['get']('TrackChangesEditing');_0x5a15dd['plugins']['has']('BookmarkEditing')&&(_0x26fbd3['enableCommand']('insertBookmark'),_0x26fbd3['enableDefaultAttributesIntegration']('updateBookmark'),_0x26fbd3['descriptionFactory']['registerDescriptionCallback'](_0x34d719=>{if('insertion'!=_0x34d719['type']&&'deletion'!=_0x34d719['type']&&'attribute'!=_0x34d719['type'])return;const _0x42bef1=_0x34d719['getContainedElement']();if(null==_0x42bef1)return;if(!_0x42bef1['is']('element','bookmark'))return;const _0x58b8df=_0x42bef1['getAttribute']('bookmarkId');if('insertion'==_0x34d719['type'])return{'type':'insertion','content':o(_0x5fa9e4,'*Insert:*\x20%0','\x22'+_0x58b8df+'\x22\x20'+o(_0x5fa9e4,'ELEMENT_BOOKMARK'))};if('deletion'==_0x34d719['type'])return{'type':'deletion','content':o(_0x5fa9e4,'*Remove:*\x20%0','\x22'+_0x58b8df+'\x22\x20'+o(_0x5fa9e4,'ELEMENT_BOOKMARK'))};const {data:_0x4bb30f}=_0x34d719;if(!_0x4bb30f||'bookmarkId'!=_0x4bb30f['key'])return;return{'type':'format','content':o(_0x5fa9e4,'*Set\x20bookmark:*\x20%0','\x22'+_0x4bb30f['newValue']+'\x22')};}));}}class L extends _0x4942e1{['afterInit'](){const _0x40a145=this['editor'];_0x40a145['plugins']['has']('CaseChange')&&(_0x40a145['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x40a145['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x40a145['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class J extends _0x4942e1{['afterInit'](){const _0x420ffa=this['editor'];_0x420ffa['commands']['get']('ckbox')&&_0x420ffa['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x4942e1{['afterInit'](){const _0x4530d9=this['editor'];if(!_0x4530d9['plugins']['has']('CodeBlock'))return;const _0x39785f=_0x4530d9['plugins']['get']('TrackChangesEditing'),_0x385193=_0x4530d9['locale'],_0x786961=_0x4530d9['config']['get']('codeBlock')['languages'],_0x33b1ef=_0x4530d9['commands']['get']('codeBlock');_0x39785f['enableCommand']('indentCodeBlock'),_0x39785f['enableCommand']('outdentCodeBlock'),_0x39785f['enableCommand']('codeBlock',(_0x3231e8,_0x4d76d8={})=>{const _0x54a1b4=_0x4530d9['model'],_0x184279=_0x4530d9['model']['document']['selection'],_0x5f12c7=_0x4d76d8&&void 0x0!==_0x4d76d8['forceValue']?_0x4d76d8['forceValue']:!_0x33b1ef['value'];let _0x2e4ab1;_0x4d76d8['language']||(_0x4d76d8['language']=_0x786961[0x0]['language']),_0x2e4ab1=_0x5f12c7?Array['from'](_0x184279['getSelectedBlocks']())['filter'](_0xe3a20d=>co(_0xe3a20d)||function(_0x51b522,_0x4ff648){if(_0x51b522['is']('rootElement')||_0x4ff648['isLimit'](_0x51b522))return!0x1;return _0x4ff648['checkChild'](_0x51b522['parent'],'codeBlock');}(_0xe3a20d,_0x54a1b4['schema'])):Array['from'](_0x184279['getSelectedBlocks']())['filter'](_0x1996d6=>co(_0x1996d6));const _0x11bf8b=to(_0x2e4ab1,_0x54a1b4);_0x54a1b4['change'](()=>{for(const _0x50c0a4 of _0x11bf8b)_0x39785f['markBlockFormat'](_0x50c0a4,{'commandName':'codeBlock','commandParams':[{..._0x4d76d8,'forceValue':_0x5f12c7}],'formatGroupId':'blockName'});});}),(_0x39785f['descriptionFactory']['registerElementLabel']('codeBlock',_0x5e7a7c=>o(_0x385193,'ELEMENT_CODE_BLOCK',_0x5e7a7c)),_0x39785f['descriptionFactory']['registerDescriptionCallback'](_0x1f0bd6=>{if('formatBlock'!=_0x1f0bd6['type'])return;const _0x159b9f=_0x385193['t'],{data:_0x183871}=_0x1f0bd6;if(!_0x183871||'codeBlock'!=_0x183871['commandName'])return;const _0x582a05=_0x183871['commandParams'][0x0]['language'],_0x33d613=_0x159b9f(_0x786961['find'](_0x470271=>_0x470271['language']===_0x582a05)['label'])['toLowerCase']();return _0x183871['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x385193,'*Set\x20format:*\x20%0',o(_0x385193,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x33d613+')')}:{'type':'format','content':o(_0x385193,'*Remove\x20format:*\x20%0',o(_0x385193,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x420af8){return'codeBlock'==_0x420af8['name'];}class z extends _0x4942e1{['afterInit'](){const _0xd68f13=this['editor'];if(!_0xd68f13['plugins']['has']('CommentsEditing'))return;_0xd68f13['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class K extends _0x4942e1{static get['requires'](){return[_0x5cc173];}['init'](){const _0x21f0ef=this['editor'],_0x457cd0=_0x21f0ef['plugins']['get']('TrackChangesEditing');_0x457cd0['enableCommand']('delete');const _0x12baaa=_0x21f0ef['commands']['get']('deleteForward');_0x457cd0['enableCommand']('deleteForward',(_0x3c2ae4,_0x37bcfb={})=>{const _0x2d2521=_0x21f0ef['model']['createSelection'](_0x21f0ef['model']['document']['selection']);_0x2d2521['isCollapsed']&&_0x21f0ef['model']['modifySelection'](_0x2d2521,{'direction':'forward','unit':_0x37bcfb['unit']});const _0x12603f=_0x2d2521['getFirstRange'](),_0x563fd3=_0x5bf397['fromRange'](_0x12603f);let _0x5c0478;_0x3c2ae4(_0x37bcfb),_0x5c0478='$graveyard'==_0x563fd3['root']['rootName']?_0x21f0ef['model']['createRange'](_0x12603f['start']):_0x21f0ef['model']['createRange'](_0x563fd3['start'],_0x563fd3['end']),_0x563fd3['detach'](),_0x21f0ef['model']['enqueueChange'](_0x12baaa['buffer']['batch'],_0x5efdcf=>{_0x12baaa['buffer']['lock'](),_0x5efdcf['setSelection'](_0x5efdcf['createRange'](_0x5c0478['end'])),_0x12baaa['buffer']['unlock']();});});}}class W extends _0x4942e1{['afterInit'](){const _0x58b4be=this['editor'];if(!_0x58b4be['plugins']['has']('ListEditing'))return;const _0x51063c=_0x58b4be['locale'],_0x4beaf8=_0x58b4be['plugins']['get']('TrackChangesEditing'),_0x5bfa8d=_0x58b4be['plugins']['has']('TodoListEditing'),_0x38bc7d=!!_0x58b4be['config']['get']('list.multiBlock');function _0x94cb78(_0x34fcc4){return{'type':'format','content':''+o(_0x51063c,'*Set\x20format:*\x20%0',_0x34fcc4)};}function _0x1cebec(_0x1e0246){return{'type':'format','content':''+o(_0x51063c,'*Remove\x20format:*\x20%0',_0x1e0246)};}_0x4beaf8['enableDefaultAttributesIntegration']('numberedList'),_0x4beaf8['enableDefaultAttributesIntegration']('bulletedList'),_0x4beaf8['enableDefaultAttributesIntegration']('customNumberedList'),_0x4beaf8['enableDefaultAttributesIntegration']('customBulletedList'),_0x4beaf8['enableDefaultAttributesIntegration']('indentList'),_0x4beaf8['enableDefaultAttributesIntegration']('outdentList'),_0x4beaf8['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4beaf8['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x38bc7d&&(_0x4beaf8['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4beaf8['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x5bfa8d&&(_0x4beaf8['enableDefaultAttributesIntegration']('todoList'),_0x4beaf8['enableDefaultAttributesIntegration']('checkTodoList'),_0x4beaf8['descriptionFactory']['registerDescriptionCallback'](_0x2806c7=>{const {data:_0x2a36a5}=_0x2806c7;if(_0x2a36a5&&'todoListChecked'==_0x2a36a5['key'])return{'type':'format','content':_0x2a36a5['newValue']?o(_0x51063c,'*Check\x20item*'):o(_0x51063c,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x341178=>{if(_0x341178['batch']['isUndo'])return!0x1;let _0x469f70=!0x1;const _0x382a15=_0x4beaf8['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x281cb6=>'todoListChecked'===_0x4beaf8['_getAttributeKey'](_0x281cb6));for(const _0x25d3b0 of _0x382a15){'todo'!=_0x25d3b0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4beaf8['_findSuggestions'](_0x25d3b0['getFirstRange'](),'attribute')['find'](_0x2ddede=>'listType'===_0x4beaf8['_getAttributeKey'](_0x2ddede['suggestion']))||(_0x341178['removeMarker'](_0x25d3b0['getFirstMarker']()),_0x469f70=!0x0));}return _0x469f70;})),_0x4beaf8['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x51063c,'FORMAT_INDENT'));const _0x36a36b={'type':'format','content':''};_0x4beaf8['descriptionFactory']['registerDescriptionCallback'](_0x4a78a5=>{const {data:_0x4ae24c}=_0x4a78a5;if(!_0x4ae24c||'listType'!=_0x4ae24c['key'])return;let _0x272e78=_0x4a78a5['head'];for(;_0x272e78;){if(_0x272e78['data']&&(('listStyle'==_0x272e78['data']['key']||'listMarkerStyle'==_0x272e78['data']['key'])&&(_0x272e78['data']['newValue']&&'default'!=_0x272e78['data']['newValue']||'default'!=_0x272e78['data']['oldValue']&&!_0x4ae24c['newValue'])||!_0x38bc7d&&_0x272e78['data']['key']==m))return _0x36a36b;_0x272e78=_0x272e78['next'];}if(null==_0x4ae24c['newValue'])switch(_0x4ae24c['oldValue']){case'bulleted':return _0x1cebec(o(_0x51063c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1cebec(o(_0x51063c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1cebec(o(_0x51063c,'ELEMENT_TODO_LIST'));}switch(_0x4ae24c['newValue']){case'bulleted':return _0x94cb78(o(_0x51063c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x94cb78(o(_0x51063c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x94cb78(o(_0x51063c,'ELEMENT_TODO_LIST'));}}),_0x4beaf8['descriptionFactory']['registerDescriptionCallback'](_0x31fcfa=>{const {data:_0x28da75}=_0x31fcfa;if(_0x28da75&&'listIndent'==_0x28da75['key'])return null==_0x28da75['newValue']||null==_0x28da75['oldValue']&&0x0==_0x28da75['newValue']?_0x36a36b:void 0x0;}),_0x4beaf8['descriptionFactory']['registerDescriptionCallback'](_0x55db7d=>{if('attribute'!=_0x55db7d['type'])return;const {data:_0x33ddbe}=_0x55db7d;if(!_0x33ddbe||'listItemId'!=_0x33ddbe['key'])return;const _0x2c606b=Te(_0x55db7d);return'newValue'==_0x2c606b?{'type':'format','content':o(_0x51063c,'*Merge:*\x20list\x20item')}:'oldValue'==_0x2c606b?{'type':'format','content':o(_0x51063c,'*Split:*\x20list\x20item')}:_0x36a36b;}),_0x58b4be['model']['document']['registerPostFixer'](_0x534e0d=>this['listItemIdFixer'](_0x534e0d)),_0x58b4be['model']['document']['registerPostFixer'](_0x1539ce=>this['noTrackChangesFixer'](_0x1539ce)),_0x58b4be['model']['document']['on']('change:data',(_0x431de4,_0x43e3e5)=>{if(_0x43e3e5['isUndo']||!_0x43e3e5['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x5b951d){if(_0x5b951d['batch']['isUndo']||!_0x5b951d['batch']['isLocal'])return!0x1;let _0x180c5e=!0x1;const _0x7ee427=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1284cc=>_0x1284cc['data']&&'listItemId'==_0x1284cc['data']['key'])['filter'](_0x11d749=>_0x11d749['data']['newValue']&&_0x11d749['data']['oldValue']);for(const _0xe80b7 of _0x7ee427)Te(_0xe80b7)||(_0x5b951d['removeMarker'](_0xe80b7['getFirstMarker']()),_0x180c5e=!0x0);return _0x180c5e;}['noTrackChangesFixer'](_0x3783fc){if(_0x3783fc['batch']['isUndo']||!_0x3783fc['batch']['isLocal'])return!0x1;const _0xf60f5e=this['editor']['plugins']['get']('TrackChangesEditing');if(_0xf60f5e['trackChangesCommand']['value'])return!0x1;let _0x4fb5ce=!0x1;const _0x3ef41d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x21f869=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0xd0f85d=>'attribute'==_0xd0f85d['type'])['filter'](_0x2437f7=>_0x3ef41d['includes'](_0x2437f7['attributeKey']));if(0x0==_0x21f869['length'])return _0x4fb5ce;for(const _0x26921b of _0x21f869){const _0x1a90ec=_0xf60f5e['_findSuggestions'](_0x26921b['range'],'attribute')['filter'](_0x5737d0=>!_0x5737d0['meta']['isNextTo'])['map'](_0x36d9e3=>_0x36d9e3['suggestion'])['filter'](_0x5e3b46=>{const _0x3a0dd9=_0xf60f5e['_getAttributeKey'](_0x5e3b46);return _0x3ef41d['includes'](_0x3a0dd9);});if(_0x1a90ec['length']){for(const _0x350749 of _0x1a90ec)_0x3783fc['removeMarker'](_0x350749['getFirstMarker']());_0x4fb5ce=!0x0;}}return _0x4fb5ce;}['assureChains'](){const _0x298451=this['editor']['plugins']['get']('TrackChangesEditing'),_0x366bcd=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x392acf;const _0xe55aed=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4e3dee=>{if(_0x4e3dee['data']['oldRange']||!_0x4e3dee['data']['newRange'])return null;if(!_0x4e3dee['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x568042}=_0x298451['_splitMarkerName'](_0x4e3dee['name']);if(!_0x298451['hasSuggestion'](_0x568042))return null;const _0x5e09f7=_0x298451['getSuggestion'](_0x568042);return _0x366bcd['includes'](_0x5e09f7['data']['key']);})['map'](_0x5473c7=>{const {id:_0x5e8a31}=_0x298451['_splitMarkerName'](_0x5473c7['name']),_0x4eb921=_0x298451['getSuggestion'](_0x5e8a31);return _0x392acf=_0x4eb921['attributes']['groupId'],_0x4eb921['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0xe55aed['size'])return;const _0x481e89=_0x298451['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1c5118=>'attribute'==_0x1c5118['type']&&_0x1c5118['data']&&_0x366bcd['includes'](_0x1c5118['data']['key'])&&_0x1c5118['attributes']['groupId']!=_0x392acf)['map'](_0x1c97a9=>({'listItem':_0x1c97a9['getFirstRange']()['start']['nodeAfter'],'groupId':_0x1c97a9['attributes']['groupId']})),_0x3997b6=new Set();for(const {groupId:_0x68e4bf,listItem:_0x4f7c32}of _0x481e89)_0xe55aed['has'](_0x4f7c32)&&_0x3997b6['add'](_0x68e4bf);for(const _0x2c044e of _0x298451['getSuggestions']())_0x3997b6['has'](_0x2c044e['attributes']['groupId'])&&_0x2c044e['setAttribute']('groupId',_0x392acf);}['_supportLegacySuggestions'](){const _0x2e2be5=this['editor'],_0x4a8308=_0x2e2be5['locale'],_0x45241f=_0x2e2be5['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x45241f['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x37dfc0,_0x3cdc71){const _0x17c970=[];for(let _0x9c5c56 of _0x37dfc0)_0x9c5c56['start']['nodeAfter']===_0x9c5c56['end']['parent']&&(_0x9c5c56=_0x2e2be5['model']['createRange'](_0x2e2be5['model']['createPositionAt'](_0x9c5c56['start']['nodeAfter'],0x0))),_0x17c970['push'](_0x9c5c56);_0x2e2be5['model']['change'](_0x551ac8=>{const _0x312962=_0x2e2be5['model']['document']['selection'],_0x396334=Array['from'](_0x312962['getRanges']())['map'](_0x187486=>_0x5bf397['fromRange'](_0x187486));_0x551ac8['setSelection'](_0x17c970),_0x2e2be5['commands']['get'](_0x3cdc71['commandName'])['refresh'](),_0x3cdc71['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2e2be5['execute'](_0x3cdc71['commandName'],..._0x3cdc71['commandParams']),_0x551ac8['setSelection'](_0x396334);for(const _0x14b770 of _0x396334)_0x14b770['detach']();});}),_0x45241f['descriptionFactory']['registerElementLabel'](function(_0x4a19e5){const _0x44194a=!_0x2e2be5['model']['schema']['isObject'](_0x4a19e5),_0x25fda=_0x4a19e5['previousSibling'],_0x5228de=_0x4a19e5['nextSibling'],_0x22c142=_0x4a19e5['getAttribute']('listItemId'),_0x57ab2f=!_0x25fda||_0x25fda['getAttribute']('listItemId')!==_0x22c142,_0x3b48d7=!_0x5228de||_0x5228de['getAttribute']('listItemId')!==_0x22c142;return _0x44194a&&Boolean(_0x22c142)&&_0x57ab2f&&_0x3b48d7;},_0x4a2639=>o(_0x4a8308,'ELEMENT_LIST_ITEM',_0x4a2639));}['_registerLegacyDescription'](){const _0x1d4550=this['editor'],_0x186019=_0x1d4550['locale'];function _0x8284e1(_0xb22ca6){const _0x2bac41=_0x1d4550['commands']['get']('bulletedList')['value'],_0xe199cc=_0x1d4550['commands']['get']('numberedList')['value'];return'numberedList'===_0xb22ca6?_0x2bac41:_0xe199cc;}_0x1d4550['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3c79d0){if('formatBlock'!=_0x3c79d0['type'])return;const {data:_0x569d0f}=_0x3c79d0;if(!_0x569d0f)return;let _0x46189c,_0x3a7128,_0x24bc79,_0x1ae2e1;switch(_0x569d0f['commandName']){case'bulletedList':_0x24bc79=_0x569d0f['commandParams'][0x0]['forceValue'],_0x1ae2e1=_0x8284e1(_0x569d0f['commandName']),_0x46189c=_0x24bc79?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1ae2e1&&_0x1d4550['config']['get']('list.multiBlock')||(_0x46189c='*Change\x20to:*\x20%0'),_0x3a7128={'type':'format','content':o(_0x186019,_0x46189c,o(_0x186019,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x24bc79=_0x569d0f['commandParams'][0x0]['forceValue'],_0x1ae2e1=_0x8284e1(_0x569d0f['commandName']),_0x46189c=_0x24bc79?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1ae2e1&&_0x1d4550['config']['get']('list.multiBlock')||(_0x46189c='*Change\x20to:*\x20%0'),_0x3a7128={'type':'format','content':o(_0x186019,_0x46189c,o(_0x186019,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x46189c='*Indent:*\x20%0',_0x3a7128={'type':'format','content':o(_0x186019,_0x46189c,o(_0x186019,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x46189c=function(_0x158ded){const _0x597977=_0x158ded['getFirstRange']();let _0x1ce155=_0x597977['start']['nodeAfter'];for(;_0x1ce155&&_0x597977['containsItem'](_0x1ce155);){if(_0x1ce155['getAttribute']('listIndent')>0x0)return!0x1;_0x1ce155=_0x1ce155['nextSibling'];}return!0x0;}(_0x3c79d0)?o(_0x186019,'*Format:*\x20remove\x20from\x20%0',o(_0x186019,function(_0x3583cd){return'ELEMENT_'+_0x3583cd['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3c79d0))):o(_0x186019,'*Outdent:*\x20%0',o(_0x186019,'ELEMENT_LIST_ITEM')),_0x3a7128={'type':'format','content':_0x46189c};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x569d0f['multipleBlocks']&&(_0x46189c='*Merge:*\x20%0',_0x3a7128={'type':'deletion','content':o(_0x186019,_0x46189c,o(_0x186019,'ELEMENT_LIST_ITEM'))});}return _0x3a7128;});}}function Te(_0x25b6ba){let _0x2af12f=_0x25b6ba['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x2af12f;){const _0x275cc5=_0x2af12f['getAttribute']('listItemId');if(!_0x275cc5)return!0x1;if(_0x275cc5==_0x25b6ba['data']['newValue'])return'newValue';if(_0x275cc5==_0x25b6ba['data']['oldValue'])return'oldValue';_0x2af12f=_0x2af12f['previousSibling'];}return!0x1;}class H extends _0x4942e1{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4b6978=this['editor']['config']['get']('list.properties'),_0x2cb9e8=this['editor']['plugins']['get']('TrackChangesEditing');_0x4b6978['styles']&&_0x2cb9e8['enableDefaultAttributesIntegration']('listStyle'),_0x4b6978['reversed']&&_0x2cb9e8['enableDefaultAttributesIntegration']('listReversed'),_0x4b6978['startIndex']&&_0x2cb9e8['enableDefaultAttributesIntegration']('listStart');const _0xab1c70={'type':'format','content':''};_0x2cb9e8['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x47fe1b=this['editor']['locale'];_0x2cb9e8['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x47fe1b,'FORMAT_LIST_REVERSED')),_0x2cb9e8['descriptionFactory']['registerDescriptionCallback'](_0x37d305=>{const {data:_0x47defe}=_0x37d305;if(_0x47defe&&'listReversed'==_0x47defe['key'])return null==_0x47defe['newValue']||0x0==_0x47defe['newValue']&&null==_0x47defe['oldValue']?_0xab1c70:void 0x0;}),_0x2cb9e8['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x47fe1b,'FORMAT_LIST_START')),_0x2cb9e8['descriptionFactory']['registerDescriptionCallback'](_0x3eefa0=>{const {data:_0x48a944}=_0x3eefa0;if(_0x48a944&&'listStart'==_0x48a944['key'])return null==_0x48a944['newValue']||0x1==_0x48a944['newValue']&&null==_0x48a944['oldValue']?_0xab1c70:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x5172fd=>{if(_0x5172fd['batch']['isUndo'])return!0x1;let _0x16b2c5=!0x1;const _0x310e57=_0x2cb9e8['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5d4a41=>{const _0x383e08=_0x2cb9e8['_getAttributeKey'](_0x5d4a41);return'listStart'==_0x383e08||'listReversed'==_0x383e08;});for(const _0xa35d06 of _0x310e57){const _0x437c6b=_0xa35d06['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x437c6b||'customNumbered'==_0x437c6b)continue;_0x2cb9e8['_findSuggestions'](_0xa35d06['getFirstRange'](),'attribute')['find'](_0x3fc7bb=>'listType'==_0x2cb9e8['_getAttributeKey'](_0x3fc7bb['suggestion']))||(_0x5172fd['removeMarker'](_0xa35d06['getFirstMarker']()),_0x16b2c5=!0x0);}return _0x16b2c5;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x266042){const _0x3acc54=this['editor']['locale'],{data:_0xd91d21}=_0x266042,_0xb3bbcb={'type':'format','content':''};if(!_0xd91d21||'listStyle'!=_0xd91d21['key'])return;if(!_0xd91d21['oldValue'])return'default'==_0xd91d21['newValue']?_0xb3bbcb:{'type':'format','content':''+o(_0x3acc54,'*Set\x20format:*\x20%0',o(_0x3acc54,this['_getTranslationKeyForListStyle'](_0xd91d21['newValue'])))};if(!_0xd91d21['newValue']){if('default'==_0xd91d21['oldValue'])return _0xb3bbcb;let _0x2dd3ff=_0x266042['head'];for(;_0x2dd3ff;){if(_0x2dd3ff['data']&&'listType'==_0x2dd3ff['data']['key']&&_0x2dd3ff['data']['newValue'])return _0xb3bbcb;_0x2dd3ff=_0x2dd3ff['next'];}return{'type':'format','content':''+o(_0x3acc54,'*Remove\x20format:*\x20%0',o(_0x3acc54,this['_getTranslationKeyForListStyle'](_0xd91d21['oldValue'])))};}if('default'!=_0xd91d21['newValue'])return{'type':'format','content':''+o(_0x3acc54,'*Set\x20format:*\x20%0',o(_0x3acc54,this['_getTranslationKeyForListStyle'](_0xd91d21['newValue'])))};let _0x4dd5ae=_0x266042['head'];for(;_0x4dd5ae;){if(_0x4dd5ae['data']&&'listType'==_0x4dd5ae['data']['key']&&_0x4dd5ae['data']['newValue']&&_0x4dd5ae['data']['oldValue'])return _0xb3bbcb;_0x4dd5ae=_0x4dd5ae['next'];}return{'type':'format','content':o(_0x3acc54,'*Set\x20format:*\x20%0',o(_0x3acc54,'ELEMENT_'+_0x266042['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x252d6e=this['editor'],_0x2475e7=_0x252d6e['locale'];_0x252d6e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ed069=>{if('formatBlock'!=_0x4ed069['type'])return;const {data:_0x199342}=_0x4ed069;if(!_0x199342)return;let _0xaebf16,_0x201e98;switch(_0x199342['commandName']){case'listStyle':_0xaebf16='*Change\x20to:*\x20%0',_0x201e98={'type':'format','content':o(_0x2475e7,_0xaebf16,o(_0x2475e7,this['_getTranslationKeyForListStyle'](_0x199342['commandParams'][0x0]['type'])))};break;case'listReversed':_0xaebf16=_0x199342['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x201e98={'type':'format','content':o(_0x2475e7,_0xaebf16)};break;case'listStart':_0xaebf16='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x201e98={'type':'format','content':o(_0x2475e7,_0xaebf16,_0x199342['commandParams'][0x0]['startIndex'])};}return _0x201e98;});}['_getTranslationKeyForListStyle'](_0x30f55f){return'ELEMENT_'+function(_0x2e924d){if(ye['includes'](_0x2e924d))return'bulleted';if(Se['includes'](_0x2e924d))return'numbered';return null;}(_0x30f55f)['toUpperCase']()+'_LIST_'+_0x30f55f['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x4942e1{['afterInit'](){const _0x10714c=this['editor'];_0x10714c['commands']['get']('emoji')&&_0x10714c['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class X extends _0x4942e1{static get['requires'](){return[_0x35d2b7];}['init'](){const _0x5b3112=this['editor'],_0x2bcf70=_0x5b3112['plugins']['get']('TrackChangesEditing'),_0x8a6e35=_0x5b3112['commands']['get']('enter');_0x2bcf70['enableCommand']('enter',()=>{_0x5b3112['model']['change'](_0xaa3e24=>{const _0x1d7535=_0x5b3112['model']['document']['selection'],_0x365db6=_0x1d7535['getFirstPosition'](),_0x4f595f=_0x5bf397['fromRange'](_0x1d7535['getFirstRange']());if(_0x8a6e35['enterBlock'](_0xaa3e24)){const _0x1e1992=_0x5b3112['model']['createPositionAt'](_0x365db6['parent']['nextSibling'],0x0),_0x549832=_0xaa3e24['createRange'](_0x365db6,_0x1e1992);_0x2bcf70['markInsertion'](_0x549832);}else _0xaa3e24['setSelection'](_0xaa3e24['createRange'](_0x4f595f['end']));_0x4f595f['detach'](),_0x8a6e35['fire']('afterExecute',{'writer':_0xaa3e24});});});}}class Y extends _0x4942e1{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0xef61ff=this['editor']['plugins']['get']('TrackChangesEditing');_0xef61ff['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0xef61ff['enableCommand']('findNext'),_0xef61ff['enableCommand']('findPrevious'),_0xef61ff['enableCommand']('replace'),_0xef61ff['enableCommand']('replaceAll');}['handleFindCommand'](_0x47e6c0,_0x2e3041,_0x4ce9b7={}){const _0x5c64e0=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x47e6c0(_0x581deb=>{let _0x2b6e90=('string'==typeof _0x2e3041?_0x5c64e0['findByTextCallback'](_0x2e3041,_0x4ce9b7):_0x2e3041)(_0x581deb);Array['isArray'](_0x2b6e90)&&(_0x2b6e90={'results':_0x2b6e90,'searchText':'string'==typeof _0x2e3041?_0x2e3041:''});const _0x4f53f7=_0x2b6e90['results']['filter'](_0x2079a7=>!0x1===this['_isInDeletionRange'](_0x2079a7,_0x581deb['item']));return{..._0x2b6e90,'results':_0x4f53f7};},_0x4ce9b7);}['_isInDeletionRange'](_0xb759c9,_0x454a9f){const _0x11d428=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x454a9f,_0xb759c9['start']),this['editor']['model']['createPositionAt'](_0x454a9f,_0xb759c9['end']));for(const _0x44d257 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x11d428['getIntersection'](_0x44d257['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x4942e1{['afterInit'](){const _0x3a33d6=this['editor']['locale'],_0x46aa03=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x21d0d6,commandName:_0x11bdb4}of eo)this['editor']['plugins']['has'](_0x21d0d6)&&_0x46aa03['enableDefaultAttributesIntegration'](_0x11bdb4);_0x46aa03['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x3a33d6,'FORMAT_FONT_SIZE')),_0x46aa03['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x3a33d6,'FORMAT_FONT_FAMILY')),_0x46aa03['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x3a33d6,'FORMAT_FONT_COLOR')),_0x46aa03['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x3a33d6,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1dcd5c=this['editor'],_0x5d2d0b=_0x1dcd5c['locale'];_0x1dcd5c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5af66e=>{const _0x10eb49=_0x5d2d0b['t'];if('formatInline'!=_0x5af66e['type'])return;const {data:_0x39a57d}=_0x5af66e;if(null!=_0x39a57d){if('fontSize'==_0x39a57d['commandName']){const _0x3b1f85=_0x39a57d['commandParams'][0x0]['value'];if(_0x3b1f85){const _0x3d6b01=_0x10eb49(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1a6cfb=>_0x1a6cfb['model']==_0x3b1f85)['title'])['toLowerCase']();return{'type':'format','content':o(_0x5d2d0b,'*Set\x20font\x20size:*\x20%0',_0x3d6b01)};}return{'type':'format','content':o(_0x5d2d0b,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x39a57d['commandName']){const _0x57566e=_0x39a57d['commandParams'][0x0]['value'];return _0x57566e?{'type':'format','content':o(_0x5d2d0b,'*Set\x20font\x20family:*\x20%0',_0x57566e)}:{'type':'format','content':o(_0x5d2d0b,'*Reset\x20font\x20family*')};}if('fontColor'==_0x39a57d['commandName']){const _0x1213bb=_0x39a57d['commandParams'][0x0]['value'];if(_0x1213bb){const _0x5820dd=_0x45a464(this['editor']['config']['get']('fontColor.colors'))['find'](_0x1ffd15=>_0x1ffd15['model']==_0x1213bb);let _0x1a91a1=_0x1213bb,_0x2754ba='';return _0x5820dd&&(_0x1a91a1=_0x5820dd['label'],_0x2754ba=_0x10eb49(_0x1a91a1)['toLowerCase']()),{'type':'format','content':o(_0x5d2d0b,'*Set\x20font\x20color:*\x20%0',_0x2754ba)['trim'](),'color':{'value':_0x1213bb,'title':_0x2754ba||_0x1a91a1}};}return{'type':'format','content':o(_0x5d2d0b,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x39a57d['commandName']){const _0x379c5c=_0x39a57d['commandParams'][0x0]['value'];if(_0x379c5c){const _0xd5c867=_0x45a464(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x1cddb2=>_0x1cddb2['model']==_0x379c5c);let _0x341b6e=_0x379c5c,_0x30b573='';return _0xd5c867&&(_0x341b6e=_0xd5c867['label'],_0x30b573=_0x10eb49(_0x341b6e)['toLowerCase']()),{'type':'format','content':o(_0x5d2d0b,'*Set\x20font\x20background\x20color:*\x20%0',_0x30b573)['trim'](),'color':{'value':_0x379c5c,'title':_0x30b573||_0x341b6e}};}return{'type':'format','content':o(_0x5d2d0b,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x4942e1{['afterInit'](){const {plugins:_0x33b7b3}=this['editor'];_0x33b7b3['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x33b7b3['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x1a5941,plugins:_0x33031a,commands:_0x9390e7}=this['editor'],_0x5f5b9c=_0x33031a['get']('TrackChangesEditing');_0x9390e7['get']('footnotesStyle')&&_0x5f5b9c['enableDefaultAttributesIntegration']('footnotesStyle'),_0x9390e7['get']('footnotesStart')&&_0x5f5b9c['enableDefaultAttributesIntegration']('footnotesStart'),_0x5f5b9c['registerBlockAttribute']('footnotesListStyle'),_0x5f5b9c['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x1a5941,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x5f5b9c['registerBlockAttribute']('footnotesListStart'),_0x5f5b9c['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x1a5941,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x11118c=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0xbc6c42,commands:_0x55a313}=this['editor'];_0x55a313['get']('insertFootnote')&&_0x11118c['enableCommand']('insertFootnote'),_0x11118c['descriptionFactory']['registerElementLabel']('footnoteRef',_0x42fac1=>o(_0xbc6c42,'ELEMENT_FOOTNOTE_REF',_0x42fac1)),_0x11118c['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x3b399d=>o(_0xbc6c42,'ELEMENT_FOOTNOTE_DEFINITION',_0x3b399d)),_0x11118c['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x17933c=>o(_0xbc6c42,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x17933c));}}class nt extends _0x4942e1{['afterInit'](){const _0x59d712=this['editor'],_0x4a5661=_0x59d712['plugins']['get']('TrackChangesEditing'),_0x1234ca=_0x59d712['commands']['get']('copyFormat'),_0x3b9ae0=_0x59d712['commands']['get']('pasteFormat');_0x1234ca&&_0x3b9ae0&&(_0x4a5661['enableDefaultAttributesIntegration']('pasteFormat'),_0x4a5661['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x1dabbf=this['editor'],_0x479128=_0x1dabbf['locale'];_0x1dabbf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a53fe=>{if('formatBlock'!=_0x1a53fe['type']&&'formatInline'!=_0x1a53fe['type'])return;const {data:_0xd6ef27}=_0x1a53fe;if(_0xd6ef27&&'pasteFormat'===_0xd6ef27['commandName']){const _0x185097=[],_0x1825eb=_0xd6ef27['commandParams'][0x0];for(const [_0x5c5878,_0x40b272]of Object['entries'](_0x1825eb))_0x185097['push'](ro(_0x1dabbf,_0x5c5878,_0x40b272));return _0x185097['length']?{'type':'format','content':o(_0x479128,'*Set\x20format\x20to:*\x20%0',_0x185097['join'](',\x20'))}:{'type':'format','content':o(_0x479128,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x1492bd,_0xa3f737,_0x195e29){const _0x9ff65f=_0x1492bd['locale']['t'],_0x177579=_0xa3f737['split'](/(?=[A-Z])/)['join']('\x20'),_0x2387bb=_0x9ff65f(_0x177579['charAt'](0x0)['toUpperCase']()+_0x177579['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x195e29)return _0x2387bb;if('fontColor'===_0xa3f737||'fontBackgroundColor'===_0xa3f737){const _0x51de69=_0x45a464(_0x1492bd['config']['get']('fontColor.colors'))['find'](_0x36c825=>_0x36c825['model']==_0x195e29);return _0x2387bb+'\x20('+(_0x51de69?_0x9ff65f(_0x51de69['label'])['toLowerCase']():_0x195e29)+')';}if('fontSize'===_0xa3f737&&isNaN(parseFloat(_0x195e29))){const _0x404b44=_0x1492bd['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1492bd['config']['get']('fontSize.options'))['find'](_0x522443=>_0x522443['model']==_0x195e29);return _0x2387bb+'\x20('+(_0x404b44?_0x9ff65f(_0x404b44['title'])['toLowerCase']():_0x195e29)+')';}return _0x2387bb+'\x20('+_0x195e29+')';}class it extends _0x4942e1{['_headingOptions'];['afterInit'](){const _0x464a0b=this['editor'];if(!_0x464a0b['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x464a0b['config']['get']('heading.options');const _0x4c384a=_0x464a0b['locale'],_0x3c6195=_0x464a0b['plugins']['get']('TrackChangesEditing');_0x3c6195['enableDefaultAttributesIntegration']('heading');for(const _0x46be19 of this['_headingOptions'])'paragraph'!=_0x46be19['model']&&_0x3c6195['descriptionFactory']['registerElementLabel'](_0x46be19['model'],_0x53712e=>{const _0x3681f1=this['_getHeadingLevel'](_0x46be19['model']);return null!==_0x3681f1?_0x385465(_0x53712e,_0x3681f1):_0x5e1496(_0x53712e,_0x46be19['title']);});function _0x385465(_0x27eb3e,_0x1f5db9){return o(_0x4c384a,'ELEMENT_HEADING',[_0x27eb3e,_0x1f5db9]);}function _0x5e1496(_0x4b321d,_0x5038d0){return o(_0x4c384a,'ELEMENT_HEADING_CUSTOM',[_0x4b321d,_0x5038d0]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5dffef=this['editor'],_0x334378=_0x5dffef['locale'];function _0x4037d3(_0x155a03,_0x53ebb5){return o(_0x334378,'ELEMENT_HEADING_CUSTOM',[_0x155a03,_0x53ebb5]);}_0x5dffef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1924ba=>{if('formatBlock'!=_0x1924ba['type'])return;const {data:_0x44c80e}=_0x1924ba;if(_0x44c80e&&'heading'==_0x44c80e['commandName']){const _0xe36023=_0x44c80e['commandParams'][0x0]['value'],_0x2a3fd5=this['_getHeadingLevel'](_0xe36023);if(null!==_0x2a3fd5)return{'type':'format','content':o(_0x334378,'*Change\x20to:*\x20%0',(_0x3d4e37=0x1,_0xc787bc=_0x2a3fd5,o(_0x334378,'ELEMENT_HEADING',[_0x3d4e37,_0xc787bc])))};const _0xa2ed58=this['_headingOptions']['find'](_0x29bb44=>_0x29bb44['model']===_0xe36023)['title'];return{'type':'format','content':o(_0x334378,'*Change\x20to:*\x20%0',_0x4037d3(0x1,_0xa2ed58))};}var _0x3d4e37,_0xc787bc;});}['_getHeadingLevel'](_0x243cd6){const _0xaf2f75=_0x243cd6['match'](/^heading(\d+)/);if(_0xaf2f75)return _0xaf2f75[0x1];const _0x46848f=this['_headingOptions']?.['find'](_0x28f1a9=>_0x28f1a9['model']==_0x243cd6);if(_0x46848f&&_0x46848f['view']){const _0x800a76=_0x46848f['view'],_0x3d4b1c=(_0x800a76['name']??_0x800a76)['match'](/^h(\d+)/);if(_0x3d4b1c)return _0x3d4b1c[0x1];}return null;}}class et extends _0x4942e1{['afterInit'](){const _0x5e6392=this['editor'];if(!_0x5e6392['plugins']['has']('HighlightEditing'))return;const _0x546fc3=_0x5e6392['plugins']['get']('TrackChangesEditing'),_0xe505d4=_0x5e6392['locale'];_0x546fc3['enableDefaultAttributesIntegration']('highlight'),_0x546fc3['descriptionFactory']['registerAttributeLabel']('highlight',o(_0xe505d4,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x144712=this['editor'],_0x1b5417=_0x144712['locale'];_0x144712['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa279d8=>{if('formatInline'!=_0xa279d8['type'])return;const {data:_0x223551}=_0xa279d8;if(_0x223551&&'highlight'==_0x223551['commandName']){const _0x1865b3=_0x1b5417['t'],_0x440f2c=_0x223551['commandParams'][0x0]['value'];if(_0x440f2c){const _0x45b78e=_0x144712['config']['get']('highlight.options')['find'](_0x3c5a41=>_0x3c5a41['model']==_0x440f2c),_0x53e4ef=_0x1865b3(_0x45b78e['title'])['toLowerCase']();return{'type':'format','content':o(_0x1b5417,'*Set\x20highlight:*\x20%0',_0x53e4ef),'color':{'value':_0x45b78e['color'],'title':_0x45b78e['title']}};}return{'type':'format','content':o(_0x1b5417,'*Remove\x20highlight*',o(_0x1b5417,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x4942e1{['afterInit'](){const _0x1528c0=this['editor'];if(!_0x1528c0['plugins']['has']('HorizontalLineEditing'))return;_0x1528c0['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x5aaab4=_0x1528c0['plugins']['get']('TrackChangesEditing'),_0x1d688c=_0x1528c0['locale'];_0x5aaab4['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4d3fe4=>o(_0x1d688c,'ELEMENT_HORIZONTAL_LINE',_0x4d3fe4));}}class ot extends _0x4942e1{['afterInit'](){const _0x1d2536=this['editor'];if(!_0x1d2536['plugins']['has']('HtmlEmbed'))return;const _0xe8ae0c=_0x1d2536['plugins']['get']('TrackChangesEditing'),_0x213ca6=_0x1d2536['locale'];_0xe8ae0c['descriptionFactory']['registerElementLabel']('rawHtml',_0x5d51d0=>o(_0x213ca6,'ELEMENT_HTML_EMBED',_0x5d51d0)),_0xe8ae0c['enableDefaultAttributesIntegration']('htmlEmbed'),_0xe8ae0c['descriptionFactory']['registerDescriptionCallback'](_0x253dde=>{if('attribute'!=_0x253dde['type'])return;const {data:_0x3bb1a7}=_0x253dde;if(_0x3bb1a7&&'value'==_0x3bb1a7['key']&&_0x253dde['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x554861=o(_0x213ca6,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x213ca6,'*Change\x20%0\x20content*',_0x554861)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x39c6ff=this['editor'],_0x23295b=_0x39c6ff['locale'];_0x39c6ff['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5ca09d=>{if('formatBlock'!=_0x5ca09d['type'])return;const {data:_0x76dcf7}=_0x5ca09d;if(_0x76dcf7&&'htmlEmbed'==_0x76dcf7['commandName']){const _0x3d8ee9=o(_0x23295b,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x23295b,'*Change\x20%0\x20content*',_0x3d8ee9)};}});}}class rt extends _0x4942e1{['afterInit'](){const _0x5d3739=this['editor'];if(!_0x5d3739['plugins']['has']('ImageEditing'))return;const _0x42557d=_0x5d3739['plugins']['get']('TrackChangesEditing'),_0x43761d=_0x5d3739['plugins']['get']('ImageUtils'),_0x41c173=_0x5d3739['locale'];_0x42557d['enableCommand']('insertImage'),_0x42557d['descriptionFactory']['registerElementLabel']('imageBlock',_0x120906=>o(_0x41c173,'ELEMENT_IMAGE',_0x120906)),_0x42557d['descriptionFactory']['registerElementLabel']('imageInline',_0x50fe32=>o(_0x41c173,'ELEMENT_INLINE_IMAGE',_0x50fe32)),_0x42557d['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x41c173,'ELEMENT_CAPTION')),_0x5d3739['plugins']['has']('ImageUploadEditing')&&_0x42557d['enableCommand']('uploadImage'),_0x5d3739['plugins']['has']('ImageBlockEditing')&&_0x5d3739['plugins']['has']('ImageInlineEditing')&&(_0x42557d['enableCommand']('imageTypeInline',(_0x120e14,_0x190999)=>{const _0x5b5c4c=_0x43761d['getClosestSelectedImageElement'](_0x5d3739['model']['document']['selection']);_0x5d3739['model']['change'](()=>{_0x42557d['markBlockFormat'](_0x5b5c4c,{'commandName':'imageTypeInline','commandParams':[_0x190999]},[],'convertBlockImageToInline');});}),_0x42557d['enableCommand']('imageTypeBlock',(_0x134b78,_0x1f8a36)=>{_0x5d3739['model']['change'](_0x5429b9=>{let _0x2a89bd=_0x43761d['getClosestSelectedImageElement'](_0x5d3739['model']['document']['selection']),_0x50cb9c=_0x5429b9['createRangeOn'](_0x2a89bd);const _0x415cbc=_0x193721['fromPosition'](_0x50cb9c['start'],'toPrevious'),_0x473cea=_0x193721['fromPosition'](_0x50cb9c['end'],'toNext');_0x42557d['forceDefaultExecution'](()=>_0x134b78(_0x1f8a36)),_0x2a89bd=_0x43761d['getClosestSelectedImageElement'](_0x5d3739['model']['document']['selection']),_0x50cb9c=_0x5429b9['createRangeOn'](_0x2a89bd);const _0x48bf44=_0x5429b9['createRange'](_0x415cbc,_0x473cea);_0x415cbc['detach'](),_0x473cea['detach'](),_0x42557d['markBlockFormat'](_0x2a89bd,{'commandName':'imageTypeInline','commandParams':[_0x1f8a36]},[],'convertInlineImageToBlock'),_0x48bf44['start']['isBefore'](_0x50cb9c['start'])&&_0x42557d['markInsertion'](_0x5429b9['createRange'](_0x48bf44['start'],_0x50cb9c['start']),'convertInlineImageToBlock'),_0x50cb9c['end']['isBefore'](_0x48bf44['end'])&&_0x42557d['markInsertion'](_0x5429b9['createRange'](_0x50cb9c['end'],_0x48bf44['end']),'convertInlineImageToBlock');});}),_0x42557d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x42557d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x42557d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x42557d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x42557d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x42557d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4abd86])=>{const _0x76b593=_0x42557d['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x4e8470=_0x4abd86['start'],_0x1e9885=_0x4abd86['end'];const _0x54b2d5=_0x5d3739['model']['schema']['getNearestSelectionRange'](_0x4e8470,'backward'),_0x17854a=_0x5d3739['model']['schema']['getNearestSelectionRange'](_0x1e9885,'forward');_0x54b2d5['isCollapsed']&&(_0x4e8470=_0x54b2d5['start']),_0x17854a['isCollapsed']&&(_0x1e9885=_0x17854a['end']),_0x76b593([_0x5d3739['model']['createRange'](_0x4e8470,_0x1e9885)]);}),_0x42557d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xccdc97),_0x42557d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xccdc97)),_0x5d3739['plugins']['has']('ImageCaptionEditing')&&(_0x42557d['enableCommand']('toggleImageCaption',(_0x2cdb03,_0x19fb80)=>{const _0x5c2eeb=_0x5d3739['plugins']['get']('ImageCaptionUtils');let _0x2c04cc=_0x43761d['getClosestSelectedImageElement'](_0x5d3739['model']['document']['selection']),_0x4cba26=_0x5c2eeb['getCaptionFromImageModelElement'](_0x2c04cc);_0x5d3739['model']['change'](()=>{if(_0x4cba26)return void _0x42557d['markDeletion'](_0x5d3739['model']['createRangeOn'](_0x4cba26));const _0x2bc5c6=_0x43761d['isBlockImage'](_0x2c04cc);_0x2cdb03(_0x19fb80),_0x2c04cc=_0x43761d['getClosestSelectedImageElement'](_0x5d3739['model']['document']['selection']),_0x4cba26=_0x5c2eeb['getCaptionFromImageModelElement'](_0x2c04cc),_0x42557d['markInsertion'](_0x5d3739['model']['createRangeOn'](_0x4cba26),_0x2bc5c6?null:'imageCaption');});}),_0x42557d['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xccdc97));const _0x1b3e9b=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x44e80d(_0x4cfdc5,_0x3317e8){const _0x79b082=_0x1b3e9b['findIndex'](({type:_0x1cffaa,subType:_0x151a4f})=>_0x4cfdc5['type']==_0x1cffaa&&_0x4cfdc5['subType']==_0x151a4f),_0x2a16dc=_0x1b3e9b['findIndex'](({type:_0x1963be,subType:_0x2d1150})=>_0x3317e8['type']==_0x1963be&&_0x3317e8['subType']==_0x2d1150);if(_0x79b082<0x0||_0x2a16dc<0x0)return!0x1;const _0x33b7c7=_0x4cfdc5['getFirstRange'](),_0x2624b7=_0x3317e8['getFirstRange']();if((0x0==_0x79b082||0x1==_0x79b082)&&0x2==_0x2a16dc&&_0x33b7c7['isIntersecting'](_0x2624b7))return!0x0;if(0x2==_0x79b082&&0x3==_0x2a16dc){const _0xcd3bf=_0x42557d['_findSuggestions'](_0x33b7c7,'insertion')['filter'](({suggestion:_0x450c91,meta:_0x5e48a8})=>_0x5e48a8['isOwn']&&'convertInlineImageToBlock'==_0x450c91['subType']);if(_0xcd3bf['length']>0x1&&_0x2624b7['end']['isEqual'](_0x33b7c7['start']))return!0x0;if(0x1==_0xcd3bf['length']&&(_0x33b7c7['start']['isEqual'](_0x2624b7['end'])||_0x33b7c7['end']['isEqual'](_0x2624b7['start'])))return!0x0;}if(0x3==_0x79b082&&0x3==_0x2a16dc&&_0x33b7c7['start']['isBefore'](_0x2624b7['start'])){const _0x30b5bf=_0x33b7c7['end']['nodeAfter'],_0x2a1147=_0x2624b7['start']['nodeBefore'];return _0x43761d['isBlockImage'](_0x30b5bf)&&_0x30b5bf===_0x2a1147;}return!0x1;}function _0xccdc97(_0x28194a,_0x363cec){return _0x44e80d(_0x28194a,_0x363cec)?[_0x28194a,_0x363cec]:_0x44e80d(_0x363cec,_0x28194a)?[_0x363cec,_0x28194a]:null;}_0x5d3739['plugins']['has']('ImageResize')&&(_0x42557d['enableDefaultAttributesIntegration']('resizeImage'),_0x42557d['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x41c173,'FORMAT_IMAGE_SIZE'))),_0x5d3739['plugins']['has']('ImageTextAlternativeEditing')&&_0x42557d['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x5d3739['plugins']['has']('PictureEditing')&&_0x42557d['descriptionFactory']['registerDescriptionCallback'](_0x25df1f=>{if('attribute'!=_0x25df1f['type'])return;const {data:_0x18ce94}=_0x25df1f;return _0x18ce94&&'sources'==_0x18ce94['key']?{'type':'format','content':''}:void 0x0;}),_0x5d3739['plugins']['has']('ImageSizeAttributes')&&_0x42557d['descriptionFactory']['registerDescriptionCallback'](_0x5aea7e=>{if('attribute'!=_0x5aea7e['type'])return;const {data:_0x3e3751}=_0x5aea7e;return!_0x3e3751||'width'!=_0x3e3751['key']&&'height'!=_0x3e3751['key']?void 0x0:{'type':'format','content':''};}),_0x42557d['descriptionFactory']['registerDescriptionCallback'](_0x312a03=>{if(!!_0x1b3e9b['find'](({type:_0x382ecc,subType:_0x79d527})=>_0x312a03['type']==_0x382ecc&&_0x312a03['subType']==_0x79d527))return _0x312a03['previous']?{}:void 0x0;}),_0x42557d['descriptionFactory']['registerDescriptionCallback'](_0x1b7c33=>{if('insertion'==_0x1b7c33['type']||'deletion'==_0x1b7c33['type']){const _0x16d0dc=_0x1b7c33['getContainedElement']();if(_0x16d0dc&&_0x16d0dc['is']('element','caption'))return{'type':'insertion'==_0x1b7c33['type']?'addObject':'removeObject','element':_0x16d0dc,'quantity':0x1};}}),_0x42557d['descriptionFactory']['registerDescriptionCallback'](_0x2452ec=>'formatBlock'==_0x2452ec['type']&&'convertInlineImageToBlock'==_0x2452ec['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x2452ec['type']&&'convertBlockImageToInline'==_0x2452ec['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x42557d['descriptionFactory']['registerDescriptionCallback'](_0x26a1be=>{if('attribute'!=_0x26a1be['type'])return;const {data:_0x506f44}=_0x26a1be;if(!_0x506f44||'alt'!=_0x506f44['key'])return;const _0x2dacd9=_0x506f44['newValue'];return _0x2dacd9?{'type':'format','content':o(_0x41c173,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2dacd9+'\x22')}:{'type':'format','content':o(_0x41c173,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1d8a0f=this['editor'],_0x267f95=_0x1d8a0f['locale'];_0x1d8a0f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x185877=>{if('formatBlock'!=_0x185877['type']&&'formatInline'!=_0x185877['type'])return;const {data:_0xca92cb}=_0x185877;if(_0xca92cb){if('imageTextAlternative'==_0xca92cb['commandName']){const _0x22c7a3=_0xca92cb['commandParams'][0x0]['newValue'];return _0x22c7a3?{'type':'format','content':o(_0x267f95,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x22c7a3+'\x22')}:{'type':'format','content':o(_0x267f95,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0xca92cb['commandName']){const _0x1d114d=_0xca92cb['commandParams'][0x0]['width'];return _0x1d114d?{'type':'format','content':o(_0x267f95,'*Set\x20image\x20width:*\x20%0',_0x1d114d)}:{'type':'format','content':o(_0x267f95,'*Reset\x20image\x20width*')};}}});}}class at extends _0x4942e1{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x5d465e=this['editor']['locale'],_0x240e61=this['editor']['plugins']['get']('TrackChangesEditing');_0x240e61['enableDefaultAttributesIntegration']('replaceImageSource'),_0x240e61['descriptionFactory']['registerDescriptionCallback'](_0x574793=>{if('attribute'!=_0x574793['type'])return;const {data:_0x52baa1}=_0x574793;return _0x52baa1&&'src'==_0x52baa1['key']?_0x52baa1['newValue']&&_0x52baa1['oldValue']?{'type':'format','content':o(_0x5d465e,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x20960d=this['editor']['plugins']['get']('TrackChangesEditing');_0x20960d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x20960d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x20960d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x20960d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x198b0b=this['editor'],_0x2dfeb4=_0x198b0b['locale'];_0x198b0b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5113f0=>{if('formatBlock'!=_0x5113f0['type']&&'formatInline'!=_0x5113f0['type'])return;const {data:_0x29f26e}=_0x5113f0;if(!_0x29f26e||'replaceImageSource'!=_0x29f26e['commandName'])return;return{'type':'format','content':o(_0x2dfeb4,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x4942e1{['afterInit'](){const _0x3644a6=this['editor'];if(!_0x3644a6['plugins']['has']('ImageStyleEditing'))return;const _0xf52258=_0x3644a6['plugins']['get']('TrackChangesEditing'),_0x7821e0=_0x3644a6['plugins']['get']('ImageUtils'),_0x4786d5={};_0xf52258['enableCommand']('imageStyle',(_0x15bc5e,_0x4de02c)=>{const _0x223f35=_0x3644a6['plugins']['get']('Users')['me'],_0x25a3dd=_0x3644a6['commands']['get']('imageStyle');let _0x2db209=_0x7821e0['getClosestSelectedImageElement'](_0x3644a6['model']['document']['selection']),_0x9f6db9=_0x3644a6['model']['createRangeOn'](_0x2db209),_0x5247d6=_0x25a3dd['value'];if(_0x5247d6==_0x4de02c['value'])return;const _0x256e22={'commandName':'imageStyle','commandParams':[_0x4de02c],'formatGroupId':_0x512e19()};_0x3644a6['model']['change'](()=>{if(_0xf52258['getSuggestions']()['filter'](_0x2f003b=>_0x2f003b['isInContent']&&_0x223f35==_0x2f003b['author']&&('formatBlock'==_0x2f003b['type']||'formatInline'==_0x2f003b['type'])&&('imageStylePreApply'==_0x2f003b['subType']||'imageStylePostApply'==_0x2f003b['subType'])&&_0x2f003b['getFirstRange']()['isEqual'](_0x9f6db9))['forEach'](_0x2f8975=>_0xf52258['discardSuggestion'](_0x2f8975['head'])),_0x2db209=_0x7821e0['getClosestSelectedImageElement'](_0x3644a6['model']['document']['selection']),_0x9f6db9=_0x3644a6['model']['createRangeOn'](_0x2db209),_0x25a3dd['refresh'](),_0x3644a6['commands']['get']('imageTypeInline')['refresh'](),_0x3644a6['commands']['get']('imageTypeBlock')['refresh'](),_0x5247d6=_0x25a3dd['value'],_0x5247d6!=_0x4de02c['value'])return _0x7821e0['isInlineImage'](_0x2db209)&&_0x25a3dd['shouldConvertImageType'](_0x4de02c['value'],_0x2db209)?(_0x15bc5e({..._0x4de02c,'setImageSizes':!0x1}),_0x2db209=_0x7821e0['getClosestSelectedImageElement'](_0x3644a6['model']['document']['selection']),void _0xf52258['markBlockFormat'](_0x2db209,{..._0x256e22,'commandReversedParams':[{'value':_0x5247d6||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x7821e0['isBlockImage'](_0x2db209)?_0xf52258['markBlockFormat'](_0x2db209,_0x256e22,[],'imageStylePostApply'):_0xf52258['markInlineFormat'](_0x9f6db9,_0x256e22,'imageStylePostApply'));});});for(const _0x5ec2d4 of _0x3644a6['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4786d5[_0x5ec2d4['name']]=_0x5ec2d4['title']['toLowerCase']();_0xf52258['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0xf52258['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0xf52258['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0xf52258['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x5c529b])=>{_0x7821e0['setImageNaturalSizeAttributes'](_0x5c529b['getContainedElement']());}),_0xf52258['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x41da0c,_0x140ef2)=>{_0xf52258['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x41da0c,{'commandName':_0x140ef2['commandName'],'commandParams':_0x140ef2['commandReversedParams']});}),_0xf52258['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x2a0940,_0x51d51e){if(_0x2023da(_0x2a0940,_0x51d51e))return[_0x2a0940,_0x51d51e];if(_0x2023da(_0x51d51e,_0x2a0940))return[_0x51d51e,_0x2a0940];return null;});const _0x69b018=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2023da(_0x439c5d,_0x4f0edc){const _0xa6d295=_0x69b018['findIndex'](({type:_0x24b624,subType:_0x2aebf7})=>_0x439c5d['type']==_0x24b624&&_0x439c5d['subType']==_0x2aebf7),_0x1cf749=_0x69b018['findIndex'](({type:_0x5e54e1,subType:_0x3ac9c8})=>_0x4f0edc['type']==_0x5e54e1&&_0x4f0edc['subType']==_0x3ac9c8);if(_0xa6d295<0x0||_0x1cf749<0x0)return!0x1;const _0x3142b9=_0x439c5d['getFirstRange'](),_0x36c153=_0x4f0edc['getFirstRange']();if((0x0==_0xa6d295||0x1==_0xa6d295)&&0x2==_0x1cf749&&_0x3142b9['isIntersecting'](_0x36c153))return!0x0;if(0x2==_0xa6d295&&0x3==_0x1cf749){const _0x1ac15a=_0xf52258['_findSuggestions'](_0x3142b9,'insertion')['filter'](({suggestion:_0x112a35,meta:_0x235adf})=>_0x235adf['isOwn']&&'convertInlineImageToBlock'==_0x112a35['subType']);if(_0x1ac15a['length']>0x1&&_0x36c153['end']['isEqual'](_0x3142b9['start']))return!0x0;if(0x1==_0x1ac15a['length']&&(_0x3142b9['start']['isEqual'](_0x36c153['end'])||_0x3142b9['end']['isEqual'](_0x36c153['start'])))return!0x0;}if(0x3==_0xa6d295&&0x3==_0x1cf749&&_0x3142b9['start']['isBefore'](_0x36c153['start'])){const _0x3ad0b4=_0x3142b9['end']['nodeAfter'],_0x89d943=_0x36c153['start']['nodeBefore'];return _0x7821e0['isBlockImage'](_0x3ad0b4)&&_0x3ad0b4===_0x89d943;}return!0x1;}_0x3644a6['model']['document']['registerPostFixer'](()=>{let _0x1a5515=!0x1;const _0x494451=Array['from'](_0x3644a6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2517df,data:_0x35209b}of _0x494451){const {group:_0xa6d62d,type:_0x2aad5a,subType:_0x312b5e,id:_0x3fe45f}=_0xf52258['_splitMarkerName'](_0x2517df);if('suggestion'==_0xa6d62d&&_0xf52258['hasSuggestion'](_0x3fe45f)){if('formatBlock'==_0x2aad5a&&('imageStylePreApply'==_0x312b5e||'imageStylePostApply'==_0x312b5e)){const _0x2086d0=_0xf52258['getSuggestion'](_0x3fe45f);if(_0x35209b['newRange']){const _0x3eb78c=_0x2086d0['getFirstRange']()['getContainedElement']();if(_0x7821e0['isBlockImage'](_0x3eb78c))continue;_0xf52258['discardSuggestion'](_0x2086d0),_0x1a5515=!0x0;}}if('insertion'==_0x2aad5a&&'imageCaption'==_0x312b5e&&!_0x35209b['newRange']){const _0x139753=_0xf52258['getSuggestion'](_0x3fe45f);_0x139753['next']&&_0x139753['next']['isInContent']&&(_0xf52258['discardSuggestion'](_0x139753['next']),_0x1a5515=!0x0);}}}return _0x1a5515;}),this['_registerLegacyDescription'](_0x4786d5);}['_registerLegacyDescription'](_0x30b822){const _0x54a8ce=this['editor'],_0x2e7889=_0x54a8ce['locale'];_0x54a8ce['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3cdb99=>{if('formatBlock'!=_0x3cdb99['type']&&'formatInline'!=_0x3cdb99['type'])return;const {data:_0x5b839c}=_0x3cdb99;if(!_0x5b839c||'imageStyle'!=_0x5b839c['commandName'])return;const _0x41887c=_0x5b839c['commandParams'][0x0]['value'];return _0x1365e3('side'===_0x41887c?o(_0x2e7889,'FORMAT_SIDE_IMAGE'):_0x30b822[_0x41887c]||_0x41887c);function _0x1365e3(_0x21ca62){return{'type':'format','content':o(_0x2e7889,'*Format:*\x20%0',_0x21ca62)};}});}}class ut extends _0x4942e1{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x4a4146){super(_0x4a4146),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x3c88cd=this['editor'],_0x38eaf3=_0x3c88cd['commands']['get']('importWord'),_0x52110a=_0x3c88cd['commands']['get']('trackChanges');_0x38eaf3&&(_0x38eaf3['on']('execute',(_0x5461f4,[,_0x172a3d])=>{this['_trackChangesValueDuringImport']=_0x52110a['value'],_0x172a3d['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x38eaf3,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x38eaf3,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x52110a['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x3c88cd['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x2ce683,_0xc23ece){const {suggestions:_0x1b2414}=_0xc23ece,_0x29c54d=this['editor']['commands']['get']('trackChanges'),_0x30f2e1=_0x29c54d['value'];this['_trackChangesValueDuringImport']!==_0x30f2e1&&(_0x29c54d['execute'](),this['_trackChangesExecuted']=!0x0),_0x1b2414&&_0x1b2414['forEach'](({id:_0x566aa4,type:_0x2fa7e3,author:_0x2dfc3b,created_at:_0x338941})=>{const _0x263f4a={'id':_0x566aa4,'type':_0x2fa7e3,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2dfc3b,'createdAt':_0x338941?new Date(_0x338941):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x263f4a);});}}class ft extends _0x4942e1{['afterInit'](){const _0xd8369f=this['editor'],_0x3da642=_0xd8369f['plugins']['get']('TrackChangesEditing');if(_0xd8369f['plugins']['has']('IndentEditing')&&(_0x3da642['enableCommand']('indent'),_0x3da642['enableCommand']('outdent')),_0xd8369f['plugins']['has']('IndentBlock')){for(const _0x380a60 of['indentBlock','outdentBlock'])_0x3da642['enableDefaultAttributesIntegration'](_0x380a60);}const _0x2a56c0=_0xd8369f['locale'];_0x3da642['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x2a56c0,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf55138=this['editor'],_0x31ba03=_0xf55138['locale'],_0x322c7d=_0xf55138['plugins']['get']('TrackChangesEditing');_0x322c7d['descriptionFactory']['registerDescriptionCallback'](_0x1782b4=>{if('formatBlock'!=_0x1782b4['type'])return;const {data:_0x1035c2}=_0x1782b4;if(!_0x1035c2)return;if('indentBlock'!=_0x1035c2['commandName']&&'outdentBlock'!=_0x1035c2['commandName'])return;const _0x2d45da=_0x1782b4['getItems']()[0x0],_0x5932c2=_0x322c7d['descriptionFactory']['getItemLabel'](_0x2d45da);return'indentBlock'==_0x1035c2['commandName']?{'type':'format','content':o(_0x31ba03,'*Indent:*\x20%0',_0x5932c2)}:'outdentBlock'==_0x1035c2['commandName']?{'type':'format','content':o(_0x31ba03,'*Outdent:*\x20%0',_0x5932c2)}:void 0x0;});}}class ht extends _0x4942e1{static get['requires'](){return[_0x51147b];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x4942e1{['afterInit'](){const _0x3ac9f9=this['editor'];if(!_0x3ac9f9['plugins']['has']('LinkEditing'))return;const _0x2c1175=_0x3ac9f9['plugins']['get']('TrackChangesEditing'),_0xd83c09=_0x3ac9f9['commands']['get']('link');_0x2c1175['enableDefaultAttributesIntegration']('link'),_0x2c1175['enableDefaultAttributesIntegration']('unlink');for(const _0x150746 of _0xd83c09['manualDecorators'])_0x2c1175['descriptionFactory']['registerAttributeLabel'](_0x150746['id'],'link\x20('+_0x150746['label']['toLowerCase']()+')');_0x2c1175['descriptionFactory']['registerDescriptionCallback'](_0x20c5a0=>{if('attribute'!=_0x20c5a0['type'])return;const {data:_0x66f5fc}=_0x20c5a0;if(!_0x66f5fc||'linkHref'!=_0x66f5fc['key'])return;const _0x5d8b0e=_0x66f5fc['newValue'],_0x584b2=_0x3ac9f9['locale'];return{'type':'format','content':null==_0x5d8b0e?o(_0x584b2,'*Remove\x20link*'):o(_0x584b2,'*Set\x20link:*\x20%0','\x22'+_0x5d8b0e+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3f95a4=this['editor'],_0x1b48e3=_0x3f95a4['locale'];_0x3f95a4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x508824=>{if('formatInline'!=_0x508824['type'])return;const {data:_0x38a883}=_0x508824;if(_0x38a883){if('link'==_0x38a883['commandName']){const _0xc612d3=_0x38a883['commandParams'][0x0];return{'type':'format','content':o(_0x1b48e3,'*Set\x20link:*\x20%0','\x22'+_0xc612d3+'\x22')};}return'unlink'==_0x38a883['commandName']?{'type':'format','content':o(_0x1b48e3,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x4942e1{['afterInit'](){const _0x14f391=this['editor'],_0x5d650b=_0x14f391['locale'];if(!_0x14f391['plugins']['has']('LegacyListEditing'))return;const _0x3736db=_0x14f391['plugins']['get']('TrackChangesEditing'),_0x84ba69=_0x14f391['plugins']['has']('LegacyTodoListEditing');function _0x51f47b(_0x1615e5){return()=>{const _0x10a66c=_0x14f391['model']['document']['selection'],_0x1acf6d=_0x14f391['commands']['get'](_0x1615e5);if(_0x1acf6d['value'])return void _0x14f391['execute']('paragraph',{});const _0x373885=_0x1615e5['slice'](0x0,-0x4),_0x1b1d89=function(_0x18a230,_0x54dd54,_0x29c19c){let _0x25799d=Array['from'](_0x18a230)['filter'](_0x2595f7=>function(_0xb66703,_0xb43f8d){return _0xb43f8d['checkChild'](_0xb66703['parent'],'listItem')&&!_0xb43f8d['isObject'](_0xb66703);}(_0x2595f7,_0x29c19c));_0x25799d=_0x25799d['filter'](_0x5f5bc8=>!_0x5f5bc8['is']('element','listItem')||_0x5f5bc8['getAttribute']('listType')!=_0x54dd54);const _0x591661=new Set();for(const _0x33eca4 of _0x25799d)_0x33eca4['is']('element','listItem')?_0x591661['add'](Le(_0x33eca4)):_0x591661['add'](_0x33eca4);return Array['from'](_0x591661);}(_0x10a66c['getSelectedBlocks'](),_0x373885,_0x14f391['model']['schema']);_0x14f391['model']['change'](()=>{for(const _0x7ba87e of _0x1b1d89)_0x3736db['markBlockFormat'](_0x7ba87e,{'commandName':_0x1615e5,'commandParams':[{'forceValue':!_0x1acf6d['value']}],'formatGroupId':'blockName'},Ee(_0x7ba87e));});};}function _0x2fa3ff(_0x8212b0){return()=>{const _0x1f1bd9=function(_0x52be3f){let _0x5180e3=Array['from'](_0x52be3f);const _0x503183=_0x5180e3['findIndex'](_0x301c6b=>'listItem'!=_0x301c6b['name']);return _0x503183>-0x1&&(_0x5180e3=_0x5180e3['slice'](0x0,_0x503183)),_0x5180e3;}(_0x14f391['model']['document']['selection']['getSelectedBlocks']()),_0x556efa=_0x14f391['model']['createRange'](_0x14f391['model']['createPositionAt'](_0x1f1bd9[0x0],'before'),_0x14f391['model']['createPositionAt'](_0x1f1bd9[_0x1f1bd9['length']-0x1],'end'));_0x14f391['model']['change'](()=>{_0x3736db['markBlockFormat'](_0x556efa,{'commandName':_0x8212b0,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1bca62){const _0x4b6b61=new Set();for(const _0x28920c of _0x1bca62){let _0x42680d=_0x28920c['nextSibling'];for(;_0x42680d&&_0x42680d['getAttribute']('listIndent')>_0x28920c['getAttribute']('listIndent');)_0x4b6b61['add'](_0x42680d),_0x42680d=_0x42680d['nextSibling'];}return Array['from'](_0x4b6b61);}(_0x1f1bd9));});};}_0x3736db['enableCommand']('numberedList',_0x51f47b('numberedList')),_0x3736db['enableCommand']('bulletedList',_0x51f47b('bulletedList')),_0x84ba69&&_0x3736db['enableCommand']('todoList',_0x51f47b('todoList')),_0x3736db['enableCommand']('indentList',_0x2fa3ff('indentList')),_0x3736db['enableCommand']('outdentList',_0x2fa3ff('outdentList')),_0x84ba69&&_0x3736db['enableCommand']('checkTodoList',()=>{const _0x1fda2d=_0x14f391['commands']['get']('checkTodoList'),_0x4179ea=Array['from'](_0x1fda2d['_selectedElements']);_0x4179ea['filter'](_0x1024e5=>_0x1024e5['getAttribute']('todoListChecked')!=_0x1fda2d['value']),_0x14f391['model']['change'](()=>{for(const _0xaba2d5 of _0x4179ea)_0x3736db['markBlockFormat'](_0xaba2d5,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x1fda2d['value']}]});});}),_0x3736db['descriptionFactory']['registerElementLabel']('listItem',_0x2b0638=>o(_0x5d650b,'ELEMENT_LIST_ITEM',_0x2b0638)),_0x3736db['descriptionFactory']['registerDescriptionCallback'](_0x5f26f9=>{if('formatBlock'!=_0x5f26f9['type']&&'formatInline'!=_0x5f26f9['type'])return;const {data:_0x23c29e}=_0x5f26f9;if(_0x23c29e){if('numberedList'==_0x23c29e['commandName']||'bulletedList'==_0x23c29e['commandName']||'todoList'==_0x23c29e['commandName'])switch(_0x23c29e['commandName']['replace']('List','')){case'bulleted':return _0x48c806(o(_0x5d650b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x48c806(o(_0x5d650b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x48c806(o(_0x5d650b,'ELEMENT_TODO_LIST'));}if('indentList'==_0x23c29e['commandName'])return{'type':'format','content':o(_0x5d650b,'*Indent:*\x20%0',o(_0x5d650b,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x23c29e['commandName'])return{'type':'format','content':o(_0x5d650b,'*Outdent:*\x20%0',o(_0x5d650b,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x23c29e['commandName'])return _0x23c29e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5d650b,'*Check\x20item*')}:{'type':'format','content':o(_0x5d650b,'*Uncheck\x20item*')};}function _0x48c806(_0x40992e){return{'type':'format','content':o(_0x5d650b,'*Change\x20to:*\x20%0',_0x40992e)};}});}}function Le(_0x4eff3b){const _0x20adfc=_0x4eff3b['getAttribute']('listIndent');if(0x0==_0x20adfc)return _0x4eff3b;let _0x4ebb7f=_0x4eff3b;for(;_0x4eff3b['previousSibling']&&_0x4eff3b['previousSibling']['is']('element','listItem');){const _0x510c2e=_0x4eff3b['previousSibling']['getAttribute']('listIndent');if(_0x510c2e==_0x20adfc)_0x4ebb7f=_0x4eff3b['previousSibling'];else{if(_0x510c2e<_0x20adfc)break;}_0x4eff3b=_0x4eff3b['previousSibling'];}return _0x4ebb7f;}function Ee(_0x2d3735){const _0x5bdeee=[];if(_0x2d3735['is']('element','listItem')&&_0x2d3735['getAttribute']('listIndent')>0x0){let _0x52bd8c=_0x2d3735['nextSibling'];for(;_0x52bd8c&&'listItem'==_0x52bd8c['name']&&_0x52bd8c['getAttribute']('listIndent')==_0x2d3735['getAttribute']('listIndent');)_0x5bdeee['push'](_0x52bd8c),_0x52bd8c=_0x52bd8c['nextSibling'];}return _0x5bdeee;}class mt extends _0x4942e1{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x280233=this['editor']['config']['get']('list.properties'),_0xf35da2=this['editor']['plugins']['get']('TrackChangesEditing');_0x280233['styles']&&_0xf35da2['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x280233['reversed']&&_0xf35da2['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x280233['startIndex']&&_0xf35da2['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0xf35da2['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x5195a7,_0x3fc490={}){const _0x12c6df=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2b2bfb=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x12c6df['markMultiRangeBlockFormat'](_0x2b2bfb,{'commandName':'listStyle','commandParams':[{'type':_0x3fc490['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x582ffd,_0x5a5a77={}){const _0xb8d7e0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4ad568=this['_getSuggestionBlocks'](_0x145e7b=>_0x145e7b['is']('element','listItem')&&'numbered'===_0x145e7b['getAttribute']('listType'));if(_0x4ad568['length']<0x1)return;const _0x4c89ba=_0x4ad568['map'](_0x1f3516=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1f3516,'before'),this['editor']['model']['createPositionAt'](_0x1f3516,0x0)));this['editor']['model']['change'](()=>{_0xb8d7e0['markMultiRangeBlockFormat'](_0x4c89ba,{'commandName':'listReversed','commandParams':[{'reversed':_0x5a5a77['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x493c91,_0x369491={}){const _0x316cb0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4306f6=this['_getSuggestionBlocks'](_0x39e191=>_0x39e191['is']('element','listItem')&&'numbered'===_0x39e191['getAttribute']('listType'));if(_0x4306f6['length']<0x1)return;const _0x4107b2=_0x4306f6['map'](_0x4fe2e1=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4fe2e1,'before'),this['editor']['model']['createPositionAt'](_0x4fe2e1,0x0)));this['editor']['model']['change'](()=>{_0x316cb0['markMultiRangeBlockFormat'](_0x4107b2,{'commandName':'listStart','commandParams':[{'startIndex':_0x369491['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5cd692){if('formatBlock'!=_0x5cd692['type']&&'formatInline'!=_0x5cd692['type'])return;const _0x4f3925=this['editor']['locale'],{data:_0x297771}=_0x5cd692;if(!_0x297771)return;let _0x21423c,_0x42d83e;switch(_0x297771['commandName']){case'listStyle':_0x21423c='*Change\x20to:*\x20%0',_0x42d83e={'type':'format','content':o(_0x4f3925,_0x21423c,o(_0x4f3925,this['_getTranslationKeyForListStyle'](_0x297771['commandParams'][0x0]['type'])))};break;case'listReversed':_0x21423c=_0x297771['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x42d83e={'type':'format','content':o(_0x4f3925,_0x21423c)};break;case'listStart':_0x21423c='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x42d83e={'type':'format','content':o(_0x4f3925,_0x21423c,_0x297771['commandParams'][0x0]['startIndex'])};}return _0x42d83e;}['_getSuggestionBlocksForListStyle'](){const _0x310a02=this['editor']['plugins']['get']('LegacyListUtils');let _0x19971a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x19971a[0x0]?.['is']('element','listItem')&&_0x19971a['unshift'](..._0x310a02['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x19971a[_0x19971a['length']-0x1]?.['is']('element','listItem')&&_0x19971a['push'](..._0x310a02['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x19971a=[...new Set(_0x19971a)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x19971a=_0x19971a['filter'](_0x4b016d=>_0x4b016d['is']('element','listItem'))),_0x19971a;}['_getSuggestionBlocks'](_0x114502){const _0x57fc10=this['editor']['plugins']['get']('LegacyListUtils');let _0x3b8197=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x114502)['map'](_0x539a4f=>{const _0x1be5cb=this['editor']['model']['createPositionAt'](_0x539a4f,0x0);return[..._0x57fc10['getSiblingNodes'](_0x1be5cb,'backward'),..._0x57fc10['getSiblingNodes'](_0x1be5cb,'forward')];})['flat']();return _0x3b8197=[...new Set(_0x3b8197)],_0x3b8197;}['_getTranslationKeyForListStyle'](_0x20d522){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x20d522)||'default')['toUpperCase']()+'_LIST_'+_0x20d522['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x4942e1{['afterInit'](){const _0x1fa00d=this['editor'];if(!_0x1fa00d['plugins']['has']('MediaEmbedEditing'))return;const _0x7b195b=_0x1fa00d['plugins']['get']('TrackChangesEditing'),_0x343059=_0x1fa00d['locale'];_0x7b195b['enableCommand']('mediaEmbed'),_0x7b195b['descriptionFactory']['registerElementLabel']('media',_0x65f316=>o(_0x343059,'ELEMENT_MEDIA',_0x65f316));}}class pt extends _0x4942e1{['afterInit'](){const _0x2e68db=this['editor'];_0x2e68db['plugins']['has']('MentionEditing')&&_0x2e68db['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x4942e1{['afterInit'](){const _0x540acb=this['editor'];if(!_0x540acb['plugins']['has']('MergeFieldsEditing'))return;const _0x21904c=_0x540acb['plugins']['get']('TrackChangesEditing'),_0xd21505=_0x540acb['locale'];_0x21904c['enableCommand']('insertMergeField'),_0x21904c['enableCommand']('insertMergeFieldBlock'),_0x21904c['enableCommand']('insertMergeFieldImage'),_0x21904c['descriptionFactory']['registerElementLabel']('mergeField',_0x2b9fa8=>o(_0xd21505,'ELEMENT_MERGE_FIELD',_0x2b9fa8)),_0x21904c['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x56743b=>o(_0xd21505,'ELEMENT_MERGE_FIELD',_0x56743b)),_0x21904c['descriptionFactory']['registerDescriptionCallback'](_0x20cc0b=>{if('insertion'!=_0x20cc0b['type']&&'deletion'!=_0x20cc0b['type'])return;const _0x3322bf=_0x20cc0b['getContainedElement']();if(null==_0x3322bf)return;const _0x36b939=_0x540acb['plugins']['get']('MergeFieldsEditing');let _0x130a25;switch(_0x36b939['getMergeFieldType'](_0x3322bf)){case null:return;case'image':{const _0x5c64a6=_0x36b939['unwrapAffixes'](_0x3322bf['getAttribute']('src'));_0x130a25=_0x36b939['getLabel'](_0x5c64a6)||_0x5c64a6;break;}default:{const _0x584881=_0x3322bf['getAttribute']('id');_0x130a25=_0x36b939['getLabel'](_0x584881)||_0x584881;break;}}return'insertion'==_0x20cc0b['type']?{'type':'insertion','content':o(_0xd21505,'*Insert:*\x20%0','\x22'+_0x130a25+'\x22\x20'+o(_0xd21505,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0xd21505,'*Remove:*\x20%0','\x22'+_0x130a25+'\x22\x20'+o(_0xd21505,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x4942e1{['afterInit'](){const _0x103136=this['editor'],_0x45c084=_0x103136['plugins']['get']('TrackChangesEditing');_0x103136['plugins']['has']('MultiLevelList')&&(_0x45c084['enableDefaultAttributesIntegration']('multiLevelList'),_0x45c084['descriptionFactory']['registerDescriptionCallback'](_0x547bc0=>this['handleDescriptions'](_0x547bc0)));}['handleDescriptions'](_0x3c6991){const _0x25e2ab=this['editor']['locale'],{data:_0x89c143}=_0x3c6991,_0x25e640={'type':'format','content':''};if(_0x89c143&&'listMarkerStyle'==_0x89c143['key']){if(!_0x89c143['oldValue'])return{'type':'format','content':o(_0x25e2ab,'*Set\x20format:*\x20%0',o(_0x25e2ab,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x89c143['newValue']+')'};if(!_0x89c143['newValue']){let _0x502205=_0x3c6991['head'];for(;_0x502205;){if(_0x502205['data']&&'listType'==_0x502205['data']['key']&&_0x502205['data']['newValue'])return _0x25e640;_0x502205=_0x502205['next'];}return{'type':'format','content':o(_0x25e2ab,'*Remove\x20format:*\x20%0',o(_0x25e2ab,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x89c143['oldValue']+')'};}}}}class bt extends _0x4942e1{['afterInit'](){const _0x1917e7=this['editor'];if(!_0x1917e7['plugins']['has']('PageBreakEditing'))return;_0x1917e7['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x506fab=_0x1917e7['plugins']['get']('TrackChangesEditing'),_0x3e54dc=_0x1917e7['locale'];_0x506fab['descriptionFactory']['registerElementLabel']('pageBreak',_0xc19076=>o(_0x3e54dc,'ELEMENT_PAGE_BREAK',_0xc19076));}}class yt extends _0x4942e1{['afterInit'](){const _0x21bd80=this['editor'];if(!_0x21bd80['plugins']['has']('Paragraph'))return;const _0x248e4e=_0x21bd80['locale'],_0x2384cc=_0x21bd80['plugins']['get']('TrackChangesEditing');_0x2384cc['descriptionFactory']['registerElementLabel']('paragraph',_0x2dcdae=>o(_0x248e4e,'ELEMENT_PARAGRAPH',_0x2dcdae)),_0x2384cc['enableDefaultAttributesIntegration']('paragraph'),_0x2384cc['enableCommand']('insertParagraph');const _0x2bd9ac=_0x2384cc['descriptionFactory'];_0x2bd9ac['registerDescriptionCallback'](_0x34628c=>{if('insertion'!==_0x34628c['type'])return;const {start:_0x59d626,end:_0x367e81}=_0x34628c['getFirstRange']();if(!_0x59d626['isTouching'](_0x367e81)||!_0x59d626['nodeAfter'])return;const _0x2d4f40=_0x21bd80['model']['schema'],_0x220f43=_0x59d626['nodeAfter'];return _0x2d4f40['isBlock'](_0x220f43)&&!_0x2d4f40['isLimit'](_0x220f43)&&_0x2d4f40['checkChild'](_0x220f43,'$text')?{'type':'insertion','content':o(_0x248e4e,'*Insert:*\x20%0',_0x2bd9ac['getItemLabel'](_0x220f43,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c0aff=this['editor'],_0x470699=_0x2c0aff['locale'];_0x2c0aff['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x199900=>{if('formatBlock'!=_0x199900['type'])return;const {data:_0xfe4555}=_0x199900;return _0xfe4555&&'paragraph'==_0xfe4555['commandName']?{'type':'format','content':o(_0x470699,'*Change\x20to:*\x20%0',o(_0x470699,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class jt extends _0x4942e1{['afterInit'](){const _0x102d48=this['editor'];_0x102d48['commands']['get']('replaceSource')&&_0x102d48['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x4942e1{['afterInit'](){const _0x16455a=this['editor'];if(!_0x16455a['plugins']['has']('RemoveFormatEditing'))return;_0x16455a['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2ef3d8=this['editor'];_0x2ef3d8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x30f4f1=>{if('formatBlock'!=_0x30f4f1['type']&&'formatInline'!=_0x30f4f1['type'])return;const {data:_0x50e14f}=_0x30f4f1;return _0x50e14f&&'removeFormat'==_0x50e14f['commandName']?{'type':'format','content':o(_0x2ef3d8['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x4942e1{['afterInit'](){const _0x4158a9=this['editor'];if(!_0x4158a9['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3e6c4a=_0x4158a9['plugins']['get']('TrackChangesEditing');_0x3e6c4a['enableCommand']('goToPreviousRestrictedEditingException'),_0x3e6c4a['enableCommand']('goToNextRestrictedEditingException');const _0x50a5b4=_0x4158a9['plugins']['get']('RestrictedEditingModeEditing');_0x50a5b4['enableCommand']('trackChanges'),_0x50a5b4['enableCommand']('acceptSuggestion'),_0x50a5b4['enableCommand']('discardSuggestion'),_0x50a5b4['enableCommand']('acceptAllSuggestions'),_0x50a5b4['enableCommand']('discardAllSuggestions'),_0x50a5b4['enableCommand']('acceptSelectedSuggestions'),_0x50a5b4['enableCommand']('discardSelectedSuggestions');}}class At extends _0x4942e1{['afterInit'](){const _0x15264a=this['editor'];if(!_0x15264a['plugins']['has']('ShiftEnter'))return;const _0x5b291b=_0x15264a['plugins']['get']('TrackChangesEditing');_0x5b291b['enableCommand']('shiftEnter'),_0x5b291b['descriptionFactory']['registerElementLabel']('softBreak',_0x106921=>o(_0x15264a['locale'],'ELEMENT_LINE_BREAK',_0x106921));}}function an(_0xeeff30,_0x1b1bc3,_0x2744c3){const _0x256bff=[];for(const _0x1e80bf of _0x1b1bc3['getItems']())_0x1e80bf['hasAttribute'](_0xeeff30)&&_0x256bff['push'](_0x2744c3['createRangeOn'](_0x1e80bf));return _0x256bff;}class _t extends _0x4942e1{['afterInit'](){this['editor']['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand']());}['_enableEditingExceptionCommand'](){const _0x385bc4=this['editor'],_0x2dd961=_0x385bc4['model'],_0x55a175=_0x385bc4['locale'],_0x164686=_0x385bc4['plugins']['get']('TrackChangesEditing'),_0x3b65fa='restrictedEditingException',_0x118a84=_0x385bc4['commands']['get'](_0x3b65fa);_0x164686['enableCommand'](_0x3b65fa,(_0x4584bd,_0x2e7d62={})=>{const _0x160655=_0x2dd961['document']['selection'];if(_0x160655['isCollapsed'])return void _0x4584bd(_0x2e7d62);const _0xf5ad3e=void 0x0!==_0x2e7d62['forceValue']?_0x2e7d62['forceValue']:!_0x118a84['value'];_0x2dd961['change'](()=>{const _0x2eea0b=Array['from'](_0x160655['getRanges']());for(const _0x5a863c of _0x2eea0b){const _0x267b1d=_0xf5ad3e?[_0x5a863c]:an(_0x3b65fa,_0x5a863c,_0x2dd961);for(const _0x45b0ba of _0x267b1d)_0x164686['markInlineFormat'](_0x45b0ba,{'commandName':_0x3b65fa,'commandParams':[{'forceValue':_0xf5ad3e}]});}});}),_0x164686['descriptionFactory']['registerDescriptionCallback'](_0x14378e=>{if('formatBlock'!=_0x14378e['type']&&'formatInline'!=_0x14378e['type'])return;const {data:_0x42be8e}=_0x14378e;return _0x42be8e&&_0x42be8e['commandName']==_0x3b65fa?_0x42be8e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x55a175,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x55a175,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x554377=this['editor'],_0x594a01=_0x554377['locale'],_0x48fab2=_0x554377['plugins']['get']('TrackChangesEditing'),_0x30b1c9='restrictedEditingExceptionBlock',_0x52dd14=this['editor']['commands']['get'](_0x30b1c9);_0x48fab2['enableCommand'](_0x30b1c9,(_0x4edaae,_0xd16013={})=>{const _0x53eccd=this['editor']['model']['document']['selection'],_0x5e155a=_0xd16013&&void 0x0!==_0xd16013['forceValue']?_0xd16013['forceValue']:!_0x52dd14['value'];let _0x49a14a=[];if(_0x5e155a){const _0x241160=Array['from'](_0x53eccd['getSelectedBlocks']())['filter'](_0x1a7361=>function(_0x5ddfcf){return!!_0x5ddfcf['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x1a7361)||function(_0x1a5f25,_0x3565df){const _0x3d089a=_0x3565df['createContext'](_0x1a5f25['parent']);if(!_0x3565df['checkChild'](_0x3d089a,'restrictedEditingException'))return!0x1;if(!_0x3565df['checkChild'](_0x3d089a['push']('restrictedEditingException'),_0x1a5f25))return!0x1;return!0x0;}(_0x1a7361,this['editor']['model']['schema']));_0x49a14a=to(_0x241160,_0x554377['model']);}else{const _0x7edb89=Array['from'](_0x53eccd['getSelectedBlocks']())['map'](_0x4ca87e=>function(_0x5622e8){let _0x4c0a00=_0x5622e8;for(;_0x4c0a00['parent'];){if('restrictedEditingException'==_0x4c0a00['parent']['name'])return _0x4c0a00;_0x4c0a00=_0x4c0a00['parent'];}return null;}(_0x4ca87e))['filter'](_0x40bf0f=>!!_0x40bf0f);_0x49a14a=to(_0x7edb89,_0x554377['model']);}_0x554377['model']['change'](()=>{for(const _0x15b6a2 of _0x49a14a)_0x48fab2['markBlockFormat'](_0x15b6a2,{'commandName':_0x30b1c9,'commandParams':[{'forceValue':_0x5e155a}]});});}),_0x48fab2['descriptionFactory']['registerDescriptionCallback'](_0x23ef31=>{const {data:_0x272b0c}=_0x23ef31;if(_0x272b0c&&_0x272b0c['commandName']==_0x30b1c9)return _0x272b0c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x594a01,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x594a01,'FORMAT_RESTRICTED_DISABLED')};});}}class Ct extends _0x4942e1{['afterInit'](){const _0x582273=this['editor'];if(!_0x582273['plugins']['has']('Style')||!_0x582273['plugins']['has']('DataSchema'))return;const _0x4e4f45=_0x582273['plugins']['get']('TrackChangesEditing'),_0x239b11=_0x582273['locale'],_0x5dfaf3=_0x582273['config']['get']('style')||{},_0x4e5100=_0x582273['plugins']['get']('GeneralHtmlSupport'),_0x5c3133=_0x582273['plugins']['get']('StyleUtils')['normalizeConfig'](_0x582273['plugins']['get']('DataSchema'),_0x5dfaf3['definitions']);_0x4e4f45['enableDefaultAttributesIntegration']('style');const _0xf6ad44=new Set();for(const _0x10acde of _0x5c3133['block']){const _0x11e530=_0x4e5100['getGhsAttributeNameForElement'](_0x10acde['element']);_0xf6ad44['add'](_0x11e530);}const _0x1b025e=new Set();for(const _0x5f1b8f of _0x5c3133['inline']){const _0x46dda2=_0x4e5100['getGhsAttributeNameForElement'](_0x5f1b8f['element']);_0x1b025e['add'](_0x46dda2);for(const _0x348161 of _0x5f1b8f['ghsAttributes'])_0x1b025e['add'](_0x348161);}for(const _0x5d036f of _0xf6ad44)_0x4e4f45['descriptionFactory']['registerAttributeLabel'](_0x5d036f,o(_0x239b11,'FORMAT_STYLE'));for(const _0x32451a of _0x1b025e)_0x4e4f45['descriptionFactory']['registerAttributeLabel'](_0x32451a,o(_0x239b11,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c30c4=this['editor'],_0x42c1ce=_0x1c30c4['locale'];_0x1c30c4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x328c61=>{if('formatBlock'!=_0x328c61['type']&&'formatInline'!=_0x328c61['type'])return;const {data:_0x3b04f0}=_0x328c61;return _0x3b04f0&&'style'===_0x3b04f0['commandName']?_0x3b04f0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x42c1ce,'*Set\x20format:*\x20%0',_0x3b04f0['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x42c1ce,'*Remove\x20format:*\x20%0',_0x3b04f0['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Nt extends _0x4942e1{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x7fdc74){super(_0x7fdc74),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x23fbf0=this['editor'],_0x3fe5e9=_0x23fbf0['model']['document']['selection'];if(!_0x23fbf0['plugins']['has']('TableEditing'))return;const _0x1d5a19=_0x23fbf0['locale'],_0x2e51a6=_0x23fbf0['plugins']['get']('TrackChangesEditing'),_0xcdcb74=_0x23fbf0['plugins']['get']('TableUtils');_0x2e51a6['descriptionFactory']['registerElementLabel']('table',_0x572d62=>o(_0x1d5a19,'ELEMENT_TABLE',_0x572d62)),this['_setupColumnsRowsFixing'](),_0x2e51a6['enableCommand']('insertTable'),_0x2e51a6['enableCommand']('selectTableRow'),_0x2e51a6['enableCommand']('selectTableColumn');for(const _0x33d08c of['insertTableRowAbove','insertTableRowBelow']){const _0x43cb74=_0x23fbf0['commands']['get'](_0x33d08c);_0x2e51a6['enableCommand'](_0x33d08c,_0x458fdd=>{_0x23fbf0['model']['change'](_0x4c4a59=>{_0x458fdd();const _0xec28dd='above'===_0x43cb74['order'],_0x58110f=_0xcdcb74['getSelectionAffectedTableCells'](_0x3fe5e9),_0x3de82d=_0xcdcb74['getRowIndexes'](_0x58110f),_0x35ab69=_0xec28dd?_0x3de82d['first']-0x1:_0x3de82d['last']+0x1,_0x2ccb17=_0x58110f[0x0]['findAncestor']('table'),_0x1c56c3=_0xcdcb74['createTableWalker'](_0x2ccb17,{'startRow':_0x35ab69,'endRow':_0x35ab69}),_0x5dd239=Array['from'](_0x1c56c3)['map'](_0x263ff3=>_0x4c4a59['createRangeOn'](_0x263ff3['cell']));_0x2e51a6['markMultiRangeInsertion'](_0x5dd239,'tableRow');});});}for(const _0x14d0e3 of['insertTableColumnLeft','insertTableColumnRight']){const _0x13773e=_0x23fbf0['commands']['get'](_0x14d0e3);_0x2e51a6['enableCommand'](_0x14d0e3,_0x500de4=>{_0x23fbf0['model']['change'](_0x298e0c=>{_0x500de4();const _0x577b3e='left'===_0x13773e['order'],_0x2cb285=_0xcdcb74['getSelectionAffectedTableCells'](_0x3fe5e9),_0x1aa9a2=_0xcdcb74['getColumnIndexes'](_0x2cb285),_0x3be576=_0x577b3e?_0x1aa9a2['first']-0x1:_0x1aa9a2['last']+0x1,_0x4b81e8=_0x2cb285[0x0]['findAncestor']('table'),_0x2f8378=_0xcdcb74['createTableWalker'](_0x4b81e8,{'startRow':0x0,'column':_0x3be576,'includeAllSlots':!0x1}),_0x9d9cb4=Array['from'](_0x2f8378)['map'](_0x5df361=>_0x298e0c['createRangeOn'](_0x5df361['cell']));_0x2e51a6['markMultiRangeInsertion'](_0x9d9cb4,'tableColumn');});});}for(const _0x4abd15 of['removeTableRow','removeTableColumn']){const _0x4ffe9b=_0x4abd15['substr'](0xb),_0x56d345=_0x4ffe9b['toLowerCase'](),_0x23465e=_0x56d345['substr'](0x0,0x3)+'span',_0x6c9991='table'+_0x4ffe9b,_0x4f45e='min'+_0x4ffe9b,_0x216bb2='max'+_0x4ffe9b;_0x2e51a6['enableCommand'](_0x4abd15,()=>{_0x23fbf0['model']['change'](_0x1f0fa1=>{const _0x27abd2=_0xcdcb74['getSelectionAffectedTableCells'](_0x3fe5e9),_0x38ec13=_0x27abd2[0x0]['findAncestor']('table');let _0x2c6982;if('removeTableRow'==_0x4abd15){const _0x52e900=_0xcdcb74['getRowIndexes'](_0x27abd2);_0x2c6982={'startRow':_0x52e900['first'],'endRow':_0x52e900['last'],'includeAllSlots':!0x0};}else{const _0x56022a=_0xcdcb74['getColumnIndexes'](_0x27abd2);_0x2c6982={'startColumn':_0x56022a['first'],'endColumn':_0x56022a['last'],'includeAllSlots':!0x0};}const _0x5054a5=_0xcdcb74['createTableWalker'](_0x38ec13,_0x2c6982),_0x2cda03=Array['from'](_0x5054a5)['map'](({cell:_0x5a613d})=>_0x5a613d),_0xee7d22=_e(_0x2cda03['filter'](_0x54e7db=>_0x54e7db['hasAttribute'](_0x23465e))),_0x9251f0=_e(_0x2cda03['filter'](_0x2f6579=>!_0x2f6579['hasAttribute'](_0x23465e)))['map'](_0x5ee142=>_0x1f0fa1['createRangeOn'](_0x5ee142)),_0x2209e3=_0x2e51a6['markMultiRangeDeletion'](_0x9251f0,_0x6c9991);if(_0x2209e3&&('tableRow'==_0x2209e3['subType']||'tableColumn'==_0x2209e3['subType'])){const _0x4853cb=this['_getSuggestionCoords'](_0x2209e3);for(const _0x5214ef of _0xee7d22){const _0x3bc448=_0x1f0fa1['createRangeOn'](_0x5214ef),_0x23c621=_0xcdcb74['getCellLocation'](_0x5214ef),_0x3a9ad6=_0x5214ef['getAttribute'](_0x23465e)-0x1,_0x5d6e77=_0x4853cb[_0x4f45e],_0x4b0bbb=_0x4853cb[_0x216bb2];_0x5d6e77<=_0x23c621[_0x56d345]&&_0x23c621[_0x56d345]+_0x3a9ad6<=_0x4b0bbb&&_0x2209e3['addRange'](_0x3bc448);}}});});}function _0x32ce30(_0x41e941){const _0x398626=Array['from'](_0x3fe5e9['getRanges']())['map'](_0x78c44a=>_0x5bf397['fromRange'](_0x78c44a));_0x23fbf0['model']['change'](_0x44a065=>{const _0x5e90c4=_0x44a065['batch'];_0x41e941=_0x41e941['filter'](_0x21a19d=>'$graveyard'!=_0x21a19d['root']['rootName']),_0x44a065['setSelection'](_0x41e941),_0x23fbf0['commands']['get']('removeTableRow')['refresh'](),_0x23fbf0['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x23fbf0['model']['enqueueChange'](()=>{_0x23fbf0['model']['enqueueChange'](_0x5e90c4,_0x226542=>{const _0x1a42a0=_0x398626['filter'](_0x5773aa=>'$graveyard'!=_0x5773aa['root']['rootName']);_0x1a42a0['length']>0x0&&_0x226542['setSelection'](_0x1a42a0);for(const _0xdcb4db of _0x398626)_0xdcb4db['detach']();});});});}function _0x18a8a5(_0x3bbd44){_0x23fbf0['model']['change'](_0x2d2883=>{const _0x33033b=Array['from'](_0x3fe5e9['getRanges']())['map'](_0x5aabbe=>_0x5bf397['fromRange'](_0x5aabbe)),_0x215544=[];for(const _0xfce56f of _0x3bbd44)for(const _0x56e76c of _0xfce56f['getItems']({'shallow':!0x0}))_0x215544['push'](_0x56e76c);for(const _0x40f949 of _0x215544)'$graveyard'!=_0x40f949['root']['rootName']&&(_0x2d2883['setSelection'](_0x2d2883['createPositionAt'](_0x40f949,0x0)),_0x23fbf0['commands']['get']('removeTableColumn')['refresh'](),_0x23fbf0['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x10b227=_0x33033b['filter'](_0x34fe34=>'$graveyard'!=_0x34fe34['root']['rootName']);_0x10b227['length']>0x0&&_0x2d2883['setSelection'](_0x10b227);for(const _0x41ab73 of _0x33033b)_0x41ab73['detach']();});}function _0x263432(_0x4a7af9,_0x2d87c3){return _0x2d87c3['every'](_0x1fd58e=>_0x4a7af9['some'](_0x102e86=>_0x102e86['end']['isEqual'](_0x1fd58e['start'])||_0x1fd58e['end']['isEqual'](_0x102e86['start'])));}function _0x2e8865(_0x46e079,_0x146ec4){return!_0x46e079['some'](_0x224b23=>_0x146ec4['some'](_0x136c6f=>_0x224b23['isIntersecting'](_0x136c6f)))&&_0x46e079['some'](_0x2b964b=>_0x146ec4['some'](_0x30fff6=>_0x2b964b['end']['isTouching'](_0x30fff6['start'])));}_0x2e51a6['descriptionFactory']['registerDescriptionCallback'](_0x29d4bd=>{if('insertion'!=_0x29d4bd['type']&&'deletion'!=_0x29d4bd['type'])return;const _0x6f719f=_0x29d4bd['getContainedElement']();if(null!=_0x6f719f&&_0x6f719f['is']('element','table')){if('insertion'==_0x29d4bd['type']){const _0x118044=_0x29d4bd['getItems']()['filter'](_0x38eb0c=>_0x38eb0c['is']('$textProxy'))['map'](_0x5b6d04=>_0x5b6d04['data']);if(_0x118044['length'])return{'type':'insertion','content':o(_0x1d5a19,'*Insert:*\x20%0',o(_0x1d5a19,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x118044['join']('\x20')+'\x22'))};}if('deletion'==_0x29d4bd['type']){const _0x4836ca=_0x29d4bd['getItems']()['filter'](_0xbd3626=>_0xbd3626['is']('$textProxy'))['map'](_0x12d00d=>_0x12d00d['data']);if(_0x4836ca['length'])return{'type':'deletion','content':o(_0x1d5a19,'*Remove:*\x20%0',o(_0x1d5a19,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4836ca['join']('\x20')+'\x22'))};}}}),_0x2e51a6['descriptionFactory']['registerDescriptionCallback'](_0x1bc525=>{if('tableRow'==_0x1bc525['subType']){const _0x496725=_0x1bc525['getItems']()['filter'](_0x59c6e2=>_0x59c6e2['is']('$textProxy'))['map'](_0x5864ba=>_0x5864ba['data']),_0x21e45d=this['_getSuggestionCoords'](_0x1bc525),_0x18a15c=_0x21e45d['maxRow']-_0x21e45d['minRow']+0x1;if('insertion'==_0x1bc525['type'])return _0x496725['length']?{'type':'insertion','content':o(_0x1d5a19,'*Insert:*\x20%0',o(_0x1d5a19,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x18a15c,'\x22'+_0x496725['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1d5a19,'*Insert:*\x20%0',o(_0x1d5a19,'ELEMENT_TABLE_ROW',_0x18a15c))};if('deletion'==_0x1bc525['type'])return _0x496725['length']?{'type':'deletion','content':o(_0x1d5a19,'*Remove:*\x20%0',o(_0x1d5a19,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x18a15c,'\x22'+_0x496725['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1d5a19,'*Remove:*\x20%0',o(_0x1d5a19,'ELEMENT_TABLE_ROW',_0x18a15c))};}if('tableColumn'==_0x1bc525['subType']){const _0x4910ac=_0x1bc525['getItems']()['filter'](_0x3aca4e=>_0x3aca4e['is']('$textProxy'))['map'](_0xddab78=>_0xddab78['data']),_0x1f7ab2=this['_getSuggestionCoords'](_0x1bc525),_0x567112=_0x1f7ab2['maxColumn']-_0x1f7ab2['minColumn']+0x1;if('insertion'==_0x1bc525['type'])return _0x4910ac['length']?{'type':'insertion','content':o(_0x1d5a19,'*Insert:*\x20%0',o(_0x1d5a19,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x567112,'\x22'+_0x4910ac['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1d5a19,'*Insert:*\x20%0',o(_0x1d5a19,'ELEMENT_TABLE_COLUMN',_0x567112))};if('deletion'==_0x1bc525['type'])return _0x4910ac['length']?{'type':'deletion','content':o(_0x1d5a19,'*Remove:*\x20%0',o(_0x1d5a19,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x567112,'\x22'+_0x4910ac['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1d5a19,'*Remove:*\x20%0',o(_0x1d5a19,'ELEMENT_TABLE_COLUMN',_0x567112))};}}),_0x2e51a6['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x32ce30),_0x2e51a6['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x32ce30),_0x2e51a6['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x18a8a5),_0x2e51a6['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x18a8a5),_0x2e51a6['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x263432),_0x2e51a6['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x263432),_0x2e51a6['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x2e8865),_0x2e51a6['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x2e8865);}['_acceptFormatSuggestionCallbackFactory'](){const _0x846e8c=this['editor'],_0xfe4b95=_0x846e8c['model']['document']['selection'];return(_0x32ae89,_0x99fba1)=>{_0x846e8c['model']['change'](_0x2920c8=>{const {commandName:_0x2db8ff,commandParams:_0x18eae5}=_0x99fba1;let _0x12ec1e=_0x32ae89[0x0]['end']['nodeBefore'];_0x18eae5&&_0x18eae5[0x0]&&!0x1===_0x18eae5[0x0]['forceValue']&&(_0x12ec1e=_0x32ae89[0x0]['start']['nodeAfter']);const _0x19316f=_0x2920c8['createRangeIn'](_0x12ec1e);if('$graveyard'==_0x19316f['root']['rootName'])return;const _0x1f2ad9=Array['from'](_0xfe4b95['getRanges']())['map'](_0x37b127=>_0x5bf397['fromRange'](_0x37b127));_0x2920c8['setSelection'](_0x19316f),_0x846e8c['commands']['get'](_0x2db8ff)['refresh'](),_0x18eae5['push']({'forceDefaultExecution':!0x0}),_0x846e8c['execute'](_0x2db8ff,..._0x18eae5);const _0x5de560=_0x1f2ad9['filter'](_0x170f97=>'$graveyard'!=_0x170f97['root']['rootName']);_0x5de560['length']>0x0&&_0x2920c8['setSelection'](_0x5de560);for(const _0x5f5c20 of _0x1f2ad9)_0x5f5c20['detach']();});};}['_getCoordsForCells'](_0x2f761e){const _0x12db66=this['editor']['plugins']['get']('TableUtils');let _0x3f550d=Number['MAX_SAFE_INTEGER'],_0xd185f4=Number['MIN_SAFE_INTEGER'],_0x595858=Number['MAX_SAFE_INTEGER'],_0x39454a=Number['MIN_SAFE_INTEGER'];for(const _0x1c5e03 of _0x2f761e){if('$graveyard'==_0x1c5e03['root']['rootName'])continue;const {row:_0x1ca3a5,column:_0x3b6d59}=_0x12db66['getCellLocation'](_0x1c5e03),_0x149782=_0x1c5e03['hasAttribute']('rowspan')?_0x1c5e03['getAttribute']('rowspan')-0x1:0x0,_0x591c5b=_0x1c5e03['hasAttribute']('colspan')?_0x1c5e03['getAttribute']('colspan')-0x1:0x0;_0x3f550d=_0x1ca3a5<_0x3f550d?_0x1ca3a5:_0x3f550d,_0xd185f4=_0x1ca3a5+_0x149782>_0xd185f4?_0x1ca3a5+_0x149782:_0xd185f4,_0x595858=_0x3b6d59<_0x595858?_0x3b6d59:_0x595858,_0x39454a=_0x3b6d59+_0x591c5b>_0x39454a?_0x3b6d59+_0x591c5b:_0x39454a;}return{'minRow':_0x3f550d,'maxRow':_0xd185f4,'minColumn':_0x595858,'maxColumn':_0x39454a};}['_setupColumnsRowsFixing'](){const _0xc1d370=this['editor'],_0x301aa0=_0xc1d370['plugins']['get']('TrackChangesEditing'),_0x2d6cb5=_0xc1d370['plugins']['get']('TableUtils');_0xc1d370['model']['document']['on']('change:data',()=>{const _0x119811=Array['from'](_0xc1d370['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x19afdf,data:_0x93380}of _0x119811){const {group:_0x1a4abb,id:_0x217c36,subType:_0x2ad343}=_0x301aa0['_splitMarkerName'](_0x19afdf);if('suggestion'!=_0x1a4abb)continue;if(null!=_0x93380['oldRange'])continue;const _0x50a22f=_0x301aa0['getSuggestion'](_0x217c36);this['_tablePostFixingSubtypes']['includes'](_0x2ad343)&&this['_tableSuggestions']['add'](_0x50a22f);}},{'priority':'low'});const _0x1ada62=(_0x4bfb91,_0x344f66)=>{let _0x2d6db8=!0x1;const _0x246b91=_0x344f66['createRangeOn'](_0x4bfb91),_0x49e57c=_0x4bfb91['findAncestor']('table'),_0x401d04=_0x2d6cb5['getCellLocation'](_0x4bfb91);for(const _0x4436d1 of this['_tableSuggestions']){const _0x4250f5=_0x4436d1['subType'],_0x51b03c=_0x4250f5['startsWith']('tablePaste'),_0x336aed=_0x4250f5['substr'](_0x51b03c?0xa:0x5),_0x97804b=_0x336aed['toLowerCase'](),_0xa594fc=_0x97804b['substr'](0x0,0x3)+'span',_0x4ea621='min'+_0x336aed,_0x1dc399='max'+_0x336aed;if(!_0x4436d1['isInContent'])continue;if(_0x49e57c!=_0x4436d1['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4436d1['isIntersectingWithRange'](_0x246b91))continue;const _0x16b681=_0x4bfb91['hasAttribute'](_0xa594fc)?_0x4bfb91['getAttribute'](_0xa594fc)-0x1:0x0,_0x4cc4b8=this['_getSuggestionCoords'](_0x4436d1),_0x179179=_0x4cc4b8[_0x4ea621],_0xa4dae7=_0x4cc4b8[_0x1dc399];_0x179179<=_0x401d04[_0x97804b]&&_0x401d04[_0x97804b]+_0x16b681<=_0xa4dae7&&(_0x4436d1['addRange'](_0x246b91),_0x2d6db8=!0x0);}return _0x2d6db8;};_0xc1d370['model']['document']['registerPostFixer'](_0x522830=>{let _0x4071e3=!0x1;for(const _0x2fa66c of _0xc1d370['model']['document']['differ']['getChanges']())if('insert'==_0x2fa66c['type']){if('tableRow'==_0x2fa66c['name']){for(const _0x266e6a of _0x2fa66c['position']['nodeAfter']['getChildren']())_0x4071e3=_0x4071e3||_0x1ada62(_0x266e6a,_0x522830);}else'tableCell'==_0x2fa66c['name']&&(_0x4071e3=_0x4071e3||_0x1ada62(_0x2fa66c['position']['nodeAfter'],_0x522830));}return _0x4071e3;});}['_getSuggestionCoords'](_0x1c7cad){return this['_getCoordsForCells'](_0x1c7cad['getRanges']()['map'](_0x1a50dc=>_0x1a50dc['start']['nodeAfter']));}}function _e(_0xc1cc20){return Array['from'](new Set(_0xc1cc20)['values']());}class $t extends _0x4942e1{static get['requires'](){return[Nt];}['afterInit'](){const _0x257904=this['editor'],_0x25f219=_0x257904['model']['document']['selection'],_0x31cccb=_0x257904['locale'];if(!_0x257904['plugins']['has']('TableEditing'))return;const _0xd68d2a=_0x257904['plugins']['get']('TrackChangesEditing'),_0x52da83=_0x257904['plugins']['get']('TableUtils'),_0x5bb36f=_0x257904['plugins']['get'](Nt);_0x5bb36f['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0xd68d2a['enableCommand']('mergeTableCells',()=>{const _0x106ced=_0x52da83['getSelectionAffectedTableCells'](_0x257904['model']['document']['selection']);_0x257904['model']['change'](()=>{_0xd68d2a['markMultiRangeBlockFormat'](_0x106ced,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x257904['commands']['get']('mergeTableCells')['on']('execute',(_0x4e7ca1,_0x296626)=>{_0x257904['commands']['get']('trackChanges')['value']&&(_0x296626['length']>0x0&&_0x296626[_0x296626['length']-0x1]&&_0x296626[_0x296626['length']-0x1]['forceDefaultExecution']||_0xd68d2a['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4e7ca1['stop']());},{'priority':'highest'});for(const _0x3a314f of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x16c225=_0x257904['commands']['get'](_0x3a314f);_0xd68d2a['enableCommand'](_0x3a314f,()=>{const _0x461f27=_0x257904['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x162931=>_0x162931['is']('element','tableCell')),_0x29e18a=_0x16c225['value'];_0x257904['model']['change'](()=>{_0xd68d2a['markMultiRangeBlockFormat']([_0x461f27,_0x29e18a],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x55419f of['splitTableCellVertically','splitTableCellHorizontally']){const _0x268081=_0x257904['commands']['get'](_0x55419f);_0xd68d2a['enableCommand'](_0x55419f,()=>{const _0x450407=_0x52da83['getSelectionAffectedTableCells'](_0x257904['model']['document']['selection'])[0x0],_0x5d90b3=_0x450407['findAncestor']('table'),{column:_0xaac510,row:_0x47b940}=_0x52da83['getCellLocation'](_0x450407);let _0x5a0b3b=[];if('horizontally'==_0x268081['direction']){const _0x3d3488=_0x52da83['createTableWalker'](_0x5d90b3,{'startRow':_0x47b940,'endRow':_0x47b940,'includeAllSlots':!0x0});_0x5a0b3b=Array['from'](_0x3d3488)['map'](_0x1d864d=>_0x1d864d['cell']);}else{const _0x306fec=_0x52da83['createTableWalker'](_0x5d90b3,{'column':_0xaac510,'includeAllSlots':!0x0});_0x5a0b3b=Array['from'](_0x306fec)['map'](_0x4c61fc=>_0x4c61fc['cell']);}_0x257904['model']['change'](_0x57479a=>{_0xd68d2a['markBlockFormat'](_0x57479a['createRangeOn'](_0x450407),{'commandName':_0x55419f,'commandParams':[]},_0x5a0b3b,_0x55419f);});});}_0xd68d2a['descriptionFactory']['registerDescriptionCallback'](_0x3274a0=>{if('formatBlock'!=_0x3274a0['type']&&'formatInline'!=_0x3274a0['type'])return;const {data:_0x27685b}=_0x3274a0;return _0x27685b&&'mergeTableCells'==_0x27685b['commandName']?{'type':'format','content':o(_0x31cccb,'*Merge\x20cells*')}:void 0x0;}),_0xd68d2a['descriptionFactory']['registerDescriptionCallback'](_0x156d9b=>{if('formatBlock'!=_0x156d9b['type']&&'formatInline'!=_0x156d9b['type'])return;const {data:_0x4a3a85}=_0x156d9b;return _0x4a3a85?'splitTableCellVertically'==_0x4a3a85['commandName']?{'type':'format','content':o(_0x31cccb,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x4a3a85['commandName']?{'type':'format','content':o(_0x31cccb,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x46fdcf=_0x5bb36f['_acceptFormatSuggestionCallbackFactory']();for(const _0x39a1ce of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0xd68d2a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x39a1ce,'accept',_0x46fdcf);for(const _0x45bf34 of['splitTableCellVertically','splitTableCellHorizontally'])_0xd68d2a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x45bf34,'accept',_0x46fdcf);_0xd68d2a['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x36c572=>{_0x257904['model']['change'](_0x3eb619=>{const _0x5ac018=Array['from'](_0x25f219['getRanges']())['map'](_0x28b0fd=>_0x5bf397['fromRange'](_0x28b0fd));_0x3eb619['setSelection'](_0x36c572),_0x257904['commands']['get']('mergeTableCells')['refresh'](),_0x257904['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x53f6ea=_0x5ac018['filter'](_0x92a92e=>'$graveyard'!=_0x92a92e['root']['rootName']);_0x53f6ea['length']>0x0&&_0x3eb619['setSelection'](_0x53f6ea);for(const _0x2e0027 of _0x5ac018)_0x2e0027['detach']();});});for(const _0x34dba4 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5b9093=_0x257904['commands']['get'](_0x34dba4);_0x5b9093['on']('set:isEnabled',(_0x490f2f,_0x3b5ab2,_0x349320)=>{if(_0x349320){const _0x3c1f23=_0x257904['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2431f7=>_0x2431f7['is']('element','tableCell'));this['_areMergableCells'](_0x5b9093['value'],_0x3c1f23)||(_0x490f2f['return']=!0x1,_0x490f2f['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x2de934=this['editor']['commands']['get']('mergeTableCells'),_0x536baa=this['editor']['plugins']['get']('TableUtils');if(!_0x2de934['isEnabled'])return!0x1;const _0xc0d187=_0x536baa['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4a2112 of _0xc0d187)for(const _0x41ec60 of _0xc0d187)if(_0x4a2112!=_0x41ec60&&!this['_areMergableCells'](_0x4a2112,_0x41ec60))return!0x1;return!0x0;}['_areMergableCells'](_0x5df835,_0x17a346){const _0x1c3301=this['editor']['plugins']['get']('TrackChangesEditing'),_0x281fe9=this['editor']['model']['createRangeOn'](_0x5df835),_0x167c1a=this['editor']['model']['createRangeOn'](_0x17a346),_0xf9d118=new Set(),_0x4a20f3=new Set();for(const _0x4c457e of _0x1c3301['getSuggestions']())if(('insertion'==_0x4c457e['type']||'deletion'==_0x4c457e['type']||'mergeTableCells'==_0x4c457e['subType'])&&_0x4c457e['isInContent']){for(const _0x560285 of _0x4c457e['getRanges']())_0x560285['containsRange'](_0x281fe9,!0x0)&&_0xf9d118['add'](_0x4c457e['type']+':'+_0x4c457e['author']['id']),_0x560285['containsRange'](_0x167c1a,!0x0)&&_0x4a20f3['add'](_0x4c457e['type']+':'+_0x4c457e['author']['id']);}if(_0xf9d118['size']!=_0x4a20f3['size'])return!0x1;for(const _0x2015bf of _0xf9d118)if(!_0x4a20f3['has'](_0x2015bf))return!0x1;return!0x0;}}class vt extends _0x4942e1{static get['requires'](){return[Nt];}['afterInit'](){const _0x271398=this['editor'];if(!_0x271398['plugins']['has']('TableEditing'))return;const _0x5a0eca=_0x271398['locale'],_0x2a9e90=_0x271398['plugins']['get']('TrackChangesEditing');_0x2a9e90['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x2a9e90['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x2a9e90['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x5a0eca,'FORMAT_HEADER_ROW')),_0x2a9e90['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x5a0eca,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x54e52d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4fb564=this['editor']['plugins']['get'](Nt)['_acceptFormatSuggestionCallbackFactory']();_0x54e52d['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4fb564),_0x54e52d['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4fb564),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x2a619b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2aea19=this['editor']['plugins']['get']('TableUtils');function _0x423e87({showActiveMarker:_0x4302f4=!0x0,setDataAttribute:_0x2737eb=!0x0}={}){return(_0x2bb54e,_0xdd365e,_0x2868dd)=>{const {type:_0x452f2d,id:_0x37e485}=_0x2a619b['_splitMarkerName'](_0xdd365e['markerName']);if(!_0x2a619b['hasSuggestion'](_0x37e485))return;const _0x3ac0f9=_0x2a619b['getSuggestion'](_0x37e485),_0x5b9762=_0x3ac0f9['data'];if('formatBlock'!=_0x3ac0f9['type']||!_0x5b9762||'setTableColumnHeader'!=_0x5b9762['commandName'])return;if(_0xdd365e['item'])return void _0x2bb54e['stop']();if(!_0x2868dd['consumable']['consume'](_0xdd365e['markerRange'],_0x2bb54e['name']))return;const _0xeeebb=_0xdd365e['markerRange']['start']['nodeAfter'],_0x3e9e85=_0xdd365e['markerRange']['end']['nodeBefore'],_0x11d601=_0xeeebb['parent']['parent'],{column:_0x3a4201}=_0x2aea19['getCellLocation'](_0xeeebb),{column:_0x5bffc9}=_0x2aea19['getCellLocation'](_0x3e9e85);for(let _0x81a5d1=_0x3a4201;_0x81a5d1<=_0x5bffc9;_0x81a5d1++){const _0x119a64=_0x2aea19['createTableWalker'](_0x11d601,{'column':_0x81a5d1,'includeAllSlots':!0x1});for(const _0x35810a of _0x119a64){const _0x23ea6d=_0x35810a['cell'],_0x4bc308=_0x2868dd['mapper']['toViewElement'](_0x23ea6d);_0x2868dd['writer']['addClass']('ck-suggestion-marker-'+_0x452f2d,_0x4bc308),_0x2737eb&&_0x2868dd['writer']['setAttribute']('data-suggestion',_0x37e485,_0x4bc308),_0x2868dd['mapper']['bindElementToMarker'](_0x4bc308,_0xdd365e['markerName']),_0x4302f4&&(_0x2a619b['activeMarkers']['includes'](_0xdd365e['markerName'])?_0x2868dd['writer']['addClass']('ck-suggestion-marker--active',_0x4bc308):_0x2868dd['writer']['removeClass']('ck-suggestion-marker--active',_0x4bc308));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x423e87(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x11cb37,_0x4ccf14,_0x10e451)=>{_0x10e451['options']['showSuggestionHighlights']&&_0x423e87({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x11cb37,_0x4ccf14,_0x10e451);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4e34f0,_0x348fbc,_0x4fa7be)=>{const {type:_0x3c4386,id:_0xd288af}=_0x2a619b['_splitMarkerName'](_0x348fbc['markerName']);if(!_0x2a619b['hasSuggestion'](_0xd288af))return;const _0x594d7c=_0x2a619b['getSuggestion'](_0xd288af),_0x546cd0=_0x594d7c['data'];if('formatBlock'!=_0x594d7c['type']||!_0x546cd0||'setTableColumnHeader'!=_0x546cd0['commandName'])return;const _0x5c9c5c=_0x4fa7be['mapper']['markerNameToElements'](_0x348fbc['markerName']);if(_0x5c9c5c){for(const _0x3184ea of _0x5c9c5c)_0x4fa7be['writer']['removeClass']('ck-suggestion-marker-'+_0x3c4386,_0x3184ea),_0x4fa7be['writer']['removeClass']('ck-suggestion-marker--active',_0x3184ea),_0x4fa7be['writer']['removeAttribute']('data-suggestion',_0x3184ea),_0x4fa7be['mapper']['unbindElementFromMarkerName'](_0x3184ea,_0x348fbc['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x1d850b=this['editor'],_0x57082e=_0x1d850b['locale'];function _0x35d586(_0x35a1ec){return{'type':'format','content':o(_0x57082e,'*Format:*\x20%0',_0x35a1ec)};}_0x1d850b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x51dc47=>{if('formatBlock'!=_0x51dc47['type'])return;const {data:_0x5b3c09}=_0x51dc47;if(_0x5b3c09){if('setTableRowHeader'==_0x5b3c09['commandName']){const _0x585c87=_0x5b3c09['commandParams'][0x0]['forceValue'];return _0x35d586(o(_0x57082e,_0x585c87?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x5b3c09['commandName']){const _0x59408d=_0x5b3c09['commandParams'][0x0]['forceValue'];return _0x35d586(o(_0x57082e,_0x59408d?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Dt extends _0x4942e1{['afterInit'](){const _0x26555a=this['editor'],_0x3b8137=_0x26555a['locale'],_0x1d51cd=_0x26555a['plugins']['get']('TrackChangesEditing');function _0x5c3220(_0x101a2b){return{'type':'format','content':''+o(_0x3b8137,'*Set\x20table\x20type:*\x20%0',_0x101a2b)};}_0x26555a['plugins']['has']('TableLayout')&&(_0x1d51cd['enableCommand']('insertTableLayout'),_0x1d51cd['enableDefaultAttributesIntegration']('tableType'),_0x1d51cd['descriptionFactory']['registerElementLabel'](_0x3c7c7e=>_0x3c7c7e['is']('element','table')&&'layout'===_0x3c7c7e['getAttribute']('tableType'),_0x233b93=>o(_0x3b8137,'ELEMENT_LAYOUT_TABLE',_0x233b93)),_0x1d51cd['descriptionFactory']['registerDescriptionCallback'](_0x230cad=>{const {data:_0x4f00df}=_0x230cad;if(_0x4f00df&&'tableType'==_0x4f00df['key'])switch(_0x4f00df['newValue']){case'layout':return _0x5c3220(o(_0x3b8137,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x5c3220(o(_0x3b8137,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](Re['map'](_0x10b859=>[_0x10b859,null]));class Bt extends _0x4942e1{static get['requires'](){return[Nt];}['afterInit'](){const _0x4f6d8e=this['editor'];if(!_0x4f6d8e['plugins']['has']('TableClipboard'))return;const _0x1f50d5=_0x4f6d8e['plugins']['get']('TrackChangesEditing'),_0xf4213f=_0x4f6d8e['plugins']['get']('TableUtils'),_0x4754c1=_0x4f6d8e['plugins']['get'](Nt),_0x46ed10=_0x4f6d8e['plugins']['get']('TableClipboard'),_0xf42621=_0x4f6d8e['plugins']['get']('TableSelection'),_0x2da65c=_0x4f6d8e['plugins']['get'](_0x31755d);_0x4754c1['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x4f6d8e['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x4f6d8e['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5a7706=null,_0x191f2f=!0x1;_0x2da65c['on']('contentInsertion',(_0xefa636,_0x41b41c)=>{_0x191f2f='paste'===_0x41b41c['method'];}),_0x4f6d8e['model']['on']('insertContent',(_0x3753f8,_0x198872)=>{if(!_0x191f2f&&null===_0xf42621['getSelectedTableCells']())return;const [_0x948697,_0x470b0c]=_0x198872,_0x4c3f8e=_0x198872[_0x198872['length']-0x1];_0x4c3f8e&&_0x4c3f8e['forceDefaultExecution']||_0x1f50d5['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x594933,_0x1ed4c9,_0x382b7c,_0x4f85e2,_0x4a0f47){if(_0x1ed4c9&&!_0x1ed4c9['is']('documentSelection'))return!0x1;const _0x362625=_0x4a0f47['getTableIfOnlyTableInContent'](_0x594933,_0x382b7c);if(!_0x362625||!Oe(_0x362625,void 0x0,_0x4f85e2))return!0x1;const _0x7e44fd=_0x4f85e2['getSelectionAffectedTableCells'](_0x382b7c['document']['selection']);if(!_0x7e44fd['length'])return!0x1;const _0x1eab7b=_0x7e44fd[0x0]['findAncestor']('table'),_0x4986ce=_0x4f85e2['getRowIndexes'](_0x7e44fd),_0x3d90c3=_0x4f85e2['getColumnIndexes'](_0x7e44fd),_0x4df43a={'startRow':_0x4986ce['first'],'endRow':_0x4986ce['last'],'startColumn':_0x3d90c3['first'],'endColumn':_0x3d90c3['last']};return 0x1==_0x7e44fd['length']&&(_0x4df43a['endRow']+=_0x4f85e2['getRows'](_0x362625)-0x1,_0x4df43a['endColumn']+=_0x4f85e2['getColumns'](_0x362625)-0x1),Oe(_0x1eab7b,_0x4df43a,_0x4f85e2);}(_0x948697,_0x470b0c,_0x4f6d8e['model'],_0xf4213f,_0x46ed10)&&(_0x3753f8['stop'](),_0x5a7706={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4f6d8e['model']['change'](()=>{_0x4f6d8e['model']['insertContent'](_0x198872[0x0],_0x198872[0x1],_0x198872[0x2],{'forceDefaultExecution':!0x0});const _0x5532dd=_0x512e19(),{rowInsertionRanges:_0x58e7b1,columnInsertionRanges:_0x5924b4,insertionRanges:_0x2e9a19,deletionRanges:_0x289bb8,cells:_0x222524}=_0x5a7706;_0x58e7b1['length']&&_0x1f50d5['markMultiRangeInsertion'](_0x58e7b1,'tablePasteRow',{'tablePasteChainId':_0x5532dd}),_0x5924b4['length']&&_0x1f50d5['markMultiRangeInsertion'](_0x5924b4,'tablePasteColumn',{'tablePasteChainId':_0x5532dd}),_0x2e9a19['length']&&(_0x1f50d5['markMultiRangeInsertion'](_0x2e9a19,'tablePaste',{'tablePasteChainId':_0x5532dd,'skipNestingCheck':!0x0}),_0x2e9a19['forEach'](_0x3b8d89=>_0x3b8d89['detach']?.())),_0x289bb8['length']&&(_0x1f50d5['markMultiRangeDeletion'](_0x289bb8,'tablePaste',{'tablePasteChainId':_0x5532dd,'skipNestingCheck':!0x0}),_0x289bb8['forEach'](_0x4d1774=>_0x4d1774['detach']?.()));const _0x491dba=_0x1f50d5['markMultiRangeBlockFormat'](_0x222524['map'](({element:_0x40dc21})=>_0x40dc21),{'formatGroupId':_0x512e19()},[],'tablePasteCell',{'tablePasteChainId':_0x5532dd});if(_0x491dba){const _0x4386e8=_0x491dba['getMarkers'](),_0x3bad69=[];for(const {element:_0x2ecf92,attributes:_0x253012}of _0x222524){if(!_0x253012)continue;const _0x4f27c1=_0x4f6d8e['model']['createRangeOn'](_0x2ecf92),_0x5b498f=_0x4386e8['find'](_0x30c249=>_0x30c249['getRange']()['isEqual'](_0x4f27c1));_0x5b498f&&_0x3bad69['push']([_0x5b498f['name'],_0x253012]);}_0x3bad69['length']&&_0x491dba['setAttribute']('markerAttributes',Object['fromEntries'](_0x3bad69));}_0x5a7706=null;}));},{'priority':_0x2f03ee['high']+0xa}),_0x2da65c['on']('contentInsertion',()=>{_0x191f2f=!0x1;},{'priority':'lowest'}),_0x4f6d8e['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3e71e4,_0x3ff812)=>{const [_0x5e7eb4,_0x4f6913,,_0x421b8b]=_0x3ff812;if(!_0x5a7706)return;_0x3e71e4['stop']();const _0x416237=_0x5e7eb4['cell'],_0xe0dc48=_0x4f6913,_0xd8a4ca=Be(_0x416237),_0x50906f=Be(_0xe0dc48);_0x3e71e4['return']=_0x416237;let _0x4713fe=null,_0xe708b4=null;if(_0x50906f||_0xd8a4ca){if(_0xd8a4ca&&!_0x50906f){_0x421b8b['remove'](_0x416237['getChild'](0x0));for(const _0xc31e42 of Array['from'](_0xe0dc48['getChildren']()))_0x421b8b['insert'](_0xc31e42,_0x416237,'end');const _0x28bfd0=_0x5a7706['rowInsertionIndexes']['includes'](_0x5e7eb4['row']),_0x29fc4f=_0x5a7706['columnInsertionIndexes']['includes'](_0x5e7eb4['column']);_0x28bfd0||_0x29fc4f||(_0x4713fe=_0x5bf397['fromRange'](_0x421b8b['createRangeIn'](_0x416237)));}else _0x50906f&&!_0xd8a4ca&&(_0xe708b4=_0x421b8b['createRangeIn'](_0x416237));}else{const _0x5e1160=_0x421b8b['createElement']('tableCellSuggestion'),_0x32d3f6=_0x421b8b['createElement']('tableCellSuggestion');_0x421b8b['wrap'](_0x421b8b['createRangeIn'](_0x416237),_0x32d3f6),_0x421b8b['insert'](_0x5e1160,_0x416237,0x0);for(const _0x1d9d43 of Array['from'](_0xe0dc48['getChildren']()))_0x421b8b['insert'](_0x1d9d43,_0x5e1160,'end');_0x4713fe=_0x5bf397['fromRange'](_0x421b8b['createRangeOn'](_0x5e1160)),_0xe708b4=_0x5bf397['fromRange'](_0x421b8b['createRangeOn'](_0x32d3f6));}const _0x3926b5=Array['from'](_0xe0dc48['getAttributes']())['filter'](([_0x3b3231])=>Re['includes'](_0x3b3231));_0x5a7706['cells']['push']({'element':_0x416237,'attributes':_0x3926b5['length']?Object['fromEntries'](_0x3926b5):null}),_0x4713fe&&_0x5a7706['insertionRanges']['push'](_0x4713fe),_0xe708b4&&_0x5a7706['deletionRanges']['push'](_0xe708b4);},{'priority':'high'}),_0xf4213f['on']('insertColumns',(_0x410cf2,_0x1fb439)=>{const [_0x2244d5,_0x5284c6={}]=_0x1fb439;if(!_0x5a7706)return;const _0x1166e=_0x5284c6['at']||0x0,_0x140dc6=_0x5284c6['columns']||0x1;_0x5a7706['columnInsertionIndexes']=new Array(_0x140dc6)['fill'](_0x1166e)['map']((_0x496127,_0x96666c)=>_0x496127+_0x96666c);for(const {cell:_0x1211fa}of _0xf4213f['createTableWalker'](_0x2244d5,{'startColumn':_0x1166e,'endColumn':_0x1166e+_0x140dc6-0x1}))_0x5a7706['columnInsertionRanges']['push'](_0x4f6d8e['model']['createRangeOn'](_0x1211fa));},{'priority':'low'}),_0xf4213f['on']('insertRows',(_0x162964,_0x3060e5)=>{const [_0x343dca,_0x3639f4={}]=_0x3060e5;if(!_0x5a7706)return;const _0xd85db4=_0x3639f4['at']||0x0,_0x4e2949=_0x3639f4['rows']||0x1;_0x5a7706['rowInsertionIndexes']=new Array(_0x4e2949)['fill'](_0xd85db4)['map']((_0x3f59c8,_0x544ac1)=>_0x3f59c8+_0x544ac1);for(const {cell:_0x25b60e}of _0xf4213f['createTableWalker'](_0x343dca,{'startRow':_0xd85db4,'endRow':_0xd85db4+_0x4e2949-0x1}))_0x5a7706['rowInsertionRanges']['push'](_0x4f6d8e['model']['createRangeOn'](_0x25b60e));},{'priority':'low'}),_0x1f50d5['descriptionFactory']['registerDescriptionCallback'](_0x30f492=>{if(_0x30f492['subType']&&_0x30f492['subType']['startsWith']('tablePaste'))return _0x30f492['previous']?{}:{'type':'insertion','content':o(_0x4f6d8e['locale'],'*Replace\x20table\x20cells*')};});const _0x1fdcda=()=>!0x1;for(const _0x41d13c of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x1f50d5['_suggestionFactory']['registerCustomCallback']('insertion',_0x41d13c,'join',_0x1fdcda),_0x1f50d5['_suggestionFactory']['registerCustomCallback']('deletion',_0x41d13c,'join',_0x1fdcda),_0x1f50d5['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x41d13c,'join',_0x1fdcda);_0x1f50d5['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x1fdcda),_0x1f50d5['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4f76c6,_0xa6ba61,_0x4bca9b)=>{const _0x4f0700=_0x4f76c6['map'](_0xfce2b6=>_0xfce2b6['getContainedElement']())['filter'](_0x2458d6=>_0x2458d6),_0x2fade8=new Map(_0x4f0700['map'](_0x1bbd5e=>[_0x1bbd5e,null]));if(_0x5a7706){for(const {element:_0x20832c,attributes:_0x32bd6}of _0x5a7706['cells'])_0x32bd6&&_0x2fade8['set'](_0x20832c,_0x32bd6);}else{if(_0x4bca9b&&_0x4bca9b['markerAttributes'])for(const [_0x8af6e8,_0x542ef8]of Object['entries'](_0x4bca9b['markerAttributes'])){const _0x3268ca=_0x4f6d8e['model']['markers']['get'](_0x8af6e8),_0xdeeddd=_0x3268ca?_0x3268ca['getRange']()['getContainedElement']():null;_0xdeeddd&&_0x2fade8['set'](_0xdeeddd,_0x542ef8);}}_0x4f6d8e['model']['change'](_0x205274=>{for(const [_0x380cc6,_0x2a8a41]of _0x2fade8)_0x205274['setAttributes']({...Ae,..._0x2a8a41},_0x380cc6);});});const _0x3f3b35=(_0x18e191,_0x22f08c)=>{_0x1f50d5['_suggestionFactory']['registerCustomCallback'](_0x18e191,'tablePaste',_0x22f08c,(_0x4b8890,_0x3590e3,_0x528f16)=>{_0x4f6d8e['model']['change'](_0x5e7871=>{const _0x4864b0=[];for(const _0x1609b2 of _0x4b8890){const _0x1cd0be=_0x1609b2['start']['nodeAfter'];_0x1cd0be['is']('element','tableCellSuggestion')&&_0x4864b0['push'](_0x1cd0be);}_0x1f50d5['_suggestionFactory']['getSuggestionCallback'](_0x18e191,null,_0x22f08c)(_0x4b8890,_0x3590e3,_0x528f16);for(const _0x23d195 of _0x4864b0)'$graveyard'!=_0x23d195['root']['rootName']&&_0x5e7871['unwrap'](_0x23d195);});});};_0x3f3b35('insertion','accept'),_0x3f3b35('insertion','discard'),_0x3f3b35('deletion','accept'),_0x3f3b35('deletion','discard'),_0x1f50d5['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1d3330=>{const _0x5202e5=_0x1d3330['map'](_0x35a4bf=>_0x35a4bf['getContainedElement']()),_0x4bfeea=_0x5202e5[0x0]['findAncestor']('table'),{minRow:_0x133994,maxRow:_0x2f6a1e}=_0x4754c1['_getCoordsForCells'](_0x5202e5);_0xf4213f['removeRows'](_0x4bfeea,{'at':_0x133994,'rows':_0x2f6a1e-_0x133994+0x1});}),_0x1f50d5['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x39e0ec=>{const _0x1f9fb7=_0x39e0ec['map'](_0x5eed6d=>_0x5eed6d['getContainedElement']()),_0x2b79c0=_0x1f9fb7[0x0]['findAncestor']('table'),{minColumn:_0x51d519,maxColumn:_0x27bf29}=_0x4754c1['_getCoordsForCells'](_0x1f9fb7);_0xf4213f['removeColumns'](_0x2b79c0,{'at':_0x51d519,'columns':_0x27bf29-_0x51d519+0x1});});const _0x21ec6c=(_0x11a7b8,_0x3fd00d)=>{if(!_0x3fd00d['subType']||!_0x3fd00d['subType']['startsWith']('tablePaste'))return;const _0x4795aa=_0x3fd00d['attributes']['tablePasteChainId'],_0x5cf98d=_0x1f50d5['getSuggestions']()['filter'](_0x36481d=>_0x36481d['isInContent']&&_0x36481d['attributes']&&_0x36481d['attributes']['tablePasteChainId']==_0x4795aa);_0x5cf98d['length']&&_0x3fd00d['getAllAdjacentSuggestions']()['length']!=_0x5cf98d['length']&&_0x5cf98d['reduce']((_0x469878,_0x2febf8)=>(_0x469878['next']=_0x2febf8,_0x2febf8['previous']=_0x469878,_0x2febf8));};function _0x103038(_0x505f01,_0x379cdd=!0x0){const {id:_0x59ac14,authorId:_0x4da829}=_0x1f50d5['_splitMarkerName'](_0x505f01['markerName']),_0x49abc9=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x44096b=_0x1f50d5['activeMarkers']['includes'](_0x505f01['markerName']);return _0x44096b&&_0x49abc9['push']('ck-suggestion-marker--active'),{'classes':_0x49abc9,'attributes':{'data-suggestion':_0x59ac14,'data-author-id':_0x4da829},'priority':_0x44096b&&_0x379cdd?0xbc2:0xbb8};}_0x1f50d5['on']('suggestionLoaded',_0x21ec6c,{'priority':'high'}),_0x1f50d5['on']('suggestionUnloaded',_0x21ec6c,{'priority':'high'}),_0x4f6d8e['model']['document']['registerPostFixer'](()=>{let _0x50cd24=!0x1;const _0x83a809=Array['from'](_0x4f6d8e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x577bb4,data:_0x2c9b79}of _0x83a809){const {group:_0x5a4f20,type:_0x6a0d30,id:_0x13bf6c}=_0x1f50d5['_splitMarkerName'](_0x577bb4);if('suggestion'!=_0x5a4f20||'deletion'!=_0x6a0d30||_0x2c9b79['oldRange'])continue;if(!_0x1f50d5['hasSuggestion'](_0x13bf6c))continue;const _0x2afc3e=_0x1f50d5['getSuggestion'](_0x13bf6c)['getRanges'](),_0xe6aba5=_0x4f6d8e['plugins']['get']('Users')['me'];for(const _0x2cdb39 of _0x1f50d5['getSuggestions']()){if(!_0x2cdb39['isInContent']||_0x2cdb39['author']!=_0xe6aba5)continue;if('formatBlock'!=_0x2cdb39['type']||'tablePasteCell'!=_0x2cdb39['subType'])continue;if(_0x2cdb39['getRanges']()['every'](_0x204156=>_0x2afc3e['some'](_0x1b00ca=>_0x1b00ca['containsRange'](_0x204156,!0x0)))){for(const _0x1447b0 of _0x2cdb39['getAllAdjacentSuggestions']())_0x1447b0['isInContent']&&(_0x1447b0['discard'](),_0x50cd24=!0x0);}}}return _0x50cd24;}),_0x4f6d8e['model']['document']['registerPostFixer'](_0x54b1d6=>{const _0x4da29b=_0x4f6d8e['commands']['get']('redo');if(!_0x4da29b||!_0x4da29b['_createdBatches']['has'](_0x54b1d6['batch']))return!0x1;let _0x33b250=!0x1;const _0x475b24=_0x4f6d8e['plugins']['get']('Users')['me'],_0x23fc10=_0x4f6d8e['model']['document']['differ']['getChanges'](),_0x5003c2=Array['from'](_0x4f6d8e['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x303d0d,data:_0x1579aa})=>{const {group:_0x4b12de,subType:_0x43f1e3,authorId:_0x28bf6d}=_0x1f50d5['_splitMarkerName'](_0x303d0d);return'suggestion'==_0x4b12de&&'tablePaste'==_0x43f1e3&&_0x28bf6d==_0x475b24['id']&&!_0x1579aa['oldRange'];});for(const _0x45e1e0 of _0x23fc10){if('insert'!=_0x45e1e0['type']||'tableCellSuggestion'!=_0x45e1e0['name']||0x1!=_0x45e1e0['length'])continue;const _0x53c780=_0x54b1d6['createRange'](_0x45e1e0['position'],_0x45e1e0['position']['getShiftedBy'](0x1));if(!_0x5003c2['find'](({data:_0x566e24})=>_0x566e24['newRange']['isEqual'](_0x53c780))){for(const {name:_0x340fe2,data:_0x41c32d}of _0x5003c2)if(_0x53c780['containsRange'](_0x41c32d['newRange'])){_0x54b1d6['updateMarker'](_0x340fe2,{'range':_0x53c780}),_0x33b250=!0x0;break;}}}return _0x33b250;}),_0x4f6d8e['model']['document']['registerPostFixer'](_0x4a528b=>{let _0x4f132f=!0x1;const _0x49903e=_0x4f6d8e['plugins']['get']('Users')['me'],_0x1cd876=_0x1f50d5['getSuggestions']()['filter'](_0x2122be=>_0x2122be['isInContent']&&_0x2122be['author']==_0x49903e),_0x5d8252=new Set(),_0x3679de=new Set();for(const _0x2d86fe of _0x1cd876)if('tablePaste'==_0x2d86fe['subType'])for(const _0x5d97d4 of _0x2d86fe['getMarkers']()){const _0x264a68=_0x5d97d4['getRange']()['getContainedElement']();if(_0x264a68){if(_0x264a68['is']('element','tableCellSuggestion')&&Be(_0x264a68)){_0x2d86fe['removeMarker'](_0x5d97d4['name']),_0x5d8252['add'](_0x264a68),_0x4f132f=!0x0;const _0x547204=_0x264a68['nextSibling'],_0x2fe191=_0x264a68['previousSibling'],_0x2952cb=_0x547204&&_0x547204['is']('element','tableCellSuggestion'),_0x147726=_0x2fe191&&_0x2fe191['is']('element','tableCellSuggestion');_0x2952cb&&!_0x5d8252['has'](_0x547204)&&_0x3679de['add'](_0x547204),_0x147726&&!_0x5d8252['has'](_0x2fe191)&&_0x3679de['add'](_0x2fe191);}else _0x264a68['is']('element','paragraph')&&_0x264a68['isEmpty']&&(_0x2d86fe['removeMarker'](_0x5d97d4['name']),_0x4f132f=!0x0);}}else{if('tablePasteCell'==_0x2d86fe['subType']){if(!_0x2d86fe['attributes']||!_0x2d86fe['attributes']['tablePasteChainId'])continue;const _0x5b8218=_0x2d86fe['attributes']['markerAttributes'];if(_0x5b8218&&Object['keys'](_0x5b8218)['length'])continue;const _0x2b96bd=_0x2d86fe['attributes']['tablePasteChainId'];let _0x123a32=!0x0,_0x19b2ca=!0x0;for(const _0x596526 of _0x1cd876)if(_0x596526['subType']&&_0x596526['subType']['startsWith']('tablePaste')){if(!_0x596526['attributes']['tablePasteChainId']){_0x19b2ca=!0x1;break;}if(_0x596526['id']!=_0x2d86fe['id']&&_0x596526['attributes']['tablePasteChainId']==_0x2b96bd){_0x123a32=!0x1;break;}}_0x19b2ca&&_0x123a32&&(_0x2d86fe['removeMarkers'](),_0x4f132f=!0x0);}}for(const _0x54d77e of _0x5d8252)_0x4a528b['remove'](_0x54d77e);for(const _0x33125f of _0x3679de)_0x4a528b['unwrap'](_0x33125f);return _0x4f132f;}),_0x4f6d8e['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x5c1189=>_0x103038(_0x5c1189),'converterPriority':'high'}),_0x4f6d8e['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3bd2ca,_0x3bf77b)=>_0x3bf77b['options']['showSuggestionHighlights']?_0x103038(_0x3bd2ca,!0x1):null,'converterPriority':'high'});const _0x4cdb6d=_0x4f6d8e['editing']['view'];this['listenTo'](_0x4cdb6d['document'],'clipboardOutput',(_0x116f81,_0x578df5)=>{const _0x84f7c8=[];for(const _0x234c4a of _0x4cdb6d['createRangeIn'](_0x578df5['content'])['getItems']())_0x234c4a['is']('element','suggestion-td')&&_0x84f7c8['push'](_0x234c4a);_0x4cdb6d['change'](_0x404200=>{for(const _0x5b9be8 of _0x84f7c8)_0x404200['move'](_0x404200['createRangeIn'](_0x5b9be8),_0x404200['createPositionBefore'](_0x5b9be8)),_0x404200['remove'](_0x5b9be8);});});}}function Be(_0x23fb2e){if(_0x23fb2e['isEmpty'])return!0x0;const _0x1baac4=_0x23fb2e['getChild'](0x0);return _0x1baac4['is']('element','paragraph')&&_0x1baac4['isEmpty'];}function Oe(_0x48e82a,_0x5cc668={},_0x17c6d0){for(const {isAnchor:_0x44968d,cellHeight:_0x140ed6,cellWidth:_0x55fdc3}of _0x17c6d0['createTableWalker'](_0x48e82a,{'includeAllSlots':!0x0,..._0x5cc668}))if(!_0x44968d||0x1!=_0x140ed6||0x1!=_0x55fdc3)return!0x1;return!0x0;}class Ot extends _0x4942e1{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x4f6d86=this['editor']['plugins']['get']('TrackChangesEditing');_0x4f6d86['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x4f6d86['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x4f6d86['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4f6d86['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x4f6d86['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x4f6d86['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x6ab16f,_0x392621){const _0x951f1a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3a61a5=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4c73fb=_0x392621['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x43ee8b=_0x3a61a5['getColumnGroupElement'](_0x4c73fb);let _0x39283c=_0x43ee8b?_0x3a61a5['getTableColumnsWidths'](_0x43ee8b):null,_0x15441a=_0x4c73fb['getAttribute']('tableWidth')||null;const _0x247913=_0x392621['tableWidth']||_0x15441a,_0xc869da=_0x392621['columnWidths']||_0x39283c,_0x4d1904=this['editor']['plugins']['get']('Users')['me'];for(const _0xcdffe0 of _0x951f1a['getSuggestions']()){const _0x36e530=_0xcdffe0['getContainedElement']();if('resizeTable'===_0xcdffe0['subType']&&_0x36e530===_0x4c73fb){_0xcdffe0['author']!==_0x4d1904&&_0xcdffe0['discard']();const _0xe519cf=_0xcdffe0['data']['commandParams'];_0x15441a=_0xe519cf[0x0]['tableWidth'],_0x39283c=_0xe519cf[0x0]['columnWidths'];break;}}_0x6ab16f({'table':_0x4c73fb,'tableWidth':_0x247913,'columnWidths':_0xc869da}),_0x951f1a['markBlockFormat'](_0x4c73fb,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x15441a,'columnWidths':_0x39283c}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x493756){if('formatBlock'!=_0x493756['type']&&'formatInline'!=_0x493756['type'])return;const {data:_0x2fd714}=_0x493756;if(_0x2fd714&&'resizeTable'===_0x2fd714['formatGroupId']){const _0x36dae3='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x36dae3)};}}}class xt extends _0x4942e1{['afterInit'](){const _0x850f06=this['editor'];_0x850f06['plugins']['has']('Template')&&_0x850f06['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x4942e1{['afterInit'](){const _0x18663f=this['editor'];if(!_0x18663f['commands']['get']('insertTableOfContents'))return;_0x18663f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x33d58=_0x18663f['plugins']['get']('TrackChangesEditing'),_0x46485e=_0x18663f['locale'];_0x33d58['descriptionFactory']['registerElementLabel']('tableOfContents',_0x64724c=>o(_0x46485e,'ELEMENT_TABLE_OF_CONTENTS',_0x64724c));}}class Rt extends _0x4942e1{['afterInit'](){const _0x5b5a35=this['editor'];if(!_0x5b5a35['plugins']['has']('Title'))return;const _0x422019=_0x5b5a35['plugins']['get']('TrackChangesEditing');_0x422019['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x5b5a35['locale'],'ELEMENT_TITLE')),_0x5b5a35['model']['document']['registerPostFixer'](_0x665146=>{let _0x36dead=!0x1;const _0x2fbcc9=Array['from'](_0x5b5a35['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4cc40b,data:_0x1b5747}of _0x2fbcc9){const {group:_0x523603}=_0x422019['_splitMarkerName'](_0x4cc40b);if('suggestion'!==_0x523603||!_0x1b5747['newRange'])continue;const _0xb5002f=_0x1b5747['newRange'],_0x1d504e=_0xb5002f['end']['nodeBefore'];if(!_0x1d504e||!_0x1d504e['is']('element','title-content'))continue;if(!_0xb5002f['start']['isTouching'](_0xb5002f['end']))continue;const _0x37c053=_0x5b5a35['model']['schema']['getNearestSelectionRange'](_0xb5002f['end'],'forward');if(_0x37c053&&_0x37c053['isCollapsed']){const _0x441f7b=_0x665146['createRange'](_0xb5002f['start'],_0x37c053['start']);_0x441f7b['isEqual'](_0xb5002f)||(_0x665146['updateMarker'](_0x4cc40b,{'range':_0x441f7b}),_0x36dead=!0x0);}_0x36dead||(_0x665146['removeMarker'](_0x4cc40b),_0x36dead=!0x0);}return _0x36dead;});}}class Tt extends _0x4942e1{['afterInit'](){const _0x1e8003=this['editor'],_0x191f8d=_0x1e8003['plugins']['get']('TrackChangesEditing');_0x1e8003['plugins']['has']('Uploadcare')&&(_0x191f8d['enableCommand']('uploadcare'),_0x1e8003['plugins']['has']('UploadcareImageEdit')&&(_0x191f8d['enableCommand']('uploadcareImageEdit'),_0x191f8d['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x191f8d['descriptionFactory']['registerDescriptionCallback'](_0x52d722=>{if('attribute'!=_0x52d722['type'])return;const {data:_0x44c919}=_0x52d722;return _0x44c919&&'uploadcareImageId'==_0x44c919['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x4942e1{['afterInit'](){const _0x38394c=this['editor'],_0x3aa59f=_0x38394c['plugins']['get']('TrackChangesEditing');_0x38394c['plugins']['has']('UndoEditing')&&(_0x3aa59f['enableCommand']('undo'),_0x3aa59f['enableCommand']('redo'));}}class Ut extends _0x4942e1{static get['requires'](){return[Nt];}['afterInit'](){const _0x58917a=this['editor'];if(!_0x58917a['plugins']['has']('TableCaptionEditing'))return;_0x58917a['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x4942e1{['tableProperties'];['tableCellProperties'];constructor(_0x20e6a6){super(_0x20e6a6),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 _0x4794df=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x18926e of this['tableProperties'])_0x4794df['enableCommand'](_0x18926e,(_0x380452,_0x29b2b0)=>{const _0x16156f=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x18926e,[_0x16156f],this['tableProperties'],'tableProperties',_0x380452,_0x29b2b0);});_0x4794df['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4794df['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4794df['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x35933c,_0x5a0fd4)=>this['handleDiscardAction'](this['tableProperties'],_0x35933c,_0x5a0fd4)),_0x4794df['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x158529 of this['tableCellProperties'])_0x4794df['enableCommand'](_0x158529,(_0x48ab6a,_0xa0466e)=>{const _0x3db568=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x158529,_0x3db568,this['tableCellProperties'],'tableCellProperties',_0x48ab6a,_0xa0466e);});_0x4794df['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4794df['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4794df['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x11a39a,_0x4884cb)=>this['handleDiscardAction'](this['tableCellProperties'],_0x11a39a,_0x4884cb)),_0x4794df['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x4794df['descriptionFactory']['registerDescriptionCallback'](_0x349775=>this['handleSuggestionDescription'](_0x349775)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x27ca11,_0xb73b77,_0x45b737,_0xdefa63,_0x21ee7a,_0x2d745){const _0x588a80=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2d745['batch'],()=>{for(const _0x5f49b9 of _0xb73b77){if(this['_getSuggestion'](_0x5f49b9,_0xdefa63))_0x21ee7a(_0x2d745);else{const _0x3011a8={};for(const _0x34e6e4 of _0x45b737){const _0xd385d=_0x5f49b9['getAttribute'](_0x34e6e4);void 0x0!==_0xd385d&&(_0x3011a8[_0x34e6e4]=_0xd385d);}_0x21ee7a(_0x2d745),_0x588a80['markBlockFormat'](_0x5f49b9,{'commandParams':[_0x3011a8]},[],_0xdefa63);}}});}['handleDiscardAction'](_0x1da15b,_0x24b76f,_0x2f498f){const _0xe4096d=_0x24b76f[0x0]['start']['nodeAfter'],_0x36cd15=_0x2f498f['commandParams'][0x0];this['editor']['model']['change'](_0x4c3670=>{for(const _0x477435 of _0x1da15b)void 0x0!==_0x36cd15[_0x477435]?_0x4c3670['setAttribute'](_0x477435,_0x36cd15[_0x477435],_0xe4096d):_0x4c3670['removeAttribute'](_0x477435,_0xe4096d);});}['handleSuggestionDescription'](_0x49c960){if(_0x49c960['data'])switch(_0x49c960['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x496648,_0xd168a6){const _0x4ce46b=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x30c395 of _0x4ce46b['getSuggestions']({'skipNotAttached':!0x0})){const _0x5230a0=_0x30c395['getContainedElement']();if(_0x30c395['subType']===_0xd168a6&&_0x5230a0===_0x496648)return _0x30c395;}return null;}['_registerTablePropertiesAttributes'](){const _0x4849f3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x41f83f=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x11b6da of _0x41f83f){const _0x337f33=_0x11b6da['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x4849f3['descriptionFactory']['registerAttributeLabel'](_0x11b6da,o(this['editor']['locale'],'FORMAT_'+_0x337f33));}}}class Ft extends _0x4942e1{['afterInit'](){const _0x396c8f=this['editor'];if(!_0x396c8f['plugins']['has']('LineHeight'))return;const _0x58d28f=_0x396c8f['plugins']['get']('TrackChangesEditing'),_0x55fa83=_0x396c8f['locale'];_0x58d28f['enableDefaultAttributesIntegration']('lineHeight'),_0x58d28f['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x55fa83,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x4942e1{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',Jt,_0x91df2d,_0x404716,_0x3d631f,R,T,E,U,V,F,G,J,L,q,z,K,Q,X,Y,Z,tt,nt,it,et,st,ot,rt,ct,at,ut,ft,ht,gt,mt,kt,lt,W,Ft,H,dt,pt,wt,bt,yt,jt,St,It,At,_t,Ct,Nt,$t,vt,Dt,Ut,Bt,Ot,Mt,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x41ad19){super(_0x41ad19),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x5cbe26,_0x5ef5ca,_0x5bd08b,_0x56c1d1)=>{this['_model']['change'](()=>{for(const _0x1a30df of[..._0x56c1d1,..._0x5bd08b])this['_model']['markers']['has'](_0x1a30df)&&_0x41ad19['editing']['reconvertMarker'](_0x1a30df);});}),this['descriptionFactory']=new M(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new qt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x41ad19['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x41ad19['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x41ad19['config']['get']('trackChanges.trackFormatChanges'),_0x41ad19['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x41ad19['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new $(_0x41ad19,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x422208=this['editor'];_0x422208['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1d2e17,{writer:_0x4dea47})=>{let _0x28378c='suggestion:'+_0x1d2e17['getAttribute']('suggestion-type')+':'+_0x1d2e17['getAttribute']('id');return _0x1d2e17['getAttribute']('marker-count')&&(_0x28378c+=':'+_0x1d2e17['getAttribute']('marker-count')),_0x4dea47['createElement']('$marker',{'data-name':_0x28378c});}}),_0x422208['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x422208['model']['document']['registerPostFixer'](_0x580119=>{let _0x4a476e=!0x1;const _0x55733f=Array['from'](_0x422208['model']['document']['differ']['getChangedMarkers']()),_0x53461a=new Set();for(const {name:_0x5b415f,data:_0xc6bed6}of _0x55733f){const {group:_0x277ed2,type:_0xad217e,subType:_0xa549df,id:_0x1d7ae9}=this['_splitMarkerName'](_0x5b415f);if('suggestion'!==_0x277ed2)continue;const _0x569828=_0xa549df?'suggestion:'+_0xad217e+':'+_0xa549df+':'+_0x1d7ae9:'suggestion:'+_0xad217e+':'+_0x1d7ae9,_0x1bd3a6=_0x422208['model']['markers']['getMarkersGroup'](_0x569828),_0x170c83=_0x422208['model']['markers']['get'](_0x5b415f),_0x51852c=this['_suggestions']['get'](_0x1d7ae9);if(null!=_0xc6bed6['newRange']){'formatInline'==_0xad217e&&(_0x4a476e=_0x4a476e||Wt(_0xc6bed6['newRange'],_0x5b415f,_0x580119,_0x422208['model']['schema']));const _0xcbf4f4='attribute'==_0xad217e&&this['_isBlockAttribute'](_0xa549df['split']('|')[0x0]),_0x1fd8b1='attribute'==_0xad217e&&this['_isInlineAttribute'](_0xa549df['split']('|')[0x0]);if(_0xc6bed6['newRange']['isCollapsed']||'$graveyard'==_0xc6bed6['newRange']['root']['rootName']||'formatBlock'==_0xad217e&&!Qt(_0xc6bed6['newRange'])||_0xcbf4f4&&!Qt(_0xc6bed6['newRange'])||_0x1fd8b1&&Xt(_0xc6bed6['newRange'])||'deletion'==_0xad217e&&Xt(_0xc6bed6['newRange'])||_0x170c83&&Yt(_0x170c83,_0x1bd3a6))_0x580119['removeMarker'](_0x5b415f),_0x4a476e=!0x0;else{if(!_0x51852c||!_0x51852c['isInContent'])continue;if(_0xc6bed6['newRange']&&_0xc6bed6['oldRange']&&_0xc6bed6['newRange']['isEqual'](_0xc6bed6['oldRange']))continue;_0x53461a['add'](_0x51852c);}}}return _0x53461a['size']>0x0&&(_0x4a476e=!!this['_joinWithAdjacentSuggestions'](_0x53461a)||_0x4a476e),_0x4a476e;}),_0x422208['model']['document']['registerPostFixer'](_0x43fdb9=>{let _0x2d3dac=!0x1;for(const _0x34a872 of _0x422208['model']['document']['differ']['getChanges']())if('insert'==_0x34a872['type'])for(const _0x33d507 of this['_suggestions']['values']()){if(_0x33d507['isMultiRange']||!_0x33d507['isInContent'])continue;const _0x480caa='formatBlock'==_0x33d507['type'],_0x2cfb20=this['_getAttributeKey'](_0x33d507),_0x7188d7=_0x2cfb20&&this['_isBlockAttribute'](_0x2cfb20);if(!_0x480caa&&!_0x7188d7)continue;const _0x5a8a31=_0x33d507['getFirstRange']();if(_0x5a8a31['start']['parent']!=_0x5a8a31['end']['parent']&&!_0x5a8a31['end']['isAtEnd']){const _0x11b6c4=_0x422208['model']['createPositionAt'](_0x5a8a31['start']['nodeAfter'],'end'),_0x52309c=_0x422208['model']['createRange'](_0x5a8a31['start'],_0x11b6c4);_0x43fdb9['updateMarker'](_0x33d507['getFirstMarker'](),{'range':_0x52309c}),_0x2d3dac=!0x0;}}return _0x2d3dac;}),_0x422208['model']['document']['registerPostFixer'](_0x3506da=>this['_processAttributeChanges'](_0x3506da)),_0x422208['model']['document']['registerPostFixer'](_0x1e7ac3=>!_0x1e7ac3['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x1e7ac3)),_0x422208['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x422208['model']['document']['on']('change:data',(_0x5d1bc4,_0x5af601)=>{if(!_0x5af601['isLocal']||_0x5af601['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x221528=_0x422208['model']['document']['differ']['getChanges']();if(0x0==_0x221528['length'])return;const _0xbc95ab=[],_0x4e3cc8=_0x221528['filter'](_0x1f6c81=>'attribute'==_0x1f6c81['type']),_0x3707b1=_0x221528['filter'](_0x39991f=>'insert'==_0x39991f['type']&&'$text'!=_0x39991f['name']);for(const _0x2c5da7 of _0x4e3cc8)this['_isRegisteredAttribute'](_0x2c5da7['attributeKey'])&&_0xbc95ab['push']({'key':_0x2c5da7['attributeKey'],'newValue':_0x2c5da7['attributeNewValue'],'oldValue':_0x2c5da7['attributeOldValue'],'range':Zt(_0x2c5da7['range'],_0x422208['model'])});for(const _0x24b7a7 of _0x3707b1){if('rename'!=_0x24b7a7['action']&&'refresh'!=_0x24b7a7['action'])continue;const _0xeb9058=tn(_0x24b7a7['position']['nodeAfter'],_0x422208['model']),_0x5f5b0=_0x24b7a7['before'];'rename'==_0x24b7a7['action']&&_0xbc95ab['push']({'key':m,'newValue':_0x24b7a7['name'],'oldValue':_0x5f5b0['name'],'range':_0xeb9058});for(const [_0x22b6ef,_0x4dc936]of _0x5f5b0['attributes']){if(!this['_isRegisteredAttribute'](_0x22b6ef))continue;const _0xdabbb9=_0x24b7a7['attributes']['get'](_0x22b6ef);_0x4dc936!==_0xdabbb9&&_0xbc95ab['push']({'key':_0x22b6ef,'newValue':_0xdabbb9,'oldValue':_0x4dc936,'range':_0xeb9058});}for(const [_0x14eca9,_0x41c4dc]of _0x24b7a7['attributes'])this['_isRegisteredAttribute'](_0x14eca9)&&(_0x5f5b0['attributes']['has'](_0x14eca9)||_0xbc95ab['push']({'key':_0x14eca9,'newValue':_0x41c4dc,'oldValue':null,'range':_0xeb9058}));}0x0!=_0xbc95ab['length']&&_0x422208['model']['enqueueChange'](_0x5af601,_0xe647ec=>{const _0x520d2f=_0x512e19();for(const {range:_0x1f3143,key:_0x537c3a,oldValue:_0x91ee4,newValue:_0x5b33a0}of _0xbc95ab)this['markAttributeChange'](_0x1f3143,_0x537c3a,_0x91ee4,_0x5b33a0,{'groupId':_0x520d2f});this['_reduceExistingSuggestions'](_0xe647ec,_0xbc95ab);});},{'priority':'lowest'}),_0x422208['model']['markers']['on']('update:suggestion',(_0x44b816,_0x591737,_0x46ecdd)=>{if(null==_0x46ecdd){const {id:_0x5e21b4}=this['_splitMarkerName'](_0x591737['name']),_0x554565=this['_suggestions']['get'](_0x5e21b4);_0x554565&&_0x554565['addMarkerName'](_0x591737['name']);}}),_0x422208['model']['document']['on']('change:data',()=>{const _0x25d601=Array['from'](_0x422208['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1c3999=>'suggestion'===this['_splitMarkerName'](_0x1c3999['name'])['group']);if(0x0===_0x25d601['length'])return;_0x25d601['sort']((_0x2e81c2,_0x306406)=>{const _0x5e0f65=_0x2e81c2['data']['oldRange'],_0x149232=_0x306406['data']['oldRange'];return null===_0x5e0f65&&null===_0x149232?0x0:null===_0x5e0f65&&null!==_0x149232?-0x1:null!==_0x5e0f65&&null===_0x149232?0x1:_0x5e0f65['start']['isBefore'](_0x149232['start'])?-0x1:0x1;});const _0x4e52fa=new Set(),_0x4e37a8=new Set();for(const {name:_0x500984,data:_0x2b2d0f}of _0x25d601){const {id:_0x12959a}=this['_splitMarkerName'](_0x500984);if(null===_0x2b2d0f['oldRange']){const _0x50da43=this['_handleNewSuggestionMarker'](_0x500984);_0x4e37a8['add'](_0x50da43);}else{const _0xf90bf5=this['_suggestions']['get'](_0x12959a);null!==_0x2b2d0f['newRange']||_0xf90bf5['isInContent']?(_0x4e52fa['add'](_0xf90bf5['head']),_0x4e37a8['add'](_0xf90bf5)):this['_removeSuggestion'](_0xf90bf5);}}_0x4e37a8['size']>0x0&&this['_refreshSuggestionsChain'](_0x4e37a8);for(const _0x545790 of _0x4e52fa)this['fire']('suggestionChanged',_0x545790);}),_0x422208['model']['on']('applyOperation',(_0x159858,_0x9770c6)=>{const _0x12f516=_0x9770c6[0x0];if(!this['_suggestions']['size'])return;if(!_0x12f516['isDocumentOperation'])return;if(_0x12f516['batch']['isUndo']||!_0x12f516['batch']['isLocal'])return;let _0x21d6ef,_0x365c36;switch(_0x12f516['type']){case'insert':_0x21d6ef=_0x422208['model']['createPositionAt'](_0x12f516['position']),_0x365c36=_0x21d6ef['getShiftedBy'](_0x12f516['howMany']);break;case'split':_0x21d6ef=_0x422208['model']['createPositionAt'](_0x12f516['splitPosition']),_0x365c36=_0x422208['model']['createPositionAt'](_0x12f516['moveTargetPosition']);break;case'move':_0x21d6ef=_0x422208['model']['createPositionAt'](_0x12f516['targetPosition']),_0x365c36=_0x21d6ef['getShiftedBy'](_0x12f516['howMany']);break;default:return;}const _0x56bdc1=_0x422208['model']['createRange'](_0x21d6ef,_0x365c36);_0x422208['model']['change'](()=>{for(const {suggestion:_0x5dbd80,meta:_0x262963}of this['_findSuggestions'](_0x56bdc1)){if(_0x5dbd80['isMultiRange'])continue;if('formatInline'==_0x5dbd80['type'])continue;const _0x30789e=this['_getAttributeKey'](_0x5dbd80);if(_0x30789e&&this['_isBlockAttribute'](_0x30789e)&&'split'!=_0x12f516['type'])continue;const _0x43574b=_0x5dbd80['data']&&_0x5dbd80['data']['multipleBlocks'];('formatBlock'!=_0x5dbd80['type']||'split'==_0x12f516['type']&&!_0x43574b)&&(_0x262963['containsRangeInObject']||'insertion'==_0x5dbd80['type']&&_0x262963['isOwn']||_0x5dbd80['getFirstRange']()['containsRange'](_0x56bdc1)&&this['_breakSuggestionMarker'](_0x5dbd80,_0x21d6ef,_0x365c36));}});},{'priority':'lowest'}),_0x422208['model']['on']('deleteContent',(_0x33464e,_0x36a4e7)=>{const _0xdeec02=_0x36a4e7[0x0],_0x51d09a=_0x36a4e7[0x1];if(_0x51d09a&&_0x51d09a['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0xdeec02['isCollapsed'])return;const _0x1b29b9=_0x422208['model']['schema'],{start:_0x179dfb,end:_0x369a36}=_0xdeec02['getFirstRange'](),_0x5f34a6=_0x179dfb['nodeAfter']&&_0x1b29b9['isLimit'](_0x179dfb['nodeAfter'])?null:_0x1b29b9['getNearestSelectionRange'](_0x179dfb,'forward'),_0x291f65=_0x369a36['nodeBefore']&&_0x1b29b9['isLimit'](_0x369a36['nodeBefore'])?null:_0x1b29b9['getNearestSelectionRange'](_0x369a36,'backward'),_0x4e9492=_0x422208['model']['createRange'](_0x5f34a6?_0x5f34a6['start']:_0x179dfb,_0x291f65?_0x291f65['end']:_0x369a36);_0x422208['model']['change'](_0x494277=>{this['markDeletion'](_0x4e9492);const _0x59014f=_0x422208['model']['schema']['getNearestSelectionRange'](_0x4e9492['start']);_0xdeec02['is']('documentSelection')?_0x494277['setSelection'](_0x59014f):_0xdeec02['setTo'](_0x59014f);}),_0x33464e['stop']();},{'priority':_0x2f03ee['normal']+0xa}),_0x422208['model']['on']('insertContent',(_0x25f304,_0x11c344)=>{const _0x10c99f=_0x11c344[_0x11c344['length']-0x1];_0x10c99f&&_0x10c99f['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x422208['model']['change'](()=>{let _0x3f17f=_0x422208['model']['insertContent'](_0x11c344[0x0],_0x11c344[0x1],_0x11c344[0x2],{'forceDefaultExecution':!0x0});if(!_0x3f17f)return;_0x25f304['return']=_0x3f17f['clone']();const _0x1bd485=_0x3f17f['end']['nodeBefore'],_0x266bc9=_0x422208['model']['schema'];_0x1bd485&&_0x266bc9['isBlock'](_0x1bd485)&&!_0x266bc9['isObject'](_0x1bd485)&&(_0x3f17f=_0x422208['model']['createRange'](_0x3f17f['start'],_0x422208['model']['createPositionAt'](_0x1bd485,'end'))),this['markInsertion'](_0x3f17f);}),_0x25f304['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5314a0=new v(_0x422208,this['_suggestions']);_0x422208['commands']['add']('acceptSuggestion',_0x5314a0),this['enableCommand']('acceptSuggestion');const _0x30f9fd=new D(_0x422208,this['_suggestions']);_0x422208['commands']['add']('discardSuggestion',_0x30f9fd),this['enableCommand']('discardSuggestion'),_0x422208['commands']['add']('acceptAllSuggestions',new B(_0x422208,_0x5314a0,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x422208['commands']['add']('discardAllSuggestions',new B(_0x422208,_0x30f9fd,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x422208['commands']['add']('acceptSelectedSuggestions',new O(_0x422208,_0x5314a0,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x422208['commands']['add']('discardSelectedSuggestions',new O(_0x422208,_0x30f9fd,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x14c660=_0x422208['plugins']['get']('CommentsRepository');this['listenTo'](_0x14c660,'addComment',(_0x17e31a,{threadId:_0xcfd892})=>{const _0x2314e0=this['_suggestions']['get'](_0xcfd892);_0x2314e0&&_0x2314e0['commentThread']&&0x1===_0x2314e0['commentThread']['length']&&this['_updateSuggestionData'](_0xcfd892,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x14c660,'removeComment',(_0x46c99d,{threadId:_0x45f60d})=>{const _0x343258=this['_suggestions']['get'](_0x45f60d);_0x343258&&_0x343258['commentThread']&&!_0x343258['commentThread']['length']&&this['_updateSuggestionData'](_0x45f60d,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x1a13a0){const _0x481477=_0x595bca([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x2b1c68=0x3d8d0df,_0x35e2d1=0x3dfa72f^_0x2b1c68,_0xe8fb66=window[_0x595bca([0x44,0x61,0x74,0x65])][_0x595bca([0x6e,0x6f,0x77])](),_0x284c1a=_0x1a13a0[_0x595bca([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4dc1c0=new window[(_0x595bca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f4a06=>{_0x284c1a[_0x595bca([0x6f,0x6e,0x63,0x65])](_0x595bca([0x72,0x65,0x61,0x64,0x79]),_0x4f4a06);}),_0x1a505c={[_0x595bca([0x6b,0x74,0x79])]:_0x595bca([0x45,0x43]),[_0x595bca([0x75,0x73,0x65])]:_0x595bca([0x73,0x69,0x67]),[_0x595bca([0x63,0x72,0x76])]:_0x595bca([0x50,0x2d,0x32,0x35,0x36]),[_0x595bca([0x78])]:_0x595bca([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]),[_0x595bca([0x79])]:_0x595bca([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]),[_0x595bca([0x61,0x6c,0x67])]:_0x595bca([0x45,0x53,0x32,0x35,0x36])},_0x5c31b1=_0x284c1a[_0x595bca([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x595bca([0x67,0x65,0x74])](_0x595bca([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3c471d(){let _0x2292e2,_0x3bf81c=null,_0x4b76d7=null;try{if(_0x5c31b1==_0x595bca([0x47,0x50,0x4c]))return _0x595bca([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2292e2=_0x492c21(),!_0x2292e2)return _0x595bca([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2292e2[_0x595bca([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4b76d7=_0x952c91(_0x2292e2[_0x595bca([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2292e2[_0x595bca([0x6a,0x74,0x69])])),await _0x2154ef()?_0x16e061()?_0x3df524()?_0x595bca([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x22d22a()?(_0x2292e2[_0x595bca([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x595bca([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3bf81c=_0x49296e(_0x595bca([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2292e2[_0x595bca([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x595bca([0x74,0x72,0x69,0x61,0x6c])&&(_0x3bf81c=_0x49296e(_0x595bca([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x354cb4()):_0x595bca([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x595bca([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x595bca([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x595bca([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3df524(){const _0x44efd3=[_0x595bca([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x595bca([0x74,0x72,0x69,0x61,0x6c])][_0x595bca([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2292e2[_0x595bca([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xe8fb66/0x3e8:0xe10*_0x35e2d1;return _0x2292e2[_0x595bca([0x65,0x78,0x70])]<_0x44efd3;}function _0x16e061(){const _0x245454=_0x2292e2[_0x595bca([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x245454)return!0x1;if(_0x245454[_0x595bca([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x595bca([0x2a])))return!0x0;if(_0x245454[_0x595bca([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x595bca([0x54,0x43])))return!0x0;if(_0x245454[_0x595bca([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x595bca([0x52,0x54,0x43]))){if(_0x50ddf3())return!0x0;if(_0x35c451()||_0x153415())return!0x0;}return!0x1;}function _0x22d22a(){const _0x1d3821=_0x2292e2[_0x595bca([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1d3821||0x0==_0x1d3821[_0x595bca([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x560187}=new URL(window[_0x595bca([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1d3821[_0x595bca([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x560187))return!0x0;const _0x1ae287=_0x560187[_0x595bca([0x73,0x70,0x6c,0x69,0x74])](_0x595bca([0x2e]));return _0x1d3821[_0x595bca([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1b5869=>_0x1b5869[_0x595bca([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x595bca([0x2a])))[_0x595bca([0x6d,0x61,0x70])](_0x4e952b=>_0x4e952b[_0x595bca([0x73,0x70,0x6c,0x69,0x74])](_0x595bca([0x2e])))[_0x595bca([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x23d3a9=>_0x23d3a9[_0x595bca([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1ae287[_0x595bca([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x595bca([0x6d,0x61,0x70])](_0x440c81=>Array(_0x1ae287[_0x595bca([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x440c81[_0x595bca([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x595bca([0x66,0x69,0x6c,0x6c])](_0x440c81[0x0]===_0x595bca([0x2a])?_0x595bca([0x2a]):'')[_0x595bca([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x440c81))[_0x595bca([0x73,0x6f,0x6d,0x65])](_0x56dc5f=>_0x1ae287[_0x595bca([0x65,0x76,0x65,0x72,0x79])]((_0x485e70,_0x111b76)=>_0x56dc5f[_0x111b76]===_0x485e70||_0x56dc5f[_0x111b76]===_0x595bca([0x2a])));}function _0x354cb4(){return _0x3bf81c&&_0x4b76d7?new window[(_0x595bca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x23ecea,_0x49ced0)=>{_0x3bf81c[_0x595bca([0x74,0x68,0x65,0x6e])](_0x23ecea,_0x49ced0),_0x4b76d7[_0x595bca([0x74,0x68,0x65,0x6e])](_0x5321dc=>{_0x5321dc!=_0x595bca([0x56,0x61,0x6c,0x69,0x64])&&_0x23ecea(_0x5321dc);},_0x49ced0);}):_0x3bf81c||_0x4b76d7||_0x595bca([0x56,0x61,0x6c,0x69,0x64]);}}function _0x952c91(_0xcf5a0f,_0x15296f){return new window[(_0x595bca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x121d49=>{if(_0x1b6876())return _0x121d49(_0x595bca([0x56,0x61,0x6c,0x69,0x64]));_0x5c7e8b(),_0x284c1a[_0x595bca([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x595bca([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x163713=!0x1;const _0x302622=_0x512e19();function _0x2ca6f9(_0x7d47e){return!!_0x7d47e&&(typeof _0x7d47e===_0x595bca([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x7d47e===_0x595bca([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x7d47e[_0x595bca([0x74,0x68,0x65,0x6e])]===_0x595bca([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x7d47e[_0x595bca([0x63,0x61,0x74,0x63,0x68])]===_0x595bca([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5a481c(_0x5b3d03){_0x125991(_0x5b3d03)[_0x595bca([0x74,0x68,0x65,0x6e])](_0x397477=>{if(!_0x397477||_0x397477[_0x595bca([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x595bca([0x6f,0x6b]))return _0x595bca([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x29a8b9(_0x311c9c(_0x302622+_0x15296f))!=_0x397477[_0x595bca([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x595bca([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x595bca([0x56,0x61,0x6c,0x69,0x64]);})[_0x595bca([0x74,0x68,0x65,0x6e])](_0x115540=>(_0x1b79a4(),_0x115540),()=>{const _0x40baa4=_0x5eff29();return null==_0x40baa4?(_0x1b79a4(),_0x595bca([0x56,0x61,0x6c,0x69,0x64])):_0x595bca(_0xe8fb66-_0x40baa4>(0x27d454df^_0x2b1c68)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x595bca([0x74,0x68,0x65,0x6e])](_0x121d49)[_0x595bca([0x63,0x61,0x74,0x63,0x68])](()=>{_0x121d49(_0x595bca([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xd5a188=0x3ee3e5f^_0x2b1c68;function _0x1b79a4(){const _0x425143=_0x595bca([0x6c,0x6c,0x63,0x74,0x2d])+_0x29a8b9(_0x311c9c(_0xcf5a0f)),_0x31d59e=_0x31b570(_0x29a8b9(window[_0x595bca([0x4d,0x61,0x74,0x68])][_0x595bca([0x63,0x65,0x69,0x6c])](_0xe8fb66/_0xd5a188)));window[_0x595bca([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x595bca([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x425143,_0x31d59e);}function _0x5eff29(){const _0x1fc89d=_0x595bca([0x6c,0x6c,0x63,0x74,0x2d])+_0x29a8b9(_0x311c9c(_0xcf5a0f)),_0x4fc664=window[_0x595bca([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x595bca([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1fc89d);return _0x4fc664?window[_0x595bca([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x31b570(_0x4fc664),0x10)*_0xd5a188:null;}function _0x125991(_0x11f8ba){return new window[(_0x595bca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2da4d6,_0x1c61ed)=>{_0x11f8ba[_0x595bca([0x74,0x68,0x65,0x6e])](_0x2da4d6,_0x1c61ed),window[_0x595bca([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1c61ed,0x3d9041f^_0x2b1c68);});}}_0x284c1a[_0x595bca([0x6f,0x6e])](_0x595bca([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2ea988,_0x1add64)=>{if(_0x1add64[0x0]!=_0xcf5a0f)return _0x121d49(_0x595bca([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1add64[0x1]={..._0x1add64[0x1],[_0x595bca([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x302622};},{[_0x595bca([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x595bca([0x68,0x69,0x67,0x68])}),_0x284c1a[_0x595bca([0x6f,0x6e])](_0x595bca([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3123c6=>{_0x2ca6f9(_0x3123c6[_0x595bca([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x163713=!0x0,_0x5a481c(_0x3123c6[_0x595bca([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x595bca([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x595bca([0x6c,0x6f,0x77])}),_0x4dc1c0[_0x595bca([0x74,0x68,0x65,0x6e])](()=>{_0x163713||_0x121d49(_0x595bca([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1b6876(){return _0x284c1a[_0x595bca([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x595bca([0x76,0x69,0x65,0x77])][_0x595bca([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x595bca([0x61,0x75,0x74,0x6f]);}function _0x5c7e8b(){_0x284c1a[_0x595bca([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x595bca([0x76,0x69,0x65,0x77])][_0x595bca([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x595bca([0x61,0x75,0x74,0x6f]);}}function _0x49296e(_0xcb6652){const _0x1d31f9=[new window[(_0x595bca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1a1871=>setTimeout(_0x1a1871,0x3d1ee13^_0x2b1c68)),_0x4dc1c0[_0x595bca([0x74,0x68,0x65,0x6e])](()=>new window[(_0x595bca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2878bf=>{let _0x4127ff=0x0;_0x284c1a[_0x595bca([0x6d,0x6f,0x64,0x65,0x6c])][_0x595bca([0x6f,0x6e])](_0x595bca([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x261cd3,_0x3de41e)=>{_0x3de41e[0x0][_0x595bca([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4127ff++,_0x4127ff==(0x3d8d127^_0x2b1c68)&&(_0x2878bf(),_0x261cd3[_0x595bca([0x6f,0x66,0x66])]());});}))];return window[_0x595bca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x595bca([0x72,0x61,0x63,0x65])](_0x1d31f9)[_0x595bca([0x74,0x68,0x65,0x6e])](()=>_0xcb6652);}async function _0x50018d(){await _0x4dc1c0,_0x284c1a[_0x595bca([0x6d,0x6f,0x64,0x65,0x6c])][_0x595bca([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x586212,_0x284c1a[_0x595bca([0x6d,0x6f,0x64,0x65,0x6c])][_0x595bca([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x586212,_0x284c1a[_0x595bca([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x595bca([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x50ddf3(){return _0x4f8c58(_0x595bca([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xd8d5a8(_0x595bca([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x595bca([0x73,0x74,0x61,0x74,0x65])]==_0x595bca([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x35c451(){return _0x4f8c58(_0x595bca([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 _0x153415(){return _0x4f8c58(_0x595bca([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x49136a(_0x309fac){const _0x13cf4a=_0x459dcd();_0x284c1a[_0x13cf4a]=_0x595bca([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x309fac,_0x309fac!=_0x595bca([0x56,0x61,0x6c,0x69,0x64])&&_0x50018d();}function _0x459dcd(){const _0x2c136d=window[_0x595bca([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x595bca([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x595bca([0x6e,0x6f,0x77])]())[_0x595bca([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x595bca([0x2e]),'');let _0x3bee2e=_0x595bca([0x52]);for(let _0x59f70e=0x0;_0x59f70e<_0x2c136d[_0x595bca([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x59f70e+=0x2){let _0x347aaa=window[_0x595bca([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2c136d[_0x595bca([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x59f70e,_0x59f70e+0x2));_0x347aaa>=_0x481477[_0x595bca([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x347aaa-=_0x481477[_0x595bca([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3bee2e+=_0x481477[_0x347aaa];}return _0x3bee2e;}function _0x492c21(){const _0x6b654d=_0x5c31b1[_0x595bca([0x73,0x70,0x6c,0x69,0x74])](_0x595bca([0x2e]));if(0x3!=_0x6b654d[_0x595bca([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x555bea(_0x6b654d[0x1]);function _0x555bea(_0x44d5a5){const _0x4c220f=_0x3a1348(_0x44d5a5);return _0x4c220f&&_0x52d2dc()?_0x4c220f:null;function _0x52d2dc(){const _0x5a28ff=_0x4c220f[_0x595bca([0x6a,0x74,0x69])],_0x91be74=window[_0x595bca([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5a28ff[_0x595bca([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5a28ff[_0x595bca([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x8b5437={..._0x4c220f,[_0x595bca([0x6a,0x74,0x69])]:_0x5a28ff[_0x595bca([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5a28ff[_0x595bca([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x8b5437[_0x595bca([0x76,0x63])],_0x311c9c(_0x8b5437)==_0x91be74;}}}async function _0x2154ef(){let _0xe64e59=!0x0;try{const _0x19a7ad=_0x5c31b1[_0x595bca([0x73,0x70,0x6c,0x69,0x74])](_0x595bca([0x2e])),[_0x147286,_0x4fe479,_0xaf7ec7]=_0x19a7ad;return _0x46abb1(_0x147286),await _0x1eb1d7(_0x147286,_0x4fe479,_0xaf7ec7),_0xe64e59;}catch{return!0x1;}function _0x46abb1(_0x143faa){const _0xccc8a4=_0x3a1348(_0x143faa);_0xccc8a4&&_0xccc8a4[_0x595bca([0x61,0x6c,0x67])]==_0x595bca([0x45,0x53,0x32,0x35,0x36])||(_0xe64e59=!0x1);}async function _0x1eb1d7(_0x33e41d,_0x8a9205,_0x5e5c6a){const _0x1b00b2=window[_0x595bca([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x595bca([0x66,0x72,0x6f,0x6d])](_0xc15c23(_0x5e5c6a),_0x206dff=>_0x206dff[_0x595bca([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xdac6cc=new window[(_0x595bca([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x595bca([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x33e41d+_0x595bca([0x2e])+_0x8a9205),_0x3dc3a4=window[_0x595bca([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x595bca([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3dc3a4)return;const _0x47dbe7=await _0x3dc3a4[_0x595bca([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x595bca([0x6a,0x77,0x6b]),_0x1a505c,{[_0x595bca([0x6e,0x61,0x6d,0x65])]:_0x595bca([0x45,0x43,0x44,0x53,0x41]),[_0x595bca([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x595bca([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x595bca([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3dc3a4[_0x595bca([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x595bca([0x6e,0x61,0x6d,0x65])]:_0x595bca([0x45,0x43,0x44,0x53,0x41]),[_0x595bca([0x68,0x61,0x73,0x68])]:{[_0x595bca([0x6e,0x61,0x6d,0x65])]:_0x595bca([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x47dbe7,_0x1b00b2,_0xdac6cc)||(_0xe64e59=!0x1);}}function _0x3a1348(_0x1b0687){return _0x1b0687[_0x595bca([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x595bca([0x65,0x79]))?JSON[_0x595bca([0x70,0x61,0x72,0x73,0x65])](_0xc15c23(_0x1b0687)):null;}function _0xc15c23(_0x38e64c){return window[_0x595bca([0x61,0x74,0x6f,0x62])](_0x38e64c[_0x595bca([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x595bca([0x2b]))[_0x595bca([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x595bca([0x2f])));}function _0x311c9c(_0x32cd8b){let _0x1efa44=0x1505;function _0x69cb2f(_0x1693a9){for(let _0x1e7ee5=0x0;_0x1e7ee5<_0x1693a9[_0x595bca([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1e7ee5++){const _0x459796=_0x1693a9[_0x595bca([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1e7ee5);_0x1efa44=(_0x1efa44<<0x5)+_0x1efa44+_0x459796,_0x1efa44&=_0x1efa44;}}function _0x56ff77(_0x5673b4){Array[_0x595bca([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5673b4)?_0x5673b4[_0x595bca([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x56ff77):_0x5673b4&&typeof _0x5673b4==_0x595bca([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x595bca([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5673b4)[_0x595bca([0x73,0x6f,0x72,0x74])]()[_0x595bca([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x40fb90,_0x26f39b])=>{_0x69cb2f(_0x40fb90),_0x56ff77(_0x26f39b);}):_0x69cb2f(window[_0x595bca([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5673b4));}return _0x56ff77(_0x32cd8b),_0x1efa44>>>0x0;}function _0x29a8b9(_0xd40e3){return _0xd40e3[_0x595bca([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x595bca([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x595bca([0x30]));}function _0x31b570(_0x1ebed2){return _0x1ebed2[_0x595bca([0x73,0x70,0x6c,0x69,0x74])]('')[_0x595bca([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x595bca([0x6a,0x6f,0x69,0x6e])]('');}function _0x4f8c58(_0x2bd954){return _0x284c1a[_0x595bca([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x595bca([0x68,0x61,0x73])](_0x2bd954);}function _0xd8d5a8(_0x41663f){return _0x284c1a[_0x595bca([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x595bca([0x67,0x65,0x74])](_0x41663f);}function _0x586212(){}function _0x595bca(_0x28194c){return _0x28194c['map'](_0x4a6108=>String['fromCharCode'](_0x4a6108))['join']('');}_0x49136a(await _0x3c471d());}(this);}set['adapter'](_0x2a4789){if(this['_adapter'])throw new _0x16ebc5('track-changes-adapter-already-set',this);this['_adapter']=_0x2a4789;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x4777cd=!0x1,toJSON:_0x4d9172=!0x1}={}){const _0x4d7124=[];for(const _0x5cd3ea of this['_suggestions']['values']())_0x4777cd&&!_0x5cd3ea['isInContent']||_0x4d7124['push'](_0x5cd3ea);return _0x4d9172?_0x4d7124['map'](_0x4fe268=>_0x4fe268['toJSON']()):_0x4d7124;}['getSuggestion'](_0x3eed01){const _0x258ac5=this['_suggestions']['get'](_0x3eed01);if(!_0x258ac5)throw new _0x16ebc5('track-changes-suggestion-not-found',this);return _0x258ac5;}['hasSuggestion'](_0x43024b){return this['_suggestions']['has'](_0x43024b);}['addSuggestionData'](_0x15ad75){const {authorId:_0x301d33,id:_0x3d3819,originalSuggestionId:_0x343f16,attributes:_0x680fec}=_0x15ad75,[_0x5a13fa,_0x2e93e3]=_0x15ad75['type']['split'](':'),_0x3909e3=this['_suggestions']['get'](_0x3d3819)||this['_createSuggestion'](_0x5a13fa,_0x2e93e3,_0x3d3819,_0x301d33,_0x680fec,_0x343f16);if(this['_addThreadToSuggestion'](_0x3909e3),this['_checkSuggestionCorrectness'](_0x3909e3,_0x5a13fa,_0x2e93e3||null,_0x301d33),_0x3909e3['createdAt']=_0x15ad75['createdAt'],_0x3909e3['_isDataLoaded']=!0x0,_0x680fec&&_0x680fec['@external']){const _0x9ef915=_0x680fec['@external'],_0x5ad941=this['_getExternalAuthor'](_0x9ef915['authorName']);_0x3909e3['authoredAt']=_0x9ef915['createdAt'],_0x3909e3['author']=_0x5ad941,_0x3909e3['isExternal']=!0x0;}else _0x3909e3['authoredAt']=_0x15ad75['createdAt'];switch(_0x15ad75['data']&&(_0x3909e3['data']=_0x15ad75['data']),_0x15ad75['attributes']&&(_0x3909e3['attributes']=_0x15ad75['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3909e3['_saved']=!0x0),this['_suggestionState']['get'](_0x3909e3)){case'notReady':this['_suggestionState']['set'](_0x3909e3,'dataReady');break;case'markerReady':_0x3909e3['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3909e3])),this['_refreshSuggestionsChain'](new Set([_0x3909e3])),this['_suggestionState']['set'](_0x3909e3,'ready'),this['fire']('suggestionLoaded',_0x3909e3)):this['_suggestionState']['set'](_0x3909e3,'removed');}return _0x3909e3;}['acceptSuggestion'](_0x4d8ab5){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x9f9a32 of _0x4d8ab5['getAllAdjacentSuggestions']())_0x9f9a32['accept']();});});}['discardSuggestion'](_0x3c365e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5aaeb5 of _0x3c365e['getAllAdjacentSuggestions']())_0x5aaeb5['discard']();});});}['enableCommand'](_0x5339d5,_0x3972e0){const _0x5d9447=this['editor']['commands']['get'](_0x5339d5);if(!_0x5d9447)throw new _0x16ebc5('track-changes-command-not-found',this,{'commandName':_0x5339d5});if(this['_enabledCommands']['has'](_0x5d9447))throw new _0x16ebc5('track-changes-enable-command-twice',this,{'commandName':_0x5339d5});this['_enabledCommands']['add'](_0x5d9447),_0x3972e0&&_0x5d9447['on']('execute',(_0x4d023f,_0x25cb3f)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x25cb3f['length']>0x0&&_0x25cb3f[_0x25cb3f['length']-0x1]&&_0x25cb3f[_0x25cb3f['length']-0x1]['forceDefaultExecution']?_0x25cb3f['pop']():(_0x4d023f['return']=_0x3972e0((..._0x4a32a9)=>_0x5d9447['execute'](..._0x4a32a9,{'forceDefaultExecution':!0x0}),..._0x25cb3f),_0x4d023f['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x117d5d){let _0x33d519,_0x337fbd;const _0x479ab6=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x33d519=_0x117d5d();}catch(_0x37af49){_0x337fbd=_0x37af49;}return _0x479ab6||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x337fbd&&_0x16ebc5['rethrowUnexpectedError'](_0x337fbd,this),_0x33d519;}['markInsertion'](_0x13b603,_0x15bcef=null,_0x2c55f6={}){if(_0x13b603['isCollapsed'])return null;const _0x2b03bc=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x2c55f6['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x28c715,meta:_0x25a8fc}of this['_findSuggestions'](_0x13b603,'insertion'))if(_0x25a8fc['isOwn']){if(!_0x25a8fc['isNextTo']){if(_0x25a8fc['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!sn(_0x28c715,_0x2c55f6))continue;return _0x28c715;}if(sn(_0x28c715,_0x2c55f6))return _0x28c715;this['_breakSuggestionMarker'](_0x28c715,_0x13b603['start'],_0x13b603['end']);break;}if(_0x15bcef==_0x28c715['subType']&&sn(_0x28c715,_0x2c55f6)){const _0x5a0595=_0x28c715['getFirstRange']();return _0x5a0595['start']['isEqual'](_0x13b603['end'])?this['_setSuggestionRange'](_0x28c715,this['_model']['createRange'](_0x13b603['start'],_0x5a0595['end'])):this['_setSuggestionRange'](_0x28c715,this['_model']['createRange'](_0x5a0595['start'],_0x13b603['end'])),_0x28c715;}}const _0x4d5223=_0x512e19(),_0x19f285=_0x2b03bc['id'],_0x265876=_0x15bcef?'insertion:'+_0x15bcef:'insertion',_0x2a1e8f=this['_setSuggestionData']({'id':_0x4d5223,'type':_0x265876,'createdAt':new Date(),'authorId':_0x19f285,'attributes':_0x2c55f6});return this['_addSuggestionMarker'](_0x265876,_0x4d5223,_0x19f285,_0x13b603),_0x2a1e8f;}['markMultiRangeInsertion'](_0x29f084,_0x473016='multi',_0x2e63ce={}){const _0x4cbdcb=this['editor']['plugins']['get']('Users')['me'],_0x3d0122=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x473016,'join');this['_trackingSessionId']&&(_0x2e63ce['trackingSessionId']=this['_trackingSessionId']);for(const _0x52c9aa of this['getSuggestions']())if(_0x52c9aa['author']['id']==_0x4cbdcb['id']&&'insertion'==_0x52c9aa['type']&&_0x52c9aa['subType']==_0x473016&&sn(_0x52c9aa,_0x2e63ce)&&(_0x3d0122(_0x52c9aa['getRanges'](),_0x29f084)||_0x3d0122(_0x29f084,_0x52c9aa['getRanges']()))){for(const _0x37197a of _0x29f084)_0x52c9aa['addRange'](_0x37197a);return _0x52c9aa;}for(const {suggestion:_0x594e26,meta:_0x1be0bf}of this['_findSuggestions'](_0x29f084,'insertion')){if(!_0x1be0bf['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1be0bf['containsRangeInObject'])continue;if(!sn(_0x594e26,_0x2e63ce))continue;let _0x53ec56=!0x0;for(const _0x56907b of _0x594e26['getRanges']())for(const _0x253208 of _0x29f084)if(!_0x56907b['containsRange'](_0x253208)){_0x53ec56=!0x1;break;}if(_0x53ec56)return _0x594e26;}const _0x281f8b=_0x512e19(),_0x61edf1=_0x4cbdcb['id'],_0x47059a='insertion:'+_0x473016,_0x556677=this['_setSuggestionData']({'id':_0x281f8b,'type':_0x47059a,'createdAt':new Date(),'authorId':_0x61edf1,'attributes':_0x2e63ce});for(const _0x525fb0 of _0x29f084)this['_addSuggestionMarker'](_0x47059a,_0x281f8b,_0x61edf1,_0x525fb0,x['getMultiRangeId']());return _0x556677;}['markInlineFormat'](_0x14f3b9,_0x4dc13e,_0x1539e8=null,_0xe056ac={}){if(_0x1539e8=_0x1539e8||Ht(_0x4dc13e),_0x14f3b9['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0xe056ac['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1ed3c1=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1539e8,'accept');return this['forceDefaultExecution'](()=>_0x1ed3c1([_0x14f3b9],_0x4dc13e,_0xe056ac)),null;}const _0x1438c6=this['editor']['plugins']['get']('Users')['me'],_0x4900b1=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x1bb12a,meta:_0x1f8e00}of this['_findSuggestions'](_0x14f3b9,'insertion'))_0x1f8e00['isOwn']&&!_0x1f8e00['isInsideObject']&&_0x4900b1['push'](..._0x1bb12a['getRanges']());}const _0x3bedc3=function(_0x210bf1,_0xca749a){const _0x5d666=[];for(const _0x71a26e of _0xca749a){const _0x1cd3fb=_0x210bf1['getIntersection'](_0x71a26e);_0x1cd3fb&&_0x5d666['push'](_0x1cd3fb);}return _0x5d666;}(_0x14f3b9,_0x4900b1),_0x7ea79=function(_0x1ba4ef,_0x1f00dc){const _0x195c3c=[_0x1ba4ef];for(const _0x125625 of _0x1f00dc){let _0x2f53b4=0x0;for(;_0x2f53b4<_0x195c3c['length'];){const _0x4db739=_0x195c3c[_0x2f53b4]['getDifference'](_0x125625);_0x195c3c['splice'](_0x2f53b4,0x1,..._0x4db739),_0x2f53b4+=_0x4db739['length'];}}return _0x195c3c;}(_0x14f3b9,_0x4900b1);_0x3bedc3['length']&&this['_model']['change'](()=>{for(const _0x513297 of _0x3bedc3){const _0x4bdb83=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1539e8,'accept');this['forceDefaultExecution'](()=>_0x4bdb83([_0x513297],_0x4dc13e,_0xe056ac));}});for(const _0x1c6578 of _0x7ea79){let _0x1843da=null,_0x21f7ea=_0x1c6578['start'],_0x3d533f=_0x1c6578['end'];for(const {suggestion:_0x4c7d49,meta:_0x3263d7}of this['_findSuggestions'](_0x1c6578,'formatInline')){if(!_0x3263d7['isOwn'])continue;if(_0x4c7d49['subType']!=_0x1539e8)continue;if(!sn(_0x4c7d49,_0xe056ac))continue;const _0x1bcd5f=_0x4c7d49['getFirstRange']();if(_0x1bcd5f['containsRange'](_0x1c6578,!0x0))return null;_0x21f7ea=_0x21f7ea['isBefore'](_0x1bcd5f['start'])?_0x21f7ea:_0x1bcd5f['start'],_0x3d533f=_0x3d533f['isAfter'](_0x1bcd5f['end'])?_0x3d533f:_0x1bcd5f['end'],_0x1843da?_0x1bcd5f['start']['isBefore'](_0x1843da['getFirstRange']()['start'])?(_0x1843da['removeMarkers'](),_0x1843da=_0x4c7d49):_0x4c7d49['removeMarkers']():_0x1843da=_0x4c7d49;}const _0x18cb01=this['_model']['createRange'](_0x21f7ea,_0x3d533f);if(_0x1843da)this['_setSuggestionRange'](_0x1843da,_0x18cb01);else{const _0x3a1cab=_0x512e19(),_0x5a207c=_0x1438c6['id'];this['_setSuggestionData']({'id':_0x3a1cab,'type':'formatInline:'+_0x1539e8,'data':_0x4dc13e,'createdAt':new Date(),'authorId':_0x5a207c,'attributes':_0xe056ac}),this['_addSuggestionMarker']('formatInline:'+_0x1539e8,_0x3a1cab,_0x5a207c,_0x18cb01);}}return null;}['markBlockFormat'](_0x19a7cd,_0x3e8877,_0x557a77=[],_0x11d792=null,_0x4f4435={}){_0x3e8877['formatGroupId']||(_0x3e8877['formatGroupId']=_0x3e8877['commandName']),_0x3e8877['multipleBlocks']=_0x19a7cd['is']('range'),_0x11d792=_0x11d792||Ht(_0x3e8877);const _0x5a3b82=_0x557a77['map'](_0x32da30=>tn(_0x32da30,this['_model'])),_0x4281b4=_0x19a7cd['is']('range')?_0x19a7cd:tn(_0x19a7cd,this['_model']);if(this['_trackingSessionId']&&(_0x4f4435['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x698e78=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x11d792,'accept');return this['forceDefaultExecution'](()=>_0x698e78([_0x4281b4],_0x3e8877,_0x4f4435)),null;}_0x5a3b82['push'](_0x4281b4);let _0x2c7c7f=!0x0;for(const _0x2ec5c1 of _0x5a3b82)if(!this['_rangeIsInLocalUserInsertion'](_0x2ec5c1)){_0x2c7c7f=!0x1;break;}if(_0x2c7c7f&&'always'!==this['_trackFormatChanges']){const _0xae982b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x11d792,'accept');return this['forceDefaultExecution'](()=>_0xae982b([_0x4281b4],_0x3e8877,_0x4f4435)),null;}let _0x150866=null,_0x23c1c3=_0x4281b4['start'],_0x33330e=_0x4281b4['end'];for(const {suggestion:_0x3482c6,meta:_0x3f643b}of this['_findSuggestions'](_0x4281b4,'formatBlock')){if(!_0x3f643b['isOwn'])continue;if(_0x3f643b['isNextTo']||_0x3f643b['containsRangeInObject']||_0x3f643b['isInsideObject'])continue;if(_0x3482c6['data']['formatGroupId']!=_0x3e8877['formatGroupId'])continue;if(!sn(_0x3482c6,_0x4f4435))continue;const _0x1166be=_0x3482c6['getFirstRange']();if(_0x3482c6['subType']==_0x11d792){if(_0x1166be['containsRange'](_0x4281b4,!0x0))return null;_0x23c1c3=_0x23c1c3['isBefore'](_0x1166be['start'])?_0x23c1c3:_0x1166be['start'],_0x33330e=_0x33330e['isAfter'](_0x1166be['end'])?_0x33330e:_0x1166be['end'],_0x150866?_0x1166be['start']['isBefore'](_0x150866['getFirstRange']()['start'])?(_0x150866['removeMarkers'](),_0x150866=_0x3482c6):_0x3482c6['removeMarkers']():_0x150866=_0x3482c6;}else{const _0x24484d=_0x4281b4['getIntersection'](_0x1166be);this['_cutOutSuggestionMarker'](_0x3482c6,_0x24484d);}}const _0x450317=this['editor']['plugins']['get']('Users')['me'],_0x485a68=_0x512e19(),_0x260f7d=_0x450317['id'];if(_0x150866)return this['_setSuggestionRange'](_0x150866,this['_model']['createRange'](_0x23c1c3,_0x33330e)),_0x150866;{const _0x3326bb=this['_setSuggestionData']({'id':_0x485a68,'type':'formatBlock:'+_0x11d792,'data':_0x3e8877,'createdAt':new Date(),'authorId':_0x260f7d,'attributes':_0x4f4435});return this['_addSuggestionMarker']('formatBlock:'+_0x11d792,_0x485a68,_0x260f7d,this['_model']['createRange'](_0x23c1c3,_0x33330e)),_0x3326bb;}}['markMultiRangeBlockFormat'](_0x20cf36,_0x423b64,_0x397148=[],_0x4898de=null,_0x4492f0={}){_0x423b64['formatGroupId']||(_0x423b64['formatGroupId']=_0x423b64['commandName']);const _0xf913f5=_0x20cf36[0x0];_0x423b64['multipleBlocks']=_0xf913f5['is']('range'),_0x4898de=_0x4898de||Ht(_0x423b64);const _0x2e1f20=_0x397148['map'](_0x23bb06=>tn(_0x23bb06,this['_model'])),_0x1d19bf=_0xf913f5['is']('range')?_0x20cf36:_0x20cf36['map'](_0x2fbb13=>tn(_0x2fbb13,this['_model']));if(this['_trackingSessionId']&&(_0x4492f0['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x12ebf1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4898de,'accept');return this['forceDefaultExecution'](()=>_0x12ebf1(_0x1d19bf,_0x423b64,_0x4492f0)),null;}_0x2e1f20['push'](..._0x1d19bf);let _0x474f0d=!0x0;for(const _0x35752a of _0x2e1f20)if(!this['_rangeIsInLocalUserInsertion'](_0x35752a)){_0x474f0d=!0x1;break;}if(_0x474f0d&&'always'!==this['_trackFormatChanges']){const _0x384ace=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4898de,'accept');return this['forceDefaultExecution'](()=>_0x384ace(_0x1d19bf,_0x423b64,_0x4492f0)),null;}const _0xe9216b=this['editor']['plugins']['get']('Users')['me'];for(const _0x5629ba of this['getSuggestions']()){const _0x358c7f=_0x5629ba['data'];if(_0x5629ba['author']['id']!=_0xe9216b['id'])continue;if('formatBlock'!=_0x5629ba['type']||_0x358c7f['formatGroupId']!=_0x423b64['formatGroupId'])continue;if(!sn(_0x5629ba,_0x4492f0))continue;const _0x5ec24a=_0x5629ba['subType']==_0x4898de;for(let _0x2ed45a=0x0;_0x2ed45a<_0x1d19bf['length'];_0x2ed45a++){const _0x3a224e=_0x1d19bf[_0x2ed45a];for(const _0x3599bf of _0x5629ba['getMarkers']()){const _0x4792de=_0x3599bf['getRange']();if(_0x3a224e['isEqual'](_0x4792de)){_0x5ec24a?(_0x1d19bf['splice'](_0x2ed45a,0x1),_0x2ed45a--):_0x5629ba['removeMarker'](_0x3599bf['name']);break;}}}}if(0x0==_0x1d19bf['length'])return null;const _0x3be412=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4898de,'join');for(const _0x321569 of this['getSuggestions']()){const _0x2f1f14=_0x321569['data'];if(_0x321569['author']['id']==_0xe9216b['id']&&('formatBlock'==_0x321569['type']&&_0x2f1f14['formatGroupId']==_0x423b64['formatGroupId']&&_0x321569['subType']==_0x4898de&&sn(_0x321569,_0x4492f0)&&(_0x3be412(_0x321569['getRanges'](),_0x1d19bf)||_0x3be412(_0x1d19bf,_0x321569['getRanges']())))){for(const _0x2aeb61 of _0x1d19bf)_0x321569['addRange'](_0x2aeb61);return _0x321569;}}const _0x44d2f6=_0x512e19(),_0x3ec268=_0xe9216b['id'],_0x3adeb9='formatBlock:'+_0x4898de,_0x4bcf0f=this['_setSuggestionData']({'id':_0x44d2f6,'type':_0x3adeb9,'data':_0x423b64,'createdAt':new Date(),'authorId':_0x3ec268,'attributes':_0x4492f0});for(const _0xb69348 of _0x1d19bf)this['_addSuggestionMarker'](_0x3adeb9,_0x44d2f6,_0x3ec268,_0xb69348,x['getMultiRangeId']());return _0x4bcf0f;}['markDeletion'](_0x3233b3,_0x30e083=null,_0x563a76={}){if(_0x3233b3['isCollapsed'])return null;const _0x13626a=this['editor']['plugins']['get']('Users')['me'],_0x303e1d=new _0x5bf397(_0x3233b3['start'],_0x3233b3['end']);this['_trackingSessionId']&&(_0x563a76['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3b462e,meta:_0x1e0ffa}of this['_findSuggestions'](_0x303e1d,'insertion'))if(_0x1e0ffa['isOwn']&&!_0x1e0ffa['isNextTo']){if(_0x3b462e['isMultiRange']){const _0x35bb0a=_0x3b462e['getRanges']()['filter'](_0x5325a4=>'$graveyard'!=_0x5325a4['root']['rootName']);_0x35bb0a['every'](_0x2e6ca1=>_0x303e1d['containsRange'](_0x2e6ca1,!0x0))&&_0x3b462e['discard']();if(_0x35bb0a['some'](_0xeeb138=>_0xeeb138['containsRange'](_0x303e1d,!0x0))){const _0x2a48c1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x30e083,'accept');return this['forceDefaultExecution'](()=>_0x2a48c1([_0x303e1d],null,_0x563a76)),null;}}else{const _0x54b684=_0x303e1d['getIntersection'](_0x3b462e['getFirstRange']());null!==_0x54b684&&_0x3b462e['_onDiscard']([_0x54b684],null,_0x563a76);}}if(_0x303e1d['detach'](),_0x303e1d['isCollapsed']||'$graveyard'==_0x303e1d['root']['rootName'])return null;let _0x30ac1b=null,_0x275727=_0x303e1d['start'],_0x211c04=_0x303e1d['end'];const _0x4fea51=this['_findSuggestions'](_0x303e1d,'deletion');for(const {suggestion:_0x3f0058,meta:_0x8f7971}of _0x4fea51){const _0x13a23d=this['_model']['createRange'](_0x275727,_0x211c04);if(_0x8f7971['isOwn']&&(this['_mergeNestedSuggestions']||!_0x8f7971['containsRangeInObject']&&!_0x8f7971['isInsideObject'])){if(_0x3f0058['isMultiRange']){if(!sn(_0x3f0058,_0x563a76))continue;let _0x418eb6=!0x0;for(const _0x44b54a of _0x3f0058['getRanges']()){if(_0x44b54a['containsRange'](_0x13a23d,!0x0))return _0x3f0058;_0x13a23d['containsRange'](_0x44b54a)||(_0x418eb6=!0x1);}_0x418eb6&&_0x3f0058['discard']();}else{const _0x16be76=_0x3f0058['getFirstRange']();if(_0x16be76['containsRange'](_0x13a23d,!0x0))return _0x3f0058;if(!sn(_0x3f0058,_0x563a76)){_0x13a23d['containsRange'](_0x16be76)?_0x3f0058['removeMarkers']():_0x16be76['containsPosition'](_0x275727)?_0x275727=_0x16be76['end']:_0x16be76['containsPosition'](_0x211c04)&&(_0x211c04=_0x16be76['start']);continue;}_0x275727=_0x275727['isBefore'](_0x16be76['start'])?_0x275727:_0x16be76['start'],_0x211c04=_0x211c04['isAfter'](_0x16be76['end'])?_0x211c04:_0x16be76['end'],_0x563a76=Object['assign']({},_0x3f0058['attributes']),_0x30ac1b?_0x16be76['start']['isBefore'](_0x30ac1b['getFirstRange']()['start'])?(_0x30ac1b['removeMarkers'](),_0x30ac1b=_0x3f0058):_0x3f0058['removeMarkers']():_0x30ac1b=_0x3f0058;}}}if(_0x30ac1b)return this['_setSuggestionRange'](_0x30ac1b,this['_model']['createRange'](_0x275727,_0x211c04)),_0x30ac1b;{const _0x6c0c67=_0x512e19(),_0x37400c=this['_model']['createRange'](_0x275727,_0x211c04),_0x8e773f=_0x13626a['id'],_0x130eb0=_0x30e083?'deletion:'+_0x30e083:'deletion',_0x1387a2=this['_setSuggestionData']({'id':_0x6c0c67,'type':_0x130eb0,'createdAt':new Date(),'authorId':_0x8e773f,'attributes':_0x563a76});return this['_addSuggestionMarker'](_0x130eb0,_0x6c0c67,_0x8e773f,_0x37400c),_0x1387a2;}}['markMultiRangeDeletion'](_0xc16568,_0x17fbb3='multi',_0x785de3={}){const _0xd3cd73=this['editor']['plugins']['get']('Users')['me'],_0x133798=_0xc16568['map'](_0x11bd40=>new _0x5bf397(_0x11bd40['start'],_0x11bd40['end'])),_0x4fad1a=new Set();this['_trackingSessionId']&&(_0x785de3['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3d5450,meta:_0x1bf29d}of this['_findSuggestions'](_0x133798,'insertion'))_0x1bf29d['isOwn']&&!_0x1bf29d['isNextTo']&&_0x4fad1a['add'](_0x3d5450);for(const _0x1a349e of _0x4fad1a)if(_0x1a349e['isMultiRange']){const _0x1e5cca=_0x1a349e['getRanges']();(!_0x1a349e['attributes']||!_0x1a349e['attributes']['skipNestingCheck'])&&(_0x1e5cca['every'](_0x1f3381=>_0x133798['some'](_0x58f2e6=>_0x58f2e6['containsRange'](_0x1f3381,!0x0)))&&_0x1a349e['discard']());if(_0x133798['every'](_0x126d4e=>_0x1e5cca['some'](_0x1c6b2e=>_0x1c6b2e['containsRange'](_0x126d4e,!0x0)))){const _0x4560d0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x17fbb3,'accept');return this['forceDefaultExecution'](()=>_0x4560d0(_0xc16568,null,_0x785de3)),null;}}else{const _0x355cc1=_0x1a349e['getFirstRange']();_0x133798['some'](_0x1dccfa=>_0x1dccfa['containsRange'](_0x355cc1,!0x0))&&_0x1a349e['discard']();if(_0x133798['every'](_0x28d7ab=>_0x355cc1['containsRange'](_0x28d7ab,!0x0))){const _0x25f95e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x17fbb3,'accept');return this['forceDefaultExecution'](()=>_0x25f95e(_0x133798,null,_0x785de3)),null;}}const _0xa49ad5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x17fbb3,'join');let _0x2f46ad=null;for(const _0x5e7a85 of this['getSuggestions']())if(_0x5e7a85['author']['id']==_0xd3cd73['id']&&_0x5e7a85['isInContent']&&'deletion'==_0x5e7a85['type']&&_0x5e7a85['subType']==_0x17fbb3&&sn(_0x5e7a85,_0x785de3)&&(_0xa49ad5(_0x5e7a85['getRanges'](),_0x133798)||_0xa49ad5(_0x133798,_0x5e7a85['getRanges']()))){if(_0x2f46ad){if(_0x5e7a85['commentThread']&&_0x5e7a85['commentThread']['length'])continue;for(const _0x262145 of _0x5e7a85['getRanges']())_0x2f46ad['isIntersectingWithRange'](_0x262145)||_0x2f46ad['addRange'](_0x262145);_0x5e7a85['removeMarkers']();}else{_0x2f46ad=_0x5e7a85;for(const _0x2d650b of _0x133798)_0x5e7a85['isIntersectingWithRange'](_0x2d650b)||_0x5e7a85['addRange'](_0x2d650b);}}if(_0x2f46ad)return _0x2f46ad;_0x4fad1a['clear']();for(const {suggestion:_0x212425,meta:_0x1aedf5}of this['_findSuggestions'](_0x133798,'deletion'))_0x1aedf5['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1aedf5['containsRangeInObject']&&!_0x1aedf5['isInsideObject'])&&sn(_0x212425,_0x785de3)&&_0x4fad1a['add'](_0x212425);for(const _0x343e0b of _0x4fad1a){const _0x51d84e=_0x343e0b['getRanges']();if(!_0x785de3||!_0x785de3['skipNestingCheck']){if(_0x133798['every'](_0x5e26b5=>_0x51d84e['some'](_0x421978=>_0x421978['containsRange'](_0x5e26b5,!0x0))))return _0x343e0b;}(!_0x343e0b['attributes']||!_0x343e0b['attributes']['skipNestingCheck'])&&(_0x51d84e['every'](_0xca0dcf=>_0x133798['some'](_0x2a9233=>_0x2a9233['containsRange'](_0xca0dcf,!0x0)))&&_0x343e0b['discard']());}const _0x2b7f9d=_0x512e19(),_0x54935b=_0xd3cd73['id'],_0x3999aa='deletion:'+_0x17fbb3,_0x493a8=this['_setSuggestionData']({'id':_0x2b7f9d,'type':_0x3999aa,'createdAt':new Date(),'authorId':_0x54935b,'attributes':_0x785de3});for(const _0x29d2ad of _0x133798)_0x29d2ad['detach'](),_0x29d2ad['isCollapsed']||'$graveyard'==_0x29d2ad['root']['rootName']||this['_addSuggestionMarker'](_0x3999aa,_0x2b7f9d,_0x54935b,_0x29d2ad,x['getMultiRangeId']());return _0x493a8;}['markAttributeChange'](_0x58f1e8,_0x4c8960,_0x585261,_0x303fe3,_0x3d1132){if(_0x58f1e8['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x3f8a88=this['editor']['plugins']['get']('Users')['me']['id'],_0x478be2=Array['from'](this['_suggestions']['values']())['filter'](_0x14ad27=>'attribute'==_0x14ad27['type']&&_0x14ad27['data']['key']==_0x4c8960&&_0x14ad27['isIntersectingWithRange'](_0x58f1e8));if(this['_trackingSessionId']&&(_0x3d1132['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x425e24=this['_findSuggestions'](_0x58f1e8,'insertion')['filter'](({meta:_0x416b0d})=>_0x416b0d['isOwn']&&!_0x416b0d['isInsideObject']&&!_0x416b0d['isNextTo'])['map'](({suggestion:_0x354519})=>_0x354519);_0x478be2['unshift'](..._0x425e24);}const _0x4cf221=new Map([[_0x58f1e8,_0x585261]]);for(const _0x335336 of _0x478be2){const _0x3b1813='attribute'==_0x335336['type']?_0x335336['data']['oldValue']:void 0x0,_0x45dd86=_0x335336['getFirstRange'](),_0x5e3208=Array['from'](_0x4cf221['keys']())['find'](_0x54c63a=>_0x54c63a['isIntersecting'](_0x45dd86));if(!_0x5e3208)continue;const _0x5b5f1a=_0x5e3208['getDifference'](_0x45dd86);this['_isBlockAttribute'](_0x4c8960)&&'insertion'==_0x335336['type']&&0x0!=_0x5b5f1a['length']||(_0x4cf221['delete'](_0x5e3208),_0x5b5f1a['forEach'](_0x580f6e=>{_0x4cf221['set'](_0x580f6e,_0x585261);}),'insertion'!=_0x335336['type']&&_0x3b1813!=_0x303fe3&&_0x4cf221['set'](_0x5e3208['getIntersection'](_0x45dd86),_0x3b1813));}const _0xff9aa0=[];for(const [_0x4ae797,_0x30f37a]of _0x4cf221){const _0x3c4f72=_0x512e19(),_0x3ecb45={'key':_0x4c8960,'oldValue':_0x30f37a,'newValue':_0x303fe3};_0x4c8960['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':_0x4c8960});const _0x54f2b7=('attribute:'+(_0x4c8960+'|'+Ht({'newValue':_0x303fe3})))['substring'](0x0,0x3c),_0x2a81c5=this['_setSuggestionData']({'id':_0x3c4f72,'type':_0x54f2b7,'data':_0x3ecb45,'createdAt':new Date(),'authorId':_0x3f8a88,'attributes':_0x3d1132});_0xff9aa0['push'](_0x2a81c5),this['_addSuggestionMarker'](_0x54f2b7,_0x3c4f72,_0x3f8a88,_0x4ae797);}return _0xff9aa0;}['enableDefaultAttributesIntegration'](_0x453ca2){this['enableCommand'](_0x453ca2,(_0x8d461b,..._0x511d9a)=>{this['recordAttributeChanges'](()=>{_0x8d461b(..._0x511d9a);});});}['registerBlockAttribute'](_0x29c1ba){this['editor']['plugins']['get'](Jt)['registerBlockAttribute'](_0x29c1ba);}['registerInlineAttribute'](_0x4fc507){this['editor']['plugins']['get'](Jt)['registerInlineAttribute'](_0x4fc507);}['startTrackingSession'](_0x54c7b6){return this['_trackingSessionId']=void 0x0!==_0x54c7b6?_0x54c7b6:_0x512e19(),this['_trackingSessionId'];}['_getAttributeKey'](_0x3ca875){return'attribute'==_0x3ca875['type']?_0x3ca875['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x50c6ec){if(0x0==_0x50c6ec['length'])return;const _0x2a6734=this['editor'],_0x699c37=_0x2a6734['plugins']['get'](_0x3d631f),_0x5e3891=[];_0x2a6734['model']['change'](_0x33f627=>{for(let _0x335ac7=0x0;_0x335ac7<_0x50c6ec['length'];_0x335ac7++){const _0x1af3d3=_0x50c6ec[_0x335ac7];if(_0x1af3d3['baseVersion']=_0x2a6734['model']['document']['version'],_0x1af3d3['isDocumentOperation']=!0x0,_0x699c37['isMarkedRemoveOperation'](_0x1af3d3)){const _0x4da6b1=Lt(_0x1af3d3['newRange'],_0x2a6734['model']);_0x5e3891['unshift'](_0x5bf397['fromRange'](_0x4da6b1));}else switch(_0x1af3d3['type']){case'rename':{const _0x129897=_0x1af3d3['oldName'],_0x5347ba=_0x1af3d3['newName'];if(_0x129897==_0x5347ba)break;_0x33f627['batch']['addOperation'](_0x1af3d3),_0x2a6734['model']['applyOperation'](_0x1af3d3);const _0x401f33='$elementName',_0x30089b=_0x1af3d3['position'],_0x5f4666=_0x2a6734['model']['createRange'](_0x30089b,_0x2a6734['model']['createPositionAt'](_0x30089b['nodeAfter'],'end'));this['markAttributeChange'](_0x5f4666,_0x401f33,_0x129897,_0x5347ba,{'groupId':_0x512e19()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x49336b=_0x1af3d3['oldValue'],_0x2427e4=_0x1af3d3['newValue'];if(_0x49336b==_0x2427e4)break;_0x33f627['batch']['addOperation'](_0x1af3d3),_0x2a6734['model']['applyOperation'](_0x1af3d3);const _0x4b6bc9=_0x1af3d3['key'];if(!this['_isRegisteredAttribute'](_0x4b6bc9))break;const _0x3fdee7=Lt(_0x1af3d3['range'],_0x2a6734['model']);this['markAttributeChange'](_0x3fdee7,_0x4b6bc9,_0x49336b,_0x2427e4,{'groupId':_0x512e19()});break;}case'insert':{_0x33f627['batch']['addOperation'](_0x1af3d3),_0x2a6734['model']['applyOperation'](_0x1af3d3);if(_0x50c6ec[_0x335ac7+0x1]&&'move'==_0x50c6ec[_0x335ac7+0x1]['type'])break;const _0x21f732=_0x1af3d3['position'],_0x46923b=_0x1af3d3['howMany'],_0x7cf1e0=Lt(_0x2a6734['model']['createRange'](_0x21f732,_0x21f732['getShiftedBy'](_0x46923b)),_0x2a6734['model']);this['markInsertion'](_0x7cf1e0);break;}case'split':{_0x33f627['batch']['addOperation'](_0x1af3d3),_0x2a6734['model']['applyOperation'](_0x1af3d3);const _0x5f3cc1=_0x1af3d3['splitPosition'],_0x4e892e=_0x1af3d3['moveTargetPosition'];this['markInsertion'](_0x2a6734['model']['createRange'](_0x5f3cc1,_0x4e892e));break;}case'move':case'remove':_0x33f627['batch']['addOperation'](_0x1af3d3),_0x2a6734['model']['applyOperation'](_0x1af3d3);}}for(const _0xc53eaa of _0x5e3891)_0xc53eaa['detach'](),this['markDeletion'](_0xc53eaa);});}['_setSuggestionRange'](_0x303497,_0xab08b5){const _0x5d71c5=_0x303497['getFirstMarker']();this['_model']['change'](_0x4b8224=>{_0x4b8224['updateMarker'](_0x5d71c5,{'range':_0xab08b5});});}['_addThreadToSuggestion'](_0x554fdb){const _0xfea1e7=_0x554fdb['id'],_0x2c9863=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0xfea1e7)||this['_commentsRepository']['addCommentThread']({'channelId':_0x2c9863,'threadId':_0xfea1e7,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3d2552=this['_commentsRepository']['getCommentThread'](_0xfea1e7);_0x3d2552['unbind']('isRemovable'),_0x3d2552['isRemovable']=!0x1,_0x554fdb['commentThread']=_0x3d2552;}['_checkSuggestionCorrectness'](_0x524cdc,_0x1ccd43,_0x2d9418,_0x41e7f){if(_0x524cdc['type']!=_0x1ccd43||_0x524cdc['subType']!=_0x2d9418||_0x524cdc['creator']['id']!=_0x41e7f)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x16ebc5('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x5d0c4b,_0x52b879){const _0x36d6f9=_0x5d0c4b['getFirstRange']();if(_0x52b879['isEqual'](_0x36d6f9))_0x5d0c4b['removeMarkers']();else{if(_0x36d6f9['containsRange'](_0x52b879)){const _0x3b6ad1=this['_model']['createPositionAt'](_0x52b879['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5d0c4b,this['_model']['createRange'](_0x36d6f9['start'],_0x3b6ad1));const _0x6aef25=_0x512e19(),_0x582f9b=_0x5d0c4b['creator']['id'],_0x16f873=_0x5d0c4b['type']+':'+_0x5d0c4b['subType'];this['_setSuggestionData']({'id':_0x6aef25,'type':_0x16f873,'createdAt':new Date(),'authorId':_0x582f9b,'data':_0x5d0c4b['data'],'attributes':_0x5d0c4b['attributes']});const _0x26da35=this['_model']['createPositionAt'](_0x52b879['end']['parent'],'after'),_0x48c1ac=this['_model']['createRange'](_0x26da35,_0x36d6f9['end']);this['_addSuggestionMarker'](_0x16f873,_0x6aef25,_0x582f9b,_0x48c1ac);}else{if(_0x36d6f9['containsPosition'](_0x52b879['start'])){const _0x405980=this['_model']['createPositionAt'](_0x52b879['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5d0c4b,this['_model']['createRange'](_0x36d6f9['start'],_0x405980));}else{const _0x33f7b8=this['_model']['createPositionAt'](_0x52b879['end']['parent'],'after');this['_setSuggestionRange'](_0x5d0c4b,this['_model']['createRange'](_0x33f7b8,_0x36d6f9['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x13f703){for(const {suggestion:_0x5e6fc0,meta:_0x25c7b5}of this['_findSuggestions'](_0x13f703,'insertion')){if(!_0x25c7b5['isOwn'])continue;const _0x1588a8=_0x5e6fc0['getRanges']();for(const _0x2b5afe of _0x1588a8)if(!_0x13f703['getDifference'](_0x2b5afe)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x21e976){return this['editor']['plugins']['get']('Users')['getUser'](_0x21e976);}['_getExternalAuthor'](_0x34f57b){const _0x15da4a=this['editor']['plugins']['get']('Users'),_0x259bd9=_0x50d2ee('external:'+_0x34f57b),_0x4d5c3d=_0x15da4a['getUser'](_0x259bd9);return _0x4d5c3d||_0x15da4a['addUser']({'id':_0x259bd9,'name':_0x34f57b});}['_createSuggestion'](_0x3d3664,_0x59cc34,_0x5b2f22,_0x26ce1c,_0x2a6271,_0x36fe88){const _0x27c663=this['_getAuthorFromId'](_0x26ce1c);if(!_0x27c663)throw new _0x16ebc5('track-changes-user-not-found',this,{'authorId':_0x26ce1c,'suggestionId':_0x5b2f22});const _0x23bc9a=this['_suggestionFactory']['buildSuggestion'](_0x3d3664,_0x59cc34,_0x5b2f22,_0x27c663,_0x2a6271,_0x5bfc56=>{this['_updateSuggestionData'](_0x5b2f22,{'attributes':_0x5bfc56});const _0x465afc=this['getSuggestion'](_0x5b2f22);this['_joinWithAdjacentSuggestions'](new Set([_0x465afc])),this['_refreshSuggestionsChain'](new Set([_0x465afc]));},_0x36fe88);return this['listenTo'](_0x23bc9a,'accept',()=>{this['_updateSuggestionData'](_0x5b2f22,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x23bc9a,'discard',()=>{this['_updateSuggestionData'](_0x5b2f22,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x5b2f22,_0x23bc9a),this['_suggestionState']['set'](_0x23bc9a,'notReady'),_0x23bc9a;}['_splitMarkerName'](_0x15660f){return Gt(_0x15660f);}['_breakSuggestionMarker'](_0x14175e,_0x1d0bf8,_0x24ab0c){const _0x36d539=_0x14175e['getFirstRange'](),_0x3ae074=_0x36d539['start'],_0x3eb9de=_0x36d539['end'];this['_setSuggestionRange'](_0x14175e,this['_model']['createRange'](_0x3ae074,_0x1d0bf8));const _0x1bd1c3=_0x512e19(),_0x1bfca6=_0x14175e['creator']['id'],_0x22f1fb=_0x14175e['type']+(_0x14175e['subType']?':'+_0x14175e['subType']:'');this['_setSuggestionData']({'id':_0x1bd1c3,'type':_0x22f1fb,'createdAt':new Date(),'authorId':_0x1bfca6,'originalSuggestionId':_0x14175e['_originalSuggestionId']||_0x14175e['id'],'attributes':_0x14175e['attributes'],'data':_0x14175e['data']});const _0x511b62=this['_getAttributeKey'](_0x14175e);('formatBlock'==_0x14175e['type']||_0x511b62&&this['_isBlockAttribute'](_0x511b62))&&(_0x24ab0c=this['_model']['createPositionBefore'](_0x24ab0c['parent'])),this['_addSuggestionMarker'](_0x22f1fb,_0x1bd1c3,_0x1bfca6,this['_model']['createRange'](_0x24ab0c,_0x3eb9de));}['_findSuggestions'](_0x4fa2d8,_0x39bb95=null){const _0x51d9b2=[],_0x2864e5=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x4fa2d8)||(_0x4fa2d8=[_0x4fa2d8]);for(const _0x2e63d7 of this['getSuggestions']()){if(!_0x2e63d7['isInContent'])continue;if(_0x39bb95&&_0x2e63d7['type']!=_0x39bb95)continue;let _0xe943ba=!0x1;for(const _0x364a5b of _0x2e63d7['getRanges']()){for(const _0x3260c2 of _0x4fa2d8){const _0x37521d=_0x3260c2['start']['isEqual'](_0x364a5b['end'])||_0x3260c2['end']['isEqual'](_0x364a5b['start']);if(_0x37521d||_0x3260c2['getIntersection'](_0x364a5b)){const _0x1b09b3=_0x3260c2['containsRange'](_0x364a5b)&&zt(this['_model']['schema'],_0x364a5b['start'],_0x3260c2),_0x7cebe2=_0x364a5b['containsRange'](_0x3260c2)&&zt(this['_model']['schema'],_0x3260c2['start'],_0x364a5b);_0x51d9b2['push']({'suggestion':_0x2e63d7,'meta':{'isOwn':_0x2864e5==_0x2e63d7['author'],'isNextTo':_0x37521d,'isInsideObject':_0x1b09b3,'containsRangeInObject':_0x7cebe2}}),_0xe943ba=!0x0;break;}}if(_0xe943ba)break;}}return _0x51d9b2;}['_addSuggestionMarker'](_0x48b384,_0x18f8b7,_0x9bfdf1,_0x150e12,_0x282038){this['_model']['change'](_0x516a68=>{let _0x41c8c1='suggestion:'+_0x48b384+':'+_0x18f8b7+':'+_0x9bfdf1;_0x282038&&(_0x41c8c1=_0x41c8c1+':'+_0x282038),_0x516a68['addMarker'](_0x41c8c1,{'range':_0x150e12,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4ab5bc){const _0xb739c8=_0x4ab5bc['previous'],_0x2a696c=_0x4ab5bc['next'];_0x4ab5bc['previous']=null,_0x4ab5bc['next']=null,null!=_0xb739c8&&_0xb739c8['next']==_0x4ab5bc&&(_0xb739c8['next']=_0x2a696c),null!=_0x2a696c&&_0x2a696c['previous']==_0x4ab5bc&&(_0x2a696c['previous']=_0xb739c8),'ready'==this['_suggestionState']['get'](_0x4ab5bc)&&(this['_suggestionState']['set'](_0x4ab5bc,'removed'),this['fire']('suggestionUnloaded',_0x4ab5bc,_0xb739c8,_0x2a696c));}['_setSuggestionData'](_0x1bc38e){const _0x13d0e8=_0x1bc38e['id'],_0x14eeba=this['addSuggestionData'](_0x1bc38e);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x282600=this['editor']['plugins']['get']('PendingActions'),_0x3eea0b=_0x14eeba['hasComments'],_0x526ac9=_0x14eeba['subType']?_0x14eeba['type']+':'+_0x14eeba['subType']:_0x14eeba['type'],_0x50a828=this['editor']['locale'],_0x59ff4f=_0x282600['add'](o(_0x50a828,'PENDING_ACTION_SUGGESTION')),_0x4ecb35={'id':_0x13d0e8,'type':_0x526ac9,'hasComments':_0x3eea0b,'data':_0x1bc38e['data']||null,'originalSuggestionId':_0x1bc38e['originalSuggestionId']||null,'attributes':_0x14eeba['attributes']};this['_adapter']['addSuggestion'](_0x4ecb35)['then'](_0x56d9cc=>{_0x14eeba['_saved']=!0x0,_0x282600['remove'](_0x59ff4f),_0x56d9cc&&_0x56d9cc['createdAt']&&(this['_suggestions']['get'](_0x13d0e8)['createdAt']=_0x56d9cc['createdAt']);})['catch'](_0x135332=>{throw _0x6e283a('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x14eeba['discard']();}),_0x14eeba['stopListening'](),this['_suggestions']['delete'](_0x14eeba['id']),this['_suggestionState']['delete'](_0x14eeba),_0x135332;});}return _0x14eeba;}['_isBlockAttribute'](_0x4e26d2){return this['editor']['plugins']['get'](Jt)['isBlockAttribute'](_0x4e26d2);}['_isInlineAttribute'](_0x5d3090){return this['editor']['plugins']['get'](Jt)['isInlineAttribute'](_0x5d3090);}['_updateSuggestionData'](_0x44f304,_0x11dded){const _0x439fc0=this['editor']['plugins']['get']('PendingActions'),_0xc000ce=this['getSuggestion'](_0x44f304);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xc000ce['_saved']){const _0x567d35=_0x439fc0['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x44f304,_0x11dded)['then'](()=>{_0x439fc0['remove'](_0x567d35);});}else _0xc000ce['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x44f304,_0x11dded);});}}['_getSuggestionData'](_0x2d37bc){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x16ebc5('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2d37bc);}['_handleNewSuggestionMarker'](_0x51335){const {id:_0x108cc2,type:_0x1f7fb9,subType:_0x53cb35,authorId:_0x4f2fe1}=this['_splitMarkerName'](_0x51335),_0x4d40e0=this['_suggestions']['get'](_0x108cc2)||this['_createSuggestion'](_0x1f7fb9,_0x53cb35,_0x108cc2,_0x4f2fe1,{});switch(this['_checkSuggestionCorrectness'](_0x4d40e0,_0x1f7fb9,_0x53cb35,_0x4f2fe1),this['_suggestionState']['get'](_0x4d40e0)){case'notReady':this['_getSuggestionData'](_0x108cc2)['then'](_0x524b73=>{let _0x53017b=Promise['resolve']();_0x524b73['hasComments']&&(_0x53017b=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x108cc2})),_0x53017b['then'](()=>{this['addSuggestionData'](_0x524b73)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4d40e0,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x108cc2,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4d40e0,'ready'),this['fire']('suggestionLoaded',_0x4d40e0);break;case'ready':this['fire']('suggestionChanged',_0x4d40e0);}return _0x4d40e0['addMarkerName'](_0x51335),_0x4d40e0;}['_refreshSuggestionsChain'](_0x466c4b){const _0x5655bc=Array['from'](_0x466c4b),_0x3d33c8=_0x5655bc['filter'](_0x585302=>'attribute'==_0x585302['type']);this['_refreshAttributeSuggestionsChain'](_0x3d33c8);const _0xc88510=_0x5655bc['filter'](_0x381c5e=>!_0x381c5e['isMultiRange']&&'attribute'!=_0x381c5e['type']),_0x170753=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5ebd72=>!_0x5ebd72['isMultiRange']&&'attribute'!=_0x5ebd72['type']),_0x26d4b7=_0x170753['filter'](_0x3ab313=>!_0x466c4b['has'](_0x3ab313)),_0x19b8ae=new Map(_0x170753['map'](_0x411e34=>[_0x411e34,this['_suggestionFactory']['getSuggestionCallback'](_0x411e34['type'],_0x411e34['subType'],'chain')])),_0x5dea85=new Map(_0x170753['map'](_0x3526c2=>[_0x3526c2,_0x3526c2['getFirstRange']()])),_0x2f2551=new Set(),_0x399933=new Set();for(let _0x597566=0x0;_0x597566<_0xc88510['length'];_0x597566++)_0xe8df8c(_0xc88510[_0x597566],_0xc88510,_0x597566+0x1);for(let _0x426407=0x0;_0x426407<_0xc88510['length'];_0x426407++)_0xe8df8c(_0xc88510[_0x426407],_0x26d4b7,0x0);const _0x4c4d6e=new Set();for(let _0x23e78d=0x0;_0x23e78d<_0xc88510['length'];_0x23e78d++){const _0x37084b=_0xc88510[_0x23e78d];!_0x399933['has'](_0x37084b)&&_0x37084b['previous']&&(_0x4c4d6e['add'](_0x37084b['previous']),_0x37084b['previous']['next']===_0x37084b&&(_0x37084b['previous']['next']=null),_0x37084b['previous']=null),!_0x2f2551['has'](_0x37084b)&&_0x37084b['next']&&(_0x4c4d6e['add'](_0x37084b['next']),_0x37084b['next']['previous']===_0x37084b&&(_0x37084b['next']['previous']=null),_0x37084b['next']=null);}function _0xe8df8c(_0x417710,_0x2a65ff,_0x3be549){for(let _0x270feb=_0x3be549;_0x270feb<_0x2a65ff['length'];_0x270feb++){const _0x5dae59=_0x2a201c(_0x417710,_0x2a65ff[_0x270feb]);_0x5dae59&&(_0x5dae59[0x0]['next']=_0x5dae59[0x1],_0x5dae59[0x1]['previous']=_0x5dae59[0x0],_0x2f2551['add'](_0x5dae59[0x0]),_0x399933['add'](_0x5dae59[0x1]));}}function _0x2a201c(_0x40e436,_0x2a833f){if(_0x40e436['author']['id']!==_0x2a833f['author']['id'])return null;const _0x533d8c=_0x19b8ae['get'](_0x40e436)(_0x40e436,_0x2a833f,_0x5dea85['get'](_0x40e436),_0x5dea85['get'](_0x2a833f));if(!_0x533d8c)return null;return _0x19b8ae['get'](_0x2a833f)(_0x40e436,_0x2a833f,_0x5dea85['get'](_0x40e436),_0x5dea85['get'](_0x2a833f))?_0x533d8c[0x1]['commentThread']&&_0x533d8c[0x1]['commentThread']['length']?null:_0x533d8c:null;}_0x4c4d6e['size']&&this['_refreshSuggestionsChain'](_0x4c4d6e);}['_refreshAttributeSuggestionsChain'](_0x33fd74){if(0x0==_0x33fd74['length'])return;const _0x1097f7=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x268ffc=>'attribute'==_0x268ffc['type']&&_0x268ffc['_isDataLoaded']),_0x4f922b=[],_0x45f06e=new Map();for(const _0x3fad51 of _0x1097f7){const _0xcb2f2d=_0x50d2ee(_0x3fad51['attributes']);_0x45f06e['has'](_0xcb2f2d)||(_0x45f06e['set'](_0xcb2f2d,_0x4f922b['length']),_0x4f922b['push']([]));const _0x14bd61=_0x45f06e['get'](_0xcb2f2d);_0x4f922b[_0x14bd61]['push'](_0x3fad51);}!(function(){_0x4f922b['sort']((_0x303d1f,_0x30ba7c)=>{const _0x1cb1af=_0x303d1f[0x0]['createdAt'],_0xd5877d=_0x30ba7c[0x0]['createdAt'];return _0x1cb1af==_0xd5877d?_0x303d1f[0x0]['attributes']['groupId']<_0x30ba7c[0x0]['attributes']['groupId']?-0x1:0x1:_0x1cb1af<_0xd5877d?-0x1:0x1;});for(const _0x153619 of _0x4f922b)_0x153619['sort']((_0xa0d93a,_0x45390c)=>_0xa0d93a['id']<_0x45390c['id']?-0x1:0x1);}());for(let _0x39d7bb=0x0;_0x39d7bb<_0x4f922b['length'];_0x39d7bb++){if(0x0==_0x4f922b[_0x39d7bb]['length'])continue;const _0x567056=[];for(let _0x392df7=_0x39d7bb+0x1;_0x392df7<_0x4f922b['length'];_0x392df7++)0x0!=_0x4f922b[_0x392df7]['length']&&_0x265629(_0x4f922b[_0x39d7bb],_0x4f922b[_0x392df7])&&_0x567056['push'](_0x392df7);for(const _0x1b152f of _0x567056)_0x4f922b[_0x39d7bb]=_0x4f922b[_0x39d7bb]['concat'](_0x4f922b[_0x1b152f]),_0x4f922b[_0x1b152f]=[];}for(const _0x437281 of _0x4f922b)for(let _0x143330=0x0;_0x143330<_0x437281['length'];_0x143330++){const _0x2c73af=_0x437281[_0x143330+0x1]||null;_0x437281[_0x143330]['next']!==_0x2c73af&&(_0x437281[_0x143330]['next']=_0x2c73af);}for(const _0x6f3fa6 of _0x4f922b)for(let _0x2600d5=0x0;_0x2600d5<_0x6f3fa6['length'];_0x2600d5++){const _0xa9bcf5=_0x6f3fa6[_0x2600d5-0x1]||null;_0x6f3fa6[_0x2600d5]['previous']!==_0xa9bcf5&&(_0x6f3fa6[_0x2600d5]['previous']=_0xa9bcf5);}function _0x265629(_0x501edb,_0x19a562){if(_0x501edb[0x0]['attributes']['groupId']!==_0x19a562[0x0]['attributes']['groupId']&&_0x501edb[0x0]['author']!==_0x19a562[0x0]['author'])return!0x1;if(!function(_0x33209a,_0x35eeef){if(!_0x33209a['hasComments']&&!_0x35eeef['hasComments'])return!0x0;if(_0x33209a['hasComments']&&_0x35eeef['hasComments'])return!0x1;if(_0x33209a['hasComments']&&_0x35eeef['createdAt']<_0x33209a['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x35eeef['hasComments']&&_0x33209a['createdAt']<_0x35eeef['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x501edb[0x0],_0x19a562[0x0]))return!0x1;const _0x4d4ca9=Pt(_0x501edb[0x0]['attributes'],['groupId','trackingSessionId']),_0x1c9c1f=Pt(_0x19a562[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x5cdaa6(_0x4d4ca9,_0x1c9c1f))return!0x1;if(_0x501edb[0x0]['attributes']['groupId']==_0x19a562[0x0]['attributes']['groupId'])return!0x0;if(_0x501edb[0x0]['attributes']['trackingSessionId']!==_0x19a562[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x501edb['every'](_0x21ff42=>_0x19a562['some'](_0x29b060=>_0x21ff42['getFirstRange']()['isEqual'](_0x29b060['getFirstRange']())))&&_0x19a562['every'](_0x2d7fde=>_0x501edb['some'](_0x4c0c2c=>_0x2d7fde['getFirstRange']()['isEqual'](_0x4c0c2c['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x252145){const _0x6ea325=Array['from'](_0x252145),_0x22e3f2=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3d5df9=_0x22e3f2['filter'](_0x32d249=>!_0x252145['has'](_0x32d249)),_0x4ae9a9=new Map(_0x6ea325['map'](_0x3d1693=>[_0x3d1693,this['_suggestionFactory']['getSuggestionCallback'](_0x3d1693['type'],_0x3d1693['subType'],'join')])),_0x4999e0=new Map(_0x22e3f2['map'](_0x5dc229=>[_0x5dc229,_0x5dc229['getRanges']()]));for(let _0x1b2e3f=0x0;_0x1b2e3f<_0x6ea325['length'];_0x1b2e3f++){if(_0x27c5e4(this,_0x6ea325[_0x1b2e3f],_0x6ea325,_0x1b2e3f+0x1))return!0x0;}for(let _0x343490=0x0;_0x343490<_0x6ea325['length'];_0x343490++){if(_0x27c5e4(this,_0x6ea325[_0x343490],_0x3d5df9,0x0))return!0x0;}return!0x1;function _0x27c5e4(_0x1a60f1,_0x55de49,_0xfaec2a,_0x4c4db5){for(let _0xb5a940=_0x4c4db5;_0xb5a940<_0xfaec2a['length'];_0xb5a940++){const _0x30380a=_0xfaec2a[_0xb5a940];if(_0x30380a['type']!==_0x55de49['type']||_0x30380a['author']['id']!==_0x55de49['author']['id']||_0x30380a['subType']!==_0x55de49['subType'])continue;if(!en(_0x55de49,_0x30380a))continue;if('attribute'==_0x55de49['type']&&_0x55de49['data']['oldValue']!=_0x30380a['data']['oldValue'])continue;if('attribute'==_0x55de49['type']&&_0x1a60f1['_isBlockAttribute'](_0x55de49['data']['key']))continue;if('formatBlock'==_0x55de49['type']){const _0x5ce875=_0x1a60f1['editor']['model'],_0x27f7b7=_0x55de49['getContainedElement']();if(_0x27f7b7&&(_0x5ce875['schema']['isObject'](_0x27f7b7)||_0x5ce875['schema']['isLimit'](_0x27f7b7)))continue;}const _0x12fe9c=_0x4ae9a9['get'](_0x55de49),_0x479ae4=_0x4999e0['get'](_0x55de49),_0x2a7f31=_0x4999e0['get'](_0x30380a),_0x5511cc=_0x55de49['commentThread']&&_0x55de49['commentThread']['length'],_0x2e75fe=_0x30380a['commentThread']&&_0x30380a['commentThread']['length'];if(!_0x5511cc&&_0x12fe9c(_0x2a7f31,_0x479ae4))return _0x1a60f1['_joinSuggestions'](_0x30380a,_0x55de49),_0x4999e0['delete'](_0x55de49),!0x0;if(!_0x2e75fe&&_0x12fe9c(_0x479ae4,_0x2a7f31))return _0x1a60f1['_joinSuggestions'](_0x55de49,_0x30380a),_0x4999e0['delete'](_0x30380a),!0x0;}return!0x1;}}['_joinSuggestions'](_0x178b09,_0x4fbb30){if(_0x178b09['isMultiRange']){for(const _0x1c5577 of _0x4fbb30['getRanges']())_0x178b09['addRange'](_0x1c5577);}else{const _0xa1dc27=_0x4fbb30['getFirstRange']()['end'];this['_setSuggestionRange'](_0x178b09,this['_model']['createRange'](_0x178b09['getFirstRange']()['start'],_0xa1dc27));}_0x4fbb30['removeMarkers']();}['_getMarkerAnnouncementText'](_0x1c9e04,_0x362ea7,_0xb671cf){const _0x5be07a=_0x1c9e04['startsWith']('format')||_0x1c9e04['startsWith']('attribute')?'FORMATTING':_0x1c9e04['toUpperCase']();return o(this['editor']['locale'],_0x362ea7+'_'+_0x5be07a+'_SUGGESTION_ANNOUNCEMENT',_0xb671cf);}['_initAriaMarkerChangeAnnouncements'](){const _0x477120=this['editor'];if(!_0x477120['ui'])return;const {ariaLiveAnnouncer:_0x5c6a84}=_0x477120['ui'];_0xf9c874(this['_model'],({left:_0x4a080a,entered:_0x4ed851})=>{for(const _0x319396 of _0x4a080a){const {group:_0x44a941,type:_0x1d928b}=this['_splitMarkerName'](_0x319396['name']);if('suggestion'===_0x44a941){_0x5c6a84['announce'](this['_getMarkerAnnouncementText'](_0x1d928b,'LEAVE'));break;}}for(const _0x1cae1d of _0x4ed851){const {group:_0x39a761,type:_0x207b04}=this['_splitMarkerName'](_0x1cae1d['name']);if('suggestion'===_0x39a761){_0x5c6a84['announce'](this['_getMarkerAnnouncementText'](_0x207b04,'ENTER',_0x1f6e36(_0x441f38)));break;}}});}['_processAttributeChanges'](_0x28c41a){if(this['_recordAttributeSuggestions'])return!0x1;const _0x5d817d=this['editor'],_0x2a9f47=_0x5d817d['model']['document']['differ']['getChanges']();if(0x0==_0x2a9f47['length'])return!0x1;const _0x2eb81d=[],_0x28281f=_0x2a9f47['filter'](_0x55422d=>'attribute'==_0x55422d['type']),_0x259735=_0x2a9f47['filter'](_0x30c3b7=>'insert'==_0x30c3b7['type']&&'$text'!=_0x30c3b7['name']),_0x5c14a4=_0x2a9f47['filter'](_0x2799d8=>'remove'==_0x2799d8['type']&&'$text'!=_0x2799d8['name']);for(const _0x303d06 of _0x28281f)_0x2eb81d['push']({'key':_0x303d06['attributeKey'],'newValue':_0x303d06['attributeNewValue'],'oldValue':_0x303d06['attributeOldValue'],'range':Zt(_0x303d06['range'],_0x5d817d['model'])});for(const _0x3b6a3e of _0x259735){const _0x3da2d7=_0x5c14a4['find'](_0x1659b9=>_0x1659b9['position']['isEqual'](_0x3b6a3e['position']));_0x3da2d7&&_0x2eb81d['push']({'key':m,'newValue':_0x3b6a3e['name'],'oldValue':_0x3da2d7['name'],'range':_0x5d817d['model']['createRangeOn'](_0x3b6a3e['position']['nodeAfter'])});}return 0x0!=_0x2eb81d['length']&&this['_reduceExistingSuggestions'](_0x28c41a,_0x2eb81d);}['_processAttributeSuggestions'](_0x39bb73){let _0x5ebdbe=!0x1;const _0x116b65=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2e30e8=>_0x2e30e8['data']['newRange']&&_0x2e30e8['name']['startsWith']('suggestion:attribute:'));for(const _0x44951f of _0x116b65){const {subType:_0x773458,id:_0x615696}=this['_splitMarkerName'](_0x44951f['name']),_0x4824f6=_0x773458['split']('|')[0x0];for(const _0x297e84 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x297e84['id']!=_0x615696&&'attribute'==_0x297e84['type']&&_0x297e84['data']&&_0x297e84['data']['key']==_0x4824f6&&_0x297e84['getFirstRange']()['isIntersecting'](_0x44951f['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x297e84,_0x44951f['data']['newRange'],_0x39bb73),_0x5ebdbe=!0x0);}return _0x5ebdbe;}['recordAttributeChanges'](_0x5e7130){this['_recordAttributeSuggestions']=!0x0,_0x5e7130();}['_isRegisteredAttribute'](_0x4d5423){return this['editor']['plugins']['get'](Jt)['isRegisteredAttribute'](_0x4d5423);}['_reduceExistingSuggestions'](_0x2795cd,_0x37f166){if(0x0==_0x37f166['length'])return!0x1;let _0x5c1a2a=!0x1;for(const _0x5614bb of _0x37f166){const _0x230e35=this['_findSuggestions'](_0x5614bb['range'],'attribute')['filter'](_0x11d60b=>!_0x11d60b['meta']['isNextTo'])['map'](_0x4220c3=>_0x4220c3['suggestion']),_0x1dd5e3=_0x50d2ee({'newValue':_0x5614bb['newValue']});_0x230e35['filter'](_0x321404=>{const [_0x2d1ad2,_0x57dbbc]=_0x321404['subType']['split']('|');return _0x2d1ad2==_0x5614bb['key']&&_0x57dbbc!=_0x1dd5e3;})['forEach'](_0x2e39de=>{this['_reduceSuggestionAttributeRange'](_0x2e39de,_0x5614bb['range'],_0x2795cd),_0x5c1a2a=!0x0;});}return _0x5c1a2a;}['_reduceSuggestionAttributeRange'](_0x122991,_0x2c413e,_0x30cdf2){const _0x43c173=_0x122991['getFirstRange']()['getDifference'](_0x2c413e);0x0!==_0x43c173['length']?0x1!==_0x43c173['length']?this['_breakSuggestionMarker'](_0x122991,_0x2c413e['start'],_0x2c413e['end']):this['_setSuggestionRange'](_0x122991,_0x43c173[0x0]):_0x30cdf2['removeMarker'](_0x122991['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x3517a1){this['_editor']=_0x3517a1,this['_model']=_0x3517a1['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2546f0,_0x47af7a,_0x26df71,_0x28ab92,_0x462267,_0x3dd493,_0x34425f){return new x(this['_model'],{'type':_0x2546f0,'subType':_0x47af7a,'id':_0x26df71,'originalSuggestionId':_0x34425f,'author':_0x28ab92,'creator':_0x28ab92,'attributes':_0x462267,'onAttributesChange':_0x3dd493,'onAccept':(..._0x1b7753)=>this['getSuggestionCallback'](_0x2546f0,_0x47af7a,'accept')(..._0x1b7753),'onDiscard':(..._0x277f74)=>this['getSuggestionCallback'](_0x2546f0,_0x47af7a,'discard')(..._0x277f74)});}['registerCustomCallback'](_0x184974,_0x488f85,_0x401653,_0x70b05a){const _0x1baa56=_0x184974+':'+_0x488f85+':'+_0x401653;this['_customCallbacks']['set'](_0x1baa56,_0x70b05a);}['getSuggestionCallback'](_0x46a299,_0x2b45e2,_0x4f8320){const _0x2faba9=_0x46a299+':'+_0x2b45e2+':'+_0x4f8320;return this['_customCallbacks']['get'](_0x2faba9)||this['_defaultCallbacks']['get'](_0x46a299+':'+_0x4f8320);}['_registerDefaultCallbacks'](){const _0xf6881f=()=>!0x1,_0x2f0cf4=_0x1ff7a4=>{_0x1ff7a4['sort']((_0x4be864,_0x230758)=>_0x4be864['start']['isBefore'](_0x230758['start'])?0x1:-0x1),this['_model']['change'](_0x5d6582=>{for(const _0x36b920 of _0x1ff7a4){let _0x3ac0bc;_0x3ac0bc=_0x36b920['end']['isAtEnd']&&_0x36b920['end']['parent']==_0x36b920['start']['nodeAfter']?_0x5d6582['createSelection'](_0x36b920['start']['nodeAfter'],'on'):_0x5d6582['createSelection'](_0x36b920),this['_model']['deleteContent'](_0x3ac0bc,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x4938ad=(_0xa992ba,_0x4c3321)=>{_0x4c3321&&this['_model']['change'](_0x4f863a=>{const {commandName:_0x26b8e0,commandParams:_0xdd50a0=[]}=_0x4c3321,_0x1b8f33=_0xa992ba['map'](_0x4df8d8=>(Kt(_0x4df8d8)&&(_0x4df8d8=this['_model']['createRange'](_0x4df8d8['end'])),_0x4df8d8))['filter'](_0x134d3f=>'$graveyard'!==_0x134d3f['root']['rootName']);if(_0x1b8f33['length']<0x1)return;const _0x2859e8=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0xd18b06=>_0x5bf397['fromRange'](_0xd18b06));_0x4f863a['setSelection'](_0x1b8f33);for(const _0x4e07c7 of this['_editor']['commands']['commands']())_0x4e07c7['refresh']();_0xdd50a0['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x26b8e0,..._0xdd50a0);const _0x5e9621=_0x2859e8['filter'](_0x149e36=>'$graveyard'!=_0x149e36['root']['rootName']);_0x5e9621['length']>0x0&&_0x4f863a['setSelection'](_0x5e9621);for(const _0x54e27f of _0x2859e8)_0x54e27f['detach']();});},_0x43b530=(_0x4b7205,_0x13a81e)=>0x1==_0x4b7205['length']&&0x1==_0x13a81e['length']&&_0x4b7205[0x0]['end']['isEqual'](_0x13a81e[0x0]['start']),_0x44f3b7=(_0x41b6cf,_0x82ff23,_0x50d5d6,_0x37223f)=>nn(_0x41b6cf,_0x82ff23,_0x50d5d6,_0x37223f)?[_0x41b6cf,_0x82ff23]:nn(_0x82ff23,_0x41b6cf,_0x37223f,_0x50d5d6)?[_0x82ff23,_0x41b6cf]:null;this['_defaultCallbacks']['set']('insertion:accept',_0xf6881f),this['_defaultCallbacks']['set']('insertion:discard',_0x2f0cf4),this['_defaultCallbacks']['set']('insertion:join',_0x43b530),this['_defaultCallbacks']['set']('insertion:chain',_0x44f3b7),this['_defaultCallbacks']['set']('deletion:accept',_0x2f0cf4),this['_defaultCallbacks']['set']('deletion:discard',_0xf6881f),this['_defaultCallbacks']['set']('deletion:join',_0x43b530),this['_defaultCallbacks']['set']('deletion:chain',_0x44f3b7),this['_defaultCallbacks']['set']('formatInline:accept',_0x4938ad),this['_defaultCallbacks']['set']('formatInline:discard',_0xf6881f),this['_defaultCallbacks']['set']('formatInline:join',_0x43b530),this['_defaultCallbacks']['set']('formatInline:chain',_0xf6881f),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4938ad),this['_defaultCallbacks']['set']('formatBlock:discard',_0xf6881f),this['_defaultCallbacks']['set']('formatBlock:join',_0x43b530),this['_defaultCallbacks']['set']('formatBlock:chain',_0xf6881f),this['_defaultCallbacks']['set']('attribute:accept',_0xf6881f),this['_defaultCallbacks']['set']('attribute:discard',(_0x4745d5,_0x344d1d)=>{if(!_0x344d1d)return;const _0x37291c=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x1597f5=>{if(_0x344d1d['key']==m)for(const _0x406256 of _0x4745d5){const _0x518b38=_0x406256['start']['nodeAfter'],_0x3a4f6c=_0x344d1d['oldValue'];_0x1597f5['rename'](_0x518b38,_0x3a4f6c);}else{if(_0x37291c['_isBlockAttribute'](_0x344d1d['key'])){for(const _0x30dedb of _0x4745d5)void 0x0!==_0x344d1d['oldValue']?_0x1597f5['setAttribute'](_0x344d1d['key'],_0x344d1d['oldValue'],_0x30dedb['start']['nodeAfter']):_0x1597f5['removeAttribute'](_0x344d1d['key'],_0x30dedb['start']['nodeAfter']);}else{for(const _0x3fc919 of _0x4745d5)_0x344d1d['oldValue']?_0x1597f5['setAttribute'](_0x344d1d['key'],_0x344d1d['oldValue'],_0x3fc919):_0x1597f5['removeAttribute'](_0x344d1d['key'],_0x3fc919);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x43b530);}}function zt(_0x3f9d69,_0x10972d,_0x3a1b76){for(const _0xbed8c4 of _0x10972d['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xbed8c4['root']==_0xbed8c4)return!0x1;if(!_0x3a1b76['containsItem'](_0xbed8c4))return!0x1;if(_0x3f9d69['isObject'](_0xbed8c4)||_0x3f9d69['isLimit'](_0xbed8c4))return!0x0;}return!0x1;}function Kt(_0x3bb842){return _0x3bb842['end']['parent']==_0x3bb842['start']['nodeAfter']&&_0x3bb842['end']['isAtStart'];}function Wt(_0x1eaebe,_0x5022d0,_0x234280,_0xdffe3c){const _0x12cee6=_0x112017=>!_0x112017['item']['is']('$textProxy')&&!_0xdffe3c['isObject'](_0x112017['item']),_0x55b6c2=_0x1eaebe['start']['getLastMatchingPosition'](_0x12cee6),_0x3a8c17=_0x1eaebe['end']['getLastMatchingPosition'](_0x12cee6,{'direction':'backward'});return(!_0x1eaebe['start']['isEqual'](_0x55b6c2)||!_0x1eaebe['end']['isEqual'](_0x3a8c17))&&(_0x55b6c2['isBefore'](_0x3a8c17)?_0x234280['updateMarker'](_0x5022d0,{'range':_0x234280['createRange'](_0x55b6c2,_0x3a8c17)}):_0x234280['removeMarker'](_0x5022d0),!0x0);}function Ht(_0x58a5ec){return _0x50d2ee(_0x58a5ec);}function Qt(_0x5f3771){const _0x24ea2d=_0x5f3771['start']['nodeAfter'];return _0x24ea2d&&_0x24ea2d['is']('element');}function Xt(_0xd06e56){return Kt(_0xd06e56)||function(_0x1153f6){return _0x1153f6['start']['parent']==_0x1153f6['end']['nodeBefore']&&_0x1153f6['start']['isAtEnd'];}(_0xd06e56);}function Yt(_0x555779,_0x4e022d){try{const _0x4c1750=_0x555779['getRange']();for(const _0x440c55 of _0x4e022d)if(_0x555779!==_0x440c55&&_0x4c1750&&_0x4c1750['isIntersecting'](_0x440c55['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0x5d77da,_0x3e1088){return null==_0x5d77da['end']['nodeBefore']&&_0x5d77da['end']['parent']==_0x5d77da['start']['nodeAfter']?tn(_0x5d77da['start']['nodeAfter'],_0x3e1088):_0x5d77da;}function tn(_0x1d4763,_0x16e964){const _0x18c956=_0x16e964['schema']['isObject'](_0x1d4763)||_0x16e964['schema']['isSelectable'](_0x1d4763);return _0x16e964['createRange'](_0x16e964['createPositionAt'](_0x1d4763,'before'),_0x18c956?_0x16e964['createPositionAfter'](_0x1d4763):_0x16e964['createPositionAt'](_0x1d4763,'end'));}function nn(_0x188a89,_0x5c855a,_0x5519df,_0x4cc553){return!!en(_0x188a89,_0x5c855a)&&_0x5519df['end']['isEqual'](_0x4cc553['start']);}function en(_0x5ab513,_0x1d52ce){if(!_0x5ab513['_isDataLoaded']||!_0x1d52ce['_isDataLoaded'])return!0x1;const _0x1e0c84=new Set(Object['keys'](_0x5ab513['attributes'])),_0x420c68=new Set(Object['keys'](_0x1d52ce['attributes']));if(_0x1e0c84['delete']('groupId'),_0x420c68['delete']('groupId'),0x0==_0x1e0c84['size']&&0x0==_0x420c68['size'])return!0x0;if(_0x1e0c84['size']!=_0x420c68['size'])return!0x1;const _0x3e929a={..._0x5ab513['attributes']},_0x3d5cfb={..._0x1d52ce['attributes']};return delete _0x3e929a['groupId'],delete _0x3d5cfb['groupId'],JSON['stringify'](_0x3e929a)==JSON['stringify'](_0x3d5cfb);}function sn(_0x393738,_0xfdccca){const _0x55e01a=on(_0x393738['attributes']),_0x2eb1d5=on(_0xfdccca);if(!_0x393738['_isDataLoaded'])return!0x1;for(const _0xbe8760 of Object['keys'](_0x2eb1d5))if(!_0x5cdaa6(_0x55e01a[_0xbe8760],_0x2eb1d5[_0xbe8760]))return!0x1;return!0x0;}function on(_0x2a7f25){const _0x34f493=Object['assign']({},_0x2a7f25);return delete _0x34f493['skipNestingCheck'],delete _0x34f493['tablePasteChainId'],_0x34f493;}class pe extends/* #__PURE__ -- @preserve */
26
- _0x56428c(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x1aa0c2,_0xc2b156,_0x11059b,_0x237197){super(),this['model']=_0xc2b156,this['view']=_0x11059b,this['commentThreadController']=_0x237197,this['_editor']=_0x1aa0c2,this['_acceptCommand']=_0x1aa0c2['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x1aa0c2['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x32a410,_0xce5ffd)=>_0x32a410||_0xce5ffd),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2be9dc=>_0x2be9dc&&this['_editor']['model']['canEditAt'](_0xc2b156['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x465220=>_0x465220&&this['_editor']['model']['canEditAt'](_0xc2b156['getRanges']())),this['_pendingAction']=null,_0x11059b['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x11059b,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x11059b,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x11059b,'change:isDirty',()=>{_0x11059b['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 _0x355c12=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x355c12);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x48f0dd{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x22c262,_0x28ece7,_0x5897c3,_0x3e5f31){super(_0x22c262),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x33e922(_0x22c262,o(_0x22c262,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x28ece7['authoredAt']),this['bind']('authoredAt')['to'](_0x28ece7),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',_0x28ece7,'authoredAt',this,'descriptionParts',(_0x36e205,_0x4d0806,_0x3b8bc2)=>{const _0xfc0a05=_0x3b8bc2['map'](_0x1981ad=>ls(_0x1981ad['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x36e205-0x1,_0x28ece7['author']['name'],_0x4d0806?_0x3e5f31['formatDateTime'](_0x4d0806):'',new DOMParser()['parseFromString'](_0xfc0a05,'text/html')['body']['textContent']]);}),this['focusables']=new _0x946761(),this['focusTracker']=new _0x55f986(),this['keystrokes']=new _0x452982(),this['focusCycler']=new _0x38cca0({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0xae5a5e=>_0xae5a5e['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x28ece7,this['_localUser']=_0x5897c3,this['_config']=_0x3e5f31,_0x3e5f31['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x3989fc(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x479da0}=this['_config'];this['commentsListView']=new _0x479da0(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',_0x49c6d0=>_0x49c6d0+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x3bd073,_0xf8100c)=>_0x3bd073||!!_0xf8100c);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x4e0eae}=this['_config'],_0x5e9ac1=new _0x4e0eae(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2b2755=_0x5e9ac1['commentInputView'];return _0x5e9ac1['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2b2755,'value',(_0x356065,_0x49bc82,_0x16fe6f)=>!!_0x16fe6f||_0x356065&&!_0x49bc82),_0x2b2755['on']('submit',(_0x22a855,_0x28a5aa)=>{this['fire']('addComment',_0x28a5aa),_0x2b2755['editor']['setData']('');}),_0x2b2755['on']('cancel',()=>this['focus']()),_0x2b2755['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x5e9ac1;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x4449f2,_0x1fae27,_0x2273bc,_0x347b7c){super(_0x4449f2,_0x1fae27,_0x2273bc,_0x347b7c),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x550ebb=>_0x550ebb&&_0x550ebb[0x0]?_0x550ebb[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x1264b6,_0x5b75c7)=>{let _0x1b101e='';for(const _0x145306 of _0x1264b6)_0x1b101e+='<p>'+ls(_0x145306['content'],_0x145306['color'])+'</p>';return _0x5b75c7?_0x1b101e:_0x46f0ef(_0x1b101e,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x347b7c['SuggestionView'](_0x4449f2,_0x1fae27,{'formatDateTime':_0x347b7c['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 _0x585c14=this['bindTemplate'],_0x3eb85=[this['suggestionView']];return this['commentsListView']&&_0x3eb85['push'](this['commentsListView']),this['commentThreadInputView']&&_0x3eb85['push'](this['commentThreadInputView']),_0x3eb85['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x585c14['if']('isActive','ck-suggestion-wrapper--active'),_0x585c14['to']('type',_0x39f7b4=>'ck-suggestion-'+_0x39f7b4),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':_0x585c14['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x3eb85};}['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 _0x48f0dd{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x2ea7ec,_0x4aa020,_0x328d20){super(_0x2ea7ec),this['_model']=_0x4aa020,this['_config']=_0x328d20,this['set']('description',''),this['bind']('authoredAt')['to'](_0x4aa020),this['acceptButton']=this['_createButton'](o(_0x2ea7ec,'Accept\x20suggestion'),_0x8a9674,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x2ea7ec,'Discard\x20suggestion'),_0x5289ec,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x5a8190(_0x2ea7ec,_0x4aa020['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x946761([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x55f986(),this['keystrokes']=new _0x452982(),this['focusCycler']=new _0x38cca0({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x2322e8=>_0x2322e8['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x2da06a=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x2da06a['innerHTML']=this['description'],this['on']('change:description',(_0x253fac,_0x422e36,_0xfa9e0f)=>{_0x2da06a['innerHTML']=_0xfa9e0f;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x44bd55=this['bindTemplate'],_0x15be59=[{'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':_0x44bd55['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x44bd55['to']('authoredAt',_0x78aca5=>this['_config']['formatDateTime'](_0x78aca5))}]}]},{'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']&&_0x15be59['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':_0x15be59}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x5cf90e,_0x373ae9,_0x41481d,_0x13105c,_0x547689){const _0x384176=new _0x3311b2(this['locale']);return _0x384176['set']({'label':_0x5cf90e,'icon':_0x373ae9,'tooltip':!0x0,'tooltipPosition':_0x547689}),_0x384176['extendTemplate']({'attributes':{'class':_0x41481d}}),_0x384176['on']('execute',()=>{this['fire'](_0x13105c,this['_model']['id']);}),_0x384176;}['_setupKeyboardNavigation'](){const _0x1102b8=this['element'];this['keystrokes']['listenTo'](_0x1102b8);for(const _0x24a76 of this['focusables'])this['focusTracker']['add'](_0x24a76['element']),this['keystrokes']['listenTo'](_0x24a76['element']);this['keystrokes']['set']('enter',(_0x10e9f8,_0x4fc7c7)=>{_0x1102b8===_0x10e9f8['target']&&(this['focusCycler']['focusFirst'](),_0x4fc7c7());}),this['keystrokes']['set']('esc',(_0x32ffc1,_0x55006a)=>{_0x1102b8!==_0x32ffc1['target']&&(this['focus'](),_0x55006a());});}}class u extends _0x4942e1{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x91df2d,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2adab6){super(_0x2adab6),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x33905a=this['editor']['config'];_0x33905a['define']('trackChanges.SuggestionThreadView',fe),_0x33905a['define']('trackChanges.SuggestionView',we),_0x33905a['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x33905a['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x297982,_0x851c6){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x240c78,_0x54093b]of this['_handleControllerBuffer']){const _0x254015=this['_suggestionToController']['has'](_0x240c78);_0x254015||_0x54093b?_0x254015&&_0x54093b&&this['_destroyController'](_0x240c78):this['_initializeController'](_0x240c78);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x297982,_0x851c6);}['init'](){const _0x511d0b=this['editor'],_0x55b33a=_0x511d0b['plugins']['get']('TrackChangesEditing'),_0x1d74c9=_0x511d0b['plugins']['get']('Annotations'),_0x41f70e=_0x511d0b['plugins']['get']('EditorAnnotations'),_0x3f7750=_0x511d0b['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x41f70e['addSourceCollector'](()=>{const _0x1f72be=[];for(const [_0x3c26a5,_0x49451e]of Array['from'](this['_suggestionToController'])){const _0x270965=_0x3c26a5['getAllAdjacentSuggestions'](),_0x4deac6=[];for(const _0xbbd63d of _0x270965){if(!_0xbbd63d['isInContent'])continue;if(_0xbbd63d['isMultiRange']){_0x4deac6['push'](..._0xbbd63d['getRanges']());continue;}const _0x2bc23e=_0xbbd63d['getFirstRange']();if(_0x4deac6['length']>0x0){const _0x3e6b86=_0x4deac6[0x0]['getJoined'](_0x2bc23e);if(_0x3e6b86){_0x4deac6[0x0]=_0x3e6b86;continue;}}_0x4deac6['push'](_0x2bc23e);}_0x1f72be['push']([_0x49451e['view'],_0x4deac6]);}return _0x1f72be;}),this['listenTo'](_0x55b33a,'suggestionLoaded',(_0x5ca019,_0x41e01d)=>{this['listenTo'](_0x41e01d,'change:previous',(_0x1b4134,_0x205508,_0x3840c9,_0x8f8f78)=>{_0x41e01d['isInContent']&&(null==_0x3840c9?(this['_updateController'](_0x8f8f78['head']),this['_handleSuggestionControllerDelayed'](_0x41e01d,!0x1)):(this['_updateController'](_0x3840c9['head']),null==_0x8f8f78&&this['_handleSuggestionControllerDelayed'](_0x41e01d,!0x0)));}),null!==_0x41e01d['previous']?this['_updateController'](_0x41e01d['head']):this['_handleSuggestionControllerDelayed'](_0x41e01d,!0x1);}),this['listenTo'](_0x55b33a,'suggestionUnloaded',(_0x48b8b8,_0x3e9845,_0x28ac36)=>{this['stopListening'](_0x3e9845,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3e9845),this['_suggestionToController']['has'](_0x3e9845)&&this['_destroyController'](_0x3e9845),_0x28ac36&&this['_updateController'](_0x28ac36['head']);}),this['listenTo'](_0x55b33a,'suggestionChanged',(_0x3c8787,_0x484e43)=>{this['_updateController'](_0x484e43);}),this['listenTo'](_0x1d74c9,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x3f7750,'addComment',(_0x472dee,{threadId:_0x5e3877,isFromAdapter:_0x193716})=>{if(_0x193716||!_0x55b33a['hasSuggestion'](_0x5e3877))return;const _0x172bf3=_0x55b33a['getSuggestion'](_0x5e3877);this['_suggestionToController']['get'](_0x172bf3)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x17059a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x47a7ff;for(const _0x824657 in _0x17059a){const _0x10aa98=_0x824657,_0x213775=_0x17059a[_0x10aa98];if('trackChangesLicenseKeyValid'==_0x213775||'trackChangesLicenseKeyInvalid'==_0x213775||'trackChangesLicenseKeyExpired'==_0x213775||'trackChangesLicenseKeyDomainLimit'==_0x213775||'trackChangesLicenseKeyNotAllowed'==_0x213775||'trackChangesLicenseKeyEvaluationLimit'==_0x213775||'trackChangesLicenseKeyTrialLimit'==_0x213775||'trackChangesLicenseKeyUsageLimit'==_0x213775){delete _0x17059a[_0x10aa98],_0x47a7ff=_0x213775,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x47a7ff&&_0x17059a['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x47a7ff&&_0x17059a['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x47a7ff&&_0x17059a['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x47a7ff&&_0x17059a['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x47a7ff&&_0x17059a['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x47a7ff&&_0x17059a['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x47a7ff&&_0x17059a['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x5ae148){const _0x46eb88=this['_suggestionToController']['get'](_0x5ae148);if(!_0x46eb88)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x46eb88['view'])||null;}['getSuggestionForAnnotation'](_0x5d6ffa){const _0x21a9a3=this['_viewToController']['get'](_0x5d6ffa['innerView']);return _0x21a9a3?_0x21a9a3['model']:null;}['_refreshActiveMarkers'](){const _0x43ebb3=this['editor']['plugins']['get']('Annotations'),_0x29bd60=this['editor']['plugins']['get']('TrackChangesEditing'),_0x13803f=Array['from'](_0x43ebb3['activeAnnotations'],_0xaa4a4a=>_0xaa4a4a['innerView'])['filter'](_0x5d61c8=>this['_viewToController']['has'](_0x5d61c8)),_0x3958e9=[];for(const _0x1aed32 of _0x13803f){const _0x5f13d8=this['_viewToController']['get'](_0x1aed32)['model']['getAllAdjacentSuggestions']();_0x3958e9['push'](..._0x5f13d8['reduce']((_0x5c9116,_0x33c2bf)=>[..._0x5c9116,..._0x33c2bf['getMarkerNames']()],[]));}_0x29bd60['activeMarkers']=_0x3958e9;}['_addUIComponentsToFactory'](){const _0x482839=this['editor'],_0x5ccfbe=_0x482839['locale'],_0x2a5cc8=o(_0x5ccfbe,'Track\x20changes'),_0x12b464=new _0x2455fd([{'type':'switchbutton','model':new _0x746fc5({'withText':!0x0,'isToggleable':!0x0,'label':_0x2a5cc8,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x746fc5({'withText':!0x0,'label':o(_0x5ccfbe,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x746fc5({'withText':!0x0,'label':o(_0x5ccfbe,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x746fc5({'withText':!0x0,'label':o(_0x5ccfbe,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x746fc5({'withText':!0x0,'label':o(_0x5ccfbe,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x482839['plugins']['has']('TrackChangesPreview')&&_0x12b464['addMany']([{'type':'separator'},{'type':'button','model':new _0x746fc5({'withText':!0x0,'label':o(_0x5ccfbe,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x5a72be of _0x12b464)if(ke(_0x5a72be)){const _0x3148ec=_0x482839['commands']['get'](_0x5a72be['model']['commandName']);_0x5a72be['model']['bind']('isOn','isEnabled')['to'](_0x3148ec,'value','isEnabled');}_0x482839['ui']['componentFactory']['add']('trackChanges',_0xacca69=>this['_createToolbarButton'](_0xacca69,_0x12b464,_0x2a5cc8)),_0x482839['ui']['componentFactory']['add']('menuBar:trackChanges',_0x575e58=>this['_createMenuBarMenu'](_0x575e58,_0x12b464,_0x2a5cc8));}['_createToolbarButton'](_0x36c9dd,_0x51a882,_0x11d90d){const _0x320e8e=_0x46abfb(_0x36c9dd,_0x1341a2),_0x16b2d6=this['editor']['commands']['get']('trackChanges');_0x320e8e['buttonView']['set']({'tooltip':_0x11d90d,'label':_0x11d90d,'icon':_0x1fde3f}),_0x320e8e['buttonView']['bind']('isOn')['to'](_0x16b2d6,'value'),_0x320e8e['buttonView']['on']('execute',()=>{_0x16b2d6['execute'](),this['editor']['editing']['view']['focus']();}),_0x4e853f(_0x320e8e,_0x51a882,{'role':'menu'});const _0x1537a9=[];for(const _0x215bbc of _0x51a882)ke(_0x215bbc)&&_0x1537a9['push'](this['editor']['commands']['get'](_0x215bbc['model']['commandName']));const _0x2d005b=_0x320e8e['buttonView'];return _0x2d005b['actionView']['unbind']('isEnabled'),_0x2d005b['arrowView']['unbind']('isEnabled'),_0x2d005b['actionView']['bind']('isEnabled')['to'](_0x16b2d6,'isEnabled'),_0x2d005b['arrowView']['bind']('isEnabled')['toMany'](_0x1537a9,'isEnabled',(..._0x46aac3)=>_0x46aac3['some'](_0x4925d8=>_0x4925d8)),_0x320e8e['on']('execute',_0x3caf41=>{this['editor']['execute'](_0x3caf41['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x320e8e;}['_createMenuBarMenu'](_0x52c631,_0x2897d5,_0xdf9795){const _0x1cb057=new _0x9a08bc(_0x52c631),_0x1dfeab=this['editor']['commands']['get']('trackChanges');_0x1cb057['buttonView']['set']({'label':_0xdf9795,'icon':_0x1fde3f});const _0x4dec27=new _0x26bc00(_0x52c631);for(const _0x950192 of _0x2897d5){if('separator'==_0x950192['type']){_0x4dec27['items']['add'](new _0x4c5d96(_0x52c631));continue;}const _0x2763b8=new _0x33a1b1(_0x52c631,_0x1cb057),_0x5a3a28=new _0x341474(_0x52c631),_0xa13976=_0x950192['model'];_0x5a3a28['bind'](...Object['keys'](_0xa13976))['to'](_0xa13976),_0x5a3a28['delegate']('execute')['to'](_0x1cb057),_0x5a3a28['on']('execute',()=>{this['editor']['execute'](_0xa13976['commandName']),this['editor']['editing']['view']['focus']();}),_0x2763b8['children']['add'](_0x5a3a28),_0x4dec27['items']['add'](_0x2763b8);}return _0x1cb057['bind']('isEnabled')['to'](_0x1dfeab,'isEnabled'),_0x1cb057['panelView']['children']['add'](_0x4dec27),_0x1cb057;}['_initializeController'](_0x486195){const _0x55e743=this['editor'],_0x11ceea=_0x55e743['config'],_0x3f9828=_0x55e743['plugins']['get']('Annotations'),_0x4d5e6e=_0x55e743['plugins']['get']('CommentsRepository'),_0x44892f=_0x55e743['plugins']['get']('EditorAnnotations'),_0x362d1d=_0x55e743['plugins']['get'](_0x91df2d)['me'],_0x40843e=_0x11ceea['get']('trackChanges')['SuggestionThreadView'],_0xada2de=_0x11ceea['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x1d4c1f,CommentThreadInputView:_0x4db5a5}=_0x55e743['plugins']['get']('CommentsUI');let _0x3fcd69,_0x3bf542,_0x18dc76;this['_annotationViews']['has'](_0x486195['id'])?(_0x3bf542=this['_annotationViews']['get'](_0x486195['id']),_0x3fcd69=_0x3bf542['mainView']):(_0x3fcd69=new _0x40843e(_0x55e743['locale'],_0x486195,_0x362d1d,{'disableComments':this['_disableComments'],'editorConfig':{..._0x11ceea['get']('comments.editorConfig'),'licenseKey':_0x11ceea['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x11ceea['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x11ceea['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x11ceea['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x425671(_0x11ceea['get']('locale'),_0x55e743['locale']),'CommentView':_0x11ceea['get']('comments')['CommentView'],'CommentsListView':_0x1d4c1f,'CommentThreadInputView':_0x4db5a5,'SuggestionView':_0xada2de}),_0x3fcd69['suggestionView']['acceptButton']['on']('execute',()=>{_0x55e743['editing']['view']['focus']();}),_0x3fcd69['suggestionView']['discardButton']['on']('execute',()=>{_0x55e743['editing']['view']['focus']();}),_0x3bf542=_0x3f9828['createAnnotationView'](this['editor']['locale'],_0x3fcd69),_0x3bf542['bind']('isDirty')['to'](_0x3fcd69,'isDirty'),_0x3bf542['bind']('length')['to'](_0x3fcd69),_0x3bf542['bind']('type')['to'](_0x3fcd69,'type',_0xf4f20f=>'suggestion-'+_0xf4f20f),_0x3fcd69['on']('escape',()=>{_0x18dc76['fire']('escape');}),this['_annotationViews']['set'](_0x486195['id'],_0x3bf542));const _0xb80a87=_0x4d5e6e['createCommentThreadController'](_0x486195['commentThread'],_0x3fcd69),_0x5cc417=new pe(_0x55e743,_0x486195,_0x3fcd69,_0xb80a87),_0x335653=_0x486195['getAllAdjacentSuggestions']()['filter'](_0xec3d93=>_0xec3d93['isInContent']);_0x3fcd69['descriptionParts']=_0x55e743['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x335653),this['_suggestionToController']['set'](_0x486195,_0x5cc417),this['_viewToController']['set'](_0x3fcd69,_0x5cc417);const _0x1bcbef=()=>{const _0x3fa5fb=[],_0x417d65=_0x486195['getAllAdjacentSuggestions']()['filter'](_0x2f160a=>_0x2f160a['isInContent']);for(const _0x3ed4ab of _0x417d65)_0x3fa5fb['push'](..._0x3ed4ab['getMarkers']());return _0x5234aa(_0x55e743['editing'],_0x3fa5fb);};_0x18dc76=_0x3f9828['createAnnotation']({'view':_0x3bf542,'target':_0x1bcbef,'type':()=>'suggestion-'+_0x5cc417['view']['type'],'isVisible':!!_0x1bcbef()}),_0x4d5e6e['_bindAnnotationToEditors'](_0x3fcd69,_0x18dc76),_0x3f9828['add'](_0x18dc76),_0x44892f['registerAnnotation'](_0x18dc76);}['_destroyController'](_0x3bcbb9){const _0x10fd7f=this['editor']['plugins']['get']('CommentsRepository'),_0x1d8153=this['editor']['plugins']['get']('Annotations'),_0x2a5aeb=this['_suggestionToController']['get'](_0x3bcbb9),_0x5321bd=_0x2a5aeb['view'],_0x7b2254=_0x1d8153['getByInnerView'](_0x5321bd);_0x10fd7f['_unbindEditors'](_0x5321bd),_0x7b2254&&_0x1d8153['remove'](_0x7b2254),this['_suggestionToController']['delete'](_0x3bcbb9),this['_viewToController']['delete'](_0x5321bd),_0x2a5aeb['destroy']();}['_updateController'](_0x7b8c94){if(!_0x7b8c94['isInContent']||!this['_suggestionToController']['has'](_0x7b8c94))return;const _0x1641ef=this['editor']['plugins']['get']('TrackChangesEditing'),_0x465077=this['_suggestionToController']['get'](_0x7b8c94),_0x1109f4=_0x7b8c94['getAllAdjacentSuggestions']();_0x465077['view']['descriptionParts']=_0x1641ef['descriptionFactory']['getDescriptions'](_0x1109f4);}['destroy'](){for(const _0x1ad9d1 of this['_suggestionToController']['keys']())this['_destroyController'](_0x1ad9d1);for(const _0x2f8277 of this['_annotationViews']['values']())_0x2f8277['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x341333){return'model'in _0x341333;}class Ne extends _0x4942e1{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x5640a9){this['editor']['plugins']['get'](d)['adapter']=_0x5640a9;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x390714){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x390714);}['getSuggestions']({skipNotAttached:_0x20fda3=!0x1,toJSON:_0x2c4d5e=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x20fda3,'toJSON':_0x2c4d5e});}['getSuggestion'](_0x393139){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x393139);}}const p=['Pagination'];class re extends _0x4942e1{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x464b91=this['editor'];if(_0x464b91['config']['define']('trackChangesData.editorCreator',_0x50b505=>{const _0x2e75d5=_0x464b91['model']['document']['getRootNames']()['reduce']((_0x5237b4,_0x45a20f)=>(_0x5237b4[_0x45a20f]='',_0x5237b4),{});return _0x464b91['constructor']['create'](_0x2e75d5,_0x50b505);}),'function'!=typeof _0x464b91['config']['get']('trackChangesData')['editorCreator'])throw new _0x16ebc5('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x5859e3){return P(this['editor'],!0x0,_0x5859e3);}['getDataWithDiscardedSuggestions'](_0x4d0803){return P(this['editor'],!0x1,_0x4d0803);}}class Fe extends _0x4942e1{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x9442c4){function _0x2fcc2d(_0x5f5b3a){return _0x5f5b3a['map'](_0x5831e1=>String['fromCharCode'](_0x5831e1))['join']('');}super(_0x9442c4),this['result']='end',_0x9442c4[_0x2fcc2d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2fcc2d([0x76,0x69,0x65,0x77])][_0x2fcc2d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2fcc2d([0x61,0x75,0x74,0x6f]),_0x9442c4[_0x2fcc2d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2fcc2d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2fcc2d([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2fcc2d([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2fcc2d([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 De(_0x1ee82c){return void 0x0!==_0x1ee82c['getRootsAttributes'];}async function P(_0x27babc,_0x24080b,_0x4b3fdb){const _0x690389=_0x276efb(_0x27babc,p);_0x690389['plugins']['push'](d,Fe),_0x690389['rootsAttributes']=De(_0x27babc)?_0x27babc['getRootsAttributes']():void 0x0;const _0x2a1e27=document['createDocumentFragment'](),_0x134695=_0x27babc['config']['get']('trackChangesData')['editorCreator'],_0x573e07=await _0x134695(_0x690389,()=>function(_0x36a1a2){const _0xbb6ecd=document['createElement']('div');return _0x36a1a2['appendChild'](_0xbb6ecd),_0xbb6ecd;}(_0x2a1e27));!function(_0x1ad977,_0x29c87f){const _0x1d6efb=_0x1ad977['model']['document']['getRootNames']()['reduce']((_0x82ce0b,_0x14b8e3)=>(_0x82ce0b[_0x14b8e3]=_0x1ad977['data']['get']({'rootName':_0x14b8e3}),_0x82ce0b),{}),_0x41a1b1=_0x1ad977['plugins']['get']('Users')['users']['map'](_0x1ed9b4=>({'id':_0x1ed9b4['id'],'name':_0x1ed9b4['name']})),_0x2c3f94=_0x1ad977['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xef2655=_0x1ad977['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x55f436=_0x29c87f['plugins']['get']('Users'),_0xddac80=_0x29c87f['plugins']['get']('TrackChangesEditing'),_0x32d363=_0x29c87f['plugins']['get']('CommentsRepository');for(const _0x5add12 of _0x32d363['getCommentThreads']())_0x5add12['remove']();for(const _0x1588d1 of _0x41a1b1)_0x55f436['getUser'](_0x1588d1['id'])||_0x55f436['addUser'](_0x1588d1);_0x55f436['me']||_0x55f436['useAnonymousUser']();for(const _0x3014ad of _0xef2655)_0x32d363['addCommentThread'](_0x3014ad);for(const _0x25cde3 of _0x2c3f94)_0xddac80['addSuggestionData'](_0x25cde3);_0x29c87f['data']['set'](_0x1d6efb);}(_0x27babc,_0x573e07),_0x573e07['execute'](_0x24080b?'acceptAllSuggestions':'discardAllSuggestions');const _0x13cf1b=De(_0x573e07)?_0x573e07['getFullData'](_0x4b3fdb):_0x573e07['data']['get'](_0x4b3fdb);return await _0x573e07['destroy'](),_0x13cf1b;}class Me extends _0x48f0dd{['options'];constructor(_0x34eb43,_0x1e08ba){super(_0x34eb43),this['options']=_0x1e08ba,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'](_0x1375f2,_0x3524f5){if(!this['element'])return;const _0x5a157c=[];for(const [_0x1e8f8b,_0x12412d]of _0x1375f2){const _0x2dd713=document['createElement']('div');_0x2dd713['setAttribute']('data-ck-root-name',_0x1e8f8b),_0x2dd713['className']=_0x12412d['classes']+'\x20ck-track-changes-preview__root-container',_0x2dd713['innerHTML']=_0x12412d['content'],_0x5a157c['push'](_0x2dd713);}_0x3524f5(this['element'],_0x5a157c),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x189985{constructor(_0x30cd74){super(_0x30cd74),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x103dbe=this['editor'],_0x1fa0a2=_0x103dbe['locale'],_0x5496c7=_0x103dbe['plugins']['get']('Dialog');let _0x21242b;const _0x36db85=function(_0x102049){const _0x43bcd2={};if('editables'in _0x102049['ui']['view']){for(const [_0x33647f,_0x280a8c]of Object['entries'](_0x102049['ui']['view']['editables']))_0x43bcd2[_0x33647f]=_0x280a8c['element'];}else _0x43bcd2[_0x102049['model']['document']['getRootNames']()[0x0]]=_0x102049['ui']['view']['editable']['element'];return _0x43bcd2;}(_0x103dbe),_0x16b12e=function(_0x254e6f){let _0x1f7a29=0x0;for(const _0x5f0863 of Object['values'](_0x254e6f))_0x1f7a29=Math['max'](_0x1f7a29,_0x5f0863['getBoundingClientRect']()['width']);let _0x27e03f=0x0;for(const _0x2f247d of Object['values'](_0x254e6f))_0x27e03f+=_0x2f247d['getBoundingClientRect']()['height'];const _0xf30931=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x293f41=Math['min'](_0x27e03f,_0xf30931);return{'width':_0x1f7a29,'height':_0x293f41};}(_0x36db85);_0x5496c7['show']({'id':'finalContentPreview','title':o(_0x1fa0a2,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x1fa0a2,{'dialogRects':_0x16b12e}),'onHide':()=>{_0x21242b['detachFromDom']();},'onShow':()=>{_0x103dbe['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x1ed6d3=>{const _0x12bbbe=this['_standarizeRootsData'](_0x1ed6d3,_0x103dbe,_0x36db85);_0x5496c7['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x12bbbe,_0x103dbe['config']['get']('trackChanges.preview.renderFunction'));}),_0x21242b=new _0x44c0a0(_0x1fa0a2,[_0x5496c7['view']]),_0x21242b['attachToDom'](),_0x21242b['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x103dbe['once']('destroy',()=>{_0x21242b['detachFromDom']();});const _0x3ee86d=_0x5496c7['view']['headerView']['class'];_0x5496c7['view']['headerView']['class']=_0x3ee86d?_0x3ee86d+'\x20ck-reset_all':'ck-reset_all',_0x5496c7['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x5496c7['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x12fba8=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x1fb9b3=_0x12fba8['previewMode'],_0x2ef8bd={};if('$labels'===_0x1fb9b3){for(const _0x2baec3 of _0x12fba8['getMergeFieldsIds']())_0x2ef8bd[_0x2baec3]=_0x12fba8['getLabel'](_0x2baec3)||_0x2baec3;}else{const _0x4f7cb8='$defaultValues'===_0x1fb9b3?_0x12fba8['getDefaultValues']():_0x12fba8['getDataSetValues'](_0x1fb9b3,!0x0);for(const _0x10a23f of Object['entries'](_0x4f7cb8)){const [_0x62d5ec,_0x49e7da]=_0x10a23f;_0x2ef8bd[_0x62d5ec]=null!==_0x49e7da?_0x49e7da:_0x12fba8['getLabel'](_0x62d5ec)||_0x62d5ec;}}return{'mergeFieldsData':_0x2ef8bd};}['_standarizeRootsData'](_0x474e4f,_0x8019e1,_0x29e20a){let _0x88915d;if('string'==typeof _0x474e4f){const _0x41b78d=_0x8019e1['model']['document']['getRootNames']()[0x0];_0x88915d={[_0x41b78d]:_0x474e4f};}else _0x88915d=_0x474e4f;const _0x523ec0=this['_fixMediaEmbeds'](_0x88915d,_0x8019e1),_0x518873=function(_0x594841,_0x4c59b6){for(const [_0x21ef27,_0x266e4d]of _0x594841)_0x266e4d['classes']=_0x4c59b6[_0x21ef27]['classList']['value']['replace']('ck-focused','');return _0x594841;}(this['_sortRoots'](_0x8019e1)['reduce']((_0x570476,_0x2cc54b)=>(_0x570476['push']([_0x2cc54b,{'content':_0x523ec0[_0x2cc54b],'classes':''}]),_0x570476),[]),_0x29e20a);return _0x518873;}['_fixMediaEmbeds'](_0x498a7f,_0x5a24f6){if(!_0x5a24f6['plugins']['has']('MediaEmbedEditing'))return _0x498a7f;const _0x258bf2=_0x5a24f6['plugins']['get']('MediaEmbedEditing');for(const [_0x37e80f,_0x3e19c2]of Object['entries'](_0x498a7f)){const _0x4b0257=document['createElement']('div');_0x4b0257['innerHTML']=_0x3e19c2,(_0x4b0257['querySelectorAll']('figure.media')['forEach'](_0x38befd=>{const _0x49dbe9=_0x38befd['querySelector']('oembed');if(_0x49dbe9){const _0x42e80a=_0x49dbe9['getAttribute']('url');if(_0x42e80a){const _0x53e819=_0x258bf2['registry']['getMediaViewElement'](new _0x4fc21c(_0x5a24f6['editing']['view']['document']),_0x42e80a,{'elementName':'','renderForEditingView':!0x0}),_0xf9d485=document['createElement']('div');_0xf9d485['classList']['add']('ck-media__wrapper'),_0x53e819['render'](_0xf9d485,_0x5a24f6['editing']['view']['domConverter']),_0x49dbe9['replaceWith'](_0xf9d485);}}}),_0x498a7f[_0x37e80f]=_0x4b0257['innerHTML']);}return _0x498a7f;}['_sortRoots'](_0x1316c9){if(!function(_0x1f41e0){return void 0x0!==_0x1f41e0['getRootsAttributes'];}(_0x1316c9))return _0x1316c9['model']['document']['getRootNames']();const _0x4e49e5=[],_0x294830=new Map();for(const _0x4ea54a of _0x1316c9['model']['document']['getRootNames']()){const _0xb9c29f=_0x1316c9['editing']['view']['getDomRoot'](_0x4ea54a)['getClientRects']()['item'](0x0);_0x4e49e5['push'](_0x4ea54a),_0x294830['set'](_0x4ea54a,_0xb9c29f);}return _0x4e49e5['sort']((_0x797f91,_0x135654)=>{const _0x330c90=_0x294830['get'](_0x797f91),_0x3cd691=_0x294830['get'](_0x135654);return _0x330c90['y']-_0x3cd691['y']||_0x330c90['x']-_0x3cd691['x'];}),_0x4e49e5;}}class Ue extends _0x4942e1{static get['requires'](){return[re,_0x2e2e8e];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x478948){super(_0x478948),_0x478948['commands']['add']('previewFinalContent',new te(this['editor'])),_0x478948['config']['define']('trackChanges.preview.renderFunction',(_0x119cca,_0x5bc417)=>{for(const _0x1b0b31 of _0x5bc417)_0x119cca['appendChild'](_0x1b0b31);});}}export{v as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,D as DiscardSuggestionCommand,B as ExecuteOnAllSuggestionsCommand,O as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,x as Suggestion,M as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Ne as TrackChanges,$ as TrackChangesCommand,re as TrackChangesData,Fe as TrackChangesDataGetter,d as TrackChangesEditing,Ue as TrackChangesPreview,u as TrackChangesUI};
23
+ import{Command as _0x6f992a,Plugin as _0x2051ed,PendingActions as _0x25e1fa}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x7f7e05,ObservableMixin as _0x303ac1,uid as _0x2280a6,priorities as _0x179c84,insertToPriorityArray as _0x24a61d,logWarning as _0x3f377d,getEnvKeystrokeText as _0x4239ea,FocusTracker as _0x17a81e,KeystrokeHandler as _0x193443,Collection as _0x1fcff8}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x7366eb,IconCancel as _0x29d776,IconTrackChanges as _0x176232}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x2bff0e,View as _0x195901,ViewCollection as _0x4606ad,FocusCycler as _0x37f275,UIModel as _0x5636c8,createDropdown as _0x58693a,SplitButtonView as _0x16b1b1,addListToDropdown as _0x29c746,MenuBarMenuView as _0x409ba2,MenuBarMenuListView as _0x263b81,ListSeparatorView as _0x4d6c3f,MenuBarMenuListItemView as _0x8106ff,MenuBarMenuListItemButtonView as _0x2a02a7,BodyCollection as _0x447b17,Dialog as _0x36a810}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x5a126c,DocumentCompare as _0x54d0d7,hashObject as _0x107885,surroundingMarkersDetector as _0x20c75f,FOCUS_ANNOTATION_KEYSTROKE as _0x49f432,AriaDescriptionView as _0x16b250,setupThreadKeyboardNavigation as _0x464452,trimHtml as _0x452a43,UserView as _0x4d114a,LateFocusButtonView as _0x10b3c2,getDateTimeFormatter as _0x34f158,getAllMarkersDomElementsSorted as _0x344ec9,sanitizeEditorConfig as _0x2ef362}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x3b63f4,ModelLiveRange as _0x53fd14,ModelLivePosition as _0x27be50,ViewDowncastWriter as _0x3ad43d}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as _0x75ca20,set as _0x35413c,isEqual as _0x5abc0a,unset as _0x5c43fb,omit as Pt}from'es-toolkit/compat';import{Delete as _0x286964,Input as _0x30fdb1}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x3662a5}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x4e8daf}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{SuggestionsConversion as Jt,fixElementSuggestionRange as Lt,splitSuggestionMarkerName as Gt}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';class $ extends _0x6f992a{['_enabledCommands'];constructor(_0x355e9f,_0x157a71){super(_0x355e9f),this['_enabledCommands']=_0x157a71,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 _0x473acb of this['editor']['commands']['commands']())_0x473acb['affectsData']&&!this['_enabledCommands']['has'](_0x473acb)&&_0x473acb['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x5021ae of this['editor']['commands']['commands']())_0x5021ae['affectsData']&&!this['_enabledCommands']['has'](_0x5021ae)&&_0x5021ae['clearForceDisabled']('TrackChangesCommand');}}class v extends _0x6f992a{['_suggestions'];constructor(_0x5ece19,_0xb32cd1){super(_0x5ece19),this['_suggestions']=_0xb32cd1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5f46f6){const _0x24965b=this['_suggestions']['get'](_0x5f46f6);if(!_0x24965b)throw new _0x7f7e05('track-changes-accept-suggestion-not-found',this);const _0x536a67=_0x24965b['getRanges']();this['editor']['model']['canEditAt'](_0x536a67)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x24965b);}}class D extends _0x6f992a{['_suggestions'];constructor(_0x47d009,_0x11abf8){super(_0x47d009),this['_suggestions']=_0x11abf8,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x240951){const _0x2bd099=this['_suggestions']['get'](_0x240951);if(!_0x2bd099)throw new _0x7f7e05('track-changes-discard-suggestion-not-found',this);const _0x23f2b0=_0x2bd099['getRanges']();this['editor']['model']['canEditAt'](_0x23f2b0)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x2bd099);}}function ls(_0x205b1,_0xe5de45){let _0x246e26='';return _0x246e26+=_0x205b1['split']('*')['map']((_0x54fd85,_0x289387)=>_0x289387%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+rn(_0x54fd85)+'</span>':rn(_0x54fd85))['join'](''),_0xe5de45&&(_0x246e26+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0xe5de45['value']+'\x22\x20title=\x22'+_0xe5de45['title']+'\x22></span>'),_0x246e26;}function rn(_0x49f83a){const _0x44b6e3=document['createElement']('span');return _0x44b6e3['innerText']=_0x49f83a,_0x44b6e3['innerHTML'];}function ts(_0x1df920){return _0x1df920['sort']((_0x5c33d5,_0x301d67)=>'attribute'===_0x5c33d5['type']&&'attribute'!==_0x301d67['type']?-0x1:'attribute'!==_0x5c33d5['type']&&'attribute'===_0x301d67['type']?0x1:'deletion'==_0x5c33d5['type']&&'deletion'!=_0x301d67['type']?-0x1:'deletion'!=_0x5c33d5['type']&&'deletion'==_0x301d67['type']?0x1:0x0);}function to(_0x4c485f,_0x4a162f){let _0x12b457,_0x5345ec=0x0;const _0x207bb9=[],_0x10eb30=_0x4a162f['schema'];for(;_0x5345ec<_0x4c485f['length'];){const _0x33a587=_0x4c485f[_0x5345ec],_0x1e1db3=_0x4c485f[_0x5345ec+0x1];_0x12b457||(_0x12b457=_0x4a162f['createPositionBefore'](_0x33a587)),cn(_0x4a162f,_0x33a587,_0x1e1db3)||(_0x207bb9['push'](_0x4a162f['createRange'](_0x12b457,_0x10eb30['isObject'](_0x33a587)?_0x4a162f['createPositionAfter'](_0x33a587):_0x4a162f['createPositionAt'](_0x33a587,'end'))),_0x12b457=null),_0x5345ec++;}return _0x207bb9;}function cn(_0x5148e6,_0x5ac921,_0x192003){if(!_0x192003)return!0x1;const _0xbacc36=_0x5148e6['createPositionAfter'](_0x5ac921),_0x57879e=_0x5148e6['createPositionBefore'](_0x192003);return _0xbacc36['isTouching'](_0x57879e);}function rs(_0x2adb7a,_0xc3b8f,_0x268cad){for(;_0x268cad['length'];){const _0x159ac7=_0x268cad['splice'](0x0,0x64);_0x2adb7a['change'](()=>{for(const _0x444de4 of _0x159ac7)_0x444de4['isInContent']&&_0xc3b8f['execute'](_0x444de4['id']);});}}class B extends _0x6f992a{['_command'];['_suggestions'];constructor(_0x1dd18e,_0x248420,_0xe968b0){super(_0x1dd18e),this['_command']=_0x248420,this['_suggestions']=_0xe968b0,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x14b79a=Array['from'](this['_suggestions']['values']())['some'](_0x189be9=>_0x189be9['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x14b79a;}['execute'](){const _0x41b669=ts(Array['from'](this['_suggestions']['values']()));for(const _0x3459a5 of _0x41b669){const _0x534fee=_0x3459a5['getRanges']();if(!this['editor']['model']['canEditAt'](_0x534fee))return;}rs(this['editor']['model'],this['_command'],_0x41b669);}}class O extends _0x6f992a{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x4a58db,_0x14698d,_0x3a656f){super(_0x4a58db),this['_command']=_0x14698d,this['_suggestions']=_0x3a656f,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x394a99=this['editor']['model']['document']['selection'],_0x42716a=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x19abd5,_0x4244a4){const _0x523c09=Array['from'](_0x19abd5['getRanges']()),_0x25a01d=new Set();for(const _0x5f3629 of _0x4244a4)if(_0x5f3629['isInContent']){for(const _0x56064f of _0x523c09)for(const _0x184e72 of _0x5f3629['getRanges']())(_0x56064f['isIntersecting'](_0x184e72)||_0x19abd5['isCollapsed']&&!_0x5f3629['isMultiRange']&&_0x5f3629['next']&&_0x184e72['end']['isTouching'](_0x56064f['start']))&&_0x25a01d['add'](_0x5f3629);}return _0x25a01d;}(_0x394a99,_0x42716a),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x514421=ts(Array['from'](this['_selectedSuggestions']));for(const _0x2272a3 of _0x514421){const _0x152235=_0x2272a3['getRanges']();if(!this['editor']['model']['canEditAt'](_0x152235))return;}rs(this['editor']['model'],this['_command'],_0x514421);}}class x extends/* #__PURE__ -- @preserve */
24
+ _0x303ac1(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0xaf9217,_0xb0bbac){super(),this['id']=_0xb0bbac['id'],this['type']=_0xb0bbac['type'],this['subType']=_0xb0bbac['subType']||null,this['author']=_0xb0bbac['author'],this['creator']=_0xb0bbac['creator']||_0xb0bbac['author'],this['isExternal']=Boolean(_0xb0bbac['attributes']&&_0xb0bbac['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0xb0bbac['originalSuggestionId']||null,this['_model']=_0xaf9217,this['_onAccept']=_0xb0bbac['onAccept'],this['_onDiscard']=_0xb0bbac['onDiscard'],this['_onAttributesChange']=_0xb0bbac['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0xb0bbac['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 _0x5cf221=this;for(;_0x5cf221['previous'];)_0x5cf221=_0x5cf221['previous'];return _0x5cf221;}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'](_0x391b7c){this['_markerNames']['add'](_0x391b7c);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x1e42e5=>this['_model']['markers']['get'](_0x1e42e5))['filter'](_0x309ccc=>_0x309ccc);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x5ad4db=>{for(const _0x43e847 of this['getMarkers']())_0x5ad4db['removeMarker'](_0x43e847);}),this['_markerNames']['clear']();}['removeMarker'](_0x6512ca){this['_model']['change'](_0x185769=>{_0x185769['removeMarker'](_0x6512ca);}),this['_markerNames']['delete'](_0x6512ca);}['addRange'](_0x14106a){const _0x502fa9='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+x['getMultiRangeId']();this['addMarkerName'](_0x502fa9),this['_model']['change'](_0x4b5f1a=>{_0x4b5f1a['addMarker'](_0x502fa9,{'range':_0x14106a,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1ee5fa){for(const _0x4618db of this['getRanges']())if(_0x4618db['isIntersecting'](_0x1ee5fa))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x2444ea=>_0x2444ea['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2fd735,_0x14c34b)=>[..._0x2fd735,..._0x14c34b['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x564a99=this['getRanges']();if(0x1!=_0x564a99['length'])return null;const _0x3d18be=_0x564a99[0x0],_0xe9b05d=_0x3d18be['start']['nodeAfter'],_0x4cc7ea=_0x3d18be['end']['nodeBefore'];return _0xe9b05d instanceof _0x3b63f4?_0xe9b05d!=_0x4cc7ea?null:_0xe9b05d: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 _0xe5d1d8=[];let _0x415b7a=this['head'];for(;_0x415b7a;)_0xe5d1d8['push'](_0x415b7a),_0x415b7a=_0x415b7a['next'];return _0xe5d1d8;}['setAttribute'](_0x170b98,_0x2b9956){const _0x3aba6b=_0x75ca20(this['attributes']);_0x35413c(_0x3aba6b,_0x170b98,_0x2b9956),_0x5abc0a(_0x3aba6b,this['attributes'])||(this['attributes']=_0x3aba6b,this['_onAttributesChange'](_0x3aba6b));}['removeAttribute'](_0x4cc1ff){const _0x19de00=_0x75ca20(this['attributes']);_0x5c43fb(_0x19de00,_0x4cc1ff),_0x5abc0a(_0x19de00,this['attributes'])||(this['attributes']=_0x19de00,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 _0x2280a6()['substr'](0x1,0x5);}}function o(_0x122ed2,_0x2db180,_0x564914){const _0x19ae3d=_0x122ed2['t'],t=_0x122ed2['t'];switch(_0x2db180){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',_0x564914);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x564914);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x564914);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x564914);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x564914);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',_0x564914);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x564914);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',_0x564914);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x564914);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x564914);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x564914);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x564914);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x564914);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x564914);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x564914);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x564914);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x564914);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x564914);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x564914);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x564914);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x564914);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x564914);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x564914);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x564914);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x564914);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'},_0x564914);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x564914);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x564914);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x564914);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x564914);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x564914);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x564914);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x564914);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'},_0x564914);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x564914);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x564914);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x564914);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x564914);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'},_0x564914);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x564914);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'},_0x564914);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'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});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'},_0x564914);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x564914);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'},_0x564914);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x564914);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'},_0x564914);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x564914);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x564914);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x564914);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x564914);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x564914);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'},_0x564914);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x564914);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 _0x19ae3d({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x564914);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x19ae3d({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x564914);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x564914);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'},_0x564914);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'},_0x564914);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'},_0x564914);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x2db180;}}class M{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x2979c0,_0x3a5f1a){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2979c0,this['_locale']=_0x3a5f1a;}['getDescriptions'](_0x39d1fa){const _0x9202c0=[],_0x2f6b27=new Set(),_0x2f5eca=new Set();for(let _0x379158=0x0;_0x379158<_0x39d1fa['length'];_0x379158++){const _0x3e0cb3=_0x39d1fa[_0x379158];if(!_0x3e0cb3['isInContent'])continue;const _0x4e6f1e=this['_handleCustomCallbackDescription'](_0x3e0cb3);if(_0x4e6f1e){if(null!=_0x3e0cb3['subType']){if(_0x2f6b27['has'](_0x3e0cb3['subType']))continue;_0x2f6b27['add'](_0x3e0cb3['subType']);}_0x9202c0['push'](_0x4e6f1e);}else{if('attribute'==_0x3e0cb3['type']){const _0x1fe4ed=_0x3e0cb3['data']['key'];if(_0x2f5eca['has'](_0x1fe4ed))continue;_0x2f5eca['add'](_0x3e0cb3['data']['key']),_0x1fe4ed==m?this['_handleRenameSuggestionDescription'](_0x9202c0,_0x3e0cb3):this['_handleAttributeSuggestionDescription'](_0x9202c0,_0x3e0cb3);continue;}'insertion'!=_0x3e0cb3['type']&&'deletion'!=_0x3e0cb3['type']||this['_handleInsertRemoveSuggestionDescription'](_0x9202c0,_0x3e0cb3,_0x39d1fa[_0x379158+0x1]);}}return this['_resolveDescriptionItems'](_0x9202c0);}['registerDescriptionCallback'](_0x10d36d){this['_customCallbacks']['push'](_0x10d36d);}['registerElementLabel'](_0x4b4834,_0x54cd04,_0x2df8ff=_0x179c84['normal']){'function'==typeof _0x4b4834?_0x24a61d(this['_itemLabelsCallbacks'],{'matchingCallback':_0x4b4834,'label':_0x54cd04,'priority':_0x2df8ff}):this['_itemLabels']['set'](_0x4b4834,_0x54cd04);}['registerAttributeLabel'](_0x5c2266,_0x5df4b4){this['_attributeLabels']['set'](_0x5c2266,_0x5df4b4);}['getItemLabel'](_0x4ec64d,_0x136d71=0x1){let _0x2fc321;for(const _0x522170 of this['_itemLabelsCallbacks'])if(_0x522170['matchingCallback'](_0x4ec64d)){_0x2fc321=_0x522170['label'];break;}return _0x2fc321||(_0x2fc321=this['_itemLabels']['get'](_0x4ec64d['name'])),_0x2fc321?_0x2fc321(_0x136d71):0x1!==_0x136d71?_0x136d71+'\x20'+_0x4ec64d['name']+'s':''+_0x4ec64d['name'];}['_addDescriptionItems'](_0x4aef6d,_0x4670d3){const _0x4a1217=_0x4670d3['getFirstRange']()['getWalker'](),_0x27d03f='insertion'==_0x4670d3['type']?'add':'remove';for(const _0x417492 of _0x4a1217){const _0x1bec8e=_0x417492['item'],_0x5d8513=_0x4aef6d[_0x4aef6d['length']-0x1];if(_0x1bec8e['is']('$textProxy'))_0x5d8513&&_0x5d8513['type']['indexOf']('Container')>-0x1&&_0x4aef6d['pop'](),_0x5d8513&&'text'==_0x5d8513['type']?_0x5d8513[_0x27d03f]+=_0x1bec8e['data']:_0x4aef6d['push']({'type':'text','add':'add'==_0x27d03f?_0x1bec8e['data']:'','remove':'remove'==_0x27d03f?_0x1bec8e['data']:''});else{if(this['_schema']['isObject'](_0x1bec8e)){const _0x5c99b7=_0x1bec8e;if(_0x5d8513&&_0x5d8513['type']['indexOf']('Container')>-0x1&&_0x4aef6d['pop'](),'elementEnd'==_0x417492['type'])continue;_0x5d8513&&_0x5d8513['type']==_0x27d03f+'Object'&&_0x5d8513['element']['name']==_0x5c99b7['name']?_0x5d8513['quantity']++:_0x4aef6d['push']({'type':_0x27d03f+'Object','element':_0x5c99b7,'quantity':0x1}),_0x4a1217['skip'](_0x595047=>!('elementEnd'==_0x595047['type']&&_0x595047['item']==_0x1bec8e));}else{if(this['_schema']['checkChild'](_0x1bec8e,'$text')||_0x1bec8e['is']('element','softBreak')){const _0xbd4c12=_0x1bec8e;if('add'==_0x27d03f&&'elementStart'==_0x417492['type']||'remove'==_0x27d03f&&'elementEnd'==_0x417492['type'])continue;if(_0x5d8513&&-0x1==_0x5d8513['type']['indexOf']('Container')){'text'==_0x5d8513['type']&&(_0x5d8513[_0x27d03f]+='\x0a');continue;}let _0xdd0235;if(_0xdd0235='add'==_0x27d03f?_0xbd4c12['nextSibling']&&!this['_schema']['isObject'](_0xbd4c12['nextSibling'])?_0xbd4c12['nextSibling']:null:_0xbd4c12['previousSibling']&&!this['_schema']['isObject'](_0xbd4c12['previousSibling'])?_0xbd4c12['previousSibling']:null,_0xbd4c12['isEmpty']||_0xdd0235&&_0xdd0235['isEmpty']){const _0x5a62e6=_0xdd0235&&_0xdd0235['isEmpty']?_0xdd0235:_0xbd4c12;_0x5d8513&&_0x5d8513['type']==_0x27d03f+'EmptyContainer'&&_0x5d8513['element']['name']==_0x5a62e6['name']?_0x5d8513['quantity']++:_0x4aef6d['push']({'type':_0x27d03f+'EmptyContainer','element':_0x5a62e6,'quantity':0x1});}else _0x4aef6d['push']({'type':_0x27d03f+'Container','element':_0xbd4c12});}}}}}['_resolveDescriptionItems'](_0x3fc3d9){const _0x55a957=this['_locale'],_0xbf61c8=[],_0x5778a0=[],_0x7312aa=[];for(const _0x344e07 of _0x3fc3d9)switch(_0x344e07['type']){case'text':if(_0x344e07['add']=_0x344e07['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x344e07['remove']=_0x344e07['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x344e07['add']&&''!=_0x344e07['remove']){_0xbf61c8['push']({'type':'replace','content':o(_0x55a957,'REPLACE_TEXT',['\x22'+_0x344e07['remove']+'\x22','\x22'+_0x344e07['add']+'\x22'])});continue;}if(null!=_0x344e07['add']['match'](/^ +$/)){_0xbf61c8['push']({'type':'insertion','content':o(_0x55a957,'*Insert:*\x20%0',o(_0x55a957,'ELEMENT_SPACE',_0x344e07['add']['length']))});continue;}if(null!=_0x344e07['remove']['match'](/^ +$/)){_0xbf61c8['push']({'type':'deletion','content':o(_0x55a957,'*Remove:*\x20%0',o(_0x55a957,'ELEMENT_SPACE',_0x344e07['remove']['length']))});continue;}if(''!=_0x344e07['add']){_0xbf61c8['push']({'type':'insertion','content':o(_0x55a957,'*Insert:*\x20%0','\x22'+_0x344e07['add']+'\x22')});continue;}_0xbf61c8['push']({'type':'deletion','content':o(_0x55a957,'*Remove:*\x20%0','\x22'+_0x344e07['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0xbf61c8['push']({'type':'insertion','content':o(_0x55a957,'*Insert:*\x20%0',this['getItemLabel'](_0x344e07['element'],_0x344e07['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0xbf61c8['push']({'type':'deletion','content':o(_0x55a957,'*Remove:*\x20%0',this['getItemLabel'](_0x344e07['element'],_0x344e07['quantity']))});continue;case'addContainer':_0xbf61c8['push']({'type':'insertion','content':o(_0x55a957,'*Split:*\x20%0',this['getItemLabel'](_0x344e07['element'],_0x344e07['quantity']))});continue;case'removeContainer':_0xbf61c8['push']({'type':'deletion','content':o(_0x55a957,'*Merge:*\x20%0',this['getItemLabel'](_0x344e07['element'],_0x344e07['quantity']))});continue;case'addFormat':_0x5778a0['push'](_0x344e07['key']);continue;case'removeFormat':_0x7312aa['push'](_0x344e07['key']);continue;default:_0xbf61c8['push'](_0x344e07);}if(_0x5778a0['length']){const _0x4773b3=_0x5778a0['map'](_0x413b2c=>this['_attributeLabels']['has'](_0x413b2c)?this['_attributeLabels']['get'](_0x413b2c):_0x413b2c)['join'](',\x20');_0xbf61c8['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x4773b3)});}if(_0x7312aa['length']){const _0x3c5c82=_0x7312aa['map'](_0x255b85=>this['_attributeLabels']['has'](_0x255b85)?this['_attributeLabels']['get'](_0x255b85):_0x255b85)['join'](',\x20');_0xbf61c8['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x3c5c82)});}return _0xbf61c8;}['_handleCustomCallbackDescription'](_0x2cf7bd){for(const _0x12a479 of this['_customCallbacks']){const _0xc9890b=_0x12a479(_0x2cf7bd);if(_0xc9890b&&'type'in _0xc9890b)return _0xc9890b;}}['_handleAttributeSuggestionDescription'](_0x1592dd,_0x415b04){const _0x2f9073=_0x415b04['data'],_0x72e19=void 0x0===_0x2f9073['newValue']?'removeFormat':'addFormat';_0x1592dd['push']({'type':_0x72e19,'key':_0x2f9073['key']});}['_handleRenameSuggestionDescription'](_0x1132f8,_0xbc73a){_0x1132f8['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0xbc73a['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x482332,_0x580627,_0x3b2a3f){if(this['_addDescriptionItems'](_0x482332,_0x580627),_0x3b2a3f&&_0x3b2a3f['getFirstRange']()&&!_0x580627['getFirstRange']()['end']['isEqual'](_0x3b2a3f['getFirstRange']()['start'])){const _0x4ca048=_0x482332[_0x482332['length']-0x1],_0x1b68d4='insertion'==_0x580627['type']?'add':'remove';_0x4ca048&&'text'==_0x4ca048['type']&&(_0x4ca048[_0x1b68d4]+='\x0a');}}}class R extends _0x2051ed{['afterInit'](){const _0x3b5926=this['editor'],_0x341a26=_0x3b5926['plugins']['get']('TrackChangesEditing');_0x3b5926['commands']['get']('showAIAssistant')&&_0x341a26['enableCommand']('showAIAssistant');}}class T extends _0x2051ed{['afterInit'](){const _0x23abfa=this['editor'],_0x52d3dc=_0x23abfa['plugins']['get']('TrackChangesEditing');_0x23abfa['commands']['get']('toggleAi')&&_0x52d3dc['enableCommand']('toggleAi');}}class E extends _0x2051ed{['afterInit'](){const _0x554e33=this['editor'],_0x52907d=_0x554e33['plugins']['get']('TrackChangesEditing');_0x554e33['commands']['get']('aiQuickAction')&&_0x52907d['enableCommand']('aiQuickAction');}}class U extends _0x2051ed{['afterInit'](){const _0xbc0d28=this['editor'],_0x1adbae=_0xbc0d28['locale'];if(!_0xbc0d28['plugins']['has']('AlignmentEditing'))return;const _0x15c07f=_0xbc0d28['plugins']['get']('TrackChangesEditing');_0x15c07f['enableDefaultAttributesIntegration']('alignment'),_0x15c07f['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x1adbae,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x51de53=this['editor'],_0xbd8093=_0x51de53['locale'];_0x51de53['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20ba02=>{if('formatBlock'!=_0x20ba02['type'])return;const {data:_0x3054bd}=_0x20ba02;if(_0x3054bd&&'alignment'==_0x3054bd['commandName']){const _0x2609b9=_0x3054bd['commandParams'][0x0]['value'];return{'type':'format','content':o(_0xbd8093,'*Format:*\x20%0',function(_0xf1774a){switch(_0xf1774a){case'left':return o(_0xbd8093,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0xbd8093,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0xbd8093,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0xbd8093,'FORMAT_JUSTIFY_TEXT');}}(_0x2609b9))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class V extends _0x2051ed{['afterInit'](){const _0x3a4ea9=this['editor'],_0x591fc4=_0x3a4ea9['plugins']['get']('TrackChangesEditing'),_0xa29de3=_0x3a4ea9['locale'];for(const _0x163181 of ti){if(!_0x3a4ea9['plugins']['has'](_0x163181))continue;const _0x3c1e41=_0x163181['slice'](0x0,-0x7)['toLowerCase'](),_0x6bb051='FORMAT_'+_0x3c1e41['toUpperCase']();_0x591fc4['enableDefaultAttributesIntegration'](_0x3c1e41),_0x591fc4['descriptionFactory']['registerAttributeLabel'](_0x3c1e41,o(_0xa29de3,_0x6bb051));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e9873=this['editor'],_0x1e0bbf=_0x1e9873['locale'],_0x413f58=_0x1e9873['plugins']['get']('TrackChangesEditing');function _0x3e8b0f(_0x99b25,_0x1297c0){_0x413f58['descriptionFactory']['registerDescriptionCallback'](_0x353606=>{if('formatInline'!=_0x353606['type'])return;const {data:_0x3b9467}=_0x353606;return _0x3b9467&&_0x3b9467['commandName']===_0x99b25?_0x3b9467['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1e0bbf,'*Format:*\x20%0',_0x1297c0)}:{'type':'format','content':o(_0x1e0bbf,'*Remove\x20format:*\x20%0',_0x1297c0)}:void 0x0;});}_0x3e8b0f('bold',o(_0x1e0bbf,'FORMAT_BOLD')),_0x3e8b0f('italic',o(_0x1e0bbf,'FORMAT_ITALIC')),_0x3e8b0f('underline',o(_0x1e0bbf,'FORMAT_UNDERLINE')),_0x3e8b0f('code',o(_0x1e0bbf,'FORMAT_CODE')),_0x3e8b0f('strikethrough',o(_0x1e0bbf,'FORMAT_STRIKETHROUGH')),_0x3e8b0f('subscript',o(_0x1e0bbf,'FORMAT_SUBSCRIPT')),_0x3e8b0f('superscript',o(_0x1e0bbf,'FORMAT_SUPERSCRIPT'));}}class F extends _0x2051ed{['afterInit'](){const _0x46d642=this['editor'],_0x531bf5=_0x46d642['locale'];if(!_0x46d642['plugins']['has']('BlockQuoteEditing'))return;const _0xd19bb2=_0x46d642['plugins']['get']('TrackChangesEditing'),_0xc1741e=this['editor']['commands']['get']('blockQuote');_0xd19bb2['enableCommand']('blockQuote',(_0xe1074c,_0x51e70b={})=>{const _0x72b9de=this['editor']['model']['document']['selection'],_0x5669ae=_0x51e70b&&void 0x0!==_0x51e70b['forceValue']?_0x51e70b['forceValue']:!_0xc1741e['value'];let _0x742e55=[];if(_0x5669ae){const _0x256b20=Array['from'](_0x72b9de['getSelectedBlocks']())['filter'](_0x217439=>oo(_0x217439)||function(_0x4b3ea5,_0x4c841d){const _0x43193e=_0x4c841d['checkChild'](_0x4b3ea5['parent'],'blockQuote'),_0x2d665c=_0x4c841d['checkChild'](['$root','blockQuote'],_0x4b3ea5);return _0x43193e&&_0x2d665c;}(_0x217439,this['editor']['model']['schema']));_0x742e55=to(_0x256b20,_0x46d642['model']);}else{const _0x4e1183=Array['from'](_0x72b9de['getSelectedBlocks']())['filter'](_0x56803c=>oo(_0x56803c));_0x742e55=to(_0x4e1183,_0x46d642['model']);}_0x46d642['model']['change'](()=>{for(const _0x4ab449 of _0x742e55)_0xd19bb2['markBlockFormat'](_0x4ab449,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5669ae}]});});}),_0xd19bb2['descriptionFactory']['registerDescriptionCallback'](_0x530e90=>{const {data:_0xade77f}=_0x530e90;if(_0xade77f&&'blockQuote'==_0xade77f['commandName']){const _0x19c954=o(_0x531bf5,'ELEMENT_BLOCK_QUOTE');return _0xade77f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x531bf5,'*Set\x20format:*\x20%0',_0x19c954)}:{'type':'format','content':o(_0x531bf5,'*Remove\x20format:*\x20%0',_0x19c954)};}});}}function oo(_0x536c44){return'blockQuote'==_0x536c44['parent']['name'];}class G extends _0x2051ed{['afterInit'](){const _0x40378c=this['editor'],_0x2682ce=_0x40378c['locale'],_0x1ee863=_0x40378c['plugins']['get']('TrackChangesEditing');_0x40378c['plugins']['has']('BookmarkEditing')&&(_0x1ee863['enableCommand']('insertBookmark'),_0x1ee863['enableDefaultAttributesIntegration']('updateBookmark'),_0x1ee863['descriptionFactory']['registerDescriptionCallback'](_0x348eb6=>{if('insertion'!=_0x348eb6['type']&&'deletion'!=_0x348eb6['type']&&'attribute'!=_0x348eb6['type'])return;const _0x324cf5=_0x348eb6['getContainedElement']();if(null==_0x324cf5)return;if(!_0x324cf5['is']('element','bookmark'))return;const _0x5395c0=_0x324cf5['getAttribute']('bookmarkId');if('insertion'==_0x348eb6['type'])return{'type':'insertion','content':o(_0x2682ce,'*Insert:*\x20%0','\x22'+_0x5395c0+'\x22\x20'+o(_0x2682ce,'ELEMENT_BOOKMARK'))};if('deletion'==_0x348eb6['type'])return{'type':'deletion','content':o(_0x2682ce,'*Remove:*\x20%0','\x22'+_0x5395c0+'\x22\x20'+o(_0x2682ce,'ELEMENT_BOOKMARK'))};const {data:_0x43bd44}=_0x348eb6;if(!_0x43bd44||'bookmarkId'!=_0x43bd44['key'])return;return{'type':'format','content':o(_0x2682ce,'*Set\x20bookmark:*\x20%0','\x22'+_0x43bd44['newValue']+'\x22')};}));}}class L extends _0x2051ed{['afterInit'](){const _0x80d54=this['editor'];_0x80d54['plugins']['has']('CaseChange')&&(_0x80d54['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x80d54['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x80d54['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class J extends _0x2051ed{['afterInit'](){const _0x1e4d30=this['editor'];_0x1e4d30['commands']['get']('ckbox')&&_0x1e4d30['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x2051ed{['afterInit'](){const _0x11f411=this['editor'];if(!_0x11f411['plugins']['has']('CodeBlock'))return;const _0xae2de7=_0x11f411['plugins']['get']('TrackChangesEditing'),_0x5473f2=_0x11f411['locale'],_0x566656=_0x11f411['config']['get']('codeBlock')['languages'],_0x3c3190=_0x11f411['commands']['get']('codeBlock');_0xae2de7['enableCommand']('indentCodeBlock'),_0xae2de7['enableCommand']('outdentCodeBlock'),_0xae2de7['enableCommand']('codeBlock',(_0x4a9bda,_0x2516ce={})=>{const _0x4eb7da=_0x11f411['model'],_0x5b6679=_0x11f411['model']['document']['selection'],_0x47144b=_0x2516ce&&void 0x0!==_0x2516ce['forceValue']?_0x2516ce['forceValue']:!_0x3c3190['value'];let _0xe0477;_0x2516ce['language']||(_0x2516ce['language']=_0x566656[0x0]['language']),_0xe0477=_0x47144b?Array['from'](_0x5b6679['getSelectedBlocks']())['filter'](_0x1a291e=>co(_0x1a291e)||function(_0x2a8b2a,_0xf7308){if(_0x2a8b2a['is']('rootElement')||_0xf7308['isLimit'](_0x2a8b2a))return!0x1;return _0xf7308['checkChild'](_0x2a8b2a['parent'],'codeBlock');}(_0x1a291e,_0x4eb7da['schema'])):Array['from'](_0x5b6679['getSelectedBlocks']())['filter'](_0x2fd313=>co(_0x2fd313));const _0x5528b5=to(_0xe0477,_0x4eb7da);_0x4eb7da['change'](()=>{for(const _0x3f0802 of _0x5528b5)_0xae2de7['markBlockFormat'](_0x3f0802,{'commandName':'codeBlock','commandParams':[{..._0x2516ce,'forceValue':_0x47144b}],'formatGroupId':'blockName'});});}),(_0xae2de7['descriptionFactory']['registerElementLabel']('codeBlock',_0x1fb778=>o(_0x5473f2,'ELEMENT_CODE_BLOCK',_0x1fb778)),_0xae2de7['descriptionFactory']['registerDescriptionCallback'](_0x2a17df=>{if('formatBlock'!=_0x2a17df['type'])return;const _0x46bd82=_0x5473f2['t'],{data:_0x2a3974}=_0x2a17df;if(!_0x2a3974||'codeBlock'!=_0x2a3974['commandName'])return;const _0x2ced45=_0x2a3974['commandParams'][0x0]['language'],_0x4e85c5=_0x46bd82(_0x566656['find'](_0x1d26a0=>_0x1d26a0['language']===_0x2ced45)['label'])['toLowerCase']();return _0x2a3974['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5473f2,'*Set\x20format:*\x20%0',o(_0x5473f2,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x4e85c5+')')}:{'type':'format','content':o(_0x5473f2,'*Remove\x20format:*\x20%0',o(_0x5473f2,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x54bfc8){return'codeBlock'==_0x54bfc8['name'];}class z extends _0x2051ed{['afterInit'](){const _0x2917d0=this['editor'];if(!_0x2917d0['plugins']['has']('CommentsEditing'))return;_0x2917d0['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class K extends _0x2051ed{static get['requires'](){return[_0x286964];}['init'](){const _0x207cbc=this['editor'],_0x2cafbb=_0x207cbc['plugins']['get']('TrackChangesEditing');_0x2cafbb['enableCommand']('delete');const _0xcc0bb5=_0x207cbc['commands']['get']('deleteForward');_0x2cafbb['enableCommand']('deleteForward',(_0x44cc91,_0x62e446={})=>{const _0x40954f=_0x207cbc['model']['createSelection'](_0x207cbc['model']['document']['selection']);_0x40954f['isCollapsed']&&_0x207cbc['model']['modifySelection'](_0x40954f,{'direction':'forward','unit':_0x62e446['unit']});const _0x1f754c=_0x40954f['getFirstRange'](),_0x590e3e=_0x53fd14['fromRange'](_0x1f754c);let _0x1a97b1;_0x44cc91(_0x62e446),_0x1a97b1='$graveyard'==_0x590e3e['root']['rootName']?_0x207cbc['model']['createRange'](_0x1f754c['start']):_0x207cbc['model']['createRange'](_0x590e3e['start'],_0x590e3e['end']),_0x590e3e['detach'](),_0x207cbc['model']['enqueueChange'](_0xcc0bb5['buffer']['batch'],_0x5a80dd=>{_0xcc0bb5['buffer']['lock'](),_0x5a80dd['setSelection'](_0x5a80dd['createRange'](_0x1a97b1['end'])),_0xcc0bb5['buffer']['unlock']();});});}}class W extends _0x2051ed{['afterInit'](){const _0x142acd=this['editor'];if(!_0x142acd['plugins']['has']('ListEditing'))return;const _0xc09a0=_0x142acd['locale'],_0x24daf8=_0x142acd['plugins']['get']('TrackChangesEditing'),_0x3f30df=_0x142acd['plugins']['has']('TodoListEditing'),_0x545a42=!!_0x142acd['config']['get']('list.multiBlock');function _0x420f4b(_0x4580d7){return{'type':'format','content':''+o(_0xc09a0,'*Set\x20format:*\x20%0',_0x4580d7)};}function _0x12ddc0(_0x5a2eed){return{'type':'format','content':''+o(_0xc09a0,'*Remove\x20format:*\x20%0',_0x5a2eed)};}_0x24daf8['enableDefaultAttributesIntegration']('numberedList'),_0x24daf8['enableDefaultAttributesIntegration']('bulletedList'),_0x24daf8['enableDefaultAttributesIntegration']('customNumberedList'),_0x24daf8['enableDefaultAttributesIntegration']('customBulletedList'),_0x24daf8['enableDefaultAttributesIntegration']('indentList'),_0x24daf8['enableDefaultAttributesIntegration']('outdentList'),_0x24daf8['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x24daf8['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x545a42&&(_0x24daf8['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x24daf8['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x3f30df&&(_0x24daf8['enableDefaultAttributesIntegration']('todoList'),_0x24daf8['enableDefaultAttributesIntegration']('checkTodoList'),_0x24daf8['descriptionFactory']['registerDescriptionCallback'](_0xd2cd5=>{const {data:_0x53955e}=_0xd2cd5;if(_0x53955e&&'todoListChecked'==_0x53955e['key'])return{'type':'format','content':_0x53955e['newValue']?o(_0xc09a0,'*Check\x20item*'):o(_0xc09a0,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x217268=>{if(_0x217268['batch']['isUndo'])return!0x1;let _0x513435=!0x1;const _0x46fb82=_0x24daf8['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x27b529=>'todoListChecked'===_0x24daf8['_getAttributeKey'](_0x27b529));for(const _0x49dde9 of _0x46fb82){'todo'!=_0x49dde9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x24daf8['_findSuggestions'](_0x49dde9['getFirstRange'](),'attribute')['find'](_0x51fb5c=>'listType'===_0x24daf8['_getAttributeKey'](_0x51fb5c['suggestion']))||(_0x217268['removeMarker'](_0x49dde9['getFirstMarker']()),_0x513435=!0x0));}return _0x513435;})),_0x24daf8['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0xc09a0,'FORMAT_INDENT'));const _0x490cd0={'type':'format','content':''};_0x24daf8['descriptionFactory']['registerDescriptionCallback'](_0x3b71fb=>{const {data:_0x3959a9}=_0x3b71fb;if(!_0x3959a9||'listType'!=_0x3959a9['key'])return;let _0xce0dcc=_0x3b71fb['head'];for(;_0xce0dcc;){if(_0xce0dcc['data']&&(('listStyle'==_0xce0dcc['data']['key']||'listMarkerStyle'==_0xce0dcc['data']['key'])&&(_0xce0dcc['data']['newValue']&&'default'!=_0xce0dcc['data']['newValue']||'default'!=_0xce0dcc['data']['oldValue']&&!_0x3959a9['newValue'])||!_0x545a42&&_0xce0dcc['data']['key']==m))return _0x490cd0;_0xce0dcc=_0xce0dcc['next'];}if(null==_0x3959a9['newValue'])switch(_0x3959a9['oldValue']){case'bulleted':return _0x12ddc0(o(_0xc09a0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x12ddc0(o(_0xc09a0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x12ddc0(o(_0xc09a0,'ELEMENT_TODO_LIST'));}switch(_0x3959a9['newValue']){case'bulleted':return _0x420f4b(o(_0xc09a0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x420f4b(o(_0xc09a0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x420f4b(o(_0xc09a0,'ELEMENT_TODO_LIST'));}}),_0x24daf8['descriptionFactory']['registerDescriptionCallback'](_0x3fe665=>{const {data:_0xae2e30}=_0x3fe665;if(_0xae2e30&&'listIndent'==_0xae2e30['key'])return null==_0xae2e30['newValue']||null==_0xae2e30['oldValue']&&0x0==_0xae2e30['newValue']?_0x490cd0:void 0x0;}),_0x24daf8['descriptionFactory']['registerDescriptionCallback'](_0x53e759=>{if('attribute'!=_0x53e759['type'])return;const {data:_0x55ce44}=_0x53e759;if(!_0x55ce44||'listItemId'!=_0x55ce44['key'])return;const _0x41a4cb=Te(_0x53e759);return'newValue'==_0x41a4cb?{'type':'format','content':o(_0xc09a0,'*Merge:*\x20list\x20item')}:'oldValue'==_0x41a4cb?{'type':'format','content':o(_0xc09a0,'*Split:*\x20list\x20item')}:_0x490cd0;}),_0x142acd['model']['document']['registerPostFixer'](_0x8c2b59=>this['listItemIdFixer'](_0x8c2b59)),_0x142acd['model']['document']['registerPostFixer'](_0x1a959c=>this['noTrackChangesFixer'](_0x1a959c)),_0x142acd['model']['document']['on']('change:data',(_0x400408,_0x2e0c6f)=>{if(_0x2e0c6f['isUndo']||!_0x2e0c6f['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x39db4b){if(_0x39db4b['batch']['isUndo']||!_0x39db4b['batch']['isLocal'])return!0x1;let _0x524ab9=!0x1;const _0x4aefe8=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xfa3990=>_0xfa3990['data']&&'listItemId'==_0xfa3990['data']['key'])['filter'](_0x55532f=>_0x55532f['data']['newValue']&&_0x55532f['data']['oldValue']);for(const _0x2473d6 of _0x4aefe8)Te(_0x2473d6)||(_0x39db4b['removeMarker'](_0x2473d6['getFirstMarker']()),_0x524ab9=!0x0);return _0x524ab9;}['noTrackChangesFixer'](_0x5a7001){if(_0x5a7001['batch']['isUndo']||!_0x5a7001['batch']['isLocal'])return!0x1;const _0x350228=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x350228['trackChangesCommand']['value'])return!0x1;let _0x32d9cb=!0x1;const _0x1eab83=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x11cfe=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x1ecaf1=>'attribute'==_0x1ecaf1['type'])['filter'](_0x3da23b=>_0x1eab83['includes'](_0x3da23b['attributeKey']));if(0x0==_0x11cfe['length'])return _0x32d9cb;for(const _0x4a61e3 of _0x11cfe){const _0x506f05=_0x350228['_findSuggestions'](_0x4a61e3['range'],'attribute')['filter'](_0x5140cd=>!_0x5140cd['meta']['isNextTo'])['map'](_0x4c0b7d=>_0x4c0b7d['suggestion'])['filter'](_0x7cf055=>{const _0x29094c=_0x350228['_getAttributeKey'](_0x7cf055);return _0x1eab83['includes'](_0x29094c);});if(_0x506f05['length']){for(const _0x58f03d of _0x506f05)_0x5a7001['removeMarker'](_0x58f03d['getFirstMarker']());_0x32d9cb=!0x0;}}return _0x32d9cb;}['assureChains'](){const _0x8002a5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x59faa6=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x4ab853;const _0x49e166=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2bdf59=>{if(_0x2bdf59['data']['oldRange']||!_0x2bdf59['data']['newRange'])return null;if(!_0x2bdf59['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x4d8a5d}=_0x8002a5['_splitMarkerName'](_0x2bdf59['name']);if(!_0x8002a5['hasSuggestion'](_0x4d8a5d))return null;const _0x3dfe67=_0x8002a5['getSuggestion'](_0x4d8a5d);return _0x59faa6['includes'](_0x3dfe67['data']['key']);})['map'](_0x4e4579=>{const {id:_0x30c27c}=_0x8002a5['_splitMarkerName'](_0x4e4579['name']),_0x2ef0f1=_0x8002a5['getSuggestion'](_0x30c27c);return _0x4ab853=_0x2ef0f1['attributes']['groupId'],_0x2ef0f1['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x49e166['size'])return;const _0x1b7a43=_0x8002a5['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x175a3a=>'attribute'==_0x175a3a['type']&&_0x175a3a['data']&&_0x59faa6['includes'](_0x175a3a['data']['key'])&&_0x175a3a['attributes']['groupId']!=_0x4ab853)['map'](_0x4df995=>({'listItem':_0x4df995['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4df995['attributes']['groupId']})),_0x311913=new Set();for(const {groupId:_0x4998b1,listItem:_0x85167d}of _0x1b7a43)_0x49e166['has'](_0x85167d)&&_0x311913['add'](_0x4998b1);for(const _0x36e89e of _0x8002a5['getSuggestions']())_0x311913['has'](_0x36e89e['attributes']['groupId'])&&_0x36e89e['setAttribute']('groupId',_0x4ab853);}['_supportLegacySuggestions'](){const _0xd49598=this['editor'],_0x55ccd2=_0xd49598['locale'],_0x270737=_0xd49598['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x270737['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x5644f3,_0x13154d){const _0x43dac2=[];for(let _0x2086cb of _0x5644f3)_0x2086cb['start']['nodeAfter']===_0x2086cb['end']['parent']&&(_0x2086cb=_0xd49598['model']['createRange'](_0xd49598['model']['createPositionAt'](_0x2086cb['start']['nodeAfter'],0x0))),_0x43dac2['push'](_0x2086cb);_0xd49598['model']['change'](_0xc07459=>{const _0x2b6d23=_0xd49598['model']['document']['selection'],_0x32be65=Array['from'](_0x2b6d23['getRanges']())['map'](_0x37a031=>_0x53fd14['fromRange'](_0x37a031));_0xc07459['setSelection'](_0x43dac2),_0xd49598['commands']['get'](_0x13154d['commandName'])['refresh'](),_0x13154d['commandParams']['push']({'forceDefaultExecution':!0x0}),_0xd49598['execute'](_0x13154d['commandName'],..._0x13154d['commandParams']),_0xc07459['setSelection'](_0x32be65);for(const _0x3274af of _0x32be65)_0x3274af['detach']();});}),_0x270737['descriptionFactory']['registerElementLabel'](function(_0x2bfbb5){const _0x1c4a9e=!_0xd49598['model']['schema']['isObject'](_0x2bfbb5),_0x21330b=_0x2bfbb5['previousSibling'],_0xb2bcf7=_0x2bfbb5['nextSibling'],_0x2ab537=_0x2bfbb5['getAttribute']('listItemId'),_0x51cc3c=!_0x21330b||_0x21330b['getAttribute']('listItemId')!==_0x2ab537,_0x5e24f4=!_0xb2bcf7||_0xb2bcf7['getAttribute']('listItemId')!==_0x2ab537;return _0x1c4a9e&&Boolean(_0x2ab537)&&_0x51cc3c&&_0x5e24f4;},_0x25961f=>o(_0x55ccd2,'ELEMENT_LIST_ITEM',_0x25961f));}['_registerLegacyDescription'](){const _0x55901f=this['editor'],_0x27920a=_0x55901f['locale'];function _0x1222fa(_0x2b25c9){const _0x5004ec=_0x55901f['commands']['get']('bulletedList')['value'],_0x12ceb4=_0x55901f['commands']['get']('numberedList')['value'];return'numberedList'===_0x2b25c9?_0x5004ec:_0x12ceb4;}_0x55901f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x48f6cd){if('formatBlock'!=_0x48f6cd['type'])return;const {data:_0x4a44c3}=_0x48f6cd;if(!_0x4a44c3)return;let _0x614fd3,_0x5d17ad,_0x5a2634,_0x59b887;switch(_0x4a44c3['commandName']){case'bulletedList':_0x5a2634=_0x4a44c3['commandParams'][0x0]['forceValue'],_0x59b887=_0x1222fa(_0x4a44c3['commandName']),_0x614fd3=_0x5a2634?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x59b887&&_0x55901f['config']['get']('list.multiBlock')||(_0x614fd3='*Change\x20to:*\x20%0'),_0x5d17ad={'type':'format','content':o(_0x27920a,_0x614fd3,o(_0x27920a,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5a2634=_0x4a44c3['commandParams'][0x0]['forceValue'],_0x59b887=_0x1222fa(_0x4a44c3['commandName']),_0x614fd3=_0x5a2634?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x59b887&&_0x55901f['config']['get']('list.multiBlock')||(_0x614fd3='*Change\x20to:*\x20%0'),_0x5d17ad={'type':'format','content':o(_0x27920a,_0x614fd3,o(_0x27920a,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x614fd3='*Indent:*\x20%0',_0x5d17ad={'type':'format','content':o(_0x27920a,_0x614fd3,o(_0x27920a,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x614fd3=function(_0x12c254){const _0x5950a5=_0x12c254['getFirstRange']();let _0x10c625=_0x5950a5['start']['nodeAfter'];for(;_0x10c625&&_0x5950a5['containsItem'](_0x10c625);){if(_0x10c625['getAttribute']('listIndent')>0x0)return!0x1;_0x10c625=_0x10c625['nextSibling'];}return!0x0;}(_0x48f6cd)?o(_0x27920a,'*Format:*\x20remove\x20from\x20%0',o(_0x27920a,function(_0x57c9ef){return'ELEMENT_'+_0x57c9ef['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x48f6cd))):o(_0x27920a,'*Outdent:*\x20%0',o(_0x27920a,'ELEMENT_LIST_ITEM')),_0x5d17ad={'type':'format','content':_0x614fd3};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x4a44c3['multipleBlocks']&&(_0x614fd3='*Merge:*\x20%0',_0x5d17ad={'type':'deletion','content':o(_0x27920a,_0x614fd3,o(_0x27920a,'ELEMENT_LIST_ITEM'))});}return _0x5d17ad;});}}function Te(_0x492192){let _0x3718a5=_0x492192['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3718a5;){const _0x4e16b5=_0x3718a5['getAttribute']('listItemId');if(!_0x4e16b5)return!0x1;if(_0x4e16b5==_0x492192['data']['newValue'])return'newValue';if(_0x4e16b5==_0x492192['data']['oldValue'])return'oldValue';_0x3718a5=_0x3718a5['previousSibling'];}return!0x1;}class H extends _0x2051ed{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x11e395=this['editor']['config']['get']('list.properties'),_0x341489=this['editor']['plugins']['get']('TrackChangesEditing');_0x11e395['styles']&&_0x341489['enableDefaultAttributesIntegration']('listStyle'),_0x11e395['reversed']&&_0x341489['enableDefaultAttributesIntegration']('listReversed'),_0x11e395['startIndex']&&_0x341489['enableDefaultAttributesIntegration']('listStart');const _0x545699={'type':'format','content':''};_0x341489['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x20da01=this['editor']['locale'];_0x341489['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x20da01,'FORMAT_LIST_REVERSED')),_0x341489['descriptionFactory']['registerDescriptionCallback'](_0x2fbf85=>{const {data:_0x1fc06f}=_0x2fbf85;if(_0x1fc06f&&'listReversed'==_0x1fc06f['key'])return null==_0x1fc06f['newValue']||0x0==_0x1fc06f['newValue']&&null==_0x1fc06f['oldValue']?_0x545699:void 0x0;}),_0x341489['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x20da01,'FORMAT_LIST_START')),_0x341489['descriptionFactory']['registerDescriptionCallback'](_0x35e896=>{const {data:_0xb2443e}=_0x35e896;if(_0xb2443e&&'listStart'==_0xb2443e['key'])return null==_0xb2443e['newValue']||0x1==_0xb2443e['newValue']&&null==_0xb2443e['oldValue']?_0x545699:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x392568=>{if(_0x392568['batch']['isUndo'])return!0x1;let _0x565d32=!0x1;const _0x543c0d=_0x341489['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x56b456=>{const _0x1886dc=_0x341489['_getAttributeKey'](_0x56b456);return'listStart'==_0x1886dc||'listReversed'==_0x1886dc;});for(const _0x5d4b76 of _0x543c0d){const _0x4690b7=_0x5d4b76['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4690b7||'customNumbered'==_0x4690b7)continue;_0x341489['_findSuggestions'](_0x5d4b76['getFirstRange'](),'attribute')['find'](_0x205281=>'listType'==_0x341489['_getAttributeKey'](_0x205281['suggestion']))||(_0x392568['removeMarker'](_0x5d4b76['getFirstMarker']()),_0x565d32=!0x0);}return _0x565d32;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x49b46e){const _0x5364c4=this['editor']['locale'],{data:_0x196262}=_0x49b46e,_0x15a749={'type':'format','content':''};if(!_0x196262||'listStyle'!=_0x196262['key'])return;if(!_0x196262['oldValue'])return'default'==_0x196262['newValue']?_0x15a749:{'type':'format','content':''+o(_0x5364c4,'*Set\x20format:*\x20%0',o(_0x5364c4,this['_getTranslationKeyForListStyle'](_0x196262['newValue'])))};if(!_0x196262['newValue']){if('default'==_0x196262['oldValue'])return _0x15a749;let _0x5b5272=_0x49b46e['head'];for(;_0x5b5272;){if(_0x5b5272['data']&&'listType'==_0x5b5272['data']['key']&&_0x5b5272['data']['newValue'])return _0x15a749;_0x5b5272=_0x5b5272['next'];}return{'type':'format','content':''+o(_0x5364c4,'*Remove\x20format:*\x20%0',o(_0x5364c4,this['_getTranslationKeyForListStyle'](_0x196262['oldValue'])))};}if('default'!=_0x196262['newValue'])return{'type':'format','content':''+o(_0x5364c4,'*Set\x20format:*\x20%0',o(_0x5364c4,this['_getTranslationKeyForListStyle'](_0x196262['newValue'])))};let _0x13c887=_0x49b46e['head'];for(;_0x13c887;){if(_0x13c887['data']&&'listType'==_0x13c887['data']['key']&&_0x13c887['data']['newValue']&&_0x13c887['data']['oldValue'])return _0x15a749;_0x13c887=_0x13c887['next'];}return{'type':'format','content':o(_0x5364c4,'*Set\x20format:*\x20%0',o(_0x5364c4,'ELEMENT_'+_0x49b46e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x24dc62=this['editor'],_0xfc2fee=_0x24dc62['locale'];_0x24dc62['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x35061a=>{if('formatBlock'!=_0x35061a['type'])return;const {data:_0x58133d}=_0x35061a;if(!_0x58133d)return;let _0x2fece3,_0x299e44;switch(_0x58133d['commandName']){case'listStyle':_0x2fece3='*Change\x20to:*\x20%0',_0x299e44={'type':'format','content':o(_0xfc2fee,_0x2fece3,o(_0xfc2fee,this['_getTranslationKeyForListStyle'](_0x58133d['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2fece3=_0x58133d['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x299e44={'type':'format','content':o(_0xfc2fee,_0x2fece3)};break;case'listStart':_0x2fece3='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x299e44={'type':'format','content':o(_0xfc2fee,_0x2fece3,_0x58133d['commandParams'][0x0]['startIndex'])};}return _0x299e44;});}['_getTranslationKeyForListStyle'](_0x1beb03){return'ELEMENT_'+function(_0x31b9f1){if(ye['includes'](_0x31b9f1))return'bulleted';if(Se['includes'](_0x31b9f1))return'numbered';return null;}(_0x1beb03)['toUpperCase']()+'_LIST_'+_0x1beb03['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x2051ed{['afterInit'](){const _0x37f3b0=this['editor'];_0x37f3b0['commands']['get']('emoji')&&_0x37f3b0['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class X extends _0x2051ed{static get['requires'](){return[_0x3662a5];}['init'](){const _0x5ebddd=this['editor'],_0x48e387=_0x5ebddd['plugins']['get']('TrackChangesEditing'),_0x5ae2d2=_0x5ebddd['commands']['get']('enter');_0x48e387['enableCommand']('enter',()=>{_0x5ebddd['model']['change'](_0x400cb8=>{const _0x59fcbd=_0x5ebddd['model']['document']['selection'],_0x5edd2d=_0x59fcbd['getFirstPosition'](),_0x535c96=_0x53fd14['fromRange'](_0x59fcbd['getFirstRange']());if(_0x5ae2d2['enterBlock'](_0x400cb8)){const _0x2f3358=_0x5ebddd['model']['createPositionAt'](_0x5edd2d['parent']['nextSibling'],0x0),_0x5682b9=_0x400cb8['createRange'](_0x5edd2d,_0x2f3358);_0x48e387['markInsertion'](_0x5682b9);}else _0x400cb8['setSelection'](_0x400cb8['createRange'](_0x535c96['end']));_0x535c96['detach'](),_0x5ae2d2['fire']('afterExecute',{'writer':_0x400cb8});});});}}class Y extends _0x2051ed{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x540b12=this['editor']['plugins']['get']('TrackChangesEditing');_0x540b12['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x540b12['enableCommand']('findNext'),_0x540b12['enableCommand']('findPrevious'),_0x540b12['enableCommand']('replace'),_0x540b12['enableCommand']('replaceAll');}['handleFindCommand'](_0x393797,_0x48e96e,_0x284a43={}){const _0x515bf4=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x393797(_0x49b7d0=>{let _0x6a3078=('string'==typeof _0x48e96e?_0x515bf4['findByTextCallback'](_0x48e96e,_0x284a43):_0x48e96e)(_0x49b7d0);Array['isArray'](_0x6a3078)&&(_0x6a3078={'results':_0x6a3078,'searchText':'string'==typeof _0x48e96e?_0x48e96e:''});const _0x3fc2fd=_0x6a3078['results']['filter'](_0x2525a3=>!0x1===this['_isInDeletionRange'](_0x2525a3,_0x49b7d0['item']));return{..._0x6a3078,'results':_0x3fc2fd};},_0x284a43);}['_isInDeletionRange'](_0x32cc34,_0x5152c7){const _0x9fecb4=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5152c7,_0x32cc34['start']),this['editor']['model']['createPositionAt'](_0x5152c7,_0x32cc34['end']));for(const _0x25bd5b of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x9fecb4['getIntersection'](_0x25bd5b['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x2051ed{['afterInit'](){const _0x119384=this['editor']['locale'],_0x204020=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1d3d6c,commandName:_0x43ec96}of eo)this['editor']['plugins']['has'](_0x1d3d6c)&&_0x204020['enableDefaultAttributesIntegration'](_0x43ec96);_0x204020['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x119384,'FORMAT_FONT_SIZE')),_0x204020['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x119384,'FORMAT_FONT_FAMILY')),_0x204020['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x119384,'FORMAT_FONT_COLOR')),_0x204020['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x119384,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x300778=this['editor'],_0x1ce5db=_0x300778['locale'];_0x300778['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3be0c6=>{const _0x4dbbf9=_0x1ce5db['t'];if('formatInline'!=_0x3be0c6['type'])return;const {data:_0x427662}=_0x3be0c6;if(null!=_0x427662){if('fontSize'==_0x427662['commandName']){const _0xecd008=_0x427662['commandParams'][0x0]['value'];if(_0xecd008){const _0x354f9d=_0x4dbbf9(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x559ec9=>_0x559ec9['model']==_0xecd008)['title'])['toLowerCase']();return{'type':'format','content':o(_0x1ce5db,'*Set\x20font\x20size:*\x20%0',_0x354f9d)};}return{'type':'format','content':o(_0x1ce5db,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x427662['commandName']){const _0xf01c58=_0x427662['commandParams'][0x0]['value'];return _0xf01c58?{'type':'format','content':o(_0x1ce5db,'*Set\x20font\x20family:*\x20%0',_0xf01c58)}:{'type':'format','content':o(_0x1ce5db,'*Reset\x20font\x20family*')};}if('fontColor'==_0x427662['commandName']){const _0x28a0d9=_0x427662['commandParams'][0x0]['value'];if(_0x28a0d9){const _0x56b133=_0x2bff0e(this['editor']['config']['get']('fontColor.colors'))['find'](_0xb7d009=>_0xb7d009['model']==_0x28a0d9);let _0x1dae96=_0x28a0d9,_0x3177c5='';return _0x56b133&&(_0x1dae96=_0x56b133['label'],_0x3177c5=_0x4dbbf9(_0x1dae96)['toLowerCase']()),{'type':'format','content':o(_0x1ce5db,'*Set\x20font\x20color:*\x20%0',_0x3177c5)['trim'](),'color':{'value':_0x28a0d9,'title':_0x3177c5||_0x1dae96}};}return{'type':'format','content':o(_0x1ce5db,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x427662['commandName']){const _0x5dc244=_0x427662['commandParams'][0x0]['value'];if(_0x5dc244){const _0x8529b8=_0x2bff0e(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x59a7ce=>_0x59a7ce['model']==_0x5dc244);let _0x5ab12c=_0x5dc244,_0x1664f0='';return _0x8529b8&&(_0x5ab12c=_0x8529b8['label'],_0x1664f0=_0x4dbbf9(_0x5ab12c)['toLowerCase']()),{'type':'format','content':o(_0x1ce5db,'*Set\x20font\x20background\x20color:*\x20%0',_0x1664f0)['trim'](),'color':{'value':_0x5dc244,'title':_0x1664f0||_0x5ab12c}};}return{'type':'format','content':o(_0x1ce5db,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x2051ed{['afterInit'](){const {plugins:_0x465da6}=this['editor'];_0x465da6['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x465da6['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x46e890,plugins:_0x4c805c,commands:_0x18d749}=this['editor'],_0x51e134=_0x4c805c['get']('TrackChangesEditing');_0x18d749['get']('footnotesStyle')&&_0x51e134['enableDefaultAttributesIntegration']('footnotesStyle'),_0x18d749['get']('footnotesStart')&&_0x51e134['enableDefaultAttributesIntegration']('footnotesStart'),_0x51e134['registerBlockAttribute']('footnotesListStyle'),_0x51e134['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x46e890,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x51e134['registerBlockAttribute']('footnotesListStart'),_0x51e134['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x46e890,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0xcd1e59=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x3aeb8e,commands:_0x275783}=this['editor'];_0x275783['get']('insertFootnote')&&_0xcd1e59['enableCommand']('insertFootnote'),_0xcd1e59['descriptionFactory']['registerElementLabel']('footnoteRef',_0x237c8c=>o(_0x3aeb8e,'ELEMENT_FOOTNOTE_REF',_0x237c8c)),_0xcd1e59['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x19fdb2=>o(_0x3aeb8e,'ELEMENT_FOOTNOTE_DEFINITION',_0x19fdb2)),_0xcd1e59['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x21dbb=>o(_0x3aeb8e,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x21dbb));}}class nt extends _0x2051ed{['afterInit'](){const _0x1e04b2=this['editor'],_0x59224b=_0x1e04b2['plugins']['get']('TrackChangesEditing'),_0x5e4a97=_0x1e04b2['commands']['get']('copyFormat'),_0x300d34=_0x1e04b2['commands']['get']('pasteFormat');_0x5e4a97&&_0x300d34&&(_0x59224b['enableDefaultAttributesIntegration']('pasteFormat'),_0x59224b['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x5ee409=this['editor'],_0x1689ee=_0x5ee409['locale'];_0x5ee409['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x21c8fb=>{if('formatBlock'!=_0x21c8fb['type']&&'formatInline'!=_0x21c8fb['type'])return;const {data:_0x5ebdf1}=_0x21c8fb;if(_0x5ebdf1&&'pasteFormat'===_0x5ebdf1['commandName']){const _0x47f4ce=[],_0x28a422=_0x5ebdf1['commandParams'][0x0];for(const [_0x95c8d3,_0x59466e]of Object['entries'](_0x28a422))_0x47f4ce['push'](ro(_0x5ee409,_0x95c8d3,_0x59466e));return _0x47f4ce['length']?{'type':'format','content':o(_0x1689ee,'*Set\x20format\x20to:*\x20%0',_0x47f4ce['join'](',\x20'))}:{'type':'format','content':o(_0x1689ee,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x1d156b,_0x64eadb,_0x1cf531){const _0x4b2bd7=_0x1d156b['locale']['t'],_0x23f0d3=_0x64eadb['split'](/(?=[A-Z])/)['join']('\x20'),_0x420b55=_0x4b2bd7(_0x23f0d3['charAt'](0x0)['toUpperCase']()+_0x23f0d3['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x1cf531)return _0x420b55;if('fontColor'===_0x64eadb||'fontBackgroundColor'===_0x64eadb){const _0x3e4f6e=_0x2bff0e(_0x1d156b['config']['get']('fontColor.colors'))['find'](_0x29ae4e=>_0x29ae4e['model']==_0x1cf531);return _0x420b55+'\x20('+(_0x3e4f6e?_0x4b2bd7(_0x3e4f6e['label'])['toLowerCase']():_0x1cf531)+')';}if('fontSize'===_0x64eadb&&isNaN(parseFloat(_0x1cf531))){const _0x41abdc=_0x1d156b['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1d156b['config']['get']('fontSize.options'))['find'](_0x1ebc0c=>_0x1ebc0c['model']==_0x1cf531);return _0x420b55+'\x20('+(_0x41abdc?_0x4b2bd7(_0x41abdc['title'])['toLowerCase']():_0x1cf531)+')';}return _0x420b55+'\x20('+_0x1cf531+')';}class it extends _0x2051ed{['_headingOptions'];['afterInit'](){const _0x30695c=this['editor'];if(!_0x30695c['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x30695c['config']['get']('heading.options');const _0x5f2407=_0x30695c['locale'],_0x58cc85=_0x30695c['plugins']['get']('TrackChangesEditing');_0x58cc85['enableDefaultAttributesIntegration']('heading');for(const _0xc22a23 of this['_headingOptions'])'paragraph'!=_0xc22a23['model']&&_0x58cc85['descriptionFactory']['registerElementLabel'](_0xc22a23['model'],_0x41e476=>{const _0x534ea1=this['_getHeadingLevel'](_0xc22a23['model']);return null!==_0x534ea1?_0x3abc43(_0x41e476,_0x534ea1):_0x12936c(_0x41e476,_0xc22a23['title']);});function _0x3abc43(_0x1354bc,_0x2732e4){return o(_0x5f2407,'ELEMENT_HEADING',[_0x1354bc,_0x2732e4]);}function _0x12936c(_0x6a06a7,_0x27f720){return o(_0x5f2407,'ELEMENT_HEADING_CUSTOM',[_0x6a06a7,_0x27f720]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x44b264=this['editor'],_0x33f02e=_0x44b264['locale'];function _0x4f04a0(_0x11ba57,_0x30e4d2){return o(_0x33f02e,'ELEMENT_HEADING_CUSTOM',[_0x11ba57,_0x30e4d2]);}_0x44b264['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b2efb=>{if('formatBlock'!=_0x3b2efb['type'])return;const {data:_0x43299a}=_0x3b2efb;if(_0x43299a&&'heading'==_0x43299a['commandName']){const _0x1d7e21=_0x43299a['commandParams'][0x0]['value'],_0x6c6250=this['_getHeadingLevel'](_0x1d7e21);if(null!==_0x6c6250)return{'type':'format','content':o(_0x33f02e,'*Change\x20to:*\x20%0',(_0x5d5d20=0x1,_0x300dc3=_0x6c6250,o(_0x33f02e,'ELEMENT_HEADING',[_0x5d5d20,_0x300dc3])))};const _0x571a04=this['_headingOptions']['find'](_0x477bbf=>_0x477bbf['model']===_0x1d7e21)['title'];return{'type':'format','content':o(_0x33f02e,'*Change\x20to:*\x20%0',_0x4f04a0(0x1,_0x571a04))};}var _0x5d5d20,_0x300dc3;});}['_getHeadingLevel'](_0x30bacd){const _0x9f21ea=_0x30bacd['match'](/^heading(\d+)/);if(_0x9f21ea)return _0x9f21ea[0x1];const _0x5eadfb=this['_headingOptions']?.['find'](_0x375af2=>_0x375af2['model']==_0x30bacd);if(_0x5eadfb&&_0x5eadfb['view']){const _0x3f08b1=_0x5eadfb['view'],_0x223de5=(_0x3f08b1['name']??_0x3f08b1)['match'](/^h(\d+)/);if(_0x223de5)return _0x223de5[0x1];}return null;}}class et extends _0x2051ed{['afterInit'](){const _0x2c615c=this['editor'];if(!_0x2c615c['plugins']['has']('HighlightEditing'))return;const _0x2fd8bf=_0x2c615c['plugins']['get']('TrackChangesEditing'),_0x37abc4=_0x2c615c['locale'];_0x2fd8bf['enableDefaultAttributesIntegration']('highlight'),_0x2fd8bf['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x37abc4,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e3f97=this['editor'],_0x157317=_0x5e3f97['locale'];_0x5e3f97['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29c9b0=>{if('formatInline'!=_0x29c9b0['type'])return;const {data:_0x4830c7}=_0x29c9b0;if(_0x4830c7&&'highlight'==_0x4830c7['commandName']){const _0x13b16e=_0x157317['t'],_0x8204e2=_0x4830c7['commandParams'][0x0]['value'];if(_0x8204e2){const _0x461849=_0x5e3f97['config']['get']('highlight.options')['find'](_0x261ca5=>_0x261ca5['model']==_0x8204e2),_0x36b911=_0x13b16e(_0x461849['title'])['toLowerCase']();return{'type':'format','content':o(_0x157317,'*Set\x20highlight:*\x20%0',_0x36b911),'color':{'value':_0x461849['color'],'title':_0x461849['title']}};}return{'type':'format','content':o(_0x157317,'*Remove\x20highlight*',o(_0x157317,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x2051ed{['afterInit'](){const _0x3b5bc9=this['editor'];if(!_0x3b5bc9['plugins']['has']('HorizontalLineEditing'))return;_0x3b5bc9['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x41ba2f=_0x3b5bc9['plugins']['get']('TrackChangesEditing'),_0x33242c=_0x3b5bc9['locale'];_0x41ba2f['descriptionFactory']['registerElementLabel']('horizontalLine',_0x39fa2a=>o(_0x33242c,'ELEMENT_HORIZONTAL_LINE',_0x39fa2a));}}class ot extends _0x2051ed{['afterInit'](){const _0x5dd70d=this['editor'];if(!_0x5dd70d['plugins']['has']('HtmlEmbed'))return;const _0x181ecb=_0x5dd70d['plugins']['get']('TrackChangesEditing'),_0x3394a2=_0x5dd70d['locale'];_0x181ecb['descriptionFactory']['registerElementLabel']('rawHtml',_0x5c202b=>o(_0x3394a2,'ELEMENT_HTML_EMBED',_0x5c202b)),_0x181ecb['enableDefaultAttributesIntegration']('htmlEmbed'),_0x181ecb['descriptionFactory']['registerDescriptionCallback'](_0x3a5d3c=>{if('attribute'!=_0x3a5d3c['type'])return;const {data:_0x2301e0}=_0x3a5d3c;if(_0x2301e0&&'value'==_0x2301e0['key']&&_0x3a5d3c['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x56fc60=o(_0x3394a2,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3394a2,'*Change\x20%0\x20content*',_0x56fc60)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a1a1b=this['editor'],_0x4714b2=_0x3a1a1b['locale'];_0x3a1a1b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x401760=>{if('formatBlock'!=_0x401760['type'])return;const {data:_0x28c78c}=_0x401760;if(_0x28c78c&&'htmlEmbed'==_0x28c78c['commandName']){const _0x278558=o(_0x4714b2,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4714b2,'*Change\x20%0\x20content*',_0x278558)};}});}}class rt extends _0x2051ed{['afterInit'](){const _0x9eb871=this['editor'];if(!_0x9eb871['plugins']['has']('ImageEditing'))return;const _0x2e401c=_0x9eb871['plugins']['get']('TrackChangesEditing'),_0x3dad81=_0x9eb871['plugins']['get']('ImageUtils'),_0x5c6a89=_0x9eb871['locale'];_0x2e401c['enableCommand']('insertImage'),_0x2e401c['descriptionFactory']['registerElementLabel']('imageBlock',_0x4aa8eb=>o(_0x5c6a89,'ELEMENT_IMAGE',_0x4aa8eb)),_0x2e401c['descriptionFactory']['registerElementLabel']('imageInline',_0x160f00=>o(_0x5c6a89,'ELEMENT_INLINE_IMAGE',_0x160f00)),_0x2e401c['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x5c6a89,'ELEMENT_CAPTION')),_0x9eb871['plugins']['has']('ImageUploadEditing')&&_0x2e401c['enableCommand']('uploadImage'),_0x9eb871['plugins']['has']('ImageBlockEditing')&&_0x9eb871['plugins']['has']('ImageInlineEditing')&&(_0x2e401c['enableCommand']('imageTypeInline',(_0x416b0b,_0x42f268)=>{const _0x3d5926=_0x3dad81['getClosestSelectedImageElement'](_0x9eb871['model']['document']['selection']);_0x9eb871['model']['change'](()=>{_0x2e401c['markBlockFormat'](_0x3d5926,{'commandName':'imageTypeInline','commandParams':[_0x42f268]},[],'convertBlockImageToInline');});}),_0x2e401c['enableCommand']('imageTypeBlock',(_0x222a39,_0x336127)=>{_0x9eb871['model']['change'](_0x69239f=>{let _0x46c068=_0x3dad81['getClosestSelectedImageElement'](_0x9eb871['model']['document']['selection']),_0x1b7ff2=_0x69239f['createRangeOn'](_0x46c068);const _0x2f4ed7=_0x27be50['fromPosition'](_0x1b7ff2['start'],'toPrevious'),_0x2f6582=_0x27be50['fromPosition'](_0x1b7ff2['end'],'toNext');_0x2e401c['forceDefaultExecution'](()=>_0x222a39(_0x336127)),_0x46c068=_0x3dad81['getClosestSelectedImageElement'](_0x9eb871['model']['document']['selection']),_0x1b7ff2=_0x69239f['createRangeOn'](_0x46c068);const _0x339abc=_0x69239f['createRange'](_0x2f4ed7,_0x2f6582);_0x2f4ed7['detach'](),_0x2f6582['detach'](),_0x2e401c['markBlockFormat'](_0x46c068,{'commandName':'imageTypeInline','commandParams':[_0x336127]},[],'convertInlineImageToBlock'),_0x339abc['start']['isBefore'](_0x1b7ff2['start'])&&_0x2e401c['markInsertion'](_0x69239f['createRange'](_0x339abc['start'],_0x1b7ff2['start']),'convertInlineImageToBlock'),_0x1b7ff2['end']['isBefore'](_0x339abc['end'])&&_0x2e401c['markInsertion'](_0x69239f['createRange'](_0x1b7ff2['end'],_0x339abc['end']),'convertInlineImageToBlock');});}),_0x2e401c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x2e401c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x2e401c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x2e401c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x2e401c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x2e401c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x5d5978])=>{const _0x17c6a5=_0x2e401c['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2f555b=_0x5d5978['start'],_0x1c7518=_0x5d5978['end'];const _0x4e1446=_0x9eb871['model']['schema']['getNearestSelectionRange'](_0x2f555b,'backward'),_0x2d4ebd=_0x9eb871['model']['schema']['getNearestSelectionRange'](_0x1c7518,'forward');_0x4e1446['isCollapsed']&&(_0x2f555b=_0x4e1446['start']),_0x2d4ebd['isCollapsed']&&(_0x1c7518=_0x2d4ebd['end']),_0x17c6a5([_0x9eb871['model']['createRange'](_0x2f555b,_0x1c7518)]);}),_0x2e401c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2731ce),_0x2e401c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2731ce)),_0x9eb871['plugins']['has']('ImageCaptionEditing')&&(_0x2e401c['enableCommand']('toggleImageCaption',(_0xce9b0a,_0xe84b18)=>{const _0x5cd979=_0x9eb871['plugins']['get']('ImageCaptionUtils');let _0x2ac01c=_0x3dad81['getClosestSelectedImageElement'](_0x9eb871['model']['document']['selection']),_0x4ab6bb=_0x5cd979['getCaptionFromImageModelElement'](_0x2ac01c);_0x9eb871['model']['change'](()=>{if(_0x4ab6bb)return void _0x2e401c['markDeletion'](_0x9eb871['model']['createRangeOn'](_0x4ab6bb));const _0x5aa8b3=_0x3dad81['isBlockImage'](_0x2ac01c);_0xce9b0a(_0xe84b18),_0x2ac01c=_0x3dad81['getClosestSelectedImageElement'](_0x9eb871['model']['document']['selection']),_0x4ab6bb=_0x5cd979['getCaptionFromImageModelElement'](_0x2ac01c),_0x2e401c['markInsertion'](_0x9eb871['model']['createRangeOn'](_0x4ab6bb),_0x5aa8b3?null:'imageCaption');});}),_0x2e401c['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2731ce));const _0x3d105e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1fe5db(_0x3b8d48,_0x273629){const _0x5250f3=_0x3d105e['findIndex'](({type:_0x392c71,subType:_0xe21f76})=>_0x3b8d48['type']==_0x392c71&&_0x3b8d48['subType']==_0xe21f76),_0x2694d4=_0x3d105e['findIndex'](({type:_0x58f300,subType:_0x395881})=>_0x273629['type']==_0x58f300&&_0x273629['subType']==_0x395881);if(_0x5250f3<0x0||_0x2694d4<0x0)return!0x1;const _0x129075=_0x3b8d48['getFirstRange'](),_0x52a85a=_0x273629['getFirstRange']();if((0x0==_0x5250f3||0x1==_0x5250f3)&&0x2==_0x2694d4&&_0x129075['isIntersecting'](_0x52a85a))return!0x0;if(0x2==_0x5250f3&&0x3==_0x2694d4){const _0x19bdf7=_0x2e401c['_findSuggestions'](_0x129075,'insertion')['filter'](({suggestion:_0x5a67e3,meta:_0x24eb18})=>_0x24eb18['isOwn']&&'convertInlineImageToBlock'==_0x5a67e3['subType']);if(_0x19bdf7['length']>0x1&&_0x52a85a['end']['isEqual'](_0x129075['start']))return!0x0;if(0x1==_0x19bdf7['length']&&(_0x129075['start']['isEqual'](_0x52a85a['end'])||_0x129075['end']['isEqual'](_0x52a85a['start'])))return!0x0;}if(0x3==_0x5250f3&&0x3==_0x2694d4&&_0x129075['start']['isBefore'](_0x52a85a['start'])){const _0x1d3c5b=_0x129075['end']['nodeAfter'],_0x75ceaf=_0x52a85a['start']['nodeBefore'];return _0x3dad81['isBlockImage'](_0x1d3c5b)&&_0x1d3c5b===_0x75ceaf;}return!0x1;}function _0x2731ce(_0x46517d,_0x57b6f2){return _0x1fe5db(_0x46517d,_0x57b6f2)?[_0x46517d,_0x57b6f2]:_0x1fe5db(_0x57b6f2,_0x46517d)?[_0x57b6f2,_0x46517d]:null;}_0x9eb871['plugins']['has']('ImageResize')&&(_0x2e401c['enableDefaultAttributesIntegration']('resizeImage'),_0x2e401c['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x5c6a89,'FORMAT_IMAGE_SIZE'))),_0x9eb871['plugins']['has']('ImageTextAlternativeEditing')&&_0x2e401c['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x9eb871['plugins']['has']('PictureEditing')&&_0x2e401c['descriptionFactory']['registerDescriptionCallback'](_0x17addf=>{if('attribute'!=_0x17addf['type'])return;const {data:_0x5bb610}=_0x17addf;return _0x5bb610&&'sources'==_0x5bb610['key']?{'type':'format','content':''}:void 0x0;}),_0x9eb871['plugins']['has']('ImageSizeAttributes')&&_0x2e401c['descriptionFactory']['registerDescriptionCallback'](_0x445b4b=>{if('attribute'!=_0x445b4b['type'])return;const {data:_0x1b35e1}=_0x445b4b;return!_0x1b35e1||'width'!=_0x1b35e1['key']&&'height'!=_0x1b35e1['key']?void 0x0:{'type':'format','content':''};}),_0x2e401c['descriptionFactory']['registerDescriptionCallback'](_0x14ed66=>{if(!!_0x3d105e['find'](({type:_0x36e05e,subType:_0x5b9c7a})=>_0x14ed66['type']==_0x36e05e&&_0x14ed66['subType']==_0x5b9c7a))return _0x14ed66['previous']?{}:void 0x0;}),_0x2e401c['descriptionFactory']['registerDescriptionCallback'](_0x2437bd=>{if('insertion'==_0x2437bd['type']||'deletion'==_0x2437bd['type']){const _0x428e47=_0x2437bd['getContainedElement']();if(_0x428e47&&_0x428e47['is']('element','caption'))return{'type':'insertion'==_0x2437bd['type']?'addObject':'removeObject','element':_0x428e47,'quantity':0x1};}}),_0x2e401c['descriptionFactory']['registerDescriptionCallback'](_0x40e499=>'formatBlock'==_0x40e499['type']&&'convertInlineImageToBlock'==_0x40e499['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x40e499['type']&&'convertBlockImageToInline'==_0x40e499['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x2e401c['descriptionFactory']['registerDescriptionCallback'](_0x2bee48=>{if('attribute'!=_0x2bee48['type'])return;const {data:_0x59d115}=_0x2bee48;if(!_0x59d115||'alt'!=_0x59d115['key'])return;const _0x1acaf7=_0x59d115['newValue'];return _0x1acaf7?{'type':'format','content':o(_0x5c6a89,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1acaf7+'\x22')}:{'type':'format','content':o(_0x5c6a89,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x11befc=this['editor'],_0x549fe9=_0x11befc['locale'];_0x11befc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x256e15=>{if('formatBlock'!=_0x256e15['type']&&'formatInline'!=_0x256e15['type'])return;const {data:_0x2ac72e}=_0x256e15;if(_0x2ac72e){if('imageTextAlternative'==_0x2ac72e['commandName']){const _0x3ce5f5=_0x2ac72e['commandParams'][0x0]['newValue'];return _0x3ce5f5?{'type':'format','content':o(_0x549fe9,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3ce5f5+'\x22')}:{'type':'format','content':o(_0x549fe9,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2ac72e['commandName']){const _0x4a65ac=_0x2ac72e['commandParams'][0x0]['width'];return _0x4a65ac?{'type':'format','content':o(_0x549fe9,'*Set\x20image\x20width:*\x20%0',_0x4a65ac)}:{'type':'format','content':o(_0x549fe9,'*Reset\x20image\x20width*')};}}});}}class at extends _0x2051ed{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x3ddb9c=this['editor']['locale'],_0x22a3ad=this['editor']['plugins']['get']('TrackChangesEditing');_0x22a3ad['enableDefaultAttributesIntegration']('replaceImageSource'),_0x22a3ad['descriptionFactory']['registerDescriptionCallback'](_0x4ff895=>{if('attribute'!=_0x4ff895['type'])return;const {data:_0x28d5db}=_0x4ff895;return _0x28d5db&&'src'==_0x28d5db['key']?_0x28d5db['newValue']&&_0x28d5db['oldValue']?{'type':'format','content':o(_0x3ddb9c,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3c06ec=this['editor']['plugins']['get']('TrackChangesEditing');_0x3c06ec['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3c06ec['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3c06ec['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3c06ec['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x597e62=this['editor'],_0x1e6648=_0x597e62['locale'];_0x597e62['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2af49b=>{if('formatBlock'!=_0x2af49b['type']&&'formatInline'!=_0x2af49b['type'])return;const {data:_0x509170}=_0x2af49b;if(!_0x509170||'replaceImageSource'!=_0x509170['commandName'])return;return{'type':'format','content':o(_0x1e6648,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x2051ed{['afterInit'](){const _0x379d5f=this['editor'];if(!_0x379d5f['plugins']['has']('ImageStyleEditing'))return;const _0x56a97d=_0x379d5f['plugins']['get']('TrackChangesEditing'),_0x1ca2a3=_0x379d5f['plugins']['get']('ImageUtils'),_0x58e888={};_0x56a97d['enableCommand']('imageStyle',(_0x157c55,_0x1704a7)=>{const _0x4ba9fb=_0x379d5f['plugins']['get']('Users')['me'],_0x4fb626=_0x379d5f['commands']['get']('imageStyle');let _0x3ec14d=_0x1ca2a3['getClosestSelectedImageElement'](_0x379d5f['model']['document']['selection']),_0x5579a9=_0x379d5f['model']['createRangeOn'](_0x3ec14d),_0x2f8fcc=_0x4fb626['value'];if(_0x2f8fcc==_0x1704a7['value'])return;const _0x2c6139={'commandName':'imageStyle','commandParams':[_0x1704a7],'formatGroupId':_0x2280a6()};_0x379d5f['model']['change'](()=>{if(_0x56a97d['getSuggestions']()['filter'](_0x467037=>_0x467037['isInContent']&&_0x4ba9fb==_0x467037['author']&&('formatBlock'==_0x467037['type']||'formatInline'==_0x467037['type'])&&('imageStylePreApply'==_0x467037['subType']||'imageStylePostApply'==_0x467037['subType'])&&_0x467037['getFirstRange']()['isEqual'](_0x5579a9))['forEach'](_0x2f81a7=>_0x56a97d['discardSuggestion'](_0x2f81a7['head'])),_0x3ec14d=_0x1ca2a3['getClosestSelectedImageElement'](_0x379d5f['model']['document']['selection']),_0x5579a9=_0x379d5f['model']['createRangeOn'](_0x3ec14d),_0x4fb626['refresh'](),_0x379d5f['commands']['get']('imageTypeInline')['refresh'](),_0x379d5f['commands']['get']('imageTypeBlock')['refresh'](),_0x2f8fcc=_0x4fb626['value'],_0x2f8fcc!=_0x1704a7['value'])return _0x1ca2a3['isInlineImage'](_0x3ec14d)&&_0x4fb626['shouldConvertImageType'](_0x1704a7['value'],_0x3ec14d)?(_0x157c55({..._0x1704a7,'setImageSizes':!0x1}),_0x3ec14d=_0x1ca2a3['getClosestSelectedImageElement'](_0x379d5f['model']['document']['selection']),void _0x56a97d['markBlockFormat'](_0x3ec14d,{..._0x2c6139,'commandReversedParams':[{'value':_0x2f8fcc||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1ca2a3['isBlockImage'](_0x3ec14d)?_0x56a97d['markBlockFormat'](_0x3ec14d,_0x2c6139,[],'imageStylePostApply'):_0x56a97d['markInlineFormat'](_0x5579a9,_0x2c6139,'imageStylePostApply'));});});for(const _0x571e58 of _0x379d5f['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x58e888[_0x571e58['name']]=_0x571e58['title']['toLowerCase']();_0x56a97d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x56a97d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x56a97d['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x56a97d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x1761b1])=>{_0x1ca2a3['setImageNaturalSizeAttributes'](_0x1761b1['getContainedElement']());}),_0x56a97d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x3ccfc0,_0x2f05e5)=>{_0x56a97d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3ccfc0,{'commandName':_0x2f05e5['commandName'],'commandParams':_0x2f05e5['commandReversedParams']});}),_0x56a97d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x250666,_0x16a65f){if(_0x245aec(_0x250666,_0x16a65f))return[_0x250666,_0x16a65f];if(_0x245aec(_0x16a65f,_0x250666))return[_0x16a65f,_0x250666];return null;});const _0x48a3d9=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x245aec(_0x2d0930,_0x2e31da){const _0x1c8b81=_0x48a3d9['findIndex'](({type:_0xe2e4cb,subType:_0x34a395})=>_0x2d0930['type']==_0xe2e4cb&&_0x2d0930['subType']==_0x34a395),_0x24c660=_0x48a3d9['findIndex'](({type:_0x5f066e,subType:_0x4ba5f6})=>_0x2e31da['type']==_0x5f066e&&_0x2e31da['subType']==_0x4ba5f6);if(_0x1c8b81<0x0||_0x24c660<0x0)return!0x1;const _0x46a1a1=_0x2d0930['getFirstRange'](),_0x1b25c2=_0x2e31da['getFirstRange']();if((0x0==_0x1c8b81||0x1==_0x1c8b81)&&0x2==_0x24c660&&_0x46a1a1['isIntersecting'](_0x1b25c2))return!0x0;if(0x2==_0x1c8b81&&0x3==_0x24c660){const _0x3cc79e=_0x56a97d['_findSuggestions'](_0x46a1a1,'insertion')['filter'](({suggestion:_0x1c7048,meta:_0x1edc8e})=>_0x1edc8e['isOwn']&&'convertInlineImageToBlock'==_0x1c7048['subType']);if(_0x3cc79e['length']>0x1&&_0x1b25c2['end']['isEqual'](_0x46a1a1['start']))return!0x0;if(0x1==_0x3cc79e['length']&&(_0x46a1a1['start']['isEqual'](_0x1b25c2['end'])||_0x46a1a1['end']['isEqual'](_0x1b25c2['start'])))return!0x0;}if(0x3==_0x1c8b81&&0x3==_0x24c660&&_0x46a1a1['start']['isBefore'](_0x1b25c2['start'])){const _0x5036ec=_0x46a1a1['end']['nodeAfter'],_0x314f54=_0x1b25c2['start']['nodeBefore'];return _0x1ca2a3['isBlockImage'](_0x5036ec)&&_0x5036ec===_0x314f54;}return!0x1;}_0x379d5f['model']['document']['registerPostFixer'](()=>{let _0x4a1031=!0x1;const _0x398e8f=Array['from'](_0x379d5f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x589ca4,data:_0x1c6f21}of _0x398e8f){const {group:_0x3334e2,type:_0x3854fb,subType:_0x132cbf,id:_0xcb18e6}=_0x56a97d['_splitMarkerName'](_0x589ca4);if('suggestion'==_0x3334e2&&_0x56a97d['hasSuggestion'](_0xcb18e6)){if('formatBlock'==_0x3854fb&&('imageStylePreApply'==_0x132cbf||'imageStylePostApply'==_0x132cbf)){const _0xc03fd8=_0x56a97d['getSuggestion'](_0xcb18e6);if(_0x1c6f21['newRange']){const _0x152e44=_0xc03fd8['getFirstRange']()['getContainedElement']();if(_0x1ca2a3['isBlockImage'](_0x152e44))continue;_0x56a97d['discardSuggestion'](_0xc03fd8),_0x4a1031=!0x0;}}if('insertion'==_0x3854fb&&'imageCaption'==_0x132cbf&&!_0x1c6f21['newRange']){const _0x10c115=_0x56a97d['getSuggestion'](_0xcb18e6);_0x10c115['next']&&_0x10c115['next']['isInContent']&&(_0x56a97d['discardSuggestion'](_0x10c115['next']),_0x4a1031=!0x0);}}}return _0x4a1031;}),this['_registerLegacyDescription'](_0x58e888);}['_registerLegacyDescription'](_0x336680){const _0x4af03b=this['editor'],_0x5c157d=_0x4af03b['locale'];_0x4af03b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e2c50=>{if('formatBlock'!=_0x2e2c50['type']&&'formatInline'!=_0x2e2c50['type'])return;const {data:_0xc400f2}=_0x2e2c50;if(!_0xc400f2||'imageStyle'!=_0xc400f2['commandName'])return;const _0xf53ed5=_0xc400f2['commandParams'][0x0]['value'];return _0x283153('side'===_0xf53ed5?o(_0x5c157d,'FORMAT_SIDE_IMAGE'):_0x336680[_0xf53ed5]||_0xf53ed5);function _0x283153(_0x24b666){return{'type':'format','content':o(_0x5c157d,'*Format:*\x20%0',_0x24b666)};}});}}class ut extends _0x2051ed{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0xcfd499){super(_0xcfd499),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x547666=this['editor'],_0xf10336=_0x547666['commands']['get']('importWord'),_0x37067c=_0x547666['commands']['get']('trackChanges');_0xf10336&&(_0xf10336['on']('execute',(_0x3e8226,[,_0x1a2b67])=>{this['_trackChangesValueDuringImport']=_0x37067c['value'],_0x1a2b67['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0xf10336,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0xf10336,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x37067c['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x547666['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x20ae70,_0x572efd){const {suggestions:_0x1610a1}=_0x572efd,_0x7b1aee=this['editor']['commands']['get']('trackChanges'),_0x17fb81=_0x7b1aee['value'];this['_trackChangesValueDuringImport']!==_0x17fb81&&(_0x7b1aee['execute'](),this['_trackChangesExecuted']=!0x0),_0x1610a1&&_0x1610a1['forEach'](({id:_0x5e380f,type:_0x2e0352,author:_0x26cd7d,created_at:_0x24d346})=>{const _0x3f29fa={'id':_0x5e380f,'type':_0x2e0352,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x26cd7d,'createdAt':_0x24d346?new Date(_0x24d346):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x3f29fa);});}}class ft extends _0x2051ed{['afterInit'](){const _0x227ecc=this['editor'],_0x212457=_0x227ecc['plugins']['get']('TrackChangesEditing');if(_0x227ecc['plugins']['has']('IndentEditing')&&(_0x212457['enableCommand']('indent'),_0x212457['enableCommand']('outdent')),_0x227ecc['plugins']['has']('IndentBlock')){for(const _0x160bb9 of['indentBlock','outdentBlock'])_0x212457['enableDefaultAttributesIntegration'](_0x160bb9);}const _0x505f4c=_0x227ecc['locale'];_0x212457['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x505f4c,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c4b3b=this['editor'],_0x1972c2=_0x2c4b3b['locale'],_0x84a347=_0x2c4b3b['plugins']['get']('TrackChangesEditing');_0x84a347['descriptionFactory']['registerDescriptionCallback'](_0x4e1306=>{if('formatBlock'!=_0x4e1306['type'])return;const {data:_0x229b69}=_0x4e1306;if(!_0x229b69)return;if('indentBlock'!=_0x229b69['commandName']&&'outdentBlock'!=_0x229b69['commandName'])return;const _0x1f1ee6=_0x4e1306['getItems']()[0x0],_0x26cc2e=_0x84a347['descriptionFactory']['getItemLabel'](_0x1f1ee6);return'indentBlock'==_0x229b69['commandName']?{'type':'format','content':o(_0x1972c2,'*Indent:*\x20%0',_0x26cc2e)}:'outdentBlock'==_0x229b69['commandName']?{'type':'format','content':o(_0x1972c2,'*Outdent:*\x20%0',_0x26cc2e)}:void 0x0;});}}class ht extends _0x2051ed{static get['requires'](){return[_0x30fdb1];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x2051ed{['afterInit'](){const _0x3ba8f4=this['editor'];if(!_0x3ba8f4['plugins']['has']('LinkEditing'))return;const _0x356fda=_0x3ba8f4['plugins']['get']('TrackChangesEditing'),_0x512c4b=_0x3ba8f4['commands']['get']('link');_0x356fda['enableDefaultAttributesIntegration']('link'),_0x356fda['enableDefaultAttributesIntegration']('unlink');for(const _0x12cef0 of _0x512c4b['manualDecorators'])_0x356fda['descriptionFactory']['registerAttributeLabel'](_0x12cef0['id'],'link\x20('+_0x12cef0['label']['toLowerCase']()+')');_0x356fda['descriptionFactory']['registerDescriptionCallback'](_0x4f92eb=>{if('attribute'!=_0x4f92eb['type'])return;const {data:_0x882694}=_0x4f92eb;if(!_0x882694||'linkHref'!=_0x882694['key'])return;const _0x2a0147=_0x882694['newValue'],_0x30bb64=_0x3ba8f4['locale'];return{'type':'format','content':null==_0x2a0147?o(_0x30bb64,'*Remove\x20link*'):o(_0x30bb64,'*Set\x20link:*\x20%0','\x22'+_0x2a0147+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x54312b=this['editor'],_0x485b33=_0x54312b['locale'];_0x54312b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c87fa=>{if('formatInline'!=_0x2c87fa['type'])return;const {data:_0x1631f0}=_0x2c87fa;if(_0x1631f0){if('link'==_0x1631f0['commandName']){const _0x4f5ed4=_0x1631f0['commandParams'][0x0];return{'type':'format','content':o(_0x485b33,'*Set\x20link:*\x20%0','\x22'+_0x4f5ed4+'\x22')};}return'unlink'==_0x1631f0['commandName']?{'type':'format','content':o(_0x485b33,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x2051ed{['afterInit'](){const _0x3f7272=this['editor'],_0x4dc3a0=_0x3f7272['locale'];if(!_0x3f7272['plugins']['has']('LegacyListEditing'))return;const _0x3ba96d=_0x3f7272['plugins']['get']('TrackChangesEditing'),_0x3757c2=_0x3f7272['plugins']['has']('LegacyTodoListEditing');function _0x351053(_0x1a2c26){return()=>{const _0x43d1c1=_0x3f7272['model']['document']['selection'],_0x174d39=_0x3f7272['commands']['get'](_0x1a2c26);if(_0x174d39['value'])return void _0x3f7272['execute']('paragraph',{});const _0x57f892=_0x1a2c26['slice'](0x0,-0x4),_0x1ab66b=function(_0x5f00cd,_0x258d9e,_0x578427){let _0x3ccea2=Array['from'](_0x5f00cd)['filter'](_0x432688=>function(_0x518685,_0x292013){return _0x292013['checkChild'](_0x518685['parent'],'listItem')&&!_0x292013['isObject'](_0x518685);}(_0x432688,_0x578427));_0x3ccea2=_0x3ccea2['filter'](_0x4193ac=>!_0x4193ac['is']('element','listItem')||_0x4193ac['getAttribute']('listType')!=_0x258d9e);const _0x53b697=new Set();for(const _0x21d698 of _0x3ccea2)_0x21d698['is']('element','listItem')?_0x53b697['add'](Le(_0x21d698)):_0x53b697['add'](_0x21d698);return Array['from'](_0x53b697);}(_0x43d1c1['getSelectedBlocks'](),_0x57f892,_0x3f7272['model']['schema']);_0x3f7272['model']['change'](()=>{for(const _0x33ad34 of _0x1ab66b)_0x3ba96d['markBlockFormat'](_0x33ad34,{'commandName':_0x1a2c26,'commandParams':[{'forceValue':!_0x174d39['value']}],'formatGroupId':'blockName'},Ee(_0x33ad34));});};}function _0x127756(_0x22398a){return()=>{const _0x3ab961=function(_0xfa894e){let _0x3c8774=Array['from'](_0xfa894e);const _0x40a275=_0x3c8774['findIndex'](_0x3c9ad4=>'listItem'!=_0x3c9ad4['name']);return _0x40a275>-0x1&&(_0x3c8774=_0x3c8774['slice'](0x0,_0x40a275)),_0x3c8774;}(_0x3f7272['model']['document']['selection']['getSelectedBlocks']()),_0x4c9c44=_0x3f7272['model']['createRange'](_0x3f7272['model']['createPositionAt'](_0x3ab961[0x0],'before'),_0x3f7272['model']['createPositionAt'](_0x3ab961[_0x3ab961['length']-0x1],'end'));_0x3f7272['model']['change'](()=>{_0x3ba96d['markBlockFormat'](_0x4c9c44,{'commandName':_0x22398a,'commandParams':[],'formatGroupId':'listIndent'},function(_0x596dfe){const _0x107a43=new Set();for(const _0x435001 of _0x596dfe){let _0x149901=_0x435001['nextSibling'];for(;_0x149901&&_0x149901['getAttribute']('listIndent')>_0x435001['getAttribute']('listIndent');)_0x107a43['add'](_0x149901),_0x149901=_0x149901['nextSibling'];}return Array['from'](_0x107a43);}(_0x3ab961));});};}_0x3ba96d['enableCommand']('numberedList',_0x351053('numberedList')),_0x3ba96d['enableCommand']('bulletedList',_0x351053('bulletedList')),_0x3757c2&&_0x3ba96d['enableCommand']('todoList',_0x351053('todoList')),_0x3ba96d['enableCommand']('indentList',_0x127756('indentList')),_0x3ba96d['enableCommand']('outdentList',_0x127756('outdentList')),_0x3757c2&&_0x3ba96d['enableCommand']('checkTodoList',()=>{const _0x16b88a=_0x3f7272['commands']['get']('checkTodoList'),_0x589821=Array['from'](_0x16b88a['_selectedElements']);_0x589821['filter'](_0x12d6a7=>_0x12d6a7['getAttribute']('todoListChecked')!=_0x16b88a['value']),_0x3f7272['model']['change'](()=>{for(const _0x47d05f of _0x589821)_0x3ba96d['markBlockFormat'](_0x47d05f,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x16b88a['value']}]});});}),_0x3ba96d['descriptionFactory']['registerElementLabel']('listItem',_0x1f12f8=>o(_0x4dc3a0,'ELEMENT_LIST_ITEM',_0x1f12f8)),_0x3ba96d['descriptionFactory']['registerDescriptionCallback'](_0x209b96=>{if('formatBlock'!=_0x209b96['type']&&'formatInline'!=_0x209b96['type'])return;const {data:_0x28b020}=_0x209b96;if(_0x28b020){if('numberedList'==_0x28b020['commandName']||'bulletedList'==_0x28b020['commandName']||'todoList'==_0x28b020['commandName'])switch(_0x28b020['commandName']['replace']('List','')){case'bulleted':return _0x33499f(o(_0x4dc3a0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x33499f(o(_0x4dc3a0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x33499f(o(_0x4dc3a0,'ELEMENT_TODO_LIST'));}if('indentList'==_0x28b020['commandName'])return{'type':'format','content':o(_0x4dc3a0,'*Indent:*\x20%0',o(_0x4dc3a0,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x28b020['commandName'])return{'type':'format','content':o(_0x4dc3a0,'*Outdent:*\x20%0',o(_0x4dc3a0,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x28b020['commandName'])return _0x28b020['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4dc3a0,'*Check\x20item*')}:{'type':'format','content':o(_0x4dc3a0,'*Uncheck\x20item*')};}function _0x33499f(_0x39f222){return{'type':'format','content':o(_0x4dc3a0,'*Change\x20to:*\x20%0',_0x39f222)};}});}}function Le(_0x45af4c){const _0x14e1e3=_0x45af4c['getAttribute']('listIndent');if(0x0==_0x14e1e3)return _0x45af4c;let _0x1c03c7=_0x45af4c;for(;_0x45af4c['previousSibling']&&_0x45af4c['previousSibling']['is']('element','listItem');){const _0x19ee09=_0x45af4c['previousSibling']['getAttribute']('listIndent');if(_0x19ee09==_0x14e1e3)_0x1c03c7=_0x45af4c['previousSibling'];else{if(_0x19ee09<_0x14e1e3)break;}_0x45af4c=_0x45af4c['previousSibling'];}return _0x1c03c7;}function Ee(_0x39de71){const _0x2437e2=[];if(_0x39de71['is']('element','listItem')&&_0x39de71['getAttribute']('listIndent')>0x0){let _0x20d025=_0x39de71['nextSibling'];for(;_0x20d025&&'listItem'==_0x20d025['name']&&_0x20d025['getAttribute']('listIndent')==_0x39de71['getAttribute']('listIndent');)_0x2437e2['push'](_0x20d025),_0x20d025=_0x20d025['nextSibling'];}return _0x2437e2;}class mt extends _0x2051ed{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x8c1479=this['editor']['config']['get']('list.properties'),_0x452014=this['editor']['plugins']['get']('TrackChangesEditing');_0x8c1479['styles']&&_0x452014['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x8c1479['reversed']&&_0x452014['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x8c1479['startIndex']&&_0x452014['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x452014['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x59581d,_0xf15901={}){const _0x414cb1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1c0f2=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x414cb1['markMultiRangeBlockFormat'](_0x1c0f2,{'commandName':'listStyle','commandParams':[{'type':_0xf15901['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x3e3e20,_0xf20d27={}){const _0x445941=this['editor']['plugins']['get']('TrackChangesEditing'),_0x19cf6e=this['_getSuggestionBlocks'](_0x3d6430=>_0x3d6430['is']('element','listItem')&&'numbered'===_0x3d6430['getAttribute']('listType'));if(_0x19cf6e['length']<0x1)return;const _0x425952=_0x19cf6e['map'](_0x3bfafa=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3bfafa,'before'),this['editor']['model']['createPositionAt'](_0x3bfafa,0x0)));this['editor']['model']['change'](()=>{_0x445941['markMultiRangeBlockFormat'](_0x425952,{'commandName':'listReversed','commandParams':[{'reversed':_0xf20d27['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x25d193,_0x1b899d={}){const _0x28138f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x326cfd=this['_getSuggestionBlocks'](_0x590b97=>_0x590b97['is']('element','listItem')&&'numbered'===_0x590b97['getAttribute']('listType'));if(_0x326cfd['length']<0x1)return;const _0x5a923d=_0x326cfd['map'](_0x383c87=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x383c87,'before'),this['editor']['model']['createPositionAt'](_0x383c87,0x0)));this['editor']['model']['change'](()=>{_0x28138f['markMultiRangeBlockFormat'](_0x5a923d,{'commandName':'listStart','commandParams':[{'startIndex':_0x1b899d['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x53007e){if('formatBlock'!=_0x53007e['type']&&'formatInline'!=_0x53007e['type'])return;const _0x3f08d0=this['editor']['locale'],{data:_0x452f3d}=_0x53007e;if(!_0x452f3d)return;let _0xdf35d9,_0xf0707b;switch(_0x452f3d['commandName']){case'listStyle':_0xdf35d9='*Change\x20to:*\x20%0',_0xf0707b={'type':'format','content':o(_0x3f08d0,_0xdf35d9,o(_0x3f08d0,this['_getTranslationKeyForListStyle'](_0x452f3d['commandParams'][0x0]['type'])))};break;case'listReversed':_0xdf35d9=_0x452f3d['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xf0707b={'type':'format','content':o(_0x3f08d0,_0xdf35d9)};break;case'listStart':_0xdf35d9='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xf0707b={'type':'format','content':o(_0x3f08d0,_0xdf35d9,_0x452f3d['commandParams'][0x0]['startIndex'])};}return _0xf0707b;}['_getSuggestionBlocksForListStyle'](){const _0x4c88ae=this['editor']['plugins']['get']('LegacyListUtils');let _0x1b8fcc=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1b8fcc[0x0]?.['is']('element','listItem')&&_0x1b8fcc['unshift'](..._0x4c88ae['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1b8fcc[_0x1b8fcc['length']-0x1]?.['is']('element','listItem')&&_0x1b8fcc['push'](..._0x4c88ae['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1b8fcc=[...new Set(_0x1b8fcc)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1b8fcc=_0x1b8fcc['filter'](_0x32b010=>_0x32b010['is']('element','listItem'))),_0x1b8fcc;}['_getSuggestionBlocks'](_0x4cc2ad){const _0x5cda1c=this['editor']['plugins']['get']('LegacyListUtils');let _0x27dd40=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4cc2ad)['map'](_0x1daca3=>{const _0x20f26e=this['editor']['model']['createPositionAt'](_0x1daca3,0x0);return[..._0x5cda1c['getSiblingNodes'](_0x20f26e,'backward'),..._0x5cda1c['getSiblingNodes'](_0x20f26e,'forward')];})['flat']();return _0x27dd40=[...new Set(_0x27dd40)],_0x27dd40;}['_getTranslationKeyForListStyle'](_0x52295b){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x52295b)||'default')['toUpperCase']()+'_LIST_'+_0x52295b['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x2051ed{['afterInit'](){const _0x13a75c=this['editor'];if(!_0x13a75c['plugins']['has']('MediaEmbedEditing'))return;const _0x5bec5b=_0x13a75c['plugins']['get']('TrackChangesEditing'),_0x4d248c=_0x13a75c['locale'];_0x5bec5b['enableCommand']('mediaEmbed'),_0x5bec5b['descriptionFactory']['registerElementLabel']('media',_0x2b4cc3=>o(_0x4d248c,'ELEMENT_MEDIA',_0x2b4cc3));}}class pt extends _0x2051ed{['afterInit'](){const _0xc1e492=this['editor'];_0xc1e492['plugins']['has']('MentionEditing')&&_0xc1e492['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x2051ed{['afterInit'](){const _0x527025=this['editor'];if(!_0x527025['plugins']['has']('MergeFieldsEditing'))return;const _0x2f2bb3=_0x527025['plugins']['get']('TrackChangesEditing'),_0x280541=_0x527025['locale'];_0x2f2bb3['enableCommand']('insertMergeField'),_0x2f2bb3['enableCommand']('insertMergeFieldBlock'),_0x2f2bb3['enableCommand']('insertMergeFieldImage'),_0x2f2bb3['descriptionFactory']['registerElementLabel']('mergeField',_0x50c1ab=>o(_0x280541,'ELEMENT_MERGE_FIELD',_0x50c1ab)),_0x2f2bb3['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x2bc962=>o(_0x280541,'ELEMENT_MERGE_FIELD',_0x2bc962)),_0x2f2bb3['descriptionFactory']['registerDescriptionCallback'](_0x30bc89=>{if('insertion'!=_0x30bc89['type']&&'deletion'!=_0x30bc89['type'])return;const _0x15216c=_0x30bc89['getContainedElement']();if(null==_0x15216c)return;const _0x2d7ae2=_0x527025['plugins']['get']('MergeFieldsEditing');let _0x57a7e4;switch(_0x2d7ae2['getMergeFieldType'](_0x15216c)){case null:return;case'image':{const _0x34a6c1=_0x2d7ae2['unwrapAffixes'](_0x15216c['getAttribute']('src'));_0x57a7e4=_0x2d7ae2['getLabel'](_0x34a6c1)||_0x34a6c1;break;}default:{const _0x5ba9b5=_0x15216c['getAttribute']('id');_0x57a7e4=_0x2d7ae2['getLabel'](_0x5ba9b5)||_0x5ba9b5;break;}}return'insertion'==_0x30bc89['type']?{'type':'insertion','content':o(_0x280541,'*Insert:*\x20%0','\x22'+_0x57a7e4+'\x22\x20'+o(_0x280541,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x280541,'*Remove:*\x20%0','\x22'+_0x57a7e4+'\x22\x20'+o(_0x280541,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x2051ed{['afterInit'](){const _0x2d7a32=this['editor'],_0x57df48=_0x2d7a32['plugins']['get']('TrackChangesEditing');_0x2d7a32['plugins']['has']('MultiLevelList')&&(_0x57df48['enableDefaultAttributesIntegration']('multiLevelList'),_0x57df48['descriptionFactory']['registerDescriptionCallback'](_0x51b4e3=>this['handleDescriptions'](_0x51b4e3)));}['handleDescriptions'](_0x21f6af){const _0x227bf5=this['editor']['locale'],{data:_0xaf5921}=_0x21f6af,_0x5f2958={'type':'format','content':''};if(_0xaf5921&&'listMarkerStyle'==_0xaf5921['key']){if(!_0xaf5921['oldValue'])return{'type':'format','content':o(_0x227bf5,'*Set\x20format:*\x20%0',o(_0x227bf5,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xaf5921['newValue']+')'};if(!_0xaf5921['newValue']){let _0x312d77=_0x21f6af['head'];for(;_0x312d77;){if(_0x312d77['data']&&'listType'==_0x312d77['data']['key']&&_0x312d77['data']['newValue'])return _0x5f2958;_0x312d77=_0x312d77['next'];}return{'type':'format','content':o(_0x227bf5,'*Remove\x20format:*\x20%0',o(_0x227bf5,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xaf5921['oldValue']+')'};}}}}class bt extends _0x2051ed{['afterInit'](){const _0x437e44=this['editor'];if(!_0x437e44['plugins']['has']('PageBreakEditing'))return;_0x437e44['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2e754b=_0x437e44['plugins']['get']('TrackChangesEditing'),_0xf429e9=_0x437e44['locale'];_0x2e754b['descriptionFactory']['registerElementLabel']('pageBreak',_0x5b87e2=>o(_0xf429e9,'ELEMENT_PAGE_BREAK',_0x5b87e2));}}class yt extends _0x2051ed{['afterInit'](){const _0x2dcd82=this['editor'];if(!_0x2dcd82['plugins']['has']('Paragraph'))return;const _0xbd181e=_0x2dcd82['locale'],_0x3e4db3=_0x2dcd82['plugins']['get']('TrackChangesEditing');_0x3e4db3['descriptionFactory']['registerElementLabel']('paragraph',_0x226c72=>o(_0xbd181e,'ELEMENT_PARAGRAPH',_0x226c72)),_0x3e4db3['enableDefaultAttributesIntegration']('paragraph'),_0x3e4db3['enableCommand']('insertParagraph');const _0x59d00a=_0x3e4db3['descriptionFactory'];_0x59d00a['registerDescriptionCallback'](_0x15f07=>{if('insertion'!==_0x15f07['type'])return;const {start:_0x570428,end:_0x9f9f54}=_0x15f07['getFirstRange']();if(!_0x570428['isTouching'](_0x9f9f54)||!_0x570428['nodeAfter'])return;const _0x256e87=_0x2dcd82['model']['schema'],_0x426199=_0x570428['nodeAfter'];return _0x256e87['isBlock'](_0x426199)&&!_0x256e87['isLimit'](_0x426199)&&_0x256e87['checkChild'](_0x426199,'$text')?{'type':'insertion','content':o(_0xbd181e,'*Insert:*\x20%0',_0x59d00a['getItemLabel'](_0x426199,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1a2979=this['editor'],_0x5e8e8d=_0x1a2979['locale'];_0x1a2979['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3aec85=>{if('formatBlock'!=_0x3aec85['type'])return;const {data:_0x43d371}=_0x3aec85;return _0x43d371&&'paragraph'==_0x43d371['commandName']?{'type':'format','content':o(_0x5e8e8d,'*Change\x20to:*\x20%0',o(_0x5e8e8d,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class jt extends _0x2051ed{['afterInit'](){const _0x38257e=this['editor'];_0x38257e['commands']['get']('replaceSource')&&_0x38257e['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x2051ed{['afterInit'](){const _0x22c25f=this['editor'];if(!_0x22c25f['plugins']['has']('RemoveFormatEditing'))return;_0x22c25f['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x51c3ba=this['editor'];_0x51c3ba['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x188706=>{if('formatBlock'!=_0x188706['type']&&'formatInline'!=_0x188706['type'])return;const {data:_0x5df3d1}=_0x188706;return _0x5df3d1&&'removeFormat'==_0x5df3d1['commandName']?{'type':'format','content':o(_0x51c3ba['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x2051ed{['afterInit'](){const _0xfb87ff=this['editor'];if(!_0xfb87ff['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x38b641=_0xfb87ff['plugins']['get']('TrackChangesEditing');_0x38b641['enableCommand']('goToPreviousRestrictedEditingException'),_0x38b641['enableCommand']('goToNextRestrictedEditingException');const _0x5e9f66=_0xfb87ff['plugins']['get']('RestrictedEditingModeEditing');_0x5e9f66['enableCommand']('trackChanges'),_0x5e9f66['enableCommand']('acceptSuggestion'),_0x5e9f66['enableCommand']('discardSuggestion'),_0x5e9f66['enableCommand']('acceptAllSuggestions'),_0x5e9f66['enableCommand']('discardAllSuggestions'),_0x5e9f66['enableCommand']('acceptSelectedSuggestions'),_0x5e9f66['enableCommand']('discardSelectedSuggestions');}}class At extends _0x2051ed{['afterInit'](){const _0x3f57d5=this['editor'];if(!_0x3f57d5['plugins']['has']('ShiftEnter'))return;const _0x36a5c1=_0x3f57d5['plugins']['get']('TrackChangesEditing');_0x36a5c1['enableCommand']('shiftEnter'),_0x36a5c1['descriptionFactory']['registerElementLabel']('softBreak',_0x784ac4=>o(_0x3f57d5['locale'],'ELEMENT_LINE_BREAK',_0x784ac4));}}function an(_0x172773,_0x1d39e8,_0x18010f){const _0x1c8344=[];for(const _0x4f694c of _0x1d39e8['getItems']())_0x4f694c['hasAttribute'](_0x172773)&&_0x1c8344['push'](_0x18010f['createRangeOn'](_0x4f694c));return _0x1c8344;}class _t extends _0x2051ed{['afterInit'](){this['editor']['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand']());}['_enableEditingExceptionCommand'](){const _0x591a90=this['editor'],_0x3416b2=_0x591a90['model'],_0x4bef20=_0x591a90['locale'],_0x327901=_0x591a90['plugins']['get']('TrackChangesEditing'),_0x3c174e='restrictedEditingException',_0x56b4b0=_0x591a90['commands']['get'](_0x3c174e);_0x327901['enableCommand'](_0x3c174e,(_0x202376,_0x37852b={})=>{const _0x254995=_0x3416b2['document']['selection'];if(_0x254995['isCollapsed'])return void _0x202376(_0x37852b);const _0x51a911=void 0x0!==_0x37852b['forceValue']?_0x37852b['forceValue']:!_0x56b4b0['value'];_0x3416b2['change'](()=>{const _0x288a76=Array['from'](_0x254995['getRanges']());for(const _0x4c74e0 of _0x288a76){const _0xfa51fe=_0x51a911?[_0x4c74e0]:an(_0x3c174e,_0x4c74e0,_0x3416b2);for(const _0x391b0f of _0xfa51fe)_0x327901['markInlineFormat'](_0x391b0f,{'commandName':_0x3c174e,'commandParams':[{'forceValue':_0x51a911}]});}});}),_0x327901['descriptionFactory']['registerDescriptionCallback'](_0x1d11fb=>{if('formatBlock'!=_0x1d11fb['type']&&'formatInline'!=_0x1d11fb['type'])return;const {data:_0xc807ab}=_0x1d11fb;return _0xc807ab&&_0xc807ab['commandName']==_0x3c174e?_0xc807ab['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4bef20,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4bef20,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x760787=this['editor'],_0xb5a4d3=_0x760787['locale'],_0x1eb80a=_0x760787['plugins']['get']('TrackChangesEditing'),_0x22b8f3='restrictedEditingExceptionBlock',_0x408032=this['editor']['commands']['get'](_0x22b8f3);_0x1eb80a['enableCommand'](_0x22b8f3,(_0x913511,_0xbba480={})=>{const _0x545147=this['editor']['model']['document']['selection'],_0x1e3ea8=_0xbba480&&void 0x0!==_0xbba480['forceValue']?_0xbba480['forceValue']:!_0x408032['value'];let _0x8922b8=[];if(_0x1e3ea8){const _0x18ab18=Array['from'](_0x545147['getSelectedBlocks']())['filter'](_0x256ba4=>function(_0x54ad11){return!!_0x54ad11['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x256ba4)||function(_0x471d33,_0x393ffa){const _0x2d4fa1=_0x393ffa['createContext'](_0x471d33['parent']);if(!_0x393ffa['checkChild'](_0x2d4fa1,'restrictedEditingException'))return!0x1;if(!_0x393ffa['checkChild'](_0x2d4fa1['push']('restrictedEditingException'),_0x471d33))return!0x1;return!0x0;}(_0x256ba4,this['editor']['model']['schema']));_0x8922b8=to(_0x18ab18,_0x760787['model']);}else{const _0x3cef5d=Array['from'](_0x545147['getSelectedBlocks']())['map'](_0x344b7a=>function(_0xeb9dc7){let _0x22a623=_0xeb9dc7;for(;_0x22a623['parent'];){if('restrictedEditingException'==_0x22a623['parent']['name'])return _0x22a623;_0x22a623=_0x22a623['parent'];}return null;}(_0x344b7a))['filter'](_0xc877f1=>!!_0xc877f1);_0x8922b8=to(_0x3cef5d,_0x760787['model']);}_0x760787['model']['change'](()=>{for(const _0x1fde7e of _0x8922b8)_0x1eb80a['markBlockFormat'](_0x1fde7e,{'commandName':_0x22b8f3,'commandParams':[{'forceValue':_0x1e3ea8}]});});}),_0x1eb80a['descriptionFactory']['registerDescriptionCallback'](_0x159c3a=>{const {data:_0x5530c0}=_0x159c3a;if(_0x5530c0&&_0x5530c0['commandName']==_0x22b8f3)return _0x5530c0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xb5a4d3,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0xb5a4d3,'FORMAT_RESTRICTED_DISABLED')};});}}class Ct extends _0x2051ed{['afterInit'](){const _0x7a1a70=this['editor'];if(!_0x7a1a70['plugins']['has']('Style')||!_0x7a1a70['plugins']['has']('DataSchema'))return;const _0x22baed=_0x7a1a70['plugins']['get']('TrackChangesEditing'),_0x567781=_0x7a1a70['locale'],_0x4bb895=_0x7a1a70['config']['get']('style')||{},_0x2677d2=_0x7a1a70['plugins']['get']('GeneralHtmlSupport'),_0x13e2b0=_0x7a1a70['plugins']['get']('StyleUtils')['normalizeConfig'](_0x7a1a70['plugins']['get']('DataSchema'),_0x4bb895['definitions']);_0x22baed['enableDefaultAttributesIntegration']('style');const _0x90d4f6=new Set();for(const _0x5795f1 of _0x13e2b0['block']){const _0x6e292c=_0x2677d2['getGhsAttributeNameForElement'](_0x5795f1['element']);_0x90d4f6['add'](_0x6e292c);}const _0x3148a1=new Set();for(const _0x3fe3df of _0x13e2b0['inline']){const _0x17cfd8=_0x2677d2['getGhsAttributeNameForElement'](_0x3fe3df['element']);_0x3148a1['add'](_0x17cfd8);for(const _0xe7f753 of _0x3fe3df['ghsAttributes'])_0x3148a1['add'](_0xe7f753);}for(const _0x4ae520 of _0x90d4f6)_0x22baed['descriptionFactory']['registerAttributeLabel'](_0x4ae520,o(_0x567781,'FORMAT_STYLE'));for(const _0x256a97 of _0x3148a1)_0x22baed['descriptionFactory']['registerAttributeLabel'](_0x256a97,o(_0x567781,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f4f76=this['editor'],_0x3119ba=_0x1f4f76['locale'];_0x1f4f76['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3728f4=>{if('formatBlock'!=_0x3728f4['type']&&'formatInline'!=_0x3728f4['type'])return;const {data:_0x5c2412}=_0x3728f4;return _0x5c2412&&'style'===_0x5c2412['commandName']?_0x5c2412['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3119ba,'*Set\x20format:*\x20%0',_0x5c2412['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x3119ba,'*Remove\x20format:*\x20%0',_0x5c2412['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Nt extends _0x2051ed{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x1ba0d3){super(_0x1ba0d3),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x13833b=this['editor'],_0x4ae226=_0x13833b['model']['document']['selection'];if(!_0x13833b['plugins']['has']('TableEditing'))return;const _0x2b6ebd=_0x13833b['locale'],_0x14dbce=_0x13833b['plugins']['get']('TrackChangesEditing'),_0x20c97c=_0x13833b['plugins']['get']('TableUtils');_0x14dbce['descriptionFactory']['registerElementLabel']('table',_0x42ada9=>o(_0x2b6ebd,'ELEMENT_TABLE',_0x42ada9)),this['_setupColumnsRowsFixing'](),_0x14dbce['enableCommand']('insertTable'),_0x14dbce['enableCommand']('selectTableRow'),_0x14dbce['enableCommand']('selectTableColumn');for(const _0x230820 of['insertTableRowAbove','insertTableRowBelow']){const _0x1b15ab=_0x13833b['commands']['get'](_0x230820);_0x14dbce['enableCommand'](_0x230820,_0x3106c1=>{_0x13833b['model']['change'](_0x94487a=>{_0x3106c1();const _0x431def='above'===_0x1b15ab['order'],_0x2b08cd=_0x20c97c['getSelectionAffectedTableCells'](_0x4ae226),_0x428abc=_0x20c97c['getRowIndexes'](_0x2b08cd),_0x160f25=_0x431def?_0x428abc['first']-0x1:_0x428abc['last']+0x1,_0x33ae96=_0x2b08cd[0x0]['findAncestor']('table'),_0x505ddd=_0x20c97c['createTableWalker'](_0x33ae96,{'startRow':_0x160f25,'endRow':_0x160f25}),_0x2eca2f=Array['from'](_0x505ddd)['map'](_0x8522b0=>_0x94487a['createRangeOn'](_0x8522b0['cell']));_0x14dbce['markMultiRangeInsertion'](_0x2eca2f,'tableRow');});});}for(const _0x5deb1c of['insertTableColumnLeft','insertTableColumnRight']){const _0x41d2b6=_0x13833b['commands']['get'](_0x5deb1c);_0x14dbce['enableCommand'](_0x5deb1c,_0x3b6e77=>{_0x13833b['model']['change'](_0x2943b2=>{_0x3b6e77();const _0x3a4a16='left'===_0x41d2b6['order'],_0x5ba130=_0x20c97c['getSelectionAffectedTableCells'](_0x4ae226),_0x4212a9=_0x20c97c['getColumnIndexes'](_0x5ba130),_0x57da18=_0x3a4a16?_0x4212a9['first']-0x1:_0x4212a9['last']+0x1,_0x5edb03=_0x5ba130[0x0]['findAncestor']('table'),_0xe7ca57=_0x20c97c['createTableWalker'](_0x5edb03,{'startRow':0x0,'column':_0x57da18,'includeAllSlots':!0x1}),_0x3f6541=Array['from'](_0xe7ca57)['map'](_0x11adbd=>_0x2943b2['createRangeOn'](_0x11adbd['cell']));_0x14dbce['markMultiRangeInsertion'](_0x3f6541,'tableColumn');});});}for(const _0x5a56d6 of['removeTableRow','removeTableColumn']){const _0x2b3d0a=_0x5a56d6['substr'](0xb),_0x2900e7=_0x2b3d0a['toLowerCase'](),_0x5d5cc3=_0x2900e7['substr'](0x0,0x3)+'span',_0x542b17='table'+_0x2b3d0a,_0x418cf5='min'+_0x2b3d0a,_0x290368='max'+_0x2b3d0a;_0x14dbce['enableCommand'](_0x5a56d6,()=>{_0x13833b['model']['change'](_0xd87478=>{const _0xbf51de=_0x20c97c['getSelectionAffectedTableCells'](_0x4ae226),_0x31b02a=_0xbf51de[0x0]['findAncestor']('table');let _0x2aa7d9;if('removeTableRow'==_0x5a56d6){const _0x5dee49=_0x20c97c['getRowIndexes'](_0xbf51de);_0x2aa7d9={'startRow':_0x5dee49['first'],'endRow':_0x5dee49['last'],'includeAllSlots':!0x0};}else{const _0x48bdaa=_0x20c97c['getColumnIndexes'](_0xbf51de);_0x2aa7d9={'startColumn':_0x48bdaa['first'],'endColumn':_0x48bdaa['last'],'includeAllSlots':!0x0};}const _0xa74c=_0x20c97c['createTableWalker'](_0x31b02a,_0x2aa7d9),_0x508119=Array['from'](_0xa74c)['map'](({cell:_0x4df8d7})=>_0x4df8d7),_0x11ac28=_e(_0x508119['filter'](_0x203869=>_0x203869['hasAttribute'](_0x5d5cc3))),_0x1f7031=_e(_0x508119['filter'](_0x3311cd=>!_0x3311cd['hasAttribute'](_0x5d5cc3)))['map'](_0x5055ed=>_0xd87478['createRangeOn'](_0x5055ed)),_0x5bec0c=_0x14dbce['markMultiRangeDeletion'](_0x1f7031,_0x542b17);if(_0x5bec0c&&('tableRow'==_0x5bec0c['subType']||'tableColumn'==_0x5bec0c['subType'])){const _0x1993a1=this['_getSuggestionCoords'](_0x5bec0c);for(const _0x13a4b2 of _0x11ac28){const _0x113e14=_0xd87478['createRangeOn'](_0x13a4b2),_0x536e56=_0x20c97c['getCellLocation'](_0x13a4b2),_0x1f9b85=_0x13a4b2['getAttribute'](_0x5d5cc3)-0x1,_0x5575c4=_0x1993a1[_0x418cf5],_0x26772c=_0x1993a1[_0x290368];_0x5575c4<=_0x536e56[_0x2900e7]&&_0x536e56[_0x2900e7]+_0x1f9b85<=_0x26772c&&_0x5bec0c['addRange'](_0x113e14);}}});});}function _0x5a1cc9(_0x518d54){const _0x2ee2cf=Array['from'](_0x4ae226['getRanges']())['map'](_0x53b351=>_0x53fd14['fromRange'](_0x53b351));_0x13833b['model']['change'](_0x28fd16=>{const _0x599f4d=_0x28fd16['batch'];_0x518d54=_0x518d54['filter'](_0x56e44d=>'$graveyard'!=_0x56e44d['root']['rootName']),_0x28fd16['setSelection'](_0x518d54),_0x13833b['commands']['get']('removeTableRow')['refresh'](),_0x13833b['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x13833b['model']['enqueueChange'](()=>{_0x13833b['model']['enqueueChange'](_0x599f4d,_0x28b5ae=>{const _0x2259af=_0x2ee2cf['filter'](_0x1128bc=>'$graveyard'!=_0x1128bc['root']['rootName']);_0x2259af['length']>0x0&&_0x28b5ae['setSelection'](_0x2259af);for(const _0xfa56a8 of _0x2ee2cf)_0xfa56a8['detach']();});});});}function _0x5921a1(_0x22991d){_0x13833b['model']['change'](_0x3b64bb=>{const _0x3e62c1=Array['from'](_0x4ae226['getRanges']())['map'](_0x11cffc=>_0x53fd14['fromRange'](_0x11cffc)),_0x44db80=[];for(const _0x3a4d12 of _0x22991d)for(const _0x402ac8 of _0x3a4d12['getItems']({'shallow':!0x0}))_0x44db80['push'](_0x402ac8);for(const _0x481dd7 of _0x44db80)'$graveyard'!=_0x481dd7['root']['rootName']&&(_0x3b64bb['setSelection'](_0x3b64bb['createPositionAt'](_0x481dd7,0x0)),_0x13833b['commands']['get']('removeTableColumn')['refresh'](),_0x13833b['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1ffe9e=_0x3e62c1['filter'](_0x3ceafd=>'$graveyard'!=_0x3ceafd['root']['rootName']);_0x1ffe9e['length']>0x0&&_0x3b64bb['setSelection'](_0x1ffe9e);for(const _0x5eb88f of _0x3e62c1)_0x5eb88f['detach']();});}function _0x5cf8f2(_0x15a7b6,_0x51af06){return _0x51af06['every'](_0x502152=>_0x15a7b6['some'](_0x17843e=>_0x17843e['end']['isEqual'](_0x502152['start'])||_0x502152['end']['isEqual'](_0x17843e['start'])));}function _0x419bd2(_0x3b061b,_0x1dfbec){return!_0x3b061b['some'](_0x407ee8=>_0x1dfbec['some'](_0x228332=>_0x407ee8['isIntersecting'](_0x228332)))&&_0x3b061b['some'](_0x1ba311=>_0x1dfbec['some'](_0xf33515=>_0x1ba311['end']['isTouching'](_0xf33515['start'])));}_0x14dbce['descriptionFactory']['registerDescriptionCallback'](_0x25a007=>{if('insertion'!=_0x25a007['type']&&'deletion'!=_0x25a007['type'])return;const _0x55ca1c=_0x25a007['getContainedElement']();if(null!=_0x55ca1c&&_0x55ca1c['is']('element','table')){if('insertion'==_0x25a007['type']){const _0x20f207=_0x25a007['getItems']()['filter'](_0x2aae5a=>_0x2aae5a['is']('$textProxy'))['map'](_0x2defd3=>_0x2defd3['data']);if(_0x20f207['length'])return{'type':'insertion','content':o(_0x2b6ebd,'*Insert:*\x20%0',o(_0x2b6ebd,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x20f207['join']('\x20')+'\x22'))};}if('deletion'==_0x25a007['type']){const _0x39002b=_0x25a007['getItems']()['filter'](_0x46003a=>_0x46003a['is']('$textProxy'))['map'](_0x53759e=>_0x53759e['data']);if(_0x39002b['length'])return{'type':'deletion','content':o(_0x2b6ebd,'*Remove:*\x20%0',o(_0x2b6ebd,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x39002b['join']('\x20')+'\x22'))};}}}),_0x14dbce['descriptionFactory']['registerDescriptionCallback'](_0x3200d0=>{if('tableRow'==_0x3200d0['subType']){const _0xb4327=_0x3200d0['getItems']()['filter'](_0x57826b=>_0x57826b['is']('$textProxy'))['map'](_0x3c2a8=>_0x3c2a8['data']),_0x231e8f=this['_getSuggestionCoords'](_0x3200d0),_0x12badb=_0x231e8f['maxRow']-_0x231e8f['minRow']+0x1;if('insertion'==_0x3200d0['type'])return _0xb4327['length']?{'type':'insertion','content':o(_0x2b6ebd,'*Insert:*\x20%0',o(_0x2b6ebd,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x12badb,'\x22'+_0xb4327['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2b6ebd,'*Insert:*\x20%0',o(_0x2b6ebd,'ELEMENT_TABLE_ROW',_0x12badb))};if('deletion'==_0x3200d0['type'])return _0xb4327['length']?{'type':'deletion','content':o(_0x2b6ebd,'*Remove:*\x20%0',o(_0x2b6ebd,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x12badb,'\x22'+_0xb4327['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2b6ebd,'*Remove:*\x20%0',o(_0x2b6ebd,'ELEMENT_TABLE_ROW',_0x12badb))};}if('tableColumn'==_0x3200d0['subType']){const _0x1f127e=_0x3200d0['getItems']()['filter'](_0x2a7d30=>_0x2a7d30['is']('$textProxy'))['map'](_0x4f02f1=>_0x4f02f1['data']),_0x1a1042=this['_getSuggestionCoords'](_0x3200d0),_0x68542d=_0x1a1042['maxColumn']-_0x1a1042['minColumn']+0x1;if('insertion'==_0x3200d0['type'])return _0x1f127e['length']?{'type':'insertion','content':o(_0x2b6ebd,'*Insert:*\x20%0',o(_0x2b6ebd,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x68542d,'\x22'+_0x1f127e['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2b6ebd,'*Insert:*\x20%0',o(_0x2b6ebd,'ELEMENT_TABLE_COLUMN',_0x68542d))};if('deletion'==_0x3200d0['type'])return _0x1f127e['length']?{'type':'deletion','content':o(_0x2b6ebd,'*Remove:*\x20%0',o(_0x2b6ebd,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x68542d,'\x22'+_0x1f127e['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2b6ebd,'*Remove:*\x20%0',o(_0x2b6ebd,'ELEMENT_TABLE_COLUMN',_0x68542d))};}}),_0x14dbce['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x5a1cc9),_0x14dbce['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x5a1cc9),_0x14dbce['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x5921a1),_0x14dbce['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x5921a1),_0x14dbce['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5cf8f2),_0x14dbce['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5cf8f2),_0x14dbce['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x419bd2),_0x14dbce['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x419bd2);}['_acceptFormatSuggestionCallbackFactory'](){const _0xa8e418=this['editor'],_0x322298=_0xa8e418['model']['document']['selection'];return(_0x5da0fe,_0x17a2f3)=>{_0xa8e418['model']['change'](_0x1111cb=>{const {commandName:_0xd7765f,commandParams:_0x575f60}=_0x17a2f3;let _0x25df9a=_0x5da0fe[0x0]['end']['nodeBefore'];_0x575f60&&_0x575f60[0x0]&&!0x1===_0x575f60[0x0]['forceValue']&&(_0x25df9a=_0x5da0fe[0x0]['start']['nodeAfter']);const _0x597757=_0x1111cb['createRangeIn'](_0x25df9a);if('$graveyard'==_0x597757['root']['rootName'])return;const _0x20906b=Array['from'](_0x322298['getRanges']())['map'](_0x51be14=>_0x53fd14['fromRange'](_0x51be14));_0x1111cb['setSelection'](_0x597757),_0xa8e418['commands']['get'](_0xd7765f)['refresh'](),_0x575f60['push']({'forceDefaultExecution':!0x0}),_0xa8e418['execute'](_0xd7765f,..._0x575f60);const _0x3444e5=_0x20906b['filter'](_0x55b893=>'$graveyard'!=_0x55b893['root']['rootName']);_0x3444e5['length']>0x0&&_0x1111cb['setSelection'](_0x3444e5);for(const _0x1afb0d of _0x20906b)_0x1afb0d['detach']();});};}['_getCoordsForCells'](_0x261d06){const _0x2857a4=this['editor']['plugins']['get']('TableUtils');let _0x57ddb6=Number['MAX_SAFE_INTEGER'],_0x867f6f=Number['MIN_SAFE_INTEGER'],_0x544993=Number['MAX_SAFE_INTEGER'],_0x262ca1=Number['MIN_SAFE_INTEGER'];for(const _0x41c072 of _0x261d06){if('$graveyard'==_0x41c072['root']['rootName'])continue;const {row:_0xaa5e8,column:_0x22aa1d}=_0x2857a4['getCellLocation'](_0x41c072),_0x149546=_0x41c072['hasAttribute']('rowspan')?_0x41c072['getAttribute']('rowspan')-0x1:0x0,_0x7deca0=_0x41c072['hasAttribute']('colspan')?_0x41c072['getAttribute']('colspan')-0x1:0x0;_0x57ddb6=_0xaa5e8<_0x57ddb6?_0xaa5e8:_0x57ddb6,_0x867f6f=_0xaa5e8+_0x149546>_0x867f6f?_0xaa5e8+_0x149546:_0x867f6f,_0x544993=_0x22aa1d<_0x544993?_0x22aa1d:_0x544993,_0x262ca1=_0x22aa1d+_0x7deca0>_0x262ca1?_0x22aa1d+_0x7deca0:_0x262ca1;}return{'minRow':_0x57ddb6,'maxRow':_0x867f6f,'minColumn':_0x544993,'maxColumn':_0x262ca1};}['_setupColumnsRowsFixing'](){const _0x86b908=this['editor'],_0x1eb197=_0x86b908['plugins']['get']('TrackChangesEditing'),_0x250f28=_0x86b908['plugins']['get']('TableUtils');_0x86b908['model']['document']['on']('change:data',()=>{const _0x403403=Array['from'](_0x86b908['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x189f42,data:_0x5c1bf3}of _0x403403){const {group:_0x4b6cac,id:_0x37cf2b,subType:_0x52a1db}=_0x1eb197['_splitMarkerName'](_0x189f42);if('suggestion'!=_0x4b6cac)continue;if(null!=_0x5c1bf3['oldRange'])continue;const _0x5a08ac=_0x1eb197['getSuggestion'](_0x37cf2b);this['_tablePostFixingSubtypes']['includes'](_0x52a1db)&&this['_tableSuggestions']['add'](_0x5a08ac);}},{'priority':'low'});const _0x4c4dff=(_0x525efc,_0x3ed57b)=>{let _0x36b97f=!0x1;const _0x206daf=_0x3ed57b['createRangeOn'](_0x525efc),_0x4a7506=_0x525efc['findAncestor']('table'),_0x4152b8=_0x250f28['getCellLocation'](_0x525efc);for(const _0x222625 of this['_tableSuggestions']){const _0x6e101d=_0x222625['subType'],_0x334bbb=_0x6e101d['startsWith']('tablePaste'),_0x545baa=_0x6e101d['substr'](_0x334bbb?0xa:0x5),_0x58904f=_0x545baa['toLowerCase'](),_0x4b5e0a=_0x58904f['substr'](0x0,0x3)+'span',_0x66f696='min'+_0x545baa,_0x503341='max'+_0x545baa;if(!_0x222625['isInContent'])continue;if(_0x4a7506!=_0x222625['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x222625['isIntersectingWithRange'](_0x206daf))continue;const _0x3f9514=_0x525efc['hasAttribute'](_0x4b5e0a)?_0x525efc['getAttribute'](_0x4b5e0a)-0x1:0x0,_0x30bac6=this['_getSuggestionCoords'](_0x222625),_0x2e5080=_0x30bac6[_0x66f696],_0x31c22c=_0x30bac6[_0x503341];_0x2e5080<=_0x4152b8[_0x58904f]&&_0x4152b8[_0x58904f]+_0x3f9514<=_0x31c22c&&(_0x222625['addRange'](_0x206daf),_0x36b97f=!0x0);}return _0x36b97f;};_0x86b908['model']['document']['registerPostFixer'](_0x3b4ce4=>{let _0x1ada03=!0x1;for(const _0x4ebecc of _0x86b908['model']['document']['differ']['getChanges']())if('insert'==_0x4ebecc['type']){if('tableRow'==_0x4ebecc['name']){for(const _0x5cf0a9 of _0x4ebecc['position']['nodeAfter']['getChildren']())_0x1ada03=_0x1ada03||_0x4c4dff(_0x5cf0a9,_0x3b4ce4);}else'tableCell'==_0x4ebecc['name']&&(_0x1ada03=_0x1ada03||_0x4c4dff(_0x4ebecc['position']['nodeAfter'],_0x3b4ce4));}return _0x1ada03;});}['_getSuggestionCoords'](_0x2771f0){return this['_getCoordsForCells'](_0x2771f0['getRanges']()['map'](_0x383539=>_0x383539['start']['nodeAfter']));}}function _e(_0x1aecea){return Array['from'](new Set(_0x1aecea)['values']());}class $t extends _0x2051ed{static get['requires'](){return[Nt];}['afterInit'](){const _0x2a8e23=this['editor'],_0x2f7bde=_0x2a8e23['model']['document']['selection'],_0xdfacc8=_0x2a8e23['locale'];if(!_0x2a8e23['plugins']['has']('TableEditing'))return;const _0x295181=_0x2a8e23['plugins']['get']('TrackChangesEditing'),_0x14717f=_0x2a8e23['plugins']['get']('TableUtils'),_0x5b1d4b=_0x2a8e23['plugins']['get'](Nt);_0x5b1d4b['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x295181['enableCommand']('mergeTableCells',()=>{const _0xbf7948=_0x14717f['getSelectionAffectedTableCells'](_0x2a8e23['model']['document']['selection']);_0x2a8e23['model']['change'](()=>{_0x295181['markMultiRangeBlockFormat'](_0xbf7948,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2a8e23['commands']['get']('mergeTableCells')['on']('execute',(_0x23259d,_0xe8947f)=>{_0x2a8e23['commands']['get']('trackChanges')['value']&&(_0xe8947f['length']>0x0&&_0xe8947f[_0xe8947f['length']-0x1]&&_0xe8947f[_0xe8947f['length']-0x1]['forceDefaultExecution']||_0x295181['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x23259d['stop']());},{'priority':'highest'});for(const _0x550c75 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x3ed64e=_0x2a8e23['commands']['get'](_0x550c75);_0x295181['enableCommand'](_0x550c75,()=>{const _0x247fdc=_0x2a8e23['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5cbc16=>_0x5cbc16['is']('element','tableCell')),_0xf28e9c=_0x3ed64e['value'];_0x2a8e23['model']['change'](()=>{_0x295181['markMultiRangeBlockFormat']([_0x247fdc,_0xf28e9c],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x5a7a79 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x2b8e12=_0x2a8e23['commands']['get'](_0x5a7a79);_0x295181['enableCommand'](_0x5a7a79,()=>{const _0x4644d3=_0x14717f['getSelectionAffectedTableCells'](_0x2a8e23['model']['document']['selection'])[0x0],_0xe02a2e=_0x4644d3['findAncestor']('table'),{column:_0x30c7b3,row:_0x3f0177}=_0x14717f['getCellLocation'](_0x4644d3);let _0x41a3f8=[];if('horizontally'==_0x2b8e12['direction']){const _0x8d0642=_0x14717f['createTableWalker'](_0xe02a2e,{'startRow':_0x3f0177,'endRow':_0x3f0177,'includeAllSlots':!0x0});_0x41a3f8=Array['from'](_0x8d0642)['map'](_0xdaa6a=>_0xdaa6a['cell']);}else{const _0x4cbe34=_0x14717f['createTableWalker'](_0xe02a2e,{'column':_0x30c7b3,'includeAllSlots':!0x0});_0x41a3f8=Array['from'](_0x4cbe34)['map'](_0x13ab10=>_0x13ab10['cell']);}_0x2a8e23['model']['change'](_0x1d9a3c=>{_0x295181['markBlockFormat'](_0x1d9a3c['createRangeOn'](_0x4644d3),{'commandName':_0x5a7a79,'commandParams':[]},_0x41a3f8,_0x5a7a79);});});}_0x295181['descriptionFactory']['registerDescriptionCallback'](_0x5c036d=>{if('formatBlock'!=_0x5c036d['type']&&'formatInline'!=_0x5c036d['type'])return;const {data:_0x50a43f}=_0x5c036d;return _0x50a43f&&'mergeTableCells'==_0x50a43f['commandName']?{'type':'format','content':o(_0xdfacc8,'*Merge\x20cells*')}:void 0x0;}),_0x295181['descriptionFactory']['registerDescriptionCallback'](_0x2d5515=>{if('formatBlock'!=_0x2d5515['type']&&'formatInline'!=_0x2d5515['type'])return;const {data:_0x44b910}=_0x2d5515;return _0x44b910?'splitTableCellVertically'==_0x44b910['commandName']?{'type':'format','content':o(_0xdfacc8,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x44b910['commandName']?{'type':'format','content':o(_0xdfacc8,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x2b7181=_0x5b1d4b['_acceptFormatSuggestionCallbackFactory']();for(const _0x196c43 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x295181['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x196c43,'accept',_0x2b7181);for(const _0xf853f2 of['splitTableCellVertically','splitTableCellHorizontally'])_0x295181['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xf853f2,'accept',_0x2b7181);_0x295181['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x5a5fdb=>{_0x2a8e23['model']['change'](_0x5a1835=>{const _0x2aaff3=Array['from'](_0x2f7bde['getRanges']())['map'](_0x22d956=>_0x53fd14['fromRange'](_0x22d956));_0x5a1835['setSelection'](_0x5a5fdb),_0x2a8e23['commands']['get']('mergeTableCells')['refresh'](),_0x2a8e23['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x43b589=_0x2aaff3['filter'](_0x3b1da1=>'$graveyard'!=_0x3b1da1['root']['rootName']);_0x43b589['length']>0x0&&_0x5a1835['setSelection'](_0x43b589);for(const _0x2e4161 of _0x2aaff3)_0x2e4161['detach']();});});for(const _0x3bb1bd of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x42d3e2=_0x2a8e23['commands']['get'](_0x3bb1bd);_0x42d3e2['on']('set:isEnabled',(_0x29e581,_0x1c73e1,_0x35aba5)=>{if(_0x35aba5){const _0x294014=_0x2a8e23['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2e8500=>_0x2e8500['is']('element','tableCell'));this['_areMergableCells'](_0x42d3e2['value'],_0x294014)||(_0x29e581['return']=!0x1,_0x29e581['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x5e83ab=this['editor']['commands']['get']('mergeTableCells'),_0x4b47a0=this['editor']['plugins']['get']('TableUtils');if(!_0x5e83ab['isEnabled'])return!0x1;const _0xfef0cb=_0x4b47a0['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x430929 of _0xfef0cb)for(const _0x340ad2 of _0xfef0cb)if(_0x430929!=_0x340ad2&&!this['_areMergableCells'](_0x430929,_0x340ad2))return!0x1;return!0x0;}['_areMergableCells'](_0x4a572a,_0x19364d){const _0x3889a9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5755ce=this['editor']['model']['createRangeOn'](_0x4a572a),_0x4c9121=this['editor']['model']['createRangeOn'](_0x19364d),_0x2d98d7=new Set(),_0x19f338=new Set();for(const _0x3e2eb8 of _0x3889a9['getSuggestions']())if(('insertion'==_0x3e2eb8['type']||'deletion'==_0x3e2eb8['type']||'mergeTableCells'==_0x3e2eb8['subType'])&&_0x3e2eb8['isInContent']){for(const _0x53c69c of _0x3e2eb8['getRanges']())_0x53c69c['containsRange'](_0x5755ce,!0x0)&&_0x2d98d7['add'](_0x3e2eb8['type']+':'+_0x3e2eb8['author']['id']),_0x53c69c['containsRange'](_0x4c9121,!0x0)&&_0x19f338['add'](_0x3e2eb8['type']+':'+_0x3e2eb8['author']['id']);}if(_0x2d98d7['size']!=_0x19f338['size'])return!0x1;for(const _0x281ab4 of _0x2d98d7)if(!_0x19f338['has'](_0x281ab4))return!0x1;return!0x0;}}class vt extends _0x2051ed{static get['requires'](){return[Nt];}['afterInit'](){const _0x37a1dd=this['editor'];if(!_0x37a1dd['plugins']['has']('TableEditing'))return;const _0x11ead9=_0x37a1dd['locale'],_0x5c2895=_0x37a1dd['plugins']['get']('TrackChangesEditing');_0x5c2895['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x5c2895['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x5c2895['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x11ead9,'FORMAT_HEADER_ROW')),_0x5c2895['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x11ead9,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3306fb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x52a154=this['editor']['plugins']['get'](Nt)['_acceptFormatSuggestionCallbackFactory']();_0x3306fb['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x52a154),_0x3306fb['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x52a154),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x2717ac=this['editor']['plugins']['get']('TrackChangesEditing'),_0x54b879=this['editor']['plugins']['get']('TableUtils');function _0x1ed76e({showActiveMarker:_0x2e4c85=!0x0,setDataAttribute:_0xabe44d=!0x0}={}){return(_0x52e554,_0x18fd0f,_0x52a1b2)=>{const {type:_0x4a3e02,id:_0x57e57f}=_0x2717ac['_splitMarkerName'](_0x18fd0f['markerName']);if(!_0x2717ac['hasSuggestion'](_0x57e57f))return;const _0x3a4691=_0x2717ac['getSuggestion'](_0x57e57f),_0x92aca7=_0x3a4691['data'];if('formatBlock'!=_0x3a4691['type']||!_0x92aca7||'setTableColumnHeader'!=_0x92aca7['commandName'])return;if(_0x18fd0f['item'])return void _0x52e554['stop']();if(!_0x52a1b2['consumable']['consume'](_0x18fd0f['markerRange'],_0x52e554['name']))return;const _0x26edfd=_0x18fd0f['markerRange']['start']['nodeAfter'],_0x1b915b=_0x18fd0f['markerRange']['end']['nodeBefore'],_0x2bdbdb=_0x26edfd['parent']['parent'],{column:_0x28e2b9}=_0x54b879['getCellLocation'](_0x26edfd),{column:_0x2d9bf4}=_0x54b879['getCellLocation'](_0x1b915b);for(let _0x9f7f21=_0x28e2b9;_0x9f7f21<=_0x2d9bf4;_0x9f7f21++){const _0x502241=_0x54b879['createTableWalker'](_0x2bdbdb,{'column':_0x9f7f21,'includeAllSlots':!0x1});for(const _0x4a454e of _0x502241){const _0x420d71=_0x4a454e['cell'],_0x1e260e=_0x52a1b2['mapper']['toViewElement'](_0x420d71);_0x52a1b2['writer']['addClass']('ck-suggestion-marker-'+_0x4a3e02,_0x1e260e),_0xabe44d&&_0x52a1b2['writer']['setAttribute']('data-suggestion',_0x57e57f,_0x1e260e),_0x52a1b2['mapper']['bindElementToMarker'](_0x1e260e,_0x18fd0f['markerName']),_0x2e4c85&&(_0x2717ac['activeMarkers']['includes'](_0x18fd0f['markerName'])?_0x52a1b2['writer']['addClass']('ck-suggestion-marker--active',_0x1e260e):_0x52a1b2['writer']['removeClass']('ck-suggestion-marker--active',_0x1e260e));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x1ed76e(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1bf2e2,_0x42be21,_0x3e0a96)=>{_0x3e0a96['options']['showSuggestionHighlights']&&_0x1ed76e({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1bf2e2,_0x42be21,_0x3e0a96);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x33f8f9,_0x568ca9,_0x3eb10a)=>{const {type:_0xdfd6c3,id:_0x1a7101}=_0x2717ac['_splitMarkerName'](_0x568ca9['markerName']);if(!_0x2717ac['hasSuggestion'](_0x1a7101))return;const _0x339ed7=_0x2717ac['getSuggestion'](_0x1a7101),_0x3f0aa1=_0x339ed7['data'];if('formatBlock'!=_0x339ed7['type']||!_0x3f0aa1||'setTableColumnHeader'!=_0x3f0aa1['commandName'])return;const _0xb097fa=_0x3eb10a['mapper']['markerNameToElements'](_0x568ca9['markerName']);if(_0xb097fa){for(const _0x616563 of _0xb097fa)_0x3eb10a['writer']['removeClass']('ck-suggestion-marker-'+_0xdfd6c3,_0x616563),_0x3eb10a['writer']['removeClass']('ck-suggestion-marker--active',_0x616563),_0x3eb10a['writer']['removeAttribute']('data-suggestion',_0x616563),_0x3eb10a['mapper']['unbindElementFromMarkerName'](_0x616563,_0x568ca9['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x21a2b4=this['editor'],_0x29279a=_0x21a2b4['locale'];function _0x4d2d85(_0x1ffe6a){return{'type':'format','content':o(_0x29279a,'*Format:*\x20%0',_0x1ffe6a)};}_0x21a2b4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f8cad=>{if('formatBlock'!=_0x4f8cad['type'])return;const {data:_0x1fd9ec}=_0x4f8cad;if(_0x1fd9ec){if('setTableRowHeader'==_0x1fd9ec['commandName']){const _0x338fb8=_0x1fd9ec['commandParams'][0x0]['forceValue'];return _0x4d2d85(o(_0x29279a,_0x338fb8?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1fd9ec['commandName']){const _0xbc6bd2=_0x1fd9ec['commandParams'][0x0]['forceValue'];return _0x4d2d85(o(_0x29279a,_0xbc6bd2?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Dt extends _0x2051ed{['afterInit'](){const _0x44b3e4=this['editor'],_0x7ce7a2=_0x44b3e4['locale'],_0x332802=_0x44b3e4['plugins']['get']('TrackChangesEditing');function _0x3113eb(_0x5a4e70){return{'type':'format','content':''+o(_0x7ce7a2,'*Set\x20table\x20type:*\x20%0',_0x5a4e70)};}_0x44b3e4['plugins']['has']('TableLayout')&&(_0x332802['enableCommand']('insertTableLayout'),_0x332802['enableDefaultAttributesIntegration']('tableType'),_0x332802['descriptionFactory']['registerElementLabel'](_0x4001ef=>_0x4001ef['is']('element','table')&&'layout'===_0x4001ef['getAttribute']('tableType'),_0x1c72c7=>o(_0x7ce7a2,'ELEMENT_LAYOUT_TABLE',_0x1c72c7)),_0x332802['descriptionFactory']['registerDescriptionCallback'](_0xc5032c=>{const {data:_0x8ff86}=_0xc5032c;if(_0x8ff86&&'tableType'==_0x8ff86['key'])switch(_0x8ff86['newValue']){case'layout':return _0x3113eb(o(_0x7ce7a2,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x3113eb(o(_0x7ce7a2,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](Re['map'](_0x392ae6=>[_0x392ae6,null]));class Bt extends _0x2051ed{static get['requires'](){return[Nt];}['afterInit'](){const _0xc62db8=this['editor'];if(!_0xc62db8['plugins']['has']('TableClipboard'))return;const _0x4f591a=_0xc62db8['plugins']['get']('TrackChangesEditing'),_0xe40f0d=_0xc62db8['plugins']['get']('TableUtils'),_0x3c664d=_0xc62db8['plugins']['get'](Nt),_0x51ec03=_0xc62db8['plugins']['get']('TableClipboard'),_0x481b4d=_0xc62db8['plugins']['get']('TableSelection'),_0xe86819=_0xc62db8['plugins']['get'](_0x4e8daf);_0x3c664d['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0xc62db8['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0xc62db8['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x11ba2c=null,_0x52e5a8=!0x1;_0xe86819['on']('contentInsertion',(_0x70687f,_0x25e124)=>{_0x52e5a8='paste'===_0x25e124['method'];}),_0xc62db8['model']['on']('insertContent',(_0x4c8982,_0xf9a699)=>{if(!_0x52e5a8&&null===_0x481b4d['getSelectedTableCells']())return;const [_0x244165,_0x15f8c8]=_0xf9a699,_0x5cfef8=_0xf9a699[_0xf9a699['length']-0x1];_0x5cfef8&&_0x5cfef8['forceDefaultExecution']||_0x4f591a['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x2078cd,_0x150f35,_0x16d055,_0x199b17,_0x539155){if(_0x150f35&&!_0x150f35['is']('documentSelection'))return!0x1;const _0x403927=_0x539155['getTableIfOnlyTableInContent'](_0x2078cd,_0x16d055);if(!_0x403927||!Oe(_0x403927,void 0x0,_0x199b17))return!0x1;const _0xc2e83c=_0x199b17['getSelectionAffectedTableCells'](_0x16d055['document']['selection']);if(!_0xc2e83c['length'])return!0x1;const _0x5ac20b=_0xc2e83c[0x0]['findAncestor']('table'),_0x352865=_0x199b17['getRowIndexes'](_0xc2e83c),_0x2d2bb=_0x199b17['getColumnIndexes'](_0xc2e83c),_0x351bd8={'startRow':_0x352865['first'],'endRow':_0x352865['last'],'startColumn':_0x2d2bb['first'],'endColumn':_0x2d2bb['last']};return 0x1==_0xc2e83c['length']&&(_0x351bd8['endRow']+=_0x199b17['getRows'](_0x403927)-0x1,_0x351bd8['endColumn']+=_0x199b17['getColumns'](_0x403927)-0x1),Oe(_0x5ac20b,_0x351bd8,_0x199b17);}(_0x244165,_0x15f8c8,_0xc62db8['model'],_0xe40f0d,_0x51ec03)&&(_0x4c8982['stop'](),_0x11ba2c={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xc62db8['model']['change'](()=>{_0xc62db8['model']['insertContent'](_0xf9a699[0x0],_0xf9a699[0x1],_0xf9a699[0x2],{'forceDefaultExecution':!0x0});const _0x565e05=_0x2280a6(),{rowInsertionRanges:_0x136f0a,columnInsertionRanges:_0x30c3fa,insertionRanges:_0x5d9de0,deletionRanges:_0x17f666,cells:_0x1d9319}=_0x11ba2c;_0x136f0a['length']&&_0x4f591a['markMultiRangeInsertion'](_0x136f0a,'tablePasteRow',{'tablePasteChainId':_0x565e05}),_0x30c3fa['length']&&_0x4f591a['markMultiRangeInsertion'](_0x30c3fa,'tablePasteColumn',{'tablePasteChainId':_0x565e05}),_0x5d9de0['length']&&(_0x4f591a['markMultiRangeInsertion'](_0x5d9de0,'tablePaste',{'tablePasteChainId':_0x565e05,'skipNestingCheck':!0x0}),_0x5d9de0['forEach'](_0x39d3f3=>_0x39d3f3['detach']?.())),_0x17f666['length']&&(_0x4f591a['markMultiRangeDeletion'](_0x17f666,'tablePaste',{'tablePasteChainId':_0x565e05,'skipNestingCheck':!0x0}),_0x17f666['forEach'](_0xb003e9=>_0xb003e9['detach']?.()));const _0x407bfb=_0x4f591a['markMultiRangeBlockFormat'](_0x1d9319['map'](({element:_0x57dfa0})=>_0x57dfa0),{'formatGroupId':_0x2280a6()},[],'tablePasteCell',{'tablePasteChainId':_0x565e05});if(_0x407bfb){const _0x52ee71=_0x407bfb['getMarkers'](),_0x385f89=[];for(const {element:_0x4dd7cf,attributes:_0x5660af}of _0x1d9319){if(!_0x5660af)continue;const _0x4e1768=_0xc62db8['model']['createRangeOn'](_0x4dd7cf),_0xf06ee2=_0x52ee71['find'](_0x50bfbf=>_0x50bfbf['getRange']()['isEqual'](_0x4e1768));_0xf06ee2&&_0x385f89['push']([_0xf06ee2['name'],_0x5660af]);}_0x385f89['length']&&_0x407bfb['setAttribute']('markerAttributes',Object['fromEntries'](_0x385f89));}_0x11ba2c=null;}));},{'priority':_0x179c84['high']+0xa}),_0xe86819['on']('contentInsertion',()=>{_0x52e5a8=!0x1;},{'priority':'lowest'}),_0xc62db8['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x406aae,_0x4b4a3f)=>{const [_0x142c94,_0x5ef287,,_0x377d1a]=_0x4b4a3f;if(!_0x11ba2c)return;_0x406aae['stop']();const _0x3437dd=_0x142c94['cell'],_0x19e96d=_0x5ef287,_0x3ffc89=Be(_0x3437dd),_0x41bde1=Be(_0x19e96d);_0x406aae['return']=_0x3437dd;let _0x442441=null,_0x5e37d5=null;if(_0x41bde1||_0x3ffc89){if(_0x3ffc89&&!_0x41bde1){_0x377d1a['remove'](_0x3437dd['getChild'](0x0));for(const _0x3c4008 of Array['from'](_0x19e96d['getChildren']()))_0x377d1a['insert'](_0x3c4008,_0x3437dd,'end');const _0x5a4672=_0x11ba2c['rowInsertionIndexes']['includes'](_0x142c94['row']),_0xb762c9=_0x11ba2c['columnInsertionIndexes']['includes'](_0x142c94['column']);_0x5a4672||_0xb762c9||(_0x442441=_0x53fd14['fromRange'](_0x377d1a['createRangeIn'](_0x3437dd)));}else _0x41bde1&&!_0x3ffc89&&(_0x5e37d5=_0x377d1a['createRangeIn'](_0x3437dd));}else{const _0x195e1c=_0x377d1a['createElement']('tableCellSuggestion'),_0x414b12=_0x377d1a['createElement']('tableCellSuggestion');_0x377d1a['wrap'](_0x377d1a['createRangeIn'](_0x3437dd),_0x414b12),_0x377d1a['insert'](_0x195e1c,_0x3437dd,0x0);for(const _0x5d422c of Array['from'](_0x19e96d['getChildren']()))_0x377d1a['insert'](_0x5d422c,_0x195e1c,'end');_0x442441=_0x53fd14['fromRange'](_0x377d1a['createRangeOn'](_0x195e1c)),_0x5e37d5=_0x53fd14['fromRange'](_0x377d1a['createRangeOn'](_0x414b12));}const _0x12a210=Array['from'](_0x19e96d['getAttributes']())['filter'](([_0x193cef])=>Re['includes'](_0x193cef));_0x11ba2c['cells']['push']({'element':_0x3437dd,'attributes':_0x12a210['length']?Object['fromEntries'](_0x12a210):null}),_0x442441&&_0x11ba2c['insertionRanges']['push'](_0x442441),_0x5e37d5&&_0x11ba2c['deletionRanges']['push'](_0x5e37d5);},{'priority':'high'}),_0xe40f0d['on']('insertColumns',(_0x19d718,_0x26d4f6)=>{const [_0x235173,_0x56c1b2={}]=_0x26d4f6;if(!_0x11ba2c)return;const _0x29b331=_0x56c1b2['at']||0x0,_0x4ed749=_0x56c1b2['columns']||0x1;_0x11ba2c['columnInsertionIndexes']=new Array(_0x4ed749)['fill'](_0x29b331)['map']((_0x389f27,_0x5a0362)=>_0x389f27+_0x5a0362);for(const {cell:_0x2234b8}of _0xe40f0d['createTableWalker'](_0x235173,{'startColumn':_0x29b331,'endColumn':_0x29b331+_0x4ed749-0x1}))_0x11ba2c['columnInsertionRanges']['push'](_0xc62db8['model']['createRangeOn'](_0x2234b8));},{'priority':'low'}),_0xe40f0d['on']('insertRows',(_0x5392eb,_0x2c49c4)=>{const [_0x236a03,_0x4d49c1={}]=_0x2c49c4;if(!_0x11ba2c)return;const _0x4762c0=_0x4d49c1['at']||0x0,_0x25b338=_0x4d49c1['rows']||0x1;_0x11ba2c['rowInsertionIndexes']=new Array(_0x25b338)['fill'](_0x4762c0)['map']((_0x22265a,_0x356304)=>_0x22265a+_0x356304);for(const {cell:_0x33d6b8}of _0xe40f0d['createTableWalker'](_0x236a03,{'startRow':_0x4762c0,'endRow':_0x4762c0+_0x25b338-0x1}))_0x11ba2c['rowInsertionRanges']['push'](_0xc62db8['model']['createRangeOn'](_0x33d6b8));},{'priority':'low'}),_0x4f591a['descriptionFactory']['registerDescriptionCallback'](_0x30e4e1=>{if(_0x30e4e1['subType']&&_0x30e4e1['subType']['startsWith']('tablePaste'))return _0x30e4e1['previous']?{}:{'type':'insertion','content':o(_0xc62db8['locale'],'*Replace\x20table\x20cells*')};});const _0x3bffe5=()=>!0x1;for(const _0x38723d of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4f591a['_suggestionFactory']['registerCustomCallback']('insertion',_0x38723d,'join',_0x3bffe5),_0x4f591a['_suggestionFactory']['registerCustomCallback']('deletion',_0x38723d,'join',_0x3bffe5),_0x4f591a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x38723d,'join',_0x3bffe5);_0x4f591a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3bffe5),_0x4f591a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x328a1b,_0x3701c4,_0x3b6dfe)=>{const _0x585b74=_0x328a1b['map'](_0x3cb738=>_0x3cb738['getContainedElement']())['filter'](_0x1cbe6c=>_0x1cbe6c),_0x3126b6=new Map(_0x585b74['map'](_0x28643b=>[_0x28643b,null]));if(_0x11ba2c){for(const {element:_0x346d48,attributes:_0x368fd3}of _0x11ba2c['cells'])_0x368fd3&&_0x3126b6['set'](_0x346d48,_0x368fd3);}else{if(_0x3b6dfe&&_0x3b6dfe['markerAttributes'])for(const [_0x5067bb,_0x490557]of Object['entries'](_0x3b6dfe['markerAttributes'])){const _0x4b5e5f=_0xc62db8['model']['markers']['get'](_0x5067bb),_0x3c10ff=_0x4b5e5f?_0x4b5e5f['getRange']()['getContainedElement']():null;_0x3c10ff&&_0x3126b6['set'](_0x3c10ff,_0x490557);}}_0xc62db8['model']['change'](_0x55a129=>{for(const [_0x3d79cf,_0x5c3ad4]of _0x3126b6)_0x55a129['setAttributes']({...Ae,..._0x5c3ad4},_0x3d79cf);});});const _0x1dd02d=(_0x415db2,_0x42056c)=>{_0x4f591a['_suggestionFactory']['registerCustomCallback'](_0x415db2,'tablePaste',_0x42056c,(_0x10d8aa,_0x45f902,_0x8ba30a)=>{_0xc62db8['model']['change'](_0x26b55b=>{const _0x30db01=[];for(const _0x3a9303 of _0x10d8aa){const _0x43a4e5=_0x3a9303['start']['nodeAfter'];_0x43a4e5['is']('element','tableCellSuggestion')&&_0x30db01['push'](_0x43a4e5);}_0x4f591a['_suggestionFactory']['getSuggestionCallback'](_0x415db2,null,_0x42056c)(_0x10d8aa,_0x45f902,_0x8ba30a);for(const _0xaab54f of _0x30db01)'$graveyard'!=_0xaab54f['root']['rootName']&&_0x26b55b['unwrap'](_0xaab54f);});});};_0x1dd02d('insertion','accept'),_0x1dd02d('insertion','discard'),_0x1dd02d('deletion','accept'),_0x1dd02d('deletion','discard'),_0x4f591a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0xdd60b=>{const _0x2ee06c=_0xdd60b['map'](_0x4a3fae=>_0x4a3fae['getContainedElement']()),_0x3bd8b6=_0x2ee06c[0x0]['findAncestor']('table'),{minRow:_0x247cf0,maxRow:_0x197c99}=_0x3c664d['_getCoordsForCells'](_0x2ee06c);_0xe40f0d['removeRows'](_0x3bd8b6,{'at':_0x247cf0,'rows':_0x197c99-_0x247cf0+0x1});}),_0x4f591a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x395674=>{const _0x423f79=_0x395674['map'](_0x3005fa=>_0x3005fa['getContainedElement']()),_0x413d2e=_0x423f79[0x0]['findAncestor']('table'),{minColumn:_0xa17335,maxColumn:_0x4b0d37}=_0x3c664d['_getCoordsForCells'](_0x423f79);_0xe40f0d['removeColumns'](_0x413d2e,{'at':_0xa17335,'columns':_0x4b0d37-_0xa17335+0x1});});const _0x504c92=(_0x2fba5e,_0x52b0a1)=>{if(!_0x52b0a1['subType']||!_0x52b0a1['subType']['startsWith']('tablePaste'))return;const _0x1c207d=_0x52b0a1['attributes']['tablePasteChainId'],_0x2e30e6=_0x4f591a['getSuggestions']()['filter'](_0x5c47fa=>_0x5c47fa['isInContent']&&_0x5c47fa['attributes']&&_0x5c47fa['attributes']['tablePasteChainId']==_0x1c207d);_0x2e30e6['length']&&_0x52b0a1['getAllAdjacentSuggestions']()['length']!=_0x2e30e6['length']&&_0x2e30e6['reduce']((_0x5d1ec3,_0x530dd5)=>(_0x5d1ec3['next']=_0x530dd5,_0x530dd5['previous']=_0x5d1ec3,_0x530dd5));};function _0x382b68(_0x1c2f1f,_0x5c5d84=!0x0){const {id:_0x201862,authorId:_0x5c40e8}=_0x4f591a['_splitMarkerName'](_0x1c2f1f['markerName']),_0x4defbd=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xa96f11=_0x4f591a['activeMarkers']['includes'](_0x1c2f1f['markerName']);return _0xa96f11&&_0x4defbd['push']('ck-suggestion-marker--active'),{'classes':_0x4defbd,'attributes':{'data-suggestion':_0x201862,'data-author-id':_0x5c40e8},'priority':_0xa96f11&&_0x5c5d84?0xbc2:0xbb8};}_0x4f591a['on']('suggestionLoaded',_0x504c92,{'priority':'high'}),_0x4f591a['on']('suggestionUnloaded',_0x504c92,{'priority':'high'}),_0xc62db8['model']['document']['registerPostFixer'](()=>{let _0x7b8050=!0x1;const _0x5ec612=Array['from'](_0xc62db8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1ead85,data:_0x19d26}of _0x5ec612){const {group:_0x5f2e24,type:_0x3522b7,id:_0x3018ce}=_0x4f591a['_splitMarkerName'](_0x1ead85);if('suggestion'!=_0x5f2e24||'deletion'!=_0x3522b7||_0x19d26['oldRange'])continue;if(!_0x4f591a['hasSuggestion'](_0x3018ce))continue;const _0x1f1ac7=_0x4f591a['getSuggestion'](_0x3018ce)['getRanges'](),_0x3d03f0=_0xc62db8['plugins']['get']('Users')['me'];for(const _0x410549 of _0x4f591a['getSuggestions']()){if(!_0x410549['isInContent']||_0x410549['author']!=_0x3d03f0)continue;if('formatBlock'!=_0x410549['type']||'tablePasteCell'!=_0x410549['subType'])continue;if(_0x410549['getRanges']()['every'](_0x4ba00a=>_0x1f1ac7['some'](_0x3090cb=>_0x3090cb['containsRange'](_0x4ba00a,!0x0)))){for(const _0x3f6668 of _0x410549['getAllAdjacentSuggestions']())_0x3f6668['isInContent']&&(_0x3f6668['discard'](),_0x7b8050=!0x0);}}}return _0x7b8050;}),_0xc62db8['model']['document']['registerPostFixer'](_0x34f5e1=>{const _0x3e10d8=_0xc62db8['commands']['get']('redo');if(!_0x3e10d8||!_0x3e10d8['_createdBatches']['has'](_0x34f5e1['batch']))return!0x1;let _0x27251c=!0x1;const _0x1635b7=_0xc62db8['plugins']['get']('Users')['me'],_0x572f7d=_0xc62db8['model']['document']['differ']['getChanges'](),_0x5f3bf=Array['from'](_0xc62db8['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x12316d,data:_0x5dc590})=>{const {group:_0x415880,subType:_0x5ded6d,authorId:_0x2dd9bc}=_0x4f591a['_splitMarkerName'](_0x12316d);return'suggestion'==_0x415880&&'tablePaste'==_0x5ded6d&&_0x2dd9bc==_0x1635b7['id']&&!_0x5dc590['oldRange'];});for(const _0x4d4302 of _0x572f7d){if('insert'!=_0x4d4302['type']||'tableCellSuggestion'!=_0x4d4302['name']||0x1!=_0x4d4302['length'])continue;const _0x32ad7=_0x34f5e1['createRange'](_0x4d4302['position'],_0x4d4302['position']['getShiftedBy'](0x1));if(!_0x5f3bf['find'](({data:_0x4dabe9})=>_0x4dabe9['newRange']['isEqual'](_0x32ad7))){for(const {name:_0x1e86a5,data:_0x146e04}of _0x5f3bf)if(_0x32ad7['containsRange'](_0x146e04['newRange'])){_0x34f5e1['updateMarker'](_0x1e86a5,{'range':_0x32ad7}),_0x27251c=!0x0;break;}}}return _0x27251c;}),_0xc62db8['model']['document']['registerPostFixer'](_0x3dbc42=>{let _0x46e6c0=!0x1;const _0x2a9c5c=_0xc62db8['plugins']['get']('Users')['me'],_0x5c5fc0=_0x4f591a['getSuggestions']()['filter'](_0x108825=>_0x108825['isInContent']&&_0x108825['author']==_0x2a9c5c),_0x5009af=new Set(),_0x5e4e58=new Set();for(const _0x34126e of _0x5c5fc0)if('tablePaste'==_0x34126e['subType'])for(const _0x58e0bc of _0x34126e['getMarkers']()){const _0x322d35=_0x58e0bc['getRange']()['getContainedElement']();if(_0x322d35){if(_0x322d35['is']('element','tableCellSuggestion')&&Be(_0x322d35)){_0x34126e['removeMarker'](_0x58e0bc['name']),_0x5009af['add'](_0x322d35),_0x46e6c0=!0x0;const _0x1e28b4=_0x322d35['nextSibling'],_0x5b2820=_0x322d35['previousSibling'],_0x31d1d8=_0x1e28b4&&_0x1e28b4['is']('element','tableCellSuggestion'),_0x13eeb1=_0x5b2820&&_0x5b2820['is']('element','tableCellSuggestion');_0x31d1d8&&!_0x5009af['has'](_0x1e28b4)&&_0x5e4e58['add'](_0x1e28b4),_0x13eeb1&&!_0x5009af['has'](_0x5b2820)&&_0x5e4e58['add'](_0x5b2820);}else _0x322d35['is']('element','paragraph')&&_0x322d35['isEmpty']&&(_0x34126e['removeMarker'](_0x58e0bc['name']),_0x46e6c0=!0x0);}}else{if('tablePasteCell'==_0x34126e['subType']){if(!_0x34126e['attributes']||!_0x34126e['attributes']['tablePasteChainId'])continue;const _0x2ec412=_0x34126e['attributes']['markerAttributes'];if(_0x2ec412&&Object['keys'](_0x2ec412)['length'])continue;const _0x91beef=_0x34126e['attributes']['tablePasteChainId'];let _0x916b5b=!0x0,_0x147495=!0x0;for(const _0x43bf26 of _0x5c5fc0)if(_0x43bf26['subType']&&_0x43bf26['subType']['startsWith']('tablePaste')){if(!_0x43bf26['attributes']['tablePasteChainId']){_0x147495=!0x1;break;}if(_0x43bf26['id']!=_0x34126e['id']&&_0x43bf26['attributes']['tablePasteChainId']==_0x91beef){_0x916b5b=!0x1;break;}}_0x147495&&_0x916b5b&&(_0x34126e['removeMarkers'](),_0x46e6c0=!0x0);}}for(const _0x29c929 of _0x5009af)_0x3dbc42['remove'](_0x29c929);for(const _0x1a63a3 of _0x5e4e58)_0x3dbc42['unwrap'](_0x1a63a3);return _0x46e6c0;}),_0xc62db8['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x4be593=>_0x382b68(_0x4be593),'converterPriority':'high'}),_0xc62db8['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2403b7,_0x23010e)=>_0x23010e['options']['showSuggestionHighlights']?_0x382b68(_0x2403b7,!0x1):null,'converterPriority':'high'});const _0x4d601e=_0xc62db8['editing']['view'];this['listenTo'](_0x4d601e['document'],'clipboardOutput',(_0x12ec9d,_0x2a329e)=>{const _0x51a0a7=[];for(const _0x15dbe4 of _0x4d601e['createRangeIn'](_0x2a329e['content'])['getItems']())_0x15dbe4['is']('element','suggestion-td')&&_0x51a0a7['push'](_0x15dbe4);_0x4d601e['change'](_0x199618=>{for(const _0x5a8cb3 of _0x51a0a7)_0x199618['move'](_0x199618['createRangeIn'](_0x5a8cb3),_0x199618['createPositionBefore'](_0x5a8cb3)),_0x199618['remove'](_0x5a8cb3);});});}}function Be(_0x1d3753){if(_0x1d3753['isEmpty'])return!0x0;const _0x6e3ebf=_0x1d3753['getChild'](0x0);return _0x6e3ebf['is']('element','paragraph')&&_0x6e3ebf['isEmpty'];}function Oe(_0x26b7da,_0x2b2a40={},_0x3b79fe){for(const {isAnchor:_0x11960e,cellHeight:_0x14cafa,cellWidth:_0x14f761}of _0x3b79fe['createTableWalker'](_0x26b7da,{'includeAllSlots':!0x0,..._0x2b2a40}))if(!_0x11960e||0x1!=_0x14cafa||0x1!=_0x14f761)return!0x1;return!0x0;}class Ot extends _0x2051ed{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x1b2f0c=this['editor']['plugins']['get']('TrackChangesEditing');_0x1b2f0c['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x1b2f0c['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x1b2f0c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1b2f0c['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x1b2f0c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x1b2f0c['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x34dba2,_0x2c3110){const _0x3ef486=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1d214e=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4bb043=_0x2c3110['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x31fe70=_0x1d214e['getColumnGroupElement'](_0x4bb043);let _0x31f2f4=_0x31fe70?_0x1d214e['getTableColumnsWidths'](_0x31fe70):null,_0x128e04=_0x4bb043['getAttribute']('tableWidth')||null;const _0x5fb698=_0x2c3110['tableWidth']||_0x128e04,_0x18de75=_0x2c3110['columnWidths']||_0x31f2f4,_0x3d5d23=this['editor']['plugins']['get']('Users')['me'];for(const _0x69ba14 of _0x3ef486['getSuggestions']()){const _0x35679e=_0x69ba14['getContainedElement']();if('resizeTable'===_0x69ba14['subType']&&_0x35679e===_0x4bb043){_0x69ba14['author']!==_0x3d5d23&&_0x69ba14['discard']();const _0x328d66=_0x69ba14['data']['commandParams'];_0x128e04=_0x328d66[0x0]['tableWidth'],_0x31f2f4=_0x328d66[0x0]['columnWidths'];break;}}_0x34dba2({'table':_0x4bb043,'tableWidth':_0x5fb698,'columnWidths':_0x18de75}),_0x3ef486['markBlockFormat'](_0x4bb043,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x128e04,'columnWidths':_0x31f2f4}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x231eca){if('formatBlock'!=_0x231eca['type']&&'formatInline'!=_0x231eca['type'])return;const {data:_0x2e9cf0}=_0x231eca;if(_0x2e9cf0&&'resizeTable'===_0x2e9cf0['formatGroupId']){const _0x248ebe='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x248ebe)};}}}class xt extends _0x2051ed{['afterInit'](){const _0x356ff8=this['editor'];_0x356ff8['plugins']['has']('Template')&&_0x356ff8['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x2051ed{['afterInit'](){const _0x415257=this['editor'];if(!_0x415257['commands']['get']('insertTableOfContents'))return;_0x415257['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x129c2b=_0x415257['plugins']['get']('TrackChangesEditing'),_0x54b648=_0x415257['locale'];_0x129c2b['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4ef2e0=>o(_0x54b648,'ELEMENT_TABLE_OF_CONTENTS',_0x4ef2e0));}}class Rt extends _0x2051ed{['afterInit'](){const _0x3eca96=this['editor'];if(!_0x3eca96['plugins']['has']('Title'))return;const _0x52e547=_0x3eca96['plugins']['get']('TrackChangesEditing');_0x52e547['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x3eca96['locale'],'ELEMENT_TITLE')),_0x3eca96['model']['document']['registerPostFixer'](_0x86e5cf=>{let _0x1397de=!0x1;const _0x2bd343=Array['from'](_0x3eca96['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x250817,data:_0x5e1f8c}of _0x2bd343){const {group:_0x407a94}=_0x52e547['_splitMarkerName'](_0x250817);if('suggestion'!==_0x407a94||!_0x5e1f8c['newRange'])continue;const _0x4795b7=_0x5e1f8c['newRange'],_0xf11759=_0x4795b7['end']['nodeBefore'];if(!_0xf11759||!_0xf11759['is']('element','title-content'))continue;if(!_0x4795b7['start']['isTouching'](_0x4795b7['end']))continue;const _0x393dd8=_0x3eca96['model']['schema']['getNearestSelectionRange'](_0x4795b7['end'],'forward');if(_0x393dd8&&_0x393dd8['isCollapsed']){const _0x29b2d1=_0x86e5cf['createRange'](_0x4795b7['start'],_0x393dd8['start']);_0x29b2d1['isEqual'](_0x4795b7)||(_0x86e5cf['updateMarker'](_0x250817,{'range':_0x29b2d1}),_0x1397de=!0x0);}_0x1397de||(_0x86e5cf['removeMarker'](_0x250817),_0x1397de=!0x0);}return _0x1397de;});}}class Tt extends _0x2051ed{['afterInit'](){const _0xfe206e=this['editor'],_0x443081=_0xfe206e['plugins']['get']('TrackChangesEditing');_0xfe206e['plugins']['has']('Uploadcare')&&(_0x443081['enableCommand']('uploadcare'),_0xfe206e['plugins']['has']('UploadcareImageEdit')&&(_0x443081['enableCommand']('uploadcareImageEdit'),_0x443081['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x443081['descriptionFactory']['registerDescriptionCallback'](_0x228681=>{if('attribute'!=_0x228681['type'])return;const {data:_0x19ec01}=_0x228681;return _0x19ec01&&'uploadcareImageId'==_0x19ec01['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x2051ed{['afterInit'](){const _0x5c743d=this['editor'],_0x412554=_0x5c743d['plugins']['get']('TrackChangesEditing');_0x5c743d['plugins']['has']('UndoEditing')&&(_0x412554['enableCommand']('undo'),_0x412554['enableCommand']('redo'));}}class Ut extends _0x2051ed{static get['requires'](){return[Nt];}['afterInit'](){const _0x53261d=this['editor'];if(!_0x53261d['plugins']['has']('TableCaptionEditing'))return;_0x53261d['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x2051ed{['tableProperties'];['tableCellProperties'];constructor(_0x41705c){super(_0x41705c),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 _0x4043de=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x53e777 of this['tableProperties'])_0x4043de['enableCommand'](_0x53e777,(_0x1de9ce,_0xf26558)=>{const _0x5b95a0=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x53e777,[_0x5b95a0],this['tableProperties'],'tableProperties',_0x1de9ce,_0xf26558);});_0x4043de['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4043de['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4043de['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x11b94f,_0x56ef16)=>this['handleDiscardAction'](this['tableProperties'],_0x11b94f,_0x56ef16)),_0x4043de['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0xd8d20f of this['tableCellProperties'])_0x4043de['enableCommand'](_0xd8d20f,(_0x243ef5,_0x4ef6a7)=>{const _0x5c256d=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0xd8d20f,_0x5c256d,this['tableCellProperties'],'tableCellProperties',_0x243ef5,_0x4ef6a7);});_0x4043de['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4043de['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4043de['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x2f735d,_0x22c4ac)=>this['handleDiscardAction'](this['tableCellProperties'],_0x2f735d,_0x22c4ac)),_0x4043de['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x4043de['descriptionFactory']['registerDescriptionCallback'](_0x1c6aac=>this['handleSuggestionDescription'](_0x1c6aac)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x423732,_0x22eda8,_0x469905,_0x24672d,_0x5b5877,_0x35e85b){const _0x53efca=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x35e85b['batch'],()=>{for(const _0x422182 of _0x22eda8){if(this['_getSuggestion'](_0x422182,_0x24672d))_0x5b5877(_0x35e85b);else{const _0x306a26={};for(const _0x365b9f of _0x469905){const _0x45673f=_0x422182['getAttribute'](_0x365b9f);void 0x0!==_0x45673f&&(_0x306a26[_0x365b9f]=_0x45673f);}_0x5b5877(_0x35e85b),_0x53efca['markBlockFormat'](_0x422182,{'commandParams':[_0x306a26]},[],_0x24672d);}}});}['handleDiscardAction'](_0x40573a,_0x1cab1e,_0x55a63d){const _0x1ef088=_0x1cab1e[0x0]['start']['nodeAfter'],_0x4608f7=_0x55a63d['commandParams'][0x0];this['editor']['model']['change'](_0x516d2f=>{for(const _0x5710fe of _0x40573a)void 0x0!==_0x4608f7[_0x5710fe]?_0x516d2f['setAttribute'](_0x5710fe,_0x4608f7[_0x5710fe],_0x1ef088):_0x516d2f['removeAttribute'](_0x5710fe,_0x1ef088);});}['handleSuggestionDescription'](_0x1a1e97){if(_0x1a1e97['data'])switch(_0x1a1e97['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x1ebdc9,_0x15dbc6){const _0x4ca3fc=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x4d1247 of _0x4ca3fc['getSuggestions']({'skipNotAttached':!0x0})){const _0xe966f6=_0x4d1247['getContainedElement']();if(_0x4d1247['subType']===_0x15dbc6&&_0xe966f6===_0x1ebdc9)return _0x4d1247;}return null;}['_registerTablePropertiesAttributes'](){const _0x2a6716=this['editor']['plugins']['get']('TrackChangesEditing'),_0x18d5f2=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x1f9ba3 of _0x18d5f2){const _0x4adc79=_0x1f9ba3['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x2a6716['descriptionFactory']['registerAttributeLabel'](_0x1f9ba3,o(this['editor']['locale'],'FORMAT_'+_0x4adc79));}}}class Ft extends _0x2051ed{['afterInit'](){const _0x46f353=this['editor'];if(!_0x46f353['plugins']['has']('LineHeight'))return;const _0x4aa0ef=_0x46f353['plugins']['get']('TrackChangesEditing'),_0x383ad9=_0x46f353['locale'];_0x4aa0ef['enableDefaultAttributesIntegration']('lineHeight'),_0x4aa0ef['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x383ad9,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x2051ed{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',Jt,_0x5a126c,_0x25e1fa,_0x54d0d7,R,T,E,U,V,F,G,J,L,q,z,K,Q,X,Y,Z,tt,nt,it,et,st,ot,rt,ct,at,ut,ft,ht,gt,mt,kt,lt,W,Ft,H,dt,pt,wt,bt,yt,jt,St,It,At,_t,Ct,Nt,$t,vt,Dt,Ut,Bt,Ot,Mt,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x36a380){super(_0x36a380),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x57a9da,_0x3c17ad,_0x5999d6,_0x10f7db)=>{this['_model']['change'](()=>{for(const _0x16bd55 of[..._0x10f7db,..._0x5999d6])this['_model']['markers']['has'](_0x16bd55)&&_0x36a380['editing']['reconvertMarker'](_0x16bd55);});}),this['descriptionFactory']=new M(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new qt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x36a380['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x36a380['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x36a380['config']['get']('trackChanges.trackFormatChanges'),_0x36a380['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x36a380['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new $(_0x36a380,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x3383ce=this['editor'];_0x3383ce['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x490fc6,{writer:_0x2e0bc4})=>{let _0xd5a5b='suggestion:'+_0x490fc6['getAttribute']('suggestion-type')+':'+_0x490fc6['getAttribute']('id');return _0x490fc6['getAttribute']('marker-count')&&(_0xd5a5b+=':'+_0x490fc6['getAttribute']('marker-count')),_0x2e0bc4['createElement']('$marker',{'data-name':_0xd5a5b});}}),_0x3383ce['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x3383ce['model']['document']['registerPostFixer'](_0x4cf3d0=>{let _0x23fd38=!0x1;const _0x124953=Array['from'](_0x3383ce['model']['document']['differ']['getChangedMarkers']()),_0xdcc3e7=new Set();for(const {name:_0x78e17b,data:_0x1a50ce}of _0x124953){const {group:_0x1a4a77,type:_0x35f905,subType:_0x4f5a64,id:_0x14fa9f}=this['_splitMarkerName'](_0x78e17b);if('suggestion'!==_0x1a4a77)continue;const _0x18b877=_0x4f5a64?'suggestion:'+_0x35f905+':'+_0x4f5a64+':'+_0x14fa9f:'suggestion:'+_0x35f905+':'+_0x14fa9f,_0x37035c=_0x3383ce['model']['markers']['getMarkersGroup'](_0x18b877),_0x2ccdf0=_0x3383ce['model']['markers']['get'](_0x78e17b),_0x1adbbc=this['_suggestions']['get'](_0x14fa9f);if(null!=_0x1a50ce['newRange']){'formatInline'==_0x35f905&&(_0x23fd38=_0x23fd38||Wt(_0x1a50ce['newRange'],_0x78e17b,_0x4cf3d0,_0x3383ce['model']['schema']));const _0x2cbe2b='attribute'==_0x35f905&&this['_isBlockAttribute'](_0x4f5a64['split']('|')[0x0]),_0x330943='attribute'==_0x35f905&&this['_isInlineAttribute'](_0x4f5a64['split']('|')[0x0]);if(_0x1a50ce['newRange']['isCollapsed']||'$graveyard'==_0x1a50ce['newRange']['root']['rootName']||'formatBlock'==_0x35f905&&!Qt(_0x1a50ce['newRange'])||_0x2cbe2b&&!Qt(_0x1a50ce['newRange'])||_0x330943&&Xt(_0x1a50ce['newRange'])||'deletion'==_0x35f905&&Xt(_0x1a50ce['newRange'])||_0x2ccdf0&&Yt(_0x2ccdf0,_0x37035c))_0x4cf3d0['removeMarker'](_0x78e17b),_0x23fd38=!0x0;else{if(!_0x1adbbc||!_0x1adbbc['isInContent'])continue;if(_0x1a50ce['newRange']&&_0x1a50ce['oldRange']&&_0x1a50ce['newRange']['isEqual'](_0x1a50ce['oldRange']))continue;_0xdcc3e7['add'](_0x1adbbc);}}}return _0xdcc3e7['size']>0x0&&(_0x23fd38=!!this['_joinWithAdjacentSuggestions'](_0xdcc3e7)||_0x23fd38),_0x23fd38;}),_0x3383ce['model']['document']['registerPostFixer'](_0x58aa4b=>{let _0x44dfdb=!0x1;for(const _0x3bb486 of _0x3383ce['model']['document']['differ']['getChanges']())if('insert'==_0x3bb486['type'])for(const _0x529bf5 of this['_suggestions']['values']()){if(_0x529bf5['isMultiRange']||!_0x529bf5['isInContent'])continue;const _0x3574b0='formatBlock'==_0x529bf5['type'],_0x591477=this['_getAttributeKey'](_0x529bf5),_0x313798=_0x591477&&this['_isBlockAttribute'](_0x591477);if(!_0x3574b0&&!_0x313798)continue;const _0x1db240=_0x529bf5['getFirstRange']();if(_0x1db240['start']['parent']!=_0x1db240['end']['parent']&&!_0x1db240['end']['isAtEnd']){const _0x2508a3=_0x3383ce['model']['createPositionAt'](_0x1db240['start']['nodeAfter'],'end'),_0x57fa28=_0x3383ce['model']['createRange'](_0x1db240['start'],_0x2508a3);_0x58aa4b['updateMarker'](_0x529bf5['getFirstMarker'](),{'range':_0x57fa28}),_0x44dfdb=!0x0;}}return _0x44dfdb;}),_0x3383ce['model']['document']['registerPostFixer'](_0x16c51c=>this['_processAttributeChanges'](_0x16c51c)),_0x3383ce['model']['document']['registerPostFixer'](_0x2b35b0=>!_0x2b35b0['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2b35b0)),_0x3383ce['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x3383ce['model']['document']['on']('change:data',(_0x33692a,_0x5d0664)=>{if(!_0x5d0664['isLocal']||_0x5d0664['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x24cd26=_0x3383ce['model']['document']['differ']['getChanges']();if(0x0==_0x24cd26['length'])return;const _0xaa850b=[],_0x10907c=_0x24cd26['filter'](_0x1d7cdb=>'attribute'==_0x1d7cdb['type']),_0x288222=_0x24cd26['filter'](_0x206c7e=>'insert'==_0x206c7e['type']&&'$text'!=_0x206c7e['name']);for(const _0x31f50e of _0x10907c)this['_isRegisteredAttribute'](_0x31f50e['attributeKey'])&&_0xaa850b['push']({'key':_0x31f50e['attributeKey'],'newValue':_0x31f50e['attributeNewValue'],'oldValue':_0x31f50e['attributeOldValue'],'range':Zt(_0x31f50e['range'],_0x3383ce['model'])});for(const _0x2cc0d6 of _0x288222){if('rename'!=_0x2cc0d6['action']&&'refresh'!=_0x2cc0d6['action'])continue;const _0xc010c4=tn(_0x2cc0d6['position']['nodeAfter'],_0x3383ce['model']),_0x284543=_0x2cc0d6['before'];'rename'==_0x2cc0d6['action']&&_0xaa850b['push']({'key':m,'newValue':_0x2cc0d6['name'],'oldValue':_0x284543['name'],'range':_0xc010c4});for(const [_0x3dde42,_0xd76204]of _0x284543['attributes']){if(!this['_isRegisteredAttribute'](_0x3dde42))continue;const _0x45a1dd=_0x2cc0d6['attributes']['get'](_0x3dde42);_0xd76204!==_0x45a1dd&&_0xaa850b['push']({'key':_0x3dde42,'newValue':_0x45a1dd,'oldValue':_0xd76204,'range':_0xc010c4});}for(const [_0x3ba7a7,_0x382f01]of _0x2cc0d6['attributes'])this['_isRegisteredAttribute'](_0x3ba7a7)&&(_0x284543['attributes']['has'](_0x3ba7a7)||_0xaa850b['push']({'key':_0x3ba7a7,'newValue':_0x382f01,'oldValue':null,'range':_0xc010c4}));}0x0!=_0xaa850b['length']&&_0x3383ce['model']['enqueueChange'](_0x5d0664,_0x3a7c85=>{const _0x3ea341=_0x2280a6();for(const {range:_0x407b79,key:_0x48a8ec,oldValue:_0x4201be,newValue:_0x79bb31}of _0xaa850b)this['markAttributeChange'](_0x407b79,_0x48a8ec,_0x4201be,_0x79bb31,{'groupId':_0x3ea341});this['_reduceExistingSuggestions'](_0x3a7c85,_0xaa850b);});},{'priority':'lowest'}),_0x3383ce['model']['markers']['on']('update:suggestion',(_0x93fb41,_0x440062,_0x28e8ff)=>{if(null==_0x28e8ff){const {id:_0x5d1aea}=this['_splitMarkerName'](_0x440062['name']),_0x502ff1=this['_suggestions']['get'](_0x5d1aea);_0x502ff1&&_0x502ff1['addMarkerName'](_0x440062['name']);}}),_0x3383ce['model']['document']['on']('change:data',()=>{const _0x132401=Array['from'](_0x3383ce['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1274c1=>'suggestion'===this['_splitMarkerName'](_0x1274c1['name'])['group']);if(0x0===_0x132401['length'])return;_0x132401['sort']((_0x2ec56b,_0x2a322c)=>{const _0x13845b=_0x2ec56b['data']['oldRange'],_0x405587=_0x2a322c['data']['oldRange'];return null===_0x13845b&&null===_0x405587?0x0:null===_0x13845b&&null!==_0x405587?-0x1:null!==_0x13845b&&null===_0x405587?0x1:_0x13845b['start']['isBefore'](_0x405587['start'])?-0x1:0x1;});const _0xd6ee3d=new Set(),_0x13f148=new Set();for(const {name:_0x2f1b68,data:_0x327e17}of _0x132401){const {id:_0x30dffd}=this['_splitMarkerName'](_0x2f1b68);if(null===_0x327e17['oldRange']){const _0x7e5042=this['_handleNewSuggestionMarker'](_0x2f1b68);_0x13f148['add'](_0x7e5042);}else{const _0xc6318a=this['_suggestions']['get'](_0x30dffd);null!==_0x327e17['newRange']||_0xc6318a['isInContent']?(_0xd6ee3d['add'](_0xc6318a['head']),_0x13f148['add'](_0xc6318a)):this['_removeSuggestion'](_0xc6318a);}}_0x13f148['size']>0x0&&this['_refreshSuggestionsChain'](_0x13f148);for(const _0x491ce0 of _0xd6ee3d)this['fire']('suggestionChanged',_0x491ce0);}),_0x3383ce['model']['on']('applyOperation',(_0x3dc548,_0x3aebdb)=>{const _0xda2725=_0x3aebdb[0x0];if(!this['_suggestions']['size'])return;if(!_0xda2725['isDocumentOperation'])return;if(_0xda2725['batch']['isUndo']||!_0xda2725['batch']['isLocal'])return;let _0x4b62c0,_0xa9301c;switch(_0xda2725['type']){case'insert':_0x4b62c0=_0x3383ce['model']['createPositionAt'](_0xda2725['position']),_0xa9301c=_0x4b62c0['getShiftedBy'](_0xda2725['howMany']);break;case'split':_0x4b62c0=_0x3383ce['model']['createPositionAt'](_0xda2725['splitPosition']),_0xa9301c=_0x3383ce['model']['createPositionAt'](_0xda2725['moveTargetPosition']);break;case'move':_0x4b62c0=_0x3383ce['model']['createPositionAt'](_0xda2725['targetPosition']),_0xa9301c=_0x4b62c0['getShiftedBy'](_0xda2725['howMany']);break;default:return;}const _0x148342=_0x3383ce['model']['createRange'](_0x4b62c0,_0xa9301c);_0x3383ce['model']['change'](()=>{for(const {suggestion:_0x28b215,meta:_0x4729d0}of this['_findSuggestions'](_0x148342)){if(_0x28b215['isMultiRange'])continue;if('formatInline'==_0x28b215['type'])continue;const _0x1ff58f=this['_getAttributeKey'](_0x28b215);if(_0x1ff58f&&this['_isBlockAttribute'](_0x1ff58f)&&'split'!=_0xda2725['type'])continue;const _0x1e0ce7=_0x28b215['data']&&_0x28b215['data']['multipleBlocks'];('formatBlock'!=_0x28b215['type']||'split'==_0xda2725['type']&&!_0x1e0ce7)&&(_0x4729d0['containsRangeInObject']||'insertion'==_0x28b215['type']&&_0x4729d0['isOwn']||_0x28b215['getFirstRange']()['containsRange'](_0x148342)&&this['_breakSuggestionMarker'](_0x28b215,_0x4b62c0,_0xa9301c));}});},{'priority':'lowest'}),_0x3383ce['model']['on']('deleteContent',(_0x2335f9,_0x37f0db)=>{const _0x870644=_0x37f0db[0x0],_0x1cac7f=_0x37f0db[0x1];if(_0x1cac7f&&_0x1cac7f['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x870644['isCollapsed'])return;const _0x3a49b0=_0x3383ce['model']['schema'],{start:_0x19622a,end:_0x482b7b}=_0x870644['getFirstRange'](),_0x7682e4=_0x19622a['nodeAfter']&&_0x3a49b0['isLimit'](_0x19622a['nodeAfter'])?null:_0x3a49b0['getNearestSelectionRange'](_0x19622a,'forward'),_0x3a0073=_0x482b7b['nodeBefore']&&_0x3a49b0['isLimit'](_0x482b7b['nodeBefore'])?null:_0x3a49b0['getNearestSelectionRange'](_0x482b7b,'backward'),_0x1659cd=_0x3383ce['model']['createRange'](_0x7682e4?_0x7682e4['start']:_0x19622a,_0x3a0073?_0x3a0073['end']:_0x482b7b);_0x3383ce['model']['change'](_0x1350b2=>{this['markDeletion'](_0x1659cd);const _0x8d088c=_0x3383ce['model']['schema']['getNearestSelectionRange'](_0x1659cd['start']);_0x870644['is']('documentSelection')?_0x1350b2['setSelection'](_0x8d088c):_0x870644['setTo'](_0x8d088c);}),_0x2335f9['stop']();},{'priority':_0x179c84['normal']+0xa}),_0x3383ce['model']['on']('insertContent',(_0x252b23,_0x3380ac)=>{const _0x5bb126=_0x3380ac[_0x3380ac['length']-0x1];_0x5bb126&&_0x5bb126['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x3383ce['model']['change'](()=>{let _0x28c218=_0x3383ce['model']['insertContent'](_0x3380ac[0x0],_0x3380ac[0x1],_0x3380ac[0x2],{'forceDefaultExecution':!0x0});if(!_0x28c218)return;_0x252b23['return']=_0x28c218['clone']();const _0x8ee953=_0x28c218['end']['nodeBefore'],_0x4a018f=_0x3383ce['model']['schema'];_0x8ee953&&_0x4a018f['isBlock'](_0x8ee953)&&!_0x4a018f['isObject'](_0x8ee953)&&(_0x28c218=_0x3383ce['model']['createRange'](_0x28c218['start'],_0x3383ce['model']['createPositionAt'](_0x8ee953,'end'))),this['markInsertion'](_0x28c218);}),_0x252b23['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x2a097c=new v(_0x3383ce,this['_suggestions']);_0x3383ce['commands']['add']('acceptSuggestion',_0x2a097c),this['enableCommand']('acceptSuggestion');const _0x3db9cf=new D(_0x3383ce,this['_suggestions']);_0x3383ce['commands']['add']('discardSuggestion',_0x3db9cf),this['enableCommand']('discardSuggestion'),_0x3383ce['commands']['add']('acceptAllSuggestions',new B(_0x3383ce,_0x2a097c,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x3383ce['commands']['add']('discardAllSuggestions',new B(_0x3383ce,_0x3db9cf,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x3383ce['commands']['add']('acceptSelectedSuggestions',new O(_0x3383ce,_0x2a097c,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x3383ce['commands']['add']('discardSelectedSuggestions',new O(_0x3383ce,_0x3db9cf,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1cdbbf=_0x3383ce['plugins']['get']('CommentsRepository');this['listenTo'](_0x1cdbbf,'addComment',(_0x372f1b,{threadId:_0x25d81a})=>{const _0x2d66d3=this['_suggestions']['get'](_0x25d81a);_0x2d66d3&&_0x2d66d3['commentThread']&&0x1===_0x2d66d3['commentThread']['length']&&this['_updateSuggestionData'](_0x25d81a,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1cdbbf,'removeComment',(_0x4235c5,{threadId:_0x2f4f36})=>{const _0x3f5729=this['_suggestions']['get'](_0x2f4f36);_0x3f5729&&_0x3f5729['commentThread']&&!_0x3f5729['commentThread']['length']&&this['_updateSuggestionData'](_0x2f4f36,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x1124e1){const _0x976b2a=_0x5049c4([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x57dbc2=0x3d8d0df,_0x493809=0x3dfa8d7^_0x57dbc2,_0x20edc=window[_0x5049c4([0x44,0x61,0x74,0x65])][_0x5049c4([0x6e,0x6f,0x77])](),_0x1f80bf=_0x1124e1[_0x5049c4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x322e63=new window[(_0x5049c4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a73a5=>{_0x1f80bf[_0x5049c4([0x6f,0x6e,0x63,0x65])](_0x5049c4([0x72,0x65,0x61,0x64,0x79]),_0x2a73a5);}),_0x296542={[_0x5049c4([0x6b,0x74,0x79])]:_0x5049c4([0x45,0x43]),[_0x5049c4([0x75,0x73,0x65])]:_0x5049c4([0x73,0x69,0x67]),[_0x5049c4([0x63,0x72,0x76])]:_0x5049c4([0x50,0x2d,0x32,0x35,0x36]),[_0x5049c4([0x78])]:_0x5049c4([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]),[_0x5049c4([0x79])]:_0x5049c4([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]),[_0x5049c4([0x61,0x6c,0x67])]:_0x5049c4([0x45,0x53,0x32,0x35,0x36])},_0x28d4ff=_0x1f80bf[_0x5049c4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5049c4([0x67,0x65,0x74])](_0x5049c4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5bb56e(){let _0x1784a4,_0x55cd60=null,_0x5d218c=null;try{if(_0x28d4ff==_0x5049c4([0x47,0x50,0x4c]))return _0x5049c4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1784a4=_0x1aadd7(),!_0x1784a4)return _0x5049c4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1784a4[_0x5049c4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5d218c=_0x1625e8(_0x1784a4[_0x5049c4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1784a4[_0x5049c4([0x6a,0x74,0x69])])),await _0xf42e73()?_0x4fb16d()?_0x365375()?_0x5049c4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x113c69()?(_0x1784a4[_0x5049c4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5049c4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x55cd60=_0x56af87(_0x5049c4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1784a4[_0x5049c4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5049c4([0x74,0x72,0x69,0x61,0x6c])&&(_0x55cd60=_0x56af87(_0x5049c4([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x33ae5e()):_0x5049c4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5049c4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5049c4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5049c4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x365375(){const _0x21ca3d=[_0x5049c4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5049c4([0x74,0x72,0x69,0x61,0x6c])][_0x5049c4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1784a4[_0x5049c4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x20edc/0x3e8:0xe10*_0x493809;return _0x1784a4[_0x5049c4([0x65,0x78,0x70])]<_0x21ca3d;}function _0x4fb16d(){const _0x3bd1b7=_0x1784a4[_0x5049c4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3bd1b7)return!0x1;if(_0x3bd1b7[_0x5049c4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5049c4([0x2a])))return!0x0;if(_0x3bd1b7[_0x5049c4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5049c4([0x54,0x43])))return!0x0;if(_0x3bd1b7[_0x5049c4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5049c4([0x52,0x54,0x43]))){if(_0xe78e7b())return!0x0;if(_0x19e93d()||_0x2369b7())return!0x0;}return!0x1;}function _0x113c69(){const _0x3245fe=_0x1784a4[_0x5049c4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3245fe||0x0==_0x3245fe[_0x5049c4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2fa67a}=new URL(window[_0x5049c4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3245fe[_0x5049c4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2fa67a))return!0x0;const _0x1b99f4=_0x2fa67a[_0x5049c4([0x73,0x70,0x6c,0x69,0x74])](_0x5049c4([0x2e]));return _0x3245fe[_0x5049c4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xc2be1=>_0xc2be1[_0x5049c4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5049c4([0x2a])))[_0x5049c4([0x6d,0x61,0x70])](_0x59b8fb=>_0x59b8fb[_0x5049c4([0x73,0x70,0x6c,0x69,0x74])](_0x5049c4([0x2e])))[_0x5049c4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2f9015=>_0x2f9015[_0x5049c4([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1b99f4[_0x5049c4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5049c4([0x6d,0x61,0x70])](_0x19d757=>Array(_0x1b99f4[_0x5049c4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x19d757[_0x5049c4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5049c4([0x66,0x69,0x6c,0x6c])](_0x19d757[0x0]===_0x5049c4([0x2a])?_0x5049c4([0x2a]):'')[_0x5049c4([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x19d757))[_0x5049c4([0x73,0x6f,0x6d,0x65])](_0x1041ed=>_0x1b99f4[_0x5049c4([0x65,0x76,0x65,0x72,0x79])]((_0x488017,_0xa813af)=>_0x1041ed[_0xa813af]===_0x488017||_0x1041ed[_0xa813af]===_0x5049c4([0x2a])));}function _0x33ae5e(){return _0x55cd60&&_0x5d218c?new window[(_0x5049c4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x233444,_0x472898)=>{_0x55cd60[_0x5049c4([0x74,0x68,0x65,0x6e])](_0x233444,_0x472898),_0x5d218c[_0x5049c4([0x74,0x68,0x65,0x6e])](_0x2a0056=>{_0x2a0056!=_0x5049c4([0x56,0x61,0x6c,0x69,0x64])&&_0x233444(_0x2a0056);},_0x472898);}):_0x55cd60||_0x5d218c||_0x5049c4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1625e8(_0x121299,_0x3b4f16){return new window[(_0x5049c4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x53870e=>{if(_0x1d0300())return _0x53870e(_0x5049c4([0x56,0x61,0x6c,0x69,0x64]));_0x150a9b(),_0x1f80bf[_0x5049c4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5049c4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x59be7c=!0x1;const _0x398524=_0x2280a6();function _0xb42116(_0x6479df){return!!_0x6479df&&(typeof _0x6479df===_0x5049c4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x6479df===_0x5049c4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x6479df[_0x5049c4([0x74,0x68,0x65,0x6e])]===_0x5049c4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x6479df[_0x5049c4([0x63,0x61,0x74,0x63,0x68])]===_0x5049c4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2d2611(_0x35e5cb){_0x5a86be(_0x35e5cb)[_0x5049c4([0x74,0x68,0x65,0x6e])](_0x768100=>{if(!_0x768100||_0x768100[_0x5049c4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5049c4([0x6f,0x6b]))return _0x5049c4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x552877(_0x750959(_0x398524+_0x3b4f16))!=_0x768100[_0x5049c4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5049c4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5049c4([0x56,0x61,0x6c,0x69,0x64]);})[_0x5049c4([0x74,0x68,0x65,0x6e])](_0x20147f=>(_0x1f685d(),_0x20147f),()=>{const _0x87f39b=_0x8c0b7b();return null==_0x87f39b?(_0x1f685d(),_0x5049c4([0x56,0x61,0x6c,0x69,0x64])):_0x5049c4(_0x20edc-_0x87f39b>(0x27d454df^_0x57dbc2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5049c4([0x74,0x68,0x65,0x6e])](_0x53870e)[_0x5049c4([0x63,0x61,0x74,0x63,0x68])](()=>{_0x53870e(_0x5049c4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x405105=0x3ee3e5f^_0x57dbc2;function _0x1f685d(){const _0x42acbb=_0x5049c4([0x6c,0x6c,0x63,0x74,0x2d])+_0x552877(_0x750959(_0x121299)),_0x11ecd4=_0x55223f(_0x552877(window[_0x5049c4([0x4d,0x61,0x74,0x68])][_0x5049c4([0x63,0x65,0x69,0x6c])](_0x20edc/_0x405105)));window[_0x5049c4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5049c4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x42acbb,_0x11ecd4);}function _0x8c0b7b(){const _0x53eca7=_0x5049c4([0x6c,0x6c,0x63,0x74,0x2d])+_0x552877(_0x750959(_0x121299)),_0x30b276=window[_0x5049c4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5049c4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x53eca7);return _0x30b276?window[_0x5049c4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x55223f(_0x30b276),0x10)*_0x405105:null;}function _0x5a86be(_0x3b9713){return new window[(_0x5049c4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x129c17,_0x42f686)=>{_0x3b9713[_0x5049c4([0x74,0x68,0x65,0x6e])](_0x129c17,_0x42f686),window[_0x5049c4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x42f686,0x3d9041f^_0x57dbc2);});}}_0x1f80bf[_0x5049c4([0x6f,0x6e])](_0x5049c4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x22e4fc,_0x126be2)=>{if(_0x126be2[0x0]!=_0x121299)return _0x53870e(_0x5049c4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x126be2[0x1]={..._0x126be2[0x1],[_0x5049c4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x398524};},{[_0x5049c4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5049c4([0x68,0x69,0x67,0x68])}),_0x1f80bf[_0x5049c4([0x6f,0x6e])](_0x5049c4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3755a5=>{_0xb42116(_0x3755a5[_0x5049c4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x59be7c=!0x0,_0x2d2611(_0x3755a5[_0x5049c4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5049c4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5049c4([0x6c,0x6f,0x77])}),_0x322e63[_0x5049c4([0x74,0x68,0x65,0x6e])](()=>{_0x59be7c||_0x53870e(_0x5049c4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1d0300(){return _0x1f80bf[_0x5049c4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5049c4([0x76,0x69,0x65,0x77])][_0x5049c4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5049c4([0x61,0x75,0x74,0x6f]);}function _0x150a9b(){_0x1f80bf[_0x5049c4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5049c4([0x76,0x69,0x65,0x77])][_0x5049c4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5049c4([0x61,0x75,0x74,0x6f]);}}function _0x56af87(_0x3a8f2f){const _0xf5ca49=[new window[(_0x5049c4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x187501=>setTimeout(_0x187501,0x3d1ee13^_0x57dbc2)),_0x322e63[_0x5049c4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5049c4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3fc386=>{let _0xaa634f=0x0;_0x1f80bf[_0x5049c4([0x6d,0x6f,0x64,0x65,0x6c])][_0x5049c4([0x6f,0x6e])](_0x5049c4([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xa1e70d,_0x44bd74)=>{_0x44bd74[0x0][_0x5049c4([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xaa634f++,_0xaa634f==(0x3d8d127^_0x57dbc2)&&(_0x3fc386(),_0xa1e70d[_0x5049c4([0x6f,0x66,0x66])]());});}))];return window[_0x5049c4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5049c4([0x72,0x61,0x63,0x65])](_0xf5ca49)[_0x5049c4([0x74,0x68,0x65,0x6e])](()=>_0x3a8f2f);}async function _0x3cae0d(){await _0x322e63,_0x1f80bf[_0x5049c4([0x6d,0x6f,0x64,0x65,0x6c])][_0x5049c4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x36d7e7,_0x1f80bf[_0x5049c4([0x6d,0x6f,0x64,0x65,0x6c])][_0x5049c4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x36d7e7,_0x1f80bf[_0x5049c4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5049c4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xe78e7b(){return _0x1c4359(_0x5049c4([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5190f8(_0x5049c4([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5049c4([0x73,0x74,0x61,0x74,0x65])]==_0x5049c4([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x19e93d(){return _0x1c4359(_0x5049c4([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 _0x2369b7(){return _0x1c4359(_0x5049c4([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x429cc9(_0x1304b9){const _0x450c40=_0x448854();_0x1f80bf[_0x450c40]=_0x5049c4([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1304b9,_0x1304b9!=_0x5049c4([0x56,0x61,0x6c,0x69,0x64])&&_0x3cae0d();}function _0x448854(){const _0x5821c9=window[_0x5049c4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5049c4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5049c4([0x6e,0x6f,0x77])]())[_0x5049c4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5049c4([0x2e]),'');let _0x55d3ec=_0x5049c4([0x52]);for(let _0x26c616=0x0;_0x26c616<_0x5821c9[_0x5049c4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x26c616+=0x2){let _0x517cee=window[_0x5049c4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5821c9[_0x5049c4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x26c616,_0x26c616+0x2));_0x517cee>=_0x976b2a[_0x5049c4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x517cee-=_0x976b2a[_0x5049c4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x55d3ec+=_0x976b2a[_0x517cee];}return _0x55d3ec;}function _0x1aadd7(){const _0x3106b3=_0x28d4ff[_0x5049c4([0x73,0x70,0x6c,0x69,0x74])](_0x5049c4([0x2e]));if(0x3!=_0x3106b3[_0x5049c4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4abd73(_0x3106b3[0x1]);function _0x4abd73(_0x1a90a1){const _0xbea0f6=_0x510252(_0x1a90a1);return _0xbea0f6&&_0x1619e6()?_0xbea0f6:null;function _0x1619e6(){const _0x2bf609=_0xbea0f6[_0x5049c4([0x6a,0x74,0x69])],_0x41f892=window[_0x5049c4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2bf609[_0x5049c4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2bf609[_0x5049c4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x55d2b3={..._0xbea0f6,[_0x5049c4([0x6a,0x74,0x69])]:_0x2bf609[_0x5049c4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2bf609[_0x5049c4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x55d2b3[_0x5049c4([0x76,0x63])],_0x750959(_0x55d2b3)==_0x41f892;}}}async function _0xf42e73(){let _0x3f627f=!0x0;try{const _0x55da97=_0x28d4ff[_0x5049c4([0x73,0x70,0x6c,0x69,0x74])](_0x5049c4([0x2e])),[_0x2a94a8,_0x1ecdfc,_0x40d745]=_0x55da97;return _0x19a0a5(_0x2a94a8),await _0x5375ce(_0x2a94a8,_0x1ecdfc,_0x40d745),_0x3f627f;}catch{return!0x1;}function _0x19a0a5(_0x381771){const _0x7e0fcc=_0x510252(_0x381771);_0x7e0fcc&&_0x7e0fcc[_0x5049c4([0x61,0x6c,0x67])]==_0x5049c4([0x45,0x53,0x32,0x35,0x36])||(_0x3f627f=!0x1);}async function _0x5375ce(_0x10ab03,_0x5401c0,_0x577cac){const _0x5ee334=window[_0x5049c4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5049c4([0x66,0x72,0x6f,0x6d])](_0x43fcd8(_0x577cac),_0x42f2ff=>_0x42f2ff[_0x5049c4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4ab054=new window[(_0x5049c4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5049c4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x10ab03+_0x5049c4([0x2e])+_0x5401c0),_0x313225=window[_0x5049c4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5049c4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x313225)return;const _0x1435fb=await _0x313225[_0x5049c4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5049c4([0x6a,0x77,0x6b]),_0x296542,{[_0x5049c4([0x6e,0x61,0x6d,0x65])]:_0x5049c4([0x45,0x43,0x44,0x53,0x41]),[_0x5049c4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5049c4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5049c4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x313225[_0x5049c4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5049c4([0x6e,0x61,0x6d,0x65])]:_0x5049c4([0x45,0x43,0x44,0x53,0x41]),[_0x5049c4([0x68,0x61,0x73,0x68])]:{[_0x5049c4([0x6e,0x61,0x6d,0x65])]:_0x5049c4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1435fb,_0x5ee334,_0x4ab054)||(_0x3f627f=!0x1);}}function _0x510252(_0x234e79){return _0x234e79[_0x5049c4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5049c4([0x65,0x79]))?JSON[_0x5049c4([0x70,0x61,0x72,0x73,0x65])](_0x43fcd8(_0x234e79)):null;}function _0x43fcd8(_0xf5b80b){return window[_0x5049c4([0x61,0x74,0x6f,0x62])](_0xf5b80b[_0x5049c4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5049c4([0x2b]))[_0x5049c4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5049c4([0x2f])));}function _0x750959(_0x5c9d2f){let _0x2260e1=0x1505;function _0x12d617(_0x145c68){for(let _0x5ca388=0x0;_0x5ca388<_0x145c68[_0x5049c4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5ca388++){const _0x3c686c=_0x145c68[_0x5049c4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5ca388);_0x2260e1=(_0x2260e1<<0x5)+_0x2260e1+_0x3c686c,_0x2260e1&=_0x2260e1;}}function _0x7447bd(_0x4b585e){Array[_0x5049c4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4b585e)?_0x4b585e[_0x5049c4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x7447bd):_0x4b585e&&typeof _0x4b585e==_0x5049c4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5049c4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4b585e)[_0x5049c4([0x73,0x6f,0x72,0x74])]()[_0x5049c4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x40a414,_0x4f6ed])=>{_0x12d617(_0x40a414),_0x7447bd(_0x4f6ed);}):_0x12d617(window[_0x5049c4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4b585e));}return _0x7447bd(_0x5c9d2f),_0x2260e1>>>0x0;}function _0x552877(_0x1ca048){return _0x1ca048[_0x5049c4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5049c4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5049c4([0x30]));}function _0x55223f(_0x1ba2c6){return _0x1ba2c6[_0x5049c4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5049c4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5049c4([0x6a,0x6f,0x69,0x6e])]('');}function _0x1c4359(_0x6f5a41){return _0x1f80bf[_0x5049c4([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5049c4([0x68,0x61,0x73])](_0x6f5a41);}function _0x5190f8(_0x48584f){return _0x1f80bf[_0x5049c4([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5049c4([0x67,0x65,0x74])](_0x48584f);}function _0x36d7e7(){}function _0x5049c4(_0xee1f5a){return _0xee1f5a['map'](_0x4700dc=>String['fromCharCode'](_0x4700dc))['join']('');}_0x429cc9(await _0x5bb56e());}(this);}set['adapter'](_0x4e8dd1){if(this['_adapter'])throw new _0x7f7e05('track-changes-adapter-already-set',this);this['_adapter']=_0x4e8dd1;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x231d66=!0x1,toJSON:_0x5ac466=!0x1}={}){const _0x1ea9fa=[];for(const _0x57bcae of this['_suggestions']['values']())_0x231d66&&!_0x57bcae['isInContent']||_0x1ea9fa['push'](_0x57bcae);return _0x5ac466?_0x1ea9fa['map'](_0x167c37=>_0x167c37['toJSON']()):_0x1ea9fa;}['getSuggestion'](_0x503d21){const _0x2bbfb0=this['_suggestions']['get'](_0x503d21);if(!_0x2bbfb0)throw new _0x7f7e05('track-changes-suggestion-not-found',this);return _0x2bbfb0;}['hasSuggestion'](_0x8731d7){return this['_suggestions']['has'](_0x8731d7);}['addSuggestionData'](_0x4673ff){const {authorId:_0x33bc1c,id:_0xc2bd6,originalSuggestionId:_0x34c41d,attributes:_0x5dcfa3}=_0x4673ff,[_0x109840,_0x53c9e9]=_0x4673ff['type']['split'](':'),_0x5de46e=this['_suggestions']['get'](_0xc2bd6)||this['_createSuggestion'](_0x109840,_0x53c9e9,_0xc2bd6,_0x33bc1c,_0x5dcfa3,_0x34c41d);if(this['_addThreadToSuggestion'](_0x5de46e),this['_checkSuggestionCorrectness'](_0x5de46e,_0x109840,_0x53c9e9||null,_0x33bc1c),_0x5de46e['createdAt']=_0x4673ff['createdAt'],_0x5de46e['_isDataLoaded']=!0x0,_0x5dcfa3&&_0x5dcfa3['@external']){const _0x4d485a=_0x5dcfa3['@external'],_0x1ccbc1=this['_getExternalAuthor'](_0x4d485a['authorName']);_0x5de46e['authoredAt']=_0x4d485a['createdAt'],_0x5de46e['author']=_0x1ccbc1,_0x5de46e['isExternal']=!0x0;}else _0x5de46e['authoredAt']=_0x4673ff['createdAt'];switch(_0x4673ff['data']&&(_0x5de46e['data']=_0x4673ff['data']),_0x4673ff['attributes']&&(_0x5de46e['attributes']=_0x4673ff['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x5de46e['_saved']=!0x0),this['_suggestionState']['get'](_0x5de46e)){case'notReady':this['_suggestionState']['set'](_0x5de46e,'dataReady');break;case'markerReady':_0x5de46e['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x5de46e])),this['_refreshSuggestionsChain'](new Set([_0x5de46e])),this['_suggestionState']['set'](_0x5de46e,'ready'),this['fire']('suggestionLoaded',_0x5de46e)):this['_suggestionState']['set'](_0x5de46e,'removed');}return _0x5de46e;}['acceptSuggestion'](_0x2d9fef){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3d6ef6 of _0x2d9fef['getAllAdjacentSuggestions']())_0x3d6ef6['accept']();});});}['discardSuggestion'](_0x54629d){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2f3111 of _0x54629d['getAllAdjacentSuggestions']())_0x2f3111['discard']();});});}['enableCommand'](_0x967040,_0x1c10ad){const _0x39f257=this['editor']['commands']['get'](_0x967040);if(!_0x39f257)throw new _0x7f7e05('track-changes-command-not-found',this,{'commandName':_0x967040});if(this['_enabledCommands']['has'](_0x39f257))throw new _0x7f7e05('track-changes-enable-command-twice',this,{'commandName':_0x967040});this['_enabledCommands']['add'](_0x39f257),_0x1c10ad&&_0x39f257['on']('execute',(_0x3eaa4f,_0x10e6d1)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x10e6d1['length']>0x0&&_0x10e6d1[_0x10e6d1['length']-0x1]&&_0x10e6d1[_0x10e6d1['length']-0x1]['forceDefaultExecution']?_0x10e6d1['pop']():(_0x3eaa4f['return']=_0x1c10ad((..._0x3941d5)=>_0x39f257['execute'](..._0x3941d5,{'forceDefaultExecution':!0x0}),..._0x10e6d1),_0x3eaa4f['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0xb3e19c){let _0x2b94e3,_0xb063e7;const _0x918fd3=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x2b94e3=_0xb3e19c();}catch(_0x3b383f){_0xb063e7=_0x3b383f;}return _0x918fd3||(this['_isForcedDefaultExecutionBlock']=!0x1),_0xb063e7&&_0x7f7e05['rethrowUnexpectedError'](_0xb063e7,this),_0x2b94e3;}['markInsertion'](_0x6c115b,_0x3302b3=null,_0x1bd4f2={}){if(_0x6c115b['isCollapsed'])return null;const _0x24ff1b=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x1bd4f2['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3a15a6,meta:_0x5157d1}of this['_findSuggestions'](_0x6c115b,'insertion'))if(_0x5157d1['isOwn']){if(!_0x5157d1['isNextTo']){if(_0x5157d1['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!sn(_0x3a15a6,_0x1bd4f2))continue;return _0x3a15a6;}if(sn(_0x3a15a6,_0x1bd4f2))return _0x3a15a6;this['_breakSuggestionMarker'](_0x3a15a6,_0x6c115b['start'],_0x6c115b['end']);break;}if(_0x3302b3==_0x3a15a6['subType']&&sn(_0x3a15a6,_0x1bd4f2)){const _0x171305=_0x3a15a6['getFirstRange']();return _0x171305['start']['isEqual'](_0x6c115b['end'])?this['_setSuggestionRange'](_0x3a15a6,this['_model']['createRange'](_0x6c115b['start'],_0x171305['end'])):this['_setSuggestionRange'](_0x3a15a6,this['_model']['createRange'](_0x171305['start'],_0x6c115b['end'])),_0x3a15a6;}}const _0x4446d8=_0x2280a6(),_0x7af977=_0x24ff1b['id'],_0x5268aa=_0x3302b3?'insertion:'+_0x3302b3:'insertion',_0x2c86f4=this['_setSuggestionData']({'id':_0x4446d8,'type':_0x5268aa,'createdAt':new Date(),'authorId':_0x7af977,'attributes':_0x1bd4f2});return this['_addSuggestionMarker'](_0x5268aa,_0x4446d8,_0x7af977,_0x6c115b),_0x2c86f4;}['markMultiRangeInsertion'](_0x12d92d,_0xf095a6='multi',_0x4d9e2d={}){const _0x55ebb4=this['editor']['plugins']['get']('Users')['me'],_0x201bd4=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xf095a6,'join');this['_trackingSessionId']&&(_0x4d9e2d['trackingSessionId']=this['_trackingSessionId']);for(const _0x13e827 of this['getSuggestions']())if(_0x13e827['author']['id']==_0x55ebb4['id']&&'insertion'==_0x13e827['type']&&_0x13e827['subType']==_0xf095a6&&sn(_0x13e827,_0x4d9e2d)&&(_0x201bd4(_0x13e827['getRanges'](),_0x12d92d)||_0x201bd4(_0x12d92d,_0x13e827['getRanges']()))){for(const _0x4e4639 of _0x12d92d)_0x13e827['addRange'](_0x4e4639);return _0x13e827;}for(const {suggestion:_0x381c23,meta:_0x14e509}of this['_findSuggestions'](_0x12d92d,'insertion')){if(!_0x14e509['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x14e509['containsRangeInObject'])continue;if(!sn(_0x381c23,_0x4d9e2d))continue;let _0x5c8dbf=!0x0;for(const _0x46eb2e of _0x381c23['getRanges']())for(const _0x5b4a0f of _0x12d92d)if(!_0x46eb2e['containsRange'](_0x5b4a0f)){_0x5c8dbf=!0x1;break;}if(_0x5c8dbf)return _0x381c23;}const _0x295435=_0x2280a6(),_0x20ee4e=_0x55ebb4['id'],_0x33d0af='insertion:'+_0xf095a6,_0x3f47ea=this['_setSuggestionData']({'id':_0x295435,'type':_0x33d0af,'createdAt':new Date(),'authorId':_0x20ee4e,'attributes':_0x4d9e2d});for(const _0x3a0b0e of _0x12d92d)this['_addSuggestionMarker'](_0x33d0af,_0x295435,_0x20ee4e,_0x3a0b0e,x['getMultiRangeId']());return _0x3f47ea;}['markInlineFormat'](_0x259df0,_0x32db1e,_0x57c34a=null,_0x37c530={}){if(_0x57c34a=_0x57c34a||Ht(_0x32db1e),_0x259df0['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x37c530['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3fbcd2=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x57c34a,'accept');return this['forceDefaultExecution'](()=>_0x3fbcd2([_0x259df0],_0x32db1e,_0x37c530)),null;}const _0x3ccc59=this['editor']['plugins']['get']('Users')['me'],_0x3f6cb4=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x309055,meta:_0x513870}of this['_findSuggestions'](_0x259df0,'insertion'))_0x513870['isOwn']&&!_0x513870['isInsideObject']&&_0x3f6cb4['push'](..._0x309055['getRanges']());}const _0x4592f1=function(_0x5b30e3,_0x2f389b){const _0x5610d0=[];for(const _0x3eadaf of _0x2f389b){const _0x44638a=_0x5b30e3['getIntersection'](_0x3eadaf);_0x44638a&&_0x5610d0['push'](_0x44638a);}return _0x5610d0;}(_0x259df0,_0x3f6cb4),_0x6341f1=function(_0x13de2e,_0x1cab99){const _0x571ee2=[_0x13de2e];for(const _0x4d07df of _0x1cab99){let _0x3064f9=0x0;for(;_0x3064f9<_0x571ee2['length'];){const _0x5af76a=_0x571ee2[_0x3064f9]['getDifference'](_0x4d07df);_0x571ee2['splice'](_0x3064f9,0x1,..._0x5af76a),_0x3064f9+=_0x5af76a['length'];}}return _0x571ee2;}(_0x259df0,_0x3f6cb4);_0x4592f1['length']&&this['_model']['change'](()=>{for(const _0x5596c8 of _0x4592f1){const _0xb5fc3a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x57c34a,'accept');this['forceDefaultExecution'](()=>_0xb5fc3a([_0x5596c8],_0x32db1e,_0x37c530));}});for(const _0x2b60fe of _0x6341f1){let _0x31227d=null,_0x4cf8c4=_0x2b60fe['start'],_0x2cfa88=_0x2b60fe['end'];for(const {suggestion:_0x373637,meta:_0x2ac623}of this['_findSuggestions'](_0x2b60fe,'formatInline')){if(!_0x2ac623['isOwn'])continue;if(_0x373637['subType']!=_0x57c34a)continue;if(!sn(_0x373637,_0x37c530))continue;const _0x160551=_0x373637['getFirstRange']();if(_0x160551['containsRange'](_0x2b60fe,!0x0))return null;_0x4cf8c4=_0x4cf8c4['isBefore'](_0x160551['start'])?_0x4cf8c4:_0x160551['start'],_0x2cfa88=_0x2cfa88['isAfter'](_0x160551['end'])?_0x2cfa88:_0x160551['end'],_0x31227d?_0x160551['start']['isBefore'](_0x31227d['getFirstRange']()['start'])?(_0x31227d['removeMarkers'](),_0x31227d=_0x373637):_0x373637['removeMarkers']():_0x31227d=_0x373637;}const _0x588fce=this['_model']['createRange'](_0x4cf8c4,_0x2cfa88);if(_0x31227d)this['_setSuggestionRange'](_0x31227d,_0x588fce);else{const _0x18f1cb=_0x2280a6(),_0x423036=_0x3ccc59['id'];this['_setSuggestionData']({'id':_0x18f1cb,'type':'formatInline:'+_0x57c34a,'data':_0x32db1e,'createdAt':new Date(),'authorId':_0x423036,'attributes':_0x37c530}),this['_addSuggestionMarker']('formatInline:'+_0x57c34a,_0x18f1cb,_0x423036,_0x588fce);}}return null;}['markBlockFormat'](_0x6e2536,_0x2f9961,_0xcd505=[],_0x3e01f2=null,_0x258e3e={}){_0x2f9961['formatGroupId']||(_0x2f9961['formatGroupId']=_0x2f9961['commandName']),_0x2f9961['multipleBlocks']=_0x6e2536['is']('range'),_0x3e01f2=_0x3e01f2||Ht(_0x2f9961);const _0x2dd395=_0xcd505['map'](_0x490f8e=>tn(_0x490f8e,this['_model'])),_0x5db4dc=_0x6e2536['is']('range')?_0x6e2536:tn(_0x6e2536,this['_model']);if(this['_trackingSessionId']&&(_0x258e3e['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2e9306=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3e01f2,'accept');return this['forceDefaultExecution'](()=>_0x2e9306([_0x5db4dc],_0x2f9961,_0x258e3e)),null;}_0x2dd395['push'](_0x5db4dc);let _0x36fefc=!0x0;for(const _0x5345f9 of _0x2dd395)if(!this['_rangeIsInLocalUserInsertion'](_0x5345f9)){_0x36fefc=!0x1;break;}if(_0x36fefc&&'always'!==this['_trackFormatChanges']){const _0x37a130=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3e01f2,'accept');return this['forceDefaultExecution'](()=>_0x37a130([_0x5db4dc],_0x2f9961,_0x258e3e)),null;}let _0x2372e1=null,_0x27c9db=_0x5db4dc['start'],_0x417ff2=_0x5db4dc['end'];for(const {suggestion:_0x5aa33c,meta:_0x4879e1}of this['_findSuggestions'](_0x5db4dc,'formatBlock')){if(!_0x4879e1['isOwn'])continue;if(_0x4879e1['isNextTo']||_0x4879e1['containsRangeInObject']||_0x4879e1['isInsideObject'])continue;if(_0x5aa33c['data']['formatGroupId']!=_0x2f9961['formatGroupId'])continue;if(!sn(_0x5aa33c,_0x258e3e))continue;const _0xfa29c1=_0x5aa33c['getFirstRange']();if(_0x5aa33c['subType']==_0x3e01f2){if(_0xfa29c1['containsRange'](_0x5db4dc,!0x0))return null;_0x27c9db=_0x27c9db['isBefore'](_0xfa29c1['start'])?_0x27c9db:_0xfa29c1['start'],_0x417ff2=_0x417ff2['isAfter'](_0xfa29c1['end'])?_0x417ff2:_0xfa29c1['end'],_0x2372e1?_0xfa29c1['start']['isBefore'](_0x2372e1['getFirstRange']()['start'])?(_0x2372e1['removeMarkers'](),_0x2372e1=_0x5aa33c):_0x5aa33c['removeMarkers']():_0x2372e1=_0x5aa33c;}else{const _0x4b4ec4=_0x5db4dc['getIntersection'](_0xfa29c1);this['_cutOutSuggestionMarker'](_0x5aa33c,_0x4b4ec4);}}const _0x388c8e=this['editor']['plugins']['get']('Users')['me'],_0x4c3206=_0x2280a6(),_0x5a0385=_0x388c8e['id'];if(_0x2372e1)return this['_setSuggestionRange'](_0x2372e1,this['_model']['createRange'](_0x27c9db,_0x417ff2)),_0x2372e1;{const _0x4cba7a=this['_setSuggestionData']({'id':_0x4c3206,'type':'formatBlock:'+_0x3e01f2,'data':_0x2f9961,'createdAt':new Date(),'authorId':_0x5a0385,'attributes':_0x258e3e});return this['_addSuggestionMarker']('formatBlock:'+_0x3e01f2,_0x4c3206,_0x5a0385,this['_model']['createRange'](_0x27c9db,_0x417ff2)),_0x4cba7a;}}['markMultiRangeBlockFormat'](_0x5a7dbb,_0x19bbc1,_0x29846a=[],_0x380064=null,_0x247b40={}){_0x19bbc1['formatGroupId']||(_0x19bbc1['formatGroupId']=_0x19bbc1['commandName']);const _0x27d199=_0x5a7dbb[0x0];_0x19bbc1['multipleBlocks']=_0x27d199['is']('range'),_0x380064=_0x380064||Ht(_0x19bbc1);const _0x259190=_0x29846a['map'](_0xdadc8c=>tn(_0xdadc8c,this['_model'])),_0x22194f=_0x27d199['is']('range')?_0x5a7dbb:_0x5a7dbb['map'](_0x3a6042=>tn(_0x3a6042,this['_model']));if(this['_trackingSessionId']&&(_0x247b40['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x362b1c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x380064,'accept');return this['forceDefaultExecution'](()=>_0x362b1c(_0x22194f,_0x19bbc1,_0x247b40)),null;}_0x259190['push'](..._0x22194f);let _0x5597b3=!0x0;for(const _0x5b2ad1 of _0x259190)if(!this['_rangeIsInLocalUserInsertion'](_0x5b2ad1)){_0x5597b3=!0x1;break;}if(_0x5597b3&&'always'!==this['_trackFormatChanges']){const _0x479360=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x380064,'accept');return this['forceDefaultExecution'](()=>_0x479360(_0x22194f,_0x19bbc1,_0x247b40)),null;}const _0xf73e9f=this['editor']['plugins']['get']('Users')['me'];for(const _0xbc3405 of this['getSuggestions']()){const _0xf903e4=_0xbc3405['data'];if(_0xbc3405['author']['id']!=_0xf73e9f['id'])continue;if('formatBlock'!=_0xbc3405['type']||_0xf903e4['formatGroupId']!=_0x19bbc1['formatGroupId'])continue;if(!sn(_0xbc3405,_0x247b40))continue;const _0x5ed7f7=_0xbc3405['subType']==_0x380064;for(let _0x25e51a=0x0;_0x25e51a<_0x22194f['length'];_0x25e51a++){const _0x4297c8=_0x22194f[_0x25e51a];for(const _0x414742 of _0xbc3405['getMarkers']()){const _0xda3c8f=_0x414742['getRange']();if(_0x4297c8['isEqual'](_0xda3c8f)){_0x5ed7f7?(_0x22194f['splice'](_0x25e51a,0x1),_0x25e51a--):_0xbc3405['removeMarker'](_0x414742['name']);break;}}}}if(0x0==_0x22194f['length'])return null;const _0x52c55d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x380064,'join');for(const _0x313749 of this['getSuggestions']()){const _0x5f1580=_0x313749['data'];if(_0x313749['author']['id']==_0xf73e9f['id']&&('formatBlock'==_0x313749['type']&&_0x5f1580['formatGroupId']==_0x19bbc1['formatGroupId']&&_0x313749['subType']==_0x380064&&sn(_0x313749,_0x247b40)&&(_0x52c55d(_0x313749['getRanges'](),_0x22194f)||_0x52c55d(_0x22194f,_0x313749['getRanges']())))){for(const _0x205330 of _0x22194f)_0x313749['addRange'](_0x205330);return _0x313749;}}const _0x4c5e50=_0x2280a6(),_0x814293=_0xf73e9f['id'],_0x11f022='formatBlock:'+_0x380064,_0xdc98eb=this['_setSuggestionData']({'id':_0x4c5e50,'type':_0x11f022,'data':_0x19bbc1,'createdAt':new Date(),'authorId':_0x814293,'attributes':_0x247b40});for(const _0x21ab07 of _0x22194f)this['_addSuggestionMarker'](_0x11f022,_0x4c5e50,_0x814293,_0x21ab07,x['getMultiRangeId']());return _0xdc98eb;}['markDeletion'](_0x586709,_0x385c3d=null,_0x25684d={}){if(_0x586709['isCollapsed'])return null;const _0x15abfa=this['editor']['plugins']['get']('Users')['me'],_0x244289=new _0x53fd14(_0x586709['start'],_0x586709['end']);this['_trackingSessionId']&&(_0x25684d['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3a6de8,meta:_0x19333a}of this['_findSuggestions'](_0x244289,'insertion'))if(_0x19333a['isOwn']&&!_0x19333a['isNextTo']){if(_0x3a6de8['isMultiRange']){const _0x386fa8=_0x3a6de8['getRanges']()['filter'](_0x5c7b5d=>'$graveyard'!=_0x5c7b5d['root']['rootName']);_0x386fa8['every'](_0x483099=>_0x244289['containsRange'](_0x483099,!0x0))&&_0x3a6de8['discard']();if(_0x386fa8['some'](_0x30b16c=>_0x30b16c['containsRange'](_0x244289,!0x0))){const _0x11d681=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x385c3d,'accept');return this['forceDefaultExecution'](()=>_0x11d681([_0x244289],null,_0x25684d)),null;}}else{const _0x45853a=_0x244289['getIntersection'](_0x3a6de8['getFirstRange']());null!==_0x45853a&&_0x3a6de8['_onDiscard']([_0x45853a],null,_0x25684d);}}if(_0x244289['detach'](),_0x244289['isCollapsed']||'$graveyard'==_0x244289['root']['rootName'])return null;let _0xfc6353=null,_0x2a8bbf=_0x244289['start'],_0x5b87ff=_0x244289['end'];const _0x1732aa=this['_findSuggestions'](_0x244289,'deletion');for(const {suggestion:_0x3ecfd4,meta:_0x4dcdf0}of _0x1732aa){const _0x3f7b53=this['_model']['createRange'](_0x2a8bbf,_0x5b87ff);if(_0x4dcdf0['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4dcdf0['containsRangeInObject']&&!_0x4dcdf0['isInsideObject'])){if(_0x3ecfd4['isMultiRange']){if(!sn(_0x3ecfd4,_0x25684d))continue;let _0x53acd3=!0x0;for(const _0x3abda8 of _0x3ecfd4['getRanges']()){if(_0x3abda8['containsRange'](_0x3f7b53,!0x0))return _0x3ecfd4;_0x3f7b53['containsRange'](_0x3abda8)||(_0x53acd3=!0x1);}_0x53acd3&&_0x3ecfd4['discard']();}else{const _0x46bbb3=_0x3ecfd4['getFirstRange']();if(_0x46bbb3['containsRange'](_0x3f7b53,!0x0))return _0x3ecfd4;if(!sn(_0x3ecfd4,_0x25684d)){_0x3f7b53['containsRange'](_0x46bbb3)?_0x3ecfd4['removeMarkers']():_0x46bbb3['containsPosition'](_0x2a8bbf)?_0x2a8bbf=_0x46bbb3['end']:_0x46bbb3['containsPosition'](_0x5b87ff)&&(_0x5b87ff=_0x46bbb3['start']);continue;}_0x2a8bbf=_0x2a8bbf['isBefore'](_0x46bbb3['start'])?_0x2a8bbf:_0x46bbb3['start'],_0x5b87ff=_0x5b87ff['isAfter'](_0x46bbb3['end'])?_0x5b87ff:_0x46bbb3['end'],_0x25684d=Object['assign']({},_0x3ecfd4['attributes']),_0xfc6353?_0x46bbb3['start']['isBefore'](_0xfc6353['getFirstRange']()['start'])?(_0xfc6353['removeMarkers'](),_0xfc6353=_0x3ecfd4):_0x3ecfd4['removeMarkers']():_0xfc6353=_0x3ecfd4;}}}if(_0xfc6353)return this['_setSuggestionRange'](_0xfc6353,this['_model']['createRange'](_0x2a8bbf,_0x5b87ff)),_0xfc6353;{const _0x4f9fe9=_0x2280a6(),_0x192fa7=this['_model']['createRange'](_0x2a8bbf,_0x5b87ff),_0x6dc1e6=_0x15abfa['id'],_0x5d6457=_0x385c3d?'deletion:'+_0x385c3d:'deletion',_0x2f0006=this['_setSuggestionData']({'id':_0x4f9fe9,'type':_0x5d6457,'createdAt':new Date(),'authorId':_0x6dc1e6,'attributes':_0x25684d});return this['_addSuggestionMarker'](_0x5d6457,_0x4f9fe9,_0x6dc1e6,_0x192fa7),_0x2f0006;}}['markMultiRangeDeletion'](_0x42b326,_0x28b0ff='multi',_0x36106a={}){const _0x5c6bdc=this['editor']['plugins']['get']('Users')['me'],_0xe475cc=_0x42b326['map'](_0x4657aa=>new _0x53fd14(_0x4657aa['start'],_0x4657aa['end'])),_0x55c780=new Set();this['_trackingSessionId']&&(_0x36106a['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x846beb,meta:_0x1558b1}of this['_findSuggestions'](_0xe475cc,'insertion'))_0x1558b1['isOwn']&&!_0x1558b1['isNextTo']&&_0x55c780['add'](_0x846beb);for(const _0x23c357 of _0x55c780)if(_0x23c357['isMultiRange']){const _0x5d2c5c=_0x23c357['getRanges']();(!_0x23c357['attributes']||!_0x23c357['attributes']['skipNestingCheck'])&&(_0x5d2c5c['every'](_0x3731ea=>_0xe475cc['some'](_0x1e40b4=>_0x1e40b4['containsRange'](_0x3731ea,!0x0)))&&_0x23c357['discard']());if(_0xe475cc['every'](_0x3c648e=>_0x5d2c5c['some'](_0x5427a1=>_0x5427a1['containsRange'](_0x3c648e,!0x0)))){const _0xabad70=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x28b0ff,'accept');return this['forceDefaultExecution'](()=>_0xabad70(_0x42b326,null,_0x36106a)),null;}}else{const _0x24e5e6=_0x23c357['getFirstRange']();_0xe475cc['some'](_0x1f0d6f=>_0x1f0d6f['containsRange'](_0x24e5e6,!0x0))&&_0x23c357['discard']();if(_0xe475cc['every'](_0x4ee9f2=>_0x24e5e6['containsRange'](_0x4ee9f2,!0x0))){const _0x3d9ea4=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x28b0ff,'accept');return this['forceDefaultExecution'](()=>_0x3d9ea4(_0xe475cc,null,_0x36106a)),null;}}const _0x295dc8=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x28b0ff,'join');let _0x5c77ee=null;for(const _0x46ed7b of this['getSuggestions']())if(_0x46ed7b['author']['id']==_0x5c6bdc['id']&&_0x46ed7b['isInContent']&&'deletion'==_0x46ed7b['type']&&_0x46ed7b['subType']==_0x28b0ff&&sn(_0x46ed7b,_0x36106a)&&(_0x295dc8(_0x46ed7b['getRanges'](),_0xe475cc)||_0x295dc8(_0xe475cc,_0x46ed7b['getRanges']()))){if(_0x5c77ee){if(_0x46ed7b['commentThread']&&_0x46ed7b['commentThread']['length'])continue;for(const _0x568550 of _0x46ed7b['getRanges']())_0x5c77ee['isIntersectingWithRange'](_0x568550)||_0x5c77ee['addRange'](_0x568550);_0x46ed7b['removeMarkers']();}else{_0x5c77ee=_0x46ed7b;for(const _0x3c0a89 of _0xe475cc)_0x46ed7b['isIntersectingWithRange'](_0x3c0a89)||_0x46ed7b['addRange'](_0x3c0a89);}}if(_0x5c77ee)return _0x5c77ee;_0x55c780['clear']();for(const {suggestion:_0x2a54fa,meta:_0x2f5e13}of this['_findSuggestions'](_0xe475cc,'deletion'))_0x2f5e13['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2f5e13['containsRangeInObject']&&!_0x2f5e13['isInsideObject'])&&sn(_0x2a54fa,_0x36106a)&&_0x55c780['add'](_0x2a54fa);for(const _0x2d75bb of _0x55c780){const _0x3ee830=_0x2d75bb['getRanges']();if(!_0x36106a||!_0x36106a['skipNestingCheck']){if(_0xe475cc['every'](_0x50ee39=>_0x3ee830['some'](_0x8e5bac=>_0x8e5bac['containsRange'](_0x50ee39,!0x0))))return _0x2d75bb;}(!_0x2d75bb['attributes']||!_0x2d75bb['attributes']['skipNestingCheck'])&&(_0x3ee830['every'](_0x15b1f4=>_0xe475cc['some'](_0x285ec9=>_0x285ec9['containsRange'](_0x15b1f4,!0x0)))&&_0x2d75bb['discard']());}const _0x361175=_0x2280a6(),_0x1f40c5=_0x5c6bdc['id'],_0x107fbc='deletion:'+_0x28b0ff,_0x7acdd=this['_setSuggestionData']({'id':_0x361175,'type':_0x107fbc,'createdAt':new Date(),'authorId':_0x1f40c5,'attributes':_0x36106a});for(const _0x42a6ba of _0xe475cc)_0x42a6ba['detach'](),_0x42a6ba['isCollapsed']||'$graveyard'==_0x42a6ba['root']['rootName']||this['_addSuggestionMarker'](_0x107fbc,_0x361175,_0x1f40c5,_0x42a6ba,x['getMultiRangeId']());return _0x7acdd;}['markAttributeChange'](_0x51b11d,_0x119b7b,_0x4e165d,_0x5d2bda,_0x2554e0){if(_0x51b11d['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x4d501a=this['editor']['plugins']['get']('Users')['me']['id'],_0x418901=Array['from'](this['_suggestions']['values']())['filter'](_0x11686=>'attribute'==_0x11686['type']&&_0x11686['data']['key']==_0x119b7b&&_0x11686['isIntersectingWithRange'](_0x51b11d));if(this['_trackingSessionId']&&(_0x2554e0['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x5b66b9=this['_findSuggestions'](_0x51b11d,'insertion')['filter'](({meta:_0x55636a})=>_0x55636a['isOwn']&&!_0x55636a['isInsideObject']&&!_0x55636a['isNextTo'])['map'](({suggestion:_0x218504})=>_0x218504);_0x418901['unshift'](..._0x5b66b9);}const _0x4a3ec0=new Map([[_0x51b11d,_0x4e165d]]);for(const _0x185bb8 of _0x418901){const _0x3b2b8e='attribute'==_0x185bb8['type']?_0x185bb8['data']['oldValue']:void 0x0,_0x376d60=_0x185bb8['getFirstRange'](),_0x341d20=Array['from'](_0x4a3ec0['keys']())['find'](_0x456e1b=>_0x456e1b['isIntersecting'](_0x376d60));if(!_0x341d20)continue;const _0x534bba=_0x341d20['getDifference'](_0x376d60);this['_isBlockAttribute'](_0x119b7b)&&'insertion'==_0x185bb8['type']&&0x0!=_0x534bba['length']||(_0x4a3ec0['delete'](_0x341d20),_0x534bba['forEach'](_0x16ff50=>{_0x4a3ec0['set'](_0x16ff50,_0x4e165d);}),'insertion'!=_0x185bb8['type']&&_0x3b2b8e!=_0x5d2bda&&_0x4a3ec0['set'](_0x341d20['getIntersection'](_0x376d60),_0x3b2b8e));}const _0x365ed9=[];for(const [_0x44c269,_0x2fb11e]of _0x4a3ec0){const _0x48c8d8=_0x2280a6(),_0x3fcf01={'key':_0x119b7b,'oldValue':_0x2fb11e,'newValue':_0x5d2bda};_0x119b7b['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':_0x119b7b});const _0x46c339=('attribute:'+(_0x119b7b+'|'+Ht({'newValue':_0x5d2bda})))['substring'](0x0,0x3c),_0x3780dc=this['_setSuggestionData']({'id':_0x48c8d8,'type':_0x46c339,'data':_0x3fcf01,'createdAt':new Date(),'authorId':_0x4d501a,'attributes':_0x2554e0});_0x365ed9['push'](_0x3780dc),this['_addSuggestionMarker'](_0x46c339,_0x48c8d8,_0x4d501a,_0x44c269);}return _0x365ed9;}['enableDefaultAttributesIntegration'](_0x3f8ef9){this['enableCommand'](_0x3f8ef9,(_0x4cf0fd,..._0x8fb69d)=>{this['recordAttributeChanges'](()=>{_0x4cf0fd(..._0x8fb69d);});});}['registerBlockAttribute'](_0x5addd7){this['editor']['plugins']['get'](Jt)['registerBlockAttribute'](_0x5addd7);}['registerInlineAttribute'](_0x270bf6){this['editor']['plugins']['get'](Jt)['registerInlineAttribute'](_0x270bf6);}['startTrackingSession'](_0x57ec64){return this['_trackingSessionId']=void 0x0!==_0x57ec64?_0x57ec64:_0x2280a6(),this['_trackingSessionId'];}['_getAttributeKey'](_0x54afe1){return'attribute'==_0x54afe1['type']?_0x54afe1['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x4c2b8a){if(0x0==_0x4c2b8a['length'])return;const _0x1b3896=this['editor'],_0x156317=_0x1b3896['plugins']['get'](_0x54d0d7),_0xf84eeb=[];_0x1b3896['model']['change'](_0x49ea9b=>{for(let _0x262dcd=0x0;_0x262dcd<_0x4c2b8a['length'];_0x262dcd++){const _0x27adc1=_0x4c2b8a[_0x262dcd];if(_0x27adc1['baseVersion']=_0x1b3896['model']['document']['version'],_0x27adc1['isDocumentOperation']=!0x0,_0x156317['isMarkedRemoveOperation'](_0x27adc1)){const _0x17a80d=Lt(_0x27adc1['newRange'],_0x1b3896['model']);_0xf84eeb['unshift'](_0x53fd14['fromRange'](_0x17a80d));}else switch(_0x27adc1['type']){case'rename':{const _0x2e37e3=_0x27adc1['oldName'],_0x2837ab=_0x27adc1['newName'];if(_0x2e37e3==_0x2837ab)break;_0x49ea9b['batch']['addOperation'](_0x27adc1),_0x1b3896['model']['applyOperation'](_0x27adc1);const _0x4cbe39='$elementName',_0x435ad4=_0x27adc1['position'],_0x392520=_0x1b3896['model']['createRange'](_0x435ad4,_0x1b3896['model']['createPositionAt'](_0x435ad4['nodeAfter'],'end'));this['markAttributeChange'](_0x392520,_0x4cbe39,_0x2e37e3,_0x2837ab,{'groupId':_0x2280a6()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x3fa825=_0x27adc1['oldValue'],_0x2d18fb=_0x27adc1['newValue'];if(_0x3fa825==_0x2d18fb)break;_0x49ea9b['batch']['addOperation'](_0x27adc1),_0x1b3896['model']['applyOperation'](_0x27adc1);const _0x35e17b=_0x27adc1['key'];if(!this['_isRegisteredAttribute'](_0x35e17b))break;const _0x2418b3=Lt(_0x27adc1['range'],_0x1b3896['model']);this['markAttributeChange'](_0x2418b3,_0x35e17b,_0x3fa825,_0x2d18fb,{'groupId':_0x2280a6()});break;}case'insert':{_0x49ea9b['batch']['addOperation'](_0x27adc1),_0x1b3896['model']['applyOperation'](_0x27adc1);if(_0x4c2b8a[_0x262dcd+0x1]&&'move'==_0x4c2b8a[_0x262dcd+0x1]['type'])break;const _0x4eb8c6=_0x27adc1['position'],_0x43b4ef=_0x27adc1['howMany'],_0x137e0e=Lt(_0x1b3896['model']['createRange'](_0x4eb8c6,_0x4eb8c6['getShiftedBy'](_0x43b4ef)),_0x1b3896['model']);this['markInsertion'](_0x137e0e);break;}case'split':{_0x49ea9b['batch']['addOperation'](_0x27adc1),_0x1b3896['model']['applyOperation'](_0x27adc1);const _0x7bb79b=_0x27adc1['splitPosition'],_0x34e31b=_0x27adc1['moveTargetPosition'];this['markInsertion'](_0x1b3896['model']['createRange'](_0x7bb79b,_0x34e31b));break;}case'move':case'remove':_0x49ea9b['batch']['addOperation'](_0x27adc1),_0x1b3896['model']['applyOperation'](_0x27adc1);}}for(const _0x36800e of _0xf84eeb)_0x36800e['detach'](),this['markDeletion'](_0x36800e);});}['_setSuggestionRange'](_0x5bb191,_0xf443c7){const _0x25f6c3=_0x5bb191['getFirstMarker']();this['_model']['change'](_0x3f11f7=>{_0x3f11f7['updateMarker'](_0x25f6c3,{'range':_0xf443c7});});}['_addThreadToSuggestion'](_0x636a80){const _0x13c3f4=_0x636a80['id'],_0x3482cd=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x13c3f4)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3482cd,'threadId':_0x13c3f4,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4387bd=this['_commentsRepository']['getCommentThread'](_0x13c3f4);_0x4387bd['unbind']('isRemovable'),_0x4387bd['isRemovable']=!0x1,_0x636a80['commentThread']=_0x4387bd;}['_checkSuggestionCorrectness'](_0x2986e3,_0x518788,_0x36a203,_0x532011){if(_0x2986e3['type']!=_0x518788||_0x2986e3['subType']!=_0x36a203||_0x2986e3['creator']['id']!=_0x532011)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x7f7e05('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x46fed5,_0x1fce49){const _0x1cceb3=_0x46fed5['getFirstRange']();if(_0x1fce49['isEqual'](_0x1cceb3))_0x46fed5['removeMarkers']();else{if(_0x1cceb3['containsRange'](_0x1fce49)){const _0x42c258=this['_model']['createPositionAt'](_0x1fce49['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x46fed5,this['_model']['createRange'](_0x1cceb3['start'],_0x42c258));const _0x1616be=_0x2280a6(),_0x26277c=_0x46fed5['creator']['id'],_0x704b1e=_0x46fed5['type']+':'+_0x46fed5['subType'];this['_setSuggestionData']({'id':_0x1616be,'type':_0x704b1e,'createdAt':new Date(),'authorId':_0x26277c,'data':_0x46fed5['data'],'attributes':_0x46fed5['attributes']});const _0x58b3d0=this['_model']['createPositionAt'](_0x1fce49['end']['parent'],'after'),_0x142477=this['_model']['createRange'](_0x58b3d0,_0x1cceb3['end']);this['_addSuggestionMarker'](_0x704b1e,_0x1616be,_0x26277c,_0x142477);}else{if(_0x1cceb3['containsPosition'](_0x1fce49['start'])){const _0x463d53=this['_model']['createPositionAt'](_0x1fce49['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x46fed5,this['_model']['createRange'](_0x1cceb3['start'],_0x463d53));}else{const _0x424f78=this['_model']['createPositionAt'](_0x1fce49['end']['parent'],'after');this['_setSuggestionRange'](_0x46fed5,this['_model']['createRange'](_0x424f78,_0x1cceb3['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x4c46cc){for(const {suggestion:_0x1d72a4,meta:_0x5d9867}of this['_findSuggestions'](_0x4c46cc,'insertion')){if(!_0x5d9867['isOwn'])continue;const _0x2bce0c=_0x1d72a4['getRanges']();for(const _0x50d30f of _0x2bce0c)if(!_0x4c46cc['getDifference'](_0x50d30f)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x497d9a){return this['editor']['plugins']['get']('Users')['getUser'](_0x497d9a);}['_getExternalAuthor'](_0x2b1b81){const _0x5a719a=this['editor']['plugins']['get']('Users'),_0x4b0ab5=_0x107885('external:'+_0x2b1b81),_0x5f5ad2=_0x5a719a['getUser'](_0x4b0ab5);return _0x5f5ad2||_0x5a719a['addUser']({'id':_0x4b0ab5,'name':_0x2b1b81});}['_createSuggestion'](_0x2e5d84,_0x1d00ed,_0x441ab8,_0x36c5a4,_0x4e6ca2,_0x5a91ec){const _0x734826=this['_getAuthorFromId'](_0x36c5a4);if(!_0x734826)throw new _0x7f7e05('track-changes-user-not-found',this,{'authorId':_0x36c5a4,'suggestionId':_0x441ab8});const _0x504186=this['_suggestionFactory']['buildSuggestion'](_0x2e5d84,_0x1d00ed,_0x441ab8,_0x734826,_0x4e6ca2,_0x161b96=>{this['_updateSuggestionData'](_0x441ab8,{'attributes':_0x161b96});const _0x15bd46=this['getSuggestion'](_0x441ab8);this['_joinWithAdjacentSuggestions'](new Set([_0x15bd46])),this['_refreshSuggestionsChain'](new Set([_0x15bd46]));},_0x5a91ec);return this['listenTo'](_0x504186,'accept',()=>{this['_updateSuggestionData'](_0x441ab8,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x504186,'discard',()=>{this['_updateSuggestionData'](_0x441ab8,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x441ab8,_0x504186),this['_suggestionState']['set'](_0x504186,'notReady'),_0x504186;}['_splitMarkerName'](_0x12f63e){return Gt(_0x12f63e);}['_breakSuggestionMarker'](_0x372465,_0x3e6c82,_0x41ac04){const _0x360e59=_0x372465['getFirstRange'](),_0x4e912e=_0x360e59['start'],_0x21a1e3=_0x360e59['end'];this['_setSuggestionRange'](_0x372465,this['_model']['createRange'](_0x4e912e,_0x3e6c82));const _0x983ed7=_0x2280a6(),_0x343627=_0x372465['creator']['id'],_0x3f816f=_0x372465['type']+(_0x372465['subType']?':'+_0x372465['subType']:'');this['_setSuggestionData']({'id':_0x983ed7,'type':_0x3f816f,'createdAt':new Date(),'authorId':_0x343627,'originalSuggestionId':_0x372465['_originalSuggestionId']||_0x372465['id'],'attributes':_0x372465['attributes'],'data':_0x372465['data']});const _0x3462c9=this['_getAttributeKey'](_0x372465);('formatBlock'==_0x372465['type']||_0x3462c9&&this['_isBlockAttribute'](_0x3462c9))&&(_0x41ac04=this['_model']['createPositionBefore'](_0x41ac04['parent'])),this['_addSuggestionMarker'](_0x3f816f,_0x983ed7,_0x343627,this['_model']['createRange'](_0x41ac04,_0x21a1e3));}['_findSuggestions'](_0x34e081,_0x3d1219=null){const _0x1decbf=[],_0x2b827d=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x34e081)||(_0x34e081=[_0x34e081]);for(const _0x504873 of this['getSuggestions']()){if(!_0x504873['isInContent'])continue;if(_0x3d1219&&_0x504873['type']!=_0x3d1219)continue;let _0x7d4db5=!0x1;for(const _0x4753a2 of _0x504873['getRanges']()){for(const _0x40372 of _0x34e081){const _0x54b127=_0x40372['start']['isEqual'](_0x4753a2['end'])||_0x40372['end']['isEqual'](_0x4753a2['start']);if(_0x54b127||_0x40372['getIntersection'](_0x4753a2)){const _0x3d81f0=_0x40372['containsRange'](_0x4753a2)&&zt(this['_model']['schema'],_0x4753a2['start'],_0x40372),_0x470113=_0x4753a2['containsRange'](_0x40372)&&zt(this['_model']['schema'],_0x40372['start'],_0x4753a2);_0x1decbf['push']({'suggestion':_0x504873,'meta':{'isOwn':_0x2b827d==_0x504873['author'],'isNextTo':_0x54b127,'isInsideObject':_0x3d81f0,'containsRangeInObject':_0x470113}}),_0x7d4db5=!0x0;break;}}if(_0x7d4db5)break;}}return _0x1decbf;}['_addSuggestionMarker'](_0x31b0a7,_0x45f875,_0x9e58a0,_0x3d7231,_0x55f593){this['_model']['change'](_0x822154=>{let _0x3ec095='suggestion:'+_0x31b0a7+':'+_0x45f875+':'+_0x9e58a0;_0x55f593&&(_0x3ec095=_0x3ec095+':'+_0x55f593),_0x822154['addMarker'](_0x3ec095,{'range':_0x3d7231,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x5dac3e){const _0x586995=_0x5dac3e['previous'],_0x58ecfe=_0x5dac3e['next'];_0x5dac3e['previous']=null,_0x5dac3e['next']=null,null!=_0x586995&&_0x586995['next']==_0x5dac3e&&(_0x586995['next']=_0x58ecfe),null!=_0x58ecfe&&_0x58ecfe['previous']==_0x5dac3e&&(_0x58ecfe['previous']=_0x586995),'ready'==this['_suggestionState']['get'](_0x5dac3e)&&(this['_suggestionState']['set'](_0x5dac3e,'removed'),this['fire']('suggestionUnloaded',_0x5dac3e,_0x586995,_0x58ecfe));}['_setSuggestionData'](_0x401806){const _0x2127bd=_0x401806['id'],_0x19cd9c=this['addSuggestionData'](_0x401806);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x39abbc=this['editor']['plugins']['get']('PendingActions'),_0x3b05a7=_0x19cd9c['hasComments'],_0x37e7d0=_0x19cd9c['subType']?_0x19cd9c['type']+':'+_0x19cd9c['subType']:_0x19cd9c['type'],_0x3591e5=this['editor']['locale'],_0x3d415a=_0x39abbc['add'](o(_0x3591e5,'PENDING_ACTION_SUGGESTION')),_0x195d41={'id':_0x2127bd,'type':_0x37e7d0,'hasComments':_0x3b05a7,'data':_0x401806['data']||null,'originalSuggestionId':_0x401806['originalSuggestionId']||null,'attributes':_0x19cd9c['attributes']};this['_adapter']['addSuggestion'](_0x195d41)['then'](_0x3f7b20=>{_0x19cd9c['_saved']=!0x0,_0x39abbc['remove'](_0x3d415a),_0x3f7b20&&_0x3f7b20['createdAt']&&(this['_suggestions']['get'](_0x2127bd)['createdAt']=_0x3f7b20['createdAt']);})['catch'](_0x526a33=>{throw _0x3f377d('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x19cd9c['discard']();}),_0x19cd9c['stopListening'](),this['_suggestions']['delete'](_0x19cd9c['id']),this['_suggestionState']['delete'](_0x19cd9c),_0x526a33;});}return _0x19cd9c;}['_isBlockAttribute'](_0xa88afe){return this['editor']['plugins']['get'](Jt)['isBlockAttribute'](_0xa88afe);}['_isInlineAttribute'](_0x313146){return this['editor']['plugins']['get'](Jt)['isInlineAttribute'](_0x313146);}['_updateSuggestionData'](_0x213a24,_0x4da7c1){const _0x2a9086=this['editor']['plugins']['get']('PendingActions'),_0x28f3f2=this['getSuggestion'](_0x213a24);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x28f3f2['_saved']){const _0xd009c9=_0x2a9086['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x213a24,_0x4da7c1)['then'](()=>{_0x2a9086['remove'](_0xd009c9);});}else _0x28f3f2['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x213a24,_0x4da7c1);});}}['_getSuggestionData'](_0x4f0c0d){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x7f7e05('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4f0c0d);}['_handleNewSuggestionMarker'](_0x71416a){const {id:_0x95b22f,type:_0x2309ec,subType:_0x206830,authorId:_0x5810b7}=this['_splitMarkerName'](_0x71416a),_0x51ad37=this['_suggestions']['get'](_0x95b22f)||this['_createSuggestion'](_0x2309ec,_0x206830,_0x95b22f,_0x5810b7,{});switch(this['_checkSuggestionCorrectness'](_0x51ad37,_0x2309ec,_0x206830,_0x5810b7),this['_suggestionState']['get'](_0x51ad37)){case'notReady':this['_getSuggestionData'](_0x95b22f)['then'](_0x5753fb=>{let _0x20135e=Promise['resolve']();_0x5753fb['hasComments']&&(_0x20135e=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x95b22f})),_0x20135e['then'](()=>{this['addSuggestionData'](_0x5753fb)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x51ad37,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x95b22f,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x51ad37,'ready'),this['fire']('suggestionLoaded',_0x51ad37);break;case'ready':this['fire']('suggestionChanged',_0x51ad37);}return _0x51ad37['addMarkerName'](_0x71416a),_0x51ad37;}['_refreshSuggestionsChain'](_0x30358e){const _0x5ae890=Array['from'](_0x30358e),_0x219f34=_0x5ae890['filter'](_0x2f01cd=>'attribute'==_0x2f01cd['type']);this['_refreshAttributeSuggestionsChain'](_0x219f34);const _0x275e28=_0x5ae890['filter'](_0x515d28=>!_0x515d28['isMultiRange']&&'attribute'!=_0x515d28['type']),_0x22e7e4=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x243def=>!_0x243def['isMultiRange']&&'attribute'!=_0x243def['type']),_0x293322=_0x22e7e4['filter'](_0x2738a4=>!_0x30358e['has'](_0x2738a4)),_0x8f2e38=new Map(_0x22e7e4['map'](_0x2a6118=>[_0x2a6118,this['_suggestionFactory']['getSuggestionCallback'](_0x2a6118['type'],_0x2a6118['subType'],'chain')])),_0x452f03=new Map(_0x22e7e4['map'](_0x491c8c=>[_0x491c8c,_0x491c8c['getFirstRange']()])),_0x48ce7d=new Set(),_0x354cc7=new Set();for(let _0x2247c5=0x0;_0x2247c5<_0x275e28['length'];_0x2247c5++)_0x1b5d42(_0x275e28[_0x2247c5],_0x275e28,_0x2247c5+0x1);for(let _0x7ac90d=0x0;_0x7ac90d<_0x275e28['length'];_0x7ac90d++)_0x1b5d42(_0x275e28[_0x7ac90d],_0x293322,0x0);const _0x11c0f2=new Set();for(let _0x410081=0x0;_0x410081<_0x275e28['length'];_0x410081++){const _0x1e7f2b=_0x275e28[_0x410081];!_0x354cc7['has'](_0x1e7f2b)&&_0x1e7f2b['previous']&&(_0x11c0f2['add'](_0x1e7f2b['previous']),_0x1e7f2b['previous']['next']===_0x1e7f2b&&(_0x1e7f2b['previous']['next']=null),_0x1e7f2b['previous']=null),!_0x48ce7d['has'](_0x1e7f2b)&&_0x1e7f2b['next']&&(_0x11c0f2['add'](_0x1e7f2b['next']),_0x1e7f2b['next']['previous']===_0x1e7f2b&&(_0x1e7f2b['next']['previous']=null),_0x1e7f2b['next']=null);}function _0x1b5d42(_0x21bd9b,_0x25f3d2,_0x452ac2){for(let _0x595792=_0x452ac2;_0x595792<_0x25f3d2['length'];_0x595792++){const _0xe6f6da=_0x3948f1(_0x21bd9b,_0x25f3d2[_0x595792]);_0xe6f6da&&(_0xe6f6da[0x0]['next']=_0xe6f6da[0x1],_0xe6f6da[0x1]['previous']=_0xe6f6da[0x0],_0x48ce7d['add'](_0xe6f6da[0x0]),_0x354cc7['add'](_0xe6f6da[0x1]));}}function _0x3948f1(_0x3bcd5e,_0x27ae91){if(_0x3bcd5e['author']['id']!==_0x27ae91['author']['id'])return null;const _0x57d691=_0x8f2e38['get'](_0x3bcd5e)(_0x3bcd5e,_0x27ae91,_0x452f03['get'](_0x3bcd5e),_0x452f03['get'](_0x27ae91));if(!_0x57d691)return null;return _0x8f2e38['get'](_0x27ae91)(_0x3bcd5e,_0x27ae91,_0x452f03['get'](_0x3bcd5e),_0x452f03['get'](_0x27ae91))?_0x57d691[0x1]['commentThread']&&_0x57d691[0x1]['commentThread']['length']?null:_0x57d691:null;}_0x11c0f2['size']&&this['_refreshSuggestionsChain'](_0x11c0f2);}['_refreshAttributeSuggestionsChain'](_0xb04fe){if(0x0==_0xb04fe['length'])return;const _0x3cd738=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5ea4e=>'attribute'==_0x5ea4e['type']&&_0x5ea4e['_isDataLoaded']),_0x54d3c0=[],_0x3faa91=new Map();for(const _0x3fe384 of _0x3cd738){const _0x1bdb42=_0x107885(_0x3fe384['attributes']);_0x3faa91['has'](_0x1bdb42)||(_0x3faa91['set'](_0x1bdb42,_0x54d3c0['length']),_0x54d3c0['push']([]));const _0x505138=_0x3faa91['get'](_0x1bdb42);_0x54d3c0[_0x505138]['push'](_0x3fe384);}!(function(){_0x54d3c0['sort']((_0x4ef836,_0x46fdb0)=>{const _0x334aa9=_0x4ef836[0x0]['createdAt'],_0x4212d5=_0x46fdb0[0x0]['createdAt'];return _0x334aa9==_0x4212d5?_0x4ef836[0x0]['attributes']['groupId']<_0x46fdb0[0x0]['attributes']['groupId']?-0x1:0x1:_0x334aa9<_0x4212d5?-0x1:0x1;});for(const _0x458da1 of _0x54d3c0)_0x458da1['sort']((_0x5a2a21,_0x60dc83)=>_0x5a2a21['id']<_0x60dc83['id']?-0x1:0x1);}());for(let _0x43247c=0x0;_0x43247c<_0x54d3c0['length'];_0x43247c++){if(0x0==_0x54d3c0[_0x43247c]['length'])continue;const _0x32c071=[];for(let _0x6d4342=_0x43247c+0x1;_0x6d4342<_0x54d3c0['length'];_0x6d4342++)0x0!=_0x54d3c0[_0x6d4342]['length']&&_0x40de29(_0x54d3c0[_0x43247c],_0x54d3c0[_0x6d4342])&&_0x32c071['push'](_0x6d4342);for(const _0x35aa78 of _0x32c071)_0x54d3c0[_0x43247c]=_0x54d3c0[_0x43247c]['concat'](_0x54d3c0[_0x35aa78]),_0x54d3c0[_0x35aa78]=[];}for(const _0x514e2e of _0x54d3c0)for(let _0x4468e4=0x0;_0x4468e4<_0x514e2e['length'];_0x4468e4++){const _0xbd8c17=_0x514e2e[_0x4468e4+0x1]||null;_0x514e2e[_0x4468e4]['next']!==_0xbd8c17&&(_0x514e2e[_0x4468e4]['next']=_0xbd8c17);}for(const _0x3c29c5 of _0x54d3c0)for(let _0x4fed0a=0x0;_0x4fed0a<_0x3c29c5['length'];_0x4fed0a++){const _0x49930e=_0x3c29c5[_0x4fed0a-0x1]||null;_0x3c29c5[_0x4fed0a]['previous']!==_0x49930e&&(_0x3c29c5[_0x4fed0a]['previous']=_0x49930e);}function _0x40de29(_0x137ba5,_0x2cce25){if(_0x137ba5[0x0]['attributes']['groupId']!==_0x2cce25[0x0]['attributes']['groupId']&&_0x137ba5[0x0]['author']!==_0x2cce25[0x0]['author'])return!0x1;if(!function(_0x2b837d,_0x1c2ab5){if(!_0x2b837d['hasComments']&&!_0x1c2ab5['hasComments'])return!0x0;if(_0x2b837d['hasComments']&&_0x1c2ab5['hasComments'])return!0x1;if(_0x2b837d['hasComments']&&_0x1c2ab5['createdAt']<_0x2b837d['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x1c2ab5['hasComments']&&_0x2b837d['createdAt']<_0x1c2ab5['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x137ba5[0x0],_0x2cce25[0x0]))return!0x1;const _0x3f1bef=Pt(_0x137ba5[0x0]['attributes'],['groupId','trackingSessionId']),_0x4b5fe6=Pt(_0x2cce25[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x5abc0a(_0x3f1bef,_0x4b5fe6))return!0x1;if(_0x137ba5[0x0]['attributes']['groupId']==_0x2cce25[0x0]['attributes']['groupId'])return!0x0;if(_0x137ba5[0x0]['attributes']['trackingSessionId']!==_0x2cce25[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x137ba5['every'](_0x1c1a0b=>_0x2cce25['some'](_0x4b2603=>_0x1c1a0b['getFirstRange']()['isEqual'](_0x4b2603['getFirstRange']())))&&_0x2cce25['every'](_0x18fa2f=>_0x137ba5['some'](_0x179e41=>_0x18fa2f['getFirstRange']()['isEqual'](_0x179e41['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1eaa50){const _0x4daa44=Array['from'](_0x1eaa50),_0x524540=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4a7d8a=_0x524540['filter'](_0x25eb0e=>!_0x1eaa50['has'](_0x25eb0e)),_0x5323cb=new Map(_0x4daa44['map'](_0x45a937=>[_0x45a937,this['_suggestionFactory']['getSuggestionCallback'](_0x45a937['type'],_0x45a937['subType'],'join')])),_0x5dc46f=new Map(_0x524540['map'](_0x3050f1=>[_0x3050f1,_0x3050f1['getRanges']()]));for(let _0xc1af6e=0x0;_0xc1af6e<_0x4daa44['length'];_0xc1af6e++){if(_0x3f2945(this,_0x4daa44[_0xc1af6e],_0x4daa44,_0xc1af6e+0x1))return!0x0;}for(let _0x3286c1=0x0;_0x3286c1<_0x4daa44['length'];_0x3286c1++){if(_0x3f2945(this,_0x4daa44[_0x3286c1],_0x4a7d8a,0x0))return!0x0;}return!0x1;function _0x3f2945(_0x340e6a,_0xca5485,_0xb6aeb7,_0x9074cf){for(let _0x1bce5b=_0x9074cf;_0x1bce5b<_0xb6aeb7['length'];_0x1bce5b++){const _0x9547b7=_0xb6aeb7[_0x1bce5b];if(_0x9547b7['type']!==_0xca5485['type']||_0x9547b7['author']['id']!==_0xca5485['author']['id']||_0x9547b7['subType']!==_0xca5485['subType'])continue;if(!en(_0xca5485,_0x9547b7))continue;if('attribute'==_0xca5485['type']&&_0xca5485['data']['oldValue']!=_0x9547b7['data']['oldValue'])continue;if('attribute'==_0xca5485['type']&&_0x340e6a['_isBlockAttribute'](_0xca5485['data']['key']))continue;if('formatBlock'==_0xca5485['type']){const _0x1686ff=_0x340e6a['editor']['model'],_0x54b7e6=_0xca5485['getContainedElement']();if(_0x54b7e6&&(_0x1686ff['schema']['isObject'](_0x54b7e6)||_0x1686ff['schema']['isLimit'](_0x54b7e6)))continue;}const _0x875229=_0x5323cb['get'](_0xca5485),_0x13c4fb=_0x5dc46f['get'](_0xca5485),_0x21d6a5=_0x5dc46f['get'](_0x9547b7),_0x39c2c0=_0xca5485['commentThread']&&_0xca5485['commentThread']['length'],_0x503a8b=_0x9547b7['commentThread']&&_0x9547b7['commentThread']['length'];if(!_0x39c2c0&&_0x875229(_0x21d6a5,_0x13c4fb))return _0x340e6a['_joinSuggestions'](_0x9547b7,_0xca5485),_0x5dc46f['delete'](_0xca5485),!0x0;if(!_0x503a8b&&_0x875229(_0x13c4fb,_0x21d6a5))return _0x340e6a['_joinSuggestions'](_0xca5485,_0x9547b7),_0x5dc46f['delete'](_0x9547b7),!0x0;}return!0x1;}}['_joinSuggestions'](_0x810f3c,_0x50c17c){if(_0x810f3c['isMultiRange']){for(const _0x75d8ac of _0x50c17c['getRanges']())_0x810f3c['addRange'](_0x75d8ac);}else{const _0x33618d=_0x50c17c['getFirstRange']()['end'];this['_setSuggestionRange'](_0x810f3c,this['_model']['createRange'](_0x810f3c['getFirstRange']()['start'],_0x33618d));}_0x50c17c['removeMarkers']();}['_getMarkerAnnouncementText'](_0x27726f,_0x24133d,_0x19dc39){const _0x5290e2=_0x27726f['startsWith']('format')||_0x27726f['startsWith']('attribute')?'FORMATTING':_0x27726f['toUpperCase']();return o(this['editor']['locale'],_0x24133d+'_'+_0x5290e2+'_SUGGESTION_ANNOUNCEMENT',_0x19dc39);}['_initAriaMarkerChangeAnnouncements'](){const _0x5c7f3b=this['editor'];if(!_0x5c7f3b['ui'])return;const {ariaLiveAnnouncer:_0x583dab}=_0x5c7f3b['ui'];_0x20c75f(this['_model'],({left:_0x5578ca,entered:_0xee97b8})=>{for(const _0xd0c786 of _0x5578ca){const {group:_0x4f3c77,type:_0x362f67}=this['_splitMarkerName'](_0xd0c786['name']);if('suggestion'===_0x4f3c77){_0x583dab['announce'](this['_getMarkerAnnouncementText'](_0x362f67,'LEAVE'));break;}}for(const _0x376529 of _0xee97b8){const {group:_0x1a9cba,type:_0x3a9f9e}=this['_splitMarkerName'](_0x376529['name']);if('suggestion'===_0x1a9cba){_0x583dab['announce'](this['_getMarkerAnnouncementText'](_0x3a9f9e,'ENTER',_0x4239ea(_0x49f432)));break;}}});}['_processAttributeChanges'](_0x1a7cb6){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2cf21b=this['editor'],_0x171bb1=_0x2cf21b['model']['document']['differ']['getChanges']();if(0x0==_0x171bb1['length'])return!0x1;const _0x266a91=[],_0x7e4f98=_0x171bb1['filter'](_0x13d1c2=>'attribute'==_0x13d1c2['type']),_0x3bc27f=_0x171bb1['filter'](_0x122a85=>'insert'==_0x122a85['type']&&'$text'!=_0x122a85['name']),_0x407c2c=_0x171bb1['filter'](_0x344c81=>'remove'==_0x344c81['type']&&'$text'!=_0x344c81['name']);for(const _0x5a4b61 of _0x7e4f98)_0x266a91['push']({'key':_0x5a4b61['attributeKey'],'newValue':_0x5a4b61['attributeNewValue'],'oldValue':_0x5a4b61['attributeOldValue'],'range':Zt(_0x5a4b61['range'],_0x2cf21b['model'])});for(const _0x543089 of _0x3bc27f){const _0x134ecb=_0x407c2c['find'](_0x889cb9=>_0x889cb9['position']['isEqual'](_0x543089['position']));_0x134ecb&&_0x266a91['push']({'key':m,'newValue':_0x543089['name'],'oldValue':_0x134ecb['name'],'range':_0x2cf21b['model']['createRangeOn'](_0x543089['position']['nodeAfter'])});}return 0x0!=_0x266a91['length']&&this['_reduceExistingSuggestions'](_0x1a7cb6,_0x266a91);}['_processAttributeSuggestions'](_0x3a29af){let _0x40f402=!0x1;const _0x57604e=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x44f097=>_0x44f097['data']['newRange']&&_0x44f097['name']['startsWith']('suggestion:attribute:'));for(const _0xa656ac of _0x57604e){const {subType:_0x2251c,id:_0x3ef53c}=this['_splitMarkerName'](_0xa656ac['name']),_0x3ad0b7=_0x2251c['split']('|')[0x0];for(const _0x5c5e33 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x5c5e33['id']!=_0x3ef53c&&'attribute'==_0x5c5e33['type']&&_0x5c5e33['data']&&_0x5c5e33['data']['key']==_0x3ad0b7&&_0x5c5e33['getFirstRange']()['isIntersecting'](_0xa656ac['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x5c5e33,_0xa656ac['data']['newRange'],_0x3a29af),_0x40f402=!0x0);}return _0x40f402;}['recordAttributeChanges'](_0x4e6263){this['_recordAttributeSuggestions']=!0x0,_0x4e6263();}['_isRegisteredAttribute'](_0x2f6369){return this['editor']['plugins']['get'](Jt)['isRegisteredAttribute'](_0x2f6369);}['_reduceExistingSuggestions'](_0x583279,_0x458e60){if(0x0==_0x458e60['length'])return!0x1;let _0x116654=!0x1;for(const _0xd7b6f2 of _0x458e60){const _0x186222=this['_findSuggestions'](_0xd7b6f2['range'],'attribute')['filter'](_0x2acd5a=>!_0x2acd5a['meta']['isNextTo'])['map'](_0x36ebe6=>_0x36ebe6['suggestion']),_0x7fae18=_0x107885({'newValue':_0xd7b6f2['newValue']});_0x186222['filter'](_0x6187aa=>{const [_0x23d271,_0x36b795]=_0x6187aa['subType']['split']('|');return _0x23d271==_0xd7b6f2['key']&&_0x36b795!=_0x7fae18;})['forEach'](_0x1a1593=>{this['_reduceSuggestionAttributeRange'](_0x1a1593,_0xd7b6f2['range'],_0x583279),_0x116654=!0x0;});}return _0x116654;}['_reduceSuggestionAttributeRange'](_0x2b1294,_0x129060,_0xecc869){const _0x3397db=_0x2b1294['getFirstRange']()['getDifference'](_0x129060);0x0!==_0x3397db['length']?0x1!==_0x3397db['length']?this['_breakSuggestionMarker'](_0x2b1294,_0x129060['start'],_0x129060['end']):this['_setSuggestionRange'](_0x2b1294,_0x3397db[0x0]):_0xecc869['removeMarker'](_0x2b1294['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5b00e6){this['_editor']=_0x5b00e6,this['_model']=_0x5b00e6['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x175057,_0x48e5cb,_0x272887,_0x4614c3,_0x5cde3b,_0x573d0c,_0xf71138){return new x(this['_model'],{'type':_0x175057,'subType':_0x48e5cb,'id':_0x272887,'originalSuggestionId':_0xf71138,'author':_0x4614c3,'creator':_0x4614c3,'attributes':_0x5cde3b,'onAttributesChange':_0x573d0c,'onAccept':(..._0x1555b0)=>this['getSuggestionCallback'](_0x175057,_0x48e5cb,'accept')(..._0x1555b0),'onDiscard':(..._0x2d2ce8)=>this['getSuggestionCallback'](_0x175057,_0x48e5cb,'discard')(..._0x2d2ce8)});}['registerCustomCallback'](_0x1a088d,_0x587c83,_0x111d34,_0x9dc38d){const _0x160e46=_0x1a088d+':'+_0x587c83+':'+_0x111d34;this['_customCallbacks']['set'](_0x160e46,_0x9dc38d);}['getSuggestionCallback'](_0x177ee1,_0x352465,_0x43db1e){const _0x5d4151=_0x177ee1+':'+_0x352465+':'+_0x43db1e;return this['_customCallbacks']['get'](_0x5d4151)||this['_defaultCallbacks']['get'](_0x177ee1+':'+_0x43db1e);}['_registerDefaultCallbacks'](){const _0x5dbc44=()=>!0x1,_0x5dc845=_0x3f9468=>{_0x3f9468['sort']((_0x43198e,_0x4d17ad)=>_0x43198e['start']['isBefore'](_0x4d17ad['start'])?0x1:-0x1),this['_model']['change'](_0x52dece=>{for(const _0x14a443 of _0x3f9468){let _0x49734b;_0x49734b=_0x14a443['end']['isAtEnd']&&_0x14a443['end']['parent']==_0x14a443['start']['nodeAfter']?_0x52dece['createSelection'](_0x14a443['start']['nodeAfter'],'on'):_0x52dece['createSelection'](_0x14a443),this['_model']['deleteContent'](_0x49734b,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x540693=(_0x1dc03a,_0x326597)=>{_0x326597&&this['_model']['change'](_0x27d3ae=>{const {commandName:_0x2d340c,commandParams:_0x6efbe3=[]}=_0x326597,_0x28dec7=_0x1dc03a['map'](_0x47358f=>(Kt(_0x47358f)&&(_0x47358f=this['_model']['createRange'](_0x47358f['end'])),_0x47358f))['filter'](_0x4f8dd0=>'$graveyard'!==_0x4f8dd0['root']['rootName']);if(_0x28dec7['length']<0x1)return;const _0x1baaa5=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x4226bf=>_0x53fd14['fromRange'](_0x4226bf));_0x27d3ae['setSelection'](_0x28dec7);for(const _0x4e7432 of this['_editor']['commands']['commands']())_0x4e7432['refresh']();_0x6efbe3['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x2d340c,..._0x6efbe3);const _0x3e1091=_0x1baaa5['filter'](_0x37b05d=>'$graveyard'!=_0x37b05d['root']['rootName']);_0x3e1091['length']>0x0&&_0x27d3ae['setSelection'](_0x3e1091);for(const _0x2dd615 of _0x1baaa5)_0x2dd615['detach']();});},_0x2e935c=(_0x364578,_0x295390)=>0x1==_0x364578['length']&&0x1==_0x295390['length']&&_0x364578[0x0]['end']['isEqual'](_0x295390[0x0]['start']),_0x18b9ba=(_0x4d9f31,_0x13dce7,_0x3cf831,_0x5e7a76)=>nn(_0x4d9f31,_0x13dce7,_0x3cf831,_0x5e7a76)?[_0x4d9f31,_0x13dce7]:nn(_0x13dce7,_0x4d9f31,_0x5e7a76,_0x3cf831)?[_0x13dce7,_0x4d9f31]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x5dbc44),this['_defaultCallbacks']['set']('insertion:discard',_0x5dc845),this['_defaultCallbacks']['set']('insertion:join',_0x2e935c),this['_defaultCallbacks']['set']('insertion:chain',_0x18b9ba),this['_defaultCallbacks']['set']('deletion:accept',_0x5dc845),this['_defaultCallbacks']['set']('deletion:discard',_0x5dbc44),this['_defaultCallbacks']['set']('deletion:join',_0x2e935c),this['_defaultCallbacks']['set']('deletion:chain',_0x18b9ba),this['_defaultCallbacks']['set']('formatInline:accept',_0x540693),this['_defaultCallbacks']['set']('formatInline:discard',_0x5dbc44),this['_defaultCallbacks']['set']('formatInline:join',_0x2e935c),this['_defaultCallbacks']['set']('formatInline:chain',_0x5dbc44),this['_defaultCallbacks']['set']('formatBlock:accept',_0x540693),this['_defaultCallbacks']['set']('formatBlock:discard',_0x5dbc44),this['_defaultCallbacks']['set']('formatBlock:join',_0x2e935c),this['_defaultCallbacks']['set']('formatBlock:chain',_0x5dbc44),this['_defaultCallbacks']['set']('attribute:accept',_0x5dbc44),this['_defaultCallbacks']['set']('attribute:discard',(_0x418077,_0x5cfa52)=>{if(!_0x5cfa52)return;const _0x2c02b2=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x309315=>{if(_0x5cfa52['key']==m)for(const _0xdb6618 of _0x418077){const _0x15907b=_0xdb6618['start']['nodeAfter'],_0x13a684=_0x5cfa52['oldValue'];_0x309315['rename'](_0x15907b,_0x13a684);}else{if(_0x2c02b2['_isBlockAttribute'](_0x5cfa52['key'])){for(const _0x3212c2 of _0x418077)void 0x0!==_0x5cfa52['oldValue']?_0x309315['setAttribute'](_0x5cfa52['key'],_0x5cfa52['oldValue'],_0x3212c2['start']['nodeAfter']):_0x309315['removeAttribute'](_0x5cfa52['key'],_0x3212c2['start']['nodeAfter']);}else{for(const _0x3d6609 of _0x418077)_0x5cfa52['oldValue']?_0x309315['setAttribute'](_0x5cfa52['key'],_0x5cfa52['oldValue'],_0x3d6609):_0x309315['removeAttribute'](_0x5cfa52['key'],_0x3d6609);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2e935c);}}function zt(_0xaadd67,_0x3225ae,_0x4b3885){for(const _0x3cff55 of _0x3225ae['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3cff55['root']==_0x3cff55)return!0x1;if(!_0x4b3885['containsItem'](_0x3cff55))return!0x1;if(_0xaadd67['isObject'](_0x3cff55)||_0xaadd67['isLimit'](_0x3cff55))return!0x0;}return!0x1;}function Kt(_0x3ecd4f){return _0x3ecd4f['end']['parent']==_0x3ecd4f['start']['nodeAfter']&&_0x3ecd4f['end']['isAtStart'];}function Wt(_0x95eaea,_0x43bc06,_0x62d92f,_0xdc691d){const _0x5855a1=_0x23f61c=>!_0x23f61c['item']['is']('$textProxy')&&!_0xdc691d['isObject'](_0x23f61c['item']),_0x1cf80f=_0x95eaea['start']['getLastMatchingPosition'](_0x5855a1),_0x463317=_0x95eaea['end']['getLastMatchingPosition'](_0x5855a1,{'direction':'backward'});return(!_0x95eaea['start']['isEqual'](_0x1cf80f)||!_0x95eaea['end']['isEqual'](_0x463317))&&(_0x1cf80f['isBefore'](_0x463317)?_0x62d92f['updateMarker'](_0x43bc06,{'range':_0x62d92f['createRange'](_0x1cf80f,_0x463317)}):_0x62d92f['removeMarker'](_0x43bc06),!0x0);}function Ht(_0x18fec3){return _0x107885(_0x18fec3);}function Qt(_0x5ebe6e){const _0x3d3194=_0x5ebe6e['start']['nodeAfter'];return _0x3d3194&&_0x3d3194['is']('element');}function Xt(_0x18ec95){return Kt(_0x18ec95)||function(_0x5e16d1){return _0x5e16d1['start']['parent']==_0x5e16d1['end']['nodeBefore']&&_0x5e16d1['start']['isAtEnd'];}(_0x18ec95);}function Yt(_0x32a414,_0x9d44df){try{const _0x2bbffb=_0x32a414['getRange']();for(const _0x4180cb of _0x9d44df)if(_0x32a414!==_0x4180cb&&_0x2bbffb&&_0x2bbffb['isIntersecting'](_0x4180cb['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0x16d8ec,_0x5b9469){return null==_0x16d8ec['end']['nodeBefore']&&_0x16d8ec['end']['parent']==_0x16d8ec['start']['nodeAfter']?tn(_0x16d8ec['start']['nodeAfter'],_0x5b9469):_0x16d8ec;}function tn(_0x427925,_0x1d21df){const _0x36483f=_0x1d21df['schema']['isObject'](_0x427925)||_0x1d21df['schema']['isSelectable'](_0x427925);return _0x1d21df['createRange'](_0x1d21df['createPositionAt'](_0x427925,'before'),_0x36483f?_0x1d21df['createPositionAfter'](_0x427925):_0x1d21df['createPositionAt'](_0x427925,'end'));}function nn(_0x1ebf1f,_0xc227f2,_0x421807,_0x2e4151){return!!en(_0x1ebf1f,_0xc227f2)&&_0x421807['end']['isEqual'](_0x2e4151['start']);}function en(_0x3ca98a,_0x5c1606){if(!_0x3ca98a['_isDataLoaded']||!_0x5c1606['_isDataLoaded'])return!0x1;const _0x3f8e4d=new Set(Object['keys'](_0x3ca98a['attributes'])),_0x1033ec=new Set(Object['keys'](_0x5c1606['attributes']));if(_0x3f8e4d['delete']('groupId'),_0x1033ec['delete']('groupId'),0x0==_0x3f8e4d['size']&&0x0==_0x1033ec['size'])return!0x0;if(_0x3f8e4d['size']!=_0x1033ec['size'])return!0x1;const _0x263ba2={..._0x3ca98a['attributes']},_0x2c6832={..._0x5c1606['attributes']};return delete _0x263ba2['groupId'],delete _0x2c6832['groupId'],JSON['stringify'](_0x263ba2)==JSON['stringify'](_0x2c6832);}function sn(_0x1ab9ad,_0x20ba51){const _0x2636cd=on(_0x1ab9ad['attributes']),_0x6a0ce1=on(_0x20ba51);if(!_0x1ab9ad['_isDataLoaded'])return!0x1;for(const _0x19a73a of Object['keys'](_0x6a0ce1))if(!_0x5abc0a(_0x2636cd[_0x19a73a],_0x6a0ce1[_0x19a73a]))return!0x1;return!0x0;}function on(_0x448ee1){const _0x101ef8=Object['assign']({},_0x448ee1);return delete _0x101ef8['skipNestingCheck'],delete _0x101ef8['tablePasteChainId'],_0x101ef8;}class pe extends/* #__PURE__ -- @preserve */
26
+ _0x303ac1(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x49d3cd,_0x2ede45,_0x2bd731,_0x102353){super(),this['model']=_0x2ede45,this['view']=_0x2bd731,this['commentThreadController']=_0x102353,this['_editor']=_0x49d3cd,this['_acceptCommand']=_0x49d3cd['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x49d3cd['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3db578,_0x4a7bf3)=>_0x3db578||_0x4a7bf3),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x29e2a0=>_0x29e2a0&&this['_editor']['model']['canEditAt'](_0x2ede45['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4b87cc=>_0x4b87cc&&this['_editor']['model']['canEditAt'](_0x2ede45['getRanges']())),this['_pendingAction']=null,_0x2bd731['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2bd731,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2bd731,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2bd731,'change:isDirty',()=>{_0x2bd731['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 _0x4d126f=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4d126f);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x195901{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x22a54d,_0x2a41c4,_0x499dfd,_0x199acc){super(_0x22a54d),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x16b250(_0x22a54d,o(_0x22a54d,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x2a41c4['authoredAt']),this['bind']('authoredAt')['to'](_0x2a41c4),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',_0x2a41c4,'authoredAt',this,'descriptionParts',(_0x59857b,_0x8ba43e,_0x365f0f)=>{const _0x4c9932=_0x365f0f['map'](_0x4ae2b5=>ls(_0x4ae2b5['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x59857b-0x1,_0x2a41c4['author']['name'],_0x8ba43e?_0x199acc['formatDateTime'](_0x8ba43e):'',new DOMParser()['parseFromString'](_0x4c9932,'text/html')['body']['textContent']]);}),this['focusables']=new _0x4606ad(),this['focusTracker']=new _0x17a81e(),this['keystrokes']=new _0x193443(),this['focusCycler']=new _0x37f275({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x294d6a=>_0x294d6a['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x2a41c4,this['_localUser']=_0x499dfd,this['_config']=_0x199acc,_0x199acc['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x464452(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x272641}=this['_config'];this['commentsListView']=new _0x272641(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',_0x1971b1=>_0x1971b1+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x208137,_0x31f3b2)=>_0x208137||!!_0x31f3b2);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x3d5f46}=this['_config'],_0x294315=new _0x3d5f46(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x53a223=_0x294315['commentInputView'];return _0x294315['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x53a223,'value',(_0x26de67,_0x2a5706,_0x33c2cc)=>!!_0x33c2cc||_0x26de67&&!_0x2a5706),_0x53a223['on']('submit',(_0x3e234f,_0x4fa6ad)=>{this['fire']('addComment',_0x4fa6ad),_0x53a223['editor']['setData']('');}),_0x53a223['on']('cancel',()=>this['focus']()),_0x53a223['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x294315;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x559d21,_0x284113,_0xc76d40,_0x4e6342){super(_0x559d21,_0x284113,_0xc76d40,_0x4e6342),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x447142=>_0x447142&&_0x447142[0x0]?_0x447142[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x46acbc,_0xb74579)=>{let _0x191e84='';for(const _0x5792e2 of _0x46acbc)_0x191e84+='<p>'+ls(_0x5792e2['content'],_0x5792e2['color'])+'</p>';return _0xb74579?_0x191e84:_0x452a43(_0x191e84,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x4e6342['SuggestionView'](_0x559d21,_0x284113,{'formatDateTime':_0x4e6342['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 _0x30a095=this['bindTemplate'],_0x6038d3=[this['suggestionView']];return this['commentsListView']&&_0x6038d3['push'](this['commentsListView']),this['commentThreadInputView']&&_0x6038d3['push'](this['commentThreadInputView']),_0x6038d3['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x30a095['if']('isActive','ck-suggestion-wrapper--active'),_0x30a095['to']('type',_0x50f6f9=>'ck-suggestion-'+_0x50f6f9),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':_0x30a095['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x6038d3};}['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 _0x195901{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x256844,_0x56e2e5,_0x4e2bbf){super(_0x256844),this['_model']=_0x56e2e5,this['_config']=_0x4e2bbf,this['set']('description',''),this['bind']('authoredAt')['to'](_0x56e2e5),this['acceptButton']=this['_createButton'](o(_0x256844,'Accept\x20suggestion'),_0x7366eb,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x256844,'Discard\x20suggestion'),_0x29d776,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x4d114a(_0x256844,_0x56e2e5['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x4606ad([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x17a81e(),this['keystrokes']=new _0x193443(),this['focusCycler']=new _0x37f275({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x30ada0=>_0x30ada0['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x1f7836=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x1f7836['innerHTML']=this['description'],this['on']('change:description',(_0x5d5f8e,_0xd2cbec,_0xdad5d8)=>{_0x1f7836['innerHTML']=_0xdad5d8;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x45c146=this['bindTemplate'],_0x584417=[{'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':_0x45c146['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x45c146['to']('authoredAt',_0x47fe79=>this['_config']['formatDateTime'](_0x47fe79))}]}]},{'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']&&_0x584417['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':_0x584417}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x109f69,_0x481d1f,_0x490577,_0x3af4b7,_0x296964){const _0x2e61da=new _0x10b3c2(this['locale']);return _0x2e61da['set']({'label':_0x109f69,'icon':_0x481d1f,'tooltip':!0x0,'tooltipPosition':_0x296964}),_0x2e61da['extendTemplate']({'attributes':{'class':_0x490577}}),_0x2e61da['on']('execute',()=>{this['fire'](_0x3af4b7,this['_model']['id']);}),_0x2e61da;}['_setupKeyboardNavigation'](){const _0x4aed2d=this['element'];this['keystrokes']['listenTo'](_0x4aed2d);for(const _0x5d3b61 of this['focusables'])this['focusTracker']['add'](_0x5d3b61['element']),this['keystrokes']['listenTo'](_0x5d3b61['element']);this['keystrokes']['set']('enter',(_0x37fa0f,_0x39ffab)=>{_0x4aed2d===_0x37fa0f['target']&&(this['focusCycler']['focusFirst'](),_0x39ffab());}),this['keystrokes']['set']('esc',(_0x2a7c3f,_0xdd8afb)=>{_0x4aed2d!==_0x2a7c3f['target']&&(this['focus'](),_0xdd8afb());});}}class u extends _0x2051ed{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x5a126c,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4b3ca7){super(_0x4b3ca7),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x471bcb=this['editor']['config'];_0x471bcb['define']('trackChanges.SuggestionThreadView',fe),_0x471bcb['define']('trackChanges.SuggestionView',we),_0x471bcb['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x471bcb['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x4093fe,_0x2bd9ca){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x25ff93,_0x5efbd0]of this['_handleControllerBuffer']){const _0x9ad5fe=this['_suggestionToController']['has'](_0x25ff93);_0x9ad5fe||_0x5efbd0?_0x9ad5fe&&_0x5efbd0&&this['_destroyController'](_0x25ff93):this['_initializeController'](_0x25ff93);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4093fe,_0x2bd9ca);}['init'](){const _0x2602b1=this['editor'],_0x5ad94b=_0x2602b1['plugins']['get']('TrackChangesEditing'),_0x3f2d05=_0x2602b1['plugins']['get']('Annotations'),_0xb7e0b2=_0x2602b1['plugins']['get']('EditorAnnotations'),_0x4a9983=_0x2602b1['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0xb7e0b2['addSourceCollector'](()=>{const _0x42e804=[];for(const [_0x3daeac,_0x5ac567]of Array['from'](this['_suggestionToController'])){const _0x316db9=_0x3daeac['getAllAdjacentSuggestions'](),_0x335704=[];for(const _0x19dac1 of _0x316db9){if(!_0x19dac1['isInContent'])continue;if(_0x19dac1['isMultiRange']){_0x335704['push'](..._0x19dac1['getRanges']());continue;}const _0x14826f=_0x19dac1['getFirstRange']();if(_0x335704['length']>0x0){const _0x362cec=_0x335704[0x0]['getJoined'](_0x14826f);if(_0x362cec){_0x335704[0x0]=_0x362cec;continue;}}_0x335704['push'](_0x14826f);}_0x42e804['push']([_0x5ac567['view'],_0x335704]);}return _0x42e804;}),this['listenTo'](_0x5ad94b,'suggestionLoaded',(_0x2fae76,_0x3888b6)=>{this['listenTo'](_0x3888b6,'change:previous',(_0x127735,_0x14f097,_0x46a09e,_0x5ccbd8)=>{_0x3888b6['isInContent']&&(null==_0x46a09e?(this['_updateController'](_0x5ccbd8['head']),this['_handleSuggestionControllerDelayed'](_0x3888b6,!0x1)):(this['_updateController'](_0x46a09e['head']),null==_0x5ccbd8&&this['_handleSuggestionControllerDelayed'](_0x3888b6,!0x0)));}),null!==_0x3888b6['previous']?this['_updateController'](_0x3888b6['head']):this['_handleSuggestionControllerDelayed'](_0x3888b6,!0x1);}),this['listenTo'](_0x5ad94b,'suggestionUnloaded',(_0x51556a,_0x123b47,_0x31f0c0)=>{this['stopListening'](_0x123b47,'change:previous'),this['_handleControllerBuffer']['delete'](_0x123b47),this['_suggestionToController']['has'](_0x123b47)&&this['_destroyController'](_0x123b47),_0x31f0c0&&this['_updateController'](_0x31f0c0['head']);}),this['listenTo'](_0x5ad94b,'suggestionChanged',(_0x98544e,_0x160c63)=>{this['_updateController'](_0x160c63);}),this['listenTo'](_0x3f2d05,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4a9983,'addComment',(_0x562fcf,{threadId:_0x3ff651,isFromAdapter:_0xc4df07})=>{if(_0xc4df07||!_0x5ad94b['hasSuggestion'](_0x3ff651))return;const _0x8e147=_0x5ad94b['getSuggestion'](_0x3ff651);this['_suggestionToController']['get'](_0x8e147)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x16801a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x24a4ed;for(const _0x14deba in _0x16801a){const _0x1d84e1=_0x14deba,_0x2f98e5=_0x16801a[_0x1d84e1];if('trackChangesLicenseKeyValid'==_0x2f98e5||'trackChangesLicenseKeyInvalid'==_0x2f98e5||'trackChangesLicenseKeyExpired'==_0x2f98e5||'trackChangesLicenseKeyDomainLimit'==_0x2f98e5||'trackChangesLicenseKeyNotAllowed'==_0x2f98e5||'trackChangesLicenseKeyEvaluationLimit'==_0x2f98e5||'trackChangesLicenseKeyTrialLimit'==_0x2f98e5||'trackChangesLicenseKeyUsageLimit'==_0x2f98e5){delete _0x16801a[_0x1d84e1],_0x24a4ed=_0x2f98e5,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x24a4ed&&_0x16801a['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x24a4ed&&_0x16801a['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x24a4ed&&_0x16801a['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x24a4ed&&_0x16801a['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x24a4ed&&_0x16801a['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x24a4ed&&_0x16801a['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x24a4ed&&_0x16801a['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x369624){const _0x2b995a=this['_suggestionToController']['get'](_0x369624);if(!_0x2b995a)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x2b995a['view'])||null;}['getSuggestionForAnnotation'](_0x115994){const _0xb54869=this['_viewToController']['get'](_0x115994['innerView']);return _0xb54869?_0xb54869['model']:null;}['_refreshActiveMarkers'](){const _0x50ae74=this['editor']['plugins']['get']('Annotations'),_0x1850eb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4c3b6d=Array['from'](_0x50ae74['activeAnnotations'],_0x507626=>_0x507626['innerView'])['filter'](_0x2cbe66=>this['_viewToController']['has'](_0x2cbe66)),_0x5bbb2f=[];for(const _0x41f71b of _0x4c3b6d){const _0x2151ab=this['_viewToController']['get'](_0x41f71b)['model']['getAllAdjacentSuggestions']();_0x5bbb2f['push'](..._0x2151ab['reduce']((_0xe0b09b,_0x8d0ad2)=>[..._0xe0b09b,..._0x8d0ad2['getMarkerNames']()],[]));}_0x1850eb['activeMarkers']=_0x5bbb2f;}['_addUIComponentsToFactory'](){const _0x6c1110=this['editor'],_0x2d6132=_0x6c1110['locale'],_0x30413d=o(_0x2d6132,'Track\x20changes'),_0x3fe348=new _0x1fcff8([{'type':'switchbutton','model':new _0x5636c8({'withText':!0x0,'isToggleable':!0x0,'label':_0x30413d,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x5636c8({'withText':!0x0,'label':o(_0x2d6132,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5636c8({'withText':!0x0,'label':o(_0x2d6132,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5636c8({'withText':!0x0,'label':o(_0x2d6132,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5636c8({'withText':!0x0,'label':o(_0x2d6132,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x6c1110['plugins']['has']('TrackChangesPreview')&&_0x3fe348['addMany']([{'type':'separator'},{'type':'button','model':new _0x5636c8({'withText':!0x0,'label':o(_0x2d6132,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x183fcd of _0x3fe348)if(ke(_0x183fcd)){const _0x3bff8c=_0x6c1110['commands']['get'](_0x183fcd['model']['commandName']);_0x183fcd['model']['bind']('isOn','isEnabled')['to'](_0x3bff8c,'value','isEnabled');}_0x6c1110['ui']['componentFactory']['add']('trackChanges',_0xb3f04a=>this['_createToolbarButton'](_0xb3f04a,_0x3fe348,_0x30413d)),_0x6c1110['ui']['componentFactory']['add']('menuBar:trackChanges',_0x5263e4=>this['_createMenuBarMenu'](_0x5263e4,_0x3fe348,_0x30413d));}['_createToolbarButton'](_0x15e7da,_0x2a4168,_0x359843){const _0x45c817=_0x58693a(_0x15e7da,_0x16b1b1),_0x261033=this['editor']['commands']['get']('trackChanges');_0x45c817['buttonView']['set']({'tooltip':_0x359843,'label':_0x359843,'icon':_0x176232}),_0x45c817['buttonView']['bind']('isOn')['to'](_0x261033,'value'),_0x45c817['buttonView']['on']('execute',()=>{_0x261033['execute'](),this['editor']['editing']['view']['focus']();}),_0x29c746(_0x45c817,_0x2a4168,{'role':'menu'});const _0x23fdf4=[];for(const _0x43533b of _0x2a4168)ke(_0x43533b)&&_0x23fdf4['push'](this['editor']['commands']['get'](_0x43533b['model']['commandName']));const _0x218f90=_0x45c817['buttonView'];return _0x218f90['actionView']['unbind']('isEnabled'),_0x218f90['arrowView']['unbind']('isEnabled'),_0x218f90['actionView']['bind']('isEnabled')['to'](_0x261033,'isEnabled'),_0x218f90['arrowView']['bind']('isEnabled')['toMany'](_0x23fdf4,'isEnabled',(..._0x2d583f)=>_0x2d583f['some'](_0x3903a6=>_0x3903a6)),_0x45c817['on']('execute',_0x50b2c5=>{this['editor']['execute'](_0x50b2c5['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x45c817;}['_createMenuBarMenu'](_0x29dae7,_0x285106,_0xc536eb){const _0x257810=new _0x409ba2(_0x29dae7),_0x55cb81=this['editor']['commands']['get']('trackChanges');_0x257810['buttonView']['set']({'label':_0xc536eb,'icon':_0x176232});const _0x13939f=new _0x263b81(_0x29dae7);for(const _0x9f3b94 of _0x285106){if('separator'==_0x9f3b94['type']){_0x13939f['items']['add'](new _0x4d6c3f(_0x29dae7));continue;}const _0x5b9e4e=new _0x8106ff(_0x29dae7,_0x257810),_0x2b6be3=new _0x2a02a7(_0x29dae7),_0x1dbf39=_0x9f3b94['model'];_0x2b6be3['bind'](...Object['keys'](_0x1dbf39))['to'](_0x1dbf39),_0x2b6be3['delegate']('execute')['to'](_0x257810),_0x2b6be3['on']('execute',()=>{this['editor']['execute'](_0x1dbf39['commandName']),this['editor']['editing']['view']['focus']();}),_0x5b9e4e['children']['add'](_0x2b6be3),_0x13939f['items']['add'](_0x5b9e4e);}return _0x257810['bind']('isEnabled')['to'](_0x55cb81,'isEnabled'),_0x257810['panelView']['children']['add'](_0x13939f),_0x257810;}['_initializeController'](_0x38ebce){const _0x130b81=this['editor'],_0x15d068=_0x130b81['config'],_0xd60c65=_0x130b81['plugins']['get']('Annotations'),_0x365c13=_0x130b81['plugins']['get']('CommentsRepository'),_0x5c1c6f=_0x130b81['plugins']['get']('EditorAnnotations'),_0x1f9659=_0x130b81['plugins']['get'](_0x5a126c)['me'],_0x2e461b=_0x15d068['get']('trackChanges')['SuggestionThreadView'],_0x3934af=_0x15d068['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2dc77f,CommentThreadInputView:_0x564c23}=_0x130b81['plugins']['get']('CommentsUI');let _0x14f8b6,_0x1312a8,_0x1ebeef;this['_annotationViews']['has'](_0x38ebce['id'])?(_0x1312a8=this['_annotationViews']['get'](_0x38ebce['id']),_0x14f8b6=_0x1312a8['mainView']):(_0x14f8b6=new _0x2e461b(_0x130b81['locale'],_0x38ebce,_0x1f9659,{'disableComments':this['_disableComments'],'editorConfig':{..._0x15d068['get']('comments.editorConfig'),'licenseKey':_0x15d068['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x15d068['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x15d068['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x15d068['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x34f158(_0x15d068['get']('locale'),_0x130b81['locale']),'CommentView':_0x15d068['get']('comments')['CommentView'],'CommentsListView':_0x2dc77f,'CommentThreadInputView':_0x564c23,'SuggestionView':_0x3934af}),_0x14f8b6['suggestionView']['acceptButton']['on']('execute',()=>{_0x130b81['editing']['view']['focus']();}),_0x14f8b6['suggestionView']['discardButton']['on']('execute',()=>{_0x130b81['editing']['view']['focus']();}),_0x1312a8=_0xd60c65['createAnnotationView'](this['editor']['locale'],_0x14f8b6),_0x1312a8['bind']('isDirty')['to'](_0x14f8b6,'isDirty'),_0x1312a8['bind']('length')['to'](_0x14f8b6),_0x1312a8['bind']('type')['to'](_0x14f8b6,'type',_0x293043=>'suggestion-'+_0x293043),_0x14f8b6['on']('escape',()=>{_0x1ebeef['fire']('escape');}),this['_annotationViews']['set'](_0x38ebce['id'],_0x1312a8));const _0x2af643=_0x365c13['createCommentThreadController'](_0x38ebce['commentThread'],_0x14f8b6),_0x3ddb83=new pe(_0x130b81,_0x38ebce,_0x14f8b6,_0x2af643),_0x39a69b=_0x38ebce['getAllAdjacentSuggestions']()['filter'](_0x38a1e5=>_0x38a1e5['isInContent']);_0x14f8b6['descriptionParts']=_0x130b81['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x39a69b),this['_suggestionToController']['set'](_0x38ebce,_0x3ddb83),this['_viewToController']['set'](_0x14f8b6,_0x3ddb83);const _0x394f3a=()=>{const _0x14f17e=[],_0x43ddad=_0x38ebce['getAllAdjacentSuggestions']()['filter'](_0x180743=>_0x180743['isInContent']);for(const _0x1fe672 of _0x43ddad)_0x14f17e['push'](..._0x1fe672['getMarkers']());return _0x344ec9(_0x130b81['editing'],_0x14f17e);};_0x1ebeef=_0xd60c65['createAnnotation']({'view':_0x1312a8,'target':_0x394f3a,'type':()=>'suggestion-'+_0x3ddb83['view']['type'],'isVisible':!!_0x394f3a()}),_0x365c13['_bindAnnotationToEditors'](_0x14f8b6,_0x1ebeef),_0xd60c65['add'](_0x1ebeef),_0x5c1c6f['registerAnnotation'](_0x1ebeef);}['_destroyController'](_0x193472){const _0x4de5f9=this['editor']['plugins']['get']('CommentsRepository'),_0x2f2564=this['editor']['plugins']['get']('Annotations'),_0x29d68b=this['_suggestionToController']['get'](_0x193472),_0x205350=_0x29d68b['view'],_0x44fc10=_0x2f2564['getByInnerView'](_0x205350);_0x4de5f9['_unbindEditors'](_0x205350),_0x44fc10&&_0x2f2564['remove'](_0x44fc10),this['_suggestionToController']['delete'](_0x193472),this['_viewToController']['delete'](_0x205350),_0x29d68b['destroy']();}['_updateController'](_0x57605c){if(!_0x57605c['isInContent']||!this['_suggestionToController']['has'](_0x57605c))return;const _0xbc3d3e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x56b8d1=this['_suggestionToController']['get'](_0x57605c),_0x53304e=_0x57605c['getAllAdjacentSuggestions']();_0x56b8d1['view']['descriptionParts']=_0xbc3d3e['descriptionFactory']['getDescriptions'](_0x53304e);}['destroy'](){for(const _0x9cc3e7 of this['_suggestionToController']['keys']())this['_destroyController'](_0x9cc3e7);for(const _0x5c89ed of this['_annotationViews']['values']())_0x5c89ed['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x5e3ee3){return'model'in _0x5e3ee3;}class Ne extends _0x2051ed{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x1366e0){this['editor']['plugins']['get'](d)['adapter']=_0x1366e0;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x4902d0){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x4902d0);}['getSuggestions']({skipNotAttached:_0x3274b4=!0x1,toJSON:_0x5b9f83=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x3274b4,'toJSON':_0x5b9f83});}['getSuggestion'](_0x1c8654){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x1c8654);}}const p=['Pagination'];class re extends _0x2051ed{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x521737=this['editor'];if(_0x521737['config']['define']('trackChangesData.editorCreator',_0x19d26d=>{const _0x237470=_0x521737['model']['document']['getRootNames']()['reduce']((_0x279acc,_0x5de57f)=>(_0x279acc[_0x5de57f]='',_0x279acc),{});return _0x521737['constructor']['create'](_0x237470,_0x19d26d);}),'function'!=typeof _0x521737['config']['get']('trackChangesData')['editorCreator'])throw new _0x7f7e05('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x8c895){return P(this['editor'],!0x0,_0x8c895);}['getDataWithDiscardedSuggestions'](_0x2d2bb4){return P(this['editor'],!0x1,_0x2d2bb4);}}class Fe extends _0x2051ed{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xcb33e){function _0x405103(_0x54ca78){return _0x54ca78['map'](_0x832367=>String['fromCharCode'](_0x832367))['join']('');}super(_0xcb33e),this['result']='end',_0xcb33e[_0x405103([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x405103([0x76,0x69,0x65,0x77])][_0x405103([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x405103([0x61,0x75,0x74,0x6f]),_0xcb33e[_0x405103([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x405103([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x405103([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x405103([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x405103([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 De(_0x5256b3){return void 0x0!==_0x5256b3['getRootsAttributes'];}async function P(_0x20a4b6,_0x33919d,_0x181162){const _0x578d7c=_0x2ef362(_0x20a4b6,p);_0x578d7c['plugins']['push'](d,Fe),_0x578d7c['rootsAttributes']=De(_0x20a4b6)?_0x20a4b6['getRootsAttributes']():void 0x0;const _0x4e8e75=document['createDocumentFragment'](),_0x580df3=_0x20a4b6['config']['get']('trackChangesData')['editorCreator'],_0xc51f87=await _0x580df3(_0x578d7c,()=>function(_0x48d919){const _0x1e542e=document['createElement']('div');return _0x48d919['appendChild'](_0x1e542e),_0x1e542e;}(_0x4e8e75));!function(_0x1f47f3,_0x46209a){const _0x6213ee=_0x1f47f3['model']['document']['getRootNames']()['reduce']((_0x2b67e5,_0x48ea77)=>(_0x2b67e5[_0x48ea77]=_0x1f47f3['data']['get']({'rootName':_0x48ea77}),_0x2b67e5),{}),_0x46697b=_0x1f47f3['plugins']['get']('Users')['users']['map'](_0x5add30=>({'id':_0x5add30['id'],'name':_0x5add30['name']})),_0x4325a9=_0x1f47f3['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x15e89a=_0x1f47f3['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x302caf=_0x46209a['plugins']['get']('Users'),_0x44207d=_0x46209a['plugins']['get']('TrackChangesEditing'),_0x40ea61=_0x46209a['plugins']['get']('CommentsRepository');for(const _0x27e47b of _0x40ea61['getCommentThreads']())_0x27e47b['remove']();for(const _0x8bf5b8 of _0x46697b)_0x302caf['getUser'](_0x8bf5b8['id'])||_0x302caf['addUser'](_0x8bf5b8);_0x302caf['me']||_0x302caf['useAnonymousUser']();for(const _0x16b5eb of _0x15e89a)_0x40ea61['addCommentThread'](_0x16b5eb);for(const _0x35366b of _0x4325a9)_0x44207d['addSuggestionData'](_0x35366b);_0x46209a['data']['set'](_0x6213ee);}(_0x20a4b6,_0xc51f87),_0xc51f87['execute'](_0x33919d?'acceptAllSuggestions':'discardAllSuggestions');const _0x4c01a3=De(_0xc51f87)?_0xc51f87['getFullData'](_0x181162):_0xc51f87['data']['get'](_0x181162);return await _0xc51f87['destroy'](),_0x4c01a3;}class Me extends _0x195901{['options'];constructor(_0x142933,_0x19ac8c){super(_0x142933),this['options']=_0x19ac8c,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'](_0xa28256,_0x400c20){if(!this['element'])return;const _0x192ac1=[];for(const [_0x108bfa,_0x10884b]of _0xa28256){const _0x3facb1=document['createElement']('div');_0x3facb1['setAttribute']('data-ck-root-name',_0x108bfa),_0x3facb1['className']=_0x10884b['classes']+'\x20ck-track-changes-preview__root-container',_0x3facb1['innerHTML']=_0x10884b['content'],_0x192ac1['push'](_0x3facb1);}_0x400c20(this['element'],_0x192ac1),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x6f992a{constructor(_0x3d59bb){super(_0x3d59bb),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x2fa1b3=this['editor'],_0x5869d0=_0x2fa1b3['locale'],_0x3e5bbf=_0x2fa1b3['plugins']['get']('Dialog');let _0x5133f2;const _0x20a8bc=function(_0x1ca7fd){const _0x3c0f87={};if('editables'in _0x1ca7fd['ui']['view']){for(const [_0x570b29,_0x4517d8]of Object['entries'](_0x1ca7fd['ui']['view']['editables']))_0x3c0f87[_0x570b29]=_0x4517d8['element'];}else _0x3c0f87[_0x1ca7fd['model']['document']['getRootNames']()[0x0]]=_0x1ca7fd['ui']['view']['editable']['element'];return _0x3c0f87;}(_0x2fa1b3),_0x53b4f8=function(_0x3fee9f){let _0x1e00b8=0x0;for(const _0x294ccb of Object['values'](_0x3fee9f))_0x1e00b8=Math['max'](_0x1e00b8,_0x294ccb['getBoundingClientRect']()['width']);let _0x52d850=0x0;for(const _0x1ce3be of Object['values'](_0x3fee9f))_0x52d850+=_0x1ce3be['getBoundingClientRect']()['height'];const _0x4d00c1=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x16eb16=Math['min'](_0x52d850,_0x4d00c1);return{'width':_0x1e00b8,'height':_0x16eb16};}(_0x20a8bc);_0x3e5bbf['show']({'id':'finalContentPreview','title':o(_0x5869d0,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x5869d0,{'dialogRects':_0x53b4f8}),'onHide':()=>{_0x5133f2['detachFromDom']();},'onShow':()=>{_0x2fa1b3['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x49ea5c=>{const _0x3ce780=this['_standarizeRootsData'](_0x49ea5c,_0x2fa1b3,_0x20a8bc);_0x3e5bbf['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x3ce780,_0x2fa1b3['config']['get']('trackChanges.preview.renderFunction'));}),_0x5133f2=new _0x447b17(_0x5869d0,[_0x3e5bbf['view']]),_0x5133f2['attachToDom'](),_0x5133f2['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x2fa1b3['once']('destroy',()=>{_0x5133f2['detachFromDom']();});const _0x5246fb=_0x3e5bbf['view']['headerView']['class'];_0x3e5bbf['view']['headerView']['class']=_0x5246fb?_0x5246fb+'\x20ck-reset_all':'ck-reset_all',_0x3e5bbf['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x3e5bbf['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x387d1a=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x312a66=_0x387d1a['previewMode'],_0x4905b9={};if('$labels'===_0x312a66){for(const _0x39c338 of _0x387d1a['getMergeFieldsIds']())_0x4905b9[_0x39c338]=_0x387d1a['getLabel'](_0x39c338)||_0x39c338;}else{const _0x16a01a='$defaultValues'===_0x312a66?_0x387d1a['getDefaultValues']():_0x387d1a['getDataSetValues'](_0x312a66,!0x0);for(const _0x4adc8f of Object['entries'](_0x16a01a)){const [_0x5317d5,_0x573547]=_0x4adc8f;_0x4905b9[_0x5317d5]=null!==_0x573547?_0x573547:_0x387d1a['getLabel'](_0x5317d5)||_0x5317d5;}}return{'mergeFieldsData':_0x4905b9};}['_standarizeRootsData'](_0x5816e8,_0x3c827a,_0x1f4dbe){let _0x413b85;if('string'==typeof _0x5816e8){const _0x57fb3d=_0x3c827a['model']['document']['getRootNames']()[0x0];_0x413b85={[_0x57fb3d]:_0x5816e8};}else _0x413b85=_0x5816e8;const _0x3bc59d=this['_fixMediaEmbeds'](_0x413b85,_0x3c827a),_0x4e42f8=function(_0x5c969a,_0x269a86){for(const [_0x24dff5,_0x105033]of _0x5c969a)_0x105033['classes']=_0x269a86[_0x24dff5]['classList']['value']['replace']('ck-focused','');return _0x5c969a;}(this['_sortRoots'](_0x3c827a)['reduce']((_0x2c5319,_0x485ad5)=>(_0x2c5319['push']([_0x485ad5,{'content':_0x3bc59d[_0x485ad5],'classes':''}]),_0x2c5319),[]),_0x1f4dbe);return _0x4e42f8;}['_fixMediaEmbeds'](_0x4a7d10,_0x49c0c1){if(!_0x49c0c1['plugins']['has']('MediaEmbedEditing'))return _0x4a7d10;const _0x7afcfc=_0x49c0c1['plugins']['get']('MediaEmbedEditing');for(const [_0x107bd8,_0x187732]of Object['entries'](_0x4a7d10)){const _0x12cf8d=document['createElement']('div');_0x12cf8d['innerHTML']=_0x187732,(_0x12cf8d['querySelectorAll']('figure.media')['forEach'](_0xa4ec1b=>{const _0x327e56=_0xa4ec1b['querySelector']('oembed');if(_0x327e56){const _0x563e82=_0x327e56['getAttribute']('url');if(_0x563e82){const _0x41bb05=_0x7afcfc['registry']['getMediaViewElement'](new _0x3ad43d(_0x49c0c1['editing']['view']['document']),_0x563e82,{'elementName':'','renderForEditingView':!0x0}),_0x275b3f=document['createElement']('div');_0x275b3f['classList']['add']('ck-media__wrapper'),_0x41bb05['render'](_0x275b3f,_0x49c0c1['editing']['view']['domConverter']),_0x327e56['replaceWith'](_0x275b3f);}}}),_0x4a7d10[_0x107bd8]=_0x12cf8d['innerHTML']);}return _0x4a7d10;}['_sortRoots'](_0x1304af){if(!function(_0x3a641e){return void 0x0!==_0x3a641e['getRootsAttributes'];}(_0x1304af))return _0x1304af['model']['document']['getRootNames']();const _0x3d0685=[],_0x1bb20c=new Map();for(const _0x34eea6 of _0x1304af['model']['document']['getRootNames']()){const _0x360009=_0x1304af['editing']['view']['getDomRoot'](_0x34eea6)['getClientRects']()['item'](0x0);_0x3d0685['push'](_0x34eea6),_0x1bb20c['set'](_0x34eea6,_0x360009);}return _0x3d0685['sort']((_0x22befa,_0x3ee94f)=>{const _0x2968d6=_0x1bb20c['get'](_0x22befa),_0x5a6ac6=_0x1bb20c['get'](_0x3ee94f);return _0x2968d6['y']-_0x5a6ac6['y']||_0x2968d6['x']-_0x5a6ac6['x'];}),_0x3d0685;}}class Ue extends _0x2051ed{static get['requires'](){return[re,_0x36a810];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4493d5){super(_0x4493d5),_0x4493d5['commands']['add']('previewFinalContent',new te(this['editor'])),_0x4493d5['config']['define']('trackChanges.preview.renderFunction',(_0x3724a5,_0x4d7ec6)=>{for(const _0x388e3f of _0x4d7ec6)_0x3724a5['appendChild'](_0x388e3f);});}}export{v as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,D as DiscardSuggestionCommand,B as ExecuteOnAllSuggestionsCommand,O as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,x as Suggestion,M as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Ne as TrackChanges,$ as TrackChangesCommand,re as TrackChangesData,Fe as TrackChangesDataGetter,d as TrackChangesEditing,Ue as TrackChangesPreview,u as TrackChangesUI};