@ckeditor/ckeditor5-track-changes 0.0.0-nightly-next-20250217.0 → 0.0.0-nightly-next-20250218.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x473ad7,Plugin as _0x34c566,PendingActions as _0x2fd413}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x2b6413,ObservableMixin as _0x167997,uid as _0x18c716,priorities as _0x74c243,insertToPriorityArray as _0x56afb7,logWarning as _0x5c1391,getEnvKeystrokeText as _0x2e4f9c,FocusTracker as _0x5478d8,KeystrokeHandler as _0x6510,Collection as _0x31c05c}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x1a9227,IconCancel as _0x28059a,IconTrackChanges as _0x24eff7}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as Zt,View as _0x3adef7,ViewCollection as _0xaccf69,FocusCycler as _0x3f08ed,ViewModel as _0x42d424,createDropdown as _0x45b565,SplitButtonView as _0x33594b,addListToDropdown as _0x460393,MenuBarMenuView as _0x3179a1,MenuBarMenuListView as _0x3b0906,ListSeparatorView as _0x749f78,MenuBarMenuListItemView as _0x402aaf,MenuBarMenuListItemButtonView as _0x546d40,BodyCollection as _0x178aac,Dialog as _0x156ea0}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x39c23b,hashObject as _0x5e4436,surroundingMarkersDetector as _0x38c199,FOCUS_ANNOTATION_KEYSTROKE as _0x51c160,AriaDescriptionView as _0x3cbb68,setupThreadKeyboardNavigation as _0x4fdd80,trimHtml as ti,UserView as _0x3ddb6c,LateFocusButtonView as _0x161237,getDateTimeFormatter as _0x309745,getAllMarkersDomElementsSorted as _0x13d673,sanitizeEditorConfig as _0x519a21}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x54c254,LiveRange as _0x1f3765,LivePosition as _0x5a4d15,DowncastWriter as _0x30a57d}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x5c3d4a,toWidget as _0x5e451d}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x243c44,set as _0x5f306a,isEqual as _0x2fcc92,unset as _0xe1b8af,omit as Et}from'es-toolkit/compat';import{Delete as _0x2e6fc9,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x1c9ae7,ShiftEnter as _0x4d24c3}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends _0x473ad7{['_enabledCommands'];constructor(_0x3649b8,_0x1c5564){super(_0x3649b8),this['_enabledCommands']=_0x1c5564,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 _0x1a6402 of this['editor']['commands']['commands']())_0x1a6402['affectsData']&&!this['_enabledCommands']['has'](_0x1a6402)&&_0x1a6402['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x2dae32 of this['editor']['commands']['commands']())_0x2dae32['affectsData']&&!this['_enabledCommands']['has'](_0x2dae32)&&_0x2dae32['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x473ad7{['_suggestions'];constructor(_0x2bcc03,_0x47dc2f){super(_0x2bcc03),this['_suggestions']=_0x47dc2f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x17a7b2){const _0x598f6c=this['_suggestions']['get'](_0x17a7b2);if(!_0x598f6c)throw new _0x2b6413('track-changes-accept-suggestion-not-found',this);const _0x1556d4=_0x598f6c['getRanges']();this['editor']['model']['canEditAt'](_0x1556d4)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x598f6c);}}class R extends _0x473ad7{['_suggestions'];constructor(_0x2f3a8c,_0x4c9499){super(_0x2f3a8c),this['_suggestions']=_0x4c9499,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x10c032){const _0x3432af=this['_suggestions']['get'](_0x10c032);if(!_0x3432af)throw new _0x2b6413('track-changes-discard-suggestion-not-found',this);const _0x4a2f5d=_0x3432af['getRanges']();this['editor']['model']['canEditAt'](_0x4a2f5d)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x3432af);}}function ls(_0x1ce2ac,_0x3062e4){let _0x3cc8c2='';return _0x3cc8c2+=_0x1ce2ac['split']('*')['map']((_0x558c01,_0x584041)=>_0x584041%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x558c01)+'</span>':nn(_0x558c01))['join'](''),_0x3062e4&&(_0x3cc8c2+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x3062e4['value']+'\x22\x20title=\x22'+_0x3062e4['title']+'\x22></span>'),_0x3cc8c2;}function nn(_0x125025){const _0x195113=document['createElement']('span');return _0x195113['innerText']=_0x125025,_0x195113['innerHTML'];}function ts(_0x2c67b8){return _0x2c67b8['sort']((_0x524bfb,_0x3dcf14)=>'deletion'==_0x524bfb['type']&&'deletion'!=_0x3dcf14['type']?-0x1:'deletion'!=_0x524bfb['type']&&'deletion'==_0x3dcf14['type']?0x1:0x0);}function Xt(_0x47c075,_0x151681){let _0x52ad63,_0x52792e=0x0;const _0x49f4df=[],_0x553b86=_0x151681['schema'];for(;_0x52792e<_0x47c075['length'];){const _0x192373=_0x47c075[_0x52792e],_0xd08e03=_0x47c075[_0x52792e+0x1];_0x52ad63||(_0x52ad63=_0x151681['createPositionBefore'](_0x192373)),on(_0x151681,_0x192373,_0xd08e03)||(_0x49f4df['push'](_0x151681['createRange'](_0x52ad63,_0x553b86['isObject'](_0x192373)?_0x151681['createPositionAfter'](_0x192373):_0x151681['createPositionAt'](_0x192373,'end'))),_0x52ad63=null),_0x52792e++;}return _0x49f4df;}function on(_0x277937,_0x290774,_0x1b7acb){if(!_0x1b7acb)return!0x1;const _0x284dca=_0x277937['createPositionAfter'](_0x290774),_0x50fd18=_0x277937['createPositionBefore'](_0x1b7acb);return _0x284dca['isTouching'](_0x50fd18);}function rs(_0x4b3ad2,_0x255590,_0x365a13){for(;_0x365a13['length'];){const _0x43834e=_0x365a13['splice'](0x0,0x64);_0x4b3ad2['change'](()=>{for(const _0x33c638 of _0x43834e)_0x33c638['isInContent']&&_0x255590['execute'](_0x33c638['id']);});}}class x extends _0x473ad7{['_command'];['_suggestions'];constructor(_0x3e5d9e,_0x4a8ee4,_0x14cd33){super(_0x3e5d9e),this['_command']=_0x4a8ee4,this['_suggestions']=_0x14cd33,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x37d942=Array['from'](this['_suggestions']['values']())['some'](_0x1ce968=>_0x1ce968['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x37d942;}['execute'](){const _0x1564c7=ts(Array['from'](this['_suggestions']['values']()));for(const _0xa074c3 of _0x1564c7){const _0x4543c3=_0xa074c3['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4543c3))return;}rs(this['editor']['model'],this['_command'],_0x1564c7);}}class E extends _0x473ad7{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x5f06ea,_0x25b425,_0xdc5dd7){super(_0x5f06ea),this['_command']=_0x25b425,this['_suggestions']=_0xdc5dd7,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1d7d33=this['editor']['model']['document']['selection'],_0xac8c99=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x28cfe3,_0x5bc158){const _0x58c145=Array['from'](_0x28cfe3['getRanges']()),_0x2de0f5=new Set();for(const _0x25ddc9 of _0x5bc158)if(_0x25ddc9['isInContent']){for(const _0x26463a of _0x58c145)for(const _0x1d6686 of _0x25ddc9['getRanges']())(_0x26463a['isIntersecting'](_0x1d6686)||_0x28cfe3['isCollapsed']&&!_0x25ddc9['isMultiRange']&&_0x25ddc9['next']&&_0x1d6686['end']['isTouching'](_0x26463a['start']))&&_0x2de0f5['add'](_0x25ddc9);}return _0x2de0f5;}(_0x1d7d33,_0xac8c99),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x2ff720=ts(Array['from'](this['_selectedSuggestions']));for(const _0x177bce of _0x2ff720){const _0x4e2ec9=_0x177bce['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4e2ec9))return;}rs(this['editor']['model'],this['_command'],_0x2ff720);}}class o extends/* #__PURE__ -- @preserve */
24
- _0x167997(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x16633b,_0x5e570f){super(),this['id']=_0x5e570f['id'],this['type']=_0x5e570f['type'],this['subType']=_0x5e570f['subType']||null,this['author']=_0x5e570f['author'],this['creator']=_0x5e570f['creator']||_0x5e570f['author'],this['isExternal']=Boolean(_0x5e570f['attributes']&&_0x5e570f['attributes']['@external']),this['data']=null,this['_model']=_0x16633b,this['_onAccept']=_0x5e570f['onAccept'],this['_onDiscard']=_0x5e570f['onDiscard'],this['_onAttributesChange']=_0x5e570f['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5e570f['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 _0x2d5dbd=this;for(;_0x2d5dbd['previous'];)_0x2d5dbd=_0x2d5dbd['previous'];return _0x2d5dbd;}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'](_0x3452a5){this['_markerNames']['add'](_0x3452a5);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x345e5f=>this['_model']['markers']['get'](_0x345e5f))['filter'](_0x2ecfee=>_0x2ecfee);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x570a4e=>{for(const _0x4409f0 of this['getMarkers']())_0x570a4e['removeMarker'](_0x4409f0);}),this['_markerNames']['clear']();}['removeMarker'](_0x5c5bd2){this['_model']['change'](_0x483c50=>{_0x483c50['removeMarker'](_0x5c5bd2);}),this['_markerNames']['delete'](_0x5c5bd2);}['addRange'](_0x490474){const _0x5ebb2a='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x5ebb2a),this['_model']['change'](_0x4dd6b3=>{_0x4dd6b3['addMarker'](_0x5ebb2a,{'range':_0x490474,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x343969){for(const _0x3887a4 of this['getRanges']())if(_0x3887a4['isIntersecting'](_0x343969))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x417a9c=>_0x417a9c['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x179e8a,_0x15d501)=>[..._0x179e8a,..._0x15d501['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x4da3ed=this['getRanges']();if(0x1!=_0x4da3ed['length'])return null;const _0x54173a=_0x4da3ed[0x0],_0x333acc=_0x54173a['start']['nodeAfter'],_0x5bc3fc=_0x54173a['end']['nodeBefore'];return _0x333acc instanceof _0x54c254?_0x333acc!=_0x5bc3fc?null:_0x333acc: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 _0x5a7707=[];let _0x38db14=this['head'];for(;_0x38db14;)_0x5a7707['push'](_0x38db14),_0x38db14=_0x38db14['next'];return _0x5a7707;}['setAttribute'](_0x3ccdbb,_0xc8b9d3){const _0x4e9ba1=_0x243c44(this['attributes']);_0x5f306a(_0x4e9ba1,_0x3ccdbb,_0xc8b9d3),_0x2fcc92(_0x4e9ba1,this['attributes'])||(this['attributes']=_0x4e9ba1,this['_onAttributesChange'](_0x4e9ba1));}['removeAttribute'](_0x332cce){const _0x5897fd=_0x243c44(this['attributes']);_0xe1b8af(_0x5897fd,_0x332cce),_0x2fcc92(_0x5897fd,this['attributes'])||(this['attributes']=_0x5897fd,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 _0x18c716()['substr'](0x1,0x5);}}function c(_0x3c1464,_0x3d06a1,_0x5a0c57){const _0x33f221=_0x3c1464['t'],t=_0x3c1464['t'];switch(_0x3d06a1){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',_0x5a0c57);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5a0c57);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5a0c57);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5a0c57);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5a0c57);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',_0x5a0c57);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5a0c57);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',_0x5a0c57);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5a0c57);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5a0c57);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5a0c57);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5a0c57);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5a0c57);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x5a0c57);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5a0c57);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5a0c57);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5a0c57);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5a0c57);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5a0c57);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5a0c57);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5a0c57);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5a0c57);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5a0c57);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5a0c57);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'},_0x5a0c57);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5a0c57);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5a0c57);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5a0c57);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5a0c57);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5a0c57);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'},_0x5a0c57);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5a0c57);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5a0c57);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5a0c57);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5a0c57);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'},_0x5a0c57);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5a0c57);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'},_0x5a0c57);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x5a0c57);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5a0c57);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'},_0x5a0c57);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5a0c57);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'},_0x5a0c57);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5a0c57);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5a0c57);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'},_0x5a0c57);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x5a0c57);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 _0x33f221({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5a0c57);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x33f221({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5a0c57);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5a0c57);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'},_0x5a0c57);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'},_0x5a0c57);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'},_0x5a0c57);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x3d06a1;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3e54d4,_0x861321){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3e54d4,this['_locale']=_0x861321;}['getDescriptions'](_0x14212e){const _0x2e4d14=[],_0x448b81=new Set(),_0x534d80=new Set();for(let _0x50a6b8=0x0;_0x50a6b8<_0x14212e['length'];_0x50a6b8++){const _0x2a68a6=_0x14212e[_0x50a6b8];if(!_0x2a68a6['isInContent'])continue;const _0x4e89fd=this['_handleCustomCallbackDescription'](_0x2a68a6);if(_0x4e89fd){if(null!=_0x2a68a6['subType']){if(_0x448b81['has'](_0x2a68a6['subType']))continue;_0x448b81['add'](_0x2a68a6['subType']);}_0x2e4d14['push'](_0x4e89fd);}else{if('attribute'!=_0x2a68a6['type'])'insertion'!=_0x2a68a6['type']&&'deletion'!=_0x2a68a6['type']||this['_handleInsertRemoveSuggestionDescription'](_0x2e4d14,_0x2a68a6,_0x14212e[_0x50a6b8+0x1]);else{const _0x580402=_0x2a68a6['data']['key'];if(_0x534d80['has'](_0x580402))continue;_0x534d80['add'](_0x2a68a6['data']['key']),_0x580402==u?this['_handleRenameSuggestionDescription'](_0x2e4d14,_0x2a68a6):this['_handleAttributeSuggestionDescription'](_0x2e4d14,_0x2a68a6);}}}return this['_resolveDescriptionItems'](_0x2e4d14);}['registerDescriptionCallback'](_0x75535){this['_customCallbacks']['push'](_0x75535);}['registerElementLabel'](_0xc53da3,_0x5c537a,_0x596123=_0x74c243['normal']){'function'==typeof _0xc53da3?_0x56afb7(this['_itemLabelsCallbacks'],{'matchingCallback':_0xc53da3,'label':_0x5c537a,'priority':_0x596123}):this['_itemLabels']['set'](_0xc53da3,_0x5c537a);}['registerAttributeLabel'](_0x4eb1ff,_0x1f0c0d){this['_attributeLabels']['set'](_0x4eb1ff,_0x1f0c0d);}['getItemLabel'](_0x3a848a,_0x1787b0=0x1){let _0x5bab4a;for(const _0x110477 of this['_itemLabelsCallbacks'])if(_0x110477['matchingCallback'](_0x3a848a)){_0x5bab4a=_0x110477['label'];break;}return _0x5bab4a||(_0x5bab4a=this['_itemLabels']['get'](_0x3a848a['name'])),_0x5bab4a?_0x5bab4a(_0x1787b0):0x1!==_0x1787b0?_0x1787b0+'\x20'+_0x3a848a['name']+'s':''+_0x3a848a['name'];}['_addDescriptionItems'](_0x2d40fe,_0x1a11b6){const _0x552c4c=_0x1a11b6['getFirstRange']()['getWalker'](),_0x3117f6='insertion'==_0x1a11b6['type']?'add':'remove';for(const _0x2349c5 of _0x552c4c){const _0x34aab2=_0x2349c5['item'],_0x15d62f=_0x2d40fe[_0x2d40fe['length']-0x1];if(_0x34aab2['is']('$textProxy'))_0x15d62f&&_0x15d62f['type']['indexOf']('Container')>-0x1&&_0x2d40fe['pop'](),_0x15d62f&&'text'==_0x15d62f['type']?_0x15d62f[_0x3117f6]+=_0x34aab2['data']:_0x2d40fe['push']({'type':'text','add':'add'==_0x3117f6?_0x34aab2['data']:'','remove':'remove'==_0x3117f6?_0x34aab2['data']:''});else{if(this['_schema']['isObject'](_0x34aab2)){const _0x149630=_0x34aab2;if(_0x15d62f&&_0x15d62f['type']['indexOf']('Container')>-0x1&&_0x2d40fe['pop'](),'elementEnd'==_0x2349c5['type'])continue;_0x15d62f&&_0x15d62f['type']==_0x3117f6+'Object'&&_0x15d62f['element']['name']==_0x149630['name']?_0x15d62f['quantity']++:_0x2d40fe['push']({'type':_0x3117f6+'Object','element':_0x149630,'quantity':0x1}),_0x552c4c['skip'](_0x412c7d=>!('elementEnd'==_0x412c7d['type']&&_0x412c7d['item']==_0x34aab2));}else{if(this['_schema']['checkChild'](_0x34aab2,'$text')||_0x34aab2['is']('element','softBreak')){const _0x2e00c9=_0x34aab2;if('add'==_0x3117f6&&'elementStart'==_0x2349c5['type']||'remove'==_0x3117f6&&'elementEnd'==_0x2349c5['type'])continue;if(_0x15d62f&&-0x1==_0x15d62f['type']['indexOf']('Container')){'text'==_0x15d62f['type']&&(_0x15d62f[_0x3117f6]+='\x0a');continue;}let _0xc62250;if(_0xc62250='add'==_0x3117f6?_0x2e00c9['nextSibling']&&!this['_schema']['isObject'](_0x2e00c9['nextSibling'])?_0x2e00c9['nextSibling']:null:_0x2e00c9['previousSibling']&&!this['_schema']['isObject'](_0x2e00c9['previousSibling'])?_0x2e00c9['previousSibling']:null,_0x2e00c9['isEmpty']||_0xc62250&&_0xc62250['isEmpty']){const _0x1088b1=_0xc62250&&_0xc62250['isEmpty']?_0xc62250:_0x2e00c9;_0x15d62f&&_0x15d62f['type']==_0x3117f6+'EmptyContainer'&&_0x15d62f['element']['name']==_0x1088b1['name']?_0x15d62f['quantity']++:_0x2d40fe['push']({'type':_0x3117f6+'EmptyContainer','element':_0x1088b1,'quantity':0x1});}else _0x2d40fe['push']({'type':_0x3117f6+'Container','element':_0x2e00c9});}}}}}['_resolveDescriptionItems'](_0x4ac517){const _0x1237de=this['_locale'],_0x4f7eee=[],_0x2e4ef3=[],_0x4f1122=[];for(const _0x2d0462 of _0x4ac517)switch(_0x2d0462['type']){case'text':if(_0x2d0462['add']=_0x2d0462['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x2d0462['remove']=_0x2d0462['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x2d0462['add']&&''!=_0x2d0462['remove']){_0x4f7eee['push']({'type':'replace','content':c(_0x1237de,'REPLACE_TEXT',['\x22'+_0x2d0462['remove']+'\x22','\x22'+_0x2d0462['add']+'\x22'])});continue;}if(null!=_0x2d0462['add']['match'](/^ +$/)){_0x4f7eee['push']({'type':'insertion','content':c(_0x1237de,'*Insert:*\x20%0',c(_0x1237de,'ELEMENT_SPACE',_0x2d0462['add']['length']))});continue;}if(null!=_0x2d0462['remove']['match'](/^ +$/)){_0x4f7eee['push']({'type':'deletion','content':c(_0x1237de,'*Remove:*\x20%0',c(_0x1237de,'ELEMENT_SPACE',_0x2d0462['remove']['length']))});continue;}if(''!=_0x2d0462['add']){_0x4f7eee['push']({'type':'insertion','content':c(_0x1237de,'*Insert:*\x20%0','\x22'+_0x2d0462['add']+'\x22')});continue;}_0x4f7eee['push']({'type':'deletion','content':c(_0x1237de,'*Remove:*\x20%0','\x22'+_0x2d0462['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4f7eee['push']({'type':'insertion','content':c(_0x1237de,'*Insert:*\x20%0',this['getItemLabel'](_0x2d0462['element'],_0x2d0462['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4f7eee['push']({'type':'deletion','content':c(_0x1237de,'*Remove:*\x20%0',this['getItemLabel'](_0x2d0462['element'],_0x2d0462['quantity']))});continue;case'addContainer':_0x4f7eee['push']({'type':'insertion','content':c(_0x1237de,'*Split:*\x20%0',this['getItemLabel'](_0x2d0462['element'],_0x2d0462['quantity']))});continue;case'removeContainer':_0x4f7eee['push']({'type':'deletion','content':c(_0x1237de,'*Merge:*\x20%0',this['getItemLabel'](_0x2d0462['element'],_0x2d0462['quantity']))});continue;case'addFormat':_0x2e4ef3['push'](_0x2d0462['key']);continue;case'removeFormat':_0x4f1122['push'](_0x2d0462['key']);continue;default:_0x4f7eee['push'](_0x2d0462);}if(_0x2e4ef3['length']){const _0x17fb4f=_0x2e4ef3['map'](_0x2b5c6e=>this['_attributeLabels']['has'](_0x2b5c6e)?this['_attributeLabels']['get'](_0x2b5c6e):_0x2b5c6e)['join'](',\x20');_0x4f7eee['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x17fb4f)});}if(_0x4f1122['length']){const _0x23bb33=_0x4f1122['map'](_0xce7ddd=>this['_attributeLabels']['has'](_0xce7ddd)?this['_attributeLabels']['get'](_0xce7ddd):_0xce7ddd)['join'](',\x20');_0x4f7eee['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x23bb33)});}return _0x4f7eee;}['_handleCustomCallbackDescription'](_0x371a42){for(const _0x83ca3f of this['_customCallbacks']){const _0x455683=_0x83ca3f(_0x371a42);if(_0x455683&&'type'in _0x455683)return _0x455683;}}['_handleAttributeSuggestionDescription'](_0x27932f,_0x450dcb){const _0x2cc76d=_0x450dcb['data'],_0x30c052=void 0x0===_0x2cc76d['newValue']?'removeFormat':'addFormat';_0x27932f['push']({'type':_0x30c052,'key':_0x2cc76d['key']});}['_handleRenameSuggestionDescription'](_0x13d1dd,_0x44a13b){_0x13d1dd['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x44a13b['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1896e5,_0x4a205b,_0x17a2a7){if(this['_addDescriptionItems'](_0x1896e5,_0x4a205b),_0x17a2a7&&_0x17a2a7['getFirstRange']()&&!_0x4a205b['getFirstRange']()['end']['isEqual'](_0x17a2a7['getFirstRange']()['start'])){const _0x23a1ca=_0x1896e5[_0x1896e5['length']-0x1],_0xfbc3ed='insertion'==_0x4a205b['type']?'add':'remove';_0x23a1ca&&'text'==_0x23a1ca['type']&&(_0x23a1ca[_0xfbc3ed]+='\x0a');}}}class U extends _0x34c566{['afterInit'](){const _0x6eec8b=this['editor'],_0x22c29d=_0x6eec8b['plugins']['get']('TrackChangesEditing');_0x6eec8b['commands']['get']('showAIAssistant')&&_0x22c29d['enableCommand']('showAIAssistant');}}class V extends _0x34c566{['afterInit'](){const _0x250e3f=this['editor'],_0x4f8e2b=_0x250e3f['locale'];if(!_0x250e3f['plugins']['has']('AlignmentEditing'))return;const _0x536d1f=_0x250e3f['plugins']['get']('TrackChangesEditing');_0x536d1f['enableDefaultAttributesIntegration']('alignment'),_0x536d1f['registerBlockAttribute']('alignment'),_0x536d1f['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x4f8e2b,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5dc143=this['editor'],_0x3aafe2=_0x5dc143['locale'];_0x5dc143['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b6e91=>{if('formatBlock'!=_0x4b6e91['type'])return;const {data:_0x35c6a0}=_0x4b6e91;if(_0x35c6a0&&'alignment'==_0x35c6a0['commandName']){const _0x2fc9a4=_0x35c6a0['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x3aafe2,'*Format:*\x20%0',function(_0x16dccb){switch(_0x16dccb){case'left':return c(_0x3aafe2,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x3aafe2,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x3aafe2,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x3aafe2,'FORMAT_JUSTIFY_TEXT');}}(_0x2fc9a4))};}});}}const Qt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x34c566{['afterInit'](){const _0x21774c=this['editor'],_0x5cab5e=_0x21774c['plugins']['get']('TrackChangesEditing'),_0x47a82a=_0x21774c['locale'];for(const _0x962f96 of Qt){if(!_0x21774c['plugins']['has'](_0x962f96))continue;const _0x48a199=_0x962f96['slice'](0x0,-0x7)['toLowerCase'](),_0x262db1='FORMAT_'+_0x48a199['toUpperCase']();_0x5cab5e['enableDefaultAttributesIntegration'](_0x48a199),_0x5cab5e['registerInlineAttribute'](_0x48a199),_0x5cab5e['descriptionFactory']['registerAttributeLabel'](_0x48a199,c(_0x47a82a,_0x262db1));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x465799=this['editor'],_0x426b11=_0x465799['locale'],_0x43df86=_0x465799['plugins']['get']('TrackChangesEditing');function _0x2efe5c(_0x33a260,_0x1762d6){_0x43df86['descriptionFactory']['registerDescriptionCallback'](_0xa0d369=>{if('formatInline'!=_0xa0d369['type'])return;const {data:_0x151e6f}=_0xa0d369;return _0x151e6f&&_0x151e6f['commandName']===_0x33a260?_0x151e6f['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x426b11,'*Format:*\x20%0',_0x1762d6)}:{'type':'format','content':c(_0x426b11,'*Remove\x20format:*\x20%0',_0x1762d6)}:void 0x0;});}_0x2efe5c('bold',c(_0x426b11,'FORMAT_BOLD')),_0x2efe5c('italic',c(_0x426b11,'FORMAT_ITALIC')),_0x2efe5c('underline',c(_0x426b11,'FORMAT_UNDERLINE')),_0x2efe5c('code',c(_0x426b11,'FORMAT_CODE')),_0x2efe5c('strikethrough',c(_0x426b11,'FORMAT_STRIKETHROUGH')),_0x2efe5c('subscript',c(_0x426b11,'FORMAT_SUBSCRIPT')),_0x2efe5c('superscript',c(_0x426b11,'FORMAT_SUPERSCRIPT'));}}class G extends _0x34c566{['afterInit'](){const _0xe2958=this['editor'],_0x1947e0=_0xe2958['locale'];if(!_0xe2958['plugins']['has']('BlockQuoteEditing'))return;const _0x201d94=_0xe2958['plugins']['get']('TrackChangesEditing'),_0x491106=this['editor']['commands']['get']('blockQuote');_0x201d94['enableCommand']('blockQuote',(_0x14713a,_0x289206={})=>{const _0x2fdbe8=this['editor']['model']['document']['selection'],_0x5aa19e=_0x289206&&void 0x0!==_0x289206['forceValue']?_0x289206['forceValue']:!_0x491106['value'];let _0x5ceedd=[];if(_0x5aa19e){const _0x2d134a=Array['from'](_0x2fdbe8['getSelectedBlocks']())['filter'](_0x5172fc=>Yt(_0x5172fc)||function(_0x3ab1d9,_0x4fc5ab){const _0x3c79e7=_0x4fc5ab['checkChild'](_0x3ab1d9['parent'],'blockQuote'),_0x324f89=_0x4fc5ab['checkChild'](['$root','blockQuote'],_0x3ab1d9);return _0x3c79e7&&_0x324f89;}(_0x5172fc,this['editor']['model']['schema']));_0x5ceedd=Xt(_0x2d134a,_0xe2958['model']);}else{const _0x2180c8=Array['from'](_0x2fdbe8['getSelectedBlocks']())['filter'](_0x398b89=>Yt(_0x398b89));_0x5ceedd=Xt(_0x2180c8,_0xe2958['model']);}_0xe2958['model']['change'](()=>{for(const _0x4d2fc2 of _0x5ceedd)_0x201d94['markBlockFormat'](_0x4d2fc2,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5aa19e}]});});}),_0x201d94['descriptionFactory']['registerDescriptionCallback'](_0x89d8fd=>{const {data:_0x5d9f16}=_0x89d8fd;if(_0x5d9f16&&'blockQuote'==_0x5d9f16['commandName']){const _0x33b736=c(_0x1947e0,'ELEMENT_BLOCK_QUOTE');return _0x5d9f16['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x1947e0,'*Set\x20format:*\x20%0',_0x33b736)}:{'type':'format','content':c(_0x1947e0,'*Remove\x20format:*\x20%0',_0x33b736)};}});}}function Yt(_0x239ad5){return'blockQuote'==_0x239ad5['parent']['name'];}class L extends _0x34c566{['afterInit'](){const _0x37aab4=this['editor'],_0x5e4a77=_0x37aab4['locale'],_0x52875e=_0x37aab4['plugins']['get']('TrackChangesEditing');_0x37aab4['plugins']['has']('BookmarkEditing')&&(_0x52875e['enableCommand']('insertBookmark'),_0x52875e['enableDefaultAttributesIntegration']('updateBookmark'),_0x52875e['registerBlockAttribute']('bookmarkId'),_0x52875e['descriptionFactory']['registerDescriptionCallback'](_0x1efdbe=>{if('insertion'!=_0x1efdbe['type']&&'deletion'!=_0x1efdbe['type']&&'attribute'!=_0x1efdbe['type'])return;const _0x3496f5=_0x1efdbe['getContainedElement']();if(null==_0x3496f5)return;if(!_0x3496f5['is']('element','bookmark'))return;const _0xb125a1=_0x3496f5['getAttribute']('bookmarkId');if('insertion'==_0x1efdbe['type'])return{'type':'insertion','content':c(_0x5e4a77,'*Insert:*\x20%0','\x22'+_0xb125a1+'\x22\x20'+c(_0x5e4a77,'ELEMENT_BOOKMARK'))};if('deletion'==_0x1efdbe['type'])return{'type':'deletion','content':c(_0x5e4a77,'*Remove:*\x20%0','\x22'+_0xb125a1+'\x22\x20'+c(_0x5e4a77,'ELEMENT_BOOKMARK'))};const {data:_0x45d582}=_0x1efdbe;if(!_0x45d582||'bookmarkId'!=_0x45d582['key'])return;return{'type':'format','content':c(_0x5e4a77,'*Set\x20bookmark:*\x20%0','\x22'+_0x45d582['newValue']+'\x22')};}));}}class J extends _0x34c566{['afterInit'](){const _0x35c900=this['editor'];_0x35c900['plugins']['has']('CaseChange')&&(_0x35c900['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x35c900['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x35c900['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x34c566{['afterInit'](){const _0x1393b6=this['editor'];_0x1393b6['commands']['get']('ckbox')&&_0x1393b6['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x34c566{['afterInit'](){const _0x10c375=this['editor'];if(!_0x10c375['plugins']['has']('CodeBlock'))return;const _0x10720b=_0x10c375['plugins']['get']('TrackChangesEditing'),_0x437169=_0x10c375['locale'],_0x2c7150=_0x10c375['config']['get']('codeBlock')['languages'],_0x17f434=_0x10c375['commands']['get']('codeBlock');_0x10720b['enableCommand']('indentCodeBlock'),_0x10720b['enableCommand']('outdentCodeBlock'),_0x10720b['enableCommand']('codeBlock',(_0x8d5603,_0x4c9990={})=>{const _0x2ec9d6=_0x10c375['model'],_0x3e2ad0=_0x10c375['model']['document']['selection'],_0x1dc36d=_0x4c9990&&void 0x0!==_0x4c9990['forceValue']?_0x4c9990['forceValue']:!_0x17f434['value'];let _0x21e3df;_0x4c9990['language']||(_0x4c9990['language']=_0x2c7150[0x0]['language']),_0x21e3df=_0x1dc36d?Array['from'](_0x3e2ad0['getSelectedBlocks']())['filter'](_0x117b52=>oo(_0x117b52)||function(_0x4ad73e,_0x530b39){if(_0x4ad73e['is']('rootElement')||_0x530b39['isLimit'](_0x4ad73e))return!0x1;return _0x530b39['checkChild'](_0x4ad73e['parent'],'codeBlock');}(_0x117b52,_0x2ec9d6['schema'])):Array['from'](_0x3e2ad0['getSelectedBlocks']())['filter'](_0x57a8ff=>oo(_0x57a8ff));const _0x1fafe2=Xt(_0x21e3df,_0x2ec9d6);_0x2ec9d6['change'](()=>{for(const _0x1a691d of _0x1fafe2)_0x10720b['markBlockFormat'](_0x1a691d,{'commandName':'codeBlock','commandParams':[{..._0x4c9990,'forceValue':_0x1dc36d}],'formatGroupId':'blockName'});});}),(_0x10720b['descriptionFactory']['registerElementLabel']('codeBlock',_0x142d5b=>c(_0x437169,'ELEMENT_CODE_BLOCK',_0x142d5b)),_0x10720b['descriptionFactory']['registerDescriptionCallback'](_0x320720=>{if('formatBlock'!=_0x320720['type'])return;const _0x45c00f=_0x437169['t'],{data:_0x458b06}=_0x320720;if(!_0x458b06||'codeBlock'!=_0x458b06['commandName'])return;const _0x4fc3b0=_0x458b06['commandParams'][0x0]['language'],_0x22be68=_0x45c00f(_0x2c7150['find'](_0x586f06=>_0x586f06['language']===_0x4fc3b0)['label'])['toLowerCase']();return _0x458b06['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x437169,'*Set\x20format:*\x20%0',c(_0x437169,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x22be68+')')}:{'type':'format','content':c(_0x437169,'*Remove\x20format:*\x20%0',c(_0x437169,'ELEMENT_CODE_BLOCK',0x1))};}));}}function oo(_0x1e9835){return'codeBlock'==_0x1e9835['name'];}class q extends _0x34c566{['afterInit'](){const _0x3f115a=this['editor'];if(!_0x3f115a['plugins']['has']('CommentsEditing'))return;_0x3f115a['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function no(_0x5f2b97,_0x9833db,_0x6f461c){const _0x4acf7e=[];for(const _0x3dfc0a of _0x9833db['getItems']())_0x3dfc0a['hasAttribute'](_0x5f2b97)&&_0x4acf7e['push'](_0x6f461c['createRangeOn'](_0x3dfc0a));return _0x4acf7e;}function De(_0x361c06,_0x4ec819,{showActiveMarker:_0x394ac4=!0x0}={}){const _0x1c46d8=_0x361c06['plugins']['get']('TrackChangesEditing');return(_0x306bb4,_0x1b7989,_0x14b326)=>{if(!_0x14b326['consumable']['test'](_0x1b7989['markerRange'],_0x306bb4['name']))return;const _0x3d05df=_0x1b7989['markerRange']['getWalker'](),_0x31c432=_0x1b7989['markerRange']['start'],_0x39be12=_0x361c06['model']['schema'];let _0x455518=null,_0x300381=null,_0x2e6c4f=!0x1,_0x5721d8=!0x1;for(const _0x53ecc8 of _0x3d05df){const _0x3c1a3e=_0x53ecc8['item'];_0x2e6c4f=_0x2e6c4f||_0x39be12['isContent'](_0x3c1a3e);const _0x176592=_0x14b326['mapper']['toViewElement'](_0x3c1a3e);if(_0x176592&&_0x176592['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x53ecc8['type']&&(_0x39be12['isBlock'](_0x3c1a3e)&&!_0x39be12['isLimit'](_0x3c1a3e)&&(_0x3c1a3e['nextSibling']||_0x31c432['isAtEnd']?_0x455518&&_0x455518['parent']==_0x3c1a3e||(_0x455518=_0x3c1a3e,_0x12030b(_0x53ecc8['previousPosition']),_0x5721d8=!0x0):_0x300381=_0x300381||_0x53ecc8['previousPosition']));}function _0x12030b(_0x52384c){const {authorId:_0x19d645}=_0x1c46d8['_splitMarkerName'](_0x1b7989['markerName']),_0x334ff5=_0x14b326['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4ec819,'data-author-id':_0x19d645}),_0x35bfe8=_0x14b326['mapper']['toViewPosition'](_0x52384c);_0x394ac4&&_0x1c46d8['activeMarkers']['includes'](_0x1b7989['markerName'])&&_0x14b326['writer']['addClass']('ck-suggestion-marker--active',_0x334ff5),_0x14b326['writer']['insert'](_0x35bfe8,_0x334ff5),_0x14b326['mapper']['bindElementToMarker'](_0x334ff5,_0x1b7989['markerName']);}_0x2e6c4f||_0x5721d8||!_0x300381||_0x12030b(_0x300381);};}class z extends _0x34c566{static get['requires'](){return[_0x2e6fc9];}['init'](){const _0x5be41b=this['editor'],_0x5ea4c2=_0x5be41b['plugins']['get']('TrackChangesEditing');_0x5ea4c2['enableCommand']('delete');const _0x1f92fc=_0x5be41b['commands']['get']('deleteForward');_0x5ea4c2['enableCommand']('deleteForward',(_0x53def6,_0x106a85={})=>{const _0x4e7fa0=_0x5be41b['model']['createSelection'](_0x5be41b['model']['document']['selection']);_0x4e7fa0['isCollapsed']&&_0x5be41b['model']['modifySelection'](_0x4e7fa0,{'direction':'forward','unit':_0x106a85['unit']});const _0x4a9001=_0x4e7fa0['getFirstRange'](),_0x65e207=_0x1f3765['fromRange'](_0x4a9001);let _0x365d00;_0x53def6(_0x106a85),_0x365d00='$graveyard'==_0x65e207['root']['rootName']?_0x5be41b['model']['createRange'](_0x4a9001['start']):_0x5be41b['model']['createRange'](_0x65e207['start'],_0x65e207['end']),_0x65e207['detach'](),_0x5be41b['model']['enqueueChange'](_0x1f92fc['buffer']['batch'],_0x15c24e=>{_0x1f92fc['buffer']['lock'](),_0x15c24e['setSelection'](_0x15c24e['createRange'](_0x365d00['end'])),_0x1f92fc['buffer']['unlock']();});}),_0x5be41b['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x5be41b,'merge'),{'priority':'high'}),_0x5be41b['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4b5a33,_0x3c4f4c,_0x26cac5)=>{_0x26cac5['options']['showSuggestionHighlights']&&De(_0x5be41b,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x4b5a33,_0x3c4f4c,_0x26cac5);},{'priority':'high'}),_0x5be41b['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x37e21b,_0x82565d,_0x36eb0b)=>{const _0x17bd9c=_0x36eb0b['mapper']['markerNameToElements'](_0x82565d['markerName']);if(_0x17bd9c){for(const _0x1c0cb8 of _0x17bd9c)_0x1c0cb8['is']('uiElement')&&(_0x36eb0b['mapper']['unbindElementFromMarkerName'](_0x1c0cb8,_0x82565d['markerName']),_0x36eb0b['writer']['remove'](_0x1c0cb8));}},{'priority':'high'});}}class W extends _0x34c566{['afterInit'](){const _0x4a56f3=this['editor'];if(!_0x4a56f3['plugins']['has']('ListEditing'))return;const _0x54d53b=_0x4a56f3['locale'],_0x329b73=_0x4a56f3['plugins']['get']('TrackChangesEditing'),_0x2aaceb=_0x4a56f3['plugins']['has']('TodoListEditing'),_0x5d0a31=!!_0x4a56f3['config']['get']('list.multiBlock');function _0x4833bd(_0xf3e5d6){return{'type':'format','content':''+c(_0x54d53b,'*Set\x20format:*\x20%0',_0xf3e5d6)};}function _0x560dcc(_0x24328f){return{'type':'format','content':''+c(_0x54d53b,'*Remove\x20format:*\x20%0',_0x24328f)};}_0x329b73['enableDefaultAttributesIntegration']('numberedList'),_0x329b73['enableDefaultAttributesIntegration']('bulletedList'),_0x329b73['enableDefaultAttributesIntegration']('customNumberedList'),_0x329b73['enableDefaultAttributesIntegration']('customBulletedList'),_0x329b73['enableDefaultAttributesIntegration']('indentList'),_0x329b73['enableDefaultAttributesIntegration']('outdentList'),_0x329b73['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x329b73['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x329b73['registerBlockAttribute']('listItemId'),_0x329b73['registerBlockAttribute']('listType'),_0x329b73['registerBlockAttribute']('listIndent'),_0x5d0a31&&(_0x329b73['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x329b73['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2aaceb&&(_0x329b73['enableDefaultAttributesIntegration']('todoList'),_0x329b73['enableDefaultAttributesIntegration']('checkTodoList'),_0x329b73['registerBlockAttribute']('todoListChecked'),_0x329b73['descriptionFactory']['registerDescriptionCallback'](_0x1ba3b4=>{const {data:_0x3110e8}=_0x1ba3b4;if(_0x3110e8&&'todoListChecked'==_0x3110e8['key'])return{'type':'format','content':_0x3110e8['newValue']?c(_0x54d53b,'*Check\x20item*'):c(_0x54d53b,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4f76b5=>{if(_0x4f76b5['batch']['isUndo'])return!0x1;let _0x495af1=!0x1;const _0x5b9fda=_0x329b73['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4e515a=>'todoListChecked'===_0x329b73['_getAttributeKey'](_0x4e515a));for(const _0x3764a6 of _0x5b9fda){'todo'!=_0x3764a6['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x329b73['_findSuggestions'](_0x3764a6['getFirstRange'](),'attribute')['find'](_0x2ce3f2=>'listType'===_0x329b73['_getAttributeKey'](_0x2ce3f2['suggestion']))||(_0x4f76b5['removeMarker'](_0x3764a6['getFirstMarker']()),_0x495af1=!0x0));}return _0x495af1;})),_0x329b73['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x54d53b,'FORMAT_INDENT'));const _0x3e8aa1={'type':'format','content':''};_0x329b73['descriptionFactory']['registerDescriptionCallback'](_0x13ea84=>{const {data:_0xf8c88c}=_0x13ea84;if(!_0xf8c88c||'listType'!=_0xf8c88c['key'])return;let _0x3a6635=_0x13ea84['head'];for(;_0x3a6635;){if(_0x3a6635['data']&&(('listStyle'==_0x3a6635['data']['key']||'listMarkerStyle'==_0x3a6635['data']['key'])&&(_0x3a6635['data']['newValue']&&'default'!=_0x3a6635['data']['newValue']||'default'!=_0x3a6635['data']['oldValue']&&!_0xf8c88c['newValue'])||!_0x5d0a31&&_0x3a6635['data']['key']==u))return _0x3e8aa1;_0x3a6635=_0x3a6635['next'];}if(null==_0xf8c88c['newValue'])switch(_0xf8c88c['oldValue']){case'bulleted':return _0x560dcc(c(_0x54d53b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x560dcc(c(_0x54d53b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x560dcc(c(_0x54d53b,'ELEMENT_TODO_LIST'));}switch(_0xf8c88c['newValue']){case'bulleted':return _0x4833bd(c(_0x54d53b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4833bd(c(_0x54d53b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4833bd(c(_0x54d53b,'ELEMENT_TODO_LIST'));}}),_0x329b73['descriptionFactory']['registerDescriptionCallback'](_0x3eff11=>{const {data:_0x2e3367}=_0x3eff11;if(_0x2e3367&&'listIndent'==_0x2e3367['key'])return null==_0x2e3367['newValue']||null==_0x2e3367['oldValue']&&0x0==_0x2e3367['newValue']?_0x3e8aa1:void 0x0;}),_0x329b73['descriptionFactory']['registerDescriptionCallback'](_0x52350a=>{if('attribute'!=_0x52350a['type'])return;const {data:_0x4e9e35}=_0x52350a;if(!_0x4e9e35||'listItemId'!=_0x4e9e35['key'])return;const _0xc5c3bf=Te(_0x52350a);return'newValue'==_0xc5c3bf?{'type':'format','content':c(_0x54d53b,'*Merge:*\x20list\x20item')}:'oldValue'==_0xc5c3bf?{'type':'format','content':c(_0x54d53b,'*Split:*\x20list\x20item')}:_0x3e8aa1;}),_0x4a56f3['model']['document']['registerPostFixer'](_0x2da188=>this['listItemIdFixer'](_0x2da188)),_0x4a56f3['model']['document']['registerPostFixer'](_0x19a79a=>this['noTrackChangesFixer'](_0x19a79a)),_0x4a56f3['model']['document']['on']('change:data',(_0x5cee91,_0x5024ba)=>{if(_0x5024ba['isUndo']||!_0x5024ba['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x5595ca){if(_0x5595ca['batch']['isUndo']||!_0x5595ca['batch']['isLocal'])return!0x1;let _0xf56449=!0x1;const _0x24a06c=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5c97bf=>_0x5c97bf['data']&&'listItemId'==_0x5c97bf['data']['key'])['filter'](_0x4295d1=>_0x4295d1['data']['newValue']&&_0x4295d1['data']['oldValue']);for(const _0x441998 of _0x24a06c)Te(_0x441998)||(_0x5595ca['removeMarker'](_0x441998['getFirstMarker']()),_0xf56449=!0x0);return _0xf56449;}['noTrackChangesFixer'](_0x134cca){if(_0x134cca['batch']['isUndo']||!_0x134cca['batch']['isLocal'])return!0x1;const _0x1a396a=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x1a396a['trackChangesCommand']['value'])return!0x1;let _0x29a180=!0x1;const _0x3dda5b=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x5179f4=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x12e05b=>'attribute'==_0x12e05b['type'])['filter'](_0x207cbf=>_0x3dda5b['includes'](_0x207cbf['attributeKey']));if(0x0==_0x5179f4['length'])return _0x29a180;for(const _0x424f8b of _0x5179f4){const _0x469765=_0x1a396a['_findSuggestions'](_0x424f8b['range'],'attribute')['filter'](_0x45a708=>!_0x45a708['meta']['isNextTo'])['map'](_0x40fde4=>_0x40fde4['suggestion'])['filter'](_0x3332c9=>{const _0x36a81e=_0x1a396a['_getAttributeKey'](_0x3332c9);return _0x3dda5b['includes'](_0x36a81e);});if(_0x469765['length']){for(const _0x56f937 of _0x469765)_0x134cca['removeMarker'](_0x56f937['getFirstMarker']());_0x29a180=!0x0;}}return _0x29a180;}['assureChains'](){const _0x2d802a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4a5273=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x5a357f;const _0x2c514c=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1fb7e9=>{if(_0x1fb7e9['data']['oldRange']||!_0x1fb7e9['data']['newRange'])return null;if(!_0x1fb7e9['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x2b345f}=_0x2d802a['_splitMarkerName'](_0x1fb7e9['name']);if(!_0x2d802a['hasSuggestion'](_0x2b345f))return null;const _0x16baa1=_0x2d802a['getSuggestion'](_0x2b345f);return _0x4a5273['includes'](_0x16baa1['data']['key']);})['map'](_0x25dfaf=>{const {id:_0x32e607}=_0x2d802a['_splitMarkerName'](_0x25dfaf['name']),_0x1e0438=_0x2d802a['getSuggestion'](_0x32e607);return _0x5a357f=_0x1e0438['attributes']['groupId'],_0x1e0438['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x2c514c['size'])return;const _0x14409b=_0x2d802a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x20d9a3=>'attribute'==_0x20d9a3['type']&&_0x20d9a3['data']&&_0x4a5273['includes'](_0x20d9a3['data']['key'])&&_0x20d9a3['attributes']['groupId']!=_0x5a357f)['map'](_0x247506=>({'listItem':_0x247506['getFirstRange']()['start']['nodeAfter'],'groupId':_0x247506['attributes']['groupId']})),_0x56bd6e=new Set();for(const {groupId:_0x24de41,listItem:_0x4e11a1}of _0x14409b)_0x2c514c['has'](_0x4e11a1)&&_0x56bd6e['add'](_0x24de41);for(const _0x31491d of _0x2d802a['getSuggestions']())_0x56bd6e['has'](_0x31491d['attributes']['groupId'])&&_0x31491d['setAttribute']('groupId',_0x5a357f);}['_supportLegacySuggestions'](){const _0x112bd0=this['editor'],_0xfd1a9a=_0x112bd0['locale'],_0x5b08b4=_0x112bd0['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5b08b4['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x167aa3,_0x406241){const _0x143f70=[];for(let _0x3bd321 of _0x167aa3)_0x3bd321['start']['nodeAfter']===_0x3bd321['end']['parent']&&(_0x3bd321=_0x112bd0['model']['createRange'](_0x112bd0['model']['createPositionAt'](_0x3bd321['start']['nodeAfter'],0x0))),_0x143f70['push'](_0x3bd321);_0x112bd0['model']['change'](_0x5caafa=>{const _0x21db04=_0x112bd0['model']['document']['selection'],_0x351555=Array['from'](_0x21db04['getRanges']())['map'](_0x561f4c=>_0x1f3765['fromRange'](_0x561f4c));_0x5caafa['setSelection'](_0x143f70),_0x112bd0['commands']['get'](_0x406241['commandName'])['refresh'](),_0x406241['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x112bd0['execute'](_0x406241['commandName'],..._0x406241['commandParams']),_0x5caafa['setSelection'](_0x351555);for(const _0x428adf of _0x351555)_0x428adf['detach']();});}),_0x5b08b4['descriptionFactory']['registerElementLabel'](function(_0x2cadb0){const _0x4f313a=!_0x112bd0['model']['schema']['isObject'](_0x2cadb0),_0x4d8d9e=_0x2cadb0['previousSibling'],_0x33d564=_0x2cadb0['nextSibling'],_0x4697fa=_0x2cadb0['getAttribute']('listItemId'),_0x378e17=!_0x4d8d9e||_0x4d8d9e['getAttribute']('listItemId')!==_0x4697fa,_0x125a28=!_0x33d564||_0x33d564['getAttribute']('listItemId')!==_0x4697fa;return _0x4f313a&&Boolean(_0x4697fa)&&_0x378e17&&_0x125a28;},_0x143c21=>c(_0xfd1a9a,'ELEMENT_LIST_ITEM',_0x143c21));}['_registerLegacyDescription'](){const _0x39f5cb=this['editor'],_0x18e3da=_0x39f5cb['locale'];function _0x4b4560(_0x4a5353){const _0x1c4415=_0x39f5cb['commands']['get']('bulletedList')['value'],_0xe66681=_0x39f5cb['commands']['get']('numberedList')['value'];return'numberedList'===_0x4a5353?_0x1c4415:_0xe66681;}_0x39f5cb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x190ff7){if('formatBlock'!=_0x190ff7['type'])return;const {data:_0x20e1a2}=_0x190ff7;if(!_0x20e1a2)return;let _0x515f87,_0x24bd33,_0x3ec698,_0x2d9137;switch(_0x20e1a2['commandName']){case'bulletedList':_0x3ec698=_0x20e1a2['commandParams'][0x0]['forceValue'],_0x2d9137=_0x4b4560(_0x20e1a2['commandName']),_0x515f87=_0x3ec698?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2d9137&&_0x39f5cb['config']['get']('list.multiBlock')||(_0x515f87='*Change\x20to:*\x20%0'),_0x24bd33={'type':'format','content':c(_0x18e3da,_0x515f87,c(_0x18e3da,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x3ec698=_0x20e1a2['commandParams'][0x0]['forceValue'],_0x2d9137=_0x4b4560(_0x20e1a2['commandName']),_0x515f87=_0x3ec698?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2d9137&&_0x39f5cb['config']['get']('list.multiBlock')||(_0x515f87='*Change\x20to:*\x20%0'),_0x24bd33={'type':'format','content':c(_0x18e3da,_0x515f87,c(_0x18e3da,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x515f87='*Indent:*\x20%0',_0x24bd33={'type':'format','content':c(_0x18e3da,_0x515f87,c(_0x18e3da,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x515f87=function(_0x248985){const _0x312515=_0x248985['getFirstRange']();let _0x1582fb=_0x312515['start']['nodeAfter'];for(;_0x1582fb&&_0x312515['containsItem'](_0x1582fb);){if(_0x1582fb['getAttribute']('listIndent')>0x0)return!0x1;_0x1582fb=_0x1582fb['nextSibling'];}return!0x0;}(_0x190ff7)?c(_0x18e3da,'*Format:*\x20remove\x20from\x20%0',c(_0x18e3da,function(_0x5ad842){return'ELEMENT_'+_0x5ad842['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x190ff7))):c(_0x18e3da,'*Outdent:*\x20%0',c(_0x18e3da,'ELEMENT_LIST_ITEM')),_0x24bd33={'type':'format','content':_0x515f87};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x20e1a2['multipleBlocks']&&(_0x515f87='*Merge:*\x20%0',_0x24bd33={'type':'deletion','content':c(_0x18e3da,_0x515f87,c(_0x18e3da,'ELEMENT_LIST_ITEM'))});}return _0x24bd33;});}}function Te(_0x460fe7){let _0x24ef0b=_0x460fe7['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x24ef0b;){const _0x2b6f37=_0x24ef0b['getAttribute']('listItemId');if(!_0x2b6f37)return!0x1;if(_0x2b6f37==_0x460fe7['data']['newValue'])return'newValue';if(_0x2b6f37==_0x460fe7['data']['oldValue'])return'oldValue';_0x24ef0b=_0x24ef0b['previousSibling'];}return!0x1;}class Se extends _0x34c566{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x352d9b=this['editor']['config']['get']('list.properties'),_0x1d7306=this['editor']['plugins']['get']('TrackChangesEditing');_0x352d9b['styles']&&(_0x1d7306['enableDefaultAttributesIntegration']('listStyle'),_0x1d7306['registerBlockAttribute']('listStyle')),_0x352d9b['reversed']&&(_0x1d7306['enableDefaultAttributesIntegration']('listReversed'),_0x1d7306['registerBlockAttribute']('listReversed')),_0x352d9b['startIndex']&&(_0x1d7306['enableDefaultAttributesIntegration']('listStart'),_0x1d7306['registerBlockAttribute']('listStart'));const _0x4ec962={'type':'format','content':''};_0x1d7306['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x28de38=this['editor']['locale'];_0x1d7306['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x28de38,'FORMAT_LIST_REVERSED')),_0x1d7306['descriptionFactory']['registerDescriptionCallback'](_0x3c4f9a=>{const {data:_0x32e27d}=_0x3c4f9a;if(_0x32e27d&&'listReversed'==_0x32e27d['key'])return null==_0x32e27d['newValue']||0x0==_0x32e27d['newValue']&&null==_0x32e27d['oldValue']?_0x4ec962:void 0x0;}),_0x1d7306['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x28de38,'FORMAT_LIST_START')),_0x1d7306['descriptionFactory']['registerDescriptionCallback'](_0x1f007c=>{const {data:_0x57e5da}=_0x1f007c;if(_0x57e5da&&'listStart'==_0x57e5da['key'])return null==_0x57e5da['newValue']||0x1==_0x57e5da['newValue']&&null==_0x57e5da['oldValue']?_0x4ec962:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4b0ea5=>{if(_0x4b0ea5['batch']['isUndo'])return!0x1;let _0x29a859=!0x1;const _0x40c43e=_0x1d7306['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3635d8=>{const _0x5dba55=_0x1d7306['_getAttributeKey'](_0x3635d8);return'listStart'==_0x5dba55||'listReversed'==_0x5dba55;});for(const _0x505a23 of _0x40c43e){const _0x366f00=_0x505a23['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x366f00||'customNumbered'==_0x366f00)continue;_0x1d7306['_findSuggestions'](_0x505a23['getFirstRange'](),'attribute')['find'](_0x271318=>'listType'==_0x1d7306['_getAttributeKey'](_0x271318['suggestion']))||(_0x4b0ea5['removeMarker'](_0x505a23['getFirstMarker']()),_0x29a859=!0x0);}return _0x29a859;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1c2ed8){const _0x5546b3=this['editor']['locale'],{data:_0x31a21d}=_0x1c2ed8,_0x3571c0={'type':'format','content':''};if(!_0x31a21d||'listStyle'!=_0x31a21d['key'])return;if(!_0x31a21d['oldValue'])return'default'==_0x31a21d['newValue']?_0x3571c0:{'type':'format','content':''+c(_0x5546b3,'*Set\x20format:*\x20%0',c(_0x5546b3,this['_getTranslationKeyForListStyle'](_0x31a21d['newValue'])))};if(!_0x31a21d['newValue']){if('default'==_0x31a21d['oldValue'])return _0x3571c0;let _0x3dcf1b=_0x1c2ed8['head'];for(;_0x3dcf1b;){if(_0x3dcf1b['data']&&'listType'==_0x3dcf1b['data']['key']&&_0x3dcf1b['data']['newValue'])return _0x3571c0;_0x3dcf1b=_0x3dcf1b['next'];}return{'type':'format','content':''+c(_0x5546b3,'*Remove\x20format:*\x20%0',c(_0x5546b3,this['_getTranslationKeyForListStyle'](_0x31a21d['oldValue'])))};}if('default'!=_0x31a21d['newValue'])return{'type':'format','content':''+c(_0x5546b3,'*Set\x20format:*\x20%0',c(_0x5546b3,this['_getTranslationKeyForListStyle'](_0x31a21d['newValue'])))};let _0x4ef9fa=_0x1c2ed8['head'];for(;_0x4ef9fa;){if(_0x4ef9fa['data']&&'listType'==_0x4ef9fa['data']['key']&&_0x4ef9fa['data']['newValue']&&_0x4ef9fa['data']['oldValue'])return _0x3571c0;_0x4ef9fa=_0x4ef9fa['next'];}return{'type':'format','content':c(_0x5546b3,'*Set\x20format:*\x20%0',c(_0x5546b3,'ELEMENT_'+_0x1c2ed8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x585e5f=this['editor'],_0x19536a=_0x585e5f['locale'];_0x585e5f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x416ba2=>{if('formatBlock'!=_0x416ba2['type'])return;const {data:_0x2aa25e}=_0x416ba2;if(!_0x2aa25e)return;let _0x4ef826,_0x469f1e;switch(_0x2aa25e['commandName']){case'listStyle':_0x4ef826='*Change\x20to:*\x20%0',_0x469f1e={'type':'format','content':c(_0x19536a,_0x4ef826,c(_0x19536a,this['_getTranslationKeyForListStyle'](_0x2aa25e['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4ef826=_0x2aa25e['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x469f1e={'type':'format','content':c(_0x19536a,_0x4ef826)};break;case'listStart':_0x4ef826='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x469f1e={'type':'format','content':c(_0x19536a,_0x4ef826,_0x2aa25e['commandParams'][0x0]['startIndex'])};}return _0x469f1e;});}['_getTranslationKeyForListStyle'](_0x3d2eb1){return'ELEMENT_'+function(_0x238d0b){if(_e['includes'](_0x238d0b))return'bulleted';if(Re['includes'](_0x238d0b))return'numbered';return null;}(_0x3d2eb1)['toUpperCase']()+'_LIST_'+_0x3d2eb1['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x34c566{static get['requires'](){return[_0x1c9ae7];}['init'](){const _0x860ce8=this['editor'],_0x557b94=_0x860ce8['plugins']['get']('TrackChangesEditing'),_0x2471cf=_0x860ce8['commands']['get']('enter');_0x557b94['enableCommand']('enter',()=>{_0x860ce8['model']['change'](_0x49eccb=>{const _0x1b8d8a=_0x860ce8['model']['document']['selection'],_0x2e1455=_0x1b8d8a['getFirstPosition'](),_0x56e12c=_0x1f3765['fromRange'](_0x1b8d8a['getFirstRange']());if(_0x2471cf['enterBlock'](_0x49eccb)){const _0x51f90f=_0x860ce8['model']['createPositionAt'](_0x2e1455['parent']['nextSibling'],0x0),_0x293069=_0x49eccb['createRange'](_0x2e1455,_0x51f90f);_0x557b94['markInsertion'](_0x293069);}else _0x49eccb['setSelection'](_0x49eccb['createRange'](_0x56e12c['end']));_0x56e12c['detach'](),_0x2471cf['fire']('afterExecute',{'writer':_0x49eccb});});}),_0x860ce8['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x860ce8,'split'),{'priority':'high'}),_0x860ce8['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x4a9e61,_0x3ce7d1,_0x3d1f63)=>{const _0x51d884=_0x3d1f63['mapper']['markerNameToElements'](_0x3ce7d1['markerName']);if(_0x51d884){for(const _0x5b5bd4 of _0x51d884)_0x5b5bd4['hasClass']('ck-suggestion-marker-split')&&(_0x3d1f63['mapper']['unbindElementFromMarkerName'](_0x5b5bd4,_0x3ce7d1['markerName']),_0x3d1f63['writer']['remove'](_0x5b5bd4));}},{'priority':'high'}),_0x860ce8['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3eec23,_0x3e1ba6,_0x4fc75a)=>{_0x4fc75a['options']['showSuggestionHighlights']&&De(_0x860ce8,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x3eec23,_0x3e1ba6,_0x4fc75a);},{'priority':'high'});}}class Y extends _0x34c566{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x440fd7=this['editor']['plugins']['get']('TrackChangesEditing');_0x440fd7['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x440fd7['enableCommand']('findNext'),_0x440fd7['enableCommand']('findPrevious'),_0x440fd7['enableCommand']('replace'),_0x440fd7['enableCommand']('replaceAll');}['handleFindCommand'](_0x28feaa,_0x1b7eed,_0x4381bd={}){const _0x4ce539=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x28feaa(_0x9d621e=>{let _0x2a0ba1=('string'==typeof _0x1b7eed?_0x4ce539['findByTextCallback'](_0x1b7eed,_0x4381bd):_0x1b7eed)(_0x9d621e);Array['isArray'](_0x2a0ba1)&&(_0x2a0ba1={'results':_0x2a0ba1,'searchText':'string'==typeof _0x1b7eed?_0x1b7eed:''});const _0x5a010c=_0x2a0ba1['results']['filter'](_0x15041e=>!0x1===this['_isInDeletionRange'](_0x15041e,_0x9d621e['item']));return{..._0x2a0ba1,'results':_0x5a010c};},_0x4381bd);}['_isInDeletionRange'](_0x388104,_0x39cb6e){const _0x26977f=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x39cb6e,_0x388104['start']),this['editor']['model']['createPositionAt'](_0x39cb6e,_0x388104['end']));for(const _0x389edd of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x26977f['getIntersection'](_0x389edd['getRange']()))return!0x0;return!0x1;}}const to=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x34c566{['afterInit'](){const _0x5629c8=this['editor']['locale'],_0x4f92c9=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x454fa8,commandName:_0x46cacf}of to)this['editor']['plugins']['has'](_0x454fa8)&&(_0x4f92c9['enableDefaultAttributesIntegration'](_0x46cacf),_0x4f92c9['registerInlineAttribute'](_0x46cacf));_0x4f92c9['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x5629c8,'FORMAT_FONT_SIZE')),_0x4f92c9['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x5629c8,'FORMAT_FONT_FAMILY')),_0x4f92c9['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x5629c8,'FORMAT_FONT_COLOR')),_0x4f92c9['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x5629c8,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d0204=this['editor'],_0x3b0262=_0x2d0204['locale'];_0x2d0204['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2fc4b1=>{const _0x884725=_0x3b0262['t'];if('formatInline'!=_0x2fc4b1['type'])return;const {data:_0x1b2d9e}=_0x2fc4b1;if(null!=_0x1b2d9e){if('fontSize'==_0x1b2d9e['commandName']){const _0x191ea3=_0x1b2d9e['commandParams'][0x0]['value'];if(_0x191ea3){const _0x3fa7b1=_0x884725(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4a268a=>_0x4a268a['model']==_0x191ea3)['title'])['toLowerCase']();return{'type':'format','content':c(_0x3b0262,'*Set\x20font\x20size:*\x20%0',_0x3fa7b1)};}return{'type':'format','content':c(_0x3b0262,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x1b2d9e['commandName']){const _0x3ad1af=_0x1b2d9e['commandParams'][0x0]['value'];return _0x3ad1af?{'type':'format','content':c(_0x3b0262,'*Set\x20font\x20family:*\x20%0',_0x3ad1af)}:{'type':'format','content':c(_0x3b0262,'*Reset\x20font\x20family*')};}if('fontColor'==_0x1b2d9e['commandName']){const _0x9204c5=_0x1b2d9e['commandParams'][0x0]['value'];if(_0x9204c5){const _0x3128ea=Zt(this['editor']['config']['get']('fontColor.colors'))['find'](_0xb6c2c=>_0xb6c2c['model']==_0x9204c5);let _0x5c9ddf=_0x9204c5,_0x269900='';return _0x3128ea&&(_0x5c9ddf=_0x3128ea['label'],_0x269900=_0x884725(_0x5c9ddf)['toLowerCase']()),{'type':'format','content':c(_0x3b0262,'*Set\x20font\x20color:*\x20%0',_0x269900)['trim'](),'color':{'value':_0x9204c5,'title':_0x269900||_0x5c9ddf}};}return{'type':'format','content':c(_0x3b0262,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x1b2d9e['commandName']){const _0x48a2ee=_0x1b2d9e['commandParams'][0x0]['value'];if(_0x48a2ee){const _0x33cdfe=Zt(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x4e7a82=>_0x4e7a82['model']==_0x48a2ee);let _0x4c168b=_0x48a2ee,_0x46652a='';return _0x33cdfe&&(_0x4c168b=_0x33cdfe['label'],_0x46652a=_0x884725(_0x4c168b)['toLowerCase']()),{'type':'format','content':c(_0x3b0262,'*Set\x20font\x20background\x20color:*\x20%0',_0x46652a)['trim'](),'color':{'value':_0x48a2ee,'title':_0x46652a||_0x4c168b}};}return{'type':'format','content':c(_0x3b0262,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x34c566{['afterInit'](){const _0x307623=this['editor'],_0x5cf20f=_0x307623['plugins']['get']('TrackChangesEditing'),_0xf356a=_0x307623['commands']['get']('copyFormat'),_0x5b35b6=_0x307623['commands']['get']('pasteFormat');_0xf356a&&_0x5b35b6&&(_0x5cf20f['enableDefaultAttributesIntegration']('pasteFormat'),_0x5cf20f['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x414756=this['editor'],_0x3aa84f=_0x414756['locale'];_0x414756['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb73064=>{if('formatBlock'!=_0xb73064['type']&&'formatInline'!=_0xb73064['type'])return;const {data:_0xb9aab6}=_0xb73064;if(_0xb9aab6&&'pasteFormat'===_0xb9aab6['commandName']){const _0x4a0e24=[],_0x40b319=_0xb9aab6['commandParams'][0x0];for(const [_0x1c903f,_0x536210]of Object['entries'](_0x40b319))_0x4a0e24['push'](ro(_0x414756,_0x1c903f,_0x536210));return _0x4a0e24['length']?{'type':'format','content':c(_0x3aa84f,'*Set\x20format\x20to:*\x20%0',_0x4a0e24['join'](',\x20'))}:{'type':'format','content':c(_0x3aa84f,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x88c013,_0x2de237,_0x4575a9){const _0x9a4e6c=_0x88c013['locale']['t'],_0x1cfae2=_0x2de237['split'](/(?=[A-Z])/)['join']('\x20'),_0x540379=_0x9a4e6c(_0x1cfae2['charAt'](0x0)['toUpperCase']()+_0x1cfae2['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x4575a9)return _0x540379;if('fontColor'===_0x2de237||'fontBackgroundColor'===_0x2de237){const _0x16af90=Zt(_0x88c013['config']['get']('fontColor.colors'))['find'](_0x59d487=>_0x59d487['model']==_0x4575a9);return _0x540379+'\x20('+(_0x16af90?_0x9a4e6c(_0x16af90['label'])['toLowerCase']():_0x4575a9)+')';}if('fontSize'===_0x2de237&&isNaN(parseFloat(_0x4575a9))){const _0x53bd87=_0x88c013['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x88c013['config']['get']('fontSize.options'))['find'](_0x5ac5af=>_0x5ac5af['model']==_0x4575a9);return _0x540379+'\x20('+(_0x53bd87?_0x9a4e6c(_0x53bd87['title'])['toLowerCase']():_0x4575a9)+')';}return _0x540379+'\x20('+_0x4575a9+')';}class et extends _0x34c566{['_headingOptions'];['afterInit'](){const _0x290917=this['editor'];if(!_0x290917['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x290917['config']['get']('heading.options');const _0x348f03=_0x290917['locale'],_0x8df16f=_0x290917['plugins']['get']('TrackChangesEditing');_0x8df16f['enableDefaultAttributesIntegration']('heading');for(const _0x205afb of this['_headingOptions'])'paragraph'!=_0x205afb['model']&&_0x8df16f['descriptionFactory']['registerElementLabel'](_0x205afb['model'],_0x3be475=>{const _0x49143e=this['_getHeadingLevel'](_0x205afb['model']);return null!==_0x49143e?_0x38517a(_0x3be475,_0x49143e):_0x485121(_0x3be475,_0x205afb['title']);});function _0x38517a(_0x34a55f,_0xa883c9){return c(_0x348f03,'ELEMENT_HEADING',[_0x34a55f,_0xa883c9]);}function _0x485121(_0xfb4efe,_0x58cdb4){return c(_0x348f03,'ELEMENT_HEADING_CUSTOM',[_0xfb4efe,_0x58cdb4]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x42e833=this['editor'],_0x55d496=_0x42e833['locale'];function _0x34897a(_0xfbf1ac,_0x56068e){return c(_0x55d496,'ELEMENT_HEADING_CUSTOM',[_0xfbf1ac,_0x56068e]);}_0x42e833['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x197a84=>{if('formatBlock'!=_0x197a84['type'])return;const {data:_0x50a516}=_0x197a84;if(_0x50a516&&'heading'==_0x50a516['commandName']){const _0x36c492=_0x50a516['commandParams'][0x0]['value'],_0xe5414c=this['_getHeadingLevel'](_0x36c492);if(null!==_0xe5414c)return{'type':'format','content':c(_0x55d496,'*Change\x20to:*\x20%0',(_0x2df74d=0x1,_0x43abf5=_0xe5414c,c(_0x55d496,'ELEMENT_HEADING',[_0x2df74d,_0x43abf5])))};const _0x28af16=this['_headingOptions']['find'](_0x2f8ae6=>_0x2f8ae6['model']===_0x36c492)['title'];return{'type':'format','content':c(_0x55d496,'*Change\x20to:*\x20%0',_0x34897a(0x1,_0x28af16))};}var _0x2df74d,_0x43abf5;});}['_getHeadingLevel'](_0x29d3f1){const _0x543f61=_0x29d3f1['match'](/^heading(\d+)/);if(_0x543f61)return _0x543f61[0x1];const _0x6fb3f7=this['_headingOptions']?.['find'](_0x4c478a=>_0x4c478a['model']==_0x29d3f1);if(_0x6fb3f7&&_0x6fb3f7['view']){const _0x47f185=_0x6fb3f7['view'],_0x41cdf0=(_0x47f185['name']??_0x47f185)['match'](/^h(\d+)/);if(_0x41cdf0)return _0x41cdf0[0x1];}return null;}}class nt extends _0x34c566{['afterInit'](){const _0x110b73=this['editor'];if(!_0x110b73['plugins']['has']('HighlightEditing'))return;const _0x1a9e9b=_0x110b73['plugins']['get']('TrackChangesEditing'),_0x22707a=_0x110b73['locale'];_0x1a9e9b['enableDefaultAttributesIntegration']('highlight'),_0x1a9e9b['registerInlineAttribute']('highlight'),_0x1a9e9b['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x22707a,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xbd80bc=this['editor'],_0x3896f1=_0xbd80bc['locale'];_0xbd80bc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x450c79=>{if('formatInline'!=_0x450c79['type'])return;const {data:_0x5be60e}=_0x450c79;if(_0x5be60e&&'highlight'==_0x5be60e['commandName']){const _0x116a9b=_0x3896f1['t'],_0x43ad73=_0x5be60e['commandParams'][0x0]['value'];if(_0x43ad73){const _0x1ae421=_0xbd80bc['config']['get']('highlight.options')['find'](_0x512a7e=>_0x512a7e['model']==_0x43ad73),_0x325f0b=_0x116a9b(_0x1ae421['title'])['toLowerCase']();return{'type':'format','content':c(_0x3896f1,'*Set\x20highlight:*\x20%0',_0x325f0b),'color':{'value':_0x1ae421['color'],'title':_0x1ae421['title']}};}return{'type':'format','content':c(_0x3896f1,'*Remove\x20highlight*',c(_0x3896f1,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x34c566{['afterInit'](){const _0x443801=this['editor'];if(!_0x443801['plugins']['has']('HorizontalLineEditing'))return;_0x443801['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3cea7d=_0x443801['plugins']['get']('TrackChangesEditing'),_0x434c0c=_0x443801['locale'];_0x3cea7d['descriptionFactory']['registerElementLabel']('horizontalLine',_0xaefab6=>c(_0x434c0c,'ELEMENT_HORIZONTAL_LINE',_0xaefab6)),_0x443801['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x40fc9b,{writer:_0x1cebe0,options:_0x310854})=>{if(!_0x310854['showSuggestionHighlights'])return null;const _0x512f1f=_0x1cebe0['createContainerElement']('div'),_0x5e8d13=_0x1cebe0['createEmptyElement']('hr');return _0x1cebe0['addClass']('ck-horizontal-line',_0x512f1f),_0x1cebe0['insert'](_0x1cebe0['createPositionAt'](_0x512f1f,0x0),_0x5e8d13),_0x512f1f;},'converterPriority':'high'});}}class st extends _0x34c566{['afterInit'](){const _0x2d85fd=this['editor'];if(!_0x2d85fd['plugins']['has']('HtmlEmbed'))return;const _0x12e582=_0x2d85fd['plugins']['get']('TrackChangesEditing'),_0x36f14b=_0x2d85fd['locale'];_0x12e582['descriptionFactory']['registerElementLabel']('rawHtml',_0x59e6ff=>c(_0x36f14b,'ELEMENT_HTML_EMBED',_0x59e6ff)),_0x12e582['enableDefaultAttributesIntegration']('htmlEmbed'),_0x12e582['registerBlockAttribute']('value'),_0x12e582['descriptionFactory']['registerDescriptionCallback'](_0x515e60=>{if('attribute'!=_0x515e60['type'])return;const {data:_0x824d9a}=_0x515e60;if(_0x824d9a&&'value'==_0x824d9a['key']&&_0x515e60['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x59f411=c(_0x36f14b,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x36f14b,'*Change\x20%0\x20content*',_0x59f411)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x592971=this['editor'],_0x49407f=_0x592971['locale'];_0x592971['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xeeac43=>{if('formatBlock'!=_0xeeac43['type'])return;const {data:_0x277537}=_0xeeac43;if(_0x277537&&'htmlEmbed'==_0x277537['commandName']){const _0x4e4111=c(_0x49407f,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x49407f,'*Change\x20%0\x20content*',_0x4e4111)};}});}}class ot extends _0x34c566{['afterInit'](){const _0x5f55ac=this['editor'];if(!_0x5f55ac['plugins']['has']('ImageEditing'))return;const _0x54a59c=_0x5f55ac['plugins']['get']('TrackChangesEditing'),_0x1be24b=_0x5f55ac['plugins']['get']('ImageUtils'),_0x5d0556=_0x5f55ac['locale'];_0x54a59c['enableCommand']('insertImage'),_0x54a59c['descriptionFactory']['registerElementLabel']('imageBlock',_0x11be50=>c(_0x5d0556,'ELEMENT_IMAGE',_0x11be50)),_0x54a59c['descriptionFactory']['registerElementLabel']('imageInline',_0xbe11f2=>c(_0x5d0556,'ELEMENT_INLINE_IMAGE',_0xbe11f2)),_0x54a59c['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x5d0556,'ELEMENT_CAPTION')),_0x5f55ac['plugins']['has']('ImageUploadEditing')&&_0x54a59c['enableCommand']('uploadImage'),_0x5f55ac['plugins']['has']('ImageBlockEditing')&&_0x5f55ac['plugins']['has']('ImageInlineEditing')&&(_0x54a59c['enableCommand']('imageTypeInline',(_0x3a8987,_0x340e8f)=>{const _0xaf40f=_0x1be24b['getClosestSelectedImageElement'](_0x5f55ac['model']['document']['selection']);_0x5f55ac['model']['change'](()=>{_0x54a59c['markBlockFormat'](_0xaf40f,{'commandName':'imageTypeInline','commandParams':[_0x340e8f]},[],'convertBlockImageToInline');});}),_0x54a59c['enableCommand']('imageTypeBlock',(_0x3435f5,_0x3abff8)=>{_0x5f55ac['model']['change'](_0x559864=>{let _0x27ece0=_0x1be24b['getClosestSelectedImageElement'](_0x5f55ac['model']['document']['selection']),_0x148aab=_0x559864['createRangeOn'](_0x27ece0);const _0x276dcc=_0x5a4d15['fromPosition'](_0x148aab['start'],'toPrevious'),_0x267480=_0x5a4d15['fromPosition'](_0x148aab['end'],'toNext');_0x54a59c['forceDefaultExecution'](()=>_0x3435f5(_0x3abff8)),_0x27ece0=_0x1be24b['getClosestSelectedImageElement'](_0x5f55ac['model']['document']['selection']),_0x148aab=_0x559864['createRangeOn'](_0x27ece0);const _0x49a6e5=_0x559864['createRange'](_0x276dcc,_0x267480);_0x276dcc['detach'](),_0x267480['detach'](),_0x54a59c['markBlockFormat'](_0x27ece0,{'commandName':'imageTypeInline','commandParams':[_0x3abff8]},[],'convertInlineImageToBlock'),_0x49a6e5['start']['isBefore'](_0x148aab['start'])&&_0x54a59c['markInsertion'](_0x559864['createRange'](_0x49a6e5['start'],_0x148aab['start']),'convertInlineImageToBlock'),_0x148aab['end']['isBefore'](_0x49a6e5['end'])&&_0x54a59c['markInsertion'](_0x559864['createRange'](_0x148aab['end'],_0x49a6e5['end']),'convertInlineImageToBlock');});}),_0x54a59c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x54a59c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x54a59c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x54a59c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x54a59c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x54a59c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x295266])=>{const _0x24246e=_0x54a59c['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x53ac06=_0x295266['start'],_0x441e85=_0x295266['end'];const _0x29d4d2=_0x5f55ac['model']['schema']['getNearestSelectionRange'](_0x53ac06,'backward'),_0x18c687=_0x5f55ac['model']['schema']['getNearestSelectionRange'](_0x441e85,'forward');_0x29d4d2['isCollapsed']&&(_0x53ac06=_0x29d4d2['start']),_0x18c687['isCollapsed']&&(_0x441e85=_0x18c687['end']),_0x24246e([_0x5f55ac['model']['createRange'](_0x53ac06,_0x441e85)]);}),_0x54a59c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x4f50b5),_0x54a59c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x4f50b5)),_0x5f55ac['plugins']['has']('ImageCaptionEditing')&&(_0x54a59c['enableCommand']('toggleImageCaption',(_0xad237a,_0x3cc737)=>{const _0x50ec75=_0x5f55ac['plugins']['get']('ImageCaptionUtils');let _0x140f05=_0x1be24b['getClosestSelectedImageElement'](_0x5f55ac['model']['document']['selection']),_0x1e8523=_0x50ec75['getCaptionFromImageModelElement'](_0x140f05);_0x5f55ac['model']['change'](()=>{if(_0x1e8523)return void _0x54a59c['markDeletion'](_0x5f55ac['model']['createRangeOn'](_0x1e8523));const _0x353f62=_0x1be24b['isBlockImage'](_0x140f05);_0xad237a(_0x3cc737),_0x140f05=_0x1be24b['getClosestSelectedImageElement'](_0x5f55ac['model']['document']['selection']),_0x1e8523=_0x50ec75['getCaptionFromImageModelElement'](_0x140f05),_0x54a59c['markInsertion'](_0x5f55ac['model']['createRangeOn'](_0x1e8523),_0x353f62?null:'imageCaption');});}),_0x54a59c['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x4f50b5));const _0x4a6177=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3d0f30(_0x42be9c,_0x345aec){const _0x564ee3=_0x4a6177['findIndex'](({type:_0x3f9e9f,subType:_0x3ee90f})=>_0x42be9c['type']==_0x3f9e9f&&_0x42be9c['subType']==_0x3ee90f),_0xf25173=_0x4a6177['findIndex'](({type:_0x542d40,subType:_0x24fe62})=>_0x345aec['type']==_0x542d40&&_0x345aec['subType']==_0x24fe62);if(_0x564ee3<0x0||_0xf25173<0x0)return!0x1;const _0x253199=_0x42be9c['getFirstRange'](),_0xa509a6=_0x345aec['getFirstRange']();if((0x0==_0x564ee3||0x1==_0x564ee3)&&0x2==_0xf25173&&_0x253199['isIntersecting'](_0xa509a6))return!0x0;if(0x2==_0x564ee3&&0x3==_0xf25173){const _0x4a82e0=_0x54a59c['_findSuggestions'](_0x253199,'insertion')['filter'](({suggestion:_0x9b754d,meta:_0x2d8270})=>_0x2d8270['isOwn']&&'convertInlineImageToBlock'==_0x9b754d['subType']);if(_0x4a82e0['length']>0x1&&_0xa509a6['end']['isEqual'](_0x253199['start']))return!0x0;if(0x1==_0x4a82e0['length']&&(_0x253199['start']['isEqual'](_0xa509a6['end'])||_0x253199['end']['isEqual'](_0xa509a6['start'])))return!0x0;}if(0x3==_0x564ee3&&0x3==_0xf25173&&_0x253199['start']['isBefore'](_0xa509a6['start'])){const _0x312e4c=_0x253199['end']['nodeAfter'],_0x577b11=_0xa509a6['start']['nodeBefore'];return _0x1be24b['isBlockImage'](_0x312e4c)&&_0x312e4c===_0x577b11;}return!0x1;}function _0x4f50b5(_0x2c54b2,_0x16c8e){return _0x3d0f30(_0x2c54b2,_0x16c8e)?[_0x2c54b2,_0x16c8e]:_0x3d0f30(_0x16c8e,_0x2c54b2)?[_0x16c8e,_0x2c54b2]:null;}_0x5f55ac['plugins']['has']('ImageResize')&&(_0x54a59c['enableDefaultAttributesIntegration']('resizeImage'),_0x54a59c['registerBlockAttribute']('resizedWidth'),_0x54a59c['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x5d0556,'FORMAT_IMAGE_SIZE'))),_0x5f55ac['plugins']['has']('ImageTextAlternativeEditing')&&(_0x54a59c['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x54a59c['registerBlockAttribute']('alt')),_0x5f55ac['plugins']['has']('PictureEditing')&&(_0x54a59c['registerBlockAttribute']('sources'),_0x54a59c['descriptionFactory']['registerDescriptionCallback'](_0x55fe82=>{if('attribute'!=_0x55fe82['type'])return;const {data:_0xfbae33}=_0x55fe82;return _0xfbae33&&'sources'==_0xfbae33['key']?{'type':'format','content':''}:void 0x0;})),_0x5f55ac['plugins']['has']('ImageSizeAttributes')&&(_0x54a59c['registerBlockAttribute']('width'),_0x54a59c['registerBlockAttribute']('height'),_0x54a59c['descriptionFactory']['registerDescriptionCallback'](_0x36f1ac=>{if('attribute'!=_0x36f1ac['type'])return;const {data:_0x3fae05}=_0x36f1ac;return!_0x3fae05||'width'!=_0x3fae05['key']&&'height'!=_0x3fae05['key']?void 0x0:{'type':'format','content':''};})),_0x54a59c['descriptionFactory']['registerDescriptionCallback'](_0x2940c1=>{if(!!_0x4a6177['find'](({type:_0x4a3317,subType:_0x3a9c71})=>_0x2940c1['type']==_0x4a3317&&_0x2940c1['subType']==_0x3a9c71))return _0x2940c1['previous']?{}:void 0x0;}),_0x54a59c['descriptionFactory']['registerDescriptionCallback'](_0x139f2f=>{if('insertion'==_0x139f2f['type']||'deletion'==_0x139f2f['type']){const _0x13f95b=_0x139f2f['getContainedElement']();if(_0x13f95b&&_0x13f95b['is']('element','caption'))return{'type':'insertion'==_0x139f2f['type']?'addObject':'removeObject','element':_0x13f95b,'quantity':0x1};}}),_0x54a59c['descriptionFactory']['registerDescriptionCallback'](_0x34b26b=>'formatBlock'==_0x34b26b['type']&&'convertInlineImageToBlock'==_0x34b26b['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x34b26b['type']&&'convertBlockImageToInline'==_0x34b26b['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x54a59c['descriptionFactory']['registerDescriptionCallback'](_0x29f61a=>{if('attribute'!=_0x29f61a['type'])return;const {data:_0x22a5d5}=_0x29f61a;if(!_0x22a5d5||'alt'!=_0x22a5d5['key'])return;const _0x21e4ed=_0x22a5d5['newValue'];return _0x21e4ed?{'type':'format','content':c(_0x5d0556,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x21e4ed+'\x22')}:{'type':'format','content':c(_0x5d0556,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xfe8f14=this['editor'],_0x1ddaa1=_0xfe8f14['locale'];_0xfe8f14['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b32cb=>{if('formatBlock'!=_0x3b32cb['type']&&'formatInline'!=_0x3b32cb['type'])return;const {data:_0x317c5e}=_0x3b32cb;if(_0x317c5e){if('imageTextAlternative'==_0x317c5e['commandName']){const _0x1b160f=_0x317c5e['commandParams'][0x0]['newValue'];return _0x1b160f?{'type':'format','content':c(_0x1ddaa1,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1b160f+'\x22')}:{'type':'format','content':c(_0x1ddaa1,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x317c5e['commandName']){const _0x5df4e6=_0x317c5e['commandParams'][0x0]['width'];return _0x5df4e6?{'type':'format','content':c(_0x1ddaa1,'*Set\x20image\x20width:*\x20%0',_0x5df4e6)}:{'type':'format','content':c(_0x1ddaa1,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x34c566{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x3d5c21=this['editor']['locale'],_0x26b602=this['editor']['plugins']['get']('TrackChangesEditing');_0x26b602['enableDefaultAttributesIntegration']('replaceImageSource'),_0x26b602['registerBlockAttribute']('src'),_0x26b602['descriptionFactory']['registerDescriptionCallback'](_0xfb33e5=>{if('attribute'!=_0xfb33e5['type'])return;const {data:_0x246300}=_0xfb33e5;return _0x246300&&'src'==_0x246300['key']?_0x246300['newValue']&&_0x246300['oldValue']?{'type':'format','content':c(_0x3d5c21,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4d156f=this['editor']['plugins']['get']('TrackChangesEditing');_0x4d156f['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4d156f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4d156f['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4d156f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x37db57=this['editor'],_0x21eaa3=_0x37db57['locale'];_0x37db57['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c4b45=>{if('formatBlock'!=_0x2c4b45['type']&&'formatInline'!=_0x2c4b45['type'])return;const {data:_0x25878a}=_0x2c4b45;if(!_0x25878a||'replaceImageSource'!=_0x25878a['commandName'])return;return{'type':'format','content':c(_0x21eaa3,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x34c566{['afterInit'](){const _0x394255=this['editor'];if(!_0x394255['plugins']['has']('ImageStyleEditing'))return;const _0x3de4f1=_0x394255['plugins']['get']('TrackChangesEditing'),_0xa6a0fd=_0x394255['plugins']['get']('ImageUtils'),_0x212554={};_0x3de4f1['enableCommand']('imageStyle',(_0xbc9d18,_0xa0b3ba)=>{const _0x1c57e3=_0x394255['plugins']['get']('Users')['me'],_0x2526c6=_0x394255['commands']['get']('imageStyle');let _0x2a04b7=_0xa6a0fd['getClosestSelectedImageElement'](_0x394255['model']['document']['selection']),_0x211838=_0x394255['model']['createRangeOn'](_0x2a04b7),_0x125afe=_0x2526c6['value'];if(_0x125afe==_0xa0b3ba['value'])return;const _0x473f72={'commandName':'imageStyle','commandParams':[_0xa0b3ba],'formatGroupId':_0x18c716()};_0x394255['model']['change'](()=>{if(_0x3de4f1['getSuggestions']()['filter'](_0x46894f=>_0x46894f['isInContent']&&_0x1c57e3==_0x46894f['author']&&('formatBlock'==_0x46894f['type']||'formatInline'==_0x46894f['type'])&&('imageStylePreApply'==_0x46894f['subType']||'imageStylePostApply'==_0x46894f['subType'])&&_0x46894f['getFirstRange']()['isEqual'](_0x211838))['forEach'](_0x3335eb=>_0x3de4f1['discardSuggestion'](_0x3335eb['head'])),_0x2a04b7=_0xa6a0fd['getClosestSelectedImageElement'](_0x394255['model']['document']['selection']),_0x211838=_0x394255['model']['createRangeOn'](_0x2a04b7),_0x2526c6['refresh'](),_0x394255['commands']['get']('imageTypeInline')['refresh'](),_0x394255['commands']['get']('imageTypeBlock')['refresh'](),_0x125afe=_0x2526c6['value'],_0x125afe!=_0xa0b3ba['value'])return _0xa6a0fd['isInlineImage'](_0x2a04b7)&&_0x2526c6['shouldConvertImageType'](_0xa0b3ba['value'],_0x2a04b7)?(_0xbc9d18({..._0xa0b3ba,'setImageSizes':!0x1}),_0x2a04b7=_0xa6a0fd['getClosestSelectedImageElement'](_0x394255['model']['document']['selection']),void _0x3de4f1['markBlockFormat'](_0x2a04b7,{..._0x473f72,'commandReversedParams':[{'value':_0x125afe||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0xa6a0fd['isBlockImage'](_0x2a04b7)?_0x3de4f1['markBlockFormat'](_0x2a04b7,_0x473f72,[],'imageStylePostApply'):_0x3de4f1['markInlineFormat'](_0x211838,_0x473f72,'imageStylePostApply'));});});for(const _0x5cd92b of _0x394255['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x212554[_0x5cd92b['name']]=_0x5cd92b['title']['toLowerCase']();_0x3de4f1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3de4f1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3de4f1['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3de4f1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x52ca7b])=>{_0xa6a0fd['setImageNaturalSizeAttributes'](_0x52ca7b['getContainedElement']());}),_0x3de4f1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2acd96,_0x3f95f5)=>{_0x3de4f1['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2acd96,{'commandName':_0x3f95f5['commandName'],'commandParams':_0x3f95f5['commandReversedParams']});}),_0x3de4f1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x45dec7,_0x5120e3){if(_0x18ed00(_0x45dec7,_0x5120e3))return[_0x45dec7,_0x5120e3];if(_0x18ed00(_0x5120e3,_0x45dec7))return[_0x5120e3,_0x45dec7];return null;});const _0x2455b7=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x18ed00(_0x5750e3,_0x5c8f5b){const _0x42be18=_0x2455b7['findIndex'](({type:_0x448227,subType:_0x58dbc1})=>_0x5750e3['type']==_0x448227&&_0x5750e3['subType']==_0x58dbc1),_0x414519=_0x2455b7['findIndex'](({type:_0x4d3da3,subType:_0x418aab})=>_0x5c8f5b['type']==_0x4d3da3&&_0x5c8f5b['subType']==_0x418aab);if(_0x42be18<0x0||_0x414519<0x0)return!0x1;const _0x95e37c=_0x5750e3['getFirstRange'](),_0x46d155=_0x5c8f5b['getFirstRange']();if((0x0==_0x42be18||0x1==_0x42be18)&&0x2==_0x414519&&_0x95e37c['isIntersecting'](_0x46d155))return!0x0;if(0x2==_0x42be18&&0x3==_0x414519){const _0x630ce=_0x3de4f1['_findSuggestions'](_0x95e37c,'insertion')['filter'](({suggestion:_0x55c891,meta:_0x272b6e})=>_0x272b6e['isOwn']&&'convertInlineImageToBlock'==_0x55c891['subType']);if(_0x630ce['length']>0x1&&_0x46d155['end']['isEqual'](_0x95e37c['start']))return!0x0;if(0x1==_0x630ce['length']&&(_0x95e37c['start']['isEqual'](_0x46d155['end'])||_0x95e37c['end']['isEqual'](_0x46d155['start'])))return!0x0;}if(0x3==_0x42be18&&0x3==_0x414519&&_0x95e37c['start']['isBefore'](_0x46d155['start'])){const _0x1ac7f0=_0x95e37c['end']['nodeAfter'],_0x41ae79=_0x46d155['start']['nodeBefore'];return _0xa6a0fd['isBlockImage'](_0x1ac7f0)&&_0x1ac7f0===_0x41ae79;}return!0x1;}_0x394255['model']['document']['registerPostFixer'](()=>{let _0x53b196=!0x1;const _0x4377e7=Array['from'](_0x394255['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2a08be,data:_0x5eb37a}of _0x4377e7){const {group:_0x5c531b,type:_0x3e260,subType:_0xcc4ea,id:_0x3f8b13}=_0x3de4f1['_splitMarkerName'](_0x2a08be);if('suggestion'==_0x5c531b&&_0x3de4f1['hasSuggestion'](_0x3f8b13)){if('formatBlock'==_0x3e260&&('imageStylePreApply'==_0xcc4ea||'imageStylePostApply'==_0xcc4ea)){const _0x1930fb=_0x3de4f1['getSuggestion'](_0x3f8b13);if(_0x5eb37a['newRange']){const _0x158882=_0x1930fb['getFirstRange']()['getContainedElement']();if(_0xa6a0fd['isBlockImage'](_0x158882))continue;_0x3de4f1['discardSuggestion'](_0x1930fb),_0x53b196=!0x0;}}if('insertion'==_0x3e260&&'imageCaption'==_0xcc4ea&&!_0x5eb37a['newRange']){const _0x508d93=_0x3de4f1['getSuggestion'](_0x3f8b13);_0x508d93['next']&&_0x508d93['next']['isInContent']&&(_0x3de4f1['discardSuggestion'](_0x508d93['next']),_0x53b196=!0x0);}}}return _0x53b196;}),this['_registerLegacyDescription'](_0x212554);}['_registerLegacyDescription'](_0x335cab){const _0x1bc4e4=this['editor'],_0x25a23f=_0x1bc4e4['locale'];_0x1bc4e4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6501f8=>{if('formatBlock'!=_0x6501f8['type']&&'formatInline'!=_0x6501f8['type'])return;const {data:_0x4a00dc}=_0x6501f8;if(!_0x4a00dc||'imageStyle'!=_0x4a00dc['commandName'])return;const _0x527645=_0x4a00dc['commandParams'][0x0]['value'];return _0x5ab48a('side'===_0x527645?c(_0x25a23f,'FORMAT_SIDE_IMAGE'):_0x335cab[_0x527645]||_0x527645);function _0x5ab48a(_0x12ba6a){return{'type':'format','content':c(_0x25a23f,'*Format:*\x20%0',_0x12ba6a)};}});}}class ct extends _0x34c566{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x13f2ec){super(_0x13f2ec),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x18304f=this['editor'],_0x5ab660=_0x18304f['commands']['get']('importWord'),_0x4d10ad=_0x18304f['commands']['get']('trackChanges');_0x5ab660&&(_0x5ab660['on']('execute',(_0x2a4fec,[,_0x4879b5])=>{this['_trackChangesValueDuringImport']=_0x4d10ad['value'],_0x4879b5['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x5ab660,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x5ab660,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x4d10ad['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x18304f['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x45c5b4,_0x3ee961){const {suggestions:_0x2a5868}=_0x3ee961,_0x2e9b83=this['editor']['commands']['get']('trackChanges'),_0x594aa6=_0x2e9b83['value'];this['_trackChangesValueDuringImport']!==_0x594aa6&&(_0x2e9b83['execute'](),this['_trackChangesExecuted']=!0x0),_0x2a5868&&_0x2a5868['forEach'](({id:_0xed04a7,type:_0x4fca1d,author:_0x28d986,created_at:_0x18ca15})=>{const _0x5d2f8b={'id':_0xed04a7,'type':_0x4fca1d,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x28d986,'createdAt':_0x18ca15?new Date(_0x18ca15):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x5d2f8b);});}}class ut extends _0x34c566{['afterInit'](){const _0x4e3266=this['editor'],_0x1b7956=_0x4e3266['plugins']['get']('TrackChangesEditing');if(_0x4e3266['plugins']['has']('IndentEditing')&&(_0x1b7956['enableCommand']('indent'),_0x1b7956['enableCommand']('outdent')),_0x4e3266['plugins']['has']('IndentBlock')){for(const _0x162d05 of['indentBlock','outdentBlock'])_0x1b7956['enableDefaultAttributesIntegration'](_0x162d05);}const _0x40f378=_0x4e3266['locale'];_0x1b7956['registerBlockAttribute']('blockIndent'),_0x1b7956['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x40f378,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x43c3ee=this['editor'],_0x5e5b32=_0x43c3ee['locale'],_0x54c037=_0x43c3ee['plugins']['get']('TrackChangesEditing');_0x54c037['descriptionFactory']['registerDescriptionCallback'](_0x45a8c1=>{if('formatBlock'!=_0x45a8c1['type'])return;const {data:_0x1dd466}=_0x45a8c1;if(!_0x1dd466)return;if('indentBlock'!=_0x1dd466['commandName']&&'outdentBlock'!=_0x1dd466['commandName'])return;const _0x32adcd=_0x45a8c1['getItems']()[0x0],_0x33ea8b=_0x54c037['descriptionFactory']['getItemLabel'](_0x32adcd);return'indentBlock'==_0x1dd466['commandName']?{'type':'format','content':c(_0x5e5b32,'*Indent:*\x20%0',_0x33ea8b)}:'outdentBlock'==_0x1dd466['commandName']?{'type':'format','content':c(_0x5e5b32,'*Outdent:*\x20%0',_0x33ea8b)}:void 0x0;});}}class ft extends _0x34c566{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x34c566{['afterInit'](){const _0x340116=this['editor'];if(!_0x340116['plugins']['has']('LinkEditing'))return;const _0x27ecae=_0x340116['plugins']['get']('TrackChangesEditing'),_0x10b5d9=_0x340116['commands']['get']('link');_0x27ecae['enableDefaultAttributesIntegration']('link'),_0x27ecae['enableDefaultAttributesIntegration']('unlink'),_0x27ecae['registerInlineAttribute']('linkHref');for(const _0x62bca7 of _0x10b5d9['manualDecorators'])_0x27ecae['registerInlineAttribute'](_0x62bca7['id']),_0x27ecae['descriptionFactory']['registerAttributeLabel'](_0x62bca7['id'],'link\x20('+_0x62bca7['label']['toLowerCase']()+')');_0x27ecae['descriptionFactory']['registerDescriptionCallback'](_0x148703=>{if('attribute'!=_0x148703['type'])return;const {data:_0x3f0ae3}=_0x148703;if(!_0x3f0ae3||'linkHref'!=_0x3f0ae3['key'])return;const _0x442f00=_0x3f0ae3['newValue'],_0x1e640b=_0x340116['locale'];return{'type':'format','content':null==_0x442f00?c(_0x1e640b,'*Remove\x20link*'):c(_0x1e640b,'*Set\x20link:*\x20%0','\x22'+_0x442f00+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e3243=this['editor'],_0x518ed6=_0x2e3243['locale'];_0x2e3243['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xda4513=>{if('formatInline'!=_0xda4513['type'])return;const {data:_0x115b56}=_0xda4513;if(_0x115b56){if('link'==_0x115b56['commandName']){const _0x5e8a1d=_0x115b56['commandParams'][0x0];return{'type':'format','content':c(_0x518ed6,'*Set\x20link:*\x20%0','\x22'+_0x5e8a1d+'\x22')};}return'unlink'==_0x115b56['commandName']?{'type':'format','content':c(_0x518ed6,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x34c566{['afterInit'](){const _0x3f40eb=this['editor'],_0x1c136c=_0x3f40eb['locale'];if(!_0x3f40eb['plugins']['has']('LegacyListEditing'))return;const _0x58f371=_0x3f40eb['plugins']['get']('TrackChangesEditing'),_0x356156=_0x3f40eb['plugins']['has']('LegacyTodoListEditing');function _0x174bb8(_0x1eb0e7){return()=>{const _0x21d2f4=_0x3f40eb['model']['document']['selection'],_0x7caa32=_0x3f40eb['commands']['get'](_0x1eb0e7);if(_0x7caa32['value'])return void _0x3f40eb['execute']('paragraph',{});const _0xe86f36=_0x1eb0e7['slice'](0x0,-0x4),_0x325136=function(_0x1b63d3,_0x1bd62d,_0x321854){let _0x544315=Array['from'](_0x1b63d3)['filter'](_0x1ceda9=>function(_0x7b3423,_0x1f1abb){return _0x1f1abb['checkChild'](_0x7b3423['parent'],'listItem')&&!_0x1f1abb['isObject'](_0x7b3423);}(_0x1ceda9,_0x321854));_0x544315=_0x544315['filter'](_0xe29504=>!_0xe29504['is']('element','listItem')||_0xe29504['getAttribute']('listType')!=_0x1bd62d);const _0x454f4a=new Set();for(const _0x27c1c0 of _0x544315)_0x27c1c0['is']('element','listItem')?_0x454f4a['add'](Le(_0x27c1c0)):_0x454f4a['add'](_0x27c1c0);return Array['from'](_0x454f4a);}(_0x21d2f4['getSelectedBlocks'](),_0xe86f36,_0x3f40eb['model']['schema']);_0x3f40eb['model']['change'](()=>{for(const _0x383f2b of _0x325136)_0x58f371['markBlockFormat'](_0x383f2b,{'commandName':_0x1eb0e7,'commandParams':[{'forceValue':!_0x7caa32['value']}],'formatGroupId':'blockName'},Ee(_0x383f2b));});};}function _0x2fba20(_0x4a5d8d){return()=>{const _0xf2929e=function(_0x6d1de7){let _0x3acd65=Array['from'](_0x6d1de7);const _0xa368ab=_0x3acd65['findIndex'](_0x11a614=>'listItem'!=_0x11a614['name']);return _0xa368ab>-0x1&&(_0x3acd65=_0x3acd65['slice'](0x0,_0xa368ab)),_0x3acd65;}(_0x3f40eb['model']['document']['selection']['getSelectedBlocks']()),_0x158708=_0x3f40eb['model']['createRange'](_0x3f40eb['model']['createPositionAt'](_0xf2929e[0x0],'before'),_0x3f40eb['model']['createPositionAt'](_0xf2929e[_0xf2929e['length']-0x1],'end'));_0x3f40eb['model']['change'](()=>{_0x58f371['markBlockFormat'](_0x158708,{'commandName':_0x4a5d8d,'commandParams':[],'formatGroupId':'listIndent'},function(_0x51077b){const _0x901d88=new Set();for(const _0x1102d7 of _0x51077b){let _0x4d3a6f=_0x1102d7['nextSibling'];for(;_0x4d3a6f&&_0x4d3a6f['getAttribute']('listIndent')>_0x1102d7['getAttribute']('listIndent');)_0x901d88['add'](_0x4d3a6f),_0x4d3a6f=_0x4d3a6f['nextSibling'];}return Array['from'](_0x901d88);}(_0xf2929e));});};}_0x58f371['enableCommand']('numberedList',_0x174bb8('numberedList')),_0x58f371['enableCommand']('bulletedList',_0x174bb8('bulletedList')),_0x356156&&_0x58f371['enableCommand']('todoList',_0x174bb8('todoList')),_0x58f371['enableCommand']('indentList',_0x2fba20('indentList')),_0x58f371['enableCommand']('outdentList',_0x2fba20('outdentList')),_0x356156&&_0x58f371['enableCommand']('checkTodoList',()=>{const _0x570161=_0x3f40eb['commands']['get']('checkTodoList'),_0x47a8eb=Array['from'](_0x570161['_selectedElements']);_0x47a8eb['filter'](_0xbfbda5=>_0xbfbda5['getAttribute']('todoListChecked')!=_0x570161['value']),_0x3f40eb['model']['change'](()=>{for(const _0x2cb007 of _0x47a8eb)_0x58f371['markBlockFormat'](_0x2cb007,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x570161['value']}]});});}),_0x58f371['descriptionFactory']['registerElementLabel']('listItem',_0x1b0b35=>c(_0x1c136c,'ELEMENT_LIST_ITEM',_0x1b0b35)),_0x58f371['descriptionFactory']['registerDescriptionCallback'](_0xeb2025=>{if('formatBlock'!=_0xeb2025['type']&&'formatInline'!=_0xeb2025['type'])return;const {data:_0x32ae71}=_0xeb2025;if(_0x32ae71){if('numberedList'==_0x32ae71['commandName']||'bulletedList'==_0x32ae71['commandName']||'todoList'==_0x32ae71['commandName'])switch(_0x32ae71['commandName']['replace']('List','')){case'bulleted':return _0x35e723(c(_0x1c136c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x35e723(c(_0x1c136c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x35e723(c(_0x1c136c,'ELEMENT_TODO_LIST'));}if('indentList'==_0x32ae71['commandName'])return{'type':'format','content':c(_0x1c136c,'*Indent:*\x20%0',c(_0x1c136c,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x32ae71['commandName'])return{'type':'format','content':c(_0x1c136c,'*Outdent:*\x20%0',c(_0x1c136c,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x32ae71['commandName'])return _0x32ae71['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x1c136c,'*Check\x20item*')}:{'type':'format','content':c(_0x1c136c,'*Uncheck\x20item*')};}function _0x35e723(_0x19078f){return{'type':'format','content':c(_0x1c136c,'*Change\x20to:*\x20%0',_0x19078f)};}});}}function Le(_0x853096){const _0x35080c=_0x853096['getAttribute']('listIndent');if(0x0==_0x35080c)return _0x853096;let _0x1770be=_0x853096;for(;_0x853096['previousSibling']&&_0x853096['previousSibling']['is']('element','listItem');){const _0x57b546=_0x853096['previousSibling']['getAttribute']('listIndent');if(_0x57b546==_0x35080c)_0x1770be=_0x853096['previousSibling'];else{if(_0x57b546<_0x35080c)break;}_0x853096=_0x853096['previousSibling'];}return _0x1770be;}function Ee(_0x50c589){const _0x16a38b=[];if(_0x50c589['is']('element','listItem')&&_0x50c589['getAttribute']('listIndent')>0x0){let _0xce2409=_0x50c589['nextSibling'];for(;_0xce2409&&'listItem'==_0xce2409['name']&&_0xce2409['getAttribute']('listIndent')==_0x50c589['getAttribute']('listIndent');)_0x16a38b['push'](_0xce2409),_0xce2409=_0xce2409['nextSibling'];}return _0x16a38b;}class Q extends _0x34c566{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x55c9f8=this['editor']['config']['get']('list.properties'),_0x1abd33=this['editor']['plugins']['get']('TrackChangesEditing');_0x55c9f8['styles']&&_0x1abd33['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x55c9f8['reversed']&&_0x1abd33['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x55c9f8['startIndex']&&_0x1abd33['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1abd33['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x2628df,_0x45bf0f={}){const _0x1c32ee=this['editor']['plugins']['get']('TrackChangesEditing'),_0x296ced=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1c32ee['markMultiRangeBlockFormat'](_0x296ced,{'commandName':'listStyle','commandParams':[{'type':_0x45bf0f['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x2b0544,_0x2515ee={}){const _0x54d0be=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5e2da3=this['_getSuggestionBlocks'](_0x576773=>_0x576773['is']('element','listItem')&&'numbered'===_0x576773['getAttribute']('listType'));if(_0x5e2da3['length']<0x1)return;const _0x20e1b9=_0x5e2da3['map'](_0x393977=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x393977,'before'),this['editor']['model']['createPositionAt'](_0x393977,0x0)));this['editor']['model']['change'](()=>{_0x54d0be['markMultiRangeBlockFormat'](_0x20e1b9,{'commandName':'listReversed','commandParams':[{'reversed':_0x2515ee['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x2b82d8,_0x4d96fc={}){const _0x5edfd7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3db8f8=this['_getSuggestionBlocks'](_0x48fe42=>_0x48fe42['is']('element','listItem')&&'numbered'===_0x48fe42['getAttribute']('listType'));if(_0x3db8f8['length']<0x1)return;const _0x7c170b=_0x3db8f8['map'](_0x4ee41c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4ee41c,'before'),this['editor']['model']['createPositionAt'](_0x4ee41c,0x0)));this['editor']['model']['change'](()=>{_0x5edfd7['markMultiRangeBlockFormat'](_0x7c170b,{'commandName':'listStart','commandParams':[{'startIndex':_0x4d96fc['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x17f6a1){if('formatBlock'!=_0x17f6a1['type']&&'formatInline'!=_0x17f6a1['type'])return;const _0x2c31e9=this['editor']['locale'],{data:_0xf49a34}=_0x17f6a1;if(!_0xf49a34)return;let _0x50841e,_0x38044f;switch(_0xf49a34['commandName']){case'listStyle':_0x50841e='*Change\x20to:*\x20%0',_0x38044f={'type':'format','content':c(_0x2c31e9,_0x50841e,c(_0x2c31e9,this['_getTranslationKeyForListStyle'](_0xf49a34['commandParams'][0x0]['type'])))};break;case'listReversed':_0x50841e=_0xf49a34['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x38044f={'type':'format','content':c(_0x2c31e9,_0x50841e)};break;case'listStart':_0x50841e='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x38044f={'type':'format','content':c(_0x2c31e9,_0x50841e,_0xf49a34['commandParams'][0x0]['startIndex'])};}return _0x38044f;}['_getSuggestionBlocksForListStyle'](){const _0x3ef3a9=this['editor']['plugins']['get']('LegacyListUtils');let _0x4ef7f3=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x4ef7f3[0x0]?.['is']('element','listItem')&&_0x4ef7f3['unshift'](..._0x3ef3a9['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x4ef7f3[_0x4ef7f3['length']-0x1]?.['is']('element','listItem')&&_0x4ef7f3['push'](..._0x3ef3a9['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x4ef7f3=[...new Set(_0x4ef7f3)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x4ef7f3=_0x4ef7f3['filter'](_0x5b12a0=>_0x5b12a0['is']('element','listItem'))),_0x4ef7f3;}['_getSuggestionBlocks'](_0x2e8deb){const _0x41f283=this['editor']['plugins']['get']('LegacyListUtils');let _0x145c14=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x2e8deb)['map'](_0x135dfe=>{const _0x2438ba=this['editor']['model']['createPositionAt'](_0x135dfe,0x0);return[..._0x41f283['getSiblingNodes'](_0x2438ba,'backward'),..._0x41f283['getSiblingNodes'](_0x2438ba,'forward')];})['flat']();return _0x145c14=[...new Set(_0x145c14)],_0x145c14;}['_getTranslationKeyForListStyle'](_0x11c263){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x11c263)||'default')['toUpperCase']()+'_LIST_'+_0x11c263['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x34c566{['afterInit'](){const _0x5c8b98=this['editor'];if(!_0x5c8b98['plugins']['has']('MediaEmbedEditing'))return;const _0x2a897b=_0x5c8b98['plugins']['get']('TrackChangesEditing'),_0x401aa9=_0x5c8b98['locale'];_0x2a897b['enableCommand']('mediaEmbed'),_0x2a897b['descriptionFactory']['registerElementLabel']('media',_0x3aae23=>c(_0x401aa9,'ELEMENT_MEDIA',_0x3aae23)),_0x5c8b98['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4bae13,{writer:_0x558c6d,options:_0x364276})=>{if(_0x364276['showSuggestionHighlights'])return _0x558c6d['createEmptyElement']('div');},'converterPriority':'high'}),_0x5c8b98['data']['downcastDispatcher']['on']('attribute:url:media',(_0x10cfc7,_0xb5bc1c,_0x55d8b5)=>{_0x55d8b5['options']['showSuggestionHighlights']&&_0x10cfc7['stop']();},{'priority':'high'});}}class mt extends _0x34c566{['afterInit'](){const _0x294d0f=this['editor'];_0x294d0f['plugins']['has']('MentionEditing')&&_0x294d0f['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x34c566{['afterInit'](){const _0x5ef55f=this['editor'];if(!_0x5ef55f['plugins']['has']('MergeFieldsEditing'))return;const _0x1f191c=_0x5ef55f['plugins']['get']('TrackChangesEditing'),_0x3c6afd=_0x5ef55f['locale'];_0x1f191c['enableCommand']('insertMergeField'),_0x1f191c['enableCommand']('insertMergeFieldBlock'),_0x1f191c['enableCommand']('insertMergeFieldImage'),_0x1f191c['descriptionFactory']['registerElementLabel']('mergeField',_0x5a2aeb=>c(_0x3c6afd,'ELEMENT_MERGE_FIELD',_0x5a2aeb)),_0x1f191c['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0xb3bbd8=>c(_0x3c6afd,'ELEMENT_MERGE_FIELD',_0xb3bbd8)),_0x1f191c['descriptionFactory']['registerDescriptionCallback'](_0x1fd726=>{if('insertion'!=_0x1fd726['type']&&'deletion'!=_0x1fd726['type'])return;const _0x3fbd36=_0x1fd726['getContainedElement']();if(null==_0x3fbd36)return;const _0x277791=_0x5ef55f['plugins']['get']('MergeFieldsEditing');let _0x173f41;switch(_0x277791['getMergeFieldType'](_0x3fbd36)){case null:return;case'image':{const _0x214fa3=_0x277791['unwrapAffixes'](_0x3fbd36['getAttribute']('src'));_0x173f41=_0x277791['getLabel'](_0x214fa3)||_0x214fa3;break;}default:{const _0x1edf89=_0x3fbd36['getAttribute']('id');_0x173f41=_0x277791['getLabel'](_0x1edf89)||_0x1edf89;break;}}return'insertion'==_0x1fd726['type']?{'type':'insertion','content':c(_0x3c6afd,'*Insert:*\x20%0','\x22'+_0x173f41+'\x22\x20'+c(_0x3c6afd,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x3c6afd,'*Remove:*\x20%0','\x22'+_0x173f41+'\x22\x20'+c(_0x3c6afd,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x34c566{['afterInit'](){const _0x3c0304=this['editor'],_0xa1a178=_0x3c0304['plugins']['get']('TrackChangesEditing');_0x3c0304['plugins']['has']('MultiLevelList')&&(_0xa1a178['enableDefaultAttributesIntegration']('multiLevelList'),_0xa1a178['registerBlockAttribute']('listMarkerStyle'),_0xa1a178['descriptionFactory']['registerDescriptionCallback'](_0x12189f=>this['handleDescriptions'](_0x12189f)));}['handleDescriptions'](_0x59697a){const _0x4e8114=this['editor']['locale'],{data:_0x4aafd7}=_0x59697a,_0x2e3811={'type':'format','content':''};if(_0x4aafd7&&'listMarkerStyle'==_0x4aafd7['key']){if(!_0x4aafd7['oldValue'])return{'type':'format','content':c(_0x4e8114,'*Set\x20format:*\x20%0',c(_0x4e8114,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4aafd7['newValue']+')'};if(!_0x4aafd7['newValue']){let _0x1f75c4=_0x59697a['head'];for(;_0x1f75c4;){if(_0x1f75c4['data']&&'listType'==_0x1f75c4['data']['key']&&_0x1f75c4['data']['newValue'])return _0x2e3811;_0x1f75c4=_0x1f75c4['next'];}return{'type':'format','content':c(_0x4e8114,'*Remove\x20format:*\x20%0',c(_0x4e8114,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4aafd7['oldValue']+')'};}}}}class kt extends _0x34c566{['afterInit'](){const _0x551192=this['editor'];if(!_0x551192['plugins']['has']('PageBreakEditing'))return;_0x551192['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2d908d=_0x551192['plugins']['get']('TrackChangesEditing'),_0x11ec48=_0x551192['locale'];_0x2d908d['descriptionFactory']['registerElementLabel']('pageBreak',_0x7c60e0=>c(_0x11ec48,'ELEMENT_PAGE_BREAK',_0x7c60e0));}}class bt extends _0x34c566{['afterInit'](){const _0x13a4ca=this['editor'];if(!_0x13a4ca['plugins']['has']('Paragraph'))return;const _0x5a09f6=_0x13a4ca['locale'],_0x5b721c=_0x13a4ca['plugins']['get']('TrackChangesEditing');_0x5b721c['descriptionFactory']['registerElementLabel']('paragraph',_0x906d5d=>c(_0x5a09f6,'ELEMENT_PARAGRAPH',_0x906d5d)),_0x5b721c['enableDefaultAttributesIntegration']('paragraph'),_0x5b721c['enableCommand']('insertParagraph'),_0x13a4ca['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x13a4ca),{'priority':'highest'}),_0x13a4ca['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x22c988,_0x2953a1,_0x5cefa0)=>{_0x5cefa0['options']['showSuggestionHighlights']&&nr(_0x13a4ca,{'showActiveMarker':!0x1})(_0x22c988,_0x2953a1,_0x5cefa0);},{'priority':'highest'});const _0x5b5019=_0x5b721c['descriptionFactory'];_0x5b5019['registerDescriptionCallback'](_0xf0a51=>{if('insertion'!==_0xf0a51['type'])return;const {start:_0x485904,end:_0x19c9a0}=_0xf0a51['getFirstRange']();if(!_0x485904['isTouching'](_0x19c9a0)||!_0x485904['nodeAfter'])return;const _0x570d43=_0x13a4ca['model']['schema'],_0x511f63=_0x485904['nodeAfter'];return _0x570d43['isBlock'](_0x511f63)&&!_0x570d43['isLimit'](_0x511f63)&&_0x570d43['checkChild'](_0x511f63,'$text')?{'type':'insertion','content':c(_0x5a09f6,'*Insert:*\x20%0',_0x5b5019['getItemLabel'](_0x511f63,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1dd0ac=this['editor'],_0x24f5d0=_0x1dd0ac['locale'];_0x1dd0ac['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c887a=>{if('formatBlock'!=_0x4c887a['type'])return;const {data:_0x5df0f9}=_0x4c887a;return _0x5df0f9&&'paragraph'==_0x5df0f9['commandName']?{'type':'format','content':c(_0x24f5d0,'*Change\x20to:*\x20%0',c(_0x24f5d0,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x53cb83,{showActiveMarker:_0x2bf73d=!0x0}={}){return(_0x190829,_0x5da3a7,_0x44e952)=>{const _0x489d5a=_0x53cb83['plugins']['get']('TrackChangesEditing'),_0x5978f8=_0x5da3a7['markerRange']['start'],_0x502466=_0x5da3a7['markerRange']['end'],_0x450b12=_0x53cb83['model']['schema'];if(!_0x5978f8['isTouching'](_0x502466)||!_0x5978f8['nodeAfter'])return;const _0x5c1374=_0x5978f8['nodeAfter'];if(_0x450b12['isBlock'](_0x5c1374)&&!_0x450b12['isLimit'](_0x5c1374)&&_0x450b12['checkChild'](_0x5c1374,'$text')){if(!_0x44e952['consumable']['consume'](_0x5da3a7['markerRange'],_0x190829['name']))return;const {authorId:_0x442f73}=_0x489d5a['_splitMarkerName'](_0x5da3a7['markerName']),_0x3e2446=_0x44e952['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x442f73}),_0x450836=_0x44e952['mapper']['toViewPosition'](_0x502466);_0x2bf73d&&_0x489d5a['activeMarkers']['includes'](_0x5da3a7['markerName'])&&_0x44e952['writer']['addClass']('ck-suggestion-marker--active',_0x3e2446),_0x44e952['writer']['insert'](_0x450836,_0x3e2446),_0x44e952['mapper']['bindElementToMarker'](_0x3e2446,_0x5da3a7['markerName']);}};}class yt extends _0x34c566{['afterInit'](){const _0x41eee2=this['editor'];if(!_0x41eee2['plugins']['has']('RemoveFormatEditing'))return;_0x41eee2['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a31d3=this['editor'];_0x3a31d3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2d1a46=>{if('formatBlock'!=_0x2d1a46['type']&&'formatInline'!=_0x2d1a46['type'])return;const {data:_0x5d82fa}=_0x2d1a46;return _0x5d82fa&&'removeFormat'==_0x5d82fa['commandName']?{'type':'format','content':c(_0x3a31d3['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x34c566{['afterInit'](){const _0x414f11=this['editor'];if(!_0x414f11['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x49fa55=_0x414f11['plugins']['get']('TrackChangesEditing');_0x49fa55['enableCommand']('goToPreviousRestrictedEditingException'),_0x49fa55['enableCommand']('goToNextRestrictedEditingException');const _0x5da2bd=_0x414f11['plugins']['get']('RestrictedEditingModeEditing');_0x5da2bd['enableCommand']('trackChanges'),_0x5da2bd['enableCommand']('acceptSuggestion'),_0x5da2bd['enableCommand']('discardSuggestion'),_0x5da2bd['enableCommand']('acceptAllSuggestions'),_0x5da2bd['enableCommand']('discardAllSuggestions'),_0x5da2bd['enableCommand']('acceptSelectedSuggestions'),_0x5da2bd['enableCommand']('discardSelectedSuggestions');}}class St extends _0x34c566{static get['requires'](){return[_0x4d24c3];}['init'](){const _0x1ded23=this['editor'],_0x2d74a0=_0x1ded23['plugins']['get']('TrackChangesEditing');_0x2d74a0['enableCommand']('shiftEnter'),_0x1ded23['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x1ded23),{'priority':'high'}),_0x1ded23['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x1ded23),{'priority':'high'}),_0x1ded23['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3f1522,_0x563cc3,_0x3ea246)=>{_0x3ea246['options']['showSuggestionHighlights']&&je(_0x1ded23,{'showActiveMarker':!0x1})(_0x3f1522,_0x563cc3,_0x3ea246);}),_0x2d74a0['descriptionFactory']['registerElementLabel']('softBreak',_0x4166a8=>c(_0x1ded23['locale'],'ELEMENT_LINE_BREAK',_0x4166a8));}}function je(_0x4e7484,{showActiveMarker:_0x1fa3a4=!0x0}={}){return(_0x59f2d2,_0x366a3b,_0x30d8db)=>{const _0x21bcd1=_0x4e7484['plugins']['get']('TrackChangesEditing');if(!_0x30d8db['consumable']['test'](_0x366a3b['markerRange'],_0x59f2d2['name']))return;const _0x2e20f5=_0x4e7484['model'];for(const _0x1bb293 of _0x366a3b['markerRange']['getItems']()){if(!_0x1bb293['is']('element','softBreak'))continue;const _0x5cc8c0='deletion'==_0x366a3b['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x4a8ce9}=_0x21bcd1['_splitMarkerName'](_0x366a3b['markerName']),_0x3e3bf1=_0x30d8db['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5cc8c0,'data-author-id':_0x4a8ce9}),_0x585562=_0x30d8db['mapper']['toViewPosition'](_0x2e20f5['createPositionBefore'](_0x1bb293));_0x1fa3a4&&_0x21bcd1['activeMarkers']['includes'](_0x366a3b['markerName'])&&_0x30d8db['writer']['addClass']('ck-suggestion-marker--active',_0x3e3bf1),_0x30d8db['writer']['insert'](_0x585562,_0x3e3bf1),_0x30d8db['mapper']['bindElementToMarker'](_0x3e3bf1,_0x366a3b['markerName']);}};}class At extends _0x34c566{['afterInit'](){const _0x375695=this['editor'],_0x288dbb=_0x375695['model'],_0x56c94=_0x375695['locale'];if(!_0x375695['plugins']['has']('StandardEditingModeEditing'))return;const _0x1a412d=_0x375695['plugins']['get']('TrackChangesEditing'),_0x1d1328='restrictedEditingException',_0x18626c=_0x375695['commands']['get'](_0x1d1328);_0x1a412d['enableCommand'](_0x1d1328,(_0x334174,_0x42f773={})=>{const _0x38ae0a=_0x288dbb['document']['selection'];if(_0x38ae0a['isCollapsed'])return void _0x334174(_0x42f773);const _0x800014=void 0x0!==_0x42f773['forceValue']?_0x42f773['forceValue']:!_0x18626c['value'];_0x288dbb['change'](()=>{const _0x14f192=Array['from'](_0x38ae0a['getRanges']());for(const _0x4b6722 of _0x14f192){const _0x16f819=_0x800014?[_0x4b6722]:no(_0x1d1328,_0x4b6722,_0x288dbb);for(const _0x965827 of _0x16f819)_0x1a412d['markInlineFormat'](_0x965827,{'commandName':_0x1d1328,'commandParams':[{'forceValue':_0x800014}]});}});}),_0x1a412d['descriptionFactory']['registerDescriptionCallback'](_0x52da80=>{if('formatBlock'!=_0x52da80['type']&&'formatInline'!=_0x52da80['type'])return;const {data:_0x359408}=_0x52da80;return _0x359408&&_0x359408['commandName']==_0x1d1328?_0x359408['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x56c94,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x56c94,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x34c566{['afterInit'](){const _0x196d3b=this['editor'];if(!_0x196d3b['plugins']['has']('Style')||!_0x196d3b['plugins']['has']('DataSchema'))return;const _0x5df7b2=_0x196d3b['plugins']['get']('TrackChangesEditing'),_0x1b0ca4=_0x196d3b['locale'],_0x41cd13=_0x196d3b['config']['get']('style')||{},_0xdc9497=_0x196d3b['plugins']['get']('GeneralHtmlSupport'),_0x1c7afd=_0x196d3b['plugins']['get']('StyleUtils')['normalizeConfig'](_0x196d3b['plugins']['get']('DataSchema'),_0x41cd13['definitions']);_0x5df7b2['enableDefaultAttributesIntegration']('style');const _0xe7400=new Set();for(const _0x510e4d of _0x1c7afd['block']){const _0x24daf5=_0xdc9497['getGhsAttributeNameForElement'](_0x510e4d['element']);_0xe7400['add'](_0x24daf5);}const _0x448d54=new Set();for(const _0x2e5f61 of _0x1c7afd['inline']){const _0x3f5528=_0xdc9497['getGhsAttributeNameForElement'](_0x2e5f61['element']);_0x448d54['add'](_0x3f5528);for(const _0xd8f152 of _0x2e5f61['ghsAttributes'])_0x448d54['add'](_0xd8f152);}for(const _0x46ed08 of _0xe7400)_0x5df7b2['registerBlockAttribute'](_0x46ed08),_0x5df7b2['descriptionFactory']['registerAttributeLabel'](_0x46ed08,c(_0x1b0ca4,'FORMAT_STYLE'));for(const _0x39053a of _0x448d54)_0x5df7b2['registerInlineAttribute'](_0x39053a),_0x5df7b2['descriptionFactory']['registerAttributeLabel'](_0x39053a,c(_0x1b0ca4,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x80e602=this['editor'],_0x163a2d=_0x80e602['locale'];_0x80e602['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x41166b=>{if('formatBlock'!=_0x41166b['type']&&'formatInline'!=_0x41166b['type'])return;const {data:_0x23af96}=_0x41166b;return _0x23af96&&'style'===_0x23af96['commandName']?_0x23af96['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x163a2d,'*Set\x20format:*\x20%0',_0x23af96['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x163a2d,'*Remove\x20format:*\x20%0',_0x23af96['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class _t extends _0x34c566{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x915158){super(_0x915158),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x35f735=this['editor'],_0x752c46=_0x35f735['model']['document']['selection'];if(!_0x35f735['plugins']['has']('TableEditing'))return;const _0x494bbb=_0x35f735['locale'],_0x358c7f=_0x35f735['plugins']['get']('TrackChangesEditing'),_0x4310bc=_0x35f735['plugins']['get']('TableUtils');_0x358c7f['descriptionFactory']['registerElementLabel']('table',_0x66225c=>c(_0x494bbb,'ELEMENT_TABLE',_0x66225c)),this['_setupColumnsRowsFixing'](),_0x358c7f['enableCommand']('insertTable'),_0x358c7f['enableCommand']('selectTableRow'),_0x358c7f['enableCommand']('selectTableColumn');for(const _0x551d2e of['insertTableRowAbove','insertTableRowBelow']){const _0x1952b5=_0x35f735['commands']['get'](_0x551d2e);_0x358c7f['enableCommand'](_0x551d2e,_0x1fa422=>{_0x35f735['model']['change'](_0x195d8d=>{_0x1fa422();const _0x32668c='above'===_0x1952b5['order'],_0x1ba66c=_0x4310bc['getSelectionAffectedTableCells'](_0x752c46),_0x57ac7a=_0x4310bc['getRowIndexes'](_0x1ba66c),_0x150428=_0x32668c?_0x57ac7a['first']-0x1:_0x57ac7a['last']+0x1,_0x1a6a34=_0x1ba66c[0x0]['findAncestor']('table'),_0x4b78e1=_0x4310bc['createTableWalker'](_0x1a6a34,{'startRow':_0x150428,'endRow':_0x150428}),_0x434f69=Array['from'](_0x4b78e1)['map'](_0x887910=>_0x195d8d['createRangeOn'](_0x887910['cell']));_0x358c7f['markMultiRangeInsertion'](_0x434f69,'tableRow');});});}for(const _0x23279c of['insertTableColumnLeft','insertTableColumnRight']){const _0x1b9256=_0x35f735['commands']['get'](_0x23279c);_0x358c7f['enableCommand'](_0x23279c,_0x127c6f=>{_0x35f735['model']['change'](_0x50cae9=>{_0x127c6f();const _0x46b4c2='left'===_0x1b9256['order'],_0x2d26b0=_0x4310bc['getSelectionAffectedTableCells'](_0x752c46),_0x12525d=_0x4310bc['getColumnIndexes'](_0x2d26b0),_0xde0019=_0x46b4c2?_0x12525d['first']-0x1:_0x12525d['last']+0x1,_0x130c8c=_0x2d26b0[0x0]['findAncestor']('table'),_0x3ca4a4=_0x4310bc['createTableWalker'](_0x130c8c,{'startRow':0x0,'column':_0xde0019,'includeAllSlots':!0x1}),_0x32097d=Array['from'](_0x3ca4a4)['map'](_0x1e5dcb=>_0x50cae9['createRangeOn'](_0x1e5dcb['cell']));_0x358c7f['markMultiRangeInsertion'](_0x32097d,'tableColumn');});});}for(const _0x7faebc of['removeTableRow','removeTableColumn']){const _0x3a449a=_0x7faebc['substr'](0xb),_0x25df87=_0x3a449a['toLowerCase'](),_0x546c37=_0x25df87['substr'](0x0,0x3)+'span',_0x181de1='table'+_0x3a449a,_0x357448='min'+_0x3a449a,_0x1ab4c7='max'+_0x3a449a;_0x358c7f['enableCommand'](_0x7faebc,()=>{_0x35f735['model']['change'](_0x11bd08=>{const _0x35ed9a=_0x4310bc['getSelectionAffectedTableCells'](_0x752c46),_0x4e2a6a=_0x35ed9a[0x0]['findAncestor']('table');let _0x16e0ff;if('removeTableRow'==_0x7faebc){const _0x5bed7a=_0x4310bc['getRowIndexes'](_0x35ed9a);_0x16e0ff={'startRow':_0x5bed7a['first'],'endRow':_0x5bed7a['last'],'includeAllSlots':!0x0};}else{const _0x2df526=_0x4310bc['getColumnIndexes'](_0x35ed9a);_0x16e0ff={'startColumn':_0x2df526['first'],'endColumn':_0x2df526['last'],'includeAllSlots':!0x0};}const _0x1d6fcf=_0x4310bc['createTableWalker'](_0x4e2a6a,_0x16e0ff),_0x526150=Array['from'](_0x1d6fcf)['map'](({cell:_0x261f55})=>_0x261f55),_0x37f6e6=Ne(_0x526150['filter'](_0x2a9819=>_0x2a9819['hasAttribute'](_0x546c37))),_0x4d1b33=Ne(_0x526150['filter'](_0x51606a=>!_0x51606a['hasAttribute'](_0x546c37)))['map'](_0x3d9d77=>_0x11bd08['createRangeOn'](_0x3d9d77)),_0x257777=_0x358c7f['markMultiRangeDeletion'](_0x4d1b33,_0x181de1);if(_0x257777&&('tableRow'==_0x257777['subType']||'tableColumn'==_0x257777['subType'])){const _0x2ae736=this['_getSuggestionCoords'](_0x257777);for(const _0x439f38 of _0x37f6e6){const _0x5cf97d=_0x11bd08['createRangeOn'](_0x439f38),_0x1fa7ef=_0x4310bc['getCellLocation'](_0x439f38),_0x406316=_0x439f38['getAttribute'](_0x546c37)-0x1,_0x5c0d2e=_0x2ae736[_0x357448],_0x5b38e1=_0x2ae736[_0x1ab4c7];_0x5c0d2e<=_0x1fa7ef[_0x25df87]&&_0x1fa7ef[_0x25df87]+_0x406316<=_0x5b38e1&&_0x257777['addRange'](_0x5cf97d);}}});});}function _0x38187a(_0x14cf79){const _0x3bbd55=Array['from'](_0x752c46['getRanges']())['map'](_0x700527=>_0x1f3765['fromRange'](_0x700527));_0x35f735['model']['change'](_0x10dc76=>{const _0x413506=_0x10dc76['batch'];_0x14cf79=_0x14cf79['filter'](_0x40437c=>'$graveyard'!=_0x40437c['root']['rootName']),_0x10dc76['setSelection'](_0x14cf79),_0x35f735['commands']['get']('removeTableRow')['refresh'](),_0x35f735['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x35f735['model']['enqueueChange'](()=>{_0x35f735['model']['enqueueChange'](_0x413506,_0x5d4330=>{const _0x889e2a=_0x3bbd55['filter'](_0x5b3d80=>'$graveyard'!=_0x5b3d80['root']['rootName']);_0x889e2a['length']>0x0&&_0x5d4330['setSelection'](_0x889e2a);for(const _0x53f4aa of _0x3bbd55)_0x53f4aa['detach']();});});});}function _0x48ad2f(_0x5460f2){_0x35f735['model']['change'](_0x535039=>{const _0x54619e=Array['from'](_0x752c46['getRanges']())['map'](_0x4b74f6=>_0x1f3765['fromRange'](_0x4b74f6)),_0x2d5e69=[];for(const _0x5b6244 of _0x5460f2)for(const _0x1f7836 of _0x5b6244['getItems']({'shallow':!0x0}))_0x2d5e69['push'](_0x1f7836);for(const _0x3e37cd of _0x2d5e69)'$graveyard'!=_0x3e37cd['root']['rootName']&&(_0x535039['setSelection'](_0x535039['createPositionAt'](_0x3e37cd,0x0)),_0x35f735['commands']['get']('removeTableColumn')['refresh'](),_0x35f735['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x4f9752=_0x54619e['filter'](_0x3b0e52=>'$graveyard'!=_0x3b0e52['root']['rootName']);_0x4f9752['length']>0x0&&_0x535039['setSelection'](_0x4f9752);for(const _0x41abbe of _0x54619e)_0x41abbe['detach']();});}function _0x515897(_0x3e1f0c,_0x50a60a){return _0x50a60a['every'](_0x344bf5=>_0x3e1f0c['some'](_0x256124=>_0x256124['end']['isEqual'](_0x344bf5['start'])||_0x344bf5['end']['isEqual'](_0x256124['start'])));}function _0x5ef05b(_0x50e3f5,_0x24f0e8){return!_0x50e3f5['some'](_0x5c39b6=>_0x24f0e8['some'](_0x5ed988=>_0x5c39b6['isIntersecting'](_0x5ed988)))&&_0x50e3f5['some'](_0x5252dc=>_0x24f0e8['some'](_0x55b016=>_0x5252dc['end']['isTouching'](_0x55b016['start'])));}_0x35f735['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x47a48e,_0x161006,_0x21718e)=>{if(!_0x21718e['options']['showSuggestionHighlights'])return;const _0x546092=_0x161006['item'];if(!_0x546092)return;const _0x32b21c=_0x21718e['mapper']['toViewElement'](_0x546092);function _0x9bb2a2(_0x4c20c7){return Array['isArray'](_0x4c20c7)?_0x4c20c7:[_0x4c20c7];}_0x32b21c&&'tableCell'===_0x546092['name']&&_0x5c3d4a(_0x32b21c,_0x21718e['writer'],(_0x563923,_0x37e1ab,_0xfa1e74)=>_0xfa1e74['addClass'](_0x9bb2a2(_0x37e1ab['classes']),_0x563923),(_0x2bc51a,_0x5dc5ad,_0x5da3c9)=>_0x5da3c9['removeClass'](_0x9bb2a2(_0x5dc5ad['classes']),_0x2bc51a));},{'priority':'highest'}),_0x358c7f['descriptionFactory']['registerDescriptionCallback'](_0x3f9c6a=>{if('insertion'!=_0x3f9c6a['type']&&'deletion'!=_0x3f9c6a['type'])return;const _0x3bff5c=_0x3f9c6a['getContainedElement']();if(null!=_0x3bff5c&&_0x3bff5c['is']('element','table')){if('insertion'==_0x3f9c6a['type']){const _0x928268=_0x3f9c6a['getItems']()['filter'](_0x5962f1=>_0x5962f1['is']('$textProxy'))['map'](_0x30b2a1=>_0x30b2a1['data']);if(_0x928268['length'])return{'type':'insertion','content':c(_0x494bbb,'*Insert:*\x20%0',c(_0x494bbb,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x928268['join']('\x20')+'\x22'))};}if('deletion'==_0x3f9c6a['type']){const _0x21c443=_0x3f9c6a['getItems']()['filter'](_0x84df73=>_0x84df73['is']('$textProxy'))['map'](_0x4448e9=>_0x4448e9['data']);if(_0x21c443['length'])return{'type':'deletion','content':c(_0x494bbb,'*Remove:*\x20%0',c(_0x494bbb,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x21c443['join']('\x20')+'\x22'))};}}}),_0x358c7f['descriptionFactory']['registerDescriptionCallback'](_0x15d4f8=>{if('tableRow'==_0x15d4f8['subType']){const _0x190e6a=_0x15d4f8['getItems']()['filter'](_0x4616e2=>_0x4616e2['is']('$textProxy'))['map'](_0x43ed95=>_0x43ed95['data']),_0x33aa33=this['_getSuggestionCoords'](_0x15d4f8),_0x26cb8a=_0x33aa33['maxRow']-_0x33aa33['minRow']+0x1;if('insertion'==_0x15d4f8['type'])return _0x190e6a['length']?{'type':'insertion','content':c(_0x494bbb,'*Insert:*\x20%0',c(_0x494bbb,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x26cb8a,'\x22'+_0x190e6a['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x494bbb,'*Insert:*\x20%0',c(_0x494bbb,'ELEMENT_TABLE_ROW',_0x26cb8a))};if('deletion'==_0x15d4f8['type'])return _0x190e6a['length']?{'type':'deletion','content':c(_0x494bbb,'*Remove:*\x20%0',c(_0x494bbb,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x26cb8a,'\x22'+_0x190e6a['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x494bbb,'*Remove:*\x20%0',c(_0x494bbb,'ELEMENT_TABLE_ROW',_0x26cb8a))};}if('tableColumn'==_0x15d4f8['subType']){const _0x1d9740=_0x15d4f8['getItems']()['filter'](_0x530314=>_0x530314['is']('$textProxy'))['map'](_0x5573f0=>_0x5573f0['data']),_0x2f93c0=this['_getSuggestionCoords'](_0x15d4f8),_0x3497a6=_0x2f93c0['maxColumn']-_0x2f93c0['minColumn']+0x1;if('insertion'==_0x15d4f8['type'])return _0x1d9740['length']?{'type':'insertion','content':c(_0x494bbb,'*Insert:*\x20%0',c(_0x494bbb,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3497a6,'\x22'+_0x1d9740['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x494bbb,'*Insert:*\x20%0',c(_0x494bbb,'ELEMENT_TABLE_COLUMN',_0x3497a6))};if('deletion'==_0x15d4f8['type'])return _0x1d9740['length']?{'type':'deletion','content':c(_0x494bbb,'*Remove:*\x20%0',c(_0x494bbb,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3497a6,'\x22'+_0x1d9740['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x494bbb,'*Remove:*\x20%0',c(_0x494bbb,'ELEMENT_TABLE_COLUMN',_0x3497a6))};}}),_0x358c7f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x38187a),_0x358c7f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x38187a),_0x358c7f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x48ad2f),_0x358c7f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x48ad2f),_0x358c7f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x515897),_0x358c7f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x515897),_0x358c7f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5ef05b),_0x358c7f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5ef05b);}['_acceptFormatSuggestionCallbackFactory'](){const _0x6cd469=this['editor'],_0x3cf4e5=_0x6cd469['model']['document']['selection'];return(_0x324937,_0x3bf2c0)=>{_0x6cd469['model']['change'](_0x2d1aaf=>{const {commandName:_0x2a33c5,commandParams:_0x5ccae4}=_0x3bf2c0;let _0x2d1b17=_0x324937[0x0]['end']['nodeBefore'];_0x5ccae4&&_0x5ccae4[0x0]&&!0x1===_0x5ccae4[0x0]['forceValue']&&(_0x2d1b17=_0x324937[0x0]['start']['nodeAfter']);const _0x11a983=_0x2d1aaf['createRangeIn'](_0x2d1b17);if('$graveyard'==_0x11a983['root']['rootName'])return;const _0x476f95=Array['from'](_0x3cf4e5['getRanges']())['map'](_0x5a6680=>_0x1f3765['fromRange'](_0x5a6680));_0x2d1aaf['setSelection'](_0x11a983),_0x6cd469['commands']['get'](_0x2a33c5)['refresh'](),_0x5ccae4['push']({'forceDefaultExecution':!0x0}),_0x6cd469['execute'](_0x2a33c5,..._0x5ccae4);const _0xe4353b=_0x476f95['filter'](_0x5d8560=>'$graveyard'!=_0x5d8560['root']['rootName']);_0xe4353b['length']>0x0&&_0x2d1aaf['setSelection'](_0xe4353b);for(const _0x461b12 of _0x476f95)_0x461b12['detach']();});};}['_getCoordsForCells'](_0xe3fc1f){const _0x38e64e=this['editor']['plugins']['get']('TableUtils');let _0x42018d=Number['MAX_SAFE_INTEGER'],_0x2e2c10=Number['MIN_SAFE_INTEGER'],_0x580935=Number['MAX_SAFE_INTEGER'],_0x1e29a6=Number['MIN_SAFE_INTEGER'];for(const _0x2ca759 of _0xe3fc1f){if('$graveyard'==_0x2ca759['root']['rootName'])continue;const {row:_0x4c77ab,column:_0x31739c}=_0x38e64e['getCellLocation'](_0x2ca759),_0x5ccc3a=_0x2ca759['hasAttribute']('rowspan')?_0x2ca759['getAttribute']('rowspan')-0x1:0x0,_0x3e410b=_0x2ca759['hasAttribute']('colspan')?_0x2ca759['getAttribute']('colspan')-0x1:0x0;_0x42018d=_0x4c77ab<_0x42018d?_0x4c77ab:_0x42018d,_0x2e2c10=_0x4c77ab+_0x5ccc3a>_0x2e2c10?_0x4c77ab+_0x5ccc3a:_0x2e2c10,_0x580935=_0x31739c<_0x580935?_0x31739c:_0x580935,_0x1e29a6=_0x31739c+_0x3e410b>_0x1e29a6?_0x31739c+_0x3e410b:_0x1e29a6;}return{'minRow':_0x42018d,'maxRow':_0x2e2c10,'minColumn':_0x580935,'maxColumn':_0x1e29a6};}['_setupColumnsRowsFixing'](){const _0x2b432f=this['editor'],_0x2b41ac=_0x2b432f['plugins']['get']('TrackChangesEditing'),_0x729f6e=_0x2b432f['plugins']['get']('TableUtils');_0x2b432f['model']['document']['on']('change:data',()=>{const _0x595325=Array['from'](_0x2b432f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x49ecad,data:_0x42cba8}of _0x595325){const {group:_0x592597,id:_0xa11198,subType:_0x4ee36f}=_0x2b41ac['_splitMarkerName'](_0x49ecad);if('suggestion'!=_0x592597)continue;if(null!=_0x42cba8['oldRange'])continue;const _0x5bcea1=_0x2b41ac['getSuggestion'](_0xa11198);this['_tablePostFixingSubtypes']['includes'](_0x4ee36f)&&this['_tableSuggestions']['add'](_0x5bcea1);}},{'priority':'low'});const _0x4006ce=(_0x15bedb,_0xcbf057)=>{let _0x15bb9a=!0x1;const _0x4e6331=_0xcbf057['createRangeOn'](_0x15bedb),_0x18bf5a=_0x15bedb['findAncestor']('table'),_0x58cd32=_0x729f6e['getCellLocation'](_0x15bedb);for(const _0x1cd5b5 of this['_tableSuggestions']){const _0x167f64=_0x1cd5b5['subType'],_0x20c111=_0x167f64['startsWith']('tablePaste'),_0x4f74f6=_0x167f64['substr'](_0x20c111?0xa:0x5),_0x489a89=_0x4f74f6['toLowerCase'](),_0x7d7feb=_0x489a89['substr'](0x0,0x3)+'span',_0x3a9e23='min'+_0x4f74f6,_0x33d20b='max'+_0x4f74f6;if(!_0x1cd5b5['isInContent'])continue;if(_0x18bf5a!=_0x1cd5b5['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x1cd5b5['isIntersectingWithRange'](_0x4e6331))continue;const _0x150abf=_0x15bedb['hasAttribute'](_0x7d7feb)?_0x15bedb['getAttribute'](_0x7d7feb)-0x1:0x0,_0x4240cd=this['_getSuggestionCoords'](_0x1cd5b5),_0x275c26=_0x4240cd[_0x3a9e23],_0x588c38=_0x4240cd[_0x33d20b];_0x275c26<=_0x58cd32[_0x489a89]&&_0x58cd32[_0x489a89]+_0x150abf<=_0x588c38&&(_0x1cd5b5['addRange'](_0x4e6331),_0x15bb9a=!0x0);}return _0x15bb9a;};_0x2b432f['model']['document']['registerPostFixer'](_0x1b2af5=>{let _0x167040=!0x1;for(const _0x44a025 of _0x2b432f['model']['document']['differ']['getChanges']())if('insert'==_0x44a025['type']){if('tableRow'==_0x44a025['name']){for(const _0x3e5fc0 of _0x44a025['position']['nodeAfter']['getChildren']())_0x167040=_0x167040||_0x4006ce(_0x3e5fc0,_0x1b2af5);}else'tableCell'==_0x44a025['name']&&(_0x167040=_0x167040||_0x4006ce(_0x44a025['position']['nodeAfter'],_0x1b2af5));}return _0x167040;});}['_getSuggestionCoords'](_0x4353e9){return this['_getCoordsForCells'](_0x4353e9['getRanges']()['map'](_0x9f332b=>_0x9f332b['start']['nodeAfter']));}}function Ne(_0x421f04){return Array['from'](new Set(_0x421f04)['values']());}class vt extends _0x34c566{static get['requires'](){return[_t];}['afterInit'](){const _0x231b2b=this['editor'],_0x37dd8a=_0x231b2b['model']['document']['selection'],_0x912fca=_0x231b2b['locale'];if(!_0x231b2b['plugins']['has']('TableEditing'))return;const _0x1075f9=_0x231b2b['plugins']['get']('TrackChangesEditing'),_0x9eb0ce=_0x231b2b['plugins']['get']('TableUtils'),_0x4e6444=_0x231b2b['plugins']['get'](_t);_0x4e6444['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x1075f9['enableCommand']('mergeTableCells',()=>{const _0x30d2ee=_0x9eb0ce['getSelectionAffectedTableCells'](_0x231b2b['model']['document']['selection']);_0x231b2b['model']['change'](()=>{_0x1075f9['markMultiRangeBlockFormat'](_0x30d2ee,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x231b2b['commands']['get']('mergeTableCells')['on']('execute',(_0x1693da,_0x4e4f6f)=>{_0x231b2b['commands']['get']('trackChanges')['value']&&(_0x4e4f6f['length']>0x0&&_0x4e4f6f[_0x4e4f6f['length']-0x1]&&_0x4e4f6f[_0x4e4f6f['length']-0x1]['forceDefaultExecution']||_0x1075f9['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1693da['stop']());},{'priority':'highest'});for(const _0x3ee1de of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x444f34=_0x231b2b['commands']['get'](_0x3ee1de);_0x1075f9['enableCommand'](_0x3ee1de,()=>{const _0x541c68=_0x231b2b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x466b73=>_0x466b73['is']('element','tableCell')),_0x2cb6b7=_0x444f34['value'];_0x231b2b['model']['change'](()=>{_0x1075f9['markMultiRangeBlockFormat']([_0x541c68,_0x2cb6b7],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x4c855d of['splitTableCellVertically','splitTableCellHorizontally']){const _0x2ac8ab=_0x231b2b['commands']['get'](_0x4c855d);_0x1075f9['enableCommand'](_0x4c855d,()=>{const _0x56728e=_0x9eb0ce['getSelectionAffectedTableCells'](_0x231b2b['model']['document']['selection'])[0x0],_0x11f2bf=_0x56728e['findAncestor']('table'),{column:_0x49c7c0,row:_0x18a531}=_0x9eb0ce['getCellLocation'](_0x56728e);let _0x5ba793=[];if('horizontally'==_0x2ac8ab['direction']){const _0xfcd30d=_0x9eb0ce['createTableWalker'](_0x11f2bf,{'startRow':_0x18a531,'endRow':_0x18a531,'includeAllSlots':!0x0});_0x5ba793=Array['from'](_0xfcd30d)['map'](_0x1c1a97=>_0x1c1a97['cell']);}else{const _0x120eeb=_0x9eb0ce['createTableWalker'](_0x11f2bf,{'column':_0x49c7c0,'includeAllSlots':!0x0});_0x5ba793=Array['from'](_0x120eeb)['map'](_0x7f3289=>_0x7f3289['cell']);}_0x231b2b['model']['change'](_0x5479ca=>{_0x1075f9['markBlockFormat'](_0x5479ca['createRangeOn'](_0x56728e),{'commandName':_0x4c855d,'commandParams':[]},_0x5ba793,_0x4c855d);});});}_0x1075f9['descriptionFactory']['registerDescriptionCallback'](_0x1aa083=>{if('formatBlock'!=_0x1aa083['type']&&'formatInline'!=_0x1aa083['type'])return;const {data:_0x3ce17e}=_0x1aa083;return _0x3ce17e&&'mergeTableCells'==_0x3ce17e['commandName']?{'type':'format','content':c(_0x912fca,'*Merge\x20cells*')}:void 0x0;}),_0x1075f9['descriptionFactory']['registerDescriptionCallback'](_0x32a32d=>{if('formatBlock'!=_0x32a32d['type']&&'formatInline'!=_0x32a32d['type'])return;const {data:_0x2ec386}=_0x32a32d;return _0x2ec386?'splitTableCellVertically'==_0x2ec386['commandName']?{'type':'format','content':c(_0x912fca,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2ec386['commandName']?{'type':'format','content':c(_0x912fca,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x317fc6=_0x4e6444['_acceptFormatSuggestionCallbackFactory']();for(const _0x58a47c of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x1075f9['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x58a47c,'accept',_0x317fc6);for(const _0x1451e9 of['splitTableCellVertically','splitTableCellHorizontally'])_0x1075f9['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1451e9,'accept',_0x317fc6);_0x1075f9['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3d7f6a=>{_0x231b2b['model']['change'](_0x201774=>{const _0x20adcd=Array['from'](_0x37dd8a['getRanges']())['map'](_0x5ed231=>_0x1f3765['fromRange'](_0x5ed231));_0x201774['setSelection'](_0x3d7f6a),_0x231b2b['commands']['get']('mergeTableCells')['refresh'](),_0x231b2b['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x44ae8d=_0x20adcd['filter'](_0x2f62b2=>'$graveyard'!=_0x2f62b2['root']['rootName']);_0x44ae8d['length']>0x0&&_0x201774['setSelection'](_0x44ae8d);for(const _0x447293 of _0x20adcd)_0x447293['detach']();});});for(const _0x4b1348 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x4a1253=_0x231b2b['commands']['get'](_0x4b1348);_0x4a1253['on']('set:isEnabled',(_0x13fd04,_0x6fbbc8,_0x5e60cf)=>{if(_0x5e60cf){const _0x380a85=_0x231b2b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x359dd7=>_0x359dd7['is']('element','tableCell'));this['_areMergableCells'](_0x4a1253['value'],_0x380a85)||(_0x13fd04['return']=!0x1,_0x13fd04['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x55b7f2=this['editor']['commands']['get']('mergeTableCells'),_0x90c33c=this['editor']['plugins']['get']('TableUtils');if(!_0x55b7f2['isEnabled'])return!0x1;const _0x390c47=_0x90c33c['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x30661e of _0x390c47)for(const _0x4db764 of _0x390c47)if(_0x30661e!=_0x4db764&&!this['_areMergableCells'](_0x30661e,_0x4db764))return!0x1;return!0x0;}['_areMergableCells'](_0x2e9244,_0x4ee3bc){const _0x4c438e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x48fc49=this['editor']['model']['createRangeOn'](_0x2e9244),_0x4cfe63=this['editor']['model']['createRangeOn'](_0x4ee3bc),_0x147b9b=new Set(),_0x2ea548=new Set();for(const _0x159b13 of _0x4c438e['getSuggestions']())if(('insertion'==_0x159b13['type']||'deletion'==_0x159b13['type']||'mergeTableCells'==_0x159b13['subType'])&&_0x159b13['isInContent']){for(const _0x20dcd0 of _0x159b13['getRanges']())_0x20dcd0['containsRange'](_0x48fc49,!0x0)&&_0x147b9b['add'](_0x159b13['type']+':'+_0x159b13['author']['id']),_0x20dcd0['containsRange'](_0x4cfe63,!0x0)&&_0x2ea548['add'](_0x159b13['type']+':'+_0x159b13['author']['id']);}if(_0x147b9b['size']!=_0x2ea548['size'])return!0x1;for(const _0x4f1751 of _0x147b9b)if(!_0x2ea548['has'](_0x4f1751))return!0x1;return!0x0;}}class Ct extends _0x34c566{static get['requires'](){return[_t];}['afterInit'](){const _0x51def8=this['editor'];if(!_0x51def8['plugins']['has']('TableEditing'))return;const _0x511f67=_0x51def8['locale'],_0x267dc1=_0x51def8['plugins']['get']('TrackChangesEditing');_0x267dc1['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x267dc1['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x267dc1['registerBlockAttribute']('headingRows'),_0x267dc1['registerBlockAttribute']('headingColumns'),_0x267dc1['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x511f67,'FORMAT_HEADER_ROW')),_0x267dc1['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x511f67,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1d5383=this['editor']['plugins']['get']('TrackChangesEditing'),_0x427d02=this['editor']['plugins']['get']('TableUtils'),_0x5e8b19=this['editor']['plugins']['get'](_t)['_acceptFormatSuggestionCallbackFactory']();function _0x54358a({showActiveMarker:_0x142e22=!0x0,setDataAttribute:_0x42438a=!0x0}={}){return(_0x308dd4,_0x13e52c,_0x383b82)=>{const {type:_0x4ab27e,id:_0x562939}=_0x1d5383['_splitMarkerName'](_0x13e52c['markerName']),_0xad0f45=_0x1d5383['getSuggestion'](_0x562939),_0x371b6a=_0xad0f45['data'];if('formatBlock'!=_0xad0f45['type']||!_0x371b6a||'setTableColumnHeader'!=_0x371b6a['commandName'])return;if(_0x13e52c['item'])return void _0x308dd4['stop']();if(!_0x383b82['consumable']['consume'](_0x13e52c['markerRange'],_0x308dd4['name']))return;const _0x3a9039=_0x13e52c['markerRange']['start']['nodeAfter'],_0x188dd2=_0x13e52c['markerRange']['end']['nodeBefore'],_0x41af56=_0x3a9039['parent']['parent'],{column:_0x1a3147}=_0x427d02['getCellLocation'](_0x3a9039),{column:_0x2a4d8e}=_0x427d02['getCellLocation'](_0x188dd2);for(let _0x4138af=_0x1a3147;_0x4138af<=_0x2a4d8e;_0x4138af++){const _0x26d65a=_0x427d02['createTableWalker'](_0x41af56,{'column':_0x4138af,'includeAllSlots':!0x1});for(const _0x1bc8b0 of _0x26d65a){const _0x55d60a=_0x1bc8b0['cell'],_0x1d955e=_0x383b82['mapper']['toViewElement'](_0x55d60a);_0x383b82['writer']['addClass']('ck-suggestion-marker-'+_0x4ab27e,_0x1d955e),_0x42438a&&_0x383b82['writer']['setAttribute']('data-suggestion',_0x562939,_0x1d955e),_0x383b82['mapper']['bindElementToMarker'](_0x1d955e,_0x13e52c['markerName']),_0x142e22&&(_0x1d5383['activeMarkers']['includes'](_0x13e52c['markerName'])?_0x383b82['writer']['addClass']('ck-suggestion-marker--active',_0x1d955e):_0x383b82['writer']['removeClass']('ck-suggestion-marker--active',_0x1d955e));}}};}_0x1d5383['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x5e8b19),_0x1d5383['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x5e8b19),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x54358a(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x54ff08,_0x4f6061,_0x563280)=>{_0x563280['options']['showSuggestionHighlights']&&_0x54358a({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x54ff08,_0x4f6061,_0x563280);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x31059f,_0x5291c2,_0x5e4fd4)=>{const {type:_0x45db87,id:_0x58fb67}=_0x1d5383['_splitMarkerName'](_0x5291c2['markerName']),_0x4736c5=_0x1d5383['getSuggestion'](_0x58fb67),_0x413261=_0x4736c5['data'];if('formatBlock'!=_0x4736c5['type']||!_0x413261||'setTableColumnHeader'!=_0x413261['commandName'])return;const _0x499b64=_0x5e4fd4['mapper']['markerNameToElements'](_0x5291c2['markerName']);if(_0x499b64){for(const _0x2bc4da of _0x499b64)_0x5e4fd4['writer']['removeClass']('ck-suggestion-marker-'+_0x45db87,_0x2bc4da),_0x5e4fd4['writer']['removeClass']('ck-suggestion-marker--active',_0x2bc4da),_0x5e4fd4['writer']['removeAttribute']('data-suggestion',_0x2bc4da),_0x5e4fd4['mapper']['unbindElementFromMarkerName'](_0x2bc4da,_0x5291c2['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e16d4=this['editor'],_0x3f281a=_0x5e16d4['locale'];function _0x262330(_0x1f6efa){return{'type':'format','content':c(_0x3f281a,'*Format:*\x20%0',_0x1f6efa)};}_0x5e16d4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15e81c=>{if('formatBlock'!=_0x15e81c['type'])return;const {data:_0x456ade}=_0x15e81c;if(_0x456ade){if('setTableRowHeader'==_0x456ade['commandName']){const _0x542b73=_0x456ade['commandParams'][0x0]['forceValue'];return _0x262330(c(_0x3f281a,_0x542b73?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x456ade['commandName']){const _0x5063ff=_0x456ade['commandParams'][0x0]['forceValue'];return _0x262330(c(_0x3f281a,_0x5063ff?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x4523f9=>[_0x4523f9,null]));class Nt extends _0x34c566{static get['requires'](){return[_t];}['afterInit'](){const _0xccbccf=this['editor'];if(!_0xccbccf['plugins']['has']('TableClipboard'))return;const _0x139630=_0xccbccf['plugins']['get']('TrackChangesEditing'),_0xf195aa=_0xccbccf['plugins']['get']('TableUtils'),_0x6f21f2=_0xccbccf['plugins']['get'](_t),_0x5d7bc9=_0xccbccf['plugins']['get']('TableClipboard');_0x6f21f2['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0xccbccf['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0xccbccf['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5b9b9c=null;_0xccbccf['model']['on']('insertContent',(_0x292a10,_0x5dd22d)=>{const [_0x1a5d33,_0x52b421]=_0x5dd22d,_0x488382=_0x5dd22d[_0x5dd22d['length']-0x1];_0x488382&&_0x488382['forceDefaultExecution']||_0x139630['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x436e23,_0x2e12f2,_0x221e4e,_0x48b751,_0xa0c28b){if(_0x2e12f2&&!_0x2e12f2['is']('documentSelection'))return!0x1;const _0x5e56e0=_0xa0c28b['getTableIfOnlyTableInContent'](_0x436e23,_0x221e4e);if(!_0x5e56e0||!Ue(_0x5e56e0,void 0x0,_0x48b751))return!0x1;const _0x1575a1=_0x48b751['getSelectionAffectedTableCells'](_0x221e4e['document']['selection']);if(!_0x1575a1['length'])return!0x1;const _0x54c923=_0x1575a1[0x0]['findAncestor']('table'),_0x34434c=_0x48b751['getRowIndexes'](_0x1575a1),_0x43f7a0=_0x48b751['getColumnIndexes'](_0x1575a1),_0x43b56e={'startRow':_0x34434c['first'],'endRow':_0x34434c['last'],'startColumn':_0x43f7a0['first'],'endColumn':_0x43f7a0['last']};return 0x1==_0x1575a1['length']&&(_0x43b56e['endRow']+=_0x48b751['getRows'](_0x5e56e0)-0x1,_0x43b56e['endColumn']+=_0x48b751['getColumns'](_0x5e56e0)-0x1),Ue(_0x54c923,_0x43b56e,_0x48b751);}(_0x1a5d33,_0x52b421,_0xccbccf['model'],_0xf195aa,_0x5d7bc9)&&(_0x292a10['stop'](),_0x5b9b9c={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xccbccf['model']['change'](()=>{_0xccbccf['model']['insertContent'](_0x5dd22d[0x0],_0x5dd22d[0x1],_0x5dd22d[0x2],{'forceDefaultExecution':!0x0});const _0x3074ed=_0x18c716(),{rowInsertionRanges:_0x5132d5,columnInsertionRanges:_0x5618f5,insertionRanges:_0x12e2a6,deletionRanges:_0x59b3d1,cells:_0x3ec174}=_0x5b9b9c;_0x5132d5['length']&&_0x139630['markMultiRangeInsertion'](_0x5132d5,'tablePasteRow',{'tablePasteChainId':_0x3074ed}),_0x5618f5['length']&&_0x139630['markMultiRangeInsertion'](_0x5618f5,'tablePasteColumn',{'tablePasteChainId':_0x3074ed}),_0x12e2a6['length']&&(_0x139630['markMultiRangeInsertion'](_0x12e2a6,'tablePaste',{'tablePasteChainId':_0x3074ed,'skipNestingCheck':!0x0}),_0x12e2a6['forEach'](_0x30e2de=>_0x30e2de['detach']?.())),_0x59b3d1['length']&&(_0x139630['markMultiRangeDeletion'](_0x59b3d1,'tablePaste',{'tablePasteChainId':_0x3074ed,'skipNestingCheck':!0x0}),_0x59b3d1['forEach'](_0x3499db=>_0x3499db['detach']?.()));const _0x417aa2=_0x139630['markMultiRangeBlockFormat'](_0x3ec174['map'](({element:_0x580242})=>_0x580242),{'formatGroupId':_0x18c716()},[],'tablePasteCell',{'tablePasteChainId':_0x3074ed});if(_0x417aa2){const _0x545bc2=_0x417aa2['getMarkers'](),_0x24a195=[];for(const {element:_0x2bf027,attributes:_0x515985}of _0x3ec174){if(!_0x515985)continue;const _0x2301b2=_0xccbccf['model']['createRangeOn'](_0x2bf027),_0x15cb3b=_0x545bc2['find'](_0x107109=>_0x107109['getRange']()['isEqual'](_0x2301b2));_0x15cb3b&&_0x24a195['push']([_0x15cb3b['name'],_0x515985]);}_0x24a195['length']&&_0x417aa2['setAttribute']('markerAttributes',Object['fromEntries'](_0x24a195));}_0x5b9b9c=null;}));},{'priority':_0x74c243['high']+0xa}),_0xccbccf['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0xa18120,_0x4501df)=>{const [_0x1f4b28,_0x32879e,,_0x54c42b]=_0x4501df;if(!_0x5b9b9c)return;_0xa18120['stop']();const _0x3749b4=_0x1f4b28['cell'],_0x5c152c=_0x32879e,_0x1c0862=Oe(_0x3749b4),_0xb55c30=Oe(_0x5c152c);_0xa18120['return']=_0x3749b4;let _0x1e0ca4=null,_0x3883a2=null;if(_0xb55c30||_0x1c0862){if(_0x1c0862&&!_0xb55c30){_0x54c42b['remove'](_0x3749b4['getChild'](0x0));for(const _0xa33fbc of Array['from'](_0x5c152c['getChildren']()))_0x54c42b['insert'](_0xa33fbc,_0x3749b4,'end');const _0x1ebfea=_0x5b9b9c['rowInsertionIndexes']['includes'](_0x1f4b28['row']),_0x220005=_0x5b9b9c['columnInsertionIndexes']['includes'](_0x1f4b28['column']);_0x1ebfea||_0x220005||(_0x1e0ca4=_0x1f3765['fromRange'](_0x54c42b['createRangeIn'](_0x3749b4)));}else _0xb55c30&&!_0x1c0862&&(_0x3883a2=_0x54c42b['createRangeIn'](_0x3749b4));}else{const _0x105015=_0x54c42b['createElement']('tableCellSuggestion'),_0x4741d5=_0x54c42b['createElement']('tableCellSuggestion');_0x54c42b['wrap'](_0x54c42b['createRangeIn'](_0x3749b4),_0x4741d5),_0x54c42b['insert'](_0x105015,_0x3749b4,0x0);for(const _0x2557ba of Array['from'](_0x5c152c['getChildren']()))_0x54c42b['insert'](_0x2557ba,_0x105015,'end');_0x1e0ca4=_0x1f3765['fromRange'](_0x54c42b['createRangeOn'](_0x105015)),_0x3883a2=_0x1f3765['fromRange'](_0x54c42b['createRangeOn'](_0x4741d5));}const _0x5ee1c6=Array['from'](_0x5c152c['getAttributes']())['filter'](([_0xa8ca8f])=>Be['includes'](_0xa8ca8f));_0x5b9b9c['cells']['push']({'element':_0x3749b4,'attributes':_0x5ee1c6['length']?Object['fromEntries'](_0x5ee1c6):null}),_0x1e0ca4&&_0x5b9b9c['insertionRanges']['push'](_0x1e0ca4),_0x3883a2&&_0x5b9b9c['deletionRanges']['push'](_0x3883a2);},{'priority':'high'}),_0xf195aa['on']('insertColumns',(_0x200dcc,_0x3599d5)=>{const [_0x10e894,_0x56e731={}]=_0x3599d5;if(!_0x5b9b9c)return;const _0x2c68f6=_0x56e731['at']||0x0,_0x2f2bc0=_0x56e731['columns']||0x1;_0x5b9b9c['columnInsertionIndexes']=new Array(_0x2f2bc0)['fill'](_0x2c68f6)['map']((_0x5b1249,_0x203fa6)=>_0x5b1249+_0x203fa6);for(const {cell:_0xa78457}of _0xf195aa['createTableWalker'](_0x10e894,{'startColumn':_0x2c68f6,'endColumn':_0x2c68f6+_0x2f2bc0-0x1}))_0x5b9b9c['columnInsertionRanges']['push'](_0xccbccf['model']['createRangeOn'](_0xa78457));},{'priority':'low'}),_0xf195aa['on']('insertRows',(_0x237745,_0x3d361c)=>{const [_0xcd170,_0x1a4ea0={}]=_0x3d361c;if(!_0x5b9b9c)return;const _0x11f15b=_0x1a4ea0['at']||0x0,_0x123f39=_0x1a4ea0['rows']||0x1;_0x5b9b9c['rowInsertionIndexes']=new Array(_0x123f39)['fill'](_0x11f15b)['map']((_0x495946,_0x528d4d)=>_0x495946+_0x528d4d);for(const {cell:_0x4a9eed}of _0xf195aa['createTableWalker'](_0xcd170,{'startRow':_0x11f15b,'endRow':_0x11f15b+_0x123f39-0x1}))_0x5b9b9c['rowInsertionRanges']['push'](_0xccbccf['model']['createRangeOn'](_0x4a9eed));},{'priority':'low'}),_0x139630['descriptionFactory']['registerDescriptionCallback'](_0x55917a=>{if(_0x55917a['subType']&&_0x55917a['subType']['startsWith']('tablePaste'))return _0x55917a['previous']?{}:{'type':'insertion','content':c(_0xccbccf['locale'],'*Replace\x20table\x20cells*')};});const _0x314115=()=>!0x1;for(const _0x273bee of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x139630['_suggestionFactory']['registerCustomCallback']('insertion',_0x273bee,'join',_0x314115),_0x139630['_suggestionFactory']['registerCustomCallback']('deletion',_0x273bee,'join',_0x314115),_0x139630['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x273bee,'join',_0x314115);_0x139630['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x314115),_0x139630['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4f361d,_0xf7a805,_0x38b21d)=>{const _0x20590b=_0x4f361d['map'](_0x2fe584=>_0x2fe584['getContainedElement']())['filter'](_0x22ff49=>_0x22ff49),_0x3c9b5e=new Map(_0x20590b['map'](_0x2b3c76=>[_0x2b3c76,null]));if(_0x5b9b9c){for(const {element:_0x173146,attributes:_0x31d7ac}of _0x5b9b9c['cells'])_0x31d7ac&&_0x3c9b5e['set'](_0x173146,_0x31d7ac);}else{if(_0x38b21d&&_0x38b21d['markerAttributes'])for(const [_0x3cacc2,_0x3d999d]of Object['entries'](_0x38b21d['markerAttributes'])){const _0x17cd58=_0xccbccf['model']['markers']['get'](_0x3cacc2),_0x120343=_0x17cd58?_0x17cd58['getRange']()['getContainedElement']():null;_0x120343&&_0x3c9b5e['set'](_0x120343,_0x3d999d);}}_0xccbccf['model']['change'](_0x7ca687=>{for(const [_0x531aa2,_0x7a465]of _0x3c9b5e)_0x7ca687['setAttributes']({...xe,..._0x7a465},_0x531aa2);});});const _0x1de155=(_0x2572f3,_0x19caf5)=>{_0x139630['_suggestionFactory']['registerCustomCallback'](_0x2572f3,'tablePaste',_0x19caf5,(_0xea57ae,_0x1cb4c6,_0x5e0900)=>{_0xccbccf['model']['change'](_0x49192d=>{const _0x1046f0=[];for(const _0x177f85 of _0xea57ae){const _0x24b12c=_0x177f85['start']['nodeAfter'];_0x24b12c['is']('element','tableCellSuggestion')&&_0x1046f0['push'](_0x24b12c);}_0x139630['_suggestionFactory']['getSuggestionCallback'](_0x2572f3,null,_0x19caf5)(_0xea57ae,_0x1cb4c6,_0x5e0900);for(const _0x12afd9 of _0x1046f0)'$graveyard'!=_0x12afd9['root']['rootName']&&_0x49192d['unwrap'](_0x12afd9);});});};_0x1de155('insertion','accept'),_0x1de155('insertion','discard'),_0x1de155('deletion','accept'),_0x1de155('deletion','discard'),_0x139630['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x146f1f=>{const _0x1d036e=_0x146f1f['map'](_0x67fec1=>_0x67fec1['getContainedElement']()),_0x2b43d5=_0x1d036e[0x0]['findAncestor']('table'),{minRow:_0x26bf09,maxRow:_0x230fa3}=_0x6f21f2['_getCoordsForCells'](_0x1d036e);_0xf195aa['removeRows'](_0x2b43d5,{'at':_0x26bf09,'rows':_0x230fa3-_0x26bf09+0x1});}),_0x139630['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x40d167=>{const _0x195b96=_0x40d167['map'](_0x3eae3a=>_0x3eae3a['getContainedElement']()),_0x5b4c8f=_0x195b96[0x0]['findAncestor']('table'),{minColumn:_0x4ee3d6,maxColumn:_0x5d32c3}=_0x6f21f2['_getCoordsForCells'](_0x195b96);_0xf195aa['removeColumns'](_0x5b4c8f,{'at':_0x4ee3d6,'columns':_0x5d32c3-_0x4ee3d6+0x1});});const _0x3c928e=(_0x1f6e49,_0x314e3e)=>{if(!_0x314e3e['subType']||!_0x314e3e['subType']['startsWith']('tablePaste'))return;const _0x13e328=_0x314e3e['attributes']['tablePasteChainId'],_0x4712b1=_0x139630['getSuggestions']()['filter'](_0x1163a9=>_0x1163a9['isInContent']&&_0x1163a9['attributes']&&_0x1163a9['attributes']['tablePasteChainId']==_0x13e328);_0x4712b1['length']&&_0x314e3e['getAllAdjacentSuggestions']()['length']!=_0x4712b1['length']&&_0x4712b1['reduce']((_0x4c88b0,_0x552828)=>(_0x4c88b0['next']=_0x552828,_0x552828['previous']=_0x4c88b0,_0x552828));};function _0x5206a8(_0x17df97,_0x4ad4ea=!0x0){const {id:_0xb8d032,authorId:_0x200454}=_0x139630['_splitMarkerName'](_0x17df97['markerName']),_0xf0c17e=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x2f30f0=_0x139630['activeMarkers']['includes'](_0x17df97['markerName']);return _0x2f30f0&&_0xf0c17e['push']('ck-suggestion-marker--active'),{'classes':_0xf0c17e,'attributes':{'data-suggestion':_0xb8d032,'data-author-id':_0x200454},'priority':_0x2f30f0&&_0x4ad4ea?0xbc2:0xbb8};}_0x139630['on']('suggestionLoaded',_0x3c928e,{'priority':'high'}),_0x139630['on']('suggestionUnloaded',_0x3c928e,{'priority':'high'}),_0xccbccf['model']['document']['registerPostFixer'](()=>{let _0x57e556=!0x1;const _0x3f8a86=Array['from'](_0xccbccf['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4c1432,data:_0x3733ee}of _0x3f8a86){const {group:_0x172940,type:_0x5d1a85,id:_0x203692}=_0x139630['_splitMarkerName'](_0x4c1432);if('suggestion'!=_0x172940||'deletion'!=_0x5d1a85||_0x3733ee['oldRange'])continue;if(!_0x139630['hasSuggestion'](_0x203692))continue;const _0x1d6295=_0x139630['getSuggestion'](_0x203692)['getRanges'](),_0x369e1f=_0xccbccf['plugins']['get']('Users')['me'];for(const _0x348b11 of _0x139630['getSuggestions']()){if(!_0x348b11['isInContent']||_0x348b11['author']!=_0x369e1f)continue;if('formatBlock'!=_0x348b11['type']||'tablePasteCell'!=_0x348b11['subType'])continue;if(_0x348b11['getRanges']()['every'](_0xf33963=>_0x1d6295['some'](_0x2a955a=>_0x2a955a['containsRange'](_0xf33963,!0x0)))){for(const _0x4e5861 of _0x348b11['getAllAdjacentSuggestions']())_0x4e5861['isInContent']&&(_0x4e5861['discard'](),_0x57e556=!0x0);}}}return _0x57e556;}),_0xccbccf['model']['document']['registerPostFixer'](_0x5c7c70=>{const _0x5f4424=_0xccbccf['commands']['get']('redo');if(!_0x5f4424||!_0x5f4424['_createdBatches']['has'](_0x5c7c70['batch']))return!0x1;let _0x29115e=!0x1;const _0xbceb4=_0xccbccf['plugins']['get']('Users')['me'],_0x2e6bf7=_0xccbccf['model']['document']['differ']['getChanges'](),_0x5f5315=Array['from'](_0xccbccf['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x49f066,data:_0x5de113})=>{const {group:_0x8a2d3a,subType:_0x16189b,authorId:_0x3fa0dd}=_0x139630['_splitMarkerName'](_0x49f066);return'suggestion'==_0x8a2d3a&&'tablePaste'==_0x16189b&&_0x3fa0dd==_0xbceb4['id']&&!_0x5de113['oldRange'];});for(const _0x4cc5ed of _0x2e6bf7){if('insert'!=_0x4cc5ed['type']||'tableCellSuggestion'!=_0x4cc5ed['name']||0x1!=_0x4cc5ed['length'])continue;const _0xd0f51e=_0x5c7c70['createRange'](_0x4cc5ed['position'],_0x4cc5ed['position']['getShiftedBy'](0x1));if(!_0x5f5315['find'](({data:_0x52b9c6})=>_0x52b9c6['newRange']['isEqual'](_0xd0f51e))){for(const {name:_0x267521,data:_0x295fa5}of _0x5f5315)if(_0xd0f51e['containsRange'](_0x295fa5['newRange'])){_0x5c7c70['updateMarker'](_0x267521,{'range':_0xd0f51e}),_0x29115e=!0x0;break;}}}return _0x29115e;}),_0xccbccf['model']['document']['registerPostFixer'](_0x578809=>{let _0x356942=!0x1;const _0x1052f5=_0xccbccf['plugins']['get']('Users')['me'],_0x5b4148=_0x139630['getSuggestions']()['filter'](_0x3d264c=>_0x3d264c['isInContent']&&_0x3d264c['author']==_0x1052f5),_0xe03f1f=new Set(),_0x4267e0=new Set();for(const _0x1fdb3f of _0x5b4148)if('tablePaste'==_0x1fdb3f['subType'])for(const _0xd0b1d7 of _0x1fdb3f['getMarkers']()){const _0x1d3162=_0xd0b1d7['getRange']()['getContainedElement']();if(_0x1d3162){if(_0x1d3162['is']('element','tableCellSuggestion')&&Oe(_0x1d3162)){_0x1fdb3f['removeMarker'](_0xd0b1d7['name']),_0xe03f1f['add'](_0x1d3162),_0x356942=!0x0;const _0x1605ee=_0x1d3162['nextSibling'],_0x24b61e=_0x1d3162['previousSibling'],_0xadb28b=_0x1605ee&&_0x1605ee['is']('element','tableCellSuggestion'),_0x4afc95=_0x24b61e&&_0x24b61e['is']('element','tableCellSuggestion');_0xadb28b&&!_0xe03f1f['has'](_0x1605ee)&&_0x4267e0['add'](_0x1605ee),_0x4afc95&&!_0xe03f1f['has'](_0x24b61e)&&_0x4267e0['add'](_0x24b61e);}else _0x1d3162['is']('element','paragraph')&&_0x1d3162['isEmpty']&&(_0x1fdb3f['removeMarker'](_0xd0b1d7['name']),_0x356942=!0x0);}}else{if('tablePasteCell'==_0x1fdb3f['subType']){if(!_0x1fdb3f['attributes']||!_0x1fdb3f['attributes']['tablePasteChainId'])continue;const _0x2a0edb=_0x1fdb3f['attributes']['markerAttributes'];if(_0x2a0edb&&Object['keys'](_0x2a0edb)['length'])continue;const _0x32fd84=_0x1fdb3f['attributes']['tablePasteChainId'];let _0x5baf48=!0x0,_0x393b95=!0x0;for(const _0x36e633 of _0x5b4148)if(_0x36e633['subType']&&_0x36e633['subType']['startsWith']('tablePaste')){if(!_0x36e633['attributes']['tablePasteChainId']){_0x393b95=!0x1;break;}if(_0x36e633['id']!=_0x1fdb3f['id']&&_0x36e633['attributes']['tablePasteChainId']==_0x32fd84){_0x5baf48=!0x1;break;}}_0x393b95&&_0x5baf48&&(_0x1fdb3f['removeMarkers'](),_0x356942=!0x0);}}for(const _0x1930aa of _0xe03f1f)_0x578809['remove'](_0x1930aa);for(const _0x548a4f of _0x4267e0)_0x578809['unwrap'](_0x548a4f);return _0x356942;}),_0xccbccf['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x3c3875=>_0x5206a8(_0x3c3875),'converterPriority':'high'}),_0xccbccf['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x39e604,_0x362b55)=>_0x362b55['options']['showSuggestionHighlights']?_0x5206a8(_0x39e604,!0x1):null,'converterPriority':'high'});const _0x3eba92=_0xccbccf['editing']['view'];this['listenTo'](_0x3eba92['document'],'clipboardOutput',(_0x2a8d62,_0xfc6b6d)=>{const _0x5db7ef=[];for(const _0xf819d2 of _0x3eba92['createRangeIn'](_0xfc6b6d['content'])['getItems']())_0xf819d2['is']('element','suggestion-td')&&_0x5db7ef['push'](_0xf819d2);_0x3eba92['change'](_0x2c4234=>{for(const _0x855a6d of _0x5db7ef)_0x2c4234['move'](_0x2c4234['createRangeIn'](_0x855a6d),_0x2c4234['createPositionBefore'](_0x855a6d)),_0x2c4234['remove'](_0x855a6d);});});}}function Oe(_0x4f1598){if(_0x4f1598['isEmpty'])return!0x0;const _0x540b85=_0x4f1598['getChild'](0x0);return _0x540b85['is']('element','paragraph')&&_0x540b85['isEmpty'];}function Ue(_0x3c179d,_0x51b3e9={},_0x2f2050){for(const {isAnchor:_0x399c8f,cellHeight:_0x5dfd8c,cellWidth:_0x4f372f}of _0x2f2050['createTableWalker'](_0x3c179d,{'includeAllSlots':!0x0,..._0x51b3e9}))if(!_0x399c8f||0x1!=_0x5dfd8c||0x1!=_0x4f372f)return!0x1;return!0x0;}class Dt extends _0x34c566{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x18af14=this['editor']['plugins']['get']('TrackChangesEditing');_0x18af14['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x18af14['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x18af14['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x18af14['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x18af14['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x18af14['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x330cb0,_0x37a069){const _0x4c3a2a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x12de2d=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x59b597=_0x37a069['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x443ca7=_0x12de2d['getColumnGroupElement'](_0x59b597);let _0xe3b953=_0x443ca7?_0x12de2d['getTableColumnsWidths'](_0x443ca7):null,_0x5036c7=_0x59b597['getAttribute']('tableWidth')||null;const _0x148f56=_0x37a069['tableWidth']||_0x5036c7,_0x2fee31=_0x37a069['columnWidths']||_0xe3b953,_0x1b85b2=this['editor']['plugins']['get']('Users')['me'];for(const _0x1ddec4 of _0x4c3a2a['getSuggestions']()){const _0xf0f03d=_0x1ddec4['getContainedElement']();if('resizeTable'===_0x1ddec4['subType']&&_0xf0f03d===_0x59b597){_0x1ddec4['author']!==_0x1b85b2&&_0x1ddec4['discard']();const _0x3fb1cf=_0x1ddec4['data']['commandParams'];_0x5036c7=_0x3fb1cf[0x0]['tableWidth'],_0xe3b953=_0x3fb1cf[0x0]['columnWidths'];break;}}_0x330cb0({'table':_0x59b597,'tableWidth':_0x148f56,'columnWidths':_0x2fee31}),_0x4c3a2a['markBlockFormat'](_0x59b597,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5036c7,'columnWidths':_0xe3b953}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x71123f){if('formatBlock'!=_0x71123f['type']&&'formatInline'!=_0x71123f['type'])return;const {data:_0x4cacb1}=_0x71123f;if(_0x4cacb1&&'resizeTable'===_0x4cacb1['formatGroupId']){const _0x2a46ce='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x2a46ce)};}}}class Mt extends _0x34c566{['afterInit'](){const _0x5f0a2f=this['editor'];_0x5f0a2f['plugins']['has']('Template')&&_0x5f0a2f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x34c566{['afterInit'](){const _0x19d870=this['editor'];if(!_0x19d870['commands']['get']('insertTableOfContents'))return;_0x19d870['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x350739=_0x19d870['plugins']['get']('TrackChangesEditing'),_0x36cb73=_0x19d870['locale'];_0x350739['descriptionFactory']['registerElementLabel']('tableOfContents',_0xfd1187=>c(_0x36cb73,'ELEMENT_TABLE_OF_CONTENTS',_0xfd1187));}}class Bt extends _0x34c566{['afterInit'](){const _0x2691e9=this['editor'];if(!_0x2691e9['plugins']['has']('Title'))return;const _0x2ee9f0=_0x2691e9['plugins']['get']('TrackChangesEditing');_0x2ee9f0['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x2691e9['locale'],'ELEMENT_TITLE')),_0x2691e9['model']['document']['registerPostFixer'](_0x1a1801=>{let _0x2b0d8e=!0x1;const _0x4ec2cc=Array['from'](_0x2691e9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xeca118,data:_0x2a662c}of _0x4ec2cc){const {group:_0x339a12}=_0x2ee9f0['_splitMarkerName'](_0xeca118);if('suggestion'!==_0x339a12||!_0x2a662c['newRange'])continue;const _0x297b49=_0x2a662c['newRange'],_0x36cca0=_0x297b49['end']['nodeBefore'];if(!_0x36cca0||!_0x36cca0['is']('element','title-content'))continue;if(!_0x297b49['start']['isTouching'](_0x297b49['end']))continue;const _0x174c7e=_0x2691e9['model']['schema']['getNearestSelectionRange'](_0x297b49['end'],'forward');if(_0x174c7e&&_0x174c7e['isCollapsed']){const _0x3ea770=_0x1a1801['createRange'](_0x297b49['start'],_0x174c7e['start']);_0x3ea770['isEqual'](_0x297b49)||(_0x1a1801['updateMarker'](_0xeca118,{'range':_0x3ea770}),_0x2b0d8e=!0x0);}_0x2b0d8e||(_0x1a1801['removeMarker'](_0xeca118),_0x2b0d8e=!0x0);}return _0x2b0d8e;});}}class Ot extends _0x34c566{['afterInit'](){const _0x55bf07=this['editor'],_0x5ae891=_0x55bf07['plugins']['get']('TrackChangesEditing');_0x55bf07['plugins']['has']('Uploadcare')&&(_0x5ae891['enableCommand']('uploadcare'),_0x55bf07['plugins']['has']('UploadcareImageEdit')&&(_0x5ae891['enableCommand']('uploadcareImageEdit'),_0x5ae891['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x5ae891['registerBlockAttribute']('uploadcareImageId'),_0x5ae891['descriptionFactory']['registerDescriptionCallback'](_0x17d5c9=>{if('attribute'!=_0x17d5c9['type'])return;const {data:_0xd329d7}=_0x17d5c9;return _0xd329d7&&'uploadcareImageId'==_0xd329d7['key']?{'type':'format','content':''}:void 0x0;})));}}class Rt extends _0x34c566{['afterInit'](){const _0x13792b=this['editor'],_0x37b414=_0x13792b['plugins']['get']('TrackChangesEditing');_0x13792b['plugins']['has']('UndoEditing')&&(_0x37b414['enableCommand']('undo'),_0x37b414['enableCommand']('redo'));}}class xt extends _0x34c566{static get['requires'](){return[_t];}['afterInit'](){const _0x9331c3=this['editor'];if(!_0x9331c3['plugins']['has']('TableCaptionEditing'))return;_0x9331c3['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Tt extends _0x34c566{['tableProperties'];['tableCellProperties'];constructor(_0x1302bd){super(_0x1302bd),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 _0x36b4a9=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0xc201d0 of this['tableProperties'])_0x36b4a9['enableCommand'](_0xc201d0,(_0x3980fb,_0x106e68)=>{const _0x36e788=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0xc201d0,[_0x36e788],this['tableProperties'],'tableProperties',_0x3980fb,_0x106e68);});_0x36b4a9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x36b4a9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x36b4a9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x40f501,_0x2da43d)=>this['handleDiscardAction'](this['tableProperties'],_0x40f501,_0x2da43d)),_0x36b4a9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x195a02 of this['tableCellProperties'])_0x36b4a9['enableCommand'](_0x195a02,(_0x24e2b8,_0x1c5d16)=>{const _0xc92c64=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x195a02,_0xc92c64,this['tableCellProperties'],'tableCellProperties',_0x24e2b8,_0x1c5d16);});_0x36b4a9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x36b4a9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x36b4a9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4d53f1,_0x321c8a)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4d53f1,_0x321c8a)),_0x36b4a9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x36b4a9['descriptionFactory']['registerDescriptionCallback'](_0x2632dd=>this['handleSuggestionDescription'](_0x2632dd));}['_handlePropertyChange'](_0x278fe7,_0xddc1d,_0x187f20,_0x554248,_0x21e45a,_0x582bb3){const _0x2add38=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x582bb3['batch'],()=>{for(const _0x5c637f of _0xddc1d){if(this['_getSuggestion'](_0x5c637f,_0x554248))_0x21e45a(_0x582bb3);else{const _0x12ec02={};for(const _0x18f602 of _0x187f20){const _0x29fb95=_0x5c637f['getAttribute'](_0x18f602);void 0x0!==_0x29fb95&&(_0x12ec02[_0x18f602]=_0x29fb95);}_0x21e45a(_0x582bb3),_0x2add38['markBlockFormat'](_0x5c637f,{'commandParams':[_0x12ec02]},[],_0x554248);}}});}['handleDiscardAction'](_0x3c5e47,_0x3f28c3,_0x1b9937){const _0x2fc97d=_0x3f28c3[0x0]['start']['nodeAfter'],_0x394a7d=_0x1b9937['commandParams'][0x0];this['editor']['model']['change'](_0x3994b8=>{for(const _0x46d5fe of _0x3c5e47)void 0x0!==_0x394a7d[_0x46d5fe]?_0x3994b8['setAttribute'](_0x46d5fe,_0x394a7d[_0x46d5fe],_0x2fc97d):_0x3994b8['removeAttribute'](_0x46d5fe,_0x2fc97d);});}['handleSuggestionDescription'](_0x42b6cf){if(_0x42b6cf['data'])switch(_0x42b6cf['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x2c386d,_0x419e16){const _0x2f0b3d=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x5def20 of _0x2f0b3d['getSuggestions']({'skipNotAttached':!0x0})){const _0x239e5b=_0x5def20['getContainedElement']();if(_0x5def20['subType']===_0x419e16&&_0x239e5b===_0x2c386d)return _0x5def20;}return null;}}const u='$elementName';class p extends _0x34c566{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x39c23b,_0x2fd413,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,Se,dt,mt,pt,kt,bt,yt,jt,St,At,It,_t,vt,Ct,xt,Nt,Dt,$t,Tt,Mt,Bt,Ot,Rt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4f4d78){super(_0x4f4d78),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x4d8649,_0x11ff40,_0x4b4eaf,_0x23e497)=>{this['_model']['change'](()=>{for(const _0x549ea1 of[..._0x23e497,..._0x4b4eaf])this['_model']['markers']['has'](_0x549ea1)&&_0x4f4d78['editing']['reconvertMarker'](_0x549ea1);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ut(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x4f4d78['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x4f4d78['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4f4d78['config']['get']('trackChanges.trackFormatChanges'),_0x4f4d78['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4f4d78['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x4f4d78,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x5c99d0=this['editor'],_0x52bfbf=(_0x17c65b,_0x1314b7)=>{if('attribute'!=_0x17c65b)return'ck-suggestion-marker-'+_0x17c65b;const _0x3fe38b=_0x1314b7['split']('|')[0x0];return this['_isBlockAttribute'](_0x3fe38b)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x5c99d0['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x2e9d34=>{const {id:_0x5f0e39,authorId:_0x390c64,type:_0x52159f,subType:_0x1975e5}=this['_splitMarkerName'](_0x2e9d34['markerName']),_0x144582=['ck-suggestion-marker',_0x52bfbf(_0x52159f,_0x1975e5)];let _0x60b72=0xbb8;return this['activeMarkers']['includes'](_0x2e9d34['markerName'])&&(_0x144582['push']('ck-suggestion-marker--active'),_0x60b72=0xbc2),'deletion'==_0x52159f&&(_0x60b72+=0x5),{'classes':_0x144582,'attributes':{'data-suggestion':_0x5f0e39,'data-author-id':_0x390c64},'priority':_0x60b72};}}),_0x5c99d0['conversion']['for']('dataDowncast')['add'](_0xb7af39=>{_0xb7af39['on']('addMarker:suggestion',(_0x49e47c,_0x2c9685,_0x15837e)=>{if(!_0x15837e['options']['showSuggestionHighlights'])return;const _0x50e8d4=_0x2c9685['item'];if(!_0x50e8d4)return;const _0xe3103=_0x15837e['mapper']['toViewElement'](_0x50e8d4);_0x5c99d0['model']['schema']['isObject'](_0x50e8d4)&&_0xe3103&&!_0xe3103['getCustomProperty']('widget')&&_0xe3103['is']('containerElement')&&_0x5e451d(_0xe3103,_0x15837e['writer']);},{'priority':'high'});}),_0x5c99d0['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x244892,_0x40a355)=>{if(!_0x40a355['options']['showSuggestionHighlights'])return null;const {type:_0x328904,subType:_0x4ac43d}=this['_splitMarkerName'](_0x244892['markerName']);return{'classes':['ck-suggestion-marker',_0x52bfbf(_0x328904,_0x4ac43d)],'priority':0xbb8};}});const _0x31ce23=({showActiveMarkers:_0x36ef0e=!0x0,isAttributeSuggestion:_0xe748e4=!0x1}={})=>(_0x57f1a3,_0x233d86,_0x1ecddc)=>{if(!_0x233d86['item'])return;const {id:_0x3a01e0,authorId:_0x4a226e}=this['_splitMarkerName'](_0x233d86['markerName']);if(_0xe748e4){const _0x303e70=this['_suggestions']['get'](_0x3a01e0),_0x1ea2f6=this['_getAttributeKey'](_0x303e70);if(!this['_isBlockAttribute'](_0x1ea2f6))return;}if(_0x233d86['item']['is']('selection'))return void _0x1ecddc['consumable']['consume'](_0x233d86['item'],_0x57f1a3['name']);const _0x55a9e7=_0x1ecddc['mapper']['toViewElement'](_0x233d86['item']);if(_0x233d86['item']['is']('element')&&_0x5c99d0['model']['schema']['isBlock'](_0x233d86['item'])&&!_0x55a9e7['getCustomProperty']('addHighlight')){_0x1ecddc['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x55a9e7),_0x1ecddc['writer']['setAttribute']('data-suggestion',_0x3a01e0,_0x55a9e7),_0x1ecddc['writer']['setAttribute']('data-author-id',_0x4a226e,_0x55a9e7),_0x1ecddc['mapper']['bindElementToMarker'](_0x55a9e7,_0x233d86['markerName']),_0x36ef0e&&(this['activeMarkers']['includes'](_0x233d86['markerName'])?_0x1ecddc['writer']['addClass']('ck-suggestion-marker--active',_0x55a9e7):_0x1ecddc['writer']['removeClass']('ck-suggestion-marker--active',_0x55a9e7));for(const _0x1ac2ee of _0x5c99d0['model']['createRangeIn'](_0x233d86['item'])['getItems']())_0x1ecddc['consumable']['consume'](_0x1ac2ee,_0x57f1a3['name']);_0x1ecddc['consumable']['consume'](_0x233d86['item'],_0x57f1a3['name']);}};_0x5c99d0['conversion']['for']('dataDowncast')['add'](_0x5a37f2=>{_0x5a37f2['on']('addMarker:suggestion:formatBlock',(_0xd14dff,_0x1fe0e2,_0x546cad)=>{_0x546cad['options']['showSuggestionHighlights']&&_0x31ce23({'showActiveMarkers':!0x1})(_0xd14dff,_0x1fe0e2,_0x546cad);},{'priority':'highest'});}),_0x5c99d0['conversion']['for']('dataDowncast')['add'](_0x114abe=>{_0x114abe['on']('addMarker:suggestion:attribute',(_0x52bb93,_0x3d5480,_0x253919)=>{_0x253919['options']['showSuggestionHighlights']&&_0x31ce23({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x52bb93,_0x3d5480,_0x253919);},{'priority':'highest'});}),_0x5c99d0['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x33af16,_0x38fee6)=>_0x38fee6['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x33af16['substr'](0xb)}}),_0x5c99d0['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4c78d2,{writer:_0x3dc99d})=>{let _0x4d3ca6='suggestion:'+_0x4c78d2['getAttribute']('suggestion-type')+':'+_0x4c78d2['getAttribute']('id');return _0x4c78d2['getAttribute']('marker-count')&&(_0x4d3ca6+=':'+_0x4c78d2['getAttribute']('marker-count')),_0x3dc99d['createElement']('$marker',{'data-name':_0x4d3ca6});}}),_0x5c99d0['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x5c99d0['conversion']['for']('editingDowncast')['add'](_0xad31e7=>{_0xad31e7['on']('addMarker:suggestion:formatBlock',_0x31ce23(),{'priority':'high'});}),_0x5c99d0['conversion']['for']('editingDowncast')['add'](_0x270b7a=>{_0x270b7a['on']('addMarker:suggestion:attribute',_0x31ce23({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x5c99d0['conversion']['for']('editingDowncast')['add'](_0xcf57d7=>{_0xcf57d7['on']('removeMarker:suggestion:formatBlock',(_0x321d37,_0x2cfaea,_0x1d9c97)=>{const _0x5200b2=_0x1d9c97['mapper']['markerNameToElements'](_0x2cfaea['markerName']);if(_0x5200b2){for(const _0x2f0663 of _0x5200b2)_0x2f0663['getCustomProperty']('addHighlight')||(_0x1d9c97['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2f0663),_0x1d9c97['writer']['removeAttribute']('data-suggestion',_0x2f0663),_0x1d9c97['writer']['removeAttribute']('data-author-id',_0x2f0663),_0x1d9c97['mapper']['unbindElementFromMarkerName'](_0x2f0663,_0x2cfaea['markerName']));}},{'priority':'high'});}),_0x5c99d0['conversion']['for']('editingDowncast')['add'](_0x9e36c8=>{_0x9e36c8['on']('removeMarker:suggestion:attribute',(_0x2026c5,_0x4bbce9,_0x21e716)=>{const _0x1e977b=_0x21e716['mapper']['markerNameToElements'](_0x4bbce9['markerName']);if(!_0x1e977b)return;const {id:_0x238b0e}=this['_splitMarkerName'](_0x4bbce9['markerName']),_0x5015a8=this['_suggestions']['get'](_0x238b0e),_0x4897fa=this['_getAttributeKey'](_0x5015a8);if(this['_isBlockAttribute'](_0x4897fa)){for(const _0x23b280 of _0x1e977b)_0x23b280['getCustomProperty']('addHighlight')||(_0x21e716['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x23b280),_0x21e716['writer']['removeAttribute']('data-suggestion',_0x23b280),_0x21e716['writer']['removeAttribute']('data-author-id',_0x23b280),_0x21e716['mapper']['unbindElementFromMarkerName'](_0x23b280,_0x4bbce9['markerName']));}},{'priority':'high'});}),_0x5c99d0['model']['document']['registerPostFixer'](_0x5e713d=>{let _0x5cc17b=!0x1;const _0x5a5bc6=Array['from'](_0x5c99d0['model']['document']['differ']['getChangedMarkers']()),_0x5eb01d=new Set();for(const {name:_0x138636,data:_0x813bfc}of _0x5a5bc6){const {group:_0x56b6ab,type:_0x5beac0,subType:_0x186343,id:_0x165e94}=this['_splitMarkerName'](_0x138636);if('suggestion'!==_0x56b6ab)continue;const _0x146ba1=this['_suggestions']['get'](_0x165e94);if(null!=_0x813bfc['newRange']){'formatInline'==_0x5beac0&&(_0x5cc17b=_0x5cc17b||Pt(_0x813bfc['newRange'],_0x138636,_0x5e713d,_0x5c99d0['model']['schema']));const _0x4c95b2='attribute'==_0x5beac0&&this['_isBlockAttribute'](_0x186343['split']('|')[0x0]);if(_0x813bfc['newRange']['isCollapsed']||'$graveyard'==_0x813bfc['newRange']['root']['rootName']||'formatBlock'==_0x5beac0&&!Lt(_0x813bfc['newRange'])||_0x4c95b2&&!Lt(_0x813bfc['newRange'])||'deletion'==_0x5beac0&&!(!Ft(_0x25fd6c=_0x813bfc['newRange'])&&!function(_0x1681b8){return _0x1681b8['start']['parent']==_0x1681b8['end']['nodeBefore']&&_0x1681b8['start']['isAtEnd'];}(_0x25fd6c)))_0x5e713d['removeMarker'](_0x138636),_0x5cc17b=!0x0;else{if(!_0x146ba1||!_0x146ba1['isInContent'])continue;if(_0x813bfc['newRange']&&_0x813bfc['oldRange']&&_0x813bfc['newRange']['isEqual'](_0x813bfc['oldRange']))continue;_0x5eb01d['add'](_0x146ba1);}}}var _0x25fd6c;return _0x5eb01d['size']>0x0&&(_0x5cc17b=!!this['_joinWithAdjacentSuggestions'](_0x5eb01d)||_0x5cc17b),_0x5cc17b;}),_0x5c99d0['model']['document']['registerPostFixer'](_0x1918ee=>{let _0x1cfc39=!0x1;for(const _0x415c07 of _0x5c99d0['model']['document']['differ']['getChanges']())if('insert'==_0x415c07['type'])for(const _0x3136bd of this['_suggestions']['values']()){if(_0x3136bd['isMultiRange']||!_0x3136bd['isInContent'])continue;const _0xecadde='formatBlock'==_0x3136bd['type'],_0x4e7ee8=this['_getAttributeKey'](_0x3136bd),_0x4f7486=_0x4e7ee8&&this['_isBlockAttribute'](_0x4e7ee8);if(!_0xecadde&&!_0x4f7486)continue;const _0x222766=_0x3136bd['getFirstRange']();if(_0x222766['start']['parent']!=_0x222766['end']['parent']&&!_0x222766['end']['isAtEnd']){const _0x2954b7=_0x5c99d0['model']['createPositionAt'](_0x222766['start']['nodeAfter'],'end'),_0x2036d6=_0x5c99d0['model']['createRange'](_0x222766['start'],_0x2954b7);_0x1918ee['updateMarker'](_0x3136bd['getFirstMarker'](),{'range':_0x2036d6}),_0x1cfc39=!0x0;}}return _0x1cfc39;}),_0x5c99d0['model']['document']['registerPostFixer'](_0x5b4a88=>this['_processAttributeChanges'](_0x5b4a88)),_0x5c99d0['model']['document']['registerPostFixer'](_0x215782=>!_0x215782['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x215782)),_0x5c99d0['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x5c99d0['model']['document']['on']('change:data',(_0x579d48,_0x1ff22e)=>{if(!_0x1ff22e['isLocal']||_0x1ff22e['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0xb23cd4=_0x5c99d0['model']['document']['differ']['getChanges']();if(0x0==_0xb23cd4['length'])return;const _0x2c50e3=[],_0x19eae0=_0xb23cd4['filter'](_0x4f7bc3=>'attribute'==_0x4f7bc3['type']),_0x5160d3=_0xb23cd4['filter'](_0x26ab1d=>'insert'==_0x26ab1d['type']&&'$text'!=_0x26ab1d['name']);for(const _0x23153e of _0x19eae0)this['_isRegisteredAttribute'](_0x23153e['attributeKey'])&&_0x2c50e3['push']({'key':_0x23153e['attributeKey'],'newValue':_0x23153e['attributeNewValue'],'oldValue':_0x23153e['attributeOldValue'],'range':Jt(_0x23153e['range'],_0x5c99d0['model'])});for(const _0x5da305 of _0x5160d3){if('rename'!=_0x5da305['action']&&'refresh'!=_0x5da305['action'])continue;const _0x489cfe=Kt(_0x5da305['position']['nodeAfter'],_0x5c99d0['model']),_0x1fbb6a=_0x5da305['before'];'rename'==_0x5da305['action']&&_0x2c50e3['push']({'key':u,'newValue':_0x5da305['name'],'oldValue':_0x1fbb6a['name'],'range':_0x489cfe});for(const [_0x53a9cc,_0x3a8c42]of _0x1fbb6a['attributes']){if(!this['_isRegisteredAttribute'](_0x53a9cc))continue;const _0x5ab66d=_0x5da305['attributes']['get'](_0x53a9cc);_0x3a8c42!==_0x5ab66d&&_0x2c50e3['push']({'key':_0x53a9cc,'newValue':_0x5ab66d,'oldValue':_0x3a8c42,'range':_0x489cfe});}for(const [_0x822899,_0x3c6cca]of _0x5da305['attributes'])this['_isRegisteredAttribute'](_0x822899)&&(_0x1fbb6a['attributes']['has'](_0x822899)||_0x2c50e3['push']({'key':_0x822899,'newValue':_0x3c6cca,'oldValue':null,'range':_0x489cfe}));}0x0!=_0x2c50e3['length']&&_0x5c99d0['model']['enqueueChange'](_0x1ff22e,_0x1e5463=>{const _0x3fd6d7=_0x18c716();for(const {range:_0x475041,key:_0x4a5b51,oldValue:_0x3add74,newValue:_0x247f03}of _0x2c50e3)this['markAttributeChange'](_0x475041,_0x4a5b51,_0x3add74,_0x247f03,{'groupId':_0x3fd6d7});this['_reduceExistingSuggestions'](_0x1e5463,_0x2c50e3);});},{'priority':'lowest'}),_0x5c99d0['model']['markers']['on']('update:suggestion',(_0x2c0f75,_0x3d3496,_0x47b7f1)=>{if(null==_0x47b7f1){const {id:_0x52e48e}=this['_splitMarkerName'](_0x3d3496['name']),_0x4b22a4=this['_suggestions']['get'](_0x52e48e);_0x4b22a4&&_0x4b22a4['addMarkerName'](_0x3d3496['name']);}}),_0x5c99d0['model']['document']['on']('change:data',()=>{const _0xdb27a9=Array['from'](_0x5c99d0['model']['document']['differ']['getChangedMarkers']())['filter'](_0x3b5a80=>'suggestion'===this['_splitMarkerName'](_0x3b5a80['name'])['group']);if(0x0===_0xdb27a9['length'])return;_0xdb27a9['sort']((_0x55eb97,_0x1f4445)=>{const _0x339996=_0x55eb97['data']['oldRange'],_0x47b258=_0x1f4445['data']['oldRange'];return null===_0x339996&&null===_0x47b258?0x0:null===_0x339996&&null!==_0x47b258?-0x1:null!==_0x339996&&null===_0x47b258?0x1:_0x339996['start']['isBefore'](_0x47b258['start'])?-0x1:0x1;});const _0x5c97b3=new Set(),_0x3338d7=new Set();for(const {name:_0x140c19,data:_0xf9f381}of _0xdb27a9){const {id:_0x4fc9e8}=this['_splitMarkerName'](_0x140c19);if(null===_0xf9f381['oldRange']){const _0x1bd4e7=this['_handleNewSuggestionMarker'](_0x140c19);_0x3338d7['add'](_0x1bd4e7);}else{const _0x28d9ee=this['_suggestions']['get'](_0x4fc9e8);null!==_0xf9f381['newRange']||_0x28d9ee['isInContent']?(_0x5c97b3['add'](_0x28d9ee['head']),_0x3338d7['add'](_0x28d9ee)):this['_removeSuggestion'](_0x28d9ee);}}_0x3338d7['size']>0x0&&this['_refreshSuggestionsChain'](_0x3338d7);for(const _0x59ca41 of _0x5c97b3)this['fire']('suggestionChanged',_0x59ca41);}),_0x5c99d0['model']['on']('applyOperation',(_0x130a4f,_0x3b46ca)=>{const _0x4559cb=_0x3b46ca[0x0];if(!this['_suggestions']['size'])return;if(!_0x4559cb['isDocumentOperation'])return;if(_0x4559cb['batch']['isUndo']||!_0x4559cb['batch']['isLocal'])return;let _0x170442,_0x2066c2;switch(_0x4559cb['type']){case'insert':_0x170442=_0x5c99d0['model']['createPositionAt'](_0x4559cb['position']),_0x2066c2=_0x170442['getShiftedBy'](_0x4559cb['howMany']);break;case'split':_0x170442=_0x5c99d0['model']['createPositionAt'](_0x4559cb['splitPosition']),_0x2066c2=_0x5c99d0['model']['createPositionAt'](_0x4559cb['moveTargetPosition']);break;case'move':_0x170442=_0x5c99d0['model']['createPositionAt'](_0x4559cb['targetPosition']),_0x2066c2=_0x170442['getShiftedBy'](_0x4559cb['howMany']);break;default:return;}const _0x4f5242=_0x5c99d0['model']['createRange'](_0x170442,_0x2066c2);_0x5c99d0['model']['change'](()=>{for(const {suggestion:_0x2ae756,meta:_0x4a721a}of this['_findSuggestions'](_0x4f5242)){if(_0x2ae756['isMultiRange'])continue;if('formatInline'==_0x2ae756['type'])continue;const _0x14fed0=this['_getAttributeKey'](_0x2ae756);if(_0x14fed0&&this['_isBlockAttribute'](_0x14fed0)&&'split'!=_0x4559cb['type'])continue;const _0x1af78a=_0x2ae756['data']&&_0x2ae756['data']['multipleBlocks'];('formatBlock'!=_0x2ae756['type']||'split'==_0x4559cb['type']&&!_0x1af78a)&&(_0x4a721a['containsRangeInObject']||'insertion'==_0x2ae756['type']&&_0x4a721a['isOwn']||_0x2ae756['getFirstRange']()['containsRange'](_0x4f5242)&&this['_breakSuggestionMarker'](_0x2ae756,_0x170442,_0x2066c2));}});},{'priority':'lowest'}),_0x5c99d0['model']['on']('deleteContent',(_0x37f6ca,_0x355f73)=>{const _0x4c37b5=_0x355f73[0x0],_0x352700=_0x355f73[0x1];if(_0x352700&&_0x352700['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4c37b5['isCollapsed'])return;const _0x2e9223=_0x5c99d0['model']['schema'],{start:_0x3993c0,end:_0x4161ef}=_0x4c37b5['getFirstRange'](),_0x4bedf2=_0x3993c0['nodeAfter']&&_0x2e9223['isLimit'](_0x3993c0['nodeAfter'])?null:_0x2e9223['getNearestSelectionRange'](_0x3993c0,'forward'),_0x2f540c=_0x4161ef['nodeBefore']&&_0x2e9223['isLimit'](_0x4161ef['nodeBefore'])?null:_0x2e9223['getNearestSelectionRange'](_0x4161ef,'backward'),_0x2f298c=_0x5c99d0['model']['createRange'](_0x4bedf2?_0x4bedf2['start']:_0x3993c0,_0x2f540c?_0x2f540c['end']:_0x4161ef);_0x5c99d0['model']['change'](_0x3a62d6=>{this['markDeletion'](_0x2f298c);const _0x1262ff=_0x5c99d0['model']['schema']['getNearestSelectionRange'](_0x2f298c['start']);_0x4c37b5['is']('documentSelection')?_0x3a62d6['setSelection'](_0x1262ff):_0x4c37b5['setTo'](_0x1262ff);}),_0x37f6ca['stop']();},{'priority':_0x74c243['normal']+0xa}),_0x5c99d0['model']['on']('insertContent',(_0x58f21f,_0x512728)=>{const _0x2154aa=_0x512728[_0x512728['length']-0x1];_0x2154aa&&_0x2154aa['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x5c99d0['model']['change'](()=>{let _0x1eb7ec=_0x5c99d0['model']['insertContent'](_0x512728[0x0],_0x512728[0x1],_0x512728[0x2],{'forceDefaultExecution':!0x0});if(!_0x1eb7ec)return;_0x58f21f['return']=_0x1eb7ec['clone']();const _0x20445a=_0x1eb7ec['end']['nodeBefore'],_0x187fa1=_0x5c99d0['model']['schema'];_0x20445a&&_0x187fa1['isBlock'](_0x20445a)&&!_0x187fa1['isObject'](_0x20445a)&&(_0x1eb7ec=_0x5c99d0['model']['createRange'](_0x1eb7ec['start'],_0x5c99d0['model']['createPositionAt'](_0x20445a,'end'))),this['markInsertion'](_0x1eb7ec);}),_0x58f21f['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x44c299=new O(_0x5c99d0,this['_suggestions']);_0x5c99d0['commands']['add']('acceptSuggestion',_0x44c299),this['enableCommand']('acceptSuggestion');const _0x16850f=new R(_0x5c99d0,this['_suggestions']);_0x5c99d0['commands']['add']('discardSuggestion',_0x16850f),this['enableCommand']('discardSuggestion'),_0x5c99d0['commands']['add']('acceptAllSuggestions',new x(_0x5c99d0,_0x44c299,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x5c99d0['commands']['add']('discardAllSuggestions',new x(_0x5c99d0,_0x16850f,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x5c99d0['commands']['add']('acceptSelectedSuggestions',new E(_0x5c99d0,_0x44c299,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x5c99d0['commands']['add']('discardSelectedSuggestions',new E(_0x5c99d0,_0x16850f,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x5a20f2=_0x5c99d0['plugins']['get']('CommentsRepository');this['listenTo'](_0x5a20f2,'addComment',(_0x56b461,{threadId:_0x4c3208})=>{const _0x52e20b=this['_suggestions']['get'](_0x4c3208);_0x52e20b&&_0x52e20b['commentThread']&&0x1===_0x52e20b['commentThread']['length']&&this['_updateSuggestionData'](_0x4c3208,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x5a20f2,'removeComment',(_0x3187c7,{threadId:_0x3bbca0})=>{const _0x1541d7=this['_suggestions']['get'](_0x3bbca0);_0x1541d7&&_0x1541d7['commentThread']&&!_0x1541d7['commentThread']['length']&&this['_updateSuggestionData'](_0x3bbca0,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x5261fb){const _0x23f997=_0x319485([0x4c,0x7a,0x62,0x6f,0x74,0x71,0x61,0x50,0x6d,0x75,0x69,0x6b,0x35,0x51,0x57,0x47,0x70,0x46,0x37,0x41,0x77,0x31,0x42,0x64,0x4b,0x76,0x36,0x54,0x73,0x48,0x33,0x67,0x49,0x6c,0x6a,0x66,0x78,0x4a,0x65,0x55,0x44,0x5a,0x58,0x53,0x39,0x4d,0x4f,0x52,0x6e,0x45,0x34,0x63,0x4e,0x43,0x30,0x59,0x68,0x79,0x56,0x38,0x72,0x32]),_0x385003=0x4cbd11,_0x2309a1=0x4be2d1^_0x385003,_0x55d857=window[_0x319485([0x44,0x61,0x74,0x65])][_0x319485([0x6e,0x6f,0x77])](),_0x2f38e8=_0x5261fb[_0x319485([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x27e4fb=new window[(_0x319485([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x101c4c=>{_0x2f38e8[_0x319485([0x6f,0x6e,0x63,0x65])](_0x319485([0x72,0x65,0x61,0x64,0x79]),_0x101c4c);}),_0x2b60b9={[_0x319485([0x6b,0x74,0x79])]:_0x319485([0x45,0x43]),[_0x319485([0x75,0x73,0x65])]:_0x319485([0x73,0x69,0x67]),[_0x319485([0x63,0x72,0x76])]:_0x319485([0x50,0x2d,0x32,0x35,0x36]),[_0x319485([0x78])]:_0x319485([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]),[_0x319485([0x79])]:_0x319485([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]),[_0x319485([0x61,0x6c,0x67])]:_0x319485([0x45,0x53,0x32,0x35,0x36])},_0x16f303=_0x2f38e8[_0x319485([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x319485([0x67,0x65,0x74])](_0x319485([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5af653(){let _0x34974f,_0x21fead=null,_0x337c1d=null;try{if(_0x16f303==_0x319485([0x47,0x50,0x4c]))return _0x319485([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x34974f=_0x261392(),!_0x34974f)return _0x319485([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x34974f[_0x319485([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x337c1d=_0x39602e(_0x34974f[_0x319485([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x34974f[_0x319485([0x6a,0x74,0x69])])),await _0x11da2b()?_0x319b1a()?_0x484485()?_0x319485([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3e39e2()?(_0x34974f[_0x319485([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x319485([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x21fead=_0x3e2c7d(_0x319485([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x34974f[_0x319485([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x319485([0x74,0x72,0x69,0x61,0x6c])&&(_0x21fead=_0x3e2c7d(_0x319485([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x20c380()):_0x319485([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x319485([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x319485([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x553b68){return _0x319485([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x484485(){const _0x2c558c=[_0x319485([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x319485([0x74,0x72,0x69,0x61,0x6c])][_0x319485([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34974f[_0x319485([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x55d857/0x3e8:0xe10*_0x2309a1;return _0x34974f[_0x319485([0x65,0x78,0x70])]<_0x2c558c;}function _0x319b1a(){const _0x46ed60=_0x34974f[_0x319485([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x46ed60)return!0x1;if(_0x46ed60[_0x319485([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x319485([0x2a])))return!0x0;if(_0x46ed60[_0x319485([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x319485([0x54,0x43])))return!0x0;if(_0x46ed60[_0x319485([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x319485([0x52,0x54,0x43]))){if(_0x211db5())return!0x0;if(_0x1abd71()||_0x22875d())return!0x0;}return!0x1;}function _0x3e39e2(){const _0x5a427e=_0x34974f[_0x319485([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5a427e||0x0==_0x5a427e[_0x319485([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5e337a}=new URL(window[_0x319485([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5a427e[_0x319485([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e337a))return!0x0;const _0xe96d65=_0x5e337a[_0x319485([0x73,0x70,0x6c,0x69,0x74])](_0x319485([0x2e]));return _0x5a427e[_0x319485([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x10150e=>_0x10150e[_0x319485([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x319485([0x2a])))[_0x319485([0x6d,0x61,0x70])](_0x39485b=>_0x39485b[_0x319485([0x73,0x70,0x6c,0x69,0x74])](_0x319485([0x2e])))[_0x319485([0x73,0x6f,0x6d,0x65])](_0x787649=>_0xe96d65[_0x319485([0x65,0x76,0x65,0x72,0x79])]((_0x145643,_0x518b6b)=>_0x787649[_0x518b6b]===_0x145643||_0x787649[_0x518b6b]===_0x319485([0x2a])));}function _0x20c380(){return _0x21fead&&_0x337c1d?new window[(_0x319485([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5ce9ee,_0x52ba5e)=>{_0x21fead[_0x319485([0x74,0x68,0x65,0x6e])](_0x5ce9ee,_0x52ba5e),_0x337c1d[_0x319485([0x74,0x68,0x65,0x6e])](_0x7ba733=>{_0x7ba733!=_0x319485([0x56,0x61,0x6c,0x69,0x64])&&_0x5ce9ee(_0x7ba733);},_0x52ba5e);}):_0x21fead||_0x337c1d||_0x319485([0x56,0x61,0x6c,0x69,0x64]);}}function _0x39602e(_0x4bfc39,_0x110bcc){return new window[(_0x319485([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x416580=>{if(_0x376205())return _0x416580(_0x319485([0x56,0x61,0x6c,0x69,0x64]));_0x5823d9(),_0x2f38e8[_0x319485([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x319485([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2bb8fe=!0x1;const _0x443c0c=_0x18c716();function _0x183be1(_0x550e7f){return!!_0x550e7f&&(typeof _0x550e7f===_0x319485([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x550e7f===_0x319485([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x550e7f[_0x319485([0x74,0x68,0x65,0x6e])]===_0x319485([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x550e7f[_0x319485([0x63,0x61,0x74,0x63,0x68])]===_0x319485([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4825c4(_0x5c2d18){_0x2b333b(_0x5c2d18)[_0x319485([0x74,0x68,0x65,0x6e])](_0x487dfb=>{if(!_0x487dfb||_0x487dfb[_0x319485([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x319485([0x6f,0x6b]))return _0x319485([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4f1c19(_0x4437ab(_0x443c0c+_0x110bcc))!=_0x487dfb[_0x319485([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x319485([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x319485([0x56,0x61,0x6c,0x69,0x64]);})[_0x319485([0x74,0x68,0x65,0x6e])](_0x30ee09=>(_0x13dabb(),_0x30ee09),()=>{const _0xeb38df=_0x21fba4();return null==_0xeb38df?(_0x13dabb(),_0x319485([0x56,0x61,0x6c,0x69,0x64])):_0x319485(_0x55d857-_0xeb38df>(0x24403911^_0x385003)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x319485([0x74,0x68,0x65,0x6e])](_0x416580)[_0x319485([0x63,0x61,0x74,0x63,0x68])](()=>{_0x416580(_0x319485([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x30f6f2=0x7a5391^_0x385003;function _0x13dabb(){const _0x2a43a5=_0x319485([0x6c,0x6c,0x63,0x74,0x2d])+_0x4f1c19(_0x4437ab(_0x4bfc39)),_0x3a2157=_0x3e080d(_0x4f1c19(window[_0x319485([0x4d,0x61,0x74,0x68])][_0x319485([0x63,0x65,0x69,0x6c])](_0x55d857/_0x30f6f2)));window[_0x319485([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x319485([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2a43a5,_0x3a2157);}function _0x21fba4(){const _0x44eb3b=_0x319485([0x6c,0x6c,0x63,0x74,0x2d])+_0x4f1c19(_0x4437ab(_0x4bfc39)),_0x360e2f=window[_0x319485([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x319485([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x44eb3b);return _0x360e2f?window[_0x319485([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e080d(_0x360e2f),0x10)*_0x30f6f2:null;}function _0x2b333b(_0x1a906a){return new window[(_0x319485([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1011f3,_0x3259eb)=>{_0x1a906a[_0x319485([0x74,0x68,0x65,0x6e])](_0x1011f3,_0x3259eb),window[_0x319485([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3259eb,0x4d69d1^_0x385003);});}}_0x2f38e8[_0x319485([0x6f,0x6e])](_0x319485([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3a36bc,_0x553a0a)=>{if(_0x553a0a[0x0]!=_0x4bfc39)return _0x416580(_0x319485([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x553a0a[0x1]={..._0x553a0a[0x1],[_0x319485([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x443c0c};},{[_0x319485([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x319485([0x68,0x69,0x67,0x68])}),_0x2f38e8[_0x319485([0x6f,0x6e])](_0x319485([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3c3b74=>{_0x183be1(_0x3c3b74[_0x319485([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2bb8fe=!0x0,_0x4825c4(_0x3c3b74[_0x319485([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x319485([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x319485([0x6c,0x6f,0x77])}),_0x27e4fb[_0x319485([0x74,0x68,0x65,0x6e])](()=>{_0x2bb8fe||_0x416580(_0x319485([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x376205(){return _0x2f38e8[_0x319485([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x319485([0x76,0x69,0x65,0x77])][_0x319485([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x319485([0x61,0x75,0x74,0x6f]);}function _0x5823d9(){_0x2f38e8[_0x319485([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x319485([0x76,0x69,0x65,0x77])][_0x319485([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x319485([0x61,0x75,0x74,0x6f]);}}function _0x3e2c7d(_0x58745e){const _0x281b4c=[new window[(_0x319485([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x862e5b=>setTimeout(_0x862e5b,0x4583dd^_0x385003)),_0x27e4fb[_0x319485([0x74,0x68,0x65,0x6e])](()=>new window[(_0x319485([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x23d839=>{let _0x24bc80=0x0;_0x2f38e8[_0x319485([0x6d,0x6f,0x64,0x65,0x6c])][_0x319485([0x6f,0x6e])](_0x319485([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4fcf03,_0x3d9467)=>{_0x3d9467[0x0][_0x319485([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x24bc80++,_0x24bc80==(0x4cbce9^_0x385003)&&(_0x23d839(),_0x4fcf03[_0x319485([0x6f,0x66,0x66])]());});}))];return window[_0x319485([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x319485([0x72,0x61,0x63,0x65])](_0x281b4c)[_0x319485([0x74,0x68,0x65,0x6e])](()=>_0x58745e);}async function _0x2e77e1(){await _0x27e4fb,_0x2f38e8[_0x319485([0x6d,0x6f,0x64,0x65,0x6c])][_0x319485([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xc95c92,_0x2f38e8[_0x319485([0x6d,0x6f,0x64,0x65,0x6c])][_0x319485([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xc95c92,_0x2f38e8[_0x319485([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x319485([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x211db5(){return _0x3712c4(_0x319485([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x536c3c(_0x319485([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x319485([0x73,0x74,0x61,0x74,0x65])]==_0x319485([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1abd71(){return _0x3712c4(_0x319485([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 _0x22875d(){return _0x3712c4(_0x319485([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xa47309(_0x507c09){const _0x1de8d3=_0x2a09dd();_0x2f38e8[_0x1de8d3]=_0x319485([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x507c09,_0x507c09!=_0x319485([0x56,0x61,0x6c,0x69,0x64])&&_0x2e77e1();}function _0x2a09dd(){const _0x29e26a=window[_0x319485([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x319485([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x319485([0x6e,0x6f,0x77])]())[_0x319485([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x319485([0x2e]),'');let _0x157b97=_0x319485([0x4c]);for(let _0x79d6e8=0x0;_0x79d6e8<_0x29e26a[_0x319485([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x79d6e8+=0x2){let _0x201d6e=window[_0x319485([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x29e26a[_0x319485([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x79d6e8,_0x79d6e8+0x2));_0x201d6e>=_0x23f997[_0x319485([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x201d6e-=_0x23f997[_0x319485([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x157b97+=_0x23f997[_0x201d6e];}return _0x157b97;}function _0x261392(){const _0x35ce87=_0x16f303[_0x319485([0x73,0x70,0x6c,0x69,0x74])](_0x319485([0x2e]));if(0x3!=_0x35ce87[_0x319485([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x13ad16(_0x35ce87[0x1]);function _0x13ad16(_0x4946e9){const _0x48ce80=_0x47ecbb(_0x4946e9);return _0x48ce80&&_0x4b7b99()?_0x48ce80:null;function _0x4b7b99(){const _0x44717b=_0x48ce80[_0x319485([0x6a,0x74,0x69])],_0x1229ad=window[_0x319485([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x44717b[_0x319485([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x44717b[_0x319485([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x23bf4a={..._0x48ce80,[_0x319485([0x6a,0x74,0x69])]:_0x44717b[_0x319485([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x44717b[_0x319485([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x23bf4a[_0x319485([0x76,0x63])],_0x4437ab(_0x23bf4a)==_0x1229ad;}}}async function _0x11da2b(){let _0x3ce9b1=!0x0;try{const _0x15d36a=_0x16f303[_0x319485([0x73,0x70,0x6c,0x69,0x74])](_0x319485([0x2e])),[_0x27eb27,_0x1e5848,_0xb5a0c]=_0x15d36a;return _0x3bffab(_0x27eb27),await _0x145522(_0x27eb27,_0x1e5848,_0xb5a0c),_0x3ce9b1;}catch(_0x108707){return!0x1;}function _0x3bffab(_0x426c33){const _0x134d6f=_0x47ecbb(_0x426c33);_0x134d6f&&_0x134d6f[_0x319485([0x61,0x6c,0x67])]==_0x319485([0x45,0x53,0x32,0x35,0x36])||(_0x3ce9b1=!0x1);}async function _0x145522(_0x12686e,_0x294471,_0x3b49d4){const _0x58537c=window[_0x319485([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x319485([0x66,0x72,0x6f,0x6d])](_0x2bc11e(_0x3b49d4),_0x519bf7=>_0x519bf7[_0x319485([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4cafeb=new window[(_0x319485([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x319485([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x12686e+_0x319485([0x2e])+_0x294471),_0x6c3cc5=window[_0x319485([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x319485([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x6c3cc5)return;const _0x5abacb=await _0x6c3cc5[_0x319485([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x319485([0x6a,0x77,0x6b]),_0x2b60b9,{[_0x319485([0x6e,0x61,0x6d,0x65])]:_0x319485([0x45,0x43,0x44,0x53,0x41]),[_0x319485([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x319485([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x319485([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x6c3cc5[_0x319485([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x319485([0x6e,0x61,0x6d,0x65])]:_0x319485([0x45,0x43,0x44,0x53,0x41]),[_0x319485([0x68,0x61,0x73,0x68])]:{[_0x319485([0x6e,0x61,0x6d,0x65])]:_0x319485([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5abacb,_0x58537c,_0x4cafeb)||(_0x3ce9b1=!0x1);}}function _0x47ecbb(_0x496791){return _0x496791[_0x319485([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x319485([0x65,0x79]))?JSON[_0x319485([0x70,0x61,0x72,0x73,0x65])](_0x2bc11e(_0x496791)):null;}function _0x2bc11e(_0x4de727){return window[_0x319485([0x61,0x74,0x6f,0x62])](_0x4de727[_0x319485([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x319485([0x2b]))[_0x319485([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x319485([0x2f])));}function _0x4437ab(_0x168167){let _0x30f845=0x1505;function _0xde0076(_0x9a729e){for(let _0xec9c=0x0;_0xec9c<_0x9a729e[_0x319485([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xec9c++){const _0x247e9d=_0x9a729e[_0x319485([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xec9c);_0x30f845=(_0x30f845<<0x5)+_0x30f845+_0x247e9d,_0x30f845&=_0x30f845;}}function _0x2c0404(_0x42d161){Array[_0x319485([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x42d161)?_0x42d161[_0x319485([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2c0404):_0x42d161&&typeof _0x42d161==_0x319485([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x319485([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x42d161)[_0x319485([0x73,0x6f,0x72,0x74])]()[_0x319485([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x43219f,_0x4aed58])=>{_0xde0076(_0x43219f),_0x2c0404(_0x4aed58);}):_0xde0076(window[_0x319485([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x42d161));}return _0x2c0404(_0x168167),_0x30f845>>>0x0;}function _0x4f1c19(_0xf039dd){return _0xf039dd[_0x319485([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x319485([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x319485([0x30]));}function _0x3e080d(_0x202b81){return _0x202b81[_0x319485([0x73,0x70,0x6c,0x69,0x74])]('')[_0x319485([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x319485([0x6a,0x6f,0x69,0x6e])]('');}function _0x3712c4(_0x390b49){return _0x2f38e8[_0x319485([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x319485([0x68,0x61,0x73])](_0x390b49);}function _0x536c3c(_0x2f241a){return _0x2f38e8[_0x319485([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x319485([0x67,0x65,0x74])](_0x2f241a);}function _0xc95c92(){}function _0x319485(_0x2de223){return _0x2de223['map'](_0x360adf=>String['fromCharCode'](_0x360adf))['join']('');}_0xa47309(await _0x5af653());}(this);}set['adapter'](_0x3525c2){if(this['_adapter'])throw new _0x2b6413('track-changes-adapter-already-set',this);this['_adapter']=_0x3525c2;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1d45e2=!0x1,toJSON:_0x285435=!0x1}={}){const _0x37f79c=[];for(const _0x8656d3 of this['_suggestions']['values']())_0x1d45e2&&!_0x8656d3['isInContent']||_0x37f79c['push'](_0x8656d3);return _0x285435?_0x37f79c['map'](_0x5db1de=>_0x5db1de['toJSON']()):_0x37f79c;}['getSuggestion'](_0x482033){const _0x50b335=this['_suggestions']['get'](_0x482033);if(!_0x50b335)throw new _0x2b6413('track-changes-suggestion-not-found',this);return _0x50b335;}['hasSuggestion'](_0x5f1037){return this['_suggestions']['has'](_0x5f1037);}['addSuggestionData'](_0x1d3448){const {authorId:_0x1de314,id:_0x52ca92,attributes:_0x484b5e}=_0x1d3448,[_0x420bd9,_0x38469e]=_0x1d3448['type']['split'](':'),_0x593b2a=this['_suggestions']['get'](_0x52ca92)||this['_createSuggestion'](_0x420bd9,_0x38469e,_0x52ca92,_0x1de314,_0x484b5e);if(this['_addThreadToSuggestion'](_0x593b2a),this['_checkSuggestionCorrectness'](_0x593b2a,_0x420bd9,_0x38469e||null,_0x1de314),_0x593b2a['createdAt']=_0x1d3448['createdAt'],_0x593b2a['_isDataLoaded']=!0x0,_0x484b5e&&_0x484b5e['@external']){const _0x20af3e=_0x484b5e['@external'],_0x98e95e=this['_getExternalAuthor'](_0x20af3e['authorName']);_0x593b2a['authoredAt']=_0x20af3e['createdAt'],_0x593b2a['author']=_0x98e95e,_0x593b2a['isExternal']=!0x0;}else _0x593b2a['authoredAt']=_0x1d3448['createdAt'];switch(_0x1d3448['data']&&(_0x593b2a['data']=_0x1d3448['data']),_0x1d3448['attributes']&&(_0x593b2a['attributes']=_0x1d3448['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x593b2a['_saved']=!0x0),this['_suggestionState']['get'](_0x593b2a)){case'notReady':this['_suggestionState']['set'](_0x593b2a,'dataReady');break;case'markerReady':_0x593b2a['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x593b2a])),this['_refreshSuggestionsChain'](new Set([_0x593b2a])),this['_suggestionState']['set'](_0x593b2a,'ready'),this['fire']('suggestionLoaded',_0x593b2a)):this['_suggestionState']['set'](_0x593b2a,'removed');}return _0x593b2a;}['acceptSuggestion'](_0x29d035){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x358f8d of _0x29d035['getAllAdjacentSuggestions']())_0x358f8d['accept']();});});}['discardSuggestion'](_0xe23418){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x19de48 of _0xe23418['getAllAdjacentSuggestions']())_0x19de48['discard']();});});}['enableCommand'](_0x558201,_0x5ad5c4){const _0x5d7bd6=this['editor']['commands']['get'](_0x558201);if(!_0x5d7bd6)throw new _0x2b6413('track-changes-command-not-found',this,{'commandName':_0x558201});if(this['_enabledCommands']['has'](_0x5d7bd6))throw new _0x2b6413('track-changes-enable-command-twice',this,{'commandName':_0x558201});this['_enabledCommands']['add'](_0x5d7bd6),_0x5ad5c4&&_0x5d7bd6['on']('execute',(_0x2d5d68,_0x529c44)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x529c44['length']>0x0&&_0x529c44[_0x529c44['length']-0x1]&&_0x529c44[_0x529c44['length']-0x1]['forceDefaultExecution']?_0x529c44['pop']():(_0x2d5d68['return']=_0x5ad5c4((..._0x42c793)=>_0x5d7bd6['execute'](..._0x42c793,{'forceDefaultExecution':!0x0}),..._0x529c44),_0x2d5d68['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0xbd51da){let _0x22474d,_0x31c117;const _0x32b2cf=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x22474d=_0xbd51da();}catch(_0x1f89ce){_0x31c117=_0x1f89ce;}return _0x32b2cf||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x31c117&&_0x2b6413['rethrowUnexpectedError'](_0x31c117,this),_0x22474d;}['markInsertion'](_0x2f2a0e,_0x381212=null,_0x446b3d={}){if(_0x2f2a0e['isCollapsed'])return null;const _0x109cb2=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x1fdca0,meta:_0x57ba1a}of this['_findSuggestions'](_0x2f2a0e,'insertion'))if(_0x57ba1a['isOwn']){if(!_0x57ba1a['isNextTo']){if(_0x57ba1a['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0x1fdca0,_0x446b3d))continue;return _0x1fdca0;}if(zt(_0x1fdca0,_0x446b3d))return _0x1fdca0;this['_breakSuggestionMarker'](_0x1fdca0,_0x2f2a0e['start'],_0x2f2a0e['end']);break;}if(_0x381212==_0x1fdca0['subType']&&zt(_0x1fdca0,_0x446b3d)){const _0x2f9810=_0x1fdca0['getFirstRange']();return _0x2f9810['start']['isEqual'](_0x2f2a0e['end'])?this['_setSuggestionRange'](_0x1fdca0,this['_model']['createRange'](_0x2f2a0e['start'],_0x2f9810['end'])):this['_setSuggestionRange'](_0x1fdca0,this['_model']['createRange'](_0x2f9810['start'],_0x2f2a0e['end'])),_0x1fdca0;}}const _0x3c68d7=_0x18c716(),_0x162954=_0x109cb2['id'],_0x116e01=_0x381212?'insertion:'+_0x381212:'insertion',_0x263ec5=this['_setSuggestionData']({'id':_0x3c68d7,'type':_0x116e01,'createdAt':new Date(),'authorId':_0x162954,'attributes':_0x446b3d});return this['_addSuggestionMarker'](_0x116e01,_0x3c68d7,_0x162954,_0x2f2a0e),_0x263ec5;}['markMultiRangeInsertion'](_0x613ab9,_0xb850ce='multi',_0x155d7a={}){const _0x3344f9=this['editor']['plugins']['get']('Users')['me'],_0x57b269=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xb850ce,'join');for(const _0xdb6f0a of this['getSuggestions']())if(_0xdb6f0a['author']['id']==_0x3344f9['id']&&'insertion'==_0xdb6f0a['type']&&_0xdb6f0a['subType']==_0xb850ce&&zt(_0xdb6f0a,_0x155d7a)&&(_0x57b269(_0xdb6f0a['getRanges'](),_0x613ab9)||_0x57b269(_0x613ab9,_0xdb6f0a['getRanges']()))){for(const _0x20d51c of _0x613ab9)_0xdb6f0a['addRange'](_0x20d51c);return _0xdb6f0a;}for(const {suggestion:_0xdf4db5,meta:_0x544970}of this['_findSuggestions'](_0x613ab9,'insertion')){if(!_0x544970['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x544970['containsRangeInObject'])continue;if(!zt(_0xdf4db5,_0x155d7a))continue;let _0x7fbc91=!0x0;for(const _0x51b5a7 of _0xdf4db5['getRanges']())for(const _0x4902bc of _0x613ab9)if(!_0x51b5a7['containsRange'](_0x4902bc)){_0x7fbc91=!0x1;break;}if(_0x7fbc91)return _0xdf4db5;}const _0x3f236b=_0x18c716(),_0x28326b=_0x3344f9['id'],_0x170349='insertion:'+_0xb850ce,_0x36d4a6=this['_setSuggestionData']({'id':_0x3f236b,'type':_0x170349,'createdAt':new Date(),'authorId':_0x28326b,'attributes':_0x155d7a});for(const _0x472877 of _0x613ab9)this['_addSuggestionMarker'](_0x170349,_0x3f236b,_0x28326b,_0x472877,o['getMultiRangeId']());return _0x36d4a6;}['markInlineFormat'](_0x384443,_0x5a97cd,_0x367b33=null,_0x3c3c85={}){if(_0x367b33=_0x367b33||Gt(_0x5a97cd),_0x384443['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0xfae9cd=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x367b33,'accept');return this['forceDefaultExecution'](()=>_0xfae9cd([_0x384443],_0x5a97cd,_0x3c3c85)),null;}const _0x2b4e67=this['editor']['plugins']['get']('Users')['me'],_0x40e448=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x1ba616,meta:_0x59d6d9}of this['_findSuggestions'](_0x384443,'insertion'))_0x59d6d9['isOwn']&&!_0x59d6d9['isInsideObject']&&_0x40e448['push'](..._0x1ba616['getRanges']());}const _0x2426d5=function(_0x491a41,_0x3d1e92){const _0x2fe8db=[];for(const _0x573eae of _0x3d1e92){const _0x4c7c66=_0x491a41['getIntersection'](_0x573eae);_0x4c7c66&&_0x2fe8db['push'](_0x4c7c66);}return _0x2fe8db;}(_0x384443,_0x40e448),_0x43a454=function(_0x3a31a0,_0x5f1f4b){const _0x59c010=[_0x3a31a0];for(const _0x2c7482 of _0x5f1f4b){let _0x3efd7c=0x0;for(;_0x3efd7c<_0x59c010['length'];){const _0xda04ac=_0x59c010[_0x3efd7c]['getDifference'](_0x2c7482);_0x59c010['splice'](_0x3efd7c,0x1,..._0xda04ac),_0x3efd7c+=_0xda04ac['length'];}}return _0x59c010;}(_0x384443,_0x40e448);_0x2426d5['length']&&this['_model']['change'](()=>{for(const _0x1fdf4a of _0x2426d5){const _0x4c6db7=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x367b33,'accept');this['forceDefaultExecution'](()=>_0x4c6db7([_0x1fdf4a],_0x5a97cd,_0x3c3c85));}});for(const _0x550f77 of _0x43a454){let _0x4f3a73=null,_0x29eed5=_0x550f77['start'],_0x2decbc=_0x550f77['end'];for(const {suggestion:_0x1c9a9e,meta:_0x5bb900}of this['_findSuggestions'](_0x550f77,'formatInline')){if(!_0x5bb900['isOwn'])continue;if(_0x1c9a9e['subType']!=_0x367b33)continue;if(!zt(_0x1c9a9e,_0x3c3c85))continue;const _0x30d31b=_0x1c9a9e['getFirstRange']();if(_0x30d31b['containsRange'](_0x550f77,!0x0))return null;_0x29eed5=_0x29eed5['isBefore'](_0x30d31b['start'])?_0x29eed5:_0x30d31b['start'],_0x2decbc=_0x2decbc['isAfter'](_0x30d31b['end'])?_0x2decbc:_0x30d31b['end'],_0x4f3a73?_0x30d31b['start']['isBefore'](_0x4f3a73['getFirstRange']()['start'])?(_0x4f3a73['removeMarkers'](),_0x4f3a73=_0x1c9a9e):_0x1c9a9e['removeMarkers']():_0x4f3a73=_0x1c9a9e;}const _0x375b91=this['_model']['createRange'](_0x29eed5,_0x2decbc);if(_0x4f3a73)this['_setSuggestionRange'](_0x4f3a73,_0x375b91);else{const _0x393ffa=_0x18c716(),_0x1fc1b9=_0x2b4e67['id'];this['_setSuggestionData']({'id':_0x393ffa,'type':'formatInline:'+_0x367b33,'data':_0x5a97cd,'createdAt':new Date(),'authorId':_0x1fc1b9,'attributes':_0x3c3c85}),this['_addSuggestionMarker']('formatInline:'+_0x367b33,_0x393ffa,_0x1fc1b9,_0x375b91);}}return null;}['markBlockFormat'](_0x11f862,_0x18b0d1,_0x495c13=[],_0x4ebe9c=null,_0x1d6341={}){_0x18b0d1['formatGroupId']||(_0x18b0d1['formatGroupId']=_0x18b0d1['commandName']),_0x18b0d1['multipleBlocks']=_0x11f862['is']('range'),_0x4ebe9c=_0x4ebe9c||Gt(_0x18b0d1);const _0x22bb60=_0x495c13['map'](_0xe867d8=>Kt(_0xe867d8,this['_model'])),_0x1d63ac=_0x11f862['is']('range')?_0x11f862:Kt(_0x11f862,this['_model']);if('never'===this['_trackFormatChanges']){const _0x2652cd=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4ebe9c,'accept');return this['forceDefaultExecution'](()=>_0x2652cd([_0x1d63ac],_0x18b0d1,_0x1d6341)),null;}_0x22bb60['push'](_0x1d63ac);let _0xc5b91f=!0x0;for(const _0x7ee7f0 of _0x22bb60)if(!this['_rangeIsInLocalUserInsertion'](_0x7ee7f0)){_0xc5b91f=!0x1;break;}if(_0xc5b91f&&'always'!==this['_trackFormatChanges']){const _0x548378=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4ebe9c,'accept');return this['forceDefaultExecution'](()=>_0x548378([_0x1d63ac],_0x18b0d1,_0x1d6341)),null;}let _0x44283e=null,_0x16938d=_0x1d63ac['start'],_0x4e2dab=_0x1d63ac['end'];for(const {suggestion:_0x4f9f93,meta:_0x28ca06}of this['_findSuggestions'](_0x1d63ac,'formatBlock')){if(!_0x28ca06['isOwn'])continue;if(_0x28ca06['isNextTo']||_0x28ca06['containsRangeInObject']||_0x28ca06['isInsideObject'])continue;if(_0x4f9f93['data']['formatGroupId']!=_0x18b0d1['formatGroupId'])continue;if(!zt(_0x4f9f93,_0x1d6341))continue;const _0x5e9d3c=_0x4f9f93['getFirstRange']();if(_0x4f9f93['subType']==_0x4ebe9c){if(_0x5e9d3c['containsRange'](_0x1d63ac,!0x0))return null;_0x16938d=_0x16938d['isBefore'](_0x5e9d3c['start'])?_0x16938d:_0x5e9d3c['start'],_0x4e2dab=_0x4e2dab['isAfter'](_0x5e9d3c['end'])?_0x4e2dab:_0x5e9d3c['end'],_0x44283e?_0x5e9d3c['start']['isBefore'](_0x44283e['getFirstRange']()['start'])?(_0x44283e['removeMarkers'](),_0x44283e=_0x4f9f93):_0x4f9f93['removeMarkers']():_0x44283e=_0x4f9f93;}else{const _0x41f852=_0x1d63ac['getIntersection'](_0x5e9d3c);this['_cutOutSuggestionMarker'](_0x4f9f93,_0x41f852);}}const _0x478feb=this['editor']['plugins']['get']('Users')['me'],_0x5a5fb3=_0x18c716(),_0x221b98=_0x478feb['id'];if(_0x44283e)return this['_setSuggestionRange'](_0x44283e,this['_model']['createRange'](_0x16938d,_0x4e2dab)),_0x44283e;{const _0x533a26=this['_setSuggestionData']({'id':_0x5a5fb3,'type':'formatBlock:'+_0x4ebe9c,'data':_0x18b0d1,'createdAt':new Date(),'authorId':_0x221b98,'attributes':_0x1d6341});return this['_addSuggestionMarker']('formatBlock:'+_0x4ebe9c,_0x5a5fb3,_0x221b98,this['_model']['createRange'](_0x16938d,_0x4e2dab)),_0x533a26;}}['markMultiRangeBlockFormat'](_0xd51d4f,_0x5ae5da,_0x33685e=[],_0x1ba881=null,_0x2921df={}){_0x5ae5da['formatGroupId']||(_0x5ae5da['formatGroupId']=_0x5ae5da['commandName']);const _0x10b836=_0xd51d4f[0x0];_0x5ae5da['multipleBlocks']=_0x10b836['is']('range'),_0x1ba881=_0x1ba881||Gt(_0x5ae5da);const _0x335597=_0x33685e['map'](_0x5b5e94=>Kt(_0x5b5e94,this['_model'])),_0x17ccd3=_0x10b836['is']('range')?_0xd51d4f:_0xd51d4f['map'](_0x405d59=>Kt(_0x405d59,this['_model']));if('never'===this['_trackFormatChanges']){const _0x19beec=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1ba881,'accept');return this['forceDefaultExecution'](()=>_0x19beec(_0x17ccd3,_0x5ae5da,_0x2921df)),null;}_0x335597['push'](..._0x17ccd3);let _0x57109c=!0x0;for(const _0xdc296c of _0x335597)if(!this['_rangeIsInLocalUserInsertion'](_0xdc296c)){_0x57109c=!0x1;break;}if(_0x57109c&&'always'!==this['_trackFormatChanges']){const _0x1fabe8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1ba881,'accept');return this['forceDefaultExecution'](()=>_0x1fabe8(_0x17ccd3,_0x5ae5da,_0x2921df)),null;}const _0x251adc=this['editor']['plugins']['get']('Users')['me'];for(const _0x245e6d of this['getSuggestions']()){if(_0x245e6d['author']['id']!=_0x251adc['id'])continue;if('formatBlock'!=_0x245e6d['type']||_0x245e6d['data']['formatGroupId']!=_0x5ae5da['formatGroupId'])continue;if(!zt(_0x245e6d,_0x2921df))continue;const _0x110697=_0x245e6d['subType']==_0x1ba881;for(let _0x612429=0x0;_0x612429<_0x17ccd3['length'];_0x612429++){const _0x5d2e65=_0x17ccd3[_0x612429];for(const _0x166e7f of _0x245e6d['getMarkers']()){const _0x286ca9=_0x166e7f['getRange']();if(_0x5d2e65['isEqual'](_0x286ca9)){_0x110697?(_0x17ccd3['splice'](_0x612429,0x1),_0x612429--):_0x245e6d['removeMarker'](_0x166e7f['name']);break;}}}}if(0x0==_0x17ccd3['length'])return null;const _0x58981e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1ba881,'join');for(const _0x10ed81 of this['getSuggestions']())if(_0x10ed81['author']['id']==_0x251adc['id']&&'formatBlock'==_0x10ed81['type']&&_0x10ed81['data']['formatGroupId']==_0x5ae5da['formatGroupId']&&_0x10ed81['subType']==_0x1ba881&&zt(_0x10ed81,_0x2921df)&&(_0x58981e(_0x10ed81['getRanges'](),_0x17ccd3)||_0x58981e(_0x17ccd3,_0x10ed81['getRanges']()))){for(const _0xb3c751 of _0x17ccd3)_0x10ed81['addRange'](_0xb3c751);return _0x10ed81;}const _0x163cb5=_0x18c716(),_0x336b62=_0x251adc['id'],_0x343cc4='formatBlock:'+_0x1ba881,_0x469601=this['_setSuggestionData']({'id':_0x163cb5,'type':_0x343cc4,'data':_0x5ae5da,'createdAt':new Date(),'authorId':_0x336b62,'attributes':_0x2921df});for(const _0x6fdec of _0x17ccd3)this['_addSuggestionMarker'](_0x343cc4,_0x163cb5,_0x336b62,_0x6fdec,o['getMultiRangeId']());return _0x469601;}['markDeletion'](_0x2e0081,_0x15f13a=null,_0xf98d5d={}){if(_0x2e0081['isCollapsed'])return null;const _0x411cc0=this['editor']['plugins']['get']('Users')['me'],_0x1f7e46=new _0x1f3765(_0x2e0081['start'],_0x2e0081['end']);for(const {suggestion:_0xd5be05,meta:_0x5781a9}of this['_findSuggestions'](_0x1f7e46,'insertion'))if(_0x5781a9['isOwn']&&!_0x5781a9['isNextTo']){if(_0xd5be05['isMultiRange']){const _0x13cfd6=_0xd5be05['getRanges']()['filter'](_0x140560=>'$graveyard'!=_0x140560['root']['rootName']);_0x13cfd6['every'](_0x1e1614=>_0x1f7e46['containsRange'](_0x1e1614,!0x0))&&_0xd5be05['discard']();if(_0x13cfd6['some'](_0x3783af=>_0x3783af['containsRange'](_0x1f7e46,!0x0))){const _0x2d5722=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x15f13a,'accept');return this['forceDefaultExecution'](()=>_0x2d5722([_0x1f7e46],null,_0xf98d5d)),null;}}else{const _0x1b913e=_0x1f7e46['getIntersection'](_0xd5be05['getFirstRange']());null!==_0x1b913e&&_0xd5be05['_onDiscard']([_0x1b913e],null,_0xf98d5d);}}if(_0x1f7e46['detach'](),_0x1f7e46['isCollapsed']||'$graveyard'==_0x1f7e46['root']['rootName'])return null;let _0x24ede5=null,_0x4ae174=_0x1f7e46['start'],_0x5c7848=_0x1f7e46['end'];const _0x205b5e=this['_findSuggestions'](_0x1f7e46,'deletion');for(const {suggestion:_0x33cf76,meta:_0x41e282}of _0x205b5e){const _0x2051e4=this['_model']['createRange'](_0x4ae174,_0x5c7848);if(_0x41e282['isOwn']&&(this['_mergeNestedSuggestions']||!_0x41e282['containsRangeInObject']&&!_0x41e282['isInsideObject'])){if(_0x33cf76['isMultiRange']){if(!zt(_0x33cf76,_0xf98d5d))continue;let _0x1ec443=!0x0;for(const _0x29e568 of _0x33cf76['getRanges']()){if(_0x29e568['containsRange'](_0x2051e4,!0x0))return _0x33cf76;_0x2051e4['containsRange'](_0x29e568)||(_0x1ec443=!0x1);}_0x1ec443&&_0x33cf76['discard']();}else{const _0x31289d=_0x33cf76['getFirstRange']();if(_0x31289d['containsRange'](_0x2051e4,!0x0))return _0x33cf76;if(!zt(_0x33cf76,_0xf98d5d)){_0x2051e4['containsRange'](_0x31289d)?_0x33cf76['removeMarkers']():_0x31289d['containsPosition'](_0x4ae174)?_0x4ae174=_0x31289d['end']:_0x31289d['containsPosition'](_0x5c7848)&&(_0x5c7848=_0x31289d['start']);continue;}_0x4ae174=_0x4ae174['isBefore'](_0x31289d['start'])?_0x4ae174:_0x31289d['start'],_0x5c7848=_0x5c7848['isAfter'](_0x31289d['end'])?_0x5c7848:_0x31289d['end'],_0xf98d5d=Object['assign']({},_0x33cf76['attributes']),_0x24ede5?_0x31289d['start']['isBefore'](_0x24ede5['getFirstRange']()['start'])?(_0x24ede5['removeMarkers'](),_0x24ede5=_0x33cf76):_0x33cf76['removeMarkers']():_0x24ede5=_0x33cf76;}}}if(_0x24ede5)return this['_setSuggestionRange'](_0x24ede5,this['_model']['createRange'](_0x4ae174,_0x5c7848)),_0x24ede5;{const _0xbbe689=_0x18c716(),_0x3f7a18=this['_model']['createRange'](_0x4ae174,_0x5c7848),_0x370548=_0x411cc0['id'],_0x5c6aec=_0x15f13a?'deletion:'+_0x15f13a:'deletion',_0x5977a3=this['_setSuggestionData']({'id':_0xbbe689,'type':_0x5c6aec,'createdAt':new Date(),'authorId':_0x370548,'attributes':_0xf98d5d});return this['_addSuggestionMarker'](_0x5c6aec,_0xbbe689,_0x370548,_0x3f7a18),_0x5977a3;}}['markMultiRangeDeletion'](_0x129d5c,_0x34121d='multi',_0x46adc6={}){const _0x1e10a0=this['editor']['plugins']['get']('Users')['me'],_0x51f92f=_0x129d5c['map'](_0x56f0a6=>new _0x1f3765(_0x56f0a6['start'],_0x56f0a6['end'])),_0x343f9d=new Set();for(const {suggestion:_0x26ea0,meta:_0x3b5907}of this['_findSuggestions'](_0x51f92f,'insertion'))_0x3b5907['isOwn']&&!_0x3b5907['isNextTo']&&_0x343f9d['add'](_0x26ea0);for(const _0x2ff595 of _0x343f9d)if(_0x2ff595['isMultiRange']){const _0xd5f773=_0x2ff595['getRanges']();(!_0x2ff595['attributes']||!_0x2ff595['attributes']['skipNestingCheck'])&&(_0xd5f773['every'](_0x4b25ea=>_0x51f92f['some'](_0x2b7bbd=>_0x2b7bbd['containsRange'](_0x4b25ea,!0x0)))&&_0x2ff595['discard']());if(_0x51f92f['every'](_0x5c059f=>_0xd5f773['some'](_0x55f4d1=>_0x55f4d1['containsRange'](_0x5c059f,!0x0)))){const _0x343463=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x34121d,'accept');return this['forceDefaultExecution'](()=>_0x343463(_0x129d5c,null,_0x46adc6)),null;}}else{const _0x43aa95=_0x2ff595['getFirstRange']();_0x51f92f['some'](_0x372551=>_0x372551['containsRange'](_0x43aa95,!0x0))&&_0x2ff595['discard']();if(_0x51f92f['every'](_0x4fc00c=>_0x43aa95['containsRange'](_0x4fc00c,!0x0))){const _0xe0b5fe=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x34121d,'accept');return this['forceDefaultExecution'](()=>_0xe0b5fe(_0x51f92f,null,_0x46adc6)),null;}}const _0x5f2c50=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x34121d,'join');let _0x238aa8=null;for(const _0x409331 of this['getSuggestions']())if(_0x409331['author']['id']==_0x1e10a0['id']&&_0x409331['isInContent']&&'deletion'==_0x409331['type']&&_0x409331['subType']==_0x34121d&&zt(_0x409331,_0x46adc6)&&(_0x5f2c50(_0x409331['getRanges'](),_0x51f92f)||_0x5f2c50(_0x51f92f,_0x409331['getRanges']()))){if(_0x238aa8){if(_0x409331['commentThread']&&_0x409331['commentThread']['length'])continue;for(const _0xd00c7b of _0x409331['getRanges']())_0x238aa8['isIntersectingWithRange'](_0xd00c7b)||_0x238aa8['addRange'](_0xd00c7b);_0x409331['removeMarkers']();}else{_0x238aa8=_0x409331;for(const _0x393499 of _0x51f92f)_0x409331['isIntersectingWithRange'](_0x393499)||_0x409331['addRange'](_0x393499);}}if(_0x238aa8)return _0x238aa8;_0x343f9d['clear']();for(const {suggestion:_0x27968f,meta:_0x3e2f4c}of this['_findSuggestions'](_0x51f92f,'deletion'))_0x3e2f4c['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3e2f4c['containsRangeInObject']&&!_0x3e2f4c['isInsideObject'])&&zt(_0x27968f,_0x46adc6)&&_0x343f9d['add'](_0x27968f);for(const _0x232071 of _0x343f9d){const _0x56dcc2=_0x232071['getRanges']();if(!_0x46adc6||!_0x46adc6['skipNestingCheck']){if(_0x51f92f['every'](_0x141f77=>_0x56dcc2['some'](_0x5cdfa9=>_0x5cdfa9['containsRange'](_0x141f77,!0x0))))return _0x232071;}(!_0x232071['attributes']||!_0x232071['attributes']['skipNestingCheck'])&&(_0x56dcc2['every'](_0x2cb8b0=>_0x51f92f['some'](_0x34bad3=>_0x34bad3['containsRange'](_0x2cb8b0,!0x0)))&&_0x232071['discard']());}const _0x5c944f=_0x18c716(),_0x4bd6ae=_0x1e10a0['id'],_0x4f32e2='deletion:'+_0x34121d,_0x3fc4b2=this['_setSuggestionData']({'id':_0x5c944f,'type':_0x4f32e2,'createdAt':new Date(),'authorId':_0x4bd6ae,'attributes':_0x46adc6});for(const _0x12a310 of _0x51f92f)_0x12a310['detach'](),_0x12a310['isCollapsed']||'$graveyard'==_0x12a310['root']['rootName']||this['_addSuggestionMarker'](_0x4f32e2,_0x5c944f,_0x4bd6ae,_0x12a310,o['getMultiRangeId']());return _0x3fc4b2;}['markAttributeChange'](_0x579fff,_0x3e91f5,_0xf05ade,_0x56f35c,_0x3d5ca1){if(_0x579fff['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x4e5cab=this['editor']['plugins']['get']('Users')['me']['id'],_0x38cd34=Array['from'](this['_suggestions']['values']())['filter'](_0x5eec61=>'attribute'==_0x5eec61['type']&&_0x5eec61['data']['key']==_0x3e91f5&&_0x5eec61['isIntersectingWithRange'](_0x579fff));if('default'===this['_trackFormatChanges']){const _0x5c4a9b=this['_findSuggestions'](_0x579fff,'insertion')['filter'](({meta:_0x21a022})=>_0x21a022['isOwn']&&!_0x21a022['isInsideObject']&&!_0x21a022['isNextTo'])['map'](({suggestion:_0x54c481})=>_0x54c481);_0x38cd34['unshift'](..._0x5c4a9b);}const _0x257bea=new Map([[_0x579fff,_0xf05ade]]);for(const _0x3c14cf of _0x38cd34){const _0xa8f5='attribute'==_0x3c14cf['type']?_0x3c14cf['data']['oldValue']:void 0x0,_0x2840d7=_0x3c14cf['getFirstRange'](),_0x50516a=Array['from'](_0x257bea['keys']())['find'](_0x30694c=>_0x30694c['isIntersecting'](_0x2840d7));if(!_0x50516a)continue;const _0x2aae84=_0x50516a['getDifference'](_0x2840d7);this['_isBlockAttribute'](_0x3e91f5)&&'insertion'==_0x3c14cf['type']&&0x0!=_0x2aae84['length']||(_0x257bea['delete'](_0x50516a),_0x2aae84['forEach'](_0x3d8f6e=>{_0x257bea['set'](_0x3d8f6e,_0xf05ade);}),'insertion'!=_0x3c14cf['type']&&_0xa8f5!=_0x56f35c&&_0x257bea['set'](_0x50516a['getIntersection'](_0x2840d7),_0xa8f5));}const _0x1d54b5=[];for(const [_0x4c2272,_0x5003b3]of _0x257bea){const _0x3521af=_0x18c716(),_0x1d87ef={'key':_0x3e91f5,'oldValue':_0x5003b3,'newValue':_0x56f35c};_0x3e91f5['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':_0x3e91f5});const _0x3c354a=('attribute:'+(_0x3e91f5+'|'+Gt({'newValue':_0x56f35c})))['substring'](0x0,0x3c),_0x4d17a9=this['_setSuggestionData']({'id':_0x3521af,'type':_0x3c354a,'data':_0x1d87ef,'createdAt':new Date(),'authorId':_0x4e5cab,'attributes':_0x3d5ca1});_0x1d54b5['push'](_0x4d17a9),this['_addSuggestionMarker'](_0x3c354a,_0x3521af,_0x4e5cab,_0x4c2272);}return _0x1d54b5;}['enableDefaultAttributesIntegration'](_0x2489c0){this['enableCommand'](_0x2489c0,(_0x2e8694,..._0x1e9797)=>{this['_recordAttributeChanges'](()=>{_0x2e8694(..._0x1e9797);});});}['registerBlockAttribute'](_0x8e0439){this['_blockAttributeKeys']['add'](_0x8e0439);}['registerInlineAttribute'](_0x215072){this['_inlineAttributeKeys']['add'](_0x215072);}['_getAttributeKey'](_0x2c8174){return'attribute'==_0x2c8174['type']?_0x2c8174['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x10c219,_0x257618){const _0x46ad83=_0x10c219['getFirstMarker']();this['_model']['change'](_0x316aae=>{_0x316aae['updateMarker'](_0x46ad83,{'range':_0x257618});});}['_addThreadToSuggestion'](_0x3420ec){const _0x2ffafa=_0x3420ec['id'],_0x21c2c5=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2ffafa)||this['_commentsRepository']['addCommentThread']({'channelId':_0x21c2c5,'threadId':_0x2ffafa,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x7bd536=this['_commentsRepository']['getCommentThread'](_0x2ffafa);_0x7bd536['unbind']('isRemovable'),_0x7bd536['isRemovable']=!0x1,_0x3420ec['commentThread']=_0x7bd536;}['_checkSuggestionCorrectness'](_0x454eca,_0x2342cc,_0x22b215,_0x235e7f){if(_0x454eca['type']!=_0x2342cc||_0x454eca['subType']!=_0x22b215||_0x454eca['creator']['id']!=_0x235e7f)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2b6413('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1bac07,_0x2219f8){const _0x528ad5=_0x1bac07['getFirstRange']();if(_0x2219f8['isEqual'](_0x528ad5))_0x1bac07['removeMarkers']();else{if(_0x528ad5['containsRange'](_0x2219f8)){const _0xfeea8f=this['_model']['createPositionAt'](_0x2219f8['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1bac07,this['_model']['createRange'](_0x528ad5['start'],_0xfeea8f));const _0x549dec=_0x18c716(),_0x37d064=_0x1bac07['creator']['id'],_0x36fb9c=_0x1bac07['type']+':'+_0x1bac07['subType'];this['_setSuggestionData']({'id':_0x549dec,'type':_0x36fb9c,'createdAt':new Date(),'authorId':_0x37d064,'data':_0x1bac07['data'],'attributes':_0x1bac07['attributes']});const _0x3be330=this['_model']['createPositionAt'](_0x2219f8['end']['parent'],'after'),_0x19f7dc=this['_model']['createRange'](_0x3be330,_0x528ad5['end']);this['_addSuggestionMarker'](_0x36fb9c,_0x549dec,_0x37d064,_0x19f7dc);}else{if(_0x528ad5['containsPosition'](_0x2219f8['start'])){const _0x49f19e=this['_model']['createPositionAt'](_0x2219f8['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1bac07,this['_model']['createRange'](_0x528ad5['start'],_0x49f19e));}else{const _0x3be6e7=this['_model']['createPositionAt'](_0x2219f8['end']['parent'],'after');this['_setSuggestionRange'](_0x1bac07,this['_model']['createRange'](_0x3be6e7,_0x528ad5['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x13354b){for(const {suggestion:_0x49626b,meta:_0x173326}of this['_findSuggestions'](_0x13354b,'insertion')){if(!_0x173326['isOwn'])continue;const _0x153d5d=_0x49626b['getRanges']();for(const _0x1a4304 of _0x153d5d)if(!_0x13354b['getDifference'](_0x1a4304)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1f70f4){const _0x280c5c=this['editor']['plugins']['get']('Users')['getUser'](_0x1f70f4);if(!_0x280c5c)throw new _0x2b6413('track-changes-user-not-found',this);return _0x280c5c;}['_getExternalAuthor'](_0x4e7bc3){const _0x3b761d=this['editor']['plugins']['get']('Users'),_0x19b23d=_0x5e4436('external:'+_0x4e7bc3),_0x3621ad=_0x3b761d['getUser'](_0x19b23d);return _0x3621ad||_0x3b761d['addUser']({'id':_0x19b23d,'name':_0x4e7bc3});}['_createSuggestion'](_0x418428,_0x283c91,_0x4cc123,_0x49ff33,_0x15435c){const _0x1c0cdd=this['_getAuthorFromId'](_0x49ff33),_0x5256cb=this['_suggestionFactory']['buildSuggestion'](_0x418428,_0x283c91,_0x4cc123,_0x1c0cdd,_0x15435c,_0x49df41=>{this['_updateSuggestionData'](_0x4cc123,{'attributes':_0x49df41});const _0xc9fca5=this['getSuggestion'](_0x4cc123);this['_joinWithAdjacentSuggestions'](new Set([_0xc9fca5])),this['_refreshSuggestionsChain'](new Set([_0xc9fca5]));});return this['listenTo'](_0x5256cb,'accept',()=>{this['_updateSuggestionData'](_0x4cc123,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x5256cb,'discard',()=>{this['_updateSuggestionData'](_0x4cc123,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4cc123,_0x5256cb),this['_suggestionState']['set'](_0x5256cb,'notReady'),_0x5256cb;}['_splitMarkerName'](_0x121ff1){const _0x3d5890=_0x121ff1['split'](':');return{'group':_0x3d5890[0x0],'type':_0x3d5890[0x1],'subType':_0x3d5890['length']>=0x5?_0x3d5890[0x2]:null,'id':_0x3d5890['length']<0x5?_0x3d5890[0x2]:_0x3d5890[0x3],'authorId':_0x3d5890['length']<0x5?_0x3d5890[0x3]:_0x3d5890[0x4],'markerCount':0x6==_0x3d5890['length']?_0x3d5890[0x5]:null};}['_breakSuggestionMarker'](_0xdf6c01,_0x7b47db,_0x4081b9){const _0x31ad6d=_0xdf6c01['getFirstRange'](),_0x5b3eec=_0x31ad6d['start'],_0x498905=_0x31ad6d['end'];this['_setSuggestionRange'](_0xdf6c01,this['_model']['createRange'](_0x5b3eec,_0x7b47db));const _0x3f22ed=_0x18c716(),_0x5e5df4=_0xdf6c01['creator']['id'],_0x5e4ecb=_0xdf6c01['type']+(_0xdf6c01['subType']?':'+_0xdf6c01['subType']:'');this['_setSuggestionData']({'id':_0x3f22ed,'type':_0x5e4ecb,'createdAt':new Date(),'authorId':_0x5e5df4,'originalSuggestionId':_0xdf6c01['id'],'attributes':_0xdf6c01['attributes'],'data':_0xdf6c01['data']});const _0x16049f=this['_getAttributeKey'](_0xdf6c01);('formatBlock'==_0xdf6c01['type']||_0x16049f&&this['_isBlockAttribute'](_0x16049f))&&(_0x4081b9=this['_model']['createPositionBefore'](_0x4081b9['parent'])),this['_addSuggestionMarker'](_0x5e4ecb,_0x3f22ed,_0x5e5df4,this['_model']['createRange'](_0x4081b9,_0x498905));}['_findSuggestions'](_0x29c563,_0x4c253f=null){const _0x3e31c5=[],_0x2144c7=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x29c563)||(_0x29c563=[_0x29c563]);for(const _0x451465 of this['getSuggestions']()){if(!_0x451465['isInContent'])continue;if(_0x4c253f&&_0x451465['type']!=_0x4c253f)continue;let _0x6f5b3d=!0x1;for(const _0x313e50 of _0x451465['getRanges']()){for(const _0x2cb3fe of _0x29c563){const _0xaef6ba=_0x2cb3fe['start']['isEqual'](_0x313e50['end'])||_0x2cb3fe['end']['isEqual'](_0x313e50['start']);if(_0xaef6ba||_0x2cb3fe['getIntersection'](_0x313e50)){const _0x34804e=_0x2cb3fe['containsRange'](_0x313e50)&&Vt(this['_model']['schema'],_0x313e50['start'],_0x2cb3fe),_0x2465a3=_0x313e50['containsRange'](_0x2cb3fe)&&Vt(this['_model']['schema'],_0x2cb3fe['start'],_0x313e50);_0x3e31c5['push']({'suggestion':_0x451465,'meta':{'isOwn':_0x2144c7==_0x451465['author'],'isNextTo':_0xaef6ba,'isInsideObject':_0x34804e,'containsRangeInObject':_0x2465a3}}),_0x6f5b3d=!0x0;break;}}if(_0x6f5b3d)break;}}return _0x3e31c5;}['_addSuggestionMarker'](_0x277eb2,_0x51d92c,_0x306299,_0x142ce7,_0x576da2){this['_model']['change'](_0x47c382=>{let _0xd12d4d='suggestion:'+_0x277eb2+':'+_0x51d92c+':'+_0x306299;_0x576da2&&(_0xd12d4d=_0xd12d4d+':'+_0x576da2),_0x47c382['addMarker'](_0xd12d4d,{'range':_0x142ce7,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x48d68f){const _0x1bad22=_0x48d68f['previous'],_0x1e8505=_0x48d68f['next'];_0x48d68f['previous']=null,_0x48d68f['next']=null,null!=_0x1bad22&&_0x1bad22['next']==_0x48d68f&&(_0x1bad22['next']=_0x1e8505),null!=_0x1e8505&&_0x1e8505['previous']==_0x48d68f&&(_0x1e8505['previous']=_0x1bad22),'ready'==this['_suggestionState']['get'](_0x48d68f)&&(this['_suggestionState']['set'](_0x48d68f,'removed'),this['fire']('suggestionUnloaded',_0x48d68f,_0x1bad22,_0x1e8505));}['_setSuggestionData'](_0x131f2a){const _0x58b596=_0x131f2a['id'],_0x380ab8=this['addSuggestionData'](_0x131f2a);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x281770=this['editor']['plugins']['get']('PendingActions'),_0x5f35d1=_0x380ab8['hasComments'],_0x50e96b=_0x380ab8['subType']?_0x380ab8['type']+':'+_0x380ab8['subType']:_0x380ab8['type'],_0x12aa8c=this['editor']['locale'],_0x51070b=_0x281770['add'](c(_0x12aa8c,'PENDING_ACTION_SUGGESTION')),_0x228af7={'id':_0x58b596,'type':_0x50e96b,'hasComments':_0x5f35d1,'data':_0x131f2a['data']||null,'originalSuggestionId':_0x131f2a['originalSuggestionId']||null,'attributes':_0x380ab8['attributes']};this['_adapter']['addSuggestion'](_0x228af7)['then'](_0x14d009=>{_0x380ab8['_saved']=!0x0,_0x281770['remove'](_0x51070b),_0x14d009&&_0x14d009['createdAt']&&(this['_suggestions']['get'](_0x58b596)['createdAt']=_0x14d009['createdAt']);})['catch'](_0x554b0e=>{throw _0x5c1391('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x380ab8['discard']();}),_0x380ab8['stopListening'](),this['_suggestions']['delete'](_0x380ab8['id']),this['_suggestionState']['delete'](_0x380ab8),_0x554b0e;});}return _0x380ab8;}['_isBlockAttribute'](_0x2623ee){return this['_blockAttributeKeys']['has'](_0x2623ee);}['_updateSuggestionData'](_0x43f8f4,_0x189d93){const _0x7c8829=this['editor']['plugins']['get']('PendingActions'),_0x5bb71b=this['getSuggestion'](_0x43f8f4);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x5bb71b['_saved']){const _0x3b4e68=_0x7c8829['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x43f8f4,_0x189d93)['then'](()=>{_0x7c8829['remove'](_0x3b4e68);});}else _0x5bb71b['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x43f8f4,_0x189d93);});}}['_getSuggestionData'](_0x128b95){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2b6413('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x128b95);}['_handleNewSuggestionMarker'](_0x1e610c){const {id:_0x1139ea,type:_0x442c60,subType:_0x3b46d4,authorId:_0x5d67a9}=this['_splitMarkerName'](_0x1e610c),_0x320080=this['_suggestions']['get'](_0x1139ea)||this['_createSuggestion'](_0x442c60,_0x3b46d4,_0x1139ea,_0x5d67a9,{});switch(this['_checkSuggestionCorrectness'](_0x320080,_0x442c60,_0x3b46d4,_0x5d67a9),this['_suggestionState']['get'](_0x320080)){case'notReady':this['_getSuggestionData'](_0x1139ea)['then'](_0x4af24c=>{let _0x472e20=Promise['resolve']();_0x4af24c['hasComments']&&(_0x472e20=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1139ea})),_0x472e20['then'](()=>{this['addSuggestionData'](_0x4af24c)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x320080,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1139ea,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x320080,'ready'),this['fire']('suggestionLoaded',_0x320080);break;case'ready':this['fire']('suggestionChanged',_0x320080);}return _0x320080['addMarkerName'](_0x1e610c),_0x320080;}['_refreshSuggestionsChain'](_0x44d810){const _0x263118=Array['from'](_0x44d810),_0x1543c0=_0x263118['filter'](_0x84639f=>'attribute'==_0x84639f['type']);this['_refreshAttributeSuggestionsChain'](_0x1543c0);const _0x1ece46=_0x263118['filter'](_0x342a1a=>!_0x342a1a['isMultiRange']&&'attribute'!=_0x342a1a['type']),_0x49267d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x10238c=>!_0x10238c['isMultiRange']&&'attribute'!=_0x10238c['type']),_0x3bd6ca=_0x49267d['filter'](_0x16e5cf=>!_0x44d810['has'](_0x16e5cf)),_0x1aed97=new Map(_0x49267d['map'](_0x68adfb=>[_0x68adfb,this['_suggestionFactory']['getSuggestionCallback'](_0x68adfb['type'],_0x68adfb['subType'],'chain')])),_0x27b550=new Map(_0x49267d['map'](_0x14d18d=>[_0x14d18d,_0x14d18d['getFirstRange']()])),_0x34f9ec=new Set(),_0x23cb4f=new Set();for(let _0x383a48=0x0;_0x383a48<_0x1ece46['length'];_0x383a48++)_0x3acf06(_0x1ece46[_0x383a48],_0x1ece46,_0x383a48+0x1);for(let _0x36eb67=0x0;_0x36eb67<_0x1ece46['length'];_0x36eb67++)_0x3acf06(_0x1ece46[_0x36eb67],_0x3bd6ca,0x0);const _0x48f60d=new Set();for(let _0x247fe4=0x0;_0x247fe4<_0x1ece46['length'];_0x247fe4++){const _0x2a1fd1=_0x1ece46[_0x247fe4];!_0x23cb4f['has'](_0x2a1fd1)&&_0x2a1fd1['previous']&&(_0x48f60d['add'](_0x2a1fd1['previous']),_0x2a1fd1['previous']['next']===_0x2a1fd1&&(_0x2a1fd1['previous']['next']=null),_0x2a1fd1['previous']=null),!_0x34f9ec['has'](_0x2a1fd1)&&_0x2a1fd1['next']&&(_0x48f60d['add'](_0x2a1fd1['next']),_0x2a1fd1['next']['previous']===_0x2a1fd1&&(_0x2a1fd1['next']['previous']=null),_0x2a1fd1['next']=null);}function _0x3acf06(_0x5934a4,_0x1e612b,_0x3f7e62){for(let _0x948f97=_0x3f7e62;_0x948f97<_0x1e612b['length'];_0x948f97++){const _0x499d20=_0x209048(_0x5934a4,_0x1e612b[_0x948f97]);_0x499d20&&(_0x499d20[0x0]['next']=_0x499d20[0x1],_0x499d20[0x1]['previous']=_0x499d20[0x0],_0x34f9ec['add'](_0x499d20[0x0]),_0x23cb4f['add'](_0x499d20[0x1]));}}function _0x209048(_0x487763,_0x2a2d13){if(_0x487763['author']['id']!==_0x2a2d13['author']['id'])return null;const _0x180b59=_0x1aed97['get'](_0x487763)(_0x487763,_0x2a2d13,_0x27b550['get'](_0x487763),_0x27b550['get'](_0x2a2d13));if(!_0x180b59)return null;return _0x1aed97['get'](_0x2a2d13)(_0x487763,_0x2a2d13,_0x27b550['get'](_0x487763),_0x27b550['get'](_0x2a2d13))?_0x180b59[0x1]['commentThread']&&_0x180b59[0x1]['commentThread']['length']?null:_0x180b59:null;}_0x48f60d['size']&&this['_refreshSuggestionsChain'](_0x48f60d);}['_refreshAttributeSuggestionsChain'](_0x5b5a06){if(0x0==_0x5b5a06['length'])return;const _0x3b2239=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2b5463=>'attribute'==_0x2b5463['type']&&_0x2b5463['_isDataLoaded']),_0xf6e5f0=[],_0x2e39f3=new Map();for(const _0x5b8f6c of _0x3b2239){const _0x31ee9f=_0x5e4436(_0x5b8f6c['attributes']);_0x2e39f3['has'](_0x31ee9f)||(_0x2e39f3['set'](_0x31ee9f,_0xf6e5f0['length']),_0xf6e5f0['push']([]));const _0xd5581b=_0x2e39f3['get'](_0x31ee9f);_0xf6e5f0[_0xd5581b]['push'](_0x5b8f6c);}!(function(){_0xf6e5f0['sort']((_0x5ec194,_0x287a4b)=>{const _0x5e81fe=_0x5ec194[0x0]['createdAt'],_0x1ed128=_0x287a4b[0x0]['createdAt'];return _0x5e81fe==_0x1ed128?_0x5ec194[0x0]['attributes']['groupId']<_0x287a4b[0x0]['attributes']['groupId']?-0x1:0x1:_0x5e81fe<_0x1ed128?-0x1:0x1;});for(const _0x14f354 of _0xf6e5f0)_0x14f354['sort']((_0x500bb4,_0x3800b7)=>_0x500bb4['id']<_0x3800b7['id']?-0x1:0x1);}());for(let _0x2eeae0=0x0;_0x2eeae0<_0xf6e5f0['length'];_0x2eeae0++){if(0x0==_0xf6e5f0[_0x2eeae0]['length'])continue;const _0x7a6c2c=[];for(let _0x53a272=_0x2eeae0+0x1;_0x53a272<_0xf6e5f0['length'];_0x53a272++)0x0!=_0xf6e5f0[_0x53a272]['length']&&_0x464d71(_0xf6e5f0[_0x2eeae0],_0xf6e5f0[_0x53a272])&&_0x7a6c2c['push'](_0x53a272);for(const _0x38bad7 of _0x7a6c2c)_0xf6e5f0[_0x2eeae0]=_0xf6e5f0[_0x2eeae0]['concat'](_0xf6e5f0[_0x38bad7]),_0xf6e5f0[_0x38bad7]=[];}for(const _0x371ff4 of _0xf6e5f0)for(let _0x3b62ea=0x0;_0x3b62ea<_0x371ff4['length'];_0x3b62ea++){const _0x4ba71f=_0x371ff4[_0x3b62ea+0x1]||null;_0x371ff4[_0x3b62ea]['next']!==_0x4ba71f&&(_0x371ff4[_0x3b62ea]['next']=_0x4ba71f);}for(const _0x8f2b56 of _0xf6e5f0)for(let _0x2ddf6e=0x0;_0x2ddf6e<_0x8f2b56['length'];_0x2ddf6e++){const _0x21189f=_0x8f2b56[_0x2ddf6e-0x1]||null;_0x8f2b56[_0x2ddf6e]['previous']!==_0x21189f&&(_0x8f2b56[_0x2ddf6e]['previous']=_0x21189f);}function _0x464d71(_0x17040a,_0x5bd3be){if(_0x17040a[0x0]['attributes']['groupId']!==_0x5bd3be[0x0]['attributes']['groupId']&&_0x17040a[0x0]['author']!==_0x5bd3be[0x0]['author'])return!0x1;if(!function(_0x35032d,_0x407f26){if(!_0x35032d['hasComments']&&!_0x407f26['hasComments'])return!0x0;if(_0x35032d['hasComments']&&_0x407f26['hasComments'])return!0x1;if(_0x35032d['hasComments']&&_0x407f26['createdAt']<_0x35032d['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x407f26['hasComments']&&_0x35032d['createdAt']<_0x407f26['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x17040a[0x0],_0x5bd3be[0x0]))return!0x1;const _0x22276b=Et(_0x17040a[0x0]['attributes'],'groupId'),_0x2f1b4b=Et(_0x5bd3be[0x0]['attributes'],'groupId');if(!_0x2fcc92(_0x22276b,_0x2f1b4b))return!0x1;return!!_0x17040a['every'](_0x1303c0=>_0x5bd3be['some'](_0x58b69d=>_0x1303c0['getFirstRange']()['isEqual'](_0x58b69d['getFirstRange']())))&&_0x5bd3be['every'](_0x14a3a0=>_0x17040a['some'](_0x1dd6a2=>_0x14a3a0['getFirstRange']()['isEqual'](_0x1dd6a2['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x198297){const _0x3f9df4=Array['from'](_0x198297),_0x4d7876=this['getSuggestions']({'skipNotAttached':!0x0}),_0x15da40=_0x4d7876['filter'](_0x40c24d=>!_0x198297['has'](_0x40c24d)),_0x2fd3cc=new Map(_0x3f9df4['map'](_0x38e51f=>[_0x38e51f,this['_suggestionFactory']['getSuggestionCallback'](_0x38e51f['type'],_0x38e51f['subType'],'join')])),_0x205b77=new Map(_0x4d7876['map'](_0x493e61=>[_0x493e61,_0x493e61['getRanges']()]));for(let _0x3faa74=0x0;_0x3faa74<_0x3f9df4['length'];_0x3faa74++){if(_0xfd7d2a(this,_0x3f9df4[_0x3faa74],_0x3f9df4,_0x3faa74+0x1))return!0x0;}for(let _0x9f300b=0x0;_0x9f300b<_0x3f9df4['length'];_0x9f300b++){if(_0xfd7d2a(this,_0x3f9df4[_0x9f300b],_0x15da40,0x0))return!0x0;}return!0x1;function _0xfd7d2a(_0x276644,_0x5bf793,_0x21444e,_0x45315e){for(let _0x466be9=_0x45315e;_0x466be9<_0x21444e['length'];_0x466be9++){const _0x18e9f4=_0x21444e[_0x466be9];if(_0x18e9f4['type']!==_0x5bf793['type']||_0x18e9f4['author']['id']!==_0x5bf793['author']['id']||_0x18e9f4['subType']!==_0x5bf793['subType'])continue;if(!qt(_0x5bf793,_0x18e9f4))continue;if('attribute'==_0x5bf793['type']&&_0x5bf793['data']['oldValue']!=_0x18e9f4['data']['oldValue'])continue;if('attribute'==_0x5bf793['type']&&_0x276644['_isBlockAttribute'](_0x5bf793['data']['key']))continue;if('formatBlock'==_0x5bf793['type']){const _0x29f66f=_0x276644['editor']['model'],_0x202dd7=_0x5bf793['getContainedElement']();if(_0x202dd7&&(_0x29f66f['schema']['isObject'](_0x202dd7)||_0x29f66f['schema']['isLimit'](_0x202dd7)))continue;}const _0x551e87=_0x2fd3cc['get'](_0x5bf793),_0x451692=_0x205b77['get'](_0x5bf793),_0x50b15f=_0x205b77['get'](_0x18e9f4),_0x12c45d=_0x5bf793['commentThread']&&_0x5bf793['commentThread']['length'],_0x2057b4=_0x18e9f4['commentThread']&&_0x18e9f4['commentThread']['length'];if(!_0x12c45d&&_0x551e87(_0x50b15f,_0x451692))return _0x276644['_joinSuggestions'](_0x18e9f4,_0x5bf793),_0x205b77['delete'](_0x5bf793),!0x0;if(!_0x2057b4&&_0x551e87(_0x451692,_0x50b15f))return _0x276644['_joinSuggestions'](_0x5bf793,_0x18e9f4),_0x205b77['delete'](_0x18e9f4),!0x0;}return!0x1;}}['_joinSuggestions'](_0x3d65ac,_0x16d2a7){if(_0x3d65ac['isMultiRange']){for(const _0x4ca264 of _0x16d2a7['getRanges']())_0x3d65ac['addRange'](_0x4ca264);}else{const _0x3b585c=_0x16d2a7['getFirstRange']()['end'];this['_setSuggestionRange'](_0x3d65ac,this['_model']['createRange'](_0x3d65ac['getFirstRange']()['start'],_0x3b585c));}_0x16d2a7['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3cb88e,_0x39b854,_0x4c8bd1){const _0x360742=_0x3cb88e['startsWith']('format')||_0x3cb88e['startsWith']('attribute')?'FORMATTING':_0x3cb88e['toUpperCase']();return c(this['editor']['locale'],_0x39b854+'_'+_0x360742+'_SUGGESTION_ANNOUNCEMENT',_0x4c8bd1);}['_initAriaMarkerChangeAnnouncements'](){const _0x57e520=this['editor'];if(!_0x57e520['ui'])return;const {ariaLiveAnnouncer:_0x322f1a}=_0x57e520['ui'];_0x38c199(this['_model'],({left:_0x173d18,entered:_0x36a1ec})=>{for(const _0x5b780f of _0x173d18){const {group:_0xc4a4e6,type:_0x171d9d}=this['_splitMarkerName'](_0x5b780f['name']);if('suggestion'===_0xc4a4e6){_0x322f1a['announce'](this['_getMarkerAnnouncementText'](_0x171d9d,'LEAVE'));break;}}for(const _0xb4cb87 of _0x36a1ec){const {group:_0x4103ca,type:_0x349569}=this['_splitMarkerName'](_0xb4cb87['name']);if('suggestion'===_0x4103ca){_0x322f1a['announce'](this['_getMarkerAnnouncementText'](_0x349569,'ENTER',_0x2e4f9c(_0x51c160)));break;}}});}['_processAttributeChanges'](_0x9e13a3){if(this['_recordAttributeSuggestions'])return!0x1;const _0x6c7e6c=this['editor'],_0x415dbd=_0x6c7e6c['model']['document']['differ']['getChanges']();if(0x0==_0x415dbd['length'])return!0x1;const _0x1f607f=[],_0x1f1e8f=_0x415dbd['filter'](_0x5e6a57=>'attribute'==_0x5e6a57['type']),_0x1b5ea0=_0x415dbd['filter'](_0x1b4969=>'insert'==_0x1b4969['type']&&'$text'!=_0x1b4969['name']),_0x3f52a4=_0x415dbd['filter'](_0x366180=>'remove'==_0x366180['type']&&'$text'!=_0x366180['name']);for(const _0x4f13ab of _0x1f1e8f)_0x1f607f['push']({'key':_0x4f13ab['attributeKey'],'newValue':_0x4f13ab['attributeNewValue'],'oldValue':_0x4f13ab['attributeOldValue'],'range':Jt(_0x4f13ab['range'],_0x6c7e6c['model'])});for(const _0x28d612 of _0x1b5ea0){const _0x521330=_0x3f52a4['find'](_0x213498=>_0x213498['position']['isEqual'](_0x28d612['position']));_0x521330&&_0x1f607f['push']({'key':u,'newValue':_0x28d612['name'],'oldValue':_0x521330['name'],'range':_0x6c7e6c['model']['createRangeOn'](_0x28d612['position']['nodeAfter'])});}return 0x0!=_0x1f607f['length']&&this['_reduceExistingSuggestions'](_0x9e13a3,_0x1f607f);}['_processAttributeSuggestions'](_0x33802f){let _0x323222=!0x1;const _0x256da5=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2f6ca0=>_0x2f6ca0['data']['newRange']&&_0x2f6ca0['name']['startsWith']('suggestion:attribute:'));for(const _0x309f8a of _0x256da5){const {subType:_0x1ec4c4,id:_0x452807}=this['_splitMarkerName'](_0x309f8a['name']),_0x53eb4d=_0x1ec4c4['split']('|')[0x0];for(const _0x124e5e of this['getSuggestions']({'skipNotAttached':!0x0}))_0x124e5e['id']!=_0x452807&&'attribute'==_0x124e5e['type']&&_0x124e5e['data']&&_0x124e5e['data']['key']==_0x53eb4d&&_0x124e5e['getFirstRange']()['isIntersecting'](_0x309f8a['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x124e5e,_0x309f8a['data']['newRange'],_0x33802f),_0x323222=!0x0);}return _0x323222;}['_recordAttributeChanges'](_0x57a74a){this['_recordAttributeSuggestions']=!0x0,_0x57a74a();}['_isRegisteredAttribute'](_0x3614b8){const _0x1637a5=this['_isBlockAttribute'](_0x3614b8),_0x129440=this['_inlineAttributeKeys']['has'](_0x3614b8);return _0x1637a5||_0x129440;}['_reduceExistingSuggestions'](_0x61d9dd,_0x420889){if(0x0==_0x420889['length'])return!0x1;let _0x181b24=!0x1;for(const _0x1b0337 of _0x420889){const _0x29a6a3=this['_findSuggestions'](_0x1b0337['range'],'attribute')['filter'](_0x5a7692=>!_0x5a7692['meta']['isNextTo'])['map'](_0x4b2c71=>_0x4b2c71['suggestion']),_0x4dc1af=_0x5e4436({'newValue':_0x1b0337['newValue']});_0x29a6a3['filter'](_0x411da6=>{const [_0x2eea4d,_0x303e19]=_0x411da6['subType']['split']('|');return _0x2eea4d==_0x1b0337['key']&&_0x303e19!=_0x4dc1af;})['forEach'](_0x483739=>{this['_reduceSuggestionAttributeRange'](_0x483739,_0x1b0337['range'],_0x61d9dd),_0x181b24=!0x0;});}return _0x181b24;}['_reduceSuggestionAttributeRange'](_0x3ff5ce,_0x413aa7,_0x1382f8){const _0x486bc7=_0x3ff5ce['getFirstRange']()['getDifference'](_0x413aa7);0x0!==_0x486bc7['length']?0x1!==_0x486bc7['length']?this['_breakSuggestionMarker'](_0x3ff5ce,_0x413aa7['start'],_0x413aa7['end']):this['_setSuggestionRange'](_0x3ff5ce,_0x486bc7[0x0]):_0x1382f8['removeMarker'](_0x3ff5ce['getFirstMarker']());}}class Ut{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0xe87a0d){this['_editor']=_0xe87a0d,this['_model']=_0xe87a0d['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x58c059,_0x26ded1,_0x5200ef,_0x209612,_0x53f64c,_0xa64b5f){return new o(this['_model'],{'type':_0x58c059,'subType':_0x26ded1,'id':_0x5200ef,'author':_0x209612,'creator':_0x209612,'attributes':_0x53f64c,'onAttributesChange':_0xa64b5f,'onAccept':(..._0x2e3f5e)=>this['getSuggestionCallback'](_0x58c059,_0x26ded1,'accept')(..._0x2e3f5e),'onDiscard':(..._0x2f2726)=>this['getSuggestionCallback'](_0x58c059,_0x26ded1,'discard')(..._0x2f2726)});}['registerCustomCallback'](_0x589e97,_0x4e3695,_0xabc38c,_0x4e1075){const _0x2fa145=_0x589e97+':'+_0x4e3695+':'+_0xabc38c;this['_customCallbacks']['set'](_0x2fa145,_0x4e1075);}['getSuggestionCallback'](_0x26276c,_0x3d1bad,_0xce0154){const _0x2ab705=_0x26276c+':'+_0x3d1bad+':'+_0xce0154;return this['_customCallbacks']['get'](_0x2ab705)||this['_defaultCallbacks']['get'](_0x26276c+':'+_0xce0154);}['_registerDefaultCallbacks'](){const _0x44dc68=()=>!0x1,_0x5959ad=_0xf3d6c3=>{_0xf3d6c3['sort']((_0x2a9eb3,_0x1b7ab2)=>_0x2a9eb3['start']['isBefore'](_0x1b7ab2['start'])?0x1:-0x1),this['_model']['change'](_0x49560a=>{for(const _0x198abc of _0xf3d6c3){let _0x2e0755;_0x2e0755=_0x198abc['end']['isAtEnd']&&_0x198abc['end']['parent']==_0x198abc['start']['nodeAfter']?_0x49560a['createSelection'](_0x198abc['start']['nodeAfter'],'on'):_0x49560a['createSelection'](_0x198abc),this['_model']['deleteContent'](_0x2e0755,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3541f8=(_0x528b2b,_0x5392ea)=>{_0x5392ea&&this['_model']['change'](_0x5545f9=>{const {commandName:_0x1dabaf,commandParams:_0x49e247=[]}=_0x5392ea,_0x310fb9=_0x528b2b['map'](_0x5d7602=>(Ft(_0x5d7602)&&(_0x5d7602=this['_model']['createRange'](_0x5d7602['end'])),_0x5d7602))['filter'](_0x4c8900=>'$graveyard'!==_0x4c8900['root']['rootName']);if(_0x310fb9['length']<0x1)return;const _0x46ecc6=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x560555=>_0x1f3765['fromRange'](_0x560555));_0x5545f9['setSelection'](_0x310fb9);for(const _0x3ebedc of this['_editor']['commands']['commands']())_0x3ebedc['refresh']();_0x49e247['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1dabaf,..._0x49e247);const _0x234cf9=_0x46ecc6['filter'](_0x481bad=>'$graveyard'!=_0x481bad['root']['rootName']);_0x234cf9['length']>0x0&&_0x5545f9['setSelection'](_0x234cf9);for(const _0x33398f of _0x46ecc6)_0x33398f['detach']();});},_0x20581f=(_0xfe6e12,_0x3cab55)=>0x1==_0xfe6e12['length']&&0x1==_0x3cab55['length']&&_0xfe6e12[0x0]['end']['isEqual'](_0x3cab55[0x0]['start']),_0x27f73f=(_0x3766cf,_0x46fd5d,_0x3cdaf3,_0x4c8607)=>Ht(_0x3766cf,_0x46fd5d,_0x3cdaf3,_0x4c8607)?[_0x3766cf,_0x46fd5d]:Ht(_0x46fd5d,_0x3766cf,_0x4c8607,_0x3cdaf3)?[_0x46fd5d,_0x3766cf]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x44dc68),this['_defaultCallbacks']['set']('insertion:discard',_0x5959ad),this['_defaultCallbacks']['set']('insertion:join',_0x20581f),this['_defaultCallbacks']['set']('insertion:chain',_0x27f73f),this['_defaultCallbacks']['set']('deletion:accept',_0x5959ad),this['_defaultCallbacks']['set']('deletion:discard',_0x44dc68),this['_defaultCallbacks']['set']('deletion:join',_0x20581f),this['_defaultCallbacks']['set']('deletion:chain',_0x27f73f),this['_defaultCallbacks']['set']('formatInline:accept',_0x3541f8),this['_defaultCallbacks']['set']('formatInline:discard',_0x44dc68),this['_defaultCallbacks']['set']('formatInline:join',_0x20581f),this['_defaultCallbacks']['set']('formatInline:chain',_0x44dc68),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3541f8),this['_defaultCallbacks']['set']('formatBlock:discard',_0x44dc68),this['_defaultCallbacks']['set']('formatBlock:join',_0x20581f),this['_defaultCallbacks']['set']('formatBlock:chain',_0x44dc68),this['_defaultCallbacks']['set']('attribute:accept',_0x44dc68),this['_defaultCallbacks']['set']('attribute:discard',(_0x1b2b55,_0x3565c3)=>{if(!_0x3565c3)return;const _0x5e5c9d=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x53f129=>{if(_0x3565c3['key']==u)for(const _0x3cff37 of _0x1b2b55){const _0x5da755=_0x3cff37['start']['nodeAfter'],_0x576c41=_0x3565c3['oldValue'];_0x53f129['rename'](_0x5da755,_0x576c41);}else{if(_0x5e5c9d['_isBlockAttribute'](_0x3565c3['key'])){for(const _0x677344 of _0x1b2b55)void 0x0!==_0x3565c3['oldValue']?_0x53f129['setAttribute'](_0x3565c3['key'],_0x3565c3['oldValue'],_0x677344['start']['nodeAfter']):_0x53f129['removeAttribute'](_0x3565c3['key'],_0x677344['start']['nodeAfter']);}else{for(const _0x3cb026 of _0x1b2b55)_0x3565c3['oldValue']?_0x53f129['setAttribute'](_0x3565c3['key'],_0x3565c3['oldValue'],_0x3cb026):_0x53f129['removeAttribute'](_0x3565c3['key'],_0x3cb026);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x20581f);}}function Vt(_0x1bda0f,_0x8dd034,_0x1f968d){for(const _0x225f0d of _0x8dd034['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x225f0d['root']==_0x225f0d)return!0x1;if(!_0x1f968d['containsItem'](_0x225f0d))return!0x1;if(_0x1bda0f['isObject'](_0x225f0d)||_0x1bda0f['isLimit'](_0x225f0d))return!0x0;}return!0x1;}function Ft(_0x5ee918){return _0x5ee918['end']['parent']==_0x5ee918['start']['nodeAfter']&&_0x5ee918['end']['isAtStart'];}function Pt(_0x31dfae,_0x1a9c46,_0xc57802,_0x4bbbc0){const _0x419e8a=_0x2f00a8=>!_0x2f00a8['item']['is']('$textProxy')&&!_0x4bbbc0['isObject'](_0x2f00a8['item']),_0xf71df8=_0x31dfae['start']['getLastMatchingPosition'](_0x419e8a),_0x448047=_0x31dfae['end']['getLastMatchingPosition'](_0x419e8a,{'direction':'backward'});return(!_0x31dfae['start']['isEqual'](_0xf71df8)||!_0x31dfae['end']['isEqual'](_0x448047))&&(_0xf71df8['isBefore'](_0x448047)?_0xc57802['updateMarker'](_0x1a9c46,{'range':_0xc57802['createRange'](_0xf71df8,_0x448047)}):_0xc57802['removeMarker'](_0x1a9c46),!0x0);}function Gt(_0x4d8e9b){return _0x5e4436(_0x4d8e9b);}function Lt(_0x3a08e6){const _0x43b46f=_0x3a08e6['start']['nodeAfter'];return _0x43b46f&&_0x43b46f['is']('element');}function Jt(_0x1de74a,_0x1ac802){return null==_0x1de74a['end']['nodeBefore']&&_0x1de74a['end']['parent']==_0x1de74a['start']['nodeAfter']?Kt(_0x1de74a['start']['nodeAfter'],_0x1ac802):_0x1de74a;}function Kt(_0x4aba10,_0x53ae76){const _0x35bd1f=_0x53ae76['schema']['isObject'](_0x4aba10)||_0x53ae76['schema']['isSelectable'](_0x4aba10);return _0x53ae76['createRange'](_0x53ae76['createPositionAt'](_0x4aba10,'before'),_0x35bd1f?_0x53ae76['createPositionAfter'](_0x4aba10):_0x53ae76['createPositionAt'](_0x4aba10,'end'));}function Ht(_0x2b1e94,_0x3e12a7,_0x2d4b68,_0x24f899){return!!qt(_0x2b1e94,_0x3e12a7)&&_0x2d4b68['end']['isEqual'](_0x24f899['start']);}function qt(_0x184e3f,_0x3bd646){if(!_0x184e3f['_isDataLoaded']||!_0x3bd646['_isDataLoaded'])return!0x1;const _0x3c31ca=new Set(Object['keys'](_0x184e3f['attributes'])),_0x37183a=new Set(Object['keys'](_0x3bd646['attributes']));if(_0x3c31ca['delete']('groupId'),_0x37183a['delete']('groupId'),0x0==_0x3c31ca['size']&&0x0==_0x37183a['size'])return!0x0;if(_0x3c31ca['size']!=_0x37183a['size'])return!0x1;const _0xf1e161={..._0x184e3f['attributes']},_0x1b73c3={..._0x3bd646['attributes']};return delete _0xf1e161['groupId'],delete _0x1b73c3['groupId'],JSON['stringify'](_0xf1e161)==JSON['stringify'](_0x1b73c3);}function zt(_0x3a148c,_0x599610){const _0x3d78cc=Wt(_0x3a148c['attributes']),_0x17e1b0=Wt(_0x599610);if(!_0x3a148c['_isDataLoaded'])return!0x1;for(const _0x6885f of Object['keys'](_0x17e1b0))if(!_0x2fcc92(_0x3d78cc[_0x6885f],_0x17e1b0[_0x6885f]))return!0x1;return!0x0;}function Wt(_0x27587f){const _0x15a208=Object['assign']({},_0x27587f);return delete _0x15a208['skipNestingCheck'],delete _0x15a208['tablePasteChainId'],_0x15a208;}class pe extends/* #__PURE__ -- @preserve */
25
- _0x167997(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4c513b,_0x3ea948,_0x289f93,_0x2b11bd){super(),this['model']=_0x3ea948,this['view']=_0x289f93,this['commentThreadController']=_0x2b11bd,this['_editor']=_0x4c513b,this['_acceptCommand']=_0x4c513b['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4c513b['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4b4eb8,_0x48d42e)=>_0x4b4eb8||_0x48d42e),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x70c342=>_0x70c342&&this['_editor']['model']['canEditAt'](_0x3ea948['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x59c7c5=>_0x59c7c5&&this['_editor']['model']['canEditAt'](_0x3ea948['getRanges']())),this['_pendingAction']=null,_0x289f93['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x289f93,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x289f93,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x289f93,'change:isDirty',()=>{_0x289f93['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 _0x581e95=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x581e95);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x3adef7{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x1f3617,_0x4eba55,_0x466820,_0x440948){super(_0x1f3617),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x3cbb68(_0x1f3617,c(_0x1f3617,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x4eba55['authoredAt']),this['bind']('authoredAt')['to'](_0x4eba55),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',_0x4eba55,'authoredAt',this,'descriptionParts',(_0x564df2,_0xb382b4,_0x190652)=>{const _0x54b188=_0x190652['map'](_0x405a27=>ls(_0x405a27['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x564df2-0x1,_0x4eba55['author']['name'],_0xb382b4?_0x440948['formatDateTime'](_0xb382b4):'',new DOMParser()['parseFromString'](_0x54b188,'text/html')['body']['textContent']]);}),this['focusables']=new _0xaccf69(),this['focusTracker']=new _0x5478d8(),this['keystrokes']=new _0x6510(),this['focusCycler']=new _0x3f08ed({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5f192c=>_0x5f192c['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x4eba55,this['_localUser']=_0x466820,this['_config']=_0x440948,_0x440948['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x4fdd80(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x45add1}=this['_config'];this['commentsListView']=new _0x45add1(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',_0x54f509=>_0x54f509+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x170609,_0x57ace0)=>_0x170609||!!_0x57ace0);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x3f423e}=this['_config'],_0x5a8f86=new _0x3f423e(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4d85df=_0x5a8f86['commentInputView'];return _0x5a8f86['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4d85df,'value',(_0x2e7bc8,_0x3f782b,_0x1bc564)=>!!_0x1bc564||_0x2e7bc8&&!_0x3f782b),_0x4d85df['on']('submit',(_0x59128d,_0x514e76)=>{this['fire']('addComment',_0x514e76),_0x4d85df['editor']['setData']('');}),_0x4d85df['on']('cancel',()=>this['focus']()),_0x4d85df['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x5a8f86;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x5c4702,_0x50bcc6,_0x467b76,_0x2f615e){super(_0x5c4702,_0x50bcc6,_0x467b76,_0x2f615e),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x4d464d=>_0x4d464d&&_0x4d464d[0x0]?_0x4d464d[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x5419df,_0x106d08)=>{let _0x11817e='';for(const _0x1bbefc of _0x5419df)_0x11817e+='<p>'+ls(_0x1bbefc['content'],_0x1bbefc['color'])+'</p>';return _0x106d08?_0x11817e:ti(_0x11817e,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x2f615e['SuggestionView'](_0x5c4702,_0x50bcc6,{'formatDateTime':_0x2f615e['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 _0x32e2df=this['bindTemplate'],_0x3811e2=[this['suggestionView']];return this['commentsListView']&&_0x3811e2['push'](this['commentsListView']),this['commentThreadInputView']&&_0x3811e2['push'](this['commentThreadInputView']),_0x3811e2['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x32e2df['if']('isActive','ck-suggestion-wrapper--active'),_0x32e2df['to']('type',_0x1829a4=>'ck-suggestion-'+_0x1829a4),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':_0x32e2df['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x3811e2};}['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 _0x3adef7{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x13db64,_0x1afe4f,_0x30856c){super(_0x13db64),this['_model']=_0x1afe4f,this['_config']=_0x30856c,this['set']('description',''),this['bind']('authoredAt')['to'](_0x1afe4f),this['acceptButton']=this['_createButton'](c(_0x13db64,'Accept\x20suggestion'),_0x1a9227,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x13db64,'Discard\x20suggestion'),_0x28059a,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x3ddb6c(_0x13db64,_0x1afe4f['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0xaccf69([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5478d8(),this['keystrokes']=new _0x6510(),this['focusCycler']=new _0x3f08ed({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x59d180=>_0x59d180['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x53ef4c=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x53ef4c['innerHTML']=this['description'],this['on']('change:description',(_0x294bb5,_0x9ee96d,_0x195087)=>{_0x53ef4c['innerHTML']=_0x195087;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x54913f=this['bindTemplate'],_0x3b0ac0=[{'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':_0x54913f['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x54913f['to']('authoredAt',_0x434aa6=>this['_config']['formatDateTime'](_0x434aa6))}]}]},{'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']&&_0x3b0ac0['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':_0x3b0ac0}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x4d4051,_0x3d1717,_0x59eada,_0x452777,_0x4aa7d4){const _0x332dbb=new _0x161237(this['locale']);return _0x332dbb['set']({'label':_0x4d4051,'icon':_0x3d1717,'tooltip':!0x0,'tooltipPosition':_0x4aa7d4}),_0x332dbb['extendTemplate']({'attributes':{'class':_0x59eada}}),_0x332dbb['on']('execute',()=>{this['fire'](_0x452777,this['_model']['id']);}),_0x332dbb;}['_setupKeyboardNavigation'](){const _0x1ffd9d=this['element'];this['keystrokes']['listenTo'](_0x1ffd9d);for(const _0x3242e7 of this['focusables'])this['focusTracker']['add'](_0x3242e7['element']),this['keystrokes']['listenTo'](_0x3242e7['element']);this['keystrokes']['set']('enter',(_0x1ba40c,_0x1752d9)=>{_0x1ffd9d===_0x1ba40c['target']&&(this['focusCycler']['focusFirst'](),_0x1752d9());}),this['keystrokes']['set']('esc',(_0x2afb0a,_0x4d1f3f)=>{_0x1ffd9d!==_0x2afb0a['target']&&(this['focus'](),_0x4d1f3f());});}}class d extends _0x34c566{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x39c23b,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1f81c8){super(_0x1f81c8),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x83763e=this['editor']['config'];_0x83763e['define']('trackChanges.SuggestionThreadView',fe),_0x83763e['define']('trackChanges.SuggestionView',we),_0x83763e['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x83763e['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x200518,_0x5ef417){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x148ec6,_0x9df546]of this['_handleControllerBuffer']){const _0x188e9d=this['_suggestionToController']['has'](_0x148ec6);_0x188e9d||_0x9df546?_0x188e9d&&_0x9df546&&this['_destroyController'](_0x148ec6):this['_initializeController'](_0x148ec6);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x200518,_0x5ef417);}['init'](){const _0xce2cc=this['editor'],_0x1c5f39=_0xce2cc['plugins']['get']('TrackChangesEditing'),_0x3b257b=_0xce2cc['plugins']['get']('Annotations'),_0x2d004b=_0xce2cc['plugins']['get']('EditorAnnotations'),_0x3d53ff=_0xce2cc['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x2d004b['addSourceCollector'](()=>{const _0x36db4d=[];for(const [_0xce2edb,_0x3e43e6]of Array['from'](this['_suggestionToController'])){const _0x29b2e7=_0xce2edb['getAllAdjacentSuggestions'](),_0x4de99d=[];for(const _0x1eb1ac of _0x29b2e7){if(!_0x1eb1ac['isInContent'])continue;if(_0x1eb1ac['isMultiRange']){_0x4de99d['push'](..._0x1eb1ac['getRanges']());continue;}const _0x32533=_0x1eb1ac['getFirstRange']();if(_0x4de99d['length']>0x0){const _0x201005=_0x4de99d[0x0]['getJoined'](_0x32533);if(_0x201005){_0x4de99d[0x0]=_0x201005;continue;}}_0x4de99d['push'](_0x32533);}_0x36db4d['push']([_0x3e43e6['view'],_0x4de99d]);}return _0x36db4d;}),this['listenTo'](_0x1c5f39,'suggestionLoaded',(_0x56a4f0,_0x402088)=>{this['listenTo'](_0x402088,'change:previous',(_0x5b4330,_0x28dd86,_0x49a161,_0x554e20)=>{_0x402088['isInContent']&&(null==_0x49a161?(this['_updateController'](_0x554e20['head']),this['_handleSuggestionControllerDelayed'](_0x402088,!0x1)):(this['_updateController'](_0x49a161['head']),null==_0x554e20&&this['_handleSuggestionControllerDelayed'](_0x402088,!0x0)));}),null!==_0x402088['previous']?this['_updateController'](_0x402088['head']):this['_handleSuggestionControllerDelayed'](_0x402088,!0x1);}),this['listenTo'](_0x1c5f39,'suggestionUnloaded',(_0x26e502,_0x179807,_0xa55053)=>{this['stopListening'](_0x179807,'change:previous'),this['_handleControllerBuffer']['delete'](_0x179807),this['_suggestionToController']['has'](_0x179807)&&this['_destroyController'](_0x179807),_0xa55053&&this['_updateController'](_0xa55053['head']);}),this['listenTo'](_0x1c5f39,'suggestionChanged',(_0xa0f55c,_0x5aa83d)=>{this['_updateController'](_0x5aa83d);}),this['listenTo'](_0x3b257b,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x3d53ff,'addComment',(_0x1d86ab,{threadId:_0x1552ff,isFromAdapter:_0x5d5a00})=>{if(_0x5d5a00||!_0x1c5f39['hasSuggestion'](_0x1552ff))return;const _0x2c8ae3=_0x1c5f39['getSuggestion'](_0x1552ff);this['_suggestionToController']['get'](_0x2c8ae3)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1decc5=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x487391;for(const _0x362b80 in _0x1decc5){const _0x1f25db=_0x362b80,_0x141973=_0x1decc5[_0x1f25db];if('trackChangesLicenseKeyValid'==_0x141973||'trackChangesLicenseKeyInvalid'==_0x141973||'trackChangesLicenseKeyExpired'==_0x141973||'trackChangesLicenseKeyDomainLimit'==_0x141973||'trackChangesLicenseKeyNotAllowed'==_0x141973||'trackChangesLicenseKeyEvaluationLimit'==_0x141973||'trackChangesLicenseKeyTrialLimit'==_0x141973||'trackChangesLicenseKeyUsageLimit'==_0x141973){delete _0x1decc5[_0x1f25db],_0x487391=_0x141973,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x487391&&_0x1decc5['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x487391&&_0x1decc5['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x487391&&_0x1decc5['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x487391&&_0x1decc5['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x487391&&_0x1decc5['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x487391&&_0x1decc5['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x487391&&_0x1decc5['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x1a1d9b=this['editor']['plugins']['get']('Annotations'),_0x27f61f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4fcdcb=Array['from'](_0x1a1d9b['activeAnnotations'],_0x46aced=>_0x46aced['innerView'])['filter'](_0x38ac57=>this['_viewToController']['has'](_0x38ac57)),_0x3ace40=[];for(const _0x51449e of _0x4fcdcb){const _0x50edd6=this['_viewToController']['get'](_0x51449e)['model']['getAllAdjacentSuggestions']();_0x3ace40['push'](..._0x50edd6['reduce']((_0x2d9a77,_0x4efc3d)=>[..._0x2d9a77,..._0x4efc3d['getMarkerNames']()],[]));}_0x27f61f['activeMarkers']=_0x3ace40;}['_addUIComponentsToFactory'](){const _0x109e00=this['editor'],_0x592e09=_0x109e00['locale'],_0x4b6c0c=c(_0x592e09,'Track\x20changes'),_0x5908c7=new _0x31c05c([{'type':'switchbutton','model':new _0x42d424({'withText':!0x0,'isToggleable':!0x0,'label':_0x4b6c0c,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x42d424({'withText':!0x0,'label':c(_0x592e09,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x42d424({'withText':!0x0,'label':c(_0x592e09,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x42d424({'withText':!0x0,'label':c(_0x592e09,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x42d424({'withText':!0x0,'label':c(_0x592e09,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x109e00['plugins']['has']('TrackChangesPreview')&&_0x5908c7['addMany']([{'type':'separator'},{'type':'button','model':new _0x42d424({'withText':!0x0,'label':c(_0x592e09,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x4b43b0 of _0x5908c7)if(ke(_0x4b43b0)){const _0x40834a=_0x109e00['commands']['get'](_0x4b43b0['model']['commandName']);_0x4b43b0['model']['bind']('isOn','isEnabled')['to'](_0x40834a,'value','isEnabled');}_0x109e00['ui']['componentFactory']['add']('trackChanges',_0x26e2bf=>this['_createToolbarButton'](_0x26e2bf,_0x5908c7,_0x4b6c0c)),_0x109e00['ui']['componentFactory']['add']('menuBar:trackChanges',_0x555ed1=>this['_createMenuBarMenu'](_0x555ed1,_0x5908c7,_0x4b6c0c));}['_createToolbarButton'](_0x248956,_0x5c97ef,_0x54cc79){const _0x10f9be=_0x45b565(_0x248956,_0x33594b),_0x3640df=this['editor']['commands']['get']('trackChanges');_0x10f9be['buttonView']['set']({'tooltip':_0x54cc79,'label':_0x54cc79,'icon':_0x24eff7}),_0x10f9be['buttonView']['bind']('isOn')['to'](_0x3640df,'value'),_0x10f9be['buttonView']['on']('execute',()=>{_0x3640df['execute'](),this['editor']['editing']['view']['focus']();}),_0x460393(_0x10f9be,_0x5c97ef,{'role':'menu'});const _0x44ec7a=[];for(const _0x25ddca of _0x5c97ef)ke(_0x25ddca)&&_0x44ec7a['push'](this['editor']['commands']['get'](_0x25ddca['model']['commandName']));const _0x3cb730=_0x10f9be['buttonView'];return _0x3cb730['actionView']['unbind']('isEnabled'),_0x3cb730['arrowView']['unbind']('isEnabled'),_0x3cb730['actionView']['bind']('isEnabled')['to'](_0x3640df,'isEnabled'),_0x3cb730['arrowView']['bind']('isEnabled')['toMany'](_0x44ec7a,'isEnabled',(..._0x31e6cf)=>_0x31e6cf['some'](_0x8a6967=>_0x8a6967)),_0x10f9be['on']('execute',_0x59b51c=>{this['editor']['execute'](_0x59b51c['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x10f9be;}['_createMenuBarMenu'](_0x37bc1c,_0x2dc200,_0x20c780){const _0x2aec26=new _0x3179a1(_0x37bc1c),_0x15ce58=this['editor']['commands']['get']('trackChanges');_0x2aec26['buttonView']['set']({'label':_0x20c780,'icon':_0x24eff7});const _0x11b8c1=new _0x3b0906(_0x37bc1c);for(const _0x48a1b0 of _0x2dc200){if('separator'==_0x48a1b0['type']){_0x11b8c1['items']['add'](new _0x749f78(_0x37bc1c));continue;}const _0x284305=new _0x402aaf(_0x37bc1c,_0x2aec26),_0x423bf8=new _0x546d40(_0x37bc1c),_0x49bda5=_0x48a1b0['model'];_0x423bf8['bind'](...Object['keys'](_0x49bda5))['to'](_0x49bda5),_0x423bf8['delegate']('execute')['to'](_0x2aec26),_0x423bf8['on']('execute',()=>{this['editor']['execute'](_0x49bda5['commandName']),this['editor']['editing']['view']['focus']();}),_0x284305['children']['add'](_0x423bf8),_0x11b8c1['items']['add'](_0x284305);}return _0x2aec26['bind']('isEnabled')['to'](_0x15ce58,'isEnabled'),_0x2aec26['panelView']['children']['add'](_0x11b8c1),_0x2aec26;}['_initializeController'](_0x5c5ec0){const _0x272ee8=this['editor'],_0x414a5e=_0x272ee8['config'],_0x499d61=_0x272ee8['plugins']['get']('Annotations'),_0x5344ad=_0x272ee8['plugins']['get']('CommentsRepository'),_0x38d737=_0x272ee8['plugins']['get']('EditorAnnotations'),_0x568d2c=_0x272ee8['plugins']['get'](_0x39c23b)['me'],_0x59a39f=_0x414a5e['get']('trackChanges')['SuggestionThreadView'],_0x300511=_0x414a5e['get']('trackChanges')['SuggestionView'],{CommentsListView:_0xef303c,CommentThreadInputView:_0x362952}=_0x272ee8['plugins']['get']('CommentsUI');let _0x314631,_0x480f2a,_0xb95cb8;this['_annotationViews']['has'](_0x5c5ec0['id'])?(_0x480f2a=this['_annotationViews']['get'](_0x5c5ec0['id']),_0x314631=_0x480f2a['mainView']):(_0x314631=new _0x59a39f(_0x272ee8['locale'],_0x5c5ec0,_0x568d2c,{'disableComments':this['_disableComments'],'editorConfig':{..._0x414a5e['get']('comments.editorConfig'),'licenseKey':_0x414a5e['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x414a5e['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x414a5e['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x414a5e['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x309745(_0x414a5e['get']('locale')),'CommentView':_0x414a5e['get']('comments')['CommentView'],'CommentsListView':_0xef303c,'CommentThreadInputView':_0x362952,'SuggestionView':_0x300511}),_0x314631['suggestionView']['acceptButton']['on']('execute',()=>{_0x272ee8['editing']['view']['focus']();}),_0x314631['suggestionView']['discardButton']['on']('execute',()=>{_0x272ee8['editing']['view']['focus']();}),_0x480f2a=_0x499d61['createAnnotationView'](this['editor']['locale'],_0x314631),_0x480f2a['bind']('isDirty')['to'](_0x314631,'isDirty'),_0x480f2a['bind']('length')['to'](_0x314631),_0x480f2a['bind']('type')['to'](_0x314631,'type',_0x151ca4=>'suggestion-'+_0x151ca4),_0x314631['on']('escape',()=>{_0xb95cb8['fire']('escape');}),this['_annotationViews']['set'](_0x5c5ec0['id'],_0x480f2a));const _0x50b8d7=_0x5344ad['createCommentThreadController'](_0x5c5ec0['commentThread'],_0x314631),_0x19a044=new pe(_0x272ee8,_0x5c5ec0,_0x314631,_0x50b8d7),_0x202ab9=_0x5c5ec0['getAllAdjacentSuggestions']()['filter'](_0xd78952=>_0xd78952['isInContent']);_0x314631['descriptionParts']=_0x272ee8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x202ab9),this['_suggestionToController']['set'](_0x5c5ec0,_0x19a044),this['_viewToController']['set'](_0x314631,_0x19a044),_0xb95cb8=_0x499d61['createAnnotation']({'view':_0x480f2a,'target':()=>{const _0x46a992=[],_0x46b74a=_0x5c5ec0['getAllAdjacentSuggestions']()['filter'](_0x4bdda4=>_0x4bdda4['isInContent']);for(const _0x5c536a of _0x46b74a)_0x46a992['push'](..._0x5c536a['getMarkers']());return _0x13d673(_0x272ee8['editing'],_0x46a992);},'type':()=>'suggestion-'+_0x19a044['view']['type']}),_0x5344ad['_bindAnnotationToEditors'](_0x314631,_0xb95cb8),_0x499d61['add'](_0xb95cb8),_0x38d737['registerAnnotation'](_0xb95cb8);}['_destroyController'](_0x126e88){const _0x37a8a2=this['editor']['plugins']['get']('CommentsRepository'),_0xf751cf=this['editor']['plugins']['get']('Annotations'),_0x2e6634=this['_suggestionToController']['get'](_0x126e88),_0x5ce487=_0x2e6634['view'],_0x4844f4=_0xf751cf['getByInnerView'](_0x5ce487);_0x37a8a2['_unbindEditors'](_0x5ce487),_0x4844f4&&_0xf751cf['remove'](_0x4844f4),this['_suggestionToController']['delete'](_0x126e88),this['_viewToController']['delete'](_0x5ce487),_0x2e6634['destroy']();}['_updateController'](_0x260007){if(!_0x260007['isInContent']||!this['_suggestionToController']['has'](_0x260007))return;const _0x2f8de5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4fcc44=this['_suggestionToController']['get'](_0x260007),_0x16acbd=_0x260007['getAllAdjacentSuggestions']();_0x4fcc44['view']['descriptionParts']=_0x2f8de5['descriptionFactory']['getDescriptions'](_0x16acbd);}['destroy'](){for(const _0x47ad20 of this['_suggestionToController']['keys']())this['_destroyController'](_0x47ad20);for(const _0x1b190b of this['_annotationViews']['values']())_0x1b190b['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x170f96){return'model'in _0x170f96;}class k extends _0x34c566{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x41264c){this['editor']['plugins']['get'](p)['adapter']=_0x41264c;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x1b8a82){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x1b8a82);}['getSuggestions']({skipNotAttached:_0x467c73=!0x1,toJSON:_0x5bf5e8=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x467c73,'toJSON':_0x5bf5e8});}['getSuggestion'](_0x33fd3e){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x33fd3e);}}const w=['Pagination'];class T extends _0x34c566{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x336a3f=this['editor'];if(_0x336a3f['config']['define']('trackChangesData.editorCreator',_0x4997c6=>{const _0x8d6886=_0x336a3f['model']['document']['getRootNames']()['reduce']((_0x2fd70a,_0x26ac75)=>(_0x2fd70a[_0x26ac75]='',_0x2fd70a),{});return _0x336a3f['constructor']['create'](_0x8d6886,_0x4997c6);}),'function'!=typeof _0x336a3f['config']['get']('trackChangesData')['editorCreator'])throw new _0x2b6413('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x51fec1){return N(this['editor'],!0x0,_0x51fec1);}['getDataWithDiscardedSuggestions'](_0x46d9f9){return N(this['editor'],!0x1,_0x46d9f9);}}class D extends _0x34c566{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4c905b){function _0x20f1fc(_0x16d483){return _0x16d483['map'](_0x191f36=>String['fromCharCode'](_0x191f36))['join']('');}super(_0x4c905b),this['result']='end',_0x4c905b[_0x20f1fc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x20f1fc([0x76,0x69,0x65,0x77])][_0x20f1fc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x20f1fc([0x61,0x75,0x74,0x6f]),_0x4c905b[_0x20f1fc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x20f1fc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x20f1fc([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x20f1fc([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x20f1fc([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 Fe(_0xc0777e){return void 0x0!==_0xc0777e['getRootsAttributes'];}async function N(_0x14a453,_0x323c48,_0x5dd1f8){const _0x17931f=_0x519a21(_0x14a453,w);_0x17931f['plugins']['push'](p,D),_0x17931f['rootsAttributes']=Fe(_0x14a453)?_0x14a453['getRootsAttributes']():void 0x0;const _0x45fd7c=document['createDocumentFragment'](),_0x205d4c=_0x14a453['config']['get']('trackChangesData')['editorCreator'],_0x3633e9=await _0x205d4c(_0x17931f,()=>function(_0x1be8f7){const _0x5e5856=document['createElement']('div');return _0x1be8f7['appendChild'](_0x5e5856),_0x5e5856;}(_0x45fd7c));!function(_0x514569,_0x5d1271){const _0x6b3cc5=_0x514569['model']['document']['getRootNames']()['reduce']((_0xae37da,_0x5137bf)=>(_0xae37da[_0x5137bf]=_0x514569['data']['get']({'rootName':_0x5137bf}),_0xae37da),{}),_0x6df8fa=_0x514569['plugins']['get']('Users')['users']['map'](_0x4d5f72=>({'id':_0x4d5f72['id'],'name':_0x4d5f72['name']})),_0x3fede8=_0x514569['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x576ade=_0x514569['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x21913a=_0x5d1271['plugins']['get']('Users'),_0x23fe7e=_0x5d1271['plugins']['get']('TrackChangesEditing'),_0x27d4bc=_0x5d1271['plugins']['get']('CommentsRepository');for(const _0x8ddf45 of _0x27d4bc['getCommentThreads']())_0x8ddf45['remove']();for(const _0x300868 of _0x6df8fa)_0x21913a['getUser'](_0x300868['id'])||_0x21913a['addUser'](_0x300868);_0x21913a['me']||_0x21913a['useAnonymousUser']();for(const _0x114db6 of _0x576ade)_0x27d4bc['addCommentThread'](_0x114db6);for(const _0x216d5b of _0x3fede8)_0x23fe7e['addSuggestionData'](_0x216d5b);_0x5d1271['data']['set'](_0x6b3cc5);}(_0x14a453,_0x3633e9),_0x3633e9['execute'](_0x323c48?'acceptAllSuggestions':'discardAllSuggestions');const _0x5461fd=Fe(_0x3633e9)?_0x3633e9['getFullData'](_0x5dd1f8):_0x3633e9['data']['get'](_0x5dd1f8);return await _0x3633e9['destroy'](),_0x5461fd;}class Me extends _0x3adef7{['options'];constructor(_0x584349,_0x1e82de){super(_0x584349),this['options']=_0x1e82de,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'](_0x5bfa22,_0x17f5d7){if(!this['element'])return;const _0x482ce5=[];for(const [_0x31b53f,_0x4f8d63]of _0x5bfa22){const _0x5becee=document['createElement']('div');_0x5becee['setAttribute']('data-ck-root-name',_0x31b53f),_0x5becee['className']=_0x4f8d63['classes']+'\x20ck-track-changes-preview__root-container',_0x5becee['innerHTML']=_0x4f8d63['content'],_0x482ce5['push'](_0x5becee);}_0x17f5d7(this['element'],_0x482ce5),this['element']['style']['width']='',this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x473ad7{constructor(_0x3e4a6a){super(_0x3e4a6a),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0xd9c88=this['editor'],_0x219b60=_0xd9c88['locale'],_0x44b81a=_0xd9c88['plugins']['get']('Dialog');let _0x5e1db3;const _0x561133=function(_0xc50a21){const _0x481649={};if('editables'in _0xc50a21['ui']['view']){for(const [_0x573d8e,_0x1f2ce6]of Object['entries'](_0xc50a21['ui']['view']['editables']))_0x481649[_0x573d8e]=_0x1f2ce6['element'];}else _0x481649[_0xc50a21['model']['document']['getRootNames']()[0x0]]=_0xc50a21['ui']['view']['editable']['element'];return _0x481649;}(_0xd9c88),_0x53e3e8=function(_0x277e24){let _0xd8aef=0x0;for(const _0x4bc143 of Object['values'](_0x277e24))_0xd8aef=Math['max'](_0xd8aef,_0x4bc143['getBoundingClientRect']()['width']);let _0x4f484c=0x0;for(const _0x9c4451 of Object['values'](_0x277e24))_0x4f484c+=_0x9c4451['getBoundingClientRect']()['height'];const _0x2ecb82=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x3690e8=Math['min'](_0x4f484c,_0x2ecb82);return{'width':_0xd8aef,'height':_0x3690e8};}(_0x561133);_0x44b81a['show']({'id':'finalContentPreview','title':c(_0x219b60,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x219b60,{'dialogRects':_0x53e3e8}),'onHide':()=>{_0x5e1db3['detachFromDom']();},'onShow':()=>{_0xd9c88['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x22bcd4=>{const _0x2f635d=this['_standarizeRootsData'](_0x22bcd4,_0xd9c88,_0x561133);_0x44b81a['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x2f635d,_0xd9c88['config']['get']('trackChanges.preview.renderFunction'));}),_0x5e1db3=new _0x178aac(_0x219b60,[_0x44b81a['view']]),_0x5e1db3['attachToDom'](),_0x5e1db3['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0xd9c88['once']('destroy',()=>{_0x5e1db3['detachFromDom']();});const _0x471db8=_0x44b81a['view']['headerView']['class'];_0x44b81a['view']['headerView']['class']=_0x471db8?_0x471db8+'\x20ck-reset_all':'ck-reset_all',_0x44b81a['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x44b81a['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x36961c=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x5bdd04=_0x36961c['previewMode'],_0x511356={};if('$labels'===_0x5bdd04){for(const _0x1ee38c of _0x36961c['getMergeFieldsIds']())_0x511356[_0x1ee38c]=_0x36961c['getLabel'](_0x1ee38c)||_0x1ee38c;}else{const _0x372107='$defaultValues'===_0x5bdd04?_0x36961c['getDefaultValues']():_0x36961c['getDataSetValues'](_0x5bdd04,!0x0);for(const _0x4e862 of Object['entries'](_0x372107)){const [_0xc0ddf2,_0x1893a0]=_0x4e862;_0x511356[_0xc0ddf2]=null!==_0x1893a0?_0x1893a0:_0x36961c['getLabel'](_0xc0ddf2)||_0xc0ddf2;}}return{'mergeFieldsData':_0x511356};}['_standarizeRootsData'](_0x41ce1a,_0x167e56,_0x331288){let _0x51a0d1;if('string'==typeof _0x41ce1a){const _0x45d252=_0x167e56['model']['document']['getRootNames']()[0x0];_0x51a0d1={[_0x45d252]:_0x41ce1a};}else _0x51a0d1=_0x41ce1a;const _0x4ca80e=this['_fixMediaEmbeds'](_0x51a0d1,_0x167e56),_0x13a755=function(_0x5846c7,_0x26168e){for(const [_0x5c9ccb,_0x386930]of _0x5846c7)_0x386930['classes']=_0x26168e[_0x5c9ccb]['classList']['value']['replace']('ck-focused','');return _0x5846c7;}(this['_sortRoots'](_0x167e56)['reduce']((_0x580dd4,_0x3e2823)=>(_0x580dd4['push']([_0x3e2823,{'content':_0x4ca80e[_0x3e2823],'classes':''}]),_0x580dd4),[]),_0x331288);return _0x13a755;}['_fixMediaEmbeds'](_0x4dafc7,_0x1b53e9){if(!_0x1b53e9['plugins']['has']('MediaEmbedEditing'))return _0x4dafc7;const _0x367eae=_0x1b53e9['plugins']['get']('MediaEmbedEditing');for(const [_0x1c39f2,_0x2198e9]of Object['entries'](_0x4dafc7)){const _0x4509bb=document['createElement']('div');_0x4509bb['innerHTML']=_0x2198e9,(_0x4509bb['querySelectorAll']('figure.media')['forEach'](_0x185015=>{const _0x3042ea=_0x185015['querySelector']('oembed');if(_0x3042ea){const _0x33bb38=_0x3042ea['getAttribute']('url');if(_0x33bb38){const _0x1f22e7=_0x367eae['registry']['getMediaViewElement'](new _0x30a57d(_0x1b53e9['editing']['view']['document']),_0x33bb38,{'elementName':'','renderForEditingView':!0x0}),_0x21dee6=document['createElement']('div');_0x21dee6['classList']['add']('ck-media__wrapper'),_0x1f22e7['render'](_0x21dee6,_0x1b53e9['editing']['view']['domConverter']),_0x3042ea['replaceWith'](_0x21dee6);}}}),_0x4dafc7[_0x1c39f2]=_0x4509bb['innerHTML']);}return _0x4dafc7;}['_sortRoots'](_0xbcd36a){if(!function(_0x484380){return void 0x0!==_0x484380['getRootsAttributes'];}(_0xbcd36a))return _0xbcd36a['model']['document']['getRootNames']();const _0x553d46=[],_0xb552a1=new Map();for(const _0x4e55d8 of _0xbcd36a['model']['document']['getRootNames']()){const _0x599614=_0xbcd36a['editing']['view']['getDomRoot'](_0x4e55d8)['getClientRects']()['item'](0x0);_0x553d46['push'](_0x4e55d8),_0xb552a1['set'](_0x4e55d8,_0x599614);}return _0x553d46['sort']((_0x3cc660,_0x4c642a)=>{const _0x3e6c54=_0xb552a1['get'](_0x3cc660),_0x239b15=_0xb552a1['get'](_0x4c642a);return _0x3e6c54['y']-_0x239b15['y']||_0x3e6c54['x']-_0x239b15['x'];}),_0x553d46;}}class te extends _0x34c566{static get['requires'](){return[T,_0x156ea0];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xeb859a){super(_0xeb859a),_0xeb859a['commands']['add']('previewFinalContent',new re(this['editor'])),_0xeb859a['config']['define']('trackChanges.preview.renderFunction',(_0x5d1047,_0x380025)=>{for(const _0x1c0582 of _0x380025)_0x5d1047['appendChild'](_0x1c0582);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
23
+ import{Command as _0x1e4565,Plugin as _0x260752,PendingActions as _0x549d89}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x1f12e3,ObservableMixin as _0x381222,uid as _0x1fa35e,priorities as _0x28a48a,insertToPriorityArray as _0x369b27,logWarning as _0x96e42b,getEnvKeystrokeText as _0x2d64a7,FocusTracker as _0x16f08d,KeystrokeHandler as _0x167f33,Collection as _0x9b4b57}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x7d9f7a,IconCancel as _0x44ad28,IconTrackChanges as _0x518109}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as Zt,View as _0x54b9d4,ViewCollection as _0x390f72,FocusCycler as _0x47687c,ViewModel as _0x45ea45,createDropdown as _0x195612,SplitButtonView as _0x5a6da0,addListToDropdown as _0x448ce7,MenuBarMenuView as _0x2c3583,MenuBarMenuListView as _0x1fc0ad,ListSeparatorView as _0x2c385c,MenuBarMenuListItemView as _0x5cdf65,MenuBarMenuListItemButtonView as _0xb462d7,BodyCollection as _0x5b5f58,Dialog as _0x721847}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0xaaa6db,hashObject as _0x457c17,surroundingMarkersDetector as _0x5c0cbc,FOCUS_ANNOTATION_KEYSTROKE as _0x5738ef,AriaDescriptionView as _0x45442a,setupThreadKeyboardNavigation as _0x2d81f9,trimHtml as ti,UserView as _0x2661c0,LateFocusButtonView as _0x3bf2f5,getDateTimeFormatter as _0x123f08,getAllMarkersDomElementsSorted as _0x6cba3d,sanitizeEditorConfig as _0x28abfc}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x54f7f3,LiveRange as _0x2d338c,LivePosition as _0xbfa6c3,DowncastWriter as _0x2fc6a7}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x2e4bfb,toWidget as _0x4e881f}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0xbe9696,set as _0x5d25b4,isEqual as _0x4bd619,unset as _0x2ee7bc,omit as Et}from'es-toolkit/compat';import{Delete as _0x55da00,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x4560cd,ShiftEnter as _0x2923b3}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends _0x1e4565{['_enabledCommands'];constructor(_0x36959d,_0x39a7c5){super(_0x36959d),this['_enabledCommands']=_0x39a7c5,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 _0x493eab of this['editor']['commands']['commands']())_0x493eab['affectsData']&&!this['_enabledCommands']['has'](_0x493eab)&&_0x493eab['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x36e244 of this['editor']['commands']['commands']())_0x36e244['affectsData']&&!this['_enabledCommands']['has'](_0x36e244)&&_0x36e244['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x1e4565{['_suggestions'];constructor(_0x5987cf,_0x4095d0){super(_0x5987cf),this['_suggestions']=_0x4095d0,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x24b137){const _0x4bea92=this['_suggestions']['get'](_0x24b137);if(!_0x4bea92)throw new _0x1f12e3('track-changes-accept-suggestion-not-found',this);const _0x7ecfab=_0x4bea92['getRanges']();this['editor']['model']['canEditAt'](_0x7ecfab)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x4bea92);}}class R extends _0x1e4565{['_suggestions'];constructor(_0x155332,_0x21f5a2){super(_0x155332),this['_suggestions']=_0x21f5a2,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xa59b57){const _0x3588fd=this['_suggestions']['get'](_0xa59b57);if(!_0x3588fd)throw new _0x1f12e3('track-changes-discard-suggestion-not-found',this);const _0x42f5df=_0x3588fd['getRanges']();this['editor']['model']['canEditAt'](_0x42f5df)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x3588fd);}}function ls(_0x4357b7,_0x1161af){let _0x463d34='';return _0x463d34+=_0x4357b7['split']('*')['map']((_0x2346c6,_0x11324f)=>_0x11324f%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x2346c6)+'</span>':nn(_0x2346c6))['join'](''),_0x1161af&&(_0x463d34+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1161af['value']+'\x22\x20title=\x22'+_0x1161af['title']+'\x22></span>'),_0x463d34;}function nn(_0x46fdf8){const _0x3b691a=document['createElement']('span');return _0x3b691a['innerText']=_0x46fdf8,_0x3b691a['innerHTML'];}function ts(_0x345890){return _0x345890['sort']((_0x2ce225,_0xa955bf)=>'deletion'==_0x2ce225['type']&&'deletion'!=_0xa955bf['type']?-0x1:'deletion'!=_0x2ce225['type']&&'deletion'==_0xa955bf['type']?0x1:0x0);}function Xt(_0x11b8a0,_0x140012){let _0x504df3,_0xa4d91a=0x0;const _0x129e5b=[],_0x3c65ea=_0x140012['schema'];for(;_0xa4d91a<_0x11b8a0['length'];){const _0x189459=_0x11b8a0[_0xa4d91a],_0x3f8e70=_0x11b8a0[_0xa4d91a+0x1];_0x504df3||(_0x504df3=_0x140012['createPositionBefore'](_0x189459)),on(_0x140012,_0x189459,_0x3f8e70)||(_0x129e5b['push'](_0x140012['createRange'](_0x504df3,_0x3c65ea['isObject'](_0x189459)?_0x140012['createPositionAfter'](_0x189459):_0x140012['createPositionAt'](_0x189459,'end'))),_0x504df3=null),_0xa4d91a++;}return _0x129e5b;}function on(_0x504838,_0x582cf1,_0x3887fc){if(!_0x3887fc)return!0x1;const _0x334a6a=_0x504838['createPositionAfter'](_0x582cf1),_0xc71010=_0x504838['createPositionBefore'](_0x3887fc);return _0x334a6a['isTouching'](_0xc71010);}function rs(_0x2b7650,_0x37ecbf,_0x2de81f){for(;_0x2de81f['length'];){const _0x10e57b=_0x2de81f['splice'](0x0,0x64);_0x2b7650['change'](()=>{for(const _0x399275 of _0x10e57b)_0x399275['isInContent']&&_0x37ecbf['execute'](_0x399275['id']);});}}class x extends _0x1e4565{['_command'];['_suggestions'];constructor(_0x91bf12,_0x22453c,_0x29f45f){super(_0x91bf12),this['_command']=_0x22453c,this['_suggestions']=_0x29f45f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x350d20=Array['from'](this['_suggestions']['values']())['some'](_0x310bd3=>_0x310bd3['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x350d20;}['execute'](){const _0x422540=ts(Array['from'](this['_suggestions']['values']()));for(const _0x2d3f08 of _0x422540){const _0x3a8287=_0x2d3f08['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3a8287))return;}rs(this['editor']['model'],this['_command'],_0x422540);}}class E extends _0x1e4565{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x5475ef,_0x3be574,_0x53abb3){super(_0x5475ef),this['_command']=_0x3be574,this['_suggestions']=_0x53abb3,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x146ed1=this['editor']['model']['document']['selection'],_0x360953=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x4a039c,_0x58729b){const _0x188e32=Array['from'](_0x4a039c['getRanges']()),_0x3203d9=new Set();for(const _0x1e8d81 of _0x58729b)if(_0x1e8d81['isInContent']){for(const _0x17699d of _0x188e32)for(const _0x12aadc of _0x1e8d81['getRanges']())(_0x17699d['isIntersecting'](_0x12aadc)||_0x4a039c['isCollapsed']&&!_0x1e8d81['isMultiRange']&&_0x1e8d81['next']&&_0x12aadc['end']['isTouching'](_0x17699d['start']))&&_0x3203d9['add'](_0x1e8d81);}return _0x3203d9;}(_0x146ed1,_0x360953),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x7589a2=ts(Array['from'](this['_selectedSuggestions']));for(const _0x541ecf of _0x7589a2){const _0x1e2f8e=_0x541ecf['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1e2f8e))return;}rs(this['editor']['model'],this['_command'],_0x7589a2);}}class o extends/* #__PURE__ -- @preserve */
24
+ _0x381222(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x39e589,_0x4e0947){super(),this['id']=_0x4e0947['id'],this['type']=_0x4e0947['type'],this['subType']=_0x4e0947['subType']||null,this['author']=_0x4e0947['author'],this['creator']=_0x4e0947['creator']||_0x4e0947['author'],this['isExternal']=Boolean(_0x4e0947['attributes']&&_0x4e0947['attributes']['@external']),this['data']=null,this['_model']=_0x39e589,this['_onAccept']=_0x4e0947['onAccept'],this['_onDiscard']=_0x4e0947['onDiscard'],this['_onAttributesChange']=_0x4e0947['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4e0947['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 _0xdf1ee9=this;for(;_0xdf1ee9['previous'];)_0xdf1ee9=_0xdf1ee9['previous'];return _0xdf1ee9;}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'](_0x5c06d9){this['_markerNames']['add'](_0x5c06d9);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x5eddf2=>this['_model']['markers']['get'](_0x5eddf2))['filter'](_0x18e3f5=>_0x18e3f5);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x49004a=>{for(const _0x44244e of this['getMarkers']())_0x49004a['removeMarker'](_0x44244e);}),this['_markerNames']['clear']();}['removeMarker'](_0x5a6da6){this['_model']['change'](_0x1412ea=>{_0x1412ea['removeMarker'](_0x5a6da6);}),this['_markerNames']['delete'](_0x5a6da6);}['addRange'](_0x199479){const _0x17053c='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x17053c),this['_model']['change'](_0x2ce24f=>{_0x2ce24f['addMarker'](_0x17053c,{'range':_0x199479,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x5ac512){for(const _0xa5f336 of this['getRanges']())if(_0xa5f336['isIntersecting'](_0x5ac512))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4fa0bc=>_0x4fa0bc['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x5df7e9,_0x20e723)=>[..._0x5df7e9,..._0x20e723['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x147170=this['getRanges']();if(0x1!=_0x147170['length'])return null;const _0x35ac2b=_0x147170[0x0],_0x5d11a9=_0x35ac2b['start']['nodeAfter'],_0x3108bd=_0x35ac2b['end']['nodeBefore'];return _0x5d11a9 instanceof _0x54f7f3?_0x5d11a9!=_0x3108bd?null:_0x5d11a9: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 _0x985938=[];let _0x3fbd1a=this['head'];for(;_0x3fbd1a;)_0x985938['push'](_0x3fbd1a),_0x3fbd1a=_0x3fbd1a['next'];return _0x985938;}['setAttribute'](_0x4fdf07,_0x4e1d49){const _0x2f88be=_0xbe9696(this['attributes']);_0x5d25b4(_0x2f88be,_0x4fdf07,_0x4e1d49),_0x4bd619(_0x2f88be,this['attributes'])||(this['attributes']=_0x2f88be,this['_onAttributesChange'](_0x2f88be));}['removeAttribute'](_0x2e17ef){const _0x589a94=_0xbe9696(this['attributes']);_0x2ee7bc(_0x589a94,_0x2e17ef),_0x4bd619(_0x589a94,this['attributes'])||(this['attributes']=_0x589a94,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 _0x1fa35e()['substr'](0x1,0x5);}}function c(_0x39ed31,_0xf15cce,_0xe9f0a1){const _0x17d953=_0x39ed31['t'],t=_0x39ed31['t'];switch(_0xf15cce){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',_0xe9f0a1);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0xe9f0a1);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0xe9f0a1);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0xe9f0a1);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0xe9f0a1);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',_0xe9f0a1);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0xe9f0a1);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',_0xe9f0a1);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0xe9f0a1);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0xe9f0a1);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0xe9f0a1);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0xe9f0a1);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0xe9f0a1);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0xe9f0a1);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0xe9f0a1);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0xe9f0a1);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0xe9f0a1);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0xe9f0a1);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0xe9f0a1);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0xe9f0a1);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0xe9f0a1);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0xe9f0a1);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0xe9f0a1);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0xe9f0a1);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'},_0xe9f0a1);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0xe9f0a1);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0xe9f0a1);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0xe9f0a1);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0xe9f0a1);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0xe9f0a1);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'},_0xe9f0a1);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0xe9f0a1);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0xe9f0a1);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0xe9f0a1);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0xe9f0a1);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'},_0xe9f0a1);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0xe9f0a1);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'},_0xe9f0a1);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0xe9f0a1);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0xe9f0a1);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'},_0xe9f0a1);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0xe9f0a1);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'},_0xe9f0a1);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0xe9f0a1);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0xe9f0a1);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'},_0xe9f0a1);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0xe9f0a1);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 _0x17d953({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0xe9f0a1);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x17d953({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0xe9f0a1);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0xe9f0a1);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'},_0xe9f0a1);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'},_0xe9f0a1);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'},_0xe9f0a1);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0xf15cce;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3ee84f,_0x10eff4){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3ee84f,this['_locale']=_0x10eff4;}['getDescriptions'](_0x1f0b35){const _0x27fb2a=[],_0x1de050=new Set(),_0x2954e2=new Set();for(let _0x53970d=0x0;_0x53970d<_0x1f0b35['length'];_0x53970d++){const _0x50b6ab=_0x1f0b35[_0x53970d];if(!_0x50b6ab['isInContent'])continue;const _0x3d5d25=this['_handleCustomCallbackDescription'](_0x50b6ab);if(_0x3d5d25){if(null!=_0x50b6ab['subType']){if(_0x1de050['has'](_0x50b6ab['subType']))continue;_0x1de050['add'](_0x50b6ab['subType']);}_0x27fb2a['push'](_0x3d5d25);}else{if('attribute'!=_0x50b6ab['type'])'insertion'!=_0x50b6ab['type']&&'deletion'!=_0x50b6ab['type']||this['_handleInsertRemoveSuggestionDescription'](_0x27fb2a,_0x50b6ab,_0x1f0b35[_0x53970d+0x1]);else{const _0x356a3b=_0x50b6ab['data']['key'];if(_0x2954e2['has'](_0x356a3b))continue;_0x2954e2['add'](_0x50b6ab['data']['key']),_0x356a3b==u?this['_handleRenameSuggestionDescription'](_0x27fb2a,_0x50b6ab):this['_handleAttributeSuggestionDescription'](_0x27fb2a,_0x50b6ab);}}}return this['_resolveDescriptionItems'](_0x27fb2a);}['registerDescriptionCallback'](_0x2ad1eb){this['_customCallbacks']['push'](_0x2ad1eb);}['registerElementLabel'](_0x5f15f5,_0x5d10fe,_0x1b2bc5=_0x28a48a['normal']){'function'==typeof _0x5f15f5?_0x369b27(this['_itemLabelsCallbacks'],{'matchingCallback':_0x5f15f5,'label':_0x5d10fe,'priority':_0x1b2bc5}):this['_itemLabels']['set'](_0x5f15f5,_0x5d10fe);}['registerAttributeLabel'](_0x41fc2c,_0xb99a16){this['_attributeLabels']['set'](_0x41fc2c,_0xb99a16);}['getItemLabel'](_0x3b9596,_0x30d841=0x1){let _0x51ea61;for(const _0x454aa8 of this['_itemLabelsCallbacks'])if(_0x454aa8['matchingCallback'](_0x3b9596)){_0x51ea61=_0x454aa8['label'];break;}return _0x51ea61||(_0x51ea61=this['_itemLabels']['get'](_0x3b9596['name'])),_0x51ea61?_0x51ea61(_0x30d841):0x1!==_0x30d841?_0x30d841+'\x20'+_0x3b9596['name']+'s':''+_0x3b9596['name'];}['_addDescriptionItems'](_0x17f006,_0x3318f0){const _0x779b6d=_0x3318f0['getFirstRange']()['getWalker'](),_0x2320d5='insertion'==_0x3318f0['type']?'add':'remove';for(const _0x2d5789 of _0x779b6d){const _0x2e1938=_0x2d5789['item'],_0x441287=_0x17f006[_0x17f006['length']-0x1];if(_0x2e1938['is']('$textProxy'))_0x441287&&_0x441287['type']['indexOf']('Container')>-0x1&&_0x17f006['pop'](),_0x441287&&'text'==_0x441287['type']?_0x441287[_0x2320d5]+=_0x2e1938['data']:_0x17f006['push']({'type':'text','add':'add'==_0x2320d5?_0x2e1938['data']:'','remove':'remove'==_0x2320d5?_0x2e1938['data']:''});else{if(this['_schema']['isObject'](_0x2e1938)){const _0x40c91e=_0x2e1938;if(_0x441287&&_0x441287['type']['indexOf']('Container')>-0x1&&_0x17f006['pop'](),'elementEnd'==_0x2d5789['type'])continue;_0x441287&&_0x441287['type']==_0x2320d5+'Object'&&_0x441287['element']['name']==_0x40c91e['name']?_0x441287['quantity']++:_0x17f006['push']({'type':_0x2320d5+'Object','element':_0x40c91e,'quantity':0x1}),_0x779b6d['skip'](_0x14ea7f=>!('elementEnd'==_0x14ea7f['type']&&_0x14ea7f['item']==_0x2e1938));}else{if(this['_schema']['checkChild'](_0x2e1938,'$text')||_0x2e1938['is']('element','softBreak')){const _0x52a743=_0x2e1938;if('add'==_0x2320d5&&'elementStart'==_0x2d5789['type']||'remove'==_0x2320d5&&'elementEnd'==_0x2d5789['type'])continue;if(_0x441287&&-0x1==_0x441287['type']['indexOf']('Container')){'text'==_0x441287['type']&&(_0x441287[_0x2320d5]+='\x0a');continue;}let _0x59bc7b;if(_0x59bc7b='add'==_0x2320d5?_0x52a743['nextSibling']&&!this['_schema']['isObject'](_0x52a743['nextSibling'])?_0x52a743['nextSibling']:null:_0x52a743['previousSibling']&&!this['_schema']['isObject'](_0x52a743['previousSibling'])?_0x52a743['previousSibling']:null,_0x52a743['isEmpty']||_0x59bc7b&&_0x59bc7b['isEmpty']){const _0x3d9afc=_0x59bc7b&&_0x59bc7b['isEmpty']?_0x59bc7b:_0x52a743;_0x441287&&_0x441287['type']==_0x2320d5+'EmptyContainer'&&_0x441287['element']['name']==_0x3d9afc['name']?_0x441287['quantity']++:_0x17f006['push']({'type':_0x2320d5+'EmptyContainer','element':_0x3d9afc,'quantity':0x1});}else _0x17f006['push']({'type':_0x2320d5+'Container','element':_0x52a743});}}}}}['_resolveDescriptionItems'](_0x169406){const _0x805d74=this['_locale'],_0x193900=[],_0x5b6368=[],_0x11c994=[];for(const _0x40531e of _0x169406)switch(_0x40531e['type']){case'text':if(_0x40531e['add']=_0x40531e['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x40531e['remove']=_0x40531e['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x40531e['add']&&''!=_0x40531e['remove']){_0x193900['push']({'type':'replace','content':c(_0x805d74,'REPLACE_TEXT',['\x22'+_0x40531e['remove']+'\x22','\x22'+_0x40531e['add']+'\x22'])});continue;}if(null!=_0x40531e['add']['match'](/^ +$/)){_0x193900['push']({'type':'insertion','content':c(_0x805d74,'*Insert:*\x20%0',c(_0x805d74,'ELEMENT_SPACE',_0x40531e['add']['length']))});continue;}if(null!=_0x40531e['remove']['match'](/^ +$/)){_0x193900['push']({'type':'deletion','content':c(_0x805d74,'*Remove:*\x20%0',c(_0x805d74,'ELEMENT_SPACE',_0x40531e['remove']['length']))});continue;}if(''!=_0x40531e['add']){_0x193900['push']({'type':'insertion','content':c(_0x805d74,'*Insert:*\x20%0','\x22'+_0x40531e['add']+'\x22')});continue;}_0x193900['push']({'type':'deletion','content':c(_0x805d74,'*Remove:*\x20%0','\x22'+_0x40531e['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x193900['push']({'type':'insertion','content':c(_0x805d74,'*Insert:*\x20%0',this['getItemLabel'](_0x40531e['element'],_0x40531e['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x193900['push']({'type':'deletion','content':c(_0x805d74,'*Remove:*\x20%0',this['getItemLabel'](_0x40531e['element'],_0x40531e['quantity']))});continue;case'addContainer':_0x193900['push']({'type':'insertion','content':c(_0x805d74,'*Split:*\x20%0',this['getItemLabel'](_0x40531e['element'],_0x40531e['quantity']))});continue;case'removeContainer':_0x193900['push']({'type':'deletion','content':c(_0x805d74,'*Merge:*\x20%0',this['getItemLabel'](_0x40531e['element'],_0x40531e['quantity']))});continue;case'addFormat':_0x5b6368['push'](_0x40531e['key']);continue;case'removeFormat':_0x11c994['push'](_0x40531e['key']);continue;default:_0x193900['push'](_0x40531e);}if(_0x5b6368['length']){const _0x5e8264=_0x5b6368['map'](_0x4ad220=>this['_attributeLabels']['has'](_0x4ad220)?this['_attributeLabels']['get'](_0x4ad220):_0x4ad220)['join'](',\x20');_0x193900['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x5e8264)});}if(_0x11c994['length']){const _0x27dcdf=_0x11c994['map'](_0x232094=>this['_attributeLabels']['has'](_0x232094)?this['_attributeLabels']['get'](_0x232094):_0x232094)['join'](',\x20');_0x193900['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x27dcdf)});}return _0x193900;}['_handleCustomCallbackDescription'](_0x2c9adc){for(const _0x279207 of this['_customCallbacks']){const _0x5a7041=_0x279207(_0x2c9adc);if(_0x5a7041&&'type'in _0x5a7041)return _0x5a7041;}}['_handleAttributeSuggestionDescription'](_0x2c3207,_0x4406aa){const _0x418c70=_0x4406aa['data'],_0xae6abb=void 0x0===_0x418c70['newValue']?'removeFormat':'addFormat';_0x2c3207['push']({'type':_0xae6abb,'key':_0x418c70['key']});}['_handleRenameSuggestionDescription'](_0x1687cb,_0x13ebbb){_0x1687cb['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x13ebbb['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1df436,_0x137c77,_0xe36271){if(this['_addDescriptionItems'](_0x1df436,_0x137c77),_0xe36271&&_0xe36271['getFirstRange']()&&!_0x137c77['getFirstRange']()['end']['isEqual'](_0xe36271['getFirstRange']()['start'])){const _0x2fa1dd=_0x1df436[_0x1df436['length']-0x1],_0x15e8e7='insertion'==_0x137c77['type']?'add':'remove';_0x2fa1dd&&'text'==_0x2fa1dd['type']&&(_0x2fa1dd[_0x15e8e7]+='\x0a');}}}class U extends _0x260752{['afterInit'](){const _0x4cbf28=this['editor'],_0x1e246c=_0x4cbf28['plugins']['get']('TrackChangesEditing');_0x4cbf28['commands']['get']('showAIAssistant')&&_0x1e246c['enableCommand']('showAIAssistant');}}class V extends _0x260752{['afterInit'](){const _0xac657b=this['editor'],_0x42b72b=_0xac657b['locale'];if(!_0xac657b['plugins']['has']('AlignmentEditing'))return;const _0x59c0bc=_0xac657b['plugins']['get']('TrackChangesEditing');_0x59c0bc['enableDefaultAttributesIntegration']('alignment'),_0x59c0bc['registerBlockAttribute']('alignment'),_0x59c0bc['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x42b72b,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x30eb6d=this['editor'],_0x17d223=_0x30eb6d['locale'];_0x30eb6d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x219314=>{if('formatBlock'!=_0x219314['type'])return;const {data:_0x3ca191}=_0x219314;if(_0x3ca191&&'alignment'==_0x3ca191['commandName']){const _0x5376ed=_0x3ca191['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x17d223,'*Format:*\x20%0',function(_0x472adc){switch(_0x472adc){case'left':return c(_0x17d223,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x17d223,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x17d223,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x17d223,'FORMAT_JUSTIFY_TEXT');}}(_0x5376ed))};}});}}const Qt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x260752{['afterInit'](){const _0x54a4c9=this['editor'],_0x2fa0bf=_0x54a4c9['plugins']['get']('TrackChangesEditing'),_0x1b4988=_0x54a4c9['locale'];for(const _0x3a0ea7 of Qt){if(!_0x54a4c9['plugins']['has'](_0x3a0ea7))continue;const _0x4760b9=_0x3a0ea7['slice'](0x0,-0x7)['toLowerCase'](),_0x2890d7='FORMAT_'+_0x4760b9['toUpperCase']();_0x2fa0bf['enableDefaultAttributesIntegration'](_0x4760b9),_0x2fa0bf['registerInlineAttribute'](_0x4760b9),_0x2fa0bf['descriptionFactory']['registerAttributeLabel'](_0x4760b9,c(_0x1b4988,_0x2890d7));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x17aaf6=this['editor'],_0x2958df=_0x17aaf6['locale'],_0xeb990a=_0x17aaf6['plugins']['get']('TrackChangesEditing');function _0x4fb061(_0x1e7849,_0x11f32){_0xeb990a['descriptionFactory']['registerDescriptionCallback'](_0xf4c0e5=>{if('formatInline'!=_0xf4c0e5['type'])return;const {data:_0x389919}=_0xf4c0e5;return _0x389919&&_0x389919['commandName']===_0x1e7849?_0x389919['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x2958df,'*Format:*\x20%0',_0x11f32)}:{'type':'format','content':c(_0x2958df,'*Remove\x20format:*\x20%0',_0x11f32)}:void 0x0;});}_0x4fb061('bold',c(_0x2958df,'FORMAT_BOLD')),_0x4fb061('italic',c(_0x2958df,'FORMAT_ITALIC')),_0x4fb061('underline',c(_0x2958df,'FORMAT_UNDERLINE')),_0x4fb061('code',c(_0x2958df,'FORMAT_CODE')),_0x4fb061('strikethrough',c(_0x2958df,'FORMAT_STRIKETHROUGH')),_0x4fb061('subscript',c(_0x2958df,'FORMAT_SUBSCRIPT')),_0x4fb061('superscript',c(_0x2958df,'FORMAT_SUPERSCRIPT'));}}class G extends _0x260752{['afterInit'](){const _0x33a9a4=this['editor'],_0x2e0ef4=_0x33a9a4['locale'];if(!_0x33a9a4['plugins']['has']('BlockQuoteEditing'))return;const _0x5d560a=_0x33a9a4['plugins']['get']('TrackChangesEditing'),_0x2eb3ca=this['editor']['commands']['get']('blockQuote');_0x5d560a['enableCommand']('blockQuote',(_0x4f4f5b,_0x2e0b85={})=>{const _0x20ab56=this['editor']['model']['document']['selection'],_0x3163a7=_0x2e0b85&&void 0x0!==_0x2e0b85['forceValue']?_0x2e0b85['forceValue']:!_0x2eb3ca['value'];let _0x134fa4=[];if(_0x3163a7){const _0xf532dd=Array['from'](_0x20ab56['getSelectedBlocks']())['filter'](_0x17306c=>Yt(_0x17306c)||function(_0x55d3ec,_0x12df70){const _0x30e419=_0x12df70['checkChild'](_0x55d3ec['parent'],'blockQuote'),_0x19f91c=_0x12df70['checkChild'](['$root','blockQuote'],_0x55d3ec);return _0x30e419&&_0x19f91c;}(_0x17306c,this['editor']['model']['schema']));_0x134fa4=Xt(_0xf532dd,_0x33a9a4['model']);}else{const _0x3ae3a5=Array['from'](_0x20ab56['getSelectedBlocks']())['filter'](_0x323349=>Yt(_0x323349));_0x134fa4=Xt(_0x3ae3a5,_0x33a9a4['model']);}_0x33a9a4['model']['change'](()=>{for(const _0x5f545d of _0x134fa4)_0x5d560a['markBlockFormat'](_0x5f545d,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x3163a7}]});});}),_0x5d560a['descriptionFactory']['registerDescriptionCallback'](_0xe76bb2=>{const {data:_0xc768a2}=_0xe76bb2;if(_0xc768a2&&'blockQuote'==_0xc768a2['commandName']){const _0x155026=c(_0x2e0ef4,'ELEMENT_BLOCK_QUOTE');return _0xc768a2['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x2e0ef4,'*Set\x20format:*\x20%0',_0x155026)}:{'type':'format','content':c(_0x2e0ef4,'*Remove\x20format:*\x20%0',_0x155026)};}});}}function Yt(_0x47cb99){return'blockQuote'==_0x47cb99['parent']['name'];}class L extends _0x260752{['afterInit'](){const _0x19b9d6=this['editor'],_0x4e9aac=_0x19b9d6['locale'],_0x495654=_0x19b9d6['plugins']['get']('TrackChangesEditing');_0x19b9d6['plugins']['has']('BookmarkEditing')&&(_0x495654['enableCommand']('insertBookmark'),_0x495654['enableDefaultAttributesIntegration']('updateBookmark'),_0x495654['registerBlockAttribute']('bookmarkId'),_0x495654['descriptionFactory']['registerDescriptionCallback'](_0x19bedd=>{if('insertion'!=_0x19bedd['type']&&'deletion'!=_0x19bedd['type']&&'attribute'!=_0x19bedd['type'])return;const _0x3ece64=_0x19bedd['getContainedElement']();if(null==_0x3ece64)return;if(!_0x3ece64['is']('element','bookmark'))return;const _0x20c27f=_0x3ece64['getAttribute']('bookmarkId');if('insertion'==_0x19bedd['type'])return{'type':'insertion','content':c(_0x4e9aac,'*Insert:*\x20%0','\x22'+_0x20c27f+'\x22\x20'+c(_0x4e9aac,'ELEMENT_BOOKMARK'))};if('deletion'==_0x19bedd['type'])return{'type':'deletion','content':c(_0x4e9aac,'*Remove:*\x20%0','\x22'+_0x20c27f+'\x22\x20'+c(_0x4e9aac,'ELEMENT_BOOKMARK'))};const {data:_0x52f08c}=_0x19bedd;if(!_0x52f08c||'bookmarkId'!=_0x52f08c['key'])return;return{'type':'format','content':c(_0x4e9aac,'*Set\x20bookmark:*\x20%0','\x22'+_0x52f08c['newValue']+'\x22')};}));}}class J extends _0x260752{['afterInit'](){const _0x4d310f=this['editor'];_0x4d310f['plugins']['has']('CaseChange')&&(_0x4d310f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x4d310f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x4d310f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x260752{['afterInit'](){const _0x31e61e=this['editor'];_0x31e61e['commands']['get']('ckbox')&&_0x31e61e['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x260752{['afterInit'](){const _0x4fc26f=this['editor'];if(!_0x4fc26f['plugins']['has']('CodeBlock'))return;const _0x3d34a=_0x4fc26f['plugins']['get']('TrackChangesEditing'),_0x5102b5=_0x4fc26f['locale'],_0x1fc2ee=_0x4fc26f['config']['get']('codeBlock')['languages'],_0x59882c=_0x4fc26f['commands']['get']('codeBlock');_0x3d34a['enableCommand']('indentCodeBlock'),_0x3d34a['enableCommand']('outdentCodeBlock'),_0x3d34a['enableCommand']('codeBlock',(_0x33cd6b,_0x259149={})=>{const _0x5d670e=_0x4fc26f['model'],_0x2165c9=_0x4fc26f['model']['document']['selection'],_0x22fb1a=_0x259149&&void 0x0!==_0x259149['forceValue']?_0x259149['forceValue']:!_0x59882c['value'];let _0x4ef0ae;_0x259149['language']||(_0x259149['language']=_0x1fc2ee[0x0]['language']),_0x4ef0ae=_0x22fb1a?Array['from'](_0x2165c9['getSelectedBlocks']())['filter'](_0x2f0a3b=>oo(_0x2f0a3b)||function(_0x47fcec,_0x56acda){if(_0x47fcec['is']('rootElement')||_0x56acda['isLimit'](_0x47fcec))return!0x1;return _0x56acda['checkChild'](_0x47fcec['parent'],'codeBlock');}(_0x2f0a3b,_0x5d670e['schema'])):Array['from'](_0x2165c9['getSelectedBlocks']())['filter'](_0x134f6a=>oo(_0x134f6a));const _0x14e57e=Xt(_0x4ef0ae,_0x5d670e);_0x5d670e['change'](()=>{for(const _0x4e4756 of _0x14e57e)_0x3d34a['markBlockFormat'](_0x4e4756,{'commandName':'codeBlock','commandParams':[{..._0x259149,'forceValue':_0x22fb1a}],'formatGroupId':'blockName'});});}),(_0x3d34a['descriptionFactory']['registerElementLabel']('codeBlock',_0x43477e=>c(_0x5102b5,'ELEMENT_CODE_BLOCK',_0x43477e)),_0x3d34a['descriptionFactory']['registerDescriptionCallback'](_0x20434e=>{if('formatBlock'!=_0x20434e['type'])return;const _0x4caed6=_0x5102b5['t'],{data:_0x46cbaf}=_0x20434e;if(!_0x46cbaf||'codeBlock'!=_0x46cbaf['commandName'])return;const _0x110eb8=_0x46cbaf['commandParams'][0x0]['language'],_0x371e71=_0x4caed6(_0x1fc2ee['find'](_0x11e5fc=>_0x11e5fc['language']===_0x110eb8)['label'])['toLowerCase']();return _0x46cbaf['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x5102b5,'*Set\x20format:*\x20%0',c(_0x5102b5,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x371e71+')')}:{'type':'format','content':c(_0x5102b5,'*Remove\x20format:*\x20%0',c(_0x5102b5,'ELEMENT_CODE_BLOCK',0x1))};}));}}function oo(_0x7831d1){return'codeBlock'==_0x7831d1['name'];}class q extends _0x260752{['afterInit'](){const _0x496a05=this['editor'];if(!_0x496a05['plugins']['has']('CommentsEditing'))return;_0x496a05['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function no(_0x2648c1,_0xafc0b2,_0x29cf50){const _0x41443e=[];for(const _0x3bdb40 of _0xafc0b2['getItems']())_0x3bdb40['hasAttribute'](_0x2648c1)&&_0x41443e['push'](_0x29cf50['createRangeOn'](_0x3bdb40));return _0x41443e;}function De(_0x5aef20,_0x4f4ae3,{showActiveMarker:_0x1bd4b7=!0x0}={}){const _0x3a0ceb=_0x5aef20['plugins']['get']('TrackChangesEditing');return(_0x3a634c,_0x506fd1,_0x3794ab)=>{if(!_0x3794ab['consumable']['test'](_0x506fd1['markerRange'],_0x3a634c['name']))return;const _0x4e94ab=_0x506fd1['markerRange']['getWalker'](),_0x1c819b=_0x506fd1['markerRange']['start'],_0x46e749=_0x5aef20['model']['schema'];let _0x96f618=null,_0x3490a6=null,_0x49d647=!0x1,_0x1f5516=!0x1;for(const _0x2642d3 of _0x4e94ab){const _0x2f9b3c=_0x2642d3['item'];_0x49d647=_0x49d647||_0x46e749['isContent'](_0x2f9b3c);const _0x5930c2=_0x3794ab['mapper']['toViewElement'](_0x2f9b3c);if(_0x5930c2&&_0x5930c2['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2642d3['type']&&(_0x46e749['isBlock'](_0x2f9b3c)&&!_0x46e749['isLimit'](_0x2f9b3c)&&(_0x2f9b3c['nextSibling']||_0x1c819b['isAtEnd']?_0x96f618&&_0x96f618['parent']==_0x2f9b3c||(_0x96f618=_0x2f9b3c,_0x41ef70(_0x2642d3['previousPosition']),_0x1f5516=!0x0):_0x3490a6=_0x3490a6||_0x2642d3['previousPosition']));}function _0x41ef70(_0x1630f0){const {authorId:_0x4978d1}=_0x3a0ceb['_splitMarkerName'](_0x506fd1['markerName']),_0x3a4051=_0x3794ab['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4f4ae3,'data-author-id':_0x4978d1}),_0x20c11f=_0x3794ab['mapper']['toViewPosition'](_0x1630f0);_0x1bd4b7&&_0x3a0ceb['activeMarkers']['includes'](_0x506fd1['markerName'])&&_0x3794ab['writer']['addClass']('ck-suggestion-marker--active',_0x3a4051),_0x3794ab['writer']['insert'](_0x20c11f,_0x3a4051),_0x3794ab['mapper']['bindElementToMarker'](_0x3a4051,_0x506fd1['markerName']);}_0x49d647||_0x1f5516||!_0x3490a6||_0x41ef70(_0x3490a6);};}class z extends _0x260752{static get['requires'](){return[_0x55da00];}['init'](){const _0x3ffd5c=this['editor'],_0x2cfece=_0x3ffd5c['plugins']['get']('TrackChangesEditing');_0x2cfece['enableCommand']('delete');const _0x4d83f9=_0x3ffd5c['commands']['get']('deleteForward');_0x2cfece['enableCommand']('deleteForward',(_0xae7d16,_0x1069b5={})=>{const _0x53a2e7=_0x3ffd5c['model']['createSelection'](_0x3ffd5c['model']['document']['selection']);_0x53a2e7['isCollapsed']&&_0x3ffd5c['model']['modifySelection'](_0x53a2e7,{'direction':'forward','unit':_0x1069b5['unit']});const _0x3c78b0=_0x53a2e7['getFirstRange'](),_0x8e4463=_0x2d338c['fromRange'](_0x3c78b0);let _0x3d1b7c;_0xae7d16(_0x1069b5),_0x3d1b7c='$graveyard'==_0x8e4463['root']['rootName']?_0x3ffd5c['model']['createRange'](_0x3c78b0['start']):_0x3ffd5c['model']['createRange'](_0x8e4463['start'],_0x8e4463['end']),_0x8e4463['detach'](),_0x3ffd5c['model']['enqueueChange'](_0x4d83f9['buffer']['batch'],_0x2648a1=>{_0x4d83f9['buffer']['lock'](),_0x2648a1['setSelection'](_0x2648a1['createRange'](_0x3d1b7c['end'])),_0x4d83f9['buffer']['unlock']();});}),_0x3ffd5c['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x3ffd5c,'merge'),{'priority':'high'}),_0x3ffd5c['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x1fd343,_0x1a3056,_0x4567b4)=>{_0x4567b4['options']['showSuggestionHighlights']&&De(_0x3ffd5c,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x1fd343,_0x1a3056,_0x4567b4);},{'priority':'high'}),_0x3ffd5c['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0xb5c174,_0x5d975f,_0x307525)=>{const _0x1ad502=_0x307525['mapper']['markerNameToElements'](_0x5d975f['markerName']);if(_0x1ad502){for(const _0x499831 of _0x1ad502)_0x499831['is']('uiElement')&&(_0x307525['mapper']['unbindElementFromMarkerName'](_0x499831,_0x5d975f['markerName']),_0x307525['writer']['remove'](_0x499831));}},{'priority':'high'});}}class W extends _0x260752{['afterInit'](){const _0x3d551b=this['editor'];if(!_0x3d551b['plugins']['has']('ListEditing'))return;const _0x3844c1=_0x3d551b['locale'],_0x47578e=_0x3d551b['plugins']['get']('TrackChangesEditing'),_0x256d89=_0x3d551b['plugins']['has']('TodoListEditing'),_0x4cc373=!!_0x3d551b['config']['get']('list.multiBlock');function _0x3cb5bb(_0x12c0bb){return{'type':'format','content':''+c(_0x3844c1,'*Set\x20format:*\x20%0',_0x12c0bb)};}function _0x4ea251(_0x3ea97d){return{'type':'format','content':''+c(_0x3844c1,'*Remove\x20format:*\x20%0',_0x3ea97d)};}_0x47578e['enableDefaultAttributesIntegration']('numberedList'),_0x47578e['enableDefaultAttributesIntegration']('bulletedList'),_0x47578e['enableDefaultAttributesIntegration']('customNumberedList'),_0x47578e['enableDefaultAttributesIntegration']('customBulletedList'),_0x47578e['enableDefaultAttributesIntegration']('indentList'),_0x47578e['enableDefaultAttributesIntegration']('outdentList'),_0x47578e['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x47578e['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x47578e['registerBlockAttribute']('listItemId'),_0x47578e['registerBlockAttribute']('listType'),_0x47578e['registerBlockAttribute']('listIndent'),_0x4cc373&&(_0x47578e['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x47578e['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x256d89&&(_0x47578e['enableDefaultAttributesIntegration']('todoList'),_0x47578e['enableDefaultAttributesIntegration']('checkTodoList'),_0x47578e['registerBlockAttribute']('todoListChecked'),_0x47578e['descriptionFactory']['registerDescriptionCallback'](_0x5c095c=>{const {data:_0x5abea5}=_0x5c095c;if(_0x5abea5&&'todoListChecked'==_0x5abea5['key'])return{'type':'format','content':_0x5abea5['newValue']?c(_0x3844c1,'*Check\x20item*'):c(_0x3844c1,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x347cf3=>{if(_0x347cf3['batch']['isUndo'])return!0x1;let _0x25370a=!0x1;const _0xa511b5=_0x47578e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x6de16b=>'todoListChecked'===_0x47578e['_getAttributeKey'](_0x6de16b));for(const _0x4194e1 of _0xa511b5){'todo'!=_0x4194e1['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x47578e['_findSuggestions'](_0x4194e1['getFirstRange'](),'attribute')['find'](_0x29fc34=>'listType'===_0x47578e['_getAttributeKey'](_0x29fc34['suggestion']))||(_0x347cf3['removeMarker'](_0x4194e1['getFirstMarker']()),_0x25370a=!0x0));}return _0x25370a;})),_0x47578e['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x3844c1,'FORMAT_INDENT'));const _0x653946={'type':'format','content':''};_0x47578e['descriptionFactory']['registerDescriptionCallback'](_0x2f6dd4=>{const {data:_0x13b98a}=_0x2f6dd4;if(!_0x13b98a||'listType'!=_0x13b98a['key'])return;let _0x1a6f3f=_0x2f6dd4['head'];for(;_0x1a6f3f;){if(_0x1a6f3f['data']&&(('listStyle'==_0x1a6f3f['data']['key']||'listMarkerStyle'==_0x1a6f3f['data']['key'])&&(_0x1a6f3f['data']['newValue']&&'default'!=_0x1a6f3f['data']['newValue']||'default'!=_0x1a6f3f['data']['oldValue']&&!_0x13b98a['newValue'])||!_0x4cc373&&_0x1a6f3f['data']['key']==u))return _0x653946;_0x1a6f3f=_0x1a6f3f['next'];}if(null==_0x13b98a['newValue'])switch(_0x13b98a['oldValue']){case'bulleted':return _0x4ea251(c(_0x3844c1,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4ea251(c(_0x3844c1,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4ea251(c(_0x3844c1,'ELEMENT_TODO_LIST'));}switch(_0x13b98a['newValue']){case'bulleted':return _0x3cb5bb(c(_0x3844c1,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3cb5bb(c(_0x3844c1,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3cb5bb(c(_0x3844c1,'ELEMENT_TODO_LIST'));}}),_0x47578e['descriptionFactory']['registerDescriptionCallback'](_0xdf3684=>{const {data:_0x210da2}=_0xdf3684;if(_0x210da2&&'listIndent'==_0x210da2['key'])return null==_0x210da2['newValue']||null==_0x210da2['oldValue']&&0x0==_0x210da2['newValue']?_0x653946:void 0x0;}),_0x47578e['descriptionFactory']['registerDescriptionCallback'](_0x3561db=>{if('attribute'!=_0x3561db['type'])return;const {data:_0x1713c5}=_0x3561db;if(!_0x1713c5||'listItemId'!=_0x1713c5['key'])return;const _0x48ecfb=Te(_0x3561db);return'newValue'==_0x48ecfb?{'type':'format','content':c(_0x3844c1,'*Merge:*\x20list\x20item')}:'oldValue'==_0x48ecfb?{'type':'format','content':c(_0x3844c1,'*Split:*\x20list\x20item')}:_0x653946;}),_0x3d551b['model']['document']['registerPostFixer'](_0x1c38d4=>this['listItemIdFixer'](_0x1c38d4)),_0x3d551b['model']['document']['registerPostFixer'](_0x45feb8=>this['noTrackChangesFixer'](_0x45feb8)),_0x3d551b['model']['document']['on']('change:data',(_0x169cb7,_0x2109bd)=>{if(_0x2109bd['isUndo']||!_0x2109bd['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x1808a3){if(_0x1808a3['batch']['isUndo']||!_0x1808a3['batch']['isLocal'])return!0x1;let _0x2ece8f=!0x1;const _0x4bc74a=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x590ff4=>_0x590ff4['data']&&'listItemId'==_0x590ff4['data']['key'])['filter'](_0x383d90=>_0x383d90['data']['newValue']&&_0x383d90['data']['oldValue']);for(const _0x3945b2 of _0x4bc74a)Te(_0x3945b2)||(_0x1808a3['removeMarker'](_0x3945b2['getFirstMarker']()),_0x2ece8f=!0x0);return _0x2ece8f;}['noTrackChangesFixer'](_0x3f1ff8){if(_0x3f1ff8['batch']['isUndo']||!_0x3f1ff8['batch']['isLocal'])return!0x1;const _0x5a0c15=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x5a0c15['trackChangesCommand']['value'])return!0x1;let _0xb458ef=!0x1;const _0x4c94d0=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0xb2a5c3=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x5a3c54=>'attribute'==_0x5a3c54['type'])['filter'](_0x3629bb=>_0x4c94d0['includes'](_0x3629bb['attributeKey']));if(0x0==_0xb2a5c3['length'])return _0xb458ef;for(const _0x19ca94 of _0xb2a5c3){const _0x3a57aa=_0x5a0c15['_findSuggestions'](_0x19ca94['range'],'attribute')['filter'](_0x5c6c19=>!_0x5c6c19['meta']['isNextTo'])['map'](_0x30f4b1=>_0x30f4b1['suggestion'])['filter'](_0x3fd9a8=>{const _0x31dbe1=_0x5a0c15['_getAttributeKey'](_0x3fd9a8);return _0x4c94d0['includes'](_0x31dbe1);});if(_0x3a57aa['length']){for(const _0xc3c238 of _0x3a57aa)_0x3f1ff8['removeMarker'](_0xc3c238['getFirstMarker']());_0xb458ef=!0x0;}}return _0xb458ef;}['assureChains'](){const _0x2e9f78=this['editor']['plugins']['get']('TrackChangesEditing'),_0x212954=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x53c286;const _0x4e18db=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3e5f62=>{if(_0x3e5f62['data']['oldRange']||!_0x3e5f62['data']['newRange'])return null;if(!_0x3e5f62['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x4adc66}=_0x2e9f78['_splitMarkerName'](_0x3e5f62['name']);if(!_0x2e9f78['hasSuggestion'](_0x4adc66))return null;const _0xb8b8ce=_0x2e9f78['getSuggestion'](_0x4adc66);return _0x212954['includes'](_0xb8b8ce['data']['key']);})['map'](_0x1d07e0=>{const {id:_0x55730c}=_0x2e9f78['_splitMarkerName'](_0x1d07e0['name']),_0x4ac754=_0x2e9f78['getSuggestion'](_0x55730c);return _0x53c286=_0x4ac754['attributes']['groupId'],_0x4ac754['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x4e18db['size'])return;const _0xafba1b=_0x2e9f78['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x481ece=>'attribute'==_0x481ece['type']&&_0x481ece['data']&&_0x212954['includes'](_0x481ece['data']['key'])&&_0x481ece['attributes']['groupId']!=_0x53c286)['map'](_0x55de88=>({'listItem':_0x55de88['getFirstRange']()['start']['nodeAfter'],'groupId':_0x55de88['attributes']['groupId']})),_0x1a223e=new Set();for(const {groupId:_0x3f789c,listItem:_0x4b97df}of _0xafba1b)_0x4e18db['has'](_0x4b97df)&&_0x1a223e['add'](_0x3f789c);for(const _0x173742 of _0x2e9f78['getSuggestions']())_0x1a223e['has'](_0x173742['attributes']['groupId'])&&_0x173742['setAttribute']('groupId',_0x53c286);}['_supportLegacySuggestions'](){const _0x2c79ac=this['editor'],_0x107683=_0x2c79ac['locale'],_0x4300ae=_0x2c79ac['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4300ae['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x301cd8,_0x42524e){const _0x5687c0=[];for(let _0x18f9f9 of _0x301cd8)_0x18f9f9['start']['nodeAfter']===_0x18f9f9['end']['parent']&&(_0x18f9f9=_0x2c79ac['model']['createRange'](_0x2c79ac['model']['createPositionAt'](_0x18f9f9['start']['nodeAfter'],0x0))),_0x5687c0['push'](_0x18f9f9);_0x2c79ac['model']['change'](_0x21e41d=>{const _0x3d9aeb=_0x2c79ac['model']['document']['selection'],_0x2f09e3=Array['from'](_0x3d9aeb['getRanges']())['map'](_0x49f131=>_0x2d338c['fromRange'](_0x49f131));_0x21e41d['setSelection'](_0x5687c0),_0x2c79ac['commands']['get'](_0x42524e['commandName'])['refresh'](),_0x42524e['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2c79ac['execute'](_0x42524e['commandName'],..._0x42524e['commandParams']),_0x21e41d['setSelection'](_0x2f09e3);for(const _0x156f48 of _0x2f09e3)_0x156f48['detach']();});}),_0x4300ae['descriptionFactory']['registerElementLabel'](function(_0x27805f){const _0x16d3b6=!_0x2c79ac['model']['schema']['isObject'](_0x27805f),_0x101c9e=_0x27805f['previousSibling'],_0x157055=_0x27805f['nextSibling'],_0x389983=_0x27805f['getAttribute']('listItemId'),_0x4dd85c=!_0x101c9e||_0x101c9e['getAttribute']('listItemId')!==_0x389983,_0x640a67=!_0x157055||_0x157055['getAttribute']('listItemId')!==_0x389983;return _0x16d3b6&&Boolean(_0x389983)&&_0x4dd85c&&_0x640a67;},_0xd8c8e7=>c(_0x107683,'ELEMENT_LIST_ITEM',_0xd8c8e7));}['_registerLegacyDescription'](){const _0x3bddd2=this['editor'],_0x462752=_0x3bddd2['locale'];function _0x176258(_0x56527c){const _0x455ce0=_0x3bddd2['commands']['get']('bulletedList')['value'],_0x47d7aa=_0x3bddd2['commands']['get']('numberedList')['value'];return'numberedList'===_0x56527c?_0x455ce0:_0x47d7aa;}_0x3bddd2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x35d035){if('formatBlock'!=_0x35d035['type'])return;const {data:_0x5978ce}=_0x35d035;if(!_0x5978ce)return;let _0x42f401,_0x38496a,_0x5d6240,_0x527343;switch(_0x5978ce['commandName']){case'bulletedList':_0x5d6240=_0x5978ce['commandParams'][0x0]['forceValue'],_0x527343=_0x176258(_0x5978ce['commandName']),_0x42f401=_0x5d6240?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x527343&&_0x3bddd2['config']['get']('list.multiBlock')||(_0x42f401='*Change\x20to:*\x20%0'),_0x38496a={'type':'format','content':c(_0x462752,_0x42f401,c(_0x462752,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5d6240=_0x5978ce['commandParams'][0x0]['forceValue'],_0x527343=_0x176258(_0x5978ce['commandName']),_0x42f401=_0x5d6240?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x527343&&_0x3bddd2['config']['get']('list.multiBlock')||(_0x42f401='*Change\x20to:*\x20%0'),_0x38496a={'type':'format','content':c(_0x462752,_0x42f401,c(_0x462752,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x42f401='*Indent:*\x20%0',_0x38496a={'type':'format','content':c(_0x462752,_0x42f401,c(_0x462752,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x42f401=function(_0xe498a3){const _0x6dd489=_0xe498a3['getFirstRange']();let _0x1b563a=_0x6dd489['start']['nodeAfter'];for(;_0x1b563a&&_0x6dd489['containsItem'](_0x1b563a);){if(_0x1b563a['getAttribute']('listIndent')>0x0)return!0x1;_0x1b563a=_0x1b563a['nextSibling'];}return!0x0;}(_0x35d035)?c(_0x462752,'*Format:*\x20remove\x20from\x20%0',c(_0x462752,function(_0x3f3e2c){return'ELEMENT_'+_0x3f3e2c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x35d035))):c(_0x462752,'*Outdent:*\x20%0',c(_0x462752,'ELEMENT_LIST_ITEM')),_0x38496a={'type':'format','content':_0x42f401};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x5978ce['multipleBlocks']&&(_0x42f401='*Merge:*\x20%0',_0x38496a={'type':'deletion','content':c(_0x462752,_0x42f401,c(_0x462752,'ELEMENT_LIST_ITEM'))});}return _0x38496a;});}}function Te(_0x582785){let _0x4cb90f=_0x582785['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4cb90f;){const _0x182837=_0x4cb90f['getAttribute']('listItemId');if(!_0x182837)return!0x1;if(_0x182837==_0x582785['data']['newValue'])return'newValue';if(_0x182837==_0x582785['data']['oldValue'])return'oldValue';_0x4cb90f=_0x4cb90f['previousSibling'];}return!0x1;}class Se extends _0x260752{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0xeebde2=this['editor']['config']['get']('list.properties'),_0x138c28=this['editor']['plugins']['get']('TrackChangesEditing');_0xeebde2['styles']&&(_0x138c28['enableDefaultAttributesIntegration']('listStyle'),_0x138c28['registerBlockAttribute']('listStyle')),_0xeebde2['reversed']&&(_0x138c28['enableDefaultAttributesIntegration']('listReversed'),_0x138c28['registerBlockAttribute']('listReversed')),_0xeebde2['startIndex']&&(_0x138c28['enableDefaultAttributesIntegration']('listStart'),_0x138c28['registerBlockAttribute']('listStart'));const _0x476391={'type':'format','content':''};_0x138c28['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x170f12=this['editor']['locale'];_0x138c28['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x170f12,'FORMAT_LIST_REVERSED')),_0x138c28['descriptionFactory']['registerDescriptionCallback'](_0x272f3d=>{const {data:_0x26015c}=_0x272f3d;if(_0x26015c&&'listReversed'==_0x26015c['key'])return null==_0x26015c['newValue']||0x0==_0x26015c['newValue']&&null==_0x26015c['oldValue']?_0x476391:void 0x0;}),_0x138c28['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x170f12,'FORMAT_LIST_START')),_0x138c28['descriptionFactory']['registerDescriptionCallback'](_0x4f9097=>{const {data:_0x91c6ca}=_0x4f9097;if(_0x91c6ca&&'listStart'==_0x91c6ca['key'])return null==_0x91c6ca['newValue']||0x1==_0x91c6ca['newValue']&&null==_0x91c6ca['oldValue']?_0x476391:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x41ade5=>{if(_0x41ade5['batch']['isUndo'])return!0x1;let _0x3c6481=!0x1;const _0x28034d=_0x138c28['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xe5a1fc=>{const _0x4c43db=_0x138c28['_getAttributeKey'](_0xe5a1fc);return'listStart'==_0x4c43db||'listReversed'==_0x4c43db;});for(const _0x5bdf22 of _0x28034d){const _0xb96bd5=_0x5bdf22['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0xb96bd5||'customNumbered'==_0xb96bd5)continue;_0x138c28['_findSuggestions'](_0x5bdf22['getFirstRange'](),'attribute')['find'](_0x365fff=>'listType'==_0x138c28['_getAttributeKey'](_0x365fff['suggestion']))||(_0x41ade5['removeMarker'](_0x5bdf22['getFirstMarker']()),_0x3c6481=!0x0);}return _0x3c6481;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x3b640c){const _0x4608d9=this['editor']['locale'],{data:_0x3252ae}=_0x3b640c,_0x278057={'type':'format','content':''};if(!_0x3252ae||'listStyle'!=_0x3252ae['key'])return;if(!_0x3252ae['oldValue'])return'default'==_0x3252ae['newValue']?_0x278057:{'type':'format','content':''+c(_0x4608d9,'*Set\x20format:*\x20%0',c(_0x4608d9,this['_getTranslationKeyForListStyle'](_0x3252ae['newValue'])))};if(!_0x3252ae['newValue']){if('default'==_0x3252ae['oldValue'])return _0x278057;let _0x93d8d8=_0x3b640c['head'];for(;_0x93d8d8;){if(_0x93d8d8['data']&&'listType'==_0x93d8d8['data']['key']&&_0x93d8d8['data']['newValue'])return _0x278057;_0x93d8d8=_0x93d8d8['next'];}return{'type':'format','content':''+c(_0x4608d9,'*Remove\x20format:*\x20%0',c(_0x4608d9,this['_getTranslationKeyForListStyle'](_0x3252ae['oldValue'])))};}if('default'!=_0x3252ae['newValue'])return{'type':'format','content':''+c(_0x4608d9,'*Set\x20format:*\x20%0',c(_0x4608d9,this['_getTranslationKeyForListStyle'](_0x3252ae['newValue'])))};let _0x365c05=_0x3b640c['head'];for(;_0x365c05;){if(_0x365c05['data']&&'listType'==_0x365c05['data']['key']&&_0x365c05['data']['newValue']&&_0x365c05['data']['oldValue'])return _0x278057;_0x365c05=_0x365c05['next'];}return{'type':'format','content':c(_0x4608d9,'*Set\x20format:*\x20%0',c(_0x4608d9,'ELEMENT_'+_0x3b640c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x34575a=this['editor'],_0x5b59dc=_0x34575a['locale'];_0x34575a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x43cdd7=>{if('formatBlock'!=_0x43cdd7['type'])return;const {data:_0x28f62d}=_0x43cdd7;if(!_0x28f62d)return;let _0x49abc9,_0x380a35;switch(_0x28f62d['commandName']){case'listStyle':_0x49abc9='*Change\x20to:*\x20%0',_0x380a35={'type':'format','content':c(_0x5b59dc,_0x49abc9,c(_0x5b59dc,this['_getTranslationKeyForListStyle'](_0x28f62d['commandParams'][0x0]['type'])))};break;case'listReversed':_0x49abc9=_0x28f62d['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x380a35={'type':'format','content':c(_0x5b59dc,_0x49abc9)};break;case'listStart':_0x49abc9='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x380a35={'type':'format','content':c(_0x5b59dc,_0x49abc9,_0x28f62d['commandParams'][0x0]['startIndex'])};}return _0x380a35;});}['_getTranslationKeyForListStyle'](_0x1e44cc){return'ELEMENT_'+function(_0x43eaf6){if(_e['includes'](_0x43eaf6))return'bulleted';if(Re['includes'](_0x43eaf6))return'numbered';return null;}(_0x1e44cc)['toUpperCase']()+'_LIST_'+_0x1e44cc['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x260752{static get['requires'](){return[_0x4560cd];}['init'](){const _0x1298ca=this['editor'],_0x1c1119=_0x1298ca['plugins']['get']('TrackChangesEditing'),_0x5e50db=_0x1298ca['commands']['get']('enter');_0x1c1119['enableCommand']('enter',()=>{_0x1298ca['model']['change'](_0x378933=>{const _0x834195=_0x1298ca['model']['document']['selection'],_0x3484f=_0x834195['getFirstPosition'](),_0x33116a=_0x2d338c['fromRange'](_0x834195['getFirstRange']());if(_0x5e50db['enterBlock'](_0x378933)){const _0x1ca11f=_0x1298ca['model']['createPositionAt'](_0x3484f['parent']['nextSibling'],0x0),_0x44bf28=_0x378933['createRange'](_0x3484f,_0x1ca11f);_0x1c1119['markInsertion'](_0x44bf28);}else _0x378933['setSelection'](_0x378933['createRange'](_0x33116a['end']));_0x33116a['detach'](),_0x5e50db['fire']('afterExecute',{'writer':_0x378933});});}),_0x1298ca['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x1298ca,'split'),{'priority':'high'}),_0x1298ca['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0xc0cebf,_0x4bcb33,_0x54c5cb)=>{const _0xf45fb1=_0x54c5cb['mapper']['markerNameToElements'](_0x4bcb33['markerName']);if(_0xf45fb1){for(const _0x4079c0 of _0xf45fb1)_0x4079c0['hasClass']('ck-suggestion-marker-split')&&(_0x54c5cb['mapper']['unbindElementFromMarkerName'](_0x4079c0,_0x4bcb33['markerName']),_0x54c5cb['writer']['remove'](_0x4079c0));}},{'priority':'high'}),_0x1298ca['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x16a175,_0x4198d5,_0x2a3520)=>{_0x2a3520['options']['showSuggestionHighlights']&&De(_0x1298ca,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x16a175,_0x4198d5,_0x2a3520);},{'priority':'high'});}}class Y extends _0x260752{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x27a5b9=this['editor']['plugins']['get']('TrackChangesEditing');_0x27a5b9['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x27a5b9['enableCommand']('findNext'),_0x27a5b9['enableCommand']('findPrevious'),_0x27a5b9['enableCommand']('replace'),_0x27a5b9['enableCommand']('replaceAll');}['handleFindCommand'](_0x1fb5da,_0x32d3eb,_0x3328ce={}){const _0x52b263=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1fb5da(_0x5d3959=>{let _0x44ead2=('string'==typeof _0x32d3eb?_0x52b263['findByTextCallback'](_0x32d3eb,_0x3328ce):_0x32d3eb)(_0x5d3959);Array['isArray'](_0x44ead2)&&(_0x44ead2={'results':_0x44ead2,'searchText':'string'==typeof _0x32d3eb?_0x32d3eb:''});const _0x42a087=_0x44ead2['results']['filter'](_0x97928e=>!0x1===this['_isInDeletionRange'](_0x97928e,_0x5d3959['item']));return{..._0x44ead2,'results':_0x42a087};},_0x3328ce);}['_isInDeletionRange'](_0x53f0d0,_0x251b82){const _0x33afc4=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x251b82,_0x53f0d0['start']),this['editor']['model']['createPositionAt'](_0x251b82,_0x53f0d0['end']));for(const _0x582e65 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x33afc4['getIntersection'](_0x582e65['getRange']()))return!0x0;return!0x1;}}const to=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x260752{['afterInit'](){const _0x28571e=this['editor']['locale'],_0xbcb044=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1345e7,commandName:_0x1b511e}of to)this['editor']['plugins']['has'](_0x1345e7)&&(_0xbcb044['enableDefaultAttributesIntegration'](_0x1b511e),_0xbcb044['registerInlineAttribute'](_0x1b511e));_0xbcb044['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x28571e,'FORMAT_FONT_SIZE')),_0xbcb044['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x28571e,'FORMAT_FONT_FAMILY')),_0xbcb044['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x28571e,'FORMAT_FONT_COLOR')),_0xbcb044['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x28571e,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x21eef1=this['editor'],_0x37dba1=_0x21eef1['locale'];_0x21eef1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5f320d=>{const _0x309587=_0x37dba1['t'];if('formatInline'!=_0x5f320d['type'])return;const {data:_0x522aec}=_0x5f320d;if(null!=_0x522aec){if('fontSize'==_0x522aec['commandName']){const _0x58a681=_0x522aec['commandParams'][0x0]['value'];if(_0x58a681){const _0x4950f3=_0x309587(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x170299=>_0x170299['model']==_0x58a681)['title'])['toLowerCase']();return{'type':'format','content':c(_0x37dba1,'*Set\x20font\x20size:*\x20%0',_0x4950f3)};}return{'type':'format','content':c(_0x37dba1,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x522aec['commandName']){const _0x21155d=_0x522aec['commandParams'][0x0]['value'];return _0x21155d?{'type':'format','content':c(_0x37dba1,'*Set\x20font\x20family:*\x20%0',_0x21155d)}:{'type':'format','content':c(_0x37dba1,'*Reset\x20font\x20family*')};}if('fontColor'==_0x522aec['commandName']){const _0x5b402a=_0x522aec['commandParams'][0x0]['value'];if(_0x5b402a){const _0x3023d0=Zt(this['editor']['config']['get']('fontColor.colors'))['find'](_0x21f107=>_0x21f107['model']==_0x5b402a);let _0xf00f6f=_0x5b402a,_0x1a8b62='';return _0x3023d0&&(_0xf00f6f=_0x3023d0['label'],_0x1a8b62=_0x309587(_0xf00f6f)['toLowerCase']()),{'type':'format','content':c(_0x37dba1,'*Set\x20font\x20color:*\x20%0',_0x1a8b62)['trim'](),'color':{'value':_0x5b402a,'title':_0x1a8b62||_0xf00f6f}};}return{'type':'format','content':c(_0x37dba1,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x522aec['commandName']){const _0x2e7865=_0x522aec['commandParams'][0x0]['value'];if(_0x2e7865){const _0x71916c=Zt(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x5202af=>_0x5202af['model']==_0x2e7865);let _0x40d651=_0x2e7865,_0x15feb5='';return _0x71916c&&(_0x40d651=_0x71916c['label'],_0x15feb5=_0x309587(_0x40d651)['toLowerCase']()),{'type':'format','content':c(_0x37dba1,'*Set\x20font\x20background\x20color:*\x20%0',_0x15feb5)['trim'](),'color':{'value':_0x2e7865,'title':_0x15feb5||_0x40d651}};}return{'type':'format','content':c(_0x37dba1,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x260752{['afterInit'](){const _0x4e9627=this['editor'],_0x225c2e=_0x4e9627['plugins']['get']('TrackChangesEditing'),_0x1be65b=_0x4e9627['commands']['get']('copyFormat'),_0x3f1829=_0x4e9627['commands']['get']('pasteFormat');_0x1be65b&&_0x3f1829&&(_0x225c2e['enableDefaultAttributesIntegration']('pasteFormat'),_0x225c2e['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0xf80f6e=this['editor'],_0x1f5e87=_0xf80f6e['locale'];_0xf80f6e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x387b1f=>{if('formatBlock'!=_0x387b1f['type']&&'formatInline'!=_0x387b1f['type'])return;const {data:_0x281481}=_0x387b1f;if(_0x281481&&'pasteFormat'===_0x281481['commandName']){const _0xe3b40f=[],_0x3f9049=_0x281481['commandParams'][0x0];for(const [_0x2c7d1a,_0x2e0975]of Object['entries'](_0x3f9049))_0xe3b40f['push'](ro(_0xf80f6e,_0x2c7d1a,_0x2e0975));return _0xe3b40f['length']?{'type':'format','content':c(_0x1f5e87,'*Set\x20format\x20to:*\x20%0',_0xe3b40f['join'](',\x20'))}:{'type':'format','content':c(_0x1f5e87,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x5f3ebc,_0x56de4b,_0x515618){const _0x3bde1a=_0x5f3ebc['locale']['t'],_0x31de1c=_0x56de4b['split'](/(?=[A-Z])/)['join']('\x20'),_0x2b514a=_0x3bde1a(_0x31de1c['charAt'](0x0)['toUpperCase']()+_0x31de1c['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x515618)return _0x2b514a;if('fontColor'===_0x56de4b||'fontBackgroundColor'===_0x56de4b){const _0x4ad4a7=Zt(_0x5f3ebc['config']['get']('fontColor.colors'))['find'](_0x376c7b=>_0x376c7b['model']==_0x515618);return _0x2b514a+'\x20('+(_0x4ad4a7?_0x3bde1a(_0x4ad4a7['label'])['toLowerCase']():_0x515618)+')';}if('fontSize'===_0x56de4b&&isNaN(parseFloat(_0x515618))){const _0x13bd2d=_0x5f3ebc['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x5f3ebc['config']['get']('fontSize.options'))['find'](_0x5503a7=>_0x5503a7['model']==_0x515618);return _0x2b514a+'\x20('+(_0x13bd2d?_0x3bde1a(_0x13bd2d['title'])['toLowerCase']():_0x515618)+')';}return _0x2b514a+'\x20('+_0x515618+')';}class et extends _0x260752{['_headingOptions'];['afterInit'](){const _0x210b93=this['editor'];if(!_0x210b93['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x210b93['config']['get']('heading.options');const _0x3f76cb=_0x210b93['locale'],_0x20cdb9=_0x210b93['plugins']['get']('TrackChangesEditing');_0x20cdb9['enableDefaultAttributesIntegration']('heading');for(const _0x4283bf of this['_headingOptions'])'paragraph'!=_0x4283bf['model']&&_0x20cdb9['descriptionFactory']['registerElementLabel'](_0x4283bf['model'],_0x12bbaf=>{const _0x5a2a8e=this['_getHeadingLevel'](_0x4283bf['model']);return null!==_0x5a2a8e?_0x33fbd8(_0x12bbaf,_0x5a2a8e):_0x463f74(_0x12bbaf,_0x4283bf['title']);});function _0x33fbd8(_0x1bf499,_0x5ef934){return c(_0x3f76cb,'ELEMENT_HEADING',[_0x1bf499,_0x5ef934]);}function _0x463f74(_0x29eb50,_0x5e28e4){return c(_0x3f76cb,'ELEMENT_HEADING_CUSTOM',[_0x29eb50,_0x5e28e4]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x342d5b=this['editor'],_0x2db7bf=_0x342d5b['locale'];function _0x1228f8(_0xda7841,_0x5e0fd1){return c(_0x2db7bf,'ELEMENT_HEADING_CUSTOM',[_0xda7841,_0x5e0fd1]);}_0x342d5b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13332e=>{if('formatBlock'!=_0x13332e['type'])return;const {data:_0x190b73}=_0x13332e;if(_0x190b73&&'heading'==_0x190b73['commandName']){const _0x255ba8=_0x190b73['commandParams'][0x0]['value'],_0x43374e=this['_getHeadingLevel'](_0x255ba8);if(null!==_0x43374e)return{'type':'format','content':c(_0x2db7bf,'*Change\x20to:*\x20%0',(_0x5695ef=0x1,_0x27b6d5=_0x43374e,c(_0x2db7bf,'ELEMENT_HEADING',[_0x5695ef,_0x27b6d5])))};const _0x293446=this['_headingOptions']['find'](_0x369a36=>_0x369a36['model']===_0x255ba8)['title'];return{'type':'format','content':c(_0x2db7bf,'*Change\x20to:*\x20%0',_0x1228f8(0x1,_0x293446))};}var _0x5695ef,_0x27b6d5;});}['_getHeadingLevel'](_0x50b042){const _0x45d361=_0x50b042['match'](/^heading(\d+)/);if(_0x45d361)return _0x45d361[0x1];const _0xa745ef=this['_headingOptions']?.['find'](_0x2da44c=>_0x2da44c['model']==_0x50b042);if(_0xa745ef&&_0xa745ef['view']){const _0x2b4fed=_0xa745ef['view'],_0x48af87=(_0x2b4fed['name']??_0x2b4fed)['match'](/^h(\d+)/);if(_0x48af87)return _0x48af87[0x1];}return null;}}class nt extends _0x260752{['afterInit'](){const _0x171412=this['editor'];if(!_0x171412['plugins']['has']('HighlightEditing'))return;const _0x5b3052=_0x171412['plugins']['get']('TrackChangesEditing'),_0x47ac9e=_0x171412['locale'];_0x5b3052['enableDefaultAttributesIntegration']('highlight'),_0x5b3052['registerInlineAttribute']('highlight'),_0x5b3052['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x47ac9e,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x29a189=this['editor'],_0x1aa702=_0x29a189['locale'];_0x29a189['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4634e3=>{if('formatInline'!=_0x4634e3['type'])return;const {data:_0x1baaab}=_0x4634e3;if(_0x1baaab&&'highlight'==_0x1baaab['commandName']){const _0x5d5900=_0x1aa702['t'],_0x32aed3=_0x1baaab['commandParams'][0x0]['value'];if(_0x32aed3){const _0x3a369f=_0x29a189['config']['get']('highlight.options')['find'](_0x37b004=>_0x37b004['model']==_0x32aed3),_0x55a54c=_0x5d5900(_0x3a369f['title'])['toLowerCase']();return{'type':'format','content':c(_0x1aa702,'*Set\x20highlight:*\x20%0',_0x55a54c),'color':{'value':_0x3a369f['color'],'title':_0x3a369f['title']}};}return{'type':'format','content':c(_0x1aa702,'*Remove\x20highlight*',c(_0x1aa702,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x260752{['afterInit'](){const _0x13e263=this['editor'];if(!_0x13e263['plugins']['has']('HorizontalLineEditing'))return;_0x13e263['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3fbc2f=_0x13e263['plugins']['get']('TrackChangesEditing'),_0x1986ac=_0x13e263['locale'];_0x3fbc2f['descriptionFactory']['registerElementLabel']('horizontalLine',_0x11a64b=>c(_0x1986ac,'ELEMENT_HORIZONTAL_LINE',_0x11a64b)),_0x13e263['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x919b0c,{writer:_0x52f006,options:_0x26fd60})=>{if(!_0x26fd60['showSuggestionHighlights'])return null;const _0x218ffc=_0x52f006['createContainerElement']('div'),_0x341aef=_0x52f006['createEmptyElement']('hr');return _0x52f006['addClass']('ck-horizontal-line',_0x218ffc),_0x52f006['insert'](_0x52f006['createPositionAt'](_0x218ffc,0x0),_0x341aef),_0x218ffc;},'converterPriority':'high'});}}class st extends _0x260752{['afterInit'](){const _0x3e1d6e=this['editor'];if(!_0x3e1d6e['plugins']['has']('HtmlEmbed'))return;const _0x256db7=_0x3e1d6e['plugins']['get']('TrackChangesEditing'),_0x4ad165=_0x3e1d6e['locale'];_0x256db7['descriptionFactory']['registerElementLabel']('rawHtml',_0x41465e=>c(_0x4ad165,'ELEMENT_HTML_EMBED',_0x41465e)),_0x256db7['enableDefaultAttributesIntegration']('htmlEmbed'),_0x256db7['registerBlockAttribute']('value'),_0x256db7['descriptionFactory']['registerDescriptionCallback'](_0x2a94ff=>{if('attribute'!=_0x2a94ff['type'])return;const {data:_0x16c9cf}=_0x2a94ff;if(_0x16c9cf&&'value'==_0x16c9cf['key']&&_0x2a94ff['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x5739f7=c(_0x4ad165,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x4ad165,'*Change\x20%0\x20content*',_0x5739f7)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4eeae2=this['editor'],_0x374375=_0x4eeae2['locale'];_0x4eeae2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1fb1e1=>{if('formatBlock'!=_0x1fb1e1['type'])return;const {data:_0x853fad}=_0x1fb1e1;if(_0x853fad&&'htmlEmbed'==_0x853fad['commandName']){const _0x3e85a9=c(_0x374375,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x374375,'*Change\x20%0\x20content*',_0x3e85a9)};}});}}class ot extends _0x260752{['afterInit'](){const _0x45cfee=this['editor'];if(!_0x45cfee['plugins']['has']('ImageEditing'))return;const _0x3c557c=_0x45cfee['plugins']['get']('TrackChangesEditing'),_0x541a66=_0x45cfee['plugins']['get']('ImageUtils'),_0x1c2966=_0x45cfee['locale'];_0x3c557c['enableCommand']('insertImage'),_0x3c557c['descriptionFactory']['registerElementLabel']('imageBlock',_0x2fb9b2=>c(_0x1c2966,'ELEMENT_IMAGE',_0x2fb9b2)),_0x3c557c['descriptionFactory']['registerElementLabel']('imageInline',_0x567aaa=>c(_0x1c2966,'ELEMENT_INLINE_IMAGE',_0x567aaa)),_0x3c557c['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x1c2966,'ELEMENT_CAPTION')),_0x45cfee['plugins']['has']('ImageUploadEditing')&&_0x3c557c['enableCommand']('uploadImage'),_0x45cfee['plugins']['has']('ImageBlockEditing')&&_0x45cfee['plugins']['has']('ImageInlineEditing')&&(_0x3c557c['enableCommand']('imageTypeInline',(_0x43b748,_0x4c3b22)=>{const _0x1f46ba=_0x541a66['getClosestSelectedImageElement'](_0x45cfee['model']['document']['selection']);_0x45cfee['model']['change'](()=>{_0x3c557c['markBlockFormat'](_0x1f46ba,{'commandName':'imageTypeInline','commandParams':[_0x4c3b22]},[],'convertBlockImageToInline');});}),_0x3c557c['enableCommand']('imageTypeBlock',(_0x8b7607,_0x5cf230)=>{_0x45cfee['model']['change'](_0x31f2de=>{let _0x2bdb44=_0x541a66['getClosestSelectedImageElement'](_0x45cfee['model']['document']['selection']),_0x725165=_0x31f2de['createRangeOn'](_0x2bdb44);const _0x3b14b1=_0xbfa6c3['fromPosition'](_0x725165['start'],'toPrevious'),_0x9495c3=_0xbfa6c3['fromPosition'](_0x725165['end'],'toNext');_0x3c557c['forceDefaultExecution'](()=>_0x8b7607(_0x5cf230)),_0x2bdb44=_0x541a66['getClosestSelectedImageElement'](_0x45cfee['model']['document']['selection']),_0x725165=_0x31f2de['createRangeOn'](_0x2bdb44);const _0x38d1cd=_0x31f2de['createRange'](_0x3b14b1,_0x9495c3);_0x3b14b1['detach'](),_0x9495c3['detach'](),_0x3c557c['markBlockFormat'](_0x2bdb44,{'commandName':'imageTypeInline','commandParams':[_0x5cf230]},[],'convertInlineImageToBlock'),_0x38d1cd['start']['isBefore'](_0x725165['start'])&&_0x3c557c['markInsertion'](_0x31f2de['createRange'](_0x38d1cd['start'],_0x725165['start']),'convertInlineImageToBlock'),_0x725165['end']['isBefore'](_0x38d1cd['end'])&&_0x3c557c['markInsertion'](_0x31f2de['createRange'](_0x725165['end'],_0x38d1cd['end']),'convertInlineImageToBlock');});}),_0x3c557c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3c557c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3c557c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3c557c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3c557c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3c557c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x40c30f])=>{const _0x3c659f=_0x3c557c['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x165197=_0x40c30f['start'],_0x3e2ea3=_0x40c30f['end'];const _0x4976f3=_0x45cfee['model']['schema']['getNearestSelectionRange'](_0x165197,'backward'),_0x34fefb=_0x45cfee['model']['schema']['getNearestSelectionRange'](_0x3e2ea3,'forward');_0x4976f3['isCollapsed']&&(_0x165197=_0x4976f3['start']),_0x34fefb['isCollapsed']&&(_0x3e2ea3=_0x34fefb['end']),_0x3c659f([_0x45cfee['model']['createRange'](_0x165197,_0x3e2ea3)]);}),_0x3c557c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x5470af),_0x3c557c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x5470af)),_0x45cfee['plugins']['has']('ImageCaptionEditing')&&(_0x3c557c['enableCommand']('toggleImageCaption',(_0x4244f7,_0x113571)=>{const _0x2009b0=_0x45cfee['plugins']['get']('ImageCaptionUtils');let _0x4781d7=_0x541a66['getClosestSelectedImageElement'](_0x45cfee['model']['document']['selection']),_0xec0a63=_0x2009b0['getCaptionFromImageModelElement'](_0x4781d7);_0x45cfee['model']['change'](()=>{if(_0xec0a63)return void _0x3c557c['markDeletion'](_0x45cfee['model']['createRangeOn'](_0xec0a63));const _0x2f50b5=_0x541a66['isBlockImage'](_0x4781d7);_0x4244f7(_0x113571),_0x4781d7=_0x541a66['getClosestSelectedImageElement'](_0x45cfee['model']['document']['selection']),_0xec0a63=_0x2009b0['getCaptionFromImageModelElement'](_0x4781d7),_0x3c557c['markInsertion'](_0x45cfee['model']['createRangeOn'](_0xec0a63),_0x2f50b5?null:'imageCaption');});}),_0x3c557c['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x5470af));const _0x2120f9=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x10bf6d(_0x53e755,_0x3af732){const _0x42064d=_0x2120f9['findIndex'](({type:_0x28e3ed,subType:_0xddf5d6})=>_0x53e755['type']==_0x28e3ed&&_0x53e755['subType']==_0xddf5d6),_0x1d0445=_0x2120f9['findIndex'](({type:_0xa98a8a,subType:_0x138bfb})=>_0x3af732['type']==_0xa98a8a&&_0x3af732['subType']==_0x138bfb);if(_0x42064d<0x0||_0x1d0445<0x0)return!0x1;const _0x3b903d=_0x53e755['getFirstRange'](),_0x365153=_0x3af732['getFirstRange']();if((0x0==_0x42064d||0x1==_0x42064d)&&0x2==_0x1d0445&&_0x3b903d['isIntersecting'](_0x365153))return!0x0;if(0x2==_0x42064d&&0x3==_0x1d0445){const _0x6b01a7=_0x3c557c['_findSuggestions'](_0x3b903d,'insertion')['filter'](({suggestion:_0x284580,meta:_0x1bbdaf})=>_0x1bbdaf['isOwn']&&'convertInlineImageToBlock'==_0x284580['subType']);if(_0x6b01a7['length']>0x1&&_0x365153['end']['isEqual'](_0x3b903d['start']))return!0x0;if(0x1==_0x6b01a7['length']&&(_0x3b903d['start']['isEqual'](_0x365153['end'])||_0x3b903d['end']['isEqual'](_0x365153['start'])))return!0x0;}if(0x3==_0x42064d&&0x3==_0x1d0445&&_0x3b903d['start']['isBefore'](_0x365153['start'])){const _0x3b45fa=_0x3b903d['end']['nodeAfter'],_0x30b56b=_0x365153['start']['nodeBefore'];return _0x541a66['isBlockImage'](_0x3b45fa)&&_0x3b45fa===_0x30b56b;}return!0x1;}function _0x5470af(_0x1b2864,_0x498e7d){return _0x10bf6d(_0x1b2864,_0x498e7d)?[_0x1b2864,_0x498e7d]:_0x10bf6d(_0x498e7d,_0x1b2864)?[_0x498e7d,_0x1b2864]:null;}_0x45cfee['plugins']['has']('ImageResize')&&(_0x3c557c['enableDefaultAttributesIntegration']('resizeImage'),_0x3c557c['registerBlockAttribute']('resizedWidth'),_0x3c557c['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x1c2966,'FORMAT_IMAGE_SIZE'))),_0x45cfee['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3c557c['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3c557c['registerBlockAttribute']('alt')),_0x45cfee['plugins']['has']('PictureEditing')&&(_0x3c557c['registerBlockAttribute']('sources'),_0x3c557c['descriptionFactory']['registerDescriptionCallback'](_0x5783cf=>{if('attribute'!=_0x5783cf['type'])return;const {data:_0x18e7ee}=_0x5783cf;return _0x18e7ee&&'sources'==_0x18e7ee['key']?{'type':'format','content':''}:void 0x0;})),_0x45cfee['plugins']['has']('ImageSizeAttributes')&&(_0x3c557c['registerBlockAttribute']('width'),_0x3c557c['registerBlockAttribute']('height'),_0x3c557c['descriptionFactory']['registerDescriptionCallback'](_0x1d2aee=>{if('attribute'!=_0x1d2aee['type'])return;const {data:_0x247bf6}=_0x1d2aee;return!_0x247bf6||'width'!=_0x247bf6['key']&&'height'!=_0x247bf6['key']?void 0x0:{'type':'format','content':''};})),_0x3c557c['descriptionFactory']['registerDescriptionCallback'](_0x3ec54d=>{if(!!_0x2120f9['find'](({type:_0x552df2,subType:_0x498181})=>_0x3ec54d['type']==_0x552df2&&_0x3ec54d['subType']==_0x498181))return _0x3ec54d['previous']?{}:void 0x0;}),_0x3c557c['descriptionFactory']['registerDescriptionCallback'](_0x262307=>{if('insertion'==_0x262307['type']||'deletion'==_0x262307['type']){const _0x1d4340=_0x262307['getContainedElement']();if(_0x1d4340&&_0x1d4340['is']('element','caption'))return{'type':'insertion'==_0x262307['type']?'addObject':'removeObject','element':_0x1d4340,'quantity':0x1};}}),_0x3c557c['descriptionFactory']['registerDescriptionCallback'](_0x6183b1=>'formatBlock'==_0x6183b1['type']&&'convertInlineImageToBlock'==_0x6183b1['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x6183b1['type']&&'convertBlockImageToInline'==_0x6183b1['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3c557c['descriptionFactory']['registerDescriptionCallback'](_0x25547e=>{if('attribute'!=_0x25547e['type'])return;const {data:_0x5a6db0}=_0x25547e;if(!_0x5a6db0||'alt'!=_0x5a6db0['key'])return;const _0x2849a7=_0x5a6db0['newValue'];return _0x2849a7?{'type':'format','content':c(_0x1c2966,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2849a7+'\x22')}:{'type':'format','content':c(_0x1c2966,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1d8ce9=this['editor'],_0x441145=_0x1d8ce9['locale'];_0x1d8ce9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d51db=>{if('formatBlock'!=_0x3d51db['type']&&'formatInline'!=_0x3d51db['type'])return;const {data:_0x163d06}=_0x3d51db;if(_0x163d06){if('imageTextAlternative'==_0x163d06['commandName']){const _0x28e733=_0x163d06['commandParams'][0x0]['newValue'];return _0x28e733?{'type':'format','content':c(_0x441145,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x28e733+'\x22')}:{'type':'format','content':c(_0x441145,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x163d06['commandName']){const _0x41b9b1=_0x163d06['commandParams'][0x0]['width'];return _0x41b9b1?{'type':'format','content':c(_0x441145,'*Set\x20image\x20width:*\x20%0',_0x41b9b1)}:{'type':'format','content':c(_0x441145,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x260752{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x5191ae=this['editor']['locale'],_0x1fe95f=this['editor']['plugins']['get']('TrackChangesEditing');_0x1fe95f['enableDefaultAttributesIntegration']('replaceImageSource'),_0x1fe95f['registerBlockAttribute']('src'),_0x1fe95f['descriptionFactory']['registerDescriptionCallback'](_0x525f0b=>{if('attribute'!=_0x525f0b['type'])return;const {data:_0x4093b0}=_0x525f0b;return _0x4093b0&&'src'==_0x4093b0['key']?_0x4093b0['newValue']&&_0x4093b0['oldValue']?{'type':'format','content':c(_0x5191ae,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4ccb02=this['editor']['plugins']['get']('TrackChangesEditing');_0x4ccb02['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4ccb02['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4ccb02['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4ccb02['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x578090=this['editor'],_0x1850a1=_0x578090['locale'];_0x578090['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5457ec=>{if('formatBlock'!=_0x5457ec['type']&&'formatInline'!=_0x5457ec['type'])return;const {data:_0x2c6f4e}=_0x5457ec;if(!_0x2c6f4e||'replaceImageSource'!=_0x2c6f4e['commandName'])return;return{'type':'format','content':c(_0x1850a1,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x260752{['afterInit'](){const _0x29f45c=this['editor'];if(!_0x29f45c['plugins']['has']('ImageStyleEditing'))return;const _0x487c94=_0x29f45c['plugins']['get']('TrackChangesEditing'),_0x342da8=_0x29f45c['plugins']['get']('ImageUtils'),_0x20d17e={};_0x487c94['enableCommand']('imageStyle',(_0x43f270,_0x38664e)=>{const _0x30d080=_0x29f45c['plugins']['get']('Users')['me'],_0x26ccb5=_0x29f45c['commands']['get']('imageStyle');let _0x13ece6=_0x342da8['getClosestSelectedImageElement'](_0x29f45c['model']['document']['selection']),_0x2db43b=_0x29f45c['model']['createRangeOn'](_0x13ece6),_0x4426fb=_0x26ccb5['value'];if(_0x4426fb==_0x38664e['value'])return;const _0x175ec5={'commandName':'imageStyle','commandParams':[_0x38664e],'formatGroupId':_0x1fa35e()};_0x29f45c['model']['change'](()=>{if(_0x487c94['getSuggestions']()['filter'](_0x2c9dae=>_0x2c9dae['isInContent']&&_0x30d080==_0x2c9dae['author']&&('formatBlock'==_0x2c9dae['type']||'formatInline'==_0x2c9dae['type'])&&('imageStylePreApply'==_0x2c9dae['subType']||'imageStylePostApply'==_0x2c9dae['subType'])&&_0x2c9dae['getFirstRange']()['isEqual'](_0x2db43b))['forEach'](_0xf06e45=>_0x487c94['discardSuggestion'](_0xf06e45['head'])),_0x13ece6=_0x342da8['getClosestSelectedImageElement'](_0x29f45c['model']['document']['selection']),_0x2db43b=_0x29f45c['model']['createRangeOn'](_0x13ece6),_0x26ccb5['refresh'](),_0x29f45c['commands']['get']('imageTypeInline')['refresh'](),_0x29f45c['commands']['get']('imageTypeBlock')['refresh'](),_0x4426fb=_0x26ccb5['value'],_0x4426fb!=_0x38664e['value'])return _0x342da8['isInlineImage'](_0x13ece6)&&_0x26ccb5['shouldConvertImageType'](_0x38664e['value'],_0x13ece6)?(_0x43f270({..._0x38664e,'setImageSizes':!0x1}),_0x13ece6=_0x342da8['getClosestSelectedImageElement'](_0x29f45c['model']['document']['selection']),void _0x487c94['markBlockFormat'](_0x13ece6,{..._0x175ec5,'commandReversedParams':[{'value':_0x4426fb||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x342da8['isBlockImage'](_0x13ece6)?_0x487c94['markBlockFormat'](_0x13ece6,_0x175ec5,[],'imageStylePostApply'):_0x487c94['markInlineFormat'](_0x2db43b,_0x175ec5,'imageStylePostApply'));});});for(const _0x2f6bb7 of _0x29f45c['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x20d17e[_0x2f6bb7['name']]=_0x2f6bb7['title']['toLowerCase']();_0x487c94['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x487c94['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x487c94['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x487c94['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x40661e])=>{_0x342da8['setImageNaturalSizeAttributes'](_0x40661e['getContainedElement']());}),_0x487c94['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x33e933,_0x3c9c7a)=>{_0x487c94['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x33e933,{'commandName':_0x3c9c7a['commandName'],'commandParams':_0x3c9c7a['commandReversedParams']});}),_0x487c94['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x4a600f,_0x20d04c){if(_0x3f2093(_0x4a600f,_0x20d04c))return[_0x4a600f,_0x20d04c];if(_0x3f2093(_0x20d04c,_0x4a600f))return[_0x20d04c,_0x4a600f];return null;});const _0x2370da=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3f2093(_0x332953,_0x2b7191){const _0x1c9624=_0x2370da['findIndex'](({type:_0x4574a4,subType:_0x10acda})=>_0x332953['type']==_0x4574a4&&_0x332953['subType']==_0x10acda),_0xa26f81=_0x2370da['findIndex'](({type:_0x22365a,subType:_0x1d9b52})=>_0x2b7191['type']==_0x22365a&&_0x2b7191['subType']==_0x1d9b52);if(_0x1c9624<0x0||_0xa26f81<0x0)return!0x1;const _0x19d415=_0x332953['getFirstRange'](),_0x1e446e=_0x2b7191['getFirstRange']();if((0x0==_0x1c9624||0x1==_0x1c9624)&&0x2==_0xa26f81&&_0x19d415['isIntersecting'](_0x1e446e))return!0x0;if(0x2==_0x1c9624&&0x3==_0xa26f81){const _0x48d6d8=_0x487c94['_findSuggestions'](_0x19d415,'insertion')['filter'](({suggestion:_0x1e91cf,meta:_0x36e9d1})=>_0x36e9d1['isOwn']&&'convertInlineImageToBlock'==_0x1e91cf['subType']);if(_0x48d6d8['length']>0x1&&_0x1e446e['end']['isEqual'](_0x19d415['start']))return!0x0;if(0x1==_0x48d6d8['length']&&(_0x19d415['start']['isEqual'](_0x1e446e['end'])||_0x19d415['end']['isEqual'](_0x1e446e['start'])))return!0x0;}if(0x3==_0x1c9624&&0x3==_0xa26f81&&_0x19d415['start']['isBefore'](_0x1e446e['start'])){const _0x452a51=_0x19d415['end']['nodeAfter'],_0x2f5697=_0x1e446e['start']['nodeBefore'];return _0x342da8['isBlockImage'](_0x452a51)&&_0x452a51===_0x2f5697;}return!0x1;}_0x29f45c['model']['document']['registerPostFixer'](()=>{let _0x5b1791=!0x1;const _0x40517e=Array['from'](_0x29f45c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2590af,data:_0x2abc0f}of _0x40517e){const {group:_0x3b1db9,type:_0x2120eb,subType:_0xa3649c,id:_0x1e0fc7}=_0x487c94['_splitMarkerName'](_0x2590af);if('suggestion'==_0x3b1db9&&_0x487c94['hasSuggestion'](_0x1e0fc7)){if('formatBlock'==_0x2120eb&&('imageStylePreApply'==_0xa3649c||'imageStylePostApply'==_0xa3649c)){const _0x1bfbb=_0x487c94['getSuggestion'](_0x1e0fc7);if(_0x2abc0f['newRange']){const _0x41e48e=_0x1bfbb['getFirstRange']()['getContainedElement']();if(_0x342da8['isBlockImage'](_0x41e48e))continue;_0x487c94['discardSuggestion'](_0x1bfbb),_0x5b1791=!0x0;}}if('insertion'==_0x2120eb&&'imageCaption'==_0xa3649c&&!_0x2abc0f['newRange']){const _0x24bf75=_0x487c94['getSuggestion'](_0x1e0fc7);_0x24bf75['next']&&_0x24bf75['next']['isInContent']&&(_0x487c94['discardSuggestion'](_0x24bf75['next']),_0x5b1791=!0x0);}}}return _0x5b1791;}),this['_registerLegacyDescription'](_0x20d17e);}['_registerLegacyDescription'](_0x5eea77){const _0x474c74=this['editor'],_0x3b91f1=_0x474c74['locale'];_0x474c74['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x58d0be=>{if('formatBlock'!=_0x58d0be['type']&&'formatInline'!=_0x58d0be['type'])return;const {data:_0x5226bb}=_0x58d0be;if(!_0x5226bb||'imageStyle'!=_0x5226bb['commandName'])return;const _0x14b077=_0x5226bb['commandParams'][0x0]['value'];return _0x16033b('side'===_0x14b077?c(_0x3b91f1,'FORMAT_SIDE_IMAGE'):_0x5eea77[_0x14b077]||_0x14b077);function _0x16033b(_0x512098){return{'type':'format','content':c(_0x3b91f1,'*Format:*\x20%0',_0x512098)};}});}}class ct extends _0x260752{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x2b8fc8){super(_0x2b8fc8),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x154c66=this['editor'],_0x1f8c52=_0x154c66['commands']['get']('importWord'),_0x2c0481=_0x154c66['commands']['get']('trackChanges');_0x1f8c52&&(_0x1f8c52['on']('execute',(_0x5e6772,[,_0x254cd0])=>{this['_trackChangesValueDuringImport']=_0x2c0481['value'],_0x254cd0['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x1f8c52,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x1f8c52,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2c0481['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x154c66['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x316b4b,_0x215f6f){const {suggestions:_0x40964c}=_0x215f6f,_0xed2397=this['editor']['commands']['get']('trackChanges'),_0x3ae4e1=_0xed2397['value'];this['_trackChangesValueDuringImport']!==_0x3ae4e1&&(_0xed2397['execute'](),this['_trackChangesExecuted']=!0x0),_0x40964c&&_0x40964c['forEach'](({id:_0x5737a8,type:_0xb48b1e,author:_0x4ca4a8,created_at:_0x5e6733})=>{const _0x3a4b8d={'id':_0x5737a8,'type':_0xb48b1e,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4ca4a8,'createdAt':_0x5e6733?new Date(_0x5e6733):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x3a4b8d);});}}class ut extends _0x260752{['afterInit'](){const _0x8ea23e=this['editor'],_0x5470d1=_0x8ea23e['plugins']['get']('TrackChangesEditing');if(_0x8ea23e['plugins']['has']('IndentEditing')&&(_0x5470d1['enableCommand']('indent'),_0x5470d1['enableCommand']('outdent')),_0x8ea23e['plugins']['has']('IndentBlock')){for(const _0x3f8b5d of['indentBlock','outdentBlock'])_0x5470d1['enableDefaultAttributesIntegration'](_0x3f8b5d);}const _0x41ee33=_0x8ea23e['locale'];_0x5470d1['registerBlockAttribute']('blockIndent'),_0x5470d1['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x41ee33,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3edbf1=this['editor'],_0xb82a0c=_0x3edbf1['locale'],_0xc3b1c4=_0x3edbf1['plugins']['get']('TrackChangesEditing');_0xc3b1c4['descriptionFactory']['registerDescriptionCallback'](_0x5765c4=>{if('formatBlock'!=_0x5765c4['type'])return;const {data:_0x3c5fd3}=_0x5765c4;if(!_0x3c5fd3)return;if('indentBlock'!=_0x3c5fd3['commandName']&&'outdentBlock'!=_0x3c5fd3['commandName'])return;const _0x90ec6b=_0x5765c4['getItems']()[0x0],_0xb9dd7=_0xc3b1c4['descriptionFactory']['getItemLabel'](_0x90ec6b);return'indentBlock'==_0x3c5fd3['commandName']?{'type':'format','content':c(_0xb82a0c,'*Indent:*\x20%0',_0xb9dd7)}:'outdentBlock'==_0x3c5fd3['commandName']?{'type':'format','content':c(_0xb82a0c,'*Outdent:*\x20%0',_0xb9dd7)}:void 0x0;});}}class ft extends _0x260752{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x260752{['afterInit'](){const _0x30b4d2=this['editor'];if(!_0x30b4d2['plugins']['has']('LinkEditing'))return;const _0x3e51d0=_0x30b4d2['plugins']['get']('TrackChangesEditing'),_0x41a110=_0x30b4d2['commands']['get']('link');_0x3e51d0['enableDefaultAttributesIntegration']('link'),_0x3e51d0['enableDefaultAttributesIntegration']('unlink'),_0x3e51d0['registerInlineAttribute']('linkHref');for(const _0x30d250 of _0x41a110['manualDecorators'])_0x3e51d0['registerInlineAttribute'](_0x30d250['id']),_0x3e51d0['descriptionFactory']['registerAttributeLabel'](_0x30d250['id'],'link\x20('+_0x30d250['label']['toLowerCase']()+')');_0x3e51d0['descriptionFactory']['registerDescriptionCallback'](_0x312042=>{if('attribute'!=_0x312042['type'])return;const {data:_0x424373}=_0x312042;if(!_0x424373||'linkHref'!=_0x424373['key'])return;const _0x212512=_0x424373['newValue'],_0x10e249=_0x30b4d2['locale'];return{'type':'format','content':null==_0x212512?c(_0x10e249,'*Remove\x20link*'):c(_0x10e249,'*Set\x20link:*\x20%0','\x22'+_0x212512+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x59306f=this['editor'],_0x15a796=_0x59306f['locale'];_0x59306f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2edf9c=>{if('formatInline'!=_0x2edf9c['type'])return;const {data:_0x51f575}=_0x2edf9c;if(_0x51f575){if('link'==_0x51f575['commandName']){const _0x36a6d9=_0x51f575['commandParams'][0x0];return{'type':'format','content':c(_0x15a796,'*Set\x20link:*\x20%0','\x22'+_0x36a6d9+'\x22')};}return'unlink'==_0x51f575['commandName']?{'type':'format','content':c(_0x15a796,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x260752{['afterInit'](){const _0x2dd5e4=this['editor'],_0x551938=_0x2dd5e4['locale'];if(!_0x2dd5e4['plugins']['has']('LegacyListEditing'))return;const _0xf6736f=_0x2dd5e4['plugins']['get']('TrackChangesEditing'),_0x107833=_0x2dd5e4['plugins']['has']('LegacyTodoListEditing');function _0x36cb1f(_0x2ce82b){return()=>{const _0x327189=_0x2dd5e4['model']['document']['selection'],_0xb5a162=_0x2dd5e4['commands']['get'](_0x2ce82b);if(_0xb5a162['value'])return void _0x2dd5e4['execute']('paragraph',{});const _0x4339fe=_0x2ce82b['slice'](0x0,-0x4),_0x19584b=function(_0x1b1bba,_0x27150b,_0x173f6d){let _0xafc0fd=Array['from'](_0x1b1bba)['filter'](_0x4e2543=>function(_0x52b03e,_0x67af0f){return _0x67af0f['checkChild'](_0x52b03e['parent'],'listItem')&&!_0x67af0f['isObject'](_0x52b03e);}(_0x4e2543,_0x173f6d));_0xafc0fd=_0xafc0fd['filter'](_0x28fd17=>!_0x28fd17['is']('element','listItem')||_0x28fd17['getAttribute']('listType')!=_0x27150b);const _0x5ae439=new Set();for(const _0x2e8e9f of _0xafc0fd)_0x2e8e9f['is']('element','listItem')?_0x5ae439['add'](Le(_0x2e8e9f)):_0x5ae439['add'](_0x2e8e9f);return Array['from'](_0x5ae439);}(_0x327189['getSelectedBlocks'](),_0x4339fe,_0x2dd5e4['model']['schema']);_0x2dd5e4['model']['change'](()=>{for(const _0x5c4333 of _0x19584b)_0xf6736f['markBlockFormat'](_0x5c4333,{'commandName':_0x2ce82b,'commandParams':[{'forceValue':!_0xb5a162['value']}],'formatGroupId':'blockName'},Ee(_0x5c4333));});};}function _0x21460b(_0x40217e){return()=>{const _0x2a5257=function(_0x287453){let _0x1714ea=Array['from'](_0x287453);const _0x1bd9d8=_0x1714ea['findIndex'](_0xf7f9d1=>'listItem'!=_0xf7f9d1['name']);return _0x1bd9d8>-0x1&&(_0x1714ea=_0x1714ea['slice'](0x0,_0x1bd9d8)),_0x1714ea;}(_0x2dd5e4['model']['document']['selection']['getSelectedBlocks']()),_0x1af8a8=_0x2dd5e4['model']['createRange'](_0x2dd5e4['model']['createPositionAt'](_0x2a5257[0x0],'before'),_0x2dd5e4['model']['createPositionAt'](_0x2a5257[_0x2a5257['length']-0x1],'end'));_0x2dd5e4['model']['change'](()=>{_0xf6736f['markBlockFormat'](_0x1af8a8,{'commandName':_0x40217e,'commandParams':[],'formatGroupId':'listIndent'},function(_0x28bcde){const _0x1c7f29=new Set();for(const _0x40a0e5 of _0x28bcde){let _0x474df7=_0x40a0e5['nextSibling'];for(;_0x474df7&&_0x474df7['getAttribute']('listIndent')>_0x40a0e5['getAttribute']('listIndent');)_0x1c7f29['add'](_0x474df7),_0x474df7=_0x474df7['nextSibling'];}return Array['from'](_0x1c7f29);}(_0x2a5257));});};}_0xf6736f['enableCommand']('numberedList',_0x36cb1f('numberedList')),_0xf6736f['enableCommand']('bulletedList',_0x36cb1f('bulletedList')),_0x107833&&_0xf6736f['enableCommand']('todoList',_0x36cb1f('todoList')),_0xf6736f['enableCommand']('indentList',_0x21460b('indentList')),_0xf6736f['enableCommand']('outdentList',_0x21460b('outdentList')),_0x107833&&_0xf6736f['enableCommand']('checkTodoList',()=>{const _0x2031a8=_0x2dd5e4['commands']['get']('checkTodoList'),_0x1e0114=Array['from'](_0x2031a8['_selectedElements']);_0x1e0114['filter'](_0x4e8ad5=>_0x4e8ad5['getAttribute']('todoListChecked')!=_0x2031a8['value']),_0x2dd5e4['model']['change'](()=>{for(const _0x5bc8c8 of _0x1e0114)_0xf6736f['markBlockFormat'](_0x5bc8c8,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2031a8['value']}]});});}),_0xf6736f['descriptionFactory']['registerElementLabel']('listItem',_0x3d4edf=>c(_0x551938,'ELEMENT_LIST_ITEM',_0x3d4edf)),_0xf6736f['descriptionFactory']['registerDescriptionCallback'](_0x40a8df=>{if('formatBlock'!=_0x40a8df['type']&&'formatInline'!=_0x40a8df['type'])return;const {data:_0x382a45}=_0x40a8df;if(_0x382a45){if('numberedList'==_0x382a45['commandName']||'bulletedList'==_0x382a45['commandName']||'todoList'==_0x382a45['commandName'])switch(_0x382a45['commandName']['replace']('List','')){case'bulleted':return _0x19e5e7(c(_0x551938,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x19e5e7(c(_0x551938,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x19e5e7(c(_0x551938,'ELEMENT_TODO_LIST'));}if('indentList'==_0x382a45['commandName'])return{'type':'format','content':c(_0x551938,'*Indent:*\x20%0',c(_0x551938,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x382a45['commandName'])return{'type':'format','content':c(_0x551938,'*Outdent:*\x20%0',c(_0x551938,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x382a45['commandName'])return _0x382a45['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x551938,'*Check\x20item*')}:{'type':'format','content':c(_0x551938,'*Uncheck\x20item*')};}function _0x19e5e7(_0x1d2d7c){return{'type':'format','content':c(_0x551938,'*Change\x20to:*\x20%0',_0x1d2d7c)};}});}}function Le(_0x415917){const _0x1e1237=_0x415917['getAttribute']('listIndent');if(0x0==_0x1e1237)return _0x415917;let _0x4c7695=_0x415917;for(;_0x415917['previousSibling']&&_0x415917['previousSibling']['is']('element','listItem');){const _0x5f2159=_0x415917['previousSibling']['getAttribute']('listIndent');if(_0x5f2159==_0x1e1237)_0x4c7695=_0x415917['previousSibling'];else{if(_0x5f2159<_0x1e1237)break;}_0x415917=_0x415917['previousSibling'];}return _0x4c7695;}function Ee(_0x305489){const _0x46f29c=[];if(_0x305489['is']('element','listItem')&&_0x305489['getAttribute']('listIndent')>0x0){let _0x14c4c6=_0x305489['nextSibling'];for(;_0x14c4c6&&'listItem'==_0x14c4c6['name']&&_0x14c4c6['getAttribute']('listIndent')==_0x305489['getAttribute']('listIndent');)_0x46f29c['push'](_0x14c4c6),_0x14c4c6=_0x14c4c6['nextSibling'];}return _0x46f29c;}class Q extends _0x260752{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x42f256=this['editor']['config']['get']('list.properties'),_0x2f2e58=this['editor']['plugins']['get']('TrackChangesEditing');_0x42f256['styles']&&_0x2f2e58['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x42f256['reversed']&&_0x2f2e58['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x42f256['startIndex']&&_0x2f2e58['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x2f2e58['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x348d6f,_0xaf0efe={}){const _0x1a49f1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x15829e=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1a49f1['markMultiRangeBlockFormat'](_0x15829e,{'commandName':'listStyle','commandParams':[{'type':_0xaf0efe['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x2d7eb3,_0x316242={}){const _0x473426=this['editor']['plugins']['get']('TrackChangesEditing'),_0x126003=this['_getSuggestionBlocks'](_0x4ac761=>_0x4ac761['is']('element','listItem')&&'numbered'===_0x4ac761['getAttribute']('listType'));if(_0x126003['length']<0x1)return;const _0x2669d6=_0x126003['map'](_0x48822d=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x48822d,'before'),this['editor']['model']['createPositionAt'](_0x48822d,0x0)));this['editor']['model']['change'](()=>{_0x473426['markMultiRangeBlockFormat'](_0x2669d6,{'commandName':'listReversed','commandParams':[{'reversed':_0x316242['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x1aae6a,_0x3d9764={}){const _0xf1b2fd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4a0d07=this['_getSuggestionBlocks'](_0x7ce4c9=>_0x7ce4c9['is']('element','listItem')&&'numbered'===_0x7ce4c9['getAttribute']('listType'));if(_0x4a0d07['length']<0x1)return;const _0x544f20=_0x4a0d07['map'](_0x4d82d3=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4d82d3,'before'),this['editor']['model']['createPositionAt'](_0x4d82d3,0x0)));this['editor']['model']['change'](()=>{_0xf1b2fd['markMultiRangeBlockFormat'](_0x544f20,{'commandName':'listStart','commandParams':[{'startIndex':_0x3d9764['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x3fbd78){if('formatBlock'!=_0x3fbd78['type']&&'formatInline'!=_0x3fbd78['type'])return;const _0xf7e75d=this['editor']['locale'],{data:_0x4e6c59}=_0x3fbd78;if(!_0x4e6c59)return;let _0x29bf36,_0x25a93f;switch(_0x4e6c59['commandName']){case'listStyle':_0x29bf36='*Change\x20to:*\x20%0',_0x25a93f={'type':'format','content':c(_0xf7e75d,_0x29bf36,c(_0xf7e75d,this['_getTranslationKeyForListStyle'](_0x4e6c59['commandParams'][0x0]['type'])))};break;case'listReversed':_0x29bf36=_0x4e6c59['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x25a93f={'type':'format','content':c(_0xf7e75d,_0x29bf36)};break;case'listStart':_0x29bf36='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x25a93f={'type':'format','content':c(_0xf7e75d,_0x29bf36,_0x4e6c59['commandParams'][0x0]['startIndex'])};}return _0x25a93f;}['_getSuggestionBlocksForListStyle'](){const _0xbe5e3a=this['editor']['plugins']['get']('LegacyListUtils');let _0x47c653=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x47c653[0x0]?.['is']('element','listItem')&&_0x47c653['unshift'](..._0xbe5e3a['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x47c653[_0x47c653['length']-0x1]?.['is']('element','listItem')&&_0x47c653['push'](..._0xbe5e3a['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x47c653=[...new Set(_0x47c653)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x47c653=_0x47c653['filter'](_0x2b887d=>_0x2b887d['is']('element','listItem'))),_0x47c653;}['_getSuggestionBlocks'](_0x4e40fa){const _0x35aa9b=this['editor']['plugins']['get']('LegacyListUtils');let _0x67b861=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4e40fa)['map'](_0x21700b=>{const _0x24a47b=this['editor']['model']['createPositionAt'](_0x21700b,0x0);return[..._0x35aa9b['getSiblingNodes'](_0x24a47b,'backward'),..._0x35aa9b['getSiblingNodes'](_0x24a47b,'forward')];})['flat']();return _0x67b861=[...new Set(_0x67b861)],_0x67b861;}['_getTranslationKeyForListStyle'](_0x537cf5){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x537cf5)||'default')['toUpperCase']()+'_LIST_'+_0x537cf5['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x260752{['afterInit'](){const _0x29abbf=this['editor'];if(!_0x29abbf['plugins']['has']('MediaEmbedEditing'))return;const _0x152b0b=_0x29abbf['plugins']['get']('TrackChangesEditing'),_0x43e2f3=_0x29abbf['locale'];_0x152b0b['enableCommand']('mediaEmbed'),_0x152b0b['descriptionFactory']['registerElementLabel']('media',_0x184aef=>c(_0x43e2f3,'ELEMENT_MEDIA',_0x184aef)),_0x29abbf['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x3a8b92,{writer:_0x4db9ff,options:_0xec0b16})=>{if(_0xec0b16['showSuggestionHighlights'])return _0x4db9ff['createEmptyElement']('div');},'converterPriority':'high'}),_0x29abbf['data']['downcastDispatcher']['on']('attribute:url:media',(_0x178244,_0x19a6cf,_0x416937)=>{_0x416937['options']['showSuggestionHighlights']&&_0x178244['stop']();},{'priority':'high'});}}class mt extends _0x260752{['afterInit'](){const _0x41882d=this['editor'];_0x41882d['plugins']['has']('MentionEditing')&&_0x41882d['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x260752{['afterInit'](){const _0x18a75f=this['editor'];if(!_0x18a75f['plugins']['has']('MergeFieldsEditing'))return;const _0x5db9d8=_0x18a75f['plugins']['get']('TrackChangesEditing'),_0x3d1fc5=_0x18a75f['locale'];_0x5db9d8['enableCommand']('insertMergeField'),_0x5db9d8['enableCommand']('insertMergeFieldBlock'),_0x5db9d8['enableCommand']('insertMergeFieldImage'),_0x5db9d8['descriptionFactory']['registerElementLabel']('mergeField',_0x172f3c=>c(_0x3d1fc5,'ELEMENT_MERGE_FIELD',_0x172f3c)),_0x5db9d8['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x9e38ce=>c(_0x3d1fc5,'ELEMENT_MERGE_FIELD',_0x9e38ce)),_0x5db9d8['descriptionFactory']['registerDescriptionCallback'](_0x365f1a=>{if('insertion'!=_0x365f1a['type']&&'deletion'!=_0x365f1a['type'])return;const _0x2d166e=_0x365f1a['getContainedElement']();if(null==_0x2d166e)return;const _0x29569d=_0x18a75f['plugins']['get']('MergeFieldsEditing');let _0x4ae2a8;switch(_0x29569d['getMergeFieldType'](_0x2d166e)){case null:return;case'image':{const _0x43278d=_0x29569d['unwrapAffixes'](_0x2d166e['getAttribute']('src'));_0x4ae2a8=_0x29569d['getLabel'](_0x43278d)||_0x43278d;break;}default:{const _0x29f2df=_0x2d166e['getAttribute']('id');_0x4ae2a8=_0x29569d['getLabel'](_0x29f2df)||_0x29f2df;break;}}return'insertion'==_0x365f1a['type']?{'type':'insertion','content':c(_0x3d1fc5,'*Insert:*\x20%0','\x22'+_0x4ae2a8+'\x22\x20'+c(_0x3d1fc5,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x3d1fc5,'*Remove:*\x20%0','\x22'+_0x4ae2a8+'\x22\x20'+c(_0x3d1fc5,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x260752{['afterInit'](){const _0x10f64e=this['editor'],_0x3df26e=_0x10f64e['plugins']['get']('TrackChangesEditing');_0x10f64e['plugins']['has']('MultiLevelList')&&(_0x3df26e['enableDefaultAttributesIntegration']('multiLevelList'),_0x3df26e['registerBlockAttribute']('listMarkerStyle'),_0x3df26e['descriptionFactory']['registerDescriptionCallback'](_0x14a849=>this['handleDescriptions'](_0x14a849)));}['handleDescriptions'](_0x471e93){const _0x2ee69c=this['editor']['locale'],{data:_0x22ca53}=_0x471e93,_0x763c40={'type':'format','content':''};if(_0x22ca53&&'listMarkerStyle'==_0x22ca53['key']){if(!_0x22ca53['oldValue'])return{'type':'format','content':c(_0x2ee69c,'*Set\x20format:*\x20%0',c(_0x2ee69c,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x22ca53['newValue']+')'};if(!_0x22ca53['newValue']){let _0x45e41a=_0x471e93['head'];for(;_0x45e41a;){if(_0x45e41a['data']&&'listType'==_0x45e41a['data']['key']&&_0x45e41a['data']['newValue'])return _0x763c40;_0x45e41a=_0x45e41a['next'];}return{'type':'format','content':c(_0x2ee69c,'*Remove\x20format:*\x20%0',c(_0x2ee69c,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x22ca53['oldValue']+')'};}}}}class kt extends _0x260752{['afterInit'](){const _0x4c711f=this['editor'];if(!_0x4c711f['plugins']['has']('PageBreakEditing'))return;_0x4c711f['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x331857=_0x4c711f['plugins']['get']('TrackChangesEditing'),_0x53f60f=_0x4c711f['locale'];_0x331857['descriptionFactory']['registerElementLabel']('pageBreak',_0x3799b7=>c(_0x53f60f,'ELEMENT_PAGE_BREAK',_0x3799b7));}}class bt extends _0x260752{['afterInit'](){const _0xeb3e26=this['editor'];if(!_0xeb3e26['plugins']['has']('Paragraph'))return;const _0x3b2fed=_0xeb3e26['locale'],_0x1296a3=_0xeb3e26['plugins']['get']('TrackChangesEditing');_0x1296a3['descriptionFactory']['registerElementLabel']('paragraph',_0x15a776=>c(_0x3b2fed,'ELEMENT_PARAGRAPH',_0x15a776)),_0x1296a3['enableDefaultAttributesIntegration']('paragraph'),_0x1296a3['enableCommand']('insertParagraph'),_0xeb3e26['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0xeb3e26),{'priority':'highest'}),_0xeb3e26['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x21a52c,_0x4b6732,_0x4acf05)=>{_0x4acf05['options']['showSuggestionHighlights']&&nr(_0xeb3e26,{'showActiveMarker':!0x1})(_0x21a52c,_0x4b6732,_0x4acf05);},{'priority':'highest'});const _0x1cfe2f=_0x1296a3['descriptionFactory'];_0x1cfe2f['registerDescriptionCallback'](_0x47c9ae=>{if('insertion'!==_0x47c9ae['type'])return;const {start:_0x18c38d,end:_0x46a855}=_0x47c9ae['getFirstRange']();if(!_0x18c38d['isTouching'](_0x46a855)||!_0x18c38d['nodeAfter'])return;const _0xff134f=_0xeb3e26['model']['schema'],_0xbeef09=_0x18c38d['nodeAfter'];return _0xff134f['isBlock'](_0xbeef09)&&!_0xff134f['isLimit'](_0xbeef09)&&_0xff134f['checkChild'](_0xbeef09,'$text')?{'type':'insertion','content':c(_0x3b2fed,'*Insert:*\x20%0',_0x1cfe2f['getItemLabel'](_0xbeef09,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x206c6d=this['editor'],_0x5a6b0d=_0x206c6d['locale'];_0x206c6d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ce18c=>{if('formatBlock'!=_0x2ce18c['type'])return;const {data:_0x33c22f}=_0x2ce18c;return _0x33c22f&&'paragraph'==_0x33c22f['commandName']?{'type':'format','content':c(_0x5a6b0d,'*Change\x20to:*\x20%0',c(_0x5a6b0d,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x5205bb,{showActiveMarker:_0x20a041=!0x0}={}){return(_0x3c69a2,_0xef196e,_0x43d09d)=>{const _0xba077=_0x5205bb['plugins']['get']('TrackChangesEditing'),_0x4caa70=_0xef196e['markerRange']['start'],_0x5e8e60=_0xef196e['markerRange']['end'],_0x5a4335=_0x5205bb['model']['schema'];if(!_0x4caa70['isTouching'](_0x5e8e60)||!_0x4caa70['nodeAfter'])return;const _0x52b499=_0x4caa70['nodeAfter'];if(_0x5a4335['isBlock'](_0x52b499)&&!_0x5a4335['isLimit'](_0x52b499)&&_0x5a4335['checkChild'](_0x52b499,'$text')){if(!_0x43d09d['consumable']['consume'](_0xef196e['markerRange'],_0x3c69a2['name']))return;const {authorId:_0x214232}=_0xba077['_splitMarkerName'](_0xef196e['markerName']),_0x48f412=_0x43d09d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x214232}),_0x681294=_0x43d09d['mapper']['toViewPosition'](_0x5e8e60);_0x20a041&&_0xba077['activeMarkers']['includes'](_0xef196e['markerName'])&&_0x43d09d['writer']['addClass']('ck-suggestion-marker--active',_0x48f412),_0x43d09d['writer']['insert'](_0x681294,_0x48f412),_0x43d09d['mapper']['bindElementToMarker'](_0x48f412,_0xef196e['markerName']);}};}class yt extends _0x260752{['afterInit'](){const _0x425e25=this['editor'];if(!_0x425e25['plugins']['has']('RemoveFormatEditing'))return;_0x425e25['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x47910c=this['editor'];_0x47910c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d02f9=>{if('formatBlock'!=_0x1d02f9['type']&&'formatInline'!=_0x1d02f9['type'])return;const {data:_0x1e613e}=_0x1d02f9;return _0x1e613e&&'removeFormat'==_0x1e613e['commandName']?{'type':'format','content':c(_0x47910c['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x260752{['afterInit'](){const _0x2b457b=this['editor'];if(!_0x2b457b['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x27e411=_0x2b457b['plugins']['get']('TrackChangesEditing');_0x27e411['enableCommand']('goToPreviousRestrictedEditingException'),_0x27e411['enableCommand']('goToNextRestrictedEditingException');const _0xe9b9a6=_0x2b457b['plugins']['get']('RestrictedEditingModeEditing');_0xe9b9a6['enableCommand']('trackChanges'),_0xe9b9a6['enableCommand']('acceptSuggestion'),_0xe9b9a6['enableCommand']('discardSuggestion'),_0xe9b9a6['enableCommand']('acceptAllSuggestions'),_0xe9b9a6['enableCommand']('discardAllSuggestions'),_0xe9b9a6['enableCommand']('acceptSelectedSuggestions'),_0xe9b9a6['enableCommand']('discardSelectedSuggestions');}}class St extends _0x260752{static get['requires'](){return[_0x2923b3];}['init'](){const _0x5ad71a=this['editor'],_0x8061c3=_0x5ad71a['plugins']['get']('TrackChangesEditing');_0x8061c3['enableCommand']('shiftEnter'),_0x5ad71a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x5ad71a),{'priority':'high'}),_0x5ad71a['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x5ad71a),{'priority':'high'}),_0x5ad71a['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3f42a9,_0x5b99be,_0x3a7953)=>{_0x3a7953['options']['showSuggestionHighlights']&&je(_0x5ad71a,{'showActiveMarker':!0x1})(_0x3f42a9,_0x5b99be,_0x3a7953);}),_0x8061c3['descriptionFactory']['registerElementLabel']('softBreak',_0x4ad3f8=>c(_0x5ad71a['locale'],'ELEMENT_LINE_BREAK',_0x4ad3f8));}}function je(_0x33678f,{showActiveMarker:_0x494c86=!0x0}={}){return(_0x135e0a,_0xb47311,_0x47c222)=>{const _0x3bc148=_0x33678f['plugins']['get']('TrackChangesEditing');if(!_0x47c222['consumable']['test'](_0xb47311['markerRange'],_0x135e0a['name']))return;const _0x5af7c0=_0x33678f['model'];for(const _0x56314b of _0xb47311['markerRange']['getItems']()){if(!_0x56314b['is']('element','softBreak'))continue;const _0x2c9cfd='deletion'==_0xb47311['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x3ea187}=_0x3bc148['_splitMarkerName'](_0xb47311['markerName']),_0x551976=_0x47c222['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2c9cfd,'data-author-id':_0x3ea187}),_0x5166bc=_0x47c222['mapper']['toViewPosition'](_0x5af7c0['createPositionBefore'](_0x56314b));_0x494c86&&_0x3bc148['activeMarkers']['includes'](_0xb47311['markerName'])&&_0x47c222['writer']['addClass']('ck-suggestion-marker--active',_0x551976),_0x47c222['writer']['insert'](_0x5166bc,_0x551976),_0x47c222['mapper']['bindElementToMarker'](_0x551976,_0xb47311['markerName']);}};}class At extends _0x260752{['afterInit'](){const _0x11db7f=this['editor'],_0x4d004c=_0x11db7f['model'],_0x152742=_0x11db7f['locale'];if(!_0x11db7f['plugins']['has']('StandardEditingModeEditing'))return;const _0x56e3fb=_0x11db7f['plugins']['get']('TrackChangesEditing'),_0xa39db5='restrictedEditingException',_0x4ad62f=_0x11db7f['commands']['get'](_0xa39db5);_0x56e3fb['enableCommand'](_0xa39db5,(_0x17444c,_0xc7b5f0={})=>{const _0x157f6d=_0x4d004c['document']['selection'];if(_0x157f6d['isCollapsed'])return void _0x17444c(_0xc7b5f0);const _0x86546e=void 0x0!==_0xc7b5f0['forceValue']?_0xc7b5f0['forceValue']:!_0x4ad62f['value'];_0x4d004c['change'](()=>{const _0x1f343d=Array['from'](_0x157f6d['getRanges']());for(const _0x2ca006 of _0x1f343d){const _0x1b9290=_0x86546e?[_0x2ca006]:no(_0xa39db5,_0x2ca006,_0x4d004c);for(const _0x2cb02d of _0x1b9290)_0x56e3fb['markInlineFormat'](_0x2cb02d,{'commandName':_0xa39db5,'commandParams':[{'forceValue':_0x86546e}]});}});}),_0x56e3fb['descriptionFactory']['registerDescriptionCallback'](_0x18dfaf=>{if('formatBlock'!=_0x18dfaf['type']&&'formatInline'!=_0x18dfaf['type'])return;const {data:_0xb5f08}=_0x18dfaf;return _0xb5f08&&_0xb5f08['commandName']==_0xa39db5?_0xb5f08['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x152742,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x152742,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x260752{['afterInit'](){const _0x243209=this['editor'];if(!_0x243209['plugins']['has']('Style')||!_0x243209['plugins']['has']('DataSchema'))return;const _0x54a73e=_0x243209['plugins']['get']('TrackChangesEditing'),_0x558e46=_0x243209['locale'],_0x621a86=_0x243209['config']['get']('style')||{},_0x268fd9=_0x243209['plugins']['get']('GeneralHtmlSupport'),_0x11c8cc=_0x243209['plugins']['get']('StyleUtils')['normalizeConfig'](_0x243209['plugins']['get']('DataSchema'),_0x621a86['definitions']);_0x54a73e['enableDefaultAttributesIntegration']('style');const _0x17863e=new Set();for(const _0x5d96cf of _0x11c8cc['block']){const _0x26997a=_0x268fd9['getGhsAttributeNameForElement'](_0x5d96cf['element']);_0x17863e['add'](_0x26997a);}const _0x25e1e2=new Set();for(const _0x29b494 of _0x11c8cc['inline']){const _0x1e9f84=_0x268fd9['getGhsAttributeNameForElement'](_0x29b494['element']);_0x25e1e2['add'](_0x1e9f84);for(const _0x12904a of _0x29b494['ghsAttributes'])_0x25e1e2['add'](_0x12904a);}for(const _0x4b9a8b of _0x17863e)_0x54a73e['registerBlockAttribute'](_0x4b9a8b),_0x54a73e['descriptionFactory']['registerAttributeLabel'](_0x4b9a8b,c(_0x558e46,'FORMAT_STYLE'));for(const _0x5dadb1 of _0x25e1e2)_0x54a73e['registerInlineAttribute'](_0x5dadb1),_0x54a73e['descriptionFactory']['registerAttributeLabel'](_0x5dadb1,c(_0x558e46,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xc31c39=this['editor'],_0x5c4b9d=_0xc31c39['locale'];_0xc31c39['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x33cba1=>{if('formatBlock'!=_0x33cba1['type']&&'formatInline'!=_0x33cba1['type'])return;const {data:_0x49f59d}=_0x33cba1;return _0x49f59d&&'style'===_0x49f59d['commandName']?_0x49f59d['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x5c4b9d,'*Set\x20format:*\x20%0',_0x49f59d['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x5c4b9d,'*Remove\x20format:*\x20%0',_0x49f59d['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class _t extends _0x260752{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x10b2a8){super(_0x10b2a8),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x5e115e=this['editor'],_0xf618fa=_0x5e115e['model']['document']['selection'];if(!_0x5e115e['plugins']['has']('TableEditing'))return;const _0x386b9f=_0x5e115e['locale'],_0xe60d5a=_0x5e115e['plugins']['get']('TrackChangesEditing'),_0xd12870=_0x5e115e['plugins']['get']('TableUtils');_0xe60d5a['descriptionFactory']['registerElementLabel']('table',_0x245e7f=>c(_0x386b9f,'ELEMENT_TABLE',_0x245e7f)),this['_setupColumnsRowsFixing'](),_0xe60d5a['enableCommand']('insertTable'),_0xe60d5a['enableCommand']('selectTableRow'),_0xe60d5a['enableCommand']('selectTableColumn');for(const _0x3d0b7a of['insertTableRowAbove','insertTableRowBelow']){const _0x44d24a=_0x5e115e['commands']['get'](_0x3d0b7a);_0xe60d5a['enableCommand'](_0x3d0b7a,_0x1d4d9e=>{_0x5e115e['model']['change'](_0x525c69=>{_0x1d4d9e();const _0x2b8b38='above'===_0x44d24a['order'],_0x56795b=_0xd12870['getSelectionAffectedTableCells'](_0xf618fa),_0x286bc2=_0xd12870['getRowIndexes'](_0x56795b),_0x3deb95=_0x2b8b38?_0x286bc2['first']-0x1:_0x286bc2['last']+0x1,_0x326ad2=_0x56795b[0x0]['findAncestor']('table'),_0x2f77d5=_0xd12870['createTableWalker'](_0x326ad2,{'startRow':_0x3deb95,'endRow':_0x3deb95}),_0x54e80c=Array['from'](_0x2f77d5)['map'](_0x29c3ae=>_0x525c69['createRangeOn'](_0x29c3ae['cell']));_0xe60d5a['markMultiRangeInsertion'](_0x54e80c,'tableRow');});});}for(const _0x7bd651 of['insertTableColumnLeft','insertTableColumnRight']){const _0x4efcbd=_0x5e115e['commands']['get'](_0x7bd651);_0xe60d5a['enableCommand'](_0x7bd651,_0x4d4194=>{_0x5e115e['model']['change'](_0x438095=>{_0x4d4194();const _0x432521='left'===_0x4efcbd['order'],_0x4bea81=_0xd12870['getSelectionAffectedTableCells'](_0xf618fa),_0x555246=_0xd12870['getColumnIndexes'](_0x4bea81),_0x360a18=_0x432521?_0x555246['first']-0x1:_0x555246['last']+0x1,_0x5eb2e4=_0x4bea81[0x0]['findAncestor']('table'),_0x4f099a=_0xd12870['createTableWalker'](_0x5eb2e4,{'startRow':0x0,'column':_0x360a18,'includeAllSlots':!0x1}),_0x28541a=Array['from'](_0x4f099a)['map'](_0x28e61f=>_0x438095['createRangeOn'](_0x28e61f['cell']));_0xe60d5a['markMultiRangeInsertion'](_0x28541a,'tableColumn');});});}for(const _0x3042ce of['removeTableRow','removeTableColumn']){const _0x1a2b68=_0x3042ce['substr'](0xb),_0x455cc1=_0x1a2b68['toLowerCase'](),_0x5a21d7=_0x455cc1['substr'](0x0,0x3)+'span',_0x36888b='table'+_0x1a2b68,_0x3d87a1='min'+_0x1a2b68,_0x139902='max'+_0x1a2b68;_0xe60d5a['enableCommand'](_0x3042ce,()=>{_0x5e115e['model']['change'](_0x535a23=>{const _0x21306c=_0xd12870['getSelectionAffectedTableCells'](_0xf618fa),_0x576e8f=_0x21306c[0x0]['findAncestor']('table');let _0x260803;if('removeTableRow'==_0x3042ce){const _0x1381d6=_0xd12870['getRowIndexes'](_0x21306c);_0x260803={'startRow':_0x1381d6['first'],'endRow':_0x1381d6['last'],'includeAllSlots':!0x0};}else{const _0x550e09=_0xd12870['getColumnIndexes'](_0x21306c);_0x260803={'startColumn':_0x550e09['first'],'endColumn':_0x550e09['last'],'includeAllSlots':!0x0};}const _0x54ade0=_0xd12870['createTableWalker'](_0x576e8f,_0x260803),_0x201bb4=Array['from'](_0x54ade0)['map'](({cell:_0x30ef81})=>_0x30ef81),_0x5b37fc=Ne(_0x201bb4['filter'](_0x597d2e=>_0x597d2e['hasAttribute'](_0x5a21d7))),_0x120327=Ne(_0x201bb4['filter'](_0x5e8239=>!_0x5e8239['hasAttribute'](_0x5a21d7)))['map'](_0x71f806=>_0x535a23['createRangeOn'](_0x71f806)),_0x3ec044=_0xe60d5a['markMultiRangeDeletion'](_0x120327,_0x36888b);if(_0x3ec044&&('tableRow'==_0x3ec044['subType']||'tableColumn'==_0x3ec044['subType'])){const _0x56441e=this['_getSuggestionCoords'](_0x3ec044);for(const _0x4db689 of _0x5b37fc){const _0x288f10=_0x535a23['createRangeOn'](_0x4db689),_0x455037=_0xd12870['getCellLocation'](_0x4db689),_0x4c9cc1=_0x4db689['getAttribute'](_0x5a21d7)-0x1,_0x40d693=_0x56441e[_0x3d87a1],_0x3f2fc0=_0x56441e[_0x139902];_0x40d693<=_0x455037[_0x455cc1]&&_0x455037[_0x455cc1]+_0x4c9cc1<=_0x3f2fc0&&_0x3ec044['addRange'](_0x288f10);}}});});}function _0x192169(_0x2d2ee8){const _0x5174d6=Array['from'](_0xf618fa['getRanges']())['map'](_0x2efe5b=>_0x2d338c['fromRange'](_0x2efe5b));_0x5e115e['model']['change'](_0x543a73=>{const _0x340b3d=_0x543a73['batch'];_0x2d2ee8=_0x2d2ee8['filter'](_0x1041d3=>'$graveyard'!=_0x1041d3['root']['rootName']),_0x543a73['setSelection'](_0x2d2ee8),_0x5e115e['commands']['get']('removeTableRow')['refresh'](),_0x5e115e['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x5e115e['model']['enqueueChange'](()=>{_0x5e115e['model']['enqueueChange'](_0x340b3d,_0x212fbb=>{const _0x356c50=_0x5174d6['filter'](_0x5e38c4=>'$graveyard'!=_0x5e38c4['root']['rootName']);_0x356c50['length']>0x0&&_0x212fbb['setSelection'](_0x356c50);for(const _0x32f654 of _0x5174d6)_0x32f654['detach']();});});});}function _0x2be0cd(_0x3c53b6){_0x5e115e['model']['change'](_0x42080e=>{const _0x358845=Array['from'](_0xf618fa['getRanges']())['map'](_0x3f024c=>_0x2d338c['fromRange'](_0x3f024c)),_0x54c767=[];for(const _0x3d4a8e of _0x3c53b6)for(const _0x4cb160 of _0x3d4a8e['getItems']({'shallow':!0x0}))_0x54c767['push'](_0x4cb160);for(const _0x534c2c of _0x54c767)'$graveyard'!=_0x534c2c['root']['rootName']&&(_0x42080e['setSelection'](_0x42080e['createPositionAt'](_0x534c2c,0x0)),_0x5e115e['commands']['get']('removeTableColumn')['refresh'](),_0x5e115e['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x41da9c=_0x358845['filter'](_0x198387=>'$graveyard'!=_0x198387['root']['rootName']);_0x41da9c['length']>0x0&&_0x42080e['setSelection'](_0x41da9c);for(const _0x592769 of _0x358845)_0x592769['detach']();});}function _0x575a72(_0x47fee2,_0x2a1eba){return _0x2a1eba['every'](_0x3a7589=>_0x47fee2['some'](_0x88496=>_0x88496['end']['isEqual'](_0x3a7589['start'])||_0x3a7589['end']['isEqual'](_0x88496['start'])));}function _0x474bd4(_0x42e741,_0xbecae5){return!_0x42e741['some'](_0x52e7ab=>_0xbecae5['some'](_0x50a1e4=>_0x52e7ab['isIntersecting'](_0x50a1e4)))&&_0x42e741['some'](_0x40489c=>_0xbecae5['some'](_0x4eae7c=>_0x40489c['end']['isTouching'](_0x4eae7c['start'])));}_0x5e115e['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xa74364,_0x32031e,_0x140247)=>{if(!_0x140247['options']['showSuggestionHighlights'])return;const _0x1d14e3=_0x32031e['item'];if(!_0x1d14e3)return;const _0x29ed3e=_0x140247['mapper']['toViewElement'](_0x1d14e3);function _0x584db4(_0x5dd872){return Array['isArray'](_0x5dd872)?_0x5dd872:[_0x5dd872];}_0x29ed3e&&'tableCell'===_0x1d14e3['name']&&_0x2e4bfb(_0x29ed3e,_0x140247['writer'],(_0x19ce27,_0x276d07,_0x1e8f70)=>_0x1e8f70['addClass'](_0x584db4(_0x276d07['classes']),_0x19ce27),(_0x1d8692,_0x1474b8,_0x5254d4)=>_0x5254d4['removeClass'](_0x584db4(_0x1474b8['classes']),_0x1d8692));},{'priority':'highest'}),_0xe60d5a['descriptionFactory']['registerDescriptionCallback'](_0x50e0db=>{if('insertion'!=_0x50e0db['type']&&'deletion'!=_0x50e0db['type'])return;const _0xb21eb1=_0x50e0db['getContainedElement']();if(null!=_0xb21eb1&&_0xb21eb1['is']('element','table')){if('insertion'==_0x50e0db['type']){const _0x4cc92d=_0x50e0db['getItems']()['filter'](_0x208b6c=>_0x208b6c['is']('$textProxy'))['map'](_0x16297d=>_0x16297d['data']);if(_0x4cc92d['length'])return{'type':'insertion','content':c(_0x386b9f,'*Insert:*\x20%0',c(_0x386b9f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4cc92d['join']('\x20')+'\x22'))};}if('deletion'==_0x50e0db['type']){const _0x21f23b=_0x50e0db['getItems']()['filter'](_0x542505=>_0x542505['is']('$textProxy'))['map'](_0x45ecc3=>_0x45ecc3['data']);if(_0x21f23b['length'])return{'type':'deletion','content':c(_0x386b9f,'*Remove:*\x20%0',c(_0x386b9f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x21f23b['join']('\x20')+'\x22'))};}}}),_0xe60d5a['descriptionFactory']['registerDescriptionCallback'](_0x24eeb8=>{if('tableRow'==_0x24eeb8['subType']){const _0x3fc7df=_0x24eeb8['getItems']()['filter'](_0x3c94ba=>_0x3c94ba['is']('$textProxy'))['map'](_0x584f49=>_0x584f49['data']),_0x4d77fd=this['_getSuggestionCoords'](_0x24eeb8),_0x1606c0=_0x4d77fd['maxRow']-_0x4d77fd['minRow']+0x1;if('insertion'==_0x24eeb8['type'])return _0x3fc7df['length']?{'type':'insertion','content':c(_0x386b9f,'*Insert:*\x20%0',c(_0x386b9f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1606c0,'\x22'+_0x3fc7df['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x386b9f,'*Insert:*\x20%0',c(_0x386b9f,'ELEMENT_TABLE_ROW',_0x1606c0))};if('deletion'==_0x24eeb8['type'])return _0x3fc7df['length']?{'type':'deletion','content':c(_0x386b9f,'*Remove:*\x20%0',c(_0x386b9f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1606c0,'\x22'+_0x3fc7df['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x386b9f,'*Remove:*\x20%0',c(_0x386b9f,'ELEMENT_TABLE_ROW',_0x1606c0))};}if('tableColumn'==_0x24eeb8['subType']){const _0x596fc2=_0x24eeb8['getItems']()['filter'](_0x2f2f87=>_0x2f2f87['is']('$textProxy'))['map'](_0x313c8d=>_0x313c8d['data']),_0x3cccf4=this['_getSuggestionCoords'](_0x24eeb8),_0x4a8504=_0x3cccf4['maxColumn']-_0x3cccf4['minColumn']+0x1;if('insertion'==_0x24eeb8['type'])return _0x596fc2['length']?{'type':'insertion','content':c(_0x386b9f,'*Insert:*\x20%0',c(_0x386b9f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4a8504,'\x22'+_0x596fc2['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x386b9f,'*Insert:*\x20%0',c(_0x386b9f,'ELEMENT_TABLE_COLUMN',_0x4a8504))};if('deletion'==_0x24eeb8['type'])return _0x596fc2['length']?{'type':'deletion','content':c(_0x386b9f,'*Remove:*\x20%0',c(_0x386b9f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4a8504,'\x22'+_0x596fc2['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x386b9f,'*Remove:*\x20%0',c(_0x386b9f,'ELEMENT_TABLE_COLUMN',_0x4a8504))};}}),_0xe60d5a['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x192169),_0xe60d5a['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x192169),_0xe60d5a['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x2be0cd),_0xe60d5a['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x2be0cd),_0xe60d5a['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x575a72),_0xe60d5a['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x575a72),_0xe60d5a['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x474bd4),_0xe60d5a['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x474bd4);}['_acceptFormatSuggestionCallbackFactory'](){const _0x530df2=this['editor'],_0x4e0432=_0x530df2['model']['document']['selection'];return(_0x5240b3,_0x3f2af7)=>{_0x530df2['model']['change'](_0x468890=>{const {commandName:_0x37665c,commandParams:_0x40ce5e}=_0x3f2af7;let _0x381979=_0x5240b3[0x0]['end']['nodeBefore'];_0x40ce5e&&_0x40ce5e[0x0]&&!0x1===_0x40ce5e[0x0]['forceValue']&&(_0x381979=_0x5240b3[0x0]['start']['nodeAfter']);const _0x127a73=_0x468890['createRangeIn'](_0x381979);if('$graveyard'==_0x127a73['root']['rootName'])return;const _0x5d2a27=Array['from'](_0x4e0432['getRanges']())['map'](_0x1dbd1b=>_0x2d338c['fromRange'](_0x1dbd1b));_0x468890['setSelection'](_0x127a73),_0x530df2['commands']['get'](_0x37665c)['refresh'](),_0x40ce5e['push']({'forceDefaultExecution':!0x0}),_0x530df2['execute'](_0x37665c,..._0x40ce5e);const _0x249ec4=_0x5d2a27['filter'](_0x7144af=>'$graveyard'!=_0x7144af['root']['rootName']);_0x249ec4['length']>0x0&&_0x468890['setSelection'](_0x249ec4);for(const _0x1e0d6c of _0x5d2a27)_0x1e0d6c['detach']();});};}['_getCoordsForCells'](_0x2dad9c){const _0x2b7c19=this['editor']['plugins']['get']('TableUtils');let _0x34fcc0=Number['MAX_SAFE_INTEGER'],_0x486dfc=Number['MIN_SAFE_INTEGER'],_0x32a18c=Number['MAX_SAFE_INTEGER'],_0xb02698=Number['MIN_SAFE_INTEGER'];for(const _0x22488f of _0x2dad9c){if('$graveyard'==_0x22488f['root']['rootName'])continue;const {row:_0x1efb70,column:_0x681660}=_0x2b7c19['getCellLocation'](_0x22488f),_0x463b2c=_0x22488f['hasAttribute']('rowspan')?_0x22488f['getAttribute']('rowspan')-0x1:0x0,_0x179d36=_0x22488f['hasAttribute']('colspan')?_0x22488f['getAttribute']('colspan')-0x1:0x0;_0x34fcc0=_0x1efb70<_0x34fcc0?_0x1efb70:_0x34fcc0,_0x486dfc=_0x1efb70+_0x463b2c>_0x486dfc?_0x1efb70+_0x463b2c:_0x486dfc,_0x32a18c=_0x681660<_0x32a18c?_0x681660:_0x32a18c,_0xb02698=_0x681660+_0x179d36>_0xb02698?_0x681660+_0x179d36:_0xb02698;}return{'minRow':_0x34fcc0,'maxRow':_0x486dfc,'minColumn':_0x32a18c,'maxColumn':_0xb02698};}['_setupColumnsRowsFixing'](){const _0x190ca9=this['editor'],_0x393399=_0x190ca9['plugins']['get']('TrackChangesEditing'),_0x26b411=_0x190ca9['plugins']['get']('TableUtils');_0x190ca9['model']['document']['on']('change:data',()=>{const _0x2fb985=Array['from'](_0x190ca9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x33e0f4,data:_0x418c0e}of _0x2fb985){const {group:_0x3f7a73,id:_0xdc0d39,subType:_0x577a6c}=_0x393399['_splitMarkerName'](_0x33e0f4);if('suggestion'!=_0x3f7a73)continue;if(null!=_0x418c0e['oldRange'])continue;const _0x580d87=_0x393399['getSuggestion'](_0xdc0d39);this['_tablePostFixingSubtypes']['includes'](_0x577a6c)&&this['_tableSuggestions']['add'](_0x580d87);}},{'priority':'low'});const _0x345710=(_0xceb26f,_0x23bcf7)=>{let _0x44678c=!0x1;const _0x50fbc6=_0x23bcf7['createRangeOn'](_0xceb26f),_0xf86993=_0xceb26f['findAncestor']('table'),_0x1d5bcf=_0x26b411['getCellLocation'](_0xceb26f);for(const _0x1786ff of this['_tableSuggestions']){const _0x4c1e4a=_0x1786ff['subType'],_0x4f1d25=_0x4c1e4a['startsWith']('tablePaste'),_0xfa6b85=_0x4c1e4a['substr'](_0x4f1d25?0xa:0x5),_0x86c54f=_0xfa6b85['toLowerCase'](),_0x4f466a=_0x86c54f['substr'](0x0,0x3)+'span',_0x5666fa='min'+_0xfa6b85,_0xaa1ccc='max'+_0xfa6b85;if(!_0x1786ff['isInContent'])continue;if(_0xf86993!=_0x1786ff['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x1786ff['isIntersectingWithRange'](_0x50fbc6))continue;const _0x1da52a=_0xceb26f['hasAttribute'](_0x4f466a)?_0xceb26f['getAttribute'](_0x4f466a)-0x1:0x0,_0x50ea07=this['_getSuggestionCoords'](_0x1786ff),_0x2a65b5=_0x50ea07[_0x5666fa],_0xcbb1a4=_0x50ea07[_0xaa1ccc];_0x2a65b5<=_0x1d5bcf[_0x86c54f]&&_0x1d5bcf[_0x86c54f]+_0x1da52a<=_0xcbb1a4&&(_0x1786ff['addRange'](_0x50fbc6),_0x44678c=!0x0);}return _0x44678c;};_0x190ca9['model']['document']['registerPostFixer'](_0x55bbce=>{let _0x42a02a=!0x1;for(const _0x4c534e of _0x190ca9['model']['document']['differ']['getChanges']())if('insert'==_0x4c534e['type']){if('tableRow'==_0x4c534e['name']){for(const _0x3f1094 of _0x4c534e['position']['nodeAfter']['getChildren']())_0x42a02a=_0x42a02a||_0x345710(_0x3f1094,_0x55bbce);}else'tableCell'==_0x4c534e['name']&&(_0x42a02a=_0x42a02a||_0x345710(_0x4c534e['position']['nodeAfter'],_0x55bbce));}return _0x42a02a;});}['_getSuggestionCoords'](_0x34879c){return this['_getCoordsForCells'](_0x34879c['getRanges']()['map'](_0x4fc6f9=>_0x4fc6f9['start']['nodeAfter']));}}function Ne(_0x4486c7){return Array['from'](new Set(_0x4486c7)['values']());}class vt extends _0x260752{static get['requires'](){return[_t];}['afterInit'](){const _0x57d67b=this['editor'],_0x5937e3=_0x57d67b['model']['document']['selection'],_0xe14089=_0x57d67b['locale'];if(!_0x57d67b['plugins']['has']('TableEditing'))return;const _0x4a1850=_0x57d67b['plugins']['get']('TrackChangesEditing'),_0xa402ff=_0x57d67b['plugins']['get']('TableUtils'),_0x11c6fc=_0x57d67b['plugins']['get'](_t);_0x11c6fc['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x4a1850['enableCommand']('mergeTableCells',()=>{const _0x258a47=_0xa402ff['getSelectionAffectedTableCells'](_0x57d67b['model']['document']['selection']);_0x57d67b['model']['change'](()=>{_0x4a1850['markMultiRangeBlockFormat'](_0x258a47,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x57d67b['commands']['get']('mergeTableCells')['on']('execute',(_0x94ad8e,_0x35d3eb)=>{_0x57d67b['commands']['get']('trackChanges')['value']&&(_0x35d3eb['length']>0x0&&_0x35d3eb[_0x35d3eb['length']-0x1]&&_0x35d3eb[_0x35d3eb['length']-0x1]['forceDefaultExecution']||_0x4a1850['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x94ad8e['stop']());},{'priority':'highest'});for(const _0x99f936 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x29bede=_0x57d67b['commands']['get'](_0x99f936);_0x4a1850['enableCommand'](_0x99f936,()=>{const _0x137b7b=_0x57d67b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x42f21b=>_0x42f21b['is']('element','tableCell')),_0x375db4=_0x29bede['value'];_0x57d67b['model']['change'](()=>{_0x4a1850['markMultiRangeBlockFormat']([_0x137b7b,_0x375db4],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x3312d6 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x509b08=_0x57d67b['commands']['get'](_0x3312d6);_0x4a1850['enableCommand'](_0x3312d6,()=>{const _0x47b16e=_0xa402ff['getSelectionAffectedTableCells'](_0x57d67b['model']['document']['selection'])[0x0],_0x2bd6f2=_0x47b16e['findAncestor']('table'),{column:_0xea21d5,row:_0x7f822b}=_0xa402ff['getCellLocation'](_0x47b16e);let _0x1b4a9b=[];if('horizontally'==_0x509b08['direction']){const _0x3b1e1e=_0xa402ff['createTableWalker'](_0x2bd6f2,{'startRow':_0x7f822b,'endRow':_0x7f822b,'includeAllSlots':!0x0});_0x1b4a9b=Array['from'](_0x3b1e1e)['map'](_0x4d800c=>_0x4d800c['cell']);}else{const _0x21cefe=_0xa402ff['createTableWalker'](_0x2bd6f2,{'column':_0xea21d5,'includeAllSlots':!0x0});_0x1b4a9b=Array['from'](_0x21cefe)['map'](_0x4e407c=>_0x4e407c['cell']);}_0x57d67b['model']['change'](_0x589e7f=>{_0x4a1850['markBlockFormat'](_0x589e7f['createRangeOn'](_0x47b16e),{'commandName':_0x3312d6,'commandParams':[]},_0x1b4a9b,_0x3312d6);});});}_0x4a1850['descriptionFactory']['registerDescriptionCallback'](_0x566dd8=>{if('formatBlock'!=_0x566dd8['type']&&'formatInline'!=_0x566dd8['type'])return;const {data:_0x2d274c}=_0x566dd8;return _0x2d274c&&'mergeTableCells'==_0x2d274c['commandName']?{'type':'format','content':c(_0xe14089,'*Merge\x20cells*')}:void 0x0;}),_0x4a1850['descriptionFactory']['registerDescriptionCallback'](_0x4f743c=>{if('formatBlock'!=_0x4f743c['type']&&'formatInline'!=_0x4f743c['type'])return;const {data:_0x2f91fb}=_0x4f743c;return _0x2f91fb?'splitTableCellVertically'==_0x2f91fb['commandName']?{'type':'format','content':c(_0xe14089,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2f91fb['commandName']?{'type':'format','content':c(_0xe14089,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x55fa58=_0x11c6fc['_acceptFormatSuggestionCallbackFactory']();for(const _0x437247 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x4a1850['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x437247,'accept',_0x55fa58);for(const _0x1dde1c of['splitTableCellVertically','splitTableCellHorizontally'])_0x4a1850['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1dde1c,'accept',_0x55fa58);_0x4a1850['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x13689b=>{_0x57d67b['model']['change'](_0x30b115=>{const _0x586143=Array['from'](_0x5937e3['getRanges']())['map'](_0x373d66=>_0x2d338c['fromRange'](_0x373d66));_0x30b115['setSelection'](_0x13689b),_0x57d67b['commands']['get']('mergeTableCells')['refresh'](),_0x57d67b['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1d6443=_0x586143['filter'](_0x22be50=>'$graveyard'!=_0x22be50['root']['rootName']);_0x1d6443['length']>0x0&&_0x30b115['setSelection'](_0x1d6443);for(const _0x481219 of _0x586143)_0x481219['detach']();});});for(const _0x4f4471 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x36b944=_0x57d67b['commands']['get'](_0x4f4471);_0x36b944['on']('set:isEnabled',(_0x204464,_0x5ce1bf,_0x515e5b)=>{if(_0x515e5b){const _0x446e9b=_0x57d67b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5e3639=>_0x5e3639['is']('element','tableCell'));this['_areMergableCells'](_0x36b944['value'],_0x446e9b)||(_0x204464['return']=!0x1,_0x204464['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x121a66=this['editor']['commands']['get']('mergeTableCells'),_0x3e5d65=this['editor']['plugins']['get']('TableUtils');if(!_0x121a66['isEnabled'])return!0x1;const _0x2623d3=_0x3e5d65['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x6b65e7 of _0x2623d3)for(const _0x140f71 of _0x2623d3)if(_0x6b65e7!=_0x140f71&&!this['_areMergableCells'](_0x6b65e7,_0x140f71))return!0x1;return!0x0;}['_areMergableCells'](_0x238f4e,_0x505872){const _0x21981d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x167cf7=this['editor']['model']['createRangeOn'](_0x238f4e),_0xf58393=this['editor']['model']['createRangeOn'](_0x505872),_0x4c53ad=new Set(),_0x20cc1c=new Set();for(const _0x402f8b of _0x21981d['getSuggestions']())if(('insertion'==_0x402f8b['type']||'deletion'==_0x402f8b['type']||'mergeTableCells'==_0x402f8b['subType'])&&_0x402f8b['isInContent']){for(const _0x60c8c5 of _0x402f8b['getRanges']())_0x60c8c5['containsRange'](_0x167cf7,!0x0)&&_0x4c53ad['add'](_0x402f8b['type']+':'+_0x402f8b['author']['id']),_0x60c8c5['containsRange'](_0xf58393,!0x0)&&_0x20cc1c['add'](_0x402f8b['type']+':'+_0x402f8b['author']['id']);}if(_0x4c53ad['size']!=_0x20cc1c['size'])return!0x1;for(const _0xacd341 of _0x4c53ad)if(!_0x20cc1c['has'](_0xacd341))return!0x1;return!0x0;}}class Ct extends _0x260752{static get['requires'](){return[_t];}['afterInit'](){const _0x3cc85a=this['editor'];if(!_0x3cc85a['plugins']['has']('TableEditing'))return;const _0xa73d72=_0x3cc85a['locale'],_0x56ff97=_0x3cc85a['plugins']['get']('TrackChangesEditing');_0x56ff97['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x56ff97['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x56ff97['registerBlockAttribute']('headingRows'),_0x56ff97['registerBlockAttribute']('headingColumns'),_0x56ff97['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0xa73d72,'FORMAT_HEADER_ROW')),_0x56ff97['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0xa73d72,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x555709=this['editor']['plugins']['get']('TrackChangesEditing'),_0x45f3f1=this['editor']['plugins']['get']('TableUtils'),_0x39a7fb=this['editor']['plugins']['get'](_t)['_acceptFormatSuggestionCallbackFactory']();function _0x5e9fc5({showActiveMarker:_0x2d2e04=!0x0,setDataAttribute:_0x21d5e8=!0x0}={}){return(_0x30018c,_0x49a3c8,_0x42b095)=>{const {type:_0x2460f0,id:_0x50715d}=_0x555709['_splitMarkerName'](_0x49a3c8['markerName']),_0x4cea9b=_0x555709['getSuggestion'](_0x50715d),_0x1335a4=_0x4cea9b['data'];if('formatBlock'!=_0x4cea9b['type']||!_0x1335a4||'setTableColumnHeader'!=_0x1335a4['commandName'])return;if(_0x49a3c8['item'])return void _0x30018c['stop']();if(!_0x42b095['consumable']['consume'](_0x49a3c8['markerRange'],_0x30018c['name']))return;const _0x1841f0=_0x49a3c8['markerRange']['start']['nodeAfter'],_0x1e479b=_0x49a3c8['markerRange']['end']['nodeBefore'],_0x27770a=_0x1841f0['parent']['parent'],{column:_0x419625}=_0x45f3f1['getCellLocation'](_0x1841f0),{column:_0xf919c4}=_0x45f3f1['getCellLocation'](_0x1e479b);for(let _0x3c4918=_0x419625;_0x3c4918<=_0xf919c4;_0x3c4918++){const _0x32bd13=_0x45f3f1['createTableWalker'](_0x27770a,{'column':_0x3c4918,'includeAllSlots':!0x1});for(const _0xc1c970 of _0x32bd13){const _0x56361e=_0xc1c970['cell'],_0x3cf811=_0x42b095['mapper']['toViewElement'](_0x56361e);_0x42b095['writer']['addClass']('ck-suggestion-marker-'+_0x2460f0,_0x3cf811),_0x21d5e8&&_0x42b095['writer']['setAttribute']('data-suggestion',_0x50715d,_0x3cf811),_0x42b095['mapper']['bindElementToMarker'](_0x3cf811,_0x49a3c8['markerName']),_0x2d2e04&&(_0x555709['activeMarkers']['includes'](_0x49a3c8['markerName'])?_0x42b095['writer']['addClass']('ck-suggestion-marker--active',_0x3cf811):_0x42b095['writer']['removeClass']('ck-suggestion-marker--active',_0x3cf811));}}};}_0x555709['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x39a7fb),_0x555709['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x39a7fb),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x5e9fc5(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x577493,_0x27203d,_0x2463b0)=>{_0x2463b0['options']['showSuggestionHighlights']&&_0x5e9fc5({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x577493,_0x27203d,_0x2463b0);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4ff61c,_0x2c3128,_0x92dd0d)=>{const {type:_0x3b9c56,id:_0x41746b}=_0x555709['_splitMarkerName'](_0x2c3128['markerName']),_0x300ad0=_0x555709['getSuggestion'](_0x41746b),_0x546106=_0x300ad0['data'];if('formatBlock'!=_0x300ad0['type']||!_0x546106||'setTableColumnHeader'!=_0x546106['commandName'])return;const _0x2bd1a7=_0x92dd0d['mapper']['markerNameToElements'](_0x2c3128['markerName']);if(_0x2bd1a7){for(const _0x2a4ecb of _0x2bd1a7)_0x92dd0d['writer']['removeClass']('ck-suggestion-marker-'+_0x3b9c56,_0x2a4ecb),_0x92dd0d['writer']['removeClass']('ck-suggestion-marker--active',_0x2a4ecb),_0x92dd0d['writer']['removeAttribute']('data-suggestion',_0x2a4ecb),_0x92dd0d['mapper']['unbindElementFromMarkerName'](_0x2a4ecb,_0x2c3128['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x45d4de=this['editor'],_0x205809=_0x45d4de['locale'];function _0x5aeb58(_0x466cfc){return{'type':'format','content':c(_0x205809,'*Format:*\x20%0',_0x466cfc)};}_0x45d4de['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x390867=>{if('formatBlock'!=_0x390867['type'])return;const {data:_0x3c15c8}=_0x390867;if(_0x3c15c8){if('setTableRowHeader'==_0x3c15c8['commandName']){const _0x18dc46=_0x3c15c8['commandParams'][0x0]['forceValue'];return _0x5aeb58(c(_0x205809,_0x18dc46?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x3c15c8['commandName']){const _0x1f38bd=_0x3c15c8['commandParams'][0x0]['forceValue'];return _0x5aeb58(c(_0x205809,_0x1f38bd?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x2d120a=>[_0x2d120a,null]));class Nt extends _0x260752{static get['requires'](){return[_t];}['afterInit'](){const _0x5b1ad5=this['editor'];if(!_0x5b1ad5['plugins']['has']('TableClipboard'))return;const _0x218b76=_0x5b1ad5['plugins']['get']('TrackChangesEditing'),_0x244137=_0x5b1ad5['plugins']['get']('TableUtils'),_0x4e1685=_0x5b1ad5['plugins']['get'](_t),_0xa9cf15=_0x5b1ad5['plugins']['get']('TableClipboard');_0x4e1685['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x5b1ad5['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x5b1ad5['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2845fd=null;_0x5b1ad5['model']['on']('insertContent',(_0x36970a,_0x4b463a)=>{const [_0x38e18e,_0x1200a5]=_0x4b463a,_0x1c789e=_0x4b463a[_0x4b463a['length']-0x1];_0x1c789e&&_0x1c789e['forceDefaultExecution']||_0x218b76['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x3e9c50,_0x5de896,_0x262197,_0x2988e5,_0x4f8ade){if(_0x5de896&&!_0x5de896['is']('documentSelection'))return!0x1;const _0x46699c=_0x4f8ade['getTableIfOnlyTableInContent'](_0x3e9c50,_0x262197);if(!_0x46699c||!Ue(_0x46699c,void 0x0,_0x2988e5))return!0x1;const _0x1804b7=_0x2988e5['getSelectionAffectedTableCells'](_0x262197['document']['selection']);if(!_0x1804b7['length'])return!0x1;const _0xb02d71=_0x1804b7[0x0]['findAncestor']('table'),_0x42952f=_0x2988e5['getRowIndexes'](_0x1804b7),_0x67f817=_0x2988e5['getColumnIndexes'](_0x1804b7),_0x3c547b={'startRow':_0x42952f['first'],'endRow':_0x42952f['last'],'startColumn':_0x67f817['first'],'endColumn':_0x67f817['last']};return 0x1==_0x1804b7['length']&&(_0x3c547b['endRow']+=_0x2988e5['getRows'](_0x46699c)-0x1,_0x3c547b['endColumn']+=_0x2988e5['getColumns'](_0x46699c)-0x1),Ue(_0xb02d71,_0x3c547b,_0x2988e5);}(_0x38e18e,_0x1200a5,_0x5b1ad5['model'],_0x244137,_0xa9cf15)&&(_0x36970a['stop'](),_0x2845fd={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5b1ad5['model']['change'](()=>{_0x5b1ad5['model']['insertContent'](_0x4b463a[0x0],_0x4b463a[0x1],_0x4b463a[0x2],{'forceDefaultExecution':!0x0});const _0x10f925=_0x1fa35e(),{rowInsertionRanges:_0x1c0f53,columnInsertionRanges:_0x806e04,insertionRanges:_0x5bfcba,deletionRanges:_0x24b896,cells:_0x5c9820}=_0x2845fd;_0x1c0f53['length']&&_0x218b76['markMultiRangeInsertion'](_0x1c0f53,'tablePasteRow',{'tablePasteChainId':_0x10f925}),_0x806e04['length']&&_0x218b76['markMultiRangeInsertion'](_0x806e04,'tablePasteColumn',{'tablePasteChainId':_0x10f925}),_0x5bfcba['length']&&(_0x218b76['markMultiRangeInsertion'](_0x5bfcba,'tablePaste',{'tablePasteChainId':_0x10f925,'skipNestingCheck':!0x0}),_0x5bfcba['forEach'](_0x4539c7=>_0x4539c7['detach']?.())),_0x24b896['length']&&(_0x218b76['markMultiRangeDeletion'](_0x24b896,'tablePaste',{'tablePasteChainId':_0x10f925,'skipNestingCheck':!0x0}),_0x24b896['forEach'](_0x13e2f6=>_0x13e2f6['detach']?.()));const _0x2330e9=_0x218b76['markMultiRangeBlockFormat'](_0x5c9820['map'](({element:_0x130f95})=>_0x130f95),{'formatGroupId':_0x1fa35e()},[],'tablePasteCell',{'tablePasteChainId':_0x10f925});if(_0x2330e9){const _0xfedac7=_0x2330e9['getMarkers'](),_0x17180b=[];for(const {element:_0x3f6f8e,attributes:_0xa2a09d}of _0x5c9820){if(!_0xa2a09d)continue;const _0x4f5c7c=_0x5b1ad5['model']['createRangeOn'](_0x3f6f8e),_0x58bd63=_0xfedac7['find'](_0x2dd272=>_0x2dd272['getRange']()['isEqual'](_0x4f5c7c));_0x58bd63&&_0x17180b['push']([_0x58bd63['name'],_0xa2a09d]);}_0x17180b['length']&&_0x2330e9['setAttribute']('markerAttributes',Object['fromEntries'](_0x17180b));}_0x2845fd=null;}));},{'priority':_0x28a48a['high']+0xa}),_0x5b1ad5['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3875de,_0x2b4ac0)=>{const [_0x1e8c59,_0x37cda3,,_0x98b05c]=_0x2b4ac0;if(!_0x2845fd)return;_0x3875de['stop']();const _0x2fd879=_0x1e8c59['cell'],_0x3227d6=_0x37cda3,_0x8f1ab6=Oe(_0x2fd879),_0x417702=Oe(_0x3227d6);_0x3875de['return']=_0x2fd879;let _0x3688f7=null,_0x151e12=null;if(_0x417702||_0x8f1ab6){if(_0x8f1ab6&&!_0x417702){_0x98b05c['remove'](_0x2fd879['getChild'](0x0));for(const _0x1918c9 of Array['from'](_0x3227d6['getChildren']()))_0x98b05c['insert'](_0x1918c9,_0x2fd879,'end');const _0x5c2474=_0x2845fd['rowInsertionIndexes']['includes'](_0x1e8c59['row']),_0x3c98b2=_0x2845fd['columnInsertionIndexes']['includes'](_0x1e8c59['column']);_0x5c2474||_0x3c98b2||(_0x3688f7=_0x2d338c['fromRange'](_0x98b05c['createRangeIn'](_0x2fd879)));}else _0x417702&&!_0x8f1ab6&&(_0x151e12=_0x98b05c['createRangeIn'](_0x2fd879));}else{const _0x5128dd=_0x98b05c['createElement']('tableCellSuggestion'),_0x1d294e=_0x98b05c['createElement']('tableCellSuggestion');_0x98b05c['wrap'](_0x98b05c['createRangeIn'](_0x2fd879),_0x1d294e),_0x98b05c['insert'](_0x5128dd,_0x2fd879,0x0);for(const _0x453844 of Array['from'](_0x3227d6['getChildren']()))_0x98b05c['insert'](_0x453844,_0x5128dd,'end');_0x3688f7=_0x2d338c['fromRange'](_0x98b05c['createRangeOn'](_0x5128dd)),_0x151e12=_0x2d338c['fromRange'](_0x98b05c['createRangeOn'](_0x1d294e));}const _0x2f794e=Array['from'](_0x3227d6['getAttributes']())['filter'](([_0x39f481])=>Be['includes'](_0x39f481));_0x2845fd['cells']['push']({'element':_0x2fd879,'attributes':_0x2f794e['length']?Object['fromEntries'](_0x2f794e):null}),_0x3688f7&&_0x2845fd['insertionRanges']['push'](_0x3688f7),_0x151e12&&_0x2845fd['deletionRanges']['push'](_0x151e12);},{'priority':'high'}),_0x244137['on']('insertColumns',(_0x162cdc,_0x288f85)=>{const [_0x2df9ac,_0x33bfad={}]=_0x288f85;if(!_0x2845fd)return;const _0x13bcad=_0x33bfad['at']||0x0,_0x323b5c=_0x33bfad['columns']||0x1;_0x2845fd['columnInsertionIndexes']=new Array(_0x323b5c)['fill'](_0x13bcad)['map']((_0x51e633,_0x2b95ac)=>_0x51e633+_0x2b95ac);for(const {cell:_0x3c1521}of _0x244137['createTableWalker'](_0x2df9ac,{'startColumn':_0x13bcad,'endColumn':_0x13bcad+_0x323b5c-0x1}))_0x2845fd['columnInsertionRanges']['push'](_0x5b1ad5['model']['createRangeOn'](_0x3c1521));},{'priority':'low'}),_0x244137['on']('insertRows',(_0x4c7d7e,_0xbdd728)=>{const [_0x22bec1,_0x6d11d6={}]=_0xbdd728;if(!_0x2845fd)return;const _0x241ed9=_0x6d11d6['at']||0x0,_0x540d15=_0x6d11d6['rows']||0x1;_0x2845fd['rowInsertionIndexes']=new Array(_0x540d15)['fill'](_0x241ed9)['map']((_0x4a7d24,_0x83f0fd)=>_0x4a7d24+_0x83f0fd);for(const {cell:_0x51a283}of _0x244137['createTableWalker'](_0x22bec1,{'startRow':_0x241ed9,'endRow':_0x241ed9+_0x540d15-0x1}))_0x2845fd['rowInsertionRanges']['push'](_0x5b1ad5['model']['createRangeOn'](_0x51a283));},{'priority':'low'}),_0x218b76['descriptionFactory']['registerDescriptionCallback'](_0x97fe22=>{if(_0x97fe22['subType']&&_0x97fe22['subType']['startsWith']('tablePaste'))return _0x97fe22['previous']?{}:{'type':'insertion','content':c(_0x5b1ad5['locale'],'*Replace\x20table\x20cells*')};});const _0x2a043a=()=>!0x1;for(const _0x18c001 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x218b76['_suggestionFactory']['registerCustomCallback']('insertion',_0x18c001,'join',_0x2a043a),_0x218b76['_suggestionFactory']['registerCustomCallback']('deletion',_0x18c001,'join',_0x2a043a),_0x218b76['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x18c001,'join',_0x2a043a);_0x218b76['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x2a043a),_0x218b76['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x1f19e2,_0x29133f,_0x56f734)=>{const _0x556f61=_0x1f19e2['map'](_0x49c00d=>_0x49c00d['getContainedElement']())['filter'](_0x124eb0=>_0x124eb0),_0x4b629a=new Map(_0x556f61['map'](_0x3b7ed9=>[_0x3b7ed9,null]));if(_0x2845fd){for(const {element:_0x140a69,attributes:_0x29261c}of _0x2845fd['cells'])_0x29261c&&_0x4b629a['set'](_0x140a69,_0x29261c);}else{if(_0x56f734&&_0x56f734['markerAttributes'])for(const [_0x3f7b1b,_0x4bb961]of Object['entries'](_0x56f734['markerAttributes'])){const _0x199ef4=_0x5b1ad5['model']['markers']['get'](_0x3f7b1b),_0x47f37c=_0x199ef4?_0x199ef4['getRange']()['getContainedElement']():null;_0x47f37c&&_0x4b629a['set'](_0x47f37c,_0x4bb961);}}_0x5b1ad5['model']['change'](_0x17ef51=>{for(const [_0x3d8cf1,_0x3ff77b]of _0x4b629a)_0x17ef51['setAttributes']({...xe,..._0x3ff77b},_0x3d8cf1);});});const _0x11817b=(_0xc648c8,_0x209b92)=>{_0x218b76['_suggestionFactory']['registerCustomCallback'](_0xc648c8,'tablePaste',_0x209b92,(_0x2b382a,_0xedf59a,_0x3dd1bb)=>{_0x5b1ad5['model']['change'](_0x3e7a98=>{const _0x5d52e7=[];for(const _0x2f616d of _0x2b382a){const _0x579ff7=_0x2f616d['start']['nodeAfter'];_0x579ff7['is']('element','tableCellSuggestion')&&_0x5d52e7['push'](_0x579ff7);}_0x218b76['_suggestionFactory']['getSuggestionCallback'](_0xc648c8,null,_0x209b92)(_0x2b382a,_0xedf59a,_0x3dd1bb);for(const _0x4bbf39 of _0x5d52e7)'$graveyard'!=_0x4bbf39['root']['rootName']&&_0x3e7a98['unwrap'](_0x4bbf39);});});};_0x11817b('insertion','accept'),_0x11817b('insertion','discard'),_0x11817b('deletion','accept'),_0x11817b('deletion','discard'),_0x218b76['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x21eaeb=>{const _0x5ab3e2=_0x21eaeb['map'](_0x1014b9=>_0x1014b9['getContainedElement']()),_0x1ede73=_0x5ab3e2[0x0]['findAncestor']('table'),{minRow:_0x4c7eb4,maxRow:_0x117cfb}=_0x4e1685['_getCoordsForCells'](_0x5ab3e2);_0x244137['removeRows'](_0x1ede73,{'at':_0x4c7eb4,'rows':_0x117cfb-_0x4c7eb4+0x1});}),_0x218b76['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0xbd4de2=>{const _0x2c6aad=_0xbd4de2['map'](_0x19337b=>_0x19337b['getContainedElement']()),_0x4bd8d7=_0x2c6aad[0x0]['findAncestor']('table'),{minColumn:_0x28e3ef,maxColumn:_0x5de631}=_0x4e1685['_getCoordsForCells'](_0x2c6aad);_0x244137['removeColumns'](_0x4bd8d7,{'at':_0x28e3ef,'columns':_0x5de631-_0x28e3ef+0x1});});const _0x4408ab=(_0x3ab625,_0xea1d)=>{if(!_0xea1d['subType']||!_0xea1d['subType']['startsWith']('tablePaste'))return;const _0x6b7c5a=_0xea1d['attributes']['tablePasteChainId'],_0x387f5b=_0x218b76['getSuggestions']()['filter'](_0x58e6f2=>_0x58e6f2['isInContent']&&_0x58e6f2['attributes']&&_0x58e6f2['attributes']['tablePasteChainId']==_0x6b7c5a);_0x387f5b['length']&&_0xea1d['getAllAdjacentSuggestions']()['length']!=_0x387f5b['length']&&_0x387f5b['reduce']((_0x1ca7ed,_0x33e39d)=>(_0x1ca7ed['next']=_0x33e39d,_0x33e39d['previous']=_0x1ca7ed,_0x33e39d));};function _0x274563(_0x525ffd,_0x580af8=!0x0){const {id:_0x2a85a9,authorId:_0x51f618}=_0x218b76['_splitMarkerName'](_0x525ffd['markerName']),_0x3da21c=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x565588=_0x218b76['activeMarkers']['includes'](_0x525ffd['markerName']);return _0x565588&&_0x3da21c['push']('ck-suggestion-marker--active'),{'classes':_0x3da21c,'attributes':{'data-suggestion':_0x2a85a9,'data-author-id':_0x51f618},'priority':_0x565588&&_0x580af8?0xbc2:0xbb8};}_0x218b76['on']('suggestionLoaded',_0x4408ab,{'priority':'high'}),_0x218b76['on']('suggestionUnloaded',_0x4408ab,{'priority':'high'}),_0x5b1ad5['model']['document']['registerPostFixer'](()=>{let _0x4b1747=!0x1;const _0x54bb7e=Array['from'](_0x5b1ad5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1827e6,data:_0x2a0c3b}of _0x54bb7e){const {group:_0x2715de,type:_0x31f342,id:_0x553eb0}=_0x218b76['_splitMarkerName'](_0x1827e6);if('suggestion'!=_0x2715de||'deletion'!=_0x31f342||_0x2a0c3b['oldRange'])continue;if(!_0x218b76['hasSuggestion'](_0x553eb0))continue;const _0x4af6f6=_0x218b76['getSuggestion'](_0x553eb0)['getRanges'](),_0x29d44c=_0x5b1ad5['plugins']['get']('Users')['me'];for(const _0x75c2cb of _0x218b76['getSuggestions']()){if(!_0x75c2cb['isInContent']||_0x75c2cb['author']!=_0x29d44c)continue;if('formatBlock'!=_0x75c2cb['type']||'tablePasteCell'!=_0x75c2cb['subType'])continue;if(_0x75c2cb['getRanges']()['every'](_0x1165d6=>_0x4af6f6['some'](_0x2e64f8=>_0x2e64f8['containsRange'](_0x1165d6,!0x0)))){for(const _0x287f8d of _0x75c2cb['getAllAdjacentSuggestions']())_0x287f8d['isInContent']&&(_0x287f8d['discard'](),_0x4b1747=!0x0);}}}return _0x4b1747;}),_0x5b1ad5['model']['document']['registerPostFixer'](_0x46f1bf=>{const _0x41d0e9=_0x5b1ad5['commands']['get']('redo');if(!_0x41d0e9||!_0x41d0e9['_createdBatches']['has'](_0x46f1bf['batch']))return!0x1;let _0x4785f=!0x1;const _0x51885c=_0x5b1ad5['plugins']['get']('Users')['me'],_0xf496a7=_0x5b1ad5['model']['document']['differ']['getChanges'](),_0x68aab4=Array['from'](_0x5b1ad5['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x243747,data:_0x4268ec})=>{const {group:_0x49a820,subType:_0x290320,authorId:_0x5be9f5}=_0x218b76['_splitMarkerName'](_0x243747);return'suggestion'==_0x49a820&&'tablePaste'==_0x290320&&_0x5be9f5==_0x51885c['id']&&!_0x4268ec['oldRange'];});for(const _0x334e92 of _0xf496a7){if('insert'!=_0x334e92['type']||'tableCellSuggestion'!=_0x334e92['name']||0x1!=_0x334e92['length'])continue;const _0x225b7c=_0x46f1bf['createRange'](_0x334e92['position'],_0x334e92['position']['getShiftedBy'](0x1));if(!_0x68aab4['find'](({data:_0x4d9374})=>_0x4d9374['newRange']['isEqual'](_0x225b7c))){for(const {name:_0x2760aa,data:_0x15e2dd}of _0x68aab4)if(_0x225b7c['containsRange'](_0x15e2dd['newRange'])){_0x46f1bf['updateMarker'](_0x2760aa,{'range':_0x225b7c}),_0x4785f=!0x0;break;}}}return _0x4785f;}),_0x5b1ad5['model']['document']['registerPostFixer'](_0x27f7e9=>{let _0xb87649=!0x1;const _0x17c681=_0x5b1ad5['plugins']['get']('Users')['me'],_0x4db3f5=_0x218b76['getSuggestions']()['filter'](_0x4c9c36=>_0x4c9c36['isInContent']&&_0x4c9c36['author']==_0x17c681),_0x5cde2b=new Set(),_0x25fe26=new Set();for(const _0x135613 of _0x4db3f5)if('tablePaste'==_0x135613['subType'])for(const _0x505684 of _0x135613['getMarkers']()){const _0x5c6cd3=_0x505684['getRange']()['getContainedElement']();if(_0x5c6cd3){if(_0x5c6cd3['is']('element','tableCellSuggestion')&&Oe(_0x5c6cd3)){_0x135613['removeMarker'](_0x505684['name']),_0x5cde2b['add'](_0x5c6cd3),_0xb87649=!0x0;const _0x581bbf=_0x5c6cd3['nextSibling'],_0x253e43=_0x5c6cd3['previousSibling'],_0x290ebb=_0x581bbf&&_0x581bbf['is']('element','tableCellSuggestion'),_0x2dffc3=_0x253e43&&_0x253e43['is']('element','tableCellSuggestion');_0x290ebb&&!_0x5cde2b['has'](_0x581bbf)&&_0x25fe26['add'](_0x581bbf),_0x2dffc3&&!_0x5cde2b['has'](_0x253e43)&&_0x25fe26['add'](_0x253e43);}else _0x5c6cd3['is']('element','paragraph')&&_0x5c6cd3['isEmpty']&&(_0x135613['removeMarker'](_0x505684['name']),_0xb87649=!0x0);}}else{if('tablePasteCell'==_0x135613['subType']){if(!_0x135613['attributes']||!_0x135613['attributes']['tablePasteChainId'])continue;const _0x27b3e9=_0x135613['attributes']['markerAttributes'];if(_0x27b3e9&&Object['keys'](_0x27b3e9)['length'])continue;const _0xd419fe=_0x135613['attributes']['tablePasteChainId'];let _0x320d9d=!0x0,_0x3b1049=!0x0;for(const _0x37b63d of _0x4db3f5)if(_0x37b63d['subType']&&_0x37b63d['subType']['startsWith']('tablePaste')){if(!_0x37b63d['attributes']['tablePasteChainId']){_0x3b1049=!0x1;break;}if(_0x37b63d['id']!=_0x135613['id']&&_0x37b63d['attributes']['tablePasteChainId']==_0xd419fe){_0x320d9d=!0x1;break;}}_0x3b1049&&_0x320d9d&&(_0x135613['removeMarkers'](),_0xb87649=!0x0);}}for(const _0x1ab367 of _0x5cde2b)_0x27f7e9['remove'](_0x1ab367);for(const _0x25c753 of _0x25fe26)_0x27f7e9['unwrap'](_0x25c753);return _0xb87649;}),_0x5b1ad5['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x3c7e92=>_0x274563(_0x3c7e92),'converterPriority':'high'}),_0x5b1ad5['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5e320f,_0x3908df)=>_0x3908df['options']['showSuggestionHighlights']?_0x274563(_0x5e320f,!0x1):null,'converterPriority':'high'});const _0x466c12=_0x5b1ad5['editing']['view'];this['listenTo'](_0x466c12['document'],'clipboardOutput',(_0x29c6d0,_0x4617ed)=>{const _0x1d1818=[];for(const _0x3d5bba of _0x466c12['createRangeIn'](_0x4617ed['content'])['getItems']())_0x3d5bba['is']('element','suggestion-td')&&_0x1d1818['push'](_0x3d5bba);_0x466c12['change'](_0x272e9e=>{for(const _0x3b5274 of _0x1d1818)_0x272e9e['move'](_0x272e9e['createRangeIn'](_0x3b5274),_0x272e9e['createPositionBefore'](_0x3b5274)),_0x272e9e['remove'](_0x3b5274);});});}}function Oe(_0x536339){if(_0x536339['isEmpty'])return!0x0;const _0x3892fb=_0x536339['getChild'](0x0);return _0x3892fb['is']('element','paragraph')&&_0x3892fb['isEmpty'];}function Ue(_0xeb64bf,_0x321e9f={},_0x4b7379){for(const {isAnchor:_0x50ceeb,cellHeight:_0x507cd8,cellWidth:_0x3ea622}of _0x4b7379['createTableWalker'](_0xeb64bf,{'includeAllSlots':!0x0,..._0x321e9f}))if(!_0x50ceeb||0x1!=_0x507cd8||0x1!=_0x3ea622)return!0x1;return!0x0;}class Dt extends _0x260752{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x2486b8=this['editor']['plugins']['get']('TrackChangesEditing');_0x2486b8['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x2486b8['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x2486b8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2486b8['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x2486b8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x2486b8['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1cda4c,_0x3fdf19){const _0xef57d3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x548076=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1a1d0c=_0x3fdf19['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x1825db=_0x548076['getColumnGroupElement'](_0x1a1d0c);let _0xdc3751=_0x1825db?_0x548076['getTableColumnsWidths'](_0x1825db):null,_0x3dada6=_0x1a1d0c['getAttribute']('tableWidth')||null;const _0x290730=_0x3fdf19['tableWidth']||_0x3dada6,_0x55c028=_0x3fdf19['columnWidths']||_0xdc3751,_0x1e5bf6=this['editor']['plugins']['get']('Users')['me'];for(const _0x4fad4e of _0xef57d3['getSuggestions']()){const _0x336059=_0x4fad4e['getContainedElement']();if('resizeTable'===_0x4fad4e['subType']&&_0x336059===_0x1a1d0c){_0x4fad4e['author']!==_0x1e5bf6&&_0x4fad4e['discard']();const _0x2fd60d=_0x4fad4e['data']['commandParams'];_0x3dada6=_0x2fd60d[0x0]['tableWidth'],_0xdc3751=_0x2fd60d[0x0]['columnWidths'];break;}}_0x1cda4c({'table':_0x1a1d0c,'tableWidth':_0x290730,'columnWidths':_0x55c028}),_0xef57d3['markBlockFormat'](_0x1a1d0c,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3dada6,'columnWidths':_0xdc3751}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4de17b){if('formatBlock'!=_0x4de17b['type']&&'formatInline'!=_0x4de17b['type'])return;const {data:_0x12e590}=_0x4de17b;if(_0x12e590&&'resizeTable'===_0x12e590['formatGroupId']){const _0x55de34='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x55de34)};}}}class Mt extends _0x260752{['afterInit'](){const _0x4d7de2=this['editor'];_0x4d7de2['plugins']['has']('Template')&&_0x4d7de2['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x260752{['afterInit'](){const _0x24697c=this['editor'];if(!_0x24697c['commands']['get']('insertTableOfContents'))return;_0x24697c['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x266b0b=_0x24697c['plugins']['get']('TrackChangesEditing'),_0x298ee2=_0x24697c['locale'];_0x266b0b['descriptionFactory']['registerElementLabel']('tableOfContents',_0x230b34=>c(_0x298ee2,'ELEMENT_TABLE_OF_CONTENTS',_0x230b34));}}class Bt extends _0x260752{['afterInit'](){const _0x1357f2=this['editor'];if(!_0x1357f2['plugins']['has']('Title'))return;const _0x11b555=_0x1357f2['plugins']['get']('TrackChangesEditing');_0x11b555['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x1357f2['locale'],'ELEMENT_TITLE')),_0x1357f2['model']['document']['registerPostFixer'](_0x12ef31=>{let _0x1ff1b3=!0x1;const _0x4abd64=Array['from'](_0x1357f2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3baec6,data:_0x26a903}of _0x4abd64){const {group:_0x241729}=_0x11b555['_splitMarkerName'](_0x3baec6);if('suggestion'!==_0x241729||!_0x26a903['newRange'])continue;const _0x52b6e2=_0x26a903['newRange'],_0x239e8d=_0x52b6e2['end']['nodeBefore'];if(!_0x239e8d||!_0x239e8d['is']('element','title-content'))continue;if(!_0x52b6e2['start']['isTouching'](_0x52b6e2['end']))continue;const _0x989b8e=_0x1357f2['model']['schema']['getNearestSelectionRange'](_0x52b6e2['end'],'forward');if(_0x989b8e&&_0x989b8e['isCollapsed']){const _0x258166=_0x12ef31['createRange'](_0x52b6e2['start'],_0x989b8e['start']);_0x258166['isEqual'](_0x52b6e2)||(_0x12ef31['updateMarker'](_0x3baec6,{'range':_0x258166}),_0x1ff1b3=!0x0);}_0x1ff1b3||(_0x12ef31['removeMarker'](_0x3baec6),_0x1ff1b3=!0x0);}return _0x1ff1b3;});}}class Ot extends _0x260752{['afterInit'](){const _0x1d41f3=this['editor'],_0x4f1303=_0x1d41f3['plugins']['get']('TrackChangesEditing');_0x1d41f3['plugins']['has']('Uploadcare')&&(_0x4f1303['enableCommand']('uploadcare'),_0x1d41f3['plugins']['has']('UploadcareImageEdit')&&(_0x4f1303['enableCommand']('uploadcareImageEdit'),_0x4f1303['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x4f1303['registerBlockAttribute']('uploadcareImageId'),_0x4f1303['descriptionFactory']['registerDescriptionCallback'](_0x4da712=>{if('attribute'!=_0x4da712['type'])return;const {data:_0x32ab41}=_0x4da712;return _0x32ab41&&'uploadcareImageId'==_0x32ab41['key']?{'type':'format','content':''}:void 0x0;})));}}class Rt extends _0x260752{['afterInit'](){const _0x15ecae=this['editor'],_0x3db35a=_0x15ecae['plugins']['get']('TrackChangesEditing');_0x15ecae['plugins']['has']('UndoEditing')&&(_0x3db35a['enableCommand']('undo'),_0x3db35a['enableCommand']('redo'));}}class xt extends _0x260752{static get['requires'](){return[_t];}['afterInit'](){const _0x23515b=this['editor'];if(!_0x23515b['plugins']['has']('TableCaptionEditing'))return;_0x23515b['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Tt extends _0x260752{['tableProperties'];['tableCellProperties'];constructor(_0x2e343e){super(_0x2e343e),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 _0x5cb064=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x3bc909 of this['tableProperties'])_0x5cb064['enableCommand'](_0x3bc909,(_0x4efcdb,_0xbb2358)=>{const _0xc0ad4d=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x3bc909,[_0xc0ad4d],this['tableProperties'],'tableProperties',_0x4efcdb,_0xbb2358);});_0x5cb064['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5cb064['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5cb064['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x372fc1,_0x47e124)=>this['handleDiscardAction'](this['tableProperties'],_0x372fc1,_0x47e124)),_0x5cb064['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1e5406 of this['tableCellProperties'])_0x5cb064['enableCommand'](_0x1e5406,(_0x2f386e,_0x2a51e0)=>{const _0xfa300=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1e5406,_0xfa300,this['tableCellProperties'],'tableCellProperties',_0x2f386e,_0x2a51e0);});_0x5cb064['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5cb064['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5cb064['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4f0718,_0x3810be)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4f0718,_0x3810be)),_0x5cb064['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x5cb064['descriptionFactory']['registerDescriptionCallback'](_0x4a9ac1=>this['handleSuggestionDescription'](_0x4a9ac1));}['_handlePropertyChange'](_0x19f3d5,_0x542ac1,_0x559b44,_0x16d520,_0x96691a,_0x24baa3){const _0x672c41=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x24baa3['batch'],()=>{for(const _0x145147 of _0x542ac1){if(this['_getSuggestion'](_0x145147,_0x16d520))_0x96691a(_0x24baa3);else{const _0x234cc9={};for(const _0x1b786c of _0x559b44){const _0x7de789=_0x145147['getAttribute'](_0x1b786c);void 0x0!==_0x7de789&&(_0x234cc9[_0x1b786c]=_0x7de789);}_0x96691a(_0x24baa3),_0x672c41['markBlockFormat'](_0x145147,{'commandParams':[_0x234cc9]},[],_0x16d520);}}});}['handleDiscardAction'](_0x372b3a,_0xbeb156,_0x11a3d3){const _0x1e1fc2=_0xbeb156[0x0]['start']['nodeAfter'],_0x4ca11c=_0x11a3d3['commandParams'][0x0];this['editor']['model']['change'](_0x1f54f0=>{for(const _0x17aa58 of _0x372b3a)void 0x0!==_0x4ca11c[_0x17aa58]?_0x1f54f0['setAttribute'](_0x17aa58,_0x4ca11c[_0x17aa58],_0x1e1fc2):_0x1f54f0['removeAttribute'](_0x17aa58,_0x1e1fc2);});}['handleSuggestionDescription'](_0x27d401){if(_0x27d401['data'])switch(_0x27d401['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0xb32597,_0x2ad0e6){const _0x1cbbad=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x458122 of _0x1cbbad['getSuggestions']({'skipNotAttached':!0x0})){const _0x5dfa12=_0x458122['getContainedElement']();if(_0x458122['subType']===_0x2ad0e6&&_0x5dfa12===_0xb32597)return _0x458122;}return null;}}const u='$elementName';class p extends _0x260752{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0xaaa6db,_0x549d89,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,Se,dt,mt,pt,kt,bt,yt,jt,St,At,It,_t,vt,Ct,xt,Nt,Dt,$t,Tt,Mt,Bt,Ot,Rt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2e2c0f){super(_0x2e2c0f),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x1a624d,_0x1df8b6,_0x26fe0a,_0x51bf82)=>{this['_model']['change'](()=>{for(const _0x5430b9 of[..._0x51bf82,..._0x26fe0a])this['_model']['markers']['has'](_0x5430b9)&&_0x2e2c0f['editing']['reconvertMarker'](_0x5430b9);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ut(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x2e2c0f['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x2e2c0f['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x2e2c0f['config']['get']('trackChanges.trackFormatChanges'),_0x2e2c0f['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x2e2c0f['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x2e2c0f,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x4add87=this['editor'],_0x2bb41=(_0x5a289f,_0x384e1c)=>{if('attribute'!=_0x5a289f)return'ck-suggestion-marker-'+_0x5a289f;const _0x5b45a4=_0x384e1c['split']('|')[0x0];return this['_isBlockAttribute'](_0x5b45a4)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x4add87['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x2f0baf=>{const {id:_0x242c89,authorId:_0x43404e,type:_0x565e4f,subType:_0x5e96ad}=this['_splitMarkerName'](_0x2f0baf['markerName']),_0x23e27a=['ck-suggestion-marker',_0x2bb41(_0x565e4f,_0x5e96ad)];let _0x4a617b=0xbb8;return this['activeMarkers']['includes'](_0x2f0baf['markerName'])&&(_0x23e27a['push']('ck-suggestion-marker--active'),_0x4a617b=0xbc2),'deletion'==_0x565e4f&&(_0x4a617b+=0x5),{'classes':_0x23e27a,'attributes':{'data-suggestion':_0x242c89,'data-author-id':_0x43404e},'priority':_0x4a617b};}}),_0x4add87['conversion']['for']('dataDowncast')['add'](_0x575901=>{_0x575901['on']('addMarker:suggestion',(_0x47c4ab,_0x713d44,_0x3b2255)=>{if(!_0x3b2255['options']['showSuggestionHighlights'])return;const _0x258f78=_0x713d44['item'];if(!_0x258f78)return;const _0x49bcda=_0x3b2255['mapper']['toViewElement'](_0x258f78);_0x4add87['model']['schema']['isObject'](_0x258f78)&&_0x49bcda&&!_0x49bcda['getCustomProperty']('widget')&&_0x49bcda['is']('containerElement')&&_0x4e881f(_0x49bcda,_0x3b2255['writer']);},{'priority':'high'});}),_0x4add87['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x45ad18,_0x6a5572)=>{if(!_0x6a5572['options']['showSuggestionHighlights'])return null;const {type:_0x38eae3,subType:_0x21b928}=this['_splitMarkerName'](_0x45ad18['markerName']);return{'classes':['ck-suggestion-marker',_0x2bb41(_0x38eae3,_0x21b928)],'priority':0xbb8};}});const _0x40eb3d=({showActiveMarkers:_0x3d6f40=!0x0,isAttributeSuggestion:_0x1ccadd=!0x1}={})=>(_0x5589e5,_0xb06de8,_0x1e0cb8)=>{if(!_0xb06de8['item'])return;const {id:_0x4e5e9d,authorId:_0x3e0d1a}=this['_splitMarkerName'](_0xb06de8['markerName']);if(_0x1ccadd){const _0x516672=this['_suggestions']['get'](_0x4e5e9d),_0x42e124=this['_getAttributeKey'](_0x516672);if(!this['_isBlockAttribute'](_0x42e124))return;}if(_0xb06de8['item']['is']('selection'))return void _0x1e0cb8['consumable']['consume'](_0xb06de8['item'],_0x5589e5['name']);const _0x33d8c3=_0x1e0cb8['mapper']['toViewElement'](_0xb06de8['item']);if(_0xb06de8['item']['is']('element')&&_0x4add87['model']['schema']['isBlock'](_0xb06de8['item'])&&!_0x33d8c3['getCustomProperty']('addHighlight')){_0x1e0cb8['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x33d8c3),_0x1e0cb8['writer']['setAttribute']('data-suggestion',_0x4e5e9d,_0x33d8c3),_0x1e0cb8['writer']['setAttribute']('data-author-id',_0x3e0d1a,_0x33d8c3),_0x1e0cb8['mapper']['bindElementToMarker'](_0x33d8c3,_0xb06de8['markerName']),_0x3d6f40&&(this['activeMarkers']['includes'](_0xb06de8['markerName'])?_0x1e0cb8['writer']['addClass']('ck-suggestion-marker--active',_0x33d8c3):_0x1e0cb8['writer']['removeClass']('ck-suggestion-marker--active',_0x33d8c3));for(const _0x2422b5 of _0x4add87['model']['createRangeIn'](_0xb06de8['item'])['getItems']())_0x1e0cb8['consumable']['consume'](_0x2422b5,_0x5589e5['name']);_0x1e0cb8['consumable']['consume'](_0xb06de8['item'],_0x5589e5['name']);}};_0x4add87['conversion']['for']('dataDowncast')['add'](_0x28e2c6=>{_0x28e2c6['on']('addMarker:suggestion:formatBlock',(_0x4939c6,_0x4291e2,_0x291915)=>{_0x291915['options']['showSuggestionHighlights']&&_0x40eb3d({'showActiveMarkers':!0x1})(_0x4939c6,_0x4291e2,_0x291915);},{'priority':'highest'});}),_0x4add87['conversion']['for']('dataDowncast')['add'](_0x62a043=>{_0x62a043['on']('addMarker:suggestion:attribute',(_0x3ccb6a,_0x79a4e8,_0x15592f)=>{_0x15592f['options']['showSuggestionHighlights']&&_0x40eb3d({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x3ccb6a,_0x79a4e8,_0x15592f);},{'priority':'highest'});}),_0x4add87['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x24706b,_0x45051b)=>_0x45051b['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x24706b['substr'](0xb)}}),_0x4add87['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2df584,{writer:_0x525a9f})=>{let _0x2ca906='suggestion:'+_0x2df584['getAttribute']('suggestion-type')+':'+_0x2df584['getAttribute']('id');return _0x2df584['getAttribute']('marker-count')&&(_0x2ca906+=':'+_0x2df584['getAttribute']('marker-count')),_0x525a9f['createElement']('$marker',{'data-name':_0x2ca906});}}),_0x4add87['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4add87['conversion']['for']('editingDowncast')['add'](_0x2590b1=>{_0x2590b1['on']('addMarker:suggestion:formatBlock',_0x40eb3d(),{'priority':'high'});}),_0x4add87['conversion']['for']('editingDowncast')['add'](_0x17bc62=>{_0x17bc62['on']('addMarker:suggestion:attribute',_0x40eb3d({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x4add87['conversion']['for']('editingDowncast')['add'](_0x42b68f=>{_0x42b68f['on']('removeMarker:suggestion:formatBlock',(_0x405c3b,_0x546a12,_0x8e2acc)=>{const _0x56af42=_0x8e2acc['mapper']['markerNameToElements'](_0x546a12['markerName']);if(_0x56af42){for(const _0x2cfa7b of _0x56af42)_0x2cfa7b['getCustomProperty']('addHighlight')||(_0x8e2acc['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2cfa7b),_0x8e2acc['writer']['removeAttribute']('data-suggestion',_0x2cfa7b),_0x8e2acc['writer']['removeAttribute']('data-author-id',_0x2cfa7b),_0x8e2acc['mapper']['unbindElementFromMarkerName'](_0x2cfa7b,_0x546a12['markerName']));}},{'priority':'high'});}),_0x4add87['conversion']['for']('editingDowncast')['add'](_0x1e2701=>{_0x1e2701['on']('removeMarker:suggestion:attribute',(_0x4ca5a2,_0x245b7d,_0x135695)=>{const _0x42d72f=_0x135695['mapper']['markerNameToElements'](_0x245b7d['markerName']);if(!_0x42d72f)return;const {id:_0x5abab1}=this['_splitMarkerName'](_0x245b7d['markerName']),_0x2842=this['_suggestions']['get'](_0x5abab1),_0x3a65d6=this['_getAttributeKey'](_0x2842);if(this['_isBlockAttribute'](_0x3a65d6)){for(const _0x51e159 of _0x42d72f)_0x51e159['getCustomProperty']('addHighlight')||(_0x135695['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x51e159),_0x135695['writer']['removeAttribute']('data-suggestion',_0x51e159),_0x135695['writer']['removeAttribute']('data-author-id',_0x51e159),_0x135695['mapper']['unbindElementFromMarkerName'](_0x51e159,_0x245b7d['markerName']));}},{'priority':'high'});}),_0x4add87['model']['document']['registerPostFixer'](_0x522820=>{let _0xdd5990=!0x1;const _0x4d36cd=Array['from'](_0x4add87['model']['document']['differ']['getChangedMarkers']()),_0x3fd3cd=new Set();for(const {name:_0x3671d8,data:_0x449e76}of _0x4d36cd){const {group:_0x35a0e4,type:_0x2998f8,subType:_0x2c3e4b,id:_0x1884ac}=this['_splitMarkerName'](_0x3671d8);if('suggestion'!==_0x35a0e4)continue;const _0x35e09f=this['_suggestions']['get'](_0x1884ac);if(null!=_0x449e76['newRange']){'formatInline'==_0x2998f8&&(_0xdd5990=_0xdd5990||Pt(_0x449e76['newRange'],_0x3671d8,_0x522820,_0x4add87['model']['schema']));const _0x3ed318='attribute'==_0x2998f8&&this['_isBlockAttribute'](_0x2c3e4b['split']('|')[0x0]);if(_0x449e76['newRange']['isCollapsed']||'$graveyard'==_0x449e76['newRange']['root']['rootName']||'formatBlock'==_0x2998f8&&!Lt(_0x449e76['newRange'])||_0x3ed318&&!Lt(_0x449e76['newRange'])||'deletion'==_0x2998f8&&!(!Ft(_0x24c550=_0x449e76['newRange'])&&!function(_0x1909b6){return _0x1909b6['start']['parent']==_0x1909b6['end']['nodeBefore']&&_0x1909b6['start']['isAtEnd'];}(_0x24c550)))_0x522820['removeMarker'](_0x3671d8),_0xdd5990=!0x0;else{if(!_0x35e09f||!_0x35e09f['isInContent'])continue;if(_0x449e76['newRange']&&_0x449e76['oldRange']&&_0x449e76['newRange']['isEqual'](_0x449e76['oldRange']))continue;_0x3fd3cd['add'](_0x35e09f);}}}var _0x24c550;return _0x3fd3cd['size']>0x0&&(_0xdd5990=!!this['_joinWithAdjacentSuggestions'](_0x3fd3cd)||_0xdd5990),_0xdd5990;}),_0x4add87['model']['document']['registerPostFixer'](_0x27552f=>{let _0x3cecf1=!0x1;for(const _0x373238 of _0x4add87['model']['document']['differ']['getChanges']())if('insert'==_0x373238['type'])for(const _0x4c28d2 of this['_suggestions']['values']()){if(_0x4c28d2['isMultiRange']||!_0x4c28d2['isInContent'])continue;const _0x3eb3ea='formatBlock'==_0x4c28d2['type'],_0x314815=this['_getAttributeKey'](_0x4c28d2),_0x1f8a18=_0x314815&&this['_isBlockAttribute'](_0x314815);if(!_0x3eb3ea&&!_0x1f8a18)continue;const _0x26d696=_0x4c28d2['getFirstRange']();if(_0x26d696['start']['parent']!=_0x26d696['end']['parent']&&!_0x26d696['end']['isAtEnd']){const _0x27fa1f=_0x4add87['model']['createPositionAt'](_0x26d696['start']['nodeAfter'],'end'),_0x4cdf62=_0x4add87['model']['createRange'](_0x26d696['start'],_0x27fa1f);_0x27552f['updateMarker'](_0x4c28d2['getFirstMarker'](),{'range':_0x4cdf62}),_0x3cecf1=!0x0;}}return _0x3cecf1;}),_0x4add87['model']['document']['registerPostFixer'](_0x200b46=>this['_processAttributeChanges'](_0x200b46)),_0x4add87['model']['document']['registerPostFixer'](_0x5d73d5=>!_0x5d73d5['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x5d73d5)),_0x4add87['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4add87['model']['document']['on']('change:data',(_0x4c7958,_0x505df6)=>{if(!_0x505df6['isLocal']||_0x505df6['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x24b481=_0x4add87['model']['document']['differ']['getChanges']();if(0x0==_0x24b481['length'])return;const _0x12ca00=[],_0x23d6a7=_0x24b481['filter'](_0x57f7ab=>'attribute'==_0x57f7ab['type']),_0xd9ba1f=_0x24b481['filter'](_0x303a3d=>'insert'==_0x303a3d['type']&&'$text'!=_0x303a3d['name']);for(const _0x29e2b3 of _0x23d6a7)this['_isRegisteredAttribute'](_0x29e2b3['attributeKey'])&&_0x12ca00['push']({'key':_0x29e2b3['attributeKey'],'newValue':_0x29e2b3['attributeNewValue'],'oldValue':_0x29e2b3['attributeOldValue'],'range':Jt(_0x29e2b3['range'],_0x4add87['model'])});for(const _0x50a937 of _0xd9ba1f){if('rename'!=_0x50a937['action']&&'refresh'!=_0x50a937['action'])continue;const _0x48bec3=Kt(_0x50a937['position']['nodeAfter'],_0x4add87['model']),_0x33eb02=_0x50a937['before'];'rename'==_0x50a937['action']&&_0x12ca00['push']({'key':u,'newValue':_0x50a937['name'],'oldValue':_0x33eb02['name'],'range':_0x48bec3});for(const [_0x5652e2,_0x4dd27f]of _0x33eb02['attributes']){if(!this['_isRegisteredAttribute'](_0x5652e2))continue;const _0x5e772f=_0x50a937['attributes']['get'](_0x5652e2);_0x4dd27f!==_0x5e772f&&_0x12ca00['push']({'key':_0x5652e2,'newValue':_0x5e772f,'oldValue':_0x4dd27f,'range':_0x48bec3});}for(const [_0x381ffb,_0x13fdc2]of _0x50a937['attributes'])this['_isRegisteredAttribute'](_0x381ffb)&&(_0x33eb02['attributes']['has'](_0x381ffb)||_0x12ca00['push']({'key':_0x381ffb,'newValue':_0x13fdc2,'oldValue':null,'range':_0x48bec3}));}0x0!=_0x12ca00['length']&&_0x4add87['model']['enqueueChange'](_0x505df6,_0x1d0000=>{const _0x4f5194=_0x1fa35e();for(const {range:_0x58bc18,key:_0x3b98fc,oldValue:_0x15d837,newValue:_0x2c051f}of _0x12ca00)this['markAttributeChange'](_0x58bc18,_0x3b98fc,_0x15d837,_0x2c051f,{'groupId':_0x4f5194});this['_reduceExistingSuggestions'](_0x1d0000,_0x12ca00);});},{'priority':'lowest'}),_0x4add87['model']['markers']['on']('update:suggestion',(_0x52948c,_0x580188,_0x227198)=>{if(null==_0x227198){const {id:_0x493358}=this['_splitMarkerName'](_0x580188['name']),_0x3c5b09=this['_suggestions']['get'](_0x493358);_0x3c5b09&&_0x3c5b09['addMarkerName'](_0x580188['name']);}}),_0x4add87['model']['document']['on']('change:data',()=>{const _0x30dbda=Array['from'](_0x4add87['model']['document']['differ']['getChangedMarkers']())['filter'](_0x44c087=>'suggestion'===this['_splitMarkerName'](_0x44c087['name'])['group']);if(0x0===_0x30dbda['length'])return;_0x30dbda['sort']((_0x1ced76,_0x47286a)=>{const _0x3a551e=_0x1ced76['data']['oldRange'],_0x5f0618=_0x47286a['data']['oldRange'];return null===_0x3a551e&&null===_0x5f0618?0x0:null===_0x3a551e&&null!==_0x5f0618?-0x1:null!==_0x3a551e&&null===_0x5f0618?0x1:_0x3a551e['start']['isBefore'](_0x5f0618['start'])?-0x1:0x1;});const _0x83ac4f=new Set(),_0x337f9f=new Set();for(const {name:_0x3d7656,data:_0x3db943}of _0x30dbda){const {id:_0x5a6f6b}=this['_splitMarkerName'](_0x3d7656);if(null===_0x3db943['oldRange']){const _0x3ec63c=this['_handleNewSuggestionMarker'](_0x3d7656);_0x337f9f['add'](_0x3ec63c);}else{const _0x26daf4=this['_suggestions']['get'](_0x5a6f6b);null!==_0x3db943['newRange']||_0x26daf4['isInContent']?(_0x83ac4f['add'](_0x26daf4['head']),_0x337f9f['add'](_0x26daf4)):this['_removeSuggestion'](_0x26daf4);}}_0x337f9f['size']>0x0&&this['_refreshSuggestionsChain'](_0x337f9f);for(const _0xd1c88c of _0x83ac4f)this['fire']('suggestionChanged',_0xd1c88c);}),_0x4add87['model']['on']('applyOperation',(_0x2c5c26,_0x1b4dfa)=>{const _0x24acbf=_0x1b4dfa[0x0];if(!this['_suggestions']['size'])return;if(!_0x24acbf['isDocumentOperation'])return;if(_0x24acbf['batch']['isUndo']||!_0x24acbf['batch']['isLocal'])return;let _0x4321c1,_0x3fc863;switch(_0x24acbf['type']){case'insert':_0x4321c1=_0x4add87['model']['createPositionAt'](_0x24acbf['position']),_0x3fc863=_0x4321c1['getShiftedBy'](_0x24acbf['howMany']);break;case'split':_0x4321c1=_0x4add87['model']['createPositionAt'](_0x24acbf['splitPosition']),_0x3fc863=_0x4add87['model']['createPositionAt'](_0x24acbf['moveTargetPosition']);break;case'move':_0x4321c1=_0x4add87['model']['createPositionAt'](_0x24acbf['targetPosition']),_0x3fc863=_0x4321c1['getShiftedBy'](_0x24acbf['howMany']);break;default:return;}const _0x27b003=_0x4add87['model']['createRange'](_0x4321c1,_0x3fc863);_0x4add87['model']['change'](()=>{for(const {suggestion:_0x2270f9,meta:_0x32dfd0}of this['_findSuggestions'](_0x27b003)){if(_0x2270f9['isMultiRange'])continue;if('formatInline'==_0x2270f9['type'])continue;const _0x3427cc=this['_getAttributeKey'](_0x2270f9);if(_0x3427cc&&this['_isBlockAttribute'](_0x3427cc)&&'split'!=_0x24acbf['type'])continue;const _0x1293cd=_0x2270f9['data']&&_0x2270f9['data']['multipleBlocks'];('formatBlock'!=_0x2270f9['type']||'split'==_0x24acbf['type']&&!_0x1293cd)&&(_0x32dfd0['containsRangeInObject']||'insertion'==_0x2270f9['type']&&_0x32dfd0['isOwn']||_0x2270f9['getFirstRange']()['containsRange'](_0x27b003)&&this['_breakSuggestionMarker'](_0x2270f9,_0x4321c1,_0x3fc863));}});},{'priority':'lowest'}),_0x4add87['model']['on']('deleteContent',(_0x3f919f,_0x149c9f)=>{const _0x4c8a00=_0x149c9f[0x0],_0x494454=_0x149c9f[0x1];if(_0x494454&&_0x494454['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4c8a00['isCollapsed'])return;const _0x5f3c87=_0x4add87['model']['schema'],{start:_0x1514c7,end:_0x50dc60}=_0x4c8a00['getFirstRange'](),_0x2d7a88=_0x1514c7['nodeAfter']&&_0x5f3c87['isLimit'](_0x1514c7['nodeAfter'])?null:_0x5f3c87['getNearestSelectionRange'](_0x1514c7,'forward'),_0x1808e6=_0x50dc60['nodeBefore']&&_0x5f3c87['isLimit'](_0x50dc60['nodeBefore'])?null:_0x5f3c87['getNearestSelectionRange'](_0x50dc60,'backward'),_0x2fc01d=_0x4add87['model']['createRange'](_0x2d7a88?_0x2d7a88['start']:_0x1514c7,_0x1808e6?_0x1808e6['end']:_0x50dc60);_0x4add87['model']['change'](_0x5ef552=>{this['markDeletion'](_0x2fc01d);const _0x46cdca=_0x4add87['model']['schema']['getNearestSelectionRange'](_0x2fc01d['start']);_0x4c8a00['is']('documentSelection')?_0x5ef552['setSelection'](_0x46cdca):_0x4c8a00['setTo'](_0x46cdca);}),_0x3f919f['stop']();},{'priority':_0x28a48a['normal']+0xa}),_0x4add87['model']['on']('insertContent',(_0x1e4cb7,_0x4b3b41)=>{const _0x1766b1=_0x4b3b41[_0x4b3b41['length']-0x1];_0x1766b1&&_0x1766b1['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4add87['model']['change'](()=>{let _0x1e00e0=_0x4add87['model']['insertContent'](_0x4b3b41[0x0],_0x4b3b41[0x1],_0x4b3b41[0x2],{'forceDefaultExecution':!0x0});if(!_0x1e00e0)return;_0x1e4cb7['return']=_0x1e00e0['clone']();const _0x3cf2fc=_0x1e00e0['end']['nodeBefore'],_0x4f2cca=_0x4add87['model']['schema'];_0x3cf2fc&&_0x4f2cca['isBlock'](_0x3cf2fc)&&!_0x4f2cca['isObject'](_0x3cf2fc)&&(_0x1e00e0=_0x4add87['model']['createRange'](_0x1e00e0['start'],_0x4add87['model']['createPositionAt'](_0x3cf2fc,'end'))),this['markInsertion'](_0x1e00e0);}),_0x1e4cb7['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x4742a0=new O(_0x4add87,this['_suggestions']);_0x4add87['commands']['add']('acceptSuggestion',_0x4742a0),this['enableCommand']('acceptSuggestion');const _0x52f29c=new R(_0x4add87,this['_suggestions']);_0x4add87['commands']['add']('discardSuggestion',_0x52f29c),this['enableCommand']('discardSuggestion'),_0x4add87['commands']['add']('acceptAllSuggestions',new x(_0x4add87,_0x4742a0,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4add87['commands']['add']('discardAllSuggestions',new x(_0x4add87,_0x52f29c,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4add87['commands']['add']('acceptSelectedSuggestions',new E(_0x4add87,_0x4742a0,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4add87['commands']['add']('discardSelectedSuggestions',new E(_0x4add87,_0x52f29c,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x346f48=_0x4add87['plugins']['get']('CommentsRepository');this['listenTo'](_0x346f48,'addComment',(_0x1dfcee,{threadId:_0x826ead})=>{const _0xacaed4=this['_suggestions']['get'](_0x826ead);_0xacaed4&&_0xacaed4['commentThread']&&0x1===_0xacaed4['commentThread']['length']&&this['_updateSuggestionData'](_0x826ead,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x346f48,'removeComment',(_0x33eb32,{threadId:_0x3a0b2e})=>{const _0x1313e6=this['_suggestions']['get'](_0x3a0b2e);_0x1313e6&&_0x1313e6['commentThread']&&!_0x1313e6['commentThread']['length']&&this['_updateSuggestionData'](_0x3a0b2e,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x46c057){const _0x47e207=_0x376bd6([0x51,0x58,0x69,0x78,0x48,0x43,0x63,0x32,0x35,0x38,0x4e,0x6f,0x4d,0x6d,0x5a,0x6b,0x75,0x34,0x57,0x68,0x4a,0x49,0x33,0x31,0x50,0x67,0x4c,0x6e,0x36,0x74,0x77,0x79,0x71,0x52,0x37,0x72,0x76,0x46,0x55,0x53,0x54,0x66,0x61,0x4f,0x4b,0x59,0x47,0x62,0x7a,0x65,0x39,0x41,0x6a,0x70,0x30,0x6c,0x73,0x42,0x45,0x64,0x56,0x44]),_0x5dab10=0x22defbbf,_0x4c9da4=0x22d9a467^_0x5dab10,_0x5c16b9=window[_0x376bd6([0x44,0x61,0x74,0x65])][_0x376bd6([0x6e,0x6f,0x77])](),_0x19467a=_0x46c057[_0x376bd6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x33d530=new window[(_0x376bd6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5625ff=>{_0x19467a[_0x376bd6([0x6f,0x6e,0x63,0x65])](_0x376bd6([0x72,0x65,0x61,0x64,0x79]),_0x5625ff);}),_0x646736={[_0x376bd6([0x6b,0x74,0x79])]:_0x376bd6([0x45,0x43]),[_0x376bd6([0x75,0x73,0x65])]:_0x376bd6([0x73,0x69,0x67]),[_0x376bd6([0x63,0x72,0x76])]:_0x376bd6([0x50,0x2d,0x32,0x35,0x36]),[_0x376bd6([0x78])]:_0x376bd6([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]),[_0x376bd6([0x79])]:_0x376bd6([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]),[_0x376bd6([0x61,0x6c,0x67])]:_0x376bd6([0x45,0x53,0x32,0x35,0x36])},_0x5afc3d=_0x19467a[_0x376bd6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x376bd6([0x67,0x65,0x74])](_0x376bd6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x46beec(){let _0x330767,_0x2d7e33=null,_0x1f008f=null;try{if(_0x5afc3d==_0x376bd6([0x47,0x50,0x4c]))return _0x376bd6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x330767=_0x4bb111(),!_0x330767)return _0x376bd6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x330767[_0x376bd6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1f008f=_0xd161f3(_0x330767[_0x376bd6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x330767[_0x376bd6([0x6a,0x74,0x69])])),await _0x4d533b()?_0x262347()?_0x1c9198()?_0x376bd6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4cc772()?(_0x330767[_0x376bd6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x376bd6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2d7e33=_0x1703e4(_0x376bd6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x330767[_0x376bd6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x376bd6([0x74,0x72,0x69,0x61,0x6c])&&(_0x2d7e33=_0x1703e4(_0x376bd6([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x408ab5()):_0x376bd6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x376bd6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x376bd6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x5b643a){return _0x376bd6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1c9198(){const _0x31f0ec=[_0x376bd6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x376bd6([0x74,0x72,0x69,0x61,0x6c])][_0x376bd6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x330767[_0x376bd6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5c16b9/0x3e8:0xe10*_0x4c9da4;return _0x330767[_0x376bd6([0x65,0x78,0x70])]<_0x31f0ec;}function _0x262347(){const _0x1b1314=_0x330767[_0x376bd6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1b1314)return!0x1;if(_0x1b1314[_0x376bd6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x376bd6([0x2a])))return!0x0;if(_0x1b1314[_0x376bd6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x376bd6([0x54,0x43])))return!0x0;if(_0x1b1314[_0x376bd6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x376bd6([0x52,0x54,0x43]))){if(_0x45865a())return!0x0;if(_0x4c6712()||_0x163430())return!0x0;}return!0x1;}function _0x4cc772(){const _0x49d20e=_0x330767[_0x376bd6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x49d20e||0x0==_0x49d20e[_0x376bd6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x137185}=new URL(window[_0x376bd6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x49d20e[_0x376bd6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x137185))return!0x0;const _0x3f1c58=_0x137185[_0x376bd6([0x73,0x70,0x6c,0x69,0x74])](_0x376bd6([0x2e]));return _0x49d20e[_0x376bd6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3e3c76=>_0x3e3c76[_0x376bd6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x376bd6([0x2a])))[_0x376bd6([0x6d,0x61,0x70])](_0x20d66a=>_0x20d66a[_0x376bd6([0x73,0x70,0x6c,0x69,0x74])](_0x376bd6([0x2e])))[_0x376bd6([0x73,0x6f,0x6d,0x65])](_0x292564=>_0x3f1c58[_0x376bd6([0x65,0x76,0x65,0x72,0x79])]((_0x2f0a45,_0x5058b0)=>_0x292564[_0x5058b0]===_0x2f0a45||_0x292564[_0x5058b0]===_0x376bd6([0x2a])));}function _0x408ab5(){return _0x2d7e33&&_0x1f008f?new window[(_0x376bd6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3ce265,_0x1d1827)=>{_0x2d7e33[_0x376bd6([0x74,0x68,0x65,0x6e])](_0x3ce265,_0x1d1827),_0x1f008f[_0x376bd6([0x74,0x68,0x65,0x6e])](_0x20b4b3=>{_0x20b4b3!=_0x376bd6([0x56,0x61,0x6c,0x69,0x64])&&_0x3ce265(_0x20b4b3);},_0x1d1827);}):_0x2d7e33||_0x1f008f||_0x376bd6([0x56,0x61,0x6c,0x69,0x64]);}}function _0xd161f3(_0x26f9c7,_0xa53922){return new window[(_0x376bd6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x48e79d=>{if(_0xc4b27())return _0x48e79d(_0x376bd6([0x56,0x61,0x6c,0x69,0x64]));_0x29d930(),_0x19467a[_0x376bd6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x376bd6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x407ca7=!0x1;const _0x4e6122=_0x1fa35e();function _0xeab20c(_0x1a635b){return!!_0x1a635b&&(typeof _0x1a635b===_0x376bd6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1a635b===_0x376bd6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1a635b[_0x376bd6([0x74,0x68,0x65,0x6e])]===_0x376bd6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1a635b[_0x376bd6([0x63,0x61,0x74,0x63,0x68])]===_0x376bd6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x28683b(_0x27a149){_0x3e34b2(_0x27a149)[_0x376bd6([0x74,0x68,0x65,0x6e])](_0x26b0e5=>{if(!_0x26b0e5||_0x26b0e5[_0x376bd6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x376bd6([0x6f,0x6b]))return _0x376bd6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5708db(_0xe38555(_0x4e6122+_0xa53922))!=_0x26b0e5[_0x376bd6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x376bd6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x376bd6([0x56,0x61,0x6c,0x69,0x64]);})[_0x376bd6([0x74,0x68,0x65,0x6e])](_0x232a51=>(_0x46ba13(),_0x232a51),()=>{const _0x4596f2=_0x24ecb4();return null==_0x4596f2?(_0x46ba13(),_0x376bd6([0x56,0x61,0x6c,0x69,0x64])):_0x376bd6(_0x5c16b9-_0x4596f2>(0x6d27fbf^_0x5dab10)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x376bd6([0x74,0x68,0x65,0x6e])](_0x48e79d)[_0x376bd6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x48e79d(_0x376bd6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x41946f=0x22e8153f^_0x5dab10;function _0x46ba13(){const _0x557f5a=_0x376bd6([0x6c,0x6c,0x63,0x74,0x2d])+_0x5708db(_0xe38555(_0x26f9c7)),_0x4263b9=_0x57d792(_0x5708db(window[_0x376bd6([0x4d,0x61,0x74,0x68])][_0x376bd6([0x63,0x65,0x69,0x6c])](_0x5c16b9/_0x41946f)));window[_0x376bd6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x376bd6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x557f5a,_0x4263b9);}function _0x24ecb4(){const _0x1142b6=_0x376bd6([0x6c,0x6c,0x63,0x74,0x2d])+_0x5708db(_0xe38555(_0x26f9c7)),_0x1329ed=window[_0x376bd6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x376bd6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1142b6);return _0x1329ed?window[_0x376bd6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x57d792(_0x1329ed),0x10)*_0x41946f:null;}function _0x3e34b2(_0x382333){return new window[(_0x376bd6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x49b923,_0x1f3982)=>{_0x382333[_0x376bd6([0x74,0x68,0x65,0x6e])](_0x49b923,_0x1f3982),window[_0x376bd6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1f3982,0x22df2f7f^_0x5dab10);});}}_0x19467a[_0x376bd6([0x6f,0x6e])](_0x376bd6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x55ad3d,_0x1b8bef)=>{if(_0x1b8bef[0x0]!=_0x26f9c7)return _0x48e79d(_0x376bd6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1b8bef[0x1]={..._0x1b8bef[0x1],[_0x376bd6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4e6122};},{[_0x376bd6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x376bd6([0x68,0x69,0x67,0x68])}),_0x19467a[_0x376bd6([0x6f,0x6e])](_0x376bd6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x6aa36c=>{_0xeab20c(_0x6aa36c[_0x376bd6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x407ca7=!0x0,_0x28683b(_0x6aa36c[_0x376bd6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x376bd6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x376bd6([0x6c,0x6f,0x77])}),_0x33d530[_0x376bd6([0x74,0x68,0x65,0x6e])](()=>{_0x407ca7||_0x48e79d(_0x376bd6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xc4b27(){return _0x19467a[_0x376bd6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x376bd6([0x76,0x69,0x65,0x77])][_0x376bd6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x376bd6([0x61,0x75,0x74,0x6f]);}function _0x29d930(){_0x19467a[_0x376bd6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x376bd6([0x76,0x69,0x65,0x77])][_0x376bd6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x376bd6([0x61,0x75,0x74,0x6f]);}}function _0x1703e4(_0x2cb692){const _0x39611d=[new window[(_0x376bd6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x6e6fb3=>setTimeout(_0x6e6fb3,0x22d7c573^_0x5dab10)),_0x33d530[_0x376bd6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x376bd6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x27a8fa=>{let _0x509848=0x0;_0x19467a[_0x376bd6([0x6d,0x6f,0x64,0x65,0x6c])][_0x376bd6([0x6f,0x6e])](_0x376bd6([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4e244b,_0x298c72)=>{_0x298c72[0x0][_0x376bd6([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x509848++,_0x509848==(0x22defa47^_0x5dab10)&&(_0x27a8fa(),_0x4e244b[_0x376bd6([0x6f,0x66,0x66])]());});}))];return window[_0x376bd6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x376bd6([0x72,0x61,0x63,0x65])](_0x39611d)[_0x376bd6([0x74,0x68,0x65,0x6e])](()=>_0x2cb692);}async function _0x8c3c07(){await _0x33d530,_0x19467a[_0x376bd6([0x6d,0x6f,0x64,0x65,0x6c])][_0x376bd6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2842c8,_0x19467a[_0x376bd6([0x6d,0x6f,0x64,0x65,0x6c])][_0x376bd6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2842c8,_0x19467a[_0x376bd6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x376bd6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x45865a(){return _0x479557(_0x376bd6([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5c03dd(_0x376bd6([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x376bd6([0x73,0x74,0x61,0x74,0x65])]==_0x376bd6([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4c6712(){return _0x479557(_0x376bd6([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 _0x163430(){return _0x479557(_0x376bd6([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x149694(_0x2d35d3){const _0x4c1215=_0x208abb();_0x19467a[_0x4c1215]=_0x376bd6([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2d35d3,_0x2d35d3!=_0x376bd6([0x56,0x61,0x6c,0x69,0x64])&&_0x8c3c07();}function _0x208abb(){const _0x6809a8=window[_0x376bd6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x376bd6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x376bd6([0x6e,0x6f,0x77])]())[_0x376bd6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x376bd6([0x2e]),'');let _0x38963c=_0x376bd6([0x51]);for(let _0x4ac81f=0x0;_0x4ac81f<_0x6809a8[_0x376bd6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4ac81f+=0x2){let _0x16f215=window[_0x376bd6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x6809a8[_0x376bd6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4ac81f,_0x4ac81f+0x2));_0x16f215>=_0x47e207[_0x376bd6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x16f215-=_0x47e207[_0x376bd6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x38963c+=_0x47e207[_0x16f215];}return _0x38963c;}function _0x4bb111(){const _0x2bdc02=_0x5afc3d[_0x376bd6([0x73,0x70,0x6c,0x69,0x74])](_0x376bd6([0x2e]));if(0x3!=_0x2bdc02[_0x376bd6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x113e40(_0x2bdc02[0x1]);function _0x113e40(_0x35ac02){const _0x53e4ff=_0x5dc2b6(_0x35ac02);return _0x53e4ff&&_0x2448f1()?_0x53e4ff:null;function _0x2448f1(){const _0x59d517=_0x53e4ff[_0x376bd6([0x6a,0x74,0x69])],_0x3b198b=window[_0x376bd6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x59d517[_0x376bd6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x59d517[_0x376bd6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3bbef8={..._0x53e4ff,[_0x376bd6([0x6a,0x74,0x69])]:_0x59d517[_0x376bd6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x59d517[_0x376bd6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3bbef8[_0x376bd6([0x76,0x63])],_0xe38555(_0x3bbef8)==_0x3b198b;}}}async function _0x4d533b(){let _0x24f1a4=!0x0;try{const _0x1cebd4=_0x5afc3d[_0x376bd6([0x73,0x70,0x6c,0x69,0x74])](_0x376bd6([0x2e])),[_0x2d1dbd,_0x1562bb,_0x469b59]=_0x1cebd4;return _0x78dd72(_0x2d1dbd),await _0x588f53(_0x2d1dbd,_0x1562bb,_0x469b59),_0x24f1a4;}catch(_0xf634a6){return!0x1;}function _0x78dd72(_0x5308de){const _0x27302f=_0x5dc2b6(_0x5308de);_0x27302f&&_0x27302f[_0x376bd6([0x61,0x6c,0x67])]==_0x376bd6([0x45,0x53,0x32,0x35,0x36])||(_0x24f1a4=!0x1);}async function _0x588f53(_0x47eaae,_0x1c8af9,_0x20f2ea){const _0x5de2f3=window[_0x376bd6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x376bd6([0x66,0x72,0x6f,0x6d])](_0x3fa285(_0x20f2ea),_0x21d7c9=>_0x21d7c9[_0x376bd6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xe0be00=new window[(_0x376bd6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x376bd6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x47eaae+_0x376bd6([0x2e])+_0x1c8af9),_0x4e872d=window[_0x376bd6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x376bd6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4e872d)return;const _0x34fbe9=await _0x4e872d[_0x376bd6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x376bd6([0x6a,0x77,0x6b]),_0x646736,{[_0x376bd6([0x6e,0x61,0x6d,0x65])]:_0x376bd6([0x45,0x43,0x44,0x53,0x41]),[_0x376bd6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x376bd6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x376bd6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4e872d[_0x376bd6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x376bd6([0x6e,0x61,0x6d,0x65])]:_0x376bd6([0x45,0x43,0x44,0x53,0x41]),[_0x376bd6([0x68,0x61,0x73,0x68])]:{[_0x376bd6([0x6e,0x61,0x6d,0x65])]:_0x376bd6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x34fbe9,_0x5de2f3,_0xe0be00)||(_0x24f1a4=!0x1);}}function _0x5dc2b6(_0x46fd34){return _0x46fd34[_0x376bd6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x376bd6([0x65,0x79]))?JSON[_0x376bd6([0x70,0x61,0x72,0x73,0x65])](_0x3fa285(_0x46fd34)):null;}function _0x3fa285(_0x581d52){return window[_0x376bd6([0x61,0x74,0x6f,0x62])](_0x581d52[_0x376bd6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x376bd6([0x2b]))[_0x376bd6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x376bd6([0x2f])));}function _0xe38555(_0x133d9f){let _0x44cee9=0x1505;function _0x1110b1(_0x4ef4cb){for(let _0x4aeec4=0x0;_0x4aeec4<_0x4ef4cb[_0x376bd6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4aeec4++){const _0x946031=_0x4ef4cb[_0x376bd6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4aeec4);_0x44cee9=(_0x44cee9<<0x5)+_0x44cee9+_0x946031,_0x44cee9&=_0x44cee9;}}function _0x22735a(_0x4a7bfa){Array[_0x376bd6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4a7bfa)?_0x4a7bfa[_0x376bd6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x22735a):_0x4a7bfa&&typeof _0x4a7bfa==_0x376bd6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x376bd6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4a7bfa)[_0x376bd6([0x73,0x6f,0x72,0x74])]()[_0x376bd6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3e4bd4,_0x226887])=>{_0x1110b1(_0x3e4bd4),_0x22735a(_0x226887);}):_0x1110b1(window[_0x376bd6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4a7bfa));}return _0x22735a(_0x133d9f),_0x44cee9>>>0x0;}function _0x5708db(_0x31c5b5){return _0x31c5b5[_0x376bd6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x376bd6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x376bd6([0x30]));}function _0x57d792(_0x129a74){return _0x129a74[_0x376bd6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x376bd6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x376bd6([0x6a,0x6f,0x69,0x6e])]('');}function _0x479557(_0x5e5769){return _0x19467a[_0x376bd6([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x376bd6([0x68,0x61,0x73])](_0x5e5769);}function _0x5c03dd(_0x12b011){return _0x19467a[_0x376bd6([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x376bd6([0x67,0x65,0x74])](_0x12b011);}function _0x2842c8(){}function _0x376bd6(_0x2f51c3){return _0x2f51c3['map'](_0x4a08be=>String['fromCharCode'](_0x4a08be))['join']('');}_0x149694(await _0x46beec());}(this);}set['adapter'](_0x4c150){if(this['_adapter'])throw new _0x1f12e3('track-changes-adapter-already-set',this);this['_adapter']=_0x4c150;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2ce130=!0x1,toJSON:_0x5c9062=!0x1}={}){const _0x447d2d=[];for(const _0x45a485 of this['_suggestions']['values']())_0x2ce130&&!_0x45a485['isInContent']||_0x447d2d['push'](_0x45a485);return _0x5c9062?_0x447d2d['map'](_0x4aa463=>_0x4aa463['toJSON']()):_0x447d2d;}['getSuggestion'](_0x2c3310){const _0x508549=this['_suggestions']['get'](_0x2c3310);if(!_0x508549)throw new _0x1f12e3('track-changes-suggestion-not-found',this);return _0x508549;}['hasSuggestion'](_0x56a7e1){return this['_suggestions']['has'](_0x56a7e1);}['addSuggestionData'](_0x420c16){const {authorId:_0x3b9106,id:_0x1d0289,attributes:_0xe17743}=_0x420c16,[_0x1d2bf8,_0x271f43]=_0x420c16['type']['split'](':'),_0x18866e=this['_suggestions']['get'](_0x1d0289)||this['_createSuggestion'](_0x1d2bf8,_0x271f43,_0x1d0289,_0x3b9106,_0xe17743);if(this['_addThreadToSuggestion'](_0x18866e),this['_checkSuggestionCorrectness'](_0x18866e,_0x1d2bf8,_0x271f43||null,_0x3b9106),_0x18866e['createdAt']=_0x420c16['createdAt'],_0x18866e['_isDataLoaded']=!0x0,_0xe17743&&_0xe17743['@external']){const _0x4fd048=_0xe17743['@external'],_0x53456e=this['_getExternalAuthor'](_0x4fd048['authorName']);_0x18866e['authoredAt']=_0x4fd048['createdAt'],_0x18866e['author']=_0x53456e,_0x18866e['isExternal']=!0x0;}else _0x18866e['authoredAt']=_0x420c16['createdAt'];switch(_0x420c16['data']&&(_0x18866e['data']=_0x420c16['data']),_0x420c16['attributes']&&(_0x18866e['attributes']=_0x420c16['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x18866e['_saved']=!0x0),this['_suggestionState']['get'](_0x18866e)){case'notReady':this['_suggestionState']['set'](_0x18866e,'dataReady');break;case'markerReady':_0x18866e['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x18866e])),this['_refreshSuggestionsChain'](new Set([_0x18866e])),this['_suggestionState']['set'](_0x18866e,'ready'),this['fire']('suggestionLoaded',_0x18866e)):this['_suggestionState']['set'](_0x18866e,'removed');}return _0x18866e;}['acceptSuggestion'](_0x4550f7){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x808779 of _0x4550f7['getAllAdjacentSuggestions']())_0x808779['accept']();});});}['discardSuggestion'](_0x1d56c4){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2f5d66 of _0x1d56c4['getAllAdjacentSuggestions']())_0x2f5d66['discard']();});});}['enableCommand'](_0x244d5b,_0x1f92ab){const _0x80c5f6=this['editor']['commands']['get'](_0x244d5b);if(!_0x80c5f6)throw new _0x1f12e3('track-changes-command-not-found',this,{'commandName':_0x244d5b});if(this['_enabledCommands']['has'](_0x80c5f6))throw new _0x1f12e3('track-changes-enable-command-twice',this,{'commandName':_0x244d5b});this['_enabledCommands']['add'](_0x80c5f6),_0x1f92ab&&_0x80c5f6['on']('execute',(_0x3774e2,_0x1b852b)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x1b852b['length']>0x0&&_0x1b852b[_0x1b852b['length']-0x1]&&_0x1b852b[_0x1b852b['length']-0x1]['forceDefaultExecution']?_0x1b852b['pop']():(_0x3774e2['return']=_0x1f92ab((..._0x342460)=>_0x80c5f6['execute'](..._0x342460,{'forceDefaultExecution':!0x0}),..._0x1b852b),_0x3774e2['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x329400){let _0x495485,_0x3bbccb;const _0x188fba=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x495485=_0x329400();}catch(_0x197fea){_0x3bbccb=_0x197fea;}return _0x188fba||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3bbccb&&_0x1f12e3['rethrowUnexpectedError'](_0x3bbccb,this),_0x495485;}['markInsertion'](_0xd1174,_0x1598c8=null,_0x34910a={}){if(_0xd1174['isCollapsed'])return null;const _0xb7de6f=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0xba8abd,meta:_0x43e76b}of this['_findSuggestions'](_0xd1174,'insertion'))if(_0x43e76b['isOwn']){if(!_0x43e76b['isNextTo']){if(_0x43e76b['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0xba8abd,_0x34910a))continue;return _0xba8abd;}if(zt(_0xba8abd,_0x34910a))return _0xba8abd;this['_breakSuggestionMarker'](_0xba8abd,_0xd1174['start'],_0xd1174['end']);break;}if(_0x1598c8==_0xba8abd['subType']&&zt(_0xba8abd,_0x34910a)){const _0xd25405=_0xba8abd['getFirstRange']();return _0xd25405['start']['isEqual'](_0xd1174['end'])?this['_setSuggestionRange'](_0xba8abd,this['_model']['createRange'](_0xd1174['start'],_0xd25405['end'])):this['_setSuggestionRange'](_0xba8abd,this['_model']['createRange'](_0xd25405['start'],_0xd1174['end'])),_0xba8abd;}}const _0x3c872e=_0x1fa35e(),_0x104c44=_0xb7de6f['id'],_0x19433b=_0x1598c8?'insertion:'+_0x1598c8:'insertion',_0x172040=this['_setSuggestionData']({'id':_0x3c872e,'type':_0x19433b,'createdAt':new Date(),'authorId':_0x104c44,'attributes':_0x34910a});return this['_addSuggestionMarker'](_0x19433b,_0x3c872e,_0x104c44,_0xd1174),_0x172040;}['markMultiRangeInsertion'](_0x5e9350,_0x40b2a2='multi',_0x5c99e8={}){const _0x4af1c4=this['editor']['plugins']['get']('Users')['me'],_0x3e3d04=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x40b2a2,'join');for(const _0x2f1d99 of this['getSuggestions']())if(_0x2f1d99['author']['id']==_0x4af1c4['id']&&'insertion'==_0x2f1d99['type']&&_0x2f1d99['subType']==_0x40b2a2&&zt(_0x2f1d99,_0x5c99e8)&&(_0x3e3d04(_0x2f1d99['getRanges'](),_0x5e9350)||_0x3e3d04(_0x5e9350,_0x2f1d99['getRanges']()))){for(const _0x5c1405 of _0x5e9350)_0x2f1d99['addRange'](_0x5c1405);return _0x2f1d99;}for(const {suggestion:_0x40d8a6,meta:_0x5f44f3}of this['_findSuggestions'](_0x5e9350,'insertion')){if(!_0x5f44f3['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x5f44f3['containsRangeInObject'])continue;if(!zt(_0x40d8a6,_0x5c99e8))continue;let _0x48c7ef=!0x0;for(const _0x20f2e6 of _0x40d8a6['getRanges']())for(const _0x4eecb1 of _0x5e9350)if(!_0x20f2e6['containsRange'](_0x4eecb1)){_0x48c7ef=!0x1;break;}if(_0x48c7ef)return _0x40d8a6;}const _0x532a8a=_0x1fa35e(),_0x2df7ec=_0x4af1c4['id'],_0x412465='insertion:'+_0x40b2a2,_0xa89b64=this['_setSuggestionData']({'id':_0x532a8a,'type':_0x412465,'createdAt':new Date(),'authorId':_0x2df7ec,'attributes':_0x5c99e8});for(const _0x7d5bb8 of _0x5e9350)this['_addSuggestionMarker'](_0x412465,_0x532a8a,_0x2df7ec,_0x7d5bb8,o['getMultiRangeId']());return _0xa89b64;}['markInlineFormat'](_0x49eb61,_0x400ce6,_0x349e90=null,_0x250eb9={}){if(_0x349e90=_0x349e90||Gt(_0x400ce6),_0x49eb61['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x3f4563=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x349e90,'accept');return this['forceDefaultExecution'](()=>_0x3f4563([_0x49eb61],_0x400ce6,_0x250eb9)),null;}const _0x591efe=this['editor']['plugins']['get']('Users')['me'],_0x3c50aa=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x182abd,meta:_0x12d278}of this['_findSuggestions'](_0x49eb61,'insertion'))_0x12d278['isOwn']&&!_0x12d278['isInsideObject']&&_0x3c50aa['push'](..._0x182abd['getRanges']());}const _0x5b1b5c=function(_0x59fd3b,_0x5090a3){const _0x4cb625=[];for(const _0x30b5b4 of _0x5090a3){const _0x1d7a65=_0x59fd3b['getIntersection'](_0x30b5b4);_0x1d7a65&&_0x4cb625['push'](_0x1d7a65);}return _0x4cb625;}(_0x49eb61,_0x3c50aa),_0x2605dc=function(_0x33c5d6,_0x4afa70){const _0x27efca=[_0x33c5d6];for(const _0x354689 of _0x4afa70){let _0xf9c031=0x0;for(;_0xf9c031<_0x27efca['length'];){const _0x36e5d6=_0x27efca[_0xf9c031]['getDifference'](_0x354689);_0x27efca['splice'](_0xf9c031,0x1,..._0x36e5d6),_0xf9c031+=_0x36e5d6['length'];}}return _0x27efca;}(_0x49eb61,_0x3c50aa);_0x5b1b5c['length']&&this['_model']['change'](()=>{for(const _0x3cd907 of _0x5b1b5c){const _0x190e7f=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x349e90,'accept');this['forceDefaultExecution'](()=>_0x190e7f([_0x3cd907],_0x400ce6,_0x250eb9));}});for(const _0x4827c4 of _0x2605dc){let _0x9e47e9=null,_0x56af05=_0x4827c4['start'],_0x120038=_0x4827c4['end'];for(const {suggestion:_0x32732f,meta:_0x39b8e8}of this['_findSuggestions'](_0x4827c4,'formatInline')){if(!_0x39b8e8['isOwn'])continue;if(_0x32732f['subType']!=_0x349e90)continue;if(!zt(_0x32732f,_0x250eb9))continue;const _0x564705=_0x32732f['getFirstRange']();if(_0x564705['containsRange'](_0x4827c4,!0x0))return null;_0x56af05=_0x56af05['isBefore'](_0x564705['start'])?_0x56af05:_0x564705['start'],_0x120038=_0x120038['isAfter'](_0x564705['end'])?_0x120038:_0x564705['end'],_0x9e47e9?_0x564705['start']['isBefore'](_0x9e47e9['getFirstRange']()['start'])?(_0x9e47e9['removeMarkers'](),_0x9e47e9=_0x32732f):_0x32732f['removeMarkers']():_0x9e47e9=_0x32732f;}const _0x1aac02=this['_model']['createRange'](_0x56af05,_0x120038);if(_0x9e47e9)this['_setSuggestionRange'](_0x9e47e9,_0x1aac02);else{const _0x3c1b77=_0x1fa35e(),_0x5101fc=_0x591efe['id'];this['_setSuggestionData']({'id':_0x3c1b77,'type':'formatInline:'+_0x349e90,'data':_0x400ce6,'createdAt':new Date(),'authorId':_0x5101fc,'attributes':_0x250eb9}),this['_addSuggestionMarker']('formatInline:'+_0x349e90,_0x3c1b77,_0x5101fc,_0x1aac02);}}return null;}['markBlockFormat'](_0x306fd2,_0x304c42,_0x5d5b78=[],_0x22d8d9=null,_0x454740={}){_0x304c42['formatGroupId']||(_0x304c42['formatGroupId']=_0x304c42['commandName']),_0x304c42['multipleBlocks']=_0x306fd2['is']('range'),_0x22d8d9=_0x22d8d9||Gt(_0x304c42);const _0x200ee5=_0x5d5b78['map'](_0x2e9953=>Kt(_0x2e9953,this['_model'])),_0x1c663a=_0x306fd2['is']('range')?_0x306fd2:Kt(_0x306fd2,this['_model']);if('never'===this['_trackFormatChanges']){const _0x3108d6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x22d8d9,'accept');return this['forceDefaultExecution'](()=>_0x3108d6([_0x1c663a],_0x304c42,_0x454740)),null;}_0x200ee5['push'](_0x1c663a);let _0x28a4e8=!0x0;for(const _0x44a2d1 of _0x200ee5)if(!this['_rangeIsInLocalUserInsertion'](_0x44a2d1)){_0x28a4e8=!0x1;break;}if(_0x28a4e8&&'always'!==this['_trackFormatChanges']){const _0x48aea8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x22d8d9,'accept');return this['forceDefaultExecution'](()=>_0x48aea8([_0x1c663a],_0x304c42,_0x454740)),null;}let _0x49c038=null,_0x73c3d1=_0x1c663a['start'],_0x178528=_0x1c663a['end'];for(const {suggestion:_0x491654,meta:_0x46fb8f}of this['_findSuggestions'](_0x1c663a,'formatBlock')){if(!_0x46fb8f['isOwn'])continue;if(_0x46fb8f['isNextTo']||_0x46fb8f['containsRangeInObject']||_0x46fb8f['isInsideObject'])continue;if(_0x491654['data']['formatGroupId']!=_0x304c42['formatGroupId'])continue;if(!zt(_0x491654,_0x454740))continue;const _0x130491=_0x491654['getFirstRange']();if(_0x491654['subType']==_0x22d8d9){if(_0x130491['containsRange'](_0x1c663a,!0x0))return null;_0x73c3d1=_0x73c3d1['isBefore'](_0x130491['start'])?_0x73c3d1:_0x130491['start'],_0x178528=_0x178528['isAfter'](_0x130491['end'])?_0x178528:_0x130491['end'],_0x49c038?_0x130491['start']['isBefore'](_0x49c038['getFirstRange']()['start'])?(_0x49c038['removeMarkers'](),_0x49c038=_0x491654):_0x491654['removeMarkers']():_0x49c038=_0x491654;}else{const _0x4dd761=_0x1c663a['getIntersection'](_0x130491);this['_cutOutSuggestionMarker'](_0x491654,_0x4dd761);}}const _0x50fc39=this['editor']['plugins']['get']('Users')['me'],_0x59dce6=_0x1fa35e(),_0x49d65a=_0x50fc39['id'];if(_0x49c038)return this['_setSuggestionRange'](_0x49c038,this['_model']['createRange'](_0x73c3d1,_0x178528)),_0x49c038;{const _0x1a706c=this['_setSuggestionData']({'id':_0x59dce6,'type':'formatBlock:'+_0x22d8d9,'data':_0x304c42,'createdAt':new Date(),'authorId':_0x49d65a,'attributes':_0x454740});return this['_addSuggestionMarker']('formatBlock:'+_0x22d8d9,_0x59dce6,_0x49d65a,this['_model']['createRange'](_0x73c3d1,_0x178528)),_0x1a706c;}}['markMultiRangeBlockFormat'](_0x5543f5,_0x420e2f,_0x4c081a=[],_0x146f86=null,_0x1e8a12={}){_0x420e2f['formatGroupId']||(_0x420e2f['formatGroupId']=_0x420e2f['commandName']);const _0x51cc35=_0x5543f5[0x0];_0x420e2f['multipleBlocks']=_0x51cc35['is']('range'),_0x146f86=_0x146f86||Gt(_0x420e2f);const _0xdab30a=_0x4c081a['map'](_0x4450ac=>Kt(_0x4450ac,this['_model'])),_0x64b3b4=_0x51cc35['is']('range')?_0x5543f5:_0x5543f5['map'](_0x4ac45c=>Kt(_0x4ac45c,this['_model']));if('never'===this['_trackFormatChanges']){const _0x56a756=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x146f86,'accept');return this['forceDefaultExecution'](()=>_0x56a756(_0x64b3b4,_0x420e2f,_0x1e8a12)),null;}_0xdab30a['push'](..._0x64b3b4);let _0x4d41c3=!0x0;for(const _0x465b98 of _0xdab30a)if(!this['_rangeIsInLocalUserInsertion'](_0x465b98)){_0x4d41c3=!0x1;break;}if(_0x4d41c3&&'always'!==this['_trackFormatChanges']){const _0x5416ab=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x146f86,'accept');return this['forceDefaultExecution'](()=>_0x5416ab(_0x64b3b4,_0x420e2f,_0x1e8a12)),null;}const _0x9c31b2=this['editor']['plugins']['get']('Users')['me'];for(const _0x5a567c of this['getSuggestions']()){if(_0x5a567c['author']['id']!=_0x9c31b2['id'])continue;if('formatBlock'!=_0x5a567c['type']||_0x5a567c['data']['formatGroupId']!=_0x420e2f['formatGroupId'])continue;if(!zt(_0x5a567c,_0x1e8a12))continue;const _0x2534e1=_0x5a567c['subType']==_0x146f86;for(let _0x2470a1=0x0;_0x2470a1<_0x64b3b4['length'];_0x2470a1++){const _0x2825e7=_0x64b3b4[_0x2470a1];for(const _0x22aed5 of _0x5a567c['getMarkers']()){const _0x2250ac=_0x22aed5['getRange']();if(_0x2825e7['isEqual'](_0x2250ac)){_0x2534e1?(_0x64b3b4['splice'](_0x2470a1,0x1),_0x2470a1--):_0x5a567c['removeMarker'](_0x22aed5['name']);break;}}}}if(0x0==_0x64b3b4['length'])return null;const _0x29d30e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x146f86,'join');for(const _0x15a0df of this['getSuggestions']())if(_0x15a0df['author']['id']==_0x9c31b2['id']&&'formatBlock'==_0x15a0df['type']&&_0x15a0df['data']['formatGroupId']==_0x420e2f['formatGroupId']&&_0x15a0df['subType']==_0x146f86&&zt(_0x15a0df,_0x1e8a12)&&(_0x29d30e(_0x15a0df['getRanges'](),_0x64b3b4)||_0x29d30e(_0x64b3b4,_0x15a0df['getRanges']()))){for(const _0x51cd70 of _0x64b3b4)_0x15a0df['addRange'](_0x51cd70);return _0x15a0df;}const _0x473c00=_0x1fa35e(),_0x5ae9b3=_0x9c31b2['id'],_0x48ba56='formatBlock:'+_0x146f86,_0xdbf20f=this['_setSuggestionData']({'id':_0x473c00,'type':_0x48ba56,'data':_0x420e2f,'createdAt':new Date(),'authorId':_0x5ae9b3,'attributes':_0x1e8a12});for(const _0x42dbec of _0x64b3b4)this['_addSuggestionMarker'](_0x48ba56,_0x473c00,_0x5ae9b3,_0x42dbec,o['getMultiRangeId']());return _0xdbf20f;}['markDeletion'](_0x253b6b,_0x15dae5=null,_0x3bcdfd={}){if(_0x253b6b['isCollapsed'])return null;const _0x4e530c=this['editor']['plugins']['get']('Users')['me'],_0x4a9c9b=new _0x2d338c(_0x253b6b['start'],_0x253b6b['end']);for(const {suggestion:_0x242cf5,meta:_0x2dcea3}of this['_findSuggestions'](_0x4a9c9b,'insertion'))if(_0x2dcea3['isOwn']&&!_0x2dcea3['isNextTo']){if(_0x242cf5['isMultiRange']){const _0x3260bf=_0x242cf5['getRanges']()['filter'](_0xc8c395=>'$graveyard'!=_0xc8c395['root']['rootName']);_0x3260bf['every'](_0x2dcc91=>_0x4a9c9b['containsRange'](_0x2dcc91,!0x0))&&_0x242cf5['discard']();if(_0x3260bf['some'](_0x4052e9=>_0x4052e9['containsRange'](_0x4a9c9b,!0x0))){const _0xa9e294=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x15dae5,'accept');return this['forceDefaultExecution'](()=>_0xa9e294([_0x4a9c9b],null,_0x3bcdfd)),null;}}else{const _0x33091c=_0x4a9c9b['getIntersection'](_0x242cf5['getFirstRange']());null!==_0x33091c&&_0x242cf5['_onDiscard']([_0x33091c],null,_0x3bcdfd);}}if(_0x4a9c9b['detach'](),_0x4a9c9b['isCollapsed']||'$graveyard'==_0x4a9c9b['root']['rootName'])return null;let _0x50126d=null,_0x3b4656=_0x4a9c9b['start'],_0x2f094a=_0x4a9c9b['end'];const _0x31db85=this['_findSuggestions'](_0x4a9c9b,'deletion');for(const {suggestion:_0x2b7420,meta:_0x154696}of _0x31db85){const _0xa147ab=this['_model']['createRange'](_0x3b4656,_0x2f094a);if(_0x154696['isOwn']&&(this['_mergeNestedSuggestions']||!_0x154696['containsRangeInObject']&&!_0x154696['isInsideObject'])){if(_0x2b7420['isMultiRange']){if(!zt(_0x2b7420,_0x3bcdfd))continue;let _0x5d28ac=!0x0;for(const _0x3e25c8 of _0x2b7420['getRanges']()){if(_0x3e25c8['containsRange'](_0xa147ab,!0x0))return _0x2b7420;_0xa147ab['containsRange'](_0x3e25c8)||(_0x5d28ac=!0x1);}_0x5d28ac&&_0x2b7420['discard']();}else{const _0x12f44f=_0x2b7420['getFirstRange']();if(_0x12f44f['containsRange'](_0xa147ab,!0x0))return _0x2b7420;if(!zt(_0x2b7420,_0x3bcdfd)){_0xa147ab['containsRange'](_0x12f44f)?_0x2b7420['removeMarkers']():_0x12f44f['containsPosition'](_0x3b4656)?_0x3b4656=_0x12f44f['end']:_0x12f44f['containsPosition'](_0x2f094a)&&(_0x2f094a=_0x12f44f['start']);continue;}_0x3b4656=_0x3b4656['isBefore'](_0x12f44f['start'])?_0x3b4656:_0x12f44f['start'],_0x2f094a=_0x2f094a['isAfter'](_0x12f44f['end'])?_0x2f094a:_0x12f44f['end'],_0x3bcdfd=Object['assign']({},_0x2b7420['attributes']),_0x50126d?_0x12f44f['start']['isBefore'](_0x50126d['getFirstRange']()['start'])?(_0x50126d['removeMarkers'](),_0x50126d=_0x2b7420):_0x2b7420['removeMarkers']():_0x50126d=_0x2b7420;}}}if(_0x50126d)return this['_setSuggestionRange'](_0x50126d,this['_model']['createRange'](_0x3b4656,_0x2f094a)),_0x50126d;{const _0x159323=_0x1fa35e(),_0x4b5964=this['_model']['createRange'](_0x3b4656,_0x2f094a),_0x3c83c7=_0x4e530c['id'],_0x217afa=_0x15dae5?'deletion:'+_0x15dae5:'deletion',_0x46537d=this['_setSuggestionData']({'id':_0x159323,'type':_0x217afa,'createdAt':new Date(),'authorId':_0x3c83c7,'attributes':_0x3bcdfd});return this['_addSuggestionMarker'](_0x217afa,_0x159323,_0x3c83c7,_0x4b5964),_0x46537d;}}['markMultiRangeDeletion'](_0x149d58,_0x1f1294='multi',_0x2e1442={}){const _0x5069a8=this['editor']['plugins']['get']('Users')['me'],_0x4935ed=_0x149d58['map'](_0x44d38b=>new _0x2d338c(_0x44d38b['start'],_0x44d38b['end'])),_0xcf1228=new Set();for(const {suggestion:_0x23b0c8,meta:_0x43c814}of this['_findSuggestions'](_0x4935ed,'insertion'))_0x43c814['isOwn']&&!_0x43c814['isNextTo']&&_0xcf1228['add'](_0x23b0c8);for(const _0x23c1f2 of _0xcf1228)if(_0x23c1f2['isMultiRange']){const _0x44f69b=_0x23c1f2['getRanges']();(!_0x23c1f2['attributes']||!_0x23c1f2['attributes']['skipNestingCheck'])&&(_0x44f69b['every'](_0x5810aa=>_0x4935ed['some'](_0x524025=>_0x524025['containsRange'](_0x5810aa,!0x0)))&&_0x23c1f2['discard']());if(_0x4935ed['every'](_0x57bdc2=>_0x44f69b['some'](_0x4697b2=>_0x4697b2['containsRange'](_0x57bdc2,!0x0)))){const _0x48ecb=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1f1294,'accept');return this['forceDefaultExecution'](()=>_0x48ecb(_0x149d58,null,_0x2e1442)),null;}}else{const _0x39c024=_0x23c1f2['getFirstRange']();_0x4935ed['some'](_0x47c196=>_0x47c196['containsRange'](_0x39c024,!0x0))&&_0x23c1f2['discard']();if(_0x4935ed['every'](_0x3fe480=>_0x39c024['containsRange'](_0x3fe480,!0x0))){const _0x4a6c4e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1f1294,'accept');return this['forceDefaultExecution'](()=>_0x4a6c4e(_0x4935ed,null,_0x2e1442)),null;}}const _0x2b47b2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1f1294,'join');let _0x5a6081=null;for(const _0x5205b1 of this['getSuggestions']())if(_0x5205b1['author']['id']==_0x5069a8['id']&&_0x5205b1['isInContent']&&'deletion'==_0x5205b1['type']&&_0x5205b1['subType']==_0x1f1294&&zt(_0x5205b1,_0x2e1442)&&(_0x2b47b2(_0x5205b1['getRanges'](),_0x4935ed)||_0x2b47b2(_0x4935ed,_0x5205b1['getRanges']()))){if(_0x5a6081){if(_0x5205b1['commentThread']&&_0x5205b1['commentThread']['length'])continue;for(const _0x25dd30 of _0x5205b1['getRanges']())_0x5a6081['isIntersectingWithRange'](_0x25dd30)||_0x5a6081['addRange'](_0x25dd30);_0x5205b1['removeMarkers']();}else{_0x5a6081=_0x5205b1;for(const _0x375e2f of _0x4935ed)_0x5205b1['isIntersectingWithRange'](_0x375e2f)||_0x5205b1['addRange'](_0x375e2f);}}if(_0x5a6081)return _0x5a6081;_0xcf1228['clear']();for(const {suggestion:_0x3acbbc,meta:_0x33a8c4}of this['_findSuggestions'](_0x4935ed,'deletion'))_0x33a8c4['isOwn']&&(this['_mergeNestedSuggestions']||!_0x33a8c4['containsRangeInObject']&&!_0x33a8c4['isInsideObject'])&&zt(_0x3acbbc,_0x2e1442)&&_0xcf1228['add'](_0x3acbbc);for(const _0x4749bd of _0xcf1228){const _0x3cbd37=_0x4749bd['getRanges']();if(!_0x2e1442||!_0x2e1442['skipNestingCheck']){if(_0x4935ed['every'](_0x22b8c6=>_0x3cbd37['some'](_0x127059=>_0x127059['containsRange'](_0x22b8c6,!0x0))))return _0x4749bd;}(!_0x4749bd['attributes']||!_0x4749bd['attributes']['skipNestingCheck'])&&(_0x3cbd37['every'](_0x58c88b=>_0x4935ed['some'](_0x1f0f79=>_0x1f0f79['containsRange'](_0x58c88b,!0x0)))&&_0x4749bd['discard']());}const _0x33a1e8=_0x1fa35e(),_0x96dd65=_0x5069a8['id'],_0x343db3='deletion:'+_0x1f1294,_0x24e592=this['_setSuggestionData']({'id':_0x33a1e8,'type':_0x343db3,'createdAt':new Date(),'authorId':_0x96dd65,'attributes':_0x2e1442});for(const _0x4fd124 of _0x4935ed)_0x4fd124['detach'](),_0x4fd124['isCollapsed']||'$graveyard'==_0x4fd124['root']['rootName']||this['_addSuggestionMarker'](_0x343db3,_0x33a1e8,_0x96dd65,_0x4fd124,o['getMultiRangeId']());return _0x24e592;}['markAttributeChange'](_0x2a8f05,_0x600a0e,_0x20ff65,_0x3cd6e4,_0x5ca90b){if(_0x2a8f05['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x5d4827=this['editor']['plugins']['get']('Users')['me']['id'],_0x157a84=Array['from'](this['_suggestions']['values']())['filter'](_0x2b8eb6=>'attribute'==_0x2b8eb6['type']&&_0x2b8eb6['data']['key']==_0x600a0e&&_0x2b8eb6['isIntersectingWithRange'](_0x2a8f05));if('default'===this['_trackFormatChanges']){const _0x331b0f=this['_findSuggestions'](_0x2a8f05,'insertion')['filter'](({meta:_0x625f42})=>_0x625f42['isOwn']&&!_0x625f42['isInsideObject']&&!_0x625f42['isNextTo'])['map'](({suggestion:_0x2a412f})=>_0x2a412f);_0x157a84['unshift'](..._0x331b0f);}const _0x194448=new Map([[_0x2a8f05,_0x20ff65]]);for(const _0x264b5c of _0x157a84){const _0x4d05fe='attribute'==_0x264b5c['type']?_0x264b5c['data']['oldValue']:void 0x0,_0x574372=_0x264b5c['getFirstRange'](),_0x5bbe86=Array['from'](_0x194448['keys']())['find'](_0x774930=>_0x774930['isIntersecting'](_0x574372));if(!_0x5bbe86)continue;const _0x6bfedf=_0x5bbe86['getDifference'](_0x574372);this['_isBlockAttribute'](_0x600a0e)&&'insertion'==_0x264b5c['type']&&0x0!=_0x6bfedf['length']||(_0x194448['delete'](_0x5bbe86),_0x6bfedf['forEach'](_0x2d5fd3=>{_0x194448['set'](_0x2d5fd3,_0x20ff65);}),'insertion'!=_0x264b5c['type']&&_0x4d05fe!=_0x3cd6e4&&_0x194448['set'](_0x5bbe86['getIntersection'](_0x574372),_0x4d05fe));}const _0x4e58e9=[];for(const [_0x3a3d60,_0x3f1ac3]of _0x194448){const _0x6f79f8=_0x1fa35e(),_0x4e2659={'key':_0x600a0e,'oldValue':_0x3f1ac3,'newValue':_0x3cd6e4};_0x600a0e['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':_0x600a0e});const _0x3aecb5=('attribute:'+(_0x600a0e+'|'+Gt({'newValue':_0x3cd6e4})))['substring'](0x0,0x3c),_0xf7440f=this['_setSuggestionData']({'id':_0x6f79f8,'type':_0x3aecb5,'data':_0x4e2659,'createdAt':new Date(),'authorId':_0x5d4827,'attributes':_0x5ca90b});_0x4e58e9['push'](_0xf7440f),this['_addSuggestionMarker'](_0x3aecb5,_0x6f79f8,_0x5d4827,_0x3a3d60);}return _0x4e58e9;}['enableDefaultAttributesIntegration'](_0x2818c4){this['enableCommand'](_0x2818c4,(_0x5a41de,..._0x2f15db)=>{this['_recordAttributeChanges'](()=>{_0x5a41de(..._0x2f15db);});});}['registerBlockAttribute'](_0xf0e6cb){this['_blockAttributeKeys']['add'](_0xf0e6cb);}['registerInlineAttribute'](_0x4e23ca){this['_inlineAttributeKeys']['add'](_0x4e23ca);}['_getAttributeKey'](_0x425801){return'attribute'==_0x425801['type']?_0x425801['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x154b0f,_0x434330){const _0x1d8e1c=_0x154b0f['getFirstMarker']();this['_model']['change'](_0x1a26d3=>{_0x1a26d3['updateMarker'](_0x1d8e1c,{'range':_0x434330});});}['_addThreadToSuggestion'](_0x3c21d4){const _0x34ef58=_0x3c21d4['id'],_0x11c823=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x34ef58)||this['_commentsRepository']['addCommentThread']({'channelId':_0x11c823,'threadId':_0x34ef58,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x5bc619=this['_commentsRepository']['getCommentThread'](_0x34ef58);_0x5bc619['unbind']('isRemovable'),_0x5bc619['isRemovable']=!0x1,_0x3c21d4['commentThread']=_0x5bc619;}['_checkSuggestionCorrectness'](_0x573d76,_0x392bfe,_0xfcc4e6,_0x342e5f){if(_0x573d76['type']!=_0x392bfe||_0x573d76['subType']!=_0xfcc4e6||_0x573d76['creator']['id']!=_0x342e5f)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1f12e3('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x452901,_0x4ae841){const _0x264bab=_0x452901['getFirstRange']();if(_0x4ae841['isEqual'](_0x264bab))_0x452901['removeMarkers']();else{if(_0x264bab['containsRange'](_0x4ae841)){const _0x3994a9=this['_model']['createPositionAt'](_0x4ae841['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x452901,this['_model']['createRange'](_0x264bab['start'],_0x3994a9));const _0x4f7d70=_0x1fa35e(),_0x289741=_0x452901['creator']['id'],_0xaa201f=_0x452901['type']+':'+_0x452901['subType'];this['_setSuggestionData']({'id':_0x4f7d70,'type':_0xaa201f,'createdAt':new Date(),'authorId':_0x289741,'data':_0x452901['data'],'attributes':_0x452901['attributes']});const _0x2c4aa3=this['_model']['createPositionAt'](_0x4ae841['end']['parent'],'after'),_0x2ec02d=this['_model']['createRange'](_0x2c4aa3,_0x264bab['end']);this['_addSuggestionMarker'](_0xaa201f,_0x4f7d70,_0x289741,_0x2ec02d);}else{if(_0x264bab['containsPosition'](_0x4ae841['start'])){const _0x5b9a1b=this['_model']['createPositionAt'](_0x4ae841['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x452901,this['_model']['createRange'](_0x264bab['start'],_0x5b9a1b));}else{const _0x4a7322=this['_model']['createPositionAt'](_0x4ae841['end']['parent'],'after');this['_setSuggestionRange'](_0x452901,this['_model']['createRange'](_0x4a7322,_0x264bab['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x557122){for(const {suggestion:_0x3bf804,meta:_0x401c56}of this['_findSuggestions'](_0x557122,'insertion')){if(!_0x401c56['isOwn'])continue;const _0x5856a0=_0x3bf804['getRanges']();for(const _0x4040ec of _0x5856a0)if(!_0x557122['getDifference'](_0x4040ec)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3e3da8){const _0x310579=this['editor']['plugins']['get']('Users')['getUser'](_0x3e3da8);if(!_0x310579)throw new _0x1f12e3('track-changes-user-not-found',this);return _0x310579;}['_getExternalAuthor'](_0x3310d1){const _0x5f02ee=this['editor']['plugins']['get']('Users'),_0x29391e=_0x457c17('external:'+_0x3310d1),_0x29819b=_0x5f02ee['getUser'](_0x29391e);return _0x29819b||_0x5f02ee['addUser']({'id':_0x29391e,'name':_0x3310d1});}['_createSuggestion'](_0x4fb8da,_0x4a15b4,_0x47982d,_0x3661b5,_0x5ddfcc){const _0x14af4f=this['_getAuthorFromId'](_0x3661b5),_0x411973=this['_suggestionFactory']['buildSuggestion'](_0x4fb8da,_0x4a15b4,_0x47982d,_0x14af4f,_0x5ddfcc,_0x53c98b=>{this['_updateSuggestionData'](_0x47982d,{'attributes':_0x53c98b});const _0x569174=this['getSuggestion'](_0x47982d);this['_joinWithAdjacentSuggestions'](new Set([_0x569174])),this['_refreshSuggestionsChain'](new Set([_0x569174]));});return this['listenTo'](_0x411973,'accept',()=>{this['_updateSuggestionData'](_0x47982d,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x411973,'discard',()=>{this['_updateSuggestionData'](_0x47982d,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x47982d,_0x411973),this['_suggestionState']['set'](_0x411973,'notReady'),_0x411973;}['_splitMarkerName'](_0x45eded){const _0xf431ab=_0x45eded['split'](':');return{'group':_0xf431ab[0x0],'type':_0xf431ab[0x1],'subType':_0xf431ab['length']>=0x5?_0xf431ab[0x2]:null,'id':_0xf431ab['length']<0x5?_0xf431ab[0x2]:_0xf431ab[0x3],'authorId':_0xf431ab['length']<0x5?_0xf431ab[0x3]:_0xf431ab[0x4],'markerCount':0x6==_0xf431ab['length']?_0xf431ab[0x5]:null};}['_breakSuggestionMarker'](_0x268596,_0x764b5f,_0x165ab0){const _0x4e6a37=_0x268596['getFirstRange'](),_0x186818=_0x4e6a37['start'],_0x5029b7=_0x4e6a37['end'];this['_setSuggestionRange'](_0x268596,this['_model']['createRange'](_0x186818,_0x764b5f));const _0x951b2=_0x1fa35e(),_0x1936ce=_0x268596['creator']['id'],_0x4a4354=_0x268596['type']+(_0x268596['subType']?':'+_0x268596['subType']:'');this['_setSuggestionData']({'id':_0x951b2,'type':_0x4a4354,'createdAt':new Date(),'authorId':_0x1936ce,'originalSuggestionId':_0x268596['id'],'attributes':_0x268596['attributes'],'data':_0x268596['data']});const _0x562ede=this['_getAttributeKey'](_0x268596);('formatBlock'==_0x268596['type']||_0x562ede&&this['_isBlockAttribute'](_0x562ede))&&(_0x165ab0=this['_model']['createPositionBefore'](_0x165ab0['parent'])),this['_addSuggestionMarker'](_0x4a4354,_0x951b2,_0x1936ce,this['_model']['createRange'](_0x165ab0,_0x5029b7));}['_findSuggestions'](_0x5bea5d,_0x432ccc=null){const _0x15e131=[],_0x498976=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x5bea5d)||(_0x5bea5d=[_0x5bea5d]);for(const _0x40d92e of this['getSuggestions']()){if(!_0x40d92e['isInContent'])continue;if(_0x432ccc&&_0x40d92e['type']!=_0x432ccc)continue;let _0x365070=!0x1;for(const _0x49e159 of _0x40d92e['getRanges']()){for(const _0xa6d035 of _0x5bea5d){const _0x16bfab=_0xa6d035['start']['isEqual'](_0x49e159['end'])||_0xa6d035['end']['isEqual'](_0x49e159['start']);if(_0x16bfab||_0xa6d035['getIntersection'](_0x49e159)){const _0x12fbbb=_0xa6d035['containsRange'](_0x49e159)&&Vt(this['_model']['schema'],_0x49e159['start'],_0xa6d035),_0x14b0fd=_0x49e159['containsRange'](_0xa6d035)&&Vt(this['_model']['schema'],_0xa6d035['start'],_0x49e159);_0x15e131['push']({'suggestion':_0x40d92e,'meta':{'isOwn':_0x498976==_0x40d92e['author'],'isNextTo':_0x16bfab,'isInsideObject':_0x12fbbb,'containsRangeInObject':_0x14b0fd}}),_0x365070=!0x0;break;}}if(_0x365070)break;}}return _0x15e131;}['_addSuggestionMarker'](_0x236e48,_0x6846a3,_0x529662,_0x176672,_0x49cd4d){this['_model']['change'](_0x3fa36a=>{let _0x45ecf7='suggestion:'+_0x236e48+':'+_0x6846a3+':'+_0x529662;_0x49cd4d&&(_0x45ecf7=_0x45ecf7+':'+_0x49cd4d),_0x3fa36a['addMarker'](_0x45ecf7,{'range':_0x176672,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1b9254){const _0x391081=_0x1b9254['previous'],_0x1d417a=_0x1b9254['next'];_0x1b9254['previous']=null,_0x1b9254['next']=null,null!=_0x391081&&_0x391081['next']==_0x1b9254&&(_0x391081['next']=_0x1d417a),null!=_0x1d417a&&_0x1d417a['previous']==_0x1b9254&&(_0x1d417a['previous']=_0x391081),'ready'==this['_suggestionState']['get'](_0x1b9254)&&(this['_suggestionState']['set'](_0x1b9254,'removed'),this['fire']('suggestionUnloaded',_0x1b9254,_0x391081,_0x1d417a));}['_setSuggestionData'](_0x5ac0a5){const _0x5ca7bc=_0x5ac0a5['id'],_0x47887a=this['addSuggestionData'](_0x5ac0a5);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x3e4cfa=this['editor']['plugins']['get']('PendingActions'),_0x52ab49=_0x47887a['hasComments'],_0x112e9e=_0x47887a['subType']?_0x47887a['type']+':'+_0x47887a['subType']:_0x47887a['type'],_0x11ff59=this['editor']['locale'],_0x182309=_0x3e4cfa['add'](c(_0x11ff59,'PENDING_ACTION_SUGGESTION')),_0x208134={'id':_0x5ca7bc,'type':_0x112e9e,'hasComments':_0x52ab49,'data':_0x5ac0a5['data']||null,'originalSuggestionId':_0x5ac0a5['originalSuggestionId']||null,'attributes':_0x47887a['attributes']};this['_adapter']['addSuggestion'](_0x208134)['then'](_0x16ce87=>{_0x47887a['_saved']=!0x0,_0x3e4cfa['remove'](_0x182309),_0x16ce87&&_0x16ce87['createdAt']&&(this['_suggestions']['get'](_0x5ca7bc)['createdAt']=_0x16ce87['createdAt']);})['catch'](_0x3231d9=>{throw _0x96e42b('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x47887a['discard']();}),_0x47887a['stopListening'](),this['_suggestions']['delete'](_0x47887a['id']),this['_suggestionState']['delete'](_0x47887a),_0x3231d9;});}return _0x47887a;}['_isBlockAttribute'](_0x306436){return this['_blockAttributeKeys']['has'](_0x306436);}['_updateSuggestionData'](_0x3e9212,_0x32579e){const _0x3a5744=this['editor']['plugins']['get']('PendingActions'),_0x533933=this['getSuggestion'](_0x3e9212);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x533933['_saved']){const _0x548b69=_0x3a5744['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x3e9212,_0x32579e)['then'](()=>{_0x3a5744['remove'](_0x548b69);});}else _0x533933['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x3e9212,_0x32579e);});}}['_getSuggestionData'](_0x44aa20){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1f12e3('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x44aa20);}['_handleNewSuggestionMarker'](_0xfcd254){const {id:_0x2108c4,type:_0x3d4d38,subType:_0x289a80,authorId:_0x361d14}=this['_splitMarkerName'](_0xfcd254),_0xd067b3=this['_suggestions']['get'](_0x2108c4)||this['_createSuggestion'](_0x3d4d38,_0x289a80,_0x2108c4,_0x361d14,{});switch(this['_checkSuggestionCorrectness'](_0xd067b3,_0x3d4d38,_0x289a80,_0x361d14),this['_suggestionState']['get'](_0xd067b3)){case'notReady':this['_getSuggestionData'](_0x2108c4)['then'](_0x441707=>{let _0x2359ff=Promise['resolve']();_0x441707['hasComments']&&(_0x2359ff=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x2108c4})),_0x2359ff['then'](()=>{this['addSuggestionData'](_0x441707)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0xd067b3,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x2108c4,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0xd067b3,'ready'),this['fire']('suggestionLoaded',_0xd067b3);break;case'ready':this['fire']('suggestionChanged',_0xd067b3);}return _0xd067b3['addMarkerName'](_0xfcd254),_0xd067b3;}['_refreshSuggestionsChain'](_0x5326f5){const _0x4ab682=Array['from'](_0x5326f5),_0x2ac630=_0x4ab682['filter'](_0x5f0942=>'attribute'==_0x5f0942['type']);this['_refreshAttributeSuggestionsChain'](_0x2ac630);const _0x175557=_0x4ab682['filter'](_0x5bed60=>!_0x5bed60['isMultiRange']&&'attribute'!=_0x5bed60['type']),_0x3ae7b6=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x19ce30=>!_0x19ce30['isMultiRange']&&'attribute'!=_0x19ce30['type']),_0x37b6df=_0x3ae7b6['filter'](_0x3057e6=>!_0x5326f5['has'](_0x3057e6)),_0x1ab3c6=new Map(_0x3ae7b6['map'](_0x4fae1a=>[_0x4fae1a,this['_suggestionFactory']['getSuggestionCallback'](_0x4fae1a['type'],_0x4fae1a['subType'],'chain')])),_0xf20e6=new Map(_0x3ae7b6['map'](_0x38939a=>[_0x38939a,_0x38939a['getFirstRange']()])),_0x596a00=new Set(),_0x48bbe6=new Set();for(let _0x22fe23=0x0;_0x22fe23<_0x175557['length'];_0x22fe23++)_0x376dc0(_0x175557[_0x22fe23],_0x175557,_0x22fe23+0x1);for(let _0x3a53a0=0x0;_0x3a53a0<_0x175557['length'];_0x3a53a0++)_0x376dc0(_0x175557[_0x3a53a0],_0x37b6df,0x0);const _0x1f50e9=new Set();for(let _0x1df743=0x0;_0x1df743<_0x175557['length'];_0x1df743++){const _0x786502=_0x175557[_0x1df743];!_0x48bbe6['has'](_0x786502)&&_0x786502['previous']&&(_0x1f50e9['add'](_0x786502['previous']),_0x786502['previous']['next']===_0x786502&&(_0x786502['previous']['next']=null),_0x786502['previous']=null),!_0x596a00['has'](_0x786502)&&_0x786502['next']&&(_0x1f50e9['add'](_0x786502['next']),_0x786502['next']['previous']===_0x786502&&(_0x786502['next']['previous']=null),_0x786502['next']=null);}function _0x376dc0(_0x434503,_0x458020,_0x189100){for(let _0x350c1f=_0x189100;_0x350c1f<_0x458020['length'];_0x350c1f++){const _0x4032fd=_0xd2a5fb(_0x434503,_0x458020[_0x350c1f]);_0x4032fd&&(_0x4032fd[0x0]['next']=_0x4032fd[0x1],_0x4032fd[0x1]['previous']=_0x4032fd[0x0],_0x596a00['add'](_0x4032fd[0x0]),_0x48bbe6['add'](_0x4032fd[0x1]));}}function _0xd2a5fb(_0x33fd6c,_0x6077db){if(_0x33fd6c['author']['id']!==_0x6077db['author']['id'])return null;const _0x665215=_0x1ab3c6['get'](_0x33fd6c)(_0x33fd6c,_0x6077db,_0xf20e6['get'](_0x33fd6c),_0xf20e6['get'](_0x6077db));if(!_0x665215)return null;return _0x1ab3c6['get'](_0x6077db)(_0x33fd6c,_0x6077db,_0xf20e6['get'](_0x33fd6c),_0xf20e6['get'](_0x6077db))?_0x665215[0x1]['commentThread']&&_0x665215[0x1]['commentThread']['length']?null:_0x665215:null;}_0x1f50e9['size']&&this['_refreshSuggestionsChain'](_0x1f50e9);}['_refreshAttributeSuggestionsChain'](_0x5d8591){if(0x0==_0x5d8591['length'])return;const _0x5e7b76=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x53f2f5=>'attribute'==_0x53f2f5['type']&&_0x53f2f5['_isDataLoaded']),_0x3e817f=[],_0x218c80=new Map();for(const _0x390970 of _0x5e7b76){const _0x228768=_0x457c17(_0x390970['attributes']);_0x218c80['has'](_0x228768)||(_0x218c80['set'](_0x228768,_0x3e817f['length']),_0x3e817f['push']([]));const _0xf5c820=_0x218c80['get'](_0x228768);_0x3e817f[_0xf5c820]['push'](_0x390970);}!(function(){_0x3e817f['sort']((_0x2ed825,_0x108967)=>{const _0x2cc914=_0x2ed825[0x0]['createdAt'],_0x36f744=_0x108967[0x0]['createdAt'];return _0x2cc914==_0x36f744?_0x2ed825[0x0]['attributes']['groupId']<_0x108967[0x0]['attributes']['groupId']?-0x1:0x1:_0x2cc914<_0x36f744?-0x1:0x1;});for(const _0x2bc60f of _0x3e817f)_0x2bc60f['sort']((_0x463158,_0x4ce3e1)=>_0x463158['id']<_0x4ce3e1['id']?-0x1:0x1);}());for(let _0x535039=0x0;_0x535039<_0x3e817f['length'];_0x535039++){if(0x0==_0x3e817f[_0x535039]['length'])continue;const _0x570de6=[];for(let _0x5a05c2=_0x535039+0x1;_0x5a05c2<_0x3e817f['length'];_0x5a05c2++)0x0!=_0x3e817f[_0x5a05c2]['length']&&_0x401f55(_0x3e817f[_0x535039],_0x3e817f[_0x5a05c2])&&_0x570de6['push'](_0x5a05c2);for(const _0x2f26f3 of _0x570de6)_0x3e817f[_0x535039]=_0x3e817f[_0x535039]['concat'](_0x3e817f[_0x2f26f3]),_0x3e817f[_0x2f26f3]=[];}for(const _0x15b5cc of _0x3e817f)for(let _0x1fe6f1=0x0;_0x1fe6f1<_0x15b5cc['length'];_0x1fe6f1++){const _0x3fd9be=_0x15b5cc[_0x1fe6f1+0x1]||null;_0x15b5cc[_0x1fe6f1]['next']!==_0x3fd9be&&(_0x15b5cc[_0x1fe6f1]['next']=_0x3fd9be);}for(const _0x5e4212 of _0x3e817f)for(let _0x2d4d49=0x0;_0x2d4d49<_0x5e4212['length'];_0x2d4d49++){const _0x375734=_0x5e4212[_0x2d4d49-0x1]||null;_0x5e4212[_0x2d4d49]['previous']!==_0x375734&&(_0x5e4212[_0x2d4d49]['previous']=_0x375734);}function _0x401f55(_0x275c83,_0x4721bc){if(_0x275c83[0x0]['attributes']['groupId']!==_0x4721bc[0x0]['attributes']['groupId']&&_0x275c83[0x0]['author']!==_0x4721bc[0x0]['author'])return!0x1;if(!function(_0x4f6946,_0x4d4e62){if(!_0x4f6946['hasComments']&&!_0x4d4e62['hasComments'])return!0x0;if(_0x4f6946['hasComments']&&_0x4d4e62['hasComments'])return!0x1;if(_0x4f6946['hasComments']&&_0x4d4e62['createdAt']<_0x4f6946['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x4d4e62['hasComments']&&_0x4f6946['createdAt']<_0x4d4e62['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x275c83[0x0],_0x4721bc[0x0]))return!0x1;const _0x317c40=Et(_0x275c83[0x0]['attributes'],'groupId'),_0xe11200=Et(_0x4721bc[0x0]['attributes'],'groupId');if(!_0x4bd619(_0x317c40,_0xe11200))return!0x1;return!!_0x275c83['every'](_0x3a1a73=>_0x4721bc['some'](_0x55ee2d=>_0x3a1a73['getFirstRange']()['isEqual'](_0x55ee2d['getFirstRange']())))&&_0x4721bc['every'](_0x55fee1=>_0x275c83['some'](_0x4dc1c5=>_0x55fee1['getFirstRange']()['isEqual'](_0x4dc1c5['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4dae52){const _0xa996c9=Array['from'](_0x4dae52),_0x187c52=this['getSuggestions']({'skipNotAttached':!0x0}),_0x7f9dc3=_0x187c52['filter'](_0x29092d=>!_0x4dae52['has'](_0x29092d)),_0x176638=new Map(_0xa996c9['map'](_0x4c7ac7=>[_0x4c7ac7,this['_suggestionFactory']['getSuggestionCallback'](_0x4c7ac7['type'],_0x4c7ac7['subType'],'join')])),_0x376896=new Map(_0x187c52['map'](_0x163b0b=>[_0x163b0b,_0x163b0b['getRanges']()]));for(let _0x34c34f=0x0;_0x34c34f<_0xa996c9['length'];_0x34c34f++){if(_0x11cb6b(this,_0xa996c9[_0x34c34f],_0xa996c9,_0x34c34f+0x1))return!0x0;}for(let _0x11557c=0x0;_0x11557c<_0xa996c9['length'];_0x11557c++){if(_0x11cb6b(this,_0xa996c9[_0x11557c],_0x7f9dc3,0x0))return!0x0;}return!0x1;function _0x11cb6b(_0x320b08,_0x783bd6,_0x24b818,_0x379693){for(let _0x41fdb2=_0x379693;_0x41fdb2<_0x24b818['length'];_0x41fdb2++){const _0x86b2dc=_0x24b818[_0x41fdb2];if(_0x86b2dc['type']!==_0x783bd6['type']||_0x86b2dc['author']['id']!==_0x783bd6['author']['id']||_0x86b2dc['subType']!==_0x783bd6['subType'])continue;if(!qt(_0x783bd6,_0x86b2dc))continue;if('attribute'==_0x783bd6['type']&&_0x783bd6['data']['oldValue']!=_0x86b2dc['data']['oldValue'])continue;if('attribute'==_0x783bd6['type']&&_0x320b08['_isBlockAttribute'](_0x783bd6['data']['key']))continue;if('formatBlock'==_0x783bd6['type']){const _0x208d89=_0x320b08['editor']['model'],_0x20026f=_0x783bd6['getContainedElement']();if(_0x20026f&&(_0x208d89['schema']['isObject'](_0x20026f)||_0x208d89['schema']['isLimit'](_0x20026f)))continue;}const _0x21dd5f=_0x176638['get'](_0x783bd6),_0x1fa601=_0x376896['get'](_0x783bd6),_0x5ab59c=_0x376896['get'](_0x86b2dc),_0x5cbaff=_0x783bd6['commentThread']&&_0x783bd6['commentThread']['length'],_0x82ec92=_0x86b2dc['commentThread']&&_0x86b2dc['commentThread']['length'];if(!_0x5cbaff&&_0x21dd5f(_0x5ab59c,_0x1fa601))return _0x320b08['_joinSuggestions'](_0x86b2dc,_0x783bd6),_0x376896['delete'](_0x783bd6),!0x0;if(!_0x82ec92&&_0x21dd5f(_0x1fa601,_0x5ab59c))return _0x320b08['_joinSuggestions'](_0x783bd6,_0x86b2dc),_0x376896['delete'](_0x86b2dc),!0x0;}return!0x1;}}['_joinSuggestions'](_0x3498bf,_0x21c74f){if(_0x3498bf['isMultiRange']){for(const _0x5a610b of _0x21c74f['getRanges']())_0x3498bf['addRange'](_0x5a610b);}else{const _0x3533e1=_0x21c74f['getFirstRange']()['end'];this['_setSuggestionRange'](_0x3498bf,this['_model']['createRange'](_0x3498bf['getFirstRange']()['start'],_0x3533e1));}_0x21c74f['removeMarkers']();}['_getMarkerAnnouncementText'](_0xfd9525,_0x523f27,_0x4aa584){const _0x1f767b=_0xfd9525['startsWith']('format')||_0xfd9525['startsWith']('attribute')?'FORMATTING':_0xfd9525['toUpperCase']();return c(this['editor']['locale'],_0x523f27+'_'+_0x1f767b+'_SUGGESTION_ANNOUNCEMENT',_0x4aa584);}['_initAriaMarkerChangeAnnouncements'](){const _0x167d1b=this['editor'];if(!_0x167d1b['ui'])return;const {ariaLiveAnnouncer:_0x116029}=_0x167d1b['ui'];_0x5c0cbc(this['_model'],({left:_0x266c10,entered:_0x5275ad})=>{for(const _0x382f10 of _0x266c10){const {group:_0x1f41aa,type:_0x3dbbf8}=this['_splitMarkerName'](_0x382f10['name']);if('suggestion'===_0x1f41aa){_0x116029['announce'](this['_getMarkerAnnouncementText'](_0x3dbbf8,'LEAVE'));break;}}for(const _0x4c4cde of _0x5275ad){const {group:_0x215e34,type:_0x256138}=this['_splitMarkerName'](_0x4c4cde['name']);if('suggestion'===_0x215e34){_0x116029['announce'](this['_getMarkerAnnouncementText'](_0x256138,'ENTER',_0x2d64a7(_0x5738ef)));break;}}});}['_processAttributeChanges'](_0x1351a1){if(this['_recordAttributeSuggestions'])return!0x1;const _0xd5e2ed=this['editor'],_0x4fcaa7=_0xd5e2ed['model']['document']['differ']['getChanges']();if(0x0==_0x4fcaa7['length'])return!0x1;const _0x1d9154=[],_0x35848f=_0x4fcaa7['filter'](_0x31a3fe=>'attribute'==_0x31a3fe['type']),_0xe4e1e6=_0x4fcaa7['filter'](_0x637215=>'insert'==_0x637215['type']&&'$text'!=_0x637215['name']),_0x1abf11=_0x4fcaa7['filter'](_0x3da7ab=>'remove'==_0x3da7ab['type']&&'$text'!=_0x3da7ab['name']);for(const _0x1f0a68 of _0x35848f)_0x1d9154['push']({'key':_0x1f0a68['attributeKey'],'newValue':_0x1f0a68['attributeNewValue'],'oldValue':_0x1f0a68['attributeOldValue'],'range':Jt(_0x1f0a68['range'],_0xd5e2ed['model'])});for(const _0x355bc of _0xe4e1e6){const _0x2a1e13=_0x1abf11['find'](_0x508bf4=>_0x508bf4['position']['isEqual'](_0x355bc['position']));_0x2a1e13&&_0x1d9154['push']({'key':u,'newValue':_0x355bc['name'],'oldValue':_0x2a1e13['name'],'range':_0xd5e2ed['model']['createRangeOn'](_0x355bc['position']['nodeAfter'])});}return 0x0!=_0x1d9154['length']&&this['_reduceExistingSuggestions'](_0x1351a1,_0x1d9154);}['_processAttributeSuggestions'](_0xe5cf4d){let _0x5dfc04=!0x1;const _0x295588=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3b5623=>_0x3b5623['data']['newRange']&&_0x3b5623['name']['startsWith']('suggestion:attribute:'));for(const _0x222cb2 of _0x295588){const {subType:_0x52ad72,id:_0x2e18ec}=this['_splitMarkerName'](_0x222cb2['name']),_0x426f23=_0x52ad72['split']('|')[0x0];for(const _0x275b38 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x275b38['id']!=_0x2e18ec&&'attribute'==_0x275b38['type']&&_0x275b38['data']&&_0x275b38['data']['key']==_0x426f23&&_0x275b38['getFirstRange']()['isIntersecting'](_0x222cb2['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x275b38,_0x222cb2['data']['newRange'],_0xe5cf4d),_0x5dfc04=!0x0);}return _0x5dfc04;}['_recordAttributeChanges'](_0x34722c){this['_recordAttributeSuggestions']=!0x0,_0x34722c();}['_isRegisteredAttribute'](_0x3ce2a4){const _0x8802c2=this['_isBlockAttribute'](_0x3ce2a4),_0x151bd6=this['_inlineAttributeKeys']['has'](_0x3ce2a4);return _0x8802c2||_0x151bd6;}['_reduceExistingSuggestions'](_0x309190,_0x98d498){if(0x0==_0x98d498['length'])return!0x1;let _0x1864d9=!0x1;for(const _0x362d3c of _0x98d498){const _0x14c10a=this['_findSuggestions'](_0x362d3c['range'],'attribute')['filter'](_0x398474=>!_0x398474['meta']['isNextTo'])['map'](_0x2caab5=>_0x2caab5['suggestion']),_0x3d19ae=_0x457c17({'newValue':_0x362d3c['newValue']});_0x14c10a['filter'](_0xb50b7=>{const [_0x295991,_0x2bae94]=_0xb50b7['subType']['split']('|');return _0x295991==_0x362d3c['key']&&_0x2bae94!=_0x3d19ae;})['forEach'](_0x290043=>{this['_reduceSuggestionAttributeRange'](_0x290043,_0x362d3c['range'],_0x309190),_0x1864d9=!0x0;});}return _0x1864d9;}['_reduceSuggestionAttributeRange'](_0x1ebc6e,_0xc6e5ac,_0x4575f7){const _0x495f92=_0x1ebc6e['getFirstRange']()['getDifference'](_0xc6e5ac);0x0!==_0x495f92['length']?0x1!==_0x495f92['length']?this['_breakSuggestionMarker'](_0x1ebc6e,_0xc6e5ac['start'],_0xc6e5ac['end']):this['_setSuggestionRange'](_0x1ebc6e,_0x495f92[0x0]):_0x4575f7['removeMarker'](_0x1ebc6e['getFirstMarker']());}}class Ut{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x26253b){this['_editor']=_0x26253b,this['_model']=_0x26253b['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0xa718fd,_0x442d6b,_0xafad25,_0xf7083e,_0x2a386f,_0x4dc59f){return new o(this['_model'],{'type':_0xa718fd,'subType':_0x442d6b,'id':_0xafad25,'author':_0xf7083e,'creator':_0xf7083e,'attributes':_0x2a386f,'onAttributesChange':_0x4dc59f,'onAccept':(..._0x55df84)=>this['getSuggestionCallback'](_0xa718fd,_0x442d6b,'accept')(..._0x55df84),'onDiscard':(..._0x49064c)=>this['getSuggestionCallback'](_0xa718fd,_0x442d6b,'discard')(..._0x49064c)});}['registerCustomCallback'](_0x11a3c9,_0x40febd,_0x5c1b4f,_0x2d8ceb){const _0x17a409=_0x11a3c9+':'+_0x40febd+':'+_0x5c1b4f;this['_customCallbacks']['set'](_0x17a409,_0x2d8ceb);}['getSuggestionCallback'](_0x5cacb6,_0x13a885,_0x241b51){const _0x3d5f22=_0x5cacb6+':'+_0x13a885+':'+_0x241b51;return this['_customCallbacks']['get'](_0x3d5f22)||this['_defaultCallbacks']['get'](_0x5cacb6+':'+_0x241b51);}['_registerDefaultCallbacks'](){const _0x4ca411=()=>!0x1,_0x2f7fc2=_0x8d2f06=>{_0x8d2f06['sort']((_0x55a5ad,_0x457873)=>_0x55a5ad['start']['isBefore'](_0x457873['start'])?0x1:-0x1),this['_model']['change'](_0x1454d6=>{for(const _0x20ea72 of _0x8d2f06){let _0x152948;_0x152948=_0x20ea72['end']['isAtEnd']&&_0x20ea72['end']['parent']==_0x20ea72['start']['nodeAfter']?_0x1454d6['createSelection'](_0x20ea72['start']['nodeAfter'],'on'):_0x1454d6['createSelection'](_0x20ea72),this['_model']['deleteContent'](_0x152948,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x289d5c=(_0x17c423,_0x38b123)=>{_0x38b123&&this['_model']['change'](_0x1364c1=>{const {commandName:_0x49d6af,commandParams:_0x1f8c30=[]}=_0x38b123,_0x6c12ad=_0x17c423['map'](_0x517125=>(Ft(_0x517125)&&(_0x517125=this['_model']['createRange'](_0x517125['end'])),_0x517125))['filter'](_0x52e70b=>'$graveyard'!==_0x52e70b['root']['rootName']);if(_0x6c12ad['length']<0x1)return;const _0x263530=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3a59e0=>_0x2d338c['fromRange'](_0x3a59e0));_0x1364c1['setSelection'](_0x6c12ad);for(const _0x37d0a4 of this['_editor']['commands']['commands']())_0x37d0a4['refresh']();_0x1f8c30['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x49d6af,..._0x1f8c30);const _0x5981d1=_0x263530['filter'](_0x4e9aaa=>'$graveyard'!=_0x4e9aaa['root']['rootName']);_0x5981d1['length']>0x0&&_0x1364c1['setSelection'](_0x5981d1);for(const _0x1d65aa of _0x263530)_0x1d65aa['detach']();});},_0x1a7975=(_0x11bec1,_0x3391c4)=>0x1==_0x11bec1['length']&&0x1==_0x3391c4['length']&&_0x11bec1[0x0]['end']['isEqual'](_0x3391c4[0x0]['start']),_0x70a47=(_0xd02647,_0xee57c7,_0x52f2ec,_0x25fd35)=>Ht(_0xd02647,_0xee57c7,_0x52f2ec,_0x25fd35)?[_0xd02647,_0xee57c7]:Ht(_0xee57c7,_0xd02647,_0x25fd35,_0x52f2ec)?[_0xee57c7,_0xd02647]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4ca411),this['_defaultCallbacks']['set']('insertion:discard',_0x2f7fc2),this['_defaultCallbacks']['set']('insertion:join',_0x1a7975),this['_defaultCallbacks']['set']('insertion:chain',_0x70a47),this['_defaultCallbacks']['set']('deletion:accept',_0x2f7fc2),this['_defaultCallbacks']['set']('deletion:discard',_0x4ca411),this['_defaultCallbacks']['set']('deletion:join',_0x1a7975),this['_defaultCallbacks']['set']('deletion:chain',_0x70a47),this['_defaultCallbacks']['set']('formatInline:accept',_0x289d5c),this['_defaultCallbacks']['set']('formatInline:discard',_0x4ca411),this['_defaultCallbacks']['set']('formatInline:join',_0x1a7975),this['_defaultCallbacks']['set']('formatInline:chain',_0x4ca411),this['_defaultCallbacks']['set']('formatBlock:accept',_0x289d5c),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4ca411),this['_defaultCallbacks']['set']('formatBlock:join',_0x1a7975),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4ca411),this['_defaultCallbacks']['set']('attribute:accept',_0x4ca411),this['_defaultCallbacks']['set']('attribute:discard',(_0x9c050c,_0x22246c)=>{if(!_0x22246c)return;const _0x9b9aa2=this['_editor']['plugins']['get'](p);this['_model']['change'](_0xfaa4b1=>{if(_0x22246c['key']==u)for(const _0x2dce5c of _0x9c050c){const _0x138d9e=_0x2dce5c['start']['nodeAfter'],_0x2d0ce8=_0x22246c['oldValue'];_0xfaa4b1['rename'](_0x138d9e,_0x2d0ce8);}else{if(_0x9b9aa2['_isBlockAttribute'](_0x22246c['key'])){for(const _0x2db65d of _0x9c050c)void 0x0!==_0x22246c['oldValue']?_0xfaa4b1['setAttribute'](_0x22246c['key'],_0x22246c['oldValue'],_0x2db65d['start']['nodeAfter']):_0xfaa4b1['removeAttribute'](_0x22246c['key'],_0x2db65d['start']['nodeAfter']);}else{for(const _0x4801e9 of _0x9c050c)_0x22246c['oldValue']?_0xfaa4b1['setAttribute'](_0x22246c['key'],_0x22246c['oldValue'],_0x4801e9):_0xfaa4b1['removeAttribute'](_0x22246c['key'],_0x4801e9);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1a7975);}}function Vt(_0x669421,_0x3b07e4,_0x40f838){for(const _0x291f46 of _0x3b07e4['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x291f46['root']==_0x291f46)return!0x1;if(!_0x40f838['containsItem'](_0x291f46))return!0x1;if(_0x669421['isObject'](_0x291f46)||_0x669421['isLimit'](_0x291f46))return!0x0;}return!0x1;}function Ft(_0x5282f7){return _0x5282f7['end']['parent']==_0x5282f7['start']['nodeAfter']&&_0x5282f7['end']['isAtStart'];}function Pt(_0x6ab91d,_0x4bd2ba,_0x201cc9,_0x1c3a6a){const _0x2eb5be=_0x4be6a2=>!_0x4be6a2['item']['is']('$textProxy')&&!_0x1c3a6a['isObject'](_0x4be6a2['item']),_0x306022=_0x6ab91d['start']['getLastMatchingPosition'](_0x2eb5be),_0x5f5583=_0x6ab91d['end']['getLastMatchingPosition'](_0x2eb5be,{'direction':'backward'});return(!_0x6ab91d['start']['isEqual'](_0x306022)||!_0x6ab91d['end']['isEqual'](_0x5f5583))&&(_0x306022['isBefore'](_0x5f5583)?_0x201cc9['updateMarker'](_0x4bd2ba,{'range':_0x201cc9['createRange'](_0x306022,_0x5f5583)}):_0x201cc9['removeMarker'](_0x4bd2ba),!0x0);}function Gt(_0x242584){return _0x457c17(_0x242584);}function Lt(_0xbb1f93){const _0x1abc5d=_0xbb1f93['start']['nodeAfter'];return _0x1abc5d&&_0x1abc5d['is']('element');}function Jt(_0x23085e,_0x3cfdd8){return null==_0x23085e['end']['nodeBefore']&&_0x23085e['end']['parent']==_0x23085e['start']['nodeAfter']?Kt(_0x23085e['start']['nodeAfter'],_0x3cfdd8):_0x23085e;}function Kt(_0x48b460,_0x7e14e4){const _0x1080aa=_0x7e14e4['schema']['isObject'](_0x48b460)||_0x7e14e4['schema']['isSelectable'](_0x48b460);return _0x7e14e4['createRange'](_0x7e14e4['createPositionAt'](_0x48b460,'before'),_0x1080aa?_0x7e14e4['createPositionAfter'](_0x48b460):_0x7e14e4['createPositionAt'](_0x48b460,'end'));}function Ht(_0x45c4b8,_0x322502,_0x11124b,_0x4ee485){return!!qt(_0x45c4b8,_0x322502)&&_0x11124b['end']['isEqual'](_0x4ee485['start']);}function qt(_0x416889,_0x2dc2f5){if(!_0x416889['_isDataLoaded']||!_0x2dc2f5['_isDataLoaded'])return!0x1;const _0x323178=new Set(Object['keys'](_0x416889['attributes'])),_0x27c9e8=new Set(Object['keys'](_0x2dc2f5['attributes']));if(_0x323178['delete']('groupId'),_0x27c9e8['delete']('groupId'),0x0==_0x323178['size']&&0x0==_0x27c9e8['size'])return!0x0;if(_0x323178['size']!=_0x27c9e8['size'])return!0x1;const _0x87a0c7={..._0x416889['attributes']},_0x1279cf={..._0x2dc2f5['attributes']};return delete _0x87a0c7['groupId'],delete _0x1279cf['groupId'],JSON['stringify'](_0x87a0c7)==JSON['stringify'](_0x1279cf);}function zt(_0x4af336,_0x3e1bc4){const _0x5935e2=Wt(_0x4af336['attributes']),_0x316110=Wt(_0x3e1bc4);if(!_0x4af336['_isDataLoaded'])return!0x1;for(const _0x3619e1 of Object['keys'](_0x316110))if(!_0x4bd619(_0x5935e2[_0x3619e1],_0x316110[_0x3619e1]))return!0x1;return!0x0;}function Wt(_0x541604){const _0x469e1b=Object['assign']({},_0x541604);return delete _0x469e1b['skipNestingCheck'],delete _0x469e1b['tablePasteChainId'],_0x469e1b;}class pe extends/* #__PURE__ -- @preserve */
25
+ _0x381222(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x1a5c3c,_0x3b95bc,_0x2580e1,_0x5e5b92){super(),this['model']=_0x3b95bc,this['view']=_0x2580e1,this['commentThreadController']=_0x5e5b92,this['_editor']=_0x1a5c3c,this['_acceptCommand']=_0x1a5c3c['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x1a5c3c['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x411af1,_0xab69fc)=>_0x411af1||_0xab69fc),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4da114=>_0x4da114&&this['_editor']['model']['canEditAt'](_0x3b95bc['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4dcf0b=>_0x4dcf0b&&this['_editor']['model']['canEditAt'](_0x3b95bc['getRanges']())),this['_pendingAction']=null,_0x2580e1['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2580e1,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2580e1,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2580e1,'change:isDirty',()=>{_0x2580e1['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 _0x4aa92a=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4aa92a);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x54b9d4{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4f6368,_0x50ef53,_0x3001bf,_0x4d9f00){super(_0x4f6368),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x45442a(_0x4f6368,c(_0x4f6368,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x50ef53['authoredAt']),this['bind']('authoredAt')['to'](_0x50ef53),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',_0x50ef53,'authoredAt',this,'descriptionParts',(_0x3b34d1,_0x16460,_0x16c901)=>{const _0x8d3770=_0x16c901['map'](_0x20f470=>ls(_0x20f470['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x3b34d1-0x1,_0x50ef53['author']['name'],_0x16460?_0x4d9f00['formatDateTime'](_0x16460):'',new DOMParser()['parseFromString'](_0x8d3770,'text/html')['body']['textContent']]);}),this['focusables']=new _0x390f72(),this['focusTracker']=new _0x16f08d(),this['keystrokes']=new _0x167f33(),this['focusCycler']=new _0x47687c({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4566da=>_0x4566da['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x50ef53,this['_localUser']=_0x3001bf,this['_config']=_0x4d9f00,_0x4d9f00['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x2d81f9(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x37d2da}=this['_config'];this['commentsListView']=new _0x37d2da(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',_0x4715d0=>_0x4715d0+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x348e44,_0x2fca3c)=>_0x348e44||!!_0x2fca3c);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x4efc31}=this['_config'],_0x5a5b75=new _0x4efc31(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0xdf4167=_0x5a5b75['commentInputView'];return _0x5a5b75['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0xdf4167,'value',(_0x4c2af6,_0x15757a,_0x967a44)=>!!_0x967a44||_0x4c2af6&&!_0x15757a),_0xdf4167['on']('submit',(_0x5743fd,_0x42c44e)=>{this['fire']('addComment',_0x42c44e),_0xdf4167['editor']['setData']('');}),_0xdf4167['on']('cancel',()=>this['focus']()),_0xdf4167['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x5a5b75;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x455f95,_0x304eab,_0x2f205f,_0x4b13dd){super(_0x455f95,_0x304eab,_0x2f205f,_0x4b13dd),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x340482=>_0x340482&&_0x340482[0x0]?_0x340482[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x5af6f7,_0x52d858)=>{let _0x317148='';for(const _0x2bf533 of _0x5af6f7)_0x317148+='<p>'+ls(_0x2bf533['content'],_0x2bf533['color'])+'</p>';return _0x52d858?_0x317148:ti(_0x317148,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x4b13dd['SuggestionView'](_0x455f95,_0x304eab,{'formatDateTime':_0x4b13dd['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 _0x3d988a=this['bindTemplate'],_0x3e5f4c=[this['suggestionView']];return this['commentsListView']&&_0x3e5f4c['push'](this['commentsListView']),this['commentThreadInputView']&&_0x3e5f4c['push'](this['commentThreadInputView']),_0x3e5f4c['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x3d988a['if']('isActive','ck-suggestion-wrapper--active'),_0x3d988a['to']('type',_0x4249d5=>'ck-suggestion-'+_0x4249d5),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':_0x3d988a['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x3e5f4c};}['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 _0x54b9d4{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x1eef75,_0x1df8f1,_0x26a688){super(_0x1eef75),this['_model']=_0x1df8f1,this['_config']=_0x26a688,this['set']('description',''),this['bind']('authoredAt')['to'](_0x1df8f1),this['acceptButton']=this['_createButton'](c(_0x1eef75,'Accept\x20suggestion'),_0x7d9f7a,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x1eef75,'Discard\x20suggestion'),_0x44ad28,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x2661c0(_0x1eef75,_0x1df8f1['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x390f72([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x16f08d(),this['keystrokes']=new _0x167f33(),this['focusCycler']=new _0x47687c({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x42462b=>_0x42462b['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x139599=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x139599['innerHTML']=this['description'],this['on']('change:description',(_0x3d86ce,_0x1ad50b,_0xa9999b)=>{_0x139599['innerHTML']=_0xa9999b;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x448c69=this['bindTemplate'],_0x275075=[{'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':_0x448c69['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x448c69['to']('authoredAt',_0x296215=>this['_config']['formatDateTime'](_0x296215))}]}]},{'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']&&_0x275075['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':_0x275075}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x38ecfa,_0x28a84c,_0x523aac,_0x407900,_0x2e1e60){const _0x5819fa=new _0x3bf2f5(this['locale']);return _0x5819fa['set']({'label':_0x38ecfa,'icon':_0x28a84c,'tooltip':!0x0,'tooltipPosition':_0x2e1e60}),_0x5819fa['extendTemplate']({'attributes':{'class':_0x523aac}}),_0x5819fa['on']('execute',()=>{this['fire'](_0x407900,this['_model']['id']);}),_0x5819fa;}['_setupKeyboardNavigation'](){const _0x4556d3=this['element'];this['keystrokes']['listenTo'](_0x4556d3);for(const _0xb8108a of this['focusables'])this['focusTracker']['add'](_0xb8108a['element']),this['keystrokes']['listenTo'](_0xb8108a['element']);this['keystrokes']['set']('enter',(_0x2f752e,_0xbedb01)=>{_0x4556d3===_0x2f752e['target']&&(this['focusCycler']['focusFirst'](),_0xbedb01());}),this['keystrokes']['set']('esc',(_0x4fe6d1,_0x193d90)=>{_0x4556d3!==_0x4fe6d1['target']&&(this['focus'](),_0x193d90());});}}class d extends _0x260752{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0xaaa6db,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1e059c){super(_0x1e059c),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4706bd=this['editor']['config'];_0x4706bd['define']('trackChanges.SuggestionThreadView',fe),_0x4706bd['define']('trackChanges.SuggestionView',we),_0x4706bd['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4706bd['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x4af698,_0x45080a){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x17e0c7,_0x585892]of this['_handleControllerBuffer']){const _0x203ee0=this['_suggestionToController']['has'](_0x17e0c7);_0x203ee0||_0x585892?_0x203ee0&&_0x585892&&this['_destroyController'](_0x17e0c7):this['_initializeController'](_0x17e0c7);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4af698,_0x45080a);}['init'](){const _0x27b65a=this['editor'],_0x5aef63=_0x27b65a['plugins']['get']('TrackChangesEditing'),_0x8e3e46=_0x27b65a['plugins']['get']('Annotations'),_0x521b22=_0x27b65a['plugins']['get']('EditorAnnotations'),_0x574f27=_0x27b65a['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x521b22['addSourceCollector'](()=>{const _0x53d718=[];for(const [_0xf0f44d,_0x14a18c]of Array['from'](this['_suggestionToController'])){const _0x242676=_0xf0f44d['getAllAdjacentSuggestions'](),_0x21597e=[];for(const _0x22a66a of _0x242676){if(!_0x22a66a['isInContent'])continue;if(_0x22a66a['isMultiRange']){_0x21597e['push'](..._0x22a66a['getRanges']());continue;}const _0x333303=_0x22a66a['getFirstRange']();if(_0x21597e['length']>0x0){const _0x2ec28c=_0x21597e[0x0]['getJoined'](_0x333303);if(_0x2ec28c){_0x21597e[0x0]=_0x2ec28c;continue;}}_0x21597e['push'](_0x333303);}_0x53d718['push']([_0x14a18c['view'],_0x21597e]);}return _0x53d718;}),this['listenTo'](_0x5aef63,'suggestionLoaded',(_0x3e955b,_0x4c117d)=>{this['listenTo'](_0x4c117d,'change:previous',(_0x56a0ad,_0x4445d4,_0x9868c6,_0x27935a)=>{_0x4c117d['isInContent']&&(null==_0x9868c6?(this['_updateController'](_0x27935a['head']),this['_handleSuggestionControllerDelayed'](_0x4c117d,!0x1)):(this['_updateController'](_0x9868c6['head']),null==_0x27935a&&this['_handleSuggestionControllerDelayed'](_0x4c117d,!0x0)));}),null!==_0x4c117d['previous']?this['_updateController'](_0x4c117d['head']):this['_handleSuggestionControllerDelayed'](_0x4c117d,!0x1);}),this['listenTo'](_0x5aef63,'suggestionUnloaded',(_0x38bb9e,_0x3eeb0f,_0x40c3a6)=>{this['stopListening'](_0x3eeb0f,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3eeb0f),this['_suggestionToController']['has'](_0x3eeb0f)&&this['_destroyController'](_0x3eeb0f),_0x40c3a6&&this['_updateController'](_0x40c3a6['head']);}),this['listenTo'](_0x5aef63,'suggestionChanged',(_0x52eecd,_0x3b13)=>{this['_updateController'](_0x3b13);}),this['listenTo'](_0x8e3e46,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x574f27,'addComment',(_0xf04726,{threadId:_0x5e86a8,isFromAdapter:_0x118975})=>{if(_0x118975||!_0x5aef63['hasSuggestion'](_0x5e86a8))return;const _0x259284=_0x5aef63['getSuggestion'](_0x5e86a8);this['_suggestionToController']['get'](_0x259284)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1b79e2=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2f6c10;for(const _0x294f7f in _0x1b79e2){const _0x519c97=_0x294f7f,_0x2b097a=_0x1b79e2[_0x519c97];if('trackChangesLicenseKeyValid'==_0x2b097a||'trackChangesLicenseKeyInvalid'==_0x2b097a||'trackChangesLicenseKeyExpired'==_0x2b097a||'trackChangesLicenseKeyDomainLimit'==_0x2b097a||'trackChangesLicenseKeyNotAllowed'==_0x2b097a||'trackChangesLicenseKeyEvaluationLimit'==_0x2b097a||'trackChangesLicenseKeyTrialLimit'==_0x2b097a||'trackChangesLicenseKeyUsageLimit'==_0x2b097a){delete _0x1b79e2[_0x519c97],_0x2f6c10=_0x2b097a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x2f6c10&&_0x1b79e2['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x2f6c10&&_0x1b79e2['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x2f6c10&&_0x1b79e2['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x2f6c10&&_0x1b79e2['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x2f6c10&&_0x1b79e2['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x2f6c10&&_0x1b79e2['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x2f6c10&&_0x1b79e2['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x196f74=this['editor']['plugins']['get']('Annotations'),_0x46434a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4de50c=Array['from'](_0x196f74['activeAnnotations'],_0x298a0d=>_0x298a0d['innerView'])['filter'](_0x146977=>this['_viewToController']['has'](_0x146977)),_0x17f382=[];for(const _0x45e70e of _0x4de50c){const _0x97e645=this['_viewToController']['get'](_0x45e70e)['model']['getAllAdjacentSuggestions']();_0x17f382['push'](..._0x97e645['reduce']((_0x1bdc8e,_0x157f20)=>[..._0x1bdc8e,..._0x157f20['getMarkerNames']()],[]));}_0x46434a['activeMarkers']=_0x17f382;}['_addUIComponentsToFactory'](){const _0x38e551=this['editor'],_0x1a118d=_0x38e551['locale'],_0x2db27f=c(_0x1a118d,'Track\x20changes'),_0x1887ae=new _0x9b4b57([{'type':'switchbutton','model':new _0x45ea45({'withText':!0x0,'isToggleable':!0x0,'label':_0x2db27f,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x45ea45({'withText':!0x0,'label':c(_0x1a118d,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x45ea45({'withText':!0x0,'label':c(_0x1a118d,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x45ea45({'withText':!0x0,'label':c(_0x1a118d,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x45ea45({'withText':!0x0,'label':c(_0x1a118d,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x38e551['plugins']['has']('TrackChangesPreview')&&_0x1887ae['addMany']([{'type':'separator'},{'type':'button','model':new _0x45ea45({'withText':!0x0,'label':c(_0x1a118d,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x391be8 of _0x1887ae)if(ke(_0x391be8)){const _0x5d3755=_0x38e551['commands']['get'](_0x391be8['model']['commandName']);_0x391be8['model']['bind']('isOn','isEnabled')['to'](_0x5d3755,'value','isEnabled');}_0x38e551['ui']['componentFactory']['add']('trackChanges',_0x20600c=>this['_createToolbarButton'](_0x20600c,_0x1887ae,_0x2db27f)),_0x38e551['ui']['componentFactory']['add']('menuBar:trackChanges',_0x135f4f=>this['_createMenuBarMenu'](_0x135f4f,_0x1887ae,_0x2db27f));}['_createToolbarButton'](_0x26494a,_0x63f878,_0x2ea67b){const _0x1b8e80=_0x195612(_0x26494a,_0x5a6da0),_0x574bbd=this['editor']['commands']['get']('trackChanges');_0x1b8e80['buttonView']['set']({'tooltip':_0x2ea67b,'label':_0x2ea67b,'icon':_0x518109}),_0x1b8e80['buttonView']['bind']('isOn')['to'](_0x574bbd,'value'),_0x1b8e80['buttonView']['on']('execute',()=>{_0x574bbd['execute'](),this['editor']['editing']['view']['focus']();}),_0x448ce7(_0x1b8e80,_0x63f878,{'role':'menu'});const _0x11d810=[];for(const _0xa69a7f of _0x63f878)ke(_0xa69a7f)&&_0x11d810['push'](this['editor']['commands']['get'](_0xa69a7f['model']['commandName']));const _0x4193bc=_0x1b8e80['buttonView'];return _0x4193bc['actionView']['unbind']('isEnabled'),_0x4193bc['arrowView']['unbind']('isEnabled'),_0x4193bc['actionView']['bind']('isEnabled')['to'](_0x574bbd,'isEnabled'),_0x4193bc['arrowView']['bind']('isEnabled')['toMany'](_0x11d810,'isEnabled',(..._0x11d6af)=>_0x11d6af['some'](_0x5e65f9=>_0x5e65f9)),_0x1b8e80['on']('execute',_0x424215=>{this['editor']['execute'](_0x424215['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x1b8e80;}['_createMenuBarMenu'](_0x26bbd4,_0x2ce945,_0x1c1669){const _0x1577ac=new _0x2c3583(_0x26bbd4),_0x202fa9=this['editor']['commands']['get']('trackChanges');_0x1577ac['buttonView']['set']({'label':_0x1c1669,'icon':_0x518109});const _0x49a53f=new _0x1fc0ad(_0x26bbd4);for(const _0x36da66 of _0x2ce945){if('separator'==_0x36da66['type']){_0x49a53f['items']['add'](new _0x2c385c(_0x26bbd4));continue;}const _0x5d5629=new _0x5cdf65(_0x26bbd4,_0x1577ac),_0x50ec13=new _0xb462d7(_0x26bbd4),_0x1d28ec=_0x36da66['model'];_0x50ec13['bind'](...Object['keys'](_0x1d28ec))['to'](_0x1d28ec),_0x50ec13['delegate']('execute')['to'](_0x1577ac),_0x50ec13['on']('execute',()=>{this['editor']['execute'](_0x1d28ec['commandName']),this['editor']['editing']['view']['focus']();}),_0x5d5629['children']['add'](_0x50ec13),_0x49a53f['items']['add'](_0x5d5629);}return _0x1577ac['bind']('isEnabled')['to'](_0x202fa9,'isEnabled'),_0x1577ac['panelView']['children']['add'](_0x49a53f),_0x1577ac;}['_initializeController'](_0x3b17c0){const _0x336617=this['editor'],_0x24b072=_0x336617['config'],_0x53d0c1=_0x336617['plugins']['get']('Annotations'),_0x57f5da=_0x336617['plugins']['get']('CommentsRepository'),_0x5208df=_0x336617['plugins']['get']('EditorAnnotations'),_0x2a73a1=_0x336617['plugins']['get'](_0xaaa6db)['me'],_0x3ccea0=_0x24b072['get']('trackChanges')['SuggestionThreadView'],_0x56c292=_0x24b072['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x1537a1,CommentThreadInputView:_0x51eba0}=_0x336617['plugins']['get']('CommentsUI');let _0x12e2f4,_0xa714b3,_0x44ab7c;this['_annotationViews']['has'](_0x3b17c0['id'])?(_0xa714b3=this['_annotationViews']['get'](_0x3b17c0['id']),_0x12e2f4=_0xa714b3['mainView']):(_0x12e2f4=new _0x3ccea0(_0x336617['locale'],_0x3b17c0,_0x2a73a1,{'disableComments':this['_disableComments'],'editorConfig':{..._0x24b072['get']('comments.editorConfig'),'licenseKey':_0x24b072['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x24b072['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x24b072['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x24b072['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x123f08(_0x24b072['get']('locale')),'CommentView':_0x24b072['get']('comments')['CommentView'],'CommentsListView':_0x1537a1,'CommentThreadInputView':_0x51eba0,'SuggestionView':_0x56c292}),_0x12e2f4['suggestionView']['acceptButton']['on']('execute',()=>{_0x336617['editing']['view']['focus']();}),_0x12e2f4['suggestionView']['discardButton']['on']('execute',()=>{_0x336617['editing']['view']['focus']();}),_0xa714b3=_0x53d0c1['createAnnotationView'](this['editor']['locale'],_0x12e2f4),_0xa714b3['bind']('isDirty')['to'](_0x12e2f4,'isDirty'),_0xa714b3['bind']('length')['to'](_0x12e2f4),_0xa714b3['bind']('type')['to'](_0x12e2f4,'type',_0x434494=>'suggestion-'+_0x434494),_0x12e2f4['on']('escape',()=>{_0x44ab7c['fire']('escape');}),this['_annotationViews']['set'](_0x3b17c0['id'],_0xa714b3));const _0x52faa0=_0x57f5da['createCommentThreadController'](_0x3b17c0['commentThread'],_0x12e2f4),_0x4e9776=new pe(_0x336617,_0x3b17c0,_0x12e2f4,_0x52faa0),_0x23a5db=_0x3b17c0['getAllAdjacentSuggestions']()['filter'](_0x6f8c51=>_0x6f8c51['isInContent']);_0x12e2f4['descriptionParts']=_0x336617['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x23a5db),this['_suggestionToController']['set'](_0x3b17c0,_0x4e9776),this['_viewToController']['set'](_0x12e2f4,_0x4e9776),_0x44ab7c=_0x53d0c1['createAnnotation']({'view':_0xa714b3,'target':()=>{const _0x70816b=[],_0x48a64b=_0x3b17c0['getAllAdjacentSuggestions']()['filter'](_0x31c779=>_0x31c779['isInContent']);for(const _0x16e391 of _0x48a64b)_0x70816b['push'](..._0x16e391['getMarkers']());return _0x6cba3d(_0x336617['editing'],_0x70816b);},'type':()=>'suggestion-'+_0x4e9776['view']['type']}),_0x57f5da['_bindAnnotationToEditors'](_0x12e2f4,_0x44ab7c),_0x53d0c1['add'](_0x44ab7c),_0x5208df['registerAnnotation'](_0x44ab7c);}['_destroyController'](_0x5ade45){const _0x4c12c8=this['editor']['plugins']['get']('CommentsRepository'),_0x8ac148=this['editor']['plugins']['get']('Annotations'),_0x1cd787=this['_suggestionToController']['get'](_0x5ade45),_0x2145f4=_0x1cd787['view'],_0x5a640e=_0x8ac148['getByInnerView'](_0x2145f4);_0x4c12c8['_unbindEditors'](_0x2145f4),_0x5a640e&&_0x8ac148['remove'](_0x5a640e),this['_suggestionToController']['delete'](_0x5ade45),this['_viewToController']['delete'](_0x2145f4),_0x1cd787['destroy']();}['_updateController'](_0x429b6f){if(!_0x429b6f['isInContent']||!this['_suggestionToController']['has'](_0x429b6f))return;const _0x5f3dbe=this['editor']['plugins']['get']('TrackChangesEditing'),_0x45ce4b=this['_suggestionToController']['get'](_0x429b6f),_0x4ffe9e=_0x429b6f['getAllAdjacentSuggestions']();_0x45ce4b['view']['descriptionParts']=_0x5f3dbe['descriptionFactory']['getDescriptions'](_0x4ffe9e);}['destroy'](){for(const _0x56b9e0 of this['_suggestionToController']['keys']())this['_destroyController'](_0x56b9e0);for(const _0x24e077 of this['_annotationViews']['values']())_0x24e077['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x464299){return'model'in _0x464299;}class k extends _0x260752{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x345336){this['editor']['plugins']['get'](p)['adapter']=_0x345336;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x128ff7){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x128ff7);}['getSuggestions']({skipNotAttached:_0x31abb1=!0x1,toJSON:_0x2e3cc4=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x31abb1,'toJSON':_0x2e3cc4});}['getSuggestion'](_0x12cb51){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x12cb51);}}const w=['Pagination'];class T extends _0x260752{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x200751=this['editor'];if(_0x200751['config']['define']('trackChangesData.editorCreator',_0x2c4de4=>{const _0xa18858=_0x200751['model']['document']['getRootNames']()['reduce']((_0x5eb4f8,_0x13634c)=>(_0x5eb4f8[_0x13634c]='',_0x5eb4f8),{});return _0x200751['constructor']['create'](_0xa18858,_0x2c4de4);}),'function'!=typeof _0x200751['config']['get']('trackChangesData')['editorCreator'])throw new _0x1f12e3('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x397cb4){return N(this['editor'],!0x0,_0x397cb4);}['getDataWithDiscardedSuggestions'](_0xd0da7b){return N(this['editor'],!0x1,_0xd0da7b);}}class D extends _0x260752{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xa8cf77){function _0x1b72f0(_0x4f81d6){return _0x4f81d6['map'](_0x53e33d=>String['fromCharCode'](_0x53e33d))['join']('');}super(_0xa8cf77),this['result']='end',_0xa8cf77[_0x1b72f0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1b72f0([0x76,0x69,0x65,0x77])][_0x1b72f0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1b72f0([0x61,0x75,0x74,0x6f]),_0xa8cf77[_0x1b72f0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1b72f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1b72f0([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1b72f0([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1b72f0([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 Fe(_0x3a2841){return void 0x0!==_0x3a2841['getRootsAttributes'];}async function N(_0x58dbc2,_0x243722,_0x1c1504){const _0x17a82e=_0x28abfc(_0x58dbc2,w);_0x17a82e['plugins']['push'](p,D),_0x17a82e['rootsAttributes']=Fe(_0x58dbc2)?_0x58dbc2['getRootsAttributes']():void 0x0;const _0x128c6d=document['createDocumentFragment'](),_0x37232f=_0x58dbc2['config']['get']('trackChangesData')['editorCreator'],_0x17f6ec=await _0x37232f(_0x17a82e,()=>function(_0x390161){const _0x1739c8=document['createElement']('div');return _0x390161['appendChild'](_0x1739c8),_0x1739c8;}(_0x128c6d));!function(_0x1fcb6e,_0x53d2a1){const _0x26f822=_0x1fcb6e['model']['document']['getRootNames']()['reduce']((_0x477507,_0xe865f5)=>(_0x477507[_0xe865f5]=_0x1fcb6e['data']['get']({'rootName':_0xe865f5}),_0x477507),{}),_0x56b84d=_0x1fcb6e['plugins']['get']('Users')['users']['map'](_0x28a0ae=>({'id':_0x28a0ae['id'],'name':_0x28a0ae['name']})),_0x513274=_0x1fcb6e['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2248e9=_0x1fcb6e['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x308c5f=_0x53d2a1['plugins']['get']('Users'),_0x58e0ac=_0x53d2a1['plugins']['get']('TrackChangesEditing'),_0x679bf3=_0x53d2a1['plugins']['get']('CommentsRepository');for(const _0x3043d4 of _0x679bf3['getCommentThreads']())_0x3043d4['remove']();for(const _0x26e63e of _0x56b84d)_0x308c5f['getUser'](_0x26e63e['id'])||_0x308c5f['addUser'](_0x26e63e);_0x308c5f['me']||_0x308c5f['useAnonymousUser']();for(const _0x52f179 of _0x2248e9)_0x679bf3['addCommentThread'](_0x52f179);for(const _0x5c592f of _0x513274)_0x58e0ac['addSuggestionData'](_0x5c592f);_0x53d2a1['data']['set'](_0x26f822);}(_0x58dbc2,_0x17f6ec),_0x17f6ec['execute'](_0x243722?'acceptAllSuggestions':'discardAllSuggestions');const _0x115762=Fe(_0x17f6ec)?_0x17f6ec['getFullData'](_0x1c1504):_0x17f6ec['data']['get'](_0x1c1504);return await _0x17f6ec['destroy'](),_0x115762;}class Me extends _0x54b9d4{['options'];constructor(_0x336853,_0x5251c3){super(_0x336853),this['options']=_0x5251c3,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'](_0x2511b9,_0x2335d3){if(!this['element'])return;const _0x4451f4=[];for(const [_0x286fdf,_0x19df3b]of _0x2511b9){const _0x30a974=document['createElement']('div');_0x30a974['setAttribute']('data-ck-root-name',_0x286fdf),_0x30a974['className']=_0x19df3b['classes']+'\x20ck-track-changes-preview__root-container',_0x30a974['innerHTML']=_0x19df3b['content'],_0x4451f4['push'](_0x30a974);}_0x2335d3(this['element'],_0x4451f4),this['element']['style']['width']='',this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x1e4565{constructor(_0xb981f1){super(_0xb981f1),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x317215=this['editor'],_0x44a7a9=_0x317215['locale'],_0x593cb2=_0x317215['plugins']['get']('Dialog');let _0x487b75;const _0x5ed825=function(_0x330ed3){const _0x3a1aab={};if('editables'in _0x330ed3['ui']['view']){for(const [_0x52e93e,_0x482a0f]of Object['entries'](_0x330ed3['ui']['view']['editables']))_0x3a1aab[_0x52e93e]=_0x482a0f['element'];}else _0x3a1aab[_0x330ed3['model']['document']['getRootNames']()[0x0]]=_0x330ed3['ui']['view']['editable']['element'];return _0x3a1aab;}(_0x317215),_0x498549=function(_0x47b4b1){let _0xdef93=0x0;for(const _0x22e27d of Object['values'](_0x47b4b1))_0xdef93=Math['max'](_0xdef93,_0x22e27d['getBoundingClientRect']()['width']);let _0x196800=0x0;for(const _0x39bffc of Object['values'](_0x47b4b1))_0x196800+=_0x39bffc['getBoundingClientRect']()['height'];const _0x317d9a=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x22f172=Math['min'](_0x196800,_0x317d9a);return{'width':_0xdef93,'height':_0x22f172};}(_0x5ed825);_0x593cb2['show']({'id':'finalContentPreview','title':c(_0x44a7a9,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x44a7a9,{'dialogRects':_0x498549}),'onHide':()=>{_0x487b75['detachFromDom']();},'onShow':()=>{_0x317215['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x1c372f=>{const _0x3539f5=this['_standarizeRootsData'](_0x1c372f,_0x317215,_0x5ed825);_0x593cb2['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x3539f5,_0x317215['config']['get']('trackChanges.preview.renderFunction'));}),_0x487b75=new _0x5b5f58(_0x44a7a9,[_0x593cb2['view']]),_0x487b75['attachToDom'](),_0x487b75['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x317215['once']('destroy',()=>{_0x487b75['detachFromDom']();});const _0x3fc1f8=_0x593cb2['view']['headerView']['class'];_0x593cb2['view']['headerView']['class']=_0x3fc1f8?_0x3fc1f8+'\x20ck-reset_all':'ck-reset_all',_0x593cb2['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x593cb2['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x156ba5=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x1947a9=_0x156ba5['previewMode'],_0x383567={};if('$labels'===_0x1947a9){for(const _0x5272e8 of _0x156ba5['getMergeFieldsIds']())_0x383567[_0x5272e8]=_0x156ba5['getLabel'](_0x5272e8)||_0x5272e8;}else{const _0x2a2a7e='$defaultValues'===_0x1947a9?_0x156ba5['getDefaultValues']():_0x156ba5['getDataSetValues'](_0x1947a9,!0x0);for(const _0x29da06 of Object['entries'](_0x2a2a7e)){const [_0x3fb615,_0x45b710]=_0x29da06;_0x383567[_0x3fb615]=null!==_0x45b710?_0x45b710:_0x156ba5['getLabel'](_0x3fb615)||_0x3fb615;}}return{'mergeFieldsData':_0x383567};}['_standarizeRootsData'](_0x6743b0,_0x5df174,_0x1f4f20){let _0x142f4b;if('string'==typeof _0x6743b0){const _0x2cb1e8=_0x5df174['model']['document']['getRootNames']()[0x0];_0x142f4b={[_0x2cb1e8]:_0x6743b0};}else _0x142f4b=_0x6743b0;const _0x4d65d1=this['_fixMediaEmbeds'](_0x142f4b,_0x5df174),_0x47167e=function(_0x15c69f,_0x349fe3){for(const [_0x3d30ce,_0x3a927c]of _0x15c69f)_0x3a927c['classes']=_0x349fe3[_0x3d30ce]['classList']['value']['replace']('ck-focused','');return _0x15c69f;}(this['_sortRoots'](_0x5df174)['reduce']((_0x2ac075,_0xec8114)=>(_0x2ac075['push']([_0xec8114,{'content':_0x4d65d1[_0xec8114],'classes':''}]),_0x2ac075),[]),_0x1f4f20);return _0x47167e;}['_fixMediaEmbeds'](_0x9b1fa7,_0x2c82a4){if(!_0x2c82a4['plugins']['has']('MediaEmbedEditing'))return _0x9b1fa7;const _0x446de7=_0x2c82a4['plugins']['get']('MediaEmbedEditing');for(const [_0x59f425,_0x3eb8d4]of Object['entries'](_0x9b1fa7)){const _0x52f083=document['createElement']('div');_0x52f083['innerHTML']=_0x3eb8d4,(_0x52f083['querySelectorAll']('figure.media')['forEach'](_0x1fba48=>{const _0xe6d53f=_0x1fba48['querySelector']('oembed');if(_0xe6d53f){const _0x1b61ed=_0xe6d53f['getAttribute']('url');if(_0x1b61ed){const _0x1105bd=_0x446de7['registry']['getMediaViewElement'](new _0x2fc6a7(_0x2c82a4['editing']['view']['document']),_0x1b61ed,{'elementName':'','renderForEditingView':!0x0}),_0x335ccd=document['createElement']('div');_0x335ccd['classList']['add']('ck-media__wrapper'),_0x1105bd['render'](_0x335ccd,_0x2c82a4['editing']['view']['domConverter']),_0xe6d53f['replaceWith'](_0x335ccd);}}}),_0x9b1fa7[_0x59f425]=_0x52f083['innerHTML']);}return _0x9b1fa7;}['_sortRoots'](_0x11b5c6){if(!function(_0x2ce98b){return void 0x0!==_0x2ce98b['getRootsAttributes'];}(_0x11b5c6))return _0x11b5c6['model']['document']['getRootNames']();const _0x1dbd6c=[],_0x42357b=new Map();for(const _0x25da71 of _0x11b5c6['model']['document']['getRootNames']()){const _0x5e2ceb=_0x11b5c6['editing']['view']['getDomRoot'](_0x25da71)['getClientRects']()['item'](0x0);_0x1dbd6c['push'](_0x25da71),_0x42357b['set'](_0x25da71,_0x5e2ceb);}return _0x1dbd6c['sort']((_0x3cbc82,_0x3464c7)=>{const _0xa1d8e3=_0x42357b['get'](_0x3cbc82),_0x198362=_0x42357b['get'](_0x3464c7);return _0xa1d8e3['y']-_0x198362['y']||_0xa1d8e3['x']-_0x198362['x'];}),_0x1dbd6c;}}class te extends _0x260752{static get['requires'](){return[T,_0x721847];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x365bf3){super(_0x365bf3),_0x365bf3['commands']['add']('previewFinalContent',new re(this['editor'])),_0x365bf3['config']['define']('trackChanges.preview.renderFunction',(_0x58d367,_0x3d0476)=>{for(const _0x4710f4 of _0x3d0476)_0x58d367['appendChild'](_0x4710f4);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};