@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240619.2 → 0.0.0-nightly-20240620.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/build/track-changes.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +3 -3
- package/src/trackchangesediting.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as ts,Plugin as
|
|
24
|
-
_0x744521(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x21e51f,_0x56e463){super(),this['id']=_0x56e463['id'],this['type']=_0x56e463['type'],this['subType']=_0x56e463['subType']||null,this['author']=_0x56e463['author'],this['creator']=_0x56e463['creator']||_0x56e463['author'],this['isExternal']=Boolean(_0x56e463['attributes']&&_0x56e463['attributes']['@external']),this['data']=null,this['_model']=_0x21e51f,this['_onAccept']=_0x56e463['onAccept'],this['_onDiscard']=_0x56e463['onDiscard'],this['_onAttributesChange']=_0x56e463['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x56e463['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 _0x1cf5fa=this;for(;_0x1cf5fa['previous'];)_0x1cf5fa=_0x1cf5fa['previous'];return _0x1cf5fa;}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'](_0x2618a5){this['_markerNames']['add'](_0x2618a5);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2170e6=>this['_model']['markers']['get'](_0x2170e6))['filter'](_0x313e19=>_0x313e19);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x19462b=>{for(const _0x102f42 of this['getMarkers']())_0x19462b['removeMarker'](_0x102f42);}),this['_markerNames']['clear']();}['removeMarker'](_0x41eb86){this['_model']['change'](_0x404e3a=>{_0x404e3a['removeMarker'](_0x41eb86);}),this['_markerNames']['delete'](_0x41eb86);}['addRange'](_0x475491){const _0x3ab14f='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x3ab14f),this['_model']['change'](_0x741f74=>{_0x741f74['addMarker'](_0x3ab14f,{'range':_0x475491,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1a9135){for(const _0x500620 of this['getRanges']())if(_0x500620['isIntersecting'](_0x1a9135))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x336d3f=>_0x336d3f['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x29381f,_0x134d99)=>[..._0x29381f,..._0x134d99['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2e5834=this['getRanges']();if(0x1!=_0x2e5834['length'])return null;const _0x1962cc=_0x2e5834[0x0],_0x4ae5c1=_0x1962cc['start']['nodeAfter'],_0x583c65=_0x1962cc['end']['nodeBefore'];return _0x4ae5c1 instanceof _0x5d3366?_0x4ae5c1!=_0x583c65?null:_0x4ae5c1: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 _0x7220fc=[];let _0x51344=this['head'];for(;_0x51344;)_0x7220fc['push'](_0x51344),_0x51344=_0x51344['next'];return _0x7220fc;}['setAttribute'](_0x340b5e,_0x59fd19){const _0x8a0cc=_0x5ce089(this['attributes']);_0x37a6b0(_0x8a0cc,_0x340b5e,_0x59fd19),_0x1f5f1d(_0x8a0cc,this['attributes'])||(this['attributes']=_0x8a0cc,this['_onAttributesChange'](_0x8a0cc));}['removeAttribute'](_0xbe2f22){const _0x2e3241=_0x5ce089(this['attributes']);_0x510de6(_0x2e3241,_0xbe2f22),_0x1f5f1d(_0x2e3241,this['attributes'])||(this['attributes']=_0x2e3241,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 _0x19ddda()['substr'](0x1,0x5);}}function o(_0x30ed55,_0x377938,_0x4be44e){const t=_0x30ed55['t'];switch(_0x377938){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'*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',_0x4be44e);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4be44e);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4be44e);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4be44e);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4be44e);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',_0x4be44e);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4be44e);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');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',_0x4be44e);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4be44e);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4be44e);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4be44e);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4be44e);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4be44e);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4be44e);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4be44e);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4be44e);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4be44e);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4be44e);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4be44e);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4be44e);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4be44e);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4be44e);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4be44e);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'},_0x4be44e);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4be44e);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4be44e);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4be44e);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4be44e);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4be44e);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'},_0x4be44e);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4be44e);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4be44e);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4be44e);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4be44e);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'},_0x4be44e);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4be44e);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'},_0x4be44e);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'},_0x4be44e);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4be44e);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'},_0x4be44e);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4be44e);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'},_0x4be44e);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4be44e);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4be44e);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});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 t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x4be44e);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x4be44e);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'});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.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'});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.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});default:return _0x377938;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x2446c7,_0x8e033c){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2446c7,this['_locale']=_0x8e033c;}['getDescriptions'](_0xcade5d){const _0x36c0c9=[],_0x369ff6=new Set(),_0x116b13=new Set();for(let _0x349e45=0x0;_0x349e45<_0xcade5d['length'];_0x349e45++){const _0x5c585f=_0xcade5d[_0x349e45];if(!_0x5c585f['isInContent'])continue;const _0x1dcb67=this['_handleCustomCallbackDescription'](_0x5c585f);if(_0x1dcb67){if(null!=_0x5c585f['subType']){if(_0x369ff6['has'](_0x5c585f['subType']))continue;_0x369ff6['add'](_0x5c585f['subType']);}_0x36c0c9['push'](_0x1dcb67);}else{if('attribute'!=_0x5c585f['type'])'insertion'!=_0x5c585f['type']&&'deletion'!=_0x5c585f['type']||this['_handleInsertRemoveSuggestionDescription'](_0x36c0c9,_0x5c585f,_0xcade5d[_0x349e45+0x1]);else{const _0x2921b1=_0x5c585f['data']['key'];if(_0x116b13['has'](_0x2921b1))continue;_0x116b13['add'](_0x5c585f['data']['key']),_0x2921b1==m?this['_handleRenameSuggestionDescription'](_0x36c0c9,_0x5c585f):this['_handleAttributeSuggestionDescription'](_0x36c0c9,_0x5c585f);}}}return this['_resolveDescriptionItems'](_0x36c0c9);}['registerDescriptionCallback'](_0x9a0c9d){this['_customCallbacks']['push'](_0x9a0c9d);}['registerElementLabel'](_0x38b9bd,_0x4799c5,_0xa68150=_0x157237['normal']){'function'==typeof _0x38b9bd?_0x144e5f(this['_itemLabelsCallbacks'],{'matchingCallback':_0x38b9bd,'label':_0x4799c5,'priority':_0xa68150}):this['_itemLabels']['set'](_0x38b9bd,_0x4799c5);}['registerAttributeLabel'](_0x5eb5dc,_0x3c05af){this['_attributeLabels']['set'](_0x5eb5dc,_0x3c05af);}['getItemLabel'](_0x33ce5b,_0x11f20d=0x1){let _0x276d3e;for(const _0x1d68f0 of this['_itemLabelsCallbacks'])if(_0x1d68f0['matchingCallback'](_0x33ce5b)){_0x276d3e=_0x1d68f0['label'];break;}return _0x276d3e||(_0x276d3e=this['_itemLabels']['get'](_0x33ce5b['name'])),_0x276d3e?_0x276d3e(_0x11f20d):0x1!==_0x11f20d?_0x11f20d+'\x20'+_0x33ce5b['name']+'s':''+_0x33ce5b['name'];}['_addDescriptionItems'](_0x51a29c,_0x58babe){const _0x1ede89=_0x58babe['getFirstRange']()['getWalker'](),_0x223b79='insertion'==_0x58babe['type']?'add':'remove';for(const _0x3414cb of _0x1ede89){const _0x3ebd9b=_0x3414cb['item'],_0x14bd31=_0x51a29c[_0x51a29c['length']-0x1];if(_0x3ebd9b['is']('$textProxy'))_0x14bd31&&_0x14bd31['type']['indexOf']('Container')>-0x1&&_0x51a29c['pop'](),_0x14bd31&&'text'==_0x14bd31['type']?_0x14bd31[_0x223b79]+=_0x3ebd9b['data']:_0x51a29c['push']({'type':'text','add':'add'==_0x223b79?_0x3ebd9b['data']:'','remove':'remove'==_0x223b79?_0x3ebd9b['data']:''});else{if(this['_schema']['isObject'](_0x3ebd9b)){const _0x1cd52f=_0x3ebd9b;if(_0x14bd31&&_0x14bd31['type']['indexOf']('Container')>-0x1&&_0x51a29c['pop'](),'elementEnd'==_0x3414cb['type'])continue;_0x14bd31&&_0x14bd31['type']==_0x223b79+'Object'&&_0x14bd31['element']['name']==_0x1cd52f['name']?_0x14bd31['quantity']++:_0x51a29c['push']({'type':_0x223b79+'Object','element':_0x1cd52f,'quantity':0x1}),_0x1ede89['skip'](_0x3eb87f=>!('elementEnd'==_0x3eb87f['type']&&_0x3eb87f['item']==_0x3ebd9b));}else{if(this['_schema']['checkChild'](_0x3ebd9b,'$text')||_0x3ebd9b['is']('element','softBreak')){const _0x4e1aa1=_0x3ebd9b;if('add'==_0x223b79&&'elementStart'==_0x3414cb['type']||'remove'==_0x223b79&&'elementEnd'==_0x3414cb['type'])continue;if(_0x14bd31&&-0x1==_0x14bd31['type']['indexOf']('Container')){'text'==_0x14bd31['type']&&(_0x14bd31[_0x223b79]+='\x0a');continue;}let _0x36cce7;if(_0x36cce7='add'==_0x223b79?_0x4e1aa1['nextSibling']&&!this['_schema']['isObject'](_0x4e1aa1['nextSibling'])?_0x4e1aa1['nextSibling']:null:_0x4e1aa1['previousSibling']&&!this['_schema']['isObject'](_0x4e1aa1['previousSibling'])?_0x4e1aa1['previousSibling']:null,_0x4e1aa1['isEmpty']||_0x36cce7&&_0x36cce7['isEmpty']){const _0x1b2114=_0x36cce7&&_0x36cce7['isEmpty']?_0x36cce7:_0x4e1aa1;_0x14bd31&&_0x14bd31['type']==_0x223b79+'EmptyContainer'&&_0x14bd31['element']['name']==_0x1b2114['name']?_0x14bd31['quantity']++:_0x51a29c['push']({'type':_0x223b79+'EmptyContainer','element':_0x1b2114,'quantity':0x1});}else _0x51a29c['push']({'type':_0x223b79+'Container','element':_0x4e1aa1});}}}}}['_resolveDescriptionItems'](_0xdf95d7){const _0x39e319=this['_locale'],_0x80d5c9=[],_0x4864df=[],_0xd92232=[];for(const _0x4c5984 of _0xdf95d7)switch(_0x4c5984['type']){case'text':if(_0x4c5984['add']=_0x4c5984['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4c5984['remove']=_0x4c5984['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4c5984['add']&&''!=_0x4c5984['remove']){_0x80d5c9['push']({'type':'replace','content':o(_0x39e319,'REPLACE_TEXT',['\x22'+_0x4c5984['remove']+'\x22','\x22'+_0x4c5984['add']+'\x22'])});continue;}if(null!=_0x4c5984['add']['match'](/^ +$/)){_0x80d5c9['push']({'type':'insertion','content':o(_0x39e319,'*Insert:*\x20%0',o(_0x39e319,'ELEMENT_SPACE',_0x4c5984['add']['length']))});continue;}if(null!=_0x4c5984['remove']['match'](/^ +$/)){_0x80d5c9['push']({'type':'deletion','content':o(_0x39e319,'*Remove:*\x20%0',o(_0x39e319,'ELEMENT_SPACE',_0x4c5984['remove']['length']))});continue;}if(''!=_0x4c5984['add']){_0x80d5c9['push']({'type':'insertion','content':o(_0x39e319,'*Insert:*\x20%0','\x22'+_0x4c5984['add']+'\x22')});continue;}_0x80d5c9['push']({'type':'deletion','content':o(_0x39e319,'*Remove:*\x20%0','\x22'+_0x4c5984['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x80d5c9['push']({'type':'insertion','content':o(_0x39e319,'*Insert:*\x20%0',this['getItemLabel'](_0x4c5984['element'],_0x4c5984['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x80d5c9['push']({'type':'deletion','content':o(_0x39e319,'*Remove:*\x20%0',this['getItemLabel'](_0x4c5984['element'],_0x4c5984['quantity']))});continue;case'addContainer':_0x80d5c9['push']({'type':'insertion','content':o(_0x39e319,'*Split:*\x20%0',this['getItemLabel'](_0x4c5984['element'],_0x4c5984['quantity']))});continue;case'removeContainer':_0x80d5c9['push']({'type':'deletion','content':o(_0x39e319,'*Merge:*\x20%0',this['getItemLabel'](_0x4c5984['element'],_0x4c5984['quantity']))});continue;case'addFormat':_0x4864df['push'](_0x4c5984['key']);continue;case'removeFormat':_0xd92232['push'](_0x4c5984['key']);continue;default:_0x80d5c9['push'](_0x4c5984);}if(_0x4864df['length']){const _0xab5320=_0x4864df['map'](_0xf487d4=>this['_attributeLabels']['has'](_0xf487d4)?this['_attributeLabels']['get'](_0xf487d4):_0xf487d4)['join'](',\x20');_0x80d5c9['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0xab5320)});}if(_0xd92232['length']){const _0x50d53d=_0xd92232['map'](_0x4005b4=>this['_attributeLabels']['has'](_0x4005b4)?this['_attributeLabels']['get'](_0x4005b4):_0x4005b4)['join'](',\x20');_0x80d5c9['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x50d53d)});}return _0x80d5c9;}['_handleCustomCallbackDescription'](_0x1b0d82){for(const _0xee02ef of this['_customCallbacks']){const _0x27dbb5=_0xee02ef(_0x1b0d82);if(_0x27dbb5&&'type'in _0x27dbb5)return _0x27dbb5;}}['_handleAttributeSuggestionDescription'](_0x57a7af,_0x280b91){const _0x4e3948=_0x280b91['data'],_0x3228e2=void 0x0===_0x4e3948['newValue']?'removeFormat':'addFormat';_0x57a7af['push']({'type':_0x3228e2,'key':_0x4e3948['key']});}['_handleRenameSuggestionDescription'](_0x22203a,_0x996913){_0x22203a['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x996913['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x5655d4,_0x1e2755,_0x5cb3d5){if(this['_addDescriptionItems'](_0x5655d4,_0x1e2755),_0x5cb3d5&&_0x5cb3d5['getFirstRange']()&&!_0x1e2755['getFirstRange']()['end']['isEqual'](_0x5cb3d5['getFirstRange']()['start'])){const _0x3e80b7=_0x5655d4[_0x5655d4['length']-0x1],_0x32acab='insertion'==_0x1e2755['type']?'add':'remove';_0x3e80b7&&'text'==_0x3e80b7['type']&&(_0x3e80b7[_0x32acab]+='\x0a');}}}class E extends _0x1edda9{['afterInit'](){const _0x20021e=this['editor'],_0x18db86=_0x20021e['plugins']['get']('TrackChangesEditing');_0x20021e['commands']['get']('showAIAssistant')&&_0x18db86['enableCommand']('showAIAssistant');}}class V extends _0x1edda9{['afterInit'](){const _0x2584a8=this['editor'],_0x783ec1=_0x2584a8['locale'];if(!_0x2584a8['plugins']['has']('AlignmentEditing'))return;const _0x174a26=_0x2584a8['plugins']['get']('TrackChangesEditing');_0x174a26['enableDefaultAttributesIntegration']('alignment'),_0x174a26['registerBlockAttribute']('alignment'),_0x174a26['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x783ec1,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x58f120=this['editor'],_0x4e28d2=_0x58f120['locale'];_0x58f120['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b647b=>{if('formatBlock'!=_0x1b647b['type'])return;const {data:_0x12375b}=_0x1b647b;if(_0x12375b&&'alignment'==_0x12375b['commandName']){const _0x38826e=_0x12375b['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x4e28d2,'*Format:*\x20%0',function(_0x264927){switch(_0x264927){case'left':return o(_0x4e28d2,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x4e28d2,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x4e28d2,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x4e28d2,'FORMAT_JUSTIFY_TEXT');}}(_0x38826e))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x1edda9{['afterInit'](){const _0x56285d=this['editor'],_0x342837=_0x56285d['plugins']['get']('TrackChangesEditing'),_0x4f4182=_0x56285d['locale'];for(const _0xbdebb7 of ti){if(!_0x56285d['plugins']['has'](_0xbdebb7))continue;const _0x11bec4=_0xbdebb7['slice'](0x0,-0x7)['toLowerCase'](),_0x87c887='FORMAT_'+_0x11bec4['toUpperCase']();_0x342837['enableDefaultAttributesIntegration'](_0x11bec4),_0x342837['registerInlineAttribute'](_0x11bec4),_0x342837['descriptionFactory']['registerAttributeLabel'](_0x11bec4,o(_0x4f4182,_0x87c887));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5daf84=this['editor'],_0xd3ae27=_0x5daf84['locale'],_0x257b2f=_0x5daf84['plugins']['get']('TrackChangesEditing');function _0x479724(_0x2e31a5,_0x29e659){_0x257b2f['descriptionFactory']['registerDescriptionCallback'](_0x429959=>{if('formatInline'!=_0x429959['type'])return;const {data:_0x5ed109}=_0x429959;return _0x5ed109&&_0x5ed109['commandName']===_0x2e31a5?_0x5ed109['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xd3ae27,'*Format:*\x20%0',_0x29e659)}:{'type':'format','content':o(_0xd3ae27,'*Remove\x20format:*\x20%0',_0x29e659)}:void 0x0;});}_0x479724('bold',o(_0xd3ae27,'FORMAT_BOLD')),_0x479724('italic',o(_0xd3ae27,'FORMAT_ITALIC')),_0x479724('underline',o(_0xd3ae27,'FORMAT_UNDERLINE')),_0x479724('code',o(_0xd3ae27,'FORMAT_CODE')),_0x479724('strikethrough',o(_0xd3ae27,'FORMAT_STRIKETHROUGH')),_0x479724('subscript',o(_0xd3ae27,'FORMAT_SUBSCRIPT')),_0x479724('superscript',o(_0xd3ae27,'FORMAT_SUPERSCRIPT'));}}class O extends _0x1edda9{['afterInit'](){const _0x48506f=this['editor'],_0x27b134=_0x48506f['locale'];if(!_0x48506f['plugins']['has']('BlockQuoteEditing'))return;const _0x10218c=_0x48506f['plugins']['get']('TrackChangesEditing'),_0x31c9b8=this['editor']['commands']['get']('blockQuote');_0x10218c['enableCommand']('blockQuote',(_0x8dde0b,_0x5a95d5={})=>{const _0x18a923=this['editor']['model']['document']['selection'],_0x2c7a6f=_0x5a95d5&&void 0x0!==_0x5a95d5['forceValue']?_0x5a95d5['forceValue']:!_0x31c9b8['value'];let _0x46323b=[];if(_0x2c7a6f){const _0x3183e6=Array['from'](_0x18a923['getSelectedBlocks']())['filter'](_0x573669=>oo(_0x573669)||function(_0x50beb0,_0x117cae){const _0x2da75f=_0x117cae['checkChild'](_0x50beb0['parent'],'blockQuote'),_0x409505=_0x117cae['checkChild'](['$root','blockQuote'],_0x50beb0);return _0x2da75f&&_0x409505;}(_0x573669,this['editor']['model']['schema']));_0x46323b=to(_0x3183e6,_0x48506f['model']);}else{const _0x566452=Array['from'](_0x18a923['getSelectedBlocks']())['filter'](_0x7a01a2=>oo(_0x7a01a2));_0x46323b=to(_0x566452,_0x48506f['model']);}_0x48506f['model']['change'](()=>{for(const _0xa1eaf7 of _0x46323b)_0x10218c['markBlockFormat'](_0xa1eaf7,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2c7a6f}]});});}),_0x10218c['descriptionFactory']['registerDescriptionCallback'](_0x55916b=>{const {data:_0x5aa22c}=_0x55916b;if(_0x5aa22c&&'blockQuote'==_0x5aa22c['commandName']){const _0x4846ee=o(_0x27b134,'ELEMENT_BLOCK_QUOTE');return _0x5aa22c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x27b134,'*Set\x20format:*\x20%0',_0x4846ee)}:{'type':'format','content':o(_0x27b134,'*Remove\x20format:*\x20%0',_0x4846ee)};}});}}function oo(_0x3f4e7d){return'blockQuote'==_0x3f4e7d['parent']['name'];}class G extends _0x1edda9{['afterInit'](){const _0x1d2674=this['editor'];_0x1d2674['plugins']['has']('CaseChange')&&(_0x1d2674['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1d2674['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1d2674['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x1edda9{['afterInit'](){const _0x39adb6=this['editor'];_0x39adb6['commands']['get']('ckbox')&&_0x39adb6['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x1edda9{['afterInit'](){const _0x4de693=this['editor'];if(!_0x4de693['plugins']['has']('CodeBlock'))return;const _0x516b09=_0x4de693['plugins']['get']('TrackChangesEditing'),_0x40bf7a=_0x4de693['locale'],_0x69dd5b=_0x4de693['config']['get']('codeBlock')['languages'],_0x5374e4=_0x4de693['commands']['get']('codeBlock');_0x516b09['enableCommand']('indentCodeBlock'),_0x516b09['enableCommand']('outdentCodeBlock'),_0x516b09['enableCommand']('codeBlock',(_0x5c51c3,_0x4e56c3={})=>{const _0x1342f2=_0x4de693['model'],_0x2c6d95=_0x4de693['model']['document']['selection'],_0x55490f=_0x4e56c3&&void 0x0!==_0x4e56c3['forceValue']?_0x4e56c3['forceValue']:!_0x5374e4['value'];let _0x414134;_0x4e56c3['language']||(_0x4e56c3['language']=_0x69dd5b[0x0]['language']),_0x414134=_0x55490f?Array['from'](_0x2c6d95['getSelectedBlocks']())['filter'](_0x19f10d=>eo(_0x19f10d)||function(_0x369608,_0x5c03f3){if(_0x369608['is']('rootElement')||_0x5c03f3['isLimit'](_0x369608))return!0x1;return _0x5c03f3['checkChild'](_0x369608['parent'],'codeBlock');}(_0x19f10d,_0x1342f2['schema'])):Array['from'](_0x2c6d95['getSelectedBlocks']())['filter'](_0x20103c=>eo(_0x20103c));const _0x280adb=to(_0x414134,_0x1342f2);_0x1342f2['change'](()=>{for(const _0x33fbd3 of _0x280adb)_0x516b09['markBlockFormat'](_0x33fbd3,{'commandName':'codeBlock','commandParams':[{..._0x4e56c3,'forceValue':_0x55490f}],'formatGroupId':'blockName'});});}),(_0x516b09['descriptionFactory']['registerElementLabel']('codeBlock',_0x3351a0=>o(_0x40bf7a,'ELEMENT_CODE_BLOCK',_0x3351a0)),_0x516b09['descriptionFactory']['registerDescriptionCallback'](_0x36275e=>{if('formatBlock'!=_0x36275e['type'])return;const _0x192e86=_0x40bf7a['t'],{data:_0x42efd7}=_0x36275e;if(!_0x42efd7||'codeBlock'!=_0x42efd7['commandName'])return;const _0x30c240=_0x42efd7['commandParams'][0x0]['language'],_0x2a0aa3=_0x192e86(_0x69dd5b['find'](_0x13a30a=>_0x13a30a['language']===_0x30c240)['label'])['toLowerCase']();return _0x42efd7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x40bf7a,'*Set\x20format:*\x20%0',o(_0x40bf7a,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2a0aa3+')')}:{'type':'format','content':o(_0x40bf7a,'*Remove\x20format:*\x20%0',o(_0x40bf7a,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x4fb071){return'codeBlock'==_0x4fb071['name'];}class H extends _0x1edda9{['afterInit'](){const _0x462f95=this['editor'];if(!_0x462f95['plugins']['has']('CommentsEditing'))return;_0x462f95['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x2337bf,_0x571a08,_0x48ac51){const _0x346799=[];for(const _0xbb41f7 of _0x571a08['getItems']())_0xbb41f7['hasAttribute'](_0x2337bf)&&_0x346799['push'](_0x48ac51['createRangeOn'](_0xbb41f7));return _0x346799;}function _e(_0x15a8aa,_0x35de8e,{showActiveMarker:_0x3acc40=!0x0}={}){const _0x239ca7=_0x15a8aa['plugins']['get']('TrackChangesEditing');return(_0x102cf5,_0x3e3e21,_0x2a27a2)=>{if(!_0x2a27a2['consumable']['test'](_0x3e3e21['markerRange'],_0x102cf5['name']))return;const _0x52c5be=_0x3e3e21['markerRange']['getWalker'](),_0x316630=_0x3e3e21['markerRange']['start'],_0x579107=_0x15a8aa['model']['schema'];let _0x71a292=null,_0x1cfd79=null,_0x39a70b=!0x1,_0x1df521=!0x1;for(const _0x4d300c of _0x52c5be){const _0x35d1de=_0x4d300c['item'];_0x39a70b=_0x39a70b||_0x579107['isContent'](_0x35d1de);const _0x249a38=_0x2a27a2['mapper']['toViewElement'](_0x35d1de);if(_0x249a38&&_0x249a38['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4d300c['type']&&(_0x579107['isBlock'](_0x35d1de)&&!_0x579107['isLimit'](_0x35d1de)&&(_0x35d1de['nextSibling']||_0x316630['isAtEnd']?_0x71a292&&_0x71a292['parent']==_0x35d1de||(_0x71a292=_0x35d1de,_0x4fda24(_0x4d300c['previousPosition']),_0x1df521=!0x0):_0x1cfd79=_0x1cfd79||_0x4d300c['previousPosition']));}function _0x4fda24(_0x9fe17d){const _0x456eb7=_0x2a27a2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x35de8e}),_0x7ef5ae=_0x2a27a2['mapper']['toViewPosition'](_0x9fe17d);_0x3acc40&&_0x239ca7['activeMarkers']['includes'](_0x3e3e21['markerName'])&&_0x2a27a2['writer']['addClass']('ck-suggestion-marker--active',_0x456eb7),_0x2a27a2['writer']['insert'](_0x7ef5ae,_0x456eb7),_0x2a27a2['mapper']['bindElementToMarker'](_0x456eb7,_0x3e3e21['markerName']);}_0x39a70b||_0x1df521||!_0x1cfd79||_0x4fda24(_0x1cfd79);};}class q extends _0x1edda9{static get['requires'](){return[_0x27b7ba];}['init'](){const _0x1f4670=this['editor'],_0x417085=_0x1f4670['plugins']['get']('TrackChangesEditing');_0x417085['enableCommand']('delete');const _0xc99b86=_0x1f4670['commands']['get']('deleteForward');_0x417085['enableCommand']('deleteForward',(_0x52d3ab,_0x29a8ce={})=>{const _0x4f9ef8=_0x1f4670['model']['createSelection'](_0x1f4670['model']['document']['selection']);_0x4f9ef8['isCollapsed']&&_0x1f4670['model']['modifySelection'](_0x4f9ef8,{'direction':'forward','unit':_0x29a8ce['unit']});const _0x3c5120=_0x4f9ef8['getFirstRange'](),_0x3edbf2=_0x25fa27['fromRange'](_0x3c5120);let _0x58dd06;_0x52d3ab(_0x29a8ce),_0x58dd06='$graveyard'==_0x3edbf2['root']['rootName']?_0x1f4670['model']['createRange'](_0x3c5120['start']):_0x1f4670['model']['createRange'](_0x3edbf2['start'],_0x3edbf2['end']),_0x3edbf2['detach'](),_0x1f4670['model']['enqueueChange'](_0xc99b86['buffer']['batch'],_0x47377a=>{_0xc99b86['buffer']['lock'](),_0x47377a['setSelection'](_0x47377a['createRange'](_0x58dd06['end'])),_0xc99b86['buffer']['unlock']();});}),_0x1f4670['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x1f4670,'merge'),{'priority':'high'}),_0x1f4670['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4d0104,_0x1c8f4b,_0x338572)=>{_0x338572['options']['showSuggestionHighlights']&&_e(_0x1f4670,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x4d0104,_0x1c8f4b,_0x338572);},{'priority':'high'}),_0x1f4670['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0xe0f2f9,_0x1dee7c,_0x8b581c)=>{const _0x401f60=_0x8b581c['mapper']['markerNameToElements'](_0x1dee7c['markerName']);if(_0x401f60){for(const _0x5ad448 of _0x401f60)_0x5ad448['is']('uiElement')&&(_0x8b581c['mapper']['unbindElementFromMarkerName'](_0x5ad448,_0x1dee7c['markerName']),_0x8b581c['writer']['remove'](_0x5ad448));}},{'priority':'high'});}}class z extends _0x1edda9{['afterInit'](){const _0x22ffe3=this['editor'];if(!_0x22ffe3['plugins']['has']('ListEditing'))return;const _0x3c5a8c=_0x22ffe3['locale'],_0x32b559=_0x22ffe3['plugins']['get']('TrackChangesEditing'),_0x4f1c15=_0x22ffe3['plugins']['has']('TodoListEditing'),_0x55fded=!!_0x22ffe3['config']['get']('list.multiBlock');function _0x4f7f94(_0x5e9a05){return{'type':'format','content':''+o(_0x3c5a8c,'*Set\x20format:*\x20%0',_0x5e9a05)};}function _0x5a11c0(_0xd7ebd9){return{'type':'format','content':''+o(_0x3c5a8c,'*Remove\x20format:*\x20%0',_0xd7ebd9)};}_0x32b559['enableDefaultAttributesIntegration']('numberedList'),_0x32b559['enableDefaultAttributesIntegration']('bulletedList'),_0x32b559['enableDefaultAttributesIntegration']('customNumberedList'),_0x32b559['enableDefaultAttributesIntegration']('customBulletedList'),_0x32b559['enableDefaultAttributesIntegration']('indentList'),_0x32b559['enableDefaultAttributesIntegration']('outdentList'),_0x32b559['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x32b559['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x32b559['registerBlockAttribute']('listItemId'),_0x32b559['registerBlockAttribute']('listType'),_0x32b559['registerBlockAttribute']('listIndent'),_0x55fded&&(_0x32b559['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x32b559['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4f1c15&&(_0x32b559['enableDefaultAttributesIntegration']('todoList'),_0x32b559['enableDefaultAttributesIntegration']('checkTodoList'),_0x32b559['registerBlockAttribute']('todoListChecked'),_0x32b559['descriptionFactory']['registerDescriptionCallback'](_0x5c4d49=>{const {data:_0x5c4e31}=_0x5c4d49;if(_0x5c4e31&&'todoListChecked'==_0x5c4e31['key'])return{'type':'format','content':_0x5c4e31['newValue']?o(_0x3c5a8c,'*Check\x20item*'):o(_0x3c5a8c,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x577694=>{if(_0x577694['batch']['isUndo'])return!0x1;let _0x16fc98=!0x1;const _0x5ac46b=_0x32b559['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x51f315=>'todoListChecked'===_0x32b559['_getAttributeKey'](_0x51f315));for(const _0x1b6190 of _0x5ac46b){'todo'!=_0x1b6190['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x32b559['_findSuggestions'](_0x1b6190['getFirstRange'](),'attribute')['find'](_0x15424b=>'listType'===_0x32b559['_getAttributeKey'](_0x15424b['suggestion']))||(_0x577694['removeMarker'](_0x1b6190['getFirstMarker']()),_0x16fc98=!0x0));}return _0x16fc98;})),_0x32b559['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x3c5a8c,'FORMAT_INDENT'));const _0x35d0aa={'type':'format','content':''};_0x32b559['descriptionFactory']['registerDescriptionCallback'](_0x2c736d=>{const {data:_0x24e83d}=_0x2c736d;if(!_0x24e83d||'listType'!=_0x24e83d['key'])return;let _0x251875=_0x2c736d['head'];for(;_0x251875;){if(_0x251875['data']&&(('listStyle'==_0x251875['data']['key']||'listMarkerStyle'==_0x251875['data']['key'])&&(_0x251875['data']['newValue']&&'default'!=_0x251875['data']['newValue']||'default'!=_0x251875['data']['oldValue']&&!_0x24e83d['newValue'])||!_0x55fded&&_0x251875['data']['key']==m))return _0x35d0aa;_0x251875=_0x251875['next'];}if(null==_0x24e83d['newValue'])switch(_0x24e83d['oldValue']){case'bulleted':return _0x5a11c0(o(_0x3c5a8c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5a11c0(o(_0x3c5a8c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5a11c0(o(_0x3c5a8c,'ELEMENT_TODO_LIST'));}switch(_0x24e83d['newValue']){case'bulleted':return _0x4f7f94(o(_0x3c5a8c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4f7f94(o(_0x3c5a8c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4f7f94(o(_0x3c5a8c,'ELEMENT_TODO_LIST'));}}),_0x32b559['descriptionFactory']['registerDescriptionCallback'](_0x358303=>{const {data:_0x129e18}=_0x358303;if(_0x129e18&&'listIndent'==_0x129e18['key'])return null==_0x129e18['newValue']||null==_0x129e18['oldValue']&&0x0==_0x129e18['newValue']?_0x35d0aa:void 0x0;}),_0x32b559['descriptionFactory']['registerDescriptionCallback'](_0xe44605=>{if('attribute'!=_0xe44605['type'])return;const {data:_0x2352c1}=_0xe44605;if(!_0x2352c1||'listItemId'!=_0x2352c1['key'])return;const _0x20f91e=le(_0xe44605);return'newValue'==_0x20f91e?{'type':'format','content':o(_0x3c5a8c,'*Merge:*\x20list\x20item')}:'oldValue'==_0x20f91e?{'type':'format','content':o(_0x3c5a8c,'*Split:*\x20list\x20item')}:_0x35d0aa;}),_0x22ffe3['model']['document']['registerPostFixer'](_0x5108d3=>this['listItemIdFixer'](_0x5108d3)),_0x22ffe3['model']['document']['registerPostFixer'](_0x267a0e=>this['noTrackChangesFixer'](_0x267a0e)),_0x22ffe3['model']['document']['registerPostFixer'](_0x43ba24=>this['assureChains'](_0x43ba24)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x47b011){if(_0x47b011['batch']['isUndo']||!_0x47b011['batch']['isLocal'])return!0x1;let _0x1424b2=!0x1;const _0x577726=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x38040e=>_0x38040e['data']&&'listItemId'==_0x38040e['data']['key'])['filter'](_0x48ac75=>_0x48ac75['data']['newValue']&&_0x48ac75['data']['oldValue']);for(const _0x339c31 of _0x577726)le(_0x339c31)||(_0x47b011['removeMarker'](_0x339c31['getFirstMarker']()),_0x1424b2=!0x0);return _0x1424b2;}['noTrackChangesFixer'](_0x29939f){if(_0x29939f['batch']['isUndo']||!_0x29939f['batch']['isLocal'])return!0x1;const _0x43c4f9=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x43c4f9['trackChangesCommand']['value'])return!0x1;let _0x22063b=!0x1;const _0x56c5be=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x2c7244=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x3d621e=>'attribute'==_0x3d621e['type'])['filter'](_0x34b813=>_0x56c5be['includes'](_0x34b813['attributeKey']));if(0x0==_0x2c7244['length'])return _0x22063b;for(const _0x432a37 of _0x2c7244){const _0x17bfdd=_0x43c4f9['_findSuggestions'](_0x432a37['range'],'attribute')['filter'](_0x2fc048=>!_0x2fc048['meta']['isNextTo'])['map'](_0x829ff4=>_0x829ff4['suggestion'])['filter'](_0xfee989=>{const _0x150d5f=_0x43c4f9['_getAttributeKey'](_0xfee989);return _0x56c5be['includes'](_0x150d5f);});if(_0x17bfdd['length']){for(const _0x49186c of _0x17bfdd)_0x29939f['removeMarker'](_0x49186c['getFirstMarker']());_0x22063b=!0x0;}}return _0x22063b;}['assureChains'](_0x1e8043){if(_0x1e8043['batch']['isUndo']||!_0x1e8043['batch']['isLocal'])return!0x1;const _0xaadd76=this['editor']['plugins']['get']('TrackChangesEditing');let _0x56b580=!0x1;const _0x2f94a3=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x28e724 of _0xaadd76['getSuggestions']({'skipNotAttached':!0x0})){const _0x41f930=_0xaadd76['_findSuggestions'](_0x28e724['getFirstRange'](),'attribute')['map'](_0x48595a=>_0x48595a['suggestion'])['filter'](_0x3f6005=>_0x3f6005['data']&&_0x2f94a3['includes'](_0x3f6005['data']['key']));if(!_0x41f930['length'])continue;const _0x2f0251=_0x41f930[0x0]['head']['attributes']['groupId'];if(!_0x41f930['every'](_0x455358=>_0x455358['attributes']['groupId']===_0x2f0251)){for(const _0x1a4f15 of _0x41f930)_0xf29803(_0x1a4f15,_0x2f0251)&&(_0x56b580=!0x0);}}return _0x56b580;function _0x3019d1(_0x2256e9,_0x3becec){for(const _0x2a1ed8 of _0xaadd76['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x6c2bca=>'attribute'==_0x6c2bca['type']&&_0x6c2bca['attributes']['groupId']==_0x2256e9))_0x2a1ed8['setAttribute']('groupId',_0x3becec);}function _0xf29803(_0x1b1db7,_0x5fcdde){let _0xb6ca2c=_0x1b1db7['head'],_0x52e0d1=!0x1;for(;_0xb6ca2c;)_0xb6ca2c['attributes']['groupId']!=_0x5fcdde&&(_0x3019d1(_0xb6ca2c['attributes']['groupId'],_0x5fcdde),_0xb6ca2c['setAttribute']('groupId',_0x5fcdde),_0x52e0d1=!0x0),_0xb6ca2c=_0xb6ca2c['next'];return _0x52e0d1;}}['_supportLegacySuggestions'](){const _0x37bffb=this['editor'],_0x3378f6=_0x37bffb['locale'],_0x3b9c7e=_0x37bffb['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x3b9c7e['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x232191,_0x13a9a3){const _0x5d1de8=[];for(let _0x2583af of _0x232191)_0x2583af['start']['nodeAfter']===_0x2583af['end']['parent']&&(_0x2583af=_0x37bffb['model']['createRange'](_0x37bffb['model']['createPositionAt'](_0x2583af['start']['nodeAfter'],0x0))),_0x5d1de8['push'](_0x2583af);_0x37bffb['model']['change'](_0x165c0a=>{const _0x3466f4=_0x37bffb['model']['document']['selection'],_0x501b07=Array['from'](_0x3466f4['getRanges']())['map'](_0x318665=>_0x25fa27['fromRange'](_0x318665));_0x165c0a['setSelection'](_0x5d1de8),_0x37bffb['commands']['get'](_0x13a9a3['commandName'])['refresh'](),_0x13a9a3['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x37bffb['execute'](_0x13a9a3['commandName'],..._0x13a9a3['commandParams']),_0x165c0a['setSelection'](_0x501b07);for(const _0x56f997 of _0x501b07)_0x56f997['detach']();});}),_0x3b9c7e['descriptionFactory']['registerElementLabel'](function(_0x5c5c85){const _0x54a67e=!_0x37bffb['model']['schema']['isObject'](_0x5c5c85),_0x1244e5=_0x5c5c85['previousSibling'],_0x56b27b=_0x5c5c85['nextSibling'],_0x201411=_0x5c5c85['getAttribute']('listItemId'),_0x3a556d=!_0x1244e5||_0x1244e5['getAttribute']('listItemId')!==_0x201411,_0x15d5f1=!_0x56b27b||_0x56b27b['getAttribute']('listItemId')!==_0x201411;return _0x54a67e&&Boolean(_0x201411)&&_0x3a556d&&_0x15d5f1;},_0x30b556=>o(_0x3378f6,'ELEMENT_LIST_ITEM',_0x30b556));}['_registerLegacyDescription'](){const _0x545cc7=this['editor'],_0x4b1dc5=_0x545cc7['locale'];function _0x58e3f4(_0x2cb1f8){const _0x3f350a=_0x545cc7['commands']['get']('bulletedList')['value'],_0x4be6e1=_0x545cc7['commands']['get']('numberedList')['value'];return'numberedList'===_0x2cb1f8?_0x3f350a:_0x4be6e1;}_0x545cc7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3ef55a){if('formatBlock'!=_0x3ef55a['type'])return;const {data:_0x49823e}=_0x3ef55a;if(!_0x49823e)return;let _0x11e312,_0x26807a,_0x3c2a69,_0x36b298;switch(_0x49823e['commandName']){case'bulletedList':_0x3c2a69=_0x49823e['commandParams'][0x0]['forceValue'],_0x36b298=_0x58e3f4(_0x49823e['commandName']),_0x11e312=_0x3c2a69?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x36b298&&_0x545cc7['config']['get']('list.multiBlock')||(_0x11e312='*Change\x20to:*\x20%0'),_0x26807a={'type':'format','content':o(_0x4b1dc5,_0x11e312,o(_0x4b1dc5,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x3c2a69=_0x49823e['commandParams'][0x0]['forceValue'],_0x36b298=_0x58e3f4(_0x49823e['commandName']),_0x11e312=_0x3c2a69?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x36b298&&_0x545cc7['config']['get']('list.multiBlock')||(_0x11e312='*Change\x20to:*\x20%0'),_0x26807a={'type':'format','content':o(_0x4b1dc5,_0x11e312,o(_0x4b1dc5,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x11e312='*Indent:*\x20%0',_0x26807a={'type':'format','content':o(_0x4b1dc5,_0x11e312,o(_0x4b1dc5,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x11e312=function(_0x1f0736){const _0x2c4ebd=_0x1f0736['getFirstRange']();let _0x5f1e05=_0x2c4ebd['start']['nodeAfter'];for(;_0x5f1e05&&_0x2c4ebd['containsItem'](_0x5f1e05);){if(_0x5f1e05['getAttribute']('listIndent')>0x0)return!0x1;_0x5f1e05=_0x5f1e05['nextSibling'];}return!0x0;}(_0x3ef55a)?o(_0x4b1dc5,'*Format:*\x20remove\x20from\x20%0',o(_0x4b1dc5,function(_0x43cd62){return'ELEMENT_'+_0x43cd62['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3ef55a))):o(_0x4b1dc5,'*Outdent:*\x20%0',o(_0x4b1dc5,'ELEMENT_LIST_ITEM')),_0x26807a={'type':'format','content':_0x11e312};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x49823e['multipleBlocks']&&(_0x11e312='*Merge:*\x20%0',_0x26807a={'type':'deletion','content':o(_0x4b1dc5,_0x11e312,o(_0x4b1dc5,'ELEMENT_LIST_ITEM'))});}return _0x26807a;});}}function le(_0x121fd8){let _0x2d50c7=_0x121fd8['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x2d50c7;){const _0x537348=_0x2d50c7['getAttribute']('listItemId');if(!_0x537348)return!0x1;if(_0x537348==_0x121fd8['data']['newValue'])return'newValue';if(_0x537348==_0x121fd8['data']['oldValue'])return'oldValue';_0x2d50c7=_0x2d50c7['previousSibling'];}return!0x1;}class ue extends _0x1edda9{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x416c86=this['editor']['config']['get']('list.properties'),_0x32dfea=this['editor']['plugins']['get']('TrackChangesEditing');_0x416c86['styles']&&(_0x32dfea['enableDefaultAttributesIntegration']('listStyle'),_0x32dfea['registerBlockAttribute']('listStyle')),_0x416c86['reversed']&&(_0x32dfea['enableDefaultAttributesIntegration']('listReversed'),_0x32dfea['registerBlockAttribute']('listReversed')),_0x416c86['startIndex']&&(_0x32dfea['enableDefaultAttributesIntegration']('listStart'),_0x32dfea['registerBlockAttribute']('listStart'));const _0x52ea91={'type':'format','content':''};_0x32dfea['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x919304=this['editor']['locale'];_0x32dfea['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x919304,'FORMAT_LIST_REVERSED')),_0x32dfea['descriptionFactory']['registerDescriptionCallback'](_0x2ffbab=>{const {data:_0x2abe9b}=_0x2ffbab;if(_0x2abe9b&&'listReversed'==_0x2abe9b['key'])return null==_0x2abe9b['newValue']||0x0==_0x2abe9b['newValue']&&null==_0x2abe9b['oldValue']?_0x52ea91:void 0x0;}),_0x32dfea['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x919304,'FORMAT_LIST_START')),_0x32dfea['descriptionFactory']['registerDescriptionCallback'](_0x29889c=>{const {data:_0x5c055b}=_0x29889c;if(_0x5c055b&&'listStart'==_0x5c055b['key'])return null==_0x5c055b['newValue']||0x1==_0x5c055b['newValue']&&null==_0x5c055b['oldValue']?_0x52ea91:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x303b09=>{if(_0x303b09['batch']['isUndo'])return!0x1;let _0x19c779=!0x1;const _0x2fbee8=_0x32dfea['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x12eb6b=>{const _0x199787=_0x32dfea['_getAttributeKey'](_0x12eb6b);return'listStart'==_0x199787||'listReversed'==_0x199787;});for(const _0x3d7cb6 of _0x2fbee8){const _0x742fe2=_0x3d7cb6['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x742fe2||'customNumbered'==_0x742fe2)continue;_0x32dfea['_findSuggestions'](_0x3d7cb6['getFirstRange'](),'attribute')['find'](_0x1f7836=>'listType'==_0x32dfea['_getAttributeKey'](_0x1f7836['suggestion']))||(_0x303b09['removeMarker'](_0x3d7cb6['getFirstMarker']()),_0x19c779=!0x0);}return _0x19c779;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x146f20){const _0xfb7c3f=this['editor']['locale'],{data:_0x456d58}=_0x146f20,_0x25272b={'type':'format','content':''};if(!_0x456d58||'listStyle'!=_0x456d58['key'])return;if(!_0x456d58['oldValue'])return'default'==_0x456d58['newValue']?_0x25272b:{'type':'format','content':''+o(_0xfb7c3f,'*Set\x20format:*\x20%0',o(_0xfb7c3f,this['_getTranslationKeyForListStyle'](_0x456d58['newValue'])))};if(!_0x456d58['newValue']){if('default'==_0x456d58['oldValue'])return _0x25272b;let _0x2ec738=_0x146f20['head'];for(;_0x2ec738;){if(_0x2ec738['data']&&'listType'==_0x2ec738['data']['key']&&_0x2ec738['data']['newValue'])return _0x25272b;_0x2ec738=_0x2ec738['next'];}return{'type':'format','content':''+o(_0xfb7c3f,'*Remove\x20format:*\x20%0',o(_0xfb7c3f,this['_getTranslationKeyForListStyle'](_0x456d58['oldValue'])))};}if('default'!=_0x456d58['newValue'])return{'type':'format','content':''+o(_0xfb7c3f,'*Set\x20format:*\x20%0',o(_0xfb7c3f,this['_getTranslationKeyForListStyle'](_0x456d58['newValue'])))};let _0x382bcd=_0x146f20['head'];for(;_0x382bcd;){if(_0x382bcd['data']&&'listType'==_0x382bcd['data']['key']&&_0x382bcd['data']['newValue']&&_0x382bcd['data']['oldValue'])return _0x25272b;_0x382bcd=_0x382bcd['next'];}return{'type':'format','content':o(_0xfb7c3f,'*Set\x20format:*\x20%0',o(_0xfb7c3f,'ELEMENT_'+_0x146f20['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x4f3811=this['editor'],_0x58672b=_0x4f3811['locale'];_0x4f3811['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x41f96d=>{if('formatBlock'!=_0x41f96d['type'])return;const {data:_0x5dd933}=_0x41f96d;if(!_0x5dd933)return;let _0x163839,_0x1a185a;switch(_0x5dd933['commandName']){case'listStyle':_0x163839='*Change\x20to:*\x20%0',_0x1a185a={'type':'format','content':o(_0x58672b,_0x163839,o(_0x58672b,this['_getTranslationKeyForListStyle'](_0x5dd933['commandParams'][0x0]['type'])))};break;case'listReversed':_0x163839=_0x5dd933['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1a185a={'type':'format','content':o(_0x58672b,_0x163839)};break;case'listStart':_0x163839='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1a185a={'type':'format','content':o(_0x58672b,_0x163839,_0x5dd933['commandParams'][0x0]['startIndex'])};}return _0x1a185a;});}['_getTranslationKeyForListStyle'](_0x46c020){return'ELEMENT_'+function(_0x443657){if(pe['includes'](_0x443657))return'bulleted';if(ye['includes'](_0x443657))return'numbered';return null;}(_0x46c020)['toUpperCase']()+'_LIST_'+_0x46c020['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x1edda9{static get['requires'](){return[_0x3f0068];}['init'](){const _0x193341=this['editor'],_0x374d9a=_0x193341['plugins']['get']('TrackChangesEditing'),_0x545dd3=_0x193341['commands']['get']('enter');_0x374d9a['enableCommand']('enter',()=>{_0x193341['model']['change'](_0x23ebde=>{const _0x1d4e94=_0x193341['model']['document']['selection'],_0x57c3f4=_0x1d4e94['getFirstPosition'](),_0x48e7f7=_0x25fa27['fromRange'](_0x1d4e94['getFirstRange']());if(_0x545dd3['enterBlock'](_0x23ebde)){const _0xb099d7=_0x193341['model']['createPositionAt'](_0x57c3f4['parent']['nextSibling'],0x0),_0x4408a5=_0x23ebde['createRange'](_0x57c3f4,_0xb099d7);_0x374d9a['markInsertion'](_0x4408a5);}else _0x23ebde['setSelection'](_0x23ebde['createRange'](_0x48e7f7['end']));_0x48e7f7['detach'](),_0x545dd3['fire']('afterExecute',{'writer':_0x23ebde});});}),_0x193341['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x193341,'split'),{'priority':'high'}),_0x193341['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x3d0403,_0x38eab2,_0x29c65d)=>{const _0x275698=_0x29c65d['mapper']['markerNameToElements'](_0x38eab2['markerName']);if(_0x275698){for(const _0x51ea54 of _0x275698)_0x51ea54['hasClass']('ck-suggestion-marker-split')&&(_0x29c65d['mapper']['unbindElementFromMarkerName'](_0x51ea54,_0x38eab2['markerName']),_0x29c65d['writer']['remove'](_0x51ea54));}},{'priority':'high'}),_0x193341['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x155867,_0x96306a,_0x55edb5)=>{_0x55edb5['options']['showSuggestionHighlights']&&_e(_0x193341,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x155867,_0x96306a,_0x55edb5);},{'priority':'high'});}}class J extends _0x1edda9{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x325289=this['editor']['plugins']['get']('TrackChangesEditing');_0x325289['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x325289['enableCommand']('findNext'),_0x325289['enableCommand']('findPrevious'),_0x325289['enableCommand']('replace'),_0x325289['enableCommand']('replaceAll');}['handleFindCommand'](_0x28aa8d,_0x33366f,_0x184a77={}){const _0x1978b3=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x28aa8d(_0x31e195=>('string'==typeof _0x33366f?_0x1978b3['findByTextCallback'](_0x33366f,_0x184a77):_0x33366f)(_0x31e195)['filter'](_0x1fdff2=>!0x1===this['_isInDeletionRange'](_0x1fdff2,_0x31e195['item'])),_0x184a77);}['_isInDeletionRange'](_0x340514,_0x234574){const _0x57a223=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x234574,_0x340514['start']),this['editor']['model']['createPositionAt'](_0x234574,_0x340514['end']));for(const _0xc28ae5 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x57a223['getIntersection'](_0xc28ae5['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Q extends _0x1edda9{['afterInit'](){const _0xc536a2=this['editor']['locale'],_0x3666bb=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1bbd7a,commandName:_0x720b84}of ro)this['editor']['plugins']['has'](_0x1bbd7a)&&(_0x3666bb['enableDefaultAttributesIntegration'](_0x720b84),_0x3666bb['registerInlineAttribute'](_0x720b84));_0xc536a2['t'],_0x3666bb['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0xc536a2,'FORMAT_FONT_SIZE')),_0x3666bb['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0xc536a2,'FORMAT_FONT_FAMILY')),_0x3666bb['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0xc536a2,'FORMAT_FONT_COLOR')),_0x3666bb['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0xc536a2,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4892ba=this['editor'],_0x43689d=_0x4892ba['locale'];_0x4892ba['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5cab96=>{const _0x41db49=_0x43689d['t'];if('formatInline'!=_0x5cab96['type'])return;const {data:_0x55fe22}=_0x5cab96;if(null!=_0x55fe22){if('fontSize'==_0x55fe22['commandName']){const _0x2e30e8=_0x55fe22['commandParams'][0x0]['value'];if(_0x2e30e8){const _0x28d5a0=_0x41db49(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x453b9a=>_0x453b9a['model']==_0x2e30e8)['title'])['toLowerCase']();return{'type':'format','content':o(_0x43689d,'*Set\x20font\x20size:*\x20%0',_0x28d5a0)};}return{'type':'format','content':o(_0x43689d,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x55fe22['commandName']){const _0x5771bf=_0x55fe22['commandParams'][0x0]['value'];return _0x5771bf?{'type':'format','content':o(_0x43689d,'*Set\x20font\x20family:*\x20%0',_0x5771bf)}:{'type':'format','content':o(_0x43689d,'*Reset\x20font\x20family*')};}if('fontColor'==_0x55fe22['commandName']){const _0x5ca4d8=_0x55fe22['commandParams'][0x0]['value'];if(_0x5ca4d8){const _0x2a1906=_0x4e0c55(this['editor']['config']['get']('fontColor.colors'))['find'](_0x4bf85e=>_0x4bf85e['model']==_0x5ca4d8);let _0x3aa905=_0x5ca4d8,_0x2bfee9='';return _0x2a1906&&(_0x3aa905=_0x2a1906['label'],_0x2bfee9=_0x41db49(_0x3aa905)['toLowerCase']()),{'type':'format','content':o(_0x43689d,'*Set\x20font\x20color:*\x20%0',_0x2bfee9)['trim'](),'color':{'value':_0x5ca4d8,'title':_0x2bfee9||_0x3aa905}};}return{'type':'format','content':o(_0x43689d,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x55fe22['commandName']){const _0x3c786b=_0x55fe22['commandParams'][0x0]['value'];if(_0x3c786b){const _0x1740ff=_0x4e0c55(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x5e27d1=>_0x5e27d1['model']==_0x3c786b);let _0x3b8683=_0x3c786b,_0x3f535f='';return _0x1740ff&&(_0x3b8683=_0x1740ff['label'],_0x3f535f=_0x41db49(_0x3b8683)['toLowerCase']()),{'type':'format','content':o(_0x43689d,'*Set\x20font\x20background\x20color:*\x20%0',_0x3f535f)['trim'](),'color':{'value':_0x3c786b,'title':_0x3f535f||_0x3b8683}};}return{'type':'format','content':o(_0x43689d,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x1edda9{['afterInit'](){const _0x550415=this['editor'],_0x803bca=_0x550415['plugins']['get']('TrackChangesEditing'),_0x587e05=_0x550415['commands']['get']('copyFormat'),_0x49e043=_0x550415['commands']['get']('pasteFormat');_0x587e05&&_0x49e043&&(_0x803bca['enableDefaultAttributesIntegration']('pasteFormat'),_0x803bca['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x18bf28=this['editor'],_0x1a5f15=_0x18bf28['locale'];_0x18bf28['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x32d805=>{if('formatBlock'!=_0x32d805['type']&&'formatInline'!=_0x32d805['type'])return;const {data:_0x3cc76a}=_0x32d805;if(_0x3cc76a&&'pasteFormat'===_0x3cc76a['commandName']){const _0x1cd305=[],_0x9a4af0=_0x3cc76a['commandParams'][0x0];for(const [_0x42f393,_0x291aeb]of Object['entries'](_0x9a4af0))_0x1cd305['push'](so(_0x18bf28,_0x42f393,_0x291aeb));return _0x1cd305['length']?{'type':'format','content':o(_0x1a5f15,'*Set\x20format\x20to:*\x20%0',_0x1cd305['join'](',\x20'))}:{'type':'format','content':o(_0x1a5f15,'*Remove\x20all\x20formatting*')};}});}}function so(_0x425038,_0x1d154a,_0x1ba698){const _0x137351=_0x425038['locale']['t'],_0x2ebc4d=_0x1d154a['split'](/(?=[A-Z])/)['join']('\x20'),_0x2d5b7f=_0x137351(_0x2ebc4d['charAt'](0x0)['toUpperCase']()+_0x2ebc4d['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x1ba698)return _0x2d5b7f;if('fontColor'===_0x1d154a||'fontBackgroundColor'===_0x1d154a){const _0x540e9c=_0x4e0c55(_0x425038['config']['get']('fontColor.colors'))['find'](_0x3635e2=>_0x3635e2['model']==_0x1ba698);return _0x2d5b7f+'\x20('+(_0x540e9c?_0x137351(_0x540e9c['label'])['toLowerCase']():_0x1ba698)+')';}if('fontSize'===_0x1d154a&&isNaN(parseFloat(_0x1ba698))){const _0xf7f6bd=_0x425038['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x425038['config']['get']('fontSize.options'))['find'](_0x389ca9=>_0x389ca9['model']==_0x1ba698);return _0x2d5b7f+'\x20('+(_0xf7f6bd?_0x137351(_0xf7f6bd['title'])['toLowerCase']():_0x1ba698)+')';}return _0x2d5b7f+'\x20('+_0x1ba698+')';}class Y extends _0x1edda9{['_headingOptions'];['afterInit'](){const _0x426777=this['editor'];if(!_0x426777['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x426777['config']['get']('heading.options');const _0x164a38=_0x426777['locale'],_0x1dbb77=_0x426777['plugins']['get']('TrackChangesEditing');_0x1dbb77['enableDefaultAttributesIntegration']('heading');for(const _0x58f2a3 of this['_headingOptions'])'paragraph'!=_0x58f2a3['model']&&_0x1dbb77['descriptionFactory']['registerElementLabel'](_0x58f2a3['model'],_0xba24ed=>{const _0x19f6f6=this['_getHeadingLevel'](_0x58f2a3['model']);return null!==_0x19f6f6?_0x433e90(_0xba24ed,_0x19f6f6):_0x2bdc2d(_0xba24ed,_0x58f2a3['title']);});function _0x433e90(_0x11b45b,_0x392aab){return o(_0x164a38,'ELEMENT_HEADING',[_0x11b45b,_0x392aab]);}function _0x2bdc2d(_0xb8e498,_0x2f4ad3){return o(_0x164a38,'ELEMENT_HEADING_CUSTOM',[_0xb8e498,_0x2f4ad3]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e86f2=this['editor'],_0x5743a3=_0x2e86f2['locale'];function _0x144243(_0x3ae203,_0x13db8b){return o(_0x5743a3,'ELEMENT_HEADING_CUSTOM',[_0x3ae203,_0x13db8b]);}_0x2e86f2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b79c5=>{if('formatBlock'!=_0x5b79c5['type'])return;const {data:_0x5e447b}=_0x5b79c5;if(_0x5e447b&&'heading'==_0x5e447b['commandName']){const _0x33a1ca=_0x5e447b['commandParams'][0x0]['value'],_0x59556f=this['_getHeadingLevel'](_0x33a1ca);if(null!==_0x59556f)return{'type':'format','content':o(_0x5743a3,'*Change\x20to:*\x20%0',(_0x71d275=0x1,_0x2c3d4b=_0x59556f,o(_0x5743a3,'ELEMENT_HEADING',[_0x71d275,_0x2c3d4b])))};const _0x97b63b=this['_headingOptions']['find'](_0x338f70=>_0x338f70['model']===_0x33a1ca)['title'];return{'type':'format','content':o(_0x5743a3,'*Change\x20to:*\x20%0',_0x144243(0x1,_0x97b63b))};}var _0x71d275,_0x2c3d4b;});}['_getHeadingLevel'](_0x2acf17){const _0x2a1a36=_0x2acf17['match'](/^heading(\d+)/);if(_0x2a1a36)return _0x2a1a36[0x1];const _0x14fbff=this['_headingOptions']?.['find'](_0x2af2ca=>_0x2af2ca['model']==_0x2acf17);if(_0x14fbff&&_0x14fbff['view']){const _0x621a83=_0x14fbff['view'],_0x54c31d=(_0x621a83['name']??_0x621a83)['match'](/^h(\d+)/);if(_0x54c31d)return _0x54c31d[0x1];}return null;}}class Z extends _0x1edda9{['afterInit'](){const _0x3f087e=this['editor'];if(!_0x3f087e['plugins']['has']('HighlightEditing'))return;const _0xbc3768=_0x3f087e['plugins']['get']('TrackChangesEditing'),_0x5d5dcf=_0x3f087e['locale'];_0xbc3768['enableDefaultAttributesIntegration']('highlight'),_0xbc3768['registerInlineAttribute']('highlight'),_0xbc3768['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x5d5dcf,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3ab4bb=this['editor'],_0x225cd0=_0x3ab4bb['locale'];_0x3ab4bb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d1bc6=>{if('formatInline'!=_0x1d1bc6['type'])return;const {data:_0x3ab1dd}=_0x1d1bc6;if(_0x3ab1dd&&'highlight'==_0x3ab1dd['commandName']){const _0x1c1b19=_0x225cd0['t'],_0x2e5be3=_0x3ab1dd['commandParams'][0x0]['value'];if(_0x2e5be3){const _0x5d67f5=_0x3ab4bb['config']['get']('highlight.options')['find'](_0x711f87=>_0x711f87['model']==_0x2e5be3),_0x1a10f2=_0x1c1b19(_0x5d67f5['title'])['toLowerCase']();return{'type':'format','content':o(_0x225cd0,'*Set\x20highlight:*\x20%0',_0x1a10f2),'color':{'value':_0x5d67f5['color'],'title':_0x5d67f5['title']}};}return{'type':'format','content':o(_0x225cd0,'*Remove\x20highlight*',o(_0x225cd0,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x1edda9{['afterInit'](){const _0x12b4eb=this['editor'];if(!_0x12b4eb['plugins']['has']('HorizontalLineEditing'))return;_0x12b4eb['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xab3877=_0x12b4eb['plugins']['get']('TrackChangesEditing'),_0x19dd1f=_0x12b4eb['locale'];_0xab3877['descriptionFactory']['registerElementLabel']('horizontalLine',_0x80c3eb=>o(_0x19dd1f,'ELEMENT_HORIZONTAL_LINE',_0x80c3eb)),_0x12b4eb['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1a4312,{writer:_0x2508a3,options:_0x5b8863})=>{if(!_0x5b8863['showSuggestionHighlights'])return null;const _0x2cf7d0=_0x2508a3['createContainerElement']('div'),_0x2db4ce=_0x2508a3['createEmptyElement']('hr');return _0x2508a3['addClass']('ck-horizontal-line',_0x2cf7d0),_0x2508a3['insert'](_0x2508a3['createPositionAt'](_0x2cf7d0,0x0),_0x2db4ce),_0x2cf7d0;},'converterPriority':'high'});}}class et extends _0x1edda9{['afterInit'](){const _0x31fecc=this['editor'];if(!_0x31fecc['plugins']['has']('HtmlEmbed'))return;const _0x8d56b5=_0x31fecc['plugins']['get']('TrackChangesEditing'),_0x4816ad=_0x31fecc['locale'];_0x8d56b5['descriptionFactory']['registerElementLabel']('rawHtml',_0x1d8a2f=>o(_0x4816ad,'ELEMENT_HTML_EMBED',_0x1d8a2f)),_0x8d56b5['enableDefaultAttributesIntegration']('htmlEmbed'),_0x8d56b5['registerBlockAttribute']('value'),_0x8d56b5['descriptionFactory']['registerDescriptionCallback'](_0x5f1162=>{if('attribute'!=_0x5f1162['type'])return;const {data:_0x49d6ac}=_0x5f1162;if(_0x49d6ac&&'value'==_0x49d6ac['key']&&_0x5f1162['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x35d253=o(_0x4816ad,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4816ad,'*Change\x20%0\x20content*',_0x35d253)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x58504b=this['editor'],_0x5e32b6=_0x58504b['locale'];_0x58504b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x233296=>{if('formatBlock'!=_0x233296['type'])return;const {data:_0x408203}=_0x233296;if(_0x408203&&'htmlEmbed'==_0x408203['commandName']){const _0x2bce0f=o(_0x5e32b6,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5e32b6,'*Change\x20%0\x20content*',_0x2bce0f)};}});}}class it extends _0x1edda9{['afterInit'](){const _0x1e5b55=this['editor'];if(!_0x1e5b55['plugins']['has']('ImageEditing'))return;const _0x1391d1=_0x1e5b55['plugins']['get']('TrackChangesEditing'),_0x2fd817=_0x1e5b55['plugins']['get']('ImageUtils'),_0x5e7e93=_0x1e5b55['locale'];_0x1391d1['enableCommand']('insertImage'),_0x1391d1['descriptionFactory']['registerElementLabel']('imageBlock',_0x1eae10=>o(_0x5e7e93,'ELEMENT_IMAGE',_0x1eae10)),_0x1391d1['descriptionFactory']['registerElementLabel']('imageInline',_0xfc1999=>o(_0x5e7e93,'ELEMENT_INLINE_IMAGE',_0xfc1999)),_0x1391d1['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x5e7e93,'ELEMENT_CAPTION')),_0x1e5b55['plugins']['has']('ImageUploadEditing')&&_0x1391d1['enableCommand']('uploadImage'),_0x1e5b55['plugins']['has']('ImageBlockEditing')&&_0x1e5b55['plugins']['has']('ImageInlineEditing')&&(_0x1391d1['enableCommand']('imageTypeInline',(_0x351211,_0x3e8257)=>{const _0x144285=_0x2fd817['getClosestSelectedImageElement'](_0x1e5b55['model']['document']['selection']);_0x1e5b55['model']['change'](()=>{_0x1391d1['markBlockFormat'](_0x144285,{'commandName':'imageTypeInline','commandParams':[_0x3e8257]},[],'convertBlockImageToInline');});}),_0x1391d1['enableCommand']('imageTypeBlock',(_0x2c49d8,_0x2a0dbc)=>{_0x1e5b55['model']['change'](_0x733849=>{let _0xf9ddf0=_0x2fd817['getClosestSelectedImageElement'](_0x1e5b55['model']['document']['selection']),_0xbc7fa0=_0x733849['createRangeOn'](_0xf9ddf0);const _0x1c1c41=_0x4f06f5['fromPosition'](_0xbc7fa0['start'],'toPrevious'),_0x3a0750=_0x4f06f5['fromPosition'](_0xbc7fa0['end'],'toNext');_0x1391d1['forceDefaultExecution'](()=>_0x2c49d8(_0x2a0dbc)),_0xf9ddf0=_0x2fd817['getClosestSelectedImageElement'](_0x1e5b55['model']['document']['selection']),_0xbc7fa0=_0x733849['createRangeOn'](_0xf9ddf0);const _0x2980b2=_0x733849['createRange'](_0x1c1c41,_0x3a0750);_0x1c1c41['detach'](),_0x3a0750['detach'](),_0x1391d1['markBlockFormat'](_0xf9ddf0,{'commandName':'imageTypeInline','commandParams':[_0x2a0dbc]},[],'convertInlineImageToBlock'),_0x2980b2['start']['isBefore'](_0xbc7fa0['start'])&&_0x1391d1['markInsertion'](_0x733849['createRange'](_0x2980b2['start'],_0xbc7fa0['start']),'convertInlineImageToBlock'),_0xbc7fa0['end']['isBefore'](_0x2980b2['end'])&&_0x1391d1['markInsertion'](_0x733849['createRange'](_0xbc7fa0['end'],_0x2980b2['end']),'convertInlineImageToBlock');});}),_0x1391d1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1391d1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1391d1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1391d1['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1391d1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1391d1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x526f64])=>{const _0x2d2a28=_0x1391d1['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2ca2d2=_0x526f64['start'],_0x3a47db=_0x526f64['end'];const _0x3e2cca=_0x1e5b55['model']['schema']['getNearestSelectionRange'](_0x2ca2d2,'backward'),_0x27bded=_0x1e5b55['model']['schema']['getNearestSelectionRange'](_0x3a47db,'forward');_0x3e2cca['isCollapsed']&&(_0x2ca2d2=_0x3e2cca['start']),_0x27bded['isCollapsed']&&(_0x3a47db=_0x27bded['end']),_0x2d2a28([_0x1e5b55['model']['createRange'](_0x2ca2d2,_0x3a47db)]);}),_0x1391d1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x5e56cd),_0x1391d1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x5e56cd)),_0x1e5b55['plugins']['has']('ImageCaptionEditing')&&(_0x1391d1['enableCommand']('toggleImageCaption',(_0x2b1f61,_0x3f455f)=>{const _0x3da69f=_0x1e5b55['plugins']['get']('ImageCaptionUtils');let _0x40708f=_0x2fd817['getClosestSelectedImageElement'](_0x1e5b55['model']['document']['selection']),_0x5e2b6c=_0x3da69f['getCaptionFromImageModelElement'](_0x40708f);_0x1e5b55['model']['change'](()=>{if(_0x5e2b6c)return void _0x1391d1['markDeletion'](_0x1e5b55['model']['createRangeOn'](_0x5e2b6c));const _0x59a4c6=_0x2fd817['isBlockImage'](_0x40708f);_0x2b1f61(_0x3f455f),_0x40708f=_0x2fd817['getClosestSelectedImageElement'](_0x1e5b55['model']['document']['selection']),_0x5e2b6c=_0x3da69f['getCaptionFromImageModelElement'](_0x40708f),_0x1391d1['markInsertion'](_0x1e5b55['model']['createRangeOn'](_0x5e2b6c),_0x59a4c6?null:'imageCaption');});}),_0x1391d1['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x5e56cd));const _0x4359ae=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x855ba3(_0x366413,_0x53f167){const _0x53558b=_0x4359ae['findIndex'](({type:_0x3bec78,subType:_0x45aef9})=>_0x366413['type']==_0x3bec78&&_0x366413['subType']==_0x45aef9),_0xe0a82a=_0x4359ae['findIndex'](({type:_0x36b4df,subType:_0x4ee6d1})=>_0x53f167['type']==_0x36b4df&&_0x53f167['subType']==_0x4ee6d1);if(_0x53558b<0x0||_0xe0a82a<0x0)return!0x1;const _0x187372=_0x366413['getFirstRange'](),_0x20bffb=_0x53f167['getFirstRange']();if((0x0==_0x53558b||0x1==_0x53558b)&&0x2==_0xe0a82a&&_0x187372['isIntersecting'](_0x20bffb))return!0x0;if(0x2==_0x53558b&&0x3==_0xe0a82a){const _0x13de56=_0x1391d1['_findSuggestions'](_0x187372,'insertion')['filter'](({suggestion:_0x5220fd,meta:_0x58713d})=>_0x58713d['isOwn']&&'convertInlineImageToBlock'==_0x5220fd['subType']);if(_0x13de56['length']>0x1&&_0x20bffb['end']['isEqual'](_0x187372['start']))return!0x0;if(0x1==_0x13de56['length']&&(_0x187372['start']['isEqual'](_0x20bffb['end'])||_0x187372['end']['isEqual'](_0x20bffb['start'])))return!0x0;}if(0x3==_0x53558b&&0x3==_0xe0a82a&&_0x187372['start']['isBefore'](_0x20bffb['start'])){const _0x20445f=_0x187372['end']['nodeAfter'],_0x5e4d5f=_0x20bffb['start']['nodeBefore'];return _0x2fd817['isBlockImage'](_0x20445f)&&_0x20445f===_0x5e4d5f;}return!0x1;}function _0x5e56cd(_0xeb1d85,_0x4fbefd){return _0x855ba3(_0xeb1d85,_0x4fbefd)?[_0xeb1d85,_0x4fbefd]:_0x855ba3(_0x4fbefd,_0xeb1d85)?[_0x4fbefd,_0xeb1d85]:null;}_0x1e5b55['plugins']['has']('ImageResize')&&(_0x1391d1['enableDefaultAttributesIntegration']('resizeImage'),_0x1391d1['registerBlockAttribute']('resizedWidth'),_0x1391d1['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x5e7e93,'FORMAT_IMAGE_SIZE'))),_0x1e5b55['plugins']['has']('ImageTextAlternativeEditing')&&(_0x1391d1['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1391d1['registerBlockAttribute']('alt')),_0x1391d1['descriptionFactory']['registerDescriptionCallback'](_0x1ed7a7=>{if(!!_0x4359ae['find'](({type:_0x3bcbf6,subType:_0x240406})=>_0x1ed7a7['type']==_0x3bcbf6&&_0x1ed7a7['subType']==_0x240406))return _0x1ed7a7['previous']?{}:void 0x0;}),_0x1391d1['descriptionFactory']['registerDescriptionCallback'](_0x51b665=>{if('insertion'==_0x51b665['type']||'deletion'==_0x51b665['type']){const _0x134816=_0x51b665['getContainedElement']();if(_0x134816&&_0x134816['is']('element','caption'))return{'type':'insertion'==_0x51b665['type']?'addObject':'removeObject','element':_0x134816,'quantity':0x1};}}),_0x1391d1['descriptionFactory']['registerDescriptionCallback'](_0x368c4a=>'formatBlock'==_0x368c4a['type']&&'convertInlineImageToBlock'==_0x368c4a['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x368c4a['type']&&'convertBlockImageToInline'==_0x368c4a['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1391d1['descriptionFactory']['registerDescriptionCallback'](_0x47e9c2=>{if('attribute'!=_0x47e9c2['type'])return;const {data:_0x3d2000}=_0x47e9c2;if(!_0x3d2000||'alt'!=_0x3d2000['key'])return;const _0x4bdbc7=_0x3d2000['newValue'];return _0x4bdbc7?{'type':'format','content':o(_0x5e7e93,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4bdbc7+'\x22')}:{'type':'format','content':o(_0x5e7e93,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1d56e0=this['editor'],_0x5a0d11=_0x1d56e0['locale'];_0x1d56e0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x258648=>{if('formatBlock'!=_0x258648['type']&&'formatInline'!=_0x258648['type'])return;const {data:_0x193cfd}=_0x258648;if(_0x193cfd){if('imageTextAlternative'==_0x193cfd['commandName']){const _0x4cf572=_0x193cfd['commandParams'][0x0]['newValue'];return _0x4cf572?{'type':'format','content':o(_0x5a0d11,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4cf572+'\x22')}:{'type':'format','content':o(_0x5a0d11,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x193cfd['commandName']){const _0x6d1c28=_0x193cfd['commandParams'][0x0]['width'];return _0x6d1c28?{'type':'format','content':o(_0x5a0d11,'*Set\x20image\x20width:*\x20%0',_0x6d1c28)}:{'type':'format','content':o(_0x5a0d11,'*Reset\x20image\x20width*')};}}});}}class st extends _0x1edda9{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x2887ba=this['editor']['locale'],_0x5aaf1d=this['editor']['plugins']['get']('TrackChangesEditing');_0x5aaf1d['enableDefaultAttributesIntegration']('replaceImageSource'),_0x5aaf1d['registerBlockAttribute']('src'),_0x5aaf1d['descriptionFactory']['registerDescriptionCallback'](_0x2fc4a7=>{if('attribute'!=_0x2fc4a7['type'])return;const {data:_0xcfc700}=_0x2fc4a7;return _0xcfc700&&'src'==_0xcfc700['key']?_0xcfc700['newValue']&&_0xcfc700['oldValue']?{'type':'format','content':o(_0x2887ba,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x12f212=this['editor']['plugins']['get']('TrackChangesEditing');_0x12f212['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x12f212['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x12f212['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x12f212['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4cf45a=this['editor'],_0x224d9c=_0x4cf45a['locale'];_0x4cf45a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1465ee=>{if('formatBlock'!=_0x1465ee['type']&&'formatInline'!=_0x1465ee['type'])return;const {data:_0x5a786c}=_0x1465ee;if(!_0x5a786c||'replaceImageSource'!=_0x5a786c['commandName'])return;return{'type':'format','content':o(_0x224d9c,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x1edda9{['afterInit'](){const _0x2f8acd=this['editor'];if(!_0x2f8acd['plugins']['has']('ImageStyleEditing'))return;const _0x50981f=_0x2f8acd['plugins']['get']('TrackChangesEditing'),_0x46c422=_0x2f8acd['plugins']['get']('ImageUtils'),_0xe289={};_0x50981f['enableCommand']('imageStyle',(_0x5e9e30,_0x44b942)=>{const _0x5b1362=_0x2f8acd['plugins']['get']('Users')['me'],_0xb59742=_0x2f8acd['commands']['get']('imageStyle');let _0xee8770=_0x46c422['getClosestSelectedImageElement'](_0x2f8acd['model']['document']['selection']),_0x3a85af=_0x2f8acd['model']['createRangeOn'](_0xee8770),_0x1d0ba0=_0xb59742['value'];if(_0x1d0ba0==_0x44b942['value'])return;const _0x4f6e82={'commandName':'imageStyle','commandParams':[_0x44b942],'formatGroupId':_0x19ddda()};_0x2f8acd['model']['change'](()=>{if(_0x50981f['getSuggestions']()['filter'](_0x2b35c9=>_0x2b35c9['isInContent']&&_0x5b1362==_0x2b35c9['author']&&('formatBlock'==_0x2b35c9['type']||'formatInline'==_0x2b35c9['type'])&&('imageStylePreApply'==_0x2b35c9['subType']||'imageStylePostApply'==_0x2b35c9['subType'])&&_0x2b35c9['getFirstRange']()['isEqual'](_0x3a85af))['forEach'](_0x8b31f9=>_0x50981f['discardSuggestion'](_0x8b31f9['head'])),_0xee8770=_0x46c422['getClosestSelectedImageElement'](_0x2f8acd['model']['document']['selection']),_0x3a85af=_0x2f8acd['model']['createRangeOn'](_0xee8770),_0xb59742['refresh'](),_0x2f8acd['commands']['get']('imageTypeInline')['refresh'](),_0x2f8acd['commands']['get']('imageTypeBlock')['refresh'](),_0x1d0ba0=_0xb59742['value'],_0x1d0ba0!=_0x44b942['value'])return _0x46c422['isInlineImage'](_0xee8770)&&_0xb59742['shouldConvertImageType'](_0x44b942['value'],_0xee8770)?(_0x5e9e30({..._0x44b942,'setImageSizes':!0x1}),_0xee8770=_0x46c422['getClosestSelectedImageElement'](_0x2f8acd['model']['document']['selection']),void _0x50981f['markBlockFormat'](_0xee8770,{..._0x4f6e82,'commandReversedParams':[{'value':_0x1d0ba0||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x46c422['isBlockImage'](_0xee8770)?_0x50981f['markBlockFormat'](_0xee8770,_0x4f6e82,[],'imageStylePostApply'):_0x50981f['markInlineFormat'](_0x3a85af,_0x4f6e82,'imageStylePostApply'));});});for(const _0x49b2f3 of _0x2f8acd['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0xe289[_0x49b2f3['name']]=_0x49b2f3['title']['toLowerCase']();_0x50981f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x50981f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x50981f['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x50981f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4bd4be])=>{_0x46c422['setImageNaturalSizeAttributes'](_0x4bd4be['getContainedElement']());}),_0x50981f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x5583b6,_0x5481ee)=>{_0x50981f['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5583b6,{'commandName':_0x5481ee['commandName'],'commandParams':_0x5481ee['commandReversedParams']});}),_0x50981f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x42f3d9,_0x5b3656){if(_0x58dc6b(_0x42f3d9,_0x5b3656))return[_0x42f3d9,_0x5b3656];if(_0x58dc6b(_0x5b3656,_0x42f3d9))return[_0x5b3656,_0x42f3d9];return null;});const _0x4eec62=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x58dc6b(_0x11d91a,_0x4ee6e1){const _0x317059=_0x4eec62['findIndex'](({type:_0x5d8362,subType:_0x2e0121})=>_0x11d91a['type']==_0x5d8362&&_0x11d91a['subType']==_0x2e0121),_0x5947b2=_0x4eec62['findIndex'](({type:_0x1a12f7,subType:_0x4544a5})=>_0x4ee6e1['type']==_0x1a12f7&&_0x4ee6e1['subType']==_0x4544a5);if(_0x317059<0x0||_0x5947b2<0x0)return!0x1;const _0x4ba9e7=_0x11d91a['getFirstRange'](),_0x626016=_0x4ee6e1['getFirstRange']();if((0x0==_0x317059||0x1==_0x317059)&&0x2==_0x5947b2&&_0x4ba9e7['isIntersecting'](_0x626016))return!0x0;if(0x2==_0x317059&&0x3==_0x5947b2){const _0x160951=_0x50981f['_findSuggestions'](_0x4ba9e7,'insertion')['filter'](({suggestion:_0x1fdf83,meta:_0x4cc949})=>_0x4cc949['isOwn']&&'convertInlineImageToBlock'==_0x1fdf83['subType']);if(_0x160951['length']>0x1&&_0x626016['end']['isEqual'](_0x4ba9e7['start']))return!0x0;if(0x1==_0x160951['length']&&(_0x4ba9e7['start']['isEqual'](_0x626016['end'])||_0x4ba9e7['end']['isEqual'](_0x626016['start'])))return!0x0;}if(0x3==_0x317059&&0x3==_0x5947b2&&_0x4ba9e7['start']['isBefore'](_0x626016['start'])){const _0x2edfcb=_0x4ba9e7['end']['nodeAfter'],_0x3e16b4=_0x626016['start']['nodeBefore'];return _0x46c422['isBlockImage'](_0x2edfcb)&&_0x2edfcb===_0x3e16b4;}return!0x1;}_0x2f8acd['model']['document']['registerPostFixer'](()=>{let _0x56bb2b=!0x1;const _0x2694f1=Array['from'](_0x2f8acd['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2efd99,data:_0x5eaab1}of _0x2694f1){const {group:_0x3a48c3,type:_0x4ba6e7,subType:_0x170070,id:_0x50b6d8}=_0x50981f['_splitMarkerName'](_0x2efd99);if('suggestion'==_0x3a48c3&&_0x50981f['hasSuggestion'](_0x50b6d8)){if('formatBlock'==_0x4ba6e7&&('imageStylePreApply'==_0x170070||'imageStylePostApply'==_0x170070)){const _0x374046=_0x50981f['getSuggestion'](_0x50b6d8);if(_0x5eaab1['newRange']){const _0x131aa9=_0x374046['getFirstRange']()['getContainedElement']();if(_0x46c422['isBlockImage'](_0x131aa9))continue;_0x50981f['discardSuggestion'](_0x374046),_0x56bb2b=!0x0;}}if('insertion'==_0x4ba6e7&&'imageCaption'==_0x170070&&!_0x5eaab1['newRange']){const _0x3ea923=_0x50981f['getSuggestion'](_0x50b6d8);_0x3ea923['next']&&_0x3ea923['next']['isInContent']&&(_0x50981f['discardSuggestion'](_0x3ea923['next']),_0x56bb2b=!0x0);}}}return _0x56bb2b;}),this['_registerLegacyDescription'](_0xe289);}['_registerLegacyDescription'](_0x5a1689){const _0x2c6513=this['editor'],_0x2d0e0b=_0x2c6513['locale'];_0x2c6513['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x144a3f=>{if('formatBlock'!=_0x144a3f['type']&&'formatInline'!=_0x144a3f['type'])return;const {data:_0x37cdd9}=_0x144a3f;if(!_0x37cdd9||'imageStyle'!=_0x37cdd9['commandName'])return;const _0x476895=_0x37cdd9['commandParams'][0x0]['value'];return _0x1ee524('side'===_0x476895?o(_0x2d0e0b,'FORMAT_SIDE_IMAGE'):_0x5a1689[_0x476895]||_0x476895);function _0x1ee524(_0x228a57){return{'type':'format','content':o(_0x2d0e0b,'*Format:*\x20%0',_0x228a57)};}});}}class ot extends _0x1edda9{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x205cee){super(_0x205cee),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x2b06fb=this['editor'],_0x41301b=_0x2b06fb['commands']['get']('importWord'),_0x4276d3=_0x2b06fb['commands']['get']('trackChanges');_0x41301b&&(_0x41301b['on']('execute',(_0x3296a2,[,_0x417a88])=>{this['_trackChangesValueDuringImport']=_0x4276d3['value'],_0x417a88['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x41301b,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x41301b,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x4276d3['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x2b06fb['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x44758a,_0x394782){const {suggestions:_0x34d0bb}=_0x394782,_0x4827ef=this['editor']['commands']['get']('trackChanges'),_0x155a7e=_0x4827ef['value'];this['_trackChangesValueDuringImport']!==_0x155a7e&&(_0x4827ef['execute'](),this['_trackChangesExecuted']=!0x0),_0x34d0bb&&_0x34d0bb['forEach'](({id:_0x15ade5,type:_0x4cd6e1,author:_0x333664,created_at:_0x3ef27b})=>{const _0x552443={'id':_0x15ade5,'type':_0x4cd6e1,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x333664,'createdAt':_0x3ef27b?new Date(_0x3ef27b):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x552443);});}}class rt extends _0x1edda9{['afterInit'](){const _0x580291=this['editor'],_0x5053ba=_0x580291['plugins']['get']('TrackChangesEditing');if(_0x580291['plugins']['has']('IndentEditing')&&(_0x5053ba['enableCommand']('indent'),_0x5053ba['enableCommand']('outdent')),_0x580291['plugins']['has']('IndentBlock')){for(const _0x4fb390 of['indentBlock','outdentBlock'])_0x5053ba['enableDefaultAttributesIntegration'](_0x4fb390);}const _0x549707=_0x580291['locale'];_0x5053ba['registerBlockAttribute']('blockIndent'),_0x5053ba['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x549707,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x199a87=this['editor'],_0x4a61c9=_0x199a87['locale'],_0x5288e1=_0x199a87['plugins']['get']('TrackChangesEditing');_0x5288e1['descriptionFactory']['registerDescriptionCallback'](_0x162f97=>{if('formatBlock'!=_0x162f97['type'])return;const {data:_0x553452}=_0x162f97;if(!_0x553452)return;if('indentBlock'!=_0x553452['commandName']&&'outdentBlock'!=_0x553452['commandName'])return;const _0xefc1d7=_0x162f97['getItems']()[0x0],_0x5b6297=_0x5288e1['descriptionFactory']['getItemLabel'](_0xefc1d7);return'indentBlock'==_0x553452['commandName']?{'type':'format','content':o(_0x4a61c9,'*Indent:*\x20%0',_0x5b6297)}:'outdentBlock'==_0x553452['commandName']?{'type':'format','content':o(_0x4a61c9,'*Outdent:*\x20%0',_0x5b6297)}:void 0x0;});}}class at extends _0x1edda9{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x1edda9{['afterInit'](){const _0x4de5de=this['editor'];if(!_0x4de5de['plugins']['has']('LinkEditing'))return;const _0x30bb9a=_0x4de5de['plugins']['get']('TrackChangesEditing'),_0x448dde=_0x4de5de['commands']['get']('link');_0x30bb9a['enableDefaultAttributesIntegration']('link'),_0x30bb9a['enableDefaultAttributesIntegration']('unlink'),_0x30bb9a['registerInlineAttribute']('linkHref');for(const _0xf35b13 of _0x448dde['manualDecorators'])_0x30bb9a['registerInlineAttribute'](_0xf35b13['id']),_0x30bb9a['descriptionFactory']['registerAttributeLabel'](_0xf35b13['id'],'link\x20('+_0xf35b13['label']['toLowerCase']()+')');_0x30bb9a['descriptionFactory']['registerDescriptionCallback'](_0x3251da=>{if('attribute'!=_0x3251da['type'])return;const {data:_0x288340}=_0x3251da;if(!_0x288340||'linkHref'!=_0x288340['key'])return;const _0x1a1855=_0x288340['newValue'],_0x561684=_0x4de5de['locale'];return{'type':'format','content':null==_0x1a1855?o(_0x561684,'*Remove\x20link*'):o(_0x561684,'*Set\x20link:*\x20%0','\x22'+_0x1a1855+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x21a06b=this['editor'],_0x1f6fee=_0x21a06b['locale'];_0x21a06b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5ce239=>{if('formatInline'!=_0x5ce239['type'])return;const {data:_0x2261e6}=_0x5ce239;if(_0x2261e6){if('link'==_0x2261e6['commandName']){const _0x54a75c=_0x2261e6['commandParams'][0x0];return{'type':'format','content':o(_0x1f6fee,'*Set\x20link:*\x20%0','\x22'+_0x54a75c+'\x22')};}return'unlink'==_0x2261e6['commandName']?{'type':'format','content':o(_0x1f6fee,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x1edda9{['afterInit'](){const _0x17c802=this['editor'],_0x46ed74=_0x17c802['locale'];if(!_0x17c802['plugins']['has']('LegacyListEditing'))return;const _0x5d3c22=_0x17c802['plugins']['get']('TrackChangesEditing'),_0x40d480=_0x17c802['plugins']['has']('LegacyTodoListEditing');function _0xa17b9e(_0x3c2647){return()=>{const _0x26fc25=_0x17c802['model']['document']['selection'],_0xdf202f=_0x17c802['commands']['get'](_0x3c2647);if(_0xdf202f['value'])return void _0x17c802['execute']('paragraph',{});const _0x11c050=_0x3c2647['slice'](0x0,-0x4),_0x2ff40c=function(_0x1d52d1,_0x595a9a,_0x2a27ff){let _0x293c01=Array['from'](_0x1d52d1)['filter'](_0x154164=>function(_0x4a2c87,_0x427f9b){return _0x427f9b['checkChild'](_0x4a2c87['parent'],'listItem')&&!_0x427f9b['isObject'](_0x4a2c87);}(_0x154164,_0x2a27ff));_0x293c01=_0x293c01['filter'](_0x4ca432=>!_0x4ca432['is']('element','listItem')||_0x4ca432['getAttribute']('listType')!=_0x595a9a);const _0x1d59f2=new Set();for(const _0x1b52f3 of _0x293c01)_0x1b52f3['is']('element','listItem')?_0x1d59f2['add'](me(_0x1b52f3)):_0x1d59f2['add'](_0x1b52f3);return Array['from'](_0x1d59f2);}(_0x26fc25['getSelectedBlocks'](),_0x11c050,_0x17c802['model']['schema']);_0x17c802['model']['change'](()=>{for(const _0x2b248a of _0x2ff40c)_0x5d3c22['markBlockFormat'](_0x2b248a,{'commandName':_0x3c2647,'commandParams':[{'forceValue':!_0xdf202f['value']}],'formatGroupId':'blockName'},fe(_0x2b248a));});};}function _0x496708(_0x13b795){return()=>{const _0x14fba4=function(_0x4766da){let _0x30ba35=Array['from'](_0x4766da);const _0x1dd9ab=_0x30ba35['findIndex'](_0x1fc59e=>'listItem'!=_0x1fc59e['name']);return _0x1dd9ab>-0x1&&(_0x30ba35=_0x30ba35['slice'](0x0,_0x1dd9ab)),_0x30ba35;}(_0x17c802['model']['document']['selection']['getSelectedBlocks']()),_0x468dbe=_0x17c802['model']['createRange'](_0x17c802['model']['createPositionAt'](_0x14fba4[0x0],'before'),_0x17c802['model']['createPositionAt'](_0x14fba4[_0x14fba4['length']-0x1],'end'));_0x17c802['model']['change'](()=>{_0x5d3c22['markBlockFormat'](_0x468dbe,{'commandName':_0x13b795,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2a0c22){const _0x360048=new Set();for(const _0x561291 of _0x2a0c22){let _0x78c6d2=_0x561291['nextSibling'];for(;_0x78c6d2&&_0x78c6d2['getAttribute']('listIndent')>_0x561291['getAttribute']('listIndent');)_0x360048['add'](_0x78c6d2),_0x78c6d2=_0x78c6d2['nextSibling'];}return Array['from'](_0x360048);}(_0x14fba4));});};}_0x5d3c22['enableCommand']('numberedList',_0xa17b9e('numberedList')),_0x5d3c22['enableCommand']('bulletedList',_0xa17b9e('bulletedList')),_0x40d480&&_0x5d3c22['enableCommand']('todoList',_0xa17b9e('todoList')),_0x5d3c22['enableCommand']('indentList',_0x496708('indentList')),_0x5d3c22['enableCommand']('outdentList',_0x496708('outdentList')),_0x40d480&&_0x5d3c22['enableCommand']('checkTodoList',()=>{const _0xe648e=_0x17c802['commands']['get']('checkTodoList'),_0x5d010b=Array['from'](_0xe648e['_selectedElements']);_0x5d010b['filter'](_0x1e1443=>_0x1e1443['getAttribute']('todoListChecked')!=_0xe648e['value']),_0x17c802['model']['change'](()=>{for(const _0x2b4e76 of _0x5d010b)_0x5d3c22['markBlockFormat'](_0x2b4e76,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0xe648e['value']}]});});}),_0x5d3c22['descriptionFactory']['registerElementLabel']('listItem',_0x275796=>o(_0x46ed74,'ELEMENT_LIST_ITEM',_0x275796)),_0x5d3c22['descriptionFactory']['registerDescriptionCallback'](_0x12cd64=>{if('formatBlock'!=_0x12cd64['type']&&'formatInline'!=_0x12cd64['type'])return;const {data:_0x2096c4}=_0x12cd64;if(_0x2096c4){if('numberedList'==_0x2096c4['commandName']||'bulletedList'==_0x2096c4['commandName']||'todoList'==_0x2096c4['commandName'])switch(_0x2096c4['commandName']['replace']('List','')){case'bulleted':return _0x554ad0(o(_0x46ed74,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x554ad0(o(_0x46ed74,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x554ad0(o(_0x46ed74,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2096c4['commandName'])return{'type':'format','content':o(_0x46ed74,'*Indent:*\x20%0',o(_0x46ed74,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2096c4['commandName'])return{'type':'format','content':o(_0x46ed74,'*Outdent:*\x20%0',o(_0x46ed74,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2096c4['commandName'])return _0x2096c4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x46ed74,'*Check\x20item*')}:{'type':'format','content':o(_0x46ed74,'*Uncheck\x20item*')};}function _0x554ad0(_0xda7463){return{'type':'format','content':o(_0x46ed74,'*Change\x20to:*\x20%0',_0xda7463)};}});}}function me(_0xbd461c){const _0x3fbd16=_0xbd461c['getAttribute']('listIndent');if(0x0==_0x3fbd16)return _0xbd461c;let _0x52a2e4=_0xbd461c;for(;_0xbd461c['previousSibling']&&_0xbd461c['previousSibling']['is']('element','listItem');){const _0x11b3ce=_0xbd461c['previousSibling']['getAttribute']('listIndent');if(_0x11b3ce==_0x3fbd16)_0x52a2e4=_0xbd461c['previousSibling'];else{if(_0x11b3ce<_0x3fbd16)break;}_0xbd461c=_0xbd461c['previousSibling'];}return _0x52a2e4;}function fe(_0x387e9e){const _0x250109=[];if(_0x387e9e['is']('element','listItem')&&_0x387e9e['getAttribute']('listIndent')>0x0){let _0x4b555b=_0x387e9e['nextSibling'];for(;_0x4b555b&&'listItem'==_0x4b555b['name']&&_0x4b555b['getAttribute']('listIndent')==_0x387e9e['getAttribute']('listIndent');)_0x250109['push'](_0x4b555b),_0x4b555b=_0x4b555b['nextSibling'];}return _0x250109;}class K extends _0x1edda9{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x35e515=this['editor']['config']['get']('list.properties'),_0x308a4e=this['editor']['plugins']['get']('TrackChangesEditing');_0x35e515['styles']&&_0x308a4e['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x35e515['reversed']&&_0x308a4e['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x35e515['startIndex']&&_0x308a4e['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x308a4e['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x366bfb,_0x205dba={}){const _0x5dab91=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5ab6fe=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x5dab91['markMultiRangeBlockFormat'](_0x5ab6fe,{'commandName':'listStyle','commandParams':[{'type':_0x205dba['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x5b3326,_0x45eaac={}){const _0x2c56e9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2fee87=this['_getSuggestionBlocks'](_0x2f4727=>_0x2f4727['is']('element','listItem')&&'numbered'===_0x2f4727['getAttribute']('listType'));if(_0x2fee87['length']<0x1)return;const _0xd4c827=_0x2fee87['map'](_0x15b17f=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x15b17f,'before'),this['editor']['model']['createPositionAt'](_0x15b17f,0x0)));this['editor']['model']['change'](()=>{_0x2c56e9['markMultiRangeBlockFormat'](_0xd4c827,{'commandName':'listReversed','commandParams':[{'reversed':_0x45eaac['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x4b9682,_0x4f2e99={}){const _0x5c5c6b=this['editor']['plugins']['get']('TrackChangesEditing'),_0xebc27b=this['_getSuggestionBlocks'](_0x57e391=>_0x57e391['is']('element','listItem')&&'numbered'===_0x57e391['getAttribute']('listType'));if(_0xebc27b['length']<0x1)return;const _0x1f536a=_0xebc27b['map'](_0x740da6=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x740da6,'before'),this['editor']['model']['createPositionAt'](_0x740da6,0x0)));this['editor']['model']['change'](()=>{_0x5c5c6b['markMultiRangeBlockFormat'](_0x1f536a,{'commandName':'listStart','commandParams':[{'startIndex':_0x4f2e99['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x364537){if('formatBlock'!=_0x364537['type']&&'formatInline'!=_0x364537['type'])return;const _0x24673a=this['editor']['locale'],{data:_0x2d5c8b}=_0x364537;if(!_0x2d5c8b)return;let _0x3817eb,_0x3db27f;switch(_0x2d5c8b['commandName']){case'listStyle':_0x3817eb='*Change\x20to:*\x20%0',_0x3db27f={'type':'format','content':o(_0x24673a,_0x3817eb,o(_0x24673a,this['_getTranslationKeyForListStyle'](_0x2d5c8b['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3817eb=_0x2d5c8b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3db27f={'type':'format','content':o(_0x24673a,_0x3817eb)};break;case'listStart':_0x3817eb='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3db27f={'type':'format','content':o(_0x24673a,_0x3817eb,_0x2d5c8b['commandParams'][0x0]['startIndex'])};}return _0x3db27f;}['_getSuggestionBlocksForListStyle'](){const _0x299f11=this['editor']['plugins']['get']('LegacyListUtils');let _0x57fd30=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x57fd30[0x0]?.['is']('element','listItem')&&_0x57fd30['unshift'](..._0x299f11['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x57fd30[_0x57fd30['length']-0x1]?.['is']('element','listItem')&&_0x57fd30['push'](..._0x299f11['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x57fd30=[...new Set(_0x57fd30)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x57fd30=_0x57fd30['filter'](_0x42dd72=>_0x42dd72['is']('element','listItem'))),_0x57fd30;}['_getSuggestionBlocks'](_0x3c8d78){const _0x1a52c5=this['editor']['plugins']['get']('LegacyListUtils');let _0x32596c=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3c8d78)['map'](_0x51dcd7=>{const _0x1ad004=this['editor']['model']['createPositionAt'](_0x51dcd7,0x0);return[..._0x1a52c5['getSiblingNodes'](_0x1ad004,'backward'),..._0x1a52c5['getSiblingNodes'](_0x1ad004,'forward')];})['flat']();return _0x32596c=[...new Set(_0x32596c)],_0x32596c;}['_getTranslationKeyForListStyle'](_0x3e77c9){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x3e77c9)||'default')['toUpperCase']()+'_LIST_'+_0x3e77c9['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x1edda9{['afterInit'](){const _0x363750=this['editor'];if(!_0x363750['plugins']['has']('MediaEmbedEditing'))return;const _0x36fae1=_0x363750['plugins']['get']('TrackChangesEditing'),_0x538935=_0x363750['locale'];_0x36fae1['enableCommand']('mediaEmbed'),_0x36fae1['descriptionFactory']['registerElementLabel']('media',_0x1fac57=>o(_0x538935,'ELEMENT_MEDIA',_0x1fac57)),_0x363750['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x21540c,{writer:_0x20ba4f,options:_0x412aa8})=>{if(_0x412aa8['showSuggestionHighlights'])return _0x20ba4f['createEmptyElement']('div');},'converterPriority':'high'}),_0x363750['data']['downcastDispatcher']['on']('attribute:url:media',(_0x247232,_0x54fc75,_0xea02)=>{_0xea02['options']['showSuggestionHighlights']&&_0x247232['stop']();},{'priority':'high'});}}class gt extends _0x1edda9{['afterInit'](){const _0xf8d8a0=this['editor'];_0xf8d8a0['plugins']['has']('MentionEditing')&&_0xf8d8a0['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x1edda9{['afterInit'](){const _0x2a0b32=this['editor'],_0x45afb6=_0x2a0b32['plugins']['get']('TrackChangesEditing');_0x2a0b32['plugins']['has']('MultiLevelList')&&(_0x45afb6['enableDefaultAttributesIntegration']('multiLevelList'),_0x45afb6['registerBlockAttribute']('listMarkerStyle'),_0x45afb6['descriptionFactory']['registerDescriptionCallback'](_0x307153=>this['handleDescriptions'](_0x307153)));}['handleDescriptions'](_0x2fc324){const _0x91c5b7=this['editor']['locale'],{data:_0x35d29e}=_0x2fc324,_0x928524={'type':'format','content':''};if(_0x35d29e&&'listMarkerStyle'==_0x35d29e['key']){if(!_0x35d29e['oldValue'])return{'type':'format','content':o(_0x91c5b7,'*Set\x20format:*\x20%0',o(_0x91c5b7,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x35d29e['newValue']+')'};if(!_0x35d29e['newValue']){let _0x43eb30=_0x2fc324['head'];for(;_0x43eb30;){if(_0x43eb30['data']&&'listType'==_0x43eb30['data']['key']&&_0x43eb30['data']['newValue'])return _0x928524;_0x43eb30=_0x43eb30['next'];}return{'type':'format','content':o(_0x91c5b7,'*Remove\x20format:*\x20%0',o(_0x91c5b7,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x35d29e['oldValue']+')'};}}}}class mt extends _0x1edda9{['afterInit'](){const _0xab5083=this['editor'];if(!_0xab5083['plugins']['has']('PageBreakEditing'))return;_0xab5083['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x47220d=_0xab5083['plugins']['get']('TrackChangesEditing'),_0x39081a=_0xab5083['locale'];_0x47220d['descriptionFactory']['registerElementLabel']('pageBreak',_0x53e0d6=>o(_0x39081a,'ELEMENT_PAGE_BREAK',_0x53e0d6));}}class dt extends _0x1edda9{['afterInit'](){const _0x55ce8e=this['editor'];if(!_0x55ce8e['plugins']['has']('Paragraph'))return;const _0x576c3b=_0x55ce8e['locale'],_0x42ae39=_0x55ce8e['plugins']['get']('TrackChangesEditing');_0x42ae39['descriptionFactory']['registerElementLabel']('paragraph',_0x64a3d3=>o(_0x576c3b,'ELEMENT_PARAGRAPH',_0x64a3d3)),_0x42ae39['enableDefaultAttributesIntegration']('paragraph'),_0x42ae39['enableCommand']('insertParagraph'),_0x55ce8e['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x55ce8e),{'priority':'highest'}),_0x55ce8e['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x46a339,_0x51c2b8,_0x26be1f)=>{_0x26be1f['options']['showSuggestionHighlights']&&nr(_0x55ce8e,{'showActiveMarker':!0x1})(_0x46a339,_0x51c2b8,_0x26be1f);},{'priority':'highest'});const _0x40c805=_0x42ae39['descriptionFactory'];_0x40c805['registerDescriptionCallback'](_0x232e63=>{if('insertion'!==_0x232e63['type'])return;const {start:_0x43ca8e,end:_0x4ffca9}=_0x232e63['getFirstRange']();if(!_0x43ca8e['isTouching'](_0x4ffca9)||!_0x43ca8e['nodeAfter'])return;const _0x434b65=_0x55ce8e['model']['schema'],_0x2a1111=_0x43ca8e['nodeAfter'];return _0x434b65['isBlock'](_0x2a1111)&&!_0x434b65['isLimit'](_0x2a1111)&&_0x434b65['checkChild'](_0x2a1111,'$text')?{'type':'insertion','content':o(_0x576c3b,'*Insert:*\x20%0',_0x40c805['getItemLabel'](_0x2a1111,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x289e72=this['editor'],_0x4acb0a=_0x289e72['locale'];_0x289e72['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f73fb=>{if('formatBlock'!=_0x3f73fb['type'])return;const {data:_0x295a9c}=_0x3f73fb;return _0x295a9c&&'paragraph'==_0x295a9c['commandName']?{'type':'format','content':o(_0x4acb0a,'*Change\x20to:*\x20%0',o(_0x4acb0a,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x30258b,{showActiveMarker:_0x4d0edd=!0x0}={}){return(_0xe56cc4,_0x206d7a,_0x587ba8)=>{const _0x2096ea=_0x30258b['plugins']['get']('TrackChangesEditing'),_0x5be082=_0x206d7a['markerRange']['start'],_0x23b318=_0x206d7a['markerRange']['end'],_0x10ca28=_0x30258b['model']['schema'];if(!_0x5be082['isTouching'](_0x23b318)||!_0x5be082['nodeAfter'])return;const _0x578400=_0x5be082['nodeAfter'];if(_0x10ca28['isBlock'](_0x578400)&&!_0x10ca28['isLimit'](_0x578400)&&_0x10ca28['checkChild'](_0x578400,'$text')){if(!_0x587ba8['consumable']['consume'](_0x206d7a['markerRange'],_0xe56cc4['name']))return;const _0x4de077=_0x587ba8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x1b5355=_0x587ba8['mapper']['toViewPosition'](_0x23b318);_0x4d0edd&&_0x2096ea['activeMarkers']['includes'](_0x206d7a['markerName'])&&_0x587ba8['writer']['addClass']('ck-suggestion-marker--active',_0x4de077),_0x587ba8['writer']['insert'](_0x1b5355,_0x4de077),_0x587ba8['mapper']['bindElementToMarker'](_0x4de077,_0x206d7a['markerName']);}};}class pt extends _0x1edda9{['afterInit'](){const _0x543486=this['editor'];if(!_0x543486['plugins']['has']('RemoveFormatEditing'))return;_0x543486['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x47cf06=this['editor'];_0x47cf06['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa36b0=>{if('formatBlock'!=_0xa36b0['type']&&'formatInline'!=_0xa36b0['type'])return;const {data:_0x11243e}=_0xa36b0;return _0x11243e&&'removeFormat'==_0x11243e['commandName']?{'type':'format','content':o(_0x47cf06['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x1edda9{['afterInit'](){const _0x4921f8=this['editor'];if(!_0x4921f8['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x443188=_0x4921f8['plugins']['get']('TrackChangesEditing');_0x443188['enableCommand']('goToPreviousRestrictedEditingException'),_0x443188['enableCommand']('goToNextRestrictedEditingException');const _0x11414d=_0x4921f8['plugins']['get']('RestrictedEditingModeEditing');_0x11414d['enableCommand']('trackChanges'),_0x11414d['enableCommand']('acceptSuggestion'),_0x11414d['enableCommand']('discardSuggestion'),_0x11414d['enableCommand']('acceptAllSuggestions'),_0x11414d['enableCommand']('discardAllSuggestions'),_0x11414d['enableCommand']('acceptSelectedSuggestions'),_0x11414d['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x1edda9{static get['requires'](){return[_0x582490];}['init'](){const _0x747ba5=this['editor'],_0x24791f=_0x747ba5['plugins']['get']('TrackChangesEditing');_0x24791f['enableCommand']('shiftEnter'),_0x747ba5['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x747ba5),{'priority':'high'}),_0x747ba5['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x747ba5),{'priority':'high'}),_0x747ba5['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3a53a0,_0x5c304d,_0xf29101)=>{_0xf29101['options']['showSuggestionHighlights']&&de(_0x747ba5,{'showActiveMarker':!0x1})(_0x3a53a0,_0x5c304d,_0xf29101);}),_0x24791f['descriptionFactory']['registerElementLabel']('softBreak',_0x173ccc=>o(_0x747ba5['locale'],'ELEMENT_LINE_BREAK',_0x173ccc));}}function de(_0x4b91be,{showActiveMarker:_0x166bd0=!0x0}={}){return(_0x4b8c85,_0x447655,_0x4082ac)=>{const _0xb92b1=_0x4b91be['plugins']['get']('TrackChangesEditing');if(!_0x4082ac['consumable']['test'](_0x447655['markerRange'],_0x4b8c85['name']))return;const _0x41a063=_0x4b91be['model'];for(const _0x598ea5 of _0x447655['markerRange']['getItems']()){if(!_0x598ea5['is']('element','softBreak'))continue;const _0x1f0d70='deletion'==_0x447655['markerName']['split'](':')[0x1]?'merge':'split',_0x51ac8e=_0x4082ac['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1f0d70}),_0x5eb261=_0x4082ac['mapper']['toViewPosition'](_0x41a063['createPositionBefore'](_0x598ea5));_0x166bd0&&_0xb92b1['activeMarkers']['includes'](_0x447655['markerName'])&&_0x4082ac['writer']['addClass']('ck-suggestion-marker--active',_0x51ac8e),_0x4082ac['writer']['insert'](_0x5eb261,_0x51ac8e),_0x4082ac['mapper']['bindElementToMarker'](_0x51ac8e,_0x447655['markerName']);}};}class wt extends _0x1edda9{['afterInit'](){const _0x11d412=this['editor'],_0x397d2a=_0x11d412['model'],_0x3e58bf=_0x11d412['locale'];if(!_0x11d412['plugins']['has']('StandardEditingModeEditing'))return;const _0x903cc9=_0x11d412['plugins']['get']('TrackChangesEditing'),_0x161d39='restrictedEditingException',_0x2dc914=_0x11d412['commands']['get'](_0x161d39);_0x903cc9['enableCommand'](_0x161d39,(_0x4aeccc,_0x4b83ec={})=>{const _0x27323c=_0x397d2a['document']['selection'];if(_0x27323c['isCollapsed'])return void _0x4aeccc(_0x4b83ec);const _0x3465cb=void 0x0!==_0x4b83ec['forceValue']?_0x4b83ec['forceValue']:!_0x2dc914['value'];_0x397d2a['change'](()=>{const _0x2777d6=Array['from'](_0x27323c['getRanges']());for(const _0x60efba of _0x2777d6){const _0xcd5643=_0x3465cb?[_0x60efba]:io(_0x161d39,_0x60efba,_0x397d2a);for(const _0x357721 of _0xcd5643)_0x903cc9['markInlineFormat'](_0x357721,{'commandName':_0x161d39,'commandParams':[{'forceValue':_0x3465cb}]});}});}),_0x903cc9['descriptionFactory']['registerDescriptionCallback'](_0x1d61fd=>{if('formatBlock'!=_0x1d61fd['type']&&'formatInline'!=_0x1d61fd['type'])return;const {data:_0x567396}=_0x1d61fd;return _0x567396&&_0x567396['commandName']==_0x161d39?_0x567396['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3e58bf,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x3e58bf,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x1edda9{['afterInit'](){const _0x51b1a9=this['editor'];if(!_0x51b1a9['plugins']['has']('Style')||!_0x51b1a9['plugins']['has']('DataSchema'))return;const _0x16318b=_0x51b1a9['plugins']['get']('TrackChangesEditing'),_0x282f4a=_0x51b1a9['locale'],_0x2f29ab=_0x51b1a9['config']['get']('style')||{},_0x4e4c22=_0x51b1a9['plugins']['get']('GeneralHtmlSupport'),_0x4a1c85=_0x51b1a9['plugins']['get']('StyleUtils')['normalizeConfig'](_0x51b1a9['plugins']['get']('DataSchema'),_0x2f29ab['definitions']);_0x16318b['enableDefaultAttributesIntegration']('style');const _0x154a51=new Set();for(const _0x20e377 of _0x4a1c85['block']){const _0x176a56=_0x4e4c22['getGhsAttributeNameForElement'](_0x20e377['element']);_0x154a51['add'](_0x176a56);}const _0x44d64f=new Set();for(const _0xbd1629 of _0x4a1c85['inline']){const _0x2f5d36=_0x4e4c22['getGhsAttributeNameForElement'](_0xbd1629['element']);_0x44d64f['add'](_0x2f5d36);for(const _0x1559ab of _0xbd1629['ghsAttributes'])_0x44d64f['add'](_0x1559ab);}for(const _0x56ace9 of _0x154a51)_0x16318b['registerBlockAttribute'](_0x56ace9),_0x16318b['descriptionFactory']['registerAttributeLabel'](_0x56ace9,o(_0x282f4a,'FORMAT_STYLE'));for(const _0xb78b3a of _0x44d64f)_0x16318b['registerInlineAttribute'](_0xb78b3a),_0x16318b['descriptionFactory']['registerAttributeLabel'](_0xb78b3a,o(_0x282f4a,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf93806=this['editor'],_0x3b560d=_0xf93806['locale'];_0xf93806['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x391a51=>{if('formatBlock'!=_0x391a51['type']&&'formatInline'!=_0x391a51['type'])return;const {data:_0x432e30}=_0x391a51;return _0x432e30&&'style'===_0x432e30['commandName']?_0x432e30['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3b560d,'*Set\x20format:*\x20%0',_0x432e30['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x3b560d,'*Remove\x20format:*\x20%0',_0x432e30['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x1edda9{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4457ef){super(_0x4457ef),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3ed70b=this['editor'],_0x26719f=_0x3ed70b['model']['document']['selection'];if(!_0x3ed70b['plugins']['has']('TableEditing'))return;const _0x275817=_0x3ed70b['locale'],_0x2b9502=_0x3ed70b['plugins']['get']('TrackChangesEditing'),_0x686a48=_0x3ed70b['plugins']['get']('TableUtils');_0x2b9502['descriptionFactory']['registerElementLabel']('table',_0x496adf=>o(_0x275817,'ELEMENT_TABLE',_0x496adf)),this['_setupColumnsRowsFixing'](),_0x2b9502['enableCommand']('insertTable'),_0x2b9502['enableCommand']('selectTableRow'),_0x2b9502['enableCommand']('selectTableColumn');for(const _0x213f4c of['insertTableRowAbove','insertTableRowBelow']){const _0x5c7d73=_0x3ed70b['commands']['get'](_0x213f4c);_0x2b9502['enableCommand'](_0x213f4c,_0x2bbe3f=>{_0x3ed70b['model']['change'](_0x1a3b44=>{_0x2bbe3f();const _0x5566b8='above'===_0x5c7d73['order'],_0x19de51=_0x686a48['getSelectionAffectedTableCells'](_0x26719f),_0x16a96d=_0x686a48['getRowIndexes'](_0x19de51),_0x539360=_0x5566b8?_0x16a96d['first']-0x1:_0x16a96d['last']+0x1,_0x5ccdf8=_0x19de51[0x0]['findAncestor']('table'),_0x536e0a=_0x686a48['createTableWalker'](_0x5ccdf8,{'startRow':_0x539360,'endRow':_0x539360}),_0x7c86a2=Array['from'](_0x536e0a)['map'](_0x265df9=>_0x1a3b44['createRangeOn'](_0x265df9['cell']));_0x2b9502['markMultiRangeInsertion'](_0x7c86a2,'tableRow');});});}for(const _0x21f91a of['insertTableColumnLeft','insertTableColumnRight']){const _0x62f904=_0x3ed70b['commands']['get'](_0x21f91a);_0x2b9502['enableCommand'](_0x21f91a,_0x55418e=>{_0x3ed70b['model']['change'](_0x59f4ef=>{_0x55418e();const _0xb44119='left'===_0x62f904['order'],_0x15c2a2=_0x686a48['getSelectionAffectedTableCells'](_0x26719f),_0x577d87=_0x686a48['getColumnIndexes'](_0x15c2a2),_0x29a62f=_0xb44119?_0x577d87['first']-0x1:_0x577d87['last']+0x1,_0x1a78e4=_0x15c2a2[0x0]['findAncestor']('table'),_0x4c98e5=_0x686a48['createTableWalker'](_0x1a78e4,{'startRow':0x0,'column':_0x29a62f,'includeAllSlots':!0x1}),_0x563497=Array['from'](_0x4c98e5)['map'](_0x2797c0=>_0x59f4ef['createRangeOn'](_0x2797c0['cell']));_0x2b9502['markMultiRangeInsertion'](_0x563497,'tableColumn');});});}for(const _0x40a36e of['removeTableRow','removeTableColumn']){const _0x1564ef=_0x40a36e['substr'](0xb),_0x237186=_0x1564ef['toLowerCase'](),_0x5f1982=_0x237186['substr'](0x0,0x3)+'span',_0x41d3e1='table'+_0x1564ef,_0x552d86='min'+_0x1564ef,_0x486955='max'+_0x1564ef;_0x2b9502['enableCommand'](_0x40a36e,()=>{_0x3ed70b['model']['change'](_0x21a93f=>{const _0x111853=_0x686a48['getSelectionAffectedTableCells'](_0x26719f),_0x1c8c10=_0x111853[0x0]['findAncestor']('table');let _0x5c4076;if('removeTableRow'==_0x40a36e){const _0x4c25f4=_0x686a48['getRowIndexes'](_0x111853);_0x5c4076={'startRow':_0x4c25f4['first'],'endRow':_0x4c25f4['last'],'includeAllSlots':!0x0};}else{const _0xe8b32e=_0x686a48['getColumnIndexes'](_0x111853);_0x5c4076={'startColumn':_0xe8b32e['first'],'endColumn':_0xe8b32e['last'],'includeAllSlots':!0x0};}const _0x2306d4=_0x686a48['createTableWalker'](_0x1c8c10,_0x5c4076),_0x11c856=Array['from'](_0x2306d4)['map'](({cell:_0x152b10})=>_0x152b10),_0x363ae8=Ee(_0x11c856['filter'](_0x2604a1=>_0x2604a1['hasAttribute'](_0x5f1982))),_0x197647=Ee(_0x11c856['filter'](_0x318f3f=>!_0x318f3f['hasAttribute'](_0x5f1982)))['map'](_0x2acf61=>_0x21a93f['createRangeOn'](_0x2acf61)),_0x15bccf=_0x2b9502['markMultiRangeDeletion'](_0x197647,_0x41d3e1);if(_0x15bccf&&('tableRow'==_0x15bccf['subType']||'tableColumn'==_0x15bccf['subType'])){const _0x3aaa90=this['_getSuggestionCoords'](_0x15bccf);for(const _0x47d027 of _0x363ae8){const _0x20605e=_0x21a93f['createRangeOn'](_0x47d027),_0x3370aa=_0x686a48['getCellLocation'](_0x47d027),_0x35a83a=_0x47d027['getAttribute'](_0x5f1982)-0x1,_0x3b8ce2=_0x3aaa90[_0x552d86],_0x56016d=_0x3aaa90[_0x486955];_0x3b8ce2<=_0x3370aa[_0x237186]&&_0x3370aa[_0x237186]+_0x35a83a<=_0x56016d&&_0x15bccf['addRange'](_0x20605e);}}});});}function _0x4c682d(_0x145e08){const _0x387722=Array['from'](_0x26719f['getRanges']())['map'](_0x9c5122=>_0x25fa27['fromRange'](_0x9c5122));_0x3ed70b['model']['change'](_0x8d638f=>{const _0x592cbd=_0x8d638f['batch'];_0x145e08=_0x145e08['filter'](_0x4f6b76=>'$graveyard'!=_0x4f6b76['root']['rootName']),_0x8d638f['setSelection'](_0x145e08),_0x3ed70b['commands']['get']('removeTableRow')['refresh'](),_0x3ed70b['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3ed70b['model']['enqueueChange'](()=>{_0x3ed70b['model']['enqueueChange'](_0x592cbd,_0x509b83=>{const _0x7893fc=_0x387722['filter'](_0x4c206c=>'$graveyard'!=_0x4c206c['root']['rootName']);_0x7893fc['length']>0x0&&_0x509b83['setSelection'](_0x7893fc);for(const _0x4a771a of _0x387722)_0x4a771a['detach']();});});});}function _0x1d60ef(_0x78b3e4){_0x3ed70b['model']['change'](_0x125b43=>{const _0x205b77=Array['from'](_0x26719f['getRanges']())['map'](_0x297fdc=>_0x25fa27['fromRange'](_0x297fdc)),_0x269a11=[];for(const _0x1ff100 of _0x78b3e4)for(const _0x285275 of _0x1ff100['getItems']({'shallow':!0x0}))_0x269a11['push'](_0x285275);for(const _0x3a825f of _0x269a11)'$graveyard'!=_0x3a825f['root']['rootName']&&(_0x125b43['setSelection'](_0x125b43['createPositionAt'](_0x3a825f,0x0)),_0x3ed70b['commands']['get']('removeTableColumn')['refresh'](),_0x3ed70b['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3e3c4f=_0x205b77['filter'](_0x2a4573=>'$graveyard'!=_0x2a4573['root']['rootName']);_0x3e3c4f['length']>0x0&&_0x125b43['setSelection'](_0x3e3c4f);for(const _0x31ff41 of _0x205b77)_0x31ff41['detach']();});}function _0x5679cb(_0x3e2ce4,_0x30a0b1){return _0x30a0b1['every'](_0x38f358=>_0x3e2ce4['some'](_0x4fa42e=>_0x4fa42e['end']['isEqual'](_0x38f358['start'])||_0x38f358['end']['isEqual'](_0x4fa42e['start'])));}function _0x2cba41(_0x109f98,_0x505ee5){return!_0x109f98['some'](_0x23d092=>_0x505ee5['some'](_0x5dc380=>_0x23d092['isIntersecting'](_0x5dc380)))&&_0x109f98['some'](_0x38e468=>_0x505ee5['some'](_0x5248b6=>_0x38e468['end']['isTouching'](_0x5248b6['start'])));}_0x3ed70b['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x365fb0,_0x2215a1,_0x1c2afe)=>{if(!_0x1c2afe['options']['showSuggestionHighlights'])return;const _0x141dcd=_0x2215a1['item'];if(!_0x141dcd)return;const _0x3a21d1=_0x1c2afe['mapper']['toViewElement'](_0x141dcd);function _0x32aab0(_0x42deb8){return Array['isArray'](_0x42deb8)?_0x42deb8:[_0x42deb8];}_0x3a21d1&&'tableCell'===_0x141dcd['name']&&_0x295f7f(_0x3a21d1,_0x1c2afe['writer'],(_0xd9563d,_0x5b90be,_0x23a161)=>_0x23a161['addClass'](_0x32aab0(_0x5b90be['classes']),_0xd9563d),(_0x1f19f7,_0x547f3c,_0x3db05a)=>_0x3db05a['removeClass'](_0x32aab0(_0x547f3c['classes']),_0x1f19f7));},{'priority':'highest'}),_0x2b9502['descriptionFactory']['registerDescriptionCallback'](_0x2537ee=>{if('insertion'!=_0x2537ee['type']&&'deletion'!=_0x2537ee['type'])return;const _0x2c2449=_0x2537ee['getContainedElement']();if(null!=_0x2c2449&&_0x2c2449['is']('element','table')){if('insertion'==_0x2537ee['type']){const _0x3da141=_0x2537ee['getItems']()['filter'](_0x364955=>_0x364955['is']('$textProxy'))['map'](_0x284cd4=>_0x284cd4['data']);if(_0x3da141['length'])return{'type':'insertion','content':o(_0x275817,'*Insert:*\x20%0',o(_0x275817,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3da141['join']('\x20')+'\x22'))};}if('deletion'==_0x2537ee['type']){const _0x36bd79=_0x2537ee['getItems']()['filter'](_0x209528=>_0x209528['is']('$textProxy'))['map'](_0x47cbed=>_0x47cbed['data']);if(_0x36bd79['length'])return{'type':'deletion','content':o(_0x275817,'*Remove:*\x20%0',o(_0x275817,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x36bd79['join']('\x20')+'\x22'))};}}}),_0x2b9502['descriptionFactory']['registerDescriptionCallback'](_0x577af0=>{if('tableRow'==_0x577af0['subType']){const _0x9bcfd4=_0x577af0['getItems']()['filter'](_0x1e104a=>_0x1e104a['is']('$textProxy'))['map'](_0x4749ea=>_0x4749ea['data']),_0x2984fe=this['_getSuggestionCoords'](_0x577af0),_0x3108f6=_0x2984fe['maxRow']-_0x2984fe['minRow']+0x1;if('insertion'==_0x577af0['type'])return _0x9bcfd4['length']?{'type':'insertion','content':o(_0x275817,'*Insert:*\x20%0',o(_0x275817,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3108f6,'\x22'+_0x9bcfd4['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x275817,'*Insert:*\x20%0',o(_0x275817,'ELEMENT_TABLE_ROW',_0x3108f6))};if('deletion'==_0x577af0['type'])return _0x9bcfd4['length']?{'type':'deletion','content':o(_0x275817,'*Remove:*\x20%0',o(_0x275817,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3108f6,'\x22'+_0x9bcfd4['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x275817,'*Remove:*\x20%0',o(_0x275817,'ELEMENT_TABLE_ROW',_0x3108f6))};}if('tableColumn'==_0x577af0['subType']){const _0x17891f=_0x577af0['getItems']()['filter'](_0x425ee6=>_0x425ee6['is']('$textProxy'))['map'](_0x2fabe6=>_0x2fabe6['data']),_0x26e81f=this['_getSuggestionCoords'](_0x577af0),_0xe8fb82=_0x26e81f['maxColumn']-_0x26e81f['minColumn']+0x1;if('insertion'==_0x577af0['type'])return _0x17891f['length']?{'type':'insertion','content':o(_0x275817,'*Insert:*\x20%0',o(_0x275817,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xe8fb82,'\x22'+_0x17891f['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x275817,'*Insert:*\x20%0',o(_0x275817,'ELEMENT_TABLE_COLUMN',_0xe8fb82))};if('deletion'==_0x577af0['type'])return _0x17891f['length']?{'type':'deletion','content':o(_0x275817,'*Remove:*\x20%0',o(_0x275817,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xe8fb82,'\x22'+_0x17891f['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x275817,'*Remove:*\x20%0',o(_0x275817,'ELEMENT_TABLE_COLUMN',_0xe8fb82))};}}),_0x2b9502['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x4c682d),_0x2b9502['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x4c682d),_0x2b9502['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1d60ef),_0x2b9502['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1d60ef),_0x2b9502['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5679cb),_0x2b9502['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5679cb),_0x2b9502['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x2cba41),_0x2b9502['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x2cba41);}['_acceptFormatSuggestionCallbackFactory'](){const _0x382686=this['editor'],_0x442170=_0x382686['model']['document']['selection'];return(_0x58aed3,_0x395800)=>{_0x382686['model']['change'](_0x2a5cdb=>{const {commandName:_0x381bdb,commandParams:_0x59489e}=_0x395800;let _0x44d2a0=_0x58aed3[0x0]['end']['nodeBefore'];_0x59489e&&_0x59489e[0x0]&&!0x1===_0x59489e[0x0]['forceValue']&&(_0x44d2a0=_0x58aed3[0x0]['start']['nodeAfter']);const _0x40a5b7=_0x2a5cdb['createRangeIn'](_0x44d2a0);if('$graveyard'==_0x40a5b7['root']['rootName'])return;const _0x23fb63=Array['from'](_0x442170['getRanges']())['map'](_0x206b13=>_0x25fa27['fromRange'](_0x206b13));_0x2a5cdb['setSelection'](_0x40a5b7),_0x382686['commands']['get'](_0x381bdb)['refresh'](),_0x59489e['push']({'forceDefaultExecution':!0x0}),_0x382686['execute'](_0x381bdb,..._0x59489e);const _0x44e518=_0x23fb63['filter'](_0x2a15df=>'$graveyard'!=_0x2a15df['root']['rootName']);_0x44e518['length']>0x0&&_0x2a5cdb['setSelection'](_0x44e518);for(const _0x533706 of _0x23fb63)_0x533706['detach']();});};}['_getCoordsForCells'](_0x2d6ecb){const _0x116574=this['editor']['plugins']['get']('TableUtils');let _0xc39596=Number['MAX_SAFE_INTEGER'],_0x5797ce=Number['MIN_SAFE_INTEGER'],_0x1cb452=Number['MAX_SAFE_INTEGER'],_0xfe6efc=Number['MIN_SAFE_INTEGER'];for(const _0xc7a8c9 of _0x2d6ecb){if('$graveyard'==_0xc7a8c9['root']['rootName'])continue;const {row:_0x4f6d53,column:_0x14f05b}=_0x116574['getCellLocation'](_0xc7a8c9),_0x4ae614=_0xc7a8c9['hasAttribute']('rowspan')?_0xc7a8c9['getAttribute']('rowspan')-0x1:0x0,_0x5d0e5e=_0xc7a8c9['hasAttribute']('colspan')?_0xc7a8c9['getAttribute']('colspan')-0x1:0x0;_0xc39596=_0x4f6d53<_0xc39596?_0x4f6d53:_0xc39596,_0x5797ce=_0x4f6d53+_0x4ae614>_0x5797ce?_0x4f6d53+_0x4ae614:_0x5797ce,_0x1cb452=_0x14f05b<_0x1cb452?_0x14f05b:_0x1cb452,_0xfe6efc=_0x14f05b+_0x5d0e5e>_0xfe6efc?_0x14f05b+_0x5d0e5e:_0xfe6efc;}return{'minRow':_0xc39596,'maxRow':_0x5797ce,'minColumn':_0x1cb452,'maxColumn':_0xfe6efc};}['_setupColumnsRowsFixing'](){const _0x50d066=this['editor'],_0x10e785=_0x50d066['plugins']['get']('TrackChangesEditing'),_0x25cfc3=_0x50d066['plugins']['get']('TableUtils');_0x50d066['model']['document']['on']('change:data',()=>{const _0x15b146=Array['from'](_0x50d066['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4846e7,data:_0x285a69}of _0x15b146){const {group:_0x1e05d8,id:_0x4d7c10,subType:_0x315ecb}=_0x10e785['_splitMarkerName'](_0x4846e7);if('suggestion'!=_0x1e05d8)continue;if(null!=_0x285a69['oldRange'])continue;const _0x36c9d5=_0x10e785['getSuggestion'](_0x4d7c10);this['_tablePostFixingSubtypes']['includes'](_0x315ecb)&&this['_tableSuggestions']['add'](_0x36c9d5);}},{'priority':'low'});const _0x303101=(_0x25c863,_0x296425)=>{let _0x35d179=!0x1;const _0xe9a0c9=_0x296425['createRangeOn'](_0x25c863),_0x31c12e=_0x25c863['findAncestor']('table'),_0x2f304d=_0x25cfc3['getCellLocation'](_0x25c863);for(const _0x1c29a7 of this['_tableSuggestions']){const _0x37b3a3=_0x1c29a7['subType'],_0x14e75e=_0x37b3a3['startsWith']('tablePaste'),_0x3226ed=_0x37b3a3['substr'](_0x14e75e?0xa:0x5),_0x4435ef=_0x3226ed['toLowerCase'](),_0x1f68c3=_0x4435ef['substr'](0x0,0x3)+'span',_0x2315c9='min'+_0x3226ed,_0x4b7624='max'+_0x3226ed;if(!_0x1c29a7['isInContent'])continue;if(_0x31c12e!=_0x1c29a7['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x1c29a7['isIntersectingWithRange'](_0xe9a0c9))continue;const _0x4e9b5b=_0x25c863['hasAttribute'](_0x1f68c3)?_0x25c863['getAttribute'](_0x1f68c3)-0x1:0x0,_0x45c24a=this['_getSuggestionCoords'](_0x1c29a7),_0x2eaf74=_0x45c24a[_0x2315c9],_0x3122f0=_0x45c24a[_0x4b7624];_0x2eaf74<=_0x2f304d[_0x4435ef]&&_0x2f304d[_0x4435ef]+_0x4e9b5b<=_0x3122f0&&(_0x1c29a7['addRange'](_0xe9a0c9),_0x35d179=!0x0);}return _0x35d179;};_0x50d066['model']['document']['registerPostFixer'](_0x4b16d3=>{let _0x1e6a9a=!0x1;for(const _0x32cd0d of _0x50d066['model']['document']['differ']['getChanges']())if('insert'==_0x32cd0d['type']){if('tableRow'==_0x32cd0d['name']){for(const _0xe48854 of _0x32cd0d['position']['nodeAfter']['getChildren']())_0x1e6a9a=_0x1e6a9a||_0x303101(_0xe48854,_0x4b16d3);}else'tableCell'==_0x32cd0d['name']&&(_0x1e6a9a=_0x1e6a9a||_0x303101(_0x32cd0d['position']['nodeAfter'],_0x4b16d3));}return _0x1e6a9a;});}['_getSuggestionCoords'](_0x173fe8){return this['_getCoordsForCells'](_0x173fe8['getRanges']()['map'](_0x563c16=>_0x563c16['start']['nodeAfter']));}}function Ee(_0x51aade){return Array['from'](new Set(_0x51aade)['values']());}class St extends _0x1edda9{static get['requires'](){return[jt];}['afterInit'](){const _0x3c62e6=this['editor'],_0x32c3b6=_0x3c62e6['model']['document']['selection'],_0x3f6d8c=_0x3c62e6['locale'];if(!_0x3c62e6['plugins']['has']('TableEditing'))return;const _0x386562=_0x3c62e6['plugins']['get']('TrackChangesEditing'),_0x3f5d0f=_0x3c62e6['plugins']['get']('TableUtils'),_0x3d7f9b=_0x3c62e6['plugins']['get'](jt);_0x3d7f9b['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x386562['enableCommand']('mergeTableCells',()=>{const _0x5d8ac6=_0x3f5d0f['getSelectionAffectedTableCells'](_0x3c62e6['model']['document']['selection']);_0x3c62e6['model']['change'](()=>{_0x386562['markMultiRangeBlockFormat'](_0x5d8ac6,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3c62e6['commands']['get']('mergeTableCells')['on']('execute',(_0xae1975,_0x514584)=>{_0x3c62e6['commands']['get']('trackChanges')['value']&&(_0x514584['length']>0x0&&_0x514584[_0x514584['length']-0x1]&&_0x514584[_0x514584['length']-0x1]['forceDefaultExecution']||_0x386562['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0xae1975['stop']());},{'priority':'highest'});for(const _0x3041d9 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x23bf54=_0x3c62e6['commands']['get'](_0x3041d9);_0x386562['enableCommand'](_0x3041d9,()=>{const _0x199f2e=_0x3c62e6['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4c2ad9=>_0x4c2ad9['is']('element','tableCell')),_0x38bc9a=_0x23bf54['value'];_0x3c62e6['model']['change'](()=>{_0x386562['markMultiRangeBlockFormat']([_0x199f2e,_0x38bc9a],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x57f275 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x56151a=_0x3c62e6['commands']['get'](_0x57f275);_0x386562['enableCommand'](_0x57f275,()=>{const _0x15d9b0=_0x3f5d0f['getSelectionAffectedTableCells'](_0x3c62e6['model']['document']['selection'])[0x0],_0x4e3552=_0x15d9b0['findAncestor']('table'),{column:_0x245718,row:_0x4a8da0}=_0x3f5d0f['getCellLocation'](_0x15d9b0);let _0x10620e=[];if('horizontally'==_0x56151a['direction']){const _0x2d1a66=_0x3f5d0f['createTableWalker'](_0x4e3552,{'startRow':_0x4a8da0,'endRow':_0x4a8da0,'includeAllSlots':!0x0});_0x10620e=Array['from'](_0x2d1a66)['map'](_0x3a0456=>_0x3a0456['cell']);}else{const _0x1648a9=_0x3f5d0f['createTableWalker'](_0x4e3552,{'column':_0x245718,'includeAllSlots':!0x0});_0x10620e=Array['from'](_0x1648a9)['map'](_0x10fc7f=>_0x10fc7f['cell']);}_0x3c62e6['model']['change'](_0x500ec8=>{_0x386562['markBlockFormat'](_0x500ec8['createRangeOn'](_0x15d9b0),{'commandName':_0x57f275,'commandParams':[]},_0x10620e,_0x57f275);});});}_0x386562['descriptionFactory']['registerDescriptionCallback'](_0x497b7b=>{if('formatBlock'!=_0x497b7b['type']&&'formatInline'!=_0x497b7b['type'])return;const {data:_0x557a35}=_0x497b7b;return _0x557a35&&'mergeTableCells'==_0x557a35['commandName']?{'type':'format','content':o(_0x3f6d8c,'*Merge\x20cells*')}:void 0x0;}),_0x386562['descriptionFactory']['registerDescriptionCallback'](_0x177ec8=>{if('formatBlock'!=_0x177ec8['type']&&'formatInline'!=_0x177ec8['type'])return;const {data:_0x463e5d}=_0x177ec8;return _0x463e5d?'splitTableCellVertically'==_0x463e5d['commandName']?{'type':'format','content':o(_0x3f6d8c,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x463e5d['commandName']?{'type':'format','content':o(_0x3f6d8c,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x2689ea=_0x3d7f9b['_acceptFormatSuggestionCallbackFactory']();for(const _0x3b0ee1 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x386562['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3b0ee1,'accept',_0x2689ea);for(const _0x281735 of['splitTableCellVertically','splitTableCellHorizontally'])_0x386562['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x281735,'accept',_0x2689ea);_0x386562['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2bb887=>{_0x3c62e6['model']['change'](_0x469c62=>{const _0x1a4d73=Array['from'](_0x32c3b6['getRanges']())['map'](_0x99430c=>_0x25fa27['fromRange'](_0x99430c));_0x469c62['setSelection'](_0x2bb887),_0x3c62e6['commands']['get']('mergeTableCells')['refresh'](),_0x3c62e6['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x491703=_0x1a4d73['filter'](_0x32f9c7=>'$graveyard'!=_0x32f9c7['root']['rootName']);_0x491703['length']>0x0&&_0x469c62['setSelection'](_0x491703);for(const _0x35bb5f of _0x1a4d73)_0x35bb5f['detach']();});});for(const _0x1d5039 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2b86d8=_0x3c62e6['commands']['get'](_0x1d5039);_0x2b86d8['on']('set:isEnabled',(_0x1b6f0c,_0x590a66,_0x176b27)=>{if(_0x176b27){const _0x5be1ab=_0x3c62e6['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x48d17a=>_0x48d17a['is']('element','tableCell'));this['_areMergableCells'](_0x2b86d8['value'],_0x5be1ab)||(_0x1b6f0c['return']=!0x1,_0x1b6f0c['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x3d1d28=this['editor']['commands']['get']('mergeTableCells'),_0x2a97ea=this['editor']['plugins']['get']('TableUtils');if(!_0x3d1d28['isEnabled'])return!0x1;const _0x22d1f4=_0x2a97ea['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1d3557 of _0x22d1f4)for(const _0x332a1c of _0x22d1f4)if(_0x1d3557!=_0x332a1c&&!this['_areMergableCells'](_0x1d3557,_0x332a1c))return!0x1;return!0x0;}['_areMergableCells'](_0x1333a0,_0x5b42e6){const _0x252733=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1cbe0b=this['editor']['model']['createRangeOn'](_0x1333a0),_0x20fcd1=this['editor']['model']['createRangeOn'](_0x5b42e6),_0x25590f=new Set(),_0x2ce564=new Set();for(const _0x47b47e of _0x252733['getSuggestions']())if(('insertion'==_0x47b47e['type']||'deletion'==_0x47b47e['type']||'mergeTableCells'==_0x47b47e['subType'])&&_0x47b47e['isInContent']){for(const _0x30c3c of _0x47b47e['getRanges']())_0x30c3c['containsRange'](_0x1cbe0b,!0x0)&&_0x25590f['add'](_0x47b47e['type']+':'+_0x47b47e['author']['id']),_0x30c3c['containsRange'](_0x20fcd1,!0x0)&&_0x2ce564['add'](_0x47b47e['type']+':'+_0x47b47e['author']['id']);}if(_0x25590f['size']!=_0x2ce564['size'])return!0x1;for(const _0x59b0c0 of _0x25590f)if(!_0x2ce564['has'](_0x59b0c0))return!0x1;return!0x0;}}class At extends _0x1edda9{static get['requires'](){return[jt];}['afterInit'](){const _0x2c899a=this['editor'];if(!_0x2c899a['plugins']['has']('TableEditing'))return;const _0x457616=_0x2c899a['locale'],_0x6ba64=_0x2c899a['plugins']['get']('TrackChangesEditing');_0x6ba64['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x6ba64['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x6ba64['registerBlockAttribute']('headingRows'),_0x6ba64['registerBlockAttribute']('headingColumns'),_0x6ba64['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x457616,'FORMAT_HEADER_ROW')),_0x6ba64['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x457616,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4675d5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x96f7f2=this['editor']['plugins']['get']('TableUtils'),_0xa5f749=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x1e1862({showActiveMarker:_0x43660d=!0x0,setDataAttribute:_0x2dfbbe=!0x0}={}){return(_0xadf3b2,_0x3e66dc,_0x9dccd2)=>{const {type:_0x7b1050,id:_0xabd7f9}=_0x4675d5['_splitMarkerName'](_0x3e66dc['markerName']),_0x258caa=_0x4675d5['getSuggestion'](_0xabd7f9),_0x46349a=_0x258caa['data'];if('formatBlock'!=_0x258caa['type']||!_0x46349a||'setTableColumnHeader'!=_0x46349a['commandName'])return;if(_0x3e66dc['item'])return void _0xadf3b2['stop']();if(!_0x9dccd2['consumable']['consume'](_0x3e66dc['markerRange'],_0xadf3b2['name']))return;const _0x1346a9=_0x3e66dc['markerRange']['start']['nodeAfter'],_0x407096=_0x3e66dc['markerRange']['end']['nodeBefore'],_0x3a5519=_0x1346a9['parent']['parent'],{column:_0x17c938}=_0x96f7f2['getCellLocation'](_0x1346a9),{column:_0x250166}=_0x96f7f2['getCellLocation'](_0x407096);for(let _0x58e18c=_0x17c938;_0x58e18c<=_0x250166;_0x58e18c++){const _0x2e5b8b=_0x96f7f2['createTableWalker'](_0x3a5519,{'column':_0x58e18c,'includeAllSlots':!0x1});for(const _0x534cec of _0x2e5b8b){const _0x1aa03d=_0x534cec['cell'],_0x1cd729=_0x9dccd2['mapper']['toViewElement'](_0x1aa03d);_0x9dccd2['writer']['addClass']('ck-suggestion-marker-'+_0x7b1050,_0x1cd729),_0x2dfbbe&&_0x9dccd2['writer']['setAttribute']('data-suggestion',_0xabd7f9,_0x1cd729),_0x9dccd2['mapper']['bindElementToMarker'](_0x1cd729,_0x3e66dc['markerName']),_0x43660d&&(_0x4675d5['activeMarkers']['includes'](_0x3e66dc['markerName'])?_0x9dccd2['writer']['addClass']('ck-suggestion-marker--active',_0x1cd729):_0x9dccd2['writer']['removeClass']('ck-suggestion-marker--active',_0x1cd729));}}};}_0x4675d5['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0xa5f749),_0x4675d5['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0xa5f749),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x1e1862(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x54f656,_0x31c10d,_0x1377c8)=>{_0x1377c8['options']['showSuggestionHighlights']&&_0x1e1862({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x54f656,_0x31c10d,_0x1377c8);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x57e246,_0x124702,_0x25158f)=>{const {type:_0x1c66b4,id:_0x3257f9}=_0x4675d5['_splitMarkerName'](_0x124702['markerName']),_0x3c263d=_0x4675d5['getSuggestion'](_0x3257f9),_0x5bba5b=_0x3c263d['data'];if('formatBlock'!=_0x3c263d['type']||!_0x5bba5b||'setTableColumnHeader'!=_0x5bba5b['commandName'])return;const _0x4a2391=_0x25158f['mapper']['markerNameToElements'](_0x124702['markerName']);if(_0x4a2391){for(const _0x320227 of _0x4a2391)_0x25158f['writer']['removeClass']('ck-suggestion-marker-'+_0x1c66b4,_0x320227),_0x25158f['writer']['removeClass']('ck-suggestion-marker--active',_0x320227),_0x25158f['writer']['removeAttribute']('data-suggestion',_0x320227),_0x25158f['mapper']['unbindElementFromMarkerName'](_0x320227,_0x124702['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x799a93=this['editor'],_0x566515=_0x799a93['locale'];function _0x28824b(_0x4b471c){return{'type':'format','content':o(_0x566515,'*Format:*\x20%0',_0x4b471c)};}_0x799a93['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x48b2e1=>{if('formatBlock'!=_0x48b2e1['type'])return;const {data:_0x130d18}=_0x48b2e1;if(_0x130d18){if('setTableRowHeader'==_0x130d18['commandName']){const _0x26daa5=_0x130d18['commandParams'][0x0]['forceValue'];return _0x28824b(o(_0x566515,_0x26daa5?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x130d18['commandName']){const _0x192863=_0x130d18['commandParams'][0x0]['forceValue'];return _0x28824b(o(_0x566515,_0x192863?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x544d84=>[_0x544d84,null]));class It extends _0x1edda9{static get['requires'](){return[jt];}['afterInit'](){const _0x41e03e=this['editor'];if(!_0x41e03e['plugins']['has']('TableClipboard'))return;const _0x31fc9a=_0x41e03e['plugins']['get']('TrackChangesEditing'),_0x224a6b=_0x41e03e['plugins']['get']('TableUtils'),_0x4ac191=_0x41e03e['plugins']['get'](jt),_0x55e314=_0x41e03e['plugins']['get']('TableClipboard');_0x4ac191['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x41e03e['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x41e03e['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0xc52a7e=null;_0x41e03e['model']['on']('insertContent',(_0x5b13b5,_0x3f8e78)=>{const [_0x2a2903,_0x5790bd]=_0x3f8e78,_0x514ff4=_0x3f8e78[_0x3f8e78['length']-0x1];_0x514ff4&&_0x514ff4['forceDefaultExecution']||_0x31fc9a['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0xad51dc,_0x56ee66,_0x98d7c8,_0x36ac8a,_0x1f855e){if(_0x56ee66&&!_0x56ee66['is']('documentSelection'))return!0x1;const _0x36aa9a=_0x1f855e['getTableIfOnlyTableInContent'](_0xad51dc,_0x98d7c8);if(!_0x36aa9a||!he(_0x36aa9a,void 0x0,_0x36ac8a))return!0x1;const _0x3192cb=_0x36ac8a['getSelectionAffectedTableCells'](_0x98d7c8['document']['selection']);if(!_0x3192cb['length'])return!0x1;const _0x276486=_0x3192cb[0x0]['findAncestor']('table'),_0x3b92f2=_0x36ac8a['getRowIndexes'](_0x3192cb),_0x4d75cb=_0x36ac8a['getColumnIndexes'](_0x3192cb),_0x1815ac={'startRow':_0x3b92f2['first'],'endRow':_0x3b92f2['last'],'startColumn':_0x4d75cb['first'],'endColumn':_0x4d75cb['last']};return 0x1==_0x3192cb['length']&&(_0x1815ac['endRow']+=_0x36ac8a['getRows'](_0x36aa9a)-0x1,_0x1815ac['endColumn']+=_0x36ac8a['getColumns'](_0x36aa9a)-0x1),he(_0x276486,_0x1815ac,_0x36ac8a);}(_0x2a2903,_0x5790bd,_0x41e03e['model'],_0x224a6b,_0x55e314)&&(_0x5b13b5['stop'](),_0xc52a7e={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x41e03e['model']['change'](()=>{_0x41e03e['model']['insertContent'](_0x3f8e78[0x0],_0x3f8e78[0x1],_0x3f8e78[0x2],{'forceDefaultExecution':!0x0});const _0x3ac0c5=_0x19ddda(),{rowInsertionRanges:_0x17c9b3,columnInsertionRanges:_0x33041b,insertionRanges:_0x9b868b,deletionRanges:_0x48aad7,cells:_0x15619f}=_0xc52a7e;_0x17c9b3['length']&&_0x31fc9a['markMultiRangeInsertion'](_0x17c9b3,'tablePasteRow',{'tablePasteChainId':_0x3ac0c5}),_0x33041b['length']&&_0x31fc9a['markMultiRangeInsertion'](_0x33041b,'tablePasteColumn',{'tablePasteChainId':_0x3ac0c5}),_0x9b868b['length']&&(_0x31fc9a['markMultiRangeInsertion'](_0x9b868b,'tablePaste',{'tablePasteChainId':_0x3ac0c5,'skipNestingCheck':!0x0}),_0x9b868b['forEach'](_0x468c84=>_0x468c84['detach']?.())),_0x48aad7['length']&&(_0x31fc9a['markMultiRangeDeletion'](_0x48aad7,'tablePaste',{'tablePasteChainId':_0x3ac0c5,'skipNestingCheck':!0x0}),_0x48aad7['forEach'](_0x10faf9=>_0x10faf9['detach']?.()));const _0x415312=_0x31fc9a['markMultiRangeBlockFormat'](_0x15619f['map'](({element:_0x5e60e2})=>_0x5e60e2),{'formatGroupId':_0x19ddda()},[],'tablePasteCell',{'tablePasteChainId':_0x3ac0c5});if(_0x415312){const _0x45b1e9=_0x415312['getMarkers'](),_0x1f914a=[];for(const {element:_0x3224a8,attributes:_0x458e92}of _0x15619f){if(!_0x458e92)continue;const _0x9728a6=_0x41e03e['model']['createRangeOn'](_0x3224a8),_0x20e519=_0x45b1e9['find'](_0x2ba32d=>_0x2ba32d['getRange']()['isEqual'](_0x9728a6));_0x20e519&&_0x1f914a['push']([_0x20e519['name'],_0x458e92]);}_0x1f914a['length']&&_0x415312['setAttribute']('markerAttributes',Object['fromEntries'](_0x1f914a));}_0xc52a7e=null;}));},{'priority':_0x157237['high']+0xa}),_0x41e03e['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x4b6bce,_0x158042)=>{const [_0x2e207d,_0x298bc8,,_0x471780]=_0x158042;if(!_0xc52a7e)return;_0x4b6bce['stop']();const _0x44ae9e=_0x2e207d['cell'],_0x19c724=_0x298bc8,_0xbe7dd1=Pe(_0x44ae9e),_0x3e6793=Pe(_0x19c724);_0x4b6bce['return']=_0x44ae9e;let _0x2bdb45=null,_0x447700=null;if(_0x3e6793||_0xbe7dd1){if(_0xbe7dd1&&!_0x3e6793){_0x471780['remove'](_0x44ae9e['getChild'](0x0));for(const _0x3369e6 of Array['from'](_0x19c724['getChildren']()))_0x471780['insert'](_0x3369e6,_0x44ae9e,'end');const _0x3f24ac=_0xc52a7e['rowInsertionIndexes']['includes'](_0x2e207d['row']),_0x1f9390=_0xc52a7e['columnInsertionIndexes']['includes'](_0x2e207d['column']);_0x3f24ac||_0x1f9390||(_0x2bdb45=_0x25fa27['fromRange'](_0x471780['createRangeIn'](_0x44ae9e)));}else _0x3e6793&&!_0xbe7dd1&&(_0x447700=_0x471780['createRangeIn'](_0x44ae9e));}else{const _0x2598a2=_0x471780['createElement']('tableCellSuggestion'),_0x20bbf7=_0x471780['createElement']('tableCellSuggestion');_0x471780['wrap'](_0x471780['createRangeIn'](_0x44ae9e),_0x20bbf7),_0x471780['insert'](_0x2598a2,_0x44ae9e,0x0);for(const _0x1446bc of Array['from'](_0x19c724['getChildren']()))_0x471780['insert'](_0x1446bc,_0x2598a2,'end');_0x2bdb45=_0x25fa27['fromRange'](_0x471780['createRangeOn'](_0x2598a2)),_0x447700=_0x25fa27['fromRange'](_0x471780['createRangeOn'](_0x20bbf7));}const _0x9a3a64=Array['from'](_0x19c724['getAttributes']())['filter'](([_0x11b9de])=>ge['includes'](_0x11b9de));_0xc52a7e['cells']['push']({'element':_0x44ae9e,'attributes':_0x9a3a64['length']?Object['fromEntries'](_0x9a3a64):null}),_0x2bdb45&&_0xc52a7e['insertionRanges']['push'](_0x2bdb45),_0x447700&&_0xc52a7e['deletionRanges']['push'](_0x447700);},{'priority':'high'}),_0x224a6b['on']('insertColumns',(_0xdf7e60,_0x3fbe6b)=>{const [_0x5ac61c,_0xfa22d2={}]=_0x3fbe6b;if(!_0xc52a7e)return;const _0x20bb2d=_0xfa22d2['at']||0x0,_0x2db949=_0xfa22d2['columns']||0x1;_0xc52a7e['columnInsertionIndexes']=new Array(_0x2db949)['fill'](_0x20bb2d)['map']((_0x34888f,_0x4171f4)=>_0x34888f+_0x4171f4);for(const {cell:_0x4dc2be}of _0x224a6b['createTableWalker'](_0x5ac61c,{'startColumn':_0x20bb2d,'endColumn':_0x20bb2d+_0x2db949-0x1}))_0xc52a7e['columnInsertionRanges']['push'](_0x41e03e['model']['createRangeOn'](_0x4dc2be));},{'priority':'low'}),_0x224a6b['on']('insertRows',(_0x5b9429,_0x145bf6)=>{const [_0x2be059,_0x2f9ffe={}]=_0x145bf6;if(!_0xc52a7e)return;const _0x57fc0f=_0x2f9ffe['at']||0x0,_0x44679a=_0x2f9ffe['rows']||0x1;_0xc52a7e['rowInsertionIndexes']=new Array(_0x44679a)['fill'](_0x57fc0f)['map']((_0x46cbf1,_0x1ceae8)=>_0x46cbf1+_0x1ceae8);for(const {cell:_0x102520}of _0x224a6b['createTableWalker'](_0x2be059,{'startRow':_0x57fc0f,'endRow':_0x57fc0f+_0x44679a-0x1}))_0xc52a7e['rowInsertionRanges']['push'](_0x41e03e['model']['createRangeOn'](_0x102520));},{'priority':'low'}),_0x31fc9a['descriptionFactory']['registerDescriptionCallback'](_0x296d4e=>{if(_0x296d4e['subType']&&_0x296d4e['subType']['startsWith']('tablePaste'))return _0x296d4e['previous']?{}:{'type':'insertion','content':o(_0x41e03e['locale'],'*Replace\x20table\x20cells*')};});const _0x2ccfad=()=>!0x1;for(const _0x1e7aa9 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x31fc9a['_suggestionFactory']['registerCustomCallback']('insertion',_0x1e7aa9,'join',_0x2ccfad),_0x31fc9a['_suggestionFactory']['registerCustomCallback']('deletion',_0x1e7aa9,'join',_0x2ccfad),_0x31fc9a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1e7aa9,'join',_0x2ccfad);_0x31fc9a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x2ccfad),_0x31fc9a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x5c4703,_0x11910a,_0x4c2830)=>{const _0x1ebf53=_0x5c4703['map'](_0xb6a734=>_0xb6a734['getContainedElement']())['filter'](_0x580c41=>_0x580c41),_0x4f1fb1=new Map(_0x1ebf53['map'](_0x3fb2cc=>[_0x3fb2cc,null]));if(_0xc52a7e){for(const {element:_0x22d513,attributes:_0x16055d}of _0xc52a7e['cells'])_0x16055d&&_0x4f1fb1['set'](_0x22d513,_0x16055d);}else{if(_0x4c2830&&_0x4c2830['markerAttributes'])for(const [_0x133132,_0xe798ed]of Object['entries'](_0x4c2830['markerAttributes'])){const _0xd521f6=_0x41e03e['model']['markers']['get'](_0x133132),_0x2981d8=_0xd521f6?_0xd521f6['getRange']()['getContainedElement']():null;_0x2981d8&&_0x4f1fb1['set'](_0x2981d8,_0xe798ed);}}_0x41e03e['model']['change'](_0x3d8723=>{for(const [_0x134c82,_0x24e29c]of _0x4f1fb1)_0x3d8723['setAttributes']({...Ce,..._0x24e29c},_0x134c82);});});const _0x13a9ee=(_0x42f562,_0x1ff93b)=>{_0x31fc9a['_suggestionFactory']['registerCustomCallback'](_0x42f562,'tablePaste',_0x1ff93b,(_0x4ad2d3,_0x382f16,_0x197df6)=>{_0x41e03e['model']['change'](_0x38995e=>{const _0x350c2d=[];for(const _0x31114c of _0x4ad2d3){const _0xd708b4=_0x31114c['start']['nodeAfter'];_0xd708b4['is']('element','tableCellSuggestion')&&_0x350c2d['push'](_0xd708b4);}_0x31fc9a['_suggestionFactory']['getSuggestionCallback'](_0x42f562,null,_0x1ff93b)(_0x4ad2d3,_0x382f16,_0x197df6);for(const _0x3b292f of _0x350c2d)'$graveyard'!=_0x3b292f['root']['rootName']&&_0x38995e['unwrap'](_0x3b292f);});});};_0x13a9ee('insertion','accept'),_0x13a9ee('insertion','discard'),_0x13a9ee('deletion','accept'),_0x13a9ee('deletion','discard'),_0x31fc9a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0xa37cab=>{const _0x51e0e8=_0xa37cab['map'](_0x1e7d00=>_0x1e7d00['getContainedElement']()),_0x1aaa2b=_0x51e0e8[0x0]['findAncestor']('table'),{minRow:_0x5dd317,maxRow:_0x39f888}=_0x4ac191['_getCoordsForCells'](_0x51e0e8);_0x224a6b['removeRows'](_0x1aaa2b,{'at':_0x5dd317,'rows':_0x39f888-_0x5dd317+0x1});}),_0x31fc9a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1c73a8=>{const _0x27e984=_0x1c73a8['map'](_0x3355a4=>_0x3355a4['getContainedElement']()),_0x364557=_0x27e984[0x0]['findAncestor']('table'),{minColumn:_0x426db7,maxColumn:_0x5a02b1}=_0x4ac191['_getCoordsForCells'](_0x27e984);_0x224a6b['removeColumns'](_0x364557,{'at':_0x426db7,'columns':_0x5a02b1-_0x426db7+0x1});});const _0x461495=(_0x191d28,_0x80f3da)=>{if(!_0x80f3da['subType']||!_0x80f3da['subType']['startsWith']('tablePaste'))return;const _0x50e969=_0x80f3da['attributes']['tablePasteChainId'],_0x245c7d=_0x31fc9a['getSuggestions']()['filter'](_0x207a1e=>_0x207a1e['isInContent']&&_0x207a1e['attributes']&&_0x207a1e['attributes']['tablePasteChainId']==_0x50e969);_0x245c7d['length']&&_0x80f3da['getAllAdjacentSuggestions']()['length']!=_0x245c7d['length']&&_0x245c7d['reduce']((_0x36245f,_0x474fcb)=>(_0x36245f['next']=_0x474fcb,_0x474fcb['previous']=_0x36245f,_0x474fcb));};function _0x3ef88e(_0x58bc37,_0x261eba=!0x0){const {id:_0x40a093}=_0x31fc9a['_splitMarkerName'](_0x58bc37['markerName']),_0x508441=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5755b5=_0x31fc9a['activeMarkers']['includes'](_0x58bc37['markerName']);return _0x5755b5&&_0x508441['push']('ck-suggestion-marker--active'),{'classes':_0x508441,'attributes':{'data-suggestion':_0x40a093},'priority':_0x5755b5&&_0x261eba?0xbc2:0xbb8};}_0x31fc9a['on']('suggestionLoaded',_0x461495,{'priority':'high'}),_0x31fc9a['on']('suggestionUnloaded',_0x461495,{'priority':'high'}),_0x41e03e['model']['document']['registerPostFixer'](()=>{let _0x158e02=!0x1;const _0x43f1bd=Array['from'](_0x41e03e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4c6749,data:_0x16d589}of _0x43f1bd){const {group:_0x341ef2,type:_0x333f23,id:_0x47c94e}=_0x31fc9a['_splitMarkerName'](_0x4c6749);if('suggestion'!=_0x341ef2||'deletion'!=_0x333f23||_0x16d589['oldRange'])continue;if(!_0x31fc9a['hasSuggestion'](_0x47c94e))continue;const _0x46c7bc=_0x31fc9a['getSuggestion'](_0x47c94e)['getRanges'](),_0xc3bb42=_0x41e03e['plugins']['get']('Users')['me'];for(const _0x5a0781 of _0x31fc9a['getSuggestions']()){if(!_0x5a0781['isInContent']||_0x5a0781['author']!=_0xc3bb42)continue;if('formatBlock'!=_0x5a0781['type']||'tablePasteCell'!=_0x5a0781['subType'])continue;if(_0x5a0781['getRanges']()['every'](_0x23b038=>_0x46c7bc['some'](_0x4bed6f=>_0x4bed6f['containsRange'](_0x23b038,!0x0)))){for(const _0x296b6a of _0x5a0781['getAllAdjacentSuggestions']())_0x296b6a['isInContent']&&(_0x296b6a['discard'](),_0x158e02=!0x0);}}}return _0x158e02;}),_0x41e03e['model']['document']['registerPostFixer'](_0x3b9dba=>{const _0x357f54=_0x41e03e['commands']['get']('redo');if(!_0x357f54||!_0x357f54['_createdBatches']['has'](_0x3b9dba['batch']))return!0x1;let _0x350fe9=!0x1;const _0x2b5bff=_0x41e03e['plugins']['get']('Users')['me'],_0x380dc9=_0x41e03e['model']['document']['differ']['getChanges'](),_0x439370=Array['from'](_0x41e03e['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x15d44d,data:_0x26e372})=>{const {group:_0x2be975,subType:_0x3c3078,authorId:_0x2865c5}=_0x31fc9a['_splitMarkerName'](_0x15d44d);return'suggestion'==_0x2be975&&'tablePaste'==_0x3c3078&&_0x2865c5==_0x2b5bff['id']&&!_0x26e372['oldRange'];});for(const _0x2baef1 of _0x380dc9){if('insert'!=_0x2baef1['type']||'tableCellSuggestion'!=_0x2baef1['name']||0x1!=_0x2baef1['length'])continue;const _0x536e1b=_0x3b9dba['createRange'](_0x2baef1['position'],_0x2baef1['position']['getShiftedBy'](0x1));if(!_0x439370['find'](({data:_0x3fb92a})=>_0x3fb92a['newRange']['isEqual'](_0x536e1b))){for(const {name:_0x269ef5,data:_0x31d3b9}of _0x439370)if(_0x536e1b['containsRange'](_0x31d3b9['newRange'])){_0x3b9dba['updateMarker'](_0x269ef5,{'range':_0x536e1b}),_0x350fe9=!0x0;break;}}}return _0x350fe9;}),_0x41e03e['model']['document']['registerPostFixer'](_0x29761d=>{let _0x1bbc24=!0x1;const _0x553617=_0x41e03e['plugins']['get']('Users')['me'],_0x45c822=_0x31fc9a['getSuggestions']()['filter'](_0x345a70=>_0x345a70['isInContent']&&_0x345a70['author']==_0x553617),_0x45d5df=new Set(),_0x4fb2f0=new Set();for(const _0x461181 of _0x45c822)if('tablePaste'==_0x461181['subType'])for(const _0x439d57 of _0x461181['getMarkers']()){const _0x595eeb=_0x439d57['getRange']()['getContainedElement']();if(_0x595eeb){if(_0x595eeb['is']('element','tableCellSuggestion')&&Pe(_0x595eeb)){_0x461181['removeMarker'](_0x439d57['name']),_0x45d5df['add'](_0x595eeb),_0x1bbc24=!0x0;const _0x4b3d4c=_0x595eeb['nextSibling'],_0x3c9375=_0x595eeb['previousSibling'],_0x1a0750=_0x4b3d4c&&_0x4b3d4c['is']('element','tableCellSuggestion'),_0x1e2e6b=_0x3c9375&&_0x3c9375['is']('element','tableCellSuggestion');_0x1a0750&&!_0x45d5df['has'](_0x4b3d4c)&&_0x4fb2f0['add'](_0x4b3d4c),_0x1e2e6b&&!_0x45d5df['has'](_0x3c9375)&&_0x4fb2f0['add'](_0x3c9375);}else _0x595eeb['is']('element','paragraph')&&_0x595eeb['isEmpty']&&(_0x461181['removeMarker'](_0x439d57['name']),_0x1bbc24=!0x0);}}else{if('tablePasteCell'==_0x461181['subType']){if(!_0x461181['attributes']||!_0x461181['attributes']['tablePasteChainId'])continue;const _0xcf87b4=_0x461181['attributes']['markerAttributes'];if(_0xcf87b4&&Object['keys'](_0xcf87b4)['length'])continue;const _0x7fc0b5=_0x461181['attributes']['tablePasteChainId'];let _0x3028a5=!0x0,_0x4012f9=!0x0;for(const _0x19a146 of _0x45c822)if(_0x19a146['subType']&&_0x19a146['subType']['startsWith']('tablePaste')){if(!_0x19a146['attributes']['tablePasteChainId']){_0x4012f9=!0x1;break;}if(_0x19a146['id']!=_0x461181['id']&&_0x19a146['attributes']['tablePasteChainId']==_0x7fc0b5){_0x3028a5=!0x1;break;}}_0x4012f9&&_0x3028a5&&(_0x461181['removeMarkers'](),_0x1bbc24=!0x0);}}for(const _0x3683ee of _0x45d5df)_0x29761d['remove'](_0x3683ee);for(const _0x2ec646 of _0x4fb2f0)_0x29761d['unwrap'](_0x2ec646);return _0x1bbc24;}),_0x41e03e['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x27da2c,_0xebf9b)=>_0x3ef88e(_0x27da2c),'converterPriority':'high'}),_0x41e03e['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x29e879,_0x1f7b62)=>_0x1f7b62['options']['showSuggestionHighlights']?_0x3ef88e(_0x29e879,!0x1):null,'converterPriority':'high'});const _0x59f02f=_0x41e03e['editing']['view'];this['listenTo'](_0x59f02f['document'],'clipboardOutput',(_0x58f1b0,_0x13b111)=>{const _0x431dad=[];for(const _0x105410 of _0x59f02f['createRangeIn'](_0x13b111['content'])['getItems']())_0x105410['is']('element','suggestion-td')&&_0x431dad['push'](_0x105410);_0x59f02f['change'](_0x15b7fd=>{for(const _0x1a9c54 of _0x431dad)_0x15b7fd['move'](_0x15b7fd['createRangeIn'](_0x1a9c54),_0x15b7fd['createPositionBefore'](_0x1a9c54)),_0x15b7fd['remove'](_0x1a9c54);});});}}function Pe(_0xf1d45e){if(_0xf1d45e['isEmpty'])return!0x0;const _0x291018=_0xf1d45e['getChild'](0x0);return _0x291018['is']('element','paragraph')&&_0x291018['isEmpty'];}function he(_0x55befb,_0x153c60={},_0x17adb0){for(const {isAnchor:_0x5f1c6a,cellHeight:_0x6729a5,cellWidth:_0x2ee495}of _0x17adb0['createTableWalker'](_0x55befb,{'includeAllSlots':!0x0,..._0x153c60}))if(!_0x5f1c6a||0x1!=_0x6729a5||0x1!=_0x2ee495)return!0x1;return!0x0;}class vt extends _0x1edda9{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x1457af=this['editor']['plugins']['get']('TrackChangesEditing');_0x1457af['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x1457af['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x1457af['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1457af['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x1457af['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x1457af['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x56b97a,_0x44c703){const _0x42b56a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x340cc5=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x328bee=_0x44c703['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x981aaf=_0x340cc5['getColumnGroupElement'](_0x328bee);let _0x5d0145=_0x981aaf?_0x340cc5['getTableColumnsWidths'](_0x981aaf):null,_0x5d155f=_0x328bee['getAttribute']('tableWidth')||null;const _0x515809=_0x44c703['tableWidth']||_0x5d155f,_0x25605c=_0x44c703['columnWidths']||_0x5d0145,_0x63d6cf=this['editor']['plugins']['get']('Users')['me'];for(const _0x4a2a01 of _0x42b56a['getSuggestions']()){const _0x44d3de=_0x4a2a01['getContainedElement']();if('resizeTable'===_0x4a2a01['subType']&&_0x44d3de===_0x328bee){_0x4a2a01['author']!==_0x63d6cf&&_0x4a2a01['discard']();const _0x5bb167=_0x4a2a01['data']['commandParams'];_0x5d155f=_0x5bb167[0x0]['tableWidth'],_0x5d0145=_0x5bb167[0x0]['columnWidths'];break;}}_0x56b97a({'table':_0x328bee,'tableWidth':_0x515809,'columnWidths':_0x25605c}),_0x42b56a['markBlockFormat'](_0x328bee,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5d155f,'columnWidths':_0x5d0145}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x1cfb77){if('formatBlock'!=_0x1cfb77['type']&&'formatInline'!=_0x1cfb77['type'])return;const {data:_0x21d5ca}=_0x1cfb77;if(_0x21d5ca&&'resizeTable'===_0x21d5ca['formatGroupId']){const _0x381293='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x381293)};}}}class Ct extends _0x1edda9{['afterInit'](){const _0x3c9c9b=this['editor'];_0x3c9c9b['plugins']['has']('Template')&&_0x3c9c9b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x1edda9{['afterInit'](){const _0x339273=this['editor'];if(!_0x339273['commands']['get']('insertTableOfContents'))return;_0x339273['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x4cb491=_0x339273['plugins']['get']('TrackChangesEditing'),_0x521191=_0x339273['locale'];_0x4cb491['descriptionFactory']['registerElementLabel']('tableOfContents',_0x251cce=>o(_0x521191,'ELEMENT_TABLE_OF_CONTENTS',_0x251cce));}}class Dt extends _0x1edda9{['afterInit'](){const _0x4dc308=this['editor'];if(!_0x4dc308['plugins']['has']('Title'))return;const _0x5d0ad3=_0x4dc308['plugins']['get']('TrackChangesEditing');_0x5d0ad3['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x4dc308['locale'],'ELEMENT_TITLE')),_0x4dc308['model']['document']['registerPostFixer'](_0x41333b=>{let _0x22b079=!0x1;const _0x4fdae5=Array['from'](_0x4dc308['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4488fe,data:_0x4dca22}of _0x4fdae5){const {group:_0x30db4e}=_0x5d0ad3['_splitMarkerName'](_0x4488fe);if('suggestion'!==_0x30db4e||!_0x4dca22['newRange'])continue;const _0x39cede=_0x4dca22['newRange'],_0x4c1eea=_0x39cede['end']['nodeBefore'];if(!_0x4c1eea||!_0x4c1eea['is']('element','title-content'))continue;if(!_0x39cede['start']['isTouching'](_0x39cede['end']))continue;const _0x32de5e=_0x4dc308['model']['schema']['getNearestSelectionRange'](_0x39cede['end'],'forward');if(_0x32de5e&&_0x32de5e['isCollapsed']){const _0x23f1f3=_0x41333b['createRange'](_0x39cede['start'],_0x32de5e['start']);_0x23f1f3['isEqual'](_0x39cede)||(_0x41333b['updateMarker'](_0x4488fe,{'range':_0x23f1f3}),_0x22b079=!0x0);}_0x22b079||(_0x41333b['removeMarker'](_0x4488fe),_0x22b079=!0x0);}return _0x22b079;});}}class Nt extends _0x1edda9{['afterInit'](){const _0x1a2550=this['editor'],_0x1c57ed=_0x1a2550['plugins']['get']('TrackChangesEditing');_0x1a2550['plugins']['has']('UndoEditing')&&(_0x1c57ed['enableCommand']('undo'),_0x1c57ed['enableCommand']('redo'));}}class Mt extends _0x1edda9{static get['requires'](){return[jt];}['afterInit'](){const _0x130138=this['editor'];if(!_0x130138['plugins']['has']('TableCaptionEditing'))return;_0x130138['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x1edda9{['tableProperties'];['tableCellProperties'];constructor(_0x2a2c0f){super(_0x2a2c0f),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';}['afterInit'](){const _0x51c17b=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x2cff02 of this['tableProperties'])_0x51c17b['enableCommand'](_0x2cff02,(_0x57ba6d,_0x457147)=>{const _0x32f3c0=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x2cff02,[_0x32f3c0],this['tableProperties'],'tableProperties',_0x57ba6d,_0x457147);});_0x51c17b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x51c17b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x51c17b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x204059,_0x473037)=>this['handleDiscardAction'](this['tableProperties'],_0x204059,_0x473037)),_0x51c17b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x5184ed of this['tableCellProperties'])_0x51c17b['enableCommand'](_0x5184ed,(_0x5a6126,_0xe246cb)=>{const _0x1c70ce=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x5184ed,_0x1c70ce,this['tableCellProperties'],'tableCellProperties',_0x5a6126,_0xe246cb);});_0x51c17b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x51c17b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x51c17b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x2e2020,_0xc75b92)=>this['handleDiscardAction'](this['tableCellProperties'],_0x2e2020,_0xc75b92)),_0x51c17b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x51c17b['descriptionFactory']['registerDescriptionCallback'](_0x2dfa47=>this['handleSuggestionDescription'](_0x2dfa47));}['_handlePropertyChange'](_0xb2ac,_0x59e887,_0x406781,_0x13399e,_0x17d12d,_0x504346){const _0x39e70a=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x504346['batch'],()=>{for(const _0x3f2134 of _0x59e887){if(this['_getSuggestion'](_0x3f2134,_0x13399e))_0x17d12d(_0x504346);else{const _0x37002c={};for(const _0x40e2a9 of _0x406781){const _0x467951=_0x3f2134['getAttribute'](_0x40e2a9);void 0x0!==_0x467951&&(_0x37002c[_0x40e2a9]=_0x467951);}_0x17d12d(_0x504346),_0x39e70a['markBlockFormat'](_0x3f2134,{'commandParams':[_0x37002c]},[],_0x13399e);}}});}['handleDiscardAction'](_0x19746e,_0x4165f4,_0x48f65e){const _0x1bf3ef=_0x4165f4[0x0]['start']['nodeAfter'],_0x414ff3=_0x48f65e['commandParams'][0x0];this['editor']['model']['change'](_0x1c125d=>{for(const _0x46b394 of _0x19746e)void 0x0!==_0x414ff3[_0x46b394]?_0x1c125d['setAttribute'](_0x46b394,_0x414ff3[_0x46b394],_0x1bf3ef):_0x1c125d['removeAttribute'](_0x46b394,_0x1bf3ef);});}['handleSuggestionDescription'](_0x1560fd){if(_0x1560fd['data'])switch(_0x1560fd['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x1e5e29,_0x13b22c){const _0x2ac5de=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0xc848ed of _0x2ac5de['getSuggestions']({'skipNotAttached':!0x0})){const _0x563381=_0xc848ed['getContainedElement']();if(_0xc848ed['subType']===_0x13b22c&&_0x563381===_0x1e5e29)return _0xc848ed;}return null;}}const m='$elementName';class p extends _0x1edda9{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x49986a,_0x229804,E,V,U,O,F,G,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,_t,$t,Ct,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x55721d){function _0xd70ffd(_0x22eeff){return _0x22eeff['map'](_0x5d381a=>String['fromCharCode'](_0x5d381a))['join']('');}super(_0x55721d),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x59bd31,_0x39784d,_0x210bd7,_0x2a5c87)=>{this['_model']['change'](()=>{for(const _0x226d2b of[..._0x2a5c87,..._0x210bd7])this['_model']['markers']['has'](_0x226d2b)&&_0x55721d['editing']['reconvertMarker'](_0x226d2b);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new xt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x55721d['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x55721d['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x55721d['config']['get']('trackChanges.trackFormatChanges'),_0x55721d['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x55721d['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x55721d,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0xd70ffd([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0xd70ffd([0x34,0x30,0x34,0x38,0x31,0x32,0x33,0x38]);}['init'](){const _0x33dc7d=this['editor'],_0x4d1361=(_0x37cd43,_0x47482e)=>{if('attribute'!=_0x37cd43)return'ck-suggestion-marker-'+_0x37cd43;const _0x551fd9=_0x47482e['split']('|')[0x0];return this['_isBlockAttribute'](_0x551fd9)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x33dc7d['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x8eddd2=>{const {id:_0x72de29,type:_0x409194,subType:_0x25c4a8}=this['_splitMarkerName'](_0x8eddd2['markerName']),_0x207a73=['ck-suggestion-marker',_0x4d1361(_0x409194,_0x25c4a8)];let _0x253352=0xbb8;return this['activeMarkers']['includes'](_0x8eddd2['markerName'])&&(_0x207a73['push']('ck-suggestion-marker--active'),_0x253352=0xbc2),'deletion'==_0x409194&&(_0x253352+=0x5),{'classes':_0x207a73,'attributes':{'data-suggestion':_0x72de29},'priority':_0x253352};}}),_0x33dc7d['conversion']['for']('dataDowncast')['add'](_0x7345f5=>{_0x7345f5['on']('addMarker:suggestion',(_0x1000b9,_0x25821d,_0x38bd5b)=>{if(!_0x38bd5b['options']['showSuggestionHighlights'])return;const _0x10eea3=_0x25821d['item'];if(!_0x10eea3)return;const _0x2d5711=_0x38bd5b['mapper']['toViewElement'](_0x10eea3);_0x33dc7d['model']['schema']['isObject'](_0x10eea3)&&_0x2d5711&&!_0x2d5711['getCustomProperty']('widget')&&_0x2d5711['is']('containerElement')&&_0x55e0d0(_0x2d5711,_0x38bd5b['writer']);},{'priority':'high'});}),_0x33dc7d['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5215fe,_0x54874b)=>{if(!_0x54874b['options']['showSuggestionHighlights'])return null;const {type:_0x4904b8,subType:_0x1c24e2}=this['_splitMarkerName'](_0x5215fe['markerName']);return{'classes':['ck-suggestion-marker',_0x4d1361(_0x4904b8,_0x1c24e2)],'priority':0xbb8};}});const _0xbfdf2b=({showActiveMarkers:_0x1d0c45=!0x0,isAttributeSuggestion:_0x44905c=!0x1}={})=>(_0xe4dba3,_0x2cd59a,_0x51d876)=>{if(!_0x2cd59a['item'])return;const {id:_0x2be5d4}=this['_splitMarkerName'](_0x2cd59a['markerName']);if(_0x44905c){const _0x48ddb1=this['_suggestions']['get'](_0x2be5d4),_0x8cf272=this['_getAttributeKey'](_0x48ddb1);if(!this['_isBlockAttribute'](_0x8cf272))return;}if(_0x2cd59a['item']['is']('selection'))return void _0x51d876['consumable']['consume'](_0x2cd59a['item'],_0xe4dba3['name']);const _0x3217cf=_0x51d876['mapper']['toViewElement'](_0x2cd59a['item']);if(_0x2cd59a['item']['is']('element')&&_0x33dc7d['model']['schema']['isBlock'](_0x2cd59a['item'])&&!_0x3217cf['getCustomProperty']('addHighlight')){_0x51d876['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x3217cf),_0x51d876['writer']['setAttribute']('data-suggestion',_0x2be5d4,_0x3217cf),_0x51d876['mapper']['bindElementToMarker'](_0x3217cf,_0x2cd59a['markerName']),_0x1d0c45&&(this['activeMarkers']['includes'](_0x2cd59a['markerName'])?_0x51d876['writer']['addClass']('ck-suggestion-marker--active',_0x3217cf):_0x51d876['writer']['removeClass']('ck-suggestion-marker--active',_0x3217cf));for(const _0x318f2b of _0x33dc7d['model']['createRangeIn'](_0x2cd59a['item'])['getItems']())_0x51d876['consumable']['consume'](_0x318f2b,_0xe4dba3['name']);_0x51d876['consumable']['consume'](_0x2cd59a['item'],_0xe4dba3['name']);}};_0x33dc7d['conversion']['for']('dataDowncast')['add'](_0x32d1ca=>{_0x32d1ca['on']('addMarker:suggestion:formatBlock',(_0x5e37c4,_0x47b3ef,_0x1fd130)=>{_0x1fd130['options']['showSuggestionHighlights']&&_0xbfdf2b({'showActiveMarkers':!0x1})(_0x5e37c4,_0x47b3ef,_0x1fd130);},{'priority':'highest'});}),_0x33dc7d['conversion']['for']('dataDowncast')['add'](_0xdec190=>{_0xdec190['on']('addMarker:suggestion:attribute',(_0x1ad577,_0x17e61a,_0xd18f78)=>{_0xd18f78['options']['showSuggestionHighlights']&&_0xbfdf2b({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x1ad577,_0x17e61a,_0xd18f78);},{'priority':'highest'});}),_0x33dc7d['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x5af64c,_0x243ebb)=>_0x243ebb['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x5af64c['substr'](0xb)}}),_0x33dc7d['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x12af6f,{writer:_0xb8b99f})=>{let _0x3bc67d='suggestion:'+_0x12af6f['getAttribute']('suggestion-type')+':'+_0x12af6f['getAttribute']('id');return _0x12af6f['getAttribute']('marker-count')&&(_0x3bc67d+=':'+_0x12af6f['getAttribute']('marker-count')),_0xb8b99f['createElement']('$marker',{'data-name':_0x3bc67d});}}),_0x33dc7d['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x33dc7d['conversion']['for']('editingDowncast')['add'](_0x123fed=>{_0x123fed['on']('addMarker:suggestion:formatBlock',_0xbfdf2b(),{'priority':'high'});}),_0x33dc7d['conversion']['for']('editingDowncast')['add'](_0x3ddf1a=>{_0x3ddf1a['on']('addMarker:suggestion:attribute',_0xbfdf2b({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x33dc7d['conversion']['for']('editingDowncast')['add'](_0x18bd4b=>{_0x18bd4b['on']('removeMarker:suggestion:formatBlock',(_0x10e6de,_0x3fdb51,_0x4e275f)=>{const _0x24218f=_0x4e275f['mapper']['markerNameToElements'](_0x3fdb51['markerName']);if(_0x24218f){for(const _0x17066f of _0x24218f)_0x17066f['getCustomProperty']('addHighlight')||(_0x4e275f['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x17066f),_0x4e275f['writer']['removeAttribute']('data-suggestion',_0x17066f),_0x4e275f['mapper']['unbindElementFromMarkerName'](_0x17066f,_0x3fdb51['markerName']));}},{'priority':'high'});}),_0x33dc7d['conversion']['for']('editingDowncast')['add'](_0x1dde57=>{_0x1dde57['on']('removeMarker:suggestion:attribute',(_0x2d5bb6,_0x514bf7,_0xcb2add)=>{const _0x4c70a3=_0xcb2add['mapper']['markerNameToElements'](_0x514bf7['markerName']);if(!_0x4c70a3)return;const {id:_0x4c408c}=this['_splitMarkerName'](_0x514bf7['markerName']),_0x3b45ef=this['_suggestions']['get'](_0x4c408c),_0x423c22=this['_getAttributeKey'](_0x3b45ef);if(this['_isBlockAttribute'](_0x423c22)){for(const _0x4f3115 of _0x4c70a3)_0x4f3115['getCustomProperty']('addHighlight')||(_0xcb2add['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4f3115),_0xcb2add['writer']['removeAttribute']('data-suggestion',_0x4f3115),_0xcb2add['mapper']['unbindElementFromMarkerName'](_0x4f3115,_0x514bf7['markerName']));}},{'priority':'high'});}),_0x33dc7d['model']['document']['registerPostFixer'](_0x2f3fe6=>{let _0x1d1e48=!0x1;const _0xc7db61=Array['from'](_0x33dc7d['model']['document']['differ']['getChangedMarkers']()),_0x51e12d=new Set();for(const {name:_0x107272,data:_0x9eb06a}of _0xc7db61){const {group:_0x2957a8,type:_0x183c5e,subType:_0x16ab33,id:_0x235663}=this['_splitMarkerName'](_0x107272);if('suggestion'!==_0x2957a8)continue;const _0x36f01e=this['_suggestions']['get'](_0x235663);if(null!=_0x9eb06a['newRange']){'formatInline'==_0x183c5e&&(_0x1d1e48=_0x1d1e48||Et(_0x9eb06a['newRange'],_0x107272,_0x2f3fe6,_0x33dc7d['model']['schema']));const _0x12e85b='attribute'==_0x183c5e&&this['_isBlockAttribute'](_0x16ab33['split']('|')[0x0]);if(_0x9eb06a['newRange']['isCollapsed']||'$graveyard'==_0x9eb06a['newRange']['root']['rootName']||'formatBlock'==_0x183c5e&&!Ut(_0x9eb06a['newRange'])||_0x12e85b&&!Ut(_0x9eb06a['newRange'])||'deletion'==_0x183c5e&&!(!Tt(_0x1bd244=_0x9eb06a['newRange'])&&!function(_0xe865d7){return _0xe865d7['start']['parent']==_0xe865d7['end']['nodeBefore']&&_0xe865d7['start']['isAtEnd'];}(_0x1bd244)))_0x2f3fe6['removeMarker'](_0x107272),_0x1d1e48=!0x0;else{if(!_0x36f01e||!_0x36f01e['isInContent'])continue;_0x51e12d['add'](_0x36f01e);}}}var _0x1bd244;return _0x51e12d['size']>0x0&&(_0x1d1e48=!!this['_joinWithAdjacentSuggestions'](_0x51e12d)||_0x1d1e48),_0x1d1e48;}),_0x33dc7d['model']['document']['registerPostFixer'](_0x6341a8=>{let _0x139dd7=!0x1;for(const _0x2a9eac of _0x33dc7d['model']['document']['differ']['getChanges']())if('insert'==_0x2a9eac['type'])for(const _0x448e7f of this['_suggestions']['values']()){if(_0x448e7f['isMultiRange']||!_0x448e7f['isInContent'])continue;const _0xb454ed='formatBlock'==_0x448e7f['type'],_0x3a6abc=this['_getAttributeKey'](_0x448e7f),_0x1bb32d=_0x3a6abc&&this['_isBlockAttribute'](_0x3a6abc);if(!_0xb454ed&&!_0x1bb32d)continue;const _0x940fdc=_0x448e7f['getFirstRange']();if(_0x940fdc['start']['parent']!=_0x940fdc['end']['parent']&&!_0x940fdc['end']['isAtEnd']){const _0x449891=_0x33dc7d['model']['createPositionAt'](_0x940fdc['start']['nodeAfter'],'end'),_0x469a80=_0x33dc7d['model']['createRange'](_0x940fdc['start'],_0x449891);_0x6341a8['updateMarker'](_0x448e7f['getFirstMarker'](),{'range':_0x469a80}),_0x139dd7=!0x0;}}return _0x139dd7;}),_0x33dc7d['model']['document']['registerPostFixer'](_0x4a0379=>this['_processAttributeChanges'](_0x4a0379)),_0x33dc7d['model']['document']['registerPostFixer'](_0x5c533f=>!_0x5c533f['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x5c533f)),_0x33dc7d['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x33dc7d['model']['document']['on']('change:data',(_0xb3eee1,_0x5c6230)=>{if(!_0x5c6230['isLocal']||_0x5c6230['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1c6da8=_0x33dc7d['model']['document']['differ']['getChanges']();if(0x0==_0x1c6da8['length'])return;const _0x268d9b=[],_0x50d295=_0x1c6da8['filter'](_0x1da954=>'attribute'==_0x1da954['type']),_0xae531c=_0x1c6da8['filter'](_0x5c0026=>'insert'==_0x5c0026['type']&&'$text'!=_0x5c0026['name']);for(const _0x18e735 of _0x50d295)this['_isRegisteredAttribute'](_0x18e735['attributeKey'])&&_0x268d9b['push']({'key':_0x18e735['attributeKey'],'newValue':_0x18e735['attributeNewValue'],'oldValue':_0x18e735['attributeOldValue'],'range':Ot(_0x18e735['range'],_0x33dc7d['model'])});for(const _0x2f49a8 of _0xae531c){if('rename'!=_0x2f49a8['action']&&'refresh'!=_0x2f49a8['action'])continue;const _0x2e8e81=Gt(_0x2f49a8['position']['nodeAfter'],_0x33dc7d['model']),_0x352bb2=_0x2f49a8['before'];'rename'==_0x2f49a8['action']&&_0x268d9b['push']({'key':m,'newValue':_0x2f49a8['name'],'oldValue':_0x352bb2['name'],'range':_0x2e8e81});for(const [_0x155ca0,_0x48941e]of _0x352bb2['attributes']){if(!this['_isRegisteredAttribute'](_0x155ca0))continue;const _0x24246b=_0x2f49a8['attributes']['get'](_0x155ca0);_0x48941e!==_0x24246b&&_0x268d9b['push']({'key':_0x155ca0,'newValue':_0x24246b,'oldValue':_0x48941e,'range':_0x2e8e81});}for(const [_0x220be3,_0x3ccb42]of _0x2f49a8['attributes'])this['_isRegisteredAttribute'](_0x220be3)&&(_0x352bb2['attributes']['has'](_0x220be3)||_0x268d9b['push']({'key':_0x220be3,'newValue':_0x3ccb42,'oldValue':null,'range':_0x2e8e81}));}0x0!=_0x268d9b['length']&&_0x33dc7d['model']['enqueueChange'](_0x5c6230,_0x422e92=>{const _0x40c147=_0x19ddda();for(const {range:_0x53bd23,key:_0x52ac62,oldValue:_0x5f4464,newValue:_0x26e33e}of _0x268d9b)this['markAttributeChange'](_0x53bd23,_0x52ac62,_0x5f4464,_0x26e33e,{'groupId':_0x40c147});this['_reduceExistingSuggestions'](_0x422e92,_0x268d9b);});},{'priority':'lowest'}),_0x33dc7d['model']['markers']['on']('update:suggestion',(_0x199f4d,_0x7e1dc4,_0x3c7c77)=>{if(null==_0x3c7c77){const {id:_0x43460c}=this['_splitMarkerName'](_0x7e1dc4['name']),_0x33ca63=this['_suggestions']['get'](_0x43460c);_0x33ca63&&_0x33ca63['addMarkerName'](_0x7e1dc4['name']);}}),_0x33dc7d['model']['document']['on']('change:data',()=>{const _0x11e27c=Array['from'](_0x33dc7d['model']['document']['differ']['getChangedMarkers']())['filter'](_0x4c8278=>'suggestion'===this['_splitMarkerName'](_0x4c8278['name'])['group']);if(0x0===_0x11e27c['length'])return;_0x11e27c['sort']((_0x39ccef,_0x9c6057)=>{const _0x393ed3=_0x39ccef['data']['oldRange'],_0x2e89f6=_0x9c6057['data']['oldRange'];return null===_0x393ed3&&null===_0x2e89f6?0x0:null===_0x393ed3&&null!==_0x2e89f6?-0x1:null!==_0x393ed3&&null===_0x2e89f6?0x1:_0x393ed3['start']['isBefore'](_0x2e89f6['start'])?-0x1:0x1;});const _0x2eb7f3=new Set(),_0x79ad93=new Set();for(const {name:_0x4ff88d,data:_0x1f9465}of _0x11e27c){const {id:_0x47f84c}=this['_splitMarkerName'](_0x4ff88d);if(null===_0x1f9465['oldRange']){const _0x4158bb=this['_handleNewSuggestionMarker'](_0x4ff88d);_0x79ad93['add'](_0x4158bb);}else{const _0x13ae7e=this['_suggestions']['get'](_0x47f84c);null!==_0x1f9465['newRange']||_0x13ae7e['isInContent']?(_0x2eb7f3['add'](_0x13ae7e['head']),_0x79ad93['add'](_0x13ae7e)):this['_removeSuggestion'](_0x13ae7e);}}_0x79ad93['size']>0x0&&this['_refreshSuggestionsChain'](_0x79ad93);for(const _0x5a5170 of _0x2eb7f3)this['fire']('suggestionChanged',_0x5a5170);}),_0x33dc7d['model']['on']('applyOperation',(_0x267dc9,_0x34e2bc)=>{const _0x37b21a=_0x34e2bc[0x0];if(!this['_suggestions']['size'])return;if(!_0x37b21a['isDocumentOperation'])return;if(_0x37b21a['batch']['isUndo']||!_0x37b21a['batch']['isLocal'])return;let _0x141d53,_0xa71308;switch(_0x37b21a['type']){case'insert':_0x141d53=_0x33dc7d['model']['createPositionAt'](_0x37b21a['position']),_0xa71308=_0x141d53['getShiftedBy'](_0x37b21a['howMany']);break;case'split':_0x141d53=_0x33dc7d['model']['createPositionAt'](_0x37b21a['splitPosition']),_0xa71308=_0x33dc7d['model']['createPositionAt'](_0x37b21a['moveTargetPosition']);break;case'move':_0x141d53=_0x33dc7d['model']['createPositionAt'](_0x37b21a['targetPosition']),_0xa71308=_0x141d53['getShiftedBy'](_0x37b21a['howMany']);break;default:return;}const _0x109ac9=_0x33dc7d['model']['createRange'](_0x141d53,_0xa71308);_0x33dc7d['model']['change'](()=>{for(const {suggestion:_0x900c36,meta:_0x1ff5fa}of this['_findSuggestions'](_0x109ac9)){if(_0x900c36['isMultiRange'])continue;if('formatInline'==_0x900c36['type'])continue;const _0x3c3109=this['_getAttributeKey'](_0x900c36);if(_0x3c3109&&this['_isBlockAttribute'](_0x3c3109)&&'split'!=_0x37b21a['type'])continue;const _0x496c41=_0x900c36['data']&&_0x900c36['data']['multipleBlocks'];('formatBlock'!=_0x900c36['type']||'split'==_0x37b21a['type']&&!_0x496c41)&&(_0x1ff5fa['containsRangeInObject']||'insertion'==_0x900c36['type']&&_0x1ff5fa['isOwn']||_0x900c36['getFirstRange']()['containsRange'](_0x109ac9)&&this['_breakSuggestionMarker'](_0x900c36,_0x141d53,_0xa71308));}});},{'priority':'lowest'}),_0x33dc7d['model']['on']('deleteContent',(_0x37812b,_0x51cec1)=>{const _0x242dc5=_0x51cec1[0x0],_0x1b843b=_0x51cec1[0x1];if(_0x1b843b&&_0x1b843b['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x242dc5['isCollapsed'])return;const _0x5f36bf=_0x33dc7d['model']['schema'],{start:_0x346a9e,end:_0x487fc8}=_0x242dc5['getFirstRange'](),_0x27096c=_0x346a9e['nodeAfter']&&_0x5f36bf['isLimit'](_0x346a9e['nodeAfter'])?null:_0x5f36bf['getNearestSelectionRange'](_0x346a9e,'forward'),_0x49a4f9=_0x487fc8['nodeBefore']&&_0x5f36bf['isLimit'](_0x487fc8['nodeBefore'])?null:_0x5f36bf['getNearestSelectionRange'](_0x487fc8,'backward'),_0x1eb792=_0x33dc7d['model']['createRange'](_0x27096c?_0x27096c['start']:_0x346a9e,_0x49a4f9?_0x49a4f9['end']:_0x487fc8);_0x33dc7d['model']['change'](_0x190b6e=>{this['markDeletion'](_0x1eb792);const _0x96c4d=_0x33dc7d['model']['schema']['getNearestSelectionRange'](_0x1eb792['start']);_0x242dc5['is']('documentSelection')?_0x190b6e['setSelection'](_0x96c4d):_0x242dc5['setTo'](_0x96c4d);}),_0x37812b['stop']();},{'priority':_0x157237['normal']+0xa}),_0x33dc7d['model']['on']('insertContent',(_0x5af416,_0x4aded6)=>{const _0x578e85=_0x4aded6[_0x4aded6['length']-0x1];_0x578e85&&_0x578e85['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x33dc7d['model']['change'](()=>{let _0x54ba0c=_0x33dc7d['model']['insertContent'](_0x4aded6[0x0],_0x4aded6[0x1],_0x4aded6[0x2],{'forceDefaultExecution':!0x0});if(!_0x54ba0c)return;_0x5af416['return']=_0x54ba0c['clone']();const _0x3c0448=_0x54ba0c['end']['nodeBefore'],_0xa3539b=_0x33dc7d['model']['schema'];_0x3c0448&&_0xa3539b['isBlock'](_0x3c0448)&&!_0xa3539b['isObject'](_0x3c0448)&&(_0x54ba0c=_0x33dc7d['model']['createRange'](_0x54ba0c['start'],_0x33dc7d['model']['createPositionAt'](_0x3c0448,'end'))),this['markInsertion'](_0x54ba0c);}),_0x5af416['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x41ff7f=new $(_0x33dc7d,this['_suggestions']);_0x33dc7d['commands']['add']('acceptSuggestion',_0x41ff7f),this['enableCommand']('acceptSuggestion');const _0x564549=new B(_0x33dc7d,this['_suggestions']);_0x33dc7d['commands']['add']('discardSuggestion',_0x564549),this['enableCommand']('discardSuggestion'),_0x33dc7d['commands']['add']('acceptAllSuggestions',new x(_0x33dc7d,_0x41ff7f,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x33dc7d['commands']['add']('discardAllSuggestions',new x(_0x33dc7d,_0x564549,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x33dc7d['commands']['add']('acceptSelectedSuggestions',new R(_0x33dc7d,_0x41ff7f,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x33dc7d['commands']['add']('discardSelectedSuggestions',new R(_0x33dc7d,_0x564549,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x5b85d8=_0x33dc7d['plugins']['get']('CommentsRepository');this['listenTo'](_0x5b85d8,'addComment',(_0xe68c95,{threadId:_0x21201c})=>{const _0x310adc=this['_suggestions']['get'](_0x21201c);_0x310adc&&_0x310adc['commentThread']&&0x1===_0x310adc['commentThread']['length']&&this['_updateSuggestionData'](_0x21201c,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x5b85d8,'removeComment',(_0x72889c,{threadId:_0x1516d4})=>{const _0x57ba57=this['_suggestions']['get'](_0x1516d4);_0x57ba57&&_0x57ba57['commentThread']&&!_0x57ba57['commentThread']['length']&&this['_updateSuggestionData'](_0x1516d4,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x3bdb24){if(this['_adapter'])throw new _0x2c554b('track-changes-adapter-already-set',this);this['_adapter']=_0x3bdb24;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x168faf=!0x1,toJSON:_0x2f7aa6=!0x1}={}){const _0x2e971f=[];for(const _0x538bce of this['_suggestions']['values']())_0x168faf&&!_0x538bce['isInContent']||_0x2e971f['push'](_0x538bce);return _0x2f7aa6?_0x2e971f['map'](_0x3a87e5=>_0x3a87e5['toJSON']()):_0x2e971f;}['getSuggestion'](_0x3b55f8){const _0x314a90=this['_suggestions']['get'](_0x3b55f8);if(!_0x314a90)throw new _0x2c554b('track-changes-suggestion-not-found',this);return _0x314a90;}['hasSuggestion'](_0x1d78a4){return this['_suggestions']['has'](_0x1d78a4);}['addSuggestionData'](_0x50e016){const {authorId:_0x4b916b,id:_0x5a9304,attributes:_0x2c9abd}=_0x50e016,[_0x4f4caf,_0x30f147]=_0x50e016['type']['split'](':'),_0x43d8e3=this['_suggestions']['get'](_0x5a9304)||this['_createSuggestion'](_0x4f4caf,_0x30f147,_0x5a9304,_0x4b916b,_0x2c9abd);if(this['_addThreadToSuggestion'](_0x43d8e3),this['_checkSuggestionCorrectness'](_0x43d8e3,_0x4f4caf,_0x30f147||null,_0x4b916b),_0x43d8e3['createdAt']=_0x50e016['createdAt'],_0x43d8e3['_isDataLoaded']=!0x0,_0x2c9abd&&_0x2c9abd['@external']){const _0x4409cb=_0x2c9abd['@external'],_0x3ffbc2=this['_getExternalAuthor'](_0x4409cb['authorName']);_0x43d8e3['authoredAt']=_0x4409cb['createdAt'],_0x43d8e3['author']=_0x3ffbc2,_0x43d8e3['isExternal']=!0x0;}else _0x43d8e3['authoredAt']=_0x50e016['createdAt'];switch(_0x50e016['data']&&(_0x43d8e3['data']=_0x50e016['data']),_0x50e016['attributes']&&(_0x43d8e3['attributes']=_0x50e016['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x43d8e3['_saved']=!0x0),this['_suggestionState']['get'](_0x43d8e3)){case'notReady':this['_suggestionState']['set'](_0x43d8e3,'dataReady');break;case'markerReady':_0x43d8e3['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x43d8e3])),this['_refreshSuggestionsChain'](new Set([_0x43d8e3])),this['_suggestionState']['set'](_0x43d8e3,'ready'),this['fire']('suggestionLoaded',_0x43d8e3)):this['_suggestionState']['set'](_0x43d8e3,'removed');}return _0x43d8e3;}['acceptSuggestion'](_0x16cda9){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5bd3ca of _0x16cda9['getAllAdjacentSuggestions']())_0x5bd3ca['accept']();});});}['discardSuggestion'](_0x5e6b9c){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1bff63 of _0x5e6b9c['getAllAdjacentSuggestions']())_0x1bff63['discard']();});});}['enableCommand'](_0x26a2c0,_0x3883c4){const _0xc04320=this['editor']['commands']['get'](_0x26a2c0);if(!_0xc04320)throw new _0x2c554b('track-changes-command-not-found',this,{'commandName':_0x26a2c0});if(this['_enabledCommands']['has'](_0xc04320))throw new _0x2c554b('track-changes-enable-command-twice',this,{'commandName':_0x26a2c0});this['_enabledCommands']['add'](_0xc04320),_0x3883c4&&_0xc04320['on']('execute',(_0x25df53,_0x140d7e)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x140d7e['length']>0x0&&_0x140d7e[_0x140d7e['length']-0x1]&&_0x140d7e[_0x140d7e['length']-0x1]['forceDefaultExecution']?_0x140d7e['pop']():(_0x25df53['return']=_0x3883c4((..._0x1b6642)=>_0xc04320['execute'](..._0x1b6642,{'forceDefaultExecution':!0x0}),..._0x140d7e),_0x25df53['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x6dead8){let _0x163926,_0x46ed59;const _0x3bb4db=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x163926=_0x6dead8();}catch(_0x2557e5){_0x46ed59=_0x2557e5;}return _0x3bb4db||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x46ed59&&_0x2c554b['rethrowUnexpectedError'](_0x46ed59,this),_0x163926;}['markInsertion'](_0xe5f95f,_0x54fa3b=null,_0xbe4dae={}){if(_0xe5f95f['isCollapsed'])return null;const _0x40a1bd=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x1e3b0f,meta:_0x2eb78c}of this['_findSuggestions'](_0xe5f95f,'insertion'))if(_0x2eb78c['isOwn']){if(!_0x2eb78c['isNextTo']){if(_0x2eb78c['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x1e3b0f,_0xbe4dae))continue;return _0x1e3b0f;}if(Lt(_0x1e3b0f,_0xbe4dae))return _0x1e3b0f;this['_breakSuggestionMarker'](_0x1e3b0f,_0xe5f95f['start'],_0xe5f95f['end']);break;}if(_0x54fa3b==_0x1e3b0f['subType']&&Lt(_0x1e3b0f,_0xbe4dae)){const _0x2e1b22=_0x1e3b0f['getFirstRange']();return _0x2e1b22['start']['isEqual'](_0xe5f95f['end'])?this['_setSuggestionRange'](_0x1e3b0f,this['_model']['createRange'](_0xe5f95f['start'],_0x2e1b22['end'])):this['_setSuggestionRange'](_0x1e3b0f,this['_model']['createRange'](_0x2e1b22['start'],_0xe5f95f['end'])),_0x1e3b0f;}}const _0x2e3655=_0x19ddda(),_0xcec8f5=_0x40a1bd['id'],_0x30f366=_0x54fa3b?'insertion:'+_0x54fa3b:'insertion',_0x4d9c1f=this['_setSuggestionData']({'id':_0x2e3655,'type':_0x30f366,'createdAt':new Date(),'authorId':_0xcec8f5,'attributes':_0xbe4dae});return this['_addSuggestionMarker'](_0x30f366,_0x2e3655,_0xcec8f5,_0xe5f95f),_0x4d9c1f;}['markMultiRangeInsertion'](_0x3be730,_0x3e7678='multi',_0x50ced5={}){const _0x9d7e89=this['editor']['plugins']['get']('Users')['me'],_0x125fd7=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3e7678,'join');for(const _0x14092c of this['getSuggestions']())if(_0x14092c['author']['id']==_0x9d7e89['id']&&'insertion'==_0x14092c['type']&&_0x14092c['subType']==_0x3e7678&&Lt(_0x14092c,_0x50ced5)&&(_0x125fd7(_0x14092c['getRanges'](),_0x3be730)||_0x125fd7(_0x3be730,_0x14092c['getRanges']()))){for(const _0x3cf514 of _0x3be730)_0x14092c['addRange'](_0x3cf514);return _0x14092c;}for(const {suggestion:_0x17e0c5,meta:_0x354277}of this['_findSuggestions'](_0x3be730,'insertion')){if(!_0x354277['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x354277['containsRangeInObject'])continue;if(!Lt(_0x17e0c5,_0x50ced5))continue;let _0x3c823d=!0x0;for(const _0x37ffbd of _0x17e0c5['getRanges']())for(const _0x978977 of _0x3be730)if(!_0x37ffbd['containsRange'](_0x978977)){_0x3c823d=!0x1;break;}if(_0x3c823d)return _0x17e0c5;}const _0x256a97=_0x19ddda(),_0x598a5e=_0x9d7e89['id'],_0x33fbbe='insertion:'+_0x3e7678,_0x272c6a=this['_setSuggestionData']({'id':_0x256a97,'type':_0x33fbbe,'createdAt':new Date(),'authorId':_0x598a5e,'attributes':_0x50ced5});for(const _0x261f89 of _0x3be730)this['_addSuggestionMarker'](_0x33fbbe,_0x256a97,_0x598a5e,_0x261f89,u['getMultiRangeId']());return _0x272c6a;}['markInlineFormat'](_0x5b9ad3,_0x5efe01,_0x5d9e65=null,_0x85837f={}){if(_0x5d9e65=_0x5d9e65||Vt(_0x5efe01),_0x5b9ad3['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x34d2f5=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5d9e65,'accept');return this['forceDefaultExecution'](()=>_0x34d2f5([_0x5b9ad3],_0x5efe01,_0x85837f)),null;}const _0x4270e8=this['editor']['plugins']['get']('Users')['me'],_0x361040=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x12eccd,meta:_0x5b3540}of this['_findSuggestions'](_0x5b9ad3,'insertion'))_0x5b3540['isOwn']&&!_0x5b3540['isInsideObject']&&_0x361040['push'](..._0x12eccd['getRanges']());}const _0x59ed00=function(_0x60b5c9,_0x1b04f7){const _0x56fb75=[];for(const _0x3eba2c of _0x1b04f7){const _0x43cbc2=_0x60b5c9['getIntersection'](_0x3eba2c);_0x43cbc2&&_0x56fb75['push'](_0x43cbc2);}return _0x56fb75;}(_0x5b9ad3,_0x361040),_0x176c42=function(_0x1cb3cc,_0x101635){const _0x72c66b=[_0x1cb3cc];for(const _0x263b5e of _0x101635){let _0x5a5e41=0x0;for(;_0x5a5e41<_0x72c66b['length'];){const _0x4e80bd=_0x72c66b[_0x5a5e41]['getDifference'](_0x263b5e);_0x72c66b['splice'](_0x5a5e41,0x1,..._0x4e80bd),_0x5a5e41+=_0x4e80bd['length'];}}return _0x72c66b;}(_0x5b9ad3,_0x361040);_0x59ed00['length']&&this['_model']['change'](()=>{for(const _0x5e603f of _0x59ed00){const _0x83fb3a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5d9e65,'accept');this['forceDefaultExecution'](()=>_0x83fb3a([_0x5e603f],_0x5efe01,_0x85837f));}});for(const _0x7618c of _0x176c42){let _0x4a0e83=null,_0x1ce3b7=_0x7618c['start'],_0x48574f=_0x7618c['end'];for(const {suggestion:_0x8c7f64,meta:_0x4f5be3}of this['_findSuggestions'](_0x7618c,'formatInline')){if(!_0x4f5be3['isOwn'])continue;if(_0x8c7f64['subType']!=_0x5d9e65)continue;if(!Lt(_0x8c7f64,_0x85837f))continue;const _0xe9aeff=_0x8c7f64['getFirstRange']();if(_0xe9aeff['containsRange'](_0x7618c,!0x0))return null;_0x1ce3b7=_0x1ce3b7['isBefore'](_0xe9aeff['start'])?_0x1ce3b7:_0xe9aeff['start'],_0x48574f=_0x48574f['isAfter'](_0xe9aeff['end'])?_0x48574f:_0xe9aeff['end'],_0x4a0e83?_0xe9aeff['start']['isBefore'](_0x4a0e83['getFirstRange']()['start'])?(_0x4a0e83['removeMarkers'](),_0x4a0e83=_0x8c7f64):_0x8c7f64['removeMarkers']():_0x4a0e83=_0x8c7f64;}const _0x48babf=this['_model']['createRange'](_0x1ce3b7,_0x48574f);if(_0x4a0e83)this['_setSuggestionRange'](_0x4a0e83,_0x48babf);else{const _0x2754e2=_0x19ddda(),_0x4c7319=_0x4270e8['id'];this['_setSuggestionData']({'id':_0x2754e2,'type':'formatInline:'+_0x5d9e65,'data':_0x5efe01,'createdAt':new Date(),'authorId':_0x4c7319,'attributes':_0x85837f}),this['_addSuggestionMarker']('formatInline:'+_0x5d9e65,_0x2754e2,_0x4c7319,_0x48babf);}}return null;}['markBlockFormat'](_0x4a2678,_0x40ad1b,_0x436241=[],_0x28548d=null,_0x59931a={}){_0x40ad1b['formatGroupId']||(_0x40ad1b['formatGroupId']=_0x40ad1b['commandName']),_0x40ad1b['multipleBlocks']=_0x4a2678['is']('range'),_0x28548d=_0x28548d||Vt(_0x40ad1b);const _0x1e4100=_0x436241['map'](_0x827a54=>Gt(_0x827a54,this['_model'])),_0xfee0ab=_0x4a2678['is']('range')?_0x4a2678:Gt(_0x4a2678,this['_model']);if('never'===this['_trackFormatChanges']){const _0x3e516f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x28548d,'accept');return this['forceDefaultExecution'](()=>_0x3e516f([_0xfee0ab],_0x40ad1b,_0x59931a)),null;}_0x1e4100['push'](_0xfee0ab);let _0x36ad32=!0x0;for(const _0x1c067a of _0x1e4100)if(!this['_rangeIsInLocalUserInsertion'](_0x1c067a)){_0x36ad32=!0x1;break;}if(_0x36ad32&&'always'!==this['_trackFormatChanges']){const _0x10b6e4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x28548d,'accept');return this['forceDefaultExecution'](()=>_0x10b6e4([_0xfee0ab],_0x40ad1b,_0x59931a)),null;}let _0x2243d9=null,_0x2ce459=_0xfee0ab['start'],_0x3a2e78=_0xfee0ab['end'];for(const {suggestion:_0x14236b,meta:_0x50fd7f}of this['_findSuggestions'](_0xfee0ab,'formatBlock')){if(!_0x50fd7f['isOwn'])continue;if(_0x50fd7f['isNextTo']||_0x50fd7f['containsRangeInObject']||_0x50fd7f['isInsideObject'])continue;if(_0x14236b['data']['formatGroupId']!=_0x40ad1b['formatGroupId'])continue;if(!Lt(_0x14236b,_0x59931a))continue;const _0x13c974=_0x14236b['getFirstRange']();if(_0x14236b['subType']==_0x28548d){if(_0x13c974['containsRange'](_0xfee0ab,!0x0))return null;_0x2ce459=_0x2ce459['isBefore'](_0x13c974['start'])?_0x2ce459:_0x13c974['start'],_0x3a2e78=_0x3a2e78['isAfter'](_0x13c974['end'])?_0x3a2e78:_0x13c974['end'],_0x2243d9?_0x13c974['start']['isBefore'](_0x2243d9['getFirstRange']()['start'])?(_0x2243d9['removeMarkers'](),_0x2243d9=_0x14236b):_0x14236b['removeMarkers']():_0x2243d9=_0x14236b;}else{const _0x574846=_0xfee0ab['getIntersection'](_0x13c974);this['_cutOutSuggestionMarker'](_0x14236b,_0x574846);}}const _0x1fc857=this['editor']['plugins']['get']('Users')['me'],_0x4472f5=_0x19ddda(),_0x4616a4=_0x1fc857['id'];if(_0x2243d9)return this['_setSuggestionRange'](_0x2243d9,this['_model']['createRange'](_0x2ce459,_0x3a2e78)),_0x2243d9;{const _0x26ff42=this['_setSuggestionData']({'id':_0x4472f5,'type':'formatBlock:'+_0x28548d,'data':_0x40ad1b,'createdAt':new Date(),'authorId':_0x4616a4,'attributes':_0x59931a});return this['_addSuggestionMarker']('formatBlock:'+_0x28548d,_0x4472f5,_0x4616a4,this['_model']['createRange'](_0x2ce459,_0x3a2e78)),_0x26ff42;}}['markMultiRangeBlockFormat'](_0x3c2665,_0x1e166d,_0x15c5ed=[],_0x374af7=null,_0x5323f3={}){_0x1e166d['formatGroupId']||(_0x1e166d['formatGroupId']=_0x1e166d['commandName']);const _0x36002f=_0x3c2665[0x0];_0x1e166d['multipleBlocks']=_0x36002f['is']('range'),_0x374af7=_0x374af7||Vt(_0x1e166d);const _0xac6986=_0x15c5ed['map'](_0x1a0ab4=>Gt(_0x1a0ab4,this['_model'])),_0x12d3a6=_0x36002f['is']('range')?_0x3c2665:_0x3c2665['map'](_0x284c44=>Gt(_0x284c44,this['_model']));if('never'===this['_trackFormatChanges']){const _0x5d6a2c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x374af7,'accept');return this['forceDefaultExecution'](()=>_0x5d6a2c(_0x12d3a6,_0x1e166d,_0x5323f3)),null;}_0xac6986['push'](..._0x12d3a6);let _0x25a4a2=!0x0;for(const _0x7a2d61 of _0xac6986)if(!this['_rangeIsInLocalUserInsertion'](_0x7a2d61)){_0x25a4a2=!0x1;break;}if(_0x25a4a2&&'always'!==this['_trackFormatChanges']){const _0x5b9ff3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x374af7,'accept');return this['forceDefaultExecution'](()=>_0x5b9ff3(_0x12d3a6,_0x1e166d,_0x5323f3)),null;}const _0xc86ae8=this['editor']['plugins']['get']('Users')['me'];for(const _0x5c893c of this['getSuggestions']()){if(_0x5c893c['author']['id']!=_0xc86ae8['id'])continue;if('formatBlock'!=_0x5c893c['type']||_0x5c893c['data']['formatGroupId']!=_0x1e166d['formatGroupId'])continue;if(!Lt(_0x5c893c,_0x5323f3))continue;const _0x1fbb4b=_0x5c893c['subType']==_0x374af7;for(let _0x1f7c66=0x0;_0x1f7c66<_0x12d3a6['length'];_0x1f7c66++){const _0x17c886=_0x12d3a6[_0x1f7c66];for(const _0x364a8d of _0x5c893c['getMarkers']()){const _0x231c3f=_0x364a8d['getRange']();if(_0x17c886['isEqual'](_0x231c3f)){_0x1fbb4b?(_0x12d3a6['splice'](_0x1f7c66,0x1),_0x1f7c66--):_0x5c893c['removeMarker'](_0x364a8d['name']);break;}}}}if(0x0==_0x12d3a6['length'])return null;const _0x572c17=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x374af7,'join');for(const _0x412f89 of this['getSuggestions']())if(_0x412f89['author']['id']==_0xc86ae8['id']&&'formatBlock'==_0x412f89['type']&&_0x412f89['data']['formatGroupId']==_0x1e166d['formatGroupId']&&_0x412f89['subType']==_0x374af7&&Lt(_0x412f89,_0x5323f3)&&(_0x572c17(_0x412f89['getRanges'](),_0x12d3a6)||_0x572c17(_0x12d3a6,_0x412f89['getRanges']()))){for(const _0x2acc8b of _0x12d3a6)_0x412f89['addRange'](_0x2acc8b);return _0x412f89;}const _0x434813=_0x19ddda(),_0x1466af=_0xc86ae8['id'],_0x4ca904='formatBlock:'+_0x374af7,_0x9061db=this['_setSuggestionData']({'id':_0x434813,'type':_0x4ca904,'data':_0x1e166d,'createdAt':new Date(),'authorId':_0x1466af,'attributes':_0x5323f3});for(const _0x5231f6 of _0x12d3a6)this['_addSuggestionMarker'](_0x4ca904,_0x434813,_0x1466af,_0x5231f6,u['getMultiRangeId']());return _0x9061db;}['markDeletion'](_0x1be304,_0x46bcad=null,_0x204780={}){if(_0x1be304['isCollapsed'])return null;const _0x486113=this['editor']['plugins']['get']('Users')['me'],_0x4fd0f4=new _0x25fa27(_0x1be304['start'],_0x1be304['end']);for(const {suggestion:_0x442f68,meta:_0x40cd57}of this['_findSuggestions'](_0x4fd0f4,'insertion'))if(_0x40cd57['isOwn']&&!_0x40cd57['isNextTo']){if(_0x442f68['isMultiRange']){const _0x17bb04=_0x442f68['getRanges']()['filter'](_0x410192=>'$graveyard'!=_0x410192['root']['rootName']);_0x17bb04['every'](_0x3e91a9=>_0x4fd0f4['containsRange'](_0x3e91a9,!0x0))&&_0x442f68['discard']();if(_0x17bb04['some'](_0x59780f=>_0x59780f['containsRange'](_0x4fd0f4,!0x0))){const _0x41b80b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x46bcad,'accept');return this['forceDefaultExecution'](()=>_0x41b80b([_0x4fd0f4],null,_0x204780)),null;}}else{const _0x1dec38=_0x4fd0f4['getIntersection'](_0x442f68['getFirstRange']());null!==_0x1dec38&&_0x442f68['_onDiscard']([_0x1dec38],null,_0x204780);}}if(_0x4fd0f4['detach'](),_0x4fd0f4['isCollapsed']||'$graveyard'==_0x4fd0f4['root']['rootName'])return null;let _0x40a812=null,_0xb86939=_0x4fd0f4['start'],_0x4a868f=_0x4fd0f4['end'];const _0x1c6b2e=this['_findSuggestions'](_0x4fd0f4,'deletion');for(const {suggestion:_0x424bad,meta:_0x7afc36}of _0x1c6b2e){const _0x7f6027=this['_model']['createRange'](_0xb86939,_0x4a868f);if(_0x7afc36['isOwn']&&(this['_mergeNestedSuggestions']||!_0x7afc36['containsRangeInObject']&&!_0x7afc36['isInsideObject'])){if(_0x424bad['isMultiRange']){if(!Lt(_0x424bad,_0x204780))continue;let _0x4b23b1=!0x0;for(const _0x51c635 of _0x424bad['getRanges']()){if(_0x51c635['containsRange'](_0x7f6027,!0x0))return _0x424bad;_0x7f6027['containsRange'](_0x51c635)||(_0x4b23b1=!0x1);}_0x4b23b1&&_0x424bad['discard']();}else{const _0x5d77b3=_0x424bad['getFirstRange']();if(_0x5d77b3['containsRange'](_0x7f6027,!0x0))return _0x424bad;if(!Lt(_0x424bad,_0x204780)){_0x7f6027['containsRange'](_0x5d77b3)?_0x424bad['removeMarkers']():_0x5d77b3['containsPosition'](_0xb86939)?_0xb86939=_0x5d77b3['end']:_0x5d77b3['containsPosition'](_0x4a868f)&&(_0x4a868f=_0x5d77b3['start']);continue;}_0xb86939=_0xb86939['isBefore'](_0x5d77b3['start'])?_0xb86939:_0x5d77b3['start'],_0x4a868f=_0x4a868f['isAfter'](_0x5d77b3['end'])?_0x4a868f:_0x5d77b3['end'],_0x204780=Object['assign']({},_0x424bad['attributes']),_0x40a812?_0x5d77b3['start']['isBefore'](_0x40a812['getFirstRange']()['start'])?(_0x40a812['removeMarkers'](),_0x40a812=_0x424bad):_0x424bad['removeMarkers']():_0x40a812=_0x424bad;}}}if(_0x40a812)return this['_setSuggestionRange'](_0x40a812,this['_model']['createRange'](_0xb86939,_0x4a868f)),_0x40a812;{const _0x59a8df=_0x19ddda(),_0x33336c=this['_model']['createRange'](_0xb86939,_0x4a868f),_0xf5d425=_0x486113['id'],_0x263299=_0x46bcad?'deletion:'+_0x46bcad:'deletion',_0x150353=this['_setSuggestionData']({'id':_0x59a8df,'type':_0x263299,'createdAt':new Date(),'authorId':_0xf5d425,'attributes':_0x204780});return this['_addSuggestionMarker'](_0x263299,_0x59a8df,_0xf5d425,_0x33336c),_0x150353;}}['markMultiRangeDeletion'](_0x5a29e5,_0x1908cd='multi',_0x37df1d={}){const _0x53a118=this['editor']['plugins']['get']('Users')['me'],_0x218788=_0x5a29e5['map'](_0x3c2358=>new _0x25fa27(_0x3c2358['start'],_0x3c2358['end'])),_0x555eac=new Set();for(const {suggestion:_0x49b27f,meta:_0x446a10}of this['_findSuggestions'](_0x218788,'insertion'))_0x446a10['isOwn']&&!_0x446a10['isNextTo']&&_0x555eac['add'](_0x49b27f);for(const _0x213e2e of _0x555eac)if(_0x213e2e['isMultiRange']){const _0x14f0de=_0x213e2e['getRanges']();(!_0x213e2e['attributes']||!_0x213e2e['attributes']['skipNestingCheck'])&&(_0x14f0de['every'](_0x344ac8=>_0x218788['some'](_0x38a47b=>_0x38a47b['containsRange'](_0x344ac8,!0x0)))&&_0x213e2e['discard']());if(_0x218788['every'](_0x475398=>_0x14f0de['some'](_0x66ac22=>_0x66ac22['containsRange'](_0x475398,!0x0)))){const _0x383c0c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1908cd,'accept');return this['forceDefaultExecution'](()=>_0x383c0c(_0x5a29e5,null,_0x37df1d)),null;}}else{const _0x40312c=_0x213e2e['getFirstRange']();_0x218788['some'](_0x492446=>_0x492446['containsRange'](_0x40312c,!0x0))&&_0x213e2e['discard']();if(_0x218788['every'](_0x1a7de1=>_0x40312c['containsRange'](_0x1a7de1,!0x0))){const _0x1ebb33=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1908cd,'accept');return this['forceDefaultExecution'](()=>_0x1ebb33(_0x218788,null,_0x37df1d)),null;}}const _0x4f01f0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1908cd,'join');let _0x4a89b2=null;for(const _0x3dd361 of this['getSuggestions']())if(_0x3dd361['author']['id']==_0x53a118['id']&&_0x3dd361['isInContent']&&'deletion'==_0x3dd361['type']&&_0x3dd361['subType']==_0x1908cd&&Lt(_0x3dd361,_0x37df1d)&&(_0x4f01f0(_0x3dd361['getRanges'](),_0x218788)||_0x4f01f0(_0x218788,_0x3dd361['getRanges']()))){if(_0x4a89b2){if(_0x3dd361['commentThread']&&_0x3dd361['commentThread']['length'])continue;for(const _0x31cba5 of _0x3dd361['getRanges']())_0x4a89b2['isIntersectingWithRange'](_0x31cba5)||_0x4a89b2['addRange'](_0x31cba5);_0x3dd361['removeMarkers']();}else{_0x4a89b2=_0x3dd361;for(const _0x3bf8c9 of _0x218788)_0x3dd361['isIntersectingWithRange'](_0x3bf8c9)||_0x3dd361['addRange'](_0x3bf8c9);}}if(_0x4a89b2)return _0x4a89b2;_0x555eac['clear']();for(const {suggestion:_0xde1c0b,meta:_0x514d97}of this['_findSuggestions'](_0x218788,'deletion'))_0x514d97['isOwn']&&(this['_mergeNestedSuggestions']||!_0x514d97['containsRangeInObject']&&!_0x514d97['isInsideObject'])&&Lt(_0xde1c0b,_0x37df1d)&&_0x555eac['add'](_0xde1c0b);for(const _0xcab1d3 of _0x555eac){const _0x5aa126=_0xcab1d3['getRanges']();if(!_0x37df1d||!_0x37df1d['skipNestingCheck']){if(_0x218788['every'](_0xa45915=>_0x5aa126['some'](_0x244352=>_0x244352['containsRange'](_0xa45915,!0x0))))return _0xcab1d3;}(!_0xcab1d3['attributes']||!_0xcab1d3['attributes']['skipNestingCheck'])&&(_0x5aa126['every'](_0x12e752=>_0x218788['some'](_0x12e836=>_0x12e836['containsRange'](_0x12e752,!0x0)))&&_0xcab1d3['discard']());}const _0x2632ea=_0x19ddda(),_0x5dd01c=_0x53a118['id'],_0x2fb92f='deletion:'+_0x1908cd,_0x16e269=this['_setSuggestionData']({'id':_0x2632ea,'type':_0x2fb92f,'createdAt':new Date(),'authorId':_0x5dd01c,'attributes':_0x37df1d});for(const _0xfcb030 of _0x218788)_0xfcb030['detach'](),_0xfcb030['isCollapsed']||'$graveyard'==_0xfcb030['root']['rootName']||this['_addSuggestionMarker'](_0x2fb92f,_0x2632ea,_0x5dd01c,_0xfcb030,u['getMultiRangeId']());return _0x16e269;}['markAttributeChange'](_0x12aa77,_0x1a90a2,_0x3bc1bd,_0x39ffbd,_0x17d092){if(_0x12aa77['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x23671c=this['editor']['plugins']['get']('Users')['me']['id'],_0x55ce7b=Array['from'](this['_suggestions']['values']())['filter'](_0x1310ce=>'attribute'==_0x1310ce['type']&&_0x1310ce['data']['key']==_0x1a90a2&&_0x1310ce['isIntersectingWithRange'](_0x12aa77));if('default'===this['_trackFormatChanges']){const _0x10631e=this['_findSuggestions'](_0x12aa77,'insertion')['filter'](({meta:_0x313e7b})=>_0x313e7b['isOwn']&&!_0x313e7b['isInsideObject']&&!_0x313e7b['isNextTo'])['map'](({suggestion:_0x95d436})=>_0x95d436);_0x55ce7b['unshift'](..._0x10631e);}const _0x2bc6fd=new Map([[_0x12aa77,_0x3bc1bd]]);for(const _0x39a500 of _0x55ce7b){const _0x4fdfaa='attribute'==_0x39a500['type']?_0x39a500['data']['oldValue']:void 0x0,_0x243baf=_0x39a500['getFirstRange'](),_0x3b8e61=Array['from'](_0x2bc6fd['keys']())['find'](_0x19a2eb=>_0x19a2eb['isIntersecting'](_0x243baf));if(!_0x3b8e61)continue;const _0x21dab5=_0x3b8e61['getDifference'](_0x243baf);this['_isBlockAttribute'](_0x1a90a2)&&'insertion'==_0x39a500['type']&&0x0!=_0x21dab5['length']||(_0x2bc6fd['delete'](_0x3b8e61),_0x21dab5['forEach'](_0x2dd1bd=>{_0x2bc6fd['set'](_0x2dd1bd,_0x3bc1bd);}),'insertion'!=_0x39a500['type']&&_0x4fdfaa!=_0x39ffbd&&_0x2bc6fd['set'](_0x3b8e61['getIntersection'](_0x243baf),_0x4fdfaa));}const _0x21b92d=[];for(const [_0x116554,_0x38ad14]of _0x2bc6fd){const _0x5530d6=_0x19ddda(),_0x3af509={'key':_0x1a90a2,'oldValue':_0x38ad14,'newValue':_0x39ffbd};_0x1a90a2['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':_0x1a90a2});const _0x2091ca=('attribute:'+(_0x1a90a2+'|'+Vt({'newValue':_0x39ffbd})))['substring'](0x0,0x3c),_0xfa9192=this['_setSuggestionData']({'id':_0x5530d6,'type':_0x2091ca,'data':_0x3af509,'createdAt':new Date(),'authorId':_0x23671c,'attributes':_0x17d092});_0x21b92d['push'](_0xfa9192),this['_addSuggestionMarker'](_0x2091ca,_0x5530d6,_0x23671c,_0x116554);}return _0x21b92d;}['enableDefaultAttributesIntegration'](_0x5b441a){this['enableCommand'](_0x5b441a,(_0x28a03c,..._0x4b76bb)=>{this['_recordAttributeChanges'](()=>{_0x28a03c(..._0x4b76bb);});});}['registerBlockAttribute'](_0x3d5462){this['_blockAttributeKeys']['add'](_0x3d5462);}['registerInlineAttribute'](_0x120b6c){this['_inlineAttributeKeys']['add'](_0x120b6c);}['_getAttributeKey'](_0x247cde){return'attribute'==_0x247cde['type']?_0x247cde['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x233e35,_0x50c919){const _0x5114fa=_0x233e35['getFirstMarker']();this['_model']['change'](_0x2e0145=>{_0x2e0145['updateMarker'](_0x5114fa,{'range':_0x50c919});});}['_addThreadToSuggestion'](_0x48e049){const _0x3438e1=_0x48e049['id'],_0x13ac7d=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x3438e1)||this['_commentsRepository']['addCommentThread']({'channelId':_0x13ac7d,'threadId':_0x3438e1,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2edbbf=this['_commentsRepository']['getCommentThread'](_0x3438e1);_0x2edbbf['unbind']('isRemovable'),_0x2edbbf['isRemovable']=!0x1,_0x48e049['commentThread']=_0x2edbbf;}['_checkSuggestionCorrectness'](_0x3723bb,_0xd312c0,_0x56574d,_0x35f839){if(_0x3723bb['type']!=_0xd312c0||_0x3723bb['subType']!=_0x56574d||_0x3723bb['creator']['id']!=_0x35f839)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2c554b('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x4bc3d1,_0x28b608){const _0x2c5c5c=_0x4bc3d1['getFirstRange']();if(_0x28b608['isEqual'](_0x2c5c5c))_0x4bc3d1['removeMarkers']();else{if(_0x2c5c5c['containsRange'](_0x28b608)){const _0x1f4bcb=this['_model']['createPositionAt'](_0x28b608['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4bc3d1,this['_model']['createRange'](_0x2c5c5c['start'],_0x1f4bcb));const _0x1fcbac=_0x19ddda(),_0x2708d2=_0x4bc3d1['creator']['id'],_0x1ddc35=_0x4bc3d1['type']+':'+_0x4bc3d1['subType'];this['_setSuggestionData']({'id':_0x1fcbac,'type':_0x1ddc35,'createdAt':new Date(),'authorId':_0x2708d2,'data':_0x4bc3d1['data'],'attributes':_0x4bc3d1['attributes']});const _0x44d8fa=this['_model']['createPositionAt'](_0x28b608['end']['parent'],'after'),_0x375e5f=this['_model']['createRange'](_0x44d8fa,_0x2c5c5c['end']);this['_addSuggestionMarker'](_0x1ddc35,_0x1fcbac,_0x2708d2,_0x375e5f);}else{if(_0x2c5c5c['containsPosition'](_0x28b608['start'])){const _0x49e912=this['_model']['createPositionAt'](_0x28b608['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4bc3d1,this['_model']['createRange'](_0x2c5c5c['start'],_0x49e912));}else{const _0x41264a=this['_model']['createPositionAt'](_0x28b608['end']['parent'],'after');this['_setSuggestionRange'](_0x4bc3d1,this['_model']['createRange'](_0x41264a,_0x2c5c5c['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x11d598){for(const {suggestion:_0x50837b,meta:_0x4300dd}of this['_findSuggestions'](_0x11d598,'insertion')){if(!_0x4300dd['isOwn'])continue;const _0x67bd14=_0x50837b['getRanges']();for(const _0x18eb99 of _0x67bd14)if(!_0x11d598['getDifference'](_0x18eb99)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3701f6){const _0x9ac864=this['editor']['plugins']['get']('Users')['getUser'](_0x3701f6);if(!_0x9ac864)throw new _0x2c554b('track-changes-user-not-found',this);return _0x9ac864;}['_getExternalAuthor'](_0x4e5d69){const _0x46d160=this['editor']['plugins']['get']('Users'),_0x3614c9=_0x17e271('external:'+_0x4e5d69),_0x40da53=_0x46d160['getUser'](_0x3614c9);return _0x40da53||_0x46d160['addUser']({'id':_0x3614c9,'name':_0x4e5d69});}['_createSuggestion'](_0x3af629,_0x17a008,_0x5d7c9f,_0x3fa46c,_0x18d691){const _0x4d2e37=this['_getAuthorFromId'](_0x3fa46c),_0x1aff0d=this['_suggestionFactory']['buildSuggestion'](_0x3af629,_0x17a008,_0x5d7c9f,_0x4d2e37,_0x18d691,_0x2b9aa1=>{this['_updateSuggestionData'](_0x5d7c9f,{'attributes':_0x2b9aa1});const _0x13c4eb=this['getSuggestion'](_0x5d7c9f);this['_joinWithAdjacentSuggestions'](new Set([_0x13c4eb])),this['_refreshSuggestionsChain'](new Set([_0x13c4eb]));});return this['listenTo'](_0x1aff0d,'accept',()=>{this['_updateSuggestionData'](_0x5d7c9f,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1aff0d,'discard',()=>{this['_updateSuggestionData'](_0x5d7c9f,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x5d7c9f,_0x1aff0d),this['_suggestionState']['set'](_0x1aff0d,'notReady'),_0x1aff0d;}['_splitMarkerName'](_0x33d55a){const _0x3302bc=_0x33d55a['split'](':');return{'group':_0x3302bc[0x0],'type':_0x3302bc[0x1],'subType':_0x3302bc['length']>=0x5?_0x3302bc[0x2]:null,'id':_0x3302bc['length']<0x5?_0x3302bc[0x2]:_0x3302bc[0x3],'authorId':_0x3302bc['length']<0x5?_0x3302bc[0x3]:_0x3302bc[0x4],'markerCount':0x6==_0x3302bc['length']?_0x3302bc[0x5]:null};}['_breakSuggestionMarker'](_0xb88757,_0x3ff33a,_0x387568){const _0xf67077=_0xb88757['getFirstRange'](),_0x39b389=_0xf67077['start'],_0x2f71af=_0xf67077['end'];this['_setSuggestionRange'](_0xb88757,this['_model']['createRange'](_0x39b389,_0x3ff33a));const _0x1099d8=_0x19ddda(),_0x5b6220=_0xb88757['creator']['id'],_0x3c3914=_0xb88757['type']+(_0xb88757['subType']?':'+_0xb88757['subType']:'');this['_setSuggestionData']({'id':_0x1099d8,'type':_0x3c3914,'createdAt':new Date(),'authorId':_0x5b6220,'originalSuggestionId':_0xb88757['id'],'attributes':_0xb88757['attributes'],'data':_0xb88757['data']});const _0x3afc2c=this['_getAttributeKey'](_0xb88757);('formatBlock'==_0xb88757['type']||_0x3afc2c&&this['_isBlockAttribute'](_0x3afc2c))&&(_0x387568=this['_model']['createPositionBefore'](_0x387568['parent'])),this['_addSuggestionMarker'](_0x3c3914,_0x1099d8,_0x5b6220,this['_model']['createRange'](_0x387568,_0x2f71af));}['_findSuggestions'](_0x31cffc,_0x3fdd5f=null){const _0x53be0d=[],_0x1f4f8a=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x31cffc)||(_0x31cffc=[_0x31cffc]);for(const _0xfae29d of this['getSuggestions']()){if(!_0xfae29d['isInContent'])continue;if(_0x3fdd5f&&_0xfae29d['type']!=_0x3fdd5f)continue;let _0xb10fbb=!0x1;for(const _0x51451d of _0xfae29d['getRanges']()){for(const _0x4be9b7 of _0x31cffc){const _0x298f82=_0x4be9b7['start']['isEqual'](_0x51451d['end'])||_0x4be9b7['end']['isEqual'](_0x51451d['start']);if(_0x298f82||_0x4be9b7['getIntersection'](_0x51451d)){const _0x30784f=_0x4be9b7['containsRange'](_0x51451d)&&Rt(this['_model']['schema'],_0x51451d['start'],_0x4be9b7),_0x3e7529=_0x51451d['containsRange'](_0x4be9b7)&&Rt(this['_model']['schema'],_0x4be9b7['start'],_0x51451d);_0x53be0d['push']({'suggestion':_0xfae29d,'meta':{'isOwn':_0x1f4f8a==_0xfae29d['author'],'isNextTo':_0x298f82,'isInsideObject':_0x30784f,'containsRangeInObject':_0x3e7529}}),_0xb10fbb=!0x0;break;}}if(_0xb10fbb)break;}}return _0x53be0d;}['_addSuggestionMarker'](_0x30a552,_0x1a1ebf,_0x235658,_0x224e13,_0x585c94){this['_model']['change'](_0x482391=>{let _0x420556='suggestion:'+_0x30a552+':'+_0x1a1ebf+':'+_0x235658;_0x585c94&&(_0x420556=_0x420556+':'+_0x585c94),_0x482391['addMarker'](_0x420556,{'range':_0x224e13,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x497e50){const _0x1241ea=_0x497e50['previous'],_0x17a3af=_0x497e50['next'];_0x497e50['previous']=null,_0x497e50['next']=null,null!=_0x1241ea&&_0x1241ea['next']==_0x497e50&&(_0x1241ea['next']=_0x17a3af),null!=_0x17a3af&&_0x17a3af['previous']==_0x497e50&&(_0x17a3af['previous']=_0x1241ea),'ready'==this['_suggestionState']['get'](_0x497e50)&&(this['_suggestionState']['set'](_0x497e50,'removed'),this['fire']('suggestionUnloaded',_0x497e50,_0x1241ea,_0x17a3af));}['_setSuggestionData'](_0x4164ad){const _0x459203=_0x4164ad['id'],_0x553074=this['addSuggestionData'](_0x4164ad);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x52ec31=this['editor']['plugins']['get']('PendingActions'),_0x58aedf=_0x553074['hasComments'],_0x14a93c=_0x553074['subType']?_0x553074['type']+':'+_0x553074['subType']:_0x553074['type'],_0x37f959=this['editor']['locale'],_0x4f8ec9=_0x52ec31['add'](o(_0x37f959,'PENDING_ACTION_SUGGESTION')),_0x3f6db5={'id':_0x459203,'type':_0x14a93c,'hasComments':_0x58aedf,'data':_0x4164ad['data']||null,'originalSuggestionId':_0x4164ad['originalSuggestionId']||null,'attributes':_0x553074['attributes']};this['_adapter']['addSuggestion'](_0x3f6db5)['then'](_0x47752b=>{_0x553074['_saved']=!0x0,_0x52ec31['remove'](_0x4f8ec9),_0x47752b&&_0x47752b['createdAt']&&(this['_suggestions']['get'](_0x459203)['createdAt']=_0x47752b['createdAt']);})['catch'](_0x1098fd=>{throw _0x1518ab('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x553074['discard']();}),_0x553074['stopListening'](),this['_suggestions']['delete'](_0x553074['id']),this['_suggestionState']['delete'](_0x553074),_0x1098fd;});}return _0x553074;}['_isBlockAttribute'](_0x183b66){return this['_blockAttributeKeys']['has'](_0x183b66);}['_updateSuggestionData'](_0x128e8f,_0x4c4485){const _0x59f546=this['editor']['plugins']['get']('PendingActions'),_0xb17164=this['getSuggestion'](_0x128e8f);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xb17164['_saved']){const _0x2c4848=_0x59f546['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x128e8f,_0x4c4485)['then'](()=>{_0x59f546['remove'](_0x2c4848);});}else _0xb17164['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x128e8f,_0x4c4485);});}}['_getSuggestionData'](_0x306dd2){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2c554b('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x306dd2);}['_handleNewSuggestionMarker'](_0x236b0b){const {id:_0x55e9be,type:_0x2784e3,subType:_0x2dfd28,authorId:_0x444e9d}=this['_splitMarkerName'](_0x236b0b),_0x3401c9=this['_suggestions']['get'](_0x55e9be)||this['_createSuggestion'](_0x2784e3,_0x2dfd28,_0x55e9be,_0x444e9d,{});switch(this['_checkSuggestionCorrectness'](_0x3401c9,_0x2784e3,_0x2dfd28,_0x444e9d),this['_suggestionState']['get'](_0x3401c9)){case'notReady':this['_getSuggestionData'](_0x55e9be)['then'](_0x44b24c=>{let _0x24de08=Promise['resolve']();_0x44b24c['hasComments']&&(_0x24de08=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x55e9be})),_0x24de08['then'](()=>{this['addSuggestionData'](_0x44b24c)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3401c9,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x55e9be,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3401c9,'ready'),this['fire']('suggestionLoaded',_0x3401c9);break;case'ready':this['fire']('suggestionChanged',_0x3401c9);}return _0x3401c9['addMarkerName'](_0x236b0b),_0x3401c9;}['_refreshSuggestionsChain'](_0x594d4d){const _0x29b0d7=Array['from'](_0x594d4d),_0x3946bd=_0x29b0d7['filter'](_0x923a2a=>'attribute'==_0x923a2a['type']);this['_refreshAttributeSuggestionsChain'](_0x3946bd);const _0x431aff=_0x29b0d7['filter'](_0x982ec8=>!_0x982ec8['isMultiRange']&&'attribute'!=_0x982ec8['type']),_0xe847fb=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x312a6c=>!_0x312a6c['isMultiRange']&&'attribute'!=_0x312a6c['type']),_0x5c821d=_0xe847fb['filter'](_0x169987=>!_0x594d4d['has'](_0x169987)),_0x581736=new Map(_0xe847fb['map'](_0x36acd5=>[_0x36acd5,this['_suggestionFactory']['getSuggestionCallback'](_0x36acd5['type'],_0x36acd5['subType'],'chain')])),_0x3f800e=new Map(_0xe847fb['map'](_0x357e7c=>[_0x357e7c,_0x357e7c['getFirstRange']()])),_0x4b4709=new Set(),_0x21c03e=new Set();for(let _0x1033a8=0x0;_0x1033a8<_0x431aff['length'];_0x1033a8++)_0x5eab20(_0x431aff[_0x1033a8],_0x431aff,_0x1033a8+0x1);for(let _0x4e1faa=0x0;_0x4e1faa<_0x431aff['length'];_0x4e1faa++)_0x5eab20(_0x431aff[_0x4e1faa],_0x5c821d,0x0);const _0x440963=new Set();for(let _0x203c0=0x0;_0x203c0<_0x431aff['length'];_0x203c0++){const _0x53b4a3=_0x431aff[_0x203c0];!_0x21c03e['has'](_0x53b4a3)&&_0x53b4a3['previous']&&(_0x440963['add'](_0x53b4a3['previous']),_0x53b4a3['previous']['next']===_0x53b4a3&&(_0x53b4a3['previous']['next']=null),_0x53b4a3['previous']=null),!_0x4b4709['has'](_0x53b4a3)&&_0x53b4a3['next']&&(_0x440963['add'](_0x53b4a3['next']),_0x53b4a3['next']['previous']===_0x53b4a3&&(_0x53b4a3['next']['previous']=null),_0x53b4a3['next']=null);}function _0x5eab20(_0x2020e3,_0x243361,_0x59fba2){for(let _0xe87075=_0x59fba2;_0xe87075<_0x243361['length'];_0xe87075++){const _0x43d322=_0x3f57e0(_0x2020e3,_0x243361[_0xe87075]);_0x43d322&&(_0x43d322[0x0]['next']=_0x43d322[0x1],_0x43d322[0x1]['previous']=_0x43d322[0x0],_0x4b4709['add'](_0x43d322[0x0]),_0x21c03e['add'](_0x43d322[0x1]));}}function _0x3f57e0(_0xaeda30,_0x46a4f8){if(_0xaeda30['author']['id']!==_0x46a4f8['author']['id'])return null;const _0x27ccb3=_0x581736['get'](_0xaeda30)(_0xaeda30,_0x46a4f8,_0x3f800e['get'](_0xaeda30),_0x3f800e['get'](_0x46a4f8));if(!_0x27ccb3)return null;return _0x581736['get'](_0x46a4f8)(_0xaeda30,_0x46a4f8,_0x3f800e['get'](_0xaeda30),_0x3f800e['get'](_0x46a4f8))?_0x27ccb3[0x1]['commentThread']&&_0x27ccb3[0x1]['commentThread']['length']?null:_0x27ccb3:null;}_0x440963['size']&&this['_refreshSuggestionsChain'](_0x440963);}['_refreshAttributeSuggestionsChain'](_0x31ffe3){if(0x0==_0x31ffe3['length'])return;const _0x195fef=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4fa20a=>'attribute'==_0x4fa20a['type']&&_0x4fa20a['_isDataLoaded']),_0x2e1959=[],_0x4fe3d9=new Map();for(const _0x5ddb11 of _0x195fef){const _0xa7b374=_0x17e271(_0x5ddb11['attributes']);_0x4fe3d9['has'](_0xa7b374)||(_0x4fe3d9['set'](_0xa7b374,_0x2e1959['length']),_0x2e1959['push']([]));const _0x4b5bda=_0x4fe3d9['get'](_0xa7b374);_0x2e1959[_0x4b5bda]['push'](_0x5ddb11);}!(function(){_0x2e1959['sort']((_0x492f48,_0x7e1200)=>{const _0x1a7f06=_0x492f48[0x0]['createdAt'],_0x49787e=_0x7e1200[0x0]['createdAt'];return _0x1a7f06==_0x49787e?_0x492f48[0x0]['attributes']['groupId']<_0x7e1200[0x0]['attributes']['groupId']?-0x1:0x1:_0x1a7f06<_0x49787e?-0x1:0x1;});for(const _0x3c239b of _0x2e1959)_0x3c239b['sort']((_0x34a983,_0x57ac31)=>_0x34a983['id']<_0x57ac31['id']?-0x1:0x1);}());for(let _0x2b95e0=0x0;_0x2b95e0<_0x2e1959['length'];_0x2b95e0++){if(0x0==_0x2e1959[_0x2b95e0]['length'])continue;const _0x292508=[];for(let _0x28183e=_0x2b95e0+0x1;_0x28183e<_0x2e1959['length'];_0x28183e++)0x0!=_0x2e1959[_0x28183e]['length']&&_0x582079(_0x2e1959[_0x2b95e0],_0x2e1959[_0x28183e])&&_0x292508['push'](_0x28183e);for(const _0x35093b of _0x292508)_0x2e1959[_0x2b95e0]=_0x2e1959[_0x2b95e0]['concat'](_0x2e1959[_0x35093b]),_0x2e1959[_0x35093b]=[];}for(const _0x24ec3a of _0x2e1959)for(let _0x3b9b84=0x0;_0x3b9b84<_0x24ec3a['length'];_0x3b9b84++)_0x24ec3a[_0x3b9b84]['next']=_0x24ec3a[_0x3b9b84+0x1]||null;for(const _0x3ca917 of _0x2e1959)for(let _0x51e06d=0x0;_0x51e06d<_0x3ca917['length'];_0x51e06d++)_0x3ca917[_0x51e06d]['previous']=_0x3ca917[_0x51e06d-0x1]||null;function _0x582079(_0x21b362,_0x152feb){if(_0x21b362[0x0]['attributes']['groupId']!==_0x152feb[0x0]['attributes']['groupId']&&_0x21b362[0x0]['author']!==_0x152feb[0x0]['author'])return!0x1;if(!function(_0x5c68d5,_0x3cfb1b){if(!_0x5c68d5['hasComments']&&!_0x3cfb1b['hasComments'])return!0x0;if(_0x5c68d5['hasComments']&&_0x3cfb1b['hasComments'])return!0x1;if(_0x5c68d5['hasComments']&&_0x3cfb1b['createdAt']<_0x5c68d5['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x3cfb1b['hasComments']&&_0x5c68d5['createdAt']<_0x3cfb1b['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x21b362[0x0],_0x152feb[0x0]))return!0x1;const _0x58a0d6=Bt(_0x21b362[0x0]['attributes'],'groupId'),_0x35fad7=Bt(_0x152feb[0x0]['attributes'],'groupId');if(!_0x1f5f1d(_0x58a0d6,_0x35fad7))return!0x1;return!!_0x21b362['every'](_0x4eb9d4=>_0x152feb['some'](_0x7b801a=>_0x4eb9d4['getFirstRange']()['isEqual'](_0x7b801a['getFirstRange']())))&&_0x152feb['every'](_0x5ef891=>_0x21b362['some'](_0x579853=>_0x5ef891['getFirstRange']()['isEqual'](_0x579853['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x312077){const _0x2df6da=Array['from'](_0x312077),_0x1fae0d=this['getSuggestions']({'skipNotAttached':!0x0}),_0x5a6bf6=_0x1fae0d['filter'](_0x1dca77=>!_0x312077['has'](_0x1dca77)),_0x2d7d0d=new Map(_0x2df6da['map'](_0x1e7b97=>[_0x1e7b97,this['_suggestionFactory']['getSuggestionCallback'](_0x1e7b97['type'],_0x1e7b97['subType'],'join')])),_0x5280d8=new Map(_0x1fae0d['map'](_0x3f86c2=>[_0x3f86c2,_0x3f86c2['getRanges']()]));for(let _0xd83f4b=0x0;_0xd83f4b<_0x2df6da['length'];_0xd83f4b++){if(_0x1ccd46(this,_0x2df6da[_0xd83f4b],_0x2df6da,_0xd83f4b+0x1))return!0x0;}for(let _0x4d8333=0x0;_0x4d8333<_0x2df6da['length'];_0x4d8333++){if(_0x1ccd46(this,_0x2df6da[_0x4d8333],_0x5a6bf6,0x0))return!0x0;}return!0x1;function _0x1ccd46(_0x50e89c,_0x41313f,_0x2bc393,_0x1097c5){for(let _0x2ff511=_0x1097c5;_0x2ff511<_0x2bc393['length'];_0x2ff511++){const _0xbd6088=_0x2bc393[_0x2ff511];if(_0xbd6088['type']!==_0x41313f['type']||_0xbd6088['author']['id']!==_0x41313f['author']['id']||_0xbd6088['subType']!==_0x41313f['subType'])continue;if(!Pt(_0x41313f,_0xbd6088,['groupId']))continue;if('attribute'==_0x41313f['type']&&_0x41313f['data']['oldValue']!=_0xbd6088['data']['oldValue'])continue;if('attribute'==_0x41313f['type']&&_0x50e89c['_isBlockAttribute'](_0x41313f['data']['key']))continue;if('formatBlock'==_0x41313f['type']){const _0x1219af=_0x50e89c['editor']['model'],_0x55a0fe=_0x41313f['getContainedElement']();if(_0x55a0fe&&(_0x1219af['schema']['isObject'](_0x55a0fe)||_0x1219af['schema']['isLimit'](_0x55a0fe)))continue;}const _0x574637=_0x2d7d0d['get'](_0x41313f),_0x4d996e=_0x5280d8['get'](_0x41313f),_0x429813=_0x5280d8['get'](_0xbd6088),_0x3307ad=_0x41313f['commentThread']&&_0x41313f['commentThread']['length'],_0x59cce0=_0xbd6088['commentThread']&&_0xbd6088['commentThread']['length'];if(!_0x3307ad&&_0x574637(_0x429813,_0x4d996e))return _0x50e89c['_joinSuggestions'](_0xbd6088,_0x41313f),_0x5280d8['delete'](_0x41313f),!0x0;if(!_0x59cce0&&_0x574637(_0x4d996e,_0x429813))return _0x50e89c['_joinSuggestions'](_0x41313f,_0xbd6088),_0x5280d8['delete'](_0xbd6088),!0x0;}return!0x1;}}['_joinSuggestions'](_0x1ff03c,_0x3659ca){if(_0x1ff03c['isMultiRange']){for(const _0x584ab9 of _0x3659ca['getRanges']())_0x1ff03c['addRange'](_0x584ab9);}else{const _0x32f176=_0x3659ca['getFirstRange']()['end'];this['_setSuggestionRange'](_0x1ff03c,this['_model']['createRange'](_0x1ff03c['getFirstRange']()['start'],_0x32f176));}_0x3659ca['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2e0411,_0x26b626){const _0x45d191=_0x2e0411['startsWith']('format')||_0x2e0411['startsWith']('attribute')?'FORMATTING':_0x2e0411['toUpperCase']();return o(this['editor']['locale'],_0x26b626+'_'+_0x45d191+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x2d30d0=this['editor'];if(!_0x2d30d0['ui'])return;const {ariaLiveAnnouncer:_0x9dbcd4}=_0x2d30d0['ui'];_0x1ab3f8(this['_model'],({left:_0x38bfa2,entered:_0x1d3347})=>{for(const _0x128e48 of _0x38bfa2){const {group:_0x2d404d,type:_0x4aad3b}=this['_splitMarkerName'](_0x128e48['name']);if('suggestion'===_0x2d404d){_0x9dbcd4['announce'](this['_getMarkerAnnouncementText'](_0x4aad3b,'LEAVE'));break;}}for(const _0x33f596 of _0x1d3347){const {group:_0x477f7c,type:_0x1b1857}=this['_splitMarkerName'](_0x33f596['name']);if('suggestion'===_0x477f7c){_0x9dbcd4['announce'](this['_getMarkerAnnouncementText'](_0x1b1857,'ENTER'));break;}}});}['_processAttributeChanges'](_0x326e42){if(this['_recordAttributeSuggestions'])return!0x1;const _0xa3bcbc=this['editor'],_0x57e610=_0xa3bcbc['model']['document']['differ']['getChanges']();if(0x0==_0x57e610['length'])return!0x1;const _0x27bb19=[],_0x48f3fa=_0x57e610['filter'](_0x422852=>'attribute'==_0x422852['type']),_0x2c99cd=_0x57e610['filter'](_0x3f52ad=>'insert'==_0x3f52ad['type']&&'$text'!=_0x3f52ad['name']),_0x3b4b2e=_0x57e610['filter'](_0x11fa8d=>'remove'==_0x11fa8d['type']&&'$text'!=_0x11fa8d['name']);for(const _0x1de45c of _0x48f3fa)_0x27bb19['push']({'key':_0x1de45c['attributeKey'],'newValue':_0x1de45c['attributeNewValue'],'oldValue':_0x1de45c['attributeOldValue'],'range':Ot(_0x1de45c['range'],_0xa3bcbc['model'])});for(const _0xc2f076 of _0x2c99cd){const _0x339291=_0x3b4b2e['find'](_0x2a64a4=>_0x2a64a4['position']['isEqual'](_0xc2f076['position']));_0x339291&&_0x27bb19['push']({'key':m,'newValue':_0xc2f076['name'],'oldValue':_0x339291['name'],'range':_0xa3bcbc['model']['createRangeOn'](_0xc2f076['position']['nodeAfter'])});}return 0x0!=_0x27bb19['length']&&this['_reduceExistingSuggestions'](_0x326e42,_0x27bb19);}['_processAttributeSuggestions'](_0x320fd0){let _0x398ec5=!0x1;const _0x7ed327=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x17b762=>_0x17b762['data']['newRange']&&_0x17b762['name']['startsWith']('suggestion:attribute:'));for(const _0x44d34a of _0x7ed327){const {subType:_0x1383f0,id:_0x516700}=this['_splitMarkerName'](_0x44d34a['name']),_0x59ade3=_0x1383f0['split']('|')[0x0];for(const _0x1ed9c2 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x1ed9c2['id']!=_0x516700&&'attribute'==_0x1ed9c2['type']&&_0x1ed9c2['data']&&_0x1ed9c2['data']['key']==_0x59ade3&&_0x1ed9c2['getFirstRange']()['isIntersecting'](_0x44d34a['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x1ed9c2,_0x44d34a['data']['newRange'],_0x320fd0),_0x398ec5=!0x0);}return _0x398ec5;}['_recordAttributeChanges'](_0x4a4b15){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x4a4b15();}['_isRegisteredAttribute'](_0x3ff75b){const _0x543d62=this['_isBlockAttribute'](_0x3ff75b),_0x1298e1=this['_inlineAttributeKeys']['has'](_0x3ff75b);return _0x543d62||_0x1298e1;}['_reduceExistingSuggestions'](_0x106a2c,_0x192445){if(0x0==_0x192445['length'])return!0x1;let _0x326a4e=!0x1;for(const _0x39a455 of _0x192445){const _0x17a7ae=this['_findSuggestions'](_0x39a455['range'],'attribute')['filter'](_0x4c9e49=>!_0x4c9e49['meta']['isNextTo'])['map'](_0x2c8d2a=>_0x2c8d2a['suggestion']),_0x5a708b=_0x17e271({'newValue':_0x39a455['newValue']});_0x17a7ae['filter'](_0x544fe2=>{const [_0x5d4b61,_0xd7e614]=_0x544fe2['subType']['split']('|');return _0x5d4b61==_0x39a455['key']&&_0xd7e614!=_0x5a708b;})['forEach'](_0x6b0e93=>{this['_reduceSuggestionAttributeRange'](_0x6b0e93,_0x39a455['range'],_0x106a2c),_0x326a4e=!0x0;});}return _0x326a4e;}['_reduceSuggestionAttributeRange'](_0x397a65,_0x2277a7,_0x6f984a){const _0x3d49fb=_0x397a65['getFirstRange']()['getDifference'](_0x2277a7);0x0!==_0x3d49fb['length']?0x1!==_0x3d49fb['length']?this['_breakSuggestionMarker'](_0x397a65,_0x2277a7['start'],_0x2277a7['end']):this['_setSuggestionRange'](_0x397a65,_0x3d49fb[0x0]):_0x6f984a['removeMarker'](_0x397a65['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0xfbde6f){this['_editor']=_0xfbde6f,this['_model']=_0xfbde6f['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2ddf29,_0x4d28e5,_0x472b87,_0x15b578,_0x2365c9,_0x16b3ad){return new u(this['_model'],{'type':_0x2ddf29,'subType':_0x4d28e5,'id':_0x472b87,'author':_0x15b578,'creator':_0x15b578,'attributes':_0x2365c9,'onAttributesChange':_0x16b3ad,'onAccept':(..._0x448055)=>this['getSuggestionCallback'](_0x2ddf29,_0x4d28e5,'accept')(..._0x448055),'onDiscard':(..._0x432c77)=>this['getSuggestionCallback'](_0x2ddf29,_0x4d28e5,'discard')(..._0x432c77)});}['registerCustomCallback'](_0x12732e,_0x60265e,_0x270689,_0x2ab610){const _0x35c111=_0x12732e+':'+_0x60265e+':'+_0x270689;this['_customCallbacks']['set'](_0x35c111,_0x2ab610);}['getSuggestionCallback'](_0x1f8b22,_0xf56003,_0x26b755){const _0x4804ce=_0x1f8b22+':'+_0xf56003+':'+_0x26b755;return this['_customCallbacks']['get'](_0x4804ce)||this['_defaultCallbacks']['get'](_0x1f8b22+':'+_0x26b755);}['_registerDefaultCallbacks'](){const _0x167b88=()=>!0x1,_0x53f162=_0x480ccc=>{_0x480ccc['sort']((_0x2cf240,_0x3e5907)=>_0x2cf240['start']['isBefore'](_0x3e5907['start'])?0x1:-0x1),this['_model']['change'](_0x31f168=>{for(const _0x1f9a83 of _0x480ccc){let _0x51adc9;_0x51adc9=_0x1f9a83['end']['isAtEnd']&&_0x1f9a83['end']['parent']==_0x1f9a83['start']['nodeAfter']?_0x31f168['createSelection'](_0x1f9a83['start']['nodeAfter'],'on'):_0x31f168['createSelection'](_0x1f9a83),this['_model']['deleteContent'](_0x51adc9,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x15ea76=(_0x4851bb,_0x1d8cb1)=>{_0x1d8cb1&&this['_model']['change'](_0xf7a261=>{const {commandName:_0x5474f1,commandParams:_0x500266=[]}=_0x1d8cb1,_0x352882=_0x4851bb['map'](_0x5ccc4c=>(Tt(_0x5ccc4c)&&(_0x5ccc4c=this['_model']['createRange'](_0x5ccc4c['end'])),_0x5ccc4c))['filter'](_0x5f17d8=>'$graveyard'!==_0x5f17d8['root']['rootName']);if(_0x352882['length']<0x1)return;const _0x3148a4=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x239efa=>_0x25fa27['fromRange'](_0x239efa));_0xf7a261['setSelection'](_0x352882);for(const _0x18dcc5 of this['_editor']['commands']['commands']())_0x18dcc5['refresh']();_0x500266['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x5474f1,..._0x500266);const _0x427580=_0x3148a4['filter'](_0x16edb5=>'$graveyard'!=_0x16edb5['root']['rootName']);_0x427580['length']>0x0&&_0xf7a261['setSelection'](_0x427580);for(const _0x1a536c of _0x3148a4)_0x1a536c['detach']();});},_0x4c679d=(_0x1c1d3b,_0x1e33e0)=>0x1==_0x1c1d3b['length']&&0x1==_0x1e33e0['length']&&_0x1c1d3b[0x0]['end']['isEqual'](_0x1e33e0[0x0]['start']),_0x32f19e=(_0x435973,_0x7b9387,_0x5a22b9,_0x2abf5c)=>Ft(_0x435973,_0x7b9387,_0x5a22b9,_0x2abf5c,this['_model'])?[_0x435973,_0x7b9387]:Ft(_0x7b9387,_0x435973,_0x2abf5c,_0x5a22b9,this['_model'])?[_0x7b9387,_0x435973]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x167b88),this['_defaultCallbacks']['set']('insertion:discard',_0x53f162),this['_defaultCallbacks']['set']('insertion:join',_0x4c679d),this['_defaultCallbacks']['set']('insertion:chain',_0x32f19e),this['_defaultCallbacks']['set']('deletion:accept',_0x53f162),this['_defaultCallbacks']['set']('deletion:discard',_0x167b88),this['_defaultCallbacks']['set']('deletion:join',_0x4c679d),this['_defaultCallbacks']['set']('deletion:chain',_0x32f19e),this['_defaultCallbacks']['set']('formatInline:accept',_0x15ea76),this['_defaultCallbacks']['set']('formatInline:discard',_0x167b88),this['_defaultCallbacks']['set']('formatInline:join',_0x4c679d),this['_defaultCallbacks']['set']('formatInline:chain',_0x167b88),this['_defaultCallbacks']['set']('formatBlock:accept',_0x15ea76),this['_defaultCallbacks']['set']('formatBlock:discard',_0x167b88),this['_defaultCallbacks']['set']('formatBlock:join',_0x4c679d),this['_defaultCallbacks']['set']('formatBlock:chain',_0x167b88),this['_defaultCallbacks']['set']('attribute:accept',_0x167b88),this['_defaultCallbacks']['set']('attribute:discard',(_0x3533a2,_0x53cc4c)=>{if(!_0x53cc4c)return;const _0x1de295=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x4400e9=>{if(_0x53cc4c['key']==m)for(const _0xfa0b3 of _0x3533a2){const _0x184fad=_0xfa0b3['start']['nodeAfter'],_0xc89c92=_0x53cc4c['oldValue'];_0x4400e9['rename'](_0x184fad,_0xc89c92);}else{if(_0x1de295['_isBlockAttribute'](_0x53cc4c['key'])){for(const _0x569d41 of _0x3533a2)void 0x0!==_0x53cc4c['oldValue']?_0x4400e9['setAttribute'](_0x53cc4c['key'],_0x53cc4c['oldValue'],_0x569d41['start']['nodeAfter']):_0x4400e9['removeAttribute'](_0x53cc4c['key'],_0x569d41['start']['nodeAfter']);}else{for(const _0x4dcd6c of _0x3533a2)_0x53cc4c['oldValue']?_0x4400e9['setAttribute'](_0x53cc4c['key'],_0x53cc4c['oldValue'],_0x4dcd6c):_0x4400e9['removeAttribute'](_0x53cc4c['key'],_0x4dcd6c);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4c679d);}}function Rt(_0x2ef78f,_0x1b7600,_0x5888f6){for(const _0x38a12a of _0x1b7600['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x38a12a['root']==_0x38a12a)return!0x1;if(!_0x5888f6['containsItem'](_0x38a12a))return!0x1;if(_0x2ef78f['isObject'](_0x38a12a)||_0x2ef78f['isLimit'](_0x38a12a))return!0x0;}return!0x1;}function Tt(_0x572445){return _0x572445['end']['parent']==_0x572445['start']['nodeAfter']&&_0x572445['end']['isAtStart'];}function Et(_0x199f29,_0x390410,_0x368d47,_0x2c85a6){const _0x2d637a=_0x1f8ded=>!_0x1f8ded['item']['is']('$textProxy')&&!_0x2c85a6['isObject'](_0x1f8ded['item']),_0x2215ec=_0x199f29['start']['getLastMatchingPosition'](_0x2d637a),_0x42d3b4=_0x199f29['end']['getLastMatchingPosition'](_0x2d637a,{'direction':'backward'});return(!_0x199f29['start']['isEqual'](_0x2215ec)||!_0x199f29['end']['isEqual'](_0x42d3b4))&&(_0x2215ec['isBefore'](_0x42d3b4)?_0x368d47['updateMarker'](_0x390410,{'range':_0x368d47['createRange'](_0x2215ec,_0x42d3b4)}):_0x368d47['removeMarker'](_0x390410),!0x0);}function Vt(_0x47c1c6){return _0x17e271(_0x47c1c6);}function Ut(_0x3afdc2){const _0x3f06aa=_0x3afdc2['start']['nodeAfter'];return _0x3f06aa&&_0x3f06aa['is']('element');}function Ot(_0x26624f,_0x340226){return null==_0x26624f['end']['nodeBefore']&&_0x26624f['end']['parent']==_0x26624f['start']['nodeAfter']?Gt(_0x26624f['start']['nodeAfter'],_0x340226):_0x26624f;}function Gt(_0x7ca4ee,_0x23cf67){const _0x14ef13=_0x23cf67['schema']['isObject'](_0x7ca4ee)||_0x23cf67['schema']['isSelectable'](_0x7ca4ee);return _0x23cf67['createRange'](_0x23cf67['createPositionAt'](_0x7ca4ee,'before'),_0x14ef13?_0x23cf67['createPositionAfter'](_0x7ca4ee):_0x23cf67['createPositionAt'](_0x7ca4ee,'end'));}function Ft(_0x293bb7,_0x57bf19,_0x26d6ad,_0x51c599,_0x4efdb2){if(!Pt(_0x293bb7,_0x57bf19))return!0x1;if(_0x26d6ad['end']['isEqual'](_0x51c599['start']))return!0x0;if(_0x293bb7['type']!=_0x57bf19['type'])return!0x1;if(!_0x26d6ad['end']['isTouching'](_0x51c599['start']))return!0x1;const _0x2b96ed=_0x4efdb2['createRange'](_0x26d6ad['end'],_0x51c599['start'])['getWalker']();for(const _0x345ee5 of _0x2b96ed)if(['elementStart','elementEnd']['includes'](_0x345ee5['type'])&&_0x4efdb2['schema']['isLimit'](_0x345ee5['item']))return!0x1;return!0x0;}function Pt(_0x15ee61,_0x53feb0,_0x15cb1b=[]){return!(!_0x15ee61['_isDataLoaded']||!_0x53feb0['_isDataLoaded'])&&_0x1f5f1d(Bt(_0x15ee61['attributes'],_0x15cb1b),Bt(_0x53feb0['attributes'],_0x15cb1b));}function Lt(_0x405b47,_0x3b6be3){const _0x2ba054=Ht(_0x405b47['attributes']),_0x60047=Ht(_0x3b6be3);if(!_0x405b47['_isDataLoaded'])return!0x1;for(const _0x29247e of Object['keys'](_0x60047))if(!_0x1f5f1d(_0x2ba054[_0x29247e],_0x60047[_0x29247e]))return!0x1;return!0x0;}function Ht(_0x5db6a8){const _0x2f9ef4=Object['assign']({},_0x5db6a8);return delete _0x2f9ef4['skipNestingCheck'],delete _0x2f9ef4['tablePasteChainId'],_0x2f9ef4;}class oe extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x744521(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4e338f,_0x4da165,_0x53d8fe,_0x1a6959){super(),this['model']=_0x4da165,this['view']=_0x53d8fe,this['commentThreadController']=_0x1a6959,this['_editor']=_0x4e338f,this['_acceptCommand']=_0x4e338f['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4e338f['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4a4486,_0x807628)=>_0x4a4486||_0x807628),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x254990=>_0x254990&&this['_editor']['model']['canEditAt'](_0x4da165['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x5d1d85=>_0x5d1d85&&this['_editor']['model']['canEditAt'](_0x4da165['getRanges']())),this['_pendingAction']=null,_0x53d8fe['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x53d8fe,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x53d8fe,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x53d8fe,'change:isDirty',()=>{_0x53d8fe['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 _0x376911=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x376911);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x2a5f2b{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x3a639d,_0x76b808,_0x3b0a23,_0x40c53c){super(_0x3a639d),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x76b808['authoredAt']),this['bind']('authoredAt')['to'](_0x76b808),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x76b808,this['_localUser']=_0x3b0a23,this['_config']=_0x40c53c,_0x40c53c['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x57f19f}=this['_config'];this['commentsListView']=new _0x57f19f(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',_0x5691ba=>_0x5691ba+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x3b4a01,_0x411a83)=>_0x3b4a01||!!_0x411a83);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x40d414}=this['_config'],_0x571d7f=new _0x40d414(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4389f0=_0x571d7f['commentInputView'];return _0x571d7f['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4389f0,'value',(_0x57030c,_0x267fff,_0x44c047)=>!!_0x44c047||_0x57030c&&!_0x267fff),_0x4389f0['on']('submit',(_0x389ae9,_0x4acef7)=>{this['fire']('addComment',_0x4acef7),_0x4389f0['editor']['setData']('');}),_0x4389f0['on']('cancel',()=>this['focus']()),_0x4389f0['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x571d7f;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x64d31c,_0x42692b,_0x40c3d2,_0x1b9249){super(_0x64d31c,_0x42692b,_0x40c3d2,_0x1b9249),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5b7542=>_0x5b7542&&_0x5b7542[0x0]?_0x5b7542[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x176a88,_0x25bcfd)=>{let _0x459d11='';for(const _0x40b6e0 of _0x176a88)_0x459d11+='<p>'+ds(_0x40b6e0['content'],_0x40b6e0['color'])+'</p>';return _0x25bcfd?_0x459d11:_0x399a48(_0x459d11,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x64d31c,'Accept\x20suggestion'),_0x234e5b['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x64d31c,'Discard\x20suggestion'),_0x234e5b['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x4db70c(_0x64d31c,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x4a08b2=this['bindTemplate'],_0x11bfc6=[{'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']}},{'tag':'time','attributes':{'datetime':_0x4a08b2['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x4a08b2['to']('authoredAt',_0x1759af=>this['_config']['formatDateTime'](_0x1759af))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];this['_model']['isExternal']&&_0x11bfc6['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x1b7c20={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x4a08b2['if']('isActive','ck-suggestion-wrapper--active'),_0x4a08b2['to']('type',_0x3d10e8=>'ck-suggestion-'+_0x3d10e8),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':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main']},'children':_0x11bfc6}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x1b7c20['children']['push'](this['commentsListView'],this['commentThreadInputView']),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this)),_0x1b7c20;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x26a2c8,_0x4afc55,_0x549515)=>{this['_descriptionElement']['innerHTML']=_0x549515;});}['_createButton'](_0x1f7592,_0x27b1c7,_0x1601e6,_0x12a1ac,_0xa50338){const _0x4be422=new _0x138f9c(this['locale']);return _0x4be422['set']({'label':_0x1f7592,'icon':_0x27b1c7,'tooltip':!0x0,'tooltipPosition':_0xa50338}),_0x4be422['extendTemplate']({'attributes':{'class':_0x1601e6}}),_0x4be422['on']('execute',()=>{this['fire'](_0x12a1ac,this['_model']['id']);}),_0x4be422;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}}function ds(_0x38d64e,_0xac55ab){let _0x1aa015='';return _0x1aa015+=_0x38d64e['split']('*')['map']((_0x40657c,_0x84513)=>_0x84513%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x40657c)+'</span>':us(_0x40657c))['join'](''),_0xac55ab&&(_0x1aa015+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0xac55ab['value']+'\x22\x20title=\x22'+_0xac55ab['title']+'\x22></span>'),_0x1aa015;}function us(_0x1cc41d){const _0x5b79a9=document['createElement']('span');return _0x5b79a9['innerText']=_0x1cc41d,_0x5b79a9['innerHTML'];}var ie='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20width=\x2220\x22\x20height=\x2220\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><g\x20fill=\x22#000\x22\x20fill-rule=\x22nonzero\x22><path\x20d=\x22M1\x203.28C1\x202.574\x201.574\x202\x202.272\x202h10.23c.703\x200\x201.272.573\x201.272\x201.28v12.768c0\x20.708-.574\x201.281-1.271\x201.281H2.272A1.276\x201.276\x200\x200\x201\x201\x2016.049V3.28zm11.503\x2012.954c-.008\x200-.006-12.77-.006-12.77\x200-.003-10.225-.004-10.225-.004.007\x200\x20.005\x2012.77.005\x2012.77\x200\x20.003\x2010.226.004\x2010.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351\x200\x20.636.284.636.64a.641.641\x200\x200\x201-.636.638H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.554c0-.352.292-.638.636-.638h5.116c.351\x200\x20.636.283.636.638a.641.641\x200\x200\x201-.636.639H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.555c0-.353.289-.639.633-.639h2.567c.35\x200\x20.633.284.633.64a.639.639\x200\x200\x201-.633.638H4.826a.634.634\x200\x200\x201-.632-.639z\x22/><path\x20d=\x22M10.515\x2017.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319\x200-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6\x201.059-.56\x202.11.119\x201.051.68\x201.443\x201.271\x201.177\x201.771L14.53\x2017.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954\x202.954\x200\x200\x200-.487.21\x202.044\x202.044\x200\x200\x200-.347.31c-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z\x22/></g></svg>\x0a';class d extends _0x1edda9{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x49986a,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x54eace){super(_0x54eace),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x26b174=this['editor']['config'];_0x26b174['define']('trackChanges.SuggestionThreadView',ne),_0x26b174['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x26b174['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x33160f,_0xcfb1cf){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x4cc0ee,_0x27df39]of this['_handleControllerBuffer']){const _0x49801e=this['_suggestionToController']['has'](_0x4cc0ee);_0x49801e||_0x27df39?_0x49801e&&_0x27df39&&this['_destroyController'](_0x4cc0ee):this['_initializeController'](_0x4cc0ee);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x33160f,_0xcfb1cf);}['init'](){const _0x566f3a=this['editor'],_0x418c96=_0x566f3a['plugins']['get']('TrackChangesEditing'),_0x3bb098=_0x566f3a['plugins']['get']('Annotations'),_0x2d05b5=_0x566f3a['plugins']['get']('EditorAnnotations'),_0x51db5f=_0x566f3a['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x2d05b5['addSourceCollector'](()=>{const _0x1efbad=[];for(const [_0x56b276,_0x2a598e]of Array['from'](this['_suggestionToController'])){const _0x3efb07=_0x56b276['getAllAdjacentSuggestions'](),_0x41a8a0=[];for(const _0x34e853 of _0x3efb07){if(!_0x34e853['isInContent'])continue;if(_0x34e853['isMultiRange']){_0x41a8a0['push'](..._0x34e853['getRanges']());continue;}const _0xeafbb7=_0x34e853['getFirstRange']();if(_0x41a8a0['length']>0x0){const _0x343be3=_0x41a8a0[0x0]['getJoined'](_0xeafbb7);if(_0x343be3){_0x41a8a0[0x0]=_0x343be3;continue;}}_0x41a8a0['push'](_0xeafbb7);}_0x1efbad['push']([_0x2a598e['view'],_0x41a8a0]);}return _0x1efbad;}),this['listenTo'](_0x418c96,'suggestionLoaded',(_0x4c0912,_0x3d1e7c)=>{this['listenTo'](_0x3d1e7c,'change:previous',(_0x439a06,_0x3b4d82,_0x3264f1,_0x392bb6)=>{_0x3d1e7c['isInContent']&&(null==_0x3264f1?(this['_updateController'](_0x392bb6['head']),this['_handleSuggestionControllerDelayed'](_0x3d1e7c,!0x1)):(this['_updateController'](_0x3264f1['head']),null==_0x392bb6&&this['_handleSuggestionControllerDelayed'](_0x3d1e7c,!0x0)));}),null!==_0x3d1e7c['previous']?this['_updateController'](_0x3d1e7c['head']):this['_handleSuggestionControllerDelayed'](_0x3d1e7c,!0x1);}),this['listenTo'](_0x418c96,'suggestionUnloaded',(_0x4e89c4,_0x1adc8b,_0x237943)=>{this['stopListening'](_0x1adc8b,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1adc8b),this['_suggestionToController']['has'](_0x1adc8b)&&this['_destroyController'](_0x1adc8b),_0x237943&&this['_updateController'](_0x237943['head']);}),this['listenTo'](_0x418c96,'suggestionChanged',(_0x13882c,_0x31ced6)=>{this['_updateController'](_0x31ced6);}),this['listenTo'](_0x3bb098,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x51db5f,'addComment',(_0x1c263c,{threadId:_0x40897f,isFromAdapter:_0x345352})=>{if(_0x345352||!_0x418c96['hasSuggestion'](_0x40897f))return;const _0xeb2994=_0x418c96['getSuggestion'](_0x40897f);this['_suggestionToController']['get'](_0xeb2994)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x3cbf83=this['editor']['plugins']['get']('Annotations'),_0xdb9ad3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2ff858=Array['from'](_0x3cbf83['activeAnnotations'],_0x32b161=>_0x32b161['innerView'])['filter'](_0x4da2c6=>this['_viewToController']['has'](_0x4da2c6)),_0x30b3cf=[];for(const _0x68310e of _0x2ff858){const _0x40546c=this['_viewToController']['get'](_0x68310e)['model']['getAllAdjacentSuggestions']();_0x30b3cf['push'](..._0x40546c['reduce']((_0x58b01b,_0x787ee6)=>[..._0x58b01b,..._0x787ee6['getMarkerNames']()],[]));}_0xdb9ad3['activeMarkers']=_0x30b3cf;}['_addUIComponentsToFactory'](){const _0x50e5c3=this['editor'],_0x3255a9=_0x50e5c3['locale'],_0x560507=o(_0x3255a9,'Track\x20changes'),_0x39fdd2=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x560507,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x3255a9,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x3255a9,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x3255a9,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x3255a9,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0xba7f66 of _0x39fdd2)if(ae(_0xba7f66)){const _0x264263=_0x50e5c3['commands']['get'](_0xba7f66['model']['commandName']);_0xba7f66['model']['bind']('isOn','isEnabled')['to'](_0x264263,'value','isEnabled');}_0x50e5c3['ui']['componentFactory']['add']('trackChanges',_0x66ba3b=>this['_createToolbarButton'](_0x66ba3b,_0x39fdd2,_0x560507)),_0x50e5c3['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2f2ab8=>this['_createMenuBarMenu'](_0x2f2ab8,_0x39fdd2,_0x560507));}['_createToolbarButton'](_0x456ba3,_0x4128d8,_0x530e02){const _0x16ac13=zt(_0x456ba3,Zt),_0x4d0efa=this['editor']['commands']['get']('trackChanges');_0x16ac13['buttonView']['set']({'tooltip':_0x530e02,'label':_0x530e02,'icon':ie}),_0x16ac13['buttonView']['bind']('isOn')['to'](_0x4d0efa,'value'),_0x16ac13['buttonView']['on']('execute',()=>{_0x4d0efa['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x16ac13,_0x4128d8,{'role':'menu'});const _0x467051=[];for(const _0x1c64fc of _0x4128d8)ae(_0x1c64fc)&&_0x467051['push'](this['editor']['commands']['get'](_0x1c64fc['model']['commandName']));const _0x5f03e3=_0x16ac13['buttonView'];return _0x5f03e3['actionView']['unbind']('isEnabled'),_0x5f03e3['arrowView']['unbind']('isEnabled'),_0x5f03e3['actionView']['bind']('isEnabled')['to'](_0x4d0efa,'isEnabled'),_0x5f03e3['arrowView']['bind']('isEnabled')['toMany'](_0x467051,'isEnabled',(..._0x2246c2)=>_0x2246c2['some'](_0x323889=>_0x323889)),_0x16ac13['on']('execute',_0x361a08=>{this['editor']['execute'](_0x361a08['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x16ac13;}['_createMenuBarMenu'](_0x16c5f3,_0x1f02c8,_0x5252d9){const _0x158121=new Kt(_0x16c5f3),_0x5c32fb=this['editor']['commands']['get']('trackChanges');_0x158121['buttonView']['set']({'label':_0x5252d9,'icon':ie});const _0x5ddfca=new Qt(_0x16c5f3);for(const _0x56a18c of _0x1f02c8){if('separator'==_0x56a18c['type']){_0x5ddfca['items']['add'](new Jt(_0x16c5f3));continue;}const _0x21ad1a=new Xt(_0x16c5f3,_0x158121),_0x57c4c8=new Yt(_0x16c5f3),_0x9aacfd=_0x56a18c['model'];_0x57c4c8['bind'](...Object['keys'](_0x9aacfd))['to'](_0x9aacfd),_0x57c4c8['delegate']('execute')['to'](_0x158121),_0x57c4c8['on']('execute',()=>{this['editor']['execute'](_0x9aacfd['commandName']),this['editor']['editing']['view']['focus']();}),_0x21ad1a['children']['add'](_0x57c4c8),_0x5ddfca['items']['add'](_0x21ad1a);}return _0x158121['bind']('isEnabled')['to'](_0x5c32fb,'isEnabled'),_0x158121['panelView']['children']['add'](_0x5ddfca),_0x158121;}['_initializeController'](_0x287147){const _0x2837f7=this['editor'],_0x2380f7=_0x2837f7['config'],_0x1bc7f4=_0x2837f7['plugins']['get']('Annotations'),_0x4720e2=_0x2837f7['plugins']['get']('CommentsRepository'),_0xe540c8=_0x2837f7['plugins']['get']('EditorAnnotations'),_0x273445=_0x2837f7['plugins']['get'](_0x49986a)['me'],_0x672623=_0x2380f7['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x3672be,CommentThreadInputView:_0x360b4a}=_0x2837f7['plugins']['get']('CommentsUI');let _0x1670d1,_0x5c926b;this['_annotationViews']['has'](_0x287147['id'])?(_0x5c926b=this['_annotationViews']['get'](_0x287147['id']),_0x1670d1=_0x5c926b['mainView']):(_0x1670d1=new _0x672623(_0x2837f7['locale'],_0x287147,_0x273445,{'disableComments':this['_disableComments'],'editorConfig':_0x2380f7['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x2380f7['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2380f7['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2380f7['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x25fc43(_0x2380f7['get']('locale')),'CommentView':_0x2380f7['get']('comments')['CommentView'],'CommentsListView':_0x3672be,'CommentThreadInputView':_0x360b4a}),_0x1670d1['acceptButton']['on']('execute',()=>{_0x2837f7['editing']['view']['focus']();}),_0x1670d1['discardButton']['on']('execute',()=>{_0x2837f7['editing']['view']['focus']();}),_0x5c926b=_0x1bc7f4['createAnnotationView'](this['editor']['locale'],_0x1670d1),_0x5c926b['bind']('isDirty')['to'](_0x1670d1,'isDirty'),_0x5c926b['bind']('length')['to'](_0x1670d1),_0x5c926b['bind']('type')['to'](_0x1670d1,'type',_0x1f781c=>'suggestion-'+_0x1f781c),this['_annotationViews']['set'](_0x287147['id'],_0x5c926b));const _0x3b39f0=_0x4720e2['createCommentThreadController'](_0x287147['commentThread'],_0x1670d1),_0x39da42=new oe(_0x2837f7,_0x287147,_0x1670d1,_0x3b39f0),_0x332bca=_0x287147['getAllAdjacentSuggestions']()['filter'](_0x2fb661=>_0x2fb661['isInContent']);_0x1670d1['descriptionParts']=_0x2837f7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x332bca),this['_suggestionToController']['set'](_0x287147,_0x39da42),this['_viewToController']['set'](_0x1670d1,_0x39da42);const _0x3d62c4=_0x1bc7f4['createAnnotation']({'view':_0x5c926b,'target':()=>{const _0x55a40=[],_0x3c2054=_0x287147['getAllAdjacentSuggestions']()['filter'](_0x47447b=>_0x47447b['isInContent']);for(const _0x1e16f7 of _0x3c2054)_0x55a40['push'](..._0x1e16f7['getMarkers']());return _0x2c8974(_0x2837f7['editing'],_0x55a40);},'type':()=>'suggestion-'+_0x39da42['view']['type']});_0x4720e2['_bindAnnotationToEditors'](_0x1670d1,_0x3d62c4),_0x1bc7f4['add'](_0x3d62c4),_0xe540c8['registerAnnotation'](_0x3d62c4);}['_destroyController'](_0x5ac42f){const _0x2e54da=this['editor']['plugins']['get']('CommentsRepository'),_0x70c7bd=this['editor']['plugins']['get']('Annotations'),_0x2a53b4=this['_suggestionToController']['get'](_0x5ac42f),_0x102c0f=_0x2a53b4['view'],_0x4c223f=_0x70c7bd['getByInnerView'](_0x102c0f);_0x2e54da['_unbindEditors'](_0x102c0f),_0x4c223f&&_0x70c7bd['remove'](_0x4c223f),this['_suggestionToController']['delete'](_0x5ac42f),this['_viewToController']['delete'](_0x102c0f),_0x2a53b4['destroy']();}['_updateController'](_0x2ef66a){if(!_0x2ef66a['isInContent']||!this['_suggestionToController']['has'](_0x2ef66a))return;const _0x1877cd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x50b483=this['_suggestionToController']['get'](_0x2ef66a),_0xd17ed3=_0x2ef66a['getAllAdjacentSuggestions']();_0x50b483['view']['descriptionParts']=_0x1877cd['descriptionFactory']['getDescriptions'](_0xd17ed3);}['destroy'](){for(const _0x146bb7 of this['_suggestionToController']['keys']())this['_destroyController'](_0x146bb7);for(const _0x4a7bbd of this['_annotationViews']['values']())_0x4a7bbd['mainView']['destroy']();super['destroy']();}}function ae(_0x1a3080){return'model'in _0x1a3080;}class k extends _0x1edda9{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x110ab0){this['editor']['plugins']['get'](p)['adapter']=_0x110ab0;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x339a85){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x339a85);}['getSuggestions']({skipNotAttached:_0x53362d=!0x1,toJSON:_0x37d7b9=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x53362d,'toJSON':_0x37d7b9});}['getSuggestion'](_0x5dc2f8){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x5dc2f8);}}const T=['Pagination'];class P extends _0x1edda9{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x51b4e=this['editor'];if(_0x51b4e['config']['define']('trackChangesData.editorCreator',_0x2817ca=>{const _0x524c6b=_0x51b4e['model']['document']['getRootNames']()['reduce']((_0x307c57,_0x1adcb0)=>(_0x307c57[_0x1adcb0]='',_0x307c57),{});return _0x51b4e['constructor']['create'](_0x524c6b,_0x2817ca);}),'function'!=typeof _0x51b4e['config']['get']('trackChangesData')['editorCreator'])throw new _0x2c554b('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x361374){return N(this['editor'],!0x0,_0x361374);}['getDataWithDiscardedSuggestions'](_0x5b7a2b){return N(this['editor'],!0x1,_0x5b7a2b);}}class D extends _0x1edda9{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x167d01){super(_0x167d01),this['result']='end';}['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 v(_0xa35cb0){return void 0x0!==_0xa35cb0['getRootsAttributes'];}async function N(_0xffeffb,_0x3cb00a,_0x565895){const _0x5df589=_0x58edcd(_0xffeffb,T);_0x5df589['plugins']['push'](p,D),_0x5df589['rootsAttributes']=v(_0xffeffb)?_0xffeffb['getRootsAttributes']():void 0x0;const _0x598282=document['createDocumentFragment'](),_0x23e14b=_0xffeffb['config']['get']('trackChangesData')['editorCreator'],_0xfe2936=await _0x23e14b(_0x5df589,()=>function(_0x33ea68){const _0x1f7bd6=document['createElement']('div');return _0x33ea68['appendChild'](_0x1f7bd6),_0x1f7bd6;}(_0x598282));!function(_0x1c3790,_0x55487c){const _0x452db0=_0x1c3790['model']['document']['getRootNames']()['reduce']((_0x16ef83,_0x30f662)=>(_0x16ef83[_0x30f662]=_0x1c3790['data']['get']({'rootName':_0x30f662}),_0x16ef83),{}),_0x234fcf=_0x1c3790['plugins']['get']('Users')['users']['map'](_0x230b93=>({'id':_0x230b93['id'],'name':_0x230b93['name']})),_0x1c8f89=_0x1c3790['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x485fd7=_0x1c3790['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xdddb8b=_0x55487c['plugins']['get']('Users'),_0x464ac8=_0x55487c['plugins']['get']('TrackChangesEditing'),_0x3ef66b=_0x55487c['plugins']['get']('CommentsRepository');for(const _0x29e666 of _0x234fcf)_0xdddb8b['getUser'](_0x29e666['id'])||_0xdddb8b['addUser'](_0x29e666);_0xdddb8b['me']||_0xdddb8b['useAnonymousUser']();for(const _0x1ad516 of _0x485fd7)_0x3ef66b['addCommentThread'](_0x1ad516);for(const _0x2e4d09 of _0x1c8f89)_0x464ac8['addSuggestionData'](_0x2e4d09);_0x55487c['data']['set'](_0x452db0);}(_0xffeffb,_0xfe2936),_0xfe2936['execute'](_0x3cb00a?'acceptAllSuggestions':'discardAllSuggestions');const _0x11c1dd=v(_0xfe2936)?_0xfe2936['getFullData'](_0x565895):_0xfe2936['data']['get'](_0x565895);return await _0xfe2936['destroy'](),_0x11c1dd;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as ts,Plugin as _0x2038e0,PendingActions as _0x3358c6,icons as _0x22d87a}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x20823b,ObservableMixin as _0x55c26b,uid as _0x515477,insertToPriorityArray as _0x452403,priorities as _0x5a1e23,logWarning as _0x4da14c,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x5f329a,View as _0x4e4f55,ButtonView as _0x3febb6,ViewModel as te,createDropdown as zt,SplitButtonView as Zt,addListToDropdown as qt,MenuBarMenuView as Kt,MenuBarMenuListView as Qt,ListSeparatorView as Jt,MenuBarMenuListItemView as Xt,MenuBarMenuListItemButtonView as Yt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x3f3120,hashObject as _0x1b8e80,surroundingMarkersDetector as _0x95be56,trimHtml as _0x14f51e,UserView as _0x47a603,getDateTimeFormatter as _0x175bce,getAllMarkersDomElementsSorted as _0x3a5f01,sanitizeEditorConfig as _0x48088a}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x180a1b,LiveRange as _0x55bce1,LivePosition as _0x2dcd53}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x51e2fb,toWidget as _0x4a559b}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x46c56e,set as _0x1ac14b,isEqual as _0x33f02c,unset as _0x5c2f41,omit as Bt}from'lodash-es';import{Delete as _0x59896e,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x26c0b4,ShiftEnter as _0x31854a}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x26d35f,_0x2d4749){super(_0x26d35f),this['_enabledCommands']=_0x2d4749,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 _0xe21b20 of this['editor']['commands']['commands']())_0xe21b20['affectsData']&&!this['_enabledCommands']['has'](_0xe21b20)&&_0xe21b20['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x21b36c of this['editor']['commands']['commands']())_0x21b36c['affectsData']&&!this['_enabledCommands']['has'](_0x21b36c)&&_0x21b36c['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x195048,_0x4ebf69){super(_0x195048),this['_suggestions']=_0x4ebf69,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x59b196){const _0xcb4ace=this['_suggestions']['get'](_0x59b196);if(!_0xcb4ace)throw new _0x20823b('track-changes-accept-suggestion-not-found',this);const _0x240bc4=_0xcb4ace['getRanges']();this['editor']['model']['canEditAt'](_0x240bc4)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0xcb4ace);}}class B extends ts{['_suggestions'];constructor(_0xb90707,_0x3bdad1){super(_0xb90707),this['_suggestions']=_0x3bdad1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x542012){const _0x138bd5=this['_suggestions']['get'](_0x542012);if(!_0x138bd5)throw new _0x20823b('track-changes-discard-suggestion-not-found',this);const _0x206c55=_0x138bd5['getRanges']();this['editor']['model']['canEditAt'](_0x206c55)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x138bd5);}}function ss(_0x15f585){return _0x15f585['sort']((_0x11bc7f,_0xd8de6d)=>'deletion'==_0x11bc7f['type']&&'deletion'!=_0xd8de6d['type']?-0x1:'deletion'!=_0x11bc7f['type']&&'deletion'==_0xd8de6d['type']?0x1:0x0);}function to(_0xa21fbe,_0x2c39d4){let _0x48b1c5,_0x28efab=0x0;const _0x30fc0e=[],_0x1cfd08=_0x2c39d4['schema'];for(;_0x28efab<_0xa21fbe['length'];){const _0x466f5b=_0xa21fbe[_0x28efab],_0x30e5fa=_0xa21fbe[_0x28efab+0x1];_0x48b1c5||(_0x48b1c5=_0x2c39d4['createPositionBefore'](_0x466f5b)),co(_0x2c39d4,_0x466f5b,_0x30e5fa)||(_0x30fc0e['push'](_0x2c39d4['createRange'](_0x48b1c5,_0x1cfd08['isObject'](_0x466f5b)?_0x2c39d4['createPositionAfter'](_0x466f5b):_0x2c39d4['createPositionAt'](_0x466f5b,'end'))),_0x48b1c5=null),_0x28efab++;}return _0x30fc0e;}function co(_0x4b1ff2,_0x29af36,_0x437d13){if(!_0x437d13)return!0x1;const _0x374333=_0x4b1ff2['createPositionAfter'](_0x29af36),_0x3dc23f=_0x4b1ff2['createPositionBefore'](_0x437d13);return _0x374333['isTouching'](_0x3dc23f);}function rs(_0x4c2df8,_0x2d00d3,_0x315fc8){for(;_0x315fc8['length'];){const _0x30447d=_0x315fc8['splice'](0x0,0x64);_0x4c2df8['change'](()=>{for(const _0x5673fa of _0x30447d)_0x5673fa['isInContent']&&_0x2d00d3['execute'](_0x5673fa['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x38fe9a,_0x3ec490,_0x54a1e1){super(_0x38fe9a),this['_command']=_0x3ec490,this['_suggestions']=_0x54a1e1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3b5b57=Array['from'](this['_suggestions']['values']())['some'](_0x2f9eac=>_0x2f9eac['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x3b5b57;}['execute'](){const _0x103ca8=ss(Array['from'](this['_suggestions']['values']()));for(const _0x32c6ce of _0x103ca8){const _0x5daf80=_0x32c6ce['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5daf80))return;}rs(this['editor']['model'],this['_command'],_0x103ca8);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x1f6af0,_0x3bca29,_0x50e75a){super(_0x1f6af0),this['_command']=_0x3bca29,this['_suggestions']=_0x50e75a,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x316d3e=this['editor']['model']['document']['selection'],_0x10a6e9=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0xcd4af7,_0x4f0ac2){const _0x13fde6=Array['from'](_0xcd4af7['getRanges']()),_0x46142b=new Set();for(const _0x395cfd of _0x4f0ac2)if(_0x395cfd['isInContent']){for(const _0x5bb9d4 of _0x13fde6)for(const _0x714be8 of _0x395cfd['getRanges']())(_0x5bb9d4['isIntersecting'](_0x714be8)||_0xcd4af7['isCollapsed']&&!_0x395cfd['isMultiRange']&&_0x395cfd['next']&&_0x714be8['end']['isTouching'](_0x5bb9d4['start']))&&_0x46142b['add'](_0x395cfd);}return _0x46142b;}(_0x316d3e,_0x10a6e9),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x24d896=ss(Array['from'](this['_selectedSuggestions']));for(const _0x4754c5 of _0x24d896){const _0x3f7bb0=_0x4754c5['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3f7bb0))return;}rs(this['editor']['model'],this['_command'],_0x24d896);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x55c26b(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x2c9f28,_0x2be5db){super(),this['id']=_0x2be5db['id'],this['type']=_0x2be5db['type'],this['subType']=_0x2be5db['subType']||null,this['author']=_0x2be5db['author'],this['creator']=_0x2be5db['creator']||_0x2be5db['author'],this['isExternal']=Boolean(_0x2be5db['attributes']&&_0x2be5db['attributes']['@external']),this['data']=null,this['_model']=_0x2c9f28,this['_onAccept']=_0x2be5db['onAccept'],this['_onDiscard']=_0x2be5db['onDiscard'],this['_onAttributesChange']=_0x2be5db['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x2be5db['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 _0x177afd=this;for(;_0x177afd['previous'];)_0x177afd=_0x177afd['previous'];return _0x177afd;}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'](_0x502f8c){this['_markerNames']['add'](_0x502f8c);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x27ee40=>this['_model']['markers']['get'](_0x27ee40))['filter'](_0x5b5f99=>_0x5b5f99);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x315427=>{for(const _0x2cada3 of this['getMarkers']())_0x315427['removeMarker'](_0x2cada3);}),this['_markerNames']['clear']();}['removeMarker'](_0x3ee6d1){this['_model']['change'](_0x44c1e3=>{_0x44c1e3['removeMarker'](_0x3ee6d1);}),this['_markerNames']['delete'](_0x3ee6d1);}['addRange'](_0x3a9526){const _0xa91b64='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0xa91b64),this['_model']['change'](_0x30bc39=>{_0x30bc39['addMarker'](_0xa91b64,{'range':_0x3a9526,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3e7099){for(const _0x42b93b of this['getRanges']())if(_0x42b93b['isIntersecting'](_0x3e7099))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x35c6a0=>_0x35c6a0['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3a2e5a,_0x1c9a6)=>[..._0x3a2e5a,..._0x1c9a6['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x446f32=this['getRanges']();if(0x1!=_0x446f32['length'])return null;const _0x31f1c1=_0x446f32[0x0],_0x3047d6=_0x31f1c1['start']['nodeAfter'],_0x580eac=_0x31f1c1['end']['nodeBefore'];return _0x3047d6 instanceof _0x180a1b?_0x3047d6!=_0x580eac?null:_0x3047d6: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 _0x3ab3ad=[];let _0x14880b=this['head'];for(;_0x14880b;)_0x3ab3ad['push'](_0x14880b),_0x14880b=_0x14880b['next'];return _0x3ab3ad;}['setAttribute'](_0x2ddf05,_0x2c357d){const _0x53f9bb=_0x46c56e(this['attributes']);_0x1ac14b(_0x53f9bb,_0x2ddf05,_0x2c357d),_0x33f02c(_0x53f9bb,this['attributes'])||(this['attributes']=_0x53f9bb,this['_onAttributesChange'](_0x53f9bb));}['removeAttribute'](_0x375f27){const _0x3b24d6=_0x46c56e(this['attributes']);_0x5c2f41(_0x3b24d6,_0x375f27),_0x33f02c(_0x3b24d6,this['attributes'])||(this['attributes']=_0x3b24d6,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 _0x515477()['substr'](0x1,0x5);}}function o(_0xbb2676,_0x466f92,_0x295c19){const t=_0xbb2676['t'];switch(_0x466f92){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'*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',_0x295c19);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x295c19);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x295c19);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x295c19);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x295c19);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',_0x295c19);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x295c19);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');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',_0x295c19);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x295c19);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x295c19);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x295c19);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x295c19);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x295c19);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x295c19);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x295c19);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x295c19);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x295c19);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x295c19);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x295c19);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x295c19);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x295c19);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x295c19);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x295c19);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'},_0x295c19);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x295c19);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x295c19);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x295c19);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x295c19);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x295c19);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'},_0x295c19);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x295c19);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x295c19);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x295c19);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x295c19);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'},_0x295c19);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x295c19);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'},_0x295c19);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'},_0x295c19);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x295c19);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'},_0x295c19);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x295c19);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'},_0x295c19);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x295c19);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x295c19);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});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 t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x295c19);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x295c19);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'});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.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'});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.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});default:return _0x466f92;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x56c7f2,_0x149b49){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x56c7f2,this['_locale']=_0x149b49;}['getDescriptions'](_0x328da0){const _0x3dd4fb=[],_0x1bb4f8=new Set(),_0x3851ca=new Set();for(let _0x435a5a=0x0;_0x435a5a<_0x328da0['length'];_0x435a5a++){const _0x40e27f=_0x328da0[_0x435a5a];if(!_0x40e27f['isInContent'])continue;const _0x1566bf=this['_handleCustomCallbackDescription'](_0x40e27f);if(_0x1566bf){if(null!=_0x40e27f['subType']){if(_0x1bb4f8['has'](_0x40e27f['subType']))continue;_0x1bb4f8['add'](_0x40e27f['subType']);}_0x3dd4fb['push'](_0x1566bf);}else{if('attribute'!=_0x40e27f['type'])'insertion'!=_0x40e27f['type']&&'deletion'!=_0x40e27f['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3dd4fb,_0x40e27f,_0x328da0[_0x435a5a+0x1]);else{const _0x71c544=_0x40e27f['data']['key'];if(_0x3851ca['has'](_0x71c544))continue;_0x3851ca['add'](_0x40e27f['data']['key']),_0x71c544==m?this['_handleRenameSuggestionDescription'](_0x3dd4fb,_0x40e27f):this['_handleAttributeSuggestionDescription'](_0x3dd4fb,_0x40e27f);}}}return this['_resolveDescriptionItems'](_0x3dd4fb);}['registerDescriptionCallback'](_0x4bd88a){this['_customCallbacks']['push'](_0x4bd88a);}['registerElementLabel'](_0x39686d,_0x39cbf9,_0x19a1f4=_0x5a1e23['normal']){'function'==typeof _0x39686d?_0x452403(this['_itemLabelsCallbacks'],{'matchingCallback':_0x39686d,'label':_0x39cbf9,'priority':_0x19a1f4}):this['_itemLabels']['set'](_0x39686d,_0x39cbf9);}['registerAttributeLabel'](_0x1b3300,_0x2f23ae){this['_attributeLabels']['set'](_0x1b3300,_0x2f23ae);}['getItemLabel'](_0x15df9e,_0x47ea23=0x1){let _0x3863be;for(const _0x19edd9 of this['_itemLabelsCallbacks'])if(_0x19edd9['matchingCallback'](_0x15df9e)){_0x3863be=_0x19edd9['label'];break;}return _0x3863be||(_0x3863be=this['_itemLabels']['get'](_0x15df9e['name'])),_0x3863be?_0x3863be(_0x47ea23):0x1!==_0x47ea23?_0x47ea23+'\x20'+_0x15df9e['name']+'s':''+_0x15df9e['name'];}['_addDescriptionItems'](_0x35581d,_0x11495b){const _0x5c1a3b=_0x11495b['getFirstRange']()['getWalker'](),_0x476706='insertion'==_0x11495b['type']?'add':'remove';for(const _0x226276 of _0x5c1a3b){const _0x473fda=_0x226276['item'],_0x496673=_0x35581d[_0x35581d['length']-0x1];if(_0x473fda['is']('$textProxy'))_0x496673&&_0x496673['type']['indexOf']('Container')>-0x1&&_0x35581d['pop'](),_0x496673&&'text'==_0x496673['type']?_0x496673[_0x476706]+=_0x473fda['data']:_0x35581d['push']({'type':'text','add':'add'==_0x476706?_0x473fda['data']:'','remove':'remove'==_0x476706?_0x473fda['data']:''});else{if(this['_schema']['isObject'](_0x473fda)){const _0x340e17=_0x473fda;if(_0x496673&&_0x496673['type']['indexOf']('Container')>-0x1&&_0x35581d['pop'](),'elementEnd'==_0x226276['type'])continue;_0x496673&&_0x496673['type']==_0x476706+'Object'&&_0x496673['element']['name']==_0x340e17['name']?_0x496673['quantity']++:_0x35581d['push']({'type':_0x476706+'Object','element':_0x340e17,'quantity':0x1}),_0x5c1a3b['skip'](_0x18dbc6=>!('elementEnd'==_0x18dbc6['type']&&_0x18dbc6['item']==_0x473fda));}else{if(this['_schema']['checkChild'](_0x473fda,'$text')||_0x473fda['is']('element','softBreak')){const _0x3470a0=_0x473fda;if('add'==_0x476706&&'elementStart'==_0x226276['type']||'remove'==_0x476706&&'elementEnd'==_0x226276['type'])continue;if(_0x496673&&-0x1==_0x496673['type']['indexOf']('Container')){'text'==_0x496673['type']&&(_0x496673[_0x476706]+='\x0a');continue;}let _0x1b9c66;if(_0x1b9c66='add'==_0x476706?_0x3470a0['nextSibling']&&!this['_schema']['isObject'](_0x3470a0['nextSibling'])?_0x3470a0['nextSibling']:null:_0x3470a0['previousSibling']&&!this['_schema']['isObject'](_0x3470a0['previousSibling'])?_0x3470a0['previousSibling']:null,_0x3470a0['isEmpty']||_0x1b9c66&&_0x1b9c66['isEmpty']){const _0x3c3d93=_0x1b9c66&&_0x1b9c66['isEmpty']?_0x1b9c66:_0x3470a0;_0x496673&&_0x496673['type']==_0x476706+'EmptyContainer'&&_0x496673['element']['name']==_0x3c3d93['name']?_0x496673['quantity']++:_0x35581d['push']({'type':_0x476706+'EmptyContainer','element':_0x3c3d93,'quantity':0x1});}else _0x35581d['push']({'type':_0x476706+'Container','element':_0x3470a0});}}}}}['_resolveDescriptionItems'](_0xa77325){const _0x15db4c=this['_locale'],_0x31d4c6=[],_0x2ef241=[],_0x463f0c=[];for(const _0xce6cba of _0xa77325)switch(_0xce6cba['type']){case'text':if(_0xce6cba['add']=_0xce6cba['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0xce6cba['remove']=_0xce6cba['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0xce6cba['add']&&''!=_0xce6cba['remove']){_0x31d4c6['push']({'type':'replace','content':o(_0x15db4c,'REPLACE_TEXT',['\x22'+_0xce6cba['remove']+'\x22','\x22'+_0xce6cba['add']+'\x22'])});continue;}if(null!=_0xce6cba['add']['match'](/^ +$/)){_0x31d4c6['push']({'type':'insertion','content':o(_0x15db4c,'*Insert:*\x20%0',o(_0x15db4c,'ELEMENT_SPACE',_0xce6cba['add']['length']))});continue;}if(null!=_0xce6cba['remove']['match'](/^ +$/)){_0x31d4c6['push']({'type':'deletion','content':o(_0x15db4c,'*Remove:*\x20%0',o(_0x15db4c,'ELEMENT_SPACE',_0xce6cba['remove']['length']))});continue;}if(''!=_0xce6cba['add']){_0x31d4c6['push']({'type':'insertion','content':o(_0x15db4c,'*Insert:*\x20%0','\x22'+_0xce6cba['add']+'\x22')});continue;}_0x31d4c6['push']({'type':'deletion','content':o(_0x15db4c,'*Remove:*\x20%0','\x22'+_0xce6cba['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x31d4c6['push']({'type':'insertion','content':o(_0x15db4c,'*Insert:*\x20%0',this['getItemLabel'](_0xce6cba['element'],_0xce6cba['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x31d4c6['push']({'type':'deletion','content':o(_0x15db4c,'*Remove:*\x20%0',this['getItemLabel'](_0xce6cba['element'],_0xce6cba['quantity']))});continue;case'addContainer':_0x31d4c6['push']({'type':'insertion','content':o(_0x15db4c,'*Split:*\x20%0',this['getItemLabel'](_0xce6cba['element'],_0xce6cba['quantity']))});continue;case'removeContainer':_0x31d4c6['push']({'type':'deletion','content':o(_0x15db4c,'*Merge:*\x20%0',this['getItemLabel'](_0xce6cba['element'],_0xce6cba['quantity']))});continue;case'addFormat':_0x2ef241['push'](_0xce6cba['key']);continue;case'removeFormat':_0x463f0c['push'](_0xce6cba['key']);continue;default:_0x31d4c6['push'](_0xce6cba);}if(_0x2ef241['length']){const _0x5dd748=_0x2ef241['map'](_0x33978=>this['_attributeLabels']['has'](_0x33978)?this['_attributeLabels']['get'](_0x33978):_0x33978)['join'](',\x20');_0x31d4c6['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x5dd748)});}if(_0x463f0c['length']){const _0x225c6c=_0x463f0c['map'](_0x2e3e9e=>this['_attributeLabels']['has'](_0x2e3e9e)?this['_attributeLabels']['get'](_0x2e3e9e):_0x2e3e9e)['join'](',\x20');_0x31d4c6['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x225c6c)});}return _0x31d4c6;}['_handleCustomCallbackDescription'](_0x1e566d){for(const _0x39e50a of this['_customCallbacks']){const _0x19b1f5=_0x39e50a(_0x1e566d);if(_0x19b1f5&&'type'in _0x19b1f5)return _0x19b1f5;}}['_handleAttributeSuggestionDescription'](_0x5db0e3,_0x1fdbfd){const _0x544754=_0x1fdbfd['data'],_0x133420=void 0x0===_0x544754['newValue']?'removeFormat':'addFormat';_0x5db0e3['push']({'type':_0x133420,'key':_0x544754['key']});}['_handleRenameSuggestionDescription'](_0x14968e,_0x52f793){_0x14968e['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x52f793['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x4159e3,_0x350a13,_0x4cf466){if(this['_addDescriptionItems'](_0x4159e3,_0x350a13),_0x4cf466&&_0x4cf466['getFirstRange']()&&!_0x350a13['getFirstRange']()['end']['isEqual'](_0x4cf466['getFirstRange']()['start'])){const _0x1608f8=_0x4159e3[_0x4159e3['length']-0x1],_0x19ff88='insertion'==_0x350a13['type']?'add':'remove';_0x1608f8&&'text'==_0x1608f8['type']&&(_0x1608f8[_0x19ff88]+='\x0a');}}}class E extends _0x2038e0{['afterInit'](){const _0x87c9bd=this['editor'],_0x10b500=_0x87c9bd['plugins']['get']('TrackChangesEditing');_0x87c9bd['commands']['get']('showAIAssistant')&&_0x10b500['enableCommand']('showAIAssistant');}}class V extends _0x2038e0{['afterInit'](){const _0x164f0b=this['editor'],_0x30b037=_0x164f0b['locale'];if(!_0x164f0b['plugins']['has']('AlignmentEditing'))return;const _0x9d46ec=_0x164f0b['plugins']['get']('TrackChangesEditing');_0x9d46ec['enableDefaultAttributesIntegration']('alignment'),_0x9d46ec['registerBlockAttribute']('alignment'),_0x9d46ec['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x30b037,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x193062=this['editor'],_0x56bfbe=_0x193062['locale'];_0x193062['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x52931a=>{if('formatBlock'!=_0x52931a['type'])return;const {data:_0x955603}=_0x52931a;if(_0x955603&&'alignment'==_0x955603['commandName']){const _0x2a0f49=_0x955603['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x56bfbe,'*Format:*\x20%0',function(_0x209ad4){switch(_0x209ad4){case'left':return o(_0x56bfbe,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x56bfbe,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x56bfbe,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x56bfbe,'FORMAT_JUSTIFY_TEXT');}}(_0x2a0f49))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x2038e0{['afterInit'](){const _0x5806df=this['editor'],_0x393b52=_0x5806df['plugins']['get']('TrackChangesEditing'),_0x2058ca=_0x5806df['locale'];for(const _0x37cec3 of ti){if(!_0x5806df['plugins']['has'](_0x37cec3))continue;const _0x2a32b8=_0x37cec3['slice'](0x0,-0x7)['toLowerCase'](),_0x5cb1c3='FORMAT_'+_0x2a32b8['toUpperCase']();_0x393b52['enableDefaultAttributesIntegration'](_0x2a32b8),_0x393b52['registerInlineAttribute'](_0x2a32b8),_0x393b52['descriptionFactory']['registerAttributeLabel'](_0x2a32b8,o(_0x2058ca,_0x5cb1c3));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4a96e8=this['editor'],_0x362e9b=_0x4a96e8['locale'],_0x52ac00=_0x4a96e8['plugins']['get']('TrackChangesEditing');function _0x3e9b71(_0x36959e,_0x52dda){_0x52ac00['descriptionFactory']['registerDescriptionCallback'](_0x4f8538=>{if('formatInline'!=_0x4f8538['type'])return;const {data:_0x3e8bc7}=_0x4f8538;return _0x3e8bc7&&_0x3e8bc7['commandName']===_0x36959e?_0x3e8bc7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x362e9b,'*Format:*\x20%0',_0x52dda)}:{'type':'format','content':o(_0x362e9b,'*Remove\x20format:*\x20%0',_0x52dda)}:void 0x0;});}_0x3e9b71('bold',o(_0x362e9b,'FORMAT_BOLD')),_0x3e9b71('italic',o(_0x362e9b,'FORMAT_ITALIC')),_0x3e9b71('underline',o(_0x362e9b,'FORMAT_UNDERLINE')),_0x3e9b71('code',o(_0x362e9b,'FORMAT_CODE')),_0x3e9b71('strikethrough',o(_0x362e9b,'FORMAT_STRIKETHROUGH')),_0x3e9b71('subscript',o(_0x362e9b,'FORMAT_SUBSCRIPT')),_0x3e9b71('superscript',o(_0x362e9b,'FORMAT_SUPERSCRIPT'));}}class O extends _0x2038e0{['afterInit'](){const _0x464d04=this['editor'],_0x5b0a1e=_0x464d04['locale'];if(!_0x464d04['plugins']['has']('BlockQuoteEditing'))return;const _0x1c969b=_0x464d04['plugins']['get']('TrackChangesEditing'),_0x4f2ce7=this['editor']['commands']['get']('blockQuote');_0x1c969b['enableCommand']('blockQuote',(_0x5100f1,_0x3092ec={})=>{const _0x592926=this['editor']['model']['document']['selection'],_0x4e77d9=_0x3092ec&&void 0x0!==_0x3092ec['forceValue']?_0x3092ec['forceValue']:!_0x4f2ce7['value'];let _0x4fe0f3=[];if(_0x4e77d9){const _0x8cc9e4=Array['from'](_0x592926['getSelectedBlocks']())['filter'](_0xef0ca5=>oo(_0xef0ca5)||function(_0x3328b4,_0xf3d4c2){const _0x45c2ae=_0xf3d4c2['checkChild'](_0x3328b4['parent'],'blockQuote'),_0xf4e63f=_0xf3d4c2['checkChild'](['$root','blockQuote'],_0x3328b4);return _0x45c2ae&&_0xf4e63f;}(_0xef0ca5,this['editor']['model']['schema']));_0x4fe0f3=to(_0x8cc9e4,_0x464d04['model']);}else{const _0x1339cc=Array['from'](_0x592926['getSelectedBlocks']())['filter'](_0x3087fc=>oo(_0x3087fc));_0x4fe0f3=to(_0x1339cc,_0x464d04['model']);}_0x464d04['model']['change'](()=>{for(const _0x548eb0 of _0x4fe0f3)_0x1c969b['markBlockFormat'](_0x548eb0,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x4e77d9}]});});}),_0x1c969b['descriptionFactory']['registerDescriptionCallback'](_0x127cc9=>{const {data:_0x3d643e}=_0x127cc9;if(_0x3d643e&&'blockQuote'==_0x3d643e['commandName']){const _0x52449f=o(_0x5b0a1e,'ELEMENT_BLOCK_QUOTE');return _0x3d643e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5b0a1e,'*Set\x20format:*\x20%0',_0x52449f)}:{'type':'format','content':o(_0x5b0a1e,'*Remove\x20format:*\x20%0',_0x52449f)};}});}}function oo(_0x2d35da){return'blockQuote'==_0x2d35da['parent']['name'];}class G extends _0x2038e0{['afterInit'](){const _0x4500b0=this['editor'];_0x4500b0['plugins']['has']('CaseChange')&&(_0x4500b0['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x4500b0['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x4500b0['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x2038e0{['afterInit'](){const _0x483336=this['editor'];_0x483336['commands']['get']('ckbox')&&_0x483336['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x2038e0{['afterInit'](){const _0x4bec94=this['editor'];if(!_0x4bec94['plugins']['has']('CodeBlock'))return;const _0x95cc2d=_0x4bec94['plugins']['get']('TrackChangesEditing'),_0x6a4188=_0x4bec94['locale'],_0x93f7ac=_0x4bec94['config']['get']('codeBlock')['languages'],_0x24ebe7=_0x4bec94['commands']['get']('codeBlock');_0x95cc2d['enableCommand']('indentCodeBlock'),_0x95cc2d['enableCommand']('outdentCodeBlock'),_0x95cc2d['enableCommand']('codeBlock',(_0x2c9a57,_0x13e8b5={})=>{const _0x1e2d1e=_0x4bec94['model'],_0x1b9d4b=_0x4bec94['model']['document']['selection'],_0x5d89d5=_0x13e8b5&&void 0x0!==_0x13e8b5['forceValue']?_0x13e8b5['forceValue']:!_0x24ebe7['value'];let _0x379e37;_0x13e8b5['language']||(_0x13e8b5['language']=_0x93f7ac[0x0]['language']),_0x379e37=_0x5d89d5?Array['from'](_0x1b9d4b['getSelectedBlocks']())['filter'](_0x470efd=>eo(_0x470efd)||function(_0x57d1b1,_0x41a6ec){if(_0x57d1b1['is']('rootElement')||_0x41a6ec['isLimit'](_0x57d1b1))return!0x1;return _0x41a6ec['checkChild'](_0x57d1b1['parent'],'codeBlock');}(_0x470efd,_0x1e2d1e['schema'])):Array['from'](_0x1b9d4b['getSelectedBlocks']())['filter'](_0x13c143=>eo(_0x13c143));const _0x1b5d4f=to(_0x379e37,_0x1e2d1e);_0x1e2d1e['change'](()=>{for(const _0x422c06 of _0x1b5d4f)_0x95cc2d['markBlockFormat'](_0x422c06,{'commandName':'codeBlock','commandParams':[{..._0x13e8b5,'forceValue':_0x5d89d5}],'formatGroupId':'blockName'});});}),(_0x95cc2d['descriptionFactory']['registerElementLabel']('codeBlock',_0x24254d=>o(_0x6a4188,'ELEMENT_CODE_BLOCK',_0x24254d)),_0x95cc2d['descriptionFactory']['registerDescriptionCallback'](_0x2a53b3=>{if('formatBlock'!=_0x2a53b3['type'])return;const _0x157c7f=_0x6a4188['t'],{data:_0xacaf13}=_0x2a53b3;if(!_0xacaf13||'codeBlock'!=_0xacaf13['commandName'])return;const _0x452cbf=_0xacaf13['commandParams'][0x0]['language'],_0x5b01c7=_0x157c7f(_0x93f7ac['find'](_0x4aa927=>_0x4aa927['language']===_0x452cbf)['label'])['toLowerCase']();return _0xacaf13['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x6a4188,'*Set\x20format:*\x20%0',o(_0x6a4188,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5b01c7+')')}:{'type':'format','content':o(_0x6a4188,'*Remove\x20format:*\x20%0',o(_0x6a4188,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x5ca13f){return'codeBlock'==_0x5ca13f['name'];}class H extends _0x2038e0{['afterInit'](){const _0x5f163c=this['editor'];if(!_0x5f163c['plugins']['has']('CommentsEditing'))return;_0x5f163c['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x4249d7,_0xda2b0c,_0x236ab9){const _0x3413e8=[];for(const _0x135205 of _0xda2b0c['getItems']())_0x135205['hasAttribute'](_0x4249d7)&&_0x3413e8['push'](_0x236ab9['createRangeOn'](_0x135205));return _0x3413e8;}function _e(_0xa9a04,_0x552ea9,{showActiveMarker:_0x5ce575=!0x0}={}){const _0x100577=_0xa9a04['plugins']['get']('TrackChangesEditing');return(_0x17aed1,_0x5b798d,_0x355f0e)=>{if(!_0x355f0e['consumable']['test'](_0x5b798d['markerRange'],_0x17aed1['name']))return;const _0x5ab25c=_0x5b798d['markerRange']['getWalker'](),_0x19ba43=_0x5b798d['markerRange']['start'],_0x16352e=_0xa9a04['model']['schema'];let _0x194eff=null,_0x1cc1c4=null,_0x32af41=!0x1,_0xb07dff=!0x1;for(const _0xfbbc5d of _0x5ab25c){const _0x214da2=_0xfbbc5d['item'];_0x32af41=_0x32af41||_0x16352e['isContent'](_0x214da2);const _0x272eb9=_0x355f0e['mapper']['toViewElement'](_0x214da2);if(_0x272eb9&&_0x272eb9['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xfbbc5d['type']&&(_0x16352e['isBlock'](_0x214da2)&&!_0x16352e['isLimit'](_0x214da2)&&(_0x214da2['nextSibling']||_0x19ba43['isAtEnd']?_0x194eff&&_0x194eff['parent']==_0x214da2||(_0x194eff=_0x214da2,_0x3533f2(_0xfbbc5d['previousPosition']),_0xb07dff=!0x0):_0x1cc1c4=_0x1cc1c4||_0xfbbc5d['previousPosition']));}function _0x3533f2(_0x3d64b6){const _0x56bc65=_0x355f0e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x552ea9}),_0x5ee254=_0x355f0e['mapper']['toViewPosition'](_0x3d64b6);_0x5ce575&&_0x100577['activeMarkers']['includes'](_0x5b798d['markerName'])&&_0x355f0e['writer']['addClass']('ck-suggestion-marker--active',_0x56bc65),_0x355f0e['writer']['insert'](_0x5ee254,_0x56bc65),_0x355f0e['mapper']['bindElementToMarker'](_0x56bc65,_0x5b798d['markerName']);}_0x32af41||_0xb07dff||!_0x1cc1c4||_0x3533f2(_0x1cc1c4);};}class q extends _0x2038e0{static get['requires'](){return[_0x59896e];}['init'](){const _0x53e55d=this['editor'],_0x93b0a5=_0x53e55d['plugins']['get']('TrackChangesEditing');_0x93b0a5['enableCommand']('delete');const _0x962a41=_0x53e55d['commands']['get']('deleteForward');_0x93b0a5['enableCommand']('deleteForward',(_0x3023e9,_0x2151f9={})=>{const _0x306392=_0x53e55d['model']['createSelection'](_0x53e55d['model']['document']['selection']);_0x306392['isCollapsed']&&_0x53e55d['model']['modifySelection'](_0x306392,{'direction':'forward','unit':_0x2151f9['unit']});const _0x86de7a=_0x306392['getFirstRange'](),_0x4991fd=_0x55bce1['fromRange'](_0x86de7a);let _0x2c6c54;_0x3023e9(_0x2151f9),_0x2c6c54='$graveyard'==_0x4991fd['root']['rootName']?_0x53e55d['model']['createRange'](_0x86de7a['start']):_0x53e55d['model']['createRange'](_0x4991fd['start'],_0x4991fd['end']),_0x4991fd['detach'](),_0x53e55d['model']['enqueueChange'](_0x962a41['buffer']['batch'],_0xbaab69=>{_0x962a41['buffer']['lock'](),_0xbaab69['setSelection'](_0xbaab69['createRange'](_0x2c6c54['end'])),_0x962a41['buffer']['unlock']();});}),_0x53e55d['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x53e55d,'merge'),{'priority':'high'}),_0x53e55d['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4d3b2,_0x374e6c,_0x28a4cb)=>{_0x28a4cb['options']['showSuggestionHighlights']&&_e(_0x53e55d,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x4d3b2,_0x374e6c,_0x28a4cb);},{'priority':'high'}),_0x53e55d['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x279f25,_0x4ef765,_0x5d366f)=>{const _0xf93688=_0x5d366f['mapper']['markerNameToElements'](_0x4ef765['markerName']);if(_0xf93688){for(const _0x3dde74 of _0xf93688)_0x3dde74['is']('uiElement')&&(_0x5d366f['mapper']['unbindElementFromMarkerName'](_0x3dde74,_0x4ef765['markerName']),_0x5d366f['writer']['remove'](_0x3dde74));}},{'priority':'high'});}}class z extends _0x2038e0{['afterInit'](){const _0x2358ec=this['editor'];if(!_0x2358ec['plugins']['has']('ListEditing'))return;const _0x4a1076=_0x2358ec['locale'],_0x273d4f=_0x2358ec['plugins']['get']('TrackChangesEditing'),_0x3c72df=_0x2358ec['plugins']['has']('TodoListEditing'),_0x2f3965=!!_0x2358ec['config']['get']('list.multiBlock');function _0x510360(_0x58a85c){return{'type':'format','content':''+o(_0x4a1076,'*Set\x20format:*\x20%0',_0x58a85c)};}function _0x3945e8(_0x163d24){return{'type':'format','content':''+o(_0x4a1076,'*Remove\x20format:*\x20%0',_0x163d24)};}_0x273d4f['enableDefaultAttributesIntegration']('numberedList'),_0x273d4f['enableDefaultAttributesIntegration']('bulletedList'),_0x273d4f['enableDefaultAttributesIntegration']('customNumberedList'),_0x273d4f['enableDefaultAttributesIntegration']('customBulletedList'),_0x273d4f['enableDefaultAttributesIntegration']('indentList'),_0x273d4f['enableDefaultAttributesIntegration']('outdentList'),_0x273d4f['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x273d4f['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x273d4f['registerBlockAttribute']('listItemId'),_0x273d4f['registerBlockAttribute']('listType'),_0x273d4f['registerBlockAttribute']('listIndent'),_0x2f3965&&(_0x273d4f['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x273d4f['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x3c72df&&(_0x273d4f['enableDefaultAttributesIntegration']('todoList'),_0x273d4f['enableDefaultAttributesIntegration']('checkTodoList'),_0x273d4f['registerBlockAttribute']('todoListChecked'),_0x273d4f['descriptionFactory']['registerDescriptionCallback'](_0xe4642b=>{const {data:_0x504380}=_0xe4642b;if(_0x504380&&'todoListChecked'==_0x504380['key'])return{'type':'format','content':_0x504380['newValue']?o(_0x4a1076,'*Check\x20item*'):o(_0x4a1076,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x43281f=>{if(_0x43281f['batch']['isUndo'])return!0x1;let _0x20d34d=!0x1;const _0x2871bd=_0x273d4f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x25af2b=>'todoListChecked'===_0x273d4f['_getAttributeKey'](_0x25af2b));for(const _0x4253a8 of _0x2871bd){'todo'!=_0x4253a8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x273d4f['_findSuggestions'](_0x4253a8['getFirstRange'](),'attribute')['find'](_0x15718e=>'listType'===_0x273d4f['_getAttributeKey'](_0x15718e['suggestion']))||(_0x43281f['removeMarker'](_0x4253a8['getFirstMarker']()),_0x20d34d=!0x0));}return _0x20d34d;})),_0x273d4f['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x4a1076,'FORMAT_INDENT'));const _0x147c83={'type':'format','content':''};_0x273d4f['descriptionFactory']['registerDescriptionCallback'](_0x513fec=>{const {data:_0x70243e}=_0x513fec;if(!_0x70243e||'listType'!=_0x70243e['key'])return;let _0x106d09=_0x513fec['head'];for(;_0x106d09;){if(_0x106d09['data']&&(('listStyle'==_0x106d09['data']['key']||'listMarkerStyle'==_0x106d09['data']['key'])&&(_0x106d09['data']['newValue']&&'default'!=_0x106d09['data']['newValue']||'default'!=_0x106d09['data']['oldValue']&&!_0x70243e['newValue'])||!_0x2f3965&&_0x106d09['data']['key']==m))return _0x147c83;_0x106d09=_0x106d09['next'];}if(null==_0x70243e['newValue'])switch(_0x70243e['oldValue']){case'bulleted':return _0x3945e8(o(_0x4a1076,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3945e8(o(_0x4a1076,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3945e8(o(_0x4a1076,'ELEMENT_TODO_LIST'));}switch(_0x70243e['newValue']){case'bulleted':return _0x510360(o(_0x4a1076,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x510360(o(_0x4a1076,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x510360(o(_0x4a1076,'ELEMENT_TODO_LIST'));}}),_0x273d4f['descriptionFactory']['registerDescriptionCallback'](_0x3f11ec=>{const {data:_0x163a14}=_0x3f11ec;if(_0x163a14&&'listIndent'==_0x163a14['key'])return null==_0x163a14['newValue']||null==_0x163a14['oldValue']&&0x0==_0x163a14['newValue']?_0x147c83:void 0x0;}),_0x273d4f['descriptionFactory']['registerDescriptionCallback'](_0x31d4e2=>{if('attribute'!=_0x31d4e2['type'])return;const {data:_0x2fd24a}=_0x31d4e2;if(!_0x2fd24a||'listItemId'!=_0x2fd24a['key'])return;const _0x38cd56=le(_0x31d4e2);return'newValue'==_0x38cd56?{'type':'format','content':o(_0x4a1076,'*Merge:*\x20list\x20item')}:'oldValue'==_0x38cd56?{'type':'format','content':o(_0x4a1076,'*Split:*\x20list\x20item')}:_0x147c83;}),_0x2358ec['model']['document']['registerPostFixer'](_0x3c7a13=>this['listItemIdFixer'](_0x3c7a13)),_0x2358ec['model']['document']['registerPostFixer'](_0x27a078=>this['noTrackChangesFixer'](_0x27a078)),_0x2358ec['model']['document']['registerPostFixer'](_0xc95665=>this['assureChains'](_0xc95665)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0xba1155){if(_0xba1155['batch']['isUndo']||!_0xba1155['batch']['isLocal'])return!0x1;let _0x3aebf7=!0x1;const _0x25a876=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1ce62d=>_0x1ce62d['data']&&'listItemId'==_0x1ce62d['data']['key'])['filter'](_0x4db900=>_0x4db900['data']['newValue']&&_0x4db900['data']['oldValue']);for(const _0x39af3f of _0x25a876)le(_0x39af3f)||(_0xba1155['removeMarker'](_0x39af3f['getFirstMarker']()),_0x3aebf7=!0x0);return _0x3aebf7;}['noTrackChangesFixer'](_0x57c7fe){if(_0x57c7fe['batch']['isUndo']||!_0x57c7fe['batch']['isLocal'])return!0x1;const _0x3e6bb7=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x3e6bb7['trackChangesCommand']['value'])return!0x1;let _0x42201f=!0x1;const _0x11c507=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x33ad82=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x5e534a=>'attribute'==_0x5e534a['type'])['filter'](_0x7543c2=>_0x11c507['includes'](_0x7543c2['attributeKey']));if(0x0==_0x33ad82['length'])return _0x42201f;for(const _0x374423 of _0x33ad82){const _0x55f90b=_0x3e6bb7['_findSuggestions'](_0x374423['range'],'attribute')['filter'](_0x2d268b=>!_0x2d268b['meta']['isNextTo'])['map'](_0x3f7b15=>_0x3f7b15['suggestion'])['filter'](_0xaf1427=>{const _0x457dd7=_0x3e6bb7['_getAttributeKey'](_0xaf1427);return _0x11c507['includes'](_0x457dd7);});if(_0x55f90b['length']){for(const _0x58dcf6 of _0x55f90b)_0x57c7fe['removeMarker'](_0x58dcf6['getFirstMarker']());_0x42201f=!0x0;}}return _0x42201f;}['assureChains'](_0x315415){if(_0x315415['batch']['isUndo']||!_0x315415['batch']['isLocal'])return!0x1;const _0x4cdf2f=this['editor']['plugins']['get']('TrackChangesEditing');let _0x3284ef=!0x1;const _0x3526d6=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x199cd7 of _0x4cdf2f['getSuggestions']({'skipNotAttached':!0x0})){const _0x24f9fb=_0x4cdf2f['_findSuggestions'](_0x199cd7['getFirstRange'](),'attribute')['map'](_0x4633dc=>_0x4633dc['suggestion'])['filter'](_0xba407f=>_0xba407f['data']&&_0x3526d6['includes'](_0xba407f['data']['key']));if(!_0x24f9fb['length'])continue;const _0x4f83a5=_0x24f9fb[0x0]['head']['attributes']['groupId'];if(!_0x24f9fb['every'](_0x35e107=>_0x35e107['attributes']['groupId']===_0x4f83a5)){for(const _0x5402ea of _0x24f9fb)_0x4c48f1(_0x5402ea,_0x4f83a5)&&(_0x3284ef=!0x0);}}return _0x3284ef;function _0x509719(_0x819109,_0x2bb68f){for(const _0x327f44 of _0x4cdf2f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x532b2b=>'attribute'==_0x532b2b['type']&&_0x532b2b['attributes']['groupId']==_0x819109))_0x327f44['setAttribute']('groupId',_0x2bb68f);}function _0x4c48f1(_0x49b69e,_0x825a27){let _0x1b9d95=_0x49b69e['head'],_0x4264c3=!0x1;for(;_0x1b9d95;)_0x1b9d95['attributes']['groupId']!=_0x825a27&&(_0x509719(_0x1b9d95['attributes']['groupId'],_0x825a27),_0x1b9d95['setAttribute']('groupId',_0x825a27),_0x4264c3=!0x0),_0x1b9d95=_0x1b9d95['next'];return _0x4264c3;}}['_supportLegacySuggestions'](){const _0x28f2d2=this['editor'],_0x1bc2ea=_0x28f2d2['locale'],_0x30c5a4=_0x28f2d2['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x30c5a4['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x504c94,_0x5d5fec){const _0x1299fa=[];for(let _0x3a6533 of _0x504c94)_0x3a6533['start']['nodeAfter']===_0x3a6533['end']['parent']&&(_0x3a6533=_0x28f2d2['model']['createRange'](_0x28f2d2['model']['createPositionAt'](_0x3a6533['start']['nodeAfter'],0x0))),_0x1299fa['push'](_0x3a6533);_0x28f2d2['model']['change'](_0x236ba7=>{const _0x56fed9=_0x28f2d2['model']['document']['selection'],_0x18d3d7=Array['from'](_0x56fed9['getRanges']())['map'](_0x5c1a88=>_0x55bce1['fromRange'](_0x5c1a88));_0x236ba7['setSelection'](_0x1299fa),_0x28f2d2['commands']['get'](_0x5d5fec['commandName'])['refresh'](),_0x5d5fec['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x28f2d2['execute'](_0x5d5fec['commandName'],..._0x5d5fec['commandParams']),_0x236ba7['setSelection'](_0x18d3d7);for(const _0x1b22c0 of _0x18d3d7)_0x1b22c0['detach']();});}),_0x30c5a4['descriptionFactory']['registerElementLabel'](function(_0xc546b9){const _0x29880d=!_0x28f2d2['model']['schema']['isObject'](_0xc546b9),_0x6e679=_0xc546b9['previousSibling'],_0x317ca5=_0xc546b9['nextSibling'],_0x23a033=_0xc546b9['getAttribute']('listItemId'),_0x1e0845=!_0x6e679||_0x6e679['getAttribute']('listItemId')!==_0x23a033,_0x246b5a=!_0x317ca5||_0x317ca5['getAttribute']('listItemId')!==_0x23a033;return _0x29880d&&Boolean(_0x23a033)&&_0x1e0845&&_0x246b5a;},_0x518daa=>o(_0x1bc2ea,'ELEMENT_LIST_ITEM',_0x518daa));}['_registerLegacyDescription'](){const _0x204bcb=this['editor'],_0x164ca1=_0x204bcb['locale'];function _0x3e3621(_0x39ec37){const _0x183867=_0x204bcb['commands']['get']('bulletedList')['value'],_0x37c0d8=_0x204bcb['commands']['get']('numberedList')['value'];return'numberedList'===_0x39ec37?_0x183867:_0x37c0d8;}_0x204bcb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x1ef79d){if('formatBlock'!=_0x1ef79d['type'])return;const {data:_0x59b164}=_0x1ef79d;if(!_0x59b164)return;let _0x588635,_0x5c134b,_0x5309bc,_0x29bf30;switch(_0x59b164['commandName']){case'bulletedList':_0x5309bc=_0x59b164['commandParams'][0x0]['forceValue'],_0x29bf30=_0x3e3621(_0x59b164['commandName']),_0x588635=_0x5309bc?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x29bf30&&_0x204bcb['config']['get']('list.multiBlock')||(_0x588635='*Change\x20to:*\x20%0'),_0x5c134b={'type':'format','content':o(_0x164ca1,_0x588635,o(_0x164ca1,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5309bc=_0x59b164['commandParams'][0x0]['forceValue'],_0x29bf30=_0x3e3621(_0x59b164['commandName']),_0x588635=_0x5309bc?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x29bf30&&_0x204bcb['config']['get']('list.multiBlock')||(_0x588635='*Change\x20to:*\x20%0'),_0x5c134b={'type':'format','content':o(_0x164ca1,_0x588635,o(_0x164ca1,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x588635='*Indent:*\x20%0',_0x5c134b={'type':'format','content':o(_0x164ca1,_0x588635,o(_0x164ca1,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x588635=function(_0x3cbc9d){const _0x563892=_0x3cbc9d['getFirstRange']();let _0x157832=_0x563892['start']['nodeAfter'];for(;_0x157832&&_0x563892['containsItem'](_0x157832);){if(_0x157832['getAttribute']('listIndent')>0x0)return!0x1;_0x157832=_0x157832['nextSibling'];}return!0x0;}(_0x1ef79d)?o(_0x164ca1,'*Format:*\x20remove\x20from\x20%0',o(_0x164ca1,function(_0x12a207){return'ELEMENT_'+_0x12a207['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x1ef79d))):o(_0x164ca1,'*Outdent:*\x20%0',o(_0x164ca1,'ELEMENT_LIST_ITEM')),_0x5c134b={'type':'format','content':_0x588635};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x59b164['multipleBlocks']&&(_0x588635='*Merge:*\x20%0',_0x5c134b={'type':'deletion','content':o(_0x164ca1,_0x588635,o(_0x164ca1,'ELEMENT_LIST_ITEM'))});}return _0x5c134b;});}}function le(_0xaf35a){let _0x2bcde5=_0xaf35a['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x2bcde5;){const _0x4daffb=_0x2bcde5['getAttribute']('listItemId');if(!_0x4daffb)return!0x1;if(_0x4daffb==_0xaf35a['data']['newValue'])return'newValue';if(_0x4daffb==_0xaf35a['data']['oldValue'])return'oldValue';_0x2bcde5=_0x2bcde5['previousSibling'];}return!0x1;}class ue extends _0x2038e0{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1ea558=this['editor']['config']['get']('list.properties'),_0x1da2ab=this['editor']['plugins']['get']('TrackChangesEditing');_0x1ea558['styles']&&(_0x1da2ab['enableDefaultAttributesIntegration']('listStyle'),_0x1da2ab['registerBlockAttribute']('listStyle')),_0x1ea558['reversed']&&(_0x1da2ab['enableDefaultAttributesIntegration']('listReversed'),_0x1da2ab['registerBlockAttribute']('listReversed')),_0x1ea558['startIndex']&&(_0x1da2ab['enableDefaultAttributesIntegration']('listStart'),_0x1da2ab['registerBlockAttribute']('listStart'));const _0x509c20={'type':'format','content':''};_0x1da2ab['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2245c6=this['editor']['locale'];_0x1da2ab['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x2245c6,'FORMAT_LIST_REVERSED')),_0x1da2ab['descriptionFactory']['registerDescriptionCallback'](_0x21d6a6=>{const {data:_0x5497ab}=_0x21d6a6;if(_0x5497ab&&'listReversed'==_0x5497ab['key'])return null==_0x5497ab['newValue']||0x0==_0x5497ab['newValue']&&null==_0x5497ab['oldValue']?_0x509c20:void 0x0;}),_0x1da2ab['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x2245c6,'FORMAT_LIST_START')),_0x1da2ab['descriptionFactory']['registerDescriptionCallback'](_0x2361f1=>{const {data:_0x267311}=_0x2361f1;if(_0x267311&&'listStart'==_0x267311['key'])return null==_0x267311['newValue']||0x1==_0x267311['newValue']&&null==_0x267311['oldValue']?_0x509c20:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x144af1=>{if(_0x144af1['batch']['isUndo'])return!0x1;let _0x381938=!0x1;const _0x55cec0=_0x1da2ab['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x85affd=>{const _0x21337b=_0x1da2ab['_getAttributeKey'](_0x85affd);return'listStart'==_0x21337b||'listReversed'==_0x21337b;});for(const _0x434eef of _0x55cec0){const _0x27100c=_0x434eef['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x27100c||'customNumbered'==_0x27100c)continue;_0x1da2ab['_findSuggestions'](_0x434eef['getFirstRange'](),'attribute')['find'](_0x2abec4=>'listType'==_0x1da2ab['_getAttributeKey'](_0x2abec4['suggestion']))||(_0x144af1['removeMarker'](_0x434eef['getFirstMarker']()),_0x381938=!0x0);}return _0x381938;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x24b6bf){const _0x586a5a=this['editor']['locale'],{data:_0x469222}=_0x24b6bf,_0x4073e4={'type':'format','content':''};if(!_0x469222||'listStyle'!=_0x469222['key'])return;if(!_0x469222['oldValue'])return'default'==_0x469222['newValue']?_0x4073e4:{'type':'format','content':''+o(_0x586a5a,'*Set\x20format:*\x20%0',o(_0x586a5a,this['_getTranslationKeyForListStyle'](_0x469222['newValue'])))};if(!_0x469222['newValue']){if('default'==_0x469222['oldValue'])return _0x4073e4;let _0x105145=_0x24b6bf['head'];for(;_0x105145;){if(_0x105145['data']&&'listType'==_0x105145['data']['key']&&_0x105145['data']['newValue'])return _0x4073e4;_0x105145=_0x105145['next'];}return{'type':'format','content':''+o(_0x586a5a,'*Remove\x20format:*\x20%0',o(_0x586a5a,this['_getTranslationKeyForListStyle'](_0x469222['oldValue'])))};}if('default'!=_0x469222['newValue'])return{'type':'format','content':''+o(_0x586a5a,'*Set\x20format:*\x20%0',o(_0x586a5a,this['_getTranslationKeyForListStyle'](_0x469222['newValue'])))};let _0x4a8919=_0x24b6bf['head'];for(;_0x4a8919;){if(_0x4a8919['data']&&'listType'==_0x4a8919['data']['key']&&_0x4a8919['data']['newValue']&&_0x4a8919['data']['oldValue'])return _0x4073e4;_0x4a8919=_0x4a8919['next'];}return{'type':'format','content':o(_0x586a5a,'*Set\x20format:*\x20%0',o(_0x586a5a,'ELEMENT_'+_0x24b6bf['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x31840b=this['editor'],_0x18365c=_0x31840b['locale'];_0x31840b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5202f3=>{if('formatBlock'!=_0x5202f3['type'])return;const {data:_0x21b40c}=_0x5202f3;if(!_0x21b40c)return;let _0x3da644,_0x46b59d;switch(_0x21b40c['commandName']){case'listStyle':_0x3da644='*Change\x20to:*\x20%0',_0x46b59d={'type':'format','content':o(_0x18365c,_0x3da644,o(_0x18365c,this['_getTranslationKeyForListStyle'](_0x21b40c['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3da644=_0x21b40c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x46b59d={'type':'format','content':o(_0x18365c,_0x3da644)};break;case'listStart':_0x3da644='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x46b59d={'type':'format','content':o(_0x18365c,_0x3da644,_0x21b40c['commandParams'][0x0]['startIndex'])};}return _0x46b59d;});}['_getTranslationKeyForListStyle'](_0x7b9030){return'ELEMENT_'+function(_0x1884e5){if(pe['includes'](_0x1884e5))return'bulleted';if(ye['includes'](_0x1884e5))return'numbered';return null;}(_0x7b9030)['toUpperCase']()+'_LIST_'+_0x7b9030['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x2038e0{static get['requires'](){return[_0x26c0b4];}['init'](){const _0x25053b=this['editor'],_0x3f29df=_0x25053b['plugins']['get']('TrackChangesEditing'),_0x53af2d=_0x25053b['commands']['get']('enter');_0x3f29df['enableCommand']('enter',()=>{_0x25053b['model']['change'](_0x4397f1=>{const _0x4a3c70=_0x25053b['model']['document']['selection'],_0xa860fb=_0x4a3c70['getFirstPosition'](),_0x915698=_0x55bce1['fromRange'](_0x4a3c70['getFirstRange']());if(_0x53af2d['enterBlock'](_0x4397f1)){const _0x491e65=_0x25053b['model']['createPositionAt'](_0xa860fb['parent']['nextSibling'],0x0),_0x369adc=_0x4397f1['createRange'](_0xa860fb,_0x491e65);_0x3f29df['markInsertion'](_0x369adc);}else _0x4397f1['setSelection'](_0x4397f1['createRange'](_0x915698['end']));_0x915698['detach'](),_0x53af2d['fire']('afterExecute',{'writer':_0x4397f1});});}),_0x25053b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x25053b,'split'),{'priority':'high'}),_0x25053b['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x11b445,_0x4bac30,_0x26e1c5)=>{const _0x53897f=_0x26e1c5['mapper']['markerNameToElements'](_0x4bac30['markerName']);if(_0x53897f){for(const _0x3cbd03 of _0x53897f)_0x3cbd03['hasClass']('ck-suggestion-marker-split')&&(_0x26e1c5['mapper']['unbindElementFromMarkerName'](_0x3cbd03,_0x4bac30['markerName']),_0x26e1c5['writer']['remove'](_0x3cbd03));}},{'priority':'high'}),_0x25053b['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x53eda8,_0x1c0198,_0x2cd8cd)=>{_0x2cd8cd['options']['showSuggestionHighlights']&&_e(_0x25053b,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x53eda8,_0x1c0198,_0x2cd8cd);},{'priority':'high'});}}class J extends _0x2038e0{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x5c8068=this['editor']['plugins']['get']('TrackChangesEditing');_0x5c8068['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x5c8068['enableCommand']('findNext'),_0x5c8068['enableCommand']('findPrevious'),_0x5c8068['enableCommand']('replace'),_0x5c8068['enableCommand']('replaceAll');}['handleFindCommand'](_0x5b0160,_0x2ce1ad,_0x3f13cc={}){const _0x8907db=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x5b0160(_0x565795=>('string'==typeof _0x2ce1ad?_0x8907db['findByTextCallback'](_0x2ce1ad,_0x3f13cc):_0x2ce1ad)(_0x565795)['filter'](_0x471595=>!0x1===this['_isInDeletionRange'](_0x471595,_0x565795['item'])),_0x3f13cc);}['_isInDeletionRange'](_0x1c6988,_0x4195f9){const _0x4b4e92=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4195f9,_0x1c6988['start']),this['editor']['model']['createPositionAt'](_0x4195f9,_0x1c6988['end']));for(const _0x167e3e of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x4b4e92['getIntersection'](_0x167e3e['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Q extends _0x2038e0{['afterInit'](){const _0x446756=this['editor']['locale'],_0x5163d8=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x409e53,commandName:_0xc2466}of ro)this['editor']['plugins']['has'](_0x409e53)&&(_0x5163d8['enableDefaultAttributesIntegration'](_0xc2466),_0x5163d8['registerInlineAttribute'](_0xc2466));_0x446756['t'],_0x5163d8['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x446756,'FORMAT_FONT_SIZE')),_0x5163d8['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x446756,'FORMAT_FONT_FAMILY')),_0x5163d8['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x446756,'FORMAT_FONT_COLOR')),_0x5163d8['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x446756,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x539685=this['editor'],_0x23b493=_0x539685['locale'];_0x539685['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x523ab9=>{const _0x1469c2=_0x23b493['t'];if('formatInline'!=_0x523ab9['type'])return;const {data:_0x171bad}=_0x523ab9;if(null!=_0x171bad){if('fontSize'==_0x171bad['commandName']){const _0xfb56f0=_0x171bad['commandParams'][0x0]['value'];if(_0xfb56f0){const _0x140b66=_0x1469c2(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4c1a2f=>_0x4c1a2f['model']==_0xfb56f0)['title'])['toLowerCase']();return{'type':'format','content':o(_0x23b493,'*Set\x20font\x20size:*\x20%0',_0x140b66)};}return{'type':'format','content':o(_0x23b493,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x171bad['commandName']){const _0x39bfaf=_0x171bad['commandParams'][0x0]['value'];return _0x39bfaf?{'type':'format','content':o(_0x23b493,'*Set\x20font\x20family:*\x20%0',_0x39bfaf)}:{'type':'format','content':o(_0x23b493,'*Reset\x20font\x20family*')};}if('fontColor'==_0x171bad['commandName']){const _0x2e4e5d=_0x171bad['commandParams'][0x0]['value'];if(_0x2e4e5d){const _0x19ca75=_0x5f329a(this['editor']['config']['get']('fontColor.colors'))['find'](_0xea2c7e=>_0xea2c7e['model']==_0x2e4e5d);let _0x53dde7=_0x2e4e5d,_0x3f4563='';return _0x19ca75&&(_0x53dde7=_0x19ca75['label'],_0x3f4563=_0x1469c2(_0x53dde7)['toLowerCase']()),{'type':'format','content':o(_0x23b493,'*Set\x20font\x20color:*\x20%0',_0x3f4563)['trim'](),'color':{'value':_0x2e4e5d,'title':_0x3f4563||_0x53dde7}};}return{'type':'format','content':o(_0x23b493,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x171bad['commandName']){const _0xe730f5=_0x171bad['commandParams'][0x0]['value'];if(_0xe730f5){const _0xa6d2ca=_0x5f329a(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x537b4e=>_0x537b4e['model']==_0xe730f5);let _0x1c73c2=_0xe730f5,_0x54c1a8='';return _0xa6d2ca&&(_0x1c73c2=_0xa6d2ca['label'],_0x54c1a8=_0x1469c2(_0x1c73c2)['toLowerCase']()),{'type':'format','content':o(_0x23b493,'*Set\x20font\x20background\x20color:*\x20%0',_0x54c1a8)['trim'](),'color':{'value':_0xe730f5,'title':_0x54c1a8||_0x1c73c2}};}return{'type':'format','content':o(_0x23b493,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x2038e0{['afterInit'](){const _0x5e9360=this['editor'],_0x5d04fb=_0x5e9360['plugins']['get']('TrackChangesEditing'),_0x26615b=_0x5e9360['commands']['get']('copyFormat'),_0x52fe49=_0x5e9360['commands']['get']('pasteFormat');_0x26615b&&_0x52fe49&&(_0x5d04fb['enableDefaultAttributesIntegration']('pasteFormat'),_0x5d04fb['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x2e0ee2=this['editor'],_0x35168b=_0x2e0ee2['locale'];_0x2e0ee2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e3db6=>{if('formatBlock'!=_0x1e3db6['type']&&'formatInline'!=_0x1e3db6['type'])return;const {data:_0x4967c3}=_0x1e3db6;if(_0x4967c3&&'pasteFormat'===_0x4967c3['commandName']){const _0x30c895=[],_0x44cb5f=_0x4967c3['commandParams'][0x0];for(const [_0x36ffb6,_0x5b25ad]of Object['entries'](_0x44cb5f))_0x30c895['push'](so(_0x2e0ee2,_0x36ffb6,_0x5b25ad));return _0x30c895['length']?{'type':'format','content':o(_0x35168b,'*Set\x20format\x20to:*\x20%0',_0x30c895['join'](',\x20'))}:{'type':'format','content':o(_0x35168b,'*Remove\x20all\x20formatting*')};}});}}function so(_0xe467a4,_0x79f676,_0xc4a598){const _0x401146=_0xe467a4['locale']['t'],_0x42e529=_0x79f676['split'](/(?=[A-Z])/)['join']('\x20'),_0x84f80d=_0x401146(_0x42e529['charAt'](0x0)['toUpperCase']()+_0x42e529['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0xc4a598)return _0x84f80d;if('fontColor'===_0x79f676||'fontBackgroundColor'===_0x79f676){const _0x576dcb=_0x5f329a(_0xe467a4['config']['get']('fontColor.colors'))['find'](_0x35464b=>_0x35464b['model']==_0xc4a598);return _0x84f80d+'\x20('+(_0x576dcb?_0x401146(_0x576dcb['label'])['toLowerCase']():_0xc4a598)+')';}if('fontSize'===_0x79f676&&isNaN(parseFloat(_0xc4a598))){const _0x11ad9d=_0xe467a4['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xe467a4['config']['get']('fontSize.options'))['find'](_0x5973b8=>_0x5973b8['model']==_0xc4a598);return _0x84f80d+'\x20('+(_0x11ad9d?_0x401146(_0x11ad9d['title'])['toLowerCase']():_0xc4a598)+')';}return _0x84f80d+'\x20('+_0xc4a598+')';}class Y extends _0x2038e0{['_headingOptions'];['afterInit'](){const _0x279cf6=this['editor'];if(!_0x279cf6['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x279cf6['config']['get']('heading.options');const _0x54fb5f=_0x279cf6['locale'],_0x4e4d1f=_0x279cf6['plugins']['get']('TrackChangesEditing');_0x4e4d1f['enableDefaultAttributesIntegration']('heading');for(const _0x196b88 of this['_headingOptions'])'paragraph'!=_0x196b88['model']&&_0x4e4d1f['descriptionFactory']['registerElementLabel'](_0x196b88['model'],_0x4bd414=>{const _0x1813a1=this['_getHeadingLevel'](_0x196b88['model']);return null!==_0x1813a1?_0xe084fb(_0x4bd414,_0x1813a1):_0x51dd67(_0x4bd414,_0x196b88['title']);});function _0xe084fb(_0x1cad24,_0x315836){return o(_0x54fb5f,'ELEMENT_HEADING',[_0x1cad24,_0x315836]);}function _0x51dd67(_0x2527aa,_0x2d76b5){return o(_0x54fb5f,'ELEMENT_HEADING_CUSTOM',[_0x2527aa,_0x2d76b5]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b8ca7=this['editor'],_0x3cc97b=_0x4b8ca7['locale'];function _0x33514c(_0x15d27e,_0x11eced){return o(_0x3cc97b,'ELEMENT_HEADING_CUSTOM',[_0x15d27e,_0x11eced]);}_0x4b8ca7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x43c353=>{if('formatBlock'!=_0x43c353['type'])return;const {data:_0x3fb43a}=_0x43c353;if(_0x3fb43a&&'heading'==_0x3fb43a['commandName']){const _0x4f7b0a=_0x3fb43a['commandParams'][0x0]['value'],_0x34eab5=this['_getHeadingLevel'](_0x4f7b0a);if(null!==_0x34eab5)return{'type':'format','content':o(_0x3cc97b,'*Change\x20to:*\x20%0',(_0x13054f=0x1,_0x3a80ab=_0x34eab5,o(_0x3cc97b,'ELEMENT_HEADING',[_0x13054f,_0x3a80ab])))};const _0x445225=this['_headingOptions']['find'](_0x556dff=>_0x556dff['model']===_0x4f7b0a)['title'];return{'type':'format','content':o(_0x3cc97b,'*Change\x20to:*\x20%0',_0x33514c(0x1,_0x445225))};}var _0x13054f,_0x3a80ab;});}['_getHeadingLevel'](_0x2fe5a4){const _0x11f53f=_0x2fe5a4['match'](/^heading(\d+)/);if(_0x11f53f)return _0x11f53f[0x1];const _0x3aa9e5=this['_headingOptions']?.['find'](_0x5bf054=>_0x5bf054['model']==_0x2fe5a4);if(_0x3aa9e5&&_0x3aa9e5['view']){const _0x5edff5=_0x3aa9e5['view'],_0x2d26f6=(_0x5edff5['name']??_0x5edff5)['match'](/^h(\d+)/);if(_0x2d26f6)return _0x2d26f6[0x1];}return null;}}class Z extends _0x2038e0{['afterInit'](){const _0x3e295a=this['editor'];if(!_0x3e295a['plugins']['has']('HighlightEditing'))return;const _0x27109e=_0x3e295a['plugins']['get']('TrackChangesEditing'),_0x43e89b=_0x3e295a['locale'];_0x27109e['enableDefaultAttributesIntegration']('highlight'),_0x27109e['registerInlineAttribute']('highlight'),_0x27109e['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x43e89b,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x572cae=this['editor'],_0x2268bc=_0x572cae['locale'];_0x572cae['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x39c751=>{if('formatInline'!=_0x39c751['type'])return;const {data:_0x21638d}=_0x39c751;if(_0x21638d&&'highlight'==_0x21638d['commandName']){const _0x42f60b=_0x2268bc['t'],_0x270daa=_0x21638d['commandParams'][0x0]['value'];if(_0x270daa){const _0xb15a7f=_0x572cae['config']['get']('highlight.options')['find'](_0x4a8dd4=>_0x4a8dd4['model']==_0x270daa),_0x1d0094=_0x42f60b(_0xb15a7f['title'])['toLowerCase']();return{'type':'format','content':o(_0x2268bc,'*Set\x20highlight:*\x20%0',_0x1d0094),'color':{'value':_0xb15a7f['color'],'title':_0xb15a7f['title']}};}return{'type':'format','content':o(_0x2268bc,'*Remove\x20highlight*',o(_0x2268bc,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x2038e0{['afterInit'](){const _0x35907c=this['editor'];if(!_0x35907c['plugins']['has']('HorizontalLineEditing'))return;_0x35907c['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x15c7e4=_0x35907c['plugins']['get']('TrackChangesEditing'),_0x2f87a1=_0x35907c['locale'];_0x15c7e4['descriptionFactory']['registerElementLabel']('horizontalLine',_0x56021c=>o(_0x2f87a1,'ELEMENT_HORIZONTAL_LINE',_0x56021c)),_0x35907c['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x412496,{writer:_0x2e7694,options:_0x51e0c5})=>{if(!_0x51e0c5['showSuggestionHighlights'])return null;const _0x29ace4=_0x2e7694['createContainerElement']('div'),_0x44cf82=_0x2e7694['createEmptyElement']('hr');return _0x2e7694['addClass']('ck-horizontal-line',_0x29ace4),_0x2e7694['insert'](_0x2e7694['createPositionAt'](_0x29ace4,0x0),_0x44cf82),_0x29ace4;},'converterPriority':'high'});}}class et extends _0x2038e0{['afterInit'](){const _0x451a94=this['editor'];if(!_0x451a94['plugins']['has']('HtmlEmbed'))return;const _0x104a87=_0x451a94['plugins']['get']('TrackChangesEditing'),_0x2c7162=_0x451a94['locale'];_0x104a87['descriptionFactory']['registerElementLabel']('rawHtml',_0x17a984=>o(_0x2c7162,'ELEMENT_HTML_EMBED',_0x17a984)),_0x104a87['enableDefaultAttributesIntegration']('htmlEmbed'),_0x104a87['registerBlockAttribute']('value'),_0x104a87['descriptionFactory']['registerDescriptionCallback'](_0x541fc3=>{if('attribute'!=_0x541fc3['type'])return;const {data:_0x1e3b9d}=_0x541fc3;if(_0x1e3b9d&&'value'==_0x1e3b9d['key']&&_0x541fc3['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x262a38=o(_0x2c7162,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2c7162,'*Change\x20%0\x20content*',_0x262a38)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x44e225=this['editor'],_0x4ff894=_0x44e225['locale'];_0x44e225['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5548d7=>{if('formatBlock'!=_0x5548d7['type'])return;const {data:_0x56922f}=_0x5548d7;if(_0x56922f&&'htmlEmbed'==_0x56922f['commandName']){const _0x13871b=o(_0x4ff894,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4ff894,'*Change\x20%0\x20content*',_0x13871b)};}});}}class it extends _0x2038e0{['afterInit'](){const _0x2be27e=this['editor'];if(!_0x2be27e['plugins']['has']('ImageEditing'))return;const _0x26044f=_0x2be27e['plugins']['get']('TrackChangesEditing'),_0xa4bf2c=_0x2be27e['plugins']['get']('ImageUtils'),_0x563832=_0x2be27e['locale'];_0x26044f['enableCommand']('insertImage'),_0x26044f['descriptionFactory']['registerElementLabel']('imageBlock',_0x5ecdf0=>o(_0x563832,'ELEMENT_IMAGE',_0x5ecdf0)),_0x26044f['descriptionFactory']['registerElementLabel']('imageInline',_0x2475b2=>o(_0x563832,'ELEMENT_INLINE_IMAGE',_0x2475b2)),_0x26044f['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x563832,'ELEMENT_CAPTION')),_0x2be27e['plugins']['has']('ImageUploadEditing')&&_0x26044f['enableCommand']('uploadImage'),_0x2be27e['plugins']['has']('ImageBlockEditing')&&_0x2be27e['plugins']['has']('ImageInlineEditing')&&(_0x26044f['enableCommand']('imageTypeInline',(_0x300f35,_0x18ccdc)=>{const _0x44d13e=_0xa4bf2c['getClosestSelectedImageElement'](_0x2be27e['model']['document']['selection']);_0x2be27e['model']['change'](()=>{_0x26044f['markBlockFormat'](_0x44d13e,{'commandName':'imageTypeInline','commandParams':[_0x18ccdc]},[],'convertBlockImageToInline');});}),_0x26044f['enableCommand']('imageTypeBlock',(_0x4de534,_0x3e7982)=>{_0x2be27e['model']['change'](_0x141979=>{let _0x124465=_0xa4bf2c['getClosestSelectedImageElement'](_0x2be27e['model']['document']['selection']),_0x283d8a=_0x141979['createRangeOn'](_0x124465);const _0x8af48=_0x2dcd53['fromPosition'](_0x283d8a['start'],'toPrevious'),_0xfda974=_0x2dcd53['fromPosition'](_0x283d8a['end'],'toNext');_0x26044f['forceDefaultExecution'](()=>_0x4de534(_0x3e7982)),_0x124465=_0xa4bf2c['getClosestSelectedImageElement'](_0x2be27e['model']['document']['selection']),_0x283d8a=_0x141979['createRangeOn'](_0x124465);const _0x54535c=_0x141979['createRange'](_0x8af48,_0xfda974);_0x8af48['detach'](),_0xfda974['detach'](),_0x26044f['markBlockFormat'](_0x124465,{'commandName':'imageTypeInline','commandParams':[_0x3e7982]},[],'convertInlineImageToBlock'),_0x54535c['start']['isBefore'](_0x283d8a['start'])&&_0x26044f['markInsertion'](_0x141979['createRange'](_0x54535c['start'],_0x283d8a['start']),'convertInlineImageToBlock'),_0x283d8a['end']['isBefore'](_0x54535c['end'])&&_0x26044f['markInsertion'](_0x141979['createRange'](_0x283d8a['end'],_0x54535c['end']),'convertInlineImageToBlock');});}),_0x26044f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x26044f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x26044f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x26044f['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x26044f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x26044f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x42484f])=>{const _0x119f9d=_0x26044f['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x5efa6a=_0x42484f['start'],_0x4a2629=_0x42484f['end'];const _0x5efc8f=_0x2be27e['model']['schema']['getNearestSelectionRange'](_0x5efa6a,'backward'),_0x227619=_0x2be27e['model']['schema']['getNearestSelectionRange'](_0x4a2629,'forward');_0x5efc8f['isCollapsed']&&(_0x5efa6a=_0x5efc8f['start']),_0x227619['isCollapsed']&&(_0x4a2629=_0x227619['end']),_0x119f9d([_0x2be27e['model']['createRange'](_0x5efa6a,_0x4a2629)]);}),_0x26044f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x247ee4),_0x26044f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x247ee4)),_0x2be27e['plugins']['has']('ImageCaptionEditing')&&(_0x26044f['enableCommand']('toggleImageCaption',(_0x5968a9,_0x3ec481)=>{const _0x3c3c35=_0x2be27e['plugins']['get']('ImageCaptionUtils');let _0x36bcbc=_0xa4bf2c['getClosestSelectedImageElement'](_0x2be27e['model']['document']['selection']),_0x4e4276=_0x3c3c35['getCaptionFromImageModelElement'](_0x36bcbc);_0x2be27e['model']['change'](()=>{if(_0x4e4276)return void _0x26044f['markDeletion'](_0x2be27e['model']['createRangeOn'](_0x4e4276));const _0x2c6341=_0xa4bf2c['isBlockImage'](_0x36bcbc);_0x5968a9(_0x3ec481),_0x36bcbc=_0xa4bf2c['getClosestSelectedImageElement'](_0x2be27e['model']['document']['selection']),_0x4e4276=_0x3c3c35['getCaptionFromImageModelElement'](_0x36bcbc),_0x26044f['markInsertion'](_0x2be27e['model']['createRangeOn'](_0x4e4276),_0x2c6341?null:'imageCaption');});}),_0x26044f['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x247ee4));const _0x5a8693=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3ff8ad(_0x1707fe,_0x238bbb){const _0xcbee2=_0x5a8693['findIndex'](({type:_0x181604,subType:_0x469ca1})=>_0x1707fe['type']==_0x181604&&_0x1707fe['subType']==_0x469ca1),_0x1e5ebb=_0x5a8693['findIndex'](({type:_0x2b7560,subType:_0x492c6c})=>_0x238bbb['type']==_0x2b7560&&_0x238bbb['subType']==_0x492c6c);if(_0xcbee2<0x0||_0x1e5ebb<0x0)return!0x1;const _0x1d3bf7=_0x1707fe['getFirstRange'](),_0x14c6d6=_0x238bbb['getFirstRange']();if((0x0==_0xcbee2||0x1==_0xcbee2)&&0x2==_0x1e5ebb&&_0x1d3bf7['isIntersecting'](_0x14c6d6))return!0x0;if(0x2==_0xcbee2&&0x3==_0x1e5ebb){const _0x22d65c=_0x26044f['_findSuggestions'](_0x1d3bf7,'insertion')['filter'](({suggestion:_0x3950fc,meta:_0x277705})=>_0x277705['isOwn']&&'convertInlineImageToBlock'==_0x3950fc['subType']);if(_0x22d65c['length']>0x1&&_0x14c6d6['end']['isEqual'](_0x1d3bf7['start']))return!0x0;if(0x1==_0x22d65c['length']&&(_0x1d3bf7['start']['isEqual'](_0x14c6d6['end'])||_0x1d3bf7['end']['isEqual'](_0x14c6d6['start'])))return!0x0;}if(0x3==_0xcbee2&&0x3==_0x1e5ebb&&_0x1d3bf7['start']['isBefore'](_0x14c6d6['start'])){const _0x3f91bc=_0x1d3bf7['end']['nodeAfter'],_0xa1d6f7=_0x14c6d6['start']['nodeBefore'];return _0xa4bf2c['isBlockImage'](_0x3f91bc)&&_0x3f91bc===_0xa1d6f7;}return!0x1;}function _0x247ee4(_0x569980,_0x564bc2){return _0x3ff8ad(_0x569980,_0x564bc2)?[_0x569980,_0x564bc2]:_0x3ff8ad(_0x564bc2,_0x569980)?[_0x564bc2,_0x569980]:null;}_0x2be27e['plugins']['has']('ImageResize')&&(_0x26044f['enableDefaultAttributesIntegration']('resizeImage'),_0x26044f['registerBlockAttribute']('resizedWidth'),_0x26044f['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x563832,'FORMAT_IMAGE_SIZE'))),_0x2be27e['plugins']['has']('ImageTextAlternativeEditing')&&(_0x26044f['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x26044f['registerBlockAttribute']('alt')),_0x26044f['descriptionFactory']['registerDescriptionCallback'](_0x2059ec=>{if(!!_0x5a8693['find'](({type:_0x5a3846,subType:_0x310f7f})=>_0x2059ec['type']==_0x5a3846&&_0x2059ec['subType']==_0x310f7f))return _0x2059ec['previous']?{}:void 0x0;}),_0x26044f['descriptionFactory']['registerDescriptionCallback'](_0x5406f2=>{if('insertion'==_0x5406f2['type']||'deletion'==_0x5406f2['type']){const _0x276d70=_0x5406f2['getContainedElement']();if(_0x276d70&&_0x276d70['is']('element','caption'))return{'type':'insertion'==_0x5406f2['type']?'addObject':'removeObject','element':_0x276d70,'quantity':0x1};}}),_0x26044f['descriptionFactory']['registerDescriptionCallback'](_0x4625cb=>'formatBlock'==_0x4625cb['type']&&'convertInlineImageToBlock'==_0x4625cb['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x4625cb['type']&&'convertBlockImageToInline'==_0x4625cb['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x26044f['descriptionFactory']['registerDescriptionCallback'](_0x1b2799=>{if('attribute'!=_0x1b2799['type'])return;const {data:_0x573be1}=_0x1b2799;if(!_0x573be1||'alt'!=_0x573be1['key'])return;const _0x1c045a=_0x573be1['newValue'];return _0x1c045a?{'type':'format','content':o(_0x563832,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1c045a+'\x22')}:{'type':'format','content':o(_0x563832,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x450fa1=this['editor'],_0x4ebeda=_0x450fa1['locale'];_0x450fa1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x174df6=>{if('formatBlock'!=_0x174df6['type']&&'formatInline'!=_0x174df6['type'])return;const {data:_0x22c842}=_0x174df6;if(_0x22c842){if('imageTextAlternative'==_0x22c842['commandName']){const _0x2eb451=_0x22c842['commandParams'][0x0]['newValue'];return _0x2eb451?{'type':'format','content':o(_0x4ebeda,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2eb451+'\x22')}:{'type':'format','content':o(_0x4ebeda,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x22c842['commandName']){const _0x272a08=_0x22c842['commandParams'][0x0]['width'];return _0x272a08?{'type':'format','content':o(_0x4ebeda,'*Set\x20image\x20width:*\x20%0',_0x272a08)}:{'type':'format','content':o(_0x4ebeda,'*Reset\x20image\x20width*')};}}});}}class st extends _0x2038e0{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x3913c3=this['editor']['locale'],_0x5d5f6f=this['editor']['plugins']['get']('TrackChangesEditing');_0x5d5f6f['enableDefaultAttributesIntegration']('replaceImageSource'),_0x5d5f6f['registerBlockAttribute']('src'),_0x5d5f6f['descriptionFactory']['registerDescriptionCallback'](_0xe0fc3a=>{if('attribute'!=_0xe0fc3a['type'])return;const {data:_0x7d0aa0}=_0xe0fc3a;return _0x7d0aa0&&'src'==_0x7d0aa0['key']?_0x7d0aa0['newValue']&&_0x7d0aa0['oldValue']?{'type':'format','content':o(_0x3913c3,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x296482=this['editor']['plugins']['get']('TrackChangesEditing');_0x296482['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x296482['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x296482['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x296482['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x23a118=this['editor'],_0x361e02=_0x23a118['locale'];_0x23a118['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20bf0f=>{if('formatBlock'!=_0x20bf0f['type']&&'formatInline'!=_0x20bf0f['type'])return;const {data:_0x251f72}=_0x20bf0f;if(!_0x251f72||'replaceImageSource'!=_0x251f72['commandName'])return;return{'type':'format','content':o(_0x361e02,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x2038e0{['afterInit'](){const _0x46cede=this['editor'];if(!_0x46cede['plugins']['has']('ImageStyleEditing'))return;const _0xe8ad98=_0x46cede['plugins']['get']('TrackChangesEditing'),_0x27e221=_0x46cede['plugins']['get']('ImageUtils'),_0x10bf2c={};_0xe8ad98['enableCommand']('imageStyle',(_0x51adbb,_0x12d4ba)=>{const _0x3d7ad2=_0x46cede['plugins']['get']('Users')['me'],_0xbdec87=_0x46cede['commands']['get']('imageStyle');let _0x271ed0=_0x27e221['getClosestSelectedImageElement'](_0x46cede['model']['document']['selection']),_0x1bff89=_0x46cede['model']['createRangeOn'](_0x271ed0),_0x4550b5=_0xbdec87['value'];if(_0x4550b5==_0x12d4ba['value'])return;const _0x4c9be8={'commandName':'imageStyle','commandParams':[_0x12d4ba],'formatGroupId':_0x515477()};_0x46cede['model']['change'](()=>{if(_0xe8ad98['getSuggestions']()['filter'](_0x4e1963=>_0x4e1963['isInContent']&&_0x3d7ad2==_0x4e1963['author']&&('formatBlock'==_0x4e1963['type']||'formatInline'==_0x4e1963['type'])&&('imageStylePreApply'==_0x4e1963['subType']||'imageStylePostApply'==_0x4e1963['subType'])&&_0x4e1963['getFirstRange']()['isEqual'](_0x1bff89))['forEach'](_0x42143b=>_0xe8ad98['discardSuggestion'](_0x42143b['head'])),_0x271ed0=_0x27e221['getClosestSelectedImageElement'](_0x46cede['model']['document']['selection']),_0x1bff89=_0x46cede['model']['createRangeOn'](_0x271ed0),_0xbdec87['refresh'](),_0x46cede['commands']['get']('imageTypeInline')['refresh'](),_0x46cede['commands']['get']('imageTypeBlock')['refresh'](),_0x4550b5=_0xbdec87['value'],_0x4550b5!=_0x12d4ba['value'])return _0x27e221['isInlineImage'](_0x271ed0)&&_0xbdec87['shouldConvertImageType'](_0x12d4ba['value'],_0x271ed0)?(_0x51adbb({..._0x12d4ba,'setImageSizes':!0x1}),_0x271ed0=_0x27e221['getClosestSelectedImageElement'](_0x46cede['model']['document']['selection']),void _0xe8ad98['markBlockFormat'](_0x271ed0,{..._0x4c9be8,'commandReversedParams':[{'value':_0x4550b5||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x27e221['isBlockImage'](_0x271ed0)?_0xe8ad98['markBlockFormat'](_0x271ed0,_0x4c9be8,[],'imageStylePostApply'):_0xe8ad98['markInlineFormat'](_0x1bff89,_0x4c9be8,'imageStylePostApply'));});});for(const _0x4003fe of _0x46cede['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x10bf2c[_0x4003fe['name']]=_0x4003fe['title']['toLowerCase']();_0xe8ad98['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0xe8ad98['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0xe8ad98['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0xe8ad98['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x51b622])=>{_0x27e221['setImageNaturalSizeAttributes'](_0x51b622['getContainedElement']());}),_0xe8ad98['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0xd1600f,_0x203bc6)=>{_0xe8ad98['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0xd1600f,{'commandName':_0x203bc6['commandName'],'commandParams':_0x203bc6['commandReversedParams']});}),_0xe8ad98['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x20cad6,_0x513cc1){if(_0x5b8596(_0x20cad6,_0x513cc1))return[_0x20cad6,_0x513cc1];if(_0x5b8596(_0x513cc1,_0x20cad6))return[_0x513cc1,_0x20cad6];return null;});const _0x320a05=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5b8596(_0x203686,_0x1e59a0){const _0x70c93=_0x320a05['findIndex'](({type:_0x20d0da,subType:_0x403f17})=>_0x203686['type']==_0x20d0da&&_0x203686['subType']==_0x403f17),_0x4527bd=_0x320a05['findIndex'](({type:_0xc4a0f1,subType:_0x8cf7a})=>_0x1e59a0['type']==_0xc4a0f1&&_0x1e59a0['subType']==_0x8cf7a);if(_0x70c93<0x0||_0x4527bd<0x0)return!0x1;const _0x15feed=_0x203686['getFirstRange'](),_0x2eeac0=_0x1e59a0['getFirstRange']();if((0x0==_0x70c93||0x1==_0x70c93)&&0x2==_0x4527bd&&_0x15feed['isIntersecting'](_0x2eeac0))return!0x0;if(0x2==_0x70c93&&0x3==_0x4527bd){const _0x309d1e=_0xe8ad98['_findSuggestions'](_0x15feed,'insertion')['filter'](({suggestion:_0x49bcfd,meta:_0x501b23})=>_0x501b23['isOwn']&&'convertInlineImageToBlock'==_0x49bcfd['subType']);if(_0x309d1e['length']>0x1&&_0x2eeac0['end']['isEqual'](_0x15feed['start']))return!0x0;if(0x1==_0x309d1e['length']&&(_0x15feed['start']['isEqual'](_0x2eeac0['end'])||_0x15feed['end']['isEqual'](_0x2eeac0['start'])))return!0x0;}if(0x3==_0x70c93&&0x3==_0x4527bd&&_0x15feed['start']['isBefore'](_0x2eeac0['start'])){const _0x2b27c4=_0x15feed['end']['nodeAfter'],_0x30fe5b=_0x2eeac0['start']['nodeBefore'];return _0x27e221['isBlockImage'](_0x2b27c4)&&_0x2b27c4===_0x30fe5b;}return!0x1;}_0x46cede['model']['document']['registerPostFixer'](()=>{let _0xe528ac=!0x1;const _0x5eb5f4=Array['from'](_0x46cede['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x490500,data:_0x5c7fe7}of _0x5eb5f4){const {group:_0x5337fd,type:_0x2a7904,subType:_0x3c4412,id:_0x4bf12a}=_0xe8ad98['_splitMarkerName'](_0x490500);if('suggestion'==_0x5337fd&&_0xe8ad98['hasSuggestion'](_0x4bf12a)){if('formatBlock'==_0x2a7904&&('imageStylePreApply'==_0x3c4412||'imageStylePostApply'==_0x3c4412)){const _0x5fa186=_0xe8ad98['getSuggestion'](_0x4bf12a);if(_0x5c7fe7['newRange']){const _0x8afdec=_0x5fa186['getFirstRange']()['getContainedElement']();if(_0x27e221['isBlockImage'](_0x8afdec))continue;_0xe8ad98['discardSuggestion'](_0x5fa186),_0xe528ac=!0x0;}}if('insertion'==_0x2a7904&&'imageCaption'==_0x3c4412&&!_0x5c7fe7['newRange']){const _0x56a1c2=_0xe8ad98['getSuggestion'](_0x4bf12a);_0x56a1c2['next']&&_0x56a1c2['next']['isInContent']&&(_0xe8ad98['discardSuggestion'](_0x56a1c2['next']),_0xe528ac=!0x0);}}}return _0xe528ac;}),this['_registerLegacyDescription'](_0x10bf2c);}['_registerLegacyDescription'](_0x4aff51){const _0x231b40=this['editor'],_0xc53ad1=_0x231b40['locale'];_0x231b40['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc291ed=>{if('formatBlock'!=_0xc291ed['type']&&'formatInline'!=_0xc291ed['type'])return;const {data:_0x462c90}=_0xc291ed;if(!_0x462c90||'imageStyle'!=_0x462c90['commandName'])return;const _0x30a461=_0x462c90['commandParams'][0x0]['value'];return _0x16ca17('side'===_0x30a461?o(_0xc53ad1,'FORMAT_SIDE_IMAGE'):_0x4aff51[_0x30a461]||_0x30a461);function _0x16ca17(_0x12d0ef){return{'type':'format','content':o(_0xc53ad1,'*Format:*\x20%0',_0x12d0ef)};}});}}class ot extends _0x2038e0{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x3171a){super(_0x3171a),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x3055eb=this['editor'],_0x225046=_0x3055eb['commands']['get']('importWord'),_0x222d57=_0x3055eb['commands']['get']('trackChanges');_0x225046&&(_0x225046['on']('execute',(_0x150fe2,[,_0x376e5a])=>{this['_trackChangesValueDuringImport']=_0x222d57['value'],_0x376e5a['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x225046,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x225046,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x222d57['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x3055eb['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x12cb41,_0x502a18){const {suggestions:_0x4434f8}=_0x502a18,_0x5601ac=this['editor']['commands']['get']('trackChanges'),_0x36bea9=_0x5601ac['value'];this['_trackChangesValueDuringImport']!==_0x36bea9&&(_0x5601ac['execute'](),this['_trackChangesExecuted']=!0x0),_0x4434f8&&_0x4434f8['forEach'](({id:_0x5e7fc2,type:_0x41d583,author:_0x430a05,created_at:_0x2a2a22})=>{const _0x34767f={'id':_0x5e7fc2,'type':_0x41d583,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x430a05,'createdAt':_0x2a2a22?new Date(_0x2a2a22):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x34767f);});}}class rt extends _0x2038e0{['afterInit'](){const _0x364996=this['editor'],_0x2a78ec=_0x364996['plugins']['get']('TrackChangesEditing');if(_0x364996['plugins']['has']('IndentEditing')&&(_0x2a78ec['enableCommand']('indent'),_0x2a78ec['enableCommand']('outdent')),_0x364996['plugins']['has']('IndentBlock')){for(const _0x53a0fb of['indentBlock','outdentBlock'])_0x2a78ec['enableDefaultAttributesIntegration'](_0x53a0fb);}const _0x4124b3=_0x364996['locale'];_0x2a78ec['registerBlockAttribute']('blockIndent'),_0x2a78ec['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x4124b3,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2ee513=this['editor'],_0x5e841a=_0x2ee513['locale'],_0x229097=_0x2ee513['plugins']['get']('TrackChangesEditing');_0x229097['descriptionFactory']['registerDescriptionCallback'](_0x5e4359=>{if('formatBlock'!=_0x5e4359['type'])return;const {data:_0x395cd1}=_0x5e4359;if(!_0x395cd1)return;if('indentBlock'!=_0x395cd1['commandName']&&'outdentBlock'!=_0x395cd1['commandName'])return;const _0x5a06c8=_0x5e4359['getItems']()[0x0],_0x29b1bf=_0x229097['descriptionFactory']['getItemLabel'](_0x5a06c8);return'indentBlock'==_0x395cd1['commandName']?{'type':'format','content':o(_0x5e841a,'*Indent:*\x20%0',_0x29b1bf)}:'outdentBlock'==_0x395cd1['commandName']?{'type':'format','content':o(_0x5e841a,'*Outdent:*\x20%0',_0x29b1bf)}:void 0x0;});}}class at extends _0x2038e0{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x2038e0{['afterInit'](){const _0x274e0b=this['editor'];if(!_0x274e0b['plugins']['has']('LinkEditing'))return;const _0x89d1ff=_0x274e0b['plugins']['get']('TrackChangesEditing'),_0x5e27e3=_0x274e0b['commands']['get']('link');_0x89d1ff['enableDefaultAttributesIntegration']('link'),_0x89d1ff['enableDefaultAttributesIntegration']('unlink'),_0x89d1ff['registerInlineAttribute']('linkHref');for(const _0x2335b8 of _0x5e27e3['manualDecorators'])_0x89d1ff['registerInlineAttribute'](_0x2335b8['id']),_0x89d1ff['descriptionFactory']['registerAttributeLabel'](_0x2335b8['id'],'link\x20('+_0x2335b8['label']['toLowerCase']()+')');_0x89d1ff['descriptionFactory']['registerDescriptionCallback'](_0x2c65f3=>{if('attribute'!=_0x2c65f3['type'])return;const {data:_0x1709d6}=_0x2c65f3;if(!_0x1709d6||'linkHref'!=_0x1709d6['key'])return;const _0x5ac143=_0x1709d6['newValue'],_0x3db018=_0x274e0b['locale'];return{'type':'format','content':null==_0x5ac143?o(_0x3db018,'*Remove\x20link*'):o(_0x3db018,'*Set\x20link:*\x20%0','\x22'+_0x5ac143+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2f4374=this['editor'],_0x12175d=_0x2f4374['locale'];_0x2f4374['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x281026=>{if('formatInline'!=_0x281026['type'])return;const {data:_0x1b63b3}=_0x281026;if(_0x1b63b3){if('link'==_0x1b63b3['commandName']){const _0x207673=_0x1b63b3['commandParams'][0x0];return{'type':'format','content':o(_0x12175d,'*Set\x20link:*\x20%0','\x22'+_0x207673+'\x22')};}return'unlink'==_0x1b63b3['commandName']?{'type':'format','content':o(_0x12175d,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x2038e0{['afterInit'](){const _0x1f2e05=this['editor'],_0x2ba7e8=_0x1f2e05['locale'];if(!_0x1f2e05['plugins']['has']('LegacyListEditing'))return;const _0x51217c=_0x1f2e05['plugins']['get']('TrackChangesEditing'),_0x1f0c48=_0x1f2e05['plugins']['has']('LegacyTodoListEditing');function _0x4c9c56(_0x592994){return()=>{const _0x57af6a=_0x1f2e05['model']['document']['selection'],_0x10e7d9=_0x1f2e05['commands']['get'](_0x592994);if(_0x10e7d9['value'])return void _0x1f2e05['execute']('paragraph',{});const _0x16def9=_0x592994['slice'](0x0,-0x4),_0x28ba17=function(_0x8eaf0a,_0x568d1b,_0x23b702){let _0x12f2a9=Array['from'](_0x8eaf0a)['filter'](_0x284059=>function(_0x1f71e4,_0x501476){return _0x501476['checkChild'](_0x1f71e4['parent'],'listItem')&&!_0x501476['isObject'](_0x1f71e4);}(_0x284059,_0x23b702));_0x12f2a9=_0x12f2a9['filter'](_0x30d93c=>!_0x30d93c['is']('element','listItem')||_0x30d93c['getAttribute']('listType')!=_0x568d1b);const _0x257896=new Set();for(const _0x195ddb of _0x12f2a9)_0x195ddb['is']('element','listItem')?_0x257896['add'](me(_0x195ddb)):_0x257896['add'](_0x195ddb);return Array['from'](_0x257896);}(_0x57af6a['getSelectedBlocks'](),_0x16def9,_0x1f2e05['model']['schema']);_0x1f2e05['model']['change'](()=>{for(const _0x5af1d7 of _0x28ba17)_0x51217c['markBlockFormat'](_0x5af1d7,{'commandName':_0x592994,'commandParams':[{'forceValue':!_0x10e7d9['value']}],'formatGroupId':'blockName'},fe(_0x5af1d7));});};}function _0x2f222f(_0xe7e6a1){return()=>{const _0x14be87=function(_0xbd361f){let _0x447713=Array['from'](_0xbd361f);const _0x10825e=_0x447713['findIndex'](_0x30c39=>'listItem'!=_0x30c39['name']);return _0x10825e>-0x1&&(_0x447713=_0x447713['slice'](0x0,_0x10825e)),_0x447713;}(_0x1f2e05['model']['document']['selection']['getSelectedBlocks']()),_0x3823a8=_0x1f2e05['model']['createRange'](_0x1f2e05['model']['createPositionAt'](_0x14be87[0x0],'before'),_0x1f2e05['model']['createPositionAt'](_0x14be87[_0x14be87['length']-0x1],'end'));_0x1f2e05['model']['change'](()=>{_0x51217c['markBlockFormat'](_0x3823a8,{'commandName':_0xe7e6a1,'commandParams':[],'formatGroupId':'listIndent'},function(_0x33e5b2){const _0xb58448=new Set();for(const _0x3cbf0c of _0x33e5b2){let _0x27d384=_0x3cbf0c['nextSibling'];for(;_0x27d384&&_0x27d384['getAttribute']('listIndent')>_0x3cbf0c['getAttribute']('listIndent');)_0xb58448['add'](_0x27d384),_0x27d384=_0x27d384['nextSibling'];}return Array['from'](_0xb58448);}(_0x14be87));});};}_0x51217c['enableCommand']('numberedList',_0x4c9c56('numberedList')),_0x51217c['enableCommand']('bulletedList',_0x4c9c56('bulletedList')),_0x1f0c48&&_0x51217c['enableCommand']('todoList',_0x4c9c56('todoList')),_0x51217c['enableCommand']('indentList',_0x2f222f('indentList')),_0x51217c['enableCommand']('outdentList',_0x2f222f('outdentList')),_0x1f0c48&&_0x51217c['enableCommand']('checkTodoList',()=>{const _0x56730f=_0x1f2e05['commands']['get']('checkTodoList'),_0x25eb85=Array['from'](_0x56730f['_selectedElements']);_0x25eb85['filter'](_0x3acbe8=>_0x3acbe8['getAttribute']('todoListChecked')!=_0x56730f['value']),_0x1f2e05['model']['change'](()=>{for(const _0x45f15b of _0x25eb85)_0x51217c['markBlockFormat'](_0x45f15b,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x56730f['value']}]});});}),_0x51217c['descriptionFactory']['registerElementLabel']('listItem',_0x4b9346=>o(_0x2ba7e8,'ELEMENT_LIST_ITEM',_0x4b9346)),_0x51217c['descriptionFactory']['registerDescriptionCallback'](_0xc22a2d=>{if('formatBlock'!=_0xc22a2d['type']&&'formatInline'!=_0xc22a2d['type'])return;const {data:_0x15c351}=_0xc22a2d;if(_0x15c351){if('numberedList'==_0x15c351['commandName']||'bulletedList'==_0x15c351['commandName']||'todoList'==_0x15c351['commandName'])switch(_0x15c351['commandName']['replace']('List','')){case'bulleted':return _0x2aa9f6(o(_0x2ba7e8,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2aa9f6(o(_0x2ba7e8,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2aa9f6(o(_0x2ba7e8,'ELEMENT_TODO_LIST'));}if('indentList'==_0x15c351['commandName'])return{'type':'format','content':o(_0x2ba7e8,'*Indent:*\x20%0',o(_0x2ba7e8,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x15c351['commandName'])return{'type':'format','content':o(_0x2ba7e8,'*Outdent:*\x20%0',o(_0x2ba7e8,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x15c351['commandName'])return _0x15c351['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2ba7e8,'*Check\x20item*')}:{'type':'format','content':o(_0x2ba7e8,'*Uncheck\x20item*')};}function _0x2aa9f6(_0x20bae3){return{'type':'format','content':o(_0x2ba7e8,'*Change\x20to:*\x20%0',_0x20bae3)};}});}}function me(_0x2a6447){const _0x57f72a=_0x2a6447['getAttribute']('listIndent');if(0x0==_0x57f72a)return _0x2a6447;let _0x3b7448=_0x2a6447;for(;_0x2a6447['previousSibling']&&_0x2a6447['previousSibling']['is']('element','listItem');){const _0x24210b=_0x2a6447['previousSibling']['getAttribute']('listIndent');if(_0x24210b==_0x57f72a)_0x3b7448=_0x2a6447['previousSibling'];else{if(_0x24210b<_0x57f72a)break;}_0x2a6447=_0x2a6447['previousSibling'];}return _0x3b7448;}function fe(_0x1c2a31){const _0x4b625c=[];if(_0x1c2a31['is']('element','listItem')&&_0x1c2a31['getAttribute']('listIndent')>0x0){let _0xe428c1=_0x1c2a31['nextSibling'];for(;_0xe428c1&&'listItem'==_0xe428c1['name']&&_0xe428c1['getAttribute']('listIndent')==_0x1c2a31['getAttribute']('listIndent');)_0x4b625c['push'](_0xe428c1),_0xe428c1=_0xe428c1['nextSibling'];}return _0x4b625c;}class K extends _0x2038e0{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x317dd8=this['editor']['config']['get']('list.properties'),_0x3a012a=this['editor']['plugins']['get']('TrackChangesEditing');_0x317dd8['styles']&&_0x3a012a['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x317dd8['reversed']&&_0x3a012a['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x317dd8['startIndex']&&_0x3a012a['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x3a012a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0xdc0414,_0x11e295={}){const _0x41deae=this['editor']['plugins']['get']('TrackChangesEditing'),_0x23513d=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x41deae['markMultiRangeBlockFormat'](_0x23513d,{'commandName':'listStyle','commandParams':[{'type':_0x11e295['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x5753ce,_0x5c3279={}){const _0xa93939=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2670bc=this['_getSuggestionBlocks'](_0x575721=>_0x575721['is']('element','listItem')&&'numbered'===_0x575721['getAttribute']('listType'));if(_0x2670bc['length']<0x1)return;const _0x441580=_0x2670bc['map'](_0x301284=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x301284,'before'),this['editor']['model']['createPositionAt'](_0x301284,0x0)));this['editor']['model']['change'](()=>{_0xa93939['markMultiRangeBlockFormat'](_0x441580,{'commandName':'listReversed','commandParams':[{'reversed':_0x5c3279['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x240361,_0x36efec={}){const _0x3682d6=this['editor']['plugins']['get']('TrackChangesEditing'),_0xe432ab=this['_getSuggestionBlocks'](_0xce433f=>_0xce433f['is']('element','listItem')&&'numbered'===_0xce433f['getAttribute']('listType'));if(_0xe432ab['length']<0x1)return;const _0x288a59=_0xe432ab['map'](_0x24642e=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x24642e,'before'),this['editor']['model']['createPositionAt'](_0x24642e,0x0)));this['editor']['model']['change'](()=>{_0x3682d6['markMultiRangeBlockFormat'](_0x288a59,{'commandName':'listStart','commandParams':[{'startIndex':_0x36efec['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5c1e86){if('formatBlock'!=_0x5c1e86['type']&&'formatInline'!=_0x5c1e86['type'])return;const _0x4085ac=this['editor']['locale'],{data:_0x4fdf5f}=_0x5c1e86;if(!_0x4fdf5f)return;let _0x1e48c7,_0x3f5c26;switch(_0x4fdf5f['commandName']){case'listStyle':_0x1e48c7='*Change\x20to:*\x20%0',_0x3f5c26={'type':'format','content':o(_0x4085ac,_0x1e48c7,o(_0x4085ac,this['_getTranslationKeyForListStyle'](_0x4fdf5f['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1e48c7=_0x4fdf5f['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3f5c26={'type':'format','content':o(_0x4085ac,_0x1e48c7)};break;case'listStart':_0x1e48c7='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3f5c26={'type':'format','content':o(_0x4085ac,_0x1e48c7,_0x4fdf5f['commandParams'][0x0]['startIndex'])};}return _0x3f5c26;}['_getSuggestionBlocksForListStyle'](){const _0x33adf2=this['editor']['plugins']['get']('LegacyListUtils');let _0x4f36c8=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x4f36c8[0x0]?.['is']('element','listItem')&&_0x4f36c8['unshift'](..._0x33adf2['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x4f36c8[_0x4f36c8['length']-0x1]?.['is']('element','listItem')&&_0x4f36c8['push'](..._0x33adf2['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x4f36c8=[...new Set(_0x4f36c8)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x4f36c8=_0x4f36c8['filter'](_0x2d1248=>_0x2d1248['is']('element','listItem'))),_0x4f36c8;}['_getSuggestionBlocks'](_0x4f9207){const _0x32e2c4=this['editor']['plugins']['get']('LegacyListUtils');let _0x2b1b0e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4f9207)['map'](_0x3106f5=>{const _0x1093ba=this['editor']['model']['createPositionAt'](_0x3106f5,0x0);return[..._0x32e2c4['getSiblingNodes'](_0x1093ba,'backward'),..._0x32e2c4['getSiblingNodes'](_0x1093ba,'forward')];})['flat']();return _0x2b1b0e=[...new Set(_0x2b1b0e)],_0x2b1b0e;}['_getTranslationKeyForListStyle'](_0x302797){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x302797)||'default')['toUpperCase']()+'_LIST_'+_0x302797['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x2038e0{['afterInit'](){const _0x323f96=this['editor'];if(!_0x323f96['plugins']['has']('MediaEmbedEditing'))return;const _0xb2174d=_0x323f96['plugins']['get']('TrackChangesEditing'),_0xd9eddb=_0x323f96['locale'];_0xb2174d['enableCommand']('mediaEmbed'),_0xb2174d['descriptionFactory']['registerElementLabel']('media',_0x30b644=>o(_0xd9eddb,'ELEMENT_MEDIA',_0x30b644)),_0x323f96['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x1e78b1,{writer:_0x4fd474,options:_0x323f7f})=>{if(_0x323f7f['showSuggestionHighlights'])return _0x4fd474['createEmptyElement']('div');},'converterPriority':'high'}),_0x323f96['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3699de,_0x19abfc,_0x2dd5a5)=>{_0x2dd5a5['options']['showSuggestionHighlights']&&_0x3699de['stop']();},{'priority':'high'});}}class gt extends _0x2038e0{['afterInit'](){const _0x5a2d45=this['editor'];_0x5a2d45['plugins']['has']('MentionEditing')&&_0x5a2d45['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x2038e0{['afterInit'](){const _0x2af106=this['editor'],_0x28053a=_0x2af106['plugins']['get']('TrackChangesEditing');_0x2af106['plugins']['has']('MultiLevelList')&&(_0x28053a['enableDefaultAttributesIntegration']('multiLevelList'),_0x28053a['registerBlockAttribute']('listMarkerStyle'),_0x28053a['descriptionFactory']['registerDescriptionCallback'](_0x459a23=>this['handleDescriptions'](_0x459a23)));}['handleDescriptions'](_0x57053c){const _0x517abe=this['editor']['locale'],{data:_0x3a7f48}=_0x57053c,_0x39e12a={'type':'format','content':''};if(_0x3a7f48&&'listMarkerStyle'==_0x3a7f48['key']){if(!_0x3a7f48['oldValue'])return{'type':'format','content':o(_0x517abe,'*Set\x20format:*\x20%0',o(_0x517abe,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3a7f48['newValue']+')'};if(!_0x3a7f48['newValue']){let _0x1591b5=_0x57053c['head'];for(;_0x1591b5;){if(_0x1591b5['data']&&'listType'==_0x1591b5['data']['key']&&_0x1591b5['data']['newValue'])return _0x39e12a;_0x1591b5=_0x1591b5['next'];}return{'type':'format','content':o(_0x517abe,'*Remove\x20format:*\x20%0',o(_0x517abe,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3a7f48['oldValue']+')'};}}}}class mt extends _0x2038e0{['afterInit'](){const _0x143e01=this['editor'];if(!_0x143e01['plugins']['has']('PageBreakEditing'))return;_0x143e01['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2ec57c=_0x143e01['plugins']['get']('TrackChangesEditing'),_0x481949=_0x143e01['locale'];_0x2ec57c['descriptionFactory']['registerElementLabel']('pageBreak',_0x487a84=>o(_0x481949,'ELEMENT_PAGE_BREAK',_0x487a84));}}class dt extends _0x2038e0{['afterInit'](){const _0x481a29=this['editor'];if(!_0x481a29['plugins']['has']('Paragraph'))return;const _0x6fc59d=_0x481a29['locale'],_0x54f266=_0x481a29['plugins']['get']('TrackChangesEditing');_0x54f266['descriptionFactory']['registerElementLabel']('paragraph',_0x41cea8=>o(_0x6fc59d,'ELEMENT_PARAGRAPH',_0x41cea8)),_0x54f266['enableDefaultAttributesIntegration']('paragraph'),_0x54f266['enableCommand']('insertParagraph'),_0x481a29['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x481a29),{'priority':'highest'}),_0x481a29['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x13bfb4,_0x1aaac1,_0x396443)=>{_0x396443['options']['showSuggestionHighlights']&&nr(_0x481a29,{'showActiveMarker':!0x1})(_0x13bfb4,_0x1aaac1,_0x396443);},{'priority':'highest'});const _0x4b6cbc=_0x54f266['descriptionFactory'];_0x4b6cbc['registerDescriptionCallback'](_0x12f7a6=>{if('insertion'!==_0x12f7a6['type'])return;const {start:_0x33e747,end:_0x34b4ab}=_0x12f7a6['getFirstRange']();if(!_0x33e747['isTouching'](_0x34b4ab)||!_0x33e747['nodeAfter'])return;const _0x47698d=_0x481a29['model']['schema'],_0x2bd618=_0x33e747['nodeAfter'];return _0x47698d['isBlock'](_0x2bd618)&&!_0x47698d['isLimit'](_0x2bd618)&&_0x47698d['checkChild'](_0x2bd618,'$text')?{'type':'insertion','content':o(_0x6fc59d,'*Insert:*\x20%0',_0x4b6cbc['getItemLabel'](_0x2bd618,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b37f1=this['editor'],_0x471c7e=_0x4b37f1['locale'];_0x4b37f1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x9ed8b7=>{if('formatBlock'!=_0x9ed8b7['type'])return;const {data:_0x1bb1f1}=_0x9ed8b7;return _0x1bb1f1&&'paragraph'==_0x1bb1f1['commandName']?{'type':'format','content':o(_0x471c7e,'*Change\x20to:*\x20%0',o(_0x471c7e,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x5023e7,{showActiveMarker:_0x4e90cd=!0x0}={}){return(_0x4a9bc3,_0x5750fa,_0x57f81b)=>{const _0x156b2f=_0x5023e7['plugins']['get']('TrackChangesEditing'),_0x45bc5f=_0x5750fa['markerRange']['start'],_0x46fc20=_0x5750fa['markerRange']['end'],_0x44a25f=_0x5023e7['model']['schema'];if(!_0x45bc5f['isTouching'](_0x46fc20)||!_0x45bc5f['nodeAfter'])return;const _0x5bbfc7=_0x45bc5f['nodeAfter'];if(_0x44a25f['isBlock'](_0x5bbfc7)&&!_0x44a25f['isLimit'](_0x5bbfc7)&&_0x44a25f['checkChild'](_0x5bbfc7,'$text')){if(!_0x57f81b['consumable']['consume'](_0x5750fa['markerRange'],_0x4a9bc3['name']))return;const _0x31fe76=_0x57f81b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x4952d6=_0x57f81b['mapper']['toViewPosition'](_0x46fc20);_0x4e90cd&&_0x156b2f['activeMarkers']['includes'](_0x5750fa['markerName'])&&_0x57f81b['writer']['addClass']('ck-suggestion-marker--active',_0x31fe76),_0x57f81b['writer']['insert'](_0x4952d6,_0x31fe76),_0x57f81b['mapper']['bindElementToMarker'](_0x31fe76,_0x5750fa['markerName']);}};}class pt extends _0x2038e0{['afterInit'](){const _0x1c357c=this['editor'];if(!_0x1c357c['plugins']['has']('RemoveFormatEditing'))return;_0x1c357c['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c7fb2=this['editor'];_0x1c7fb2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb98e12=>{if('formatBlock'!=_0xb98e12['type']&&'formatInline'!=_0xb98e12['type'])return;const {data:_0x2be142}=_0xb98e12;return _0x2be142&&'removeFormat'==_0x2be142['commandName']?{'type':'format','content':o(_0x1c7fb2['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x2038e0{['afterInit'](){const _0x27ebb8=this['editor'];if(!_0x27ebb8['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x32dd6b=_0x27ebb8['plugins']['get']('TrackChangesEditing');_0x32dd6b['enableCommand']('goToPreviousRestrictedEditingException'),_0x32dd6b['enableCommand']('goToNextRestrictedEditingException');const _0x55de62=_0x27ebb8['plugins']['get']('RestrictedEditingModeEditing');_0x55de62['enableCommand']('trackChanges'),_0x55de62['enableCommand']('acceptSuggestion'),_0x55de62['enableCommand']('discardSuggestion'),_0x55de62['enableCommand']('acceptAllSuggestions'),_0x55de62['enableCommand']('discardAllSuggestions'),_0x55de62['enableCommand']('acceptSelectedSuggestions'),_0x55de62['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x2038e0{static get['requires'](){return[_0x31854a];}['init'](){const _0x2d1ab4=this['editor'],_0x4b8c43=_0x2d1ab4['plugins']['get']('TrackChangesEditing');_0x4b8c43['enableCommand']('shiftEnter'),_0x2d1ab4['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x2d1ab4),{'priority':'high'}),_0x2d1ab4['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x2d1ab4),{'priority':'high'}),_0x2d1ab4['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x260fa0,_0x71c41,_0x1edefd)=>{_0x1edefd['options']['showSuggestionHighlights']&&de(_0x2d1ab4,{'showActiveMarker':!0x1})(_0x260fa0,_0x71c41,_0x1edefd);}),_0x4b8c43['descriptionFactory']['registerElementLabel']('softBreak',_0x136847=>o(_0x2d1ab4['locale'],'ELEMENT_LINE_BREAK',_0x136847));}}function de(_0x145bf4,{showActiveMarker:_0x866894=!0x0}={}){return(_0x49eeca,_0x584904,_0x1ee100)=>{const _0x100ba3=_0x145bf4['plugins']['get']('TrackChangesEditing');if(!_0x1ee100['consumable']['test'](_0x584904['markerRange'],_0x49eeca['name']))return;const _0x25d94e=_0x145bf4['model'];for(const _0x1457f of _0x584904['markerRange']['getItems']()){if(!_0x1457f['is']('element','softBreak'))continue;const _0x49a602='deletion'==_0x584904['markerName']['split'](':')[0x1]?'merge':'split',_0x69b181=_0x1ee100['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x49a602}),_0x47d7e3=_0x1ee100['mapper']['toViewPosition'](_0x25d94e['createPositionBefore'](_0x1457f));_0x866894&&_0x100ba3['activeMarkers']['includes'](_0x584904['markerName'])&&_0x1ee100['writer']['addClass']('ck-suggestion-marker--active',_0x69b181),_0x1ee100['writer']['insert'](_0x47d7e3,_0x69b181),_0x1ee100['mapper']['bindElementToMarker'](_0x69b181,_0x584904['markerName']);}};}class wt extends _0x2038e0{['afterInit'](){const _0x512a9c=this['editor'],_0x23c2cc=_0x512a9c['model'],_0x3bca73=_0x512a9c['locale'];if(!_0x512a9c['plugins']['has']('StandardEditingModeEditing'))return;const _0x22db1b=_0x512a9c['plugins']['get']('TrackChangesEditing'),_0x5747ff='restrictedEditingException',_0x3a82d5=_0x512a9c['commands']['get'](_0x5747ff);_0x22db1b['enableCommand'](_0x5747ff,(_0x4c2fcf,_0x5287a1={})=>{const _0x1dc03b=_0x23c2cc['document']['selection'];if(_0x1dc03b['isCollapsed'])return void _0x4c2fcf(_0x5287a1);const _0x3bb814=void 0x0!==_0x5287a1['forceValue']?_0x5287a1['forceValue']:!_0x3a82d5['value'];_0x23c2cc['change'](()=>{const _0x43e764=Array['from'](_0x1dc03b['getRanges']());for(const _0x13f7ca of _0x43e764){const _0x14d55d=_0x3bb814?[_0x13f7ca]:io(_0x5747ff,_0x13f7ca,_0x23c2cc);for(const _0x42f8e6 of _0x14d55d)_0x22db1b['markInlineFormat'](_0x42f8e6,{'commandName':_0x5747ff,'commandParams':[{'forceValue':_0x3bb814}]});}});}),_0x22db1b['descriptionFactory']['registerDescriptionCallback'](_0x437954=>{if('formatBlock'!=_0x437954['type']&&'formatInline'!=_0x437954['type'])return;const {data:_0x4f4989}=_0x437954;return _0x4f4989&&_0x4f4989['commandName']==_0x5747ff?_0x4f4989['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3bca73,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x3bca73,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x2038e0{['afterInit'](){const _0x4e5dfa=this['editor'];if(!_0x4e5dfa['plugins']['has']('Style')||!_0x4e5dfa['plugins']['has']('DataSchema'))return;const _0x52c20f=_0x4e5dfa['plugins']['get']('TrackChangesEditing'),_0x2fe228=_0x4e5dfa['locale'],_0x7551ce=_0x4e5dfa['config']['get']('style')||{},_0x42edff=_0x4e5dfa['plugins']['get']('GeneralHtmlSupport'),_0x33f177=_0x4e5dfa['plugins']['get']('StyleUtils')['normalizeConfig'](_0x4e5dfa['plugins']['get']('DataSchema'),_0x7551ce['definitions']);_0x52c20f['enableDefaultAttributesIntegration']('style');const _0x277a68=new Set();for(const _0x4a395f of _0x33f177['block']){const _0x1bbfce=_0x42edff['getGhsAttributeNameForElement'](_0x4a395f['element']);_0x277a68['add'](_0x1bbfce);}const _0xdeb0fa=new Set();for(const _0xea0afd of _0x33f177['inline']){const _0x378c71=_0x42edff['getGhsAttributeNameForElement'](_0xea0afd['element']);_0xdeb0fa['add'](_0x378c71);for(const _0x3cf9c7 of _0xea0afd['ghsAttributes'])_0xdeb0fa['add'](_0x3cf9c7);}for(const _0x99a2ae of _0x277a68)_0x52c20f['registerBlockAttribute'](_0x99a2ae),_0x52c20f['descriptionFactory']['registerAttributeLabel'](_0x99a2ae,o(_0x2fe228,'FORMAT_STYLE'));for(const _0x44d6ac of _0xdeb0fa)_0x52c20f['registerInlineAttribute'](_0x44d6ac),_0x52c20f['descriptionFactory']['registerAttributeLabel'](_0x44d6ac,o(_0x2fe228,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x65b304=this['editor'],_0xb7833a=_0x65b304['locale'];_0x65b304['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x584f83=>{if('formatBlock'!=_0x584f83['type']&&'formatInline'!=_0x584f83['type'])return;const {data:_0x23fc20}=_0x584f83;return _0x23fc20&&'style'===_0x23fc20['commandName']?_0x23fc20['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xb7833a,'*Set\x20format:*\x20%0',_0x23fc20['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0xb7833a,'*Remove\x20format:*\x20%0',_0x23fc20['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x2038e0{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x429deb){super(_0x429deb),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x6bbb6=this['editor'],_0x25e280=_0x6bbb6['model']['document']['selection'];if(!_0x6bbb6['plugins']['has']('TableEditing'))return;const _0x1fa062=_0x6bbb6['locale'],_0x1b33b0=_0x6bbb6['plugins']['get']('TrackChangesEditing'),_0x2ba86d=_0x6bbb6['plugins']['get']('TableUtils');_0x1b33b0['descriptionFactory']['registerElementLabel']('table',_0x2045c2=>o(_0x1fa062,'ELEMENT_TABLE',_0x2045c2)),this['_setupColumnsRowsFixing'](),_0x1b33b0['enableCommand']('insertTable'),_0x1b33b0['enableCommand']('selectTableRow'),_0x1b33b0['enableCommand']('selectTableColumn');for(const _0x16144c of['insertTableRowAbove','insertTableRowBelow']){const _0x4c09f9=_0x6bbb6['commands']['get'](_0x16144c);_0x1b33b0['enableCommand'](_0x16144c,_0x180198=>{_0x6bbb6['model']['change'](_0xaeaaa7=>{_0x180198();const _0x2e5884='above'===_0x4c09f9['order'],_0x14e714=_0x2ba86d['getSelectionAffectedTableCells'](_0x25e280),_0x5845cd=_0x2ba86d['getRowIndexes'](_0x14e714),_0x4b8b33=_0x2e5884?_0x5845cd['first']-0x1:_0x5845cd['last']+0x1,_0x334d47=_0x14e714[0x0]['findAncestor']('table'),_0x171cdd=_0x2ba86d['createTableWalker'](_0x334d47,{'startRow':_0x4b8b33,'endRow':_0x4b8b33}),_0xcc6334=Array['from'](_0x171cdd)['map'](_0x299c68=>_0xaeaaa7['createRangeOn'](_0x299c68['cell']));_0x1b33b0['markMultiRangeInsertion'](_0xcc6334,'tableRow');});});}for(const _0x57ca00 of['insertTableColumnLeft','insertTableColumnRight']){const _0x10dc50=_0x6bbb6['commands']['get'](_0x57ca00);_0x1b33b0['enableCommand'](_0x57ca00,_0x59cadb=>{_0x6bbb6['model']['change'](_0x2a7e2=>{_0x59cadb();const _0x267a39='left'===_0x10dc50['order'],_0x1d7c3a=_0x2ba86d['getSelectionAffectedTableCells'](_0x25e280),_0x5e546f=_0x2ba86d['getColumnIndexes'](_0x1d7c3a),_0x19f543=_0x267a39?_0x5e546f['first']-0x1:_0x5e546f['last']+0x1,_0x43cfc5=_0x1d7c3a[0x0]['findAncestor']('table'),_0x54d4b8=_0x2ba86d['createTableWalker'](_0x43cfc5,{'startRow':0x0,'column':_0x19f543,'includeAllSlots':!0x1}),_0x14f172=Array['from'](_0x54d4b8)['map'](_0x33a239=>_0x2a7e2['createRangeOn'](_0x33a239['cell']));_0x1b33b0['markMultiRangeInsertion'](_0x14f172,'tableColumn');});});}for(const _0x5cf524 of['removeTableRow','removeTableColumn']){const _0x4e5d4e=_0x5cf524['substr'](0xb),_0x5ad2d6=_0x4e5d4e['toLowerCase'](),_0x3a0315=_0x5ad2d6['substr'](0x0,0x3)+'span',_0x15cc73='table'+_0x4e5d4e,_0x1c35a1='min'+_0x4e5d4e,_0x1cb15e='max'+_0x4e5d4e;_0x1b33b0['enableCommand'](_0x5cf524,()=>{_0x6bbb6['model']['change'](_0x4c670b=>{const _0x46937c=_0x2ba86d['getSelectionAffectedTableCells'](_0x25e280),_0x38a2c2=_0x46937c[0x0]['findAncestor']('table');let _0x31eb92;if('removeTableRow'==_0x5cf524){const _0x357928=_0x2ba86d['getRowIndexes'](_0x46937c);_0x31eb92={'startRow':_0x357928['first'],'endRow':_0x357928['last'],'includeAllSlots':!0x0};}else{const _0x4dde46=_0x2ba86d['getColumnIndexes'](_0x46937c);_0x31eb92={'startColumn':_0x4dde46['first'],'endColumn':_0x4dde46['last'],'includeAllSlots':!0x0};}const _0xf69d03=_0x2ba86d['createTableWalker'](_0x38a2c2,_0x31eb92),_0x5b62be=Array['from'](_0xf69d03)['map'](({cell:_0x186ef9})=>_0x186ef9),_0x3cf2e4=Ee(_0x5b62be['filter'](_0x393c9b=>_0x393c9b['hasAttribute'](_0x3a0315))),_0x198628=Ee(_0x5b62be['filter'](_0x4deea9=>!_0x4deea9['hasAttribute'](_0x3a0315)))['map'](_0x25c1e8=>_0x4c670b['createRangeOn'](_0x25c1e8)),_0x402051=_0x1b33b0['markMultiRangeDeletion'](_0x198628,_0x15cc73);if(_0x402051&&('tableRow'==_0x402051['subType']||'tableColumn'==_0x402051['subType'])){const _0x3b7507=this['_getSuggestionCoords'](_0x402051);for(const _0x2a68f7 of _0x3cf2e4){const _0xd80ec8=_0x4c670b['createRangeOn'](_0x2a68f7),_0x231c8a=_0x2ba86d['getCellLocation'](_0x2a68f7),_0x2cf523=_0x2a68f7['getAttribute'](_0x3a0315)-0x1,_0x1cbb60=_0x3b7507[_0x1c35a1],_0x444e45=_0x3b7507[_0x1cb15e];_0x1cbb60<=_0x231c8a[_0x5ad2d6]&&_0x231c8a[_0x5ad2d6]+_0x2cf523<=_0x444e45&&_0x402051['addRange'](_0xd80ec8);}}});});}function _0x58b91b(_0x4b2193){const _0x2532ca=Array['from'](_0x25e280['getRanges']())['map'](_0x11930f=>_0x55bce1['fromRange'](_0x11930f));_0x6bbb6['model']['change'](_0x4d791f=>{const _0x3e4ee7=_0x4d791f['batch'];_0x4b2193=_0x4b2193['filter'](_0x33be9c=>'$graveyard'!=_0x33be9c['root']['rootName']),_0x4d791f['setSelection'](_0x4b2193),_0x6bbb6['commands']['get']('removeTableRow')['refresh'](),_0x6bbb6['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x6bbb6['model']['enqueueChange'](()=>{_0x6bbb6['model']['enqueueChange'](_0x3e4ee7,_0x32593b=>{const _0xf2ffae=_0x2532ca['filter'](_0x2a1c65=>'$graveyard'!=_0x2a1c65['root']['rootName']);_0xf2ffae['length']>0x0&&_0x32593b['setSelection'](_0xf2ffae);for(const _0x1e368e of _0x2532ca)_0x1e368e['detach']();});});});}function _0x506cc5(_0x41acda){_0x6bbb6['model']['change'](_0x385a26=>{const _0x20b6cc=Array['from'](_0x25e280['getRanges']())['map'](_0x23fae4=>_0x55bce1['fromRange'](_0x23fae4)),_0x57e6fa=[];for(const _0x5d7647 of _0x41acda)for(const _0x165c1a of _0x5d7647['getItems']({'shallow':!0x0}))_0x57e6fa['push'](_0x165c1a);for(const _0x52afb1 of _0x57e6fa)'$graveyard'!=_0x52afb1['root']['rootName']&&(_0x385a26['setSelection'](_0x385a26['createPositionAt'](_0x52afb1,0x0)),_0x6bbb6['commands']['get']('removeTableColumn')['refresh'](),_0x6bbb6['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x598944=_0x20b6cc['filter'](_0x34e714=>'$graveyard'!=_0x34e714['root']['rootName']);_0x598944['length']>0x0&&_0x385a26['setSelection'](_0x598944);for(const _0x47a03 of _0x20b6cc)_0x47a03['detach']();});}function _0x5d7c82(_0x23ddfd,_0x14677b){return _0x14677b['every'](_0x3dbcda=>_0x23ddfd['some'](_0x3f34e7=>_0x3f34e7['end']['isEqual'](_0x3dbcda['start'])||_0x3dbcda['end']['isEqual'](_0x3f34e7['start'])));}function _0x26e82d(_0x4bb4e6,_0x596f01){return!_0x4bb4e6['some'](_0x3908de=>_0x596f01['some'](_0x1c8ae0=>_0x3908de['isIntersecting'](_0x1c8ae0)))&&_0x4bb4e6['some'](_0x580a38=>_0x596f01['some'](_0x26df58=>_0x580a38['end']['isTouching'](_0x26df58['start'])));}_0x6bbb6['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x503acb,_0x55beca,_0x162ada)=>{if(!_0x162ada['options']['showSuggestionHighlights'])return;const _0x59a9dc=_0x55beca['item'];if(!_0x59a9dc)return;const _0x529b33=_0x162ada['mapper']['toViewElement'](_0x59a9dc);function _0x5141dc(_0x1bd99e){return Array['isArray'](_0x1bd99e)?_0x1bd99e:[_0x1bd99e];}_0x529b33&&'tableCell'===_0x59a9dc['name']&&_0x51e2fb(_0x529b33,_0x162ada['writer'],(_0x1de605,_0x310b37,_0xb4c129)=>_0xb4c129['addClass'](_0x5141dc(_0x310b37['classes']),_0x1de605),(_0x2b22ef,_0xb756c4,_0x338c9b)=>_0x338c9b['removeClass'](_0x5141dc(_0xb756c4['classes']),_0x2b22ef));},{'priority':'highest'}),_0x1b33b0['descriptionFactory']['registerDescriptionCallback'](_0x3b05bb=>{if('insertion'!=_0x3b05bb['type']&&'deletion'!=_0x3b05bb['type'])return;const _0x591d9d=_0x3b05bb['getContainedElement']();if(null!=_0x591d9d&&_0x591d9d['is']('element','table')){if('insertion'==_0x3b05bb['type']){const _0x33badc=_0x3b05bb['getItems']()['filter'](_0x56a97f=>_0x56a97f['is']('$textProxy'))['map'](_0x5f1145=>_0x5f1145['data']);if(_0x33badc['length'])return{'type':'insertion','content':o(_0x1fa062,'*Insert:*\x20%0',o(_0x1fa062,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x33badc['join']('\x20')+'\x22'))};}if('deletion'==_0x3b05bb['type']){const _0x1bda2c=_0x3b05bb['getItems']()['filter'](_0x1231d4=>_0x1231d4['is']('$textProxy'))['map'](_0x5953c6=>_0x5953c6['data']);if(_0x1bda2c['length'])return{'type':'deletion','content':o(_0x1fa062,'*Remove:*\x20%0',o(_0x1fa062,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1bda2c['join']('\x20')+'\x22'))};}}}),_0x1b33b0['descriptionFactory']['registerDescriptionCallback'](_0x24dfb9=>{if('tableRow'==_0x24dfb9['subType']){const _0x356215=_0x24dfb9['getItems']()['filter'](_0x10943f=>_0x10943f['is']('$textProxy'))['map'](_0x40856f=>_0x40856f['data']),_0x5dcdbe=this['_getSuggestionCoords'](_0x24dfb9),_0x6531fc=_0x5dcdbe['maxRow']-_0x5dcdbe['minRow']+0x1;if('insertion'==_0x24dfb9['type'])return _0x356215['length']?{'type':'insertion','content':o(_0x1fa062,'*Insert:*\x20%0',o(_0x1fa062,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x6531fc,'\x22'+_0x356215['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1fa062,'*Insert:*\x20%0',o(_0x1fa062,'ELEMENT_TABLE_ROW',_0x6531fc))};if('deletion'==_0x24dfb9['type'])return _0x356215['length']?{'type':'deletion','content':o(_0x1fa062,'*Remove:*\x20%0',o(_0x1fa062,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x6531fc,'\x22'+_0x356215['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1fa062,'*Remove:*\x20%0',o(_0x1fa062,'ELEMENT_TABLE_ROW',_0x6531fc))};}if('tableColumn'==_0x24dfb9['subType']){const _0x493bf8=_0x24dfb9['getItems']()['filter'](_0x55914e=>_0x55914e['is']('$textProxy'))['map'](_0x365eb6=>_0x365eb6['data']),_0x406fc0=this['_getSuggestionCoords'](_0x24dfb9),_0x3b84c0=_0x406fc0['maxColumn']-_0x406fc0['minColumn']+0x1;if('insertion'==_0x24dfb9['type'])return _0x493bf8['length']?{'type':'insertion','content':o(_0x1fa062,'*Insert:*\x20%0',o(_0x1fa062,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3b84c0,'\x22'+_0x493bf8['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1fa062,'*Insert:*\x20%0',o(_0x1fa062,'ELEMENT_TABLE_COLUMN',_0x3b84c0))};if('deletion'==_0x24dfb9['type'])return _0x493bf8['length']?{'type':'deletion','content':o(_0x1fa062,'*Remove:*\x20%0',o(_0x1fa062,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3b84c0,'\x22'+_0x493bf8['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1fa062,'*Remove:*\x20%0',o(_0x1fa062,'ELEMENT_TABLE_COLUMN',_0x3b84c0))};}}),_0x1b33b0['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x58b91b),_0x1b33b0['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x58b91b),_0x1b33b0['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x506cc5),_0x1b33b0['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x506cc5),_0x1b33b0['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5d7c82),_0x1b33b0['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5d7c82),_0x1b33b0['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x26e82d),_0x1b33b0['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x26e82d);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4b4af5=this['editor'],_0x236d1f=_0x4b4af5['model']['document']['selection'];return(_0x527285,_0x30131c)=>{_0x4b4af5['model']['change'](_0x3089c6=>{const {commandName:_0x46c1fe,commandParams:_0x36a502}=_0x30131c;let _0x3ceb12=_0x527285[0x0]['end']['nodeBefore'];_0x36a502&&_0x36a502[0x0]&&!0x1===_0x36a502[0x0]['forceValue']&&(_0x3ceb12=_0x527285[0x0]['start']['nodeAfter']);const _0x2c92e2=_0x3089c6['createRangeIn'](_0x3ceb12);if('$graveyard'==_0x2c92e2['root']['rootName'])return;const _0x4e9e23=Array['from'](_0x236d1f['getRanges']())['map'](_0x1e7786=>_0x55bce1['fromRange'](_0x1e7786));_0x3089c6['setSelection'](_0x2c92e2),_0x4b4af5['commands']['get'](_0x46c1fe)['refresh'](),_0x36a502['push']({'forceDefaultExecution':!0x0}),_0x4b4af5['execute'](_0x46c1fe,..._0x36a502);const _0x155d7a=_0x4e9e23['filter'](_0x2144f4=>'$graveyard'!=_0x2144f4['root']['rootName']);_0x155d7a['length']>0x0&&_0x3089c6['setSelection'](_0x155d7a);for(const _0x25b069 of _0x4e9e23)_0x25b069['detach']();});};}['_getCoordsForCells'](_0x7f9c88){const _0x14a097=this['editor']['plugins']['get']('TableUtils');let _0x4f73c0=Number['MAX_SAFE_INTEGER'],_0xb260cb=Number['MIN_SAFE_INTEGER'],_0x2849c8=Number['MAX_SAFE_INTEGER'],_0xb3713=Number['MIN_SAFE_INTEGER'];for(const _0x7d26a4 of _0x7f9c88){if('$graveyard'==_0x7d26a4['root']['rootName'])continue;const {row:_0x217f1d,column:_0x1f8c6c}=_0x14a097['getCellLocation'](_0x7d26a4),_0x3fb50e=_0x7d26a4['hasAttribute']('rowspan')?_0x7d26a4['getAttribute']('rowspan')-0x1:0x0,_0x4bde64=_0x7d26a4['hasAttribute']('colspan')?_0x7d26a4['getAttribute']('colspan')-0x1:0x0;_0x4f73c0=_0x217f1d<_0x4f73c0?_0x217f1d:_0x4f73c0,_0xb260cb=_0x217f1d+_0x3fb50e>_0xb260cb?_0x217f1d+_0x3fb50e:_0xb260cb,_0x2849c8=_0x1f8c6c<_0x2849c8?_0x1f8c6c:_0x2849c8,_0xb3713=_0x1f8c6c+_0x4bde64>_0xb3713?_0x1f8c6c+_0x4bde64:_0xb3713;}return{'minRow':_0x4f73c0,'maxRow':_0xb260cb,'minColumn':_0x2849c8,'maxColumn':_0xb3713};}['_setupColumnsRowsFixing'](){const _0x22804c=this['editor'],_0x63cd74=_0x22804c['plugins']['get']('TrackChangesEditing'),_0x158b47=_0x22804c['plugins']['get']('TableUtils');_0x22804c['model']['document']['on']('change:data',()=>{const _0x115169=Array['from'](_0x22804c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2a1533,data:_0x397b7b}of _0x115169){const {group:_0x23a1c3,id:_0xc59e5a,subType:_0xf32881}=_0x63cd74['_splitMarkerName'](_0x2a1533);if('suggestion'!=_0x23a1c3)continue;if(null!=_0x397b7b['oldRange'])continue;const _0x26f7e1=_0x63cd74['getSuggestion'](_0xc59e5a);this['_tablePostFixingSubtypes']['includes'](_0xf32881)&&this['_tableSuggestions']['add'](_0x26f7e1);}},{'priority':'low'});const _0x2bea53=(_0x379339,_0x3dad7c)=>{let _0x4fa699=!0x1;const _0x5cde6f=_0x3dad7c['createRangeOn'](_0x379339),_0x189111=_0x379339['findAncestor']('table'),_0x253db=_0x158b47['getCellLocation'](_0x379339);for(const _0x23b34d of this['_tableSuggestions']){const _0x1dd46a=_0x23b34d['subType'],_0xea442a=_0x1dd46a['startsWith']('tablePaste'),_0x1b2de9=_0x1dd46a['substr'](_0xea442a?0xa:0x5),_0x9791ab=_0x1b2de9['toLowerCase'](),_0x23e109=_0x9791ab['substr'](0x0,0x3)+'span',_0x43d597='min'+_0x1b2de9,_0x3f70ec='max'+_0x1b2de9;if(!_0x23b34d['isInContent'])continue;if(_0x189111!=_0x23b34d['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x23b34d['isIntersectingWithRange'](_0x5cde6f))continue;const _0x18c419=_0x379339['hasAttribute'](_0x23e109)?_0x379339['getAttribute'](_0x23e109)-0x1:0x0,_0x4a3569=this['_getSuggestionCoords'](_0x23b34d),_0x3349dd=_0x4a3569[_0x43d597],_0x26bb75=_0x4a3569[_0x3f70ec];_0x3349dd<=_0x253db[_0x9791ab]&&_0x253db[_0x9791ab]+_0x18c419<=_0x26bb75&&(_0x23b34d['addRange'](_0x5cde6f),_0x4fa699=!0x0);}return _0x4fa699;};_0x22804c['model']['document']['registerPostFixer'](_0x5ac963=>{let _0xba960e=!0x1;for(const _0x3a3f70 of _0x22804c['model']['document']['differ']['getChanges']())if('insert'==_0x3a3f70['type']){if('tableRow'==_0x3a3f70['name']){for(const _0x9f5470 of _0x3a3f70['position']['nodeAfter']['getChildren']())_0xba960e=_0xba960e||_0x2bea53(_0x9f5470,_0x5ac963);}else'tableCell'==_0x3a3f70['name']&&(_0xba960e=_0xba960e||_0x2bea53(_0x3a3f70['position']['nodeAfter'],_0x5ac963));}return _0xba960e;});}['_getSuggestionCoords'](_0x3cac03){return this['_getCoordsForCells'](_0x3cac03['getRanges']()['map'](_0x40f431=>_0x40f431['start']['nodeAfter']));}}function Ee(_0x14f959){return Array['from'](new Set(_0x14f959)['values']());}class St extends _0x2038e0{static get['requires'](){return[jt];}['afterInit'](){const _0x24fbf7=this['editor'],_0x45c48f=_0x24fbf7['model']['document']['selection'],_0x343ae9=_0x24fbf7['locale'];if(!_0x24fbf7['plugins']['has']('TableEditing'))return;const _0x180a1a=_0x24fbf7['plugins']['get']('TrackChangesEditing'),_0x265053=_0x24fbf7['plugins']['get']('TableUtils'),_0x57cc54=_0x24fbf7['plugins']['get'](jt);_0x57cc54['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x180a1a['enableCommand']('mergeTableCells',()=>{const _0x3b23d6=_0x265053['getSelectionAffectedTableCells'](_0x24fbf7['model']['document']['selection']);_0x24fbf7['model']['change'](()=>{_0x180a1a['markMultiRangeBlockFormat'](_0x3b23d6,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x24fbf7['commands']['get']('mergeTableCells')['on']('execute',(_0x3446cd,_0x1372dc)=>{_0x24fbf7['commands']['get']('trackChanges')['value']&&(_0x1372dc['length']>0x0&&_0x1372dc[_0x1372dc['length']-0x1]&&_0x1372dc[_0x1372dc['length']-0x1]['forceDefaultExecution']||_0x180a1a['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x3446cd['stop']());},{'priority':'highest'});for(const _0x32e7ad of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1ed328=_0x24fbf7['commands']['get'](_0x32e7ad);_0x180a1a['enableCommand'](_0x32e7ad,()=>{const _0x448ab6=_0x24fbf7['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xb42065=>_0xb42065['is']('element','tableCell')),_0x53f974=_0x1ed328['value'];_0x24fbf7['model']['change'](()=>{_0x180a1a['markMultiRangeBlockFormat']([_0x448ab6,_0x53f974],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x556290 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x35ccb1=_0x24fbf7['commands']['get'](_0x556290);_0x180a1a['enableCommand'](_0x556290,()=>{const _0x547f15=_0x265053['getSelectionAffectedTableCells'](_0x24fbf7['model']['document']['selection'])[0x0],_0x1a6da5=_0x547f15['findAncestor']('table'),{column:_0x2b67c5,row:_0x35834b}=_0x265053['getCellLocation'](_0x547f15);let _0x5c8535=[];if('horizontally'==_0x35ccb1['direction']){const _0x2b7eeb=_0x265053['createTableWalker'](_0x1a6da5,{'startRow':_0x35834b,'endRow':_0x35834b,'includeAllSlots':!0x0});_0x5c8535=Array['from'](_0x2b7eeb)['map'](_0x30fa07=>_0x30fa07['cell']);}else{const _0x318890=_0x265053['createTableWalker'](_0x1a6da5,{'column':_0x2b67c5,'includeAllSlots':!0x0});_0x5c8535=Array['from'](_0x318890)['map'](_0x5f2d8e=>_0x5f2d8e['cell']);}_0x24fbf7['model']['change'](_0x14b619=>{_0x180a1a['markBlockFormat'](_0x14b619['createRangeOn'](_0x547f15),{'commandName':_0x556290,'commandParams':[]},_0x5c8535,_0x556290);});});}_0x180a1a['descriptionFactory']['registerDescriptionCallback'](_0x5c6724=>{if('formatBlock'!=_0x5c6724['type']&&'formatInline'!=_0x5c6724['type'])return;const {data:_0x176799}=_0x5c6724;return _0x176799&&'mergeTableCells'==_0x176799['commandName']?{'type':'format','content':o(_0x343ae9,'*Merge\x20cells*')}:void 0x0;}),_0x180a1a['descriptionFactory']['registerDescriptionCallback'](_0x16d56e=>{if('formatBlock'!=_0x16d56e['type']&&'formatInline'!=_0x16d56e['type'])return;const {data:_0x2bbc46}=_0x16d56e;return _0x2bbc46?'splitTableCellVertically'==_0x2bbc46['commandName']?{'type':'format','content':o(_0x343ae9,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2bbc46['commandName']?{'type':'format','content':o(_0x343ae9,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x185538=_0x57cc54['_acceptFormatSuggestionCallbackFactory']();for(const _0x4b0346 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x180a1a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4b0346,'accept',_0x185538);for(const _0x50f454 of['splitTableCellVertically','splitTableCellHorizontally'])_0x180a1a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x50f454,'accept',_0x185538);_0x180a1a['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x7a36d1=>{_0x24fbf7['model']['change'](_0x241469=>{const _0x5bc7d9=Array['from'](_0x45c48f['getRanges']())['map'](_0x1270c3=>_0x55bce1['fromRange'](_0x1270c3));_0x241469['setSelection'](_0x7a36d1),_0x24fbf7['commands']['get']('mergeTableCells')['refresh'](),_0x24fbf7['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x42de87=_0x5bc7d9['filter'](_0x5332d6=>'$graveyard'!=_0x5332d6['root']['rootName']);_0x42de87['length']>0x0&&_0x241469['setSelection'](_0x42de87);for(const _0x42e558 of _0x5bc7d9)_0x42e558['detach']();});});for(const _0x364de5 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2c4855=_0x24fbf7['commands']['get'](_0x364de5);_0x2c4855['on']('set:isEnabled',(_0x4ab49c,_0x3a9c1e,_0x15be2a)=>{if(_0x15be2a){const _0x491860=_0x24fbf7['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x40ee12=>_0x40ee12['is']('element','tableCell'));this['_areMergableCells'](_0x2c4855['value'],_0x491860)||(_0x4ab49c['return']=!0x1,_0x4ab49c['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x54cc41=this['editor']['commands']['get']('mergeTableCells'),_0x3cc51f=this['editor']['plugins']['get']('TableUtils');if(!_0x54cc41['isEnabled'])return!0x1;const _0xf4c20c=_0x3cc51f['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4a67b4 of _0xf4c20c)for(const _0x3f7a9f of _0xf4c20c)if(_0x4a67b4!=_0x3f7a9f&&!this['_areMergableCells'](_0x4a67b4,_0x3f7a9f))return!0x1;return!0x0;}['_areMergableCells'](_0x4fe25a,_0xa371c8){const _0x30ecfe=this['editor']['plugins']['get']('TrackChangesEditing'),_0x163f8e=this['editor']['model']['createRangeOn'](_0x4fe25a),_0x2873b1=this['editor']['model']['createRangeOn'](_0xa371c8),_0x568f1d=new Set(),_0x2114a1=new Set();for(const _0x3904f2 of _0x30ecfe['getSuggestions']())if(('insertion'==_0x3904f2['type']||'deletion'==_0x3904f2['type']||'mergeTableCells'==_0x3904f2['subType'])&&_0x3904f2['isInContent']){for(const _0x41a81e of _0x3904f2['getRanges']())_0x41a81e['containsRange'](_0x163f8e,!0x0)&&_0x568f1d['add'](_0x3904f2['type']+':'+_0x3904f2['author']['id']),_0x41a81e['containsRange'](_0x2873b1,!0x0)&&_0x2114a1['add'](_0x3904f2['type']+':'+_0x3904f2['author']['id']);}if(_0x568f1d['size']!=_0x2114a1['size'])return!0x1;for(const _0x360ff3 of _0x568f1d)if(!_0x2114a1['has'](_0x360ff3))return!0x1;return!0x0;}}class At extends _0x2038e0{static get['requires'](){return[jt];}['afterInit'](){const _0xcd19d6=this['editor'];if(!_0xcd19d6['plugins']['has']('TableEditing'))return;const _0x83d149=_0xcd19d6['locale'],_0x4c0dd0=_0xcd19d6['plugins']['get']('TrackChangesEditing');_0x4c0dd0['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x4c0dd0['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x4c0dd0['registerBlockAttribute']('headingRows'),_0x4c0dd0['registerBlockAttribute']('headingColumns'),_0x4c0dd0['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x83d149,'FORMAT_HEADER_ROW')),_0x4c0dd0['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x83d149,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x18534d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x47e4a3=this['editor']['plugins']['get']('TableUtils'),_0x63337f=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x27196a({showActiveMarker:_0xf6c01e=!0x0,setDataAttribute:_0x3d107d=!0x0}={}){return(_0x20e0a0,_0x1c461a,_0x3af66d)=>{const {type:_0x368241,id:_0x493b9f}=_0x18534d['_splitMarkerName'](_0x1c461a['markerName']),_0x5f8d05=_0x18534d['getSuggestion'](_0x493b9f),_0xd5bb85=_0x5f8d05['data'];if('formatBlock'!=_0x5f8d05['type']||!_0xd5bb85||'setTableColumnHeader'!=_0xd5bb85['commandName'])return;if(_0x1c461a['item'])return void _0x20e0a0['stop']();if(!_0x3af66d['consumable']['consume'](_0x1c461a['markerRange'],_0x20e0a0['name']))return;const _0x37f523=_0x1c461a['markerRange']['start']['nodeAfter'],_0x55f66b=_0x1c461a['markerRange']['end']['nodeBefore'],_0x132252=_0x37f523['parent']['parent'],{column:_0x3f2dda}=_0x47e4a3['getCellLocation'](_0x37f523),{column:_0x5ea454}=_0x47e4a3['getCellLocation'](_0x55f66b);for(let _0x1eb818=_0x3f2dda;_0x1eb818<=_0x5ea454;_0x1eb818++){const _0x2e0f3d=_0x47e4a3['createTableWalker'](_0x132252,{'column':_0x1eb818,'includeAllSlots':!0x1});for(const _0x419154 of _0x2e0f3d){const _0x516a26=_0x419154['cell'],_0xea5037=_0x3af66d['mapper']['toViewElement'](_0x516a26);_0x3af66d['writer']['addClass']('ck-suggestion-marker-'+_0x368241,_0xea5037),_0x3d107d&&_0x3af66d['writer']['setAttribute']('data-suggestion',_0x493b9f,_0xea5037),_0x3af66d['mapper']['bindElementToMarker'](_0xea5037,_0x1c461a['markerName']),_0xf6c01e&&(_0x18534d['activeMarkers']['includes'](_0x1c461a['markerName'])?_0x3af66d['writer']['addClass']('ck-suggestion-marker--active',_0xea5037):_0x3af66d['writer']['removeClass']('ck-suggestion-marker--active',_0xea5037));}}};}_0x18534d['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x63337f),_0x18534d['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x63337f),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x27196a(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x437bde,_0x1d51e3,_0x8bb0b3)=>{_0x8bb0b3['options']['showSuggestionHighlights']&&_0x27196a({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x437bde,_0x1d51e3,_0x8bb0b3);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x20f2f5,_0x526985,_0x4b41c2)=>{const {type:_0xe449c7,id:_0x1cc929}=_0x18534d['_splitMarkerName'](_0x526985['markerName']),_0x5ef12d=_0x18534d['getSuggestion'](_0x1cc929),_0x444942=_0x5ef12d['data'];if('formatBlock'!=_0x5ef12d['type']||!_0x444942||'setTableColumnHeader'!=_0x444942['commandName'])return;const _0x289814=_0x4b41c2['mapper']['markerNameToElements'](_0x526985['markerName']);if(_0x289814){for(const _0x426e62 of _0x289814)_0x4b41c2['writer']['removeClass']('ck-suggestion-marker-'+_0xe449c7,_0x426e62),_0x4b41c2['writer']['removeClass']('ck-suggestion-marker--active',_0x426e62),_0x4b41c2['writer']['removeAttribute']('data-suggestion',_0x426e62),_0x4b41c2['mapper']['unbindElementFromMarkerName'](_0x426e62,_0x526985['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d5d3c=this['editor'],_0x250f75=_0x5d5d3c['locale'];function _0x43c86a(_0x3183b0){return{'type':'format','content':o(_0x250f75,'*Format:*\x20%0',_0x3183b0)};}_0x5d5d3c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x458da1=>{if('formatBlock'!=_0x458da1['type'])return;const {data:_0xf714c6}=_0x458da1;if(_0xf714c6){if('setTableRowHeader'==_0xf714c6['commandName']){const _0x185c2e=_0xf714c6['commandParams'][0x0]['forceValue'];return _0x43c86a(o(_0x250f75,_0x185c2e?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0xf714c6['commandName']){const _0x3bc3c4=_0xf714c6['commandParams'][0x0]['forceValue'];return _0x43c86a(o(_0x250f75,_0x3bc3c4?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x17dc4f=>[_0x17dc4f,null]));class It extends _0x2038e0{static get['requires'](){return[jt];}['afterInit'](){const _0x3c37dd=this['editor'];if(!_0x3c37dd['plugins']['has']('TableClipboard'))return;const _0x35b14e=_0x3c37dd['plugins']['get']('TrackChangesEditing'),_0x1660ff=_0x3c37dd['plugins']['get']('TableUtils'),_0x59099d=_0x3c37dd['plugins']['get'](jt),_0x5111e5=_0x3c37dd['plugins']['get']('TableClipboard');_0x59099d['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x3c37dd['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x3c37dd['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x45b10d=null;_0x3c37dd['model']['on']('insertContent',(_0x3a0a8b,_0xc15cdf)=>{const [_0x2b0c6a,_0x23ca67]=_0xc15cdf,_0x493514=_0xc15cdf[_0xc15cdf['length']-0x1];_0x493514&&_0x493514['forceDefaultExecution']||_0x35b14e['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x3c12ec,_0x147b3e,_0x5e1fa2,_0x23eba2,_0x34801a){if(_0x147b3e&&!_0x147b3e['is']('documentSelection'))return!0x1;const _0x564a37=_0x34801a['getTableIfOnlyTableInContent'](_0x3c12ec,_0x5e1fa2);if(!_0x564a37||!he(_0x564a37,void 0x0,_0x23eba2))return!0x1;const _0x11160e=_0x23eba2['getSelectionAffectedTableCells'](_0x5e1fa2['document']['selection']);if(!_0x11160e['length'])return!0x1;const _0x1a98d2=_0x11160e[0x0]['findAncestor']('table'),_0x51241d=_0x23eba2['getRowIndexes'](_0x11160e),_0x54bb57=_0x23eba2['getColumnIndexes'](_0x11160e),_0x17e3ec={'startRow':_0x51241d['first'],'endRow':_0x51241d['last'],'startColumn':_0x54bb57['first'],'endColumn':_0x54bb57['last']};return 0x1==_0x11160e['length']&&(_0x17e3ec['endRow']+=_0x23eba2['getRows'](_0x564a37)-0x1,_0x17e3ec['endColumn']+=_0x23eba2['getColumns'](_0x564a37)-0x1),he(_0x1a98d2,_0x17e3ec,_0x23eba2);}(_0x2b0c6a,_0x23ca67,_0x3c37dd['model'],_0x1660ff,_0x5111e5)&&(_0x3a0a8b['stop'](),_0x45b10d={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x3c37dd['model']['change'](()=>{_0x3c37dd['model']['insertContent'](_0xc15cdf[0x0],_0xc15cdf[0x1],_0xc15cdf[0x2],{'forceDefaultExecution':!0x0});const _0x1503fd=_0x515477(),{rowInsertionRanges:_0x1399af,columnInsertionRanges:_0x3ef84d,insertionRanges:_0x4224f7,deletionRanges:_0x19333a,cells:_0x55f6e5}=_0x45b10d;_0x1399af['length']&&_0x35b14e['markMultiRangeInsertion'](_0x1399af,'tablePasteRow',{'tablePasteChainId':_0x1503fd}),_0x3ef84d['length']&&_0x35b14e['markMultiRangeInsertion'](_0x3ef84d,'tablePasteColumn',{'tablePasteChainId':_0x1503fd}),_0x4224f7['length']&&(_0x35b14e['markMultiRangeInsertion'](_0x4224f7,'tablePaste',{'tablePasteChainId':_0x1503fd,'skipNestingCheck':!0x0}),_0x4224f7['forEach'](_0x48920d=>_0x48920d['detach']?.())),_0x19333a['length']&&(_0x35b14e['markMultiRangeDeletion'](_0x19333a,'tablePaste',{'tablePasteChainId':_0x1503fd,'skipNestingCheck':!0x0}),_0x19333a['forEach'](_0x434700=>_0x434700['detach']?.()));const _0x538d49=_0x35b14e['markMultiRangeBlockFormat'](_0x55f6e5['map'](({element:_0x39a3c9})=>_0x39a3c9),{'formatGroupId':_0x515477()},[],'tablePasteCell',{'tablePasteChainId':_0x1503fd});if(_0x538d49){const _0x3ada74=_0x538d49['getMarkers'](),_0x2c9bb0=[];for(const {element:_0x3594f8,attributes:_0x12f60b}of _0x55f6e5){if(!_0x12f60b)continue;const _0x541402=_0x3c37dd['model']['createRangeOn'](_0x3594f8),_0x64d646=_0x3ada74['find'](_0x3bd0ad=>_0x3bd0ad['getRange']()['isEqual'](_0x541402));_0x64d646&&_0x2c9bb0['push']([_0x64d646['name'],_0x12f60b]);}_0x2c9bb0['length']&&_0x538d49['setAttribute']('markerAttributes',Object['fromEntries'](_0x2c9bb0));}_0x45b10d=null;}));},{'priority':_0x5a1e23['high']+0xa}),_0x3c37dd['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x30ab1e,_0x5f5343)=>{const [_0x4bd8fc,_0x6d62d2,,_0x577d24]=_0x5f5343;if(!_0x45b10d)return;_0x30ab1e['stop']();const _0x2917d0=_0x4bd8fc['cell'],_0x1627ef=_0x6d62d2,_0x3bdfbe=Pe(_0x2917d0),_0xd9ccde=Pe(_0x1627ef);_0x30ab1e['return']=_0x2917d0;let _0x1257c6=null,_0x565925=null;if(_0xd9ccde||_0x3bdfbe){if(_0x3bdfbe&&!_0xd9ccde){_0x577d24['remove'](_0x2917d0['getChild'](0x0));for(const _0x453510 of Array['from'](_0x1627ef['getChildren']()))_0x577d24['insert'](_0x453510,_0x2917d0,'end');const _0xe72d70=_0x45b10d['rowInsertionIndexes']['includes'](_0x4bd8fc['row']),_0x588913=_0x45b10d['columnInsertionIndexes']['includes'](_0x4bd8fc['column']);_0xe72d70||_0x588913||(_0x1257c6=_0x55bce1['fromRange'](_0x577d24['createRangeIn'](_0x2917d0)));}else _0xd9ccde&&!_0x3bdfbe&&(_0x565925=_0x577d24['createRangeIn'](_0x2917d0));}else{const _0x4a47ea=_0x577d24['createElement']('tableCellSuggestion'),_0x2e0fda=_0x577d24['createElement']('tableCellSuggestion');_0x577d24['wrap'](_0x577d24['createRangeIn'](_0x2917d0),_0x2e0fda),_0x577d24['insert'](_0x4a47ea,_0x2917d0,0x0);for(const _0x56b480 of Array['from'](_0x1627ef['getChildren']()))_0x577d24['insert'](_0x56b480,_0x4a47ea,'end');_0x1257c6=_0x55bce1['fromRange'](_0x577d24['createRangeOn'](_0x4a47ea)),_0x565925=_0x55bce1['fromRange'](_0x577d24['createRangeOn'](_0x2e0fda));}const _0x219eea=Array['from'](_0x1627ef['getAttributes']())['filter'](([_0x1e71d5])=>ge['includes'](_0x1e71d5));_0x45b10d['cells']['push']({'element':_0x2917d0,'attributes':_0x219eea['length']?Object['fromEntries'](_0x219eea):null}),_0x1257c6&&_0x45b10d['insertionRanges']['push'](_0x1257c6),_0x565925&&_0x45b10d['deletionRanges']['push'](_0x565925);},{'priority':'high'}),_0x1660ff['on']('insertColumns',(_0x49787f,_0x3a731a)=>{const [_0x1db587,_0x496a85={}]=_0x3a731a;if(!_0x45b10d)return;const _0x1eb55b=_0x496a85['at']||0x0,_0x329bfc=_0x496a85['columns']||0x1;_0x45b10d['columnInsertionIndexes']=new Array(_0x329bfc)['fill'](_0x1eb55b)['map']((_0x1ca3a4,_0x375e9b)=>_0x1ca3a4+_0x375e9b);for(const {cell:_0x18c5a0}of _0x1660ff['createTableWalker'](_0x1db587,{'startColumn':_0x1eb55b,'endColumn':_0x1eb55b+_0x329bfc-0x1}))_0x45b10d['columnInsertionRanges']['push'](_0x3c37dd['model']['createRangeOn'](_0x18c5a0));},{'priority':'low'}),_0x1660ff['on']('insertRows',(_0x32ebda,_0x37b36)=>{const [_0x44842f,_0x1f32d6={}]=_0x37b36;if(!_0x45b10d)return;const _0x2d4ce5=_0x1f32d6['at']||0x0,_0x164a82=_0x1f32d6['rows']||0x1;_0x45b10d['rowInsertionIndexes']=new Array(_0x164a82)['fill'](_0x2d4ce5)['map']((_0x19e9bf,_0x1ae2ee)=>_0x19e9bf+_0x1ae2ee);for(const {cell:_0x2d626b}of _0x1660ff['createTableWalker'](_0x44842f,{'startRow':_0x2d4ce5,'endRow':_0x2d4ce5+_0x164a82-0x1}))_0x45b10d['rowInsertionRanges']['push'](_0x3c37dd['model']['createRangeOn'](_0x2d626b));},{'priority':'low'}),_0x35b14e['descriptionFactory']['registerDescriptionCallback'](_0x52edd2=>{if(_0x52edd2['subType']&&_0x52edd2['subType']['startsWith']('tablePaste'))return _0x52edd2['previous']?{}:{'type':'insertion','content':o(_0x3c37dd['locale'],'*Replace\x20table\x20cells*')};});const _0x258f66=()=>!0x1;for(const _0x37e379 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x35b14e['_suggestionFactory']['registerCustomCallback']('insertion',_0x37e379,'join',_0x258f66),_0x35b14e['_suggestionFactory']['registerCustomCallback']('deletion',_0x37e379,'join',_0x258f66),_0x35b14e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x37e379,'join',_0x258f66);_0x35b14e['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x258f66),_0x35b14e['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x1675e9,_0x295e0b,_0x375b82)=>{const _0x25cb6f=_0x1675e9['map'](_0x957fda=>_0x957fda['getContainedElement']())['filter'](_0x22500e=>_0x22500e),_0x2866c1=new Map(_0x25cb6f['map'](_0x42dabc=>[_0x42dabc,null]));if(_0x45b10d){for(const {element:_0x49dc6f,attributes:_0x11dcab}of _0x45b10d['cells'])_0x11dcab&&_0x2866c1['set'](_0x49dc6f,_0x11dcab);}else{if(_0x375b82&&_0x375b82['markerAttributes'])for(const [_0xe36866,_0x1efb8e]of Object['entries'](_0x375b82['markerAttributes'])){const _0x375a17=_0x3c37dd['model']['markers']['get'](_0xe36866),_0x446955=_0x375a17?_0x375a17['getRange']()['getContainedElement']():null;_0x446955&&_0x2866c1['set'](_0x446955,_0x1efb8e);}}_0x3c37dd['model']['change'](_0x11f7ea=>{for(const [_0x4c8388,_0xb95a1a]of _0x2866c1)_0x11f7ea['setAttributes']({...Ce,..._0xb95a1a},_0x4c8388);});});const _0x2e5f3d=(_0x1fbdbf,_0x1fa8a9)=>{_0x35b14e['_suggestionFactory']['registerCustomCallback'](_0x1fbdbf,'tablePaste',_0x1fa8a9,(_0x2df729,_0x24cd9f,_0x504099)=>{_0x3c37dd['model']['change'](_0x5b1908=>{const _0x21ae42=[];for(const _0x3c7c3c of _0x2df729){const _0x2b5831=_0x3c7c3c['start']['nodeAfter'];_0x2b5831['is']('element','tableCellSuggestion')&&_0x21ae42['push'](_0x2b5831);}_0x35b14e['_suggestionFactory']['getSuggestionCallback'](_0x1fbdbf,null,_0x1fa8a9)(_0x2df729,_0x24cd9f,_0x504099);for(const _0x566b20 of _0x21ae42)'$graveyard'!=_0x566b20['root']['rootName']&&_0x5b1908['unwrap'](_0x566b20);});});};_0x2e5f3d('insertion','accept'),_0x2e5f3d('insertion','discard'),_0x2e5f3d('deletion','accept'),_0x2e5f3d('deletion','discard'),_0x35b14e['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x5a652a=>{const _0x466e5d=_0x5a652a['map'](_0x4bed3a=>_0x4bed3a['getContainedElement']()),_0x308672=_0x466e5d[0x0]['findAncestor']('table'),{minRow:_0x267f59,maxRow:_0x48020f}=_0x59099d['_getCoordsForCells'](_0x466e5d);_0x1660ff['removeRows'](_0x308672,{'at':_0x267f59,'rows':_0x48020f-_0x267f59+0x1});}),_0x35b14e['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x3a70ea=>{const _0x55b65f=_0x3a70ea['map'](_0x182dcc=>_0x182dcc['getContainedElement']()),_0x77f3fc=_0x55b65f[0x0]['findAncestor']('table'),{minColumn:_0x2ce60c,maxColumn:_0xa29dea}=_0x59099d['_getCoordsForCells'](_0x55b65f);_0x1660ff['removeColumns'](_0x77f3fc,{'at':_0x2ce60c,'columns':_0xa29dea-_0x2ce60c+0x1});});const _0x2ccccc=(_0x44f8ee,_0x27dcee)=>{if(!_0x27dcee['subType']||!_0x27dcee['subType']['startsWith']('tablePaste'))return;const _0x366802=_0x27dcee['attributes']['tablePasteChainId'],_0x315cea=_0x35b14e['getSuggestions']()['filter'](_0x3ec485=>_0x3ec485['isInContent']&&_0x3ec485['attributes']&&_0x3ec485['attributes']['tablePasteChainId']==_0x366802);_0x315cea['length']&&_0x27dcee['getAllAdjacentSuggestions']()['length']!=_0x315cea['length']&&_0x315cea['reduce']((_0x30c4b7,_0xbbac5f)=>(_0x30c4b7['next']=_0xbbac5f,_0xbbac5f['previous']=_0x30c4b7,_0xbbac5f));};function _0x4a0fd0(_0x1a7e13,_0x59bec0=!0x0){const {id:_0xedfe88}=_0x35b14e['_splitMarkerName'](_0x1a7e13['markerName']),_0x4aa5b9=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4920b6=_0x35b14e['activeMarkers']['includes'](_0x1a7e13['markerName']);return _0x4920b6&&_0x4aa5b9['push']('ck-suggestion-marker--active'),{'classes':_0x4aa5b9,'attributes':{'data-suggestion':_0xedfe88},'priority':_0x4920b6&&_0x59bec0?0xbc2:0xbb8};}_0x35b14e['on']('suggestionLoaded',_0x2ccccc,{'priority':'high'}),_0x35b14e['on']('suggestionUnloaded',_0x2ccccc,{'priority':'high'}),_0x3c37dd['model']['document']['registerPostFixer'](()=>{let _0x4045bc=!0x1;const _0x4ba60b=Array['from'](_0x3c37dd['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x372395,data:_0x51765f}of _0x4ba60b){const {group:_0x30d01f,type:_0x1c3043,id:_0x3fa442}=_0x35b14e['_splitMarkerName'](_0x372395);if('suggestion'!=_0x30d01f||'deletion'!=_0x1c3043||_0x51765f['oldRange'])continue;if(!_0x35b14e['hasSuggestion'](_0x3fa442))continue;const _0x22d34a=_0x35b14e['getSuggestion'](_0x3fa442)['getRanges'](),_0x3b8e14=_0x3c37dd['plugins']['get']('Users')['me'];for(const _0x549ce2 of _0x35b14e['getSuggestions']()){if(!_0x549ce2['isInContent']||_0x549ce2['author']!=_0x3b8e14)continue;if('formatBlock'!=_0x549ce2['type']||'tablePasteCell'!=_0x549ce2['subType'])continue;if(_0x549ce2['getRanges']()['every'](_0x2ed8ca=>_0x22d34a['some'](_0x149efd=>_0x149efd['containsRange'](_0x2ed8ca,!0x0)))){for(const _0x575247 of _0x549ce2['getAllAdjacentSuggestions']())_0x575247['isInContent']&&(_0x575247['discard'](),_0x4045bc=!0x0);}}}return _0x4045bc;}),_0x3c37dd['model']['document']['registerPostFixer'](_0x270323=>{const _0x16229f=_0x3c37dd['commands']['get']('redo');if(!_0x16229f||!_0x16229f['_createdBatches']['has'](_0x270323['batch']))return!0x1;let _0x53fcdc=!0x1;const _0x267e6a=_0x3c37dd['plugins']['get']('Users')['me'],_0x5daff1=_0x3c37dd['model']['document']['differ']['getChanges'](),_0x2c0917=Array['from'](_0x3c37dd['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x51572c,data:_0x58a084})=>{const {group:_0x4e44c7,subType:_0x36af9a,authorId:_0x3ad947}=_0x35b14e['_splitMarkerName'](_0x51572c);return'suggestion'==_0x4e44c7&&'tablePaste'==_0x36af9a&&_0x3ad947==_0x267e6a['id']&&!_0x58a084['oldRange'];});for(const _0x4acfaa of _0x5daff1){if('insert'!=_0x4acfaa['type']||'tableCellSuggestion'!=_0x4acfaa['name']||0x1!=_0x4acfaa['length'])continue;const _0xe12ba6=_0x270323['createRange'](_0x4acfaa['position'],_0x4acfaa['position']['getShiftedBy'](0x1));if(!_0x2c0917['find'](({data:_0x429d84})=>_0x429d84['newRange']['isEqual'](_0xe12ba6))){for(const {name:_0x2bde15,data:_0x9d0c81}of _0x2c0917)if(_0xe12ba6['containsRange'](_0x9d0c81['newRange'])){_0x270323['updateMarker'](_0x2bde15,{'range':_0xe12ba6}),_0x53fcdc=!0x0;break;}}}return _0x53fcdc;}),_0x3c37dd['model']['document']['registerPostFixer'](_0x2f0208=>{let _0x2e4829=!0x1;const _0x1238c3=_0x3c37dd['plugins']['get']('Users')['me'],_0x537eb9=_0x35b14e['getSuggestions']()['filter'](_0x29a194=>_0x29a194['isInContent']&&_0x29a194['author']==_0x1238c3),_0xe2ee8=new Set(),_0xe290d1=new Set();for(const _0x41a604 of _0x537eb9)if('tablePaste'==_0x41a604['subType'])for(const _0x41ab1b of _0x41a604['getMarkers']()){const _0xc17d5=_0x41ab1b['getRange']()['getContainedElement']();if(_0xc17d5){if(_0xc17d5['is']('element','tableCellSuggestion')&&Pe(_0xc17d5)){_0x41a604['removeMarker'](_0x41ab1b['name']),_0xe2ee8['add'](_0xc17d5),_0x2e4829=!0x0;const _0x4e0aa3=_0xc17d5['nextSibling'],_0x26541b=_0xc17d5['previousSibling'],_0x3d4f17=_0x4e0aa3&&_0x4e0aa3['is']('element','tableCellSuggestion'),_0x5454db=_0x26541b&&_0x26541b['is']('element','tableCellSuggestion');_0x3d4f17&&!_0xe2ee8['has'](_0x4e0aa3)&&_0xe290d1['add'](_0x4e0aa3),_0x5454db&&!_0xe2ee8['has'](_0x26541b)&&_0xe290d1['add'](_0x26541b);}else _0xc17d5['is']('element','paragraph')&&_0xc17d5['isEmpty']&&(_0x41a604['removeMarker'](_0x41ab1b['name']),_0x2e4829=!0x0);}}else{if('tablePasteCell'==_0x41a604['subType']){if(!_0x41a604['attributes']||!_0x41a604['attributes']['tablePasteChainId'])continue;const _0xe2ee0=_0x41a604['attributes']['markerAttributes'];if(_0xe2ee0&&Object['keys'](_0xe2ee0)['length'])continue;const _0x43f65f=_0x41a604['attributes']['tablePasteChainId'];let _0x386327=!0x0,_0x182e6f=!0x0;for(const _0x1d6578 of _0x537eb9)if(_0x1d6578['subType']&&_0x1d6578['subType']['startsWith']('tablePaste')){if(!_0x1d6578['attributes']['tablePasteChainId']){_0x182e6f=!0x1;break;}if(_0x1d6578['id']!=_0x41a604['id']&&_0x1d6578['attributes']['tablePasteChainId']==_0x43f65f){_0x386327=!0x1;break;}}_0x182e6f&&_0x386327&&(_0x41a604['removeMarkers'](),_0x2e4829=!0x0);}}for(const _0x144bf3 of _0xe2ee8)_0x2f0208['remove'](_0x144bf3);for(const _0x19458d of _0xe290d1)_0x2f0208['unwrap'](_0x19458d);return _0x2e4829;}),_0x3c37dd['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xbd8493,_0x9ede84)=>_0x4a0fd0(_0xbd8493),'converterPriority':'high'}),_0x3c37dd['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x19396f,_0xfb2eae)=>_0xfb2eae['options']['showSuggestionHighlights']?_0x4a0fd0(_0x19396f,!0x1):null,'converterPriority':'high'});const _0x2abe09=_0x3c37dd['editing']['view'];this['listenTo'](_0x2abe09['document'],'clipboardOutput',(_0x174940,_0x39ec21)=>{const _0x2daed4=[];for(const _0x4a187a of _0x2abe09['createRangeIn'](_0x39ec21['content'])['getItems']())_0x4a187a['is']('element','suggestion-td')&&_0x2daed4['push'](_0x4a187a);_0x2abe09['change'](_0x21f84a=>{for(const _0x4c50cf of _0x2daed4)_0x21f84a['move'](_0x21f84a['createRangeIn'](_0x4c50cf),_0x21f84a['createPositionBefore'](_0x4c50cf)),_0x21f84a['remove'](_0x4c50cf);});});}}function Pe(_0x2c06e5){if(_0x2c06e5['isEmpty'])return!0x0;const _0x5eca78=_0x2c06e5['getChild'](0x0);return _0x5eca78['is']('element','paragraph')&&_0x5eca78['isEmpty'];}function he(_0x2c9ee6,_0x2ea527={},_0x960020){for(const {isAnchor:_0x5df34d,cellHeight:_0x4f26e6,cellWidth:_0x3e36c8}of _0x960020['createTableWalker'](_0x2c9ee6,{'includeAllSlots':!0x0,..._0x2ea527}))if(!_0x5df34d||0x1!=_0x4f26e6||0x1!=_0x3e36c8)return!0x1;return!0x0;}class vt extends _0x2038e0{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x4672b1=this['editor']['plugins']['get']('TrackChangesEditing');_0x4672b1['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x4672b1['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x4672b1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4672b1['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x4672b1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x4672b1['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x2dcdea,_0x434b6c){const _0x325e4d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5d1c4c=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x7267cb=_0x434b6c['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x22589b=_0x5d1c4c['getColumnGroupElement'](_0x7267cb);let _0x5cc1ea=_0x22589b?_0x5d1c4c['getTableColumnsWidths'](_0x22589b):null,_0xc262a5=_0x7267cb['getAttribute']('tableWidth')||null;const _0x4f467d=_0x434b6c['tableWidth']||_0xc262a5,_0x5a3174=_0x434b6c['columnWidths']||_0x5cc1ea,_0x452d08=this['editor']['plugins']['get']('Users')['me'];for(const _0x52461f of _0x325e4d['getSuggestions']()){const _0x5aea54=_0x52461f['getContainedElement']();if('resizeTable'===_0x52461f['subType']&&_0x5aea54===_0x7267cb){_0x52461f['author']!==_0x452d08&&_0x52461f['discard']();const _0x2467f7=_0x52461f['data']['commandParams'];_0xc262a5=_0x2467f7[0x0]['tableWidth'],_0x5cc1ea=_0x2467f7[0x0]['columnWidths'];break;}}_0x2dcdea({'table':_0x7267cb,'tableWidth':_0x4f467d,'columnWidths':_0x5a3174}),_0x325e4d['markBlockFormat'](_0x7267cb,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0xc262a5,'columnWidths':_0x5cc1ea}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x5721c2){if('formatBlock'!=_0x5721c2['type']&&'formatInline'!=_0x5721c2['type'])return;const {data:_0x5c8c78}=_0x5721c2;if(_0x5c8c78&&'resizeTable'===_0x5c8c78['formatGroupId']){const _0x548985='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x548985)};}}}class Ct extends _0x2038e0{['afterInit'](){const _0x17eb07=this['editor'];_0x17eb07['plugins']['has']('Template')&&_0x17eb07['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x2038e0{['afterInit'](){const _0x49fd09=this['editor'];if(!_0x49fd09['commands']['get']('insertTableOfContents'))return;_0x49fd09['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0xd86bae=_0x49fd09['plugins']['get']('TrackChangesEditing'),_0x1489c7=_0x49fd09['locale'];_0xd86bae['descriptionFactory']['registerElementLabel']('tableOfContents',_0x363725=>o(_0x1489c7,'ELEMENT_TABLE_OF_CONTENTS',_0x363725));}}class Dt extends _0x2038e0{['afterInit'](){const _0x26725f=this['editor'];if(!_0x26725f['plugins']['has']('Title'))return;const _0x258bbb=_0x26725f['plugins']['get']('TrackChangesEditing');_0x258bbb['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x26725f['locale'],'ELEMENT_TITLE')),_0x26725f['model']['document']['registerPostFixer'](_0x5e64ed=>{let _0x5f1727=!0x1;const _0x35eb19=Array['from'](_0x26725f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x19f708,data:_0x1bd055}of _0x35eb19){const {group:_0x1bbfc0}=_0x258bbb['_splitMarkerName'](_0x19f708);if('suggestion'!==_0x1bbfc0||!_0x1bd055['newRange'])continue;const _0x210a25=_0x1bd055['newRange'],_0x4c887f=_0x210a25['end']['nodeBefore'];if(!_0x4c887f||!_0x4c887f['is']('element','title-content'))continue;if(!_0x210a25['start']['isTouching'](_0x210a25['end']))continue;const _0x5de8bf=_0x26725f['model']['schema']['getNearestSelectionRange'](_0x210a25['end'],'forward');if(_0x5de8bf&&_0x5de8bf['isCollapsed']){const _0x424606=_0x5e64ed['createRange'](_0x210a25['start'],_0x5de8bf['start']);_0x424606['isEqual'](_0x210a25)||(_0x5e64ed['updateMarker'](_0x19f708,{'range':_0x424606}),_0x5f1727=!0x0);}_0x5f1727||(_0x5e64ed['removeMarker'](_0x19f708),_0x5f1727=!0x0);}return _0x5f1727;});}}class Nt extends _0x2038e0{['afterInit'](){const _0x2c7e97=this['editor'],_0x31fd0d=_0x2c7e97['plugins']['get']('TrackChangesEditing');_0x2c7e97['plugins']['has']('UndoEditing')&&(_0x31fd0d['enableCommand']('undo'),_0x31fd0d['enableCommand']('redo'));}}class Mt extends _0x2038e0{static get['requires'](){return[jt];}['afterInit'](){const _0x56bfd5=this['editor'];if(!_0x56bfd5['plugins']['has']('TableCaptionEditing'))return;_0x56bfd5['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x2038e0{['tableProperties'];['tableCellProperties'];constructor(_0x49f50f){super(_0x49f50f),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';}['afterInit'](){const _0x5cdbdf=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x2b9a3e of this['tableProperties'])_0x5cdbdf['enableCommand'](_0x2b9a3e,(_0x382d8a,_0x2bf65b)=>{const _0x54337a=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x2b9a3e,[_0x54337a],this['tableProperties'],'tableProperties',_0x382d8a,_0x2bf65b);});_0x5cdbdf['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5cdbdf['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5cdbdf['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x901720,_0x578f2a)=>this['handleDiscardAction'](this['tableProperties'],_0x901720,_0x578f2a)),_0x5cdbdf['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x212622 of this['tableCellProperties'])_0x5cdbdf['enableCommand'](_0x212622,(_0x3dfb06,_0x1a0378)=>{const _0xb468d8=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x212622,_0xb468d8,this['tableCellProperties'],'tableCellProperties',_0x3dfb06,_0x1a0378);});_0x5cdbdf['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5cdbdf['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5cdbdf['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x5a9ec2,_0x49fe02)=>this['handleDiscardAction'](this['tableCellProperties'],_0x5a9ec2,_0x49fe02)),_0x5cdbdf['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x5cdbdf['descriptionFactory']['registerDescriptionCallback'](_0xa4258f=>this['handleSuggestionDescription'](_0xa4258f));}['_handlePropertyChange'](_0x37bd6b,_0x1ef3e5,_0x2b70da,_0x5e6fcf,_0xa2539f,_0x18bf0b){const _0x511167=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x18bf0b['batch'],()=>{for(const _0x1435bc of _0x1ef3e5){if(this['_getSuggestion'](_0x1435bc,_0x5e6fcf))_0xa2539f(_0x18bf0b);else{const _0x19b65b={};for(const _0x90b5a5 of _0x2b70da){const _0x4dc903=_0x1435bc['getAttribute'](_0x90b5a5);void 0x0!==_0x4dc903&&(_0x19b65b[_0x90b5a5]=_0x4dc903);}_0xa2539f(_0x18bf0b),_0x511167['markBlockFormat'](_0x1435bc,{'commandParams':[_0x19b65b]},[],_0x5e6fcf);}}});}['handleDiscardAction'](_0x1d8ba7,_0x2bdd12,_0x2a473c){const _0x396afb=_0x2bdd12[0x0]['start']['nodeAfter'],_0x1c5e47=_0x2a473c['commandParams'][0x0];this['editor']['model']['change'](_0x349adb=>{for(const _0x149aab of _0x1d8ba7)void 0x0!==_0x1c5e47[_0x149aab]?_0x349adb['setAttribute'](_0x149aab,_0x1c5e47[_0x149aab],_0x396afb):_0x349adb['removeAttribute'](_0x149aab,_0x396afb);});}['handleSuggestionDescription'](_0x50548e){if(_0x50548e['data'])switch(_0x50548e['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x5a1139,_0x3485e9){const _0x494e3c=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x42830f of _0x494e3c['getSuggestions']({'skipNotAttached':!0x0})){const _0x1cfcb6=_0x42830f['getContainedElement']();if(_0x42830f['subType']===_0x3485e9&&_0x1cfcb6===_0x5a1139)return _0x42830f;}return null;}}const m='$elementName';class p extends _0x2038e0{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x3f3120,_0x3358c6,E,V,U,O,F,G,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,_t,$t,Ct,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x50764f){function _0x4e6a4a(_0x1e68dc){return _0x1e68dc['map'](_0x33902c=>String['fromCharCode'](_0x33902c))['join']('');}super(_0x50764f),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x5a1fc4,_0x4f0be0,_0x4eabc0,_0x86354d)=>{this['_model']['change'](()=>{for(const _0x59e1fa of[..._0x86354d,..._0x4eabc0])this['_model']['markers']['has'](_0x59e1fa)&&_0x50764f['editing']['reconvertMarker'](_0x59e1fa);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new xt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x50764f['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x50764f['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x50764f['config']['get']('trackChanges.trackFormatChanges'),_0x50764f['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x50764f['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x50764f,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x4e6a4a([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x4e6a4a([0x34,0x30,0x34,0x38,0x31,0x32,0x34,0x30]);}['init'](){const _0x5aa816=this['editor'],_0x3a041c=(_0x478326,_0x126964)=>{if('attribute'!=_0x478326)return'ck-suggestion-marker-'+_0x478326;const _0x4e7223=_0x126964['split']('|')[0x0];return this['_isBlockAttribute'](_0x4e7223)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x5aa816['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x2b606a=>{const {id:_0x3169de,type:_0x2dbffd,subType:_0x37bbbe}=this['_splitMarkerName'](_0x2b606a['markerName']),_0x1db901=['ck-suggestion-marker',_0x3a041c(_0x2dbffd,_0x37bbbe)];let _0x3d74fd=0xbb8;return this['activeMarkers']['includes'](_0x2b606a['markerName'])&&(_0x1db901['push']('ck-suggestion-marker--active'),_0x3d74fd=0xbc2),'deletion'==_0x2dbffd&&(_0x3d74fd+=0x5),{'classes':_0x1db901,'attributes':{'data-suggestion':_0x3169de},'priority':_0x3d74fd};}}),_0x5aa816['conversion']['for']('dataDowncast')['add'](_0x4b97ea=>{_0x4b97ea['on']('addMarker:suggestion',(_0x4da614,_0x3c2475,_0x54ab18)=>{if(!_0x54ab18['options']['showSuggestionHighlights'])return;const _0x3e218b=_0x3c2475['item'];if(!_0x3e218b)return;const _0x4877ed=_0x54ab18['mapper']['toViewElement'](_0x3e218b);_0x5aa816['model']['schema']['isObject'](_0x3e218b)&&_0x4877ed&&!_0x4877ed['getCustomProperty']('widget')&&_0x4877ed['is']('containerElement')&&_0x4a559b(_0x4877ed,_0x54ab18['writer']);},{'priority':'high'});}),_0x5aa816['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5edffa,_0x36fc44)=>{if(!_0x36fc44['options']['showSuggestionHighlights'])return null;const {type:_0x136963,subType:_0x893002}=this['_splitMarkerName'](_0x5edffa['markerName']);return{'classes':['ck-suggestion-marker',_0x3a041c(_0x136963,_0x893002)],'priority':0xbb8};}});const _0x23cfda=({showActiveMarkers:_0x191974=!0x0,isAttributeSuggestion:_0x50fb9a=!0x1}={})=>(_0x2dbda8,_0x36da70,_0x32699b)=>{if(!_0x36da70['item'])return;const {id:_0x3d8846}=this['_splitMarkerName'](_0x36da70['markerName']);if(_0x50fb9a){const _0x546c1a=this['_suggestions']['get'](_0x3d8846),_0x2f4ded=this['_getAttributeKey'](_0x546c1a);if(!this['_isBlockAttribute'](_0x2f4ded))return;}if(_0x36da70['item']['is']('selection'))return void _0x32699b['consumable']['consume'](_0x36da70['item'],_0x2dbda8['name']);const _0x261464=_0x32699b['mapper']['toViewElement'](_0x36da70['item']);if(_0x36da70['item']['is']('element')&&_0x5aa816['model']['schema']['isBlock'](_0x36da70['item'])&&!_0x261464['getCustomProperty']('addHighlight')){_0x32699b['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x261464),_0x32699b['writer']['setAttribute']('data-suggestion',_0x3d8846,_0x261464),_0x32699b['mapper']['bindElementToMarker'](_0x261464,_0x36da70['markerName']),_0x191974&&(this['activeMarkers']['includes'](_0x36da70['markerName'])?_0x32699b['writer']['addClass']('ck-suggestion-marker--active',_0x261464):_0x32699b['writer']['removeClass']('ck-suggestion-marker--active',_0x261464));for(const _0x567a4f of _0x5aa816['model']['createRangeIn'](_0x36da70['item'])['getItems']())_0x32699b['consumable']['consume'](_0x567a4f,_0x2dbda8['name']);_0x32699b['consumable']['consume'](_0x36da70['item'],_0x2dbda8['name']);}};_0x5aa816['conversion']['for']('dataDowncast')['add'](_0x56946c=>{_0x56946c['on']('addMarker:suggestion:formatBlock',(_0x255728,_0xc74bc2,_0x25aa2f)=>{_0x25aa2f['options']['showSuggestionHighlights']&&_0x23cfda({'showActiveMarkers':!0x1})(_0x255728,_0xc74bc2,_0x25aa2f);},{'priority':'highest'});}),_0x5aa816['conversion']['for']('dataDowncast')['add'](_0x3a1f7e=>{_0x3a1f7e['on']('addMarker:suggestion:attribute',(_0x4f173c,_0x730097,_0x32e5b6)=>{_0x32e5b6['options']['showSuggestionHighlights']&&_0x23cfda({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x4f173c,_0x730097,_0x32e5b6);},{'priority':'highest'});}),_0x5aa816['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x530546,_0x14699c)=>_0x14699c['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x530546['substr'](0xb)}}),_0x5aa816['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1f1086,{writer:_0x5720ad})=>{let _0x2095bf='suggestion:'+_0x1f1086['getAttribute']('suggestion-type')+':'+_0x1f1086['getAttribute']('id');return _0x1f1086['getAttribute']('marker-count')&&(_0x2095bf+=':'+_0x1f1086['getAttribute']('marker-count')),_0x5720ad['createElement']('$marker',{'data-name':_0x2095bf});}}),_0x5aa816['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x5aa816['conversion']['for']('editingDowncast')['add'](_0x5e4bd8=>{_0x5e4bd8['on']('addMarker:suggestion:formatBlock',_0x23cfda(),{'priority':'high'});}),_0x5aa816['conversion']['for']('editingDowncast')['add'](_0x175c4a=>{_0x175c4a['on']('addMarker:suggestion:attribute',_0x23cfda({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x5aa816['conversion']['for']('editingDowncast')['add'](_0x5f4ec8=>{_0x5f4ec8['on']('removeMarker:suggestion:formatBlock',(_0x52b938,_0x3718a3,_0x5624fb)=>{const _0x42b869=_0x5624fb['mapper']['markerNameToElements'](_0x3718a3['markerName']);if(_0x42b869){for(const _0x1fc4dc of _0x42b869)_0x1fc4dc['getCustomProperty']('addHighlight')||(_0x5624fb['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1fc4dc),_0x5624fb['writer']['removeAttribute']('data-suggestion',_0x1fc4dc),_0x5624fb['mapper']['unbindElementFromMarkerName'](_0x1fc4dc,_0x3718a3['markerName']));}},{'priority':'high'});}),_0x5aa816['conversion']['for']('editingDowncast')['add'](_0x5019e3=>{_0x5019e3['on']('removeMarker:suggestion:attribute',(_0x34e02c,_0xcaf37e,_0xef8f4a)=>{const _0x41d2ab=_0xef8f4a['mapper']['markerNameToElements'](_0xcaf37e['markerName']);if(!_0x41d2ab)return;const {id:_0x29e91a}=this['_splitMarkerName'](_0xcaf37e['markerName']),_0x237ac4=this['_suggestions']['get'](_0x29e91a),_0x178e93=this['_getAttributeKey'](_0x237ac4);if(this['_isBlockAttribute'](_0x178e93)){for(const _0x265487 of _0x41d2ab)_0x265487['getCustomProperty']('addHighlight')||(_0xef8f4a['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x265487),_0xef8f4a['writer']['removeAttribute']('data-suggestion',_0x265487),_0xef8f4a['mapper']['unbindElementFromMarkerName'](_0x265487,_0xcaf37e['markerName']));}},{'priority':'high'});}),_0x5aa816['model']['document']['registerPostFixer'](_0x7feb1c=>{let _0x5b92b4=!0x1;const _0xc7cfc3=Array['from'](_0x5aa816['model']['document']['differ']['getChangedMarkers']()),_0xd36eb9=new Set();for(const {name:_0x518300,data:_0x1d54b6}of _0xc7cfc3){const {group:_0x7ffb01,type:_0x92c84f,subType:_0x3c9dc0,id:_0x177524}=this['_splitMarkerName'](_0x518300);if('suggestion'!==_0x7ffb01)continue;const _0x456bc5=this['_suggestions']['get'](_0x177524);if(null!=_0x1d54b6['newRange']){'formatInline'==_0x92c84f&&(_0x5b92b4=_0x5b92b4||Et(_0x1d54b6['newRange'],_0x518300,_0x7feb1c,_0x5aa816['model']['schema']));const _0x1fd8f6='attribute'==_0x92c84f&&this['_isBlockAttribute'](_0x3c9dc0['split']('|')[0x0]);if(_0x1d54b6['newRange']['isCollapsed']||'$graveyard'==_0x1d54b6['newRange']['root']['rootName']||'formatBlock'==_0x92c84f&&!Ut(_0x1d54b6['newRange'])||_0x1fd8f6&&!Ut(_0x1d54b6['newRange'])||'deletion'==_0x92c84f&&!(!Tt(_0x430431=_0x1d54b6['newRange'])&&!function(_0x4e42ce){return _0x4e42ce['start']['parent']==_0x4e42ce['end']['nodeBefore']&&_0x4e42ce['start']['isAtEnd'];}(_0x430431)))_0x7feb1c['removeMarker'](_0x518300),_0x5b92b4=!0x0;else{if(!_0x456bc5||!_0x456bc5['isInContent'])continue;_0xd36eb9['add'](_0x456bc5);}}}var _0x430431;return _0xd36eb9['size']>0x0&&(_0x5b92b4=!!this['_joinWithAdjacentSuggestions'](_0xd36eb9)||_0x5b92b4),_0x5b92b4;}),_0x5aa816['model']['document']['registerPostFixer'](_0x1dfca8=>{let _0x2401f6=!0x1;for(const _0x31968f of _0x5aa816['model']['document']['differ']['getChanges']())if('insert'==_0x31968f['type'])for(const _0xebb3d0 of this['_suggestions']['values']()){if(_0xebb3d0['isMultiRange']||!_0xebb3d0['isInContent'])continue;const _0x560f64='formatBlock'==_0xebb3d0['type'],_0x28e6f7=this['_getAttributeKey'](_0xebb3d0),_0x3e676e=_0x28e6f7&&this['_isBlockAttribute'](_0x28e6f7);if(!_0x560f64&&!_0x3e676e)continue;const _0x36e4bd=_0xebb3d0['getFirstRange']();if(_0x36e4bd['start']['parent']!=_0x36e4bd['end']['parent']&&!_0x36e4bd['end']['isAtEnd']){const _0x8ad63=_0x5aa816['model']['createPositionAt'](_0x36e4bd['start']['nodeAfter'],'end'),_0x38f114=_0x5aa816['model']['createRange'](_0x36e4bd['start'],_0x8ad63);_0x1dfca8['updateMarker'](_0xebb3d0['getFirstMarker'](),{'range':_0x38f114}),_0x2401f6=!0x0;}}return _0x2401f6;}),_0x5aa816['model']['document']['registerPostFixer'](_0x428f91=>this['_processAttributeChanges'](_0x428f91)),_0x5aa816['model']['document']['registerPostFixer'](_0x1b4b92=>!_0x1b4b92['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x1b4b92)),_0x5aa816['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x5aa816['model']['document']['on']('change:data',(_0x27db76,_0x4168dc)=>{if(!_0x4168dc['isLocal']||_0x4168dc['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1fc50c=_0x5aa816['model']['document']['differ']['getChanges']();if(0x0==_0x1fc50c['length'])return;const _0x3a0a99=[],_0x4cb793=_0x1fc50c['filter'](_0x3e3f92=>'attribute'==_0x3e3f92['type']),_0x172cf6=_0x1fc50c['filter'](_0x2bcd62=>'insert'==_0x2bcd62['type']&&'$text'!=_0x2bcd62['name']);for(const _0x399519 of _0x4cb793)this['_isRegisteredAttribute'](_0x399519['attributeKey'])&&_0x3a0a99['push']({'key':_0x399519['attributeKey'],'newValue':_0x399519['attributeNewValue'],'oldValue':_0x399519['attributeOldValue'],'range':Ot(_0x399519['range'],_0x5aa816['model'])});for(const _0x4895fc of _0x172cf6){if('rename'!=_0x4895fc['action']&&'refresh'!=_0x4895fc['action'])continue;const _0x3f38d8=Gt(_0x4895fc['position']['nodeAfter'],_0x5aa816['model']),_0x27dac2=_0x4895fc['before'];'rename'==_0x4895fc['action']&&_0x3a0a99['push']({'key':m,'newValue':_0x4895fc['name'],'oldValue':_0x27dac2['name'],'range':_0x3f38d8});for(const [_0x5d0d65,_0x2fad04]of _0x27dac2['attributes']){if(!this['_isRegisteredAttribute'](_0x5d0d65))continue;const _0x4a54ec=_0x4895fc['attributes']['get'](_0x5d0d65);_0x2fad04!==_0x4a54ec&&_0x3a0a99['push']({'key':_0x5d0d65,'newValue':_0x4a54ec,'oldValue':_0x2fad04,'range':_0x3f38d8});}for(const [_0x10693d,_0x34a42c]of _0x4895fc['attributes'])this['_isRegisteredAttribute'](_0x10693d)&&(_0x27dac2['attributes']['has'](_0x10693d)||_0x3a0a99['push']({'key':_0x10693d,'newValue':_0x34a42c,'oldValue':null,'range':_0x3f38d8}));}0x0!=_0x3a0a99['length']&&_0x5aa816['model']['enqueueChange'](_0x4168dc,_0x1df068=>{const _0x5bb87f=_0x515477();for(const {range:_0x5a2b1e,key:_0x53e706,oldValue:_0x29cb50,newValue:_0x384bdd}of _0x3a0a99)this['markAttributeChange'](_0x5a2b1e,_0x53e706,_0x29cb50,_0x384bdd,{'groupId':_0x5bb87f});this['_reduceExistingSuggestions'](_0x1df068,_0x3a0a99);});},{'priority':'lowest'}),_0x5aa816['model']['markers']['on']('update:suggestion',(_0x19e31b,_0x53a13c,_0x312c5b)=>{if(null==_0x312c5b){const {id:_0x4c4c39}=this['_splitMarkerName'](_0x53a13c['name']),_0x2796f5=this['_suggestions']['get'](_0x4c4c39);_0x2796f5&&_0x2796f5['addMarkerName'](_0x53a13c['name']);}}),_0x5aa816['model']['document']['on']('change:data',()=>{const _0x3bdfa7=Array['from'](_0x5aa816['model']['document']['differ']['getChangedMarkers']())['filter'](_0x51df0c=>'suggestion'===this['_splitMarkerName'](_0x51df0c['name'])['group']);if(0x0===_0x3bdfa7['length'])return;_0x3bdfa7['sort']((_0x2025d8,_0x3c08d9)=>{const _0x5a604f=_0x2025d8['data']['oldRange'],_0x344c40=_0x3c08d9['data']['oldRange'];return null===_0x5a604f&&null===_0x344c40?0x0:null===_0x5a604f&&null!==_0x344c40?-0x1:null!==_0x5a604f&&null===_0x344c40?0x1:_0x5a604f['start']['isBefore'](_0x344c40['start'])?-0x1:0x1;});const _0x1cbbdf=new Set(),_0x4bca36=new Set();for(const {name:_0x2ff225,data:_0x52bfc8}of _0x3bdfa7){const {id:_0x78e2b9}=this['_splitMarkerName'](_0x2ff225);if(null===_0x52bfc8['oldRange']){const _0x36c05b=this['_handleNewSuggestionMarker'](_0x2ff225);_0x4bca36['add'](_0x36c05b);}else{const _0x1e91ab=this['_suggestions']['get'](_0x78e2b9);null!==_0x52bfc8['newRange']||_0x1e91ab['isInContent']?(_0x1cbbdf['add'](_0x1e91ab['head']),_0x4bca36['add'](_0x1e91ab)):this['_removeSuggestion'](_0x1e91ab);}}_0x4bca36['size']>0x0&&this['_refreshSuggestionsChain'](_0x4bca36);for(const _0x1b3453 of _0x1cbbdf)this['fire']('suggestionChanged',_0x1b3453);}),_0x5aa816['model']['on']('applyOperation',(_0xae1bbd,_0x534548)=>{const _0x47f8b3=_0x534548[0x0];if(!this['_suggestions']['size'])return;if(!_0x47f8b3['isDocumentOperation'])return;if(_0x47f8b3['batch']['isUndo']||!_0x47f8b3['batch']['isLocal'])return;let _0x275b82,_0x2aa354;switch(_0x47f8b3['type']){case'insert':_0x275b82=_0x5aa816['model']['createPositionAt'](_0x47f8b3['position']),_0x2aa354=_0x275b82['getShiftedBy'](_0x47f8b3['howMany']);break;case'split':_0x275b82=_0x5aa816['model']['createPositionAt'](_0x47f8b3['splitPosition']),_0x2aa354=_0x5aa816['model']['createPositionAt'](_0x47f8b3['moveTargetPosition']);break;case'move':_0x275b82=_0x5aa816['model']['createPositionAt'](_0x47f8b3['targetPosition']),_0x2aa354=_0x275b82['getShiftedBy'](_0x47f8b3['howMany']);break;default:return;}const _0x20fad4=_0x5aa816['model']['createRange'](_0x275b82,_0x2aa354);_0x5aa816['model']['change'](()=>{for(const {suggestion:_0x30655c,meta:_0x67a0c2}of this['_findSuggestions'](_0x20fad4)){if(_0x30655c['isMultiRange'])continue;if('formatInline'==_0x30655c['type'])continue;const _0x1070b8=this['_getAttributeKey'](_0x30655c);if(_0x1070b8&&this['_isBlockAttribute'](_0x1070b8)&&'split'!=_0x47f8b3['type'])continue;const _0x4db201=_0x30655c['data']&&_0x30655c['data']['multipleBlocks'];('formatBlock'!=_0x30655c['type']||'split'==_0x47f8b3['type']&&!_0x4db201)&&(_0x67a0c2['containsRangeInObject']||'insertion'==_0x30655c['type']&&_0x67a0c2['isOwn']||_0x30655c['getFirstRange']()['containsRange'](_0x20fad4)&&this['_breakSuggestionMarker'](_0x30655c,_0x275b82,_0x2aa354));}});},{'priority':'lowest'}),_0x5aa816['model']['on']('deleteContent',(_0x1f231c,_0x402fda)=>{const _0x394c3a=_0x402fda[0x0],_0x3453d3=_0x402fda[0x1];if(_0x3453d3&&_0x3453d3['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x394c3a['isCollapsed'])return;const _0xeab34d=_0x5aa816['model']['schema'],{start:_0x51cc20,end:_0x4dcde8}=_0x394c3a['getFirstRange'](),_0x5f1372=_0x51cc20['nodeAfter']&&_0xeab34d['isLimit'](_0x51cc20['nodeAfter'])?null:_0xeab34d['getNearestSelectionRange'](_0x51cc20,'forward'),_0x5d8a1a=_0x4dcde8['nodeBefore']&&_0xeab34d['isLimit'](_0x4dcde8['nodeBefore'])?null:_0xeab34d['getNearestSelectionRange'](_0x4dcde8,'backward'),_0x428fc8=_0x5aa816['model']['createRange'](_0x5f1372?_0x5f1372['start']:_0x51cc20,_0x5d8a1a?_0x5d8a1a['end']:_0x4dcde8);_0x5aa816['model']['change'](_0xafb365=>{this['markDeletion'](_0x428fc8);const _0x1a659=_0x5aa816['model']['schema']['getNearestSelectionRange'](_0x428fc8['start']);_0x394c3a['is']('documentSelection')?_0xafb365['setSelection'](_0x1a659):_0x394c3a['setTo'](_0x1a659);}),_0x1f231c['stop']();},{'priority':_0x5a1e23['normal']+0xa}),_0x5aa816['model']['on']('insertContent',(_0x170cb8,_0x33d7e9)=>{const _0x5bdbc2=_0x33d7e9[_0x33d7e9['length']-0x1];_0x5bdbc2&&_0x5bdbc2['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x5aa816['model']['change'](()=>{let _0x455218=_0x5aa816['model']['insertContent'](_0x33d7e9[0x0],_0x33d7e9[0x1],_0x33d7e9[0x2],{'forceDefaultExecution':!0x0});if(!_0x455218)return;_0x170cb8['return']=_0x455218['clone']();const _0x1a2bb4=_0x455218['end']['nodeBefore'],_0xd61e19=_0x5aa816['model']['schema'];_0x1a2bb4&&_0xd61e19['isBlock'](_0x1a2bb4)&&!_0xd61e19['isObject'](_0x1a2bb4)&&(_0x455218=_0x5aa816['model']['createRange'](_0x455218['start'],_0x5aa816['model']['createPositionAt'](_0x1a2bb4,'end'))),this['markInsertion'](_0x455218);}),_0x170cb8['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x35ba14=new $(_0x5aa816,this['_suggestions']);_0x5aa816['commands']['add']('acceptSuggestion',_0x35ba14),this['enableCommand']('acceptSuggestion');const _0x2c9d2d=new B(_0x5aa816,this['_suggestions']);_0x5aa816['commands']['add']('discardSuggestion',_0x2c9d2d),this['enableCommand']('discardSuggestion'),_0x5aa816['commands']['add']('acceptAllSuggestions',new x(_0x5aa816,_0x35ba14,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x5aa816['commands']['add']('discardAllSuggestions',new x(_0x5aa816,_0x2c9d2d,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x5aa816['commands']['add']('acceptSelectedSuggestions',new R(_0x5aa816,_0x35ba14,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x5aa816['commands']['add']('discardSelectedSuggestions',new R(_0x5aa816,_0x2c9d2d,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2bcab1=_0x5aa816['plugins']['get']('CommentsRepository');this['listenTo'](_0x2bcab1,'addComment',(_0x5d1932,{threadId:_0x5325d6})=>{const _0x4e6c14=this['_suggestions']['get'](_0x5325d6);_0x4e6c14&&_0x4e6c14['commentThread']&&0x1===_0x4e6c14['commentThread']['length']&&this['_updateSuggestionData'](_0x5325d6,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2bcab1,'removeComment',(_0x10afec,{threadId:_0x531e55})=>{const _0x196327=this['_suggestions']['get'](_0x531e55);_0x196327&&_0x196327['commentThread']&&!_0x196327['commentThread']['length']&&this['_updateSuggestionData'](_0x531e55,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x368663){if(this['_adapter'])throw new _0x20823b('track-changes-adapter-already-set',this);this['_adapter']=_0x368663;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x52333c=!0x1,toJSON:_0x1648de=!0x1}={}){const _0x28b466=[];for(const _0x1bd56e of this['_suggestions']['values']())_0x52333c&&!_0x1bd56e['isInContent']||_0x28b466['push'](_0x1bd56e);return _0x1648de?_0x28b466['map'](_0x3e75a6=>_0x3e75a6['toJSON']()):_0x28b466;}['getSuggestion'](_0x102d57){const _0x5e407b=this['_suggestions']['get'](_0x102d57);if(!_0x5e407b)throw new _0x20823b('track-changes-suggestion-not-found',this);return _0x5e407b;}['hasSuggestion'](_0x576066){return this['_suggestions']['has'](_0x576066);}['addSuggestionData'](_0x39ff4c){const {authorId:_0x4e845d,id:_0x2d6331,attributes:_0x1c8261}=_0x39ff4c,[_0x31205f,_0x41f07f]=_0x39ff4c['type']['split'](':'),_0x2abab4=this['_suggestions']['get'](_0x2d6331)||this['_createSuggestion'](_0x31205f,_0x41f07f,_0x2d6331,_0x4e845d,_0x1c8261);if(this['_addThreadToSuggestion'](_0x2abab4),this['_checkSuggestionCorrectness'](_0x2abab4,_0x31205f,_0x41f07f||null,_0x4e845d),_0x2abab4['createdAt']=_0x39ff4c['createdAt'],_0x2abab4['_isDataLoaded']=!0x0,_0x1c8261&&_0x1c8261['@external']){const _0x5ac72f=_0x1c8261['@external'],_0x2f4f2f=this['_getExternalAuthor'](_0x5ac72f['authorName']);_0x2abab4['authoredAt']=_0x5ac72f['createdAt'],_0x2abab4['author']=_0x2f4f2f,_0x2abab4['isExternal']=!0x0;}else _0x2abab4['authoredAt']=_0x39ff4c['createdAt'];switch(_0x39ff4c['data']&&(_0x2abab4['data']=_0x39ff4c['data']),_0x39ff4c['attributes']&&(_0x2abab4['attributes']=_0x39ff4c['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2abab4['_saved']=!0x0),this['_suggestionState']['get'](_0x2abab4)){case'notReady':this['_suggestionState']['set'](_0x2abab4,'dataReady');break;case'markerReady':_0x2abab4['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2abab4])),this['_refreshSuggestionsChain'](new Set([_0x2abab4])),this['_suggestionState']['set'](_0x2abab4,'ready'),this['fire']('suggestionLoaded',_0x2abab4)):this['_suggestionState']['set'](_0x2abab4,'removed');}return _0x2abab4;}['acceptSuggestion'](_0x3308d9){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x462d79 of _0x3308d9['getAllAdjacentSuggestions']())_0x462d79['accept']();});});}['discardSuggestion'](_0xf5a280){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x30d747 of _0xf5a280['getAllAdjacentSuggestions']())_0x30d747['discard']();});});}['enableCommand'](_0x1b80d3,_0x26d9fb){const _0x17483b=this['editor']['commands']['get'](_0x1b80d3);if(!_0x17483b)throw new _0x20823b('track-changes-command-not-found',this,{'commandName':_0x1b80d3});if(this['_enabledCommands']['has'](_0x17483b))throw new _0x20823b('track-changes-enable-command-twice',this,{'commandName':_0x1b80d3});this['_enabledCommands']['add'](_0x17483b),_0x26d9fb&&_0x17483b['on']('execute',(_0x3326b5,_0x43ac31)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x43ac31['length']>0x0&&_0x43ac31[_0x43ac31['length']-0x1]&&_0x43ac31[_0x43ac31['length']-0x1]['forceDefaultExecution']?_0x43ac31['pop']():(_0x3326b5['return']=_0x26d9fb((..._0x3f0337)=>_0x17483b['execute'](..._0x3f0337,{'forceDefaultExecution':!0x0}),..._0x43ac31),_0x3326b5['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x2f16de){let _0x186783,_0xb4c195;const _0x4adaab=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x186783=_0x2f16de();}catch(_0x438da4){_0xb4c195=_0x438da4;}return _0x4adaab||(this['_isForcedDefaultExecutionBlock']=!0x1),_0xb4c195&&_0x20823b['rethrowUnexpectedError'](_0xb4c195,this),_0x186783;}['markInsertion'](_0x4559e3,_0x481288=null,_0x4bf745={}){if(_0x4559e3['isCollapsed'])return null;const _0x528394=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x31b32f,meta:_0x390b81}of this['_findSuggestions'](_0x4559e3,'insertion'))if(_0x390b81['isOwn']){if(!_0x390b81['isNextTo']){if(_0x390b81['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x31b32f,_0x4bf745))continue;return _0x31b32f;}if(Lt(_0x31b32f,_0x4bf745))return _0x31b32f;this['_breakSuggestionMarker'](_0x31b32f,_0x4559e3['start'],_0x4559e3['end']);break;}if(_0x481288==_0x31b32f['subType']&&Lt(_0x31b32f,_0x4bf745)){const _0x10b8e2=_0x31b32f['getFirstRange']();return _0x10b8e2['start']['isEqual'](_0x4559e3['end'])?this['_setSuggestionRange'](_0x31b32f,this['_model']['createRange'](_0x4559e3['start'],_0x10b8e2['end'])):this['_setSuggestionRange'](_0x31b32f,this['_model']['createRange'](_0x10b8e2['start'],_0x4559e3['end'])),_0x31b32f;}}const _0x448546=_0x515477(),_0x1df069=_0x528394['id'],_0x58a21a=_0x481288?'insertion:'+_0x481288:'insertion',_0x180ab0=this['_setSuggestionData']({'id':_0x448546,'type':_0x58a21a,'createdAt':new Date(),'authorId':_0x1df069,'attributes':_0x4bf745});return this['_addSuggestionMarker'](_0x58a21a,_0x448546,_0x1df069,_0x4559e3),_0x180ab0;}['markMultiRangeInsertion'](_0x383e41,_0x3fb7a1='multi',_0x4cc6e5={}){const _0x31963f=this['editor']['plugins']['get']('Users')['me'],_0x25a9a0=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3fb7a1,'join');for(const _0x5cbe21 of this['getSuggestions']())if(_0x5cbe21['author']['id']==_0x31963f['id']&&'insertion'==_0x5cbe21['type']&&_0x5cbe21['subType']==_0x3fb7a1&&Lt(_0x5cbe21,_0x4cc6e5)&&(_0x25a9a0(_0x5cbe21['getRanges'](),_0x383e41)||_0x25a9a0(_0x383e41,_0x5cbe21['getRanges']()))){for(const _0x581218 of _0x383e41)_0x5cbe21['addRange'](_0x581218);return _0x5cbe21;}for(const {suggestion:_0x40371c,meta:_0x32f0f9}of this['_findSuggestions'](_0x383e41,'insertion')){if(!_0x32f0f9['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x32f0f9['containsRangeInObject'])continue;if(!Lt(_0x40371c,_0x4cc6e5))continue;let _0x4b7af4=!0x0;for(const _0x1c0790 of _0x40371c['getRanges']())for(const _0x321267 of _0x383e41)if(!_0x1c0790['containsRange'](_0x321267)){_0x4b7af4=!0x1;break;}if(_0x4b7af4)return _0x40371c;}const _0x2d784e=_0x515477(),_0x5d195d=_0x31963f['id'],_0x597763='insertion:'+_0x3fb7a1,_0x362380=this['_setSuggestionData']({'id':_0x2d784e,'type':_0x597763,'createdAt':new Date(),'authorId':_0x5d195d,'attributes':_0x4cc6e5});for(const _0x5ba858 of _0x383e41)this['_addSuggestionMarker'](_0x597763,_0x2d784e,_0x5d195d,_0x5ba858,u['getMultiRangeId']());return _0x362380;}['markInlineFormat'](_0x13ab40,_0x22e265,_0x1d2076=null,_0x397f84={}){if(_0x1d2076=_0x1d2076||Vt(_0x22e265),_0x13ab40['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x20bd20=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1d2076,'accept');return this['forceDefaultExecution'](()=>_0x20bd20([_0x13ab40],_0x22e265,_0x397f84)),null;}const _0x4ecd4a=this['editor']['plugins']['get']('Users')['me'],_0x34e9a7=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x1920b4,meta:_0x5d9ba5}of this['_findSuggestions'](_0x13ab40,'insertion'))_0x5d9ba5['isOwn']&&!_0x5d9ba5['isInsideObject']&&_0x34e9a7['push'](..._0x1920b4['getRanges']());}const _0x4f8d41=function(_0x517dfa,_0x3d9dac){const _0xaf8fd5=[];for(const _0x419272 of _0x3d9dac){const _0x4e1620=_0x517dfa['getIntersection'](_0x419272);_0x4e1620&&_0xaf8fd5['push'](_0x4e1620);}return _0xaf8fd5;}(_0x13ab40,_0x34e9a7),_0x944a61=function(_0x2f0080,_0x51a918){const _0x19de22=[_0x2f0080];for(const _0x352462 of _0x51a918){let _0x3012f1=0x0;for(;_0x3012f1<_0x19de22['length'];){const _0x24838e=_0x19de22[_0x3012f1]['getDifference'](_0x352462);_0x19de22['splice'](_0x3012f1,0x1,..._0x24838e),_0x3012f1+=_0x24838e['length'];}}return _0x19de22;}(_0x13ab40,_0x34e9a7);_0x4f8d41['length']&&this['_model']['change'](()=>{for(const _0x28de34 of _0x4f8d41){const _0x1b6e1b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1d2076,'accept');this['forceDefaultExecution'](()=>_0x1b6e1b([_0x28de34],_0x22e265,_0x397f84));}});for(const _0x56281b of _0x944a61){let _0x3340d2=null,_0x17118a=_0x56281b['start'],_0x6ab341=_0x56281b['end'];for(const {suggestion:_0x5acc73,meta:_0x28faa3}of this['_findSuggestions'](_0x56281b,'formatInline')){if(!_0x28faa3['isOwn'])continue;if(_0x5acc73['subType']!=_0x1d2076)continue;if(!Lt(_0x5acc73,_0x397f84))continue;const _0x17a6d1=_0x5acc73['getFirstRange']();if(_0x17a6d1['containsRange'](_0x56281b,!0x0))return null;_0x17118a=_0x17118a['isBefore'](_0x17a6d1['start'])?_0x17118a:_0x17a6d1['start'],_0x6ab341=_0x6ab341['isAfter'](_0x17a6d1['end'])?_0x6ab341:_0x17a6d1['end'],_0x3340d2?_0x17a6d1['start']['isBefore'](_0x3340d2['getFirstRange']()['start'])?(_0x3340d2['removeMarkers'](),_0x3340d2=_0x5acc73):_0x5acc73['removeMarkers']():_0x3340d2=_0x5acc73;}const _0x35b11b=this['_model']['createRange'](_0x17118a,_0x6ab341);if(_0x3340d2)this['_setSuggestionRange'](_0x3340d2,_0x35b11b);else{const _0x58dd99=_0x515477(),_0x49d6ee=_0x4ecd4a['id'];this['_setSuggestionData']({'id':_0x58dd99,'type':'formatInline:'+_0x1d2076,'data':_0x22e265,'createdAt':new Date(),'authorId':_0x49d6ee,'attributes':_0x397f84}),this['_addSuggestionMarker']('formatInline:'+_0x1d2076,_0x58dd99,_0x49d6ee,_0x35b11b);}}return null;}['markBlockFormat'](_0x52cbf1,_0x2a2d7c,_0x588f80=[],_0x1c0944=null,_0x38abbc={}){_0x2a2d7c['formatGroupId']||(_0x2a2d7c['formatGroupId']=_0x2a2d7c['commandName']),_0x2a2d7c['multipleBlocks']=_0x52cbf1['is']('range'),_0x1c0944=_0x1c0944||Vt(_0x2a2d7c);const _0x4af7b1=_0x588f80['map'](_0xd9cf5c=>Gt(_0xd9cf5c,this['_model'])),_0xe3e61=_0x52cbf1['is']('range')?_0x52cbf1:Gt(_0x52cbf1,this['_model']);if('never'===this['_trackFormatChanges']){const _0x6d8d35=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1c0944,'accept');return this['forceDefaultExecution'](()=>_0x6d8d35([_0xe3e61],_0x2a2d7c,_0x38abbc)),null;}_0x4af7b1['push'](_0xe3e61);let _0x23c7b1=!0x0;for(const _0x5c761a of _0x4af7b1)if(!this['_rangeIsInLocalUserInsertion'](_0x5c761a)){_0x23c7b1=!0x1;break;}if(_0x23c7b1&&'always'!==this['_trackFormatChanges']){const _0x454d1e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1c0944,'accept');return this['forceDefaultExecution'](()=>_0x454d1e([_0xe3e61],_0x2a2d7c,_0x38abbc)),null;}let _0x50a6e2=null,_0x554788=_0xe3e61['start'],_0x1697e5=_0xe3e61['end'];for(const {suggestion:_0x59a3dc,meta:_0x5e2fdc}of this['_findSuggestions'](_0xe3e61,'formatBlock')){if(!_0x5e2fdc['isOwn'])continue;if(_0x5e2fdc['isNextTo']||_0x5e2fdc['containsRangeInObject']||_0x5e2fdc['isInsideObject'])continue;if(_0x59a3dc['data']['formatGroupId']!=_0x2a2d7c['formatGroupId'])continue;if(!Lt(_0x59a3dc,_0x38abbc))continue;const _0x7a09fd=_0x59a3dc['getFirstRange']();if(_0x59a3dc['subType']==_0x1c0944){if(_0x7a09fd['containsRange'](_0xe3e61,!0x0))return null;_0x554788=_0x554788['isBefore'](_0x7a09fd['start'])?_0x554788:_0x7a09fd['start'],_0x1697e5=_0x1697e5['isAfter'](_0x7a09fd['end'])?_0x1697e5:_0x7a09fd['end'],_0x50a6e2?_0x7a09fd['start']['isBefore'](_0x50a6e2['getFirstRange']()['start'])?(_0x50a6e2['removeMarkers'](),_0x50a6e2=_0x59a3dc):_0x59a3dc['removeMarkers']():_0x50a6e2=_0x59a3dc;}else{const _0x2fb7ab=_0xe3e61['getIntersection'](_0x7a09fd);this['_cutOutSuggestionMarker'](_0x59a3dc,_0x2fb7ab);}}const _0x274bcf=this['editor']['plugins']['get']('Users')['me'],_0x369efb=_0x515477(),_0x4d9d52=_0x274bcf['id'];if(_0x50a6e2)return this['_setSuggestionRange'](_0x50a6e2,this['_model']['createRange'](_0x554788,_0x1697e5)),_0x50a6e2;{const _0x3b21d3=this['_setSuggestionData']({'id':_0x369efb,'type':'formatBlock:'+_0x1c0944,'data':_0x2a2d7c,'createdAt':new Date(),'authorId':_0x4d9d52,'attributes':_0x38abbc});return this['_addSuggestionMarker']('formatBlock:'+_0x1c0944,_0x369efb,_0x4d9d52,this['_model']['createRange'](_0x554788,_0x1697e5)),_0x3b21d3;}}['markMultiRangeBlockFormat'](_0x340e7b,_0x4e4985,_0x2ccdbb=[],_0x41e701=null,_0x38ada2={}){_0x4e4985['formatGroupId']||(_0x4e4985['formatGroupId']=_0x4e4985['commandName']);const _0x490439=_0x340e7b[0x0];_0x4e4985['multipleBlocks']=_0x490439['is']('range'),_0x41e701=_0x41e701||Vt(_0x4e4985);const _0x19ed8f=_0x2ccdbb['map'](_0x4bf531=>Gt(_0x4bf531,this['_model'])),_0x3b7804=_0x490439['is']('range')?_0x340e7b:_0x340e7b['map'](_0x211331=>Gt(_0x211331,this['_model']));if('never'===this['_trackFormatChanges']){const _0x302a5c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x41e701,'accept');return this['forceDefaultExecution'](()=>_0x302a5c(_0x3b7804,_0x4e4985,_0x38ada2)),null;}_0x19ed8f['push'](..._0x3b7804);let _0x2bd207=!0x0;for(const _0x30ab5e of _0x19ed8f)if(!this['_rangeIsInLocalUserInsertion'](_0x30ab5e)){_0x2bd207=!0x1;break;}if(_0x2bd207&&'always'!==this['_trackFormatChanges']){const _0x1dd982=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x41e701,'accept');return this['forceDefaultExecution'](()=>_0x1dd982(_0x3b7804,_0x4e4985,_0x38ada2)),null;}const _0x43f5ff=this['editor']['plugins']['get']('Users')['me'];for(const _0x1b3e4d of this['getSuggestions']()){if(_0x1b3e4d['author']['id']!=_0x43f5ff['id'])continue;if('formatBlock'!=_0x1b3e4d['type']||_0x1b3e4d['data']['formatGroupId']!=_0x4e4985['formatGroupId'])continue;if(!Lt(_0x1b3e4d,_0x38ada2))continue;const _0x11c6db=_0x1b3e4d['subType']==_0x41e701;for(let _0x38fd64=0x0;_0x38fd64<_0x3b7804['length'];_0x38fd64++){const _0x39ed94=_0x3b7804[_0x38fd64];for(const _0x40b26a of _0x1b3e4d['getMarkers']()){const _0x2433a5=_0x40b26a['getRange']();if(_0x39ed94['isEqual'](_0x2433a5)){_0x11c6db?(_0x3b7804['splice'](_0x38fd64,0x1),_0x38fd64--):_0x1b3e4d['removeMarker'](_0x40b26a['name']);break;}}}}if(0x0==_0x3b7804['length'])return null;const _0x283f4b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x41e701,'join');for(const _0x26a94f of this['getSuggestions']())if(_0x26a94f['author']['id']==_0x43f5ff['id']&&'formatBlock'==_0x26a94f['type']&&_0x26a94f['data']['formatGroupId']==_0x4e4985['formatGroupId']&&_0x26a94f['subType']==_0x41e701&&Lt(_0x26a94f,_0x38ada2)&&(_0x283f4b(_0x26a94f['getRanges'](),_0x3b7804)||_0x283f4b(_0x3b7804,_0x26a94f['getRanges']()))){for(const _0x4b0288 of _0x3b7804)_0x26a94f['addRange'](_0x4b0288);return _0x26a94f;}const _0x40fd31=_0x515477(),_0x53915e=_0x43f5ff['id'],_0x18e936='formatBlock:'+_0x41e701,_0xce0e65=this['_setSuggestionData']({'id':_0x40fd31,'type':_0x18e936,'data':_0x4e4985,'createdAt':new Date(),'authorId':_0x53915e,'attributes':_0x38ada2});for(const _0x86e26b of _0x3b7804)this['_addSuggestionMarker'](_0x18e936,_0x40fd31,_0x53915e,_0x86e26b,u['getMultiRangeId']());return _0xce0e65;}['markDeletion'](_0xbf302f,_0x39c4d8=null,_0xe16fae={}){if(_0xbf302f['isCollapsed'])return null;const _0x4a8e22=this['editor']['plugins']['get']('Users')['me'],_0x590f35=new _0x55bce1(_0xbf302f['start'],_0xbf302f['end']);for(const {suggestion:_0x38670e,meta:_0x444293}of this['_findSuggestions'](_0x590f35,'insertion'))if(_0x444293['isOwn']&&!_0x444293['isNextTo']){if(_0x38670e['isMultiRange']){const _0x5d8268=_0x38670e['getRanges']()['filter'](_0x52f4a8=>'$graveyard'!=_0x52f4a8['root']['rootName']);_0x5d8268['every'](_0x529292=>_0x590f35['containsRange'](_0x529292,!0x0))&&_0x38670e['discard']();if(_0x5d8268['some'](_0x4f37c2=>_0x4f37c2['containsRange'](_0x590f35,!0x0))){const _0x14160d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x39c4d8,'accept');return this['forceDefaultExecution'](()=>_0x14160d([_0x590f35],null,_0xe16fae)),null;}}else{const _0x392738=_0x590f35['getIntersection'](_0x38670e['getFirstRange']());null!==_0x392738&&_0x38670e['_onDiscard']([_0x392738],null,_0xe16fae);}}if(_0x590f35['detach'](),_0x590f35['isCollapsed']||'$graveyard'==_0x590f35['root']['rootName'])return null;let _0x38e258=null,_0x571eba=_0x590f35['start'],_0x4ef9d3=_0x590f35['end'];const _0x3f9666=this['_findSuggestions'](_0x590f35,'deletion');for(const {suggestion:_0x3418a3,meta:_0x1fa528}of _0x3f9666){const _0x535098=this['_model']['createRange'](_0x571eba,_0x4ef9d3);if(_0x1fa528['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1fa528['containsRangeInObject']&&!_0x1fa528['isInsideObject'])){if(_0x3418a3['isMultiRange']){if(!Lt(_0x3418a3,_0xe16fae))continue;let _0x3e6669=!0x0;for(const _0x2371b1 of _0x3418a3['getRanges']()){if(_0x2371b1['containsRange'](_0x535098,!0x0))return _0x3418a3;_0x535098['containsRange'](_0x2371b1)||(_0x3e6669=!0x1);}_0x3e6669&&_0x3418a3['discard']();}else{const _0x551247=_0x3418a3['getFirstRange']();if(_0x551247['containsRange'](_0x535098,!0x0))return _0x3418a3;if(!Lt(_0x3418a3,_0xe16fae)){_0x535098['containsRange'](_0x551247)?_0x3418a3['removeMarkers']():_0x551247['containsPosition'](_0x571eba)?_0x571eba=_0x551247['end']:_0x551247['containsPosition'](_0x4ef9d3)&&(_0x4ef9d3=_0x551247['start']);continue;}_0x571eba=_0x571eba['isBefore'](_0x551247['start'])?_0x571eba:_0x551247['start'],_0x4ef9d3=_0x4ef9d3['isAfter'](_0x551247['end'])?_0x4ef9d3:_0x551247['end'],_0xe16fae=Object['assign']({},_0x3418a3['attributes']),_0x38e258?_0x551247['start']['isBefore'](_0x38e258['getFirstRange']()['start'])?(_0x38e258['removeMarkers'](),_0x38e258=_0x3418a3):_0x3418a3['removeMarkers']():_0x38e258=_0x3418a3;}}}if(_0x38e258)return this['_setSuggestionRange'](_0x38e258,this['_model']['createRange'](_0x571eba,_0x4ef9d3)),_0x38e258;{const _0x35ffb5=_0x515477(),_0x1c92f7=this['_model']['createRange'](_0x571eba,_0x4ef9d3),_0x3e01a6=_0x4a8e22['id'],_0x4d107e=_0x39c4d8?'deletion:'+_0x39c4d8:'deletion',_0x4b1372=this['_setSuggestionData']({'id':_0x35ffb5,'type':_0x4d107e,'createdAt':new Date(),'authorId':_0x3e01a6,'attributes':_0xe16fae});return this['_addSuggestionMarker'](_0x4d107e,_0x35ffb5,_0x3e01a6,_0x1c92f7),_0x4b1372;}}['markMultiRangeDeletion'](_0x1546eb,_0x3dce5a='multi',_0x140af4={}){const _0x35a2b7=this['editor']['plugins']['get']('Users')['me'],_0x742a7d=_0x1546eb['map'](_0x4b8134=>new _0x55bce1(_0x4b8134['start'],_0x4b8134['end'])),_0x24c32f=new Set();for(const {suggestion:_0x4b405f,meta:_0x11d94a}of this['_findSuggestions'](_0x742a7d,'insertion'))_0x11d94a['isOwn']&&!_0x11d94a['isNextTo']&&_0x24c32f['add'](_0x4b405f);for(const _0x212748 of _0x24c32f)if(_0x212748['isMultiRange']){const _0x52b432=_0x212748['getRanges']();(!_0x212748['attributes']||!_0x212748['attributes']['skipNestingCheck'])&&(_0x52b432['every'](_0x5bc095=>_0x742a7d['some'](_0x3a0707=>_0x3a0707['containsRange'](_0x5bc095,!0x0)))&&_0x212748['discard']());if(_0x742a7d['every'](_0xe77a0e=>_0x52b432['some'](_0x25d398=>_0x25d398['containsRange'](_0xe77a0e,!0x0)))){const _0x1d5913=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3dce5a,'accept');return this['forceDefaultExecution'](()=>_0x1d5913(_0x1546eb,null,_0x140af4)),null;}}else{const _0x239ece=_0x212748['getFirstRange']();_0x742a7d['some'](_0x1d496b=>_0x1d496b['containsRange'](_0x239ece,!0x0))&&_0x212748['discard']();if(_0x742a7d['every'](_0x1f13be=>_0x239ece['containsRange'](_0x1f13be,!0x0))){const _0x1b083d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3dce5a,'accept');return this['forceDefaultExecution'](()=>_0x1b083d(_0x742a7d,null,_0x140af4)),null;}}const _0x1caf40=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3dce5a,'join');let _0x43f901=null;for(const _0x651775 of this['getSuggestions']())if(_0x651775['author']['id']==_0x35a2b7['id']&&_0x651775['isInContent']&&'deletion'==_0x651775['type']&&_0x651775['subType']==_0x3dce5a&&Lt(_0x651775,_0x140af4)&&(_0x1caf40(_0x651775['getRanges'](),_0x742a7d)||_0x1caf40(_0x742a7d,_0x651775['getRanges']()))){if(_0x43f901){if(_0x651775['commentThread']&&_0x651775['commentThread']['length'])continue;for(const _0x51bfd2 of _0x651775['getRanges']())_0x43f901['isIntersectingWithRange'](_0x51bfd2)||_0x43f901['addRange'](_0x51bfd2);_0x651775['removeMarkers']();}else{_0x43f901=_0x651775;for(const _0x33a9c8 of _0x742a7d)_0x651775['isIntersectingWithRange'](_0x33a9c8)||_0x651775['addRange'](_0x33a9c8);}}if(_0x43f901)return _0x43f901;_0x24c32f['clear']();for(const {suggestion:_0x11fdaa,meta:_0x103768}of this['_findSuggestions'](_0x742a7d,'deletion'))_0x103768['isOwn']&&(this['_mergeNestedSuggestions']||!_0x103768['containsRangeInObject']&&!_0x103768['isInsideObject'])&&Lt(_0x11fdaa,_0x140af4)&&_0x24c32f['add'](_0x11fdaa);for(const _0x4982c6 of _0x24c32f){const _0x4a4b1d=_0x4982c6['getRanges']();if(!_0x140af4||!_0x140af4['skipNestingCheck']){if(_0x742a7d['every'](_0x10ac7f=>_0x4a4b1d['some'](_0x4c2b36=>_0x4c2b36['containsRange'](_0x10ac7f,!0x0))))return _0x4982c6;}(!_0x4982c6['attributes']||!_0x4982c6['attributes']['skipNestingCheck'])&&(_0x4a4b1d['every'](_0x158bcf=>_0x742a7d['some'](_0x267520=>_0x267520['containsRange'](_0x158bcf,!0x0)))&&_0x4982c6['discard']());}const _0x52232f=_0x515477(),_0x2929dc=_0x35a2b7['id'],_0x48a928='deletion:'+_0x3dce5a,_0x10d966=this['_setSuggestionData']({'id':_0x52232f,'type':_0x48a928,'createdAt':new Date(),'authorId':_0x2929dc,'attributes':_0x140af4});for(const _0x3f3971 of _0x742a7d)_0x3f3971['detach'](),_0x3f3971['isCollapsed']||'$graveyard'==_0x3f3971['root']['rootName']||this['_addSuggestionMarker'](_0x48a928,_0x52232f,_0x2929dc,_0x3f3971,u['getMultiRangeId']());return _0x10d966;}['markAttributeChange'](_0x364345,_0xc0d61e,_0x451d75,_0x40c343,_0x497c3a){if(_0x364345['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x5cecda=this['editor']['plugins']['get']('Users')['me']['id'],_0xe8c099=Array['from'](this['_suggestions']['values']())['filter'](_0x279156=>'attribute'==_0x279156['type']&&_0x279156['data']['key']==_0xc0d61e&&_0x279156['isIntersectingWithRange'](_0x364345));if('default'===this['_trackFormatChanges']){const _0x4f4e36=this['_findSuggestions'](_0x364345,'insertion')['filter'](({meta:_0x4c3c0c})=>_0x4c3c0c['isOwn']&&!_0x4c3c0c['isInsideObject']&&!_0x4c3c0c['isNextTo'])['map'](({suggestion:_0x337342})=>_0x337342);_0xe8c099['unshift'](..._0x4f4e36);}const _0x23ea8a=new Map([[_0x364345,_0x451d75]]);for(const _0x1e8ee8 of _0xe8c099){const _0x204265='attribute'==_0x1e8ee8['type']?_0x1e8ee8['data']['oldValue']:void 0x0,_0x289f1c=_0x1e8ee8['getFirstRange'](),_0x54162c=Array['from'](_0x23ea8a['keys']())['find'](_0x2ac907=>_0x2ac907['isIntersecting'](_0x289f1c));if(!_0x54162c)continue;const _0x5affce=_0x54162c['getDifference'](_0x289f1c);this['_isBlockAttribute'](_0xc0d61e)&&'insertion'==_0x1e8ee8['type']&&0x0!=_0x5affce['length']||(_0x23ea8a['delete'](_0x54162c),_0x5affce['forEach'](_0x5ab3a0=>{_0x23ea8a['set'](_0x5ab3a0,_0x451d75);}),'insertion'!=_0x1e8ee8['type']&&_0x204265!=_0x40c343&&_0x23ea8a['set'](_0x54162c['getIntersection'](_0x289f1c),_0x204265));}const _0x33060b=[];for(const [_0x38cdd2,_0x3456f0]of _0x23ea8a){const _0x343d33=_0x515477(),_0x543377={'key':_0xc0d61e,'oldValue':_0x3456f0,'newValue':_0x40c343};_0xc0d61e['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':_0xc0d61e});const _0x453e27=('attribute:'+(_0xc0d61e+'|'+Vt({'newValue':_0x40c343})))['substring'](0x0,0x3c),_0x3b97a7=this['_setSuggestionData']({'id':_0x343d33,'type':_0x453e27,'data':_0x543377,'createdAt':new Date(),'authorId':_0x5cecda,'attributes':_0x497c3a});_0x33060b['push'](_0x3b97a7),this['_addSuggestionMarker'](_0x453e27,_0x343d33,_0x5cecda,_0x38cdd2);}return _0x33060b;}['enableDefaultAttributesIntegration'](_0x4330bd){this['enableCommand'](_0x4330bd,(_0x4048d4,..._0x2a52d8)=>{this['_recordAttributeChanges'](()=>{_0x4048d4(..._0x2a52d8);});});}['registerBlockAttribute'](_0x4ae5f9){this['_blockAttributeKeys']['add'](_0x4ae5f9);}['registerInlineAttribute'](_0x602919){this['_inlineAttributeKeys']['add'](_0x602919);}['_getAttributeKey'](_0x227005){return'attribute'==_0x227005['type']?_0x227005['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x3b9544,_0x3e8b88){const _0x45aa82=_0x3b9544['getFirstMarker']();this['_model']['change'](_0x424e0a=>{_0x424e0a['updateMarker'](_0x45aa82,{'range':_0x3e8b88});});}['_addThreadToSuggestion'](_0x12f92b){const _0x20402a=_0x12f92b['id'],_0x184deb=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x20402a)||this['_commentsRepository']['addCommentThread']({'channelId':_0x184deb,'threadId':_0x20402a,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x5e05e9=this['_commentsRepository']['getCommentThread'](_0x20402a);_0x5e05e9['unbind']('isRemovable'),_0x5e05e9['isRemovable']=!0x1,_0x12f92b['commentThread']=_0x5e05e9;}['_checkSuggestionCorrectness'](_0x384ccd,_0x577237,_0x1f21f6,_0x31b5b3){if(_0x384ccd['type']!=_0x577237||_0x384ccd['subType']!=_0x1f21f6||_0x384ccd['creator']['id']!=_0x31b5b3)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x20823b('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x25d800,_0x4c62d0){const _0x1ed00f=_0x25d800['getFirstRange']();if(_0x4c62d0['isEqual'](_0x1ed00f))_0x25d800['removeMarkers']();else{if(_0x1ed00f['containsRange'](_0x4c62d0)){const _0x18e4df=this['_model']['createPositionAt'](_0x4c62d0['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x25d800,this['_model']['createRange'](_0x1ed00f['start'],_0x18e4df));const _0x208d30=_0x515477(),_0x119b8=_0x25d800['creator']['id'],_0x4fc2f3=_0x25d800['type']+':'+_0x25d800['subType'];this['_setSuggestionData']({'id':_0x208d30,'type':_0x4fc2f3,'createdAt':new Date(),'authorId':_0x119b8,'data':_0x25d800['data'],'attributes':_0x25d800['attributes']});const _0x59012f=this['_model']['createPositionAt'](_0x4c62d0['end']['parent'],'after'),_0xc8f947=this['_model']['createRange'](_0x59012f,_0x1ed00f['end']);this['_addSuggestionMarker'](_0x4fc2f3,_0x208d30,_0x119b8,_0xc8f947);}else{if(_0x1ed00f['containsPosition'](_0x4c62d0['start'])){const _0x42ca72=this['_model']['createPositionAt'](_0x4c62d0['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x25d800,this['_model']['createRange'](_0x1ed00f['start'],_0x42ca72));}else{const _0x325f43=this['_model']['createPositionAt'](_0x4c62d0['end']['parent'],'after');this['_setSuggestionRange'](_0x25d800,this['_model']['createRange'](_0x325f43,_0x1ed00f['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x2b63de){for(const {suggestion:_0x3af8af,meta:_0x41dcdf}of this['_findSuggestions'](_0x2b63de,'insertion')){if(!_0x41dcdf['isOwn'])continue;const _0x31ddf9=_0x3af8af['getRanges']();for(const _0x1e1dce of _0x31ddf9)if(!_0x2b63de['getDifference'](_0x1e1dce)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x2da7e9){const _0x46fb97=this['editor']['plugins']['get']('Users')['getUser'](_0x2da7e9);if(!_0x46fb97)throw new _0x20823b('track-changes-user-not-found',this);return _0x46fb97;}['_getExternalAuthor'](_0x43f2fb){const _0x4695c0=this['editor']['plugins']['get']('Users'),_0x2ce15d=_0x1b8e80('external:'+_0x43f2fb),_0x11d419=_0x4695c0['getUser'](_0x2ce15d);return _0x11d419||_0x4695c0['addUser']({'id':_0x2ce15d,'name':_0x43f2fb});}['_createSuggestion'](_0x233dbc,_0x5c99fb,_0x39c92d,_0x159baf,_0x164476){const _0x4fb053=this['_getAuthorFromId'](_0x159baf),_0x4552e0=this['_suggestionFactory']['buildSuggestion'](_0x233dbc,_0x5c99fb,_0x39c92d,_0x4fb053,_0x164476,_0x5b86b0=>{this['_updateSuggestionData'](_0x39c92d,{'attributes':_0x5b86b0});const _0x104b7b=this['getSuggestion'](_0x39c92d);this['_joinWithAdjacentSuggestions'](new Set([_0x104b7b])),this['_refreshSuggestionsChain'](new Set([_0x104b7b]));});return this['listenTo'](_0x4552e0,'accept',()=>{this['_updateSuggestionData'](_0x39c92d,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4552e0,'discard',()=>{this['_updateSuggestionData'](_0x39c92d,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x39c92d,_0x4552e0),this['_suggestionState']['set'](_0x4552e0,'notReady'),_0x4552e0;}['_splitMarkerName'](_0x519eac){const _0x474b4a=_0x519eac['split'](':');return{'group':_0x474b4a[0x0],'type':_0x474b4a[0x1],'subType':_0x474b4a['length']>=0x5?_0x474b4a[0x2]:null,'id':_0x474b4a['length']<0x5?_0x474b4a[0x2]:_0x474b4a[0x3],'authorId':_0x474b4a['length']<0x5?_0x474b4a[0x3]:_0x474b4a[0x4],'markerCount':0x6==_0x474b4a['length']?_0x474b4a[0x5]:null};}['_breakSuggestionMarker'](_0x39fb64,_0x158dce,_0x5b7393){const _0x5e66b8=_0x39fb64['getFirstRange'](),_0x18d25b=_0x5e66b8['start'],_0x44aeb1=_0x5e66b8['end'];this['_setSuggestionRange'](_0x39fb64,this['_model']['createRange'](_0x18d25b,_0x158dce));const _0x3384c3=_0x515477(),_0x419794=_0x39fb64['creator']['id'],_0x582bb0=_0x39fb64['type']+(_0x39fb64['subType']?':'+_0x39fb64['subType']:'');this['_setSuggestionData']({'id':_0x3384c3,'type':_0x582bb0,'createdAt':new Date(),'authorId':_0x419794,'originalSuggestionId':_0x39fb64['id'],'attributes':_0x39fb64['attributes'],'data':_0x39fb64['data']});const _0x3e66bf=this['_getAttributeKey'](_0x39fb64);('formatBlock'==_0x39fb64['type']||_0x3e66bf&&this['_isBlockAttribute'](_0x3e66bf))&&(_0x5b7393=this['_model']['createPositionBefore'](_0x5b7393['parent'])),this['_addSuggestionMarker'](_0x582bb0,_0x3384c3,_0x419794,this['_model']['createRange'](_0x5b7393,_0x44aeb1));}['_findSuggestions'](_0x4eeb1a,_0x14f3a4=null){const _0x204cf9=[],_0x4bc08d=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x4eeb1a)||(_0x4eeb1a=[_0x4eeb1a]);for(const _0x3c2f78 of this['getSuggestions']()){if(!_0x3c2f78['isInContent'])continue;if(_0x14f3a4&&_0x3c2f78['type']!=_0x14f3a4)continue;let _0x10a295=!0x1;for(const _0x121dd9 of _0x3c2f78['getRanges']()){for(const _0x11b515 of _0x4eeb1a){const _0x123b3d=_0x11b515['start']['isEqual'](_0x121dd9['end'])||_0x11b515['end']['isEqual'](_0x121dd9['start']);if(_0x123b3d||_0x11b515['getIntersection'](_0x121dd9)){const _0x54b85d=_0x11b515['containsRange'](_0x121dd9)&&Rt(this['_model']['schema'],_0x121dd9['start'],_0x11b515),_0x5981e8=_0x121dd9['containsRange'](_0x11b515)&&Rt(this['_model']['schema'],_0x11b515['start'],_0x121dd9);_0x204cf9['push']({'suggestion':_0x3c2f78,'meta':{'isOwn':_0x4bc08d==_0x3c2f78['author'],'isNextTo':_0x123b3d,'isInsideObject':_0x54b85d,'containsRangeInObject':_0x5981e8}}),_0x10a295=!0x0;break;}}if(_0x10a295)break;}}return _0x204cf9;}['_addSuggestionMarker'](_0xae9f9e,_0x3156dd,_0x1d664c,_0x2a022d,_0x12ed36){this['_model']['change'](_0x1371ad=>{let _0x55ed42='suggestion:'+_0xae9f9e+':'+_0x3156dd+':'+_0x1d664c;_0x12ed36&&(_0x55ed42=_0x55ed42+':'+_0x12ed36),_0x1371ad['addMarker'](_0x55ed42,{'range':_0x2a022d,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x172a9c){const _0x397ad9=_0x172a9c['previous'],_0x4ceac2=_0x172a9c['next'];_0x172a9c['previous']=null,_0x172a9c['next']=null,null!=_0x397ad9&&_0x397ad9['next']==_0x172a9c&&(_0x397ad9['next']=_0x4ceac2),null!=_0x4ceac2&&_0x4ceac2['previous']==_0x172a9c&&(_0x4ceac2['previous']=_0x397ad9),'ready'==this['_suggestionState']['get'](_0x172a9c)&&(this['_suggestionState']['set'](_0x172a9c,'removed'),this['fire']('suggestionUnloaded',_0x172a9c,_0x397ad9,_0x4ceac2));}['_setSuggestionData'](_0x1c4fd2){const _0xe4eab3=_0x1c4fd2['id'],_0x4929da=this['addSuggestionData'](_0x1c4fd2);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x4c43b2=this['editor']['plugins']['get']('PendingActions'),_0xb4a427=_0x4929da['hasComments'],_0x17cb73=_0x4929da['subType']?_0x4929da['type']+':'+_0x4929da['subType']:_0x4929da['type'],_0x5a5458=this['editor']['locale'],_0x15f862=_0x4c43b2['add'](o(_0x5a5458,'PENDING_ACTION_SUGGESTION')),_0x29e2af={'id':_0xe4eab3,'type':_0x17cb73,'hasComments':_0xb4a427,'data':_0x1c4fd2['data']||null,'originalSuggestionId':_0x1c4fd2['originalSuggestionId']||null,'attributes':_0x4929da['attributes']};this['_adapter']['addSuggestion'](_0x29e2af)['then'](_0x38b2f5=>{_0x4929da['_saved']=!0x0,_0x4c43b2['remove'](_0x15f862),_0x38b2f5&&_0x38b2f5['createdAt']&&(this['_suggestions']['get'](_0xe4eab3)['createdAt']=_0x38b2f5['createdAt']);})['catch'](_0x105f61=>{throw _0x4da14c('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4929da['discard']();}),_0x4929da['stopListening'](),this['_suggestions']['delete'](_0x4929da['id']),this['_suggestionState']['delete'](_0x4929da),_0x105f61;});}return _0x4929da;}['_isBlockAttribute'](_0xed3456){return this['_blockAttributeKeys']['has'](_0xed3456);}['_updateSuggestionData'](_0x47931a,_0x562b47){const _0x4659b8=this['editor']['plugins']['get']('PendingActions'),_0x354063=this['getSuggestion'](_0x47931a);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x354063['_saved']){const _0x3c6780=_0x4659b8['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x47931a,_0x562b47)['then'](()=>{_0x4659b8['remove'](_0x3c6780);});}else _0x354063['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x47931a,_0x562b47);});}}['_getSuggestionData'](_0x37d8f9){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x20823b('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x37d8f9);}['_handleNewSuggestionMarker'](_0x1410f1){const {id:_0x89fc2a,type:_0x15732e,subType:_0x291d0f,authorId:_0x137cf5}=this['_splitMarkerName'](_0x1410f1),_0xaf3961=this['_suggestions']['get'](_0x89fc2a)||this['_createSuggestion'](_0x15732e,_0x291d0f,_0x89fc2a,_0x137cf5,{});switch(this['_checkSuggestionCorrectness'](_0xaf3961,_0x15732e,_0x291d0f,_0x137cf5),this['_suggestionState']['get'](_0xaf3961)){case'notReady':this['_getSuggestionData'](_0x89fc2a)['then'](_0x4dee99=>{let _0x24c65d=Promise['resolve']();_0x4dee99['hasComments']&&(_0x24c65d=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x89fc2a})),_0x24c65d['then'](()=>{this['addSuggestionData'](_0x4dee99)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0xaf3961,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x89fc2a,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0xaf3961,'ready'),this['fire']('suggestionLoaded',_0xaf3961);break;case'ready':this['fire']('suggestionChanged',_0xaf3961);}return _0xaf3961['addMarkerName'](_0x1410f1),_0xaf3961;}['_refreshSuggestionsChain'](_0xd6ec67){const _0x257e89=Array['from'](_0xd6ec67),_0x188e60=_0x257e89['filter'](_0x3c7afd=>'attribute'==_0x3c7afd['type']);this['_refreshAttributeSuggestionsChain'](_0x188e60);const _0x4b32e0=_0x257e89['filter'](_0x3ba485=>!_0x3ba485['isMultiRange']&&'attribute'!=_0x3ba485['type']),_0x4f48d2=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2475d1=>!_0x2475d1['isMultiRange']&&'attribute'!=_0x2475d1['type']),_0x27d88b=_0x4f48d2['filter'](_0x8bc293=>!_0xd6ec67['has'](_0x8bc293)),_0x1fb1b0=new Map(_0x4f48d2['map'](_0x1947f6=>[_0x1947f6,this['_suggestionFactory']['getSuggestionCallback'](_0x1947f6['type'],_0x1947f6['subType'],'chain')])),_0x49afa7=new Map(_0x4f48d2['map'](_0x28e15b=>[_0x28e15b,_0x28e15b['getFirstRange']()])),_0x13dcbc=new Set(),_0x560a6c=new Set();for(let _0x5c7818=0x0;_0x5c7818<_0x4b32e0['length'];_0x5c7818++)_0x2bf353(_0x4b32e0[_0x5c7818],_0x4b32e0,_0x5c7818+0x1);for(let _0x529417=0x0;_0x529417<_0x4b32e0['length'];_0x529417++)_0x2bf353(_0x4b32e0[_0x529417],_0x27d88b,0x0);const _0x59c73e=new Set();for(let _0x229ab8=0x0;_0x229ab8<_0x4b32e0['length'];_0x229ab8++){const _0x2aed24=_0x4b32e0[_0x229ab8];!_0x560a6c['has'](_0x2aed24)&&_0x2aed24['previous']&&(_0x59c73e['add'](_0x2aed24['previous']),_0x2aed24['previous']['next']===_0x2aed24&&(_0x2aed24['previous']['next']=null),_0x2aed24['previous']=null),!_0x13dcbc['has'](_0x2aed24)&&_0x2aed24['next']&&(_0x59c73e['add'](_0x2aed24['next']),_0x2aed24['next']['previous']===_0x2aed24&&(_0x2aed24['next']['previous']=null),_0x2aed24['next']=null);}function _0x2bf353(_0x24984c,_0x179f7b,_0xaf26d4){for(let _0x4ed7b5=_0xaf26d4;_0x4ed7b5<_0x179f7b['length'];_0x4ed7b5++){const _0x4aa58e=_0x1a7c27(_0x24984c,_0x179f7b[_0x4ed7b5]);_0x4aa58e&&(_0x4aa58e[0x0]['next']=_0x4aa58e[0x1],_0x4aa58e[0x1]['previous']=_0x4aa58e[0x0],_0x13dcbc['add'](_0x4aa58e[0x0]),_0x560a6c['add'](_0x4aa58e[0x1]));}}function _0x1a7c27(_0x20570d,_0x4eb734){if(_0x20570d['author']['id']!==_0x4eb734['author']['id'])return null;const _0x26c257=_0x1fb1b0['get'](_0x20570d)(_0x20570d,_0x4eb734,_0x49afa7['get'](_0x20570d),_0x49afa7['get'](_0x4eb734));if(!_0x26c257)return null;return _0x1fb1b0['get'](_0x4eb734)(_0x20570d,_0x4eb734,_0x49afa7['get'](_0x20570d),_0x49afa7['get'](_0x4eb734))?_0x26c257[0x1]['commentThread']&&_0x26c257[0x1]['commentThread']['length']?null:_0x26c257:null;}_0x59c73e['size']&&this['_refreshSuggestionsChain'](_0x59c73e);}['_refreshAttributeSuggestionsChain'](_0x209ac6){if(0x0==_0x209ac6['length'])return;const _0x47a557=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xd16c5=>'attribute'==_0xd16c5['type']&&_0xd16c5['_isDataLoaded']),_0x561c74=[],_0x113bd6=new Map();for(const _0x45bc1d of _0x47a557){const _0x47278c=_0x1b8e80(_0x45bc1d['attributes']);_0x113bd6['has'](_0x47278c)||(_0x113bd6['set'](_0x47278c,_0x561c74['length']),_0x561c74['push']([]));const _0x541f85=_0x113bd6['get'](_0x47278c);_0x561c74[_0x541f85]['push'](_0x45bc1d);}!(function(){_0x561c74['sort']((_0x509d02,_0x45859c)=>{const _0x49bbf1=_0x509d02[0x0]['createdAt'],_0x2e4006=_0x45859c[0x0]['createdAt'];return _0x49bbf1==_0x2e4006?_0x509d02[0x0]['attributes']['groupId']<_0x45859c[0x0]['attributes']['groupId']?-0x1:0x1:_0x49bbf1<_0x2e4006?-0x1:0x1;});for(const _0x5ecd43 of _0x561c74)_0x5ecd43['sort']((_0x1e4db6,_0x3d7190)=>_0x1e4db6['id']<_0x3d7190['id']?-0x1:0x1);}());for(let _0x2f53ab=0x0;_0x2f53ab<_0x561c74['length'];_0x2f53ab++){if(0x0==_0x561c74[_0x2f53ab]['length'])continue;const _0x1691f5=[];for(let _0x1aff4c=_0x2f53ab+0x1;_0x1aff4c<_0x561c74['length'];_0x1aff4c++)0x0!=_0x561c74[_0x1aff4c]['length']&&_0x492900(_0x561c74[_0x2f53ab],_0x561c74[_0x1aff4c])&&_0x1691f5['push'](_0x1aff4c);for(const _0xb1bd2c of _0x1691f5)_0x561c74[_0x2f53ab]=_0x561c74[_0x2f53ab]['concat'](_0x561c74[_0xb1bd2c]),_0x561c74[_0xb1bd2c]=[];}for(const _0x1caabe of _0x561c74)for(let _0x1e31e1=0x0;_0x1e31e1<_0x1caabe['length'];_0x1e31e1++)_0x1caabe[_0x1e31e1]['next']=_0x1caabe[_0x1e31e1+0x1]||null;for(const _0x2ab300 of _0x561c74)for(let _0x38896b=0x0;_0x38896b<_0x2ab300['length'];_0x38896b++)_0x2ab300[_0x38896b]['previous']=_0x2ab300[_0x38896b-0x1]||null;function _0x492900(_0x3b9870,_0x5ce62c){if(_0x3b9870[0x0]['attributes']['groupId']!==_0x5ce62c[0x0]['attributes']['groupId']&&_0x3b9870[0x0]['author']!==_0x5ce62c[0x0]['author'])return!0x1;if(!function(_0x278db8,_0x4c751a){if(!_0x278db8['hasComments']&&!_0x4c751a['hasComments'])return!0x0;if(_0x278db8['hasComments']&&_0x4c751a['hasComments'])return!0x1;if(_0x278db8['hasComments']&&_0x4c751a['createdAt']<_0x278db8['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x4c751a['hasComments']&&_0x278db8['createdAt']<_0x4c751a['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x3b9870[0x0],_0x5ce62c[0x0]))return!0x1;const _0x28371e=Bt(_0x3b9870[0x0]['attributes'],'groupId'),_0x1f7a5f=Bt(_0x5ce62c[0x0]['attributes'],'groupId');if(!_0x33f02c(_0x28371e,_0x1f7a5f))return!0x1;return!!_0x3b9870['every'](_0x4a4f1b=>_0x5ce62c['some'](_0x3e0936=>_0x4a4f1b['getFirstRange']()['isEqual'](_0x3e0936['getFirstRange']())))&&_0x5ce62c['every'](_0x4bd29b=>_0x3b9870['some'](_0x43b11c=>_0x4bd29b['getFirstRange']()['isEqual'](_0x43b11c['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x73848c){const _0x1d2ebd=Array['from'](_0x73848c),_0x3b4f1a=this['getSuggestions']({'skipNotAttached':!0x0}),_0x58024b=_0x3b4f1a['filter'](_0x108374=>!_0x73848c['has'](_0x108374)),_0x13e6bf=new Map(_0x1d2ebd['map'](_0x344f62=>[_0x344f62,this['_suggestionFactory']['getSuggestionCallback'](_0x344f62['type'],_0x344f62['subType'],'join')])),_0x57f611=new Map(_0x3b4f1a['map'](_0x2f7a58=>[_0x2f7a58,_0x2f7a58['getRanges']()]));for(let _0xb037b4=0x0;_0xb037b4<_0x1d2ebd['length'];_0xb037b4++){if(_0x24880b(this,_0x1d2ebd[_0xb037b4],_0x1d2ebd,_0xb037b4+0x1))return!0x0;}for(let _0x3deb8c=0x0;_0x3deb8c<_0x1d2ebd['length'];_0x3deb8c++){if(_0x24880b(this,_0x1d2ebd[_0x3deb8c],_0x58024b,0x0))return!0x0;}return!0x1;function _0x24880b(_0x1d8bf5,_0x2fc4a1,_0x345d69,_0x2d59a3){for(let _0x3369da=_0x2d59a3;_0x3369da<_0x345d69['length'];_0x3369da++){const _0x13b404=_0x345d69[_0x3369da];if(_0x13b404['type']!==_0x2fc4a1['type']||_0x13b404['author']['id']!==_0x2fc4a1['author']['id']||_0x13b404['subType']!==_0x2fc4a1['subType'])continue;if(!Pt(_0x2fc4a1,_0x13b404,['groupId']))continue;if('attribute'==_0x2fc4a1['type']&&_0x2fc4a1['data']['oldValue']!=_0x13b404['data']['oldValue'])continue;if('attribute'==_0x2fc4a1['type']&&_0x1d8bf5['_isBlockAttribute'](_0x2fc4a1['data']['key']))continue;if('formatBlock'==_0x2fc4a1['type']){const _0x53d589=_0x1d8bf5['editor']['model'],_0x5bc557=_0x2fc4a1['getContainedElement']();if(_0x5bc557&&(_0x53d589['schema']['isObject'](_0x5bc557)||_0x53d589['schema']['isLimit'](_0x5bc557)))continue;}const _0x503e87=_0x13e6bf['get'](_0x2fc4a1),_0x284f80=_0x57f611['get'](_0x2fc4a1),_0xf6a2ee=_0x57f611['get'](_0x13b404),_0x5821d0=_0x2fc4a1['commentThread']&&_0x2fc4a1['commentThread']['length'],_0x1dd824=_0x13b404['commentThread']&&_0x13b404['commentThread']['length'];if(!_0x5821d0&&_0x503e87(_0xf6a2ee,_0x284f80))return _0x1d8bf5['_joinSuggestions'](_0x13b404,_0x2fc4a1),_0x57f611['delete'](_0x2fc4a1),!0x0;if(!_0x1dd824&&_0x503e87(_0x284f80,_0xf6a2ee))return _0x1d8bf5['_joinSuggestions'](_0x2fc4a1,_0x13b404),_0x57f611['delete'](_0x13b404),!0x0;}return!0x1;}}['_joinSuggestions'](_0x1f8b96,_0x1f3351){if(_0x1f8b96['isMultiRange']){for(const _0x1c48cf of _0x1f3351['getRanges']())_0x1f8b96['addRange'](_0x1c48cf);}else{const _0x510e85=_0x1f3351['getFirstRange']()['end'];this['_setSuggestionRange'](_0x1f8b96,this['_model']['createRange'](_0x1f8b96['getFirstRange']()['start'],_0x510e85));}_0x1f3351['removeMarkers']();}['_getMarkerAnnouncementText'](_0x58ad90,_0x5b40a1){const _0x202cee=_0x58ad90['startsWith']('format')||_0x58ad90['startsWith']('attribute')?'FORMATTING':_0x58ad90['toUpperCase']();return o(this['editor']['locale'],_0x5b40a1+'_'+_0x202cee+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x59a66c=this['editor'];if(!_0x59a66c['ui'])return;const {ariaLiveAnnouncer:_0xa04d0f}=_0x59a66c['ui'];_0x95be56(this['_model'],({left:_0x52f283,entered:_0x4a049b})=>{for(const _0x4c4d48 of _0x52f283){const {group:_0x1d0ce7,type:_0x289899}=this['_splitMarkerName'](_0x4c4d48['name']);if('suggestion'===_0x1d0ce7){_0xa04d0f['announce'](this['_getMarkerAnnouncementText'](_0x289899,'LEAVE'));break;}}for(const _0x19e8e8 of _0x4a049b){const {group:_0x1942eb,type:_0x37d270}=this['_splitMarkerName'](_0x19e8e8['name']);if('suggestion'===_0x1942eb){_0xa04d0f['announce'](this['_getMarkerAnnouncementText'](_0x37d270,'ENTER'));break;}}});}['_processAttributeChanges'](_0xc5c4be){if(this['_recordAttributeSuggestions'])return!0x1;const _0x22b38f=this['editor'],_0x2682dc=_0x22b38f['model']['document']['differ']['getChanges']();if(0x0==_0x2682dc['length'])return!0x1;const _0x40f06b=[],_0x4b5717=_0x2682dc['filter'](_0xf24590=>'attribute'==_0xf24590['type']),_0x4158cb=_0x2682dc['filter'](_0x4e1e14=>'insert'==_0x4e1e14['type']&&'$text'!=_0x4e1e14['name']),_0x42593d=_0x2682dc['filter'](_0x58be8f=>'remove'==_0x58be8f['type']&&'$text'!=_0x58be8f['name']);for(const _0x2ea655 of _0x4b5717)_0x40f06b['push']({'key':_0x2ea655['attributeKey'],'newValue':_0x2ea655['attributeNewValue'],'oldValue':_0x2ea655['attributeOldValue'],'range':Ot(_0x2ea655['range'],_0x22b38f['model'])});for(const _0x456df2 of _0x4158cb){const _0x5eaf0f=_0x42593d['find'](_0x26bac8=>_0x26bac8['position']['isEqual'](_0x456df2['position']));_0x5eaf0f&&_0x40f06b['push']({'key':m,'newValue':_0x456df2['name'],'oldValue':_0x5eaf0f['name'],'range':_0x22b38f['model']['createRangeOn'](_0x456df2['position']['nodeAfter'])});}return 0x0!=_0x40f06b['length']&&this['_reduceExistingSuggestions'](_0xc5c4be,_0x40f06b);}['_processAttributeSuggestions'](_0x3c8048){let _0x464aea=!0x1;const _0x1daf4a=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x9cccd=>_0x9cccd['data']['newRange']&&_0x9cccd['name']['startsWith']('suggestion:attribute:'));for(const _0x14a0f5 of _0x1daf4a){const {subType:_0x2c775a,id:_0x1b0f7}=this['_splitMarkerName'](_0x14a0f5['name']),_0xbb5cbb=_0x2c775a['split']('|')[0x0];for(const _0x25b45b of this['getSuggestions']({'skipNotAttached':!0x0}))_0x25b45b['id']!=_0x1b0f7&&'attribute'==_0x25b45b['type']&&_0x25b45b['data']&&_0x25b45b['data']['key']==_0xbb5cbb&&_0x25b45b['getFirstRange']()['isIntersecting'](_0x14a0f5['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x25b45b,_0x14a0f5['data']['newRange'],_0x3c8048),_0x464aea=!0x0);}return _0x464aea;}['_recordAttributeChanges'](_0x40cb40){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x40cb40();}['_isRegisteredAttribute'](_0x2d725f){const _0x1497eb=this['_isBlockAttribute'](_0x2d725f),_0x35453d=this['_inlineAttributeKeys']['has'](_0x2d725f);return _0x1497eb||_0x35453d;}['_reduceExistingSuggestions'](_0x549f72,_0x5465bb){if(0x0==_0x5465bb['length'])return!0x1;let _0x43b215=!0x1;for(const _0x5a9ae8 of _0x5465bb){const _0xad6568=this['_findSuggestions'](_0x5a9ae8['range'],'attribute')['filter'](_0x5b51a1=>!_0x5b51a1['meta']['isNextTo'])['map'](_0x50ac94=>_0x50ac94['suggestion']),_0x253208=_0x1b8e80({'newValue':_0x5a9ae8['newValue']});_0xad6568['filter'](_0xddc38=>{const [_0x322d36,_0x58cd49]=_0xddc38['subType']['split']('|');return _0x322d36==_0x5a9ae8['key']&&_0x58cd49!=_0x253208;})['forEach'](_0x49700f=>{this['_reduceSuggestionAttributeRange'](_0x49700f,_0x5a9ae8['range'],_0x549f72),_0x43b215=!0x0;});}return _0x43b215;}['_reduceSuggestionAttributeRange'](_0x4731e7,_0x4da499,_0x1eb46d){const _0x1585ea=_0x4731e7['getFirstRange']()['getDifference'](_0x4da499);0x0!==_0x1585ea['length']?0x1!==_0x1585ea['length']?this['_breakSuggestionMarker'](_0x4731e7,_0x4da499['start'],_0x4da499['end']):this['_setSuggestionRange'](_0x4731e7,_0x1585ea[0x0]):_0x1eb46d['removeMarker'](_0x4731e7['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x8e1173){this['_editor']=_0x8e1173,this['_model']=_0x8e1173['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x1c49bc,_0x14b4b4,_0x4a43ef,_0xd8bb5c,_0x126c54,_0x41dab8){return new u(this['_model'],{'type':_0x1c49bc,'subType':_0x14b4b4,'id':_0x4a43ef,'author':_0xd8bb5c,'creator':_0xd8bb5c,'attributes':_0x126c54,'onAttributesChange':_0x41dab8,'onAccept':(..._0x2ad60b)=>this['getSuggestionCallback'](_0x1c49bc,_0x14b4b4,'accept')(..._0x2ad60b),'onDiscard':(..._0x3af741)=>this['getSuggestionCallback'](_0x1c49bc,_0x14b4b4,'discard')(..._0x3af741)});}['registerCustomCallback'](_0x209a54,_0x42404e,_0x1e97e3,_0xb53d52){const _0x13a709=_0x209a54+':'+_0x42404e+':'+_0x1e97e3;this['_customCallbacks']['set'](_0x13a709,_0xb53d52);}['getSuggestionCallback'](_0x14df1f,_0x4e796e,_0x418dff){const _0x5af379=_0x14df1f+':'+_0x4e796e+':'+_0x418dff;return this['_customCallbacks']['get'](_0x5af379)||this['_defaultCallbacks']['get'](_0x14df1f+':'+_0x418dff);}['_registerDefaultCallbacks'](){const _0x488cd0=()=>!0x1,_0x58015b=_0x3fccad=>{_0x3fccad['sort']((_0x2d8553,_0x607ca0)=>_0x2d8553['start']['isBefore'](_0x607ca0['start'])?0x1:-0x1),this['_model']['change'](_0x5a3938=>{for(const _0x42ef13 of _0x3fccad){let _0x3a2894;_0x3a2894=_0x42ef13['end']['isAtEnd']&&_0x42ef13['end']['parent']==_0x42ef13['start']['nodeAfter']?_0x5a3938['createSelection'](_0x42ef13['start']['nodeAfter'],'on'):_0x5a3938['createSelection'](_0x42ef13),this['_model']['deleteContent'](_0x3a2894,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x134984=(_0x162f93,_0x16e2af)=>{_0x16e2af&&this['_model']['change'](_0x4f9f82=>{const {commandName:_0x5cc631,commandParams:_0x1ea85c=[]}=_0x16e2af,_0x5ddee0=_0x162f93['map'](_0x33d6d6=>(Tt(_0x33d6d6)&&(_0x33d6d6=this['_model']['createRange'](_0x33d6d6['end'])),_0x33d6d6))['filter'](_0x50fa81=>'$graveyard'!==_0x50fa81['root']['rootName']);if(_0x5ddee0['length']<0x1)return;const _0x465bd0=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x324e42=>_0x55bce1['fromRange'](_0x324e42));_0x4f9f82['setSelection'](_0x5ddee0);for(const _0x4a11e8 of this['_editor']['commands']['commands']())_0x4a11e8['refresh']();_0x1ea85c['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x5cc631,..._0x1ea85c);const _0x75d218=_0x465bd0['filter'](_0x4ab16f=>'$graveyard'!=_0x4ab16f['root']['rootName']);_0x75d218['length']>0x0&&_0x4f9f82['setSelection'](_0x75d218);for(const _0x5d28af of _0x465bd0)_0x5d28af['detach']();});},_0x3e725b=(_0x5b1bc7,_0x41e851)=>0x1==_0x5b1bc7['length']&&0x1==_0x41e851['length']&&_0x5b1bc7[0x0]['end']['isEqual'](_0x41e851[0x0]['start']),_0x1b33b3=(_0x106b2d,_0x8468a2,_0x1db65c,_0x39f75b)=>Ft(_0x106b2d,_0x8468a2,_0x1db65c,_0x39f75b,this['_model'])?[_0x106b2d,_0x8468a2]:Ft(_0x8468a2,_0x106b2d,_0x39f75b,_0x1db65c,this['_model'])?[_0x8468a2,_0x106b2d]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x488cd0),this['_defaultCallbacks']['set']('insertion:discard',_0x58015b),this['_defaultCallbacks']['set']('insertion:join',_0x3e725b),this['_defaultCallbacks']['set']('insertion:chain',_0x1b33b3),this['_defaultCallbacks']['set']('deletion:accept',_0x58015b),this['_defaultCallbacks']['set']('deletion:discard',_0x488cd0),this['_defaultCallbacks']['set']('deletion:join',_0x3e725b),this['_defaultCallbacks']['set']('deletion:chain',_0x1b33b3),this['_defaultCallbacks']['set']('formatInline:accept',_0x134984),this['_defaultCallbacks']['set']('formatInline:discard',_0x488cd0),this['_defaultCallbacks']['set']('formatInline:join',_0x3e725b),this['_defaultCallbacks']['set']('formatInline:chain',_0x488cd0),this['_defaultCallbacks']['set']('formatBlock:accept',_0x134984),this['_defaultCallbacks']['set']('formatBlock:discard',_0x488cd0),this['_defaultCallbacks']['set']('formatBlock:join',_0x3e725b),this['_defaultCallbacks']['set']('formatBlock:chain',_0x488cd0),this['_defaultCallbacks']['set']('attribute:accept',_0x488cd0),this['_defaultCallbacks']['set']('attribute:discard',(_0x4e5946,_0x3d7580)=>{if(!_0x3d7580)return;const _0x5c22d9=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x492fcf=>{if(_0x3d7580['key']==m)for(const _0x9f05ce of _0x4e5946){const _0x1ce720=_0x9f05ce['start']['nodeAfter'],_0x174c83=_0x3d7580['oldValue'];_0x492fcf['rename'](_0x1ce720,_0x174c83);}else{if(_0x5c22d9['_isBlockAttribute'](_0x3d7580['key'])){for(const _0x59fe4b of _0x4e5946)void 0x0!==_0x3d7580['oldValue']?_0x492fcf['setAttribute'](_0x3d7580['key'],_0x3d7580['oldValue'],_0x59fe4b['start']['nodeAfter']):_0x492fcf['removeAttribute'](_0x3d7580['key'],_0x59fe4b['start']['nodeAfter']);}else{for(const _0x504db4 of _0x4e5946)_0x3d7580['oldValue']?_0x492fcf['setAttribute'](_0x3d7580['key'],_0x3d7580['oldValue'],_0x504db4):_0x492fcf['removeAttribute'](_0x3d7580['key'],_0x504db4);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x3e725b);}}function Rt(_0x26aaa8,_0x5194d1,_0x58e92a){for(const _0x40266e of _0x5194d1['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x40266e['root']==_0x40266e)return!0x1;if(!_0x58e92a['containsItem'](_0x40266e))return!0x1;if(_0x26aaa8['isObject'](_0x40266e)||_0x26aaa8['isLimit'](_0x40266e))return!0x0;}return!0x1;}function Tt(_0x5cdcc9){return _0x5cdcc9['end']['parent']==_0x5cdcc9['start']['nodeAfter']&&_0x5cdcc9['end']['isAtStart'];}function Et(_0x515324,_0x166a99,_0x58b965,_0x36d488){const _0x2b4a24=_0x44e382=>!_0x44e382['item']['is']('$textProxy')&&!_0x36d488['isObject'](_0x44e382['item']),_0x36fdef=_0x515324['start']['getLastMatchingPosition'](_0x2b4a24),_0x232b71=_0x515324['end']['getLastMatchingPosition'](_0x2b4a24,{'direction':'backward'});return(!_0x515324['start']['isEqual'](_0x36fdef)||!_0x515324['end']['isEqual'](_0x232b71))&&(_0x36fdef['isBefore'](_0x232b71)?_0x58b965['updateMarker'](_0x166a99,{'range':_0x58b965['createRange'](_0x36fdef,_0x232b71)}):_0x58b965['removeMarker'](_0x166a99),!0x0);}function Vt(_0x5cc60b){return _0x1b8e80(_0x5cc60b);}function Ut(_0x26152d){const _0x377d62=_0x26152d['start']['nodeAfter'];return _0x377d62&&_0x377d62['is']('element');}function Ot(_0x46e2b9,_0x5107aa){return null==_0x46e2b9['end']['nodeBefore']&&_0x46e2b9['end']['parent']==_0x46e2b9['start']['nodeAfter']?Gt(_0x46e2b9['start']['nodeAfter'],_0x5107aa):_0x46e2b9;}function Gt(_0x34ab6c,_0x31fd0a){const _0x34d3e5=_0x31fd0a['schema']['isObject'](_0x34ab6c)||_0x31fd0a['schema']['isSelectable'](_0x34ab6c);return _0x31fd0a['createRange'](_0x31fd0a['createPositionAt'](_0x34ab6c,'before'),_0x34d3e5?_0x31fd0a['createPositionAfter'](_0x34ab6c):_0x31fd0a['createPositionAt'](_0x34ab6c,'end'));}function Ft(_0x2e720d,_0x47a628,_0x5e8c94,_0x2ba454,_0x2a1d33){if(!Pt(_0x2e720d,_0x47a628))return!0x1;if(_0x5e8c94['end']['isEqual'](_0x2ba454['start']))return!0x0;if(_0x2e720d['type']!=_0x47a628['type'])return!0x1;if(!_0x5e8c94['end']['isTouching'](_0x2ba454['start']))return!0x1;const _0x587fe6=_0x2a1d33['createRange'](_0x5e8c94['end'],_0x2ba454['start'])['getWalker']();for(const _0x588f77 of _0x587fe6)if(['elementStart','elementEnd']['includes'](_0x588f77['type'])&&_0x2a1d33['schema']['isLimit'](_0x588f77['item']))return!0x1;return!0x0;}function Pt(_0x114361,_0x3058c5,_0x48e05c=[]){return!(!_0x114361['_isDataLoaded']||!_0x3058c5['_isDataLoaded'])&&_0x33f02c(Bt(_0x114361['attributes'],_0x48e05c),Bt(_0x3058c5['attributes'],_0x48e05c));}function Lt(_0x2792a1,_0x2f9e62){const _0x19c6a8=Ht(_0x2792a1['attributes']),_0x3e52cf=Ht(_0x2f9e62);if(!_0x2792a1['_isDataLoaded'])return!0x1;for(const _0x1cf9bf of Object['keys'](_0x3e52cf))if(!_0x33f02c(_0x19c6a8[_0x1cf9bf],_0x3e52cf[_0x1cf9bf]))return!0x1;return!0x0;}function Ht(_0x2de6f0){const _0x5f0ab4=Object['assign']({},_0x2de6f0);return delete _0x5f0ab4['skipNestingCheck'],delete _0x5f0ab4['tablePasteChainId'],_0x5f0ab4;}class oe extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x55c26b(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x414160,_0xb121f7,_0x3d7b29,_0x54f65b){super(),this['model']=_0xb121f7,this['view']=_0x3d7b29,this['commentThreadController']=_0x54f65b,this['_editor']=_0x414160,this['_acceptCommand']=_0x414160['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x414160['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0xfbedab,_0x5ed59b)=>_0xfbedab||_0x5ed59b),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x1ce531=>_0x1ce531&&this['_editor']['model']['canEditAt'](_0xb121f7['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x290805=>_0x290805&&this['_editor']['model']['canEditAt'](_0xb121f7['getRanges']())),this['_pendingAction']=null,_0x3d7b29['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3d7b29,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3d7b29,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3d7b29,'change:isDirty',()=>{_0x3d7b29['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 _0x166518=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x166518);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x4e4f55{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x226dbf,_0x4381eb,_0x3a3885,_0x552a6d){super(_0x226dbf),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x4381eb['authoredAt']),this['bind']('authoredAt')['to'](_0x4381eb),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x4381eb,this['_localUser']=_0x3a3885,this['_config']=_0x552a6d,_0x552a6d['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x5a078a}=this['_config'];this['commentsListView']=new _0x5a078a(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',_0x1b5fca=>_0x1b5fca+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x27a252,_0xa570ea)=>_0x27a252||!!_0xa570ea);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x138e0a}=this['_config'],_0x2642ff=new _0x138e0a(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x6282f7=_0x2642ff['commentInputView'];return _0x2642ff['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x6282f7,'value',(_0x2b407d,_0x459b71,_0x5eae87)=>!!_0x5eae87||_0x2b407d&&!_0x459b71),_0x6282f7['on']('submit',(_0x2d629c,_0x12a427)=>{this['fire']('addComment',_0x12a427),_0x6282f7['editor']['setData']('');}),_0x6282f7['on']('cancel',()=>this['focus']()),_0x6282f7['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x2642ff;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x161c5c,_0xe86076,_0x36490b,_0x5a7664){super(_0x161c5c,_0xe86076,_0x36490b,_0x5a7664),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3ebba3=>_0x3ebba3&&_0x3ebba3[0x0]?_0x3ebba3[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x25346b,_0x518372)=>{let _0x5f2fbf='';for(const _0x42bcdd of _0x25346b)_0x5f2fbf+='<p>'+ds(_0x42bcdd['content'],_0x42bcdd['color'])+'</p>';return _0x518372?_0x5f2fbf:_0x14f51e(_0x5f2fbf,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x161c5c,'Accept\x20suggestion'),_0x22d87a['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x161c5c,'Discard\x20suggestion'),_0x22d87a['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x47a603(_0x161c5c,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x277dd4=this['bindTemplate'],_0x1e61c1=[{'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']}},{'tag':'time','attributes':{'datetime':_0x277dd4['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x277dd4['to']('authoredAt',_0x3490bf=>this['_config']['formatDateTime'](_0x3490bf))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];this['_model']['isExternal']&&_0x1e61c1['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x1df1be={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x277dd4['if']('isActive','ck-suggestion-wrapper--active'),_0x277dd4['to']('type',_0x5cc360=>'ck-suggestion-'+_0x5cc360),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':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main']},'children':_0x1e61c1}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x1df1be['children']['push'](this['commentsListView'],this['commentThreadInputView']),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this)),_0x1df1be;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x437174,_0x735f4f,_0x3ea7fa)=>{this['_descriptionElement']['innerHTML']=_0x3ea7fa;});}['_createButton'](_0x2956c1,_0x1e825f,_0xa1add0,_0x17f633,_0x5ca1a1){const _0xf69d80=new _0x3febb6(this['locale']);return _0xf69d80['set']({'label':_0x2956c1,'icon':_0x1e825f,'tooltip':!0x0,'tooltipPosition':_0x5ca1a1}),_0xf69d80['extendTemplate']({'attributes':{'class':_0xa1add0}}),_0xf69d80['on']('execute',()=>{this['fire'](_0x17f633,this['_model']['id']);}),_0xf69d80;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}}function ds(_0x744d9e,_0x175f38){let _0x402305='';return _0x402305+=_0x744d9e['split']('*')['map']((_0x331aee,_0x2066e8)=>_0x2066e8%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x331aee)+'</span>':us(_0x331aee))['join'](''),_0x175f38&&(_0x402305+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x175f38['value']+'\x22\x20title=\x22'+_0x175f38['title']+'\x22></span>'),_0x402305;}function us(_0xacd319){const _0x199b7e=document['createElement']('span');return _0x199b7e['innerText']=_0xacd319,_0x199b7e['innerHTML'];}var ie='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20width=\x2220\x22\x20height=\x2220\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><g\x20fill=\x22#000\x22\x20fill-rule=\x22nonzero\x22><path\x20d=\x22M1\x203.28C1\x202.574\x201.574\x202\x202.272\x202h10.23c.703\x200\x201.272.573\x201.272\x201.28v12.768c0\x20.708-.574\x201.281-1.271\x201.281H2.272A1.276\x201.276\x200\x200\x201\x201\x2016.049V3.28zm11.503\x2012.954c-.008\x200-.006-12.77-.006-12.77\x200-.003-10.225-.004-10.225-.004.007\x200\x20.005\x2012.77.005\x2012.77\x200\x20.003\x2010.226.004\x2010.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351\x200\x20.636.284.636.64a.641.641\x200\x200\x201-.636.638H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.554c0-.352.292-.638.636-.638h5.116c.351\x200\x20.636.283.636.638a.641.641\x200\x200\x201-.636.639H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.555c0-.353.289-.639.633-.639h2.567c.35\x200\x20.633.284.633.64a.639.639\x200\x200\x201-.633.638H4.826a.634.634\x200\x200\x201-.632-.639z\x22/><path\x20d=\x22M10.515\x2017.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319\x200-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6\x201.059-.56\x202.11.119\x201.051.68\x201.443\x201.271\x201.177\x201.771L14.53\x2017.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954\x202.954\x200\x200\x200-.487.21\x202.044\x202.044\x200\x200\x200-.347.31c-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z\x22/></g></svg>\x0a';class d extends _0x2038e0{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x3f3120,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x573438){super(_0x573438),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0xbb7935=this['editor']['config'];_0xbb7935['define']('trackChanges.SuggestionThreadView',ne),_0xbb7935['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0xbb7935['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x3d6671,_0x581b7b){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x42a5fc,_0xfa746a]of this['_handleControllerBuffer']){const _0x464cee=this['_suggestionToController']['has'](_0x42a5fc);_0x464cee||_0xfa746a?_0x464cee&&_0xfa746a&&this['_destroyController'](_0x42a5fc):this['_initializeController'](_0x42a5fc);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x3d6671,_0x581b7b);}['init'](){const _0x5e98c1=this['editor'],_0x16ee3d=_0x5e98c1['plugins']['get']('TrackChangesEditing'),_0x5bb8c0=_0x5e98c1['plugins']['get']('Annotations'),_0x40e442=_0x5e98c1['plugins']['get']('EditorAnnotations'),_0x29c5b5=_0x5e98c1['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x40e442['addSourceCollector'](()=>{const _0x598141=[];for(const [_0x18990e,_0x360698]of Array['from'](this['_suggestionToController'])){const _0x52ddad=_0x18990e['getAllAdjacentSuggestions'](),_0x5191b5=[];for(const _0x36f055 of _0x52ddad){if(!_0x36f055['isInContent'])continue;if(_0x36f055['isMultiRange']){_0x5191b5['push'](..._0x36f055['getRanges']());continue;}const _0x57f153=_0x36f055['getFirstRange']();if(_0x5191b5['length']>0x0){const _0x5c576d=_0x5191b5[0x0]['getJoined'](_0x57f153);if(_0x5c576d){_0x5191b5[0x0]=_0x5c576d;continue;}}_0x5191b5['push'](_0x57f153);}_0x598141['push']([_0x360698['view'],_0x5191b5]);}return _0x598141;}),this['listenTo'](_0x16ee3d,'suggestionLoaded',(_0x24a577,_0x1d4ad4)=>{this['listenTo'](_0x1d4ad4,'change:previous',(_0x7986b4,_0x197576,_0x353a74,_0x43e5a8)=>{_0x1d4ad4['isInContent']&&(null==_0x353a74?(this['_updateController'](_0x43e5a8['head']),this['_handleSuggestionControllerDelayed'](_0x1d4ad4,!0x1)):(this['_updateController'](_0x353a74['head']),null==_0x43e5a8&&this['_handleSuggestionControllerDelayed'](_0x1d4ad4,!0x0)));}),null!==_0x1d4ad4['previous']?this['_updateController'](_0x1d4ad4['head']):this['_handleSuggestionControllerDelayed'](_0x1d4ad4,!0x1);}),this['listenTo'](_0x16ee3d,'suggestionUnloaded',(_0x4ff20e,_0x170646,_0x9d1f3f)=>{this['stopListening'](_0x170646,'change:previous'),this['_handleControllerBuffer']['delete'](_0x170646),this['_suggestionToController']['has'](_0x170646)&&this['_destroyController'](_0x170646),_0x9d1f3f&&this['_updateController'](_0x9d1f3f['head']);}),this['listenTo'](_0x16ee3d,'suggestionChanged',(_0x47f60c,_0x53b884)=>{this['_updateController'](_0x53b884);}),this['listenTo'](_0x5bb8c0,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x29c5b5,'addComment',(_0x4103b4,{threadId:_0x256d3c,isFromAdapter:_0x2d0674})=>{if(_0x2d0674||!_0x16ee3d['hasSuggestion'](_0x256d3c))return;const _0x146e0a=_0x16ee3d['getSuggestion'](_0x256d3c);this['_suggestionToController']['get'](_0x146e0a)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x37d7fe=this['editor']['plugins']['get']('Annotations'),_0x8800d6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x34ea37=Array['from'](_0x37d7fe['activeAnnotations'],_0x5292e9=>_0x5292e9['innerView'])['filter'](_0x35ad0c=>this['_viewToController']['has'](_0x35ad0c)),_0x111324=[];for(const _0x5190c6 of _0x34ea37){const _0x3dc177=this['_viewToController']['get'](_0x5190c6)['model']['getAllAdjacentSuggestions']();_0x111324['push'](..._0x3dc177['reduce']((_0x4a3a42,_0x4087d7)=>[..._0x4a3a42,..._0x4087d7['getMarkerNames']()],[]));}_0x8800d6['activeMarkers']=_0x111324;}['_addUIComponentsToFactory'](){const _0x55b645=this['editor'],_0x5f058d=_0x55b645['locale'],_0x2beb96=o(_0x5f058d,'Track\x20changes'),_0x34dd71=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x2beb96,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x5f058d,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x5f058d,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x5f058d,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x5f058d,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x19dc47 of _0x34dd71)if(ae(_0x19dc47)){const _0x48a27c=_0x55b645['commands']['get'](_0x19dc47['model']['commandName']);_0x19dc47['model']['bind']('isOn','isEnabled')['to'](_0x48a27c,'value','isEnabled');}_0x55b645['ui']['componentFactory']['add']('trackChanges',_0x33af07=>this['_createToolbarButton'](_0x33af07,_0x34dd71,_0x2beb96)),_0x55b645['ui']['componentFactory']['add']('menuBar:trackChanges',_0x431faa=>this['_createMenuBarMenu'](_0x431faa,_0x34dd71,_0x2beb96));}['_createToolbarButton'](_0x3064f8,_0x13447d,_0x3954ff){const _0x135e17=zt(_0x3064f8,Zt),_0x4fe30b=this['editor']['commands']['get']('trackChanges');_0x135e17['buttonView']['set']({'tooltip':_0x3954ff,'label':_0x3954ff,'icon':ie}),_0x135e17['buttonView']['bind']('isOn')['to'](_0x4fe30b,'value'),_0x135e17['buttonView']['on']('execute',()=>{_0x4fe30b['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x135e17,_0x13447d,{'role':'menu'});const _0x232e0c=[];for(const _0x4a137d of _0x13447d)ae(_0x4a137d)&&_0x232e0c['push'](this['editor']['commands']['get'](_0x4a137d['model']['commandName']));const _0x531a8c=_0x135e17['buttonView'];return _0x531a8c['actionView']['unbind']('isEnabled'),_0x531a8c['arrowView']['unbind']('isEnabled'),_0x531a8c['actionView']['bind']('isEnabled')['to'](_0x4fe30b,'isEnabled'),_0x531a8c['arrowView']['bind']('isEnabled')['toMany'](_0x232e0c,'isEnabled',(..._0x3eee9d)=>_0x3eee9d['some'](_0x3b58b3=>_0x3b58b3)),_0x135e17['on']('execute',_0x45fd9a=>{this['editor']['execute'](_0x45fd9a['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x135e17;}['_createMenuBarMenu'](_0x473283,_0x38f4b0,_0x594bd7){const _0xcc1b51=new Kt(_0x473283),_0x1d5af7=this['editor']['commands']['get']('trackChanges');_0xcc1b51['buttonView']['set']({'label':_0x594bd7,'icon':ie});const _0xb9801d=new Qt(_0x473283);for(const _0x4708f3 of _0x38f4b0){if('separator'==_0x4708f3['type']){_0xb9801d['items']['add'](new Jt(_0x473283));continue;}const _0x4e0e28=new Xt(_0x473283,_0xcc1b51),_0x1f8cdc=new Yt(_0x473283),_0x112148=_0x4708f3['model'];_0x1f8cdc['bind'](...Object['keys'](_0x112148))['to'](_0x112148),_0x1f8cdc['delegate']('execute')['to'](_0xcc1b51),_0x1f8cdc['on']('execute',()=>{this['editor']['execute'](_0x112148['commandName']),this['editor']['editing']['view']['focus']();}),_0x4e0e28['children']['add'](_0x1f8cdc),_0xb9801d['items']['add'](_0x4e0e28);}return _0xcc1b51['bind']('isEnabled')['to'](_0x1d5af7,'isEnabled'),_0xcc1b51['panelView']['children']['add'](_0xb9801d),_0xcc1b51;}['_initializeController'](_0x5617f4){const _0x3faded=this['editor'],_0x7c9888=_0x3faded['config'],_0x26c245=_0x3faded['plugins']['get']('Annotations'),_0x2e80d4=_0x3faded['plugins']['get']('CommentsRepository'),_0x41cb3b=_0x3faded['plugins']['get']('EditorAnnotations'),_0x25f95f=_0x3faded['plugins']['get'](_0x3f3120)['me'],_0x5f4a6a=_0x7c9888['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x33f0bc,CommentThreadInputView:_0xec4534}=_0x3faded['plugins']['get']('CommentsUI');let _0xdbfd13,_0x1e5883;this['_annotationViews']['has'](_0x5617f4['id'])?(_0x1e5883=this['_annotationViews']['get'](_0x5617f4['id']),_0xdbfd13=_0x1e5883['mainView']):(_0xdbfd13=new _0x5f4a6a(_0x3faded['locale'],_0x5617f4,_0x25f95f,{'disableComments':this['_disableComments'],'editorConfig':_0x7c9888['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x7c9888['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x7c9888['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x7c9888['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x175bce(_0x7c9888['get']('locale')),'CommentView':_0x7c9888['get']('comments')['CommentView'],'CommentsListView':_0x33f0bc,'CommentThreadInputView':_0xec4534}),_0xdbfd13['acceptButton']['on']('execute',()=>{_0x3faded['editing']['view']['focus']();}),_0xdbfd13['discardButton']['on']('execute',()=>{_0x3faded['editing']['view']['focus']();}),_0x1e5883=_0x26c245['createAnnotationView'](this['editor']['locale'],_0xdbfd13),_0x1e5883['bind']('isDirty')['to'](_0xdbfd13,'isDirty'),_0x1e5883['bind']('length')['to'](_0xdbfd13),_0x1e5883['bind']('type')['to'](_0xdbfd13,'type',_0x3238ca=>'suggestion-'+_0x3238ca),this['_annotationViews']['set'](_0x5617f4['id'],_0x1e5883));const _0x5c05ad=_0x2e80d4['createCommentThreadController'](_0x5617f4['commentThread'],_0xdbfd13),_0x1da8f6=new oe(_0x3faded,_0x5617f4,_0xdbfd13,_0x5c05ad),_0x5cda0b=_0x5617f4['getAllAdjacentSuggestions']()['filter'](_0x342030=>_0x342030['isInContent']);_0xdbfd13['descriptionParts']=_0x3faded['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x5cda0b),this['_suggestionToController']['set'](_0x5617f4,_0x1da8f6),this['_viewToController']['set'](_0xdbfd13,_0x1da8f6);const _0x469da0=_0x26c245['createAnnotation']({'view':_0x1e5883,'target':()=>{const _0x473962=[],_0x1cbc10=_0x5617f4['getAllAdjacentSuggestions']()['filter'](_0x30e57f=>_0x30e57f['isInContent']);for(const _0x34c34a of _0x1cbc10)_0x473962['push'](..._0x34c34a['getMarkers']());return _0x3a5f01(_0x3faded['editing'],_0x473962);},'type':()=>'suggestion-'+_0x1da8f6['view']['type']});_0x2e80d4['_bindAnnotationToEditors'](_0xdbfd13,_0x469da0),_0x26c245['add'](_0x469da0),_0x41cb3b['registerAnnotation'](_0x469da0);}['_destroyController'](_0x74a2c9){const _0x4ff5d0=this['editor']['plugins']['get']('CommentsRepository'),_0x174274=this['editor']['plugins']['get']('Annotations'),_0x171d3e=this['_suggestionToController']['get'](_0x74a2c9),_0x3849a6=_0x171d3e['view'],_0x1a2693=_0x174274['getByInnerView'](_0x3849a6);_0x4ff5d0['_unbindEditors'](_0x3849a6),_0x1a2693&&_0x174274['remove'](_0x1a2693),this['_suggestionToController']['delete'](_0x74a2c9),this['_viewToController']['delete'](_0x3849a6),_0x171d3e['destroy']();}['_updateController'](_0x2b2574){if(!_0x2b2574['isInContent']||!this['_suggestionToController']['has'](_0x2b2574))return;const _0x158bc7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x415d70=this['_suggestionToController']['get'](_0x2b2574),_0x23a28a=_0x2b2574['getAllAdjacentSuggestions']();_0x415d70['view']['descriptionParts']=_0x158bc7['descriptionFactory']['getDescriptions'](_0x23a28a);}['destroy'](){for(const _0x5474b8 of this['_suggestionToController']['keys']())this['_destroyController'](_0x5474b8);for(const _0x3ece88 of this['_annotationViews']['values']())_0x3ece88['mainView']['destroy']();super['destroy']();}}function ae(_0x2b426d){return'model'in _0x2b426d;}class k extends _0x2038e0{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x4e86c4){this['editor']['plugins']['get'](p)['adapter']=_0x4e86c4;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x577bb7){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x577bb7);}['getSuggestions']({skipNotAttached:_0x25b287=!0x1,toJSON:_0x1e2b79=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x25b287,'toJSON':_0x1e2b79});}['getSuggestion'](_0x3a290a){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x3a290a);}}const T=['Pagination'];class P extends _0x2038e0{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x42ce02=this['editor'];if(_0x42ce02['config']['define']('trackChangesData.editorCreator',_0x29fe1e=>{const _0x3f3e5b=_0x42ce02['model']['document']['getRootNames']()['reduce']((_0x2b8ae0,_0xe6d544)=>(_0x2b8ae0[_0xe6d544]='',_0x2b8ae0),{});return _0x42ce02['constructor']['create'](_0x3f3e5b,_0x29fe1e);}),'function'!=typeof _0x42ce02['config']['get']('trackChangesData')['editorCreator'])throw new _0x20823b('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x575898){return N(this['editor'],!0x0,_0x575898);}['getDataWithDiscardedSuggestions'](_0x57e78e){return N(this['editor'],!0x1,_0x57e78e);}}class D extends _0x2038e0{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x4e1581){super(_0x4e1581),this['result']='end';}['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 v(_0x1f27d9){return void 0x0!==_0x1f27d9['getRootsAttributes'];}async function N(_0x48399c,_0x3b0232,_0xbd230){const _0xa8f95e=_0x48088a(_0x48399c,T);_0xa8f95e['plugins']['push'](p,D),_0xa8f95e['rootsAttributes']=v(_0x48399c)?_0x48399c['getRootsAttributes']():void 0x0;const _0x2ce3a3=document['createDocumentFragment'](),_0x25879d=_0x48399c['config']['get']('trackChangesData')['editorCreator'],_0x50c54c=await _0x25879d(_0xa8f95e,()=>function(_0x430412){const _0x37a648=document['createElement']('div');return _0x430412['appendChild'](_0x37a648),_0x37a648;}(_0x2ce3a3));!function(_0x367fa0,_0x3062d8){const _0x37512a=_0x367fa0['model']['document']['getRootNames']()['reduce']((_0x221c76,_0x4410f3)=>(_0x221c76[_0x4410f3]=_0x367fa0['data']['get']({'rootName':_0x4410f3}),_0x221c76),{}),_0x3ed6e8=_0x367fa0['plugins']['get']('Users')['users']['map'](_0x1ccfd5=>({'id':_0x1ccfd5['id'],'name':_0x1ccfd5['name']})),_0x40a405=_0x367fa0['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1feded=_0x367fa0['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4391e0=_0x3062d8['plugins']['get']('Users'),_0x1423ba=_0x3062d8['plugins']['get']('TrackChangesEditing'),_0x1d5d18=_0x3062d8['plugins']['get']('CommentsRepository');for(const _0x27fd85 of _0x3ed6e8)_0x4391e0['getUser'](_0x27fd85['id'])||_0x4391e0['addUser'](_0x27fd85);_0x4391e0['me']||_0x4391e0['useAnonymousUser']();for(const _0x6616c4 of _0x1feded)_0x1d5d18['addCommentThread'](_0x6616c4);for(const _0x187d72 of _0x40a405)_0x1423ba['addSuggestionData'](_0x187d72);_0x3062d8['data']['set'](_0x37512a);}(_0x48399c,_0x50c54c),_0x50c54c['execute'](_0x3b0232?'acceptAllSuggestions':'discardAllSuggestions');const _0xde250d=v(_0x50c54c)?_0x50c54c['getFullData'](_0xbd230):_0x50c54c['data']['get'](_0xbd230);return await _0x50c54c['destroy'](),_0xde250d;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|