UNPKG

@ckeditor/ckeditor5-track-changes

Version:

CKEditor 5 track changes plugin.

24 lines • 315 kB
/* * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved. * * * * * +---------------------------------------------------------------------------------+ * | | * | Hello stranger! | * | | * | | * | What you're currently looking at is the source code of a legally protected, | * | proprietary software. Any attempts to deobfuscate / disassemble this code | * | are forbidden and will result in legal consequences. | * | | * | | * +---------------------------------------------------------------------------------+ * * * * */ import{Command as _0x365dcb,Plugin as _0x335eea,PendingActions as _0x15c3f6}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0xa9e684,ObservableMixin as _0x359f19,uid as _0x2984a9,priorities as _0x87215e,insertToPriorityArray as _0x4d2280,logWarning as _0x1bcc90,getEnvKeystrokeText as _0x56feb8,FocusTracker as _0x2c671a,KeystrokeHandler as _0x1ec55a,Collection as _0x403b70}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0xcf9134,IconCancel as _0x235398,IconTrackChanges as _0x405e12}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x43d8b1,View as _0x327a4b,ViewCollection as _0x102385,FocusCycler as _0x3797ab,UIModel as _0x5af72d,createDropdown as _0x2f3c70,SplitButtonView as _0x5c4fdb,addListToDropdown as _0x19681d,MenuBarMenuView as _0xc798ff,MenuBarMenuListView as _0x5adf04,ListSeparatorView as _0x35b880,MenuBarMenuListItemView as _0x534b3f,MenuBarMenuListItemButtonView as _0x77bc2c,BodyCollection as _0x3b289b,Dialog as _0x1ec381}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x122a13,DocumentCompare as _0x5aa49f,hashObject as _0x189e00,surroundingMarkersDetector as _0x2646aa,FOCUS_ANNOTATION_KEYSTROKE as _0x258924,AriaDescriptionView as _0x2fd797,setupThreadKeyboardNavigation as _0x3db1d5,trimHtml as _0x42d5bc,UserView as _0x1e06c0,LateFocusButtonView as _0x52b767,getDateTimeFormatter as _0x304ae6,getAllMarkersDomElementsSorted as _0x587c2c,sanitizeEditorConfig as _0x57c44e}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x53db30,ModelLiveRange as _0x1b3589,ModelLivePosition as _0x31dbe3,ViewDowncastWriter as _0x5094e0}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as _0x4bfaa3,set as _0x4dc910,isEqual as _0x4a8fc6,unset as _0x2a8a83,omit as Pt}from'es-toolkit/compat';import{Delete as _0x2757e7,Input as _0x4c9901}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x348567}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x1237ac}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{SuggestionsConversion as Jt,fixElementSuggestionRange as Lt,splitSuggestionMarkerName as Gt}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';class $ extends _0x365dcb{['_enabledCommands'];constructor(_0x2bee50,_0x346772){super(_0x2bee50),this['_enabledCommands']=_0x346772,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 _0xcb49d4 of this['editor']['commands']['commands']())_0xcb49d4['affectsData']&&!this['_enabledCommands']['has'](_0xcb49d4)&&_0xcb49d4['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0xa079ad of this['editor']['commands']['commands']())_0xa079ad['affectsData']&&!this['_enabledCommands']['has'](_0xa079ad)&&_0xa079ad['clearForceDisabled']('TrackChangesCommand');}}class v extends _0x365dcb{['_suggestions'];constructor(_0x2a7282,_0x39a92a){super(_0x2a7282),this['_suggestions']=_0x39a92a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x242bf8){const _0x3f0e05=this['_suggestions']['get'](_0x242bf8);if(!_0x3f0e05)throw new _0xa9e684('track-changes-accept-suggestion-not-found',this);const _0x196455=_0x3f0e05['getRanges']();this['editor']['model']['canEditAt'](_0x196455)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x3f0e05);}}class D extends _0x365dcb{['_suggestions'];constructor(_0x43e44a,_0x36b832){super(_0x43e44a),this['_suggestions']=_0x36b832,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x526bbe){const _0x5d01ee=this['_suggestions']['get'](_0x526bbe);if(!_0x5d01ee)throw new _0xa9e684('track-changes-discard-suggestion-not-found',this);const _0x4027b8=_0x5d01ee['getRanges']();this['editor']['model']['canEditAt'](_0x4027b8)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x5d01ee);}}function ls(_0xfe3458,_0x12f33f){let _0x2c004c='';return _0x2c004c+=_0xfe3458['split']('*')['map']((_0xd0911e,_0x2aed9e)=>_0x2aed9e%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+rn(_0xd0911e)+'</span>':rn(_0xd0911e))['join'](''),_0x12f33f&&(_0x2c004c+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x12f33f['value']+'\x22\x20title=\x22'+_0x12f33f['title']+'\x22></span>'),_0x2c004c;}function rn(_0x547aae){const _0xb226fe=document['createElement']('span');return _0xb226fe['innerText']=_0x547aae,_0xb226fe['innerHTML'];}function ts(_0x3ae26a){return _0x3ae26a['sort']((_0x17946f,_0x5da0b0)=>'attribute'===_0x17946f['type']&&'attribute'!==_0x5da0b0['type']?-0x1:'attribute'!==_0x17946f['type']&&'attribute'===_0x5da0b0['type']?0x1:'deletion'==_0x17946f['type']&&'deletion'!=_0x5da0b0['type']?-0x1:'deletion'!=_0x17946f['type']&&'deletion'==_0x5da0b0['type']?0x1:0x0);}function to(_0x5aea74,_0x35f0c6){let _0x1ecd48,_0x5b810a=0x0;const _0x45c7c3=[],_0x43fc77=_0x35f0c6['schema'];for(;_0x5b810a<_0x5aea74['length'];){const _0x505e4f=_0x5aea74[_0x5b810a],_0x13a5c0=_0x5aea74[_0x5b810a+0x1];_0x1ecd48||(_0x1ecd48=_0x35f0c6['createPositionBefore'](_0x505e4f)),cn(_0x35f0c6,_0x505e4f,_0x13a5c0)||(_0x45c7c3['push'](_0x35f0c6['createRange'](_0x1ecd48,_0x43fc77['isObject'](_0x505e4f)?_0x35f0c6['createPositionAfter'](_0x505e4f):_0x35f0c6['createPositionAt'](_0x505e4f,'end'))),_0x1ecd48=null),_0x5b810a++;}return _0x45c7c3;}function cn(_0x428b4d,_0x13f7b3,_0x352c07){if(!_0x352c07)return!0x1;const _0xc2821=_0x428b4d['createPositionAfter'](_0x13f7b3),_0xe06ad8=_0x428b4d['createPositionBefore'](_0x352c07);return _0xc2821['isTouching'](_0xe06ad8);}function rs(_0x54bd64,_0x1ac99d,_0x3cf779){for(;_0x3cf779['length'];){const _0x48f6da=_0x3cf779['splice'](0x0,0x64);_0x54bd64['change'](()=>{for(const _0x143557 of _0x48f6da)_0x143557['isInContent']&&_0x1ac99d['execute'](_0x143557['id']);});}}class B extends _0x365dcb{['_command'];['_suggestions'];constructor(_0x30bea7,_0x260704,_0x19844a){super(_0x30bea7),this['_command']=_0x260704,this['_suggestions']=_0x19844a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x52f8b9=Array['from'](this['_suggestions']['values']())['some'](_0x1bdf49=>_0x1bdf49['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x52f8b9;}['execute'](){const _0xeca487=ts(Array['from'](this['_suggestions']['values']()));for(const _0x38669f of _0xeca487){const _0x299825=_0x38669f['getRanges']();if(!this['editor']['model']['canEditAt'](_0x299825))return;}rs(this['editor']['model'],this['_command'],_0xeca487);}}class O extends _0x365dcb{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x475c93,_0x442e88,_0x3cdb0d){super(_0x475c93),this['_command']=_0x442e88,this['_suggestions']=_0x3cdb0d,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xdf8dfd=this['editor']['model']['document']['selection'],_0x39fecd=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x3a8f47,_0x4c8bea){const _0x35712f=Array['from'](_0x3a8f47['getRanges']()),_0x42f02b=new Set();for(const _0xb49d1c of _0x4c8bea)if(_0xb49d1c['isInContent']){for(const _0x25f80e of _0x35712f)for(const _0x4391ec of _0xb49d1c['getRanges']())(_0x25f80e['isIntersecting'](_0x4391ec)||_0x3a8f47['isCollapsed']&&!_0xb49d1c['isMultiRange']&&_0xb49d1c['next']&&_0x4391ec['end']['isTouching'](_0x25f80e['start']))&&_0x42f02b['add'](_0xb49d1c);}return _0x42f02b;}(_0xdf8dfd,_0x39fecd),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x5aca94=ts(Array['from'](this['_selectedSuggestions']));for(const _0x42aed1 of _0x5aca94){const _0x11611f=_0x42aed1['getRanges']();if(!this['editor']['model']['canEditAt'](_0x11611f))return;}rs(this['editor']['model'],this['_command'],_0x5aca94);}}class x extends/* #__PURE__ -- @preserve */ _0x359f19(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x453384,_0xd24f79){super(),this['id']=_0xd24f79['id'],this['type']=_0xd24f79['type'],this['subType']=_0xd24f79['subType']||null,this['author']=_0xd24f79['author'],this['creator']=_0xd24f79['creator']||_0xd24f79['author'],this['isExternal']=Boolean(_0xd24f79['attributes']&&_0xd24f79['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0xd24f79['originalSuggestionId']||null,this['_model']=_0x453384,this['_onAccept']=_0xd24f79['onAccept'],this['_onDiscard']=_0xd24f79['onDiscard'],this['_onAttributesChange']=_0xd24f79['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0xd24f79['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 _0x38ae78=this;for(;_0x38ae78['previous'];)_0x38ae78=_0x38ae78['previous'];return _0x38ae78;}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'](_0x5b4130){this['_markerNames']['add'](_0x5b4130);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x4ed9cf=>this['_model']['markers']['get'](_0x4ed9cf))['filter'](_0x53eebd=>_0x53eebd);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x41d1d4=>{for(const _0x558248 of this['getMarkers']())_0x41d1d4['removeMarker'](_0x558248);}),this['_markerNames']['clear']();}['removeMarker'](_0x41508e){this['_model']['change'](_0x5b6de1=>{_0x5b6de1['removeMarker'](_0x41508e);}),this['_markerNames']['delete'](_0x41508e);}['addRange'](_0x48fd7d){const _0x50b72d='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+x['getMultiRangeId']();this['addMarkerName'](_0x50b72d),this['_model']['change'](_0x2f112c=>{_0x2f112c['addMarker'](_0x50b72d,{'range':_0x48fd7d,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1362b0){for(const _0x21e000 of this['getRanges']())if(_0x21e000['isIntersecting'](_0x1362b0))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x223c49=>_0x223c49['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x274184,_0x61b8f2)=>[..._0x274184,..._0x61b8f2['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0xc4d39b=this['getRanges']();if(0x1!=_0xc4d39b['length'])return null;const _0x1c975b=_0xc4d39b[0x0],_0x2a93e6=_0x1c975b['start']['nodeAfter'],_0x59b11c=_0x1c975b['end']['nodeBefore'];return _0x2a93e6 instanceof _0x53db30?_0x2a93e6!=_0x59b11c?null:_0x2a93e6: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 _0x34c1de=[];let _0x496611=this['head'];for(;_0x496611;)_0x34c1de['push'](_0x496611),_0x496611=_0x496611['next'];return _0x34c1de;}['setAttribute'](_0x38263c,_0xf9e6c5){const _0x47388d=_0x4bfaa3(this['attributes']);_0x4dc910(_0x47388d,_0x38263c,_0xf9e6c5),_0x4a8fc6(_0x47388d,this['attributes'])||(this['attributes']=_0x47388d,this['_onAttributesChange'](_0x47388d));}['removeAttribute'](_0x4a7b14){const _0x5cbd92=_0x4bfaa3(this['attributes']);_0x2a8a83(_0x5cbd92,_0x4a7b14),_0x4a8fc6(_0x5cbd92,this['attributes'])||(this['attributes']=_0x5cbd92,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 _0x2984a9()['substr'](0x1,0x5);}}function o(_0x3d022b,_0x2d23a6,_0x41652b){const _0x1f3dd5=_0x3d022b['t'],t=_0x3d022b['t'];switch(_0x2d23a6){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',_0x41652b);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x41652b);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x41652b);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x41652b);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x41652b);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',_0x41652b);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x41652b);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',_0x41652b);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x41652b);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x41652b);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x41652b);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x41652b);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x41652b);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x41652b);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x41652b);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x41652b);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x41652b);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x41652b);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x41652b);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x41652b);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x41652b);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x41652b);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x41652b);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x41652b);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x41652b);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'},_0x41652b);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x41652b);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x41652b);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x41652b);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x41652b);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x41652b);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x41652b);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x41652b);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'},_0x41652b);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x41652b);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x41652b);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x41652b);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x41652b);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'},_0x41652b);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x41652b);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'},_0x41652b);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x41652b);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x41652b);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'},_0x41652b);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x41652b);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'},_0x41652b);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x41652b);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x41652b);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x41652b);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x41652b);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x41652b);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'},_0x41652b);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x41652b);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 _0x1f3dd5({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x41652b);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x1f3dd5({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x41652b);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x41652b);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'},_0x41652b);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'},_0x41652b);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'},_0x41652b);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x2d23a6;}}class M{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x142dd0,_0x31c6ac){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x142dd0,this['_locale']=_0x31c6ac;}['getDescriptions'](_0x2335c0){const _0xb69334=[],_0x10dda2=new Set(),_0x114102=new Set();for(let _0x25b73c=0x0;_0x25b73c<_0x2335c0['length'];_0x25b73c++){const _0x3b70ab=_0x2335c0[_0x25b73c];if(!_0x3b70ab['isInContent'])continue;const _0x2c696c=this['_handleCustomCallbackDescription'](_0x3b70ab);if(_0x2c696c){if(null!=_0x3b70ab['subType']){if(_0x10dda2['has'](_0x3b70ab['subType']))continue;_0x10dda2['add'](_0x3b70ab['subType']);}_0xb69334['push'](_0x2c696c);}else{if('attribute'==_0x3b70ab['type']){const _0x2ad78f=_0x3b70ab['data']['key'];if(_0x114102['has'](_0x2ad78f))continue;_0x114102['add'](_0x3b70ab['data']['key']),_0x2ad78f==m?this['_handleRenameSuggestionDescription'](_0xb69334,_0x3b70ab):this['_handleAttributeSuggestionDescription'](_0xb69334,_0x3b70ab);continue;}'insertion'!=_0x3b70ab['type']&&'deletion'!=_0x3b70ab['type']||this['_handleInsertRemoveSuggestionDescription'](_0xb69334,_0x3b70ab,_0x2335c0[_0x25b73c+0x1]);}}return this['_resolveDescriptionItems'](_0xb69334);}['registerDescriptionCallback'](_0x1f3995){this['_customCallbacks']['push'](_0x1f3995);}['registerElementLabel'](_0x19b5d3,_0x5e02be,_0x3dd5aa=_0x87215e['normal']){'function'==typeof _0x19b5d3?_0x4d2280(this['_itemLabelsCallbacks'],{'matchingCallback':_0x19b5d3,'label':_0x5e02be,'priority':_0x3dd5aa}):this['_itemLabels']['set'](_0x19b5d3,_0x5e02be);}['registerAttributeLabel'](_0x24f888,_0x5d04f6){this['_attributeLabels']['set'](_0x24f888,_0x5d04f6);}['getItemLabel'](_0x37962e,_0x382b5c=0x1){let _0x4f2723;for(const _0x2b7682 of this['_itemLabelsCallbacks'])if(_0x2b7682['matchingCallback'](_0x37962e)){_0x4f2723=_0x2b7682['label'];break;}return _0x4f2723||(_0x4f2723=this['_itemLabels']['get'](_0x37962e['name'])),_0x4f2723?_0x4f2723(_0x382b5c):0x1!==_0x382b5c?_0x382b5c+'\x20'+_0x37962e['name']+'s':''+_0x37962e['name'];}['_addDescriptionItems'](_0x3f4985,_0xf69ae){const _0x3975c7=_0xf69ae['getFirstRange']()['getWalker'](),_0xb55aa0='insertion'==_0xf69ae['type']?'add':'remove';for(const _0x3a0603 of _0x3975c7){const _0x2270f5=_0x3a0603['item'],_0x17a008=_0x3f4985[_0x3f4985['length']-0x1];if(_0x2270f5['is']('$textProxy'))_0x17a008&&_0x17a008['type']['indexOf']('Container')>-0x1&&_0x3f4985['pop'](),_0x17a008&&'text'==_0x17a008['type']?_0x17a008[_0xb55aa0]+=_0x2270f5['data']:_0x3f4985['push']({'type':'text','add':'add'==_0xb55aa0?_0x2270f5['data']:'','remove':'remove'==_0xb55aa0?_0x2270f5['data']:''});else{if(this['_schema']['isObject'](_0x2270f5)){const _0x2f2de7=_0x2270f5;if(_0x17a008&&_0x17a008['type']['indexOf']('Container')>-0x1&&_0x3f4985['pop'](),'elementEnd'==_0x3a0603['type'])continue;_0x17a008&&_0x17a008['type']==_0xb55aa0+'Object'&&_0x17a008['element']['name']==_0x2f2de7['name']?_0x17a008['quantity']++:_0x3f4985['push']({'type':_0xb55aa0+'Object','element':_0x2f2de7,'quantity':0x1}),_0x3975c7['skip'](_0x5697c2=>!('elementEnd'==_0x5697c2['type']&&_0x5697c2['item']==_0x2270f5));}else{if(this['_schema']['checkChild'](_0x2270f5,'$text')||_0x2270f5['is']('element','softBreak')){const _0x3e6e86=_0x2270f5;if('add'==_0xb55aa0&&'elementStart'==_0x3a0603['type']||'remove'==_0xb55aa0&&'elementEnd'==_0x3a0603['type'])continue;if(_0x17a008&&-0x1==_0x17a008['type']['indexOf']('Container')){'text'==_0x17a008['type']&&(_0x17a008[_0xb55aa0]+='\x0a');continue;}let _0x26b57c;if(_0x26b57c='add'==_0xb55aa0?_0x3e6e86['nextSibling']&&!this['_schema']['isObject'](_0x3e6e86['nextSibling'])?_0x3e6e86['nextSibling']:null:_0x3e6e86['previousSibling']&&!this['_schema']['isObject'](_0x3e6e86['previousSibling'])?_0x3e6e86['previousSibling']:null,_0x3e6e86['isEmpty']||_0x26b57c&&_0x26b57c['isEmpty']){const _0x5ede51=_0x26b57c&&_0x26b57c['isEmpty']?_0x26b57c:_0x3e6e86;_0x17a008&&_0x17a008['type']==_0xb55aa0+'EmptyContainer'&&_0x17a008['element']['name']==_0x5ede51['name']?_0x17a008['quantity']++:_0x3f4985['push']({'type':_0xb55aa0+'EmptyContainer','element':_0x5ede51,'quantity':0x1});}else _0x3f4985['push']({'type':_0xb55aa0+'Container','element':_0x3e6e86});}}}}}['_resolveDescriptionItems'](_0x2f2dcb){const _0x391e13=this['_locale'],_0x55f403=[],_0x2a10da=[],_0x432238=[];for(const _0x4544ac of _0x2f2dcb)switch(_0x4544ac['type']){case'text':if(_0x4544ac['add']=_0x4544ac['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4544ac['remove']=_0x4544ac['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4544ac['add']&&''!=_0x4544ac['remove']){_0x55f403['push']({'type':'replace','content':o(_0x391e13,'REPLACE_TEXT',['\x22'+_0x4544ac['remove']+'\x22','\x22'+_0x4544ac['add']+'\x22'])});continue;}if(null!=_0x4544ac['add']['match'](/^ +$/)){_0x55f403['push']({'type':'insertion','content':o(_0x391e13,'*Insert:*\x20%0',o(_0x391e13,'ELEMENT_SPACE',_0x4544ac['add']['length']))});continue;}if(null!=_0x4544ac['remove']['match'](/^ +$/)){_0x55f403['push']({'type':'deletion','content':o(_0x391e13,'*Remove:*\x20%0',o(_0x391e13,'ELEMENT_SPACE',_0x4544ac['remove']['length']))});continue;}if(''!=_0x4544ac['add']){_0x55f403['push']({'type':'insertion','content':o(_0x391e13,'*Insert:*\x20%0','\x22'+_0x4544ac['add']+'\x22')});continue;}_0x55f403['push']({'type':'deletion','content':o(_0x391e13,'*Remove:*\x20%0','\x22'+_0x4544ac['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x55f403['push']({'type':'insertion','content':o(_0x391e13,'*Insert:*\x20%0',this['getItemLabel'](_0x4544ac['element'],_0x4544ac['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x55f403['push']({'type':'deletion','content':o(_0x391e13,'*Remove:*\x20%0',this['getItemLabel'](_0x4544ac['element'],_0x4544ac['quantity']))});continue;case'addContainer':_0x55f403['push']({'type':'insertion','content':o(_0x391e13,'*Split:*\x20%0',this['getItemLabel'](_0x4544ac['element'],_0x4544ac['quantity']))});continue;case'removeContainer':_0x55f403['push']({'type':'deletion','content':o(_0x391e13,'*Merge:*\x20%0',this['getItemLabel'](_0x4544ac['element'],_0x4544ac['quantity']))});continue;case'addFormat':_0x2a10da['push'](_0x4544ac['key']);continue;case'removeFormat':_0x432238['push'](_0x4544ac['key']);continue;default:_0x55f403['push'](_0x4544ac);}if(_0x2a10da['length']){const _0x2d37a3=_0x2a10da['map'](_0x267db5=>this['_attributeLabels']['has'](_0x267db5)?this['_attributeLabels']['get'](_0x267db5):_0x267db5)['join'](',\x20');_0x55f403['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x2d37a3)});}if(_0x432238['length']){const _0x4f702f=_0x432238['map'](_0x132b79=>this['_attributeLabels']['has'](_0x132b79)?this['_attributeLabels']['get'](_0x132b79):_0x132b79)['join'](',\x20');_0x55f403['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x4f702f)});}return _0x55f403;}['_handleCustomCallbackDescription'](_0x37c16c){for(const _0x393c9b of this['_customCallbacks']){const _0x41089f=_0x393c9b(_0x37c16c);if(_0x41089f&&'type'in _0x41089f)return _0x41089f;}}['_handleAttributeSuggestionDescription'](_0x12bad1,_0x209d49){const _0x22a6da=_0x209d49['data'],_0x2f1557=void 0x0===_0x22a6da['newValue']?'removeFormat':'addFormat';_0x12bad1['push']({'type':_0x2f1557,'key':_0x22a6da['key']});}['_handleRenameSuggestionDescription'](_0x21b013,_0x52c591){_0x21b013['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x52c591['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x5311a2,_0x425dda,_0x280b5b){if(this['_addDescriptionItems'](_0x5311a2,_0x425dda),_0x280b5b&&_0x280b5b['getFirstRange']()&&!_0x425dda['getFirstRange']()['end']['isEqual'](_0x280b5b['getFirstRange']()['start'])){const _0xfa0d08=_0x5311a2[_0x5311a2['length']-0x1],_0x2bb607='insertion'==_0x425dda['type']?'add':'remove';_0xfa0d08&&'text'==_0xfa0d08['type']&&(_0xfa0d08[_0x2bb607]+='\x0a');}}}class R extends _0x335eea{['afterInit'](){const _0x3067d8=this['editor'],_0x5c24b2=_0x3067d8['plugins']['get']('TrackChangesEditing');_0x3067d8['commands']['get']('showAIAssistant')&&_0x5c24b2['enableCommand']('showAIAssistant');}}class T extends _0x335eea{['afterInit'](){const _0x1d8f42=this['editor'],_0x2d7826=_0x1d8f42['plugins']['get']('TrackChangesEditing');_0x1d8f42['commands']['get']('toggleAi')&&_0x2d7826['enableCommand']('toggleAi');}}class E extends _0x335eea{['afterInit'](){const _0x1a294a=this['editor'],_0x9b76c4=_0x1a294a['plugins']['get']('TrackChangesEditing');_0x1a294a['commands']['get']('aiQuickAction')&&_0x9b76c4['enableCommand']('aiQuickAction');}}class U extends _0x335eea{['afterInit'](){const _0x36ce3e=this['editor'],_0x1606a9=_0x36ce3e['locale'];if(!_0x36ce3e['plugins']['has']('AlignmentEditing'))return;const _0x1fe484=_0x36ce3e['plugins']['get']('TrackChangesEditing');_0x1fe484['enableDefaultAttributesIntegration']('alignment'),_0x1fe484['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x1606a9,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x383c20=this['editor'],_0xbb3c50=_0x383c20['locale'];_0x383c20['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5cc953=>{if('formatBlock'!=_0x5cc953['type'])return;const {data:_0x1360dd}=_0x5cc953;if(_0x1360dd&&'alignment'==_0x1360dd['commandName']){const _0x2d5af3=_0x1360dd['commandParams'][0x0]['value'];return{'type':'format','content':o(_0xbb3c50,'*Format:*\x20%0',function(_0x183426){switch(_0x183426){case'left':return o(_0xbb3c50,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0xbb3c50,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0xbb3c50,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0xbb3c50,'FORMAT_JUSTIFY_TEXT');}}(_0x2d5af3))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class V extends _0x335eea{['afterInit'](){const _0x2fcbcd=this['editor'],_0x9d6a73=_0x2fcbcd['plugins']['get']('TrackChangesEditing'),_0x40546c=_0x2fcbcd['locale'];for(const _0x55c955 of ti){if(!_0x2fcbcd['plugins']['has'](_0x55c955))continue;const _0x5e5fad=_0x55c955['slice'](0x0,-0x7)['toLowerCase'](),_0xb1a71d='FORMAT_'+_0x5e5fad['toUpperCase']();_0x9d6a73['enableDefaultAttributesIntegration'](_0x5e5fad),_0x9d6a73['descriptionFactory']['registerAttributeLabel'](_0x5e5fad,o(_0x40546c,_0xb1a71d));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x36e13c=this['editor'],_0xc3d6f0=_0x36e13c['locale'],_0x517401=_0x36e13c['plugins']['get']('TrackChangesEditing');function _0x86c304(_0xe296da,_0x359362){_0x517401['descriptionFactory']['registerDescriptionCallback'](_0x4630c7=>{if('formatInline'!=_0x4630c7['type'])return;const {data:_0x4ec0ab}=_0x4630c7;return _0x4ec0ab&&_0x4ec0ab['commandName']===_0xe296da?_0x4ec0ab['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xc3d6f0,'*Format:*\x20%0',_0x359362)}:{'type':'format','content':o(_0xc3d6f0,'*Remove\x20format:*\x20%0',_0x359362)}:void 0x0;});}_0x86c304('bold',o(_0xc3d6f0,'FORMAT_BOLD')),_0x86c304('italic',o(_0xc3d6f0,'FORMAT_ITALIC')),_0x86c304('underline',o(_0xc3d6f0,'FORMAT_UNDERLINE')),_0x86c304('code',o(_0xc3d6f0,'FORMAT_CODE')),_0x86c304('strikethrough',o(_0xc3d6f0,'FORMAT_STRIKETHROUGH')),_0x86c304('subscript',o(_0xc3d6f0,'FORMAT_SUBSCRIPT')),_0x86c304('superscript',o(_0xc3d6f0,'FORMAT_SUPERSCRIPT'));}}class F extends _0x335eea{['afterInit'](){const _0x397df9=this['editor'],_0x2c82e6=_0x397df9['locale'];if(!_0x397df9['plugins']['has']('BlockQuoteEditing'))return;const _0x4273d3=_0x397df9['plugins']['get']('TrackChangesEditing'),_0x2ec8b9=this['editor']['commands']['get']('blockQuote');_0x4273d3['enableCommand']('blockQuote',(_0x172b52,_0x55c43c={})=>{const _0x31c832=this['editor']['model']['document']['selection'],_0x277150=_0x55c43c&&void 0x0!==_0x55c43c['forceValue']?_0x55c43c['forceValue']:!_0x2ec8b9['value'];let _0x1cfda8=[];if(_0x277150){const _0x8501f3=Array['from'](_0x31c832['getSelectedBlocks']())['filter'](_0x23ce80=>oo(_0x23ce80)||function(_0x184249,_0x57ed2d){const _0x198bcb=_0x57ed2d['checkChild'](_0x184249['parent'],'blockQuote'),_0x5113a3=_0x57ed2d['checkChild'](['$root','blockQuote'],_0x184249);return _0x198bcb&&_0x5113a3;}(_0x23ce80,this['editor']['model']['schema']));_0x1cfda8=to(_0x8501f3,_0x397df9['model']);}else{const _0x4f3169=Array['from'](_0x31c832['getSelectedBlocks']())['filter'](_0x174e80=>oo(_0x174e80));_0x1cfda8=to(_0x4f3169,_0x397df9['model']);}_0x397df9['model']['change'](()=>{for(const _0x4cce32 of _0x1cfda8)_0x4273d3['markBlockFormat'](_0x4cce32,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x277150}]});});}),_0x4273d3['descriptionFactory']['registerDescriptionCallback'](_0x2f0fae=>{const {data:_0x378df2}=_0x2f0fae;if(_0x378df2&&'blockQuote'==_0x378df2['commandName']){const _0x31c952=o(_0x2c82e6,'ELEMENT_BLOCK_QUOTE');return _0x378df2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2c82e6,'*Set\x20format:*\x20%0',_0x31c952)}:{'type':'format','content':o(_0x2c82e6,'*Remove\x20format:*\x20%0',_0x31c952)};}});}}function oo(_0x52ff01){return'blockQuote'==_0x52ff01['parent']['name'];}class G extends _0x335eea{['afterInit'](){const _0x295400=this['editor'],_0x568d7=_0x295400['locale'],_0x5dcb59=_0x295400['plugins']['get']('TrackChangesEditing');_0x295400['plugins']['has']('BookmarkEditing')&&(_0x5dcb59['enableCommand']('insertBookmark'),_0x5dcb59['enableDefaultAttributesIntegration']('updateBookmark'),_0x5dcb59['descriptionFactory']['registerDescriptionCallback'](_0x465e15=>{if('insertion'!=_0x465e15['type']&&'deletion'!=_0x465e15['type']&&'attribute'!=_0x465e15['type'])return;const _0x1f012f=_0x465e15['getContainedElement']();if(null==_0x1f012f)return;if(!_0x1f012f['is']('element','bookmark'))return;const _0x24cc8a=_0x1f012f['getAttribute']('bookmarkId');if('insertion'==_0x465e15['type'])return{'type':'insertion','content':o(_0x568d7,'*Insert:*\x20%0','\x22'+_0x24cc8a+'\x22\x20'+o(_0x568d7,'ELEMENT_BOOKMARK'))};if('deletion'==_0x465e15['type'])return{'type':'deletion','content':o(_0x568d7,'*Remove:*\x20%0','\x22'+_0x24cc8a+'\x22\x20'+o(_0x568d7,'ELEMENT_BOOKMARK'))};const {data:_0x8cbbae}=_0x465e15;if(!_0x8cbbae||'bookmarkId'!=_0x8cbbae['key'])return;return{'type':'format','content':o(_0x568d7,'*Set\x20bookmark:*\x20%0','\x22'+_0x8cbbae['newValue']+'\x22')};}));}}class L extends _0x335eea{['afterInit'](){const _0x56aabb=this['editor'];_0x56aabb['plugins']['has']('CaseChange')&&(_0x56aabb['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x56aabb['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x56aabb['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class J extends _0x335eea{['afterInit'](){const _0x3a56d3=this['editor'];_0x3a56d3['commands']['get']('ckbox')&&_0x3a56d3['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x335eea{['afterInit'](){const _0x1acc82=this['editor'];if(!_0x1acc82['plugins']['has']('CodeBlock'))return;const _0xc581d2=_0x1acc82['plugins']['get']('TrackChangesEditing'),_0x1ea4fa=_0x1acc82['locale'],_0x2b6966=_0x1acc82['config']['get']('codeBlock')['languages'],_0x2f31df=_0x1acc82['commands']['get']('codeBlock');_0xc581d2['enableCommand']('indentCodeBlock'),_0xc581d2['enableCommand']('outdentCodeBlock'),_0xc581d2['enableCommand']('codeBlock',(_0x342917,_0x58b16e={})=>{const _0x2fe86b=_0x1acc82['model'],_0x4d2eaa=_0x1acc82['model']['document']['selection'],_0x78591b=_0x58b16e&&void 0x0!==_0x58b16e['forceValue']?_0x58b16e['forceValue']:!_0x2f31df['value'];let _0x4b841b;_0x58b16e['language']||(_0x58b16e['language']=_0x2b6966[0x0]['language']),_0x4b841b=_0x78591b?Array['from'](_0x4d2eaa['getSelectedBlocks']())['filter'](_0x18eebd=>co(_0x18eebd)||function(_0x5779fa,_0x5054e9){if(_0x5779fa['is']('rootElement')||_0x5054e9['isLimit'](_0x5779fa))return!0x1;return _0x5054e9['checkChild'](_0x5779fa['parent'],'codeBlock');}(_0x18eebd,_0x2fe86b['schema'])):Array['from'](_0x4d2eaa['getSelectedBlocks']())['filter'](_0x427c77=>co(_0x427c77));const _0x192ec8=to(_0x4b841b,_0x2fe86b);_0x2fe86b['change'](()=>{for(const _0x4b625f of _0x192ec8)_0xc581d2['markBlockFormat'](_0x4b625f,{'commandName':'codeBlock','commandParams':[{..._0x58b16e,'forceValue':_0x78591b}],'formatGroupId':'blockName'});});}),(_0xc581d2['descriptionFactory']['registerElementLabel']('codeBlock',_0x3afefd=>o(_0x1ea4fa,'ELEMENT_CODE_BLOCK',_0x3afefd)),_0xc581d2['descriptionFactory']['registerDescriptionCallback'](_0x5d1cc7=>{if('formatBlock'!=_0x5d1cc7['type'])return;const _0x52c613=_0x1ea4fa['t'],{data:_0x49fb83}=_0x5d1cc7;if(!_0x49fb83||'codeBlock'!=_0x49fb83['commandName'])return;const _0x31256b=_0x49fb83['commandParams'][0x0]['language'],_0x44ba68=_0x52c613(_0x2b6966['find'](_0x45a683=>_0x45a683['language']===_0x31256b)['label'])['toLowerCase']();return _0x49fb83['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1ea4fa,'*Set\x20format:*\x20%0',o(_0x1ea4fa,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x44ba68+')')}:{'type':'format','content':o(_0x1ea4fa,'*Remove\x20format:*\x20%0',o(_0x1ea4fa,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x3f685d){return'codeBlock'==_0x3f685d['name'];}class z extends _0x335eea{['afterInit'](){const _0x22f647=this['editor'];if(!_0x22f647['plugins']['has']('CommentsEditing'))return;_0x22f647['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class K extends _0x335eea{static get['requires'](){return[_0x2757e7];}['init'](){const _0x5ae766=this['editor'],_0x7622bf=_0x5ae766['plugins']['get']('TrackChangesEditing');_0x7622bf['enableCommand']('delete');const _0x48dddd=_0x5ae766['commands']['get']('deleteForward');_0x7622bf['enableCommand']('deleteForward',(_0xb66631,_0x49fcdc={})=>{const _0x55d5e1=_0x5ae766['model']['createSelection'](_0x5ae766['model']['document']['selection']);_0x55d5e1['isCollapsed']&&_0x5ae766['model']['modifySelection'](_0x55d5e1,{'direction':'forward','unit':_0x49fcdc['unit']});const _0x4b2b18=_0x55d5e1['getFirstRange'](),_0x3bb9ce=_0x1b3589['fromRange'](_0x4b2b18);let _0x4f70b2;_0xb66631(_0x49fcdc),_0x4f70b2='$graveyard'==_0x3bb9ce['root']['rootName']?_0x5ae766['model']['createRange'](_0x4b2b18['start']):_0x5ae766['model']['createRange'](_0x3bb