@ckeditor/ckeditor5-track-changes 43.2.0-alpha.0 → 43.2.0-alpha.1
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 +10 -10
- 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
|
-
_0x4d2569(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x44b05c,_0x1677d5){super(),this['id']=_0x1677d5['id'],this['type']=_0x1677d5['type'],this['subType']=_0x1677d5['subType']||null,this['author']=_0x1677d5['author'],this['creator']=_0x1677d5['creator']||_0x1677d5['author'],this['isExternal']=Boolean(_0x1677d5['attributes']&&_0x1677d5['attributes']['@external']),this['data']=null,this['_model']=_0x44b05c,this['_onAccept']=_0x1677d5['onAccept'],this['_onDiscard']=_0x1677d5['onDiscard'],this['_onAttributesChange']=_0x1677d5['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1677d5['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 _0x58c887=this;for(;_0x58c887['previous'];)_0x58c887=_0x58c887['previous'];return _0x58c887;}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'](_0x1f31d5){this['_markerNames']['add'](_0x1f31d5);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2699d4=>this['_model']['markers']['get'](_0x2699d4))['filter'](_0x50e444=>_0x50e444);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0xd0b77f=>{for(const _0x4a88fe of this['getMarkers']())_0xd0b77f['removeMarker'](_0x4a88fe);}),this['_markerNames']['clear']();}['removeMarker'](_0x3361cd){this['_model']['change'](_0x5043b7=>{_0x5043b7['removeMarker'](_0x3361cd);}),this['_markerNames']['delete'](_0x3361cd);}['addRange'](_0x4be984){const _0x201bb7='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x201bb7),this['_model']['change'](_0x1f96cd=>{_0x1f96cd['addMarker'](_0x201bb7,{'range':_0x4be984,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x50c1e3){for(const _0x1358ba of this['getRanges']())if(_0x1358ba['isIntersecting'](_0x50c1e3))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4eda63=>_0x4eda63['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2d3c27,_0x1aeadb)=>[..._0x2d3c27,..._0x1aeadb['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x576bb0=this['getRanges']();if(0x1!=_0x576bb0['length'])return null;const _0x2fdfee=_0x576bb0[0x0],_0x27bad7=_0x2fdfee['start']['nodeAfter'],_0x15b3eb=_0x2fdfee['end']['nodeBefore'];return _0x27bad7 instanceof _0x1e018a?_0x27bad7!=_0x15b3eb?null:_0x27bad7: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 _0x291894=[];let _0x357633=this['head'];for(;_0x357633;)_0x291894['push'](_0x357633),_0x357633=_0x357633['next'];return _0x291894;}['setAttribute'](_0x29ae96,_0x184bce){const _0x589951=_0x1a932f(this['attributes']);_0x12ccb1(_0x589951,_0x29ae96,_0x184bce),_0x7c6596(_0x589951,this['attributes'])||(this['attributes']=_0x589951,this['_onAttributesChange'](_0x589951));}['removeAttribute'](_0x562456){const _0x3a1bb6=_0x1a932f(this['attributes']);_0x1a6b63(_0x3a1bb6,_0x562456),_0x7c6596(_0x3a1bb6,this['attributes'])||(this['attributes']=_0x3a1bb6,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 _0x2b2341()['substr'](0x1,0x5);}}function o(_0x16a82a,_0x24707d,_0x3ec52d){const t=_0x16a82a['t'];switch(_0x24707d){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',_0x3ec52d);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3ec52d);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3ec52d);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3ec52d);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3ec52d);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',_0x3ec52d);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3ec52d);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',_0x3ec52d);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3ec52d);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3ec52d);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3ec52d);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3ec52d);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3ec52d);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3ec52d);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3ec52d);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3ec52d);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3ec52d);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3ec52d);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3ec52d);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3ec52d);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3ec52d);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3ec52d);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3ec52d);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'},_0x3ec52d);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3ec52d);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3ec52d);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3ec52d);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3ec52d);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3ec52d);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'},_0x3ec52d);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3ec52d);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3ec52d);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3ec52d);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3ec52d);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'},_0x3ec52d);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3ec52d);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'},_0x3ec52d);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'},_0x3ec52d);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3ec52d);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'},_0x3ec52d);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3ec52d);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'},_0x3ec52d);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3ec52d);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3ec52d);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x3ec52d);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'},_0x3ec52d);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'},_0x3ec52d);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x3ec52d);case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x3ec52d);case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x3ec52d);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x3ec52d);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x24707d;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x455bfd,_0x292919){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x455bfd,this['_locale']=_0x292919;}['getDescriptions'](_0x99e700){const _0x133b2d=[],_0x32f058=new Set(),_0x747e13=new Set();for(let _0x991091=0x0;_0x991091<_0x99e700['length'];_0x991091++){const _0x37db95=_0x99e700[_0x991091];if(!_0x37db95['isInContent'])continue;const _0x457c8c=this['_handleCustomCallbackDescription'](_0x37db95);if(_0x457c8c){if(null!=_0x37db95['subType']){if(_0x32f058['has'](_0x37db95['subType']))continue;_0x32f058['add'](_0x37db95['subType']);}_0x133b2d['push'](_0x457c8c);}else{if('attribute'!=_0x37db95['type'])'insertion'!=_0x37db95['type']&&'deletion'!=_0x37db95['type']||this['_handleInsertRemoveSuggestionDescription'](_0x133b2d,_0x37db95,_0x99e700[_0x991091+0x1]);else{const _0x182e97=_0x37db95['data']['key'];if(_0x747e13['has'](_0x182e97))continue;_0x747e13['add'](_0x37db95['data']['key']),_0x182e97==m?this['_handleRenameSuggestionDescription'](_0x133b2d,_0x37db95):this['_handleAttributeSuggestionDescription'](_0x133b2d,_0x37db95);}}}return this['_resolveDescriptionItems'](_0x133b2d);}['registerDescriptionCallback'](_0x4cf8be){this['_customCallbacks']['push'](_0x4cf8be);}['registerElementLabel'](_0x1e25bd,_0x30ae9f,_0x21f945=_0x393348['normal']){'function'==typeof _0x1e25bd?_0x2dd1e5(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1e25bd,'label':_0x30ae9f,'priority':_0x21f945}):this['_itemLabels']['set'](_0x1e25bd,_0x30ae9f);}['registerAttributeLabel'](_0x3b2ee8,_0x21dfaf){this['_attributeLabels']['set'](_0x3b2ee8,_0x21dfaf);}['getItemLabel'](_0xf0a44c,_0x3293b0=0x1){let _0x14859c;for(const _0x518195 of this['_itemLabelsCallbacks'])if(_0x518195['matchingCallback'](_0xf0a44c)){_0x14859c=_0x518195['label'];break;}return _0x14859c||(_0x14859c=this['_itemLabels']['get'](_0xf0a44c['name'])),_0x14859c?_0x14859c(_0x3293b0):0x1!==_0x3293b0?_0x3293b0+'\x20'+_0xf0a44c['name']+'s':''+_0xf0a44c['name'];}['_addDescriptionItems'](_0x2db482,_0x287dce){const _0x337582=_0x287dce['getFirstRange']()['getWalker'](),_0x36f444='insertion'==_0x287dce['type']?'add':'remove';for(const _0x337813 of _0x337582){const _0x31cfc8=_0x337813['item'],_0x6b8fd8=_0x2db482[_0x2db482['length']-0x1];if(_0x31cfc8['is']('$textProxy'))_0x6b8fd8&&_0x6b8fd8['type']['indexOf']('Container')>-0x1&&_0x2db482['pop'](),_0x6b8fd8&&'text'==_0x6b8fd8['type']?_0x6b8fd8[_0x36f444]+=_0x31cfc8['data']:_0x2db482['push']({'type':'text','add':'add'==_0x36f444?_0x31cfc8['data']:'','remove':'remove'==_0x36f444?_0x31cfc8['data']:''});else{if(this['_schema']['isObject'](_0x31cfc8)){const _0x112fa1=_0x31cfc8;if(_0x6b8fd8&&_0x6b8fd8['type']['indexOf']('Container')>-0x1&&_0x2db482['pop'](),'elementEnd'==_0x337813['type'])continue;_0x6b8fd8&&_0x6b8fd8['type']==_0x36f444+'Object'&&_0x6b8fd8['element']['name']==_0x112fa1['name']?_0x6b8fd8['quantity']++:_0x2db482['push']({'type':_0x36f444+'Object','element':_0x112fa1,'quantity':0x1}),_0x337582['skip'](_0x202685=>!('elementEnd'==_0x202685['type']&&_0x202685['item']==_0x31cfc8));}else{if(this['_schema']['checkChild'](_0x31cfc8,'$text')||_0x31cfc8['is']('element','softBreak')){const _0x420a1f=_0x31cfc8;if('add'==_0x36f444&&'elementStart'==_0x337813['type']||'remove'==_0x36f444&&'elementEnd'==_0x337813['type'])continue;if(_0x6b8fd8&&-0x1==_0x6b8fd8['type']['indexOf']('Container')){'text'==_0x6b8fd8['type']&&(_0x6b8fd8[_0x36f444]+='\x0a');continue;}let _0x1d0b6d;if(_0x1d0b6d='add'==_0x36f444?_0x420a1f['nextSibling']&&!this['_schema']['isObject'](_0x420a1f['nextSibling'])?_0x420a1f['nextSibling']:null:_0x420a1f['previousSibling']&&!this['_schema']['isObject'](_0x420a1f['previousSibling'])?_0x420a1f['previousSibling']:null,_0x420a1f['isEmpty']||_0x1d0b6d&&_0x1d0b6d['isEmpty']){const _0x2898e=_0x1d0b6d&&_0x1d0b6d['isEmpty']?_0x1d0b6d:_0x420a1f;_0x6b8fd8&&_0x6b8fd8['type']==_0x36f444+'EmptyContainer'&&_0x6b8fd8['element']['name']==_0x2898e['name']?_0x6b8fd8['quantity']++:_0x2db482['push']({'type':_0x36f444+'EmptyContainer','element':_0x2898e,'quantity':0x1});}else _0x2db482['push']({'type':_0x36f444+'Container','element':_0x420a1f});}}}}}['_resolveDescriptionItems'](_0x4f98e2){const _0x2db0f8=this['_locale'],_0x2dfe70=[],_0x34133b=[],_0x1ef7fb=[];for(const _0xb4af37 of _0x4f98e2)switch(_0xb4af37['type']){case'text':if(_0xb4af37['add']=_0xb4af37['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0xb4af37['remove']=_0xb4af37['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0xb4af37['add']&&''!=_0xb4af37['remove']){_0x2dfe70['push']({'type':'replace','content':o(_0x2db0f8,'REPLACE_TEXT',['\x22'+_0xb4af37['remove']+'\x22','\x22'+_0xb4af37['add']+'\x22'])});continue;}if(null!=_0xb4af37['add']['match'](/^ +$/)){_0x2dfe70['push']({'type':'insertion','content':o(_0x2db0f8,'*Insert:*\x20%0',o(_0x2db0f8,'ELEMENT_SPACE',_0xb4af37['add']['length']))});continue;}if(null!=_0xb4af37['remove']['match'](/^ +$/)){_0x2dfe70['push']({'type':'deletion','content':o(_0x2db0f8,'*Remove:*\x20%0',o(_0x2db0f8,'ELEMENT_SPACE',_0xb4af37['remove']['length']))});continue;}if(''!=_0xb4af37['add']){_0x2dfe70['push']({'type':'insertion','content':o(_0x2db0f8,'*Insert:*\x20%0','\x22'+_0xb4af37['add']+'\x22')});continue;}_0x2dfe70['push']({'type':'deletion','content':o(_0x2db0f8,'*Remove:*\x20%0','\x22'+_0xb4af37['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2dfe70['push']({'type':'insertion','content':o(_0x2db0f8,'*Insert:*\x20%0',this['getItemLabel'](_0xb4af37['element'],_0xb4af37['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2dfe70['push']({'type':'deletion','content':o(_0x2db0f8,'*Remove:*\x20%0',this['getItemLabel'](_0xb4af37['element'],_0xb4af37['quantity']))});continue;case'addContainer':_0x2dfe70['push']({'type':'insertion','content':o(_0x2db0f8,'*Split:*\x20%0',this['getItemLabel'](_0xb4af37['element'],_0xb4af37['quantity']))});continue;case'removeContainer':_0x2dfe70['push']({'type':'deletion','content':o(_0x2db0f8,'*Merge:*\x20%0',this['getItemLabel'](_0xb4af37['element'],_0xb4af37['quantity']))});continue;case'addFormat':_0x34133b['push'](_0xb4af37['key']);continue;case'removeFormat':_0x1ef7fb['push'](_0xb4af37['key']);continue;default:_0x2dfe70['push'](_0xb4af37);}if(_0x34133b['length']){const _0x39a99f=_0x34133b['map'](_0x5958bc=>this['_attributeLabels']['has'](_0x5958bc)?this['_attributeLabels']['get'](_0x5958bc):_0x5958bc)['join'](',\x20');_0x2dfe70['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x39a99f)});}if(_0x1ef7fb['length']){const _0x12a1f1=_0x1ef7fb['map'](_0x4e4eb7=>this['_attributeLabels']['has'](_0x4e4eb7)?this['_attributeLabels']['get'](_0x4e4eb7):_0x4e4eb7)['join'](',\x20');_0x2dfe70['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x12a1f1)});}return _0x2dfe70;}['_handleCustomCallbackDescription'](_0x4a7a30){for(const _0x6976f7 of this['_customCallbacks']){const _0x34047a=_0x6976f7(_0x4a7a30);if(_0x34047a&&'type'in _0x34047a)return _0x34047a;}}['_handleAttributeSuggestionDescription'](_0x9f46e7,_0x5bd830){const _0x58b36a=_0x5bd830['data'],_0x11b9c7=void 0x0===_0x58b36a['newValue']?'removeFormat':'addFormat';_0x9f46e7['push']({'type':_0x11b9c7,'key':_0x58b36a['key']});}['_handleRenameSuggestionDescription'](_0x2dbde4,_0x4b28b8){_0x2dbde4['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x4b28b8['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x43f648,_0x4b01a6,_0x46e4c6){if(this['_addDescriptionItems'](_0x43f648,_0x4b01a6),_0x46e4c6&&_0x46e4c6['getFirstRange']()&&!_0x4b01a6['getFirstRange']()['end']['isEqual'](_0x46e4c6['getFirstRange']()['start'])){const _0x491c85=_0x43f648[_0x43f648['length']-0x1],_0x3450f0='insertion'==_0x4b01a6['type']?'add':'remove';_0x491c85&&'text'==_0x491c85['type']&&(_0x491c85[_0x3450f0]+='\x0a');}}}class V extends _0xd0fe4f{['afterInit'](){const _0x4f4b41=this['editor'],_0x5cdf31=_0x4f4b41['plugins']['get']('TrackChangesEditing');_0x4f4b41['commands']['get']('showAIAssistant')&&_0x5cdf31['enableCommand']('showAIAssistant');}}class U extends _0xd0fe4f{['afterInit'](){const _0x25c8d3=this['editor'],_0xf5eac9=_0x25c8d3['locale'];if(!_0x25c8d3['plugins']['has']('AlignmentEditing'))return;const _0x41d3cc=_0x25c8d3['plugins']['get']('TrackChangesEditing');_0x41d3cc['enableDefaultAttributesIntegration']('alignment'),_0x41d3cc['registerBlockAttribute']('alignment'),_0x41d3cc['descriptionFactory']['registerAttributeLabel']('alignment',o(_0xf5eac9,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x11640e=this['editor'],_0x36bc18=_0x11640e['locale'];_0x11640e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2344b0=>{if('formatBlock'!=_0x2344b0['type'])return;const {data:_0x2b70a4}=_0x2344b0;if(_0x2b70a4&&'alignment'==_0x2b70a4['commandName']){const _0x410297=_0x2b70a4['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x36bc18,'*Format:*\x20%0',function(_0x1ad38e){switch(_0x1ad38e){case'left':return o(_0x36bc18,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x36bc18,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x36bc18,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x36bc18,'FORMAT_JUSTIFY_TEXT');}}(_0x410297))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0xd0fe4f{['afterInit'](){const _0x35bbec=this['editor'],_0x24cf55=_0x35bbec['plugins']['get']('TrackChangesEditing'),_0x4685f6=_0x35bbec['locale'];for(const _0x5f4397 of ti){if(!_0x35bbec['plugins']['has'](_0x5f4397))continue;const _0x46c1c6=_0x5f4397['slice'](0x0,-0x7)['toLowerCase'](),_0x4a3ca9='FORMAT_'+_0x46c1c6['toUpperCase']();_0x24cf55['enableDefaultAttributesIntegration'](_0x46c1c6),_0x24cf55['registerInlineAttribute'](_0x46c1c6),_0x24cf55['descriptionFactory']['registerAttributeLabel'](_0x46c1c6,o(_0x4685f6,_0x4a3ca9));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1466b4=this['editor'],_0x33a707=_0x1466b4['locale'],_0x56d35e=_0x1466b4['plugins']['get']('TrackChangesEditing');function _0x4476d4(_0x4de99b,_0x5b1ec7){_0x56d35e['descriptionFactory']['registerDescriptionCallback'](_0x29d388=>{if('formatInline'!=_0x29d388['type'])return;const {data:_0x1dcb9c}=_0x29d388;return _0x1dcb9c&&_0x1dcb9c['commandName']===_0x4de99b?_0x1dcb9c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x33a707,'*Format:*\x20%0',_0x5b1ec7)}:{'type':'format','content':o(_0x33a707,'*Remove\x20format:*\x20%0',_0x5b1ec7)}:void 0x0;});}_0x4476d4('bold',o(_0x33a707,'FORMAT_BOLD')),_0x4476d4('italic',o(_0x33a707,'FORMAT_ITALIC')),_0x4476d4('underline',o(_0x33a707,'FORMAT_UNDERLINE')),_0x4476d4('code',o(_0x33a707,'FORMAT_CODE')),_0x4476d4('strikethrough',o(_0x33a707,'FORMAT_STRIKETHROUGH')),_0x4476d4('subscript',o(_0x33a707,'FORMAT_SUBSCRIPT')),_0x4476d4('superscript',o(_0x33a707,'FORMAT_SUPERSCRIPT'));}}class F extends _0xd0fe4f{['afterInit'](){const _0x25a321=this['editor'],_0x4493a5=_0x25a321['locale'];if(!_0x25a321['plugins']['has']('BlockQuoteEditing'))return;const _0x19e406=_0x25a321['plugins']['get']('TrackChangesEditing'),_0x195063=this['editor']['commands']['get']('blockQuote');_0x19e406['enableCommand']('blockQuote',(_0x57a26f,_0x437ed3={})=>{const _0x404eb3=this['editor']['model']['document']['selection'],_0x4bc1f9=_0x437ed3&&void 0x0!==_0x437ed3['forceValue']?_0x437ed3['forceValue']:!_0x195063['value'];let _0x416145=[];if(_0x4bc1f9){const _0x23c706=Array['from'](_0x404eb3['getSelectedBlocks']())['filter'](_0x18c677=>oo(_0x18c677)||function(_0x1433af,_0x1efdf6){const _0x4afd58=_0x1efdf6['checkChild'](_0x1433af['parent'],'blockQuote'),_0x1fcac5=_0x1efdf6['checkChild'](['$root','blockQuote'],_0x1433af);return _0x4afd58&&_0x1fcac5;}(_0x18c677,this['editor']['model']['schema']));_0x416145=to(_0x23c706,_0x25a321['model']);}else{const _0x4e9ec2=Array['from'](_0x404eb3['getSelectedBlocks']())['filter'](_0x50368b=>oo(_0x50368b));_0x416145=to(_0x4e9ec2,_0x25a321['model']);}_0x25a321['model']['change'](()=>{for(const _0x2dea50 of _0x416145)_0x19e406['markBlockFormat'](_0x2dea50,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x4bc1f9}]});});}),_0x19e406['descriptionFactory']['registerDescriptionCallback'](_0x496d12=>{const {data:_0x514ed6}=_0x496d12;if(_0x514ed6&&'blockQuote'==_0x514ed6['commandName']){const _0x2eb5bf=o(_0x4493a5,'ELEMENT_BLOCK_QUOTE');return _0x514ed6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4493a5,'*Set\x20format:*\x20%0',_0x2eb5bf)}:{'type':'format','content':o(_0x4493a5,'*Remove\x20format:*\x20%0',_0x2eb5bf)};}});}}function oo(_0x370c0d){return'blockQuote'==_0x370c0d['parent']['name'];}class L extends _0xd0fe4f{['afterInit'](){const _0x1ab0c5=this['editor'];_0x1ab0c5['plugins']['has']('CaseChange')&&(_0x1ab0c5['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1ab0c5['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1ab0c5['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0xd0fe4f{['afterInit'](){const _0x2839ba=this['editor'];_0x2839ba['commands']['get']('ckbox')&&_0x2839ba['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0xd0fe4f{['afterInit'](){const _0x2ec224=this['editor'];if(!_0x2ec224['plugins']['has']('CodeBlock'))return;const _0x456a9e=_0x2ec224['plugins']['get']('TrackChangesEditing'),_0x1c3c87=_0x2ec224['locale'],_0x5a99c=_0x2ec224['config']['get']('codeBlock')['languages'],_0x211603=_0x2ec224['commands']['get']('codeBlock');_0x456a9e['enableCommand']('indentCodeBlock'),_0x456a9e['enableCommand']('outdentCodeBlock'),_0x456a9e['enableCommand']('codeBlock',(_0x4fe875,_0x751cae={})=>{const _0x235bee=_0x2ec224['model'],_0x341f69=_0x2ec224['model']['document']['selection'],_0x4a3a9f=_0x751cae&&void 0x0!==_0x751cae['forceValue']?_0x751cae['forceValue']:!_0x211603['value'];let _0x4764ca;_0x751cae['language']||(_0x751cae['language']=_0x5a99c[0x0]['language']),_0x4764ca=_0x4a3a9f?Array['from'](_0x341f69['getSelectedBlocks']())['filter'](_0x3f50ba=>eo(_0x3f50ba)||function(_0x2eb938,_0x5f1c99){if(_0x2eb938['is']('rootElement')||_0x5f1c99['isLimit'](_0x2eb938))return!0x1;return _0x5f1c99['checkChild'](_0x2eb938['parent'],'codeBlock');}(_0x3f50ba,_0x235bee['schema'])):Array['from'](_0x341f69['getSelectedBlocks']())['filter'](_0x75dc6b=>eo(_0x75dc6b));const _0x6b0f9a=to(_0x4764ca,_0x235bee);_0x235bee['change'](()=>{for(const _0x56b923 of _0x6b0f9a)_0x456a9e['markBlockFormat'](_0x56b923,{'commandName':'codeBlock','commandParams':[{..._0x751cae,'forceValue':_0x4a3a9f}],'formatGroupId':'blockName'});});}),(_0x456a9e['descriptionFactory']['registerElementLabel']('codeBlock',_0x827634=>o(_0x1c3c87,'ELEMENT_CODE_BLOCK',_0x827634)),_0x456a9e['descriptionFactory']['registerDescriptionCallback'](_0xe150f=>{if('formatBlock'!=_0xe150f['type'])return;const _0x629eeb=_0x1c3c87['t'],{data:_0x4557ca}=_0xe150f;if(!_0x4557ca||'codeBlock'!=_0x4557ca['commandName'])return;const _0x5ce391=_0x4557ca['commandParams'][0x0]['language'],_0x18abd6=_0x629eeb(_0x5a99c['find'](_0x3b4eb4=>_0x3b4eb4['language']===_0x5ce391)['label'])['toLowerCase']();return _0x4557ca['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1c3c87,'*Set\x20format:*\x20%0',o(_0x1c3c87,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x18abd6+')')}:{'type':'format','content':o(_0x1c3c87,'*Remove\x20format:*\x20%0',o(_0x1c3c87,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x328130){return'codeBlock'==_0x328130['name'];}class q extends _0xd0fe4f{['afterInit'](){const _0x105860=this['editor'];if(!_0x105860['plugins']['has']('CommentsEditing'))return;_0x105860['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x24d696,_0x1294ae,_0x505e8c){const _0x3ca7d0=[];for(const _0x4a5808 of _0x1294ae['getItems']())_0x4a5808['hasAttribute'](_0x24d696)&&_0x3ca7d0['push'](_0x505e8c['createRangeOn'](_0x4a5808));return _0x3ca7d0;}function _e(_0x4eb0cd,_0xc48d68,{showActiveMarker:_0x2be6f9=!0x0}={}){const _0x3291df=_0x4eb0cd['plugins']['get']('TrackChangesEditing');return(_0x279c5a,_0x34fba4,_0x1312af)=>{if(!_0x1312af['consumable']['test'](_0x34fba4['markerRange'],_0x279c5a['name']))return;const _0x35764a=_0x34fba4['markerRange']['getWalker'](),_0x36606e=_0x34fba4['markerRange']['start'],_0x16a27c=_0x4eb0cd['model']['schema'];let _0x41cd3c=null,_0x2a98c2=null,_0x54b202=!0x1,_0x25d3ad=!0x1;for(const _0x1d7645 of _0x35764a){const _0xa05776=_0x1d7645['item'];_0x54b202=_0x54b202||_0x16a27c['isContent'](_0xa05776);const _0x5e0097=_0x1312af['mapper']['toViewElement'](_0xa05776);if(_0x5e0097&&_0x5e0097['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1d7645['type']&&(_0x16a27c['isBlock'](_0xa05776)&&!_0x16a27c['isLimit'](_0xa05776)&&(_0xa05776['nextSibling']||_0x36606e['isAtEnd']?_0x41cd3c&&_0x41cd3c['parent']==_0xa05776||(_0x41cd3c=_0xa05776,_0x5d8ad4(_0x1d7645['previousPosition']),_0x25d3ad=!0x0):_0x2a98c2=_0x2a98c2||_0x1d7645['previousPosition']));}function _0x5d8ad4(_0x2b006b){const {authorId:_0x5a55f3}=_0x3291df['_splitMarkerName'](_0x34fba4['markerName']),_0x1e7b0f=_0x1312af['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xc48d68,'data-author-id':_0x5a55f3}),_0x162388=_0x1312af['mapper']['toViewPosition'](_0x2b006b);_0x2be6f9&&_0x3291df['activeMarkers']['includes'](_0x34fba4['markerName'])&&_0x1312af['writer']['addClass']('ck-suggestion-marker--active',_0x1e7b0f),_0x1312af['writer']['insert'](_0x162388,_0x1e7b0f),_0x1312af['mapper']['bindElementToMarker'](_0x1e7b0f,_0x34fba4['markerName']);}_0x54b202||_0x25d3ad||!_0x2a98c2||_0x5d8ad4(_0x2a98c2);};}class z extends _0xd0fe4f{static get['requires'](){return[_0x201443];}['init'](){const _0xc5058=this['editor'],_0x5b6728=_0xc5058['plugins']['get']('TrackChangesEditing');_0x5b6728['enableCommand']('delete');const _0x230efa=_0xc5058['commands']['get']('deleteForward');_0x5b6728['enableCommand']('deleteForward',(_0x25b8ce,_0x3921dc={})=>{const _0x5224c7=_0xc5058['model']['createSelection'](_0xc5058['model']['document']['selection']);_0x5224c7['isCollapsed']&&_0xc5058['model']['modifySelection'](_0x5224c7,{'direction':'forward','unit':_0x3921dc['unit']});const _0x5e6dfb=_0x5224c7['getFirstRange'](),_0x386270=_0x425d25['fromRange'](_0x5e6dfb);let _0xef3c84;_0x25b8ce(_0x3921dc),_0xef3c84='$graveyard'==_0x386270['root']['rootName']?_0xc5058['model']['createRange'](_0x5e6dfb['start']):_0xc5058['model']['createRange'](_0x386270['start'],_0x386270['end']),_0x386270['detach'](),_0xc5058['model']['enqueueChange'](_0x230efa['buffer']['batch'],_0x3f73f1=>{_0x230efa['buffer']['lock'](),_0x3f73f1['setSelection'](_0x3f73f1['createRange'](_0xef3c84['end'])),_0x230efa['buffer']['unlock']();});}),_0xc5058['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0xc5058,'merge'),{'priority':'high'}),_0xc5058['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x563a57,_0x17bd4e,_0x1d663f)=>{_0x1d663f['options']['showSuggestionHighlights']&&_e(_0xc5058,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x563a57,_0x17bd4e,_0x1d663f);},{'priority':'high'}),_0xc5058['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x5b0ce6,_0x2a3f44,_0x5622eb)=>{const _0xc8e3ae=_0x5622eb['mapper']['markerNameToElements'](_0x2a3f44['markerName']);if(_0xc8e3ae){for(const _0x393e7f of _0xc8e3ae)_0x393e7f['is']('uiElement')&&(_0x5622eb['mapper']['unbindElementFromMarkerName'](_0x393e7f,_0x2a3f44['markerName']),_0x5622eb['writer']['remove'](_0x393e7f));}},{'priority':'high'});}}class K extends _0xd0fe4f{['afterInit'](){const _0x3f5470=this['editor'];if(!_0x3f5470['plugins']['has']('ListEditing'))return;const _0x14d627=_0x3f5470['locale'],_0x107ceb=_0x3f5470['plugins']['get']('TrackChangesEditing'),_0x2febb=_0x3f5470['plugins']['has']('TodoListEditing'),_0x377f80=!!_0x3f5470['config']['get']('list.multiBlock');function _0x556dcb(_0x3f92b5){return{'type':'format','content':''+o(_0x14d627,'*Set\x20format:*\x20%0',_0x3f92b5)};}function _0x1db529(_0x517b1b){return{'type':'format','content':''+o(_0x14d627,'*Remove\x20format:*\x20%0',_0x517b1b)};}_0x107ceb['enableDefaultAttributesIntegration']('numberedList'),_0x107ceb['enableDefaultAttributesIntegration']('bulletedList'),_0x107ceb['enableDefaultAttributesIntegration']('customNumberedList'),_0x107ceb['enableDefaultAttributesIntegration']('customBulletedList'),_0x107ceb['enableDefaultAttributesIntegration']('indentList'),_0x107ceb['enableDefaultAttributesIntegration']('outdentList'),_0x107ceb['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x107ceb['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x107ceb['registerBlockAttribute']('listItemId'),_0x107ceb['registerBlockAttribute']('listType'),_0x107ceb['registerBlockAttribute']('listIndent'),_0x377f80&&(_0x107ceb['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x107ceb['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2febb&&(_0x107ceb['enableDefaultAttributesIntegration']('todoList'),_0x107ceb['enableDefaultAttributesIntegration']('checkTodoList'),_0x107ceb['registerBlockAttribute']('todoListChecked'),_0x107ceb['descriptionFactory']['registerDescriptionCallback'](_0x14a07f=>{const {data:_0x5e351c}=_0x14a07f;if(_0x5e351c&&'todoListChecked'==_0x5e351c['key'])return{'type':'format','content':_0x5e351c['newValue']?o(_0x14d627,'*Check\x20item*'):o(_0x14d627,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x34e852=>{if(_0x34e852['batch']['isUndo'])return!0x1;let _0x4cfd41=!0x1;const _0x495909=_0x107ceb['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x20bc8c=>'todoListChecked'===_0x107ceb['_getAttributeKey'](_0x20bc8c));for(const _0x2f086b of _0x495909){'todo'!=_0x2f086b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x107ceb['_findSuggestions'](_0x2f086b['getFirstRange'](),'attribute')['find'](_0x1019c9=>'listType'===_0x107ceb['_getAttributeKey'](_0x1019c9['suggestion']))||(_0x34e852['removeMarker'](_0x2f086b['getFirstMarker']()),_0x4cfd41=!0x0));}return _0x4cfd41;})),_0x107ceb['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x14d627,'FORMAT_INDENT'));const _0x23c56e={'type':'format','content':''};_0x107ceb['descriptionFactory']['registerDescriptionCallback'](_0x5b91ab=>{const {data:_0x36f3f3}=_0x5b91ab;if(!_0x36f3f3||'listType'!=_0x36f3f3['key'])return;let _0x46823a=_0x5b91ab['head'];for(;_0x46823a;){if(_0x46823a['data']&&(('listStyle'==_0x46823a['data']['key']||'listMarkerStyle'==_0x46823a['data']['key'])&&(_0x46823a['data']['newValue']&&'default'!=_0x46823a['data']['newValue']||'default'!=_0x46823a['data']['oldValue']&&!_0x36f3f3['newValue'])||!_0x377f80&&_0x46823a['data']['key']==m))return _0x23c56e;_0x46823a=_0x46823a['next'];}if(null==_0x36f3f3['newValue'])switch(_0x36f3f3['oldValue']){case'bulleted':return _0x1db529(o(_0x14d627,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1db529(o(_0x14d627,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1db529(o(_0x14d627,'ELEMENT_TODO_LIST'));}switch(_0x36f3f3['newValue']){case'bulleted':return _0x556dcb(o(_0x14d627,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x556dcb(o(_0x14d627,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x556dcb(o(_0x14d627,'ELEMENT_TODO_LIST'));}}),_0x107ceb['descriptionFactory']['registerDescriptionCallback'](_0x42567f=>{const {data:_0x49858a}=_0x42567f;if(_0x49858a&&'listIndent'==_0x49858a['key'])return null==_0x49858a['newValue']||null==_0x49858a['oldValue']&&0x0==_0x49858a['newValue']?_0x23c56e:void 0x0;}),_0x107ceb['descriptionFactory']['registerDescriptionCallback'](_0xf6de91=>{if('attribute'!=_0xf6de91['type'])return;const {data:_0x3ca4cb}=_0xf6de91;if(!_0x3ca4cb||'listItemId'!=_0x3ca4cb['key'])return;const _0x420b88=Ee(_0xf6de91);return'newValue'==_0x420b88?{'type':'format','content':o(_0x14d627,'*Merge:*\x20list\x20item')}:'oldValue'==_0x420b88?{'type':'format','content':o(_0x14d627,'*Split:*\x20list\x20item')}:_0x23c56e;}),_0x3f5470['model']['document']['registerPostFixer'](_0x2c864e=>this['listItemIdFixer'](_0x2c864e)),_0x3f5470['model']['document']['registerPostFixer'](_0x23db3c=>this['noTrackChangesFixer'](_0x23db3c)),_0x3f5470['model']['document']['on']('change:data',(_0x4af203,_0x5b7e52)=>{if(_0x5b7e52['isUndo']||!_0x5b7e52['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0xb8a456){if(_0xb8a456['batch']['isUndo']||!_0xb8a456['batch']['isLocal'])return!0x1;let _0x1d9f9f=!0x1;const _0x20169d=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x245d67=>_0x245d67['data']&&'listItemId'==_0x245d67['data']['key'])['filter'](_0xa424d3=>_0xa424d3['data']['newValue']&&_0xa424d3['data']['oldValue']);for(const _0x1d01a4 of _0x20169d)Ee(_0x1d01a4)||(_0xb8a456['removeMarker'](_0x1d01a4['getFirstMarker']()),_0x1d9f9f=!0x0);return _0x1d9f9f;}['noTrackChangesFixer'](_0x3d74a3){if(_0x3d74a3['batch']['isUndo']||!_0x3d74a3['batch']['isLocal'])return!0x1;const _0x75ebfe=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x75ebfe['trackChangesCommand']['value'])return!0x1;let _0x53507d=!0x1;const _0x2de581=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x2aefd9=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x38c6b7=>'attribute'==_0x38c6b7['type'])['filter'](_0x378f1c=>_0x2de581['includes'](_0x378f1c['attributeKey']));if(0x0==_0x2aefd9['length'])return _0x53507d;for(const _0x154a3c of _0x2aefd9){const _0x5bbe63=_0x75ebfe['_findSuggestions'](_0x154a3c['range'],'attribute')['filter'](_0x4f4dda=>!_0x4f4dda['meta']['isNextTo'])['map'](_0xf5fc80=>_0xf5fc80['suggestion'])['filter'](_0xfb773a=>{const _0x3f9041=_0x75ebfe['_getAttributeKey'](_0xfb773a);return _0x2de581['includes'](_0x3f9041);});if(_0x5bbe63['length']){for(const _0x21e9ed of _0x5bbe63)_0x3d74a3['removeMarker'](_0x21e9ed['getFirstMarker']());_0x53507d=!0x0;}}return _0x53507d;}['assureChains'](){const _0x12ad42=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5ebd0d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x47504a;const _0x20b91c=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x489a93=>{if(_0x489a93['data']['oldRange']||!_0x489a93['data']['newRange'])return null;if(!_0x489a93['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x497c22}=_0x12ad42['_splitMarkerName'](_0x489a93['name']);if(!_0x12ad42['hasSuggestion'](_0x497c22))return null;const _0x37b9ea=_0x12ad42['getSuggestion'](_0x497c22);return _0x5ebd0d['includes'](_0x37b9ea['data']['key']);})['map'](_0x571a78=>{const {id:_0x394f47}=_0x12ad42['_splitMarkerName'](_0x571a78['name']),_0x20211c=_0x12ad42['getSuggestion'](_0x394f47);return _0x47504a=_0x20211c['attributes']['groupId'],_0x20211c['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x20b91c['size'])return;const _0x4622b7=_0x12ad42['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xf311a6=>'attribute'==_0xf311a6['type']&&_0xf311a6['data']&&_0x5ebd0d['includes'](_0xf311a6['data']['key'])&&_0xf311a6['attributes']['groupId']!=_0x47504a)['map'](_0x3db588=>({'listItem':_0x3db588['getFirstRange']()['start']['nodeAfter'],'groupId':_0x3db588['attributes']['groupId']})),_0xad04c0=new Set();for(const {groupId:_0x45b6ff,listItem:_0x4bf58e}of _0x4622b7)_0x20b91c['has'](_0x4bf58e)&&_0xad04c0['add'](_0x45b6ff);for(const _0x8989cc of _0x12ad42['getSuggestions']())_0xad04c0['has'](_0x8989cc['attributes']['groupId'])&&_0x8989cc['setAttribute']('groupId',_0x47504a);}['_supportLegacySuggestions'](){const _0x2e13a7=this['editor'],_0x2d3a32=_0x2e13a7['locale'],_0xf30f2b=_0x2e13a7['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0xf30f2b['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1a425a,_0x18b443){const _0x4181cd=[];for(let _0x27c806 of _0x1a425a)_0x27c806['start']['nodeAfter']===_0x27c806['end']['parent']&&(_0x27c806=_0x2e13a7['model']['createRange'](_0x2e13a7['model']['createPositionAt'](_0x27c806['start']['nodeAfter'],0x0))),_0x4181cd['push'](_0x27c806);_0x2e13a7['model']['change'](_0x4b091=>{const _0x4c16fa=_0x2e13a7['model']['document']['selection'],_0x1c7362=Array['from'](_0x4c16fa['getRanges']())['map'](_0x5e5c1e=>_0x425d25['fromRange'](_0x5e5c1e));_0x4b091['setSelection'](_0x4181cd),_0x2e13a7['commands']['get'](_0x18b443['commandName'])['refresh'](),_0x18b443['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2e13a7['execute'](_0x18b443['commandName'],..._0x18b443['commandParams']),_0x4b091['setSelection'](_0x1c7362);for(const _0x2b1b0d of _0x1c7362)_0x2b1b0d['detach']();});}),_0xf30f2b['descriptionFactory']['registerElementLabel'](function(_0x137f5e){const _0x679245=!_0x2e13a7['model']['schema']['isObject'](_0x137f5e),_0x1fd376=_0x137f5e['previousSibling'],_0x575fb8=_0x137f5e['nextSibling'],_0xd23a07=_0x137f5e['getAttribute']('listItemId'),_0x416080=!_0x1fd376||_0x1fd376['getAttribute']('listItemId')!==_0xd23a07,_0x37a922=!_0x575fb8||_0x575fb8['getAttribute']('listItemId')!==_0xd23a07;return _0x679245&&Boolean(_0xd23a07)&&_0x416080&&_0x37a922;},_0x4bc1fc=>o(_0x2d3a32,'ELEMENT_LIST_ITEM',_0x4bc1fc));}['_registerLegacyDescription'](){const _0x22a2f7=this['editor'],_0x3da765=_0x22a2f7['locale'];function _0x1b0a4b(_0x1be32a){const _0x101348=_0x22a2f7['commands']['get']('bulletedList')['value'],_0x1bff1c=_0x22a2f7['commands']['get']('numberedList')['value'];return'numberedList'===_0x1be32a?_0x101348:_0x1bff1c;}_0x22a2f7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0xc8b30e){if('formatBlock'!=_0xc8b30e['type'])return;const {data:_0x26b192}=_0xc8b30e;if(!_0x26b192)return;let _0x5609ba,_0x4d50a0,_0x82d0b6,_0x299a29;switch(_0x26b192['commandName']){case'bulletedList':_0x82d0b6=_0x26b192['commandParams'][0x0]['forceValue'],_0x299a29=_0x1b0a4b(_0x26b192['commandName']),_0x5609ba=_0x82d0b6?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x299a29&&_0x22a2f7['config']['get']('list.multiBlock')||(_0x5609ba='*Change\x20to:*\x20%0'),_0x4d50a0={'type':'format','content':o(_0x3da765,_0x5609ba,o(_0x3da765,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x82d0b6=_0x26b192['commandParams'][0x0]['forceValue'],_0x299a29=_0x1b0a4b(_0x26b192['commandName']),_0x5609ba=_0x82d0b6?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x299a29&&_0x22a2f7['config']['get']('list.multiBlock')||(_0x5609ba='*Change\x20to:*\x20%0'),_0x4d50a0={'type':'format','content':o(_0x3da765,_0x5609ba,o(_0x3da765,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x5609ba='*Indent:*\x20%0',_0x4d50a0={'type':'format','content':o(_0x3da765,_0x5609ba,o(_0x3da765,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x5609ba=function(_0x5977cb){const _0x5dc69e=_0x5977cb['getFirstRange']();let _0x553a30=_0x5dc69e['start']['nodeAfter'];for(;_0x553a30&&_0x5dc69e['containsItem'](_0x553a30);){if(_0x553a30['getAttribute']('listIndent')>0x0)return!0x1;_0x553a30=_0x553a30['nextSibling'];}return!0x0;}(_0xc8b30e)?o(_0x3da765,'*Format:*\x20remove\x20from\x20%0',o(_0x3da765,function(_0x225176){return'ELEMENT_'+_0x225176['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0xc8b30e))):o(_0x3da765,'*Outdent:*\x20%0',o(_0x3da765,'ELEMENT_LIST_ITEM')),_0x4d50a0={'type':'format','content':_0x5609ba};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x26b192['multipleBlocks']&&(_0x5609ba='*Merge:*\x20%0',_0x4d50a0={'type':'deletion','content':o(_0x3da765,_0x5609ba,o(_0x3da765,'ELEMENT_LIST_ITEM'))});}return _0x4d50a0;});}}function Ee(_0x37ae67){let _0x52479d=_0x37ae67['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x52479d;){const _0x2348ac=_0x52479d['getAttribute']('listItemId');if(!_0x2348ac)return!0x1;if(_0x2348ac==_0x37ae67['data']['newValue'])return'newValue';if(_0x2348ac==_0x37ae67['data']['oldValue'])return'oldValue';_0x52479d=_0x52479d['previousSibling'];}return!0x1;}class pe extends _0xd0fe4f{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x30da7d=this['editor']['config']['get']('list.properties'),_0x52f1f0=this['editor']['plugins']['get']('TrackChangesEditing');_0x30da7d['styles']&&(_0x52f1f0['enableDefaultAttributesIntegration']('listStyle'),_0x52f1f0['registerBlockAttribute']('listStyle')),_0x30da7d['reversed']&&(_0x52f1f0['enableDefaultAttributesIntegration']('listReversed'),_0x52f1f0['registerBlockAttribute']('listReversed')),_0x30da7d['startIndex']&&(_0x52f1f0['enableDefaultAttributesIntegration']('listStart'),_0x52f1f0['registerBlockAttribute']('listStart'));const _0x3ac669={'type':'format','content':''};_0x52f1f0['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x230e7e=this['editor']['locale'];_0x52f1f0['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x230e7e,'FORMAT_LIST_REVERSED')),_0x52f1f0['descriptionFactory']['registerDescriptionCallback'](_0x3f35db=>{const {data:_0x59ca7e}=_0x3f35db;if(_0x59ca7e&&'listReversed'==_0x59ca7e['key'])return null==_0x59ca7e['newValue']||0x0==_0x59ca7e['newValue']&&null==_0x59ca7e['oldValue']?_0x3ac669:void 0x0;}),_0x52f1f0['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x230e7e,'FORMAT_LIST_START')),_0x52f1f0['descriptionFactory']['registerDescriptionCallback'](_0x5c618b=>{const {data:_0x53422f}=_0x5c618b;if(_0x53422f&&'listStart'==_0x53422f['key'])return null==_0x53422f['newValue']||0x1==_0x53422f['newValue']&&null==_0x53422f['oldValue']?_0x3ac669:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x39c4a2=>{if(_0x39c4a2['batch']['isUndo'])return!0x1;let _0x3dff93=!0x1;const _0x478d3f=_0x52f1f0['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1a976e=>{const _0xb0f899=_0x52f1f0['_getAttributeKey'](_0x1a976e);return'listStart'==_0xb0f899||'listReversed'==_0xb0f899;});for(const _0xabe9a9 of _0x478d3f){const _0x3a591b=_0xabe9a9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x3a591b||'customNumbered'==_0x3a591b)continue;_0x52f1f0['_findSuggestions'](_0xabe9a9['getFirstRange'](),'attribute')['find'](_0x533c32=>'listType'==_0x52f1f0['_getAttributeKey'](_0x533c32['suggestion']))||(_0x39c4a2['removeMarker'](_0xabe9a9['getFirstMarker']()),_0x3dff93=!0x0);}return _0x3dff93;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x513216){const _0x3d2df3=this['editor']['locale'],{data:_0x25033c}=_0x513216,_0x33b32c={'type':'format','content':''};if(!_0x25033c||'listStyle'!=_0x25033c['key'])return;if(!_0x25033c['oldValue'])return'default'==_0x25033c['newValue']?_0x33b32c:{'type':'format','content':''+o(_0x3d2df3,'*Set\x20format:*\x20%0',o(_0x3d2df3,this['_getTranslationKeyForListStyle'](_0x25033c['newValue'])))};if(!_0x25033c['newValue']){if('default'==_0x25033c['oldValue'])return _0x33b32c;let _0x26b052=_0x513216['head'];for(;_0x26b052;){if(_0x26b052['data']&&'listType'==_0x26b052['data']['key']&&_0x26b052['data']['newValue'])return _0x33b32c;_0x26b052=_0x26b052['next'];}return{'type':'format','content':''+o(_0x3d2df3,'*Remove\x20format:*\x20%0',o(_0x3d2df3,this['_getTranslationKeyForListStyle'](_0x25033c['oldValue'])))};}if('default'!=_0x25033c['newValue'])return{'type':'format','content':''+o(_0x3d2df3,'*Set\x20format:*\x20%0',o(_0x3d2df3,this['_getTranslationKeyForListStyle'](_0x25033c['newValue'])))};let _0x49360f=_0x513216['head'];for(;_0x49360f;){if(_0x49360f['data']&&'listType'==_0x49360f['data']['key']&&_0x49360f['data']['newValue']&&_0x49360f['data']['oldValue'])return _0x33b32c;_0x49360f=_0x49360f['next'];}return{'type':'format','content':o(_0x3d2df3,'*Set\x20format:*\x20%0',o(_0x3d2df3,'ELEMENT_'+_0x513216['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x3eaf4c=this['editor'],_0x57174a=_0x3eaf4c['locale'];_0x3eaf4c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d1269=>{if('formatBlock'!=_0x3d1269['type'])return;const {data:_0x1b0bd7}=_0x3d1269;if(!_0x1b0bd7)return;let _0x25d990,_0x565467;switch(_0x1b0bd7['commandName']){case'listStyle':_0x25d990='*Change\x20to:*\x20%0',_0x565467={'type':'format','content':o(_0x57174a,_0x25d990,o(_0x57174a,this['_getTranslationKeyForListStyle'](_0x1b0bd7['commandParams'][0x0]['type'])))};break;case'listReversed':_0x25d990=_0x1b0bd7['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x565467={'type':'format','content':o(_0x57174a,_0x25d990)};break;case'listStart':_0x25d990='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x565467={'type':'format','content':o(_0x57174a,_0x25d990,_0x1b0bd7['commandParams'][0x0]['startIndex'])};}return _0x565467;});}['_getTranslationKeyForListStyle'](_0x187f30){return'ELEMENT_'+function(_0x1cb1ae){if(ye['includes'](_0x1cb1ae))return'bulleted';if(Se['includes'](_0x1cb1ae))return'numbered';return null;}(_0x187f30)['toUpperCase']()+'_LIST_'+_0x187f30['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0xd0fe4f{static get['requires'](){return[_0x31c29d];}['init'](){const _0x52cf18=this['editor'],_0x2537db=_0x52cf18['plugins']['get']('TrackChangesEditing'),_0x23a0e4=_0x52cf18['commands']['get']('enter');_0x2537db['enableCommand']('enter',()=>{_0x52cf18['model']['change'](_0x13b3ec=>{const _0x4abdef=_0x52cf18['model']['document']['selection'],_0x3fa418=_0x4abdef['getFirstPosition'](),_0x3c21cd=_0x425d25['fromRange'](_0x4abdef['getFirstRange']());if(_0x23a0e4['enterBlock'](_0x13b3ec)){const _0x4a62d7=_0x52cf18['model']['createPositionAt'](_0x3fa418['parent']['nextSibling'],0x0),_0x3340c6=_0x13b3ec['createRange'](_0x3fa418,_0x4a62d7);_0x2537db['markInsertion'](_0x3340c6);}else _0x13b3ec['setSelection'](_0x13b3ec['createRange'](_0x3c21cd['end']));_0x3c21cd['detach'](),_0x23a0e4['fire']('afterExecute',{'writer':_0x13b3ec});});}),_0x52cf18['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x52cf18,'split'),{'priority':'high'}),_0x52cf18['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x21b963,_0x1e7123,_0x553ec6)=>{const _0x458fb3=_0x553ec6['mapper']['markerNameToElements'](_0x1e7123['markerName']);if(_0x458fb3){for(const _0x669089 of _0x458fb3)_0x669089['hasClass']('ck-suggestion-marker-split')&&(_0x553ec6['mapper']['unbindElementFromMarkerName'](_0x669089,_0x1e7123['markerName']),_0x553ec6['writer']['remove'](_0x669089));}},{'priority':'high'}),_0x52cf18['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1ce8b3,_0x1f9f34,_0x497bd5)=>{_0x497bd5['options']['showSuggestionHighlights']&&_e(_0x52cf18,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x1ce8b3,_0x1f9f34,_0x497bd5);},{'priority':'high'});}}class X extends _0xd0fe4f{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x39448e=this['editor']['plugins']['get']('TrackChangesEditing');_0x39448e['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x39448e['enableCommand']('findNext'),_0x39448e['enableCommand']('findPrevious'),_0x39448e['enableCommand']('replace'),_0x39448e['enableCommand']('replaceAll');}['handleFindCommand'](_0x1de632,_0x594126,_0x5a58e9={}){const _0x45678c=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1de632(_0x414371=>{let _0x674366=('string'==typeof _0x594126?_0x45678c['findByTextCallback'](_0x594126,_0x5a58e9):_0x594126)(_0x414371);Array['isArray'](_0x674366)&&(_0x674366={'results':_0x674366,'searchText':'string'==typeof _0x594126?_0x594126:''});const _0x1eddad=_0x674366['results']['filter'](_0x5a7c6c=>!0x1===this['_isInDeletionRange'](_0x5a7c6c,_0x414371['item']));return{..._0x674366,'results':_0x1eddad};},_0x5a58e9);}['_isInDeletionRange'](_0x360472,_0x219cd8){const _0x44ade7=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x219cd8,_0x360472['start']),this['editor']['model']['createPositionAt'](_0x219cd8,_0x360472['end']));for(const _0x3e5997 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x44ade7['getIntersection'](_0x3e5997['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0xd0fe4f{['afterInit'](){const _0x1c96d3=this['editor']['locale'],_0x19d55a=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2c5869,commandName:_0x140898}of ro)this['editor']['plugins']['has'](_0x2c5869)&&(_0x19d55a['enableDefaultAttributesIntegration'](_0x140898),_0x19d55a['registerInlineAttribute'](_0x140898));_0x19d55a['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x1c96d3,'FORMAT_FONT_SIZE')),_0x19d55a['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x1c96d3,'FORMAT_FONT_FAMILY')),_0x19d55a['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x1c96d3,'FORMAT_FONT_COLOR')),_0x19d55a['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x1c96d3,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x470abf=this['editor'],_0x4f4eee=_0x470abf['locale'];_0x470abf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2161ab=>{const _0x2061f6=_0x4f4eee['t'];if('formatInline'!=_0x2161ab['type'])return;const {data:_0x57640}=_0x2161ab;if(null!=_0x57640){if('fontSize'==_0x57640['commandName']){const _0x497e34=_0x57640['commandParams'][0x0]['value'];if(_0x497e34){const _0x4e8162=_0x2061f6(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x390f34=>_0x390f34['model']==_0x497e34)['title'])['toLowerCase']();return{'type':'format','content':o(_0x4f4eee,'*Set\x20font\x20size:*\x20%0',_0x4e8162)};}return{'type':'format','content':o(_0x4f4eee,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x57640['commandName']){const _0xacdf47=_0x57640['commandParams'][0x0]['value'];return _0xacdf47?{'type':'format','content':o(_0x4f4eee,'*Set\x20font\x20family:*\x20%0',_0xacdf47)}:{'type':'format','content':o(_0x4f4eee,'*Reset\x20font\x20family*')};}if('fontColor'==_0x57640['commandName']){const _0x1f1792=_0x57640['commandParams'][0x0]['value'];if(_0x1f1792){const _0x32d232=_0x5649af(this['editor']['config']['get']('fontColor.colors'))['find'](_0x165370=>_0x165370['model']==_0x1f1792);let _0x48fc4d=_0x1f1792,_0x5dbed3='';return _0x32d232&&(_0x48fc4d=_0x32d232['label'],_0x5dbed3=_0x2061f6(_0x48fc4d)['toLowerCase']()),{'type':'format','content':o(_0x4f4eee,'*Set\x20font\x20color:*\x20%0',_0x5dbed3)['trim'](),'color':{'value':_0x1f1792,'title':_0x5dbed3||_0x48fc4d}};}return{'type':'format','content':o(_0x4f4eee,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x57640['commandName']){const _0x35e7d9=_0x57640['commandParams'][0x0]['value'];if(_0x35e7d9){const _0x53f263=_0x5649af(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0xfe921e=>_0xfe921e['model']==_0x35e7d9);let _0x472967=_0x35e7d9,_0x16f582='';return _0x53f263&&(_0x472967=_0x53f263['label'],_0x16f582=_0x2061f6(_0x472967)['toLowerCase']()),{'type':'format','content':o(_0x4f4eee,'*Set\x20font\x20background\x20color:*\x20%0',_0x16f582)['trim'](),'color':{'value':_0x35e7d9,'title':_0x16f582||_0x472967}};}return{'type':'format','content':o(_0x4f4eee,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0xd0fe4f{['afterInit'](){const _0x17df47=this['editor'],_0x3e85c6=_0x17df47['plugins']['get']('TrackChangesEditing'),_0x45c870=_0x17df47['commands']['get']('copyFormat'),_0x4b543c=_0x17df47['commands']['get']('pasteFormat');_0x45c870&&_0x4b543c&&(_0x3e85c6['enableDefaultAttributesIntegration']('pasteFormat'),_0x3e85c6['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0xab5644=this['editor'],_0x2ad89c=_0xab5644['locale'];_0xab5644['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5702f2=>{if('formatBlock'!=_0x5702f2['type']&&'formatInline'!=_0x5702f2['type'])return;const {data:_0x5af7a8}=_0x5702f2;if(_0x5af7a8&&'pasteFormat'===_0x5af7a8['commandName']){const _0x40a5c=[],_0x520064=_0x5af7a8['commandParams'][0x0];for(const [_0x39a159,_0xbe061b]of Object['entries'](_0x520064))_0x40a5c['push'](so(_0xab5644,_0x39a159,_0xbe061b));return _0x40a5c['length']?{'type':'format','content':o(_0x2ad89c,'*Set\x20format\x20to:*\x20%0',_0x40a5c['join'](',\x20'))}:{'type':'format','content':o(_0x2ad89c,'*Remove\x20all\x20formatting*')};}});}}function so(_0x3509cc,_0x308889,_0x2d9666){const _0x448bd3=_0x3509cc['locale']['t'],_0x3e6ed7=_0x308889['split'](/(?=[A-Z])/)['join']('\x20'),_0x54c8c3=_0x448bd3(_0x3e6ed7['charAt'](0x0)['toUpperCase']()+_0x3e6ed7['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x2d9666)return _0x54c8c3;if('fontColor'===_0x308889||'fontBackgroundColor'===_0x308889){const _0x8768b=_0x5649af(_0x3509cc['config']['get']('fontColor.colors'))['find'](_0xe1a8fc=>_0xe1a8fc['model']==_0x2d9666);return _0x54c8c3+'\x20('+(_0x8768b?_0x448bd3(_0x8768b['label'])['toLowerCase']():_0x2d9666)+')';}if('fontSize'===_0x308889&&isNaN(parseFloat(_0x2d9666))){const _0x63662a=_0x3509cc['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3509cc['config']['get']('fontSize.options'))['find'](_0x3b2ea0=>_0x3b2ea0['model']==_0x2d9666);return _0x54c8c3+'\x20('+(_0x63662a?_0x448bd3(_0x63662a['title'])['toLowerCase']():_0x2d9666)+')';}return _0x54c8c3+'\x20('+_0x2d9666+')';}class tt extends _0xd0fe4f{['_headingOptions'];['afterInit'](){const _0xc256b1=this['editor'];if(!_0xc256b1['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0xc256b1['config']['get']('heading.options');const _0x575286=_0xc256b1['locale'],_0x258e88=_0xc256b1['plugins']['get']('TrackChangesEditing');_0x258e88['enableDefaultAttributesIntegration']('heading');for(const _0x4c4882 of this['_headingOptions'])'paragraph'!=_0x4c4882['model']&&_0x258e88['descriptionFactory']['registerElementLabel'](_0x4c4882['model'],_0x1ec49c=>{const _0x576e84=this['_getHeadingLevel'](_0x4c4882['model']);return null!==_0x576e84?_0x5c6b9f(_0x1ec49c,_0x576e84):_0x3750a7(_0x1ec49c,_0x4c4882['title']);});function _0x5c6b9f(_0x506ee6,_0x525b18){return o(_0x575286,'ELEMENT_HEADING',[_0x506ee6,_0x525b18]);}function _0x3750a7(_0x5cfd17,_0x4f2625){return o(_0x575286,'ELEMENT_HEADING_CUSTOM',[_0x5cfd17,_0x4f2625]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xac3226=this['editor'],_0x5ce8fe=_0xac3226['locale'];function _0x4a7268(_0xfb5501,_0x40df0d){return o(_0x5ce8fe,'ELEMENT_HEADING_CUSTOM',[_0xfb5501,_0x40df0d]);}_0xac3226['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf46c69=>{if('formatBlock'!=_0xf46c69['type'])return;const {data:_0x4d9723}=_0xf46c69;if(_0x4d9723&&'heading'==_0x4d9723['commandName']){const _0x25e63d=_0x4d9723['commandParams'][0x0]['value'],_0x7eb8ee=this['_getHeadingLevel'](_0x25e63d);if(null!==_0x7eb8ee)return{'type':'format','content':o(_0x5ce8fe,'*Change\x20to:*\x20%0',(_0x239578=0x1,_0x27ae97=_0x7eb8ee,o(_0x5ce8fe,'ELEMENT_HEADING',[_0x239578,_0x27ae97])))};const _0x377e52=this['_headingOptions']['find'](_0x2a47d3=>_0x2a47d3['model']===_0x25e63d)['title'];return{'type':'format','content':o(_0x5ce8fe,'*Change\x20to:*\x20%0',_0x4a7268(0x1,_0x377e52))};}var _0x239578,_0x27ae97;});}['_getHeadingLevel'](_0x40d039){const _0x902947=_0x40d039['match'](/^heading(\d+)/);if(_0x902947)return _0x902947[0x1];const _0x2ec9b1=this['_headingOptions']?.['find'](_0x3f738c=>_0x3f738c['model']==_0x40d039);if(_0x2ec9b1&&_0x2ec9b1['view']){const _0x474f16=_0x2ec9b1['view'],_0x351c74=(_0x474f16['name']??_0x474f16)['match'](/^h(\d+)/);if(_0x351c74)return _0x351c74[0x1];}return null;}}class et extends _0xd0fe4f{['afterInit'](){const _0x3181eb=this['editor'];if(!_0x3181eb['plugins']['has']('HighlightEditing'))return;const _0x469ca2=_0x3181eb['plugins']['get']('TrackChangesEditing'),_0x151bf4=_0x3181eb['locale'];_0x469ca2['enableDefaultAttributesIntegration']('highlight'),_0x469ca2['registerInlineAttribute']('highlight'),_0x469ca2['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x151bf4,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5c3803=this['editor'],_0x16063a=_0x5c3803['locale'];_0x5c3803['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5031d4=>{if('formatInline'!=_0x5031d4['type'])return;const {data:_0x1b8cc4}=_0x5031d4;if(_0x1b8cc4&&'highlight'==_0x1b8cc4['commandName']){const _0x361d35=_0x16063a['t'],_0x35c6de=_0x1b8cc4['commandParams'][0x0]['value'];if(_0x35c6de){const _0x52411b=_0x5c3803['config']['get']('highlight.options')['find'](_0x27685b=>_0x27685b['model']==_0x35c6de),_0x44c1f7=_0x361d35(_0x52411b['title'])['toLowerCase']();return{'type':'format','content':o(_0x16063a,'*Set\x20highlight:*\x20%0',_0x44c1f7),'color':{'value':_0x52411b['color'],'title':_0x52411b['title']}};}return{'type':'format','content':o(_0x16063a,'*Remove\x20highlight*',o(_0x16063a,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0xd0fe4f{['afterInit'](){const _0x1b9a5f=this['editor'];if(!_0x1b9a5f['plugins']['has']('HorizontalLineEditing'))return;_0x1b9a5f['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x1b86e3=_0x1b9a5f['plugins']['get']('TrackChangesEditing'),_0x4650d4=_0x1b9a5f['locale'];_0x1b86e3['descriptionFactory']['registerElementLabel']('horizontalLine',_0x40c560=>o(_0x4650d4,'ELEMENT_HORIZONTAL_LINE',_0x40c560)),_0x1b9a5f['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x48a467,{writer:_0x25b218,options:_0x5733ed})=>{if(!_0x5733ed['showSuggestionHighlights'])return null;const _0x434729=_0x25b218['createContainerElement']('div'),_0x242829=_0x25b218['createEmptyElement']('hr');return _0x25b218['addClass']('ck-horizontal-line',_0x434729),_0x25b218['insert'](_0x25b218['createPositionAt'](_0x434729,0x0),_0x242829),_0x434729;},'converterPriority':'high'});}}class st extends _0xd0fe4f{['afterInit'](){const _0x577967=this['editor'];if(!_0x577967['plugins']['has']('HtmlEmbed'))return;const _0x29a52f=_0x577967['plugins']['get']('TrackChangesEditing'),_0x5a3823=_0x577967['locale'];_0x29a52f['descriptionFactory']['registerElementLabel']('rawHtml',_0x4d0bef=>o(_0x5a3823,'ELEMENT_HTML_EMBED',_0x4d0bef)),_0x29a52f['enableDefaultAttributesIntegration']('htmlEmbed'),_0x29a52f['registerBlockAttribute']('value'),_0x29a52f['descriptionFactory']['registerDescriptionCallback'](_0x3d3d36=>{if('attribute'!=_0x3d3d36['type'])return;const {data:_0x56abbc}=_0x3d3d36;if(_0x56abbc&&'value'==_0x56abbc['key']&&_0x3d3d36['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x50b596=o(_0x5a3823,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5a3823,'*Change\x20%0\x20content*',_0x50b596)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x55740a=this['editor'],_0x2d11fe=_0x55740a['locale'];_0x55740a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e8526=>{if('formatBlock'!=_0x3e8526['type'])return;const {data:_0x38ec31}=_0x3e8526;if(_0x38ec31&&'htmlEmbed'==_0x38ec31['commandName']){const _0x3470ac=o(_0x2d11fe,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2d11fe,'*Change\x20%0\x20content*',_0x3470ac)};}});}}class nt extends _0xd0fe4f{['afterInit'](){const _0x3e7aa5=this['editor'];if(!_0x3e7aa5['plugins']['has']('ImageEditing'))return;const _0x8308e8=_0x3e7aa5['plugins']['get']('TrackChangesEditing'),_0x11d8e7=_0x3e7aa5['plugins']['get']('ImageUtils'),_0x4b11ac=_0x3e7aa5['locale'];_0x8308e8['enableCommand']('insertImage'),_0x8308e8['descriptionFactory']['registerElementLabel']('imageBlock',_0x3de0e5=>o(_0x4b11ac,'ELEMENT_IMAGE',_0x3de0e5)),_0x8308e8['descriptionFactory']['registerElementLabel']('imageInline',_0x17407c=>o(_0x4b11ac,'ELEMENT_INLINE_IMAGE',_0x17407c)),_0x8308e8['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x4b11ac,'ELEMENT_CAPTION')),_0x3e7aa5['plugins']['has']('ImageUploadEditing')&&_0x8308e8['enableCommand']('uploadImage'),_0x3e7aa5['plugins']['has']('ImageBlockEditing')&&_0x3e7aa5['plugins']['has']('ImageInlineEditing')&&(_0x8308e8['enableCommand']('imageTypeInline',(_0x450417,_0x17fcfb)=>{const _0x5a17ba=_0x11d8e7['getClosestSelectedImageElement'](_0x3e7aa5['model']['document']['selection']);_0x3e7aa5['model']['change'](()=>{_0x8308e8['markBlockFormat'](_0x5a17ba,{'commandName':'imageTypeInline','commandParams':[_0x17fcfb]},[],'convertBlockImageToInline');});}),_0x8308e8['enableCommand']('imageTypeBlock',(_0x4952cb,_0x11df96)=>{_0x3e7aa5['model']['change'](_0x21331c=>{let _0x472956=_0x11d8e7['getClosestSelectedImageElement'](_0x3e7aa5['model']['document']['selection']),_0x59724a=_0x21331c['createRangeOn'](_0x472956);const _0x5f5d6c=_0x4906b7['fromPosition'](_0x59724a['start'],'toPrevious'),_0x141296=_0x4906b7['fromPosition'](_0x59724a['end'],'toNext');_0x8308e8['forceDefaultExecution'](()=>_0x4952cb(_0x11df96)),_0x472956=_0x11d8e7['getClosestSelectedImageElement'](_0x3e7aa5['model']['document']['selection']),_0x59724a=_0x21331c['createRangeOn'](_0x472956);const _0x2f4209=_0x21331c['createRange'](_0x5f5d6c,_0x141296);_0x5f5d6c['detach'](),_0x141296['detach'](),_0x8308e8['markBlockFormat'](_0x472956,{'commandName':'imageTypeInline','commandParams':[_0x11df96]},[],'convertInlineImageToBlock'),_0x2f4209['start']['isBefore'](_0x59724a['start'])&&_0x8308e8['markInsertion'](_0x21331c['createRange'](_0x2f4209['start'],_0x59724a['start']),'convertInlineImageToBlock'),_0x59724a['end']['isBefore'](_0x2f4209['end'])&&_0x8308e8['markInsertion'](_0x21331c['createRange'](_0x59724a['end'],_0x2f4209['end']),'convertInlineImageToBlock');});}),_0x8308e8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x8308e8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x8308e8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x8308e8['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x8308e8['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x8308e8['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3353d6])=>{const _0x4dcedc=_0x8308e8['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x42081d=_0x3353d6['start'],_0x58fdf5=_0x3353d6['end'];const _0xda60f0=_0x3e7aa5['model']['schema']['getNearestSelectionRange'](_0x42081d,'backward'),_0x7073b1=_0x3e7aa5['model']['schema']['getNearestSelectionRange'](_0x58fdf5,'forward');_0xda60f0['isCollapsed']&&(_0x42081d=_0xda60f0['start']),_0x7073b1['isCollapsed']&&(_0x58fdf5=_0x7073b1['end']),_0x4dcedc([_0x3e7aa5['model']['createRange'](_0x42081d,_0x58fdf5)]);}),_0x8308e8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x19572e),_0x8308e8['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x19572e)),_0x3e7aa5['plugins']['has']('ImageCaptionEditing')&&(_0x8308e8['enableCommand']('toggleImageCaption',(_0x5b9a1a,_0x2cb582)=>{const _0x284ea0=_0x3e7aa5['plugins']['get']('ImageCaptionUtils');let _0x538c84=_0x11d8e7['getClosestSelectedImageElement'](_0x3e7aa5['model']['document']['selection']),_0x1e46c4=_0x284ea0['getCaptionFromImageModelElement'](_0x538c84);_0x3e7aa5['model']['change'](()=>{if(_0x1e46c4)return void _0x8308e8['markDeletion'](_0x3e7aa5['model']['createRangeOn'](_0x1e46c4));const _0x2ecc40=_0x11d8e7['isBlockImage'](_0x538c84);_0x5b9a1a(_0x2cb582),_0x538c84=_0x11d8e7['getClosestSelectedImageElement'](_0x3e7aa5['model']['document']['selection']),_0x1e46c4=_0x284ea0['getCaptionFromImageModelElement'](_0x538c84),_0x8308e8['markInsertion'](_0x3e7aa5['model']['createRangeOn'](_0x1e46c4),_0x2ecc40?null:'imageCaption');});}),_0x8308e8['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x19572e));const _0x4bb790=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x6ca298(_0x50516e,_0x2590bf){const _0x27bb20=_0x4bb790['findIndex'](({type:_0xa3043,subType:_0x20bd8e})=>_0x50516e['type']==_0xa3043&&_0x50516e['subType']==_0x20bd8e),_0x569b71=_0x4bb790['findIndex'](({type:_0x5e0827,subType:_0x49081e})=>_0x2590bf['type']==_0x5e0827&&_0x2590bf['subType']==_0x49081e);if(_0x27bb20<0x0||_0x569b71<0x0)return!0x1;const _0x5cd171=_0x50516e['getFirstRange'](),_0x5cb819=_0x2590bf['getFirstRange']();if((0x0==_0x27bb20||0x1==_0x27bb20)&&0x2==_0x569b71&&_0x5cd171['isIntersecting'](_0x5cb819))return!0x0;if(0x2==_0x27bb20&&0x3==_0x569b71){const _0x20848d=_0x8308e8['_findSuggestions'](_0x5cd171,'insertion')['filter'](({suggestion:_0x285423,meta:_0x2f2af7})=>_0x2f2af7['isOwn']&&'convertInlineImageToBlock'==_0x285423['subType']);if(_0x20848d['length']>0x1&&_0x5cb819['end']['isEqual'](_0x5cd171['start']))return!0x0;if(0x1==_0x20848d['length']&&(_0x5cd171['start']['isEqual'](_0x5cb819['end'])||_0x5cd171['end']['isEqual'](_0x5cb819['start'])))return!0x0;}if(0x3==_0x27bb20&&0x3==_0x569b71&&_0x5cd171['start']['isBefore'](_0x5cb819['start'])){const _0x2c3d47=_0x5cd171['end']['nodeAfter'],_0x36b114=_0x5cb819['start']['nodeBefore'];return _0x11d8e7['isBlockImage'](_0x2c3d47)&&_0x2c3d47===_0x36b114;}return!0x1;}function _0x19572e(_0x435c4a,_0x1a597f){return _0x6ca298(_0x435c4a,_0x1a597f)?[_0x435c4a,_0x1a597f]:_0x6ca298(_0x1a597f,_0x435c4a)?[_0x1a597f,_0x435c4a]:null;}_0x3e7aa5['plugins']['has']('ImageResize')&&(_0x8308e8['enableDefaultAttributesIntegration']('resizeImage'),_0x8308e8['registerBlockAttribute']('resizedWidth'),_0x8308e8['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x4b11ac,'FORMAT_IMAGE_SIZE'))),_0x3e7aa5['plugins']['has']('ImageTextAlternativeEditing')&&(_0x8308e8['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x8308e8['registerBlockAttribute']('alt')),_0x8308e8['descriptionFactory']['registerDescriptionCallback'](_0x2b8940=>{if(!!_0x4bb790['find'](({type:_0x2acf60,subType:_0x2a47ab})=>_0x2b8940['type']==_0x2acf60&&_0x2b8940['subType']==_0x2a47ab))return _0x2b8940['previous']?{}:void 0x0;}),_0x8308e8['descriptionFactory']['registerDescriptionCallback'](_0x34a1fb=>{if('insertion'==_0x34a1fb['type']||'deletion'==_0x34a1fb['type']){const _0x169c42=_0x34a1fb['getContainedElement']();if(_0x169c42&&_0x169c42['is']('element','caption'))return{'type':'insertion'==_0x34a1fb['type']?'addObject':'removeObject','element':_0x169c42,'quantity':0x1};}}),_0x8308e8['descriptionFactory']['registerDescriptionCallback'](_0x14d3cd=>'formatBlock'==_0x14d3cd['type']&&'convertInlineImageToBlock'==_0x14d3cd['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x14d3cd['type']&&'convertBlockImageToInline'==_0x14d3cd['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x8308e8['descriptionFactory']['registerDescriptionCallback'](_0x11af9d=>{if('attribute'!=_0x11af9d['type'])return;const {data:_0xcc569d}=_0x11af9d;if(!_0xcc569d||'alt'!=_0xcc569d['key'])return;const _0x366719=_0xcc569d['newValue'];return _0x366719?{'type':'format','content':o(_0x4b11ac,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x366719+'\x22')}:{'type':'format','content':o(_0x4b11ac,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13b984=this['editor'],_0x260f7b=_0x13b984['locale'];_0x13b984['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x354df9=>{if('formatBlock'!=_0x354df9['type']&&'formatInline'!=_0x354df9['type'])return;const {data:_0x3e43b6}=_0x354df9;if(_0x3e43b6){if('imageTextAlternative'==_0x3e43b6['commandName']){const _0x253f17=_0x3e43b6['commandParams'][0x0]['newValue'];return _0x253f17?{'type':'format','content':o(_0x260f7b,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x253f17+'\x22')}:{'type':'format','content':o(_0x260f7b,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3e43b6['commandName']){const _0x493866=_0x3e43b6['commandParams'][0x0]['width'];return _0x493866?{'type':'format','content':o(_0x260f7b,'*Set\x20image\x20width:*\x20%0',_0x493866)}:{'type':'format','content':o(_0x260f7b,'*Reset\x20image\x20width*')};}}});}}class ot extends _0xd0fe4f{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x223f8b=this['editor']['locale'],_0x11ba83=this['editor']['plugins']['get']('TrackChangesEditing');_0x11ba83['enableDefaultAttributesIntegration']('replaceImageSource'),_0x11ba83['registerBlockAttribute']('src'),_0x11ba83['descriptionFactory']['registerDescriptionCallback'](_0x46c76c=>{if('attribute'!=_0x46c76c['type'])return;const {data:_0x5c7800}=_0x46c76c;return _0x5c7800&&'src'==_0x5c7800['key']?_0x5c7800['newValue']&&_0x5c7800['oldValue']?{'type':'format','content':o(_0x223f8b,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xc6be74=this['editor']['plugins']['get']('TrackChangesEditing');_0xc6be74['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0xc6be74['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xc6be74['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0xc6be74['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x93fa4b=this['editor'],_0x9d5104=_0x93fa4b['locale'];_0x93fa4b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e1ad2=>{if('formatBlock'!=_0x5e1ad2['type']&&'formatInline'!=_0x5e1ad2['type'])return;const {data:_0x38a324}=_0x5e1ad2;if(!_0x38a324||'replaceImageSource'!=_0x38a324['commandName'])return;return{'type':'format','content':o(_0x9d5104,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0xd0fe4f{['afterInit'](){const _0x1f5f33=this['editor'];if(!_0x1f5f33['plugins']['has']('ImageStyleEditing'))return;const _0x1a7c27=_0x1f5f33['plugins']['get']('TrackChangesEditing'),_0x285a92=_0x1f5f33['plugins']['get']('ImageUtils'),_0x51de87={};_0x1a7c27['enableCommand']('imageStyle',(_0x19276d,_0x4f9c9b)=>{const _0x491018=_0x1f5f33['plugins']['get']('Users')['me'],_0x40bebc=_0x1f5f33['commands']['get']('imageStyle');let _0x531e2f=_0x285a92['getClosestSelectedImageElement'](_0x1f5f33['model']['document']['selection']),_0x1756e2=_0x1f5f33['model']['createRangeOn'](_0x531e2f),_0x4f720d=_0x40bebc['value'];if(_0x4f720d==_0x4f9c9b['value'])return;const _0x4211d2={'commandName':'imageStyle','commandParams':[_0x4f9c9b],'formatGroupId':_0x2b2341()};_0x1f5f33['model']['change'](()=>{if(_0x1a7c27['getSuggestions']()['filter'](_0x5c259b=>_0x5c259b['isInContent']&&_0x491018==_0x5c259b['author']&&('formatBlock'==_0x5c259b['type']||'formatInline'==_0x5c259b['type'])&&('imageStylePreApply'==_0x5c259b['subType']||'imageStylePostApply'==_0x5c259b['subType'])&&_0x5c259b['getFirstRange']()['isEqual'](_0x1756e2))['forEach'](_0x525e09=>_0x1a7c27['discardSuggestion'](_0x525e09['head'])),_0x531e2f=_0x285a92['getClosestSelectedImageElement'](_0x1f5f33['model']['document']['selection']),_0x1756e2=_0x1f5f33['model']['createRangeOn'](_0x531e2f),_0x40bebc['refresh'](),_0x1f5f33['commands']['get']('imageTypeInline')['refresh'](),_0x1f5f33['commands']['get']('imageTypeBlock')['refresh'](),_0x4f720d=_0x40bebc['value'],_0x4f720d!=_0x4f9c9b['value'])return _0x285a92['isInlineImage'](_0x531e2f)&&_0x40bebc['shouldConvertImageType'](_0x4f9c9b['value'],_0x531e2f)?(_0x19276d({..._0x4f9c9b,'setImageSizes':!0x1}),_0x531e2f=_0x285a92['getClosestSelectedImageElement'](_0x1f5f33['model']['document']['selection']),void _0x1a7c27['markBlockFormat'](_0x531e2f,{..._0x4211d2,'commandReversedParams':[{'value':_0x4f720d||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x285a92['isBlockImage'](_0x531e2f)?_0x1a7c27['markBlockFormat'](_0x531e2f,_0x4211d2,[],'imageStylePostApply'):_0x1a7c27['markInlineFormat'](_0x1756e2,_0x4211d2,'imageStylePostApply'));});});for(const _0x14be47 of _0x1f5f33['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x51de87[_0x14be47['name']]=_0x14be47['title']['toLowerCase']();_0x1a7c27['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1a7c27['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1a7c27['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1a7c27['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x908298])=>{_0x285a92['setImageNaturalSizeAttributes'](_0x908298['getContainedElement']());}),_0x1a7c27['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x3ddc4c,_0x5416b6)=>{_0x1a7c27['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3ddc4c,{'commandName':_0x5416b6['commandName'],'commandParams':_0x5416b6['commandReversedParams']});}),_0x1a7c27['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x8bac1a,_0x245b21){if(_0x2abc16(_0x8bac1a,_0x245b21))return[_0x8bac1a,_0x245b21];if(_0x2abc16(_0x245b21,_0x8bac1a))return[_0x245b21,_0x8bac1a];return null;});const _0x5876ca=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2abc16(_0x416ec9,_0x468d9e){const _0x2c944a=_0x5876ca['findIndex'](({type:_0x597867,subType:_0x2582af})=>_0x416ec9['type']==_0x597867&&_0x416ec9['subType']==_0x2582af),_0x1ac7e5=_0x5876ca['findIndex'](({type:_0x55bd60,subType:_0x1ed869})=>_0x468d9e['type']==_0x55bd60&&_0x468d9e['subType']==_0x1ed869);if(_0x2c944a<0x0||_0x1ac7e5<0x0)return!0x1;const _0x7bf311=_0x416ec9['getFirstRange'](),_0x5ddc56=_0x468d9e['getFirstRange']();if((0x0==_0x2c944a||0x1==_0x2c944a)&&0x2==_0x1ac7e5&&_0x7bf311['isIntersecting'](_0x5ddc56))return!0x0;if(0x2==_0x2c944a&&0x3==_0x1ac7e5){const _0x1e7326=_0x1a7c27['_findSuggestions'](_0x7bf311,'insertion')['filter'](({suggestion:_0x827a5b,meta:_0x28b5bc})=>_0x28b5bc['isOwn']&&'convertInlineImageToBlock'==_0x827a5b['subType']);if(_0x1e7326['length']>0x1&&_0x5ddc56['end']['isEqual'](_0x7bf311['start']))return!0x0;if(0x1==_0x1e7326['length']&&(_0x7bf311['start']['isEqual'](_0x5ddc56['end'])||_0x7bf311['end']['isEqual'](_0x5ddc56['start'])))return!0x0;}if(0x3==_0x2c944a&&0x3==_0x1ac7e5&&_0x7bf311['start']['isBefore'](_0x5ddc56['start'])){const _0x50d064=_0x7bf311['end']['nodeAfter'],_0x1d6110=_0x5ddc56['start']['nodeBefore'];return _0x285a92['isBlockImage'](_0x50d064)&&_0x50d064===_0x1d6110;}return!0x1;}_0x1f5f33['model']['document']['registerPostFixer'](()=>{let _0x3460d9=!0x1;const _0xf14d26=Array['from'](_0x1f5f33['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3aae93,data:_0x42e80e}of _0xf14d26){const {group:_0x3c59a9,type:_0x5095a5,subType:_0x5f27ef,id:_0x20689d}=_0x1a7c27['_splitMarkerName'](_0x3aae93);if('suggestion'==_0x3c59a9&&_0x1a7c27['hasSuggestion'](_0x20689d)){if('formatBlock'==_0x5095a5&&('imageStylePreApply'==_0x5f27ef||'imageStylePostApply'==_0x5f27ef)){const _0x3e1c3c=_0x1a7c27['getSuggestion'](_0x20689d);if(_0x42e80e['newRange']){const _0x28e35a=_0x3e1c3c['getFirstRange']()['getContainedElement']();if(_0x285a92['isBlockImage'](_0x28e35a))continue;_0x1a7c27['discardSuggestion'](_0x3e1c3c),_0x3460d9=!0x0;}}if('insertion'==_0x5095a5&&'imageCaption'==_0x5f27ef&&!_0x42e80e['newRange']){const _0x4309a2=_0x1a7c27['getSuggestion'](_0x20689d);_0x4309a2['next']&&_0x4309a2['next']['isInContent']&&(_0x1a7c27['discardSuggestion'](_0x4309a2['next']),_0x3460d9=!0x0);}}}return _0x3460d9;}),this['_registerLegacyDescription'](_0x51de87);}['_registerLegacyDescription'](_0x5d505b){const _0x50fd8f=this['editor'],_0x1b6985=_0x50fd8f['locale'];_0x50fd8f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4cf9fb=>{if('formatBlock'!=_0x4cf9fb['type']&&'formatInline'!=_0x4cf9fb['type'])return;const {data:_0x41ec5b}=_0x4cf9fb;if(!_0x41ec5b||'imageStyle'!=_0x41ec5b['commandName'])return;const _0x6da6a9=_0x41ec5b['commandParams'][0x0]['value'];return _0xaa3f01('side'===_0x6da6a9?o(_0x1b6985,'FORMAT_SIDE_IMAGE'):_0x5d505b[_0x6da6a9]||_0x6da6a9);function _0xaa3f01(_0x3488b5){return{'type':'format','content':o(_0x1b6985,'*Format:*\x20%0',_0x3488b5)};}});}}class at extends _0xd0fe4f{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x3b7262){super(_0x3b7262),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x183a95=this['editor'],_0x3def02=_0x183a95['commands']['get']('importWord'),_0x5d9dab=_0x183a95['commands']['get']('trackChanges');_0x3def02&&(_0x3def02['on']('execute',(_0xb76f43,[,_0x588333])=>{this['_trackChangesValueDuringImport']=_0x5d9dab['value'],_0x588333['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3def02,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3def02,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5d9dab['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x183a95['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0xe56867,_0x4bb4d7){const {suggestions:_0x1081a8}=_0x4bb4d7,_0xd60036=this['editor']['commands']['get']('trackChanges'),_0x18077a=_0xd60036['value'];this['_trackChangesValueDuringImport']!==_0x18077a&&(_0xd60036['execute'](),this['_trackChangesExecuted']=!0x0),_0x1081a8&&_0x1081a8['forEach'](({id:_0x22eb0c,type:_0xa832cf,author:_0x55e960,created_at:_0x4d3393})=>{const _0x5dbded={'id':_0x22eb0c,'type':_0xa832cf,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x55e960,'createdAt':_0x4d3393?new Date(_0x4d3393):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x5dbded);});}}class ct extends _0xd0fe4f{['afterInit'](){const _0x4a8a5c=this['editor'],_0x1c0db4=_0x4a8a5c['plugins']['get']('TrackChangesEditing');if(_0x4a8a5c['plugins']['has']('IndentEditing')&&(_0x1c0db4['enableCommand']('indent'),_0x1c0db4['enableCommand']('outdent')),_0x4a8a5c['plugins']['has']('IndentBlock')){for(const _0x3dac2a of['indentBlock','outdentBlock'])_0x1c0db4['enableDefaultAttributesIntegration'](_0x3dac2a);}const _0x1418a7=_0x4a8a5c['locale'];_0x1c0db4['registerBlockAttribute']('blockIndent'),_0x1c0db4['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x1418a7,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b8545=this['editor'],_0x72a1c3=_0x3b8545['locale'],_0x39e509=_0x3b8545['plugins']['get']('TrackChangesEditing');_0x39e509['descriptionFactory']['registerDescriptionCallback'](_0xd12646=>{if('formatBlock'!=_0xd12646['type'])return;const {data:_0x2cbc5b}=_0xd12646;if(!_0x2cbc5b)return;if('indentBlock'!=_0x2cbc5b['commandName']&&'outdentBlock'!=_0x2cbc5b['commandName'])return;const _0x197d45=_0xd12646['getItems']()[0x0],_0x5a145f=_0x39e509['descriptionFactory']['getItemLabel'](_0x197d45);return'indentBlock'==_0x2cbc5b['commandName']?{'type':'format','content':o(_0x72a1c3,'*Indent:*\x20%0',_0x5a145f)}:'outdentBlock'==_0x2cbc5b['commandName']?{'type':'format','content':o(_0x72a1c3,'*Outdent:*\x20%0',_0x5a145f)}:void 0x0;});}}class ut extends _0xd0fe4f{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0xd0fe4f{['afterInit'](){const _0x1a867b=this['editor'];if(!_0x1a867b['plugins']['has']('LinkEditing'))return;const _0x1a3d8e=_0x1a867b['plugins']['get']('TrackChangesEditing'),_0x1d7a5e=_0x1a867b['commands']['get']('link');_0x1a3d8e['enableDefaultAttributesIntegration']('link'),_0x1a3d8e['enableDefaultAttributesIntegration']('unlink'),_0x1a3d8e['registerInlineAttribute']('linkHref');for(const _0x45dea9 of _0x1d7a5e['manualDecorators'])_0x1a3d8e['registerInlineAttribute'](_0x45dea9['id']),_0x1a3d8e['descriptionFactory']['registerAttributeLabel'](_0x45dea9['id'],'link\x20('+_0x45dea9['label']['toLowerCase']()+')');_0x1a3d8e['descriptionFactory']['registerDescriptionCallback'](_0x3ff2bb=>{if('attribute'!=_0x3ff2bb['type'])return;const {data:_0x2d5f52}=_0x3ff2bb;if(!_0x2d5f52||'linkHref'!=_0x2d5f52['key'])return;const _0x4e6de7=_0x2d5f52['newValue'],_0x30ea47=_0x1a867b['locale'];return{'type':'format','content':null==_0x4e6de7?o(_0x30ea47,'*Remove\x20link*'):o(_0x30ea47,'*Set\x20link:*\x20%0','\x22'+_0x4e6de7+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x282ed5=this['editor'],_0x1a5aea=_0x282ed5['locale'];_0x282ed5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x217cf2=>{if('formatInline'!=_0x217cf2['type'])return;const {data:_0x5c93ab}=_0x217cf2;if(_0x5c93ab){if('link'==_0x5c93ab['commandName']){const _0xbe44c=_0x5c93ab['commandParams'][0x0];return{'type':'format','content':o(_0x1a5aea,'*Set\x20link:*\x20%0','\x22'+_0xbe44c+'\x22')};}return'unlink'==_0x5c93ab['commandName']?{'type':'format','content':o(_0x1a5aea,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0xd0fe4f{['afterInit'](){const _0x431427=this['editor'],_0x5606bc=_0x431427['locale'];if(!_0x431427['plugins']['has']('LegacyListEditing'))return;const _0x1d9d53=_0x431427['plugins']['get']('TrackChangesEditing'),_0x24ba8b=_0x431427['plugins']['has']('LegacyTodoListEditing');function _0x386a32(_0x24210e){return()=>{const _0x3f508c=_0x431427['model']['document']['selection'],_0x1ef22d=_0x431427['commands']['get'](_0x24210e);if(_0x1ef22d['value'])return void _0x431427['execute']('paragraph',{});const _0x1b3743=_0x24210e['slice'](0x0,-0x4),_0x29a04a=function(_0x6d3e45,_0x5938e5,_0x3396ba){let _0x18dee6=Array['from'](_0x6d3e45)['filter'](_0x249835=>function(_0x5ceaac,_0x1aad7b){return _0x1aad7b['checkChild'](_0x5ceaac['parent'],'listItem')&&!_0x1aad7b['isObject'](_0x5ceaac);}(_0x249835,_0x3396ba));_0x18dee6=_0x18dee6['filter'](_0x7b5985=>!_0x7b5985['is']('element','listItem')||_0x7b5985['getAttribute']('listType')!=_0x5938e5);const _0x424cad=new Set();for(const _0x54fcb3 of _0x18dee6)_0x54fcb3['is']('element','listItem')?_0x424cad['add'](fe(_0x54fcb3)):_0x424cad['add'](_0x54fcb3);return Array['from'](_0x424cad);}(_0x3f508c['getSelectedBlocks'](),_0x1b3743,_0x431427['model']['schema']);_0x431427['model']['change'](()=>{for(const _0x2cd0dc of _0x29a04a)_0x1d9d53['markBlockFormat'](_0x2cd0dc,{'commandName':_0x24210e,'commandParams':[{'forceValue':!_0x1ef22d['value']}],'formatGroupId':'blockName'},ue(_0x2cd0dc));});};}function _0xcdc757(_0x2c6049){return()=>{const _0x4aa6ef=function(_0x330d5a){let _0x3632fd=Array['from'](_0x330d5a);const _0x43b9b8=_0x3632fd['findIndex'](_0x469b9e=>'listItem'!=_0x469b9e['name']);return _0x43b9b8>-0x1&&(_0x3632fd=_0x3632fd['slice'](0x0,_0x43b9b8)),_0x3632fd;}(_0x431427['model']['document']['selection']['getSelectedBlocks']()),_0xc3d4ee=_0x431427['model']['createRange'](_0x431427['model']['createPositionAt'](_0x4aa6ef[0x0],'before'),_0x431427['model']['createPositionAt'](_0x4aa6ef[_0x4aa6ef['length']-0x1],'end'));_0x431427['model']['change'](()=>{_0x1d9d53['markBlockFormat'](_0xc3d4ee,{'commandName':_0x2c6049,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1ebcdd){const _0x1ab9a2=new Set();for(const _0x251aad of _0x1ebcdd){let _0x569252=_0x251aad['nextSibling'];for(;_0x569252&&_0x569252['getAttribute']('listIndent')>_0x251aad['getAttribute']('listIndent');)_0x1ab9a2['add'](_0x569252),_0x569252=_0x569252['nextSibling'];}return Array['from'](_0x1ab9a2);}(_0x4aa6ef));});};}_0x1d9d53['enableCommand']('numberedList',_0x386a32('numberedList')),_0x1d9d53['enableCommand']('bulletedList',_0x386a32('bulletedList')),_0x24ba8b&&_0x1d9d53['enableCommand']('todoList',_0x386a32('todoList')),_0x1d9d53['enableCommand']('indentList',_0xcdc757('indentList')),_0x1d9d53['enableCommand']('outdentList',_0xcdc757('outdentList')),_0x24ba8b&&_0x1d9d53['enableCommand']('checkTodoList',()=>{const _0x211d10=_0x431427['commands']['get']('checkTodoList'),_0x1bd20e=Array['from'](_0x211d10['_selectedElements']);_0x1bd20e['filter'](_0x2f76cb=>_0x2f76cb['getAttribute']('todoListChecked')!=_0x211d10['value']),_0x431427['model']['change'](()=>{for(const _0x2d04f1 of _0x1bd20e)_0x1d9d53['markBlockFormat'](_0x2d04f1,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x211d10['value']}]});});}),_0x1d9d53['descriptionFactory']['registerElementLabel']('listItem',_0x2315ca=>o(_0x5606bc,'ELEMENT_LIST_ITEM',_0x2315ca)),_0x1d9d53['descriptionFactory']['registerDescriptionCallback'](_0x31c478=>{if('formatBlock'!=_0x31c478['type']&&'formatInline'!=_0x31c478['type'])return;const {data:_0x307870}=_0x31c478;if(_0x307870){if('numberedList'==_0x307870['commandName']||'bulletedList'==_0x307870['commandName']||'todoList'==_0x307870['commandName'])switch(_0x307870['commandName']['replace']('List','')){case'bulleted':return _0x3c6d9a(o(_0x5606bc,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3c6d9a(o(_0x5606bc,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3c6d9a(o(_0x5606bc,'ELEMENT_TODO_LIST'));}if('indentList'==_0x307870['commandName'])return{'type':'format','content':o(_0x5606bc,'*Indent:*\x20%0',o(_0x5606bc,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x307870['commandName'])return{'type':'format','content':o(_0x5606bc,'*Outdent:*\x20%0',o(_0x5606bc,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x307870['commandName'])return _0x307870['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5606bc,'*Check\x20item*')}:{'type':'format','content':o(_0x5606bc,'*Uncheck\x20item*')};}function _0x3c6d9a(_0x5adffb){return{'type':'format','content':o(_0x5606bc,'*Change\x20to:*\x20%0',_0x5adffb)};}});}}function fe(_0x522d02){const _0x250ccb=_0x522d02['getAttribute']('listIndent');if(0x0==_0x250ccb)return _0x522d02;let _0x38330b=_0x522d02;for(;_0x522d02['previousSibling']&&_0x522d02['previousSibling']['is']('element','listItem');){const _0xcc6ada=_0x522d02['previousSibling']['getAttribute']('listIndent');if(_0xcc6ada==_0x250ccb)_0x38330b=_0x522d02['previousSibling'];else{if(_0xcc6ada<_0x250ccb)break;}_0x522d02=_0x522d02['previousSibling'];}return _0x38330b;}function ue(_0x4300ed){const _0x31a801=[];if(_0x4300ed['is']('element','listItem')&&_0x4300ed['getAttribute']('listIndent')>0x0){let _0x2972f3=_0x4300ed['nextSibling'];for(;_0x2972f3&&'listItem'==_0x2972f3['name']&&_0x2972f3['getAttribute']('listIndent')==_0x4300ed['getAttribute']('listIndent');)_0x31a801['push'](_0x2972f3),_0x2972f3=_0x2972f3['nextSibling'];}return _0x31a801;}class W extends _0xd0fe4f{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0xcb8bda=this['editor']['config']['get']('list.properties'),_0x886f57=this['editor']['plugins']['get']('TrackChangesEditing');_0xcb8bda['styles']&&_0x886f57['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0xcb8bda['reversed']&&_0x886f57['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0xcb8bda['startIndex']&&_0x886f57['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x886f57['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x37f0ad,_0x4fd691={}){const _0x45e2ca=this['editor']['plugins']['get']('TrackChangesEditing'),_0x23fdde=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x45e2ca['markMultiRangeBlockFormat'](_0x23fdde,{'commandName':'listStyle','commandParams':[{'type':_0x4fd691['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x31ce58,_0xe17d70={}){const _0x25f8be=this['editor']['plugins']['get']('TrackChangesEditing'),_0xc14d1e=this['_getSuggestionBlocks'](_0x8cb2a7=>_0x8cb2a7['is']('element','listItem')&&'numbered'===_0x8cb2a7['getAttribute']('listType'));if(_0xc14d1e['length']<0x1)return;const _0x55f017=_0xc14d1e['map'](_0x5e0523=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5e0523,'before'),this['editor']['model']['createPositionAt'](_0x5e0523,0x0)));this['editor']['model']['change'](()=>{_0x25f8be['markMultiRangeBlockFormat'](_0x55f017,{'commandName':'listReversed','commandParams':[{'reversed':_0xe17d70['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x5732b7,_0x54e6f7={}){const _0x2fa3a3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3f76ff=this['_getSuggestionBlocks'](_0x4696f9=>_0x4696f9['is']('element','listItem')&&'numbered'===_0x4696f9['getAttribute']('listType'));if(_0x3f76ff['length']<0x1)return;const _0x55ce5c=_0x3f76ff['map'](_0x3ace9d=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3ace9d,'before'),this['editor']['model']['createPositionAt'](_0x3ace9d,0x0)));this['editor']['model']['change'](()=>{_0x2fa3a3['markMultiRangeBlockFormat'](_0x55ce5c,{'commandName':'listStart','commandParams':[{'startIndex':_0x54e6f7['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x33c151){if('formatBlock'!=_0x33c151['type']&&'formatInline'!=_0x33c151['type'])return;const _0x74660e=this['editor']['locale'],{data:_0x331888}=_0x33c151;if(!_0x331888)return;let _0x285b0d,_0x1f6b08;switch(_0x331888['commandName']){case'listStyle':_0x285b0d='*Change\x20to:*\x20%0',_0x1f6b08={'type':'format','content':o(_0x74660e,_0x285b0d,o(_0x74660e,this['_getTranslationKeyForListStyle'](_0x331888['commandParams'][0x0]['type'])))};break;case'listReversed':_0x285b0d=_0x331888['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1f6b08={'type':'format','content':o(_0x74660e,_0x285b0d)};break;case'listStart':_0x285b0d='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1f6b08={'type':'format','content':o(_0x74660e,_0x285b0d,_0x331888['commandParams'][0x0]['startIndex'])};}return _0x1f6b08;}['_getSuggestionBlocksForListStyle'](){const _0x50aeaf=this['editor']['plugins']['get']('LegacyListUtils');let _0x81e653=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x81e653[0x0]?.['is']('element','listItem')&&_0x81e653['unshift'](..._0x50aeaf['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x81e653[_0x81e653['length']-0x1]?.['is']('element','listItem')&&_0x81e653['push'](..._0x50aeaf['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x81e653=[...new Set(_0x81e653)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x81e653=_0x81e653['filter'](_0x3abbf9=>_0x3abbf9['is']('element','listItem'))),_0x81e653;}['_getSuggestionBlocks'](_0x4d505b){const _0xe2d089=this['editor']['plugins']['get']('LegacyListUtils');let _0x402e5c=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4d505b)['map'](_0x3c03b0=>{const _0x4efa68=this['editor']['model']['createPositionAt'](_0x3c03b0,0x0);return[..._0xe2d089['getSiblingNodes'](_0x4efa68,'backward'),..._0xe2d089['getSiblingNodes'](_0x4efa68,'forward')];})['flat']();return _0x402e5c=[...new Set(_0x402e5c)],_0x402e5c;}['_getTranslationKeyForListStyle'](_0x36047b){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x36047b)||'default')['toUpperCase']()+'_LIST_'+_0x36047b['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0xd0fe4f{['afterInit'](){const _0x4bef57=this['editor'];if(!_0x4bef57['plugins']['has']('MediaEmbedEditing'))return;const _0x26b5d2=_0x4bef57['plugins']['get']('TrackChangesEditing'),_0x53b057=_0x4bef57['locale'];_0x26b5d2['enableCommand']('mediaEmbed'),_0x26b5d2['descriptionFactory']['registerElementLabel']('media',_0x124474=>o(_0x53b057,'ELEMENT_MEDIA',_0x124474)),_0x4bef57['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4883d2,{writer:_0x30ed41,options:_0x2c5ecb})=>{if(_0x2c5ecb['showSuggestionHighlights'])return _0x30ed41['createEmptyElement']('div');},'converterPriority':'high'}),_0x4bef57['data']['downcastDispatcher']['on']('attribute:url:media',(_0x2c612c,_0x5c8ad6,_0x2da00b)=>{_0x2da00b['options']['showSuggestionHighlights']&&_0x2c612c['stop']();},{'priority':'high'});}}class mt extends _0xd0fe4f{['afterInit'](){const _0xd0dce6=this['editor'];_0xd0dce6['plugins']['has']('MentionEditing')&&_0xd0dce6['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0xd0fe4f{['afterInit'](){const _0x200b78=this['editor'];if(!_0x200b78['plugins']['has']('MergeFieldsEditing'))return;_0x200b78['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x200b78['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x56b57c=_0x200b78['plugins']['get']('TrackChangesEditing'),_0x3cfb51=_0x200b78['locale'];_0x56b57c['descriptionFactory']['registerElementLabel']('mergeField',_0x1b8831=>o(_0x3cfb51,'ELEMENT_MERGE_FIELD',_0x1b8831)),_0x56b57c['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x505dd1=>o(_0x3cfb51,'ELEMENT_MERGE_FIELD',_0x505dd1)),_0x56b57c['descriptionFactory']['registerDescriptionCallback'](_0x24291b=>{if('insertion'!=_0x24291b['type']&&'deletion'!=_0x24291b['type'])return;const _0x4a7828=_0x24291b['getContainedElement']();if(null==_0x4a7828)return;if(!_0x4a7828['is']('element','mergeField')&&!_0x4a7828['is']('element','mergeFieldBlock'))return;const _0x510f15=_0x200b78['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x4a7828['getAttribute']('id'));return'insertion'==_0x24291b['type']?{'type':'insertion','content':o(_0x3cfb51,'*Insert:*\x20%0','\x22'+_0x510f15+'\x22\x20'+o(_0x3cfb51,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x3cfb51,'*Remove:*\x20%0','\x22'+_0x510f15+'\x22\x20'+o(_0x3cfb51,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0xd0fe4f{['afterInit'](){const _0x2fcf8f=this['editor'],_0x5a5977=_0x2fcf8f['plugins']['get']('TrackChangesEditing');_0x2fcf8f['plugins']['has']('MultiLevelList')&&(_0x5a5977['enableDefaultAttributesIntegration']('multiLevelList'),_0x5a5977['registerBlockAttribute']('listMarkerStyle'),_0x5a5977['descriptionFactory']['registerDescriptionCallback'](_0x1f9522=>this['handleDescriptions'](_0x1f9522)));}['handleDescriptions'](_0x28fb68){const _0x12f6ae=this['editor']['locale'],{data:_0x52355a}=_0x28fb68,_0x50abf3={'type':'format','content':''};if(_0x52355a&&'listMarkerStyle'==_0x52355a['key']){if(!_0x52355a['oldValue'])return{'type':'format','content':o(_0x12f6ae,'*Set\x20format:*\x20%0',o(_0x12f6ae,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x52355a['newValue']+')'};if(!_0x52355a['newValue']){let _0x577dd2=_0x28fb68['head'];for(;_0x577dd2;){if(_0x577dd2['data']&&'listType'==_0x577dd2['data']['key']&&_0x577dd2['data']['newValue'])return _0x50abf3;_0x577dd2=_0x577dd2['next'];}return{'type':'format','content':o(_0x12f6ae,'*Remove\x20format:*\x20%0',o(_0x12f6ae,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x52355a['oldValue']+')'};}}}}class kt extends _0xd0fe4f{['afterInit'](){const _0x51d5ae=this['editor'];if(!_0x51d5ae['plugins']['has']('PageBreakEditing'))return;_0x51d5ae['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x440382=_0x51d5ae['plugins']['get']('TrackChangesEditing'),_0x3f2017=_0x51d5ae['locale'];_0x440382['descriptionFactory']['registerElementLabel']('pageBreak',_0x49dc8f=>o(_0x3f2017,'ELEMENT_PAGE_BREAK',_0x49dc8f));}}class bt extends _0xd0fe4f{['afterInit'](){const _0x13f249=this['editor'];if(!_0x13f249['plugins']['has']('Paragraph'))return;const _0x5a59e4=_0x13f249['locale'],_0x3d932c=_0x13f249['plugins']['get']('TrackChangesEditing');_0x3d932c['descriptionFactory']['registerElementLabel']('paragraph',_0x4f439b=>o(_0x5a59e4,'ELEMENT_PARAGRAPH',_0x4f439b)),_0x3d932c['enableDefaultAttributesIntegration']('paragraph'),_0x3d932c['enableCommand']('insertParagraph'),_0x13f249['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x13f249),{'priority':'highest'}),_0x13f249['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x319202,_0x132384,_0x24b299)=>{_0x24b299['options']['showSuggestionHighlights']&&nr(_0x13f249,{'showActiveMarker':!0x1})(_0x319202,_0x132384,_0x24b299);},{'priority':'highest'});const _0x1cd7fe=_0x3d932c['descriptionFactory'];_0x1cd7fe['registerDescriptionCallback'](_0xe26e82=>{if('insertion'!==_0xe26e82['type'])return;const {start:_0x17b187,end:_0x17826f}=_0xe26e82['getFirstRange']();if(!_0x17b187['isTouching'](_0x17826f)||!_0x17b187['nodeAfter'])return;const _0x1efcb1=_0x13f249['model']['schema'],_0x5db0df=_0x17b187['nodeAfter'];return _0x1efcb1['isBlock'](_0x5db0df)&&!_0x1efcb1['isLimit'](_0x5db0df)&&_0x1efcb1['checkChild'](_0x5db0df,'$text')?{'type':'insertion','content':o(_0x5a59e4,'*Insert:*\x20%0',_0x1cd7fe['getItemLabel'](_0x5db0df,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x547f3f=this['editor'],_0x5cfaa4=_0x547f3f['locale'];_0x547f3f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x326f9e=>{if('formatBlock'!=_0x326f9e['type'])return;const {data:_0x2c5c8d}=_0x326f9e;return _0x2c5c8d&&'paragraph'==_0x2c5c8d['commandName']?{'type':'format','content':o(_0x5cfaa4,'*Change\x20to:*\x20%0',o(_0x5cfaa4,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x57dfac,{showActiveMarker:_0x228265=!0x0}={}){return(_0x191efc,_0x2f80a7,_0xc218ff)=>{const _0x1fa511=_0x57dfac['plugins']['get']('TrackChangesEditing'),_0x20c7f1=_0x2f80a7['markerRange']['start'],_0x393b39=_0x2f80a7['markerRange']['end'],_0x55bd8c=_0x57dfac['model']['schema'];if(!_0x20c7f1['isTouching'](_0x393b39)||!_0x20c7f1['nodeAfter'])return;const _0x4fe4de=_0x20c7f1['nodeAfter'];if(_0x55bd8c['isBlock'](_0x4fe4de)&&!_0x55bd8c['isLimit'](_0x4fe4de)&&_0x55bd8c['checkChild'](_0x4fe4de,'$text')){if(!_0xc218ff['consumable']['consume'](_0x2f80a7['markerRange'],_0x191efc['name']))return;const {authorId:_0x1b2323}=_0x1fa511['_splitMarkerName'](_0x2f80a7['markerName']),_0x312473=_0xc218ff['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x1b2323}),_0x186158=_0xc218ff['mapper']['toViewPosition'](_0x393b39);_0x228265&&_0x1fa511['activeMarkers']['includes'](_0x2f80a7['markerName'])&&_0xc218ff['writer']['addClass']('ck-suggestion-marker--active',_0x312473),_0xc218ff['writer']['insert'](_0x186158,_0x312473),_0xc218ff['mapper']['bindElementToMarker'](_0x312473,_0x2f80a7['markerName']);}};}class wt extends _0xd0fe4f{['afterInit'](){const _0x420d34=this['editor'];if(!_0x420d34['plugins']['has']('RemoveFormatEditing'))return;_0x420d34['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x30041e=this['editor'];_0x30041e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47b582=>{if('formatBlock'!=_0x47b582['type']&&'formatInline'!=_0x47b582['type'])return;const {data:_0x251cc3}=_0x47b582;return _0x251cc3&&'removeFormat'==_0x251cc3['commandName']?{'type':'format','content':o(_0x30041e['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0xd0fe4f{['afterInit'](){const _0x3ed69c=this['editor'];if(!_0x3ed69c['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x34924e=_0x3ed69c['plugins']['get']('TrackChangesEditing');_0x34924e['enableCommand']('goToPreviousRestrictedEditingException'),_0x34924e['enableCommand']('goToNextRestrictedEditingException');const _0x30647f=_0x3ed69c['plugins']['get']('RestrictedEditingModeEditing');_0x30647f['enableCommand']('trackChanges'),_0x30647f['enableCommand']('acceptSuggestion'),_0x30647f['enableCommand']('discardSuggestion'),_0x30647f['enableCommand']('acceptAllSuggestions'),_0x30647f['enableCommand']('discardAllSuggestions'),_0x30647f['enableCommand']('acceptSelectedSuggestions'),_0x30647f['enableCommand']('discardSelectedSuggestions');}}class jt extends _0xd0fe4f{static get['requires'](){return[_0x3d87fa];}['init'](){const _0x3b1fc0=this['editor'],_0x440975=_0x3b1fc0['plugins']['get']('TrackChangesEditing');_0x440975['enableCommand']('shiftEnter'),_0x3b1fc0['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x3b1fc0),{'priority':'high'}),_0x3b1fc0['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x3b1fc0),{'priority':'high'}),_0x3b1fc0['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x36a922,_0x213f0a,_0xbd1496)=>{_0xbd1496['options']['showSuggestionHighlights']&&ge(_0x3b1fc0,{'showActiveMarker':!0x1})(_0x36a922,_0x213f0a,_0xbd1496);}),_0x440975['descriptionFactory']['registerElementLabel']('softBreak',_0x398db4=>o(_0x3b1fc0['locale'],'ELEMENT_LINE_BREAK',_0x398db4));}}function ge(_0x4a6b82,{showActiveMarker:_0x37b668=!0x0}={}){return(_0x18545c,_0x56a365,_0x38dcfc)=>{const _0x3d1d5f=_0x4a6b82['plugins']['get']('TrackChangesEditing');if(!_0x38dcfc['consumable']['test'](_0x56a365['markerRange'],_0x18545c['name']))return;const _0xe68b22=_0x4a6b82['model'];for(const _0x5663b2 of _0x56a365['markerRange']['getItems']()){if(!_0x5663b2['is']('element','softBreak'))continue;const _0x558763='deletion'==_0x56a365['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x5c89f2}=_0x3d1d5f['_splitMarkerName'](_0x56a365['markerName']),_0x11e7ef=_0x38dcfc['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x558763,'data-author-id':_0x5c89f2}),_0x7ecd96=_0x38dcfc['mapper']['toViewPosition'](_0xe68b22['createPositionBefore'](_0x5663b2));_0x37b668&&_0x3d1d5f['activeMarkers']['includes'](_0x56a365['markerName'])&&_0x38dcfc['writer']['addClass']('ck-suggestion-marker--active',_0x11e7ef),_0x38dcfc['writer']['insert'](_0x7ecd96,_0x11e7ef),_0x38dcfc['mapper']['bindElementToMarker'](_0x11e7ef,_0x56a365['markerName']);}};}class St extends _0xd0fe4f{['afterInit'](){const _0x378c72=this['editor'],_0x18aeed=_0x378c72['model'],_0x2848cf=_0x378c72['locale'];if(!_0x378c72['plugins']['has']('StandardEditingModeEditing'))return;const _0x1dc2e3=_0x378c72['plugins']['get']('TrackChangesEditing'),_0x5bb01b='restrictedEditingException',_0x34ac70=_0x378c72['commands']['get'](_0x5bb01b);_0x1dc2e3['enableCommand'](_0x5bb01b,(_0x2e9e5e,_0x55a4f={})=>{const _0x1b8ac2=_0x18aeed['document']['selection'];if(_0x1b8ac2['isCollapsed'])return void _0x2e9e5e(_0x55a4f);const _0x52f44=void 0x0!==_0x55a4f['forceValue']?_0x55a4f['forceValue']:!_0x34ac70['value'];_0x18aeed['change'](()=>{const _0x34d921=Array['from'](_0x1b8ac2['getRanges']());for(const _0x583d19 of _0x34d921){const _0x3b4f51=_0x52f44?[_0x583d19]:io(_0x5bb01b,_0x583d19,_0x18aeed);for(const _0xfe20ca of _0x3b4f51)_0x1dc2e3['markInlineFormat'](_0xfe20ca,{'commandName':_0x5bb01b,'commandParams':[{'forceValue':_0x52f44}]});}});}),_0x1dc2e3['descriptionFactory']['registerDescriptionCallback'](_0x491fb8=>{if('formatBlock'!=_0x491fb8['type']&&'formatInline'!=_0x491fb8['type'])return;const {data:_0x49bb7a}=_0x491fb8;return _0x49bb7a&&_0x49bb7a['commandName']==_0x5bb01b?_0x49bb7a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2848cf,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x2848cf,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0xd0fe4f{['afterInit'](){const _0x501fd1=this['editor'];if(!_0x501fd1['plugins']['has']('Style')||!_0x501fd1['plugins']['has']('DataSchema'))return;const _0x536487=_0x501fd1['plugins']['get']('TrackChangesEditing'),_0x271e03=_0x501fd1['locale'],_0x52f5c0=_0x501fd1['config']['get']('style')||{},_0x428d52=_0x501fd1['plugins']['get']('GeneralHtmlSupport'),_0x30013d=_0x501fd1['plugins']['get']('StyleUtils')['normalizeConfig'](_0x501fd1['plugins']['get']('DataSchema'),_0x52f5c0['definitions']);_0x536487['enableDefaultAttributesIntegration']('style');const _0x235cfc=new Set();for(const _0x40abc8 of _0x30013d['block']){const _0x79072e=_0x428d52['getGhsAttributeNameForElement'](_0x40abc8['element']);_0x235cfc['add'](_0x79072e);}const _0x1ad4e7=new Set();for(const _0x1d1031 of _0x30013d['inline']){const _0x4089df=_0x428d52['getGhsAttributeNameForElement'](_0x1d1031['element']);_0x1ad4e7['add'](_0x4089df);for(const _0x2098a3 of _0x1d1031['ghsAttributes'])_0x1ad4e7['add'](_0x2098a3);}for(const _0x1c196f of _0x235cfc)_0x536487['registerBlockAttribute'](_0x1c196f),_0x536487['descriptionFactory']['registerAttributeLabel'](_0x1c196f,o(_0x271e03,'FORMAT_STYLE'));for(const _0x36553b of _0x1ad4e7)_0x536487['registerInlineAttribute'](_0x36553b),_0x536487['descriptionFactory']['registerAttributeLabel'](_0x36553b,o(_0x271e03,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x22de20=this['editor'],_0x323dec=_0x22de20['locale'];_0x22de20['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a759e=>{if('formatBlock'!=_0x1a759e['type']&&'formatInline'!=_0x1a759e['type'])return;const {data:_0x4e3fc6}=_0x1a759e;return _0x4e3fc6&&'style'===_0x4e3fc6['commandName']?_0x4e3fc6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x323dec,'*Set\x20format:*\x20%0',_0x4e3fc6['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x323dec,'*Remove\x20format:*\x20%0',_0x4e3fc6['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0xd0fe4f{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x8d4135){super(_0x8d4135),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x27e0e6=this['editor'],_0x5ecce9=_0x27e0e6['model']['document']['selection'];if(!_0x27e0e6['plugins']['has']('TableEditing'))return;const _0x228031=_0x27e0e6['locale'],_0x26b30c=_0x27e0e6['plugins']['get']('TrackChangesEditing'),_0x205172=_0x27e0e6['plugins']['get']('TableUtils');_0x26b30c['descriptionFactory']['registerElementLabel']('table',_0x472258=>o(_0x228031,'ELEMENT_TABLE',_0x472258)),this['_setupColumnsRowsFixing'](),_0x26b30c['enableCommand']('insertTable'),_0x26b30c['enableCommand']('selectTableRow'),_0x26b30c['enableCommand']('selectTableColumn');for(const _0x3394ce of['insertTableRowAbove','insertTableRowBelow']){const _0x1d3e14=_0x27e0e6['commands']['get'](_0x3394ce);_0x26b30c['enableCommand'](_0x3394ce,_0x237244=>{_0x27e0e6['model']['change'](_0x3de52b=>{_0x237244();const _0x275ff1='above'===_0x1d3e14['order'],_0x4bc629=_0x205172['getSelectionAffectedTableCells'](_0x5ecce9),_0x549868=_0x205172['getRowIndexes'](_0x4bc629),_0x489ca6=_0x275ff1?_0x549868['first']-0x1:_0x549868['last']+0x1,_0x22b386=_0x4bc629[0x0]['findAncestor']('table'),_0x4457c8=_0x205172['createTableWalker'](_0x22b386,{'startRow':_0x489ca6,'endRow':_0x489ca6}),_0x2e6aae=Array['from'](_0x4457c8)['map'](_0x106b77=>_0x3de52b['createRangeOn'](_0x106b77['cell']));_0x26b30c['markMultiRangeInsertion'](_0x2e6aae,'tableRow');});});}for(const _0x3b48ef of['insertTableColumnLeft','insertTableColumnRight']){const _0xcd5e31=_0x27e0e6['commands']['get'](_0x3b48ef);_0x26b30c['enableCommand'](_0x3b48ef,_0x4e4fe7=>{_0x27e0e6['model']['change'](_0x2d4573=>{_0x4e4fe7();const _0x27ac81='left'===_0xcd5e31['order'],_0x315dc1=_0x205172['getSelectionAffectedTableCells'](_0x5ecce9),_0x1b5661=_0x205172['getColumnIndexes'](_0x315dc1),_0x113dcd=_0x27ac81?_0x1b5661['first']-0x1:_0x1b5661['last']+0x1,_0x5469fd=_0x315dc1[0x0]['findAncestor']('table'),_0x1a2c02=_0x205172['createTableWalker'](_0x5469fd,{'startRow':0x0,'column':_0x113dcd,'includeAllSlots':!0x1}),_0x5dd583=Array['from'](_0x1a2c02)['map'](_0x4c6476=>_0x2d4573['createRangeOn'](_0x4c6476['cell']));_0x26b30c['markMultiRangeInsertion'](_0x5dd583,'tableColumn');});});}for(const _0x511e0d of['removeTableRow','removeTableColumn']){const _0x3c2263=_0x511e0d['substr'](0xb),_0x6643ac=_0x3c2263['toLowerCase'](),_0x2876b0=_0x6643ac['substr'](0x0,0x3)+'span',_0x3fdccf='table'+_0x3c2263,_0x57fddd='min'+_0x3c2263,_0x1c9da6='max'+_0x3c2263;_0x26b30c['enableCommand'](_0x511e0d,()=>{_0x27e0e6['model']['change'](_0x4326b0=>{const _0x3910a7=_0x205172['getSelectionAffectedTableCells'](_0x5ecce9),_0x53778e=_0x3910a7[0x0]['findAncestor']('table');let _0x326b42;if('removeTableRow'==_0x511e0d){const _0x326c19=_0x205172['getRowIndexes'](_0x3910a7);_0x326b42={'startRow':_0x326c19['first'],'endRow':_0x326c19['last'],'includeAllSlots':!0x0};}else{const _0x3d1755=_0x205172['getColumnIndexes'](_0x3910a7);_0x326b42={'startColumn':_0x3d1755['first'],'endColumn':_0x3d1755['last'],'includeAllSlots':!0x0};}const _0x4b6c5a=_0x205172['createTableWalker'](_0x53778e,_0x326b42),_0x307126=Array['from'](_0x4b6c5a)['map'](({cell:_0x25e00d})=>_0x25e00d),_0xd9c25=be(_0x307126['filter'](_0x495157=>_0x495157['hasAttribute'](_0x2876b0))),_0x4237c3=be(_0x307126['filter'](_0x4fbac3=>!_0x4fbac3['hasAttribute'](_0x2876b0)))['map'](_0x46b3de=>_0x4326b0['createRangeOn'](_0x46b3de)),_0x5a7f4e=_0x26b30c['markMultiRangeDeletion'](_0x4237c3,_0x3fdccf);if(_0x5a7f4e&&('tableRow'==_0x5a7f4e['subType']||'tableColumn'==_0x5a7f4e['subType'])){const _0x3c0c50=this['_getSuggestionCoords'](_0x5a7f4e);for(const _0x13e7a7 of _0xd9c25){const _0x2ded78=_0x4326b0['createRangeOn'](_0x13e7a7),_0x2b21d7=_0x205172['getCellLocation'](_0x13e7a7),_0x2e929e=_0x13e7a7['getAttribute'](_0x2876b0)-0x1,_0x22e099=_0x3c0c50[_0x57fddd],_0x48cbb3=_0x3c0c50[_0x1c9da6];_0x22e099<=_0x2b21d7[_0x6643ac]&&_0x2b21d7[_0x6643ac]+_0x2e929e<=_0x48cbb3&&_0x5a7f4e['addRange'](_0x2ded78);}}});});}function _0x1e9d67(_0x28cbd2){const _0x1a919f=Array['from'](_0x5ecce9['getRanges']())['map'](_0x597b92=>_0x425d25['fromRange'](_0x597b92));_0x27e0e6['model']['change'](_0x45070d=>{const _0x4a19bc=_0x45070d['batch'];_0x28cbd2=_0x28cbd2['filter'](_0x593e39=>'$graveyard'!=_0x593e39['root']['rootName']),_0x45070d['setSelection'](_0x28cbd2),_0x27e0e6['commands']['get']('removeTableRow')['refresh'](),_0x27e0e6['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x27e0e6['model']['enqueueChange'](()=>{_0x27e0e6['model']['enqueueChange'](_0x4a19bc,_0x525725=>{const _0x2114fb=_0x1a919f['filter'](_0x6cff1a=>'$graveyard'!=_0x6cff1a['root']['rootName']);_0x2114fb['length']>0x0&&_0x525725['setSelection'](_0x2114fb);for(const _0x4c0108 of _0x1a919f)_0x4c0108['detach']();});});});}function _0x236f9b(_0x558e5a){_0x27e0e6['model']['change'](_0x4b47d3=>{const _0x498091=Array['from'](_0x5ecce9['getRanges']())['map'](_0x407de5=>_0x425d25['fromRange'](_0x407de5)),_0x261eeb=[];for(const _0x57fa86 of _0x558e5a)for(const _0x1ed03b of _0x57fa86['getItems']({'shallow':!0x0}))_0x261eeb['push'](_0x1ed03b);for(const _0x25a7ad of _0x261eeb)'$graveyard'!=_0x25a7ad['root']['rootName']&&(_0x4b47d3['setSelection'](_0x4b47d3['createPositionAt'](_0x25a7ad,0x0)),_0x27e0e6['commands']['get']('removeTableColumn')['refresh'](),_0x27e0e6['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x43c445=_0x498091['filter'](_0x1dbf34=>'$graveyard'!=_0x1dbf34['root']['rootName']);_0x43c445['length']>0x0&&_0x4b47d3['setSelection'](_0x43c445);for(const _0x34895a of _0x498091)_0x34895a['detach']();});}function _0x542b94(_0x45992a,_0x2482e5){return _0x2482e5['every'](_0x1144a1=>_0x45992a['some'](_0x59ac95=>_0x59ac95['end']['isEqual'](_0x1144a1['start'])||_0x1144a1['end']['isEqual'](_0x59ac95['start'])));}function _0x355855(_0x368404,_0x202b58){return!_0x368404['some'](_0x36c0c9=>_0x202b58['some'](_0x49d404=>_0x36c0c9['isIntersecting'](_0x49d404)))&&_0x368404['some'](_0x2f241b=>_0x202b58['some'](_0x3d6678=>_0x2f241b['end']['isTouching'](_0x3d6678['start'])));}_0x27e0e6['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3f7294,_0x4d3f5b,_0x5427f6)=>{if(!_0x5427f6['options']['showSuggestionHighlights'])return;const _0x32b5dd=_0x4d3f5b['item'];if(!_0x32b5dd)return;const _0x5d1251=_0x5427f6['mapper']['toViewElement'](_0x32b5dd);function _0x23d468(_0x2843dc){return Array['isArray'](_0x2843dc)?_0x2843dc:[_0x2843dc];}_0x5d1251&&'tableCell'===_0x32b5dd['name']&&_0x3aee56(_0x5d1251,_0x5427f6['writer'],(_0x2388af,_0x3ce2fe,_0x18977a)=>_0x18977a['addClass'](_0x23d468(_0x3ce2fe['classes']),_0x2388af),(_0x6d5391,_0x14d179,_0x73793b)=>_0x73793b['removeClass'](_0x23d468(_0x14d179['classes']),_0x6d5391));},{'priority':'highest'}),_0x26b30c['descriptionFactory']['registerDescriptionCallback'](_0x4dd5b8=>{if('insertion'!=_0x4dd5b8['type']&&'deletion'!=_0x4dd5b8['type'])return;const _0x54f03b=_0x4dd5b8['getContainedElement']();if(null!=_0x54f03b&&_0x54f03b['is']('element','table')){if('insertion'==_0x4dd5b8['type']){const _0x863b1c=_0x4dd5b8['getItems']()['filter'](_0x45743a=>_0x45743a['is']('$textProxy'))['map'](_0x28c3bf=>_0x28c3bf['data']);if(_0x863b1c['length'])return{'type':'insertion','content':o(_0x228031,'*Insert:*\x20%0',o(_0x228031,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x863b1c['join']('\x20')+'\x22'))};}if('deletion'==_0x4dd5b8['type']){const _0x4e0311=_0x4dd5b8['getItems']()['filter'](_0x57c03d=>_0x57c03d['is']('$textProxy'))['map'](_0x4698e9=>_0x4698e9['data']);if(_0x4e0311['length'])return{'type':'deletion','content':o(_0x228031,'*Remove:*\x20%0',o(_0x228031,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4e0311['join']('\x20')+'\x22'))};}}}),_0x26b30c['descriptionFactory']['registerDescriptionCallback'](_0x56f2b0=>{if('tableRow'==_0x56f2b0['subType']){const _0x5a8e62=_0x56f2b0['getItems']()['filter'](_0x29959f=>_0x29959f['is']('$textProxy'))['map'](_0x20cd5b=>_0x20cd5b['data']),_0x5098a7=this['_getSuggestionCoords'](_0x56f2b0),_0xc10826=_0x5098a7['maxRow']-_0x5098a7['minRow']+0x1;if('insertion'==_0x56f2b0['type'])return _0x5a8e62['length']?{'type':'insertion','content':o(_0x228031,'*Insert:*\x20%0',o(_0x228031,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xc10826,'\x22'+_0x5a8e62['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x228031,'*Insert:*\x20%0',o(_0x228031,'ELEMENT_TABLE_ROW',_0xc10826))};if('deletion'==_0x56f2b0['type'])return _0x5a8e62['length']?{'type':'deletion','content':o(_0x228031,'*Remove:*\x20%0',o(_0x228031,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xc10826,'\x22'+_0x5a8e62['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x228031,'*Remove:*\x20%0',o(_0x228031,'ELEMENT_TABLE_ROW',_0xc10826))};}if('tableColumn'==_0x56f2b0['subType']){const _0x4209c7=_0x56f2b0['getItems']()['filter'](_0x394979=>_0x394979['is']('$textProxy'))['map'](_0x109fcb=>_0x109fcb['data']),_0x15c4da=this['_getSuggestionCoords'](_0x56f2b0),_0x29e383=_0x15c4da['maxColumn']-_0x15c4da['minColumn']+0x1;if('insertion'==_0x56f2b0['type'])return _0x4209c7['length']?{'type':'insertion','content':o(_0x228031,'*Insert:*\x20%0',o(_0x228031,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x29e383,'\x22'+_0x4209c7['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x228031,'*Insert:*\x20%0',o(_0x228031,'ELEMENT_TABLE_COLUMN',_0x29e383))};if('deletion'==_0x56f2b0['type'])return _0x4209c7['length']?{'type':'deletion','content':o(_0x228031,'*Remove:*\x20%0',o(_0x228031,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x29e383,'\x22'+_0x4209c7['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x228031,'*Remove:*\x20%0',o(_0x228031,'ELEMENT_TABLE_COLUMN',_0x29e383))};}}),_0x26b30c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1e9d67),_0x26b30c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1e9d67),_0x26b30c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x236f9b),_0x26b30c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x236f9b),_0x26b30c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x542b94),_0x26b30c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x542b94),_0x26b30c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x355855),_0x26b30c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x355855);}['_acceptFormatSuggestionCallbackFactory'](){const _0x261561=this['editor'],_0x1eee8d=_0x261561['model']['document']['selection'];return(_0x1eb928,_0x50c621)=>{_0x261561['model']['change'](_0x4c956c=>{const {commandName:_0x4000be,commandParams:_0x56a27c}=_0x50c621;let _0x501990=_0x1eb928[0x0]['end']['nodeBefore'];_0x56a27c&&_0x56a27c[0x0]&&!0x1===_0x56a27c[0x0]['forceValue']&&(_0x501990=_0x1eb928[0x0]['start']['nodeAfter']);const _0x4c8869=_0x4c956c['createRangeIn'](_0x501990);if('$graveyard'==_0x4c8869['root']['rootName'])return;const _0x48bb3e=Array['from'](_0x1eee8d['getRanges']())['map'](_0x2ba280=>_0x425d25['fromRange'](_0x2ba280));_0x4c956c['setSelection'](_0x4c8869),_0x261561['commands']['get'](_0x4000be)['refresh'](),_0x56a27c['push']({'forceDefaultExecution':!0x0}),_0x261561['execute'](_0x4000be,..._0x56a27c);const _0x3a3ea7=_0x48bb3e['filter'](_0xa64dc0=>'$graveyard'!=_0xa64dc0['root']['rootName']);_0x3a3ea7['length']>0x0&&_0x4c956c['setSelection'](_0x3a3ea7);for(const _0x2dbcbb of _0x48bb3e)_0x2dbcbb['detach']();});};}['_getCoordsForCells'](_0x36e0ab){const _0x2b069a=this['editor']['plugins']['get']('TableUtils');let _0xfdea95=Number['MAX_SAFE_INTEGER'],_0x5c62ad=Number['MIN_SAFE_INTEGER'],_0x1a9361=Number['MAX_SAFE_INTEGER'],_0x96ca87=Number['MIN_SAFE_INTEGER'];for(const _0x29f54f of _0x36e0ab){if('$graveyard'==_0x29f54f['root']['rootName'])continue;const {row:_0x55a4cf,column:_0x323fe6}=_0x2b069a['getCellLocation'](_0x29f54f),_0xe2023f=_0x29f54f['hasAttribute']('rowspan')?_0x29f54f['getAttribute']('rowspan')-0x1:0x0,_0x55b1db=_0x29f54f['hasAttribute']('colspan')?_0x29f54f['getAttribute']('colspan')-0x1:0x0;_0xfdea95=_0x55a4cf<_0xfdea95?_0x55a4cf:_0xfdea95,_0x5c62ad=_0x55a4cf+_0xe2023f>_0x5c62ad?_0x55a4cf+_0xe2023f:_0x5c62ad,_0x1a9361=_0x323fe6<_0x1a9361?_0x323fe6:_0x1a9361,_0x96ca87=_0x323fe6+_0x55b1db>_0x96ca87?_0x323fe6+_0x55b1db:_0x96ca87;}return{'minRow':_0xfdea95,'maxRow':_0x5c62ad,'minColumn':_0x1a9361,'maxColumn':_0x96ca87};}['_setupColumnsRowsFixing'](){const _0x123dd5=this['editor'],_0xfea845=_0x123dd5['plugins']['get']('TrackChangesEditing'),_0x3b2289=_0x123dd5['plugins']['get']('TableUtils');_0x123dd5['model']['document']['on']('change:data',()=>{const _0x3bd797=Array['from'](_0x123dd5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2098a8,data:_0x472fd0}of _0x3bd797){const {group:_0x1d7fbb,id:_0x59cddb,subType:_0xebe852}=_0xfea845['_splitMarkerName'](_0x2098a8);if('suggestion'!=_0x1d7fbb)continue;if(null!=_0x472fd0['oldRange'])continue;const _0x2edf1f=_0xfea845['getSuggestion'](_0x59cddb);this['_tablePostFixingSubtypes']['includes'](_0xebe852)&&this['_tableSuggestions']['add'](_0x2edf1f);}},{'priority':'low'});const _0x2981a5=(_0x57a4d6,_0xca9d50)=>{let _0x54634c=!0x1;const _0x1612b9=_0xca9d50['createRangeOn'](_0x57a4d6),_0x12dbe5=_0x57a4d6['findAncestor']('table'),_0x15ea43=_0x3b2289['getCellLocation'](_0x57a4d6);for(const _0x28c37f of this['_tableSuggestions']){const _0x4eaaef=_0x28c37f['subType'],_0x2e32a4=_0x4eaaef['startsWith']('tablePaste'),_0x8971a6=_0x4eaaef['substr'](_0x2e32a4?0xa:0x5),_0x10dbdb=_0x8971a6['toLowerCase'](),_0x19ae08=_0x10dbdb['substr'](0x0,0x3)+'span',_0x1d883c='min'+_0x8971a6,_0x31aaf7='max'+_0x8971a6;if(!_0x28c37f['isInContent'])continue;if(_0x12dbe5!=_0x28c37f['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x28c37f['isIntersectingWithRange'](_0x1612b9))continue;const _0x2535cc=_0x57a4d6['hasAttribute'](_0x19ae08)?_0x57a4d6['getAttribute'](_0x19ae08)-0x1:0x0,_0x4dcfae=this['_getSuggestionCoords'](_0x28c37f),_0x21b773=_0x4dcfae[_0x1d883c],_0x138cba=_0x4dcfae[_0x31aaf7];_0x21b773<=_0x15ea43[_0x10dbdb]&&_0x15ea43[_0x10dbdb]+_0x2535cc<=_0x138cba&&(_0x28c37f['addRange'](_0x1612b9),_0x54634c=!0x0);}return _0x54634c;};_0x123dd5['model']['document']['registerPostFixer'](_0x423d7f=>{let _0x19258c=!0x1;for(const _0x5ac559 of _0x123dd5['model']['document']['differ']['getChanges']())if('insert'==_0x5ac559['type']){if('tableRow'==_0x5ac559['name']){for(const _0x2043ff of _0x5ac559['position']['nodeAfter']['getChildren']())_0x19258c=_0x19258c||_0x2981a5(_0x2043ff,_0x423d7f);}else'tableCell'==_0x5ac559['name']&&(_0x19258c=_0x19258c||_0x2981a5(_0x5ac559['position']['nodeAfter'],_0x423d7f));}return _0x19258c;});}['_getSuggestionCoords'](_0x2a5757){return this['_getCoordsForCells'](_0x2a5757['getRanges']()['map'](_0x1d45f9=>_0x1d45f9['start']['nodeAfter']));}}function be(_0x43b54c){return Array['from'](new Set(_0x43b54c)['values']());}class vt extends _0xd0fe4f{static get['requires'](){return[It];}['afterInit'](){const _0x1e027c=this['editor'],_0x49ea5f=_0x1e027c['model']['document']['selection'],_0x916f61=_0x1e027c['locale'];if(!_0x1e027c['plugins']['has']('TableEditing'))return;const _0x28de6e=_0x1e027c['plugins']['get']('TrackChangesEditing'),_0x59c1fc=_0x1e027c['plugins']['get']('TableUtils'),_0x364669=_0x1e027c['plugins']['get'](It);_0x364669['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x28de6e['enableCommand']('mergeTableCells',()=>{const _0xbab2ce=_0x59c1fc['getSelectionAffectedTableCells'](_0x1e027c['model']['document']['selection']);_0x1e027c['model']['change'](()=>{_0x28de6e['markMultiRangeBlockFormat'](_0xbab2ce,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x1e027c['commands']['get']('mergeTableCells')['on']('execute',(_0x1d7ba9,_0x1316b5)=>{_0x1e027c['commands']['get']('trackChanges')['value']&&(_0x1316b5['length']>0x0&&_0x1316b5[_0x1316b5['length']-0x1]&&_0x1316b5[_0x1316b5['length']-0x1]['forceDefaultExecution']||_0x28de6e['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1d7ba9['stop']());},{'priority':'highest'});for(const _0x1c8dd0 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2d46f3=_0x1e027c['commands']['get'](_0x1c8dd0);_0x28de6e['enableCommand'](_0x1c8dd0,()=>{const _0x1ebd04=_0x1e027c['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3b29f2=>_0x3b29f2['is']('element','tableCell')),_0x496c8f=_0x2d46f3['value'];_0x1e027c['model']['change'](()=>{_0x28de6e['markMultiRangeBlockFormat']([_0x1ebd04,_0x496c8f],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1a67ce of['splitTableCellVertically','splitTableCellHorizontally']){const _0x56e6ac=_0x1e027c['commands']['get'](_0x1a67ce);_0x28de6e['enableCommand'](_0x1a67ce,()=>{const _0x4e6c4b=_0x59c1fc['getSelectionAffectedTableCells'](_0x1e027c['model']['document']['selection'])[0x0],_0x364858=_0x4e6c4b['findAncestor']('table'),{column:_0xa4e37c,row:_0x540c00}=_0x59c1fc['getCellLocation'](_0x4e6c4b);let _0x261b05=[];if('horizontally'==_0x56e6ac['direction']){const _0x5bd2b9=_0x59c1fc['createTableWalker'](_0x364858,{'startRow':_0x540c00,'endRow':_0x540c00,'includeAllSlots':!0x0});_0x261b05=Array['from'](_0x5bd2b9)['map'](_0xc4c63a=>_0xc4c63a['cell']);}else{const _0xc3059=_0x59c1fc['createTableWalker'](_0x364858,{'column':_0xa4e37c,'includeAllSlots':!0x0});_0x261b05=Array['from'](_0xc3059)['map'](_0x553f1b=>_0x553f1b['cell']);}_0x1e027c['model']['change'](_0x57e6a4=>{_0x28de6e['markBlockFormat'](_0x57e6a4['createRangeOn'](_0x4e6c4b),{'commandName':_0x1a67ce,'commandParams':[]},_0x261b05,_0x1a67ce);});});}_0x28de6e['descriptionFactory']['registerDescriptionCallback'](_0x2f3674=>{if('formatBlock'!=_0x2f3674['type']&&'formatInline'!=_0x2f3674['type'])return;const {data:_0x47e13b}=_0x2f3674;return _0x47e13b&&'mergeTableCells'==_0x47e13b['commandName']?{'type':'format','content':o(_0x916f61,'*Merge\x20cells*')}:void 0x0;}),_0x28de6e['descriptionFactory']['registerDescriptionCallback'](_0x483cf2=>{if('formatBlock'!=_0x483cf2['type']&&'formatInline'!=_0x483cf2['type'])return;const {data:_0x514a95}=_0x483cf2;return _0x514a95?'splitTableCellVertically'==_0x514a95['commandName']?{'type':'format','content':o(_0x916f61,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x514a95['commandName']?{'type':'format','content':o(_0x916f61,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x12df79=_0x364669['_acceptFormatSuggestionCallbackFactory']();for(const _0x15c341 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x28de6e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x15c341,'accept',_0x12df79);for(const _0x42ff08 of['splitTableCellVertically','splitTableCellHorizontally'])_0x28de6e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x42ff08,'accept',_0x12df79);_0x28de6e['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x35a96d=>{_0x1e027c['model']['change'](_0x435716=>{const _0x55033c=Array['from'](_0x49ea5f['getRanges']())['map'](_0x57c2a3=>_0x425d25['fromRange'](_0x57c2a3));_0x435716['setSelection'](_0x35a96d),_0x1e027c['commands']['get']('mergeTableCells')['refresh'](),_0x1e027c['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5b0a8c=_0x55033c['filter'](_0x97aaee=>'$graveyard'!=_0x97aaee['root']['rootName']);_0x5b0a8c['length']>0x0&&_0x435716['setSelection'](_0x5b0a8c);for(const _0x417979 of _0x55033c)_0x417979['detach']();});});for(const _0x3c5f0e of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3ae53b=_0x1e027c['commands']['get'](_0x3c5f0e);_0x3ae53b['on']('set:isEnabled',(_0x21339a,_0x532ed5,_0x19378b)=>{if(_0x19378b){const _0x3a0ad4=_0x1e027c['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x584f07=>_0x584f07['is']('element','tableCell'));this['_areMergableCells'](_0x3ae53b['value'],_0x3a0ad4)||(_0x21339a['return']=!0x1,_0x21339a['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1057f0=this['editor']['commands']['get']('mergeTableCells'),_0x33989a=this['editor']['plugins']['get']('TableUtils');if(!_0x1057f0['isEnabled'])return!0x1;const _0x5f370b=_0x33989a['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1e5c4f of _0x5f370b)for(const _0x4c854a of _0x5f370b)if(_0x1e5c4f!=_0x4c854a&&!this['_areMergableCells'](_0x1e5c4f,_0x4c854a))return!0x1;return!0x0;}['_areMergableCells'](_0xfd9d21,_0x186ce3){const _0x3e11a4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x55559e=this['editor']['model']['createRangeOn'](_0xfd9d21),_0x45c3ce=this['editor']['model']['createRangeOn'](_0x186ce3),_0x522004=new Set(),_0xa22c9b=new Set();for(const _0x45808d of _0x3e11a4['getSuggestions']())if(('insertion'==_0x45808d['type']||'deletion'==_0x45808d['type']||'mergeTableCells'==_0x45808d['subType'])&&_0x45808d['isInContent']){for(const _0x540f8c of _0x45808d['getRanges']())_0x540f8c['containsRange'](_0x55559e,!0x0)&&_0x522004['add'](_0x45808d['type']+':'+_0x45808d['author']['id']),_0x540f8c['containsRange'](_0x45c3ce,!0x0)&&_0xa22c9b['add'](_0x45808d['type']+':'+_0x45808d['author']['id']);}if(_0x522004['size']!=_0xa22c9b['size'])return!0x1;for(const _0x46569d of _0x522004)if(!_0xa22c9b['has'](_0x46569d))return!0x1;return!0x0;}}class Ct extends _0xd0fe4f{static get['requires'](){return[It];}['afterInit'](){const _0x2d438a=this['editor'];if(!_0x2d438a['plugins']['has']('TableEditing'))return;const _0x58ea74=_0x2d438a['locale'],_0x3d45a4=_0x2d438a['plugins']['get']('TrackChangesEditing');_0x3d45a4['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x3d45a4['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x3d45a4['registerBlockAttribute']('headingRows'),_0x3d45a4['registerBlockAttribute']('headingColumns'),_0x3d45a4['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x58ea74,'FORMAT_HEADER_ROW')),_0x3d45a4['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x58ea74,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2cc6f7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3fc27d=this['editor']['plugins']['get']('TableUtils'),_0x19503a=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x40151c({showActiveMarker:_0x27afe3=!0x0,setDataAttribute:_0x2beb6f=!0x0}={}){return(_0xaf5e19,_0xc80571,_0x17d2fb)=>{const {type:_0x122623,id:_0x21abd9}=_0x2cc6f7['_splitMarkerName'](_0xc80571['markerName']),_0x373ce2=_0x2cc6f7['getSuggestion'](_0x21abd9),_0x2b18b2=_0x373ce2['data'];if('formatBlock'!=_0x373ce2['type']||!_0x2b18b2||'setTableColumnHeader'!=_0x2b18b2['commandName'])return;if(_0xc80571['item'])return void _0xaf5e19['stop']();if(!_0x17d2fb['consumable']['consume'](_0xc80571['markerRange'],_0xaf5e19['name']))return;const _0x240357=_0xc80571['markerRange']['start']['nodeAfter'],_0x120c74=_0xc80571['markerRange']['end']['nodeBefore'],_0x582d19=_0x240357['parent']['parent'],{column:_0x388037}=_0x3fc27d['getCellLocation'](_0x240357),{column:_0x38237b}=_0x3fc27d['getCellLocation'](_0x120c74);for(let _0x4ba8cd=_0x388037;_0x4ba8cd<=_0x38237b;_0x4ba8cd++){const _0xffb4ef=_0x3fc27d['createTableWalker'](_0x582d19,{'column':_0x4ba8cd,'includeAllSlots':!0x1});for(const _0x3bda54 of _0xffb4ef){const _0x3bdc21=_0x3bda54['cell'],_0x157830=_0x17d2fb['mapper']['toViewElement'](_0x3bdc21);_0x17d2fb['writer']['addClass']('ck-suggestion-marker-'+_0x122623,_0x157830),_0x2beb6f&&_0x17d2fb['writer']['setAttribute']('data-suggestion',_0x21abd9,_0x157830),_0x17d2fb['mapper']['bindElementToMarker'](_0x157830,_0xc80571['markerName']),_0x27afe3&&(_0x2cc6f7['activeMarkers']['includes'](_0xc80571['markerName'])?_0x17d2fb['writer']['addClass']('ck-suggestion-marker--active',_0x157830):_0x17d2fb['writer']['removeClass']('ck-suggestion-marker--active',_0x157830));}}};}_0x2cc6f7['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x19503a),_0x2cc6f7['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x19503a),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x40151c(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1e6d02,_0x3dfef8,_0x1508e7)=>{_0x1508e7['options']['showSuggestionHighlights']&&_0x40151c({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1e6d02,_0x3dfef8,_0x1508e7);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x227abe,_0x4f2053,_0x3d3659)=>{const {type:_0x4f8305,id:_0x6b6098}=_0x2cc6f7['_splitMarkerName'](_0x4f2053['markerName']),_0x252af4=_0x2cc6f7['getSuggestion'](_0x6b6098),_0x33bc1c=_0x252af4['data'];if('formatBlock'!=_0x252af4['type']||!_0x33bc1c||'setTableColumnHeader'!=_0x33bc1c['commandName'])return;const _0xf67e88=_0x3d3659['mapper']['markerNameToElements'](_0x4f2053['markerName']);if(_0xf67e88){for(const _0x401bde of _0xf67e88)_0x3d3659['writer']['removeClass']('ck-suggestion-marker-'+_0x4f8305,_0x401bde),_0x3d3659['writer']['removeClass']('ck-suggestion-marker--active',_0x401bde),_0x3d3659['writer']['removeAttribute']('data-suggestion',_0x401bde),_0x3d3659['mapper']['unbindElementFromMarkerName'](_0x401bde,_0x4f2053['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x552a99=this['editor'],_0x75073f=_0x552a99['locale'];function _0x39de1d(_0x5f28b4){return{'type':'format','content':o(_0x75073f,'*Format:*\x20%0',_0x5f28b4)};}_0x552a99['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x434057=>{if('formatBlock'!=_0x434057['type'])return;const {data:_0x26bd86}=_0x434057;if(_0x26bd86){if('setTableRowHeader'==_0x26bd86['commandName']){const _0x26ee12=_0x26bd86['commandParams'][0x0]['forceValue'];return _0x39de1d(o(_0x75073f,_0x26ee12?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x26bd86['commandName']){const _0x1fe400=_0x26bd86['commandParams'][0x0]['forceValue'];return _0x39de1d(o(_0x75073f,_0x1fe400?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x541f91=>[_0x541f91,null]));class _t extends _0xd0fe4f{static get['requires'](){return[It];}['afterInit'](){const _0x2e2ba4=this['editor'];if(!_0x2e2ba4['plugins']['has']('TableClipboard'))return;const _0x3df9c8=_0x2e2ba4['plugins']['get']('TrackChangesEditing'),_0x4a37c6=_0x2e2ba4['plugins']['get']('TableUtils'),_0xde404f=_0x2e2ba4['plugins']['get'](It),_0x11eae2=_0x2e2ba4['plugins']['get']('TableClipboard');_0xde404f['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2e2ba4['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2e2ba4['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5397f9=null;_0x2e2ba4['model']['on']('insertContent',(_0x54a7a7,_0x320ff1)=>{const [_0x49c356,_0x11bf99]=_0x320ff1,_0x56e8bc=_0x320ff1[_0x320ff1['length']-0x1];_0x56e8bc&&_0x56e8bc['forceDefaultExecution']||_0x3df9c8['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4663ac,_0x7ff3f0,_0x56a2a,_0x5c6b7,_0x15bc45){if(_0x7ff3f0&&!_0x7ff3f0['is']('documentSelection'))return!0x1;const _0x2f3572=_0x15bc45['getTableIfOnlyTableInContent'](_0x4663ac,_0x56a2a);if(!_0x2f3572||!Re(_0x2f3572,void 0x0,_0x5c6b7))return!0x1;const _0x5a5c45=_0x5c6b7['getSelectionAffectedTableCells'](_0x56a2a['document']['selection']);if(!_0x5a5c45['length'])return!0x1;const _0xc16b99=_0x5a5c45[0x0]['findAncestor']('table'),_0x5dca94=_0x5c6b7['getRowIndexes'](_0x5a5c45),_0x5ee650=_0x5c6b7['getColumnIndexes'](_0x5a5c45),_0x2eae94={'startRow':_0x5dca94['first'],'endRow':_0x5dca94['last'],'startColumn':_0x5ee650['first'],'endColumn':_0x5ee650['last']};return 0x1==_0x5a5c45['length']&&(_0x2eae94['endRow']+=_0x5c6b7['getRows'](_0x2f3572)-0x1,_0x2eae94['endColumn']+=_0x5c6b7['getColumns'](_0x2f3572)-0x1),Re(_0xc16b99,_0x2eae94,_0x5c6b7);}(_0x49c356,_0x11bf99,_0x2e2ba4['model'],_0x4a37c6,_0x11eae2)&&(_0x54a7a7['stop'](),_0x5397f9={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2e2ba4['model']['change'](()=>{_0x2e2ba4['model']['insertContent'](_0x320ff1[0x0],_0x320ff1[0x1],_0x320ff1[0x2],{'forceDefaultExecution':!0x0});const _0x3d8ec4=_0x2b2341(),{rowInsertionRanges:_0x4fe6bd,columnInsertionRanges:_0x13ab86,insertionRanges:_0x32bc4f,deletionRanges:_0x145d98,cells:_0x2522ea}=_0x5397f9;_0x4fe6bd['length']&&_0x3df9c8['markMultiRangeInsertion'](_0x4fe6bd,'tablePasteRow',{'tablePasteChainId':_0x3d8ec4}),_0x13ab86['length']&&_0x3df9c8['markMultiRangeInsertion'](_0x13ab86,'tablePasteColumn',{'tablePasteChainId':_0x3d8ec4}),_0x32bc4f['length']&&(_0x3df9c8['markMultiRangeInsertion'](_0x32bc4f,'tablePaste',{'tablePasteChainId':_0x3d8ec4,'skipNestingCheck':!0x0}),_0x32bc4f['forEach'](_0x1a4640=>_0x1a4640['detach']?.())),_0x145d98['length']&&(_0x3df9c8['markMultiRangeDeletion'](_0x145d98,'tablePaste',{'tablePasteChainId':_0x3d8ec4,'skipNestingCheck':!0x0}),_0x145d98['forEach'](_0x5574b=>_0x5574b['detach']?.()));const _0x3c03b4=_0x3df9c8['markMultiRangeBlockFormat'](_0x2522ea['map'](({element:_0x5b937b})=>_0x5b937b),{'formatGroupId':_0x2b2341()},[],'tablePasteCell',{'tablePasteChainId':_0x3d8ec4});if(_0x3c03b4){const _0x38135c=_0x3c03b4['getMarkers'](),_0x3b30cc=[];for(const {element:_0x8e2d5,attributes:_0x5102b0}of _0x2522ea){if(!_0x5102b0)continue;const _0xfe6d26=_0x2e2ba4['model']['createRangeOn'](_0x8e2d5),_0x1c9860=_0x38135c['find'](_0x382cd8=>_0x382cd8['getRange']()['isEqual'](_0xfe6d26));_0x1c9860&&_0x3b30cc['push']([_0x1c9860['name'],_0x5102b0]);}_0x3b30cc['length']&&_0x3c03b4['setAttribute']('markerAttributes',Object['fromEntries'](_0x3b30cc));}_0x5397f9=null;}));},{'priority':_0x393348['high']+0xa}),_0x2e2ba4['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x4b7c21,_0xd374c0)=>{const [_0x47de86,_0x23b94a,,_0x3c0130]=_0xd374c0;if(!_0x5397f9)return;_0x4b7c21['stop']();const _0x1c815a=_0x47de86['cell'],_0x20e1c2=_0x23b94a,_0x3e48d2=ke(_0x1c815a),_0xccc8dd=ke(_0x20e1c2);_0x4b7c21['return']=_0x1c815a;let _0x1b6dda=null,_0x5aed00=null;if(_0xccc8dd||_0x3e48d2){if(_0x3e48d2&&!_0xccc8dd){_0x3c0130['remove'](_0x1c815a['getChild'](0x0));for(const _0x2e3ca6 of Array['from'](_0x20e1c2['getChildren']()))_0x3c0130['insert'](_0x2e3ca6,_0x1c815a,'end');const _0x143ac1=_0x5397f9['rowInsertionIndexes']['includes'](_0x47de86['row']),_0x36eee3=_0x5397f9['columnInsertionIndexes']['includes'](_0x47de86['column']);_0x143ac1||_0x36eee3||(_0x1b6dda=_0x425d25['fromRange'](_0x3c0130['createRangeIn'](_0x1c815a)));}else _0xccc8dd&&!_0x3e48d2&&(_0x5aed00=_0x3c0130['createRangeIn'](_0x1c815a));}else{const _0x5f016c=_0x3c0130['createElement']('tableCellSuggestion'),_0x5bc01e=_0x3c0130['createElement']('tableCellSuggestion');_0x3c0130['wrap'](_0x3c0130['createRangeIn'](_0x1c815a),_0x5bc01e),_0x3c0130['insert'](_0x5f016c,_0x1c815a,0x0);for(const _0x579e18 of Array['from'](_0x20e1c2['getChildren']()))_0x3c0130['insert'](_0x579e18,_0x5f016c,'end');_0x1b6dda=_0x425d25['fromRange'](_0x3c0130['createRangeOn'](_0x5f016c)),_0x5aed00=_0x425d25['fromRange'](_0x3c0130['createRangeOn'](_0x5bc01e));}const _0x130b3e=Array['from'](_0x20e1c2['getAttributes']())['filter'](([_0x11663c])=>Pe['includes'](_0x11663c));_0x5397f9['cells']['push']({'element':_0x1c815a,'attributes':_0x130b3e['length']?Object['fromEntries'](_0x130b3e):null}),_0x1b6dda&&_0x5397f9['insertionRanges']['push'](_0x1b6dda),_0x5aed00&&_0x5397f9['deletionRanges']['push'](_0x5aed00);},{'priority':'high'}),_0x4a37c6['on']('insertColumns',(_0x1c3028,_0x455def)=>{const [_0x5bd26c,_0x4c6633={}]=_0x455def;if(!_0x5397f9)return;const _0x4b90d9=_0x4c6633['at']||0x0,_0x1da5f3=_0x4c6633['columns']||0x1;_0x5397f9['columnInsertionIndexes']=new Array(_0x1da5f3)['fill'](_0x4b90d9)['map']((_0xad9a90,_0x52c658)=>_0xad9a90+_0x52c658);for(const {cell:_0x5603d5}of _0x4a37c6['createTableWalker'](_0x5bd26c,{'startColumn':_0x4b90d9,'endColumn':_0x4b90d9+_0x1da5f3-0x1}))_0x5397f9['columnInsertionRanges']['push'](_0x2e2ba4['model']['createRangeOn'](_0x5603d5));},{'priority':'low'}),_0x4a37c6['on']('insertRows',(_0x3b039b,_0x6d77b0)=>{const [_0x195a5c,_0x4ba01e={}]=_0x6d77b0;if(!_0x5397f9)return;const _0x36d29e=_0x4ba01e['at']||0x0,_0x5658fa=_0x4ba01e['rows']||0x1;_0x5397f9['rowInsertionIndexes']=new Array(_0x5658fa)['fill'](_0x36d29e)['map']((_0x53f608,_0x2e6723)=>_0x53f608+_0x2e6723);for(const {cell:_0x3d270a}of _0x4a37c6['createTableWalker'](_0x195a5c,{'startRow':_0x36d29e,'endRow':_0x36d29e+_0x5658fa-0x1}))_0x5397f9['rowInsertionRanges']['push'](_0x2e2ba4['model']['createRangeOn'](_0x3d270a));},{'priority':'low'}),_0x3df9c8['descriptionFactory']['registerDescriptionCallback'](_0x361aff=>{if(_0x361aff['subType']&&_0x361aff['subType']['startsWith']('tablePaste'))return _0x361aff['previous']?{}:{'type':'insertion','content':o(_0x2e2ba4['locale'],'*Replace\x20table\x20cells*')};});const _0x213e0e=()=>!0x1;for(const _0x3ba476 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x3df9c8['_suggestionFactory']['registerCustomCallback']('insertion',_0x3ba476,'join',_0x213e0e),_0x3df9c8['_suggestionFactory']['registerCustomCallback']('deletion',_0x3ba476,'join',_0x213e0e),_0x3df9c8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3ba476,'join',_0x213e0e);_0x3df9c8['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x213e0e),_0x3df9c8['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x589258,_0x3d13fb,_0xeb7100)=>{const _0x23602c=_0x589258['map'](_0x3f6dbc=>_0x3f6dbc['getContainedElement']())['filter'](_0x489ef8=>_0x489ef8),_0x1830b8=new Map(_0x23602c['map'](_0xd69140=>[_0xd69140,null]));if(_0x5397f9){for(const {element:_0x392cf3,attributes:_0x49b166}of _0x5397f9['cells'])_0x49b166&&_0x1830b8['set'](_0x392cf3,_0x49b166);}else{if(_0xeb7100&&_0xeb7100['markerAttributes'])for(const [_0x11bc01,_0xd41a72]of Object['entries'](_0xeb7100['markerAttributes'])){const _0x328497=_0x2e2ba4['model']['markers']['get'](_0x11bc01),_0xc0993d=_0x328497?_0x328497['getRange']()['getContainedElement']():null;_0xc0993d&&_0x1830b8['set'](_0xc0993d,_0xd41a72);}}_0x2e2ba4['model']['change'](_0x278b80=>{for(const [_0x4751c4,_0x19068e]of _0x1830b8)_0x278b80['setAttributes']({...we,..._0x19068e},_0x4751c4);});});const _0x26fa3e=(_0x918b05,_0x26b22f)=>{_0x3df9c8['_suggestionFactory']['registerCustomCallback'](_0x918b05,'tablePaste',_0x26b22f,(_0x3d4128,_0x46bde4,_0x4d54ce)=>{_0x2e2ba4['model']['change'](_0x4eaae1=>{const _0x2f8d9e=[];for(const _0x399e95 of _0x3d4128){const _0x9c3fc3=_0x399e95['start']['nodeAfter'];_0x9c3fc3['is']('element','tableCellSuggestion')&&_0x2f8d9e['push'](_0x9c3fc3);}_0x3df9c8['_suggestionFactory']['getSuggestionCallback'](_0x918b05,null,_0x26b22f)(_0x3d4128,_0x46bde4,_0x4d54ce);for(const _0x4a736e of _0x2f8d9e)'$graveyard'!=_0x4a736e['root']['rootName']&&_0x4eaae1['unwrap'](_0x4a736e);});});};_0x26fa3e('insertion','accept'),_0x26fa3e('insertion','discard'),_0x26fa3e('deletion','accept'),_0x26fa3e('deletion','discard'),_0x3df9c8['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x20b7e8=>{const _0x13535d=_0x20b7e8['map'](_0x2acc4b=>_0x2acc4b['getContainedElement']()),_0x2d072d=_0x13535d[0x0]['findAncestor']('table'),{minRow:_0x136a6d,maxRow:_0x1bb188}=_0xde404f['_getCoordsForCells'](_0x13535d);_0x4a37c6['removeRows'](_0x2d072d,{'at':_0x136a6d,'rows':_0x1bb188-_0x136a6d+0x1});}),_0x3df9c8['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0xdf2664=>{const _0x533cac=_0xdf2664['map'](_0x324cc8=>_0x324cc8['getContainedElement']()),_0x3bfaeb=_0x533cac[0x0]['findAncestor']('table'),{minColumn:_0xe5e6e2,maxColumn:_0x4b7e3a}=_0xde404f['_getCoordsForCells'](_0x533cac);_0x4a37c6['removeColumns'](_0x3bfaeb,{'at':_0xe5e6e2,'columns':_0x4b7e3a-_0xe5e6e2+0x1});});const _0x518c78=(_0x2b51ed,_0x39521b)=>{if(!_0x39521b['subType']||!_0x39521b['subType']['startsWith']('tablePaste'))return;const _0x474fc7=_0x39521b['attributes']['tablePasteChainId'],_0x22908d=_0x3df9c8['getSuggestions']()['filter'](_0x5b24ab=>_0x5b24ab['isInContent']&&_0x5b24ab['attributes']&&_0x5b24ab['attributes']['tablePasteChainId']==_0x474fc7);_0x22908d['length']&&_0x39521b['getAllAdjacentSuggestions']()['length']!=_0x22908d['length']&&_0x22908d['reduce']((_0x2b6592,_0x1a5eca)=>(_0x2b6592['next']=_0x1a5eca,_0x1a5eca['previous']=_0x2b6592,_0x1a5eca));};function _0x1040a1(_0x486445,_0xee2d0c=!0x0){const {id:_0x493ad0,authorId:_0x42ef7c}=_0x3df9c8['_splitMarkerName'](_0x486445['markerName']),_0x1a4d70=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x404c62=_0x3df9c8['activeMarkers']['includes'](_0x486445['markerName']);return _0x404c62&&_0x1a4d70['push']('ck-suggestion-marker--active'),{'classes':_0x1a4d70,'attributes':{'data-suggestion':_0x493ad0,'data-author-id':_0x42ef7c},'priority':_0x404c62&&_0xee2d0c?0xbc2:0xbb8};}_0x3df9c8['on']('suggestionLoaded',_0x518c78,{'priority':'high'}),_0x3df9c8['on']('suggestionUnloaded',_0x518c78,{'priority':'high'}),_0x2e2ba4['model']['document']['registerPostFixer'](()=>{let _0x3a6210=!0x1;const _0x40e8f4=Array['from'](_0x2e2ba4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5e5ec2,data:_0x9e3da4}of _0x40e8f4){const {group:_0x5df6bf,type:_0x43019e,id:_0xbcf2a7}=_0x3df9c8['_splitMarkerName'](_0x5e5ec2);if('suggestion'!=_0x5df6bf||'deletion'!=_0x43019e||_0x9e3da4['oldRange'])continue;if(!_0x3df9c8['hasSuggestion'](_0xbcf2a7))continue;const _0xed1c76=_0x3df9c8['getSuggestion'](_0xbcf2a7)['getRanges'](),_0x41cd60=_0x2e2ba4['plugins']['get']('Users')['me'];for(const _0x1e7f6a of _0x3df9c8['getSuggestions']()){if(!_0x1e7f6a['isInContent']||_0x1e7f6a['author']!=_0x41cd60)continue;if('formatBlock'!=_0x1e7f6a['type']||'tablePasteCell'!=_0x1e7f6a['subType'])continue;if(_0x1e7f6a['getRanges']()['every'](_0x3db72f=>_0xed1c76['some'](_0x23154e=>_0x23154e['containsRange'](_0x3db72f,!0x0)))){for(const _0x50bca6 of _0x1e7f6a['getAllAdjacentSuggestions']())_0x50bca6['isInContent']&&(_0x50bca6['discard'](),_0x3a6210=!0x0);}}}return _0x3a6210;}),_0x2e2ba4['model']['document']['registerPostFixer'](_0x481a41=>{const _0x202fa8=_0x2e2ba4['commands']['get']('redo');if(!_0x202fa8||!_0x202fa8['_createdBatches']['has'](_0x481a41['batch']))return!0x1;let _0x2423ef=!0x1;const _0x1f91d7=_0x2e2ba4['plugins']['get']('Users')['me'],_0x261bc3=_0x2e2ba4['model']['document']['differ']['getChanges'](),_0x51db3c=Array['from'](_0x2e2ba4['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x508e93,data:_0x519c12})=>{const {group:_0x3f63a2,subType:_0x56a894,authorId:_0x533db7}=_0x3df9c8['_splitMarkerName'](_0x508e93);return'suggestion'==_0x3f63a2&&'tablePaste'==_0x56a894&&_0x533db7==_0x1f91d7['id']&&!_0x519c12['oldRange'];});for(const _0x300cbc of _0x261bc3){if('insert'!=_0x300cbc['type']||'tableCellSuggestion'!=_0x300cbc['name']||0x1!=_0x300cbc['length'])continue;const _0x1c9742=_0x481a41['createRange'](_0x300cbc['position'],_0x300cbc['position']['getShiftedBy'](0x1));if(!_0x51db3c['find'](({data:_0x1566cc})=>_0x1566cc['newRange']['isEqual'](_0x1c9742))){for(const {name:_0xbfc22,data:_0x9b04b0}of _0x51db3c)if(_0x1c9742['containsRange'](_0x9b04b0['newRange'])){_0x481a41['updateMarker'](_0xbfc22,{'range':_0x1c9742}),_0x2423ef=!0x0;break;}}}return _0x2423ef;}),_0x2e2ba4['model']['document']['registerPostFixer'](_0x11f83a=>{let _0x4138af=!0x1;const _0x1e960c=_0x2e2ba4['plugins']['get']('Users')['me'],_0x1cdd0e=_0x3df9c8['getSuggestions']()['filter'](_0x3b497c=>_0x3b497c['isInContent']&&_0x3b497c['author']==_0x1e960c),_0x44bae6=new Set(),_0x55bfc6=new Set();for(const _0x5139c5 of _0x1cdd0e)if('tablePaste'==_0x5139c5['subType'])for(const _0x5459b2 of _0x5139c5['getMarkers']()){const _0x4f1b11=_0x5459b2['getRange']()['getContainedElement']();if(_0x4f1b11){if(_0x4f1b11['is']('element','tableCellSuggestion')&&ke(_0x4f1b11)){_0x5139c5['removeMarker'](_0x5459b2['name']),_0x44bae6['add'](_0x4f1b11),_0x4138af=!0x0;const _0x35976d=_0x4f1b11['nextSibling'],_0x4417d7=_0x4f1b11['previousSibling'],_0x50f701=_0x35976d&&_0x35976d['is']('element','tableCellSuggestion'),_0x26ce06=_0x4417d7&&_0x4417d7['is']('element','tableCellSuggestion');_0x50f701&&!_0x44bae6['has'](_0x35976d)&&_0x55bfc6['add'](_0x35976d),_0x26ce06&&!_0x44bae6['has'](_0x4417d7)&&_0x55bfc6['add'](_0x4417d7);}else _0x4f1b11['is']('element','paragraph')&&_0x4f1b11['isEmpty']&&(_0x5139c5['removeMarker'](_0x5459b2['name']),_0x4138af=!0x0);}}else{if('tablePasteCell'==_0x5139c5['subType']){if(!_0x5139c5['attributes']||!_0x5139c5['attributes']['tablePasteChainId'])continue;const _0x217e76=_0x5139c5['attributes']['markerAttributes'];if(_0x217e76&&Object['keys'](_0x217e76)['length'])continue;const _0x632bc5=_0x5139c5['attributes']['tablePasteChainId'];let _0x1ca9fe=!0x0,_0x39b908=!0x0;for(const _0x346ce3 of _0x1cdd0e)if(_0x346ce3['subType']&&_0x346ce3['subType']['startsWith']('tablePaste')){if(!_0x346ce3['attributes']['tablePasteChainId']){_0x39b908=!0x1;break;}if(_0x346ce3['id']!=_0x5139c5['id']&&_0x346ce3['attributes']['tablePasteChainId']==_0x632bc5){_0x1ca9fe=!0x1;break;}}_0x39b908&&_0x1ca9fe&&(_0x5139c5['removeMarkers'](),_0x4138af=!0x0);}}for(const _0x4ca23c of _0x44bae6)_0x11f83a['remove'](_0x4ca23c);for(const _0x4e4474 of _0x55bfc6)_0x11f83a['unwrap'](_0x4e4474);return _0x4138af;}),_0x2e2ba4['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x68ea62=>_0x1040a1(_0x68ea62),'converterPriority':'high'}),_0x2e2ba4['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4f3d2d,_0x38277f)=>_0x38277f['options']['showSuggestionHighlights']?_0x1040a1(_0x4f3d2d,!0x1):null,'converterPriority':'high'});const _0x2cdf75=_0x2e2ba4['editing']['view'];this['listenTo'](_0x2cdf75['document'],'clipboardOutput',(_0x5cb0a3,_0x3627cc)=>{const _0x589828=[];for(const _0x20f0fc of _0x2cdf75['createRangeIn'](_0x3627cc['content'])['getItems']())_0x20f0fc['is']('element','suggestion-td')&&_0x589828['push'](_0x20f0fc);_0x2cdf75['change'](_0x2c02ad=>{for(const _0x25f077 of _0x589828)_0x2c02ad['move'](_0x2c02ad['createRangeIn'](_0x25f077),_0x2c02ad['createPositionBefore'](_0x25f077)),_0x2c02ad['remove'](_0x25f077);});});}}function ke(_0x5e9652){if(_0x5e9652['isEmpty'])return!0x0;const _0x4c7073=_0x5e9652['getChild'](0x0);return _0x4c7073['is']('element','paragraph')&&_0x4c7073['isEmpty'];}function Re(_0x37ab1c,_0xb96b38={},_0x3d4db6){for(const {isAnchor:_0x2c3e20,cellHeight:_0x4860f9,cellWidth:_0x2edf70}of _0x3d4db6['createTableWalker'](_0x37ab1c,{'includeAllSlots':!0x0,..._0xb96b38}))if(!_0x2c3e20||0x1!=_0x4860f9||0x1!=_0x2edf70)return!0x1;return!0x0;}class Nt extends _0xd0fe4f{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x2767da=this['editor']['plugins']['get']('TrackChangesEditing');_0x2767da['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x2767da['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x2767da['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2767da['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x2767da['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x2767da['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x3218ec,_0x151fbf){const _0x43afed=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2b30a6=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x59d1fb=_0x151fbf['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4fc456=_0x2b30a6['getColumnGroupElement'](_0x59d1fb);let _0x24a387=_0x4fc456?_0x2b30a6['getTableColumnsWidths'](_0x4fc456):null,_0x38c52b=_0x59d1fb['getAttribute']('tableWidth')||null;const _0x296055=_0x151fbf['tableWidth']||_0x38c52b,_0x4382cf=_0x151fbf['columnWidths']||_0x24a387,_0x52a1cd=this['editor']['plugins']['get']('Users')['me'];for(const _0x52da97 of _0x43afed['getSuggestions']()){const _0x402271=_0x52da97['getContainedElement']();if('resizeTable'===_0x52da97['subType']&&_0x402271===_0x59d1fb){_0x52da97['author']!==_0x52a1cd&&_0x52da97['discard']();const _0x3905cd=_0x52da97['data']['commandParams'];_0x38c52b=_0x3905cd[0x0]['tableWidth'],_0x24a387=_0x3905cd[0x0]['columnWidths'];break;}}_0x3218ec({'table':_0x59d1fb,'tableWidth':_0x296055,'columnWidths':_0x4382cf}),_0x43afed['markBlockFormat'](_0x59d1fb,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x38c52b,'columnWidths':_0x24a387}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x58ff30){if('formatBlock'!=_0x58ff30['type']&&'formatInline'!=_0x58ff30['type'])return;const {data:_0xa7651e}=_0x58ff30;if(_0xa7651e&&'resizeTable'===_0xa7651e['formatGroupId']){const _0x1cbab1='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x1cbab1)};}}}class Dt extends _0xd0fe4f{['afterInit'](){const _0x34ee3d=this['editor'];_0x34ee3d['plugins']['has']('Template')&&_0x34ee3d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0xd0fe4f{['afterInit'](){const _0x3e47ce=this['editor'];if(!_0x3e47ce['commands']['get']('insertTableOfContents'))return;_0x3e47ce['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x59781f=_0x3e47ce['plugins']['get']('TrackChangesEditing'),_0x1e4d55=_0x3e47ce['locale'];_0x59781f['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3f88a1=>o(_0x1e4d55,'ELEMENT_TABLE_OF_CONTENTS',_0x3f88a1));}}class $t extends _0xd0fe4f{['afterInit'](){const _0x1478af=this['editor'];if(!_0x1478af['plugins']['has']('Title'))return;const _0x243d3d=_0x1478af['plugins']['get']('TrackChangesEditing');_0x243d3d['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x1478af['locale'],'ELEMENT_TITLE')),_0x1478af['model']['document']['registerPostFixer'](_0x43a651=>{let _0x4b5174=!0x1;const _0x1c3046=Array['from'](_0x1478af['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4573b1,data:_0x14da7d}of _0x1c3046){const {group:_0x55605b}=_0x243d3d['_splitMarkerName'](_0x4573b1);if('suggestion'!==_0x55605b||!_0x14da7d['newRange'])continue;const _0x31b4df=_0x14da7d['newRange'],_0x222586=_0x31b4df['end']['nodeBefore'];if(!_0x222586||!_0x222586['is']('element','title-content'))continue;if(!_0x31b4df['start']['isTouching'](_0x31b4df['end']))continue;const _0x47548a=_0x1478af['model']['schema']['getNearestSelectionRange'](_0x31b4df['end'],'forward');if(_0x47548a&&_0x47548a['isCollapsed']){const _0x40ada2=_0x43a651['createRange'](_0x31b4df['start'],_0x47548a['start']);_0x40ada2['isEqual'](_0x31b4df)||(_0x43a651['updateMarker'](_0x4573b1,{'range':_0x40ada2}),_0x4b5174=!0x0);}_0x4b5174||(_0x43a651['removeMarker'](_0x4573b1),_0x4b5174=!0x0);}return _0x4b5174;});}}class Bt extends _0xd0fe4f{['afterInit'](){const _0x100a67=this['editor'],_0x5c7045=_0x100a67['plugins']['get']('TrackChangesEditing');_0x100a67['plugins']['has']('UndoEditing')&&(_0x5c7045['enableCommand']('undo'),_0x5c7045['enableCommand']('redo'));}}class xt extends _0xd0fe4f{static get['requires'](){return[It];}['afterInit'](){const _0x5558fb=this['editor'];if(!_0x5558fb['plugins']['has']('TableCaptionEditing'))return;_0x5558fb['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0xd0fe4f{['tableProperties'];['tableCellProperties'];constructor(_0x5e895a){super(_0x5e895a),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 _0xac6259=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x526f5a of this['tableProperties'])_0xac6259['enableCommand'](_0x526f5a,(_0x407cb6,_0x2ce78e)=>{const _0x2977c8=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x526f5a,[_0x2977c8],this['tableProperties'],'tableProperties',_0x407cb6,_0x2ce78e);});_0xac6259['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0xac6259['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xac6259['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x51acaa,_0x243872)=>this['handleDiscardAction'](this['tableProperties'],_0x51acaa,_0x243872)),_0xac6259['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x40b42a of this['tableCellProperties'])_0xac6259['enableCommand'](_0x40b42a,(_0x4816b9,_0x9f725d)=>{const _0x2ab497=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x40b42a,_0x2ab497,this['tableCellProperties'],'tableCellProperties',_0x4816b9,_0x9f725d);});_0xac6259['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0xac6259['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xac6259['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x50e4b1,_0x3afb93)=>this['handleDiscardAction'](this['tableCellProperties'],_0x50e4b1,_0x3afb93)),_0xac6259['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0xac6259['descriptionFactory']['registerDescriptionCallback'](_0x2d72d2=>this['handleSuggestionDescription'](_0x2d72d2));}['_handlePropertyChange'](_0x3f58e7,_0x227901,_0x5474c2,_0xa6b532,_0x5c7cff,_0x258ab8){const _0x20f010=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x258ab8['batch'],()=>{for(const _0xa49e47 of _0x227901){if(this['_getSuggestion'](_0xa49e47,_0xa6b532))_0x5c7cff(_0x258ab8);else{const _0x101a2f={};for(const _0xbf63f4 of _0x5474c2){const _0x4240f7=_0xa49e47['getAttribute'](_0xbf63f4);void 0x0!==_0x4240f7&&(_0x101a2f[_0xbf63f4]=_0x4240f7);}_0x5c7cff(_0x258ab8),_0x20f010['markBlockFormat'](_0xa49e47,{'commandParams':[_0x101a2f]},[],_0xa6b532);}}});}['handleDiscardAction'](_0x1c5d09,_0xbbbd3e,_0x37a362){const _0x2f80ae=_0xbbbd3e[0x0]['start']['nodeAfter'],_0x1ce502=_0x37a362['commandParams'][0x0];this['editor']['model']['change'](_0x473197=>{for(const _0x31d570 of _0x1c5d09)void 0x0!==_0x1ce502[_0x31d570]?_0x473197['setAttribute'](_0x31d570,_0x1ce502[_0x31d570],_0x2f80ae):_0x473197['removeAttribute'](_0x31d570,_0x2f80ae);});}['handleSuggestionDescription'](_0x3c7eb1){if(_0x3c7eb1['data'])switch(_0x3c7eb1['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'](_0x2cec27,_0x1ebcdc){const _0x526307=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x139448 of _0x526307['getSuggestions']({'skipNotAttached':!0x0})){const _0x1d3143=_0x139448['getContainedElement']();if(_0x139448['subType']===_0x1ebcdc&&_0x1d3143===_0x2cec27)return _0x139448;}return null;}}const m='$elementName';class p extends _0xd0fe4f{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x2a2d95,_0x43e262,V,U,G,F,H,L,J,q,z,Q,X,Y,Z,tt,et,it,st,nt,rt,ot,at,ct,ut,ft,W,pt,ht,K,pe,lt,mt,dt,kt,bt,wt,yt,jt,St,At,It,vt,Ct,xt,_t,Nt,Mt,Rt,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x163934){function _0x574c8f(_0x3520ea){return _0x3520ea['map'](_0x34aa1c=>String['fromCharCode'](_0x34aa1c))['join']('');}super(_0x163934),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0xe66889,_0x2a7971,_0x116c0c,_0x31399e)=>{this['_model']['change'](()=>{for(const _0x3ee585 of[..._0x31399e,..._0x116c0c])this['_model']['markers']['has'](_0x3ee585)&&_0x163934['editing']['reconvertMarker'](_0x3ee585);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x163934['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(),_0x163934['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x163934['config']['get']('trackChanges.trackFormatChanges'),_0x163934['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x163934['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x163934,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x574c8f([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x574c8f([0x34,0x30,0x34,0x38,0x31,0x38,0x35,0x30]);}['init'](){const _0x182e5f=this['editor'],_0x395a7a=(_0x59ad43,_0x403ac3)=>{if('attribute'!=_0x59ad43)return'ck-suggestion-marker-'+_0x59ad43;const _0x9120a8=_0x403ac3['split']('|')[0x0];return this['_isBlockAttribute'](_0x9120a8)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x182e5f['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x263452=>{const {id:_0x3f15e3,authorId:_0xc8a62e,type:_0x550061,subType:_0x124540}=this['_splitMarkerName'](_0x263452['markerName']),_0x17a7e6=['ck-suggestion-marker',_0x395a7a(_0x550061,_0x124540)];let _0xfa74f8=0xbb8;return this['activeMarkers']['includes'](_0x263452['markerName'])&&(_0x17a7e6['push']('ck-suggestion-marker--active'),_0xfa74f8=0xbc2),'deletion'==_0x550061&&(_0xfa74f8+=0x5),{'classes':_0x17a7e6,'attributes':{'data-suggestion':_0x3f15e3,'data-author-id':_0xc8a62e},'priority':_0xfa74f8};}}),_0x182e5f['conversion']['for']('dataDowncast')['add'](_0x235c81=>{_0x235c81['on']('addMarker:suggestion',(_0x1e4687,_0x20efd0,_0x47856d)=>{if(!_0x47856d['options']['showSuggestionHighlights'])return;const _0x50a947=_0x20efd0['item'];if(!_0x50a947)return;const _0x5da6a1=_0x47856d['mapper']['toViewElement'](_0x50a947);_0x182e5f['model']['schema']['isObject'](_0x50a947)&&_0x5da6a1&&!_0x5da6a1['getCustomProperty']('widget')&&_0x5da6a1['is']('containerElement')&&_0x1846c8(_0x5da6a1,_0x47856d['writer']);},{'priority':'high'});}),_0x182e5f['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x16b9a8,_0x1b9ff1)=>{if(!_0x1b9ff1['options']['showSuggestionHighlights'])return null;const {type:_0x24e647,subType:_0x392a90}=this['_splitMarkerName'](_0x16b9a8['markerName']);return{'classes':['ck-suggestion-marker',_0x395a7a(_0x24e647,_0x392a90)],'priority':0xbb8};}});const _0x4376e3=({showActiveMarkers:_0xa22e00=!0x0,isAttributeSuggestion:_0x5d594e=!0x1}={})=>(_0x60eba3,_0x54bf02,_0x2cbb56)=>{if(!_0x54bf02['item'])return;const {id:_0x4be22b,authorId:_0x20db83}=this['_splitMarkerName'](_0x54bf02['markerName']);if(_0x5d594e){const _0x2e4f6b=this['_suggestions']['get'](_0x4be22b),_0x3b47d9=this['_getAttributeKey'](_0x2e4f6b);if(!this['_isBlockAttribute'](_0x3b47d9))return;}if(_0x54bf02['item']['is']('selection'))return void _0x2cbb56['consumable']['consume'](_0x54bf02['item'],_0x60eba3['name']);const _0x4f8e50=_0x2cbb56['mapper']['toViewElement'](_0x54bf02['item']);if(_0x54bf02['item']['is']('element')&&_0x182e5f['model']['schema']['isBlock'](_0x54bf02['item'])&&!_0x4f8e50['getCustomProperty']('addHighlight')){_0x2cbb56['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4f8e50),_0x2cbb56['writer']['setAttribute']('data-suggestion',_0x4be22b,_0x4f8e50),_0x2cbb56['writer']['setAttribute']('data-author-id',_0x20db83,_0x4f8e50),_0x2cbb56['mapper']['bindElementToMarker'](_0x4f8e50,_0x54bf02['markerName']),_0xa22e00&&(this['activeMarkers']['includes'](_0x54bf02['markerName'])?_0x2cbb56['writer']['addClass']('ck-suggestion-marker--active',_0x4f8e50):_0x2cbb56['writer']['removeClass']('ck-suggestion-marker--active',_0x4f8e50));for(const _0xb5057f of _0x182e5f['model']['createRangeIn'](_0x54bf02['item'])['getItems']())_0x2cbb56['consumable']['consume'](_0xb5057f,_0x60eba3['name']);_0x2cbb56['consumable']['consume'](_0x54bf02['item'],_0x60eba3['name']);}};_0x182e5f['conversion']['for']('dataDowncast')['add'](_0x1c2ae7=>{_0x1c2ae7['on']('addMarker:suggestion:formatBlock',(_0x23de93,_0x49b18c,_0x36b495)=>{_0x36b495['options']['showSuggestionHighlights']&&_0x4376e3({'showActiveMarkers':!0x1})(_0x23de93,_0x49b18c,_0x36b495);},{'priority':'highest'});}),_0x182e5f['conversion']['for']('dataDowncast')['add'](_0x5f6282=>{_0x5f6282['on']('addMarker:suggestion:attribute',(_0x5d34ba,_0xb20cef,_0x5bbb3c)=>{_0x5bbb3c['options']['showSuggestionHighlights']&&_0x4376e3({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x5d34ba,_0xb20cef,_0x5bbb3c);},{'priority':'highest'});}),_0x182e5f['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x17aeca,_0x4b8756)=>_0x4b8756['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x17aeca['substr'](0xb)}}),_0x182e5f['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3c0b0,{writer:_0x3c2f9c})=>{let _0x277bba='suggestion:'+_0x3c0b0['getAttribute']('suggestion-type')+':'+_0x3c0b0['getAttribute']('id');return _0x3c0b0['getAttribute']('marker-count')&&(_0x277bba+=':'+_0x3c0b0['getAttribute']('marker-count')),_0x3c2f9c['createElement']('$marker',{'data-name':_0x277bba});}}),_0x182e5f['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x182e5f['conversion']['for']('editingDowncast')['add'](_0x35e522=>{_0x35e522['on']('addMarker:suggestion:formatBlock',_0x4376e3(),{'priority':'high'});}),_0x182e5f['conversion']['for']('editingDowncast')['add'](_0x28cc6c=>{_0x28cc6c['on']('addMarker:suggestion:attribute',_0x4376e3({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x182e5f['conversion']['for']('editingDowncast')['add'](_0x9b1c68=>{_0x9b1c68['on']('removeMarker:suggestion:formatBlock',(_0x100360,_0x534d9d,_0x15cd11)=>{const _0x40b595=_0x15cd11['mapper']['markerNameToElements'](_0x534d9d['markerName']);if(_0x40b595){for(const _0x4bd173 of _0x40b595)_0x4bd173['getCustomProperty']('addHighlight')||(_0x15cd11['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4bd173),_0x15cd11['writer']['removeAttribute']('data-suggestion',_0x4bd173),_0x15cd11['writer']['removeAttribute']('data-author-id',_0x4bd173),_0x15cd11['mapper']['unbindElementFromMarkerName'](_0x4bd173,_0x534d9d['markerName']));}},{'priority':'high'});}),_0x182e5f['conversion']['for']('editingDowncast')['add'](_0x4ecf9f=>{_0x4ecf9f['on']('removeMarker:suggestion:attribute',(_0x4e54a1,_0x2c2010,_0x5d35a7)=>{const _0x3f50f5=_0x5d35a7['mapper']['markerNameToElements'](_0x2c2010['markerName']);if(!_0x3f50f5)return;const {id:_0x429f9e}=this['_splitMarkerName'](_0x2c2010['markerName']),_0x24e3d5=this['_suggestions']['get'](_0x429f9e),_0x547925=this['_getAttributeKey'](_0x24e3d5);if(this['_isBlockAttribute'](_0x547925)){for(const _0x2fde5c of _0x3f50f5)_0x2fde5c['getCustomProperty']('addHighlight')||(_0x5d35a7['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2fde5c),_0x5d35a7['writer']['removeAttribute']('data-suggestion',_0x2fde5c),_0x5d35a7['writer']['removeAttribute']('data-author-id',_0x2fde5c),_0x5d35a7['mapper']['unbindElementFromMarkerName'](_0x2fde5c,_0x2c2010['markerName']));}},{'priority':'high'});}),_0x182e5f['model']['document']['registerPostFixer'](_0x102ebb=>{let _0x1ea563=!0x1;const _0x28a908=Array['from'](_0x182e5f['model']['document']['differ']['getChangedMarkers']()),_0x223ade=new Set();for(const {name:_0x1f4d05,data:_0x27836f}of _0x28a908){const {group:_0x12d734,type:_0x5a6de2,subType:_0x6c8e41,id:_0x1a3a4b}=this['_splitMarkerName'](_0x1f4d05);if('suggestion'!==_0x12d734)continue;const _0x5348ec=this['_suggestions']['get'](_0x1a3a4b);if(null!=_0x27836f['newRange']){'formatInline'==_0x5a6de2&&(_0x1ea563=_0x1ea563||Ut(_0x27836f['newRange'],_0x1f4d05,_0x102ebb,_0x182e5f['model']['schema']));const _0x48de5f='attribute'==_0x5a6de2&&this['_isBlockAttribute'](_0x6c8e41['split']('|')[0x0]);if(_0x27836f['newRange']['isCollapsed']||'$graveyard'==_0x27836f['newRange']['root']['rootName']||'formatBlock'==_0x5a6de2&&!Ft(_0x27836f['newRange'])||_0x48de5f&&!Ft(_0x27836f['newRange'])||'deletion'==_0x5a6de2&&!(!Vt(_0x451146=_0x27836f['newRange'])&&!function(_0x431477){return _0x431477['start']['parent']==_0x431477['end']['nodeBefore']&&_0x431477['start']['isAtEnd'];}(_0x451146)))_0x102ebb['removeMarker'](_0x1f4d05),_0x1ea563=!0x0;else{if(!_0x5348ec||!_0x5348ec['isInContent'])continue;if(_0x27836f['newRange']&&_0x27836f['oldRange']&&_0x27836f['newRange']['isEqual'](_0x27836f['oldRange']))continue;_0x223ade['add'](_0x5348ec);}}}var _0x451146;return _0x223ade['size']>0x0&&(_0x1ea563=!!this['_joinWithAdjacentSuggestions'](_0x223ade)||_0x1ea563),_0x1ea563;}),_0x182e5f['model']['document']['registerPostFixer'](_0x100c2f=>{let _0xd5677f=!0x1;for(const _0x24c26e of _0x182e5f['model']['document']['differ']['getChanges']())if('insert'==_0x24c26e['type'])for(const _0x4c1222 of this['_suggestions']['values']()){if(_0x4c1222['isMultiRange']||!_0x4c1222['isInContent'])continue;const _0x15831f='formatBlock'==_0x4c1222['type'],_0x248a6c=this['_getAttributeKey'](_0x4c1222),_0x452f6c=_0x248a6c&&this['_isBlockAttribute'](_0x248a6c);if(!_0x15831f&&!_0x452f6c)continue;const _0x15e1cd=_0x4c1222['getFirstRange']();if(_0x15e1cd['start']['parent']!=_0x15e1cd['end']['parent']&&!_0x15e1cd['end']['isAtEnd']){const _0x1842af=_0x182e5f['model']['createPositionAt'](_0x15e1cd['start']['nodeAfter'],'end'),_0x193ec0=_0x182e5f['model']['createRange'](_0x15e1cd['start'],_0x1842af);_0x100c2f['updateMarker'](_0x4c1222['getFirstMarker'](),{'range':_0x193ec0}),_0xd5677f=!0x0;}}return _0xd5677f;}),_0x182e5f['model']['document']['registerPostFixer'](_0x39e37e=>this['_processAttributeChanges'](_0x39e37e)),_0x182e5f['model']['document']['registerPostFixer'](_0xbba8df=>!_0xbba8df['batch']['isLocal']&&this['_processAttributeSuggestions'](_0xbba8df)),_0x182e5f['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x182e5f['model']['document']['on']('change:data',(_0x58e104,_0x53a7d6)=>{if(!_0x53a7d6['isLocal']||_0x53a7d6['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2c5b7f=_0x182e5f['model']['document']['differ']['getChanges']();if(0x0==_0x2c5b7f['length'])return;const _0x170309=[],_0x45939f=_0x2c5b7f['filter'](_0x16327e=>'attribute'==_0x16327e['type']),_0x339820=_0x2c5b7f['filter'](_0x2e89d2=>'insert'==_0x2e89d2['type']&&'$text'!=_0x2e89d2['name']);for(const _0x2b2e84 of _0x45939f)this['_isRegisteredAttribute'](_0x2b2e84['attributeKey'])&&_0x170309['push']({'key':_0x2b2e84['attributeKey'],'newValue':_0x2b2e84['attributeNewValue'],'oldValue':_0x2b2e84['attributeOldValue'],'range':Pt(_0x2b2e84['range'],_0x182e5f['model'])});for(const _0x494796 of _0x339820){if('rename'!=_0x494796['action']&&'refresh'!=_0x494796['action'])continue;const _0x190b51=Lt(_0x494796['position']['nodeAfter'],_0x182e5f['model']),_0x2bf302=_0x494796['before'];'rename'==_0x494796['action']&&_0x170309['push']({'key':m,'newValue':_0x494796['name'],'oldValue':_0x2bf302['name'],'range':_0x190b51});for(const [_0x37f180,_0x4b72d8]of _0x2bf302['attributes']){if(!this['_isRegisteredAttribute'](_0x37f180))continue;const _0x337d51=_0x494796['attributes']['get'](_0x37f180);_0x4b72d8!==_0x337d51&&_0x170309['push']({'key':_0x37f180,'newValue':_0x337d51,'oldValue':_0x4b72d8,'range':_0x190b51});}for(const [_0x446bd2,_0xc9d7fc]of _0x494796['attributes'])this['_isRegisteredAttribute'](_0x446bd2)&&(_0x2bf302['attributes']['has'](_0x446bd2)||_0x170309['push']({'key':_0x446bd2,'newValue':_0xc9d7fc,'oldValue':null,'range':_0x190b51}));}0x0!=_0x170309['length']&&_0x182e5f['model']['enqueueChange'](_0x53a7d6,_0x269001=>{const _0x152571=_0x2b2341();for(const {range:_0x27366e,key:_0x46a146,oldValue:_0x591683,newValue:_0x476559}of _0x170309)this['markAttributeChange'](_0x27366e,_0x46a146,_0x591683,_0x476559,{'groupId':_0x152571});this['_reduceExistingSuggestions'](_0x269001,_0x170309);});},{'priority':'lowest'}),_0x182e5f['model']['markers']['on']('update:suggestion',(_0x326dd6,_0x45fb52,_0x4673a2)=>{if(null==_0x4673a2){const {id:_0x2f10ce}=this['_splitMarkerName'](_0x45fb52['name']),_0x56c65e=this['_suggestions']['get'](_0x2f10ce);_0x56c65e&&_0x56c65e['addMarkerName'](_0x45fb52['name']);}}),_0x182e5f['model']['document']['on']('change:data',()=>{const _0x4ec54e=Array['from'](_0x182e5f['model']['document']['differ']['getChangedMarkers']())['filter'](_0x174b26=>'suggestion'===this['_splitMarkerName'](_0x174b26['name'])['group']);if(0x0===_0x4ec54e['length'])return;_0x4ec54e['sort']((_0xaa558b,_0x273283)=>{const _0x90607c=_0xaa558b['data']['oldRange'],_0x2fbbfa=_0x273283['data']['oldRange'];return null===_0x90607c&&null===_0x2fbbfa?0x0:null===_0x90607c&&null!==_0x2fbbfa?-0x1:null!==_0x90607c&&null===_0x2fbbfa?0x1:_0x90607c['start']['isBefore'](_0x2fbbfa['start'])?-0x1:0x1;});const _0x40ca0c=new Set(),_0x3caf41=new Set();for(const {name:_0x4d8c77,data:_0x3d2437}of _0x4ec54e){const {id:_0x4afe9d}=this['_splitMarkerName'](_0x4d8c77);if(null===_0x3d2437['oldRange']){const _0x3c52e0=this['_handleNewSuggestionMarker'](_0x4d8c77);_0x3caf41['add'](_0x3c52e0);}else{const _0x30ec08=this['_suggestions']['get'](_0x4afe9d);null!==_0x3d2437['newRange']||_0x30ec08['isInContent']?(_0x40ca0c['add'](_0x30ec08['head']),_0x3caf41['add'](_0x30ec08)):this['_removeSuggestion'](_0x30ec08);}}_0x3caf41['size']>0x0&&this['_refreshSuggestionsChain'](_0x3caf41);for(const _0x549d5e of _0x40ca0c)this['fire']('suggestionChanged',_0x549d5e);}),_0x182e5f['model']['on']('applyOperation',(_0x5e4890,_0xec4617)=>{const _0x2254a9=_0xec4617[0x0];if(!this['_suggestions']['size'])return;if(!_0x2254a9['isDocumentOperation'])return;if(_0x2254a9['batch']['isUndo']||!_0x2254a9['batch']['isLocal'])return;let _0x5b6eca,_0x304ced;switch(_0x2254a9['type']){case'insert':_0x5b6eca=_0x182e5f['model']['createPositionAt'](_0x2254a9['position']),_0x304ced=_0x5b6eca['getShiftedBy'](_0x2254a9['howMany']);break;case'split':_0x5b6eca=_0x182e5f['model']['createPositionAt'](_0x2254a9['splitPosition']),_0x304ced=_0x182e5f['model']['createPositionAt'](_0x2254a9['moveTargetPosition']);break;case'move':_0x5b6eca=_0x182e5f['model']['createPositionAt'](_0x2254a9['targetPosition']),_0x304ced=_0x5b6eca['getShiftedBy'](_0x2254a9['howMany']);break;default:return;}const _0x50cc56=_0x182e5f['model']['createRange'](_0x5b6eca,_0x304ced);_0x182e5f['model']['change'](()=>{for(const {suggestion:_0x50ba4b,meta:_0x8104a}of this['_findSuggestions'](_0x50cc56)){if(_0x50ba4b['isMultiRange'])continue;if('formatInline'==_0x50ba4b['type'])continue;const _0x1cab07=this['_getAttributeKey'](_0x50ba4b);if(_0x1cab07&&this['_isBlockAttribute'](_0x1cab07)&&'split'!=_0x2254a9['type'])continue;const _0x5d1304=_0x50ba4b['data']&&_0x50ba4b['data']['multipleBlocks'];('formatBlock'!=_0x50ba4b['type']||'split'==_0x2254a9['type']&&!_0x5d1304)&&(_0x8104a['containsRangeInObject']||'insertion'==_0x50ba4b['type']&&_0x8104a['isOwn']||_0x50ba4b['getFirstRange']()['containsRange'](_0x50cc56)&&this['_breakSuggestionMarker'](_0x50ba4b,_0x5b6eca,_0x304ced));}});},{'priority':'lowest'}),_0x182e5f['model']['on']('deleteContent',(_0xcc2e18,_0x553efa)=>{const _0x55995d=_0x553efa[0x0],_0x49545f=_0x553efa[0x1];if(_0x49545f&&_0x49545f['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x55995d['isCollapsed'])return;const _0x57c5dd=_0x182e5f['model']['schema'],{start:_0x990ba,end:_0x2566f1}=_0x55995d['getFirstRange'](),_0x24b7d7=_0x990ba['nodeAfter']&&_0x57c5dd['isLimit'](_0x990ba['nodeAfter'])?null:_0x57c5dd['getNearestSelectionRange'](_0x990ba,'forward'),_0x4312fe=_0x2566f1['nodeBefore']&&_0x57c5dd['isLimit'](_0x2566f1['nodeBefore'])?null:_0x57c5dd['getNearestSelectionRange'](_0x2566f1,'backward'),_0x369c99=_0x182e5f['model']['createRange'](_0x24b7d7?_0x24b7d7['start']:_0x990ba,_0x4312fe?_0x4312fe['end']:_0x2566f1);_0x182e5f['model']['change'](_0x3069b5=>{this['markDeletion'](_0x369c99);const _0x4e792a=_0x182e5f['model']['schema']['getNearestSelectionRange'](_0x369c99['start']);_0x55995d['is']('documentSelection')?_0x3069b5['setSelection'](_0x4e792a):_0x55995d['setTo'](_0x4e792a);}),_0xcc2e18['stop']();},{'priority':_0x393348['normal']+0xa}),_0x182e5f['model']['on']('insertContent',(_0x46efc4,_0x58ff06)=>{const _0x1268ab=_0x58ff06[_0x58ff06['length']-0x1];_0x1268ab&&_0x1268ab['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x182e5f['model']['change'](()=>{let _0x37d627=_0x182e5f['model']['insertContent'](_0x58ff06[0x0],_0x58ff06[0x1],_0x58ff06[0x2],{'forceDefaultExecution':!0x0});if(!_0x37d627)return;_0x46efc4['return']=_0x37d627['clone']();const _0x4c4311=_0x37d627['end']['nodeBefore'],_0x594976=_0x182e5f['model']['schema'];_0x4c4311&&_0x594976['isBlock'](_0x4c4311)&&!_0x594976['isObject'](_0x4c4311)&&(_0x37d627=_0x182e5f['model']['createRange'](_0x37d627['start'],_0x182e5f['model']['createPositionAt'](_0x4c4311,'end'))),this['markInsertion'](_0x37d627);}),_0x46efc4['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x541fdb=new x(_0x182e5f,this['_suggestions']);_0x182e5f['commands']['add']('acceptSuggestion',_0x541fdb),this['enableCommand']('acceptSuggestion');const _0x26ee6a=new R(_0x182e5f,this['_suggestions']);_0x182e5f['commands']['add']('discardSuggestion',_0x26ee6a),this['enableCommand']('discardSuggestion'),_0x182e5f['commands']['add']('acceptAllSuggestions',new E(_0x182e5f,_0x541fdb,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x182e5f['commands']['add']('discardAllSuggestions',new E(_0x182e5f,_0x26ee6a,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x182e5f['commands']['add']('acceptSelectedSuggestions',new O(_0x182e5f,_0x541fdb,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x182e5f['commands']['add']('discardSelectedSuggestions',new O(_0x182e5f,_0x26ee6a,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0xb4d89d=_0x182e5f['plugins']['get']('CommentsRepository');this['listenTo'](_0xb4d89d,'addComment',(_0x1c2007,{threadId:_0x12f118})=>{const _0x469bd6=this['_suggestions']['get'](_0x12f118);_0x469bd6&&_0x469bd6['commentThread']&&0x1===_0x469bd6['commentThread']['length']&&this['_updateSuggestionData'](_0x12f118,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xb4d89d,'removeComment',(_0x4593bc,{threadId:_0x3d715b})=>{const _0x4bfdcd=this['_suggestions']['get'](_0x3d715b);_0x4bfdcd&&_0x4bfdcd['commentThread']&&!_0x4bfdcd['commentThread']['length']&&this['_updateSuggestionData'](_0x3d715b,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x3158ec){if(this['_adapter'])throw new _0x10890c('track-changes-adapter-already-set',this);this['_adapter']=_0x3158ec;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3a6d74=!0x1,toJSON:_0x25e1fe=!0x1}={}){const _0x4e77c5=[];for(const _0x31cc9c of this['_suggestions']['values']())_0x3a6d74&&!_0x31cc9c['isInContent']||_0x4e77c5['push'](_0x31cc9c);return _0x25e1fe?_0x4e77c5['map'](_0x3dac6e=>_0x3dac6e['toJSON']()):_0x4e77c5;}['getSuggestion'](_0x182fad){const _0x54da2b=this['_suggestions']['get'](_0x182fad);if(!_0x54da2b)throw new _0x10890c('track-changes-suggestion-not-found',this);return _0x54da2b;}['hasSuggestion'](_0x1e421c){return this['_suggestions']['has'](_0x1e421c);}['addSuggestionData'](_0x3ff5bc){const {authorId:_0x313e08,id:_0x4b0db4,attributes:_0x2a295a}=_0x3ff5bc,[_0x3cfeea,_0x82d2a8]=_0x3ff5bc['type']['split'](':'),_0x45ef5d=this['_suggestions']['get'](_0x4b0db4)||this['_createSuggestion'](_0x3cfeea,_0x82d2a8,_0x4b0db4,_0x313e08,_0x2a295a);if(this['_addThreadToSuggestion'](_0x45ef5d),this['_checkSuggestionCorrectness'](_0x45ef5d,_0x3cfeea,_0x82d2a8||null,_0x313e08),_0x45ef5d['createdAt']=_0x3ff5bc['createdAt'],_0x45ef5d['_isDataLoaded']=!0x0,_0x2a295a&&_0x2a295a['@external']){const _0x19a57f=_0x2a295a['@external'],_0x1f1228=this['_getExternalAuthor'](_0x19a57f['authorName']);_0x45ef5d['authoredAt']=_0x19a57f['createdAt'],_0x45ef5d['author']=_0x1f1228,_0x45ef5d['isExternal']=!0x0;}else _0x45ef5d['authoredAt']=_0x3ff5bc['createdAt'];switch(_0x3ff5bc['data']&&(_0x45ef5d['data']=_0x3ff5bc['data']),_0x3ff5bc['attributes']&&(_0x45ef5d['attributes']=_0x3ff5bc['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x45ef5d['_saved']=!0x0),this['_suggestionState']['get'](_0x45ef5d)){case'notReady':this['_suggestionState']['set'](_0x45ef5d,'dataReady');break;case'markerReady':_0x45ef5d['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x45ef5d])),this['_refreshSuggestionsChain'](new Set([_0x45ef5d])),this['_suggestionState']['set'](_0x45ef5d,'ready'),this['fire']('suggestionLoaded',_0x45ef5d)):this['_suggestionState']['set'](_0x45ef5d,'removed');}return _0x45ef5d;}['acceptSuggestion'](_0x1c4e1c){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3b082a of _0x1c4e1c['getAllAdjacentSuggestions']())_0x3b082a['accept']();});});}['discardSuggestion'](_0x583a03){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4ac1f0 of _0x583a03['getAllAdjacentSuggestions']())_0x4ac1f0['discard']();});});}['enableCommand'](_0x3b9ca1,_0x217da6){const _0x40a8c9=this['editor']['commands']['get'](_0x3b9ca1);if(!_0x40a8c9)throw new _0x10890c('track-changes-command-not-found',this,{'commandName':_0x3b9ca1});if(this['_enabledCommands']['has'](_0x40a8c9))throw new _0x10890c('track-changes-enable-command-twice',this,{'commandName':_0x3b9ca1});this['_enabledCommands']['add'](_0x40a8c9),_0x217da6&&_0x40a8c9['on']('execute',(_0x43ef70,_0x27094d)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x27094d['length']>0x0&&_0x27094d[_0x27094d['length']-0x1]&&_0x27094d[_0x27094d['length']-0x1]['forceDefaultExecution']?_0x27094d['pop']():(_0x43ef70['return']=_0x217da6((..._0x52b423)=>_0x40a8c9['execute'](..._0x52b423,{'forceDefaultExecution':!0x0}),..._0x27094d),_0x43ef70['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5a8af8){let _0x366142,_0x41e82e;const _0x32eb7e=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x366142=_0x5a8af8();}catch(_0xc95b53){_0x41e82e=_0xc95b53;}return _0x32eb7e||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x41e82e&&_0x10890c['rethrowUnexpectedError'](_0x41e82e,this),_0x366142;}['markInsertion'](_0x2ff2e2,_0x2c9095=null,_0x3fbd60={}){if(_0x2ff2e2['isCollapsed'])return null;const _0x29d9e8=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x3ed98f,meta:_0x209985}of this['_findSuggestions'](_0x2ff2e2,'insertion'))if(_0x209985['isOwn']){if(!_0x209985['isNextTo']){if(_0x209985['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x3ed98f,_0x3fbd60))continue;return _0x3ed98f;}if(qt(_0x3ed98f,_0x3fbd60))return _0x3ed98f;this['_breakSuggestionMarker'](_0x3ed98f,_0x2ff2e2['start'],_0x2ff2e2['end']);break;}if(_0x2c9095==_0x3ed98f['subType']&&qt(_0x3ed98f,_0x3fbd60)){const _0x404a17=_0x3ed98f['getFirstRange']();return _0x404a17['start']['isEqual'](_0x2ff2e2['end'])?this['_setSuggestionRange'](_0x3ed98f,this['_model']['createRange'](_0x2ff2e2['start'],_0x404a17['end'])):this['_setSuggestionRange'](_0x3ed98f,this['_model']['createRange'](_0x404a17['start'],_0x2ff2e2['end'])),_0x3ed98f;}}const _0x4daeb4=_0x2b2341(),_0x2d72ea=_0x29d9e8['id'],_0x1c8db2=_0x2c9095?'insertion:'+_0x2c9095:'insertion',_0x22c7c0=this['_setSuggestionData']({'id':_0x4daeb4,'type':_0x1c8db2,'createdAt':new Date(),'authorId':_0x2d72ea,'attributes':_0x3fbd60});return this['_addSuggestionMarker'](_0x1c8db2,_0x4daeb4,_0x2d72ea,_0x2ff2e2),_0x22c7c0;}['markMultiRangeInsertion'](_0x247394,_0xd8cbab='multi',_0x521278={}){const _0x2111e7=this['editor']['plugins']['get']('Users')['me'],_0xc3b643=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xd8cbab,'join');for(const _0x315ef8 of this['getSuggestions']())if(_0x315ef8['author']['id']==_0x2111e7['id']&&'insertion'==_0x315ef8['type']&&_0x315ef8['subType']==_0xd8cbab&&qt(_0x315ef8,_0x521278)&&(_0xc3b643(_0x315ef8['getRanges'](),_0x247394)||_0xc3b643(_0x247394,_0x315ef8['getRanges']()))){for(const _0x3cc8b1 of _0x247394)_0x315ef8['addRange'](_0x3cc8b1);return _0x315ef8;}for(const {suggestion:_0x3b953b,meta:_0x5a55a0}of this['_findSuggestions'](_0x247394,'insertion')){if(!_0x5a55a0['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x5a55a0['containsRangeInObject'])continue;if(!qt(_0x3b953b,_0x521278))continue;let _0x4a8104=!0x0;for(const _0x221484 of _0x3b953b['getRanges']())for(const _0x5784df of _0x247394)if(!_0x221484['containsRange'](_0x5784df)){_0x4a8104=!0x1;break;}if(_0x4a8104)return _0x3b953b;}const _0xd796db=_0x2b2341(),_0x332aca=_0x2111e7['id'],_0x3ee73b='insertion:'+_0xd8cbab,_0x47dae2=this['_setSuggestionData']({'id':_0xd796db,'type':_0x3ee73b,'createdAt':new Date(),'authorId':_0x332aca,'attributes':_0x521278});for(const _0x272d31 of _0x247394)this['_addSuggestionMarker'](_0x3ee73b,_0xd796db,_0x332aca,_0x272d31,u['getMultiRangeId']());return _0x47dae2;}['markInlineFormat'](_0x56e189,_0x1cb670,_0x421f8c=null,_0x72ea94={}){if(_0x421f8c=_0x421f8c||Gt(_0x1cb670),_0x56e189['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x151b0c=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x421f8c,'accept');return this['forceDefaultExecution'](()=>_0x151b0c([_0x56e189],_0x1cb670,_0x72ea94)),null;}const _0x25a89c=this['editor']['plugins']['get']('Users')['me'],_0x2f4030=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x331ec2,meta:_0x41968e}of this['_findSuggestions'](_0x56e189,'insertion'))_0x41968e['isOwn']&&!_0x41968e['isInsideObject']&&_0x2f4030['push'](..._0x331ec2['getRanges']());}const _0x1ed96c=function(_0x1a1ac5,_0xc12ed6){const _0x1b5f98=[];for(const _0x3137ee of _0xc12ed6){const _0x3f45f6=_0x1a1ac5['getIntersection'](_0x3137ee);_0x3f45f6&&_0x1b5f98['push'](_0x3f45f6);}return _0x1b5f98;}(_0x56e189,_0x2f4030),_0x110e21=function(_0x376d66,_0x170fd6){const _0x39c4f9=[_0x376d66];for(const _0x3f8066 of _0x170fd6){let _0x573825=0x0;for(;_0x573825<_0x39c4f9['length'];){const _0xbb8a32=_0x39c4f9[_0x573825]['getDifference'](_0x3f8066);_0x39c4f9['splice'](_0x573825,0x1,..._0xbb8a32),_0x573825+=_0xbb8a32['length'];}}return _0x39c4f9;}(_0x56e189,_0x2f4030);_0x1ed96c['length']&&this['_model']['change'](()=>{for(const _0x54a792 of _0x1ed96c){const _0x30acf5=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x421f8c,'accept');this['forceDefaultExecution'](()=>_0x30acf5([_0x54a792],_0x1cb670,_0x72ea94));}});for(const _0x34a0c9 of _0x110e21){let _0x541f52=null,_0x761d1f=_0x34a0c9['start'],_0x3a6905=_0x34a0c9['end'];for(const {suggestion:_0x26abdf,meta:_0x32873e}of this['_findSuggestions'](_0x34a0c9,'formatInline')){if(!_0x32873e['isOwn'])continue;if(_0x26abdf['subType']!=_0x421f8c)continue;if(!qt(_0x26abdf,_0x72ea94))continue;const _0x48af80=_0x26abdf['getFirstRange']();if(_0x48af80['containsRange'](_0x34a0c9,!0x0))return null;_0x761d1f=_0x761d1f['isBefore'](_0x48af80['start'])?_0x761d1f:_0x48af80['start'],_0x3a6905=_0x3a6905['isAfter'](_0x48af80['end'])?_0x3a6905:_0x48af80['end'],_0x541f52?_0x48af80['start']['isBefore'](_0x541f52['getFirstRange']()['start'])?(_0x541f52['removeMarkers'](),_0x541f52=_0x26abdf):_0x26abdf['removeMarkers']():_0x541f52=_0x26abdf;}const _0x16060=this['_model']['createRange'](_0x761d1f,_0x3a6905);if(_0x541f52)this['_setSuggestionRange'](_0x541f52,_0x16060);else{const _0x5df40f=_0x2b2341(),_0x2ca586=_0x25a89c['id'];this['_setSuggestionData']({'id':_0x5df40f,'type':'formatInline:'+_0x421f8c,'data':_0x1cb670,'createdAt':new Date(),'authorId':_0x2ca586,'attributes':_0x72ea94}),this['_addSuggestionMarker']('formatInline:'+_0x421f8c,_0x5df40f,_0x2ca586,_0x16060);}}return null;}['markBlockFormat'](_0x5bd88f,_0x6829d5,_0x3ae35d=[],_0x147a86=null,_0x193eff={}){_0x6829d5['formatGroupId']||(_0x6829d5['formatGroupId']=_0x6829d5['commandName']),_0x6829d5['multipleBlocks']=_0x5bd88f['is']('range'),_0x147a86=_0x147a86||Gt(_0x6829d5);const _0x1a2c56=_0x3ae35d['map'](_0x9f0f90=>Lt(_0x9f0f90,this['_model'])),_0x20c579=_0x5bd88f['is']('range')?_0x5bd88f:Lt(_0x5bd88f,this['_model']);if('never'===this['_trackFormatChanges']){const _0x1be793=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x147a86,'accept');return this['forceDefaultExecution'](()=>_0x1be793([_0x20c579],_0x6829d5,_0x193eff)),null;}_0x1a2c56['push'](_0x20c579);let _0x254521=!0x0;for(const _0x1067b6 of _0x1a2c56)if(!this['_rangeIsInLocalUserInsertion'](_0x1067b6)){_0x254521=!0x1;break;}if(_0x254521&&'always'!==this['_trackFormatChanges']){const _0x29d3da=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x147a86,'accept');return this['forceDefaultExecution'](()=>_0x29d3da([_0x20c579],_0x6829d5,_0x193eff)),null;}let _0x10a83b=null,_0x10b417=_0x20c579['start'],_0x438287=_0x20c579['end'];for(const {suggestion:_0x327274,meta:_0x915cab}of this['_findSuggestions'](_0x20c579,'formatBlock')){if(!_0x915cab['isOwn'])continue;if(_0x915cab['isNextTo']||_0x915cab['containsRangeInObject']||_0x915cab['isInsideObject'])continue;if(_0x327274['data']['formatGroupId']!=_0x6829d5['formatGroupId'])continue;if(!qt(_0x327274,_0x193eff))continue;const _0x52cb40=_0x327274['getFirstRange']();if(_0x327274['subType']==_0x147a86){if(_0x52cb40['containsRange'](_0x20c579,!0x0))return null;_0x10b417=_0x10b417['isBefore'](_0x52cb40['start'])?_0x10b417:_0x52cb40['start'],_0x438287=_0x438287['isAfter'](_0x52cb40['end'])?_0x438287:_0x52cb40['end'],_0x10a83b?_0x52cb40['start']['isBefore'](_0x10a83b['getFirstRange']()['start'])?(_0x10a83b['removeMarkers'](),_0x10a83b=_0x327274):_0x327274['removeMarkers']():_0x10a83b=_0x327274;}else{const _0x1bdddc=_0x20c579['getIntersection'](_0x52cb40);this['_cutOutSuggestionMarker'](_0x327274,_0x1bdddc);}}const _0x25afe1=this['editor']['plugins']['get']('Users')['me'],_0x509edb=_0x2b2341(),_0x281e31=_0x25afe1['id'];if(_0x10a83b)return this['_setSuggestionRange'](_0x10a83b,this['_model']['createRange'](_0x10b417,_0x438287)),_0x10a83b;{const _0x53d9d5=this['_setSuggestionData']({'id':_0x509edb,'type':'formatBlock:'+_0x147a86,'data':_0x6829d5,'createdAt':new Date(),'authorId':_0x281e31,'attributes':_0x193eff});return this['_addSuggestionMarker']('formatBlock:'+_0x147a86,_0x509edb,_0x281e31,this['_model']['createRange'](_0x10b417,_0x438287)),_0x53d9d5;}}['markMultiRangeBlockFormat'](_0x310126,_0x59aac7,_0x2c2b6e=[],_0x4d9726=null,_0x179e69={}){_0x59aac7['formatGroupId']||(_0x59aac7['formatGroupId']=_0x59aac7['commandName']);const _0x5645f4=_0x310126[0x0];_0x59aac7['multipleBlocks']=_0x5645f4['is']('range'),_0x4d9726=_0x4d9726||Gt(_0x59aac7);const _0x28cce5=_0x2c2b6e['map'](_0x2e83a8=>Lt(_0x2e83a8,this['_model'])),_0x55ef38=_0x5645f4['is']('range')?_0x310126:_0x310126['map'](_0x80aa97=>Lt(_0x80aa97,this['_model']));if('never'===this['_trackFormatChanges']){const _0x1ae9ca=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4d9726,'accept');return this['forceDefaultExecution'](()=>_0x1ae9ca(_0x55ef38,_0x59aac7,_0x179e69)),null;}_0x28cce5['push'](..._0x55ef38);let _0x23629f=!0x0;for(const _0x15e4fd of _0x28cce5)if(!this['_rangeIsInLocalUserInsertion'](_0x15e4fd)){_0x23629f=!0x1;break;}if(_0x23629f&&'always'!==this['_trackFormatChanges']){const _0x3bb221=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4d9726,'accept');return this['forceDefaultExecution'](()=>_0x3bb221(_0x55ef38,_0x59aac7,_0x179e69)),null;}const _0x49f41d=this['editor']['plugins']['get']('Users')['me'];for(const _0x509885 of this['getSuggestions']()){if(_0x509885['author']['id']!=_0x49f41d['id'])continue;if('formatBlock'!=_0x509885['type']||_0x509885['data']['formatGroupId']!=_0x59aac7['formatGroupId'])continue;if(!qt(_0x509885,_0x179e69))continue;const _0x504164=_0x509885['subType']==_0x4d9726;for(let _0x4c6653=0x0;_0x4c6653<_0x55ef38['length'];_0x4c6653++){const _0x103134=_0x55ef38[_0x4c6653];for(const _0x468178 of _0x509885['getMarkers']()){const _0x7e6339=_0x468178['getRange']();if(_0x103134['isEqual'](_0x7e6339)){_0x504164?(_0x55ef38['splice'](_0x4c6653,0x1),_0x4c6653--):_0x509885['removeMarker'](_0x468178['name']);break;}}}}if(0x0==_0x55ef38['length'])return null;const _0x1a6bd4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4d9726,'join');for(const _0x327c5e of this['getSuggestions']())if(_0x327c5e['author']['id']==_0x49f41d['id']&&'formatBlock'==_0x327c5e['type']&&_0x327c5e['data']['formatGroupId']==_0x59aac7['formatGroupId']&&_0x327c5e['subType']==_0x4d9726&&qt(_0x327c5e,_0x179e69)&&(_0x1a6bd4(_0x327c5e['getRanges'](),_0x55ef38)||_0x1a6bd4(_0x55ef38,_0x327c5e['getRanges']()))){for(const _0x22ccab of _0x55ef38)_0x327c5e['addRange'](_0x22ccab);return _0x327c5e;}const _0x1d6b31=_0x2b2341(),_0x2704dc=_0x49f41d['id'],_0x4e3ea7='formatBlock:'+_0x4d9726,_0x10872c=this['_setSuggestionData']({'id':_0x1d6b31,'type':_0x4e3ea7,'data':_0x59aac7,'createdAt':new Date(),'authorId':_0x2704dc,'attributes':_0x179e69});for(const _0x4c6375 of _0x55ef38)this['_addSuggestionMarker'](_0x4e3ea7,_0x1d6b31,_0x2704dc,_0x4c6375,u['getMultiRangeId']());return _0x10872c;}['markDeletion'](_0x44f638,_0xaa6830=null,_0x286775={}){if(_0x44f638['isCollapsed'])return null;const _0x3da7c9=this['editor']['plugins']['get']('Users')['me'],_0x3581df=new _0x425d25(_0x44f638['start'],_0x44f638['end']);for(const {suggestion:_0x15159f,meta:_0x36b8a2}of this['_findSuggestions'](_0x3581df,'insertion'))if(_0x36b8a2['isOwn']&&!_0x36b8a2['isNextTo']){if(_0x15159f['isMultiRange']){const _0x711e19=_0x15159f['getRanges']()['filter'](_0x5cc4ba=>'$graveyard'!=_0x5cc4ba['root']['rootName']);_0x711e19['every'](_0xa8420d=>_0x3581df['containsRange'](_0xa8420d,!0x0))&&_0x15159f['discard']();if(_0x711e19['some'](_0x3e3ec6=>_0x3e3ec6['containsRange'](_0x3581df,!0x0))){const _0x1e442f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xaa6830,'accept');return this['forceDefaultExecution'](()=>_0x1e442f([_0x3581df],null,_0x286775)),null;}}else{const _0x3d25b8=_0x3581df['getIntersection'](_0x15159f['getFirstRange']());null!==_0x3d25b8&&_0x15159f['_onDiscard']([_0x3d25b8],null,_0x286775);}}if(_0x3581df['detach'](),_0x3581df['isCollapsed']||'$graveyard'==_0x3581df['root']['rootName'])return null;let _0x4cae72=null,_0xaf7f79=_0x3581df['start'],_0x38c507=_0x3581df['end'];const _0x56dd68=this['_findSuggestions'](_0x3581df,'deletion');for(const {suggestion:_0x16a89d,meta:_0x2c1e24}of _0x56dd68){const _0x4714ee=this['_model']['createRange'](_0xaf7f79,_0x38c507);if(_0x2c1e24['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2c1e24['containsRangeInObject']&&!_0x2c1e24['isInsideObject'])){if(_0x16a89d['isMultiRange']){if(!qt(_0x16a89d,_0x286775))continue;let _0x316718=!0x0;for(const _0x55fb5d of _0x16a89d['getRanges']()){if(_0x55fb5d['containsRange'](_0x4714ee,!0x0))return _0x16a89d;_0x4714ee['containsRange'](_0x55fb5d)||(_0x316718=!0x1);}_0x316718&&_0x16a89d['discard']();}else{const _0x47b4f2=_0x16a89d['getFirstRange']();if(_0x47b4f2['containsRange'](_0x4714ee,!0x0))return _0x16a89d;if(!qt(_0x16a89d,_0x286775)){_0x4714ee['containsRange'](_0x47b4f2)?_0x16a89d['removeMarkers']():_0x47b4f2['containsPosition'](_0xaf7f79)?_0xaf7f79=_0x47b4f2['end']:_0x47b4f2['containsPosition'](_0x38c507)&&(_0x38c507=_0x47b4f2['start']);continue;}_0xaf7f79=_0xaf7f79['isBefore'](_0x47b4f2['start'])?_0xaf7f79:_0x47b4f2['start'],_0x38c507=_0x38c507['isAfter'](_0x47b4f2['end'])?_0x38c507:_0x47b4f2['end'],_0x286775=Object['assign']({},_0x16a89d['attributes']),_0x4cae72?_0x47b4f2['start']['isBefore'](_0x4cae72['getFirstRange']()['start'])?(_0x4cae72['removeMarkers'](),_0x4cae72=_0x16a89d):_0x16a89d['removeMarkers']():_0x4cae72=_0x16a89d;}}}if(_0x4cae72)return this['_setSuggestionRange'](_0x4cae72,this['_model']['createRange'](_0xaf7f79,_0x38c507)),_0x4cae72;{const _0x499fac=_0x2b2341(),_0x2ac170=this['_model']['createRange'](_0xaf7f79,_0x38c507),_0x2e4260=_0x3da7c9['id'],_0x1a0138=_0xaa6830?'deletion:'+_0xaa6830:'deletion',_0x411d4a=this['_setSuggestionData']({'id':_0x499fac,'type':_0x1a0138,'createdAt':new Date(),'authorId':_0x2e4260,'attributes':_0x286775});return this['_addSuggestionMarker'](_0x1a0138,_0x499fac,_0x2e4260,_0x2ac170),_0x411d4a;}}['markMultiRangeDeletion'](_0xefbe3c,_0x1189a5='multi',_0x258e12={}){const _0x4e7671=this['editor']['plugins']['get']('Users')['me'],_0x5eda97=_0xefbe3c['map'](_0x4ef7e5=>new _0x425d25(_0x4ef7e5['start'],_0x4ef7e5['end'])),_0x213bd8=new Set();for(const {suggestion:_0x202645,meta:_0x328d03}of this['_findSuggestions'](_0x5eda97,'insertion'))_0x328d03['isOwn']&&!_0x328d03['isNextTo']&&_0x213bd8['add'](_0x202645);for(const _0x2660e5 of _0x213bd8)if(_0x2660e5['isMultiRange']){const _0x34abc7=_0x2660e5['getRanges']();(!_0x2660e5['attributes']||!_0x2660e5['attributes']['skipNestingCheck'])&&(_0x34abc7['every'](_0x361948=>_0x5eda97['some'](_0x39e9a4=>_0x39e9a4['containsRange'](_0x361948,!0x0)))&&_0x2660e5['discard']());if(_0x5eda97['every'](_0x12ac89=>_0x34abc7['some'](_0x2701f8=>_0x2701f8['containsRange'](_0x12ac89,!0x0)))){const _0x366512=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1189a5,'accept');return this['forceDefaultExecution'](()=>_0x366512(_0xefbe3c,null,_0x258e12)),null;}}else{const _0x1d7d78=_0x2660e5['getFirstRange']();_0x5eda97['some'](_0xf41b0d=>_0xf41b0d['containsRange'](_0x1d7d78,!0x0))&&_0x2660e5['discard']();if(_0x5eda97['every'](_0x35404f=>_0x1d7d78['containsRange'](_0x35404f,!0x0))){const _0x5d9aab=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1189a5,'accept');return this['forceDefaultExecution'](()=>_0x5d9aab(_0x5eda97,null,_0x258e12)),null;}}const _0x12d86=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1189a5,'join');let _0x3e4043=null;for(const _0x5881e2 of this['getSuggestions']())if(_0x5881e2['author']['id']==_0x4e7671['id']&&_0x5881e2['isInContent']&&'deletion'==_0x5881e2['type']&&_0x5881e2['subType']==_0x1189a5&&qt(_0x5881e2,_0x258e12)&&(_0x12d86(_0x5881e2['getRanges'](),_0x5eda97)||_0x12d86(_0x5eda97,_0x5881e2['getRanges']()))){if(_0x3e4043){if(_0x5881e2['commentThread']&&_0x5881e2['commentThread']['length'])continue;for(const _0x176cbd of _0x5881e2['getRanges']())_0x3e4043['isIntersectingWithRange'](_0x176cbd)||_0x3e4043['addRange'](_0x176cbd);_0x5881e2['removeMarkers']();}else{_0x3e4043=_0x5881e2;for(const _0x17ba2b of _0x5eda97)_0x5881e2['isIntersectingWithRange'](_0x17ba2b)||_0x5881e2['addRange'](_0x17ba2b);}}if(_0x3e4043)return _0x3e4043;_0x213bd8['clear']();for(const {suggestion:_0x186f2c,meta:_0x6f4728}of this['_findSuggestions'](_0x5eda97,'deletion'))_0x6f4728['isOwn']&&(this['_mergeNestedSuggestions']||!_0x6f4728['containsRangeInObject']&&!_0x6f4728['isInsideObject'])&&qt(_0x186f2c,_0x258e12)&&_0x213bd8['add'](_0x186f2c);for(const _0x294118 of _0x213bd8){const _0x302471=_0x294118['getRanges']();if(!_0x258e12||!_0x258e12['skipNestingCheck']){if(_0x5eda97['every'](_0x21e502=>_0x302471['some'](_0x5a9d02=>_0x5a9d02['containsRange'](_0x21e502,!0x0))))return _0x294118;}(!_0x294118['attributes']||!_0x294118['attributes']['skipNestingCheck'])&&(_0x302471['every'](_0x4caf5d=>_0x5eda97['some'](_0x78241e=>_0x78241e['containsRange'](_0x4caf5d,!0x0)))&&_0x294118['discard']());}const _0x21b14a=_0x2b2341(),_0x28bd2b=_0x4e7671['id'],_0x732daf='deletion:'+_0x1189a5,_0x175ea5=this['_setSuggestionData']({'id':_0x21b14a,'type':_0x732daf,'createdAt':new Date(),'authorId':_0x28bd2b,'attributes':_0x258e12});for(const _0x45dffa of _0x5eda97)_0x45dffa['detach'](),_0x45dffa['isCollapsed']||'$graveyard'==_0x45dffa['root']['rootName']||this['_addSuggestionMarker'](_0x732daf,_0x21b14a,_0x28bd2b,_0x45dffa,u['getMultiRangeId']());return _0x175ea5;}['markAttributeChange'](_0x12be07,_0x3e766f,_0x43f31d,_0x5c6928,_0x3d109c){if(_0x12be07['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x4f990c=this['editor']['plugins']['get']('Users')['me']['id'],_0x10512c=Array['from'](this['_suggestions']['values']())['filter'](_0x2dfd24=>'attribute'==_0x2dfd24['type']&&_0x2dfd24['data']['key']==_0x3e766f&&_0x2dfd24['isIntersectingWithRange'](_0x12be07));if('default'===this['_trackFormatChanges']){const _0x100939=this['_findSuggestions'](_0x12be07,'insertion')['filter'](({meta:_0x38e0bb})=>_0x38e0bb['isOwn']&&!_0x38e0bb['isInsideObject']&&!_0x38e0bb['isNextTo'])['map'](({suggestion:_0x6ed3b6})=>_0x6ed3b6);_0x10512c['unshift'](..._0x100939);}const _0x45a722=new Map([[_0x12be07,_0x43f31d]]);for(const _0x38f414 of _0x10512c){const _0x5012ab='attribute'==_0x38f414['type']?_0x38f414['data']['oldValue']:void 0x0,_0x4af047=_0x38f414['getFirstRange'](),_0x30744d=Array['from'](_0x45a722['keys']())['find'](_0x45067e=>_0x45067e['isIntersecting'](_0x4af047));if(!_0x30744d)continue;const _0x2f55f1=_0x30744d['getDifference'](_0x4af047);this['_isBlockAttribute'](_0x3e766f)&&'insertion'==_0x38f414['type']&&0x0!=_0x2f55f1['length']||(_0x45a722['delete'](_0x30744d),_0x2f55f1['forEach'](_0x4bdeeb=>{_0x45a722['set'](_0x4bdeeb,_0x43f31d);}),'insertion'!=_0x38f414['type']&&_0x5012ab!=_0x5c6928&&_0x45a722['set'](_0x30744d['getIntersection'](_0x4af047),_0x5012ab));}const _0x4ee400=[];for(const [_0x4197e3,_0x5a6a32]of _0x45a722){const _0x499cab=_0x2b2341(),_0x1f4bf1={'key':_0x3e766f,'oldValue':_0x5a6a32,'newValue':_0x5c6928};_0x3e766f['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':_0x3e766f});const _0x18bfcf=('attribute:'+(_0x3e766f+'|'+Gt({'newValue':_0x5c6928})))['substring'](0x0,0x3c),_0x7d86fd=this['_setSuggestionData']({'id':_0x499cab,'type':_0x18bfcf,'data':_0x1f4bf1,'createdAt':new Date(),'authorId':_0x4f990c,'attributes':_0x3d109c});_0x4ee400['push'](_0x7d86fd),this['_addSuggestionMarker'](_0x18bfcf,_0x499cab,_0x4f990c,_0x4197e3);}return _0x4ee400;}['enableDefaultAttributesIntegration'](_0x4011e3){this['enableCommand'](_0x4011e3,(_0x1a7b7b,..._0x516862)=>{this['_recordAttributeChanges'](()=>{_0x1a7b7b(..._0x516862);});});}['registerBlockAttribute'](_0x188afd){this['_blockAttributeKeys']['add'](_0x188afd);}['registerInlineAttribute'](_0x11b33b){this['_inlineAttributeKeys']['add'](_0x11b33b);}['_getAttributeKey'](_0x5b304f){return'attribute'==_0x5b304f['type']?_0x5b304f['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x2525bf,_0x38514d){const _0x2387ed=_0x2525bf['getFirstMarker']();this['_model']['change'](_0x4f0603=>{_0x4f0603['updateMarker'](_0x2387ed,{'range':_0x38514d});});}['_addThreadToSuggestion'](_0xbe288e){const _0x5c4f25=_0xbe288e['id'],_0x2f0005=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x5c4f25)||this['_commentsRepository']['addCommentThread']({'channelId':_0x2f0005,'threadId':_0x5c4f25,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x37a218=this['_commentsRepository']['getCommentThread'](_0x5c4f25);_0x37a218['unbind']('isRemovable'),_0x37a218['isRemovable']=!0x1,_0xbe288e['commentThread']=_0x37a218;}['_checkSuggestionCorrectness'](_0x2631ca,_0xcdfe5a,_0x3caf42,_0x166558){if(_0x2631ca['type']!=_0xcdfe5a||_0x2631ca['subType']!=_0x3caf42||_0x2631ca['creator']['id']!=_0x166558)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x10890c('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x16c7e5,_0x30da28){const _0x53428f=_0x16c7e5['getFirstRange']();if(_0x30da28['isEqual'](_0x53428f))_0x16c7e5['removeMarkers']();else{if(_0x53428f['containsRange'](_0x30da28)){const _0x340e91=this['_model']['createPositionAt'](_0x30da28['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x16c7e5,this['_model']['createRange'](_0x53428f['start'],_0x340e91));const _0x27e6d3=_0x2b2341(),_0x5ce054=_0x16c7e5['creator']['id'],_0x1b05fc=_0x16c7e5['type']+':'+_0x16c7e5['subType'];this['_setSuggestionData']({'id':_0x27e6d3,'type':_0x1b05fc,'createdAt':new Date(),'authorId':_0x5ce054,'data':_0x16c7e5['data'],'attributes':_0x16c7e5['attributes']});const _0x1ea755=this['_model']['createPositionAt'](_0x30da28['end']['parent'],'after'),_0x113182=this['_model']['createRange'](_0x1ea755,_0x53428f['end']);this['_addSuggestionMarker'](_0x1b05fc,_0x27e6d3,_0x5ce054,_0x113182);}else{if(_0x53428f['containsPosition'](_0x30da28['start'])){const _0x1bd4b9=this['_model']['createPositionAt'](_0x30da28['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x16c7e5,this['_model']['createRange'](_0x53428f['start'],_0x1bd4b9));}else{const _0xc43859=this['_model']['createPositionAt'](_0x30da28['end']['parent'],'after');this['_setSuggestionRange'](_0x16c7e5,this['_model']['createRange'](_0xc43859,_0x53428f['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x276f13){for(const {suggestion:_0xe17967,meta:_0x2c966c}of this['_findSuggestions'](_0x276f13,'insertion')){if(!_0x2c966c['isOwn'])continue;const _0x4dc017=_0xe17967['getRanges']();for(const _0x2f3377 of _0x4dc017)if(!_0x276f13['getDifference'](_0x2f3377)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3cd168){const _0x463349=this['editor']['plugins']['get']('Users')['getUser'](_0x3cd168);if(!_0x463349)throw new _0x10890c('track-changes-user-not-found',this);return _0x463349;}['_getExternalAuthor'](_0x273e53){const _0x5f2f6a=this['editor']['plugins']['get']('Users'),_0x54cd41=_0x133608('external:'+_0x273e53),_0x1ccaab=_0x5f2f6a['getUser'](_0x54cd41);return _0x1ccaab||_0x5f2f6a['addUser']({'id':_0x54cd41,'name':_0x273e53});}['_createSuggestion'](_0x381dab,_0x215256,_0xed4aec,_0x544221,_0x13d82c){const _0x349f3c=this['_getAuthorFromId'](_0x544221),_0x42df51=this['_suggestionFactory']['buildSuggestion'](_0x381dab,_0x215256,_0xed4aec,_0x349f3c,_0x13d82c,_0x54732d=>{this['_updateSuggestionData'](_0xed4aec,{'attributes':_0x54732d});const _0x30fd45=this['getSuggestion'](_0xed4aec);this['_joinWithAdjacentSuggestions'](new Set([_0x30fd45])),this['_refreshSuggestionsChain'](new Set([_0x30fd45]));});return this['listenTo'](_0x42df51,'accept',()=>{this['_updateSuggestionData'](_0xed4aec,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x42df51,'discard',()=>{this['_updateSuggestionData'](_0xed4aec,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0xed4aec,_0x42df51),this['_suggestionState']['set'](_0x42df51,'notReady'),_0x42df51;}['_splitMarkerName'](_0xd9ddd0){const _0x960ad6=_0xd9ddd0['split'](':');return{'group':_0x960ad6[0x0],'type':_0x960ad6[0x1],'subType':_0x960ad6['length']>=0x5?_0x960ad6[0x2]:null,'id':_0x960ad6['length']<0x5?_0x960ad6[0x2]:_0x960ad6[0x3],'authorId':_0x960ad6['length']<0x5?_0x960ad6[0x3]:_0x960ad6[0x4],'markerCount':0x6==_0x960ad6['length']?_0x960ad6[0x5]:null};}['_breakSuggestionMarker'](_0x15d627,_0x4ca61f,_0x48590f){const _0xd9588f=_0x15d627['getFirstRange'](),_0x2fa6de=_0xd9588f['start'],_0x4f29a5=_0xd9588f['end'];this['_setSuggestionRange'](_0x15d627,this['_model']['createRange'](_0x2fa6de,_0x4ca61f));const _0x385f31=_0x2b2341(),_0x5d4f99=_0x15d627['creator']['id'],_0x31f637=_0x15d627['type']+(_0x15d627['subType']?':'+_0x15d627['subType']:'');this['_setSuggestionData']({'id':_0x385f31,'type':_0x31f637,'createdAt':new Date(),'authorId':_0x5d4f99,'originalSuggestionId':_0x15d627['id'],'attributes':_0x15d627['attributes'],'data':_0x15d627['data']});const _0x3a3cbc=this['_getAttributeKey'](_0x15d627);('formatBlock'==_0x15d627['type']||_0x3a3cbc&&this['_isBlockAttribute'](_0x3a3cbc))&&(_0x48590f=this['_model']['createPositionBefore'](_0x48590f['parent'])),this['_addSuggestionMarker'](_0x31f637,_0x385f31,_0x5d4f99,this['_model']['createRange'](_0x48590f,_0x4f29a5));}['_findSuggestions'](_0x1f6232,_0x3f6289=null){const _0x4d4b9f=[],_0x752d15=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x1f6232)||(_0x1f6232=[_0x1f6232]);for(const _0x300960 of this['getSuggestions']()){if(!_0x300960['isInContent'])continue;if(_0x3f6289&&_0x300960['type']!=_0x3f6289)continue;let _0x3087c1=!0x1;for(const _0x3323a1 of _0x300960['getRanges']()){for(const _0x4f169c of _0x1f6232){const _0x4ce42=_0x4f169c['start']['isEqual'](_0x3323a1['end'])||_0x4f169c['end']['isEqual'](_0x3323a1['start']);if(_0x4ce42||_0x4f169c['getIntersection'](_0x3323a1)){const _0x54c756=_0x4f169c['containsRange'](_0x3323a1)&&Ot(this['_model']['schema'],_0x3323a1['start'],_0x4f169c),_0xf31a2b=_0x3323a1['containsRange'](_0x4f169c)&&Ot(this['_model']['schema'],_0x4f169c['start'],_0x3323a1);_0x4d4b9f['push']({'suggestion':_0x300960,'meta':{'isOwn':_0x752d15==_0x300960['author'],'isNextTo':_0x4ce42,'isInsideObject':_0x54c756,'containsRangeInObject':_0xf31a2b}}),_0x3087c1=!0x0;break;}}if(_0x3087c1)break;}}return _0x4d4b9f;}['_addSuggestionMarker'](_0x28f059,_0x447fe8,_0x4f1d73,_0x4da071,_0x1b17a5){this['_model']['change'](_0x300e3c=>{let _0x4c78a6='suggestion:'+_0x28f059+':'+_0x447fe8+':'+_0x4f1d73;_0x1b17a5&&(_0x4c78a6=_0x4c78a6+':'+_0x1b17a5),_0x300e3c['addMarker'](_0x4c78a6,{'range':_0x4da071,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x2d9385){const _0x5983b8=_0x2d9385['previous'],_0x5833a8=_0x2d9385['next'];_0x2d9385['previous']=null,_0x2d9385['next']=null,null!=_0x5983b8&&_0x5983b8['next']==_0x2d9385&&(_0x5983b8['next']=_0x5833a8),null!=_0x5833a8&&_0x5833a8['previous']==_0x2d9385&&(_0x5833a8['previous']=_0x5983b8),'ready'==this['_suggestionState']['get'](_0x2d9385)&&(this['_suggestionState']['set'](_0x2d9385,'removed'),this['fire']('suggestionUnloaded',_0x2d9385,_0x5983b8,_0x5833a8));}['_setSuggestionData'](_0x76c266){const _0x52f8b1=_0x76c266['id'],_0x362450=this['addSuggestionData'](_0x76c266);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x34b69c=this['editor']['plugins']['get']('PendingActions'),_0x4a80e3=_0x362450['hasComments'],_0x441922=_0x362450['subType']?_0x362450['type']+':'+_0x362450['subType']:_0x362450['type'],_0x52e025=this['editor']['locale'],_0x5722cf=_0x34b69c['add'](o(_0x52e025,'PENDING_ACTION_SUGGESTION')),_0x296d34={'id':_0x52f8b1,'type':_0x441922,'hasComments':_0x4a80e3,'data':_0x76c266['data']||null,'originalSuggestionId':_0x76c266['originalSuggestionId']||null,'attributes':_0x362450['attributes']};this['_adapter']['addSuggestion'](_0x296d34)['then'](_0x3b3136=>{_0x362450['_saved']=!0x0,_0x34b69c['remove'](_0x5722cf),_0x3b3136&&_0x3b3136['createdAt']&&(this['_suggestions']['get'](_0x52f8b1)['createdAt']=_0x3b3136['createdAt']);})['catch'](_0x2cfead=>{throw _0x1151d8('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x362450['discard']();}),_0x362450['stopListening'](),this['_suggestions']['delete'](_0x362450['id']),this['_suggestionState']['delete'](_0x362450),_0x2cfead;});}return _0x362450;}['_isBlockAttribute'](_0x5ebc28){return this['_blockAttributeKeys']['has'](_0x5ebc28);}['_updateSuggestionData'](_0x3cda9c,_0x3b784c){const _0x41ddff=this['editor']['plugins']['get']('PendingActions'),_0x35cb16=this['getSuggestion'](_0x3cda9c);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x35cb16['_saved']){const _0x239ddf=_0x41ddff['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x3cda9c,_0x3b784c)['then'](()=>{_0x41ddff['remove'](_0x239ddf);});}else _0x35cb16['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x3cda9c,_0x3b784c);});}}['_getSuggestionData'](_0x26a1cc){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x10890c('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x26a1cc);}['_handleNewSuggestionMarker'](_0x2e26a6){const {id:_0x299b28,type:_0x1a3373,subType:_0x4a024b,authorId:_0x17b171}=this['_splitMarkerName'](_0x2e26a6),_0x1dd212=this['_suggestions']['get'](_0x299b28)||this['_createSuggestion'](_0x1a3373,_0x4a024b,_0x299b28,_0x17b171,{});switch(this['_checkSuggestionCorrectness'](_0x1dd212,_0x1a3373,_0x4a024b,_0x17b171),this['_suggestionState']['get'](_0x1dd212)){case'notReady':this['_getSuggestionData'](_0x299b28)['then'](_0x12fbfc=>{let _0x1e35af=Promise['resolve']();_0x12fbfc['hasComments']&&(_0x1e35af=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x299b28})),_0x1e35af['then'](()=>{this['addSuggestionData'](_0x12fbfc)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1dd212,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x299b28,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1dd212,'ready'),this['fire']('suggestionLoaded',_0x1dd212);break;case'ready':this['fire']('suggestionChanged',_0x1dd212);}return _0x1dd212['addMarkerName'](_0x2e26a6),_0x1dd212;}['_refreshSuggestionsChain'](_0x3fa95f){const _0x130b4f=Array['from'](_0x3fa95f),_0x3225ed=_0x130b4f['filter'](_0x1b6182=>'attribute'==_0x1b6182['type']);this['_refreshAttributeSuggestionsChain'](_0x3225ed);const _0x1d6580=_0x130b4f['filter'](_0x525507=>!_0x525507['isMultiRange']&&'attribute'!=_0x525507['type']),_0x184865=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x44d118=>!_0x44d118['isMultiRange']&&'attribute'!=_0x44d118['type']),_0x40d1bf=_0x184865['filter'](_0x262659=>!_0x3fa95f['has'](_0x262659)),_0x5cc055=new Map(_0x184865['map'](_0x46b4c1=>[_0x46b4c1,this['_suggestionFactory']['getSuggestionCallback'](_0x46b4c1['type'],_0x46b4c1['subType'],'chain')])),_0x50fce0=new Map(_0x184865['map'](_0x2670f3=>[_0x2670f3,_0x2670f3['getFirstRange']()])),_0x536600=new Set(),_0x16c994=new Set();for(let _0x47a025=0x0;_0x47a025<_0x1d6580['length'];_0x47a025++)_0x1a1261(_0x1d6580[_0x47a025],_0x1d6580,_0x47a025+0x1);for(let _0x241fbf=0x0;_0x241fbf<_0x1d6580['length'];_0x241fbf++)_0x1a1261(_0x1d6580[_0x241fbf],_0x40d1bf,0x0);const _0x4dacd1=new Set();for(let _0x3af7d3=0x0;_0x3af7d3<_0x1d6580['length'];_0x3af7d3++){const _0x581812=_0x1d6580[_0x3af7d3];!_0x16c994['has'](_0x581812)&&_0x581812['previous']&&(_0x4dacd1['add'](_0x581812['previous']),_0x581812['previous']['next']===_0x581812&&(_0x581812['previous']['next']=null),_0x581812['previous']=null),!_0x536600['has'](_0x581812)&&_0x581812['next']&&(_0x4dacd1['add'](_0x581812['next']),_0x581812['next']['previous']===_0x581812&&(_0x581812['next']['previous']=null),_0x581812['next']=null);}function _0x1a1261(_0x4278d5,_0x5d4641,_0x1dd332){for(let _0x57eb27=_0x1dd332;_0x57eb27<_0x5d4641['length'];_0x57eb27++){const _0x32e3d5=_0x3e6788(_0x4278d5,_0x5d4641[_0x57eb27]);_0x32e3d5&&(_0x32e3d5[0x0]['next']=_0x32e3d5[0x1],_0x32e3d5[0x1]['previous']=_0x32e3d5[0x0],_0x536600['add'](_0x32e3d5[0x0]),_0x16c994['add'](_0x32e3d5[0x1]));}}function _0x3e6788(_0x448d95,_0x308cd3){if(_0x448d95['author']['id']!==_0x308cd3['author']['id'])return null;const _0x569255=_0x5cc055['get'](_0x448d95)(_0x448d95,_0x308cd3,_0x50fce0['get'](_0x448d95),_0x50fce0['get'](_0x308cd3));if(!_0x569255)return null;return _0x5cc055['get'](_0x308cd3)(_0x448d95,_0x308cd3,_0x50fce0['get'](_0x448d95),_0x50fce0['get'](_0x308cd3))?_0x569255[0x1]['commentThread']&&_0x569255[0x1]['commentThread']['length']?null:_0x569255:null;}_0x4dacd1['size']&&this['_refreshSuggestionsChain'](_0x4dacd1);}['_refreshAttributeSuggestionsChain'](_0x2e875b){if(0x0==_0x2e875b['length'])return;const _0x1cf119=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x166bad=>'attribute'==_0x166bad['type']&&_0x166bad['_isDataLoaded']),_0x1f92a6=[],_0x3ffab7=new Map();for(const _0x1580ae of _0x1cf119){const _0x245ec1=_0x133608(_0x1580ae['attributes']);_0x3ffab7['has'](_0x245ec1)||(_0x3ffab7['set'](_0x245ec1,_0x1f92a6['length']),_0x1f92a6['push']([]));const _0xbe966b=_0x3ffab7['get'](_0x245ec1);_0x1f92a6[_0xbe966b]['push'](_0x1580ae);}!(function(){_0x1f92a6['sort']((_0x3c7eb0,_0x5e587a)=>{const _0x4c3b8d=_0x3c7eb0[0x0]['createdAt'],_0x5ed8e6=_0x5e587a[0x0]['createdAt'];return _0x4c3b8d==_0x5ed8e6?_0x3c7eb0[0x0]['attributes']['groupId']<_0x5e587a[0x0]['attributes']['groupId']?-0x1:0x1:_0x4c3b8d<_0x5ed8e6?-0x1:0x1;});for(const _0x513e91 of _0x1f92a6)_0x513e91['sort']((_0x5ba97f,_0x39e302)=>_0x5ba97f['id']<_0x39e302['id']?-0x1:0x1);}());for(let _0x573a29=0x0;_0x573a29<_0x1f92a6['length'];_0x573a29++){if(0x0==_0x1f92a6[_0x573a29]['length'])continue;const _0x5ed6d6=[];for(let _0x461212=_0x573a29+0x1;_0x461212<_0x1f92a6['length'];_0x461212++)0x0!=_0x1f92a6[_0x461212]['length']&&_0x42cf73(_0x1f92a6[_0x573a29],_0x1f92a6[_0x461212])&&_0x5ed6d6['push'](_0x461212);for(const _0xad01aa of _0x5ed6d6)_0x1f92a6[_0x573a29]=_0x1f92a6[_0x573a29]['concat'](_0x1f92a6[_0xad01aa]),_0x1f92a6[_0xad01aa]=[];}for(const _0x2adbc1 of _0x1f92a6)for(let _0x1f3647=0x0;_0x1f3647<_0x2adbc1['length'];_0x1f3647++){const _0x4755aa=_0x2adbc1[_0x1f3647+0x1]||null;_0x2adbc1[_0x1f3647]['next']!==_0x4755aa&&(_0x2adbc1[_0x1f3647]['next']=_0x4755aa);}for(const _0x4d41c6 of _0x1f92a6)for(let _0x8268c5=0x0;_0x8268c5<_0x4d41c6['length'];_0x8268c5++){const _0x55222f=_0x4d41c6[_0x8268c5-0x1]||null;_0x4d41c6[_0x8268c5]['previous']!==_0x55222f&&(_0x4d41c6[_0x8268c5]['previous']=_0x55222f);}function _0x42cf73(_0x2472a9,_0x2c9897){if(_0x2472a9[0x0]['attributes']['groupId']!==_0x2c9897[0x0]['attributes']['groupId']&&_0x2472a9[0x0]['author']!==_0x2c9897[0x0]['author'])return!0x1;if(!function(_0xc3f370,_0x155395){if(!_0xc3f370['hasComments']&&!_0x155395['hasComments'])return!0x0;if(_0xc3f370['hasComments']&&_0x155395['hasComments'])return!0x1;if(_0xc3f370['hasComments']&&_0x155395['createdAt']<_0xc3f370['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x155395['hasComments']&&_0xc3f370['createdAt']<_0x155395['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2472a9[0x0],_0x2c9897[0x0]))return!0x1;const _0x3b8781=Tt(_0x2472a9[0x0]['attributes'],'groupId'),_0x3da24c=Tt(_0x2c9897[0x0]['attributes'],'groupId');if(!_0x7c6596(_0x3b8781,_0x3da24c))return!0x1;return!!_0x2472a9['every'](_0x2c3387=>_0x2c9897['some'](_0x3777f1=>_0x2c3387['getFirstRange']()['isEqual'](_0x3777f1['getFirstRange']())))&&_0x2c9897['every'](_0x44e09b=>_0x2472a9['some'](_0x1ba3c7=>_0x44e09b['getFirstRange']()['isEqual'](_0x1ba3c7['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x497b92){const _0x1d919e=Array['from'](_0x497b92),_0x2032cb=this['getSuggestions']({'skipNotAttached':!0x0}),_0x123a2b=_0x2032cb['filter'](_0x23fd75=>!_0x497b92['has'](_0x23fd75)),_0x538778=new Map(_0x1d919e['map'](_0x1abe79=>[_0x1abe79,this['_suggestionFactory']['getSuggestionCallback'](_0x1abe79['type'],_0x1abe79['subType'],'join')])),_0x2570e7=new Map(_0x2032cb['map'](_0x1998d7=>[_0x1998d7,_0x1998d7['getRanges']()]));for(let _0x3c82e9=0x0;_0x3c82e9<_0x1d919e['length'];_0x3c82e9++){if(_0xb98986(this,_0x1d919e[_0x3c82e9],_0x1d919e,_0x3c82e9+0x1))return!0x0;}for(let _0x7ea7a1=0x0;_0x7ea7a1<_0x1d919e['length'];_0x7ea7a1++){if(_0xb98986(this,_0x1d919e[_0x7ea7a1],_0x123a2b,0x0))return!0x0;}return!0x1;function _0xb98986(_0x50817e,_0x3d01ca,_0x40396c,_0x54a183){for(let _0x704f55=_0x54a183;_0x704f55<_0x40396c['length'];_0x704f55++){const _0x32e755=_0x40396c[_0x704f55];if(_0x32e755['type']!==_0x3d01ca['type']||_0x32e755['author']['id']!==_0x3d01ca['author']['id']||_0x32e755['subType']!==_0x3d01ca['subType'])continue;if(!Jt(_0x3d01ca,_0x32e755))continue;if('attribute'==_0x3d01ca['type']&&_0x3d01ca['data']['oldValue']!=_0x32e755['data']['oldValue'])continue;if('attribute'==_0x3d01ca['type']&&_0x50817e['_isBlockAttribute'](_0x3d01ca['data']['key']))continue;if('formatBlock'==_0x3d01ca['type']){const _0x19e947=_0x50817e['editor']['model'],_0x4161a2=_0x3d01ca['getContainedElement']();if(_0x4161a2&&(_0x19e947['schema']['isObject'](_0x4161a2)||_0x19e947['schema']['isLimit'](_0x4161a2)))continue;}const _0x3533f2=_0x538778['get'](_0x3d01ca),_0x3652e5=_0x2570e7['get'](_0x3d01ca),_0x5f4e5c=_0x2570e7['get'](_0x32e755),_0x3cbf53=_0x3d01ca['commentThread']&&_0x3d01ca['commentThread']['length'],_0x5493e3=_0x32e755['commentThread']&&_0x32e755['commentThread']['length'];if(!_0x3cbf53&&_0x3533f2(_0x5f4e5c,_0x3652e5))return _0x50817e['_joinSuggestions'](_0x32e755,_0x3d01ca),_0x2570e7['delete'](_0x3d01ca),!0x0;if(!_0x5493e3&&_0x3533f2(_0x3652e5,_0x5f4e5c))return _0x50817e['_joinSuggestions'](_0x3d01ca,_0x32e755),_0x2570e7['delete'](_0x32e755),!0x0;}return!0x1;}}['_joinSuggestions'](_0x589dd4,_0x38fdea){if(_0x589dd4['isMultiRange']){for(const _0x4f8ea5 of _0x38fdea['getRanges']())_0x589dd4['addRange'](_0x4f8ea5);}else{const _0x543aea=_0x38fdea['getFirstRange']()['end'];this['_setSuggestionRange'](_0x589dd4,this['_model']['createRange'](_0x589dd4['getFirstRange']()['start'],_0x543aea));}_0x38fdea['removeMarkers']();}['_getMarkerAnnouncementText'](_0x4c30eb,_0x2f9533,_0x31e816){const _0x198fe6=_0x4c30eb['startsWith']('format')||_0x4c30eb['startsWith']('attribute')?'FORMATTING':_0x4c30eb['toUpperCase']();return o(this['editor']['locale'],_0x2f9533+'_'+_0x198fe6+'_SUGGESTION_ANNOUNCEMENT',_0x31e816);}['_initAriaMarkerChangeAnnouncements'](){const _0x60a90c=this['editor'];if(!_0x60a90c['ui'])return;const {ariaLiveAnnouncer:_0x164456}=_0x60a90c['ui'];_0x1e6588(this['_model'],({left:_0x18eaa5,entered:_0x3cbbdb})=>{for(const _0xdf028c of _0x18eaa5){const {group:_0x524837,type:_0x17409f}=this['_splitMarkerName'](_0xdf028c['name']);if('suggestion'===_0x524837){_0x164456['announce'](this['_getMarkerAnnouncementText'](_0x17409f,'LEAVE'));break;}}for(const _0x2b45cc of _0x3cbbdb){const {group:_0x342dd1,type:_0x240090}=this['_splitMarkerName'](_0x2b45cc['name']);if('suggestion'===_0x342dd1){_0x164456['announce'](this['_getMarkerAnnouncementText'](_0x240090,'ENTER',_0x169b2b(_0x5aa4d2)));break;}}});}['_processAttributeChanges'](_0x218fee){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2ed486=this['editor'],_0x43ec66=_0x2ed486['model']['document']['differ']['getChanges']();if(0x0==_0x43ec66['length'])return!0x1;const _0x2192bf=[],_0x358771=_0x43ec66['filter'](_0xc76cd5=>'attribute'==_0xc76cd5['type']),_0x441348=_0x43ec66['filter'](_0x398102=>'insert'==_0x398102['type']&&'$text'!=_0x398102['name']),_0x533a7a=_0x43ec66['filter'](_0x39d3ac=>'remove'==_0x39d3ac['type']&&'$text'!=_0x39d3ac['name']);for(const _0x4ddb42 of _0x358771)_0x2192bf['push']({'key':_0x4ddb42['attributeKey'],'newValue':_0x4ddb42['attributeNewValue'],'oldValue':_0x4ddb42['attributeOldValue'],'range':Pt(_0x4ddb42['range'],_0x2ed486['model'])});for(const _0x584e1d of _0x441348){const _0x3235d3=_0x533a7a['find'](_0x537162=>_0x537162['position']['isEqual'](_0x584e1d['position']));_0x3235d3&&_0x2192bf['push']({'key':m,'newValue':_0x584e1d['name'],'oldValue':_0x3235d3['name'],'range':_0x2ed486['model']['createRangeOn'](_0x584e1d['position']['nodeAfter'])});}return 0x0!=_0x2192bf['length']&&this['_reduceExistingSuggestions'](_0x218fee,_0x2192bf);}['_processAttributeSuggestions'](_0xfa281e){let _0x341ba5=!0x1;const _0x33b059=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5d8c0a=>_0x5d8c0a['data']['newRange']&&_0x5d8c0a['name']['startsWith']('suggestion:attribute:'));for(const _0x30ebf3 of _0x33b059){const {subType:_0xc51c65,id:_0x5578c3}=this['_splitMarkerName'](_0x30ebf3['name']),_0x1c992d=_0xc51c65['split']('|')[0x0];for(const _0x1d343a of this['getSuggestions']({'skipNotAttached':!0x0}))_0x1d343a['id']!=_0x5578c3&&'attribute'==_0x1d343a['type']&&_0x1d343a['data']&&_0x1d343a['data']['key']==_0x1c992d&&_0x1d343a['getFirstRange']()['isIntersecting'](_0x30ebf3['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x1d343a,_0x30ebf3['data']['newRange'],_0xfa281e),_0x341ba5=!0x0);}return _0x341ba5;}['_recordAttributeChanges'](_0x5619d6){this['_recordAttributeSuggestions']=!0x0,_0x5619d6();}['_isRegisteredAttribute'](_0x109efe){const _0x3a9dd3=this['_isBlockAttribute'](_0x109efe),_0x22b46f=this['_inlineAttributeKeys']['has'](_0x109efe);return _0x3a9dd3||_0x22b46f;}['_reduceExistingSuggestions'](_0x827a7b,_0x306e4a){if(0x0==_0x306e4a['length'])return!0x1;let _0x196864=!0x1;for(const _0x390ef7 of _0x306e4a){const _0x1d967c=this['_findSuggestions'](_0x390ef7['range'],'attribute')['filter'](_0x50deda=>!_0x50deda['meta']['isNextTo'])['map'](_0x724eb0=>_0x724eb0['suggestion']),_0x513d1e=_0x133608({'newValue':_0x390ef7['newValue']});_0x1d967c['filter'](_0x56032b=>{const [_0x1d1b7d,_0x139976]=_0x56032b['subType']['split']('|');return _0x1d1b7d==_0x390ef7['key']&&_0x139976!=_0x513d1e;})['forEach'](_0x1ffc0=>{this['_reduceSuggestionAttributeRange'](_0x1ffc0,_0x390ef7['range'],_0x827a7b),_0x196864=!0x0;});}return _0x196864;}['_reduceSuggestionAttributeRange'](_0x3d7906,_0x50f60e,_0x2c6bc3){const _0x502350=_0x3d7906['getFirstRange']()['getDifference'](_0x50f60e);0x0!==_0x502350['length']?0x1!==_0x502350['length']?this['_breakSuggestionMarker'](_0x3d7906,_0x50f60e['start'],_0x50f60e['end']):this['_setSuggestionRange'](_0x3d7906,_0x502350[0x0]):_0x2c6bc3['removeMarker'](_0x3d7906['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x1bf9a0){this['_editor']=_0x1bf9a0,this['_model']=_0x1bf9a0['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x4558f9,_0x2a876c,_0x42d694,_0x3d02f4,_0x2aeccb,_0x27edfa){return new u(this['_model'],{'type':_0x4558f9,'subType':_0x2a876c,'id':_0x42d694,'author':_0x3d02f4,'creator':_0x3d02f4,'attributes':_0x2aeccb,'onAttributesChange':_0x27edfa,'onAccept':(..._0x4038b0)=>this['getSuggestionCallback'](_0x4558f9,_0x2a876c,'accept')(..._0x4038b0),'onDiscard':(..._0x43b303)=>this['getSuggestionCallback'](_0x4558f9,_0x2a876c,'discard')(..._0x43b303)});}['registerCustomCallback'](_0x5d8b7f,_0x314d50,_0x309e4f,_0x2f0932){const _0x2a95f3=_0x5d8b7f+':'+_0x314d50+':'+_0x309e4f;this['_customCallbacks']['set'](_0x2a95f3,_0x2f0932);}['getSuggestionCallback'](_0x1be3b1,_0x121384,_0x4e3386){const _0x5df4b3=_0x1be3b1+':'+_0x121384+':'+_0x4e3386;return this['_customCallbacks']['get'](_0x5df4b3)||this['_defaultCallbacks']['get'](_0x1be3b1+':'+_0x4e3386);}['_registerDefaultCallbacks'](){const _0x4cfb65=()=>!0x1,_0x2c2919=_0x1b6328=>{_0x1b6328['sort']((_0x1692fa,_0x477227)=>_0x1692fa['start']['isBefore'](_0x477227['start'])?0x1:-0x1),this['_model']['change'](_0x59fa4b=>{for(const _0x187463 of _0x1b6328){let _0x60a718;_0x60a718=_0x187463['end']['isAtEnd']&&_0x187463['end']['parent']==_0x187463['start']['nodeAfter']?_0x59fa4b['createSelection'](_0x187463['start']['nodeAfter'],'on'):_0x59fa4b['createSelection'](_0x187463),this['_model']['deleteContent'](_0x60a718,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0xf8ef46=(_0x57c060,_0xa38427)=>{_0xa38427&&this['_model']['change'](_0x234444=>{const {commandName:_0x5313ca,commandParams:_0x3c6cae=[]}=_0xa38427,_0x471c4f=_0x57c060['map'](_0x4347b2=>(Vt(_0x4347b2)&&(_0x4347b2=this['_model']['createRange'](_0x4347b2['end'])),_0x4347b2))['filter'](_0x32549a=>'$graveyard'!==_0x32549a['root']['rootName']);if(_0x471c4f['length']<0x1)return;const _0x1c788b=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x44050c=>_0x425d25['fromRange'](_0x44050c));_0x234444['setSelection'](_0x471c4f);for(const _0x2d4322 of this['_editor']['commands']['commands']())_0x2d4322['refresh']();_0x3c6cae['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x5313ca,..._0x3c6cae);const _0x492f0b=_0x1c788b['filter'](_0x1b4c30=>'$graveyard'!=_0x1b4c30['root']['rootName']);_0x492f0b['length']>0x0&&_0x234444['setSelection'](_0x492f0b);for(const _0x3e4610 of _0x1c788b)_0x3e4610['detach']();});},_0x380b00=(_0x12dc28,_0x38fbe3)=>0x1==_0x12dc28['length']&&0x1==_0x38fbe3['length']&&_0x12dc28[0x0]['end']['isEqual'](_0x38fbe3[0x0]['start']),_0x12ee3a=(_0x2ddb0e,_0x2014e7,_0xf73a7b,_0x3bd000)=>Ht(_0x2ddb0e,_0x2014e7,_0xf73a7b,_0x3bd000,this['_model'])?[_0x2ddb0e,_0x2014e7]:Ht(_0x2014e7,_0x2ddb0e,_0x3bd000,_0xf73a7b,this['_model'])?[_0x2014e7,_0x2ddb0e]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4cfb65),this['_defaultCallbacks']['set']('insertion:discard',_0x2c2919),this['_defaultCallbacks']['set']('insertion:join',_0x380b00),this['_defaultCallbacks']['set']('insertion:chain',_0x12ee3a),this['_defaultCallbacks']['set']('deletion:accept',_0x2c2919),this['_defaultCallbacks']['set']('deletion:discard',_0x4cfb65),this['_defaultCallbacks']['set']('deletion:join',_0x380b00),this['_defaultCallbacks']['set']('deletion:chain',_0x12ee3a),this['_defaultCallbacks']['set']('formatInline:accept',_0xf8ef46),this['_defaultCallbacks']['set']('formatInline:discard',_0x4cfb65),this['_defaultCallbacks']['set']('formatInline:join',_0x380b00),this['_defaultCallbacks']['set']('formatInline:chain',_0x4cfb65),this['_defaultCallbacks']['set']('formatBlock:accept',_0xf8ef46),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4cfb65),this['_defaultCallbacks']['set']('formatBlock:join',_0x380b00),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4cfb65),this['_defaultCallbacks']['set']('attribute:accept',_0x4cfb65),this['_defaultCallbacks']['set']('attribute:discard',(_0x208ff7,_0x43ff88)=>{if(!_0x43ff88)return;const _0x2b94d5=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x4af484=>{if(_0x43ff88['key']==m)for(const _0x53b433 of _0x208ff7){const _0xa1d2d4=_0x53b433['start']['nodeAfter'],_0x510887=_0x43ff88['oldValue'];_0x4af484['rename'](_0xa1d2d4,_0x510887);}else{if(_0x2b94d5['_isBlockAttribute'](_0x43ff88['key'])){for(const _0x330f08 of _0x208ff7)void 0x0!==_0x43ff88['oldValue']?_0x4af484['setAttribute'](_0x43ff88['key'],_0x43ff88['oldValue'],_0x330f08['start']['nodeAfter']):_0x4af484['removeAttribute'](_0x43ff88['key'],_0x330f08['start']['nodeAfter']);}else{for(const _0xf3646c of _0x208ff7)_0x43ff88['oldValue']?_0x4af484['setAttribute'](_0x43ff88['key'],_0x43ff88['oldValue'],_0xf3646c):_0x4af484['removeAttribute'](_0x43ff88['key'],_0xf3646c);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x380b00);}}function Ot(_0x44ebb5,_0x300fdd,_0x110842){for(const _0x122c1e of _0x300fdd['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x122c1e['root']==_0x122c1e)return!0x1;if(!_0x110842['containsItem'](_0x122c1e))return!0x1;if(_0x44ebb5['isObject'](_0x122c1e)||_0x44ebb5['isLimit'](_0x122c1e))return!0x0;}return!0x1;}function Vt(_0x1abae2){return _0x1abae2['end']['parent']==_0x1abae2['start']['nodeAfter']&&_0x1abae2['end']['isAtStart'];}function Ut(_0x9bf972,_0x554cc4,_0x3b79f8,_0x24144d){const _0x914a86=_0x35ff03=>!_0x35ff03['item']['is']('$textProxy')&&!_0x24144d['isObject'](_0x35ff03['item']),_0x500e59=_0x9bf972['start']['getLastMatchingPosition'](_0x914a86),_0xece724=_0x9bf972['end']['getLastMatchingPosition'](_0x914a86,{'direction':'backward'});return(!_0x9bf972['start']['isEqual'](_0x500e59)||!_0x9bf972['end']['isEqual'](_0xece724))&&(_0x500e59['isBefore'](_0xece724)?_0x3b79f8['updateMarker'](_0x554cc4,{'range':_0x3b79f8['createRange'](_0x500e59,_0xece724)}):_0x3b79f8['removeMarker'](_0x554cc4),!0x0);}function Gt(_0x313b61){return _0x133608(_0x313b61);}function Ft(_0x336dc6){const _0x5694fe=_0x336dc6['start']['nodeAfter'];return _0x5694fe&&_0x5694fe['is']('element');}function Pt(_0xcfe40e,_0x234b0e){return null==_0xcfe40e['end']['nodeBefore']&&_0xcfe40e['end']['parent']==_0xcfe40e['start']['nodeAfter']?Lt(_0xcfe40e['start']['nodeAfter'],_0x234b0e):_0xcfe40e;}function Lt(_0x5b718e,_0x51207b){const _0x46b594=_0x51207b['schema']['isObject'](_0x5b718e)||_0x51207b['schema']['isSelectable'](_0x5b718e);return _0x51207b['createRange'](_0x51207b['createPositionAt'](_0x5b718e,'before'),_0x46b594?_0x51207b['createPositionAfter'](_0x5b718e):_0x51207b['createPositionAt'](_0x5b718e,'end'));}function Ht(_0x484fad,_0x231449,_0x5c1307,_0x35526d,_0x3146e4){if(_0x484fad['next'])return!0x1;if(!Jt(_0x484fad,_0x231449))return!0x1;if(_0x5c1307['end']['isEqual'](_0x35526d['start']))return!0x0;if(_0x484fad['type']!=_0x231449['type'])return!0x1;if(!_0x5c1307['end']['isTouching'](_0x35526d['start']))return!0x1;const _0x4ec0dd=_0x3146e4['createRange'](_0x5c1307['end'],_0x35526d['start'])['getWalker']();for(const _0x51fa10 of _0x4ec0dd)if(['elementStart','elementEnd']['includes'](_0x51fa10['type'])&&_0x3146e4['schema']['isLimit'](_0x51fa10['item']))return!0x1;return!0x0;}function Jt(_0x33b15c,_0x770793){if(!_0x33b15c['_isDataLoaded']||!_0x770793['_isDataLoaded'])return!0x1;const _0x3de034=new Set(Object['keys'](_0x33b15c['attributes'])),_0x4b41c1=new Set(Object['keys'](_0x770793['attributes']));if(_0x3de034['delete']('groupId'),_0x4b41c1['delete']('groupId'),0x0==_0x3de034['size']&&0x0==_0x4b41c1['size'])return!0x0;if(_0x3de034['size']!=_0x4b41c1['size'])return!0x1;const _0x9906a3={..._0x33b15c['attributes']},_0x415262={..._0x770793['attributes']};return delete _0x9906a3['groupId'],delete _0x415262['groupId'],JSON['stringify'](_0x9906a3)==JSON['stringify'](_0x415262);}function qt(_0x4a4150,_0x56e65b){const _0x1b227f=zt(_0x4a4150['attributes']),_0x18e8fa=zt(_0x56e65b);if(!_0x4a4150['_isDataLoaded'])return!0x1;for(const _0x280f53 of Object['keys'](_0x18e8fa))if(!_0x7c6596(_0x1b227f[_0x280f53],_0x18e8fa[_0x280f53]))return!0x1;return!0x0;}function zt(_0x325bf1){const _0xf3f257=Object['assign']({},_0x325bf1);return delete _0xf3f257['skipNestingCheck'],delete _0xf3f257['tablePasteChainId'],_0xf3f257;}class ae extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x4d2569(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x474196,_0x2ce570,_0x2a8381,_0x1f9542){super(),this['model']=_0x2ce570,this['view']=_0x2a8381,this['commentThreadController']=_0x1f9542,this['_editor']=_0x474196,this['_acceptCommand']=_0x474196['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x474196['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0xfc632,_0x51b46f)=>_0xfc632||_0x51b46f),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x3db5b4=>_0x3db5b4&&this['_editor']['model']['canEditAt'](_0x2ce570['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4e8ce6=>_0x4e8ce6&&this['_editor']['model']['canEditAt'](_0x2ce570['getRanges']())),this['_pendingAction']=null,_0x2a8381['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2a8381,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2a8381,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2a8381,'change:isDirty',()=>{_0x2a8381['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 _0x3642f9=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x3642f9);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x5bb25a{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0xf20279,_0x6216d4,_0x321154,_0xa89840){super(_0xf20279),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x253816(_0xf20279,o(_0xf20279,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x6216d4['authoredAt']),this['bind']('authoredAt')['to'](_0x6216d4),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x6216d4,'authoredAt',this,'descriptionParts',(_0x4d6b48,_0x443017,_0x3c6c8a)=>{const _0x298733=_0x3c6c8a['map'](_0x39743d=>ls(_0x39743d['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x4d6b48-0x1,_0x6216d4['author']['name'],_0x443017?_0xa89840['formatDateTime'](_0x443017):'',new DOMParser()['parseFromString'](_0x298733,'text/html')['body']['textContent']]);}),this['focusables']=new _0x4a3579(),this['focusTracker']=new _0x300501(),this['keystrokes']=new _0x47e191(),this['focusCycler']=new _0x16bf8f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2a86b0=>_0x2a86b0['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x6216d4,this['_localUser']=_0x321154,this['_config']=_0xa89840,_0xa89840['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x6d2ff4(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x246380}=this['_config'];this['commentsListView']=new _0x246380(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',_0x4d156b=>_0x4d156b+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x54b2d9,_0x59db54)=>_0x54b2d9||!!_0x59db54);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x52605c}=this['_config'],_0x49d592=new _0x52605c(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2c0e7f=_0x49d592['commentInputView'];return _0x49d592['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2c0e7f,'value',(_0x443875,_0xf57078,_0x5157a3)=>!!_0x5157a3||_0x443875&&!_0xf57078),_0x2c0e7f['on']('submit',(_0x423403,_0x16a545)=>{this['fire']('addComment',_0x16a545),_0x2c0e7f['editor']['setData']('');}),_0x2c0e7f['on']('cancel',()=>this['focus']()),_0x2c0e7f['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x49d592;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x5b0b84,_0x22597f,_0x587536,_0x17e9c0){super(_0x5b0b84,_0x22597f,_0x587536,_0x17e9c0),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x17ef8e=>_0x17ef8e&&_0x17ef8e[0x0]?_0x17ef8e[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3b4945,_0x252d38)=>{let _0x330cd1='';for(const _0x291d7e of _0x3b4945)_0x330cd1+='<p>'+ls(_0x291d7e['content'],_0x291d7e['color'])+'</p>';return _0x252d38?_0x330cd1:_0xb42aa1(_0x330cd1,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x17e9c0['SuggestionView'](_0x5b0b84,_0x22597f,{'formatDateTime':_0x17e9c0['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x1b586a=this['bindTemplate'],_0x3230bb=[this['suggestionView']];return this['commentsListView']&&_0x3230bb['push'](this['commentsListView']),this['commentThreadInputView']&&_0x3230bb['push'](this['commentThreadInputView']),_0x3230bb['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x1b586a['if']('isActive','ck-suggestion-wrapper--active'),_0x1b586a['to']('type',_0x2021b6=>'ck-suggestion-'+_0x2021b6),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x1b586a['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x3230bb};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class ce extends _0x5bb25a{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x58df79,_0x12b970,_0x3f8876){super(_0x58df79),this['_model']=_0x12b970,this['_config']=_0x3f8876,this['set']('description',''),this['bind']('authoredAt')['to'](_0x12b970),this['acceptButton']=this['_createButton'](o(_0x58df79,'Accept\x20suggestion'),_0xcc8d03['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x58df79,'Discard\x20suggestion'),_0xcc8d03['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x24025d(_0x58df79,_0x12b970['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x4a3579([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x300501(),this['keystrokes']=new _0x47e191(),this['focusCycler']=new _0x16bf8f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x55086b=>_0x55086b['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x59fdf7=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x59fdf7['innerHTML']=this['description'],this['on']('change:description',(_0x3e0726,_0x328844,_0x24d008)=>{_0x59fdf7['innerHTML']=_0x24d008;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x3d50b7=this['bindTemplate'],_0x397ac6=[{'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':_0x3d50b7['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3d50b7['to']('authoredAt',_0x9f9b4b=>this['_config']['formatDateTime'](_0x9f9b4b))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x397ac6['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x397ac6}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0xaa8ffc,_0x42afb6,_0x102e58,_0x586395,_0x4a7a2f){const _0x55481a=new _0x58bb35(this['locale']);return _0x55481a['set']({'label':_0xaa8ffc,'icon':_0x42afb6,'tooltip':!0x0,'tooltipPosition':_0x4a7a2f}),_0x55481a['extendTemplate']({'attributes':{'class':_0x102e58}}),_0x55481a['on']('execute',()=>{this['fire'](_0x586395,this['_model']['id']);}),_0x55481a;}['_setupKeyboardNavigation'](){const _0x59dd06=this['element'];this['keystrokes']['listenTo'](_0x59dd06);for(const _0x5ed06f of this['focusables'])this['focusTracker']['add'](_0x5ed06f['element']),this['keystrokes']['listenTo'](_0x5ed06f['element']);this['keystrokes']['set']('enter',(_0x13d063,_0x483e08)=>{_0x59dd06===_0x13d063['target']&&(this['focusCycler']['focusFirst'](),_0x483e08());}),this['keystrokes']['set']('esc',(_0x321c30,_0x53f603)=>{_0x59dd06!==_0x321c30['target']&&(this['focus'](),_0x53f603());});}}var he='<!--\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\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0xd0fe4f{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x2a2d95,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x1ac7f4){super(_0x1ac7f4),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4a5ca3=this['editor']['config'];_0x4a5ca3['define']('trackChanges.SuggestionThreadView',re),_0x4a5ca3['define']('trackChanges.SuggestionView',ce),_0x4a5ca3['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4a5ca3['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x8fc6d2,_0x10cb8b){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1e78c6,_0x2a5bed]of this['_handleControllerBuffer']){const _0xc090a0=this['_suggestionToController']['has'](_0x1e78c6);_0xc090a0||_0x2a5bed?_0xc090a0&&_0x2a5bed&&this['_destroyController'](_0x1e78c6):this['_initializeController'](_0x1e78c6);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x8fc6d2,_0x10cb8b);}['init'](){const _0x36268e=this['editor'],_0x2793f3=_0x36268e['plugins']['get']('TrackChangesEditing'),_0xdc1317=_0x36268e['plugins']['get']('Annotations'),_0x17fcdd=_0x36268e['plugins']['get']('EditorAnnotations'),_0x554b77=_0x36268e['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x17fcdd['addSourceCollector'](()=>{const _0x4f793e=[];for(const [_0x4e4f3c,_0x5d8856]of Array['from'](this['_suggestionToController'])){const _0x1d8401=_0x4e4f3c['getAllAdjacentSuggestions'](),_0x578dd3=[];for(const _0x3d20cb of _0x1d8401){if(!_0x3d20cb['isInContent'])continue;if(_0x3d20cb['isMultiRange']){_0x578dd3['push'](..._0x3d20cb['getRanges']());continue;}const _0x165b4a=_0x3d20cb['getFirstRange']();if(_0x578dd3['length']>0x0){const _0x3ae41b=_0x578dd3[0x0]['getJoined'](_0x165b4a);if(_0x3ae41b){_0x578dd3[0x0]=_0x3ae41b;continue;}}_0x578dd3['push'](_0x165b4a);}_0x4f793e['push']([_0x5d8856['view'],_0x578dd3]);}return _0x4f793e;}),this['listenTo'](_0x2793f3,'suggestionLoaded',(_0x32c821,_0x34c034)=>{this['listenTo'](_0x34c034,'change:previous',(_0x1a056c,_0x4eb8f3,_0x15fc54,_0x4aa75c)=>{_0x34c034['isInContent']&&(null==_0x15fc54?(this['_updateController'](_0x4aa75c['head']),this['_handleSuggestionControllerDelayed'](_0x34c034,!0x1)):(this['_updateController'](_0x15fc54['head']),null==_0x4aa75c&&this['_handleSuggestionControllerDelayed'](_0x34c034,!0x0)));}),null!==_0x34c034['previous']?this['_updateController'](_0x34c034['head']):this['_handleSuggestionControllerDelayed'](_0x34c034,!0x1);}),this['listenTo'](_0x2793f3,'suggestionUnloaded',(_0x5d6f41,_0x237a5c,_0x155ddd)=>{this['stopListening'](_0x237a5c,'change:previous'),this['_handleControllerBuffer']['delete'](_0x237a5c),this['_suggestionToController']['has'](_0x237a5c)&&this['_destroyController'](_0x237a5c),_0x155ddd&&this['_updateController'](_0x155ddd['head']);}),this['listenTo'](_0x2793f3,'suggestionChanged',(_0x253cfa,_0x448a80)=>{this['_updateController'](_0x448a80);}),this['listenTo'](_0xdc1317,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x554b77,'addComment',(_0x5735d0,{threadId:_0x2e9212,isFromAdapter:_0x5d5159})=>{if(_0x5d5159||!_0x2793f3['hasSuggestion'](_0x2e9212))return;const _0x443f28=_0x2793f3['getSuggestion'](_0x2e9212);this['_suggestionToController']['get'](_0x443f28)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x4b208e=this['editor']['plugins']['get']('Annotations'),_0x1cf039=this['editor']['plugins']['get']('TrackChangesEditing'),_0x16f3d1=Array['from'](_0x4b208e['activeAnnotations'],_0x52a3c4=>_0x52a3c4['innerView'])['filter'](_0x30077e=>this['_viewToController']['has'](_0x30077e)),_0x2033e5=[];for(const _0x1d5579 of _0x16f3d1){const _0x2db60=this['_viewToController']['get'](_0x1d5579)['model']['getAllAdjacentSuggestions']();_0x2033e5['push'](..._0x2db60['reduce']((_0x5a880f,_0x5b5d8b)=>[..._0x5a880f,..._0x5b5d8b['getMarkerNames']()],[]));}_0x1cf039['activeMarkers']=_0x2033e5;}['_addUIComponentsToFactory'](){const _0x1f70d4=this['editor'],_0x256694=_0x1f70d4['locale'],_0x180e00=o(_0x256694,'Track\x20changes'),_0x46d387=new Wt([{'type':'switchbutton','model':new _0x568c43({'withText':!0x0,'isToggleable':!0x0,'label':_0x180e00,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x568c43({'withText':!0x0,'label':o(_0x256694,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x568c43({'withText':!0x0,'label':o(_0x256694,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x568c43({'withText':!0x0,'label':o(_0x256694,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x568c43({'withText':!0x0,'label':o(_0x256694,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x10d356 of _0x46d387)if(me(_0x10d356)){const _0x16df51=_0x1f70d4['commands']['get'](_0x10d356['model']['commandName']);_0x10d356['model']['bind']('isOn','isEnabled')['to'](_0x16df51,'value','isEnabled');}_0x1f70d4['ui']['componentFactory']['add']('trackChanges',_0x1e9fe=>this['_createToolbarButton'](_0x1e9fe,_0x46d387,_0x180e00)),_0x1f70d4['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1f3a63=>this['_createMenuBarMenu'](_0x1f3a63,_0x46d387,_0x180e00));}['_createToolbarButton'](_0x400f67,_0x34d6e1,_0x14a524){const _0x12a295=Qt(_0x400f67,_0x4192af),_0x546487=this['editor']['commands']['get']('trackChanges');_0x12a295['buttonView']['set']({'tooltip':_0x14a524,'label':_0x14a524,'icon':he}),_0x12a295['buttonView']['bind']('isOn')['to'](_0x546487,'value'),_0x12a295['buttonView']['on']('execute',()=>{_0x546487['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x12a295,_0x34d6e1,{'role':'menu'});const _0x52d613=[];for(const _0x52dccb of _0x34d6e1)me(_0x52dccb)&&_0x52d613['push'](this['editor']['commands']['get'](_0x52dccb['model']['commandName']));const _0x2214ab=_0x12a295['buttonView'];return _0x2214ab['actionView']['unbind']('isEnabled'),_0x2214ab['arrowView']['unbind']('isEnabled'),_0x2214ab['actionView']['bind']('isEnabled')['to'](_0x546487,'isEnabled'),_0x2214ab['arrowView']['bind']('isEnabled')['toMany'](_0x52d613,'isEnabled',(..._0x59e740)=>_0x59e740['some'](_0x49109d=>_0x49109d)),_0x12a295['on']('execute',_0x289478=>{this['editor']['execute'](_0x289478['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x12a295;}['_createMenuBarMenu'](_0x584268,_0x44b292,_0x1dbedd){const _0x1640df=new Yt(_0x584268),_0x436c87=this['editor']['commands']['get']('trackChanges');_0x1640df['buttonView']['set']({'label':_0x1dbedd,'icon':he});const _0x37a9d1=new Zt(_0x584268);for(const _0x25f36a of _0x44b292){if('separator'==_0x25f36a['type']){_0x37a9d1['items']['add'](new Xt(_0x584268));continue;}const _0x593de6=new te(_0x584268,_0x1640df),_0x5a8d8a=new _0x169749(_0x584268),_0x84ef34=_0x25f36a['model'];_0x5a8d8a['bind'](...Object['keys'](_0x84ef34))['to'](_0x84ef34),_0x5a8d8a['delegate']('execute')['to'](_0x1640df),_0x5a8d8a['on']('execute',()=>{this['editor']['execute'](_0x84ef34['commandName']),this['editor']['editing']['view']['focus']();}),_0x593de6['children']['add'](_0x5a8d8a),_0x37a9d1['items']['add'](_0x593de6);}return _0x1640df['bind']('isEnabled')['to'](_0x436c87,'isEnabled'),_0x1640df['panelView']['children']['add'](_0x37a9d1),_0x1640df;}['_initializeController'](_0x242d98){const _0x557528=this['editor'],_0x10956=_0x557528['config'],_0x1d5b9a=_0x557528['plugins']['get']('Annotations'),_0x53729a=_0x557528['plugins']['get']('CommentsRepository'),_0x2e1f70=_0x557528['plugins']['get']('EditorAnnotations'),_0xb5564b=_0x557528['plugins']['get'](_0x2a2d95)['me'],_0x3f6951=_0x10956['get']('trackChanges')['SuggestionThreadView'],_0x4dfec1=_0x10956['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x3ffd25,CommentThreadInputView:_0x5ea090}=_0x557528['plugins']['get']('CommentsUI');let _0xfaa089,_0x3e44c7,_0x5b3ea4;this['_annotationViews']['has'](_0x242d98['id'])?(_0x3e44c7=this['_annotationViews']['get'](_0x242d98['id']),_0xfaa089=_0x3e44c7['mainView']):(_0xfaa089=new _0x3f6951(_0x557528['locale'],_0x242d98,_0xb5564b,{'disableComments':this['_disableComments'],'editorConfig':_0x10956['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x10956['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x10956['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x10956['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5cadd8(_0x10956['get']('locale')),'CommentView':_0x10956['get']('comments')['CommentView'],'CommentsListView':_0x3ffd25,'CommentThreadInputView':_0x5ea090,'SuggestionView':_0x4dfec1}),_0xfaa089['suggestionView']['acceptButton']['on']('execute',()=>{_0x557528['editing']['view']['focus']();}),_0xfaa089['suggestionView']['discardButton']['on']('execute',()=>{_0x557528['editing']['view']['focus']();}),_0x3e44c7=_0x1d5b9a['createAnnotationView'](this['editor']['locale'],_0xfaa089),_0x3e44c7['bind']('isDirty')['to'](_0xfaa089,'isDirty'),_0x3e44c7['bind']('length')['to'](_0xfaa089),_0x3e44c7['bind']('type')['to'](_0xfaa089,'type',_0x3cfafa=>'suggestion-'+_0x3cfafa),_0xfaa089['on']('escape',()=>{_0x5b3ea4['fire']('escape');}),this['_annotationViews']['set'](_0x242d98['id'],_0x3e44c7));const _0x83e915=_0x53729a['createCommentThreadController'](_0x242d98['commentThread'],_0xfaa089),_0x504092=new ae(_0x557528,_0x242d98,_0xfaa089,_0x83e915),_0x55469b=_0x242d98['getAllAdjacentSuggestions']()['filter'](_0x3e0665=>_0x3e0665['isInContent']);_0xfaa089['descriptionParts']=_0x557528['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x55469b),this['_suggestionToController']['set'](_0x242d98,_0x504092),this['_viewToController']['set'](_0xfaa089,_0x504092),_0x5b3ea4=_0x1d5b9a['createAnnotation']({'view':_0x3e44c7,'target':()=>{const _0xe549c=[],_0x26af39=_0x242d98['getAllAdjacentSuggestions']()['filter'](_0x4730fc=>_0x4730fc['isInContent']);for(const _0x21c39b of _0x26af39)_0xe549c['push'](..._0x21c39b['getMarkers']());return _0x435996(_0x557528['editing'],_0xe549c);},'type':()=>'suggestion-'+_0x504092['view']['type']}),_0x53729a['_bindAnnotationToEditors'](_0xfaa089,_0x5b3ea4),_0x1d5b9a['add'](_0x5b3ea4),_0x2e1f70['registerAnnotation'](_0x5b3ea4);}['_destroyController'](_0xe4ea82){const _0x2cded5=this['editor']['plugins']['get']('CommentsRepository'),_0x5c9b04=this['editor']['plugins']['get']('Annotations'),_0x5de78b=this['_suggestionToController']['get'](_0xe4ea82),_0x501b02=_0x5de78b['view'],_0x531976=_0x5c9b04['getByInnerView'](_0x501b02);_0x2cded5['_unbindEditors'](_0x501b02),_0x531976&&_0x5c9b04['remove'](_0x531976),this['_suggestionToController']['delete'](_0xe4ea82),this['_viewToController']['delete'](_0x501b02),_0x5de78b['destroy']();}['_updateController'](_0x206c19){if(!_0x206c19['isInContent']||!this['_suggestionToController']['has'](_0x206c19))return;const _0x4c6de3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x498adc=this['_suggestionToController']['get'](_0x206c19),_0x1d3436=_0x206c19['getAllAdjacentSuggestions']();_0x498adc['view']['descriptionParts']=_0x4c6de3['descriptionFactory']['getDescriptions'](_0x1d3436);}['destroy'](){for(const _0xa1a440 of this['_suggestionToController']['keys']())this['_destroyController'](_0xa1a440);for(const _0x548bf8 of this['_annotationViews']['values']())_0x548bf8['mainView']['destroy']();super['destroy']();}}function me(_0xe550de){return'model'in _0xe550de;}class k extends _0xd0fe4f{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x211ca3){this['editor']['plugins']['get'](p)['adapter']=_0x211ca3;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x34947f){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x34947f);}['getSuggestions']({skipNotAttached:_0x278348=!0x1,toJSON:_0x381876=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x278348,'toJSON':_0x381876});}['getSuggestion'](_0x489e7c){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x489e7c);}}const T=['Pagination'];class P extends _0xd0fe4f{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x11eb86=this['editor'];if(_0x11eb86['config']['define']('trackChangesData.editorCreator',_0x500f61=>{const _0x1ea2ab=_0x11eb86['model']['document']['getRootNames']()['reduce']((_0x1841c2,_0x1ab0c2)=>(_0x1841c2[_0x1ab0c2]='',_0x1841c2),{});return _0x11eb86['constructor']['create'](_0x1ea2ab,_0x500f61);}),'function'!=typeof _0x11eb86['config']['get']('trackChangesData')['editorCreator'])throw new _0x10890c('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x53603d){return N(this['editor'],!0x0,_0x53603d);}['getDataWithDiscardedSuggestions'](_0x217fa3){return N(this['editor'],!0x1,_0x217fa3);}}class D extends _0xd0fe4f{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x3e05ce){super(_0x3e05ce),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(_0x23f4de){return void 0x0!==_0x23f4de['getRootsAttributes'];}async function N(_0x4dd035,_0x45e90a,_0x1ddcac){const _0xa5ac8f=_0x2e2961(_0x4dd035,T);_0xa5ac8f['plugins']['push'](p,D),_0xa5ac8f['rootsAttributes']=v(_0x4dd035)?_0x4dd035['getRootsAttributes']():void 0x0;const _0x2264fa=document['createDocumentFragment'](),_0x40cafb=_0x4dd035['config']['get']('trackChangesData')['editorCreator'],_0x48075f=await _0x40cafb(_0xa5ac8f,()=>function(_0x247ac1){const _0x3c3a0f=document['createElement']('div');return _0x247ac1['appendChild'](_0x3c3a0f),_0x3c3a0f;}(_0x2264fa));!function(_0x3e74d2,_0x39434b){const _0x1953dd=_0x3e74d2['model']['document']['getRootNames']()['reduce']((_0x5afdb1,_0x357b7b)=>(_0x5afdb1[_0x357b7b]=_0x3e74d2['data']['get']({'rootName':_0x357b7b}),_0x5afdb1),{}),_0x3dae93=_0x3e74d2['plugins']['get']('Users')['users']['map'](_0xc2ee36=>({'id':_0xc2ee36['id'],'name':_0xc2ee36['name']})),_0x54febd=_0x3e74d2['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3e2e7d=_0x3e74d2['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4ffeea=_0x39434b['plugins']['get']('Users'),_0x2fb432=_0x39434b['plugins']['get']('TrackChangesEditing'),_0x58e0d8=_0x39434b['plugins']['get']('CommentsRepository');for(const _0x57b045 of _0x58e0d8['getCommentThreads']())_0x57b045['remove']();for(const _0x332046 of _0x3dae93)_0x4ffeea['getUser'](_0x332046['id'])||_0x4ffeea['addUser'](_0x332046);_0x4ffeea['me']||_0x4ffeea['useAnonymousUser']();for(const _0x8e4984 of _0x3e2e7d)_0x58e0d8['addCommentThread'](_0x8e4984);for(const _0x122828 of _0x54febd)_0x2fb432['addSuggestionData'](_0x122828);_0x39434b['data']['set'](_0x1953dd);}(_0x4dd035,_0x48075f),_0x48075f['execute'](_0x45e90a?'acceptAllSuggestions':'discardAllSuggestions');const _0x14ef33=v(_0x48075f)?_0x48075f['getFullData'](_0x1ddcac):_0x48075f['data']['get'](_0x1ddcac);return await _0x48075f['destroy'](),_0x14ef33;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as ts,Plugin as _0x48c5b5,PendingActions as _0x37f635,icons as _0x5a67df}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x4f63a0,ObservableMixin as _0x59481e,uid as _0x5790ee,insertToPriorityArray as _0x4cd18a,priorities as _0x3ff64e,logWarning as _0xc584fe,getEnvKeystrokeText as _0x31f961,FocusTracker as _0x4d488c,KeystrokeHandler as _0x452cad,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x5ee7db,View as _0x45a339,ViewCollection as _0x269b0e,FocusCycler as _0x5a7f21,ViewModel as _0x3fd37c,createDropdown as Qt,SplitButtonView as _0x3cc44d,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x2c5493}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x47d1f4,hashObject as _0x59a68d,surroundingMarkersDetector as _0x44dd52,FOCUS_ANNOTATION_KEYSTROKE as _0x20d347,AriaDescriptionView as _0x1249b0,setupThreadKeyboardNavigation as _0x1ed323,trimHtml as _0x2a1180,UserView as _0x1d85c2,LateFocusButtonView as _0x4ca81e,getDateTimeFormatter as _0x5412e2,getAllMarkersDomElementsSorted as _0x5b0cdd,sanitizeEditorConfig as _0x38a4f7}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x3a3755,LiveRange as _0x3bc28a,LivePosition as _0x46360e}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x4ed66a,toWidget as _0xb539ea}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x8033cf,set as _0x120868,isEqual as _0x47c0f7,unset as _0x38c83a,omit as Tt}from'lodash-es';import{Delete as _0x2067fa,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x435002,ShiftEnter as _0x7d8e06}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x4ffecc,_0x202e8e){super(_0x4ffecc),this['_enabledCommands']=_0x202e8e,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 _0x38afb5 of this['editor']['commands']['commands']())_0x38afb5['affectsData']&&!this['_enabledCommands']['has'](_0x38afb5)&&_0x38afb5['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x3d8471 of this['editor']['commands']['commands']())_0x3d8471['affectsData']&&!this['_enabledCommands']['has'](_0x3d8471)&&_0x3d8471['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x504fce,_0xe1dfdc){super(_0x504fce),this['_suggestions']=_0xe1dfdc,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x508227){const _0x77e843=this['_suggestions']['get'](_0x508227);if(!_0x77e843)throw new _0x4f63a0('track-changes-accept-suggestion-not-found',this);const _0x53f300=_0x77e843['getRanges']();this['editor']['model']['canEditAt'](_0x53f300)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x77e843);}}class R extends ts{['_suggestions'];constructor(_0x3f993c,_0x2671aa){super(_0x3f993c),this['_suggestions']=_0x2671aa,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x14baca){const _0x2293b9=this['_suggestions']['get'](_0x14baca);if(!_0x2293b9)throw new _0x4f63a0('track-changes-discard-suggestion-not-found',this);const _0x5b995b=_0x2293b9['getRanges']();this['editor']['model']['canEditAt'](_0x5b995b)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x2293b9);}}function ls(_0x28c654,_0x20b59d){let _0x399a1b='';return _0x399a1b+=_0x28c654['split']('*')['map']((_0x1e32ad,_0x39ebfd)=>_0x39ebfd%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x1e32ad)+'</span>':nn(_0x1e32ad))['join'](''),_0x20b59d&&(_0x399a1b+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x20b59d['value']+'\x22\x20title=\x22'+_0x20b59d['title']+'\x22></span>'),_0x399a1b;}function nn(_0x5b8c56){const _0x5dd698=document['createElement']('span');return _0x5dd698['innerText']=_0x5b8c56,_0x5dd698['innerHTML'];}function ss(_0x4fb943){return _0x4fb943['sort']((_0x2f9d5c,_0x3dc882)=>'deletion'==_0x2f9d5c['type']&&'deletion'!=_0x3dc882['type']?-0x1:'deletion'!=_0x2f9d5c['type']&&'deletion'==_0x3dc882['type']?0x1:0x0);}function to(_0x5986fe,_0x18e0c9){let _0x46b21c,_0x2f8c0b=0x0;const _0x4edd52=[],_0x31fc59=_0x18e0c9['schema'];for(;_0x2f8c0b<_0x5986fe['length'];){const _0x108066=_0x5986fe[_0x2f8c0b],_0x3083d1=_0x5986fe[_0x2f8c0b+0x1];_0x46b21c||(_0x46b21c=_0x18e0c9['createPositionBefore'](_0x108066)),on(_0x18e0c9,_0x108066,_0x3083d1)||(_0x4edd52['push'](_0x18e0c9['createRange'](_0x46b21c,_0x31fc59['isObject'](_0x108066)?_0x18e0c9['createPositionAfter'](_0x108066):_0x18e0c9['createPositionAt'](_0x108066,'end'))),_0x46b21c=null),_0x2f8c0b++;}return _0x4edd52;}function on(_0x4889c4,_0x1790a7,_0x18b95c){if(!_0x18b95c)return!0x1;const _0x5f1bf3=_0x4889c4['createPositionAfter'](_0x1790a7),_0x3b9002=_0x4889c4['createPositionBefore'](_0x18b95c);return _0x5f1bf3['isTouching'](_0x3b9002);}function rs(_0x142f39,_0x23e2fa,_0x54c51b){for(;_0x54c51b['length'];){const _0x2bc487=_0x54c51b['splice'](0x0,0x64);_0x142f39['change'](()=>{for(const _0x39dfb2 of _0x2bc487)_0x39dfb2['isInContent']&&_0x23e2fa['execute'](_0x39dfb2['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0x1273c3,_0x15b1c4,_0x37e0a0){super(_0x1273c3),this['_command']=_0x15b1c4,this['_suggestions']=_0x37e0a0,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x11bef9=Array['from'](this['_suggestions']['values']())['some'](_0x5c1a2c=>_0x5c1a2c['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x11bef9;}['execute'](){const _0x1d0932=ss(Array['from'](this['_suggestions']['values']()));for(const _0x427e36 of _0x1d0932){const _0x152bfa=_0x427e36['getRanges']();if(!this['editor']['model']['canEditAt'](_0x152bfa))return;}rs(this['editor']['model'],this['_command'],_0x1d0932);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x32d167,_0x57b275,_0x46c972){super(_0x32d167),this['_command']=_0x57b275,this['_suggestions']=_0x46c972,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4479e2=this['editor']['model']['document']['selection'],_0x427215=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x49c2ae,_0x1a0e24){const _0x1cffa0=Array['from'](_0x49c2ae['getRanges']()),_0x51c1cb=new Set();for(const _0x158df4 of _0x1a0e24)if(_0x158df4['isInContent']){for(const _0x514804 of _0x1cffa0)for(const _0x1d30a3 of _0x158df4['getRanges']())(_0x514804['isIntersecting'](_0x1d30a3)||_0x49c2ae['isCollapsed']&&!_0x158df4['isMultiRange']&&_0x158df4['next']&&_0x1d30a3['end']['isTouching'](_0x514804['start']))&&_0x51c1cb['add'](_0x158df4);}return _0x51c1cb;}(_0x4479e2,_0x427215),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x368d55=ss(Array['from'](this['_selectedSuggestions']));for(const _0x5f4f15 of _0x368d55){const _0x1cc6d0=_0x5f4f15['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1cc6d0))return;}rs(this['editor']['model'],this['_command'],_0x368d55);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x59481e(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x58356d,_0x17e61c){super(),this['id']=_0x17e61c['id'],this['type']=_0x17e61c['type'],this['subType']=_0x17e61c['subType']||null,this['author']=_0x17e61c['author'],this['creator']=_0x17e61c['creator']||_0x17e61c['author'],this['isExternal']=Boolean(_0x17e61c['attributes']&&_0x17e61c['attributes']['@external']),this['data']=null,this['_model']=_0x58356d,this['_onAccept']=_0x17e61c['onAccept'],this['_onDiscard']=_0x17e61c['onDiscard'],this['_onAttributesChange']=_0x17e61c['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x17e61c['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 _0x35bac3=this;for(;_0x35bac3['previous'];)_0x35bac3=_0x35bac3['previous'];return _0x35bac3;}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'](_0x3031e0){this['_markerNames']['add'](_0x3031e0);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x26b091=>this['_model']['markers']['get'](_0x26b091))['filter'](_0x153304=>_0x153304);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2e1e2d=>{for(const _0x2618ec of this['getMarkers']())_0x2e1e2d['removeMarker'](_0x2618ec);}),this['_markerNames']['clear']();}['removeMarker'](_0x4d93df){this['_model']['change'](_0x1d620d=>{_0x1d620d['removeMarker'](_0x4d93df);}),this['_markerNames']['delete'](_0x4d93df);}['addRange'](_0x493a1f){const _0x58a412='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x58a412),this['_model']['change'](_0xa9993c=>{_0xa9993c['addMarker'](_0x58a412,{'range':_0x493a1f,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x20f763){for(const _0xcd5289 of this['getRanges']())if(_0xcd5289['isIntersecting'](_0x20f763))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x3bb91b=>_0x3bb91b['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x7c5a86,_0xbf036c)=>[..._0x7c5a86,..._0xbf036c['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x6a3973=this['getRanges']();if(0x1!=_0x6a3973['length'])return null;const _0x184b10=_0x6a3973[0x0],_0x1e565a=_0x184b10['start']['nodeAfter'],_0x4883e9=_0x184b10['end']['nodeBefore'];return _0x1e565a instanceof _0x3a3755?_0x1e565a!=_0x4883e9?null:_0x1e565a: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 _0x33bdee=[];let _0x23ccad=this['head'];for(;_0x23ccad;)_0x33bdee['push'](_0x23ccad),_0x23ccad=_0x23ccad['next'];return _0x33bdee;}['setAttribute'](_0x55623a,_0x4caa63){const _0x30ced6=_0x8033cf(this['attributes']);_0x120868(_0x30ced6,_0x55623a,_0x4caa63),_0x47c0f7(_0x30ced6,this['attributes'])||(this['attributes']=_0x30ced6,this['_onAttributesChange'](_0x30ced6));}['removeAttribute'](_0xc4a300){const _0x58369d=_0x8033cf(this['attributes']);_0x38c83a(_0x58369d,_0xc4a300),_0x47c0f7(_0x58369d,this['attributes'])||(this['attributes']=_0x58369d,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 _0x5790ee()['substr'](0x1,0x5);}}function o(_0x57a8be,_0x368923,_0x584658){const t=_0x57a8be['t'];switch(_0x368923){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',_0x584658);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x584658);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x584658);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x584658);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x584658);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',_0x584658);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x584658);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',_0x584658);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x584658);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x584658);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x584658);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x584658);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x584658);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x584658);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x584658);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x584658);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x584658);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x584658);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x584658);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x584658);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x584658);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x584658);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x584658);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'},_0x584658);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x584658);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x584658);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x584658);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x584658);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x584658);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'},_0x584658);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x584658);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x584658);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x584658);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x584658);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'},_0x584658);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x584658);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'},_0x584658);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'},_0x584658);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x584658);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'},_0x584658);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x584658);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'},_0x584658);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x584658);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x584658);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x584658);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'},_0x584658);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'},_0x584658);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x584658);case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x584658);case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x584658);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x584658);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x368923;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x2fbbfa,_0x5b3541){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2fbbfa,this['_locale']=_0x5b3541;}['getDescriptions'](_0x131e10){const _0x2c4afc=[],_0x39c4e6=new Set(),_0x485276=new Set();for(let _0x2d9853=0x0;_0x2d9853<_0x131e10['length'];_0x2d9853++){const _0x1722ea=_0x131e10[_0x2d9853];if(!_0x1722ea['isInContent'])continue;const _0x2b4da7=this['_handleCustomCallbackDescription'](_0x1722ea);if(_0x2b4da7){if(null!=_0x1722ea['subType']){if(_0x39c4e6['has'](_0x1722ea['subType']))continue;_0x39c4e6['add'](_0x1722ea['subType']);}_0x2c4afc['push'](_0x2b4da7);}else{if('attribute'!=_0x1722ea['type'])'insertion'!=_0x1722ea['type']&&'deletion'!=_0x1722ea['type']||this['_handleInsertRemoveSuggestionDescription'](_0x2c4afc,_0x1722ea,_0x131e10[_0x2d9853+0x1]);else{const _0x4510aa=_0x1722ea['data']['key'];if(_0x485276['has'](_0x4510aa))continue;_0x485276['add'](_0x1722ea['data']['key']),_0x4510aa==m?this['_handleRenameSuggestionDescription'](_0x2c4afc,_0x1722ea):this['_handleAttributeSuggestionDescription'](_0x2c4afc,_0x1722ea);}}}return this['_resolveDescriptionItems'](_0x2c4afc);}['registerDescriptionCallback'](_0x8d1781){this['_customCallbacks']['push'](_0x8d1781);}['registerElementLabel'](_0x3e970b,_0x31e1ea,_0x1c1ff8=_0x3ff64e['normal']){'function'==typeof _0x3e970b?_0x4cd18a(this['_itemLabelsCallbacks'],{'matchingCallback':_0x3e970b,'label':_0x31e1ea,'priority':_0x1c1ff8}):this['_itemLabels']['set'](_0x3e970b,_0x31e1ea);}['registerAttributeLabel'](_0x4ceac4,_0x3ae31e){this['_attributeLabels']['set'](_0x4ceac4,_0x3ae31e);}['getItemLabel'](_0x375b25,_0x8d87be=0x1){let _0x436e30;for(const _0x466d47 of this['_itemLabelsCallbacks'])if(_0x466d47['matchingCallback'](_0x375b25)){_0x436e30=_0x466d47['label'];break;}return _0x436e30||(_0x436e30=this['_itemLabels']['get'](_0x375b25['name'])),_0x436e30?_0x436e30(_0x8d87be):0x1!==_0x8d87be?_0x8d87be+'\x20'+_0x375b25['name']+'s':''+_0x375b25['name'];}['_addDescriptionItems'](_0x319983,_0x55dffb){const _0x35b3e7=_0x55dffb['getFirstRange']()['getWalker'](),_0x28c2fd='insertion'==_0x55dffb['type']?'add':'remove';for(const _0x29ea62 of _0x35b3e7){const _0x1a8f5f=_0x29ea62['item'],_0x2472ec=_0x319983[_0x319983['length']-0x1];if(_0x1a8f5f['is']('$textProxy'))_0x2472ec&&_0x2472ec['type']['indexOf']('Container')>-0x1&&_0x319983['pop'](),_0x2472ec&&'text'==_0x2472ec['type']?_0x2472ec[_0x28c2fd]+=_0x1a8f5f['data']:_0x319983['push']({'type':'text','add':'add'==_0x28c2fd?_0x1a8f5f['data']:'','remove':'remove'==_0x28c2fd?_0x1a8f5f['data']:''});else{if(this['_schema']['isObject'](_0x1a8f5f)){const _0x28639f=_0x1a8f5f;if(_0x2472ec&&_0x2472ec['type']['indexOf']('Container')>-0x1&&_0x319983['pop'](),'elementEnd'==_0x29ea62['type'])continue;_0x2472ec&&_0x2472ec['type']==_0x28c2fd+'Object'&&_0x2472ec['element']['name']==_0x28639f['name']?_0x2472ec['quantity']++:_0x319983['push']({'type':_0x28c2fd+'Object','element':_0x28639f,'quantity':0x1}),_0x35b3e7['skip'](_0x46eb17=>!('elementEnd'==_0x46eb17['type']&&_0x46eb17['item']==_0x1a8f5f));}else{if(this['_schema']['checkChild'](_0x1a8f5f,'$text')||_0x1a8f5f['is']('element','softBreak')){const _0x3fa371=_0x1a8f5f;if('add'==_0x28c2fd&&'elementStart'==_0x29ea62['type']||'remove'==_0x28c2fd&&'elementEnd'==_0x29ea62['type'])continue;if(_0x2472ec&&-0x1==_0x2472ec['type']['indexOf']('Container')){'text'==_0x2472ec['type']&&(_0x2472ec[_0x28c2fd]+='\x0a');continue;}let _0x59bf94;if(_0x59bf94='add'==_0x28c2fd?_0x3fa371['nextSibling']&&!this['_schema']['isObject'](_0x3fa371['nextSibling'])?_0x3fa371['nextSibling']:null:_0x3fa371['previousSibling']&&!this['_schema']['isObject'](_0x3fa371['previousSibling'])?_0x3fa371['previousSibling']:null,_0x3fa371['isEmpty']||_0x59bf94&&_0x59bf94['isEmpty']){const _0x3fee98=_0x59bf94&&_0x59bf94['isEmpty']?_0x59bf94:_0x3fa371;_0x2472ec&&_0x2472ec['type']==_0x28c2fd+'EmptyContainer'&&_0x2472ec['element']['name']==_0x3fee98['name']?_0x2472ec['quantity']++:_0x319983['push']({'type':_0x28c2fd+'EmptyContainer','element':_0x3fee98,'quantity':0x1});}else _0x319983['push']({'type':_0x28c2fd+'Container','element':_0x3fa371});}}}}}['_resolveDescriptionItems'](_0x1743f6){const _0x417e2a=this['_locale'],_0x50e68d=[],_0xcc067e=[],_0x16d380=[];for(const _0x4701ff of _0x1743f6)switch(_0x4701ff['type']){case'text':if(_0x4701ff['add']=_0x4701ff['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4701ff['remove']=_0x4701ff['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4701ff['add']&&''!=_0x4701ff['remove']){_0x50e68d['push']({'type':'replace','content':o(_0x417e2a,'REPLACE_TEXT',['\x22'+_0x4701ff['remove']+'\x22','\x22'+_0x4701ff['add']+'\x22'])});continue;}if(null!=_0x4701ff['add']['match'](/^ +$/)){_0x50e68d['push']({'type':'insertion','content':o(_0x417e2a,'*Insert:*\x20%0',o(_0x417e2a,'ELEMENT_SPACE',_0x4701ff['add']['length']))});continue;}if(null!=_0x4701ff['remove']['match'](/^ +$/)){_0x50e68d['push']({'type':'deletion','content':o(_0x417e2a,'*Remove:*\x20%0',o(_0x417e2a,'ELEMENT_SPACE',_0x4701ff['remove']['length']))});continue;}if(''!=_0x4701ff['add']){_0x50e68d['push']({'type':'insertion','content':o(_0x417e2a,'*Insert:*\x20%0','\x22'+_0x4701ff['add']+'\x22')});continue;}_0x50e68d['push']({'type':'deletion','content':o(_0x417e2a,'*Remove:*\x20%0','\x22'+_0x4701ff['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x50e68d['push']({'type':'insertion','content':o(_0x417e2a,'*Insert:*\x20%0',this['getItemLabel'](_0x4701ff['element'],_0x4701ff['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x50e68d['push']({'type':'deletion','content':o(_0x417e2a,'*Remove:*\x20%0',this['getItemLabel'](_0x4701ff['element'],_0x4701ff['quantity']))});continue;case'addContainer':_0x50e68d['push']({'type':'insertion','content':o(_0x417e2a,'*Split:*\x20%0',this['getItemLabel'](_0x4701ff['element'],_0x4701ff['quantity']))});continue;case'removeContainer':_0x50e68d['push']({'type':'deletion','content':o(_0x417e2a,'*Merge:*\x20%0',this['getItemLabel'](_0x4701ff['element'],_0x4701ff['quantity']))});continue;case'addFormat':_0xcc067e['push'](_0x4701ff['key']);continue;case'removeFormat':_0x16d380['push'](_0x4701ff['key']);continue;default:_0x50e68d['push'](_0x4701ff);}if(_0xcc067e['length']){const _0x7d2998=_0xcc067e['map'](_0x1a4d5a=>this['_attributeLabels']['has'](_0x1a4d5a)?this['_attributeLabels']['get'](_0x1a4d5a):_0x1a4d5a)['join'](',\x20');_0x50e68d['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x7d2998)});}if(_0x16d380['length']){const _0x1c4521=_0x16d380['map'](_0x4cb7cf=>this['_attributeLabels']['has'](_0x4cb7cf)?this['_attributeLabels']['get'](_0x4cb7cf):_0x4cb7cf)['join'](',\x20');_0x50e68d['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x1c4521)});}return _0x50e68d;}['_handleCustomCallbackDescription'](_0x3811db){for(const _0x5057a3 of this['_customCallbacks']){const _0x219ac0=_0x5057a3(_0x3811db);if(_0x219ac0&&'type'in _0x219ac0)return _0x219ac0;}}['_handleAttributeSuggestionDescription'](_0x49cc32,_0x33aae5){const _0x4ea360=_0x33aae5['data'],_0xc7e884=void 0x0===_0x4ea360['newValue']?'removeFormat':'addFormat';_0x49cc32['push']({'type':_0xc7e884,'key':_0x4ea360['key']});}['_handleRenameSuggestionDescription'](_0x10d343,_0x3d2978){_0x10d343['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3d2978['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x4c6985,_0x56b025,_0x23105f){if(this['_addDescriptionItems'](_0x4c6985,_0x56b025),_0x23105f&&_0x23105f['getFirstRange']()&&!_0x56b025['getFirstRange']()['end']['isEqual'](_0x23105f['getFirstRange']()['start'])){const _0x4ea8e5=_0x4c6985[_0x4c6985['length']-0x1],_0x13b562='insertion'==_0x56b025['type']?'add':'remove';_0x4ea8e5&&'text'==_0x4ea8e5['type']&&(_0x4ea8e5[_0x13b562]+='\x0a');}}}class V extends _0x48c5b5{['afterInit'](){const _0xa84f0d=this['editor'],_0x40bbf0=_0xa84f0d['plugins']['get']('TrackChangesEditing');_0xa84f0d['commands']['get']('showAIAssistant')&&_0x40bbf0['enableCommand']('showAIAssistant');}}class U extends _0x48c5b5{['afterInit'](){const _0x114b16=this['editor'],_0x25a18b=_0x114b16['locale'];if(!_0x114b16['plugins']['has']('AlignmentEditing'))return;const _0x3cd9a7=_0x114b16['plugins']['get']('TrackChangesEditing');_0x3cd9a7['enableDefaultAttributesIntegration']('alignment'),_0x3cd9a7['registerBlockAttribute']('alignment'),_0x3cd9a7['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x25a18b,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c2495=this['editor'],_0x202d2f=_0x3c2495['locale'];_0x3c2495['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34f141=>{if('formatBlock'!=_0x34f141['type'])return;const {data:_0x5017cb}=_0x34f141;if(_0x5017cb&&'alignment'==_0x5017cb['commandName']){const _0x5c99bf=_0x5017cb['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x202d2f,'*Format:*\x20%0',function(_0x314b09){switch(_0x314b09){case'left':return o(_0x202d2f,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x202d2f,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x202d2f,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x202d2f,'FORMAT_JUSTIFY_TEXT');}}(_0x5c99bf))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x48c5b5{['afterInit'](){const _0x11ecf5=this['editor'],_0xb6ec9c=_0x11ecf5['plugins']['get']('TrackChangesEditing'),_0x22b761=_0x11ecf5['locale'];for(const _0x3c31d5 of ti){if(!_0x11ecf5['plugins']['has'](_0x3c31d5))continue;const _0x395c49=_0x3c31d5['slice'](0x0,-0x7)['toLowerCase'](),_0x193163='FORMAT_'+_0x395c49['toUpperCase']();_0xb6ec9c['enableDefaultAttributesIntegration'](_0x395c49),_0xb6ec9c['registerInlineAttribute'](_0x395c49),_0xb6ec9c['descriptionFactory']['registerAttributeLabel'](_0x395c49,o(_0x22b761,_0x193163));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x8ff1aa=this['editor'],_0x213e78=_0x8ff1aa['locale'],_0x6aa84=_0x8ff1aa['plugins']['get']('TrackChangesEditing');function _0x315c68(_0x396c8f,_0x1d83c5){_0x6aa84['descriptionFactory']['registerDescriptionCallback'](_0xdfbedb=>{if('formatInline'!=_0xdfbedb['type'])return;const {data:_0x27562b}=_0xdfbedb;return _0x27562b&&_0x27562b['commandName']===_0x396c8f?_0x27562b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x213e78,'*Format:*\x20%0',_0x1d83c5)}:{'type':'format','content':o(_0x213e78,'*Remove\x20format:*\x20%0',_0x1d83c5)}:void 0x0;});}_0x315c68('bold',o(_0x213e78,'FORMAT_BOLD')),_0x315c68('italic',o(_0x213e78,'FORMAT_ITALIC')),_0x315c68('underline',o(_0x213e78,'FORMAT_UNDERLINE')),_0x315c68('code',o(_0x213e78,'FORMAT_CODE')),_0x315c68('strikethrough',o(_0x213e78,'FORMAT_STRIKETHROUGH')),_0x315c68('subscript',o(_0x213e78,'FORMAT_SUBSCRIPT')),_0x315c68('superscript',o(_0x213e78,'FORMAT_SUPERSCRIPT'));}}class F extends _0x48c5b5{['afterInit'](){const _0x38cb4e=this['editor'],_0x4f61e4=_0x38cb4e['locale'];if(!_0x38cb4e['plugins']['has']('BlockQuoteEditing'))return;const _0x3d4df8=_0x38cb4e['plugins']['get']('TrackChangesEditing'),_0x5de0f8=this['editor']['commands']['get']('blockQuote');_0x3d4df8['enableCommand']('blockQuote',(_0x3534ad,_0x2e1c21={})=>{const _0x2d19f7=this['editor']['model']['document']['selection'],_0x2d9481=_0x2e1c21&&void 0x0!==_0x2e1c21['forceValue']?_0x2e1c21['forceValue']:!_0x5de0f8['value'];let _0x26cd71=[];if(_0x2d9481){const _0x1e2637=Array['from'](_0x2d19f7['getSelectedBlocks']())['filter'](_0x1d0d8b=>oo(_0x1d0d8b)||function(_0x46ec0b,_0x19cf79){const _0x48ff70=_0x19cf79['checkChild'](_0x46ec0b['parent'],'blockQuote'),_0x18579e=_0x19cf79['checkChild'](['$root','blockQuote'],_0x46ec0b);return _0x48ff70&&_0x18579e;}(_0x1d0d8b,this['editor']['model']['schema']));_0x26cd71=to(_0x1e2637,_0x38cb4e['model']);}else{const _0x293300=Array['from'](_0x2d19f7['getSelectedBlocks']())['filter'](_0x7075ee=>oo(_0x7075ee));_0x26cd71=to(_0x293300,_0x38cb4e['model']);}_0x38cb4e['model']['change'](()=>{for(const _0x466066 of _0x26cd71)_0x3d4df8['markBlockFormat'](_0x466066,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2d9481}]});});}),_0x3d4df8['descriptionFactory']['registerDescriptionCallback'](_0x1205d2=>{const {data:_0x57daa9}=_0x1205d2;if(_0x57daa9&&'blockQuote'==_0x57daa9['commandName']){const _0x526489=o(_0x4f61e4,'ELEMENT_BLOCK_QUOTE');return _0x57daa9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4f61e4,'*Set\x20format:*\x20%0',_0x526489)}:{'type':'format','content':o(_0x4f61e4,'*Remove\x20format:*\x20%0',_0x526489)};}});}}function oo(_0x127d14){return'blockQuote'==_0x127d14['parent']['name'];}class L extends _0x48c5b5{['afterInit'](){const _0x5c8a50=this['editor'];_0x5c8a50['plugins']['has']('CaseChange')&&(_0x5c8a50['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x5c8a50['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x5c8a50['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x48c5b5{['afterInit'](){const _0x2d3911=this['editor'];_0x2d3911['commands']['get']('ckbox')&&_0x2d3911['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x48c5b5{['afterInit'](){const _0x2e8489=this['editor'];if(!_0x2e8489['plugins']['has']('CodeBlock'))return;const _0x56b41b=_0x2e8489['plugins']['get']('TrackChangesEditing'),_0x394885=_0x2e8489['locale'],_0x50ec9e=_0x2e8489['config']['get']('codeBlock')['languages'],_0x2e0f53=_0x2e8489['commands']['get']('codeBlock');_0x56b41b['enableCommand']('indentCodeBlock'),_0x56b41b['enableCommand']('outdentCodeBlock'),_0x56b41b['enableCommand']('codeBlock',(_0x2d60f8,_0x525a8c={})=>{const _0x36367a=_0x2e8489['model'],_0x2315e6=_0x2e8489['model']['document']['selection'],_0x2076d6=_0x525a8c&&void 0x0!==_0x525a8c['forceValue']?_0x525a8c['forceValue']:!_0x2e0f53['value'];let _0x241ba9;_0x525a8c['language']||(_0x525a8c['language']=_0x50ec9e[0x0]['language']),_0x241ba9=_0x2076d6?Array['from'](_0x2315e6['getSelectedBlocks']())['filter'](_0x281357=>eo(_0x281357)||function(_0x204867,_0x577963){if(_0x204867['is']('rootElement')||_0x577963['isLimit'](_0x204867))return!0x1;return _0x577963['checkChild'](_0x204867['parent'],'codeBlock');}(_0x281357,_0x36367a['schema'])):Array['from'](_0x2315e6['getSelectedBlocks']())['filter'](_0x2dfe73=>eo(_0x2dfe73));const _0x18531b=to(_0x241ba9,_0x36367a);_0x36367a['change'](()=>{for(const _0x37479b of _0x18531b)_0x56b41b['markBlockFormat'](_0x37479b,{'commandName':'codeBlock','commandParams':[{..._0x525a8c,'forceValue':_0x2076d6}],'formatGroupId':'blockName'});});}),(_0x56b41b['descriptionFactory']['registerElementLabel']('codeBlock',_0x240dc4=>o(_0x394885,'ELEMENT_CODE_BLOCK',_0x240dc4)),_0x56b41b['descriptionFactory']['registerDescriptionCallback'](_0x84f2d7=>{if('formatBlock'!=_0x84f2d7['type'])return;const _0x4ef27b=_0x394885['t'],{data:_0x38d8a7}=_0x84f2d7;if(!_0x38d8a7||'codeBlock'!=_0x38d8a7['commandName'])return;const _0x2642e9=_0x38d8a7['commandParams'][0x0]['language'],_0x5a2c0e=_0x4ef27b(_0x50ec9e['find'](_0x35d122=>_0x35d122['language']===_0x2642e9)['label'])['toLowerCase']();return _0x38d8a7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x394885,'*Set\x20format:*\x20%0',o(_0x394885,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5a2c0e+')')}:{'type':'format','content':o(_0x394885,'*Remove\x20format:*\x20%0',o(_0x394885,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x2b1db1){return'codeBlock'==_0x2b1db1['name'];}class q extends _0x48c5b5{['afterInit'](){const _0x55eb67=this['editor'];if(!_0x55eb67['plugins']['has']('CommentsEditing'))return;_0x55eb67['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x9666aa,_0x43c7cb,_0x530631){const _0x9007cd=[];for(const _0x30f8f0 of _0x43c7cb['getItems']())_0x30f8f0['hasAttribute'](_0x9666aa)&&_0x9007cd['push'](_0x530631['createRangeOn'](_0x30f8f0));return _0x9007cd;}function _e(_0x40de8f,_0x329018,{showActiveMarker:_0x32ee0a=!0x0}={}){const _0xf95286=_0x40de8f['plugins']['get']('TrackChangesEditing');return(_0x5f4c69,_0x32b0e9,_0x1e363e)=>{if(!_0x1e363e['consumable']['test'](_0x32b0e9['markerRange'],_0x5f4c69['name']))return;const _0x15c9f5=_0x32b0e9['markerRange']['getWalker'](),_0x2cf8ab=_0x32b0e9['markerRange']['start'],_0x243478=_0x40de8f['model']['schema'];let _0xdb62e3=null,_0x515103=null,_0x374450=!0x1,_0x18aaac=!0x1;for(const _0x7c2b29 of _0x15c9f5){const _0x1c8443=_0x7c2b29['item'];_0x374450=_0x374450||_0x243478['isContent'](_0x1c8443);const _0x4948c7=_0x1e363e['mapper']['toViewElement'](_0x1c8443);if(_0x4948c7&&_0x4948c7['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x7c2b29['type']&&(_0x243478['isBlock'](_0x1c8443)&&!_0x243478['isLimit'](_0x1c8443)&&(_0x1c8443['nextSibling']||_0x2cf8ab['isAtEnd']?_0xdb62e3&&_0xdb62e3['parent']==_0x1c8443||(_0xdb62e3=_0x1c8443,_0x589e4d(_0x7c2b29['previousPosition']),_0x18aaac=!0x0):_0x515103=_0x515103||_0x7c2b29['previousPosition']));}function _0x589e4d(_0x14e78a){const {authorId:_0xad21d3}=_0xf95286['_splitMarkerName'](_0x32b0e9['markerName']),_0x3ccad2=_0x1e363e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x329018,'data-author-id':_0xad21d3}),_0x52110b=_0x1e363e['mapper']['toViewPosition'](_0x14e78a);_0x32ee0a&&_0xf95286['activeMarkers']['includes'](_0x32b0e9['markerName'])&&_0x1e363e['writer']['addClass']('ck-suggestion-marker--active',_0x3ccad2),_0x1e363e['writer']['insert'](_0x52110b,_0x3ccad2),_0x1e363e['mapper']['bindElementToMarker'](_0x3ccad2,_0x32b0e9['markerName']);}_0x374450||_0x18aaac||!_0x515103||_0x589e4d(_0x515103);};}class z extends _0x48c5b5{static get['requires'](){return[_0x2067fa];}['init'](){const _0x3b4552=this['editor'],_0x2084ae=_0x3b4552['plugins']['get']('TrackChangesEditing');_0x2084ae['enableCommand']('delete');const _0x7f5cb6=_0x3b4552['commands']['get']('deleteForward');_0x2084ae['enableCommand']('deleteForward',(_0x26f448,_0x4fb2ee={})=>{const _0x4ace1c=_0x3b4552['model']['createSelection'](_0x3b4552['model']['document']['selection']);_0x4ace1c['isCollapsed']&&_0x3b4552['model']['modifySelection'](_0x4ace1c,{'direction':'forward','unit':_0x4fb2ee['unit']});const _0x2bf077=_0x4ace1c['getFirstRange'](),_0x3b1304=_0x3bc28a['fromRange'](_0x2bf077);let _0x2761ab;_0x26f448(_0x4fb2ee),_0x2761ab='$graveyard'==_0x3b1304['root']['rootName']?_0x3b4552['model']['createRange'](_0x2bf077['start']):_0x3b4552['model']['createRange'](_0x3b1304['start'],_0x3b1304['end']),_0x3b1304['detach'](),_0x3b4552['model']['enqueueChange'](_0x7f5cb6['buffer']['batch'],_0x5dc039=>{_0x7f5cb6['buffer']['lock'](),_0x5dc039['setSelection'](_0x5dc039['createRange'](_0x2761ab['end'])),_0x7f5cb6['buffer']['unlock']();});}),_0x3b4552['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x3b4552,'merge'),{'priority':'high'}),_0x3b4552['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x339f67,_0x458810,_0x39462d)=>{_0x39462d['options']['showSuggestionHighlights']&&_e(_0x3b4552,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x339f67,_0x458810,_0x39462d);},{'priority':'high'}),_0x3b4552['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x2f6a4b,_0x2d9722,_0x5691f7)=>{const _0xfce261=_0x5691f7['mapper']['markerNameToElements'](_0x2d9722['markerName']);if(_0xfce261){for(const _0x2fd20d of _0xfce261)_0x2fd20d['is']('uiElement')&&(_0x5691f7['mapper']['unbindElementFromMarkerName'](_0x2fd20d,_0x2d9722['markerName']),_0x5691f7['writer']['remove'](_0x2fd20d));}},{'priority':'high'});}}class K extends _0x48c5b5{['afterInit'](){const _0xce02a0=this['editor'];if(!_0xce02a0['plugins']['has']('ListEditing'))return;const _0x57291d=_0xce02a0['locale'],_0xf79c55=_0xce02a0['plugins']['get']('TrackChangesEditing'),_0x298e60=_0xce02a0['plugins']['has']('TodoListEditing'),_0x18847f=!!_0xce02a0['config']['get']('list.multiBlock');function _0x311f37(_0xfe92e5){return{'type':'format','content':''+o(_0x57291d,'*Set\x20format:*\x20%0',_0xfe92e5)};}function _0x2f8fb7(_0x3efc4a){return{'type':'format','content':''+o(_0x57291d,'*Remove\x20format:*\x20%0',_0x3efc4a)};}_0xf79c55['enableDefaultAttributesIntegration']('numberedList'),_0xf79c55['enableDefaultAttributesIntegration']('bulletedList'),_0xf79c55['enableDefaultAttributesIntegration']('customNumberedList'),_0xf79c55['enableDefaultAttributesIntegration']('customBulletedList'),_0xf79c55['enableDefaultAttributesIntegration']('indentList'),_0xf79c55['enableDefaultAttributesIntegration']('outdentList'),_0xf79c55['enableDefaultAttributesIntegration']('splitListItemAfter'),_0xf79c55['enableDefaultAttributesIntegration']('splitListItemBefore'),_0xf79c55['registerBlockAttribute']('listItemId'),_0xf79c55['registerBlockAttribute']('listType'),_0xf79c55['registerBlockAttribute']('listIndent'),_0x18847f&&(_0xf79c55['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0xf79c55['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x298e60&&(_0xf79c55['enableDefaultAttributesIntegration']('todoList'),_0xf79c55['enableDefaultAttributesIntegration']('checkTodoList'),_0xf79c55['registerBlockAttribute']('todoListChecked'),_0xf79c55['descriptionFactory']['registerDescriptionCallback'](_0x4f35e5=>{const {data:_0x3e95d2}=_0x4f35e5;if(_0x3e95d2&&'todoListChecked'==_0x3e95d2['key'])return{'type':'format','content':_0x3e95d2['newValue']?o(_0x57291d,'*Check\x20item*'):o(_0x57291d,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0xe4b434=>{if(_0xe4b434['batch']['isUndo'])return!0x1;let _0x1f16b9=!0x1;const _0x14c01c=_0xf79c55['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x264d34=>'todoListChecked'===_0xf79c55['_getAttributeKey'](_0x264d34));for(const _0x5255ba of _0x14c01c){'todo'!=_0x5255ba['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0xf79c55['_findSuggestions'](_0x5255ba['getFirstRange'](),'attribute')['find'](_0xcd9514=>'listType'===_0xf79c55['_getAttributeKey'](_0xcd9514['suggestion']))||(_0xe4b434['removeMarker'](_0x5255ba['getFirstMarker']()),_0x1f16b9=!0x0));}return _0x1f16b9;})),_0xf79c55['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x57291d,'FORMAT_INDENT'));const _0x30e9bb={'type':'format','content':''};_0xf79c55['descriptionFactory']['registerDescriptionCallback'](_0x3cd9d5=>{const {data:_0x4451c0}=_0x3cd9d5;if(!_0x4451c0||'listType'!=_0x4451c0['key'])return;let _0x145da6=_0x3cd9d5['head'];for(;_0x145da6;){if(_0x145da6['data']&&(('listStyle'==_0x145da6['data']['key']||'listMarkerStyle'==_0x145da6['data']['key'])&&(_0x145da6['data']['newValue']&&'default'!=_0x145da6['data']['newValue']||'default'!=_0x145da6['data']['oldValue']&&!_0x4451c0['newValue'])||!_0x18847f&&_0x145da6['data']['key']==m))return _0x30e9bb;_0x145da6=_0x145da6['next'];}if(null==_0x4451c0['newValue'])switch(_0x4451c0['oldValue']){case'bulleted':return _0x2f8fb7(o(_0x57291d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2f8fb7(o(_0x57291d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2f8fb7(o(_0x57291d,'ELEMENT_TODO_LIST'));}switch(_0x4451c0['newValue']){case'bulleted':return _0x311f37(o(_0x57291d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x311f37(o(_0x57291d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x311f37(o(_0x57291d,'ELEMENT_TODO_LIST'));}}),_0xf79c55['descriptionFactory']['registerDescriptionCallback'](_0x27e415=>{const {data:_0x21156b}=_0x27e415;if(_0x21156b&&'listIndent'==_0x21156b['key'])return null==_0x21156b['newValue']||null==_0x21156b['oldValue']&&0x0==_0x21156b['newValue']?_0x30e9bb:void 0x0;}),_0xf79c55['descriptionFactory']['registerDescriptionCallback'](_0x55f677=>{if('attribute'!=_0x55f677['type'])return;const {data:_0x3e80b5}=_0x55f677;if(!_0x3e80b5||'listItemId'!=_0x3e80b5['key'])return;const _0x547f76=Ee(_0x55f677);return'newValue'==_0x547f76?{'type':'format','content':o(_0x57291d,'*Merge:*\x20list\x20item')}:'oldValue'==_0x547f76?{'type':'format','content':o(_0x57291d,'*Split:*\x20list\x20item')}:_0x30e9bb;}),_0xce02a0['model']['document']['registerPostFixer'](_0x46a242=>this['listItemIdFixer'](_0x46a242)),_0xce02a0['model']['document']['registerPostFixer'](_0x2cd98b=>this['noTrackChangesFixer'](_0x2cd98b)),_0xce02a0['model']['document']['on']('change:data',(_0x5ca29c,_0x39b92c)=>{if(_0x39b92c['isUndo']||!_0x39b92c['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x6cb6ae){if(_0x6cb6ae['batch']['isUndo']||!_0x6cb6ae['batch']['isLocal'])return!0x1;let _0x1108ac=!0x1;const _0x399299=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x16236a=>_0x16236a['data']&&'listItemId'==_0x16236a['data']['key'])['filter'](_0x3d3304=>_0x3d3304['data']['newValue']&&_0x3d3304['data']['oldValue']);for(const _0x4637af of _0x399299)Ee(_0x4637af)||(_0x6cb6ae['removeMarker'](_0x4637af['getFirstMarker']()),_0x1108ac=!0x0);return _0x1108ac;}['noTrackChangesFixer'](_0x3fa832){if(_0x3fa832['batch']['isUndo']||!_0x3fa832['batch']['isLocal'])return!0x1;const _0x21f97c=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x21f97c['trackChangesCommand']['value'])return!0x1;let _0xd545f7=!0x1;const _0x120f65=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x165b72=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x21e5be=>'attribute'==_0x21e5be['type'])['filter'](_0x3b6d37=>_0x120f65['includes'](_0x3b6d37['attributeKey']));if(0x0==_0x165b72['length'])return _0xd545f7;for(const _0x337b54 of _0x165b72){const _0x1d0529=_0x21f97c['_findSuggestions'](_0x337b54['range'],'attribute')['filter'](_0xcdfcb9=>!_0xcdfcb9['meta']['isNextTo'])['map'](_0x1f3542=>_0x1f3542['suggestion'])['filter'](_0xea0569=>{const _0x171a7b=_0x21f97c['_getAttributeKey'](_0xea0569);return _0x120f65['includes'](_0x171a7b);});if(_0x1d0529['length']){for(const _0x3e60cc of _0x1d0529)_0x3fa832['removeMarker'](_0x3e60cc['getFirstMarker']());_0xd545f7=!0x0;}}return _0xd545f7;}['assureChains'](){const _0x5af9f4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x38d2dd=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x7296dd;const _0x36e858=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4bc351=>{if(_0x4bc351['data']['oldRange']||!_0x4bc351['data']['newRange'])return null;if(!_0x4bc351['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0xa1f184}=_0x5af9f4['_splitMarkerName'](_0x4bc351['name']);if(!_0x5af9f4['hasSuggestion'](_0xa1f184))return null;const _0x2e1658=_0x5af9f4['getSuggestion'](_0xa1f184);return _0x38d2dd['includes'](_0x2e1658['data']['key']);})['map'](_0x3efc48=>{const {id:_0x2043c6}=_0x5af9f4['_splitMarkerName'](_0x3efc48['name']),_0x16214e=_0x5af9f4['getSuggestion'](_0x2043c6);return _0x7296dd=_0x16214e['attributes']['groupId'],_0x16214e['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x36e858['size'])return;const _0x1c382d=_0x5af9f4['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2cb70d=>'attribute'==_0x2cb70d['type']&&_0x2cb70d['data']&&_0x38d2dd['includes'](_0x2cb70d['data']['key'])&&_0x2cb70d['attributes']['groupId']!=_0x7296dd)['map'](_0x25f1c7=>({'listItem':_0x25f1c7['getFirstRange']()['start']['nodeAfter'],'groupId':_0x25f1c7['attributes']['groupId']})),_0x4201ee=new Set();for(const {groupId:_0x87fc6c,listItem:_0x9f84de}of _0x1c382d)_0x36e858['has'](_0x9f84de)&&_0x4201ee['add'](_0x87fc6c);for(const _0x273b2c of _0x5af9f4['getSuggestions']())_0x4201ee['has'](_0x273b2c['attributes']['groupId'])&&_0x273b2c['setAttribute']('groupId',_0x7296dd);}['_supportLegacySuggestions'](){const _0x4e1886=this['editor'],_0x45639e=_0x4e1886['locale'],_0x169117=_0x4e1886['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x169117['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0xdf5006,_0x118121){const _0x40d54c=[];for(let _0x375039 of _0xdf5006)_0x375039['start']['nodeAfter']===_0x375039['end']['parent']&&(_0x375039=_0x4e1886['model']['createRange'](_0x4e1886['model']['createPositionAt'](_0x375039['start']['nodeAfter'],0x0))),_0x40d54c['push'](_0x375039);_0x4e1886['model']['change'](_0x3f45f1=>{const _0x207d3b=_0x4e1886['model']['document']['selection'],_0x6ff649=Array['from'](_0x207d3b['getRanges']())['map'](_0x56a330=>_0x3bc28a['fromRange'](_0x56a330));_0x3f45f1['setSelection'](_0x40d54c),_0x4e1886['commands']['get'](_0x118121['commandName'])['refresh'](),_0x118121['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4e1886['execute'](_0x118121['commandName'],..._0x118121['commandParams']),_0x3f45f1['setSelection'](_0x6ff649);for(const _0x5ecf74 of _0x6ff649)_0x5ecf74['detach']();});}),_0x169117['descriptionFactory']['registerElementLabel'](function(_0x422a6a){const _0xade428=!_0x4e1886['model']['schema']['isObject'](_0x422a6a),_0x4c3742=_0x422a6a['previousSibling'],_0x4b3441=_0x422a6a['nextSibling'],_0x19787f=_0x422a6a['getAttribute']('listItemId'),_0x21425e=!_0x4c3742||_0x4c3742['getAttribute']('listItemId')!==_0x19787f,_0x20047c=!_0x4b3441||_0x4b3441['getAttribute']('listItemId')!==_0x19787f;return _0xade428&&Boolean(_0x19787f)&&_0x21425e&&_0x20047c;},_0x1fd690=>o(_0x45639e,'ELEMENT_LIST_ITEM',_0x1fd690));}['_registerLegacyDescription'](){const _0x50c230=this['editor'],_0x15994d=_0x50c230['locale'];function _0x4e5078(_0x5b3b97){const _0x4928db=_0x50c230['commands']['get']('bulletedList')['value'],_0x20fc70=_0x50c230['commands']['get']('numberedList')['value'];return'numberedList'===_0x5b3b97?_0x4928db:_0x20fc70;}_0x50c230['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x2526bb){if('formatBlock'!=_0x2526bb['type'])return;const {data:_0x57207f}=_0x2526bb;if(!_0x57207f)return;let _0x22f9df,_0x25b456,_0x3f451f,_0x54d299;switch(_0x57207f['commandName']){case'bulletedList':_0x3f451f=_0x57207f['commandParams'][0x0]['forceValue'],_0x54d299=_0x4e5078(_0x57207f['commandName']),_0x22f9df=_0x3f451f?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x54d299&&_0x50c230['config']['get']('list.multiBlock')||(_0x22f9df='*Change\x20to:*\x20%0'),_0x25b456={'type':'format','content':o(_0x15994d,_0x22f9df,o(_0x15994d,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x3f451f=_0x57207f['commandParams'][0x0]['forceValue'],_0x54d299=_0x4e5078(_0x57207f['commandName']),_0x22f9df=_0x3f451f?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x54d299&&_0x50c230['config']['get']('list.multiBlock')||(_0x22f9df='*Change\x20to:*\x20%0'),_0x25b456={'type':'format','content':o(_0x15994d,_0x22f9df,o(_0x15994d,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x22f9df='*Indent:*\x20%0',_0x25b456={'type':'format','content':o(_0x15994d,_0x22f9df,o(_0x15994d,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x22f9df=function(_0x4f0c30){const _0x5d9123=_0x4f0c30['getFirstRange']();let _0x413aac=_0x5d9123['start']['nodeAfter'];for(;_0x413aac&&_0x5d9123['containsItem'](_0x413aac);){if(_0x413aac['getAttribute']('listIndent')>0x0)return!0x1;_0x413aac=_0x413aac['nextSibling'];}return!0x0;}(_0x2526bb)?o(_0x15994d,'*Format:*\x20remove\x20from\x20%0',o(_0x15994d,function(_0x28f6ad){return'ELEMENT_'+_0x28f6ad['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x2526bb))):o(_0x15994d,'*Outdent:*\x20%0',o(_0x15994d,'ELEMENT_LIST_ITEM')),_0x25b456={'type':'format','content':_0x22f9df};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x57207f['multipleBlocks']&&(_0x22f9df='*Merge:*\x20%0',_0x25b456={'type':'deletion','content':o(_0x15994d,_0x22f9df,o(_0x15994d,'ELEMENT_LIST_ITEM'))});}return _0x25b456;});}}function Ee(_0x3df855){let _0x1d55a1=_0x3df855['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x1d55a1;){const _0x4aa565=_0x1d55a1['getAttribute']('listItemId');if(!_0x4aa565)return!0x1;if(_0x4aa565==_0x3df855['data']['newValue'])return'newValue';if(_0x4aa565==_0x3df855['data']['oldValue'])return'oldValue';_0x1d55a1=_0x1d55a1['previousSibling'];}return!0x1;}class pe extends _0x48c5b5{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x285be4=this['editor']['config']['get']('list.properties'),_0x14f73b=this['editor']['plugins']['get']('TrackChangesEditing');_0x285be4['styles']&&(_0x14f73b['enableDefaultAttributesIntegration']('listStyle'),_0x14f73b['registerBlockAttribute']('listStyle')),_0x285be4['reversed']&&(_0x14f73b['enableDefaultAttributesIntegration']('listReversed'),_0x14f73b['registerBlockAttribute']('listReversed')),_0x285be4['startIndex']&&(_0x14f73b['enableDefaultAttributesIntegration']('listStart'),_0x14f73b['registerBlockAttribute']('listStart'));const _0x1bdbdc={'type':'format','content':''};_0x14f73b['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2ca84d=this['editor']['locale'];_0x14f73b['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x2ca84d,'FORMAT_LIST_REVERSED')),_0x14f73b['descriptionFactory']['registerDescriptionCallback'](_0x247ea5=>{const {data:_0x1f7006}=_0x247ea5;if(_0x1f7006&&'listReversed'==_0x1f7006['key'])return null==_0x1f7006['newValue']||0x0==_0x1f7006['newValue']&&null==_0x1f7006['oldValue']?_0x1bdbdc:void 0x0;}),_0x14f73b['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x2ca84d,'FORMAT_LIST_START')),_0x14f73b['descriptionFactory']['registerDescriptionCallback'](_0x3073ca=>{const {data:_0x2f2073}=_0x3073ca;if(_0x2f2073&&'listStart'==_0x2f2073['key'])return null==_0x2f2073['newValue']||0x1==_0x2f2073['newValue']&&null==_0x2f2073['oldValue']?_0x1bdbdc:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x5684dd=>{if(_0x5684dd['batch']['isUndo'])return!0x1;let _0x409f5a=!0x1;const _0x141f14=_0x14f73b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1f6ef5=>{const _0x572ce5=_0x14f73b['_getAttributeKey'](_0x1f6ef5);return'listStart'==_0x572ce5||'listReversed'==_0x572ce5;});for(const _0x16178a of _0x141f14){const _0x4896ef=_0x16178a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4896ef||'customNumbered'==_0x4896ef)continue;_0x14f73b['_findSuggestions'](_0x16178a['getFirstRange'](),'attribute')['find'](_0x56e070=>'listType'==_0x14f73b['_getAttributeKey'](_0x56e070['suggestion']))||(_0x5684dd['removeMarker'](_0x16178a['getFirstMarker']()),_0x409f5a=!0x0);}return _0x409f5a;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x42caac){const _0x1efe55=this['editor']['locale'],{data:_0x48c45b}=_0x42caac,_0x3c7a43={'type':'format','content':''};if(!_0x48c45b||'listStyle'!=_0x48c45b['key'])return;if(!_0x48c45b['oldValue'])return'default'==_0x48c45b['newValue']?_0x3c7a43:{'type':'format','content':''+o(_0x1efe55,'*Set\x20format:*\x20%0',o(_0x1efe55,this['_getTranslationKeyForListStyle'](_0x48c45b['newValue'])))};if(!_0x48c45b['newValue']){if('default'==_0x48c45b['oldValue'])return _0x3c7a43;let _0x3ae646=_0x42caac['head'];for(;_0x3ae646;){if(_0x3ae646['data']&&'listType'==_0x3ae646['data']['key']&&_0x3ae646['data']['newValue'])return _0x3c7a43;_0x3ae646=_0x3ae646['next'];}return{'type':'format','content':''+o(_0x1efe55,'*Remove\x20format:*\x20%0',o(_0x1efe55,this['_getTranslationKeyForListStyle'](_0x48c45b['oldValue'])))};}if('default'!=_0x48c45b['newValue'])return{'type':'format','content':''+o(_0x1efe55,'*Set\x20format:*\x20%0',o(_0x1efe55,this['_getTranslationKeyForListStyle'](_0x48c45b['newValue'])))};let _0x10586d=_0x42caac['head'];for(;_0x10586d;){if(_0x10586d['data']&&'listType'==_0x10586d['data']['key']&&_0x10586d['data']['newValue']&&_0x10586d['data']['oldValue'])return _0x3c7a43;_0x10586d=_0x10586d['next'];}return{'type':'format','content':o(_0x1efe55,'*Set\x20format:*\x20%0',o(_0x1efe55,'ELEMENT_'+_0x42caac['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1acd49=this['editor'],_0x46ef15=_0x1acd49['locale'];_0x1acd49['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x270e79=>{if('formatBlock'!=_0x270e79['type'])return;const {data:_0x2dbc77}=_0x270e79;if(!_0x2dbc77)return;let _0x545ec0,_0xe5c850;switch(_0x2dbc77['commandName']){case'listStyle':_0x545ec0='*Change\x20to:*\x20%0',_0xe5c850={'type':'format','content':o(_0x46ef15,_0x545ec0,o(_0x46ef15,this['_getTranslationKeyForListStyle'](_0x2dbc77['commandParams'][0x0]['type'])))};break;case'listReversed':_0x545ec0=_0x2dbc77['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xe5c850={'type':'format','content':o(_0x46ef15,_0x545ec0)};break;case'listStart':_0x545ec0='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xe5c850={'type':'format','content':o(_0x46ef15,_0x545ec0,_0x2dbc77['commandParams'][0x0]['startIndex'])};}return _0xe5c850;});}['_getTranslationKeyForListStyle'](_0x2ab3fa){return'ELEMENT_'+function(_0x2c7b10){if(ye['includes'](_0x2c7b10))return'bulleted';if(Se['includes'](_0x2c7b10))return'numbered';return null;}(_0x2ab3fa)['toUpperCase']()+'_LIST_'+_0x2ab3fa['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x48c5b5{static get['requires'](){return[_0x435002];}['init'](){const _0x338954=this['editor'],_0x583789=_0x338954['plugins']['get']('TrackChangesEditing'),_0x448301=_0x338954['commands']['get']('enter');_0x583789['enableCommand']('enter',()=>{_0x338954['model']['change'](_0x496980=>{const _0x4c3756=_0x338954['model']['document']['selection'],_0x340807=_0x4c3756['getFirstPosition'](),_0x1aaa91=_0x3bc28a['fromRange'](_0x4c3756['getFirstRange']());if(_0x448301['enterBlock'](_0x496980)){const _0x147184=_0x338954['model']['createPositionAt'](_0x340807['parent']['nextSibling'],0x0),_0x62c814=_0x496980['createRange'](_0x340807,_0x147184);_0x583789['markInsertion'](_0x62c814);}else _0x496980['setSelection'](_0x496980['createRange'](_0x1aaa91['end']));_0x1aaa91['detach'](),_0x448301['fire']('afterExecute',{'writer':_0x496980});});}),_0x338954['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x338954,'split'),{'priority':'high'}),_0x338954['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x1ecc3b,_0x571ae3,_0x500bbb)=>{const _0x6b8982=_0x500bbb['mapper']['markerNameToElements'](_0x571ae3['markerName']);if(_0x6b8982){for(const _0x48721b of _0x6b8982)_0x48721b['hasClass']('ck-suggestion-marker-split')&&(_0x500bbb['mapper']['unbindElementFromMarkerName'](_0x48721b,_0x571ae3['markerName']),_0x500bbb['writer']['remove'](_0x48721b));}},{'priority':'high'}),_0x338954['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3d0f26,_0x266fef,_0x59a1d3)=>{_0x59a1d3['options']['showSuggestionHighlights']&&_e(_0x338954,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x3d0f26,_0x266fef,_0x59a1d3);},{'priority':'high'});}}class X extends _0x48c5b5{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3dd192=this['editor']['plugins']['get']('TrackChangesEditing');_0x3dd192['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3dd192['enableCommand']('findNext'),_0x3dd192['enableCommand']('findPrevious'),_0x3dd192['enableCommand']('replace'),_0x3dd192['enableCommand']('replaceAll');}['handleFindCommand'](_0x1711b6,_0x2d7526,_0xae3397={}){const _0x5bf261=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1711b6(_0x40aa5e=>{let _0x35c79c=('string'==typeof _0x2d7526?_0x5bf261['findByTextCallback'](_0x2d7526,_0xae3397):_0x2d7526)(_0x40aa5e);Array['isArray'](_0x35c79c)&&(_0x35c79c={'results':_0x35c79c,'searchText':'string'==typeof _0x2d7526?_0x2d7526:''});const _0x12c929=_0x35c79c['results']['filter'](_0x1e472d=>!0x1===this['_isInDeletionRange'](_0x1e472d,_0x40aa5e['item']));return{..._0x35c79c,'results':_0x12c929};},_0xae3397);}['_isInDeletionRange'](_0x4eba6b,_0x597548){const _0x169ec6=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x597548,_0x4eba6b['start']),this['editor']['model']['createPositionAt'](_0x597548,_0x4eba6b['end']));for(const _0x11896e of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x169ec6['getIntersection'](_0x11896e['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0x48c5b5{['afterInit'](){const _0x6f3fde=this['editor']['locale'],_0x4bef0b=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x58e93b,commandName:_0x4a51ca}of ro)this['editor']['plugins']['has'](_0x58e93b)&&(_0x4bef0b['enableDefaultAttributesIntegration'](_0x4a51ca),_0x4bef0b['registerInlineAttribute'](_0x4a51ca));_0x4bef0b['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x6f3fde,'FORMAT_FONT_SIZE')),_0x4bef0b['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x6f3fde,'FORMAT_FONT_FAMILY')),_0x4bef0b['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x6f3fde,'FORMAT_FONT_COLOR')),_0x4bef0b['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x6f3fde,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c834f=this['editor'],_0x10549d=_0x4c834f['locale'];_0x4c834f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x522c7c=>{const _0x1c39f9=_0x10549d['t'];if('formatInline'!=_0x522c7c['type'])return;const {data:_0x21ebb5}=_0x522c7c;if(null!=_0x21ebb5){if('fontSize'==_0x21ebb5['commandName']){const _0x84d75f=_0x21ebb5['commandParams'][0x0]['value'];if(_0x84d75f){const _0x5680d3=_0x1c39f9(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x480fa3=>_0x480fa3['model']==_0x84d75f)['title'])['toLowerCase']();return{'type':'format','content':o(_0x10549d,'*Set\x20font\x20size:*\x20%0',_0x5680d3)};}return{'type':'format','content':o(_0x10549d,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x21ebb5['commandName']){const _0x5e50b6=_0x21ebb5['commandParams'][0x0]['value'];return _0x5e50b6?{'type':'format','content':o(_0x10549d,'*Set\x20font\x20family:*\x20%0',_0x5e50b6)}:{'type':'format','content':o(_0x10549d,'*Reset\x20font\x20family*')};}if('fontColor'==_0x21ebb5['commandName']){const _0x1ed37f=_0x21ebb5['commandParams'][0x0]['value'];if(_0x1ed37f){const _0x46700f=_0x5ee7db(this['editor']['config']['get']('fontColor.colors'))['find'](_0x207005=>_0x207005['model']==_0x1ed37f);let _0x1cf793=_0x1ed37f,_0x10f90e='';return _0x46700f&&(_0x1cf793=_0x46700f['label'],_0x10f90e=_0x1c39f9(_0x1cf793)['toLowerCase']()),{'type':'format','content':o(_0x10549d,'*Set\x20font\x20color:*\x20%0',_0x10f90e)['trim'](),'color':{'value':_0x1ed37f,'title':_0x10f90e||_0x1cf793}};}return{'type':'format','content':o(_0x10549d,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x21ebb5['commandName']){const _0xfd5c82=_0x21ebb5['commandParams'][0x0]['value'];if(_0xfd5c82){const _0xf5dc44=_0x5ee7db(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x39aa5b=>_0x39aa5b['model']==_0xfd5c82);let _0x1c0bdd=_0xfd5c82,_0x1f877a='';return _0xf5dc44&&(_0x1c0bdd=_0xf5dc44['label'],_0x1f877a=_0x1c39f9(_0x1c0bdd)['toLowerCase']()),{'type':'format','content':o(_0x10549d,'*Set\x20font\x20background\x20color:*\x20%0',_0x1f877a)['trim'](),'color':{'value':_0xfd5c82,'title':_0x1f877a||_0x1c0bdd}};}return{'type':'format','content':o(_0x10549d,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x48c5b5{['afterInit'](){const _0x1a02db=this['editor'],_0x3ee989=_0x1a02db['plugins']['get']('TrackChangesEditing'),_0x46fd6b=_0x1a02db['commands']['get']('copyFormat'),_0x32f43b=_0x1a02db['commands']['get']('pasteFormat');_0x46fd6b&&_0x32f43b&&(_0x3ee989['enableDefaultAttributesIntegration']('pasteFormat'),_0x3ee989['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x14018a=this['editor'],_0x16bf42=_0x14018a['locale'];_0x14018a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x25c586=>{if('formatBlock'!=_0x25c586['type']&&'formatInline'!=_0x25c586['type'])return;const {data:_0x16700d}=_0x25c586;if(_0x16700d&&'pasteFormat'===_0x16700d['commandName']){const _0x5bc5f5=[],_0x30963c=_0x16700d['commandParams'][0x0];for(const [_0xc33b0e,_0x1f6ce0]of Object['entries'](_0x30963c))_0x5bc5f5['push'](so(_0x14018a,_0xc33b0e,_0x1f6ce0));return _0x5bc5f5['length']?{'type':'format','content':o(_0x16bf42,'*Set\x20format\x20to:*\x20%0',_0x5bc5f5['join'](',\x20'))}:{'type':'format','content':o(_0x16bf42,'*Remove\x20all\x20formatting*')};}});}}function so(_0x5e7f0f,_0x210d52,_0x134c95){const _0x355761=_0x5e7f0f['locale']['t'],_0x525921=_0x210d52['split'](/(?=[A-Z])/)['join']('\x20'),_0xb51a9c=_0x355761(_0x525921['charAt'](0x0)['toUpperCase']()+_0x525921['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x134c95)return _0xb51a9c;if('fontColor'===_0x210d52||'fontBackgroundColor'===_0x210d52){const _0xa16b35=_0x5ee7db(_0x5e7f0f['config']['get']('fontColor.colors'))['find'](_0x15563=>_0x15563['model']==_0x134c95);return _0xb51a9c+'\x20('+(_0xa16b35?_0x355761(_0xa16b35['label'])['toLowerCase']():_0x134c95)+')';}if('fontSize'===_0x210d52&&isNaN(parseFloat(_0x134c95))){const _0x2f2895=_0x5e7f0f['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x5e7f0f['config']['get']('fontSize.options'))['find'](_0x3a1f45=>_0x3a1f45['model']==_0x134c95);return _0xb51a9c+'\x20('+(_0x2f2895?_0x355761(_0x2f2895['title'])['toLowerCase']():_0x134c95)+')';}return _0xb51a9c+'\x20('+_0x134c95+')';}class tt extends _0x48c5b5{['_headingOptions'];['afterInit'](){const _0x46b61d=this['editor'];if(!_0x46b61d['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x46b61d['config']['get']('heading.options');const _0x1b0347=_0x46b61d['locale'],_0x52dcff=_0x46b61d['plugins']['get']('TrackChangesEditing');_0x52dcff['enableDefaultAttributesIntegration']('heading');for(const _0x1cc4e0 of this['_headingOptions'])'paragraph'!=_0x1cc4e0['model']&&_0x52dcff['descriptionFactory']['registerElementLabel'](_0x1cc4e0['model'],_0x1f1410=>{const _0x50e8c9=this['_getHeadingLevel'](_0x1cc4e0['model']);return null!==_0x50e8c9?_0x30879e(_0x1f1410,_0x50e8c9):_0x505478(_0x1f1410,_0x1cc4e0['title']);});function _0x30879e(_0x1dbd14,_0x38ccbf){return o(_0x1b0347,'ELEMENT_HEADING',[_0x1dbd14,_0x38ccbf]);}function _0x505478(_0x42d558,_0x1a3109){return o(_0x1b0347,'ELEMENT_HEADING_CUSTOM',[_0x42d558,_0x1a3109]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x41ffa7=this['editor'],_0x30f6aa=_0x41ffa7['locale'];function _0x248e8b(_0x2600fb,_0x3f4236){return o(_0x30f6aa,'ELEMENT_HEADING_CUSTOM',[_0x2600fb,_0x3f4236]);}_0x41ffa7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34104f=>{if('formatBlock'!=_0x34104f['type'])return;const {data:_0x558b6b}=_0x34104f;if(_0x558b6b&&'heading'==_0x558b6b['commandName']){const _0x3fc3f9=_0x558b6b['commandParams'][0x0]['value'],_0x35c5ee=this['_getHeadingLevel'](_0x3fc3f9);if(null!==_0x35c5ee)return{'type':'format','content':o(_0x30f6aa,'*Change\x20to:*\x20%0',(_0x51d55f=0x1,_0x266f0c=_0x35c5ee,o(_0x30f6aa,'ELEMENT_HEADING',[_0x51d55f,_0x266f0c])))};const _0x457c66=this['_headingOptions']['find'](_0x27042d=>_0x27042d['model']===_0x3fc3f9)['title'];return{'type':'format','content':o(_0x30f6aa,'*Change\x20to:*\x20%0',_0x248e8b(0x1,_0x457c66))};}var _0x51d55f,_0x266f0c;});}['_getHeadingLevel'](_0x5d3393){const _0x2a3692=_0x5d3393['match'](/^heading(\d+)/);if(_0x2a3692)return _0x2a3692[0x1];const _0x5ee3ec=this['_headingOptions']?.['find'](_0xe2ee5c=>_0xe2ee5c['model']==_0x5d3393);if(_0x5ee3ec&&_0x5ee3ec['view']){const _0x3c782f=_0x5ee3ec['view'],_0x6c78b=(_0x3c782f['name']??_0x3c782f)['match'](/^h(\d+)/);if(_0x6c78b)return _0x6c78b[0x1];}return null;}}class et extends _0x48c5b5{['afterInit'](){const _0x9b67be=this['editor'];if(!_0x9b67be['plugins']['has']('HighlightEditing'))return;const _0xb577e0=_0x9b67be['plugins']['get']('TrackChangesEditing'),_0x483976=_0x9b67be['locale'];_0xb577e0['enableDefaultAttributesIntegration']('highlight'),_0xb577e0['registerInlineAttribute']('highlight'),_0xb577e0['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x483976,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e3305=this['editor'],_0x332fc9=_0x4e3305['locale'];_0x4e3305['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3730c1=>{if('formatInline'!=_0x3730c1['type'])return;const {data:_0x3503e1}=_0x3730c1;if(_0x3503e1&&'highlight'==_0x3503e1['commandName']){const _0x2f532a=_0x332fc9['t'],_0x4aad0e=_0x3503e1['commandParams'][0x0]['value'];if(_0x4aad0e){const _0x82802f=_0x4e3305['config']['get']('highlight.options')['find'](_0x19136f=>_0x19136f['model']==_0x4aad0e),_0x148e54=_0x2f532a(_0x82802f['title'])['toLowerCase']();return{'type':'format','content':o(_0x332fc9,'*Set\x20highlight:*\x20%0',_0x148e54),'color':{'value':_0x82802f['color'],'title':_0x82802f['title']}};}return{'type':'format','content':o(_0x332fc9,'*Remove\x20highlight*',o(_0x332fc9,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x48c5b5{['afterInit'](){const _0x4b4901=this['editor'];if(!_0x4b4901['plugins']['has']('HorizontalLineEditing'))return;_0x4b4901['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x2b7562=_0x4b4901['plugins']['get']('TrackChangesEditing'),_0x162bd5=_0x4b4901['locale'];_0x2b7562['descriptionFactory']['registerElementLabel']('horizontalLine',_0x1c2cfe=>o(_0x162bd5,'ELEMENT_HORIZONTAL_LINE',_0x1c2cfe)),_0x4b4901['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2b6ab3,{writer:_0x284bdd,options:_0x442888})=>{if(!_0x442888['showSuggestionHighlights'])return null;const _0x2215b4=_0x284bdd['createContainerElement']('div'),_0x50604a=_0x284bdd['createEmptyElement']('hr');return _0x284bdd['addClass']('ck-horizontal-line',_0x2215b4),_0x284bdd['insert'](_0x284bdd['createPositionAt'](_0x2215b4,0x0),_0x50604a),_0x2215b4;},'converterPriority':'high'});}}class st extends _0x48c5b5{['afterInit'](){const _0xc566fc=this['editor'];if(!_0xc566fc['plugins']['has']('HtmlEmbed'))return;const _0x1fcadb=_0xc566fc['plugins']['get']('TrackChangesEditing'),_0x45d208=_0xc566fc['locale'];_0x1fcadb['descriptionFactory']['registerElementLabel']('rawHtml',_0x497928=>o(_0x45d208,'ELEMENT_HTML_EMBED',_0x497928)),_0x1fcadb['enableDefaultAttributesIntegration']('htmlEmbed'),_0x1fcadb['registerBlockAttribute']('value'),_0x1fcadb['descriptionFactory']['registerDescriptionCallback'](_0x2c6f5d=>{if('attribute'!=_0x2c6f5d['type'])return;const {data:_0x15831c}=_0x2c6f5d;if(_0x15831c&&'value'==_0x15831c['key']&&_0x2c6f5d['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x56f339=o(_0x45d208,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x45d208,'*Change\x20%0\x20content*',_0x56f339)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x203b5e=this['editor'],_0x219515=_0x203b5e['locale'];_0x203b5e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42cf4e=>{if('formatBlock'!=_0x42cf4e['type'])return;const {data:_0xfb408f}=_0x42cf4e;if(_0xfb408f&&'htmlEmbed'==_0xfb408f['commandName']){const _0x384d6b=o(_0x219515,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x219515,'*Change\x20%0\x20content*',_0x384d6b)};}});}}class nt extends _0x48c5b5{['afterInit'](){const _0x209402=this['editor'];if(!_0x209402['plugins']['has']('ImageEditing'))return;const _0x12ba09=_0x209402['plugins']['get']('TrackChangesEditing'),_0xafc7ac=_0x209402['plugins']['get']('ImageUtils'),_0x42075e=_0x209402['locale'];_0x12ba09['enableCommand']('insertImage'),_0x12ba09['descriptionFactory']['registerElementLabel']('imageBlock',_0x44984e=>o(_0x42075e,'ELEMENT_IMAGE',_0x44984e)),_0x12ba09['descriptionFactory']['registerElementLabel']('imageInline',_0x410685=>o(_0x42075e,'ELEMENT_INLINE_IMAGE',_0x410685)),_0x12ba09['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x42075e,'ELEMENT_CAPTION')),_0x209402['plugins']['has']('ImageUploadEditing')&&_0x12ba09['enableCommand']('uploadImage'),_0x209402['plugins']['has']('ImageBlockEditing')&&_0x209402['plugins']['has']('ImageInlineEditing')&&(_0x12ba09['enableCommand']('imageTypeInline',(_0x546e0c,_0x40c087)=>{const _0x486568=_0xafc7ac['getClosestSelectedImageElement'](_0x209402['model']['document']['selection']);_0x209402['model']['change'](()=>{_0x12ba09['markBlockFormat'](_0x486568,{'commandName':'imageTypeInline','commandParams':[_0x40c087]},[],'convertBlockImageToInline');});}),_0x12ba09['enableCommand']('imageTypeBlock',(_0x535885,_0x530d54)=>{_0x209402['model']['change'](_0x426c02=>{let _0x9dc489=_0xafc7ac['getClosestSelectedImageElement'](_0x209402['model']['document']['selection']),_0x2b5f2d=_0x426c02['createRangeOn'](_0x9dc489);const _0x464c24=_0x46360e['fromPosition'](_0x2b5f2d['start'],'toPrevious'),_0xef7b58=_0x46360e['fromPosition'](_0x2b5f2d['end'],'toNext');_0x12ba09['forceDefaultExecution'](()=>_0x535885(_0x530d54)),_0x9dc489=_0xafc7ac['getClosestSelectedImageElement'](_0x209402['model']['document']['selection']),_0x2b5f2d=_0x426c02['createRangeOn'](_0x9dc489);const _0x10a26d=_0x426c02['createRange'](_0x464c24,_0xef7b58);_0x464c24['detach'](),_0xef7b58['detach'](),_0x12ba09['markBlockFormat'](_0x9dc489,{'commandName':'imageTypeInline','commandParams':[_0x530d54]},[],'convertInlineImageToBlock'),_0x10a26d['start']['isBefore'](_0x2b5f2d['start'])&&_0x12ba09['markInsertion'](_0x426c02['createRange'](_0x10a26d['start'],_0x2b5f2d['start']),'convertInlineImageToBlock'),_0x2b5f2d['end']['isBefore'](_0x10a26d['end'])&&_0x12ba09['markInsertion'](_0x426c02['createRange'](_0x2b5f2d['end'],_0x10a26d['end']),'convertInlineImageToBlock');});}),_0x12ba09['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x12ba09['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x12ba09['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x12ba09['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x12ba09['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x12ba09['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3c19e2])=>{const _0x421775=_0x12ba09['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x5dca4f=_0x3c19e2['start'],_0x21140f=_0x3c19e2['end'];const _0x372d68=_0x209402['model']['schema']['getNearestSelectionRange'](_0x5dca4f,'backward'),_0x3d990e=_0x209402['model']['schema']['getNearestSelectionRange'](_0x21140f,'forward');_0x372d68['isCollapsed']&&(_0x5dca4f=_0x372d68['start']),_0x3d990e['isCollapsed']&&(_0x21140f=_0x3d990e['end']),_0x421775([_0x209402['model']['createRange'](_0x5dca4f,_0x21140f)]);}),_0x12ba09['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xe70e96),_0x12ba09['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xe70e96)),_0x209402['plugins']['has']('ImageCaptionEditing')&&(_0x12ba09['enableCommand']('toggleImageCaption',(_0x27848c,_0x390071)=>{const _0x4aba1b=_0x209402['plugins']['get']('ImageCaptionUtils');let _0x24c526=_0xafc7ac['getClosestSelectedImageElement'](_0x209402['model']['document']['selection']),_0x4aa147=_0x4aba1b['getCaptionFromImageModelElement'](_0x24c526);_0x209402['model']['change'](()=>{if(_0x4aa147)return void _0x12ba09['markDeletion'](_0x209402['model']['createRangeOn'](_0x4aa147));const _0x50b502=_0xafc7ac['isBlockImage'](_0x24c526);_0x27848c(_0x390071),_0x24c526=_0xafc7ac['getClosestSelectedImageElement'](_0x209402['model']['document']['selection']),_0x4aa147=_0x4aba1b['getCaptionFromImageModelElement'](_0x24c526),_0x12ba09['markInsertion'](_0x209402['model']['createRangeOn'](_0x4aa147),_0x50b502?null:'imageCaption');});}),_0x12ba09['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xe70e96));const _0x14b626=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x7375a3(_0x4ac498,_0x3b354b){const _0x28ca0c=_0x14b626['findIndex'](({type:_0x5c7049,subType:_0xb8ff35})=>_0x4ac498['type']==_0x5c7049&&_0x4ac498['subType']==_0xb8ff35),_0x3d9f85=_0x14b626['findIndex'](({type:_0x2aaa57,subType:_0x122305})=>_0x3b354b['type']==_0x2aaa57&&_0x3b354b['subType']==_0x122305);if(_0x28ca0c<0x0||_0x3d9f85<0x0)return!0x1;const _0x122fe3=_0x4ac498['getFirstRange'](),_0x204771=_0x3b354b['getFirstRange']();if((0x0==_0x28ca0c||0x1==_0x28ca0c)&&0x2==_0x3d9f85&&_0x122fe3['isIntersecting'](_0x204771))return!0x0;if(0x2==_0x28ca0c&&0x3==_0x3d9f85){const _0x21f6ee=_0x12ba09['_findSuggestions'](_0x122fe3,'insertion')['filter'](({suggestion:_0x5b26e1,meta:_0x27b8f8})=>_0x27b8f8['isOwn']&&'convertInlineImageToBlock'==_0x5b26e1['subType']);if(_0x21f6ee['length']>0x1&&_0x204771['end']['isEqual'](_0x122fe3['start']))return!0x0;if(0x1==_0x21f6ee['length']&&(_0x122fe3['start']['isEqual'](_0x204771['end'])||_0x122fe3['end']['isEqual'](_0x204771['start'])))return!0x0;}if(0x3==_0x28ca0c&&0x3==_0x3d9f85&&_0x122fe3['start']['isBefore'](_0x204771['start'])){const _0x494735=_0x122fe3['end']['nodeAfter'],_0x16f88f=_0x204771['start']['nodeBefore'];return _0xafc7ac['isBlockImage'](_0x494735)&&_0x494735===_0x16f88f;}return!0x1;}function _0xe70e96(_0x2f1ff8,_0x4fa3f8){return _0x7375a3(_0x2f1ff8,_0x4fa3f8)?[_0x2f1ff8,_0x4fa3f8]:_0x7375a3(_0x4fa3f8,_0x2f1ff8)?[_0x4fa3f8,_0x2f1ff8]:null;}_0x209402['plugins']['has']('ImageResize')&&(_0x12ba09['enableDefaultAttributesIntegration']('resizeImage'),_0x12ba09['registerBlockAttribute']('resizedWidth'),_0x12ba09['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x42075e,'FORMAT_IMAGE_SIZE'))),_0x209402['plugins']['has']('ImageTextAlternativeEditing')&&(_0x12ba09['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x12ba09['registerBlockAttribute']('alt')),_0x12ba09['descriptionFactory']['registerDescriptionCallback'](_0x5b5c12=>{if(!!_0x14b626['find'](({type:_0x3f02f8,subType:_0x548e87})=>_0x5b5c12['type']==_0x3f02f8&&_0x5b5c12['subType']==_0x548e87))return _0x5b5c12['previous']?{}:void 0x0;}),_0x12ba09['descriptionFactory']['registerDescriptionCallback'](_0x105d00=>{if('insertion'==_0x105d00['type']||'deletion'==_0x105d00['type']){const _0x1b395d=_0x105d00['getContainedElement']();if(_0x1b395d&&_0x1b395d['is']('element','caption'))return{'type':'insertion'==_0x105d00['type']?'addObject':'removeObject','element':_0x1b395d,'quantity':0x1};}}),_0x12ba09['descriptionFactory']['registerDescriptionCallback'](_0x499ce7=>'formatBlock'==_0x499ce7['type']&&'convertInlineImageToBlock'==_0x499ce7['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x499ce7['type']&&'convertBlockImageToInline'==_0x499ce7['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x12ba09['descriptionFactory']['registerDescriptionCallback'](_0x137beb=>{if('attribute'!=_0x137beb['type'])return;const {data:_0x5ea6c2}=_0x137beb;if(!_0x5ea6c2||'alt'!=_0x5ea6c2['key'])return;const _0x33a723=_0x5ea6c2['newValue'];return _0x33a723?{'type':'format','content':o(_0x42075e,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x33a723+'\x22')}:{'type':'format','content':o(_0x42075e,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c5918=this['editor'],_0x401ebd=_0x1c5918['locale'];_0x1c5918['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e22a1=>{if('formatBlock'!=_0x3e22a1['type']&&'formatInline'!=_0x3e22a1['type'])return;const {data:_0x9b701}=_0x3e22a1;if(_0x9b701){if('imageTextAlternative'==_0x9b701['commandName']){const _0x563a93=_0x9b701['commandParams'][0x0]['newValue'];return _0x563a93?{'type':'format','content':o(_0x401ebd,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x563a93+'\x22')}:{'type':'format','content':o(_0x401ebd,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x9b701['commandName']){const _0x3cf36a=_0x9b701['commandParams'][0x0]['width'];return _0x3cf36a?{'type':'format','content':o(_0x401ebd,'*Set\x20image\x20width:*\x20%0',_0x3cf36a)}:{'type':'format','content':o(_0x401ebd,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x48c5b5{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x30aac0=this['editor']['locale'],_0x3eb2df=this['editor']['plugins']['get']('TrackChangesEditing');_0x3eb2df['enableDefaultAttributesIntegration']('replaceImageSource'),_0x3eb2df['registerBlockAttribute']('src'),_0x3eb2df['descriptionFactory']['registerDescriptionCallback'](_0x5af5ef=>{if('attribute'!=_0x5af5ef['type'])return;const {data:_0x5b3cb8}=_0x5af5ef;return _0x5b3cb8&&'src'==_0x5b3cb8['key']?_0x5b3cb8['newValue']&&_0x5b3cb8['oldValue']?{'type':'format','content':o(_0x30aac0,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x26ce4c=this['editor']['plugins']['get']('TrackChangesEditing');_0x26ce4c['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x26ce4c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x26ce4c['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x26ce4c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e5458=this['editor'],_0x59bc3c=_0x2e5458['locale'];_0x2e5458['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a9c94=>{if('formatBlock'!=_0x5a9c94['type']&&'formatInline'!=_0x5a9c94['type'])return;const {data:_0x2ef5f0}=_0x5a9c94;if(!_0x2ef5f0||'replaceImageSource'!=_0x2ef5f0['commandName'])return;return{'type':'format','content':o(_0x59bc3c,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x48c5b5{['afterInit'](){const _0x1825e4=this['editor'];if(!_0x1825e4['plugins']['has']('ImageStyleEditing'))return;const _0xb64974=_0x1825e4['plugins']['get']('TrackChangesEditing'),_0x379888=_0x1825e4['plugins']['get']('ImageUtils'),_0x5a28a5={};_0xb64974['enableCommand']('imageStyle',(_0x20b62d,_0x380715)=>{const _0x44cf46=_0x1825e4['plugins']['get']('Users')['me'],_0xf3ebc7=_0x1825e4['commands']['get']('imageStyle');let _0x1d4b07=_0x379888['getClosestSelectedImageElement'](_0x1825e4['model']['document']['selection']),_0x562df4=_0x1825e4['model']['createRangeOn'](_0x1d4b07),_0x9bd763=_0xf3ebc7['value'];if(_0x9bd763==_0x380715['value'])return;const _0x33c00d={'commandName':'imageStyle','commandParams':[_0x380715],'formatGroupId':_0x5790ee()};_0x1825e4['model']['change'](()=>{if(_0xb64974['getSuggestions']()['filter'](_0x365302=>_0x365302['isInContent']&&_0x44cf46==_0x365302['author']&&('formatBlock'==_0x365302['type']||'formatInline'==_0x365302['type'])&&('imageStylePreApply'==_0x365302['subType']||'imageStylePostApply'==_0x365302['subType'])&&_0x365302['getFirstRange']()['isEqual'](_0x562df4))['forEach'](_0x27a61a=>_0xb64974['discardSuggestion'](_0x27a61a['head'])),_0x1d4b07=_0x379888['getClosestSelectedImageElement'](_0x1825e4['model']['document']['selection']),_0x562df4=_0x1825e4['model']['createRangeOn'](_0x1d4b07),_0xf3ebc7['refresh'](),_0x1825e4['commands']['get']('imageTypeInline')['refresh'](),_0x1825e4['commands']['get']('imageTypeBlock')['refresh'](),_0x9bd763=_0xf3ebc7['value'],_0x9bd763!=_0x380715['value'])return _0x379888['isInlineImage'](_0x1d4b07)&&_0xf3ebc7['shouldConvertImageType'](_0x380715['value'],_0x1d4b07)?(_0x20b62d({..._0x380715,'setImageSizes':!0x1}),_0x1d4b07=_0x379888['getClosestSelectedImageElement'](_0x1825e4['model']['document']['selection']),void _0xb64974['markBlockFormat'](_0x1d4b07,{..._0x33c00d,'commandReversedParams':[{'value':_0x9bd763||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x379888['isBlockImage'](_0x1d4b07)?_0xb64974['markBlockFormat'](_0x1d4b07,_0x33c00d,[],'imageStylePostApply'):_0xb64974['markInlineFormat'](_0x562df4,_0x33c00d,'imageStylePostApply'));});});for(const _0xf2d107 of _0x1825e4['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x5a28a5[_0xf2d107['name']]=_0xf2d107['title']['toLowerCase']();_0xb64974['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0xb64974['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0xb64974['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0xb64974['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x5c5c4e])=>{_0x379888['setImageNaturalSizeAttributes'](_0x5c5c4e['getContainedElement']());}),_0xb64974['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x1a1f5c,_0x15b0ff)=>{_0xb64974['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x1a1f5c,{'commandName':_0x15b0ff['commandName'],'commandParams':_0x15b0ff['commandReversedParams']});}),_0xb64974['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x52f081,_0x24fc38){if(_0x107c97(_0x52f081,_0x24fc38))return[_0x52f081,_0x24fc38];if(_0x107c97(_0x24fc38,_0x52f081))return[_0x24fc38,_0x52f081];return null;});const _0x27ae9e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x107c97(_0x1ab8d1,_0x3f1de3){const _0x556bbf=_0x27ae9e['findIndex'](({type:_0x2e6efb,subType:_0x224429})=>_0x1ab8d1['type']==_0x2e6efb&&_0x1ab8d1['subType']==_0x224429),_0x59ffe4=_0x27ae9e['findIndex'](({type:_0xf90113,subType:_0xc26bf1})=>_0x3f1de3['type']==_0xf90113&&_0x3f1de3['subType']==_0xc26bf1);if(_0x556bbf<0x0||_0x59ffe4<0x0)return!0x1;const _0x4fc2db=_0x1ab8d1['getFirstRange'](),_0x547293=_0x3f1de3['getFirstRange']();if((0x0==_0x556bbf||0x1==_0x556bbf)&&0x2==_0x59ffe4&&_0x4fc2db['isIntersecting'](_0x547293))return!0x0;if(0x2==_0x556bbf&&0x3==_0x59ffe4){const _0x13fd5c=_0xb64974['_findSuggestions'](_0x4fc2db,'insertion')['filter'](({suggestion:_0x3e9474,meta:_0x35ebf9})=>_0x35ebf9['isOwn']&&'convertInlineImageToBlock'==_0x3e9474['subType']);if(_0x13fd5c['length']>0x1&&_0x547293['end']['isEqual'](_0x4fc2db['start']))return!0x0;if(0x1==_0x13fd5c['length']&&(_0x4fc2db['start']['isEqual'](_0x547293['end'])||_0x4fc2db['end']['isEqual'](_0x547293['start'])))return!0x0;}if(0x3==_0x556bbf&&0x3==_0x59ffe4&&_0x4fc2db['start']['isBefore'](_0x547293['start'])){const _0x5a60cc=_0x4fc2db['end']['nodeAfter'],_0x1e2ba5=_0x547293['start']['nodeBefore'];return _0x379888['isBlockImage'](_0x5a60cc)&&_0x5a60cc===_0x1e2ba5;}return!0x1;}_0x1825e4['model']['document']['registerPostFixer'](()=>{let _0x567f5d=!0x1;const _0x3e0131=Array['from'](_0x1825e4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x597601,data:_0x57242a}of _0x3e0131){const {group:_0x5ed5c9,type:_0x2bf92f,subType:_0x42bf51,id:_0x24989c}=_0xb64974['_splitMarkerName'](_0x597601);if('suggestion'==_0x5ed5c9&&_0xb64974['hasSuggestion'](_0x24989c)){if('formatBlock'==_0x2bf92f&&('imageStylePreApply'==_0x42bf51||'imageStylePostApply'==_0x42bf51)){const _0x40c14f=_0xb64974['getSuggestion'](_0x24989c);if(_0x57242a['newRange']){const _0x42ac9e=_0x40c14f['getFirstRange']()['getContainedElement']();if(_0x379888['isBlockImage'](_0x42ac9e))continue;_0xb64974['discardSuggestion'](_0x40c14f),_0x567f5d=!0x0;}}if('insertion'==_0x2bf92f&&'imageCaption'==_0x42bf51&&!_0x57242a['newRange']){const _0x41f3c7=_0xb64974['getSuggestion'](_0x24989c);_0x41f3c7['next']&&_0x41f3c7['next']['isInContent']&&(_0xb64974['discardSuggestion'](_0x41f3c7['next']),_0x567f5d=!0x0);}}}return _0x567f5d;}),this['_registerLegacyDescription'](_0x5a28a5);}['_registerLegacyDescription'](_0x17adb7){const _0x541484=this['editor'],_0x375a84=_0x541484['locale'];_0x541484['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x9c55f8=>{if('formatBlock'!=_0x9c55f8['type']&&'formatInline'!=_0x9c55f8['type'])return;const {data:_0x347ec9}=_0x9c55f8;if(!_0x347ec9||'imageStyle'!=_0x347ec9['commandName'])return;const _0x3e76dd=_0x347ec9['commandParams'][0x0]['value'];return _0x1ad072('side'===_0x3e76dd?o(_0x375a84,'FORMAT_SIDE_IMAGE'):_0x17adb7[_0x3e76dd]||_0x3e76dd);function _0x1ad072(_0x3e6544){return{'type':'format','content':o(_0x375a84,'*Format:*\x20%0',_0x3e6544)};}});}}class at extends _0x48c5b5{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x15012b){super(_0x15012b),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x14fd3e=this['editor'],_0x1ef048=_0x14fd3e['commands']['get']('importWord'),_0x521120=_0x14fd3e['commands']['get']('trackChanges');_0x1ef048&&(_0x1ef048['on']('execute',(_0x12086c,[,_0x22cde7])=>{this['_trackChangesValueDuringImport']=_0x521120['value'],_0x22cde7['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x1ef048,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x1ef048,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x521120['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x14fd3e['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x51c0f7,_0x44ae24){const {suggestions:_0x10731c}=_0x44ae24,_0x146026=this['editor']['commands']['get']('trackChanges'),_0x1b04bc=_0x146026['value'];this['_trackChangesValueDuringImport']!==_0x1b04bc&&(_0x146026['execute'](),this['_trackChangesExecuted']=!0x0),_0x10731c&&_0x10731c['forEach'](({id:_0x3b1c82,type:_0x42c988,author:_0x3f334e,created_at:_0x13b1db})=>{const _0x63b573={'id':_0x3b1c82,'type':_0x42c988,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x3f334e,'createdAt':_0x13b1db?new Date(_0x13b1db):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x63b573);});}}class ct extends _0x48c5b5{['afterInit'](){const _0x3dc954=this['editor'],_0xfe3b0f=_0x3dc954['plugins']['get']('TrackChangesEditing');if(_0x3dc954['plugins']['has']('IndentEditing')&&(_0xfe3b0f['enableCommand']('indent'),_0xfe3b0f['enableCommand']('outdent')),_0x3dc954['plugins']['has']('IndentBlock')){for(const _0x70e399 of['indentBlock','outdentBlock'])_0xfe3b0f['enableDefaultAttributesIntegration'](_0x70e399);}const _0x164610=_0x3dc954['locale'];_0xfe3b0f['registerBlockAttribute']('blockIndent'),_0xfe3b0f['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x164610,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x238622=this['editor'],_0x48a313=_0x238622['locale'],_0x1b5446=_0x238622['plugins']['get']('TrackChangesEditing');_0x1b5446['descriptionFactory']['registerDescriptionCallback'](_0x3556eb=>{if('formatBlock'!=_0x3556eb['type'])return;const {data:_0x5142e7}=_0x3556eb;if(!_0x5142e7)return;if('indentBlock'!=_0x5142e7['commandName']&&'outdentBlock'!=_0x5142e7['commandName'])return;const _0x422a8b=_0x3556eb['getItems']()[0x0],_0x549375=_0x1b5446['descriptionFactory']['getItemLabel'](_0x422a8b);return'indentBlock'==_0x5142e7['commandName']?{'type':'format','content':o(_0x48a313,'*Indent:*\x20%0',_0x549375)}:'outdentBlock'==_0x5142e7['commandName']?{'type':'format','content':o(_0x48a313,'*Outdent:*\x20%0',_0x549375)}:void 0x0;});}}class ut extends _0x48c5b5{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x48c5b5{['afterInit'](){const _0x1ae590=this['editor'];if(!_0x1ae590['plugins']['has']('LinkEditing'))return;const _0x12a5e9=_0x1ae590['plugins']['get']('TrackChangesEditing'),_0x2053bd=_0x1ae590['commands']['get']('link');_0x12a5e9['enableDefaultAttributesIntegration']('link'),_0x12a5e9['enableDefaultAttributesIntegration']('unlink'),_0x12a5e9['registerInlineAttribute']('linkHref');for(const _0x3caca5 of _0x2053bd['manualDecorators'])_0x12a5e9['registerInlineAttribute'](_0x3caca5['id']),_0x12a5e9['descriptionFactory']['registerAttributeLabel'](_0x3caca5['id'],'link\x20('+_0x3caca5['label']['toLowerCase']()+')');_0x12a5e9['descriptionFactory']['registerDescriptionCallback'](_0x2cb9eb=>{if('attribute'!=_0x2cb9eb['type'])return;const {data:_0x1dfa2f}=_0x2cb9eb;if(!_0x1dfa2f||'linkHref'!=_0x1dfa2f['key'])return;const _0x672856=_0x1dfa2f['newValue'],_0x585cbb=_0x1ae590['locale'];return{'type':'format','content':null==_0x672856?o(_0x585cbb,'*Remove\x20link*'):o(_0x585cbb,'*Set\x20link:*\x20%0','\x22'+_0x672856+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e94d2=this['editor'],_0x2a06b5=_0x2e94d2['locale'];_0x2e94d2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x250034=>{if('formatInline'!=_0x250034['type'])return;const {data:_0x30448b}=_0x250034;if(_0x30448b){if('link'==_0x30448b['commandName']){const _0x3266a6=_0x30448b['commandParams'][0x0];return{'type':'format','content':o(_0x2a06b5,'*Set\x20link:*\x20%0','\x22'+_0x3266a6+'\x22')};}return'unlink'==_0x30448b['commandName']?{'type':'format','content':o(_0x2a06b5,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x48c5b5{['afterInit'](){const _0x2705aa=this['editor'],_0x563d54=_0x2705aa['locale'];if(!_0x2705aa['plugins']['has']('LegacyListEditing'))return;const _0x54bd3f=_0x2705aa['plugins']['get']('TrackChangesEditing'),_0x2b5dc1=_0x2705aa['plugins']['has']('LegacyTodoListEditing');function _0x44fe55(_0x3d51a5){return()=>{const _0x5ec894=_0x2705aa['model']['document']['selection'],_0x461b50=_0x2705aa['commands']['get'](_0x3d51a5);if(_0x461b50['value'])return void _0x2705aa['execute']('paragraph',{});const _0x44e39b=_0x3d51a5['slice'](0x0,-0x4),_0x11d062=function(_0x44e3f7,_0x33513b,_0x49bd49){let _0x563a19=Array['from'](_0x44e3f7)['filter'](_0x242380=>function(_0x2ab2d2,_0x2decf8){return _0x2decf8['checkChild'](_0x2ab2d2['parent'],'listItem')&&!_0x2decf8['isObject'](_0x2ab2d2);}(_0x242380,_0x49bd49));_0x563a19=_0x563a19['filter'](_0x3fdd1d=>!_0x3fdd1d['is']('element','listItem')||_0x3fdd1d['getAttribute']('listType')!=_0x33513b);const _0x145b7b=new Set();for(const _0x3f2af2 of _0x563a19)_0x3f2af2['is']('element','listItem')?_0x145b7b['add'](fe(_0x3f2af2)):_0x145b7b['add'](_0x3f2af2);return Array['from'](_0x145b7b);}(_0x5ec894['getSelectedBlocks'](),_0x44e39b,_0x2705aa['model']['schema']);_0x2705aa['model']['change'](()=>{for(const _0x1c8e70 of _0x11d062)_0x54bd3f['markBlockFormat'](_0x1c8e70,{'commandName':_0x3d51a5,'commandParams':[{'forceValue':!_0x461b50['value']}],'formatGroupId':'blockName'},ue(_0x1c8e70));});};}function _0x3e3eaf(_0x14477a){return()=>{const _0x1d53c8=function(_0x1854a7){let _0x3812a8=Array['from'](_0x1854a7);const _0x777924=_0x3812a8['findIndex'](_0x335a99=>'listItem'!=_0x335a99['name']);return _0x777924>-0x1&&(_0x3812a8=_0x3812a8['slice'](0x0,_0x777924)),_0x3812a8;}(_0x2705aa['model']['document']['selection']['getSelectedBlocks']()),_0x3f861c=_0x2705aa['model']['createRange'](_0x2705aa['model']['createPositionAt'](_0x1d53c8[0x0],'before'),_0x2705aa['model']['createPositionAt'](_0x1d53c8[_0x1d53c8['length']-0x1],'end'));_0x2705aa['model']['change'](()=>{_0x54bd3f['markBlockFormat'](_0x3f861c,{'commandName':_0x14477a,'commandParams':[],'formatGroupId':'listIndent'},function(_0x5b68b3){const _0x2fe769=new Set();for(const _0x4913f8 of _0x5b68b3){let _0x2643b9=_0x4913f8['nextSibling'];for(;_0x2643b9&&_0x2643b9['getAttribute']('listIndent')>_0x4913f8['getAttribute']('listIndent');)_0x2fe769['add'](_0x2643b9),_0x2643b9=_0x2643b9['nextSibling'];}return Array['from'](_0x2fe769);}(_0x1d53c8));});};}_0x54bd3f['enableCommand']('numberedList',_0x44fe55('numberedList')),_0x54bd3f['enableCommand']('bulletedList',_0x44fe55('bulletedList')),_0x2b5dc1&&_0x54bd3f['enableCommand']('todoList',_0x44fe55('todoList')),_0x54bd3f['enableCommand']('indentList',_0x3e3eaf('indentList')),_0x54bd3f['enableCommand']('outdentList',_0x3e3eaf('outdentList')),_0x2b5dc1&&_0x54bd3f['enableCommand']('checkTodoList',()=>{const _0x43e99b=_0x2705aa['commands']['get']('checkTodoList'),_0x490767=Array['from'](_0x43e99b['_selectedElements']);_0x490767['filter'](_0x4c19ab=>_0x4c19ab['getAttribute']('todoListChecked')!=_0x43e99b['value']),_0x2705aa['model']['change'](()=>{for(const _0x535898 of _0x490767)_0x54bd3f['markBlockFormat'](_0x535898,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x43e99b['value']}]});});}),_0x54bd3f['descriptionFactory']['registerElementLabel']('listItem',_0x183733=>o(_0x563d54,'ELEMENT_LIST_ITEM',_0x183733)),_0x54bd3f['descriptionFactory']['registerDescriptionCallback'](_0x243e90=>{if('formatBlock'!=_0x243e90['type']&&'formatInline'!=_0x243e90['type'])return;const {data:_0x52abdf}=_0x243e90;if(_0x52abdf){if('numberedList'==_0x52abdf['commandName']||'bulletedList'==_0x52abdf['commandName']||'todoList'==_0x52abdf['commandName'])switch(_0x52abdf['commandName']['replace']('List','')){case'bulleted':return _0xdeeb2(o(_0x563d54,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xdeeb2(o(_0x563d54,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xdeeb2(o(_0x563d54,'ELEMENT_TODO_LIST'));}if('indentList'==_0x52abdf['commandName'])return{'type':'format','content':o(_0x563d54,'*Indent:*\x20%0',o(_0x563d54,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x52abdf['commandName'])return{'type':'format','content':o(_0x563d54,'*Outdent:*\x20%0',o(_0x563d54,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x52abdf['commandName'])return _0x52abdf['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x563d54,'*Check\x20item*')}:{'type':'format','content':o(_0x563d54,'*Uncheck\x20item*')};}function _0xdeeb2(_0x2bdece){return{'type':'format','content':o(_0x563d54,'*Change\x20to:*\x20%0',_0x2bdece)};}});}}function fe(_0x29110d){const _0x521bcc=_0x29110d['getAttribute']('listIndent');if(0x0==_0x521bcc)return _0x29110d;let _0x54af99=_0x29110d;for(;_0x29110d['previousSibling']&&_0x29110d['previousSibling']['is']('element','listItem');){const _0x33c1c6=_0x29110d['previousSibling']['getAttribute']('listIndent');if(_0x33c1c6==_0x521bcc)_0x54af99=_0x29110d['previousSibling'];else{if(_0x33c1c6<_0x521bcc)break;}_0x29110d=_0x29110d['previousSibling'];}return _0x54af99;}function ue(_0xb492d0){const _0x1c5cb4=[];if(_0xb492d0['is']('element','listItem')&&_0xb492d0['getAttribute']('listIndent')>0x0){let _0x30e2de=_0xb492d0['nextSibling'];for(;_0x30e2de&&'listItem'==_0x30e2de['name']&&_0x30e2de['getAttribute']('listIndent')==_0xb492d0['getAttribute']('listIndent');)_0x1c5cb4['push'](_0x30e2de),_0x30e2de=_0x30e2de['nextSibling'];}return _0x1c5cb4;}class W extends _0x48c5b5{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x461215=this['editor']['config']['get']('list.properties'),_0x47e209=this['editor']['plugins']['get']('TrackChangesEditing');_0x461215['styles']&&_0x47e209['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x461215['reversed']&&_0x47e209['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x461215['startIndex']&&_0x47e209['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x47e209['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x25a2a3,_0x32bf19={}){const _0x54e682=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4f0096=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x54e682['markMultiRangeBlockFormat'](_0x4f0096,{'commandName':'listStyle','commandParams':[{'type':_0x32bf19['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x355c7b,_0x31c6f1={}){const _0x29e9d5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x21819d=this['_getSuggestionBlocks'](_0x3943b0=>_0x3943b0['is']('element','listItem')&&'numbered'===_0x3943b0['getAttribute']('listType'));if(_0x21819d['length']<0x1)return;const _0x44ef28=_0x21819d['map'](_0x5c7f51=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5c7f51,'before'),this['editor']['model']['createPositionAt'](_0x5c7f51,0x0)));this['editor']['model']['change'](()=>{_0x29e9d5['markMultiRangeBlockFormat'](_0x44ef28,{'commandName':'listReversed','commandParams':[{'reversed':_0x31c6f1['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x352a98,_0x8ab579={}){const _0x457664=this['editor']['plugins']['get']('TrackChangesEditing'),_0xc3add0=this['_getSuggestionBlocks'](_0xdcd079=>_0xdcd079['is']('element','listItem')&&'numbered'===_0xdcd079['getAttribute']('listType'));if(_0xc3add0['length']<0x1)return;const _0x25d225=_0xc3add0['map'](_0x1e049b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1e049b,'before'),this['editor']['model']['createPositionAt'](_0x1e049b,0x0)));this['editor']['model']['change'](()=>{_0x457664['markMultiRangeBlockFormat'](_0x25d225,{'commandName':'listStart','commandParams':[{'startIndex':_0x8ab579['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x4d9caf){if('formatBlock'!=_0x4d9caf['type']&&'formatInline'!=_0x4d9caf['type'])return;const _0x2fefaf=this['editor']['locale'],{data:_0x106dae}=_0x4d9caf;if(!_0x106dae)return;let _0x3c7031,_0x30bfdb;switch(_0x106dae['commandName']){case'listStyle':_0x3c7031='*Change\x20to:*\x20%0',_0x30bfdb={'type':'format','content':o(_0x2fefaf,_0x3c7031,o(_0x2fefaf,this['_getTranslationKeyForListStyle'](_0x106dae['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3c7031=_0x106dae['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x30bfdb={'type':'format','content':o(_0x2fefaf,_0x3c7031)};break;case'listStart':_0x3c7031='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x30bfdb={'type':'format','content':o(_0x2fefaf,_0x3c7031,_0x106dae['commandParams'][0x0]['startIndex'])};}return _0x30bfdb;}['_getSuggestionBlocksForListStyle'](){const _0x459b3a=this['editor']['plugins']['get']('LegacyListUtils');let _0x1854b1=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1854b1[0x0]?.['is']('element','listItem')&&_0x1854b1['unshift'](..._0x459b3a['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1854b1[_0x1854b1['length']-0x1]?.['is']('element','listItem')&&_0x1854b1['push'](..._0x459b3a['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1854b1=[...new Set(_0x1854b1)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1854b1=_0x1854b1['filter'](_0x3f3c38=>_0x3f3c38['is']('element','listItem'))),_0x1854b1;}['_getSuggestionBlocks'](_0x20e847){const _0x17af24=this['editor']['plugins']['get']('LegacyListUtils');let _0x32f2d5=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x20e847)['map'](_0x2e7803=>{const _0x1b0c05=this['editor']['model']['createPositionAt'](_0x2e7803,0x0);return[..._0x17af24['getSiblingNodes'](_0x1b0c05,'backward'),..._0x17af24['getSiblingNodes'](_0x1b0c05,'forward')];})['flat']();return _0x32f2d5=[...new Set(_0x32f2d5)],_0x32f2d5;}['_getTranslationKeyForListStyle'](_0x6d1de4){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x6d1de4)||'default')['toUpperCase']()+'_LIST_'+_0x6d1de4['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x48c5b5{['afterInit'](){const _0x441e18=this['editor'];if(!_0x441e18['plugins']['has']('MediaEmbedEditing'))return;const _0x2cb483=_0x441e18['plugins']['get']('TrackChangesEditing'),_0x446d65=_0x441e18['locale'];_0x2cb483['enableCommand']('mediaEmbed'),_0x2cb483['descriptionFactory']['registerElementLabel']('media',_0x5ecb34=>o(_0x446d65,'ELEMENT_MEDIA',_0x5ecb34)),_0x441e18['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x5df96d,{writer:_0x4cf853,options:_0xd1097d})=>{if(_0xd1097d['showSuggestionHighlights'])return _0x4cf853['createEmptyElement']('div');},'converterPriority':'high'}),_0x441e18['data']['downcastDispatcher']['on']('attribute:url:media',(_0x337ac6,_0x1e4a0c,_0x10ac49)=>{_0x10ac49['options']['showSuggestionHighlights']&&_0x337ac6['stop']();},{'priority':'high'});}}class mt extends _0x48c5b5{['afterInit'](){const _0x3e038f=this['editor'];_0x3e038f['plugins']['has']('MentionEditing')&&_0x3e038f['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x48c5b5{['afterInit'](){const _0xd06dff=this['editor'];if(!_0xd06dff['plugins']['has']('MergeFieldsEditing'))return;_0xd06dff['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0xd06dff['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x5e7286=_0xd06dff['plugins']['get']('TrackChangesEditing'),_0x234c89=_0xd06dff['locale'];_0x5e7286['descriptionFactory']['registerElementLabel']('mergeField',_0x1c05dc=>o(_0x234c89,'ELEMENT_MERGE_FIELD',_0x1c05dc)),_0x5e7286['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x15b16a=>o(_0x234c89,'ELEMENT_MERGE_FIELD',_0x15b16a)),_0x5e7286['descriptionFactory']['registerDescriptionCallback'](_0x290036=>{if('insertion'!=_0x290036['type']&&'deletion'!=_0x290036['type'])return;const _0x290663=_0x290036['getContainedElement']();if(null==_0x290663)return;if(!_0x290663['is']('element','mergeField')&&!_0x290663['is']('element','mergeFieldBlock'))return;const _0x4bcb17=_0xd06dff['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x290663['getAttribute']('id'));return'insertion'==_0x290036['type']?{'type':'insertion','content':o(_0x234c89,'*Insert:*\x20%0','\x22'+_0x4bcb17+'\x22\x20'+o(_0x234c89,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x234c89,'*Remove:*\x20%0','\x22'+_0x4bcb17+'\x22\x20'+o(_0x234c89,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x48c5b5{['afterInit'](){const _0x25ec19=this['editor'],_0x3cac63=_0x25ec19['plugins']['get']('TrackChangesEditing');_0x25ec19['plugins']['has']('MultiLevelList')&&(_0x3cac63['enableDefaultAttributesIntegration']('multiLevelList'),_0x3cac63['registerBlockAttribute']('listMarkerStyle'),_0x3cac63['descriptionFactory']['registerDescriptionCallback'](_0x387d5f=>this['handleDescriptions'](_0x387d5f)));}['handleDescriptions'](_0x430f09){const _0x325aec=this['editor']['locale'],{data:_0x234478}=_0x430f09,_0x1c92b6={'type':'format','content':''};if(_0x234478&&'listMarkerStyle'==_0x234478['key']){if(!_0x234478['oldValue'])return{'type':'format','content':o(_0x325aec,'*Set\x20format:*\x20%0',o(_0x325aec,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x234478['newValue']+')'};if(!_0x234478['newValue']){let _0x44667d=_0x430f09['head'];for(;_0x44667d;){if(_0x44667d['data']&&'listType'==_0x44667d['data']['key']&&_0x44667d['data']['newValue'])return _0x1c92b6;_0x44667d=_0x44667d['next'];}return{'type':'format','content':o(_0x325aec,'*Remove\x20format:*\x20%0',o(_0x325aec,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x234478['oldValue']+')'};}}}}class kt extends _0x48c5b5{['afterInit'](){const _0x724abb=this['editor'];if(!_0x724abb['plugins']['has']('PageBreakEditing'))return;_0x724abb['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x1793a0=_0x724abb['plugins']['get']('TrackChangesEditing'),_0x4465fc=_0x724abb['locale'];_0x1793a0['descriptionFactory']['registerElementLabel']('pageBreak',_0x449dae=>o(_0x4465fc,'ELEMENT_PAGE_BREAK',_0x449dae));}}class bt extends _0x48c5b5{['afterInit'](){const _0x4faa16=this['editor'];if(!_0x4faa16['plugins']['has']('Paragraph'))return;const _0x26c33d=_0x4faa16['locale'],_0x4243b7=_0x4faa16['plugins']['get']('TrackChangesEditing');_0x4243b7['descriptionFactory']['registerElementLabel']('paragraph',_0x5d9365=>o(_0x26c33d,'ELEMENT_PARAGRAPH',_0x5d9365)),_0x4243b7['enableDefaultAttributesIntegration']('paragraph'),_0x4243b7['enableCommand']('insertParagraph'),_0x4faa16['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x4faa16),{'priority':'highest'}),_0x4faa16['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x362455,_0x5040e1,_0x3af2ac)=>{_0x3af2ac['options']['showSuggestionHighlights']&&nr(_0x4faa16,{'showActiveMarker':!0x1})(_0x362455,_0x5040e1,_0x3af2ac);},{'priority':'highest'});const _0x356bed=_0x4243b7['descriptionFactory'];_0x356bed['registerDescriptionCallback'](_0x2f1151=>{if('insertion'!==_0x2f1151['type'])return;const {start:_0x1e0986,end:_0x423f7e}=_0x2f1151['getFirstRange']();if(!_0x1e0986['isTouching'](_0x423f7e)||!_0x1e0986['nodeAfter'])return;const _0x1ac431=_0x4faa16['model']['schema'],_0x32df8b=_0x1e0986['nodeAfter'];return _0x1ac431['isBlock'](_0x32df8b)&&!_0x1ac431['isLimit'](_0x32df8b)&&_0x1ac431['checkChild'](_0x32df8b,'$text')?{'type':'insertion','content':o(_0x26c33d,'*Insert:*\x20%0',_0x356bed['getItemLabel'](_0x32df8b,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b5ef3=this['editor'],_0x11af95=_0x1b5ef3['locale'];_0x1b5ef3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b322b=>{if('formatBlock'!=_0x3b322b['type'])return;const {data:_0x1d4da1}=_0x3b322b;return _0x1d4da1&&'paragraph'==_0x1d4da1['commandName']?{'type':'format','content':o(_0x11af95,'*Change\x20to:*\x20%0',o(_0x11af95,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x4a6379,{showActiveMarker:_0x34589f=!0x0}={}){return(_0x148f01,_0x1046bd,_0x2c2099)=>{const _0x15f6d2=_0x4a6379['plugins']['get']('TrackChangesEditing'),_0xb0aa0e=_0x1046bd['markerRange']['start'],_0x14a0c5=_0x1046bd['markerRange']['end'],_0x4853d4=_0x4a6379['model']['schema'];if(!_0xb0aa0e['isTouching'](_0x14a0c5)||!_0xb0aa0e['nodeAfter'])return;const _0x85011b=_0xb0aa0e['nodeAfter'];if(_0x4853d4['isBlock'](_0x85011b)&&!_0x4853d4['isLimit'](_0x85011b)&&_0x4853d4['checkChild'](_0x85011b,'$text')){if(!_0x2c2099['consumable']['consume'](_0x1046bd['markerRange'],_0x148f01['name']))return;const {authorId:_0x321b6f}=_0x15f6d2['_splitMarkerName'](_0x1046bd['markerName']),_0x50120a=_0x2c2099['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x321b6f}),_0xe813d4=_0x2c2099['mapper']['toViewPosition'](_0x14a0c5);_0x34589f&&_0x15f6d2['activeMarkers']['includes'](_0x1046bd['markerName'])&&_0x2c2099['writer']['addClass']('ck-suggestion-marker--active',_0x50120a),_0x2c2099['writer']['insert'](_0xe813d4,_0x50120a),_0x2c2099['mapper']['bindElementToMarker'](_0x50120a,_0x1046bd['markerName']);}};}class wt extends _0x48c5b5{['afterInit'](){const _0x3ff477=this['editor'];if(!_0x3ff477['plugins']['has']('RemoveFormatEditing'))return;_0x3ff477['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e4e3f=this['editor'];_0x3e4e3f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1fdd2f=>{if('formatBlock'!=_0x1fdd2f['type']&&'formatInline'!=_0x1fdd2f['type'])return;const {data:_0x59f106}=_0x1fdd2f;return _0x59f106&&'removeFormat'==_0x59f106['commandName']?{'type':'format','content':o(_0x3e4e3f['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x48c5b5{['afterInit'](){const _0x5bd55e=this['editor'];if(!_0x5bd55e['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x24d0f8=_0x5bd55e['plugins']['get']('TrackChangesEditing');_0x24d0f8['enableCommand']('goToPreviousRestrictedEditingException'),_0x24d0f8['enableCommand']('goToNextRestrictedEditingException');const _0x39ea96=_0x5bd55e['plugins']['get']('RestrictedEditingModeEditing');_0x39ea96['enableCommand']('trackChanges'),_0x39ea96['enableCommand']('acceptSuggestion'),_0x39ea96['enableCommand']('discardSuggestion'),_0x39ea96['enableCommand']('acceptAllSuggestions'),_0x39ea96['enableCommand']('discardAllSuggestions'),_0x39ea96['enableCommand']('acceptSelectedSuggestions'),_0x39ea96['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x48c5b5{static get['requires'](){return[_0x7d8e06];}['init'](){const _0x4b40c2=this['editor'],_0x1101e6=_0x4b40c2['plugins']['get']('TrackChangesEditing');_0x1101e6['enableCommand']('shiftEnter'),_0x4b40c2['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x4b40c2),{'priority':'high'}),_0x4b40c2['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x4b40c2),{'priority':'high'}),_0x4b40c2['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3c4a0c,_0x26df93,_0x3109e1)=>{_0x3109e1['options']['showSuggestionHighlights']&&ge(_0x4b40c2,{'showActiveMarker':!0x1})(_0x3c4a0c,_0x26df93,_0x3109e1);}),_0x1101e6['descriptionFactory']['registerElementLabel']('softBreak',_0x1ee677=>o(_0x4b40c2['locale'],'ELEMENT_LINE_BREAK',_0x1ee677));}}function ge(_0x5398a6,{showActiveMarker:_0x15b423=!0x0}={}){return(_0x9b6a6,_0x2a8934,_0x4c0025)=>{const _0x434d0b=_0x5398a6['plugins']['get']('TrackChangesEditing');if(!_0x4c0025['consumable']['test'](_0x2a8934['markerRange'],_0x9b6a6['name']))return;const _0x2c8589=_0x5398a6['model'];for(const _0x50c827 of _0x2a8934['markerRange']['getItems']()){if(!_0x50c827['is']('element','softBreak'))continue;const _0xd4f8ce='deletion'==_0x2a8934['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x1fcc79}=_0x434d0b['_splitMarkerName'](_0x2a8934['markerName']),_0xb4f876=_0x4c0025['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xd4f8ce,'data-author-id':_0x1fcc79}),_0x1927a0=_0x4c0025['mapper']['toViewPosition'](_0x2c8589['createPositionBefore'](_0x50c827));_0x15b423&&_0x434d0b['activeMarkers']['includes'](_0x2a8934['markerName'])&&_0x4c0025['writer']['addClass']('ck-suggestion-marker--active',_0xb4f876),_0x4c0025['writer']['insert'](_0x1927a0,_0xb4f876),_0x4c0025['mapper']['bindElementToMarker'](_0xb4f876,_0x2a8934['markerName']);}};}class St extends _0x48c5b5{['afterInit'](){const _0x3f7007=this['editor'],_0x5f403a=_0x3f7007['model'],_0x4cd0b9=_0x3f7007['locale'];if(!_0x3f7007['plugins']['has']('StandardEditingModeEditing'))return;const _0x5c8f75=_0x3f7007['plugins']['get']('TrackChangesEditing'),_0xcfca33='restrictedEditingException',_0x3c1316=_0x3f7007['commands']['get'](_0xcfca33);_0x5c8f75['enableCommand'](_0xcfca33,(_0x5a425c,_0x126a95={})=>{const _0x15be91=_0x5f403a['document']['selection'];if(_0x15be91['isCollapsed'])return void _0x5a425c(_0x126a95);const _0x5a63e7=void 0x0!==_0x126a95['forceValue']?_0x126a95['forceValue']:!_0x3c1316['value'];_0x5f403a['change'](()=>{const _0x13b9dc=Array['from'](_0x15be91['getRanges']());for(const _0x3dd548 of _0x13b9dc){const _0x41cf87=_0x5a63e7?[_0x3dd548]:io(_0xcfca33,_0x3dd548,_0x5f403a);for(const _0x52ac97 of _0x41cf87)_0x5c8f75['markInlineFormat'](_0x52ac97,{'commandName':_0xcfca33,'commandParams':[{'forceValue':_0x5a63e7}]});}});}),_0x5c8f75['descriptionFactory']['registerDescriptionCallback'](_0x46ee43=>{if('formatBlock'!=_0x46ee43['type']&&'formatInline'!=_0x46ee43['type'])return;const {data:_0x24d09e}=_0x46ee43;return _0x24d09e&&_0x24d09e['commandName']==_0xcfca33?_0x24d09e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4cd0b9,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4cd0b9,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x48c5b5{['afterInit'](){const _0x58d62f=this['editor'];if(!_0x58d62f['plugins']['has']('Style')||!_0x58d62f['plugins']['has']('DataSchema'))return;const _0x1de721=_0x58d62f['plugins']['get']('TrackChangesEditing'),_0x5d3f04=_0x58d62f['locale'],_0x2686e1=_0x58d62f['config']['get']('style')||{},_0x3105df=_0x58d62f['plugins']['get']('GeneralHtmlSupport'),_0x33689c=_0x58d62f['plugins']['get']('StyleUtils')['normalizeConfig'](_0x58d62f['plugins']['get']('DataSchema'),_0x2686e1['definitions']);_0x1de721['enableDefaultAttributesIntegration']('style');const _0x46c0e9=new Set();for(const _0x5bd5bd of _0x33689c['block']){const _0xf6daf2=_0x3105df['getGhsAttributeNameForElement'](_0x5bd5bd['element']);_0x46c0e9['add'](_0xf6daf2);}const _0x5eb84b=new Set();for(const _0x424499 of _0x33689c['inline']){const _0x3b7655=_0x3105df['getGhsAttributeNameForElement'](_0x424499['element']);_0x5eb84b['add'](_0x3b7655);for(const _0x4d3e43 of _0x424499['ghsAttributes'])_0x5eb84b['add'](_0x4d3e43);}for(const _0x52dfb4 of _0x46c0e9)_0x1de721['registerBlockAttribute'](_0x52dfb4),_0x1de721['descriptionFactory']['registerAttributeLabel'](_0x52dfb4,o(_0x5d3f04,'FORMAT_STYLE'));for(const _0xe5b4c of _0x5eb84b)_0x1de721['registerInlineAttribute'](_0xe5b4c),_0x1de721['descriptionFactory']['registerAttributeLabel'](_0xe5b4c,o(_0x5d3f04,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56cd3c=this['editor'],_0x4653f3=_0x56cd3c['locale'];_0x56cd3c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x281780=>{if('formatBlock'!=_0x281780['type']&&'formatInline'!=_0x281780['type'])return;const {data:_0x2c9ebd}=_0x281780;return _0x2c9ebd&&'style'===_0x2c9ebd['commandName']?_0x2c9ebd['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4653f3,'*Set\x20format:*\x20%0',_0x2c9ebd['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x4653f3,'*Remove\x20format:*\x20%0',_0x2c9ebd['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x48c5b5{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x14ddc5){super(_0x14ddc5),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x45917a=this['editor'],_0x38d832=_0x45917a['model']['document']['selection'];if(!_0x45917a['plugins']['has']('TableEditing'))return;const _0x1b1d0e=_0x45917a['locale'],_0x1f3a21=_0x45917a['plugins']['get']('TrackChangesEditing'),_0x35fb15=_0x45917a['plugins']['get']('TableUtils');_0x1f3a21['descriptionFactory']['registerElementLabel']('table',_0xdd13db=>o(_0x1b1d0e,'ELEMENT_TABLE',_0xdd13db)),this['_setupColumnsRowsFixing'](),_0x1f3a21['enableCommand']('insertTable'),_0x1f3a21['enableCommand']('selectTableRow'),_0x1f3a21['enableCommand']('selectTableColumn');for(const _0x478f09 of['insertTableRowAbove','insertTableRowBelow']){const _0x300def=_0x45917a['commands']['get'](_0x478f09);_0x1f3a21['enableCommand'](_0x478f09,_0x4e7b97=>{_0x45917a['model']['change'](_0x26b8da=>{_0x4e7b97();const _0x13761f='above'===_0x300def['order'],_0x29bcfd=_0x35fb15['getSelectionAffectedTableCells'](_0x38d832),_0x17be03=_0x35fb15['getRowIndexes'](_0x29bcfd),_0x2f7c74=_0x13761f?_0x17be03['first']-0x1:_0x17be03['last']+0x1,_0x1fb664=_0x29bcfd[0x0]['findAncestor']('table'),_0x1888ca=_0x35fb15['createTableWalker'](_0x1fb664,{'startRow':_0x2f7c74,'endRow':_0x2f7c74}),_0xac9877=Array['from'](_0x1888ca)['map'](_0x4d655c=>_0x26b8da['createRangeOn'](_0x4d655c['cell']));_0x1f3a21['markMultiRangeInsertion'](_0xac9877,'tableRow');});});}for(const _0x29e53a of['insertTableColumnLeft','insertTableColumnRight']){const _0x426d3e=_0x45917a['commands']['get'](_0x29e53a);_0x1f3a21['enableCommand'](_0x29e53a,_0x42dab5=>{_0x45917a['model']['change'](_0x2375ac=>{_0x42dab5();const _0x32d2dd='left'===_0x426d3e['order'],_0x1a92d0=_0x35fb15['getSelectionAffectedTableCells'](_0x38d832),_0x573141=_0x35fb15['getColumnIndexes'](_0x1a92d0),_0x31d633=_0x32d2dd?_0x573141['first']-0x1:_0x573141['last']+0x1,_0x113318=_0x1a92d0[0x0]['findAncestor']('table'),_0x13c2e5=_0x35fb15['createTableWalker'](_0x113318,{'startRow':0x0,'column':_0x31d633,'includeAllSlots':!0x1}),_0x5838be=Array['from'](_0x13c2e5)['map'](_0x569961=>_0x2375ac['createRangeOn'](_0x569961['cell']));_0x1f3a21['markMultiRangeInsertion'](_0x5838be,'tableColumn');});});}for(const _0xd1a36e of['removeTableRow','removeTableColumn']){const _0x12f08d=_0xd1a36e['substr'](0xb),_0x5e20a3=_0x12f08d['toLowerCase'](),_0x2027b0=_0x5e20a3['substr'](0x0,0x3)+'span',_0x1dc546='table'+_0x12f08d,_0x2d8f2f='min'+_0x12f08d,_0x2ee91a='max'+_0x12f08d;_0x1f3a21['enableCommand'](_0xd1a36e,()=>{_0x45917a['model']['change'](_0x577405=>{const _0x154158=_0x35fb15['getSelectionAffectedTableCells'](_0x38d832),_0x1e4b35=_0x154158[0x0]['findAncestor']('table');let _0x2948b7;if('removeTableRow'==_0xd1a36e){const _0x11ae07=_0x35fb15['getRowIndexes'](_0x154158);_0x2948b7={'startRow':_0x11ae07['first'],'endRow':_0x11ae07['last'],'includeAllSlots':!0x0};}else{const _0x553582=_0x35fb15['getColumnIndexes'](_0x154158);_0x2948b7={'startColumn':_0x553582['first'],'endColumn':_0x553582['last'],'includeAllSlots':!0x0};}const _0x29c477=_0x35fb15['createTableWalker'](_0x1e4b35,_0x2948b7),_0x5de71a=Array['from'](_0x29c477)['map'](({cell:_0x1c51cc})=>_0x1c51cc),_0x564061=be(_0x5de71a['filter'](_0x213478=>_0x213478['hasAttribute'](_0x2027b0))),_0xacc814=be(_0x5de71a['filter'](_0x219b8f=>!_0x219b8f['hasAttribute'](_0x2027b0)))['map'](_0x4916e7=>_0x577405['createRangeOn'](_0x4916e7)),_0x564825=_0x1f3a21['markMultiRangeDeletion'](_0xacc814,_0x1dc546);if(_0x564825&&('tableRow'==_0x564825['subType']||'tableColumn'==_0x564825['subType'])){const _0x24738c=this['_getSuggestionCoords'](_0x564825);for(const _0x4b2720 of _0x564061){const _0x486427=_0x577405['createRangeOn'](_0x4b2720),_0x2153ca=_0x35fb15['getCellLocation'](_0x4b2720),_0x2ef14a=_0x4b2720['getAttribute'](_0x2027b0)-0x1,_0xaaab49=_0x24738c[_0x2d8f2f],_0x5524b6=_0x24738c[_0x2ee91a];_0xaaab49<=_0x2153ca[_0x5e20a3]&&_0x2153ca[_0x5e20a3]+_0x2ef14a<=_0x5524b6&&_0x564825['addRange'](_0x486427);}}});});}function _0x56dbc6(_0x4dfde6){const _0x3b7fac=Array['from'](_0x38d832['getRanges']())['map'](_0x49b109=>_0x3bc28a['fromRange'](_0x49b109));_0x45917a['model']['change'](_0x4cc871=>{const _0x59d47e=_0x4cc871['batch'];_0x4dfde6=_0x4dfde6['filter'](_0x105efa=>'$graveyard'!=_0x105efa['root']['rootName']),_0x4cc871['setSelection'](_0x4dfde6),_0x45917a['commands']['get']('removeTableRow')['refresh'](),_0x45917a['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x45917a['model']['enqueueChange'](()=>{_0x45917a['model']['enqueueChange'](_0x59d47e,_0x415380=>{const _0x2a10d8=_0x3b7fac['filter'](_0x31aad0=>'$graveyard'!=_0x31aad0['root']['rootName']);_0x2a10d8['length']>0x0&&_0x415380['setSelection'](_0x2a10d8);for(const _0x32e7f7 of _0x3b7fac)_0x32e7f7['detach']();});});});}function _0x2538f7(_0x3862dd){_0x45917a['model']['change'](_0x10ee17=>{const _0x573fba=Array['from'](_0x38d832['getRanges']())['map'](_0x477ff1=>_0x3bc28a['fromRange'](_0x477ff1)),_0x42899f=[];for(const _0x2debe5 of _0x3862dd)for(const _0x138f6b of _0x2debe5['getItems']({'shallow':!0x0}))_0x42899f['push'](_0x138f6b);for(const _0x534e1c of _0x42899f)'$graveyard'!=_0x534e1c['root']['rootName']&&(_0x10ee17['setSelection'](_0x10ee17['createPositionAt'](_0x534e1c,0x0)),_0x45917a['commands']['get']('removeTableColumn')['refresh'](),_0x45917a['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x4ea123=_0x573fba['filter'](_0x3ac712=>'$graveyard'!=_0x3ac712['root']['rootName']);_0x4ea123['length']>0x0&&_0x10ee17['setSelection'](_0x4ea123);for(const _0x16175c of _0x573fba)_0x16175c['detach']();});}function _0x591ccf(_0x417a28,_0x1beaa2){return _0x1beaa2['every'](_0x30ae3f=>_0x417a28['some'](_0x31a593=>_0x31a593['end']['isEqual'](_0x30ae3f['start'])||_0x30ae3f['end']['isEqual'](_0x31a593['start'])));}function _0x5780d7(_0x3aa85c,_0x1ca354){return!_0x3aa85c['some'](_0x3240ea=>_0x1ca354['some'](_0x1aec19=>_0x3240ea['isIntersecting'](_0x1aec19)))&&_0x3aa85c['some'](_0x1e6dbe=>_0x1ca354['some'](_0x596d6d=>_0x1e6dbe['end']['isTouching'](_0x596d6d['start'])));}_0x45917a['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x493dc9,_0x18fd74,_0x4e6925)=>{if(!_0x4e6925['options']['showSuggestionHighlights'])return;const _0x170d13=_0x18fd74['item'];if(!_0x170d13)return;const _0x37c055=_0x4e6925['mapper']['toViewElement'](_0x170d13);function _0x30465d(_0x414607){return Array['isArray'](_0x414607)?_0x414607:[_0x414607];}_0x37c055&&'tableCell'===_0x170d13['name']&&_0x4ed66a(_0x37c055,_0x4e6925['writer'],(_0x44c29f,_0x50f40,_0x2bc36f)=>_0x2bc36f['addClass'](_0x30465d(_0x50f40['classes']),_0x44c29f),(_0x1179b4,_0x476891,_0x4238a8)=>_0x4238a8['removeClass'](_0x30465d(_0x476891['classes']),_0x1179b4));},{'priority':'highest'}),_0x1f3a21['descriptionFactory']['registerDescriptionCallback'](_0x4036a3=>{if('insertion'!=_0x4036a3['type']&&'deletion'!=_0x4036a3['type'])return;const _0x86c255=_0x4036a3['getContainedElement']();if(null!=_0x86c255&&_0x86c255['is']('element','table')){if('insertion'==_0x4036a3['type']){const _0x26d272=_0x4036a3['getItems']()['filter'](_0x375124=>_0x375124['is']('$textProxy'))['map'](_0x3e3632=>_0x3e3632['data']);if(_0x26d272['length'])return{'type':'insertion','content':o(_0x1b1d0e,'*Insert:*\x20%0',o(_0x1b1d0e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x26d272['join']('\x20')+'\x22'))};}if('deletion'==_0x4036a3['type']){const _0x532a55=_0x4036a3['getItems']()['filter'](_0x313ac1=>_0x313ac1['is']('$textProxy'))['map'](_0xa54483=>_0xa54483['data']);if(_0x532a55['length'])return{'type':'deletion','content':o(_0x1b1d0e,'*Remove:*\x20%0',o(_0x1b1d0e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x532a55['join']('\x20')+'\x22'))};}}}),_0x1f3a21['descriptionFactory']['registerDescriptionCallback'](_0x3f40ce=>{if('tableRow'==_0x3f40ce['subType']){const _0x44cfea=_0x3f40ce['getItems']()['filter'](_0x2b1691=>_0x2b1691['is']('$textProxy'))['map'](_0x22267d=>_0x22267d['data']),_0x545c8d=this['_getSuggestionCoords'](_0x3f40ce),_0x169558=_0x545c8d['maxRow']-_0x545c8d['minRow']+0x1;if('insertion'==_0x3f40ce['type'])return _0x44cfea['length']?{'type':'insertion','content':o(_0x1b1d0e,'*Insert:*\x20%0',o(_0x1b1d0e,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x169558,'\x22'+_0x44cfea['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1b1d0e,'*Insert:*\x20%0',o(_0x1b1d0e,'ELEMENT_TABLE_ROW',_0x169558))};if('deletion'==_0x3f40ce['type'])return _0x44cfea['length']?{'type':'deletion','content':o(_0x1b1d0e,'*Remove:*\x20%0',o(_0x1b1d0e,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x169558,'\x22'+_0x44cfea['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1b1d0e,'*Remove:*\x20%0',o(_0x1b1d0e,'ELEMENT_TABLE_ROW',_0x169558))};}if('tableColumn'==_0x3f40ce['subType']){const _0x4497ef=_0x3f40ce['getItems']()['filter'](_0x3f8d2c=>_0x3f8d2c['is']('$textProxy'))['map'](_0x542415=>_0x542415['data']),_0x4bcaad=this['_getSuggestionCoords'](_0x3f40ce),_0x58d66c=_0x4bcaad['maxColumn']-_0x4bcaad['minColumn']+0x1;if('insertion'==_0x3f40ce['type'])return _0x4497ef['length']?{'type':'insertion','content':o(_0x1b1d0e,'*Insert:*\x20%0',o(_0x1b1d0e,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x58d66c,'\x22'+_0x4497ef['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1b1d0e,'*Insert:*\x20%0',o(_0x1b1d0e,'ELEMENT_TABLE_COLUMN',_0x58d66c))};if('deletion'==_0x3f40ce['type'])return _0x4497ef['length']?{'type':'deletion','content':o(_0x1b1d0e,'*Remove:*\x20%0',o(_0x1b1d0e,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x58d66c,'\x22'+_0x4497ef['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1b1d0e,'*Remove:*\x20%0',o(_0x1b1d0e,'ELEMENT_TABLE_COLUMN',_0x58d66c))};}}),_0x1f3a21['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x56dbc6),_0x1f3a21['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x56dbc6),_0x1f3a21['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x2538f7),_0x1f3a21['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x2538f7),_0x1f3a21['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x591ccf),_0x1f3a21['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x591ccf),_0x1f3a21['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5780d7),_0x1f3a21['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5780d7);}['_acceptFormatSuggestionCallbackFactory'](){const _0x14366f=this['editor'],_0x18f71b=_0x14366f['model']['document']['selection'];return(_0x2f521c,_0xb6d877)=>{_0x14366f['model']['change'](_0x521394=>{const {commandName:_0x309e2d,commandParams:_0x34eb19}=_0xb6d877;let _0x32758d=_0x2f521c[0x0]['end']['nodeBefore'];_0x34eb19&&_0x34eb19[0x0]&&!0x1===_0x34eb19[0x0]['forceValue']&&(_0x32758d=_0x2f521c[0x0]['start']['nodeAfter']);const _0x4c4d6e=_0x521394['createRangeIn'](_0x32758d);if('$graveyard'==_0x4c4d6e['root']['rootName'])return;const _0x2672ec=Array['from'](_0x18f71b['getRanges']())['map'](_0x3e1dbe=>_0x3bc28a['fromRange'](_0x3e1dbe));_0x521394['setSelection'](_0x4c4d6e),_0x14366f['commands']['get'](_0x309e2d)['refresh'](),_0x34eb19['push']({'forceDefaultExecution':!0x0}),_0x14366f['execute'](_0x309e2d,..._0x34eb19);const _0x505347=_0x2672ec['filter'](_0x12c22f=>'$graveyard'!=_0x12c22f['root']['rootName']);_0x505347['length']>0x0&&_0x521394['setSelection'](_0x505347);for(const _0x19317f of _0x2672ec)_0x19317f['detach']();});};}['_getCoordsForCells'](_0x386d60){const _0x41b0b3=this['editor']['plugins']['get']('TableUtils');let _0x56cc6c=Number['MAX_SAFE_INTEGER'],_0x94dc72=Number['MIN_SAFE_INTEGER'],_0x56d7cb=Number['MAX_SAFE_INTEGER'],_0x35b467=Number['MIN_SAFE_INTEGER'];for(const _0x80a0c6 of _0x386d60){if('$graveyard'==_0x80a0c6['root']['rootName'])continue;const {row:_0x312a35,column:_0x2f81f9}=_0x41b0b3['getCellLocation'](_0x80a0c6),_0x50d779=_0x80a0c6['hasAttribute']('rowspan')?_0x80a0c6['getAttribute']('rowspan')-0x1:0x0,_0x385dd2=_0x80a0c6['hasAttribute']('colspan')?_0x80a0c6['getAttribute']('colspan')-0x1:0x0;_0x56cc6c=_0x312a35<_0x56cc6c?_0x312a35:_0x56cc6c,_0x94dc72=_0x312a35+_0x50d779>_0x94dc72?_0x312a35+_0x50d779:_0x94dc72,_0x56d7cb=_0x2f81f9<_0x56d7cb?_0x2f81f9:_0x56d7cb,_0x35b467=_0x2f81f9+_0x385dd2>_0x35b467?_0x2f81f9+_0x385dd2:_0x35b467;}return{'minRow':_0x56cc6c,'maxRow':_0x94dc72,'minColumn':_0x56d7cb,'maxColumn':_0x35b467};}['_setupColumnsRowsFixing'](){const _0x312ab3=this['editor'],_0x20947a=_0x312ab3['plugins']['get']('TrackChangesEditing'),_0xad62a1=_0x312ab3['plugins']['get']('TableUtils');_0x312ab3['model']['document']['on']('change:data',()=>{const _0x3617d6=Array['from'](_0x312ab3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5b1910,data:_0x2f2e42}of _0x3617d6){const {group:_0x2a190a,id:_0x1a4c88,subType:_0x333b16}=_0x20947a['_splitMarkerName'](_0x5b1910);if('suggestion'!=_0x2a190a)continue;if(null!=_0x2f2e42['oldRange'])continue;const _0xf5da31=_0x20947a['getSuggestion'](_0x1a4c88);this['_tablePostFixingSubtypes']['includes'](_0x333b16)&&this['_tableSuggestions']['add'](_0xf5da31);}},{'priority':'low'});const _0x42b1ff=(_0xe3e0b9,_0x4096d3)=>{let _0x114609=!0x1;const _0x566462=_0x4096d3['createRangeOn'](_0xe3e0b9),_0x22a481=_0xe3e0b9['findAncestor']('table'),_0x5a0057=_0xad62a1['getCellLocation'](_0xe3e0b9);for(const _0x29b9e1 of this['_tableSuggestions']){const _0x9469ab=_0x29b9e1['subType'],_0x439e2c=_0x9469ab['startsWith']('tablePaste'),_0x7cd42=_0x9469ab['substr'](_0x439e2c?0xa:0x5),_0x4271f6=_0x7cd42['toLowerCase'](),_0x23dba3=_0x4271f6['substr'](0x0,0x3)+'span',_0x19e2fd='min'+_0x7cd42,_0x52a0fb='max'+_0x7cd42;if(!_0x29b9e1['isInContent'])continue;if(_0x22a481!=_0x29b9e1['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x29b9e1['isIntersectingWithRange'](_0x566462))continue;const _0x148b73=_0xe3e0b9['hasAttribute'](_0x23dba3)?_0xe3e0b9['getAttribute'](_0x23dba3)-0x1:0x0,_0x506c2c=this['_getSuggestionCoords'](_0x29b9e1),_0x1f8303=_0x506c2c[_0x19e2fd],_0x9d0e91=_0x506c2c[_0x52a0fb];_0x1f8303<=_0x5a0057[_0x4271f6]&&_0x5a0057[_0x4271f6]+_0x148b73<=_0x9d0e91&&(_0x29b9e1['addRange'](_0x566462),_0x114609=!0x0);}return _0x114609;};_0x312ab3['model']['document']['registerPostFixer'](_0x200f32=>{let _0x27cf63=!0x1;for(const _0x31a7a3 of _0x312ab3['model']['document']['differ']['getChanges']())if('insert'==_0x31a7a3['type']){if('tableRow'==_0x31a7a3['name']){for(const _0x45cfad of _0x31a7a3['position']['nodeAfter']['getChildren']())_0x27cf63=_0x27cf63||_0x42b1ff(_0x45cfad,_0x200f32);}else'tableCell'==_0x31a7a3['name']&&(_0x27cf63=_0x27cf63||_0x42b1ff(_0x31a7a3['position']['nodeAfter'],_0x200f32));}return _0x27cf63;});}['_getSuggestionCoords'](_0x12e506){return this['_getCoordsForCells'](_0x12e506['getRanges']()['map'](_0x4ab8cb=>_0x4ab8cb['start']['nodeAfter']));}}function be(_0x15c851){return Array['from'](new Set(_0x15c851)['values']());}class vt extends _0x48c5b5{static get['requires'](){return[It];}['afterInit'](){const _0x42d94f=this['editor'],_0x34be34=_0x42d94f['model']['document']['selection'],_0x4f5afa=_0x42d94f['locale'];if(!_0x42d94f['plugins']['has']('TableEditing'))return;const _0x16652f=_0x42d94f['plugins']['get']('TrackChangesEditing'),_0x584ce1=_0x42d94f['plugins']['get']('TableUtils'),_0x2deddf=_0x42d94f['plugins']['get'](It);_0x2deddf['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x16652f['enableCommand']('mergeTableCells',()=>{const _0x57376c=_0x584ce1['getSelectionAffectedTableCells'](_0x42d94f['model']['document']['selection']);_0x42d94f['model']['change'](()=>{_0x16652f['markMultiRangeBlockFormat'](_0x57376c,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x42d94f['commands']['get']('mergeTableCells')['on']('execute',(_0x52c52b,_0x58684)=>{_0x42d94f['commands']['get']('trackChanges')['value']&&(_0x58684['length']>0x0&&_0x58684[_0x58684['length']-0x1]&&_0x58684[_0x58684['length']-0x1]['forceDefaultExecution']||_0x16652f['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x52c52b['stop']());},{'priority':'highest'});for(const _0x5b6b5d of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x3587d2=_0x42d94f['commands']['get'](_0x5b6b5d);_0x16652f['enableCommand'](_0x5b6b5d,()=>{const _0x4e7ef5=_0x42d94f['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x13d8ab=>_0x13d8ab['is']('element','tableCell')),_0x117e05=_0x3587d2['value'];_0x42d94f['model']['change'](()=>{_0x16652f['markMultiRangeBlockFormat']([_0x4e7ef5,_0x117e05],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x9fc505 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x28878b=_0x42d94f['commands']['get'](_0x9fc505);_0x16652f['enableCommand'](_0x9fc505,()=>{const _0xec74ea=_0x584ce1['getSelectionAffectedTableCells'](_0x42d94f['model']['document']['selection'])[0x0],_0xb9a8c8=_0xec74ea['findAncestor']('table'),{column:_0x57a140,row:_0x1f6ec6}=_0x584ce1['getCellLocation'](_0xec74ea);let _0x596ffb=[];if('horizontally'==_0x28878b['direction']){const _0x53bc38=_0x584ce1['createTableWalker'](_0xb9a8c8,{'startRow':_0x1f6ec6,'endRow':_0x1f6ec6,'includeAllSlots':!0x0});_0x596ffb=Array['from'](_0x53bc38)['map'](_0x2d9ac6=>_0x2d9ac6['cell']);}else{const _0x2910ea=_0x584ce1['createTableWalker'](_0xb9a8c8,{'column':_0x57a140,'includeAllSlots':!0x0});_0x596ffb=Array['from'](_0x2910ea)['map'](_0x2e8858=>_0x2e8858['cell']);}_0x42d94f['model']['change'](_0x536303=>{_0x16652f['markBlockFormat'](_0x536303['createRangeOn'](_0xec74ea),{'commandName':_0x9fc505,'commandParams':[]},_0x596ffb,_0x9fc505);});});}_0x16652f['descriptionFactory']['registerDescriptionCallback'](_0x3c1030=>{if('formatBlock'!=_0x3c1030['type']&&'formatInline'!=_0x3c1030['type'])return;const {data:_0x3b8476}=_0x3c1030;return _0x3b8476&&'mergeTableCells'==_0x3b8476['commandName']?{'type':'format','content':o(_0x4f5afa,'*Merge\x20cells*')}:void 0x0;}),_0x16652f['descriptionFactory']['registerDescriptionCallback'](_0x31a8f7=>{if('formatBlock'!=_0x31a8f7['type']&&'formatInline'!=_0x31a8f7['type'])return;const {data:_0x2571b7}=_0x31a8f7;return _0x2571b7?'splitTableCellVertically'==_0x2571b7['commandName']?{'type':'format','content':o(_0x4f5afa,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2571b7['commandName']?{'type':'format','content':o(_0x4f5afa,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x504006=_0x2deddf['_acceptFormatSuggestionCallbackFactory']();for(const _0x5e60e7 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x16652f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5e60e7,'accept',_0x504006);for(const _0x3595de of['splitTableCellVertically','splitTableCellHorizontally'])_0x16652f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3595de,'accept',_0x504006);_0x16652f['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0xff0d12=>{_0x42d94f['model']['change'](_0x586287=>{const _0x189a5a=Array['from'](_0x34be34['getRanges']())['map'](_0x54b62d=>_0x3bc28a['fromRange'](_0x54b62d));_0x586287['setSelection'](_0xff0d12),_0x42d94f['commands']['get']('mergeTableCells')['refresh'](),_0x42d94f['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3e5dcf=_0x189a5a['filter'](_0x1e0578=>'$graveyard'!=_0x1e0578['root']['rootName']);_0x3e5dcf['length']>0x0&&_0x586287['setSelection'](_0x3e5dcf);for(const _0x5be302 of _0x189a5a)_0x5be302['detach']();});});for(const _0x5a2850 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5d882c=_0x42d94f['commands']['get'](_0x5a2850);_0x5d882c['on']('set:isEnabled',(_0x43c9b8,_0x4955bc,_0x2c5f95)=>{if(_0x2c5f95){const _0x156e93=_0x42d94f['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x11b312=>_0x11b312['is']('element','tableCell'));this['_areMergableCells'](_0x5d882c['value'],_0x156e93)||(_0x43c9b8['return']=!0x1,_0x43c9b8['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x422b25=this['editor']['commands']['get']('mergeTableCells'),_0x5ca83e=this['editor']['plugins']['get']('TableUtils');if(!_0x422b25['isEnabled'])return!0x1;const _0x430b48=_0x5ca83e['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x21844e of _0x430b48)for(const _0x5783cf of _0x430b48)if(_0x21844e!=_0x5783cf&&!this['_areMergableCells'](_0x21844e,_0x5783cf))return!0x1;return!0x0;}['_areMergableCells'](_0x101d98,_0x4bc7b2){const _0x1dfb7b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3686ce=this['editor']['model']['createRangeOn'](_0x101d98),_0xc0a89a=this['editor']['model']['createRangeOn'](_0x4bc7b2),_0x125caf=new Set(),_0x3fbe46=new Set();for(const _0x2a1a46 of _0x1dfb7b['getSuggestions']())if(('insertion'==_0x2a1a46['type']||'deletion'==_0x2a1a46['type']||'mergeTableCells'==_0x2a1a46['subType'])&&_0x2a1a46['isInContent']){for(const _0x5469d7 of _0x2a1a46['getRanges']())_0x5469d7['containsRange'](_0x3686ce,!0x0)&&_0x125caf['add'](_0x2a1a46['type']+':'+_0x2a1a46['author']['id']),_0x5469d7['containsRange'](_0xc0a89a,!0x0)&&_0x3fbe46['add'](_0x2a1a46['type']+':'+_0x2a1a46['author']['id']);}if(_0x125caf['size']!=_0x3fbe46['size'])return!0x1;for(const _0x371027 of _0x125caf)if(!_0x3fbe46['has'](_0x371027))return!0x1;return!0x0;}}class Ct extends _0x48c5b5{static get['requires'](){return[It];}['afterInit'](){const _0x194f8c=this['editor'];if(!_0x194f8c['plugins']['has']('TableEditing'))return;const _0x5ed19b=_0x194f8c['locale'],_0x137a39=_0x194f8c['plugins']['get']('TrackChangesEditing');_0x137a39['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x137a39['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x137a39['registerBlockAttribute']('headingRows'),_0x137a39['registerBlockAttribute']('headingColumns'),_0x137a39['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x5ed19b,'FORMAT_HEADER_ROW')),_0x137a39['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x5ed19b,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x27a947=this['editor']['plugins']['get']('TrackChangesEditing'),_0x476398=this['editor']['plugins']['get']('TableUtils'),_0x236ddd=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x451b9d({showActiveMarker:_0x46e84c=!0x0,setDataAttribute:_0x2a15af=!0x0}={}){return(_0x416665,_0x1129a8,_0x12f293)=>{const {type:_0x3f90bd,id:_0x497eee}=_0x27a947['_splitMarkerName'](_0x1129a8['markerName']),_0x474396=_0x27a947['getSuggestion'](_0x497eee),_0x594977=_0x474396['data'];if('formatBlock'!=_0x474396['type']||!_0x594977||'setTableColumnHeader'!=_0x594977['commandName'])return;if(_0x1129a8['item'])return void _0x416665['stop']();if(!_0x12f293['consumable']['consume'](_0x1129a8['markerRange'],_0x416665['name']))return;const _0x45e06b=_0x1129a8['markerRange']['start']['nodeAfter'],_0xf0464b=_0x1129a8['markerRange']['end']['nodeBefore'],_0x3b9d8e=_0x45e06b['parent']['parent'],{column:_0x104f1b}=_0x476398['getCellLocation'](_0x45e06b),{column:_0x86f2a6}=_0x476398['getCellLocation'](_0xf0464b);for(let _0x3ff5fe=_0x104f1b;_0x3ff5fe<=_0x86f2a6;_0x3ff5fe++){const _0x2f6988=_0x476398['createTableWalker'](_0x3b9d8e,{'column':_0x3ff5fe,'includeAllSlots':!0x1});for(const _0x433485 of _0x2f6988){const _0x1e613d=_0x433485['cell'],_0x1abfc4=_0x12f293['mapper']['toViewElement'](_0x1e613d);_0x12f293['writer']['addClass']('ck-suggestion-marker-'+_0x3f90bd,_0x1abfc4),_0x2a15af&&_0x12f293['writer']['setAttribute']('data-suggestion',_0x497eee,_0x1abfc4),_0x12f293['mapper']['bindElementToMarker'](_0x1abfc4,_0x1129a8['markerName']),_0x46e84c&&(_0x27a947['activeMarkers']['includes'](_0x1129a8['markerName'])?_0x12f293['writer']['addClass']('ck-suggestion-marker--active',_0x1abfc4):_0x12f293['writer']['removeClass']('ck-suggestion-marker--active',_0x1abfc4));}}};}_0x27a947['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x236ddd),_0x27a947['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x236ddd),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x451b9d(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1ce7c2,_0x214a3b,_0x5da2b0)=>{_0x5da2b0['options']['showSuggestionHighlights']&&_0x451b9d({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1ce7c2,_0x214a3b,_0x5da2b0);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x3592c1,_0x1d7e56,_0x3b8426)=>{const {type:_0x2bc34e,id:_0x460757}=_0x27a947['_splitMarkerName'](_0x1d7e56['markerName']),_0x9f0bf5=_0x27a947['getSuggestion'](_0x460757),_0x434707=_0x9f0bf5['data'];if('formatBlock'!=_0x9f0bf5['type']||!_0x434707||'setTableColumnHeader'!=_0x434707['commandName'])return;const _0x33929a=_0x3b8426['mapper']['markerNameToElements'](_0x1d7e56['markerName']);if(_0x33929a){for(const _0x1b9e10 of _0x33929a)_0x3b8426['writer']['removeClass']('ck-suggestion-marker-'+_0x2bc34e,_0x1b9e10),_0x3b8426['writer']['removeClass']('ck-suggestion-marker--active',_0x1b9e10),_0x3b8426['writer']['removeAttribute']('data-suggestion',_0x1b9e10),_0x3b8426['mapper']['unbindElementFromMarkerName'](_0x1b9e10,_0x1d7e56['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2269f8=this['editor'],_0x175328=_0x2269f8['locale'];function _0x4e8272(_0x24be00){return{'type':'format','content':o(_0x175328,'*Format:*\x20%0',_0x24be00)};}_0x2269f8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a4069=>{if('formatBlock'!=_0x5a4069['type'])return;const {data:_0x1a5db8}=_0x5a4069;if(_0x1a5db8){if('setTableRowHeader'==_0x1a5db8['commandName']){const _0x59f84=_0x1a5db8['commandParams'][0x0]['forceValue'];return _0x4e8272(o(_0x175328,_0x59f84?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1a5db8['commandName']){const _0x3a283a=_0x1a5db8['commandParams'][0x0]['forceValue'];return _0x4e8272(o(_0x175328,_0x3a283a?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x28b441=>[_0x28b441,null]));class _t extends _0x48c5b5{static get['requires'](){return[It];}['afterInit'](){const _0x4bc24e=this['editor'];if(!_0x4bc24e['plugins']['has']('TableClipboard'))return;const _0x7c24dd=_0x4bc24e['plugins']['get']('TrackChangesEditing'),_0x3dafb5=_0x4bc24e['plugins']['get']('TableUtils'),_0x4dbd4e=_0x4bc24e['plugins']['get'](It),_0x76dc5c=_0x4bc24e['plugins']['get']('TableClipboard');_0x4dbd4e['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x4bc24e['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x4bc24e['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2827c7=null;_0x4bc24e['model']['on']('insertContent',(_0x5bdf37,_0xedaaa5)=>{const [_0x11ebaa,_0x52a4b9]=_0xedaaa5,_0x288b7d=_0xedaaa5[_0xedaaa5['length']-0x1];_0x288b7d&&_0x288b7d['forceDefaultExecution']||_0x7c24dd['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0xa39e75,_0x2a17dc,_0x33c1c1,_0xf12567,_0x1c2135){if(_0x2a17dc&&!_0x2a17dc['is']('documentSelection'))return!0x1;const _0x53fa53=_0x1c2135['getTableIfOnlyTableInContent'](_0xa39e75,_0x33c1c1);if(!_0x53fa53||!Re(_0x53fa53,void 0x0,_0xf12567))return!0x1;const _0x243068=_0xf12567['getSelectionAffectedTableCells'](_0x33c1c1['document']['selection']);if(!_0x243068['length'])return!0x1;const _0x63315=_0x243068[0x0]['findAncestor']('table'),_0x3da1dc=_0xf12567['getRowIndexes'](_0x243068),_0x1f2eed=_0xf12567['getColumnIndexes'](_0x243068),_0x2fe1cc={'startRow':_0x3da1dc['first'],'endRow':_0x3da1dc['last'],'startColumn':_0x1f2eed['first'],'endColumn':_0x1f2eed['last']};return 0x1==_0x243068['length']&&(_0x2fe1cc['endRow']+=_0xf12567['getRows'](_0x53fa53)-0x1,_0x2fe1cc['endColumn']+=_0xf12567['getColumns'](_0x53fa53)-0x1),Re(_0x63315,_0x2fe1cc,_0xf12567);}(_0x11ebaa,_0x52a4b9,_0x4bc24e['model'],_0x3dafb5,_0x76dc5c)&&(_0x5bdf37['stop'](),_0x2827c7={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4bc24e['model']['change'](()=>{_0x4bc24e['model']['insertContent'](_0xedaaa5[0x0],_0xedaaa5[0x1],_0xedaaa5[0x2],{'forceDefaultExecution':!0x0});const _0x5663ad=_0x5790ee(),{rowInsertionRanges:_0x2669df,columnInsertionRanges:_0x1c7ba3,insertionRanges:_0x2321f5,deletionRanges:_0x222067,cells:_0x2e9415}=_0x2827c7;_0x2669df['length']&&_0x7c24dd['markMultiRangeInsertion'](_0x2669df,'tablePasteRow',{'tablePasteChainId':_0x5663ad}),_0x1c7ba3['length']&&_0x7c24dd['markMultiRangeInsertion'](_0x1c7ba3,'tablePasteColumn',{'tablePasteChainId':_0x5663ad}),_0x2321f5['length']&&(_0x7c24dd['markMultiRangeInsertion'](_0x2321f5,'tablePaste',{'tablePasteChainId':_0x5663ad,'skipNestingCheck':!0x0}),_0x2321f5['forEach'](_0x3dcda2=>_0x3dcda2['detach']?.())),_0x222067['length']&&(_0x7c24dd['markMultiRangeDeletion'](_0x222067,'tablePaste',{'tablePasteChainId':_0x5663ad,'skipNestingCheck':!0x0}),_0x222067['forEach'](_0x136fe7=>_0x136fe7['detach']?.()));const _0x4bf971=_0x7c24dd['markMultiRangeBlockFormat'](_0x2e9415['map'](({element:_0xc07f29})=>_0xc07f29),{'formatGroupId':_0x5790ee()},[],'tablePasteCell',{'tablePasteChainId':_0x5663ad});if(_0x4bf971){const _0x4c510f=_0x4bf971['getMarkers'](),_0x469026=[];for(const {element:_0x2ba93c,attributes:_0x517655}of _0x2e9415){if(!_0x517655)continue;const _0x351068=_0x4bc24e['model']['createRangeOn'](_0x2ba93c),_0x1af9b1=_0x4c510f['find'](_0x294609=>_0x294609['getRange']()['isEqual'](_0x351068));_0x1af9b1&&_0x469026['push']([_0x1af9b1['name'],_0x517655]);}_0x469026['length']&&_0x4bf971['setAttribute']('markerAttributes',Object['fromEntries'](_0x469026));}_0x2827c7=null;}));},{'priority':_0x3ff64e['high']+0xa}),_0x4bc24e['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0xa97bf,_0x5d7414)=>{const [_0x4ea10c,_0x2aad33,,_0x573312]=_0x5d7414;if(!_0x2827c7)return;_0xa97bf['stop']();const _0x35cbc7=_0x4ea10c['cell'],_0x4472d7=_0x2aad33,_0xcb3d95=ke(_0x35cbc7),_0x46a5e9=ke(_0x4472d7);_0xa97bf['return']=_0x35cbc7;let _0x10c4b2=null,_0x238952=null;if(_0x46a5e9||_0xcb3d95){if(_0xcb3d95&&!_0x46a5e9){_0x573312['remove'](_0x35cbc7['getChild'](0x0));for(const _0x7b000a of Array['from'](_0x4472d7['getChildren']()))_0x573312['insert'](_0x7b000a,_0x35cbc7,'end');const _0x518f2b=_0x2827c7['rowInsertionIndexes']['includes'](_0x4ea10c['row']),_0x304d41=_0x2827c7['columnInsertionIndexes']['includes'](_0x4ea10c['column']);_0x518f2b||_0x304d41||(_0x10c4b2=_0x3bc28a['fromRange'](_0x573312['createRangeIn'](_0x35cbc7)));}else _0x46a5e9&&!_0xcb3d95&&(_0x238952=_0x573312['createRangeIn'](_0x35cbc7));}else{const _0x898933=_0x573312['createElement']('tableCellSuggestion'),_0x1f77fc=_0x573312['createElement']('tableCellSuggestion');_0x573312['wrap'](_0x573312['createRangeIn'](_0x35cbc7),_0x1f77fc),_0x573312['insert'](_0x898933,_0x35cbc7,0x0);for(const _0x5582e0 of Array['from'](_0x4472d7['getChildren']()))_0x573312['insert'](_0x5582e0,_0x898933,'end');_0x10c4b2=_0x3bc28a['fromRange'](_0x573312['createRangeOn'](_0x898933)),_0x238952=_0x3bc28a['fromRange'](_0x573312['createRangeOn'](_0x1f77fc));}const _0x417274=Array['from'](_0x4472d7['getAttributes']())['filter'](([_0x43fb50])=>Pe['includes'](_0x43fb50));_0x2827c7['cells']['push']({'element':_0x35cbc7,'attributes':_0x417274['length']?Object['fromEntries'](_0x417274):null}),_0x10c4b2&&_0x2827c7['insertionRanges']['push'](_0x10c4b2),_0x238952&&_0x2827c7['deletionRanges']['push'](_0x238952);},{'priority':'high'}),_0x3dafb5['on']('insertColumns',(_0x50d90d,_0x50d8eb)=>{const [_0x5d6800,_0x4556d1={}]=_0x50d8eb;if(!_0x2827c7)return;const _0x304f9e=_0x4556d1['at']||0x0,_0x51b3fa=_0x4556d1['columns']||0x1;_0x2827c7['columnInsertionIndexes']=new Array(_0x51b3fa)['fill'](_0x304f9e)['map']((_0x4d80f4,_0x911b9d)=>_0x4d80f4+_0x911b9d);for(const {cell:_0xa0ae12}of _0x3dafb5['createTableWalker'](_0x5d6800,{'startColumn':_0x304f9e,'endColumn':_0x304f9e+_0x51b3fa-0x1}))_0x2827c7['columnInsertionRanges']['push'](_0x4bc24e['model']['createRangeOn'](_0xa0ae12));},{'priority':'low'}),_0x3dafb5['on']('insertRows',(_0xd37815,_0x53225c)=>{const [_0x5f4910,_0x47dd68={}]=_0x53225c;if(!_0x2827c7)return;const _0x2148dd=_0x47dd68['at']||0x0,_0x2912fa=_0x47dd68['rows']||0x1;_0x2827c7['rowInsertionIndexes']=new Array(_0x2912fa)['fill'](_0x2148dd)['map']((_0x552894,_0x3b438b)=>_0x552894+_0x3b438b);for(const {cell:_0x9ea16b}of _0x3dafb5['createTableWalker'](_0x5f4910,{'startRow':_0x2148dd,'endRow':_0x2148dd+_0x2912fa-0x1}))_0x2827c7['rowInsertionRanges']['push'](_0x4bc24e['model']['createRangeOn'](_0x9ea16b));},{'priority':'low'}),_0x7c24dd['descriptionFactory']['registerDescriptionCallback'](_0x2a2132=>{if(_0x2a2132['subType']&&_0x2a2132['subType']['startsWith']('tablePaste'))return _0x2a2132['previous']?{}:{'type':'insertion','content':o(_0x4bc24e['locale'],'*Replace\x20table\x20cells*')};});const _0x5a761f=()=>!0x1;for(const _0xd1a4f2 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x7c24dd['_suggestionFactory']['registerCustomCallback']('insertion',_0xd1a4f2,'join',_0x5a761f),_0x7c24dd['_suggestionFactory']['registerCustomCallback']('deletion',_0xd1a4f2,'join',_0x5a761f),_0x7c24dd['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xd1a4f2,'join',_0x5a761f);_0x7c24dd['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x5a761f),_0x7c24dd['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x37dd4e,_0x476bac,_0x1cb1fa)=>{const _0x5bb305=_0x37dd4e['map'](_0x429316=>_0x429316['getContainedElement']())['filter'](_0x515776=>_0x515776),_0xa194d0=new Map(_0x5bb305['map'](_0x2ccc77=>[_0x2ccc77,null]));if(_0x2827c7){for(const {element:_0x4702f4,attributes:_0x246d6a}of _0x2827c7['cells'])_0x246d6a&&_0xa194d0['set'](_0x4702f4,_0x246d6a);}else{if(_0x1cb1fa&&_0x1cb1fa['markerAttributes'])for(const [_0x5ebb6e,_0x56c3d7]of Object['entries'](_0x1cb1fa['markerAttributes'])){const _0x33899d=_0x4bc24e['model']['markers']['get'](_0x5ebb6e),_0x321d69=_0x33899d?_0x33899d['getRange']()['getContainedElement']():null;_0x321d69&&_0xa194d0['set'](_0x321d69,_0x56c3d7);}}_0x4bc24e['model']['change'](_0x41c790=>{for(const [_0x44dcd8,_0x52e921]of _0xa194d0)_0x41c790['setAttributes']({...we,..._0x52e921},_0x44dcd8);});});const _0x7984d7=(_0x3e3511,_0x2a8689)=>{_0x7c24dd['_suggestionFactory']['registerCustomCallback'](_0x3e3511,'tablePaste',_0x2a8689,(_0x388932,_0x1a913c,_0x1f649b)=>{_0x4bc24e['model']['change'](_0x479c42=>{const _0x411bf3=[];for(const _0x4ad8ca of _0x388932){const _0x42b56a=_0x4ad8ca['start']['nodeAfter'];_0x42b56a['is']('element','tableCellSuggestion')&&_0x411bf3['push'](_0x42b56a);}_0x7c24dd['_suggestionFactory']['getSuggestionCallback'](_0x3e3511,null,_0x2a8689)(_0x388932,_0x1a913c,_0x1f649b);for(const _0x2bb9f2 of _0x411bf3)'$graveyard'!=_0x2bb9f2['root']['rootName']&&_0x479c42['unwrap'](_0x2bb9f2);});});};_0x7984d7('insertion','accept'),_0x7984d7('insertion','discard'),_0x7984d7('deletion','accept'),_0x7984d7('deletion','discard'),_0x7c24dd['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1ef5e0=>{const _0x41abaa=_0x1ef5e0['map'](_0x5500d1=>_0x5500d1['getContainedElement']()),_0x407f78=_0x41abaa[0x0]['findAncestor']('table'),{minRow:_0x78dd8c,maxRow:_0x44c2f3}=_0x4dbd4e['_getCoordsForCells'](_0x41abaa);_0x3dafb5['removeRows'](_0x407f78,{'at':_0x78dd8c,'rows':_0x44c2f3-_0x78dd8c+0x1});}),_0x7c24dd['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x2f088d=>{const _0x1f0b11=_0x2f088d['map'](_0x1742a3=>_0x1742a3['getContainedElement']()),_0x302d8f=_0x1f0b11[0x0]['findAncestor']('table'),{minColumn:_0x417f6f,maxColumn:_0xc8372b}=_0x4dbd4e['_getCoordsForCells'](_0x1f0b11);_0x3dafb5['removeColumns'](_0x302d8f,{'at':_0x417f6f,'columns':_0xc8372b-_0x417f6f+0x1});});const _0x181f61=(_0x31a976,_0xe1ea3a)=>{if(!_0xe1ea3a['subType']||!_0xe1ea3a['subType']['startsWith']('tablePaste'))return;const _0x49a77b=_0xe1ea3a['attributes']['tablePasteChainId'],_0x31ee87=_0x7c24dd['getSuggestions']()['filter'](_0x493113=>_0x493113['isInContent']&&_0x493113['attributes']&&_0x493113['attributes']['tablePasteChainId']==_0x49a77b);_0x31ee87['length']&&_0xe1ea3a['getAllAdjacentSuggestions']()['length']!=_0x31ee87['length']&&_0x31ee87['reduce']((_0x445913,_0x31216f)=>(_0x445913['next']=_0x31216f,_0x31216f['previous']=_0x445913,_0x31216f));};function _0x54640a(_0x1da889,_0x577d9f=!0x0){const {id:_0x3b1e16,authorId:_0x4b35a8}=_0x7c24dd['_splitMarkerName'](_0x1da889['markerName']),_0x40e842=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1dc435=_0x7c24dd['activeMarkers']['includes'](_0x1da889['markerName']);return _0x1dc435&&_0x40e842['push']('ck-suggestion-marker--active'),{'classes':_0x40e842,'attributes':{'data-suggestion':_0x3b1e16,'data-author-id':_0x4b35a8},'priority':_0x1dc435&&_0x577d9f?0xbc2:0xbb8};}_0x7c24dd['on']('suggestionLoaded',_0x181f61,{'priority':'high'}),_0x7c24dd['on']('suggestionUnloaded',_0x181f61,{'priority':'high'}),_0x4bc24e['model']['document']['registerPostFixer'](()=>{let _0x31e6be=!0x1;const _0x1bcc8f=Array['from'](_0x4bc24e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x246e95,data:_0x23c1a1}of _0x1bcc8f){const {group:_0x544991,type:_0xb00fdc,id:_0x57ffca}=_0x7c24dd['_splitMarkerName'](_0x246e95);if('suggestion'!=_0x544991||'deletion'!=_0xb00fdc||_0x23c1a1['oldRange'])continue;if(!_0x7c24dd['hasSuggestion'](_0x57ffca))continue;const _0x27305b=_0x7c24dd['getSuggestion'](_0x57ffca)['getRanges'](),_0x2cce0e=_0x4bc24e['plugins']['get']('Users')['me'];for(const _0x2ad4b2 of _0x7c24dd['getSuggestions']()){if(!_0x2ad4b2['isInContent']||_0x2ad4b2['author']!=_0x2cce0e)continue;if('formatBlock'!=_0x2ad4b2['type']||'tablePasteCell'!=_0x2ad4b2['subType'])continue;if(_0x2ad4b2['getRanges']()['every'](_0x44efe7=>_0x27305b['some'](_0x1dfb10=>_0x1dfb10['containsRange'](_0x44efe7,!0x0)))){for(const _0x2c2c9b of _0x2ad4b2['getAllAdjacentSuggestions']())_0x2c2c9b['isInContent']&&(_0x2c2c9b['discard'](),_0x31e6be=!0x0);}}}return _0x31e6be;}),_0x4bc24e['model']['document']['registerPostFixer'](_0xea12f0=>{const _0x371434=_0x4bc24e['commands']['get']('redo');if(!_0x371434||!_0x371434['_createdBatches']['has'](_0xea12f0['batch']))return!0x1;let _0x15616a=!0x1;const _0x15327a=_0x4bc24e['plugins']['get']('Users')['me'],_0x15ad41=_0x4bc24e['model']['document']['differ']['getChanges'](),_0x328d96=Array['from'](_0x4bc24e['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x475dfb,data:_0x5507c8})=>{const {group:_0x93f67d,subType:_0x143c51,authorId:_0x32e0b5}=_0x7c24dd['_splitMarkerName'](_0x475dfb);return'suggestion'==_0x93f67d&&'tablePaste'==_0x143c51&&_0x32e0b5==_0x15327a['id']&&!_0x5507c8['oldRange'];});for(const _0x2c2a25 of _0x15ad41){if('insert'!=_0x2c2a25['type']||'tableCellSuggestion'!=_0x2c2a25['name']||0x1!=_0x2c2a25['length'])continue;const _0x3bc476=_0xea12f0['createRange'](_0x2c2a25['position'],_0x2c2a25['position']['getShiftedBy'](0x1));if(!_0x328d96['find'](({data:_0x2ba416})=>_0x2ba416['newRange']['isEqual'](_0x3bc476))){for(const {name:_0x35f43a,data:_0x3f7a7e}of _0x328d96)if(_0x3bc476['containsRange'](_0x3f7a7e['newRange'])){_0xea12f0['updateMarker'](_0x35f43a,{'range':_0x3bc476}),_0x15616a=!0x0;break;}}}return _0x15616a;}),_0x4bc24e['model']['document']['registerPostFixer'](_0x4c7eea=>{let _0x4904bd=!0x1;const _0x189ef9=_0x4bc24e['plugins']['get']('Users')['me'],_0x5d18c3=_0x7c24dd['getSuggestions']()['filter'](_0x426a77=>_0x426a77['isInContent']&&_0x426a77['author']==_0x189ef9),_0x38f94f=new Set(),_0x47aa6b=new Set();for(const _0x23f22e of _0x5d18c3)if('tablePaste'==_0x23f22e['subType'])for(const _0x13393c of _0x23f22e['getMarkers']()){const _0x25879f=_0x13393c['getRange']()['getContainedElement']();if(_0x25879f){if(_0x25879f['is']('element','tableCellSuggestion')&&ke(_0x25879f)){_0x23f22e['removeMarker'](_0x13393c['name']),_0x38f94f['add'](_0x25879f),_0x4904bd=!0x0;const _0x2a9b37=_0x25879f['nextSibling'],_0x1a2828=_0x25879f['previousSibling'],_0x1044d0=_0x2a9b37&&_0x2a9b37['is']('element','tableCellSuggestion'),_0x3b887f=_0x1a2828&&_0x1a2828['is']('element','tableCellSuggestion');_0x1044d0&&!_0x38f94f['has'](_0x2a9b37)&&_0x47aa6b['add'](_0x2a9b37),_0x3b887f&&!_0x38f94f['has'](_0x1a2828)&&_0x47aa6b['add'](_0x1a2828);}else _0x25879f['is']('element','paragraph')&&_0x25879f['isEmpty']&&(_0x23f22e['removeMarker'](_0x13393c['name']),_0x4904bd=!0x0);}}else{if('tablePasteCell'==_0x23f22e['subType']){if(!_0x23f22e['attributes']||!_0x23f22e['attributes']['tablePasteChainId'])continue;const _0x5e2946=_0x23f22e['attributes']['markerAttributes'];if(_0x5e2946&&Object['keys'](_0x5e2946)['length'])continue;const _0x1f7aee=_0x23f22e['attributes']['tablePasteChainId'];let _0x111404=!0x0,_0x58391d=!0x0;for(const _0x50c319 of _0x5d18c3)if(_0x50c319['subType']&&_0x50c319['subType']['startsWith']('tablePaste')){if(!_0x50c319['attributes']['tablePasteChainId']){_0x58391d=!0x1;break;}if(_0x50c319['id']!=_0x23f22e['id']&&_0x50c319['attributes']['tablePasteChainId']==_0x1f7aee){_0x111404=!0x1;break;}}_0x58391d&&_0x111404&&(_0x23f22e['removeMarkers'](),_0x4904bd=!0x0);}}for(const _0x5f80b1 of _0x38f94f)_0x4c7eea['remove'](_0x5f80b1);for(const _0xd1c899 of _0x47aa6b)_0x4c7eea['unwrap'](_0xd1c899);return _0x4904bd;}),_0x4bc24e['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x1cae4e=>_0x54640a(_0x1cae4e),'converterPriority':'high'}),_0x4bc24e['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4b0f4e,_0x4b6435)=>_0x4b6435['options']['showSuggestionHighlights']?_0x54640a(_0x4b0f4e,!0x1):null,'converterPriority':'high'});const _0x5b7ed5=_0x4bc24e['editing']['view'];this['listenTo'](_0x5b7ed5['document'],'clipboardOutput',(_0x465383,_0x1be5ac)=>{const _0x4128ef=[];for(const _0x3a029e of _0x5b7ed5['createRangeIn'](_0x1be5ac['content'])['getItems']())_0x3a029e['is']('element','suggestion-td')&&_0x4128ef['push'](_0x3a029e);_0x5b7ed5['change'](_0x5bf5b9=>{for(const _0x5d9d46 of _0x4128ef)_0x5bf5b9['move'](_0x5bf5b9['createRangeIn'](_0x5d9d46),_0x5bf5b9['createPositionBefore'](_0x5d9d46)),_0x5bf5b9['remove'](_0x5d9d46);});});}}function ke(_0x21781){if(_0x21781['isEmpty'])return!0x0;const _0x4f487d=_0x21781['getChild'](0x0);return _0x4f487d['is']('element','paragraph')&&_0x4f487d['isEmpty'];}function Re(_0xe3e6b7,_0x13f41d={},_0x5b4324){for(const {isAnchor:_0x4893ca,cellHeight:_0x1ca8a0,cellWidth:_0xc208ee}of _0x5b4324['createTableWalker'](_0xe3e6b7,{'includeAllSlots':!0x0,..._0x13f41d}))if(!_0x4893ca||0x1!=_0x1ca8a0||0x1!=_0xc208ee)return!0x1;return!0x0;}class Nt extends _0x48c5b5{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x42ea6e=this['editor']['plugins']['get']('TrackChangesEditing');_0x42ea6e['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x42ea6e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x42ea6e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x42ea6e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x42ea6e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x42ea6e['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x12ae0e,_0x4bc84c){const _0x3d232b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2ba8be=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4ea60a=_0x4bc84c['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0xec4135=_0x2ba8be['getColumnGroupElement'](_0x4ea60a);let _0x25f845=_0xec4135?_0x2ba8be['getTableColumnsWidths'](_0xec4135):null,_0x5be1aa=_0x4ea60a['getAttribute']('tableWidth')||null;const _0x6795f4=_0x4bc84c['tableWidth']||_0x5be1aa,_0xb34b56=_0x4bc84c['columnWidths']||_0x25f845,_0x4d65ad=this['editor']['plugins']['get']('Users')['me'];for(const _0x314977 of _0x3d232b['getSuggestions']()){const _0x164e40=_0x314977['getContainedElement']();if('resizeTable'===_0x314977['subType']&&_0x164e40===_0x4ea60a){_0x314977['author']!==_0x4d65ad&&_0x314977['discard']();const _0x4d5035=_0x314977['data']['commandParams'];_0x5be1aa=_0x4d5035[0x0]['tableWidth'],_0x25f845=_0x4d5035[0x0]['columnWidths'];break;}}_0x12ae0e({'table':_0x4ea60a,'tableWidth':_0x6795f4,'columnWidths':_0xb34b56}),_0x3d232b['markBlockFormat'](_0x4ea60a,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5be1aa,'columnWidths':_0x25f845}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x50b11b){if('formatBlock'!=_0x50b11b['type']&&'formatInline'!=_0x50b11b['type'])return;const {data:_0x5055b6}=_0x50b11b;if(_0x5055b6&&'resizeTable'===_0x5055b6['formatGroupId']){const _0x4a24c7='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x4a24c7)};}}}class Dt extends _0x48c5b5{['afterInit'](){const _0xd4ae79=this['editor'];_0xd4ae79['plugins']['has']('Template')&&_0xd4ae79['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x48c5b5{['afterInit'](){const _0x4108bb=this['editor'];if(!_0x4108bb['commands']['get']('insertTableOfContents'))return;_0x4108bb['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x250ba6=_0x4108bb['plugins']['get']('TrackChangesEditing'),_0x2e64b6=_0x4108bb['locale'];_0x250ba6['descriptionFactory']['registerElementLabel']('tableOfContents',_0x12cd1b=>o(_0x2e64b6,'ELEMENT_TABLE_OF_CONTENTS',_0x12cd1b));}}class $t extends _0x48c5b5{['afterInit'](){const _0x12e7b0=this['editor'];if(!_0x12e7b0['plugins']['has']('Title'))return;const _0x2d82a9=_0x12e7b0['plugins']['get']('TrackChangesEditing');_0x2d82a9['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x12e7b0['locale'],'ELEMENT_TITLE')),_0x12e7b0['model']['document']['registerPostFixer'](_0x5db56d=>{let _0x1ebc9f=!0x1;const _0x5e7e4a=Array['from'](_0x12e7b0['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x25c719,data:_0xb8a4a0}of _0x5e7e4a){const {group:_0x2210c0}=_0x2d82a9['_splitMarkerName'](_0x25c719);if('suggestion'!==_0x2210c0||!_0xb8a4a0['newRange'])continue;const _0x209bbe=_0xb8a4a0['newRange'],_0x1ba8ef=_0x209bbe['end']['nodeBefore'];if(!_0x1ba8ef||!_0x1ba8ef['is']('element','title-content'))continue;if(!_0x209bbe['start']['isTouching'](_0x209bbe['end']))continue;const _0x2af5ae=_0x12e7b0['model']['schema']['getNearestSelectionRange'](_0x209bbe['end'],'forward');if(_0x2af5ae&&_0x2af5ae['isCollapsed']){const _0x1d7dd0=_0x5db56d['createRange'](_0x209bbe['start'],_0x2af5ae['start']);_0x1d7dd0['isEqual'](_0x209bbe)||(_0x5db56d['updateMarker'](_0x25c719,{'range':_0x1d7dd0}),_0x1ebc9f=!0x0);}_0x1ebc9f||(_0x5db56d['removeMarker'](_0x25c719),_0x1ebc9f=!0x0);}return _0x1ebc9f;});}}class Bt extends _0x48c5b5{['afterInit'](){const _0x47e11f=this['editor'],_0x227ad7=_0x47e11f['plugins']['get']('TrackChangesEditing');_0x47e11f['plugins']['has']('UndoEditing')&&(_0x227ad7['enableCommand']('undo'),_0x227ad7['enableCommand']('redo'));}}class xt extends _0x48c5b5{static get['requires'](){return[It];}['afterInit'](){const _0x4f452a=this['editor'];if(!_0x4f452a['plugins']['has']('TableCaptionEditing'))return;_0x4f452a['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x48c5b5{['tableProperties'];['tableCellProperties'];constructor(_0x521f6c){super(_0x521f6c),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 _0x42de83=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x462ab0 of this['tableProperties'])_0x42de83['enableCommand'](_0x462ab0,(_0xf929aa,_0x13b865)=>{const _0x1ca87d=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x462ab0,[_0x1ca87d],this['tableProperties'],'tableProperties',_0xf929aa,_0x13b865);});_0x42de83['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x42de83['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x42de83['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x199e9a,_0x58673f)=>this['handleDiscardAction'](this['tableProperties'],_0x199e9a,_0x58673f)),_0x42de83['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x59cc0d of this['tableCellProperties'])_0x42de83['enableCommand'](_0x59cc0d,(_0x5f3bc6,_0x286989)=>{const _0x64ab72=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x59cc0d,_0x64ab72,this['tableCellProperties'],'tableCellProperties',_0x5f3bc6,_0x286989);});_0x42de83['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x42de83['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x42de83['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x458c9f,_0x2218a7)=>this['handleDiscardAction'](this['tableCellProperties'],_0x458c9f,_0x2218a7)),_0x42de83['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x42de83['descriptionFactory']['registerDescriptionCallback'](_0x5435a2=>this['handleSuggestionDescription'](_0x5435a2));}['_handlePropertyChange'](_0x229f23,_0x218fd9,_0x5be324,_0x582d64,_0x4e8be5,_0x318ac3){const _0x2a0f30=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x318ac3['batch'],()=>{for(const _0x7b129d of _0x218fd9){if(this['_getSuggestion'](_0x7b129d,_0x582d64))_0x4e8be5(_0x318ac3);else{const _0x55acce={};for(const _0x3b0dad of _0x5be324){const _0x1d6410=_0x7b129d['getAttribute'](_0x3b0dad);void 0x0!==_0x1d6410&&(_0x55acce[_0x3b0dad]=_0x1d6410);}_0x4e8be5(_0x318ac3),_0x2a0f30['markBlockFormat'](_0x7b129d,{'commandParams':[_0x55acce]},[],_0x582d64);}}});}['handleDiscardAction'](_0x5bdc71,_0x697441,_0x4328e3){const _0x43dd36=_0x697441[0x0]['start']['nodeAfter'],_0x1f883f=_0x4328e3['commandParams'][0x0];this['editor']['model']['change'](_0x53fd6b=>{for(const _0x155b58 of _0x5bdc71)void 0x0!==_0x1f883f[_0x155b58]?_0x53fd6b['setAttribute'](_0x155b58,_0x1f883f[_0x155b58],_0x43dd36):_0x53fd6b['removeAttribute'](_0x155b58,_0x43dd36);});}['handleSuggestionDescription'](_0xf91d9e){if(_0xf91d9e['data'])switch(_0xf91d9e['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'](_0x5d961f,_0x2c62fe){const _0x4b231b=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x88ca8e of _0x4b231b['getSuggestions']({'skipNotAttached':!0x0})){const _0x53856c=_0x88ca8e['getContainedElement']();if(_0x88ca8e['subType']===_0x2c62fe&&_0x53856c===_0x5d961f)return _0x88ca8e;}return null;}}const m='$elementName';class p extends _0x48c5b5{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x47d1f4,_0x37f635,V,U,G,F,H,L,J,q,z,Q,X,Y,Z,tt,et,it,st,nt,rt,ot,at,ct,ut,ft,W,pt,ht,K,pe,lt,mt,dt,kt,bt,wt,yt,jt,St,At,It,vt,Ct,xt,_t,Nt,Mt,Rt,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x107579){function _0x24b96f(_0x274a06){return _0x274a06['map'](_0x3e378f=>String['fromCharCode'](_0x3e378f))['join']('');}super(_0x107579),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x5ac9b9,_0x3bbb25,_0x482dc1,_0x3acb5b)=>{this['_model']['change'](()=>{for(const _0x3e85f2 of[..._0x3acb5b,..._0x482dc1])this['_model']['markers']['has'](_0x3e85f2)&&_0x107579['editing']['reconvertMarker'](_0x3e85f2);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x107579['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(),_0x107579['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x107579['config']['get']('trackChanges.trackFormatChanges'),_0x107579['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x107579['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x107579,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x24b96f([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x24b96f([0x34,0x30,0x34,0x38,0x31,0x38,0x35,0x32]);}['init'](){const _0x4da539=this['editor'],_0x251858=(_0x3dd8d5,_0x53fc27)=>{if('attribute'!=_0x3dd8d5)return'ck-suggestion-marker-'+_0x3dd8d5;const _0x19f54b=_0x53fc27['split']('|')[0x0];return this['_isBlockAttribute'](_0x19f54b)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x4da539['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x4e91ab=>{const {id:_0x561ce7,authorId:_0x34fb7c,type:_0x19c79f,subType:_0x24d3a2}=this['_splitMarkerName'](_0x4e91ab['markerName']),_0x4c9dfb=['ck-suggestion-marker',_0x251858(_0x19c79f,_0x24d3a2)];let _0x5497ec=0xbb8;return this['activeMarkers']['includes'](_0x4e91ab['markerName'])&&(_0x4c9dfb['push']('ck-suggestion-marker--active'),_0x5497ec=0xbc2),'deletion'==_0x19c79f&&(_0x5497ec+=0x5),{'classes':_0x4c9dfb,'attributes':{'data-suggestion':_0x561ce7,'data-author-id':_0x34fb7c},'priority':_0x5497ec};}}),_0x4da539['conversion']['for']('dataDowncast')['add'](_0x297ff4=>{_0x297ff4['on']('addMarker:suggestion',(_0x2e9c1b,_0x1fcc33,_0x2a6f3f)=>{if(!_0x2a6f3f['options']['showSuggestionHighlights'])return;const _0x18b450=_0x1fcc33['item'];if(!_0x18b450)return;const _0x558206=_0x2a6f3f['mapper']['toViewElement'](_0x18b450);_0x4da539['model']['schema']['isObject'](_0x18b450)&&_0x558206&&!_0x558206['getCustomProperty']('widget')&&_0x558206['is']('containerElement')&&_0xb539ea(_0x558206,_0x2a6f3f['writer']);},{'priority':'high'});}),_0x4da539['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x30b8f2,_0x42bf5b)=>{if(!_0x42bf5b['options']['showSuggestionHighlights'])return null;const {type:_0x35b9e0,subType:_0x34cd9f}=this['_splitMarkerName'](_0x30b8f2['markerName']);return{'classes':['ck-suggestion-marker',_0x251858(_0x35b9e0,_0x34cd9f)],'priority':0xbb8};}});const _0x4c8431=({showActiveMarkers:_0x5adee2=!0x0,isAttributeSuggestion:_0x5df11b=!0x1}={})=>(_0x4a4812,_0x355f63,_0x471e75)=>{if(!_0x355f63['item'])return;const {id:_0xef9b4c,authorId:_0x311169}=this['_splitMarkerName'](_0x355f63['markerName']);if(_0x5df11b){const _0x101f37=this['_suggestions']['get'](_0xef9b4c),_0xae2781=this['_getAttributeKey'](_0x101f37);if(!this['_isBlockAttribute'](_0xae2781))return;}if(_0x355f63['item']['is']('selection'))return void _0x471e75['consumable']['consume'](_0x355f63['item'],_0x4a4812['name']);const _0x310529=_0x471e75['mapper']['toViewElement'](_0x355f63['item']);if(_0x355f63['item']['is']('element')&&_0x4da539['model']['schema']['isBlock'](_0x355f63['item'])&&!_0x310529['getCustomProperty']('addHighlight')){_0x471e75['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x310529),_0x471e75['writer']['setAttribute']('data-suggestion',_0xef9b4c,_0x310529),_0x471e75['writer']['setAttribute']('data-author-id',_0x311169,_0x310529),_0x471e75['mapper']['bindElementToMarker'](_0x310529,_0x355f63['markerName']),_0x5adee2&&(this['activeMarkers']['includes'](_0x355f63['markerName'])?_0x471e75['writer']['addClass']('ck-suggestion-marker--active',_0x310529):_0x471e75['writer']['removeClass']('ck-suggestion-marker--active',_0x310529));for(const _0x9b2425 of _0x4da539['model']['createRangeIn'](_0x355f63['item'])['getItems']())_0x471e75['consumable']['consume'](_0x9b2425,_0x4a4812['name']);_0x471e75['consumable']['consume'](_0x355f63['item'],_0x4a4812['name']);}};_0x4da539['conversion']['for']('dataDowncast')['add'](_0x5e0187=>{_0x5e0187['on']('addMarker:suggestion:formatBlock',(_0x366ca2,_0xbfa9c6,_0x20139b)=>{_0x20139b['options']['showSuggestionHighlights']&&_0x4c8431({'showActiveMarkers':!0x1})(_0x366ca2,_0xbfa9c6,_0x20139b);},{'priority':'highest'});}),_0x4da539['conversion']['for']('dataDowncast')['add'](_0x53f170=>{_0x53f170['on']('addMarker:suggestion:attribute',(_0x46a5c3,_0x1d2d40,_0x1a3a26)=>{_0x1a3a26['options']['showSuggestionHighlights']&&_0x4c8431({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x46a5c3,_0x1d2d40,_0x1a3a26);},{'priority':'highest'});}),_0x4da539['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x5b71cf,_0x482b41)=>_0x482b41['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x5b71cf['substr'](0xb)}}),_0x4da539['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x39483d,{writer:_0x4f735f})=>{let _0x1d296a='suggestion:'+_0x39483d['getAttribute']('suggestion-type')+':'+_0x39483d['getAttribute']('id');return _0x39483d['getAttribute']('marker-count')&&(_0x1d296a+=':'+_0x39483d['getAttribute']('marker-count')),_0x4f735f['createElement']('$marker',{'data-name':_0x1d296a});}}),_0x4da539['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4da539['conversion']['for']('editingDowncast')['add'](_0x184998=>{_0x184998['on']('addMarker:suggestion:formatBlock',_0x4c8431(),{'priority':'high'});}),_0x4da539['conversion']['for']('editingDowncast')['add'](_0x2a6b88=>{_0x2a6b88['on']('addMarker:suggestion:attribute',_0x4c8431({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x4da539['conversion']['for']('editingDowncast')['add'](_0xfc4381=>{_0xfc4381['on']('removeMarker:suggestion:formatBlock',(_0x4b9f32,_0x33ab25,_0x1e0062)=>{const _0x46ab09=_0x1e0062['mapper']['markerNameToElements'](_0x33ab25['markerName']);if(_0x46ab09){for(const _0x26fe09 of _0x46ab09)_0x26fe09['getCustomProperty']('addHighlight')||(_0x1e0062['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x26fe09),_0x1e0062['writer']['removeAttribute']('data-suggestion',_0x26fe09),_0x1e0062['writer']['removeAttribute']('data-author-id',_0x26fe09),_0x1e0062['mapper']['unbindElementFromMarkerName'](_0x26fe09,_0x33ab25['markerName']));}},{'priority':'high'});}),_0x4da539['conversion']['for']('editingDowncast')['add'](_0x176fcd=>{_0x176fcd['on']('removeMarker:suggestion:attribute',(_0x3c378d,_0x13bd8c,_0x44f4d8)=>{const _0x5cd739=_0x44f4d8['mapper']['markerNameToElements'](_0x13bd8c['markerName']);if(!_0x5cd739)return;const {id:_0x32780f}=this['_splitMarkerName'](_0x13bd8c['markerName']),_0x16c15d=this['_suggestions']['get'](_0x32780f),_0x37808e=this['_getAttributeKey'](_0x16c15d);if(this['_isBlockAttribute'](_0x37808e)){for(const _0x5d9826 of _0x5cd739)_0x5d9826['getCustomProperty']('addHighlight')||(_0x44f4d8['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5d9826),_0x44f4d8['writer']['removeAttribute']('data-suggestion',_0x5d9826),_0x44f4d8['writer']['removeAttribute']('data-author-id',_0x5d9826),_0x44f4d8['mapper']['unbindElementFromMarkerName'](_0x5d9826,_0x13bd8c['markerName']));}},{'priority':'high'});}),_0x4da539['model']['document']['registerPostFixer'](_0x345e64=>{let _0x27d0d7=!0x1;const _0x4bd40d=Array['from'](_0x4da539['model']['document']['differ']['getChangedMarkers']()),_0x154094=new Set();for(const {name:_0x4b2739,data:_0x71d1c4}of _0x4bd40d){const {group:_0x1eb163,type:_0x19a0bf,subType:_0x195368,id:_0xce311d}=this['_splitMarkerName'](_0x4b2739);if('suggestion'!==_0x1eb163)continue;const _0x1bf395=this['_suggestions']['get'](_0xce311d);if(null!=_0x71d1c4['newRange']){'formatInline'==_0x19a0bf&&(_0x27d0d7=_0x27d0d7||Ut(_0x71d1c4['newRange'],_0x4b2739,_0x345e64,_0x4da539['model']['schema']));const _0x41b450='attribute'==_0x19a0bf&&this['_isBlockAttribute'](_0x195368['split']('|')[0x0]);if(_0x71d1c4['newRange']['isCollapsed']||'$graveyard'==_0x71d1c4['newRange']['root']['rootName']||'formatBlock'==_0x19a0bf&&!Ft(_0x71d1c4['newRange'])||_0x41b450&&!Ft(_0x71d1c4['newRange'])||'deletion'==_0x19a0bf&&!(!Vt(_0x4ccee7=_0x71d1c4['newRange'])&&!function(_0x9e69ce){return _0x9e69ce['start']['parent']==_0x9e69ce['end']['nodeBefore']&&_0x9e69ce['start']['isAtEnd'];}(_0x4ccee7)))_0x345e64['removeMarker'](_0x4b2739),_0x27d0d7=!0x0;else{if(!_0x1bf395||!_0x1bf395['isInContent'])continue;if(_0x71d1c4['newRange']&&_0x71d1c4['oldRange']&&_0x71d1c4['newRange']['isEqual'](_0x71d1c4['oldRange']))continue;_0x154094['add'](_0x1bf395);}}}var _0x4ccee7;return _0x154094['size']>0x0&&(_0x27d0d7=!!this['_joinWithAdjacentSuggestions'](_0x154094)||_0x27d0d7),_0x27d0d7;}),_0x4da539['model']['document']['registerPostFixer'](_0x17a038=>{let _0x198716=!0x1;for(const _0x19fab9 of _0x4da539['model']['document']['differ']['getChanges']())if('insert'==_0x19fab9['type'])for(const _0x2178b3 of this['_suggestions']['values']()){if(_0x2178b3['isMultiRange']||!_0x2178b3['isInContent'])continue;const _0x3446b1='formatBlock'==_0x2178b3['type'],_0x44cfab=this['_getAttributeKey'](_0x2178b3),_0x134b8a=_0x44cfab&&this['_isBlockAttribute'](_0x44cfab);if(!_0x3446b1&&!_0x134b8a)continue;const _0x31bf2a=_0x2178b3['getFirstRange']();if(_0x31bf2a['start']['parent']!=_0x31bf2a['end']['parent']&&!_0x31bf2a['end']['isAtEnd']){const _0x257515=_0x4da539['model']['createPositionAt'](_0x31bf2a['start']['nodeAfter'],'end'),_0x2e5c98=_0x4da539['model']['createRange'](_0x31bf2a['start'],_0x257515);_0x17a038['updateMarker'](_0x2178b3['getFirstMarker'](),{'range':_0x2e5c98}),_0x198716=!0x0;}}return _0x198716;}),_0x4da539['model']['document']['registerPostFixer'](_0x19f3a3=>this['_processAttributeChanges'](_0x19f3a3)),_0x4da539['model']['document']['registerPostFixer'](_0x5a68c9=>!_0x5a68c9['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x5a68c9)),_0x4da539['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4da539['model']['document']['on']('change:data',(_0x2cd65a,_0x4ed995)=>{if(!_0x4ed995['isLocal']||_0x4ed995['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x474dac=_0x4da539['model']['document']['differ']['getChanges']();if(0x0==_0x474dac['length'])return;const _0x18550b=[],_0x34315f=_0x474dac['filter'](_0x519179=>'attribute'==_0x519179['type']),_0x127ffb=_0x474dac['filter'](_0x384303=>'insert'==_0x384303['type']&&'$text'!=_0x384303['name']);for(const _0x215620 of _0x34315f)this['_isRegisteredAttribute'](_0x215620['attributeKey'])&&_0x18550b['push']({'key':_0x215620['attributeKey'],'newValue':_0x215620['attributeNewValue'],'oldValue':_0x215620['attributeOldValue'],'range':Pt(_0x215620['range'],_0x4da539['model'])});for(const _0x4eec56 of _0x127ffb){if('rename'!=_0x4eec56['action']&&'refresh'!=_0x4eec56['action'])continue;const _0x1ac58c=Lt(_0x4eec56['position']['nodeAfter'],_0x4da539['model']),_0x1c6bd7=_0x4eec56['before'];'rename'==_0x4eec56['action']&&_0x18550b['push']({'key':m,'newValue':_0x4eec56['name'],'oldValue':_0x1c6bd7['name'],'range':_0x1ac58c});for(const [_0x4d4e4e,_0x11a9b3]of _0x1c6bd7['attributes']){if(!this['_isRegisteredAttribute'](_0x4d4e4e))continue;const _0x48c3b8=_0x4eec56['attributes']['get'](_0x4d4e4e);_0x11a9b3!==_0x48c3b8&&_0x18550b['push']({'key':_0x4d4e4e,'newValue':_0x48c3b8,'oldValue':_0x11a9b3,'range':_0x1ac58c});}for(const [_0x343945,_0x4572bd]of _0x4eec56['attributes'])this['_isRegisteredAttribute'](_0x343945)&&(_0x1c6bd7['attributes']['has'](_0x343945)||_0x18550b['push']({'key':_0x343945,'newValue':_0x4572bd,'oldValue':null,'range':_0x1ac58c}));}0x0!=_0x18550b['length']&&_0x4da539['model']['enqueueChange'](_0x4ed995,_0x10752d=>{const _0x3de68a=_0x5790ee();for(const {range:_0x1f620f,key:_0x2d3278,oldValue:_0x489061,newValue:_0x4e99ae}of _0x18550b)this['markAttributeChange'](_0x1f620f,_0x2d3278,_0x489061,_0x4e99ae,{'groupId':_0x3de68a});this['_reduceExistingSuggestions'](_0x10752d,_0x18550b);});},{'priority':'lowest'}),_0x4da539['model']['markers']['on']('update:suggestion',(_0x20d90a,_0x2af74a,_0x28cb50)=>{if(null==_0x28cb50){const {id:_0xaac6cc}=this['_splitMarkerName'](_0x2af74a['name']),_0x51f22c=this['_suggestions']['get'](_0xaac6cc);_0x51f22c&&_0x51f22c['addMarkerName'](_0x2af74a['name']);}}),_0x4da539['model']['document']['on']('change:data',()=>{const _0x321313=Array['from'](_0x4da539['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2101a5=>'suggestion'===this['_splitMarkerName'](_0x2101a5['name'])['group']);if(0x0===_0x321313['length'])return;_0x321313['sort']((_0x409e2e,_0x33d601)=>{const _0x155e2b=_0x409e2e['data']['oldRange'],_0x2cfa4d=_0x33d601['data']['oldRange'];return null===_0x155e2b&&null===_0x2cfa4d?0x0:null===_0x155e2b&&null!==_0x2cfa4d?-0x1:null!==_0x155e2b&&null===_0x2cfa4d?0x1:_0x155e2b['start']['isBefore'](_0x2cfa4d['start'])?-0x1:0x1;});const _0x991d99=new Set(),_0x3d1994=new Set();for(const {name:_0x4e7ddb,data:_0x1c0203}of _0x321313){const {id:_0x262b41}=this['_splitMarkerName'](_0x4e7ddb);if(null===_0x1c0203['oldRange']){const _0x46e382=this['_handleNewSuggestionMarker'](_0x4e7ddb);_0x3d1994['add'](_0x46e382);}else{const _0x513a1b=this['_suggestions']['get'](_0x262b41);null!==_0x1c0203['newRange']||_0x513a1b['isInContent']?(_0x991d99['add'](_0x513a1b['head']),_0x3d1994['add'](_0x513a1b)):this['_removeSuggestion'](_0x513a1b);}}_0x3d1994['size']>0x0&&this['_refreshSuggestionsChain'](_0x3d1994);for(const _0x472f8e of _0x991d99)this['fire']('suggestionChanged',_0x472f8e);}),_0x4da539['model']['on']('applyOperation',(_0x20ac5a,_0x330cd2)=>{const _0xfbccaf=_0x330cd2[0x0];if(!this['_suggestions']['size'])return;if(!_0xfbccaf['isDocumentOperation'])return;if(_0xfbccaf['batch']['isUndo']||!_0xfbccaf['batch']['isLocal'])return;let _0x38fca1,_0x36c486;switch(_0xfbccaf['type']){case'insert':_0x38fca1=_0x4da539['model']['createPositionAt'](_0xfbccaf['position']),_0x36c486=_0x38fca1['getShiftedBy'](_0xfbccaf['howMany']);break;case'split':_0x38fca1=_0x4da539['model']['createPositionAt'](_0xfbccaf['splitPosition']),_0x36c486=_0x4da539['model']['createPositionAt'](_0xfbccaf['moveTargetPosition']);break;case'move':_0x38fca1=_0x4da539['model']['createPositionAt'](_0xfbccaf['targetPosition']),_0x36c486=_0x38fca1['getShiftedBy'](_0xfbccaf['howMany']);break;default:return;}const _0x34940d=_0x4da539['model']['createRange'](_0x38fca1,_0x36c486);_0x4da539['model']['change'](()=>{for(const {suggestion:_0x172bcb,meta:_0x187a4b}of this['_findSuggestions'](_0x34940d)){if(_0x172bcb['isMultiRange'])continue;if('formatInline'==_0x172bcb['type'])continue;const _0x3f1299=this['_getAttributeKey'](_0x172bcb);if(_0x3f1299&&this['_isBlockAttribute'](_0x3f1299)&&'split'!=_0xfbccaf['type'])continue;const _0x233b71=_0x172bcb['data']&&_0x172bcb['data']['multipleBlocks'];('formatBlock'!=_0x172bcb['type']||'split'==_0xfbccaf['type']&&!_0x233b71)&&(_0x187a4b['containsRangeInObject']||'insertion'==_0x172bcb['type']&&_0x187a4b['isOwn']||_0x172bcb['getFirstRange']()['containsRange'](_0x34940d)&&this['_breakSuggestionMarker'](_0x172bcb,_0x38fca1,_0x36c486));}});},{'priority':'lowest'}),_0x4da539['model']['on']('deleteContent',(_0x4c0bb2,_0x50068f)=>{const _0x353285=_0x50068f[0x0],_0x3726a3=_0x50068f[0x1];if(_0x3726a3&&_0x3726a3['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x353285['isCollapsed'])return;const _0x788934=_0x4da539['model']['schema'],{start:_0x535887,end:_0x20188d}=_0x353285['getFirstRange'](),_0x37cde5=_0x535887['nodeAfter']&&_0x788934['isLimit'](_0x535887['nodeAfter'])?null:_0x788934['getNearestSelectionRange'](_0x535887,'forward'),_0x4ed606=_0x20188d['nodeBefore']&&_0x788934['isLimit'](_0x20188d['nodeBefore'])?null:_0x788934['getNearestSelectionRange'](_0x20188d,'backward'),_0x1eb936=_0x4da539['model']['createRange'](_0x37cde5?_0x37cde5['start']:_0x535887,_0x4ed606?_0x4ed606['end']:_0x20188d);_0x4da539['model']['change'](_0x35e8f6=>{this['markDeletion'](_0x1eb936);const _0x111251=_0x4da539['model']['schema']['getNearestSelectionRange'](_0x1eb936['start']);_0x353285['is']('documentSelection')?_0x35e8f6['setSelection'](_0x111251):_0x353285['setTo'](_0x111251);}),_0x4c0bb2['stop']();},{'priority':_0x3ff64e['normal']+0xa}),_0x4da539['model']['on']('insertContent',(_0x2bfa57,_0x3ddbc7)=>{const _0x24eda8=_0x3ddbc7[_0x3ddbc7['length']-0x1];_0x24eda8&&_0x24eda8['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4da539['model']['change'](()=>{let _0x540c87=_0x4da539['model']['insertContent'](_0x3ddbc7[0x0],_0x3ddbc7[0x1],_0x3ddbc7[0x2],{'forceDefaultExecution':!0x0});if(!_0x540c87)return;_0x2bfa57['return']=_0x540c87['clone']();const _0x58a97c=_0x540c87['end']['nodeBefore'],_0x553ced=_0x4da539['model']['schema'];_0x58a97c&&_0x553ced['isBlock'](_0x58a97c)&&!_0x553ced['isObject'](_0x58a97c)&&(_0x540c87=_0x4da539['model']['createRange'](_0x540c87['start'],_0x4da539['model']['createPositionAt'](_0x58a97c,'end'))),this['markInsertion'](_0x540c87);}),_0x2bfa57['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x1e848b=new x(_0x4da539,this['_suggestions']);_0x4da539['commands']['add']('acceptSuggestion',_0x1e848b),this['enableCommand']('acceptSuggestion');const _0x56d640=new R(_0x4da539,this['_suggestions']);_0x4da539['commands']['add']('discardSuggestion',_0x56d640),this['enableCommand']('discardSuggestion'),_0x4da539['commands']['add']('acceptAllSuggestions',new E(_0x4da539,_0x1e848b,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4da539['commands']['add']('discardAllSuggestions',new E(_0x4da539,_0x56d640,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4da539['commands']['add']('acceptSelectedSuggestions',new O(_0x4da539,_0x1e848b,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4da539['commands']['add']('discardSelectedSuggestions',new O(_0x4da539,_0x56d640,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x4a1125=_0x4da539['plugins']['get']('CommentsRepository');this['listenTo'](_0x4a1125,'addComment',(_0x502c83,{threadId:_0x4b7fe0})=>{const _0x154160=this['_suggestions']['get'](_0x4b7fe0);_0x154160&&_0x154160['commentThread']&&0x1===_0x154160['commentThread']['length']&&this['_updateSuggestionData'](_0x4b7fe0,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x4a1125,'removeComment',(_0x551bf1,{threadId:_0x261c4d})=>{const _0x10ee13=this['_suggestions']['get'](_0x261c4d);_0x10ee13&&_0x10ee13['commentThread']&&!_0x10ee13['commentThread']['length']&&this['_updateSuggestionData'](_0x261c4d,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x48822d){if(this['_adapter'])throw new _0x4f63a0('track-changes-adapter-already-set',this);this['_adapter']=_0x48822d;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2e2ab1=!0x1,toJSON:_0x2a1ab8=!0x1}={}){const _0x5cb705=[];for(const _0x445562 of this['_suggestions']['values']())_0x2e2ab1&&!_0x445562['isInContent']||_0x5cb705['push'](_0x445562);return _0x2a1ab8?_0x5cb705['map'](_0x5f01bd=>_0x5f01bd['toJSON']()):_0x5cb705;}['getSuggestion'](_0xe62655){const _0x2b329d=this['_suggestions']['get'](_0xe62655);if(!_0x2b329d)throw new _0x4f63a0('track-changes-suggestion-not-found',this);return _0x2b329d;}['hasSuggestion'](_0x124eea){return this['_suggestions']['has'](_0x124eea);}['addSuggestionData'](_0x1a6b49){const {authorId:_0x468abe,id:_0x4966a0,attributes:_0x518f2c}=_0x1a6b49,[_0x1fcbab,_0xba0008]=_0x1a6b49['type']['split'](':'),_0x55b0ab=this['_suggestions']['get'](_0x4966a0)||this['_createSuggestion'](_0x1fcbab,_0xba0008,_0x4966a0,_0x468abe,_0x518f2c);if(this['_addThreadToSuggestion'](_0x55b0ab),this['_checkSuggestionCorrectness'](_0x55b0ab,_0x1fcbab,_0xba0008||null,_0x468abe),_0x55b0ab['createdAt']=_0x1a6b49['createdAt'],_0x55b0ab['_isDataLoaded']=!0x0,_0x518f2c&&_0x518f2c['@external']){const _0x58c4f1=_0x518f2c['@external'],_0x2b77ff=this['_getExternalAuthor'](_0x58c4f1['authorName']);_0x55b0ab['authoredAt']=_0x58c4f1['createdAt'],_0x55b0ab['author']=_0x2b77ff,_0x55b0ab['isExternal']=!0x0;}else _0x55b0ab['authoredAt']=_0x1a6b49['createdAt'];switch(_0x1a6b49['data']&&(_0x55b0ab['data']=_0x1a6b49['data']),_0x1a6b49['attributes']&&(_0x55b0ab['attributes']=_0x1a6b49['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x55b0ab['_saved']=!0x0),this['_suggestionState']['get'](_0x55b0ab)){case'notReady':this['_suggestionState']['set'](_0x55b0ab,'dataReady');break;case'markerReady':_0x55b0ab['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x55b0ab])),this['_refreshSuggestionsChain'](new Set([_0x55b0ab])),this['_suggestionState']['set'](_0x55b0ab,'ready'),this['fire']('suggestionLoaded',_0x55b0ab)):this['_suggestionState']['set'](_0x55b0ab,'removed');}return _0x55b0ab;}['acceptSuggestion'](_0x1971b1){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3df35f of _0x1971b1['getAllAdjacentSuggestions']())_0x3df35f['accept']();});});}['discardSuggestion'](_0x963bc4){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2f43f0 of _0x963bc4['getAllAdjacentSuggestions']())_0x2f43f0['discard']();});});}['enableCommand'](_0x197474,_0x2551d5){const _0x42fefc=this['editor']['commands']['get'](_0x197474);if(!_0x42fefc)throw new _0x4f63a0('track-changes-command-not-found',this,{'commandName':_0x197474});if(this['_enabledCommands']['has'](_0x42fefc))throw new _0x4f63a0('track-changes-enable-command-twice',this,{'commandName':_0x197474});this['_enabledCommands']['add'](_0x42fefc),_0x2551d5&&_0x42fefc['on']('execute',(_0x88d51f,_0x9b576a)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x9b576a['length']>0x0&&_0x9b576a[_0x9b576a['length']-0x1]&&_0x9b576a[_0x9b576a['length']-0x1]['forceDefaultExecution']?_0x9b576a['pop']():(_0x88d51f['return']=_0x2551d5((..._0x581312)=>_0x42fefc['execute'](..._0x581312,{'forceDefaultExecution':!0x0}),..._0x9b576a),_0x88d51f['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x506791){let _0x4df7e5,_0x5564e6;const _0x58398a=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4df7e5=_0x506791();}catch(_0x5e0dfc){_0x5564e6=_0x5e0dfc;}return _0x58398a||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x5564e6&&_0x4f63a0['rethrowUnexpectedError'](_0x5564e6,this),_0x4df7e5;}['markInsertion'](_0x258bb5,_0x41b069=null,_0x1ec193={}){if(_0x258bb5['isCollapsed'])return null;const _0x3836ab=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x4a91be,meta:_0x26353c}of this['_findSuggestions'](_0x258bb5,'insertion'))if(_0x26353c['isOwn']){if(!_0x26353c['isNextTo']){if(_0x26353c['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x4a91be,_0x1ec193))continue;return _0x4a91be;}if(qt(_0x4a91be,_0x1ec193))return _0x4a91be;this['_breakSuggestionMarker'](_0x4a91be,_0x258bb5['start'],_0x258bb5['end']);break;}if(_0x41b069==_0x4a91be['subType']&&qt(_0x4a91be,_0x1ec193)){const _0x5ddda8=_0x4a91be['getFirstRange']();return _0x5ddda8['start']['isEqual'](_0x258bb5['end'])?this['_setSuggestionRange'](_0x4a91be,this['_model']['createRange'](_0x258bb5['start'],_0x5ddda8['end'])):this['_setSuggestionRange'](_0x4a91be,this['_model']['createRange'](_0x5ddda8['start'],_0x258bb5['end'])),_0x4a91be;}}const _0x2d1ca0=_0x5790ee(),_0x180b69=_0x3836ab['id'],_0x3a144c=_0x41b069?'insertion:'+_0x41b069:'insertion',_0x1335c5=this['_setSuggestionData']({'id':_0x2d1ca0,'type':_0x3a144c,'createdAt':new Date(),'authorId':_0x180b69,'attributes':_0x1ec193});return this['_addSuggestionMarker'](_0x3a144c,_0x2d1ca0,_0x180b69,_0x258bb5),_0x1335c5;}['markMultiRangeInsertion'](_0x17a5f1,_0x339bea='multi',_0x26ca96={}){const _0x443a24=this['editor']['plugins']['get']('Users')['me'],_0x3b199c=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x339bea,'join');for(const _0x573f0b of this['getSuggestions']())if(_0x573f0b['author']['id']==_0x443a24['id']&&'insertion'==_0x573f0b['type']&&_0x573f0b['subType']==_0x339bea&&qt(_0x573f0b,_0x26ca96)&&(_0x3b199c(_0x573f0b['getRanges'](),_0x17a5f1)||_0x3b199c(_0x17a5f1,_0x573f0b['getRanges']()))){for(const _0x126987 of _0x17a5f1)_0x573f0b['addRange'](_0x126987);return _0x573f0b;}for(const {suggestion:_0x227f3b,meta:_0x1bfdfd}of this['_findSuggestions'](_0x17a5f1,'insertion')){if(!_0x1bfdfd['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1bfdfd['containsRangeInObject'])continue;if(!qt(_0x227f3b,_0x26ca96))continue;let _0x148ad9=!0x0;for(const _0x56e2ee of _0x227f3b['getRanges']())for(const _0x2859a8 of _0x17a5f1)if(!_0x56e2ee['containsRange'](_0x2859a8)){_0x148ad9=!0x1;break;}if(_0x148ad9)return _0x227f3b;}const _0xef53b6=_0x5790ee(),_0x22e8f5=_0x443a24['id'],_0x5bfe50='insertion:'+_0x339bea,_0x2ccf97=this['_setSuggestionData']({'id':_0xef53b6,'type':_0x5bfe50,'createdAt':new Date(),'authorId':_0x22e8f5,'attributes':_0x26ca96});for(const _0x2878fa of _0x17a5f1)this['_addSuggestionMarker'](_0x5bfe50,_0xef53b6,_0x22e8f5,_0x2878fa,u['getMultiRangeId']());return _0x2ccf97;}['markInlineFormat'](_0x144e07,_0x4a6c12,_0x33af4d=null,_0x363721={}){if(_0x33af4d=_0x33af4d||Gt(_0x4a6c12),_0x144e07['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x2d1c37=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x33af4d,'accept');return this['forceDefaultExecution'](()=>_0x2d1c37([_0x144e07],_0x4a6c12,_0x363721)),null;}const _0x4ea496=this['editor']['plugins']['get']('Users')['me'],_0x25b118=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x42b24f,meta:_0x4d47fd}of this['_findSuggestions'](_0x144e07,'insertion'))_0x4d47fd['isOwn']&&!_0x4d47fd['isInsideObject']&&_0x25b118['push'](..._0x42b24f['getRanges']());}const _0x303b73=function(_0x67ea8b,_0x560b77){const _0x6a3e4c=[];for(const _0x21ce3d of _0x560b77){const _0x3ad6af=_0x67ea8b['getIntersection'](_0x21ce3d);_0x3ad6af&&_0x6a3e4c['push'](_0x3ad6af);}return _0x6a3e4c;}(_0x144e07,_0x25b118),_0x58f2e2=function(_0x50979b,_0xaa80f3){const _0x565eaf=[_0x50979b];for(const _0x2b8f19 of _0xaa80f3){let _0x1e68ad=0x0;for(;_0x1e68ad<_0x565eaf['length'];){const _0x2e0307=_0x565eaf[_0x1e68ad]['getDifference'](_0x2b8f19);_0x565eaf['splice'](_0x1e68ad,0x1,..._0x2e0307),_0x1e68ad+=_0x2e0307['length'];}}return _0x565eaf;}(_0x144e07,_0x25b118);_0x303b73['length']&&this['_model']['change'](()=>{for(const _0x239547 of _0x303b73){const _0x12b620=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x33af4d,'accept');this['forceDefaultExecution'](()=>_0x12b620([_0x239547],_0x4a6c12,_0x363721));}});for(const _0x2c2f87 of _0x58f2e2){let _0xacbecf=null,_0x1032f5=_0x2c2f87['start'],_0x41ff31=_0x2c2f87['end'];for(const {suggestion:_0x518b91,meta:_0x5624b7}of this['_findSuggestions'](_0x2c2f87,'formatInline')){if(!_0x5624b7['isOwn'])continue;if(_0x518b91['subType']!=_0x33af4d)continue;if(!qt(_0x518b91,_0x363721))continue;const _0x72db1=_0x518b91['getFirstRange']();if(_0x72db1['containsRange'](_0x2c2f87,!0x0))return null;_0x1032f5=_0x1032f5['isBefore'](_0x72db1['start'])?_0x1032f5:_0x72db1['start'],_0x41ff31=_0x41ff31['isAfter'](_0x72db1['end'])?_0x41ff31:_0x72db1['end'],_0xacbecf?_0x72db1['start']['isBefore'](_0xacbecf['getFirstRange']()['start'])?(_0xacbecf['removeMarkers'](),_0xacbecf=_0x518b91):_0x518b91['removeMarkers']():_0xacbecf=_0x518b91;}const _0x382b05=this['_model']['createRange'](_0x1032f5,_0x41ff31);if(_0xacbecf)this['_setSuggestionRange'](_0xacbecf,_0x382b05);else{const _0x29b085=_0x5790ee(),_0x2f9931=_0x4ea496['id'];this['_setSuggestionData']({'id':_0x29b085,'type':'formatInline:'+_0x33af4d,'data':_0x4a6c12,'createdAt':new Date(),'authorId':_0x2f9931,'attributes':_0x363721}),this['_addSuggestionMarker']('formatInline:'+_0x33af4d,_0x29b085,_0x2f9931,_0x382b05);}}return null;}['markBlockFormat'](_0x544e39,_0x9b8404,_0x5eac30=[],_0x2ad793=null,_0x2cd2ed={}){_0x9b8404['formatGroupId']||(_0x9b8404['formatGroupId']=_0x9b8404['commandName']),_0x9b8404['multipleBlocks']=_0x544e39['is']('range'),_0x2ad793=_0x2ad793||Gt(_0x9b8404);const _0x4ebe39=_0x5eac30['map'](_0x13c096=>Lt(_0x13c096,this['_model'])),_0x5154df=_0x544e39['is']('range')?_0x544e39:Lt(_0x544e39,this['_model']);if('never'===this['_trackFormatChanges']){const _0x1ba6c1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2ad793,'accept');return this['forceDefaultExecution'](()=>_0x1ba6c1([_0x5154df],_0x9b8404,_0x2cd2ed)),null;}_0x4ebe39['push'](_0x5154df);let _0x47c71d=!0x0;for(const _0x3eea1e of _0x4ebe39)if(!this['_rangeIsInLocalUserInsertion'](_0x3eea1e)){_0x47c71d=!0x1;break;}if(_0x47c71d&&'always'!==this['_trackFormatChanges']){const _0x23d045=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2ad793,'accept');return this['forceDefaultExecution'](()=>_0x23d045([_0x5154df],_0x9b8404,_0x2cd2ed)),null;}let _0x52736d=null,_0x11bb6b=_0x5154df['start'],_0x120d12=_0x5154df['end'];for(const {suggestion:_0x5a8397,meta:_0x435435}of this['_findSuggestions'](_0x5154df,'formatBlock')){if(!_0x435435['isOwn'])continue;if(_0x435435['isNextTo']||_0x435435['containsRangeInObject']||_0x435435['isInsideObject'])continue;if(_0x5a8397['data']['formatGroupId']!=_0x9b8404['formatGroupId'])continue;if(!qt(_0x5a8397,_0x2cd2ed))continue;const _0x2a90e8=_0x5a8397['getFirstRange']();if(_0x5a8397['subType']==_0x2ad793){if(_0x2a90e8['containsRange'](_0x5154df,!0x0))return null;_0x11bb6b=_0x11bb6b['isBefore'](_0x2a90e8['start'])?_0x11bb6b:_0x2a90e8['start'],_0x120d12=_0x120d12['isAfter'](_0x2a90e8['end'])?_0x120d12:_0x2a90e8['end'],_0x52736d?_0x2a90e8['start']['isBefore'](_0x52736d['getFirstRange']()['start'])?(_0x52736d['removeMarkers'](),_0x52736d=_0x5a8397):_0x5a8397['removeMarkers']():_0x52736d=_0x5a8397;}else{const _0x360d3=_0x5154df['getIntersection'](_0x2a90e8);this['_cutOutSuggestionMarker'](_0x5a8397,_0x360d3);}}const _0x303707=this['editor']['plugins']['get']('Users')['me'],_0x4e3c21=_0x5790ee(),_0xd1a388=_0x303707['id'];if(_0x52736d)return this['_setSuggestionRange'](_0x52736d,this['_model']['createRange'](_0x11bb6b,_0x120d12)),_0x52736d;{const _0x378363=this['_setSuggestionData']({'id':_0x4e3c21,'type':'formatBlock:'+_0x2ad793,'data':_0x9b8404,'createdAt':new Date(),'authorId':_0xd1a388,'attributes':_0x2cd2ed});return this['_addSuggestionMarker']('formatBlock:'+_0x2ad793,_0x4e3c21,_0xd1a388,this['_model']['createRange'](_0x11bb6b,_0x120d12)),_0x378363;}}['markMultiRangeBlockFormat'](_0x1132da,_0x470dea,_0x493e8d=[],_0x496288=null,_0x141ee2={}){_0x470dea['formatGroupId']||(_0x470dea['formatGroupId']=_0x470dea['commandName']);const _0x3cbeff=_0x1132da[0x0];_0x470dea['multipleBlocks']=_0x3cbeff['is']('range'),_0x496288=_0x496288||Gt(_0x470dea);const _0x5116b3=_0x493e8d['map'](_0x2c7557=>Lt(_0x2c7557,this['_model'])),_0x36b1c0=_0x3cbeff['is']('range')?_0x1132da:_0x1132da['map'](_0x968691=>Lt(_0x968691,this['_model']));if('never'===this['_trackFormatChanges']){const _0x433211=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x496288,'accept');return this['forceDefaultExecution'](()=>_0x433211(_0x36b1c0,_0x470dea,_0x141ee2)),null;}_0x5116b3['push'](..._0x36b1c0);let _0x20b51e=!0x0;for(const _0x57e1fe of _0x5116b3)if(!this['_rangeIsInLocalUserInsertion'](_0x57e1fe)){_0x20b51e=!0x1;break;}if(_0x20b51e&&'always'!==this['_trackFormatChanges']){const _0x35662d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x496288,'accept');return this['forceDefaultExecution'](()=>_0x35662d(_0x36b1c0,_0x470dea,_0x141ee2)),null;}const _0x294362=this['editor']['plugins']['get']('Users')['me'];for(const _0x2a601e of this['getSuggestions']()){if(_0x2a601e['author']['id']!=_0x294362['id'])continue;if('formatBlock'!=_0x2a601e['type']||_0x2a601e['data']['formatGroupId']!=_0x470dea['formatGroupId'])continue;if(!qt(_0x2a601e,_0x141ee2))continue;const _0xc09fdb=_0x2a601e['subType']==_0x496288;for(let _0x219109=0x0;_0x219109<_0x36b1c0['length'];_0x219109++){const _0x10dc7d=_0x36b1c0[_0x219109];for(const _0x4331a4 of _0x2a601e['getMarkers']()){const _0x2f24e9=_0x4331a4['getRange']();if(_0x10dc7d['isEqual'](_0x2f24e9)){_0xc09fdb?(_0x36b1c0['splice'](_0x219109,0x1),_0x219109--):_0x2a601e['removeMarker'](_0x4331a4['name']);break;}}}}if(0x0==_0x36b1c0['length'])return null;const _0xc1c70=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x496288,'join');for(const _0x3430e4 of this['getSuggestions']())if(_0x3430e4['author']['id']==_0x294362['id']&&'formatBlock'==_0x3430e4['type']&&_0x3430e4['data']['formatGroupId']==_0x470dea['formatGroupId']&&_0x3430e4['subType']==_0x496288&&qt(_0x3430e4,_0x141ee2)&&(_0xc1c70(_0x3430e4['getRanges'](),_0x36b1c0)||_0xc1c70(_0x36b1c0,_0x3430e4['getRanges']()))){for(const _0x23c7dd of _0x36b1c0)_0x3430e4['addRange'](_0x23c7dd);return _0x3430e4;}const _0x4882a0=_0x5790ee(),_0x56a497=_0x294362['id'],_0x2c208c='formatBlock:'+_0x496288,_0x1f577a=this['_setSuggestionData']({'id':_0x4882a0,'type':_0x2c208c,'data':_0x470dea,'createdAt':new Date(),'authorId':_0x56a497,'attributes':_0x141ee2});for(const _0x2a8c9a of _0x36b1c0)this['_addSuggestionMarker'](_0x2c208c,_0x4882a0,_0x56a497,_0x2a8c9a,u['getMultiRangeId']());return _0x1f577a;}['markDeletion'](_0x2c87d6,_0x582d9a=null,_0x393eb6={}){if(_0x2c87d6['isCollapsed'])return null;const _0x5f6a6d=this['editor']['plugins']['get']('Users')['me'],_0x405746=new _0x3bc28a(_0x2c87d6['start'],_0x2c87d6['end']);for(const {suggestion:_0x27adf7,meta:_0x425957}of this['_findSuggestions'](_0x405746,'insertion'))if(_0x425957['isOwn']&&!_0x425957['isNextTo']){if(_0x27adf7['isMultiRange']){const _0x254e36=_0x27adf7['getRanges']()['filter'](_0x30a152=>'$graveyard'!=_0x30a152['root']['rootName']);_0x254e36['every'](_0xe378e6=>_0x405746['containsRange'](_0xe378e6,!0x0))&&_0x27adf7['discard']();if(_0x254e36['some'](_0x1c7521=>_0x1c7521['containsRange'](_0x405746,!0x0))){const _0x34462d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x582d9a,'accept');return this['forceDefaultExecution'](()=>_0x34462d([_0x405746],null,_0x393eb6)),null;}}else{const _0x52b0e5=_0x405746['getIntersection'](_0x27adf7['getFirstRange']());null!==_0x52b0e5&&_0x27adf7['_onDiscard']([_0x52b0e5],null,_0x393eb6);}}if(_0x405746['detach'](),_0x405746['isCollapsed']||'$graveyard'==_0x405746['root']['rootName'])return null;let _0x4f5935=null,_0x2727f8=_0x405746['start'],_0x800db7=_0x405746['end'];const _0x43c503=this['_findSuggestions'](_0x405746,'deletion');for(const {suggestion:_0x553e97,meta:_0x1f8dfe}of _0x43c503){const _0x17393e=this['_model']['createRange'](_0x2727f8,_0x800db7);if(_0x1f8dfe['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1f8dfe['containsRangeInObject']&&!_0x1f8dfe['isInsideObject'])){if(_0x553e97['isMultiRange']){if(!qt(_0x553e97,_0x393eb6))continue;let _0x3ff690=!0x0;for(const _0x30b7b4 of _0x553e97['getRanges']()){if(_0x30b7b4['containsRange'](_0x17393e,!0x0))return _0x553e97;_0x17393e['containsRange'](_0x30b7b4)||(_0x3ff690=!0x1);}_0x3ff690&&_0x553e97['discard']();}else{const _0x366932=_0x553e97['getFirstRange']();if(_0x366932['containsRange'](_0x17393e,!0x0))return _0x553e97;if(!qt(_0x553e97,_0x393eb6)){_0x17393e['containsRange'](_0x366932)?_0x553e97['removeMarkers']():_0x366932['containsPosition'](_0x2727f8)?_0x2727f8=_0x366932['end']:_0x366932['containsPosition'](_0x800db7)&&(_0x800db7=_0x366932['start']);continue;}_0x2727f8=_0x2727f8['isBefore'](_0x366932['start'])?_0x2727f8:_0x366932['start'],_0x800db7=_0x800db7['isAfter'](_0x366932['end'])?_0x800db7:_0x366932['end'],_0x393eb6=Object['assign']({},_0x553e97['attributes']),_0x4f5935?_0x366932['start']['isBefore'](_0x4f5935['getFirstRange']()['start'])?(_0x4f5935['removeMarkers'](),_0x4f5935=_0x553e97):_0x553e97['removeMarkers']():_0x4f5935=_0x553e97;}}}if(_0x4f5935)return this['_setSuggestionRange'](_0x4f5935,this['_model']['createRange'](_0x2727f8,_0x800db7)),_0x4f5935;{const _0x277a0a=_0x5790ee(),_0x40d9bc=this['_model']['createRange'](_0x2727f8,_0x800db7),_0x8fafb=_0x5f6a6d['id'],_0x780fc0=_0x582d9a?'deletion:'+_0x582d9a:'deletion',_0x560892=this['_setSuggestionData']({'id':_0x277a0a,'type':_0x780fc0,'createdAt':new Date(),'authorId':_0x8fafb,'attributes':_0x393eb6});return this['_addSuggestionMarker'](_0x780fc0,_0x277a0a,_0x8fafb,_0x40d9bc),_0x560892;}}['markMultiRangeDeletion'](_0x18c13c,_0x138d03='multi',_0x1f8add={}){const _0x5337da=this['editor']['plugins']['get']('Users')['me'],_0x3ca5fd=_0x18c13c['map'](_0x2a6304=>new _0x3bc28a(_0x2a6304['start'],_0x2a6304['end'])),_0x199412=new Set();for(const {suggestion:_0x36cb07,meta:_0x348224}of this['_findSuggestions'](_0x3ca5fd,'insertion'))_0x348224['isOwn']&&!_0x348224['isNextTo']&&_0x199412['add'](_0x36cb07);for(const _0x313368 of _0x199412)if(_0x313368['isMultiRange']){const _0x4191d8=_0x313368['getRanges']();(!_0x313368['attributes']||!_0x313368['attributes']['skipNestingCheck'])&&(_0x4191d8['every'](_0x441276=>_0x3ca5fd['some'](_0x5f4c1c=>_0x5f4c1c['containsRange'](_0x441276,!0x0)))&&_0x313368['discard']());if(_0x3ca5fd['every'](_0x2aef54=>_0x4191d8['some'](_0x8c51f4=>_0x8c51f4['containsRange'](_0x2aef54,!0x0)))){const _0x4b9dc6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x138d03,'accept');return this['forceDefaultExecution'](()=>_0x4b9dc6(_0x18c13c,null,_0x1f8add)),null;}}else{const _0x344bcc=_0x313368['getFirstRange']();_0x3ca5fd['some'](_0x2b155e=>_0x2b155e['containsRange'](_0x344bcc,!0x0))&&_0x313368['discard']();if(_0x3ca5fd['every'](_0x2bf54a=>_0x344bcc['containsRange'](_0x2bf54a,!0x0))){const _0x4a5840=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x138d03,'accept');return this['forceDefaultExecution'](()=>_0x4a5840(_0x3ca5fd,null,_0x1f8add)),null;}}const _0x2c3c79=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x138d03,'join');let _0xbf9256=null;for(const _0x382a85 of this['getSuggestions']())if(_0x382a85['author']['id']==_0x5337da['id']&&_0x382a85['isInContent']&&'deletion'==_0x382a85['type']&&_0x382a85['subType']==_0x138d03&&qt(_0x382a85,_0x1f8add)&&(_0x2c3c79(_0x382a85['getRanges'](),_0x3ca5fd)||_0x2c3c79(_0x3ca5fd,_0x382a85['getRanges']()))){if(_0xbf9256){if(_0x382a85['commentThread']&&_0x382a85['commentThread']['length'])continue;for(const _0x13a70c of _0x382a85['getRanges']())_0xbf9256['isIntersectingWithRange'](_0x13a70c)||_0xbf9256['addRange'](_0x13a70c);_0x382a85['removeMarkers']();}else{_0xbf9256=_0x382a85;for(const _0x49bdc4 of _0x3ca5fd)_0x382a85['isIntersectingWithRange'](_0x49bdc4)||_0x382a85['addRange'](_0x49bdc4);}}if(_0xbf9256)return _0xbf9256;_0x199412['clear']();for(const {suggestion:_0x3798d6,meta:_0x206968}of this['_findSuggestions'](_0x3ca5fd,'deletion'))_0x206968['isOwn']&&(this['_mergeNestedSuggestions']||!_0x206968['containsRangeInObject']&&!_0x206968['isInsideObject'])&&qt(_0x3798d6,_0x1f8add)&&_0x199412['add'](_0x3798d6);for(const _0x3b999d of _0x199412){const _0x5c5064=_0x3b999d['getRanges']();if(!_0x1f8add||!_0x1f8add['skipNestingCheck']){if(_0x3ca5fd['every'](_0x967597=>_0x5c5064['some'](_0x456aa0=>_0x456aa0['containsRange'](_0x967597,!0x0))))return _0x3b999d;}(!_0x3b999d['attributes']||!_0x3b999d['attributes']['skipNestingCheck'])&&(_0x5c5064['every'](_0x237196=>_0x3ca5fd['some'](_0x13b11e=>_0x13b11e['containsRange'](_0x237196,!0x0)))&&_0x3b999d['discard']());}const _0x36d59a=_0x5790ee(),_0x41d7ab=_0x5337da['id'],_0x1e3f26='deletion:'+_0x138d03,_0x5b130c=this['_setSuggestionData']({'id':_0x36d59a,'type':_0x1e3f26,'createdAt':new Date(),'authorId':_0x41d7ab,'attributes':_0x1f8add});for(const _0x455d44 of _0x3ca5fd)_0x455d44['detach'](),_0x455d44['isCollapsed']||'$graveyard'==_0x455d44['root']['rootName']||this['_addSuggestionMarker'](_0x1e3f26,_0x36d59a,_0x41d7ab,_0x455d44,u['getMultiRangeId']());return _0x5b130c;}['markAttributeChange'](_0x4402c9,_0x49dc37,_0x4d5d1b,_0x3be275,_0x12f108){if(_0x4402c9['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0xa5778d=this['editor']['plugins']['get']('Users')['me']['id'],_0x286dab=Array['from'](this['_suggestions']['values']())['filter'](_0x3d6529=>'attribute'==_0x3d6529['type']&&_0x3d6529['data']['key']==_0x49dc37&&_0x3d6529['isIntersectingWithRange'](_0x4402c9));if('default'===this['_trackFormatChanges']){const _0x51358c=this['_findSuggestions'](_0x4402c9,'insertion')['filter'](({meta:_0xf22815})=>_0xf22815['isOwn']&&!_0xf22815['isInsideObject']&&!_0xf22815['isNextTo'])['map'](({suggestion:_0x3cc616})=>_0x3cc616);_0x286dab['unshift'](..._0x51358c);}const _0x3fe408=new Map([[_0x4402c9,_0x4d5d1b]]);for(const _0x6e4281 of _0x286dab){const _0x59ab4e='attribute'==_0x6e4281['type']?_0x6e4281['data']['oldValue']:void 0x0,_0x52d5d3=_0x6e4281['getFirstRange'](),_0x56a3a3=Array['from'](_0x3fe408['keys']())['find'](_0x17129e=>_0x17129e['isIntersecting'](_0x52d5d3));if(!_0x56a3a3)continue;const _0x52e805=_0x56a3a3['getDifference'](_0x52d5d3);this['_isBlockAttribute'](_0x49dc37)&&'insertion'==_0x6e4281['type']&&0x0!=_0x52e805['length']||(_0x3fe408['delete'](_0x56a3a3),_0x52e805['forEach'](_0x242cd2=>{_0x3fe408['set'](_0x242cd2,_0x4d5d1b);}),'insertion'!=_0x6e4281['type']&&_0x59ab4e!=_0x3be275&&_0x3fe408['set'](_0x56a3a3['getIntersection'](_0x52d5d3),_0x59ab4e));}const _0x41c904=[];for(const [_0x3fe050,_0x588ff9]of _0x3fe408){const _0x2fbcd9=_0x5790ee(),_0x1cecf4={'key':_0x49dc37,'oldValue':_0x588ff9,'newValue':_0x3be275};_0x49dc37['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':_0x49dc37});const _0x2228a5=('attribute:'+(_0x49dc37+'|'+Gt({'newValue':_0x3be275})))['substring'](0x0,0x3c),_0x47e85c=this['_setSuggestionData']({'id':_0x2fbcd9,'type':_0x2228a5,'data':_0x1cecf4,'createdAt':new Date(),'authorId':_0xa5778d,'attributes':_0x12f108});_0x41c904['push'](_0x47e85c),this['_addSuggestionMarker'](_0x2228a5,_0x2fbcd9,_0xa5778d,_0x3fe050);}return _0x41c904;}['enableDefaultAttributesIntegration'](_0x195e36){this['enableCommand'](_0x195e36,(_0x43d06e,..._0x537aaa)=>{this['_recordAttributeChanges'](()=>{_0x43d06e(..._0x537aaa);});});}['registerBlockAttribute'](_0x17ce94){this['_blockAttributeKeys']['add'](_0x17ce94);}['registerInlineAttribute'](_0x61d66b){this['_inlineAttributeKeys']['add'](_0x61d66b);}['_getAttributeKey'](_0x4814c1){return'attribute'==_0x4814c1['type']?_0x4814c1['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x4dfc36,_0x4f9070){const _0x2a4718=_0x4dfc36['getFirstMarker']();this['_model']['change'](_0x2ecaed=>{_0x2ecaed['updateMarker'](_0x2a4718,{'range':_0x4f9070});});}['_addThreadToSuggestion'](_0x55a67f){const _0x526292=_0x55a67f['id'],_0x476e4c=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x526292)||this['_commentsRepository']['addCommentThread']({'channelId':_0x476e4c,'threadId':_0x526292,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4eb819=this['_commentsRepository']['getCommentThread'](_0x526292);_0x4eb819['unbind']('isRemovable'),_0x4eb819['isRemovable']=!0x1,_0x55a67f['commentThread']=_0x4eb819;}['_checkSuggestionCorrectness'](_0x752583,_0x41b7a0,_0x514f75,_0x2e60f3){if(_0x752583['type']!=_0x41b7a0||_0x752583['subType']!=_0x514f75||_0x752583['creator']['id']!=_0x2e60f3)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4f63a0('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x59d51e,_0x1fb7e1){const _0x5d0078=_0x59d51e['getFirstRange']();if(_0x1fb7e1['isEqual'](_0x5d0078))_0x59d51e['removeMarkers']();else{if(_0x5d0078['containsRange'](_0x1fb7e1)){const _0xad8395=this['_model']['createPositionAt'](_0x1fb7e1['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x59d51e,this['_model']['createRange'](_0x5d0078['start'],_0xad8395));const _0x5110f0=_0x5790ee(),_0x362d8d=_0x59d51e['creator']['id'],_0x44a9b7=_0x59d51e['type']+':'+_0x59d51e['subType'];this['_setSuggestionData']({'id':_0x5110f0,'type':_0x44a9b7,'createdAt':new Date(),'authorId':_0x362d8d,'data':_0x59d51e['data'],'attributes':_0x59d51e['attributes']});const _0xbb7403=this['_model']['createPositionAt'](_0x1fb7e1['end']['parent'],'after'),_0x4d13ce=this['_model']['createRange'](_0xbb7403,_0x5d0078['end']);this['_addSuggestionMarker'](_0x44a9b7,_0x5110f0,_0x362d8d,_0x4d13ce);}else{if(_0x5d0078['containsPosition'](_0x1fb7e1['start'])){const _0x3ee406=this['_model']['createPositionAt'](_0x1fb7e1['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x59d51e,this['_model']['createRange'](_0x5d0078['start'],_0x3ee406));}else{const _0x1498ff=this['_model']['createPositionAt'](_0x1fb7e1['end']['parent'],'after');this['_setSuggestionRange'](_0x59d51e,this['_model']['createRange'](_0x1498ff,_0x5d0078['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x36a777){for(const {suggestion:_0x34f296,meta:_0x27137f}of this['_findSuggestions'](_0x36a777,'insertion')){if(!_0x27137f['isOwn'])continue;const _0x25ecb3=_0x34f296['getRanges']();for(const _0x238789 of _0x25ecb3)if(!_0x36a777['getDifference'](_0x238789)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x2253b1){const _0x7363c3=this['editor']['plugins']['get']('Users')['getUser'](_0x2253b1);if(!_0x7363c3)throw new _0x4f63a0('track-changes-user-not-found',this);return _0x7363c3;}['_getExternalAuthor'](_0x29af5e){const _0x2e68eb=this['editor']['plugins']['get']('Users'),_0x40db2d=_0x59a68d('external:'+_0x29af5e),_0x4ff360=_0x2e68eb['getUser'](_0x40db2d);return _0x4ff360||_0x2e68eb['addUser']({'id':_0x40db2d,'name':_0x29af5e});}['_createSuggestion'](_0x1b4309,_0x47ce84,_0x2fe84f,_0x370bd0,_0x4338f0){const _0x492ac7=this['_getAuthorFromId'](_0x370bd0),_0xfb8124=this['_suggestionFactory']['buildSuggestion'](_0x1b4309,_0x47ce84,_0x2fe84f,_0x492ac7,_0x4338f0,_0x34fbf9=>{this['_updateSuggestionData'](_0x2fe84f,{'attributes':_0x34fbf9});const _0x11adc3=this['getSuggestion'](_0x2fe84f);this['_joinWithAdjacentSuggestions'](new Set([_0x11adc3])),this['_refreshSuggestionsChain'](new Set([_0x11adc3]));});return this['listenTo'](_0xfb8124,'accept',()=>{this['_updateSuggestionData'](_0x2fe84f,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0xfb8124,'discard',()=>{this['_updateSuggestionData'](_0x2fe84f,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2fe84f,_0xfb8124),this['_suggestionState']['set'](_0xfb8124,'notReady'),_0xfb8124;}['_splitMarkerName'](_0x410ebc){const _0x488b07=_0x410ebc['split'](':');return{'group':_0x488b07[0x0],'type':_0x488b07[0x1],'subType':_0x488b07['length']>=0x5?_0x488b07[0x2]:null,'id':_0x488b07['length']<0x5?_0x488b07[0x2]:_0x488b07[0x3],'authorId':_0x488b07['length']<0x5?_0x488b07[0x3]:_0x488b07[0x4],'markerCount':0x6==_0x488b07['length']?_0x488b07[0x5]:null};}['_breakSuggestionMarker'](_0x243cce,_0x19e2c5,_0x5082e8){const _0x3d6a80=_0x243cce['getFirstRange'](),_0x2c5c19=_0x3d6a80['start'],_0x4fdade=_0x3d6a80['end'];this['_setSuggestionRange'](_0x243cce,this['_model']['createRange'](_0x2c5c19,_0x19e2c5));const _0x5887be=_0x5790ee(),_0x52dd48=_0x243cce['creator']['id'],_0x197349=_0x243cce['type']+(_0x243cce['subType']?':'+_0x243cce['subType']:'');this['_setSuggestionData']({'id':_0x5887be,'type':_0x197349,'createdAt':new Date(),'authorId':_0x52dd48,'originalSuggestionId':_0x243cce['id'],'attributes':_0x243cce['attributes'],'data':_0x243cce['data']});const _0x117456=this['_getAttributeKey'](_0x243cce);('formatBlock'==_0x243cce['type']||_0x117456&&this['_isBlockAttribute'](_0x117456))&&(_0x5082e8=this['_model']['createPositionBefore'](_0x5082e8['parent'])),this['_addSuggestionMarker'](_0x197349,_0x5887be,_0x52dd48,this['_model']['createRange'](_0x5082e8,_0x4fdade));}['_findSuggestions'](_0x5e4fc0,_0x441193=null){const _0x27a2c9=[],_0x5b51f6=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x5e4fc0)||(_0x5e4fc0=[_0x5e4fc0]);for(const _0x54754f of this['getSuggestions']()){if(!_0x54754f['isInContent'])continue;if(_0x441193&&_0x54754f['type']!=_0x441193)continue;let _0x77efe8=!0x1;for(const _0x37bbff of _0x54754f['getRanges']()){for(const _0x21d310 of _0x5e4fc0){const _0x56e6b9=_0x21d310['start']['isEqual'](_0x37bbff['end'])||_0x21d310['end']['isEqual'](_0x37bbff['start']);if(_0x56e6b9||_0x21d310['getIntersection'](_0x37bbff)){const _0x2113e0=_0x21d310['containsRange'](_0x37bbff)&&Ot(this['_model']['schema'],_0x37bbff['start'],_0x21d310),_0x43bee7=_0x37bbff['containsRange'](_0x21d310)&&Ot(this['_model']['schema'],_0x21d310['start'],_0x37bbff);_0x27a2c9['push']({'suggestion':_0x54754f,'meta':{'isOwn':_0x5b51f6==_0x54754f['author'],'isNextTo':_0x56e6b9,'isInsideObject':_0x2113e0,'containsRangeInObject':_0x43bee7}}),_0x77efe8=!0x0;break;}}if(_0x77efe8)break;}}return _0x27a2c9;}['_addSuggestionMarker'](_0x429bcc,_0x5cba86,_0x55afae,_0x3751f1,_0x3aeea7){this['_model']['change'](_0x44bcca=>{let _0x465006='suggestion:'+_0x429bcc+':'+_0x5cba86+':'+_0x55afae;_0x3aeea7&&(_0x465006=_0x465006+':'+_0x3aeea7),_0x44bcca['addMarker'](_0x465006,{'range':_0x3751f1,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3abae6){const _0x3e89a3=_0x3abae6['previous'],_0x357b48=_0x3abae6['next'];_0x3abae6['previous']=null,_0x3abae6['next']=null,null!=_0x3e89a3&&_0x3e89a3['next']==_0x3abae6&&(_0x3e89a3['next']=_0x357b48),null!=_0x357b48&&_0x357b48['previous']==_0x3abae6&&(_0x357b48['previous']=_0x3e89a3),'ready'==this['_suggestionState']['get'](_0x3abae6)&&(this['_suggestionState']['set'](_0x3abae6,'removed'),this['fire']('suggestionUnloaded',_0x3abae6,_0x3e89a3,_0x357b48));}['_setSuggestionData'](_0x94f316){const _0x2b68f3=_0x94f316['id'],_0x1925aa=this['addSuggestionData'](_0x94f316);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x5aeb2f=this['editor']['plugins']['get']('PendingActions'),_0x54a40e=_0x1925aa['hasComments'],_0x4c3639=_0x1925aa['subType']?_0x1925aa['type']+':'+_0x1925aa['subType']:_0x1925aa['type'],_0x251b85=this['editor']['locale'],_0x393013=_0x5aeb2f['add'](o(_0x251b85,'PENDING_ACTION_SUGGESTION')),_0xabd830={'id':_0x2b68f3,'type':_0x4c3639,'hasComments':_0x54a40e,'data':_0x94f316['data']||null,'originalSuggestionId':_0x94f316['originalSuggestionId']||null,'attributes':_0x1925aa['attributes']};this['_adapter']['addSuggestion'](_0xabd830)['then'](_0x54040d=>{_0x1925aa['_saved']=!0x0,_0x5aeb2f['remove'](_0x393013),_0x54040d&&_0x54040d['createdAt']&&(this['_suggestions']['get'](_0x2b68f3)['createdAt']=_0x54040d['createdAt']);})['catch'](_0x295c92=>{throw _0xc584fe('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x1925aa['discard']();}),_0x1925aa['stopListening'](),this['_suggestions']['delete'](_0x1925aa['id']),this['_suggestionState']['delete'](_0x1925aa),_0x295c92;});}return _0x1925aa;}['_isBlockAttribute'](_0x3acca3){return this['_blockAttributeKeys']['has'](_0x3acca3);}['_updateSuggestionData'](_0x15205d,_0x1c7ae2){const _0x43e791=this['editor']['plugins']['get']('PendingActions'),_0x557936=this['getSuggestion'](_0x15205d);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x557936['_saved']){const _0x3a2bf3=_0x43e791['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x15205d,_0x1c7ae2)['then'](()=>{_0x43e791['remove'](_0x3a2bf3);});}else _0x557936['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x15205d,_0x1c7ae2);});}}['_getSuggestionData'](_0x2a348f){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4f63a0('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2a348f);}['_handleNewSuggestionMarker'](_0x56df2c){const {id:_0x1cdd3d,type:_0xcb5b49,subType:_0x4f4a8e,authorId:_0x101f75}=this['_splitMarkerName'](_0x56df2c),_0x2c4dd8=this['_suggestions']['get'](_0x1cdd3d)||this['_createSuggestion'](_0xcb5b49,_0x4f4a8e,_0x1cdd3d,_0x101f75,{});switch(this['_checkSuggestionCorrectness'](_0x2c4dd8,_0xcb5b49,_0x4f4a8e,_0x101f75),this['_suggestionState']['get'](_0x2c4dd8)){case'notReady':this['_getSuggestionData'](_0x1cdd3d)['then'](_0x1326b1=>{let _0xed3d41=Promise['resolve']();_0x1326b1['hasComments']&&(_0xed3d41=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1cdd3d})),_0xed3d41['then'](()=>{this['addSuggestionData'](_0x1326b1)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2c4dd8,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1cdd3d,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2c4dd8,'ready'),this['fire']('suggestionLoaded',_0x2c4dd8);break;case'ready':this['fire']('suggestionChanged',_0x2c4dd8);}return _0x2c4dd8['addMarkerName'](_0x56df2c),_0x2c4dd8;}['_refreshSuggestionsChain'](_0xad3f46){const _0x5d0c34=Array['from'](_0xad3f46),_0x2ea0a0=_0x5d0c34['filter'](_0x5a8312=>'attribute'==_0x5a8312['type']);this['_refreshAttributeSuggestionsChain'](_0x2ea0a0);const _0x3466fb=_0x5d0c34['filter'](_0x408e7a=>!_0x408e7a['isMultiRange']&&'attribute'!=_0x408e7a['type']),_0x1500e4=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4f9d52=>!_0x4f9d52['isMultiRange']&&'attribute'!=_0x4f9d52['type']),_0x5de32f=_0x1500e4['filter'](_0xc19198=>!_0xad3f46['has'](_0xc19198)),_0x2be7ae=new Map(_0x1500e4['map'](_0x44ce81=>[_0x44ce81,this['_suggestionFactory']['getSuggestionCallback'](_0x44ce81['type'],_0x44ce81['subType'],'chain')])),_0x27af06=new Map(_0x1500e4['map'](_0x1f904c=>[_0x1f904c,_0x1f904c['getFirstRange']()])),_0xa110b6=new Set(),_0x11cef1=new Set();for(let _0x372640=0x0;_0x372640<_0x3466fb['length'];_0x372640++)_0x4cdbe2(_0x3466fb[_0x372640],_0x3466fb,_0x372640+0x1);for(let _0x174b64=0x0;_0x174b64<_0x3466fb['length'];_0x174b64++)_0x4cdbe2(_0x3466fb[_0x174b64],_0x5de32f,0x0);const _0x3eff47=new Set();for(let _0x1dfff9=0x0;_0x1dfff9<_0x3466fb['length'];_0x1dfff9++){const _0x2a961d=_0x3466fb[_0x1dfff9];!_0x11cef1['has'](_0x2a961d)&&_0x2a961d['previous']&&(_0x3eff47['add'](_0x2a961d['previous']),_0x2a961d['previous']['next']===_0x2a961d&&(_0x2a961d['previous']['next']=null),_0x2a961d['previous']=null),!_0xa110b6['has'](_0x2a961d)&&_0x2a961d['next']&&(_0x3eff47['add'](_0x2a961d['next']),_0x2a961d['next']['previous']===_0x2a961d&&(_0x2a961d['next']['previous']=null),_0x2a961d['next']=null);}function _0x4cdbe2(_0x5b75b8,_0xd0afc1,_0x10afd0){for(let _0x16d90a=_0x10afd0;_0x16d90a<_0xd0afc1['length'];_0x16d90a++){const _0x53a951=_0x665266(_0x5b75b8,_0xd0afc1[_0x16d90a]);_0x53a951&&(_0x53a951[0x0]['next']=_0x53a951[0x1],_0x53a951[0x1]['previous']=_0x53a951[0x0],_0xa110b6['add'](_0x53a951[0x0]),_0x11cef1['add'](_0x53a951[0x1]));}}function _0x665266(_0x5e3806,_0x418ee6){if(_0x5e3806['author']['id']!==_0x418ee6['author']['id'])return null;const _0x3c5051=_0x2be7ae['get'](_0x5e3806)(_0x5e3806,_0x418ee6,_0x27af06['get'](_0x5e3806),_0x27af06['get'](_0x418ee6));if(!_0x3c5051)return null;return _0x2be7ae['get'](_0x418ee6)(_0x5e3806,_0x418ee6,_0x27af06['get'](_0x5e3806),_0x27af06['get'](_0x418ee6))?_0x3c5051[0x1]['commentThread']&&_0x3c5051[0x1]['commentThread']['length']?null:_0x3c5051:null;}_0x3eff47['size']&&this['_refreshSuggestionsChain'](_0x3eff47);}['_refreshAttributeSuggestionsChain'](_0xaee3c5){if(0x0==_0xaee3c5['length'])return;const _0x1bef7a=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x48f6a0=>'attribute'==_0x48f6a0['type']&&_0x48f6a0['_isDataLoaded']),_0x1e5018=[],_0x4bdf03=new Map();for(const _0x14398d of _0x1bef7a){const _0x19cbe6=_0x59a68d(_0x14398d['attributes']);_0x4bdf03['has'](_0x19cbe6)||(_0x4bdf03['set'](_0x19cbe6,_0x1e5018['length']),_0x1e5018['push']([]));const _0x4f1a24=_0x4bdf03['get'](_0x19cbe6);_0x1e5018[_0x4f1a24]['push'](_0x14398d);}!(function(){_0x1e5018['sort']((_0x574b65,_0x266ea0)=>{const _0x15ddf2=_0x574b65[0x0]['createdAt'],_0x1812c1=_0x266ea0[0x0]['createdAt'];return _0x15ddf2==_0x1812c1?_0x574b65[0x0]['attributes']['groupId']<_0x266ea0[0x0]['attributes']['groupId']?-0x1:0x1:_0x15ddf2<_0x1812c1?-0x1:0x1;});for(const _0x34b174 of _0x1e5018)_0x34b174['sort']((_0x21c8f3,_0x3d61ea)=>_0x21c8f3['id']<_0x3d61ea['id']?-0x1:0x1);}());for(let _0x290dac=0x0;_0x290dac<_0x1e5018['length'];_0x290dac++){if(0x0==_0x1e5018[_0x290dac]['length'])continue;const _0x565e20=[];for(let _0x227d18=_0x290dac+0x1;_0x227d18<_0x1e5018['length'];_0x227d18++)0x0!=_0x1e5018[_0x227d18]['length']&&_0x4d9471(_0x1e5018[_0x290dac],_0x1e5018[_0x227d18])&&_0x565e20['push'](_0x227d18);for(const _0x503620 of _0x565e20)_0x1e5018[_0x290dac]=_0x1e5018[_0x290dac]['concat'](_0x1e5018[_0x503620]),_0x1e5018[_0x503620]=[];}for(const _0x2094a1 of _0x1e5018)for(let _0x46d212=0x0;_0x46d212<_0x2094a1['length'];_0x46d212++){const _0x124f28=_0x2094a1[_0x46d212+0x1]||null;_0x2094a1[_0x46d212]['next']!==_0x124f28&&(_0x2094a1[_0x46d212]['next']=_0x124f28);}for(const _0x28d53e of _0x1e5018)for(let _0x48ff6f=0x0;_0x48ff6f<_0x28d53e['length'];_0x48ff6f++){const _0x262f07=_0x28d53e[_0x48ff6f-0x1]||null;_0x28d53e[_0x48ff6f]['previous']!==_0x262f07&&(_0x28d53e[_0x48ff6f]['previous']=_0x262f07);}function _0x4d9471(_0x1daffc,_0x3ddb4b){if(_0x1daffc[0x0]['attributes']['groupId']!==_0x3ddb4b[0x0]['attributes']['groupId']&&_0x1daffc[0x0]['author']!==_0x3ddb4b[0x0]['author'])return!0x1;if(!function(_0x524f56,_0x4590d0){if(!_0x524f56['hasComments']&&!_0x4590d0['hasComments'])return!0x0;if(_0x524f56['hasComments']&&_0x4590d0['hasComments'])return!0x1;if(_0x524f56['hasComments']&&_0x4590d0['createdAt']<_0x524f56['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x4590d0['hasComments']&&_0x524f56['createdAt']<_0x4590d0['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x1daffc[0x0],_0x3ddb4b[0x0]))return!0x1;const _0x5f0d7e=Tt(_0x1daffc[0x0]['attributes'],'groupId'),_0x42f344=Tt(_0x3ddb4b[0x0]['attributes'],'groupId');if(!_0x47c0f7(_0x5f0d7e,_0x42f344))return!0x1;return!!_0x1daffc['every'](_0x2fdc16=>_0x3ddb4b['some'](_0x17ceb5=>_0x2fdc16['getFirstRange']()['isEqual'](_0x17ceb5['getFirstRange']())))&&_0x3ddb4b['every'](_0x27d477=>_0x1daffc['some'](_0x3e8c92=>_0x27d477['getFirstRange']()['isEqual'](_0x3e8c92['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4808d7){const _0x1b2903=Array['from'](_0x4808d7),_0x18cf2a=this['getSuggestions']({'skipNotAttached':!0x0}),_0x527229=_0x18cf2a['filter'](_0x28bc7e=>!_0x4808d7['has'](_0x28bc7e)),_0x4ff385=new Map(_0x1b2903['map'](_0xe10495=>[_0xe10495,this['_suggestionFactory']['getSuggestionCallback'](_0xe10495['type'],_0xe10495['subType'],'join')])),_0x636f10=new Map(_0x18cf2a['map'](_0x3e6587=>[_0x3e6587,_0x3e6587['getRanges']()]));for(let _0x1f6a67=0x0;_0x1f6a67<_0x1b2903['length'];_0x1f6a67++){if(_0x190e2a(this,_0x1b2903[_0x1f6a67],_0x1b2903,_0x1f6a67+0x1))return!0x0;}for(let _0x13dec8=0x0;_0x13dec8<_0x1b2903['length'];_0x13dec8++){if(_0x190e2a(this,_0x1b2903[_0x13dec8],_0x527229,0x0))return!0x0;}return!0x1;function _0x190e2a(_0x4e3fce,_0x3bf9f1,_0x409d05,_0x12911c){for(let _0x41bfae=_0x12911c;_0x41bfae<_0x409d05['length'];_0x41bfae++){const _0x258c95=_0x409d05[_0x41bfae];if(_0x258c95['type']!==_0x3bf9f1['type']||_0x258c95['author']['id']!==_0x3bf9f1['author']['id']||_0x258c95['subType']!==_0x3bf9f1['subType'])continue;if(!Jt(_0x3bf9f1,_0x258c95))continue;if('attribute'==_0x3bf9f1['type']&&_0x3bf9f1['data']['oldValue']!=_0x258c95['data']['oldValue'])continue;if('attribute'==_0x3bf9f1['type']&&_0x4e3fce['_isBlockAttribute'](_0x3bf9f1['data']['key']))continue;if('formatBlock'==_0x3bf9f1['type']){const _0x1320c8=_0x4e3fce['editor']['model'],_0x5c52a1=_0x3bf9f1['getContainedElement']();if(_0x5c52a1&&(_0x1320c8['schema']['isObject'](_0x5c52a1)||_0x1320c8['schema']['isLimit'](_0x5c52a1)))continue;}const _0x32e2a3=_0x4ff385['get'](_0x3bf9f1),_0x2069d3=_0x636f10['get'](_0x3bf9f1),_0x3f29d4=_0x636f10['get'](_0x258c95),_0xc62717=_0x3bf9f1['commentThread']&&_0x3bf9f1['commentThread']['length'],_0x11d437=_0x258c95['commentThread']&&_0x258c95['commentThread']['length'];if(!_0xc62717&&_0x32e2a3(_0x3f29d4,_0x2069d3))return _0x4e3fce['_joinSuggestions'](_0x258c95,_0x3bf9f1),_0x636f10['delete'](_0x3bf9f1),!0x0;if(!_0x11d437&&_0x32e2a3(_0x2069d3,_0x3f29d4))return _0x4e3fce['_joinSuggestions'](_0x3bf9f1,_0x258c95),_0x636f10['delete'](_0x258c95),!0x0;}return!0x1;}}['_joinSuggestions'](_0x11c500,_0x538114){if(_0x11c500['isMultiRange']){for(const _0x18e5f3 of _0x538114['getRanges']())_0x11c500['addRange'](_0x18e5f3);}else{const _0x37711a=_0x538114['getFirstRange']()['end'];this['_setSuggestionRange'](_0x11c500,this['_model']['createRange'](_0x11c500['getFirstRange']()['start'],_0x37711a));}_0x538114['removeMarkers']();}['_getMarkerAnnouncementText'](_0x292689,_0x280979,_0x502a3b){const _0x233619=_0x292689['startsWith']('format')||_0x292689['startsWith']('attribute')?'FORMATTING':_0x292689['toUpperCase']();return o(this['editor']['locale'],_0x280979+'_'+_0x233619+'_SUGGESTION_ANNOUNCEMENT',_0x502a3b);}['_initAriaMarkerChangeAnnouncements'](){const _0x2f6f07=this['editor'];if(!_0x2f6f07['ui'])return;const {ariaLiveAnnouncer:_0x1bfdda}=_0x2f6f07['ui'];_0x44dd52(this['_model'],({left:_0x32aba9,entered:_0x397f4b})=>{for(const _0x9e10f8 of _0x32aba9){const {group:_0x59183a,type:_0x435716}=this['_splitMarkerName'](_0x9e10f8['name']);if('suggestion'===_0x59183a){_0x1bfdda['announce'](this['_getMarkerAnnouncementText'](_0x435716,'LEAVE'));break;}}for(const _0x3da00e of _0x397f4b){const {group:_0x37c585,type:_0x4bb6ed}=this['_splitMarkerName'](_0x3da00e['name']);if('suggestion'===_0x37c585){_0x1bfdda['announce'](this['_getMarkerAnnouncementText'](_0x4bb6ed,'ENTER',_0x31f961(_0x20d347)));break;}}});}['_processAttributeChanges'](_0x464521){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3329bf=this['editor'],_0x5278b5=_0x3329bf['model']['document']['differ']['getChanges']();if(0x0==_0x5278b5['length'])return!0x1;const _0x2b80c2=[],_0x452e7f=_0x5278b5['filter'](_0x249556=>'attribute'==_0x249556['type']),_0x36c463=_0x5278b5['filter'](_0x3d2336=>'insert'==_0x3d2336['type']&&'$text'!=_0x3d2336['name']),_0x567aab=_0x5278b5['filter'](_0x528e1f=>'remove'==_0x528e1f['type']&&'$text'!=_0x528e1f['name']);for(const _0x2685ea of _0x452e7f)_0x2b80c2['push']({'key':_0x2685ea['attributeKey'],'newValue':_0x2685ea['attributeNewValue'],'oldValue':_0x2685ea['attributeOldValue'],'range':Pt(_0x2685ea['range'],_0x3329bf['model'])});for(const _0x33c76d of _0x36c463){const _0x565ca9=_0x567aab['find'](_0x34bbcc=>_0x34bbcc['position']['isEqual'](_0x33c76d['position']));_0x565ca9&&_0x2b80c2['push']({'key':m,'newValue':_0x33c76d['name'],'oldValue':_0x565ca9['name'],'range':_0x3329bf['model']['createRangeOn'](_0x33c76d['position']['nodeAfter'])});}return 0x0!=_0x2b80c2['length']&&this['_reduceExistingSuggestions'](_0x464521,_0x2b80c2);}['_processAttributeSuggestions'](_0x1eb017){let _0x4f014e=!0x1;const _0x3dd601=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2a5da5=>_0x2a5da5['data']['newRange']&&_0x2a5da5['name']['startsWith']('suggestion:attribute:'));for(const _0x157f00 of _0x3dd601){const {subType:_0x3a6717,id:_0x11231a}=this['_splitMarkerName'](_0x157f00['name']),_0x4690bd=_0x3a6717['split']('|')[0x0];for(const _0x7b2513 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x7b2513['id']!=_0x11231a&&'attribute'==_0x7b2513['type']&&_0x7b2513['data']&&_0x7b2513['data']['key']==_0x4690bd&&_0x7b2513['getFirstRange']()['isIntersecting'](_0x157f00['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x7b2513,_0x157f00['data']['newRange'],_0x1eb017),_0x4f014e=!0x0);}return _0x4f014e;}['_recordAttributeChanges'](_0x1ba7cf){this['_recordAttributeSuggestions']=!0x0,_0x1ba7cf();}['_isRegisteredAttribute'](_0x254443){const _0x3c8fc4=this['_isBlockAttribute'](_0x254443),_0x5c7e55=this['_inlineAttributeKeys']['has'](_0x254443);return _0x3c8fc4||_0x5c7e55;}['_reduceExistingSuggestions'](_0x19f883,_0x5acf30){if(0x0==_0x5acf30['length'])return!0x1;let _0x381586=!0x1;for(const _0x387221 of _0x5acf30){const _0xdd9c99=this['_findSuggestions'](_0x387221['range'],'attribute')['filter'](_0x1d557c=>!_0x1d557c['meta']['isNextTo'])['map'](_0x37513a=>_0x37513a['suggestion']),_0x556e33=_0x59a68d({'newValue':_0x387221['newValue']});_0xdd9c99['filter'](_0x435312=>{const [_0x5a7d45,_0x2874b5]=_0x435312['subType']['split']('|');return _0x5a7d45==_0x387221['key']&&_0x2874b5!=_0x556e33;})['forEach'](_0x5a9b66=>{this['_reduceSuggestionAttributeRange'](_0x5a9b66,_0x387221['range'],_0x19f883),_0x381586=!0x0;});}return _0x381586;}['_reduceSuggestionAttributeRange'](_0x38fddd,_0x27b801,_0x230a0a){const _0xfeb305=_0x38fddd['getFirstRange']()['getDifference'](_0x27b801);0x0!==_0xfeb305['length']?0x1!==_0xfeb305['length']?this['_breakSuggestionMarker'](_0x38fddd,_0x27b801['start'],_0x27b801['end']):this['_setSuggestionRange'](_0x38fddd,_0xfeb305[0x0]):_0x230a0a['removeMarker'](_0x38fddd['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x27fabd){this['_editor']=_0x27fabd,this['_model']=_0x27fabd['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0xd5f2b,_0x5e471b,_0x23f18e,_0x5eeecc,_0x2aded2,_0x20987c){return new u(this['_model'],{'type':_0xd5f2b,'subType':_0x5e471b,'id':_0x23f18e,'author':_0x5eeecc,'creator':_0x5eeecc,'attributes':_0x2aded2,'onAttributesChange':_0x20987c,'onAccept':(..._0x220363)=>this['getSuggestionCallback'](_0xd5f2b,_0x5e471b,'accept')(..._0x220363),'onDiscard':(..._0x2803f5)=>this['getSuggestionCallback'](_0xd5f2b,_0x5e471b,'discard')(..._0x2803f5)});}['registerCustomCallback'](_0x144215,_0x926183,_0x86fb46,_0x583db4){const _0x14e1b9=_0x144215+':'+_0x926183+':'+_0x86fb46;this['_customCallbacks']['set'](_0x14e1b9,_0x583db4);}['getSuggestionCallback'](_0x157f07,_0x31b2b8,_0x53d1a2){const _0x1b9956=_0x157f07+':'+_0x31b2b8+':'+_0x53d1a2;return this['_customCallbacks']['get'](_0x1b9956)||this['_defaultCallbacks']['get'](_0x157f07+':'+_0x53d1a2);}['_registerDefaultCallbacks'](){const _0x3bdcbc=()=>!0x1,_0x20b900=_0xf0ca2f=>{_0xf0ca2f['sort']((_0x4d937f,_0x1a14cd)=>_0x4d937f['start']['isBefore'](_0x1a14cd['start'])?0x1:-0x1),this['_model']['change'](_0x45f696=>{for(const _0x26d5be of _0xf0ca2f){let _0x4104d5;_0x4104d5=_0x26d5be['end']['isAtEnd']&&_0x26d5be['end']['parent']==_0x26d5be['start']['nodeAfter']?_0x45f696['createSelection'](_0x26d5be['start']['nodeAfter'],'on'):_0x45f696['createSelection'](_0x26d5be),this['_model']['deleteContent'](_0x4104d5,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x4c0a34=(_0x2ae318,_0x3c3da5)=>{_0x3c3da5&&this['_model']['change'](_0x23e02d=>{const {commandName:_0x31970b,commandParams:_0x3f150c=[]}=_0x3c3da5,_0x45de48=_0x2ae318['map'](_0xc12610=>(Vt(_0xc12610)&&(_0xc12610=this['_model']['createRange'](_0xc12610['end'])),_0xc12610))['filter'](_0x5b2662=>'$graveyard'!==_0x5b2662['root']['rootName']);if(_0x45de48['length']<0x1)return;const _0x118101=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3461ac=>_0x3bc28a['fromRange'](_0x3461ac));_0x23e02d['setSelection'](_0x45de48);for(const _0x13a2de of this['_editor']['commands']['commands']())_0x13a2de['refresh']();_0x3f150c['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x31970b,..._0x3f150c);const _0x137ab6=_0x118101['filter'](_0x4fc83b=>'$graveyard'!=_0x4fc83b['root']['rootName']);_0x137ab6['length']>0x0&&_0x23e02d['setSelection'](_0x137ab6);for(const _0x2071b8 of _0x118101)_0x2071b8['detach']();});},_0x1311ca=(_0x1a32e8,_0x295d35)=>0x1==_0x1a32e8['length']&&0x1==_0x295d35['length']&&_0x1a32e8[0x0]['end']['isEqual'](_0x295d35[0x0]['start']),_0x1734d2=(_0x47f78a,_0x3b97c0,_0xf79686,_0xcf3bab)=>Ht(_0x47f78a,_0x3b97c0,_0xf79686,_0xcf3bab,this['_model'])?[_0x47f78a,_0x3b97c0]:Ht(_0x3b97c0,_0x47f78a,_0xcf3bab,_0xf79686,this['_model'])?[_0x3b97c0,_0x47f78a]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x3bdcbc),this['_defaultCallbacks']['set']('insertion:discard',_0x20b900),this['_defaultCallbacks']['set']('insertion:join',_0x1311ca),this['_defaultCallbacks']['set']('insertion:chain',_0x1734d2),this['_defaultCallbacks']['set']('deletion:accept',_0x20b900),this['_defaultCallbacks']['set']('deletion:discard',_0x3bdcbc),this['_defaultCallbacks']['set']('deletion:join',_0x1311ca),this['_defaultCallbacks']['set']('deletion:chain',_0x1734d2),this['_defaultCallbacks']['set']('formatInline:accept',_0x4c0a34),this['_defaultCallbacks']['set']('formatInline:discard',_0x3bdcbc),this['_defaultCallbacks']['set']('formatInline:join',_0x1311ca),this['_defaultCallbacks']['set']('formatInline:chain',_0x3bdcbc),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4c0a34),this['_defaultCallbacks']['set']('formatBlock:discard',_0x3bdcbc),this['_defaultCallbacks']['set']('formatBlock:join',_0x1311ca),this['_defaultCallbacks']['set']('formatBlock:chain',_0x3bdcbc),this['_defaultCallbacks']['set']('attribute:accept',_0x3bdcbc),this['_defaultCallbacks']['set']('attribute:discard',(_0x52b5c2,_0x1855ba)=>{if(!_0x1855ba)return;const _0x332f36=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x7a5abb=>{if(_0x1855ba['key']==m)for(const _0x538e68 of _0x52b5c2){const _0x28e694=_0x538e68['start']['nodeAfter'],_0x515d2d=_0x1855ba['oldValue'];_0x7a5abb['rename'](_0x28e694,_0x515d2d);}else{if(_0x332f36['_isBlockAttribute'](_0x1855ba['key'])){for(const _0x4d3217 of _0x52b5c2)void 0x0!==_0x1855ba['oldValue']?_0x7a5abb['setAttribute'](_0x1855ba['key'],_0x1855ba['oldValue'],_0x4d3217['start']['nodeAfter']):_0x7a5abb['removeAttribute'](_0x1855ba['key'],_0x4d3217['start']['nodeAfter']);}else{for(const _0x345fef of _0x52b5c2)_0x1855ba['oldValue']?_0x7a5abb['setAttribute'](_0x1855ba['key'],_0x1855ba['oldValue'],_0x345fef):_0x7a5abb['removeAttribute'](_0x1855ba['key'],_0x345fef);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1311ca);}}function Ot(_0x258d10,_0x3d4237,_0x5120f5){for(const _0x59da9e of _0x3d4237['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x59da9e['root']==_0x59da9e)return!0x1;if(!_0x5120f5['containsItem'](_0x59da9e))return!0x1;if(_0x258d10['isObject'](_0x59da9e)||_0x258d10['isLimit'](_0x59da9e))return!0x0;}return!0x1;}function Vt(_0x341252){return _0x341252['end']['parent']==_0x341252['start']['nodeAfter']&&_0x341252['end']['isAtStart'];}function Ut(_0x2f187b,_0x2bfb0e,_0x16cd00,_0x58db2a){const _0x41766d=_0x303559=>!_0x303559['item']['is']('$textProxy')&&!_0x58db2a['isObject'](_0x303559['item']),_0x2a35a3=_0x2f187b['start']['getLastMatchingPosition'](_0x41766d),_0x1b4976=_0x2f187b['end']['getLastMatchingPosition'](_0x41766d,{'direction':'backward'});return(!_0x2f187b['start']['isEqual'](_0x2a35a3)||!_0x2f187b['end']['isEqual'](_0x1b4976))&&(_0x2a35a3['isBefore'](_0x1b4976)?_0x16cd00['updateMarker'](_0x2bfb0e,{'range':_0x16cd00['createRange'](_0x2a35a3,_0x1b4976)}):_0x16cd00['removeMarker'](_0x2bfb0e),!0x0);}function Gt(_0x1f3224){return _0x59a68d(_0x1f3224);}function Ft(_0x210147){const _0x83fa21=_0x210147['start']['nodeAfter'];return _0x83fa21&&_0x83fa21['is']('element');}function Pt(_0x222522,_0x493274){return null==_0x222522['end']['nodeBefore']&&_0x222522['end']['parent']==_0x222522['start']['nodeAfter']?Lt(_0x222522['start']['nodeAfter'],_0x493274):_0x222522;}function Lt(_0x44af46,_0x12991a){const _0x34a4db=_0x12991a['schema']['isObject'](_0x44af46)||_0x12991a['schema']['isSelectable'](_0x44af46);return _0x12991a['createRange'](_0x12991a['createPositionAt'](_0x44af46,'before'),_0x34a4db?_0x12991a['createPositionAfter'](_0x44af46):_0x12991a['createPositionAt'](_0x44af46,'end'));}function Ht(_0x2a2a75,_0x4740da,_0x215b05,_0x50a5d2,_0x54bb55){if(_0x2a2a75['next'])return!0x1;if(!Jt(_0x2a2a75,_0x4740da))return!0x1;if(_0x215b05['end']['isEqual'](_0x50a5d2['start']))return!0x0;if(_0x2a2a75['type']!=_0x4740da['type'])return!0x1;if(!_0x215b05['end']['isTouching'](_0x50a5d2['start']))return!0x1;const _0x5db05c=_0x54bb55['createRange'](_0x215b05['end'],_0x50a5d2['start'])['getWalker']();for(const _0x16395d of _0x5db05c)if(['elementStart','elementEnd']['includes'](_0x16395d['type'])&&_0x54bb55['schema']['isLimit'](_0x16395d['item']))return!0x1;return!0x0;}function Jt(_0x536677,_0x5d177c){if(!_0x536677['_isDataLoaded']||!_0x5d177c['_isDataLoaded'])return!0x1;const _0x35b741=new Set(Object['keys'](_0x536677['attributes'])),_0x50bfaa=new Set(Object['keys'](_0x5d177c['attributes']));if(_0x35b741['delete']('groupId'),_0x50bfaa['delete']('groupId'),0x0==_0x35b741['size']&&0x0==_0x50bfaa['size'])return!0x0;if(_0x35b741['size']!=_0x50bfaa['size'])return!0x1;const _0x1d54ee={..._0x536677['attributes']},_0x2fcc75={..._0x5d177c['attributes']};return delete _0x1d54ee['groupId'],delete _0x2fcc75['groupId'],JSON['stringify'](_0x1d54ee)==JSON['stringify'](_0x2fcc75);}function qt(_0x4259f0,_0x54a463){const _0x3c7247=zt(_0x4259f0['attributes']),_0x54ce0e=zt(_0x54a463);if(!_0x4259f0['_isDataLoaded'])return!0x1;for(const _0x5e6f6d of Object['keys'](_0x54ce0e))if(!_0x47c0f7(_0x3c7247[_0x5e6f6d],_0x54ce0e[_0x5e6f6d]))return!0x1;return!0x0;}function zt(_0x2b609a){const _0xb9bec9=Object['assign']({},_0x2b609a);return delete _0xb9bec9['skipNestingCheck'],delete _0xb9bec9['tablePasteChainId'],_0xb9bec9;}class ae extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x59481e(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x5e613b,_0x3f251f,_0x572bf8,_0x3e1d12){super(),this['model']=_0x3f251f,this['view']=_0x572bf8,this['commentThreadController']=_0x3e1d12,this['_editor']=_0x5e613b,this['_acceptCommand']=_0x5e613b['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x5e613b['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x6fcc05,_0x1f336d)=>_0x6fcc05||_0x1f336d),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x1efb28=>_0x1efb28&&this['_editor']['model']['canEditAt'](_0x3f251f['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x521c28=>_0x521c28&&this['_editor']['model']['canEditAt'](_0x3f251f['getRanges']())),this['_pendingAction']=null,_0x572bf8['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x572bf8,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x572bf8,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x572bf8,'change:isDirty',()=>{_0x572bf8['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 _0x1a3ccb=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x1a3ccb);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x45a339{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x1f0692,_0x1345fd,_0x3dafb6,_0x34a90d){super(_0x1f0692),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x1249b0(_0x1f0692,o(_0x1f0692,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x1345fd['authoredAt']),this['bind']('authoredAt')['to'](_0x1345fd),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x1345fd,'authoredAt',this,'descriptionParts',(_0x2c9169,_0x56a89d,_0x5ed44a)=>{const _0x464ed1=_0x5ed44a['map'](_0x45dd0d=>ls(_0x45dd0d['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x2c9169-0x1,_0x1345fd['author']['name'],_0x56a89d?_0x34a90d['formatDateTime'](_0x56a89d):'',new DOMParser()['parseFromString'](_0x464ed1,'text/html')['body']['textContent']]);}),this['focusables']=new _0x269b0e(),this['focusTracker']=new _0x4d488c(),this['keystrokes']=new _0x452cad(),this['focusCycler']=new _0x5a7f21({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x176ff3=>_0x176ff3['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x1345fd,this['_localUser']=_0x3dafb6,this['_config']=_0x34a90d,_0x34a90d['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x1ed323(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x2215e8}=this['_config'];this['commentsListView']=new _0x2215e8(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',_0x2a3068=>_0x2a3068+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0xba49ab,_0x57f81f)=>_0xba49ab||!!_0x57f81f);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2a1d19}=this['_config'],_0x27db13=new _0x2a1d19(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x14c72f=_0x27db13['commentInputView'];return _0x27db13['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x14c72f,'value',(_0x3feffa,_0x29011a,_0x1bdb64)=>!!_0x1bdb64||_0x3feffa&&!_0x29011a),_0x14c72f['on']('submit',(_0x17e97d,_0x18c9ff)=>{this['fire']('addComment',_0x18c9ff),_0x14c72f['editor']['setData']('');}),_0x14c72f['on']('cancel',()=>this['focus']()),_0x14c72f['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x27db13;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x403201,_0x597f67,_0x68e4f4,_0x290e3c){super(_0x403201,_0x597f67,_0x68e4f4,_0x290e3c),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x256db7=>_0x256db7&&_0x256db7[0x0]?_0x256db7[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3374c9,_0x18ac21)=>{let _0x4f7bdc='';for(const _0x80d26e of _0x3374c9)_0x4f7bdc+='<p>'+ls(_0x80d26e['content'],_0x80d26e['color'])+'</p>';return _0x18ac21?_0x4f7bdc:_0x2a1180(_0x4f7bdc,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x290e3c['SuggestionView'](_0x403201,_0x597f67,{'formatDateTime':_0x290e3c['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x19386e=this['bindTemplate'],_0x32c816=[this['suggestionView']];return this['commentsListView']&&_0x32c816['push'](this['commentsListView']),this['commentThreadInputView']&&_0x32c816['push'](this['commentThreadInputView']),_0x32c816['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x19386e['if']('isActive','ck-suggestion-wrapper--active'),_0x19386e['to']('type',_0x548436=>'ck-suggestion-'+_0x548436),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x19386e['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x32c816};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class ce extends _0x45a339{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x3da503,_0x12ea2f,_0x21b6fa){super(_0x3da503),this['_model']=_0x12ea2f,this['_config']=_0x21b6fa,this['set']('description',''),this['bind']('authoredAt')['to'](_0x12ea2f),this['acceptButton']=this['_createButton'](o(_0x3da503,'Accept\x20suggestion'),_0x5a67df['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x3da503,'Discard\x20suggestion'),_0x5a67df['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x1d85c2(_0x3da503,_0x12ea2f['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x269b0e([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x4d488c(),this['keystrokes']=new _0x452cad(),this['focusCycler']=new _0x5a7f21({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x5d984d=>_0x5d984d['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x48eaf5=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x48eaf5['innerHTML']=this['description'],this['on']('change:description',(_0x2dadc6,_0x20cf69,_0x208206)=>{_0x48eaf5['innerHTML']=_0x208206;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x13c80b=this['bindTemplate'],_0x2707f8=[{'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':_0x13c80b['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x13c80b['to']('authoredAt',_0x973013=>this['_config']['formatDateTime'](_0x973013))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x2707f8['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x2707f8}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x5b73bf,_0x1d6658,_0x4c18dd,_0x36351e,_0x6896b7){const _0x484b85=new _0x4ca81e(this['locale']);return _0x484b85['set']({'label':_0x5b73bf,'icon':_0x1d6658,'tooltip':!0x0,'tooltipPosition':_0x6896b7}),_0x484b85['extendTemplate']({'attributes':{'class':_0x4c18dd}}),_0x484b85['on']('execute',()=>{this['fire'](_0x36351e,this['_model']['id']);}),_0x484b85;}['_setupKeyboardNavigation'](){const _0x5dc985=this['element'];this['keystrokes']['listenTo'](_0x5dc985);for(const _0x48dff5 of this['focusables'])this['focusTracker']['add'](_0x48dff5['element']),this['keystrokes']['listenTo'](_0x48dff5['element']);this['keystrokes']['set']('enter',(_0x356d1b,_0x3733b4)=>{_0x5dc985===_0x356d1b['target']&&(this['focusCycler']['focusFirst'](),_0x3733b4());}),this['keystrokes']['set']('esc',(_0x589633,_0x5e8ba5)=>{_0x5dc985!==_0x589633['target']&&(this['focus'](),_0x5e8ba5());});}}var he='<!--\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\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x48c5b5{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x47d1f4,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x3aaa66){super(_0x3aaa66),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x18f1a4=this['editor']['config'];_0x18f1a4['define']('trackChanges.SuggestionThreadView',re),_0x18f1a4['define']('trackChanges.SuggestionView',ce),_0x18f1a4['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x18f1a4['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x46db5a,_0x34c13f){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x39cbf5,_0xe4afca]of this['_handleControllerBuffer']){const _0x43c8d0=this['_suggestionToController']['has'](_0x39cbf5);_0x43c8d0||_0xe4afca?_0x43c8d0&&_0xe4afca&&this['_destroyController'](_0x39cbf5):this['_initializeController'](_0x39cbf5);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x46db5a,_0x34c13f);}['init'](){const _0x36f713=this['editor'],_0x560ab9=_0x36f713['plugins']['get']('TrackChangesEditing'),_0xe4adc7=_0x36f713['plugins']['get']('Annotations'),_0x1fa8ff=_0x36f713['plugins']['get']('EditorAnnotations'),_0x4f628b=_0x36f713['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x1fa8ff['addSourceCollector'](()=>{const _0xbcbadb=[];for(const [_0x178c89,_0x285558]of Array['from'](this['_suggestionToController'])){const _0xae365a=_0x178c89['getAllAdjacentSuggestions'](),_0x168c18=[];for(const _0x1f07cd of _0xae365a){if(!_0x1f07cd['isInContent'])continue;if(_0x1f07cd['isMultiRange']){_0x168c18['push'](..._0x1f07cd['getRanges']());continue;}const _0x16cb61=_0x1f07cd['getFirstRange']();if(_0x168c18['length']>0x0){const _0x5b8200=_0x168c18[0x0]['getJoined'](_0x16cb61);if(_0x5b8200){_0x168c18[0x0]=_0x5b8200;continue;}}_0x168c18['push'](_0x16cb61);}_0xbcbadb['push']([_0x285558['view'],_0x168c18]);}return _0xbcbadb;}),this['listenTo'](_0x560ab9,'suggestionLoaded',(_0x42a60e,_0x745dcf)=>{this['listenTo'](_0x745dcf,'change:previous',(_0x1f006d,_0x16ceef,_0x30acf9,_0x37fe36)=>{_0x745dcf['isInContent']&&(null==_0x30acf9?(this['_updateController'](_0x37fe36['head']),this['_handleSuggestionControllerDelayed'](_0x745dcf,!0x1)):(this['_updateController'](_0x30acf9['head']),null==_0x37fe36&&this['_handleSuggestionControllerDelayed'](_0x745dcf,!0x0)));}),null!==_0x745dcf['previous']?this['_updateController'](_0x745dcf['head']):this['_handleSuggestionControllerDelayed'](_0x745dcf,!0x1);}),this['listenTo'](_0x560ab9,'suggestionUnloaded',(_0x4e2199,_0x4b24d7,_0x3477b1)=>{this['stopListening'](_0x4b24d7,'change:previous'),this['_handleControllerBuffer']['delete'](_0x4b24d7),this['_suggestionToController']['has'](_0x4b24d7)&&this['_destroyController'](_0x4b24d7),_0x3477b1&&this['_updateController'](_0x3477b1['head']);}),this['listenTo'](_0x560ab9,'suggestionChanged',(_0x3a69fa,_0x16f7a5)=>{this['_updateController'](_0x16f7a5);}),this['listenTo'](_0xe4adc7,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4f628b,'addComment',(_0x1d1bf3,{threadId:_0x4963b2,isFromAdapter:_0x490ee1})=>{if(_0x490ee1||!_0x560ab9['hasSuggestion'](_0x4963b2))return;const _0x2dd179=_0x560ab9['getSuggestion'](_0x4963b2);this['_suggestionToController']['get'](_0x2dd179)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x4821a9=this['editor']['plugins']['get']('Annotations'),_0x146821=this['editor']['plugins']['get']('TrackChangesEditing'),_0x226dba=Array['from'](_0x4821a9['activeAnnotations'],_0x5d34a3=>_0x5d34a3['innerView'])['filter'](_0x12ba1c=>this['_viewToController']['has'](_0x12ba1c)),_0x159fd2=[];for(const _0x1dea01 of _0x226dba){const _0x47f187=this['_viewToController']['get'](_0x1dea01)['model']['getAllAdjacentSuggestions']();_0x159fd2['push'](..._0x47f187['reduce']((_0x3ea1e6,_0x2c4a0f)=>[..._0x3ea1e6,..._0x2c4a0f['getMarkerNames']()],[]));}_0x146821['activeMarkers']=_0x159fd2;}['_addUIComponentsToFactory'](){const _0x3b576b=this['editor'],_0x1707af=_0x3b576b['locale'],_0xbbadcd=o(_0x1707af,'Track\x20changes'),_0x3c2b6a=new Wt([{'type':'switchbutton','model':new _0x3fd37c({'withText':!0x0,'isToggleable':!0x0,'label':_0xbbadcd,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x3fd37c({'withText':!0x0,'label':o(_0x1707af,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3fd37c({'withText':!0x0,'label':o(_0x1707af,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3fd37c({'withText':!0x0,'label':o(_0x1707af,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3fd37c({'withText':!0x0,'label':o(_0x1707af,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x299862 of _0x3c2b6a)if(me(_0x299862)){const _0x3c7749=_0x3b576b['commands']['get'](_0x299862['model']['commandName']);_0x299862['model']['bind']('isOn','isEnabled')['to'](_0x3c7749,'value','isEnabled');}_0x3b576b['ui']['componentFactory']['add']('trackChanges',_0x51bcc1=>this['_createToolbarButton'](_0x51bcc1,_0x3c2b6a,_0xbbadcd)),_0x3b576b['ui']['componentFactory']['add']('menuBar:trackChanges',_0x18e4c6=>this['_createMenuBarMenu'](_0x18e4c6,_0x3c2b6a,_0xbbadcd));}['_createToolbarButton'](_0x3e1e68,_0x491c8f,_0x59b1f7){const _0xfced0f=Qt(_0x3e1e68,_0x3cc44d),_0x4a5953=this['editor']['commands']['get']('trackChanges');_0xfced0f['buttonView']['set']({'tooltip':_0x59b1f7,'label':_0x59b1f7,'icon':he}),_0xfced0f['buttonView']['bind']('isOn')['to'](_0x4a5953,'value'),_0xfced0f['buttonView']['on']('execute',()=>{_0x4a5953['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0xfced0f,_0x491c8f,{'role':'menu'});const _0x1cb9a4=[];for(const _0x507413 of _0x491c8f)me(_0x507413)&&_0x1cb9a4['push'](this['editor']['commands']['get'](_0x507413['model']['commandName']));const _0x1e3f30=_0xfced0f['buttonView'];return _0x1e3f30['actionView']['unbind']('isEnabled'),_0x1e3f30['arrowView']['unbind']('isEnabled'),_0x1e3f30['actionView']['bind']('isEnabled')['to'](_0x4a5953,'isEnabled'),_0x1e3f30['arrowView']['bind']('isEnabled')['toMany'](_0x1cb9a4,'isEnabled',(..._0x38edca)=>_0x38edca['some'](_0x56ca89=>_0x56ca89)),_0xfced0f['on']('execute',_0x4539ea=>{this['editor']['execute'](_0x4539ea['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0xfced0f;}['_createMenuBarMenu'](_0xcc612e,_0x368792,_0x102314){const _0x43efa5=new Yt(_0xcc612e),_0x3e1ae9=this['editor']['commands']['get']('trackChanges');_0x43efa5['buttonView']['set']({'label':_0x102314,'icon':he});const _0x51436a=new Zt(_0xcc612e);for(const _0x2f09e0 of _0x368792){if('separator'==_0x2f09e0['type']){_0x51436a['items']['add'](new Xt(_0xcc612e));continue;}const _0x3b923b=new te(_0xcc612e,_0x43efa5),_0x26df15=new _0x2c5493(_0xcc612e),_0x4bd520=_0x2f09e0['model'];_0x26df15['bind'](...Object['keys'](_0x4bd520))['to'](_0x4bd520),_0x26df15['delegate']('execute')['to'](_0x43efa5),_0x26df15['on']('execute',()=>{this['editor']['execute'](_0x4bd520['commandName']),this['editor']['editing']['view']['focus']();}),_0x3b923b['children']['add'](_0x26df15),_0x51436a['items']['add'](_0x3b923b);}return _0x43efa5['bind']('isEnabled')['to'](_0x3e1ae9,'isEnabled'),_0x43efa5['panelView']['children']['add'](_0x51436a),_0x43efa5;}['_initializeController'](_0x1e4961){const _0x43d559=this['editor'],_0xb4ee0=_0x43d559['config'],_0x359fc0=_0x43d559['plugins']['get']('Annotations'),_0x12d582=_0x43d559['plugins']['get']('CommentsRepository'),_0x41bf56=_0x43d559['plugins']['get']('EditorAnnotations'),_0x5ee613=_0x43d559['plugins']['get'](_0x47d1f4)['me'],_0x4aed60=_0xb4ee0['get']('trackChanges')['SuggestionThreadView'],_0x3e28af=_0xb4ee0['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x4d9e41,CommentThreadInputView:_0x439e3c}=_0x43d559['plugins']['get']('CommentsUI');let _0x3d92fd,_0x19c770,_0x54c715;this['_annotationViews']['has'](_0x1e4961['id'])?(_0x19c770=this['_annotationViews']['get'](_0x1e4961['id']),_0x3d92fd=_0x19c770['mainView']):(_0x3d92fd=new _0x4aed60(_0x43d559['locale'],_0x1e4961,_0x5ee613,{'disableComments':this['_disableComments'],'editorConfig':_0xb4ee0['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0xb4ee0['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xb4ee0['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xb4ee0['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5412e2(_0xb4ee0['get']('locale')),'CommentView':_0xb4ee0['get']('comments')['CommentView'],'CommentsListView':_0x4d9e41,'CommentThreadInputView':_0x439e3c,'SuggestionView':_0x3e28af}),_0x3d92fd['suggestionView']['acceptButton']['on']('execute',()=>{_0x43d559['editing']['view']['focus']();}),_0x3d92fd['suggestionView']['discardButton']['on']('execute',()=>{_0x43d559['editing']['view']['focus']();}),_0x19c770=_0x359fc0['createAnnotationView'](this['editor']['locale'],_0x3d92fd),_0x19c770['bind']('isDirty')['to'](_0x3d92fd,'isDirty'),_0x19c770['bind']('length')['to'](_0x3d92fd),_0x19c770['bind']('type')['to'](_0x3d92fd,'type',_0x18cbdf=>'suggestion-'+_0x18cbdf),_0x3d92fd['on']('escape',()=>{_0x54c715['fire']('escape');}),this['_annotationViews']['set'](_0x1e4961['id'],_0x19c770));const _0x29de68=_0x12d582['createCommentThreadController'](_0x1e4961['commentThread'],_0x3d92fd),_0xa16cac=new ae(_0x43d559,_0x1e4961,_0x3d92fd,_0x29de68),_0x24a741=_0x1e4961['getAllAdjacentSuggestions']()['filter'](_0x4344ac=>_0x4344ac['isInContent']);_0x3d92fd['descriptionParts']=_0x43d559['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x24a741),this['_suggestionToController']['set'](_0x1e4961,_0xa16cac),this['_viewToController']['set'](_0x3d92fd,_0xa16cac),_0x54c715=_0x359fc0['createAnnotation']({'view':_0x19c770,'target':()=>{const _0x3d9d1a=[],_0x253a00=_0x1e4961['getAllAdjacentSuggestions']()['filter'](_0x1fd4e4=>_0x1fd4e4['isInContent']);for(const _0x38bf17 of _0x253a00)_0x3d9d1a['push'](..._0x38bf17['getMarkers']());return _0x5b0cdd(_0x43d559['editing'],_0x3d9d1a);},'type':()=>'suggestion-'+_0xa16cac['view']['type']}),_0x12d582['_bindAnnotationToEditors'](_0x3d92fd,_0x54c715),_0x359fc0['add'](_0x54c715),_0x41bf56['registerAnnotation'](_0x54c715);}['_destroyController'](_0x2b4071){const _0x12bd47=this['editor']['plugins']['get']('CommentsRepository'),_0x3a0eba=this['editor']['plugins']['get']('Annotations'),_0x532ff7=this['_suggestionToController']['get'](_0x2b4071),_0x529de7=_0x532ff7['view'],_0x41aa49=_0x3a0eba['getByInnerView'](_0x529de7);_0x12bd47['_unbindEditors'](_0x529de7),_0x41aa49&&_0x3a0eba['remove'](_0x41aa49),this['_suggestionToController']['delete'](_0x2b4071),this['_viewToController']['delete'](_0x529de7),_0x532ff7['destroy']();}['_updateController'](_0x27b3c6){if(!_0x27b3c6['isInContent']||!this['_suggestionToController']['has'](_0x27b3c6))return;const _0xec0707=this['editor']['plugins']['get']('TrackChangesEditing'),_0x49f6ce=this['_suggestionToController']['get'](_0x27b3c6),_0x3f5c6c=_0x27b3c6['getAllAdjacentSuggestions']();_0x49f6ce['view']['descriptionParts']=_0xec0707['descriptionFactory']['getDescriptions'](_0x3f5c6c);}['destroy'](){for(const _0xb58a17 of this['_suggestionToController']['keys']())this['_destroyController'](_0xb58a17);for(const _0x3685ea of this['_annotationViews']['values']())_0x3685ea['mainView']['destroy']();super['destroy']();}}function me(_0x52b1d2){return'model'in _0x52b1d2;}class k extends _0x48c5b5{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x37ddfd){this['editor']['plugins']['get'](p)['adapter']=_0x37ddfd;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x4d992c){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x4d992c);}['getSuggestions']({skipNotAttached:_0x1a482d=!0x1,toJSON:_0x4b1bea=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x1a482d,'toJSON':_0x4b1bea});}['getSuggestion'](_0x340a77){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x340a77);}}const T=['Pagination'];class P extends _0x48c5b5{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x4a2885=this['editor'];if(_0x4a2885['config']['define']('trackChangesData.editorCreator',_0x5df44c=>{const _0x17063a=_0x4a2885['model']['document']['getRootNames']()['reduce']((_0x58b383,_0xeeb5e)=>(_0x58b383[_0xeeb5e]='',_0x58b383),{});return _0x4a2885['constructor']['create'](_0x17063a,_0x5df44c);}),'function'!=typeof _0x4a2885['config']['get']('trackChangesData')['editorCreator'])throw new _0x4f63a0('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x351c15){return N(this['editor'],!0x0,_0x351c15);}['getDataWithDiscardedSuggestions'](_0x476d98){return N(this['editor'],!0x1,_0x476d98);}}class D extends _0x48c5b5{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x149053){super(_0x149053),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(_0x3b7fdc){return void 0x0!==_0x3b7fdc['getRootsAttributes'];}async function N(_0x32c1fc,_0x5e64a4,_0x34f4dc){const _0x3d58de=_0x38a4f7(_0x32c1fc,T);_0x3d58de['plugins']['push'](p,D),_0x3d58de['rootsAttributes']=v(_0x32c1fc)?_0x32c1fc['getRootsAttributes']():void 0x0;const _0x237b77=document['createDocumentFragment'](),_0x578439=_0x32c1fc['config']['get']('trackChangesData')['editorCreator'],_0x3267b6=await _0x578439(_0x3d58de,()=>function(_0x4617d7){const _0x1a6270=document['createElement']('div');return _0x4617d7['appendChild'](_0x1a6270),_0x1a6270;}(_0x237b77));!function(_0x1e1be4,_0xb6da3a){const _0x3ce2d7=_0x1e1be4['model']['document']['getRootNames']()['reduce']((_0x360828,_0x54d1cd)=>(_0x360828[_0x54d1cd]=_0x1e1be4['data']['get']({'rootName':_0x54d1cd}),_0x360828),{}),_0x3e078e=_0x1e1be4['plugins']['get']('Users')['users']['map'](_0x1409db=>({'id':_0x1409db['id'],'name':_0x1409db['name']})),_0x5069a7=_0x1e1be4['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x54db23=_0x1e1be4['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x332a97=_0xb6da3a['plugins']['get']('Users'),_0x5548f5=_0xb6da3a['plugins']['get']('TrackChangesEditing'),_0x2d2f33=_0xb6da3a['plugins']['get']('CommentsRepository');for(const _0x17d338 of _0x2d2f33['getCommentThreads']())_0x17d338['remove']();for(const _0x50b49a of _0x3e078e)_0x332a97['getUser'](_0x50b49a['id'])||_0x332a97['addUser'](_0x50b49a);_0x332a97['me']||_0x332a97['useAnonymousUser']();for(const _0x2c0b61 of _0x54db23)_0x2d2f33['addCommentThread'](_0x2c0b61);for(const _0x535c90 of _0x5069a7)_0x5548f5['addSuggestionData'](_0x535c90);_0xb6da3a['data']['set'](_0x3ce2d7);}(_0x32c1fc,_0x3267b6),_0x3267b6['execute'](_0x5e64a4?'acceptAllSuggestions':'discardAllSuggestions');const _0x123db4=v(_0x3267b6)?_0x3267b6['getFullData'](_0x34f4dc):_0x3267b6['data']['get'](_0x34f4dc);return await _0x3267b6['destroy'](),_0x123db4;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|