@ckeditor/ckeditor5-track-changes 0.0.0-nightly-next-20250211.0 → 0.0.0-nightly-next-20250212.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +26 -26
- 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
|
|
24
|
-
_0x32db8d(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x33cc6a,_0x405066){super(),this['id']=_0x405066['id'],this['type']=_0x405066['type'],this['subType']=_0x405066['subType']||null,this['author']=_0x405066['author'],this['creator']=_0x405066['creator']||_0x405066['author'],this['isExternal']=Boolean(_0x405066['attributes']&&_0x405066['attributes']['@external']),this['data']=null,this['_model']=_0x33cc6a,this['_onAccept']=_0x405066['onAccept'],this['_onDiscard']=_0x405066['onDiscard'],this['_onAttributesChange']=_0x405066['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x405066['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 _0x2d02dd=this;for(;_0x2d02dd['previous'];)_0x2d02dd=_0x2d02dd['previous'];return _0x2d02dd;}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'](_0x2e3d62){this['_markerNames']['add'](_0x2e3d62);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2d3b1b=>this['_model']['markers']['get'](_0x2d3b1b))['filter'](_0x26bfc1=>_0x26bfc1);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x94df29=>{for(const _0x2927f5 of this['getMarkers']())_0x94df29['removeMarker'](_0x2927f5);}),this['_markerNames']['clear']();}['removeMarker'](_0x492579){this['_model']['change'](_0x3276e1=>{_0x3276e1['removeMarker'](_0x492579);}),this['_markerNames']['delete'](_0x492579);}['addRange'](_0x45fb1f){const _0x15406f='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x15406f),this['_model']['change'](_0x27c750=>{_0x27c750['addMarker'](_0x15406f,{'range':_0x45fb1f,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1a13df){for(const _0xe39daf of this['getRanges']())if(_0xe39daf['isIntersecting'](_0x1a13df))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4eaa1d=>_0x4eaa1d['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x50c723,_0x293d05)=>[..._0x50c723,..._0x293d05['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x307d74=this['getRanges']();if(0x1!=_0x307d74['length'])return null;const _0x4ccb2c=_0x307d74[0x0],_0x2b82c9=_0x4ccb2c['start']['nodeAfter'],_0x14b42a=_0x4ccb2c['end']['nodeBefore'];return _0x2b82c9 instanceof _0x55fbd1?_0x2b82c9!=_0x14b42a?null:_0x2b82c9: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 _0x437efa=[];let _0x3b44c1=this['head'];for(;_0x3b44c1;)_0x437efa['push'](_0x3b44c1),_0x3b44c1=_0x3b44c1['next'];return _0x437efa;}['setAttribute'](_0x1b4118,_0x538d1c){const _0x4d36a7=_0x555c32(this['attributes']);_0x222abb(_0x4d36a7,_0x1b4118,_0x538d1c),_0x4d0e84(_0x4d36a7,this['attributes'])||(this['attributes']=_0x4d36a7,this['_onAttributesChange'](_0x4d36a7));}['removeAttribute'](_0x4977d6){const _0x1356c4=_0x555c32(this['attributes']);_0x518d46(_0x1356c4,_0x4977d6),_0x4d0e84(_0x1356c4,this['attributes'])||(this['attributes']=_0x1356c4,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 _0x5a1697()['substr'](0x1,0x5);}}function c(_0x556473,_0x43c5a1,_0x224a4c){const _0x3b2541=_0x556473['t'],t=_0x556473['t'];switch(_0x43c5a1){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x224a4c);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x224a4c);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x224a4c);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x224a4c);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x224a4c);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',_0x224a4c);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x224a4c);case'*Replace\x20image*':return t('*Replace\x20image*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x224a4c);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x224a4c);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x224a4c);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x224a4c);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x224a4c);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x224a4c);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x224a4c);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x224a4c);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x224a4c);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x224a4c);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x224a4c);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x224a4c);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x224a4c);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x224a4c);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x224a4c);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x224a4c);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x224a4c);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'},_0x224a4c);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x224a4c);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x224a4c);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x224a4c);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x224a4c);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x224a4c);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'},_0x224a4c);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x224a4c);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x224a4c);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x224a4c);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x224a4c);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'},_0x224a4c);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x224a4c);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'},_0x224a4c);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'},_0x224a4c);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x224a4c);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'},_0x224a4c);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x224a4c);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'},_0x224a4c);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x224a4c);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x224a4c);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'},_0x224a4c);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x224a4c);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 _0x3b2541({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x224a4c);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x3b2541({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x224a4c);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x224a4c);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'},_0x224a4c);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'},_0x224a4c);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'},_0x224a4c);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x43c5a1;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x14e808,_0x1e8362){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x14e808,this['_locale']=_0x1e8362;}['getDescriptions'](_0xeea9b0){const _0x14639a=[],_0x2a3d45=new Set(),_0x515cd4=new Set();for(let _0x821ef0=0x0;_0x821ef0<_0xeea9b0['length'];_0x821ef0++){const _0x59ddce=_0xeea9b0[_0x821ef0];if(!_0x59ddce['isInContent'])continue;const _0x1dd2ad=this['_handleCustomCallbackDescription'](_0x59ddce);if(_0x1dd2ad){if(null!=_0x59ddce['subType']){if(_0x2a3d45['has'](_0x59ddce['subType']))continue;_0x2a3d45['add'](_0x59ddce['subType']);}_0x14639a['push'](_0x1dd2ad);}else{if('attribute'!=_0x59ddce['type'])'insertion'!=_0x59ddce['type']&&'deletion'!=_0x59ddce['type']||this['_handleInsertRemoveSuggestionDescription'](_0x14639a,_0x59ddce,_0xeea9b0[_0x821ef0+0x1]);else{const _0x2d12fc=_0x59ddce['data']['key'];if(_0x515cd4['has'](_0x2d12fc))continue;_0x515cd4['add'](_0x59ddce['data']['key']),_0x2d12fc==u?this['_handleRenameSuggestionDescription'](_0x14639a,_0x59ddce):this['_handleAttributeSuggestionDescription'](_0x14639a,_0x59ddce);}}}return this['_resolveDescriptionItems'](_0x14639a);}['registerDescriptionCallback'](_0x4b834b){this['_customCallbacks']['push'](_0x4b834b);}['registerElementLabel'](_0x52a974,_0x201991,_0x23a15f=_0x185083['normal']){'function'==typeof _0x52a974?_0x5c974e(this['_itemLabelsCallbacks'],{'matchingCallback':_0x52a974,'label':_0x201991,'priority':_0x23a15f}):this['_itemLabels']['set'](_0x52a974,_0x201991);}['registerAttributeLabel'](_0x37d802,_0x1024c2){this['_attributeLabels']['set'](_0x37d802,_0x1024c2);}['getItemLabel'](_0x223ff8,_0x37cffc=0x1){let _0x1a8fdf;for(const _0x2e2849 of this['_itemLabelsCallbacks'])if(_0x2e2849['matchingCallback'](_0x223ff8)){_0x1a8fdf=_0x2e2849['label'];break;}return _0x1a8fdf||(_0x1a8fdf=this['_itemLabels']['get'](_0x223ff8['name'])),_0x1a8fdf?_0x1a8fdf(_0x37cffc):0x1!==_0x37cffc?_0x37cffc+'\x20'+_0x223ff8['name']+'s':''+_0x223ff8['name'];}['_addDescriptionItems'](_0x4be7a0,_0x10dfbc){const _0x6956a9=_0x10dfbc['getFirstRange']()['getWalker'](),_0x5c2c7d='insertion'==_0x10dfbc['type']?'add':'remove';for(const _0x978ade of _0x6956a9){const _0x235389=_0x978ade['item'],_0x1720c9=_0x4be7a0[_0x4be7a0['length']-0x1];if(_0x235389['is']('$textProxy'))_0x1720c9&&_0x1720c9['type']['indexOf']('Container')>-0x1&&_0x4be7a0['pop'](),_0x1720c9&&'text'==_0x1720c9['type']?_0x1720c9[_0x5c2c7d]+=_0x235389['data']:_0x4be7a0['push']({'type':'text','add':'add'==_0x5c2c7d?_0x235389['data']:'','remove':'remove'==_0x5c2c7d?_0x235389['data']:''});else{if(this['_schema']['isObject'](_0x235389)){const _0x4d68a1=_0x235389;if(_0x1720c9&&_0x1720c9['type']['indexOf']('Container')>-0x1&&_0x4be7a0['pop'](),'elementEnd'==_0x978ade['type'])continue;_0x1720c9&&_0x1720c9['type']==_0x5c2c7d+'Object'&&_0x1720c9['element']['name']==_0x4d68a1['name']?_0x1720c9['quantity']++:_0x4be7a0['push']({'type':_0x5c2c7d+'Object','element':_0x4d68a1,'quantity':0x1}),_0x6956a9['skip'](_0x5481fe=>!('elementEnd'==_0x5481fe['type']&&_0x5481fe['item']==_0x235389));}else{if(this['_schema']['checkChild'](_0x235389,'$text')||_0x235389['is']('element','softBreak')){const _0x3aa7f8=_0x235389;if('add'==_0x5c2c7d&&'elementStart'==_0x978ade['type']||'remove'==_0x5c2c7d&&'elementEnd'==_0x978ade['type'])continue;if(_0x1720c9&&-0x1==_0x1720c9['type']['indexOf']('Container')){'text'==_0x1720c9['type']&&(_0x1720c9[_0x5c2c7d]+='\x0a');continue;}let _0x926ff4;if(_0x926ff4='add'==_0x5c2c7d?_0x3aa7f8['nextSibling']&&!this['_schema']['isObject'](_0x3aa7f8['nextSibling'])?_0x3aa7f8['nextSibling']:null:_0x3aa7f8['previousSibling']&&!this['_schema']['isObject'](_0x3aa7f8['previousSibling'])?_0x3aa7f8['previousSibling']:null,_0x3aa7f8['isEmpty']||_0x926ff4&&_0x926ff4['isEmpty']){const _0x5a0542=_0x926ff4&&_0x926ff4['isEmpty']?_0x926ff4:_0x3aa7f8;_0x1720c9&&_0x1720c9['type']==_0x5c2c7d+'EmptyContainer'&&_0x1720c9['element']['name']==_0x5a0542['name']?_0x1720c9['quantity']++:_0x4be7a0['push']({'type':_0x5c2c7d+'EmptyContainer','element':_0x5a0542,'quantity':0x1});}else _0x4be7a0['push']({'type':_0x5c2c7d+'Container','element':_0x3aa7f8});}}}}}['_resolveDescriptionItems'](_0x528b9d){const _0xaf62ee=this['_locale'],_0x379ca7=[],_0x124581=[],_0x4f544c=[];for(const _0xb1c072 of _0x528b9d)switch(_0xb1c072['type']){case'text':if(_0xb1c072['add']=_0xb1c072['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0xb1c072['remove']=_0xb1c072['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0xb1c072['add']&&''!=_0xb1c072['remove']){_0x379ca7['push']({'type':'replace','content':c(_0xaf62ee,'REPLACE_TEXT',['\x22'+_0xb1c072['remove']+'\x22','\x22'+_0xb1c072['add']+'\x22'])});continue;}if(null!=_0xb1c072['add']['match'](/^ +$/)){_0x379ca7['push']({'type':'insertion','content':c(_0xaf62ee,'*Insert:*\x20%0',c(_0xaf62ee,'ELEMENT_SPACE',_0xb1c072['add']['length']))});continue;}if(null!=_0xb1c072['remove']['match'](/^ +$/)){_0x379ca7['push']({'type':'deletion','content':c(_0xaf62ee,'*Remove:*\x20%0',c(_0xaf62ee,'ELEMENT_SPACE',_0xb1c072['remove']['length']))});continue;}if(''!=_0xb1c072['add']){_0x379ca7['push']({'type':'insertion','content':c(_0xaf62ee,'*Insert:*\x20%0','\x22'+_0xb1c072['add']+'\x22')});continue;}_0x379ca7['push']({'type':'deletion','content':c(_0xaf62ee,'*Remove:*\x20%0','\x22'+_0xb1c072['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x379ca7['push']({'type':'insertion','content':c(_0xaf62ee,'*Insert:*\x20%0',this['getItemLabel'](_0xb1c072['element'],_0xb1c072['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x379ca7['push']({'type':'deletion','content':c(_0xaf62ee,'*Remove:*\x20%0',this['getItemLabel'](_0xb1c072['element'],_0xb1c072['quantity']))});continue;case'addContainer':_0x379ca7['push']({'type':'insertion','content':c(_0xaf62ee,'*Split:*\x20%0',this['getItemLabel'](_0xb1c072['element'],_0xb1c072['quantity']))});continue;case'removeContainer':_0x379ca7['push']({'type':'deletion','content':c(_0xaf62ee,'*Merge:*\x20%0',this['getItemLabel'](_0xb1c072['element'],_0xb1c072['quantity']))});continue;case'addFormat':_0x124581['push'](_0xb1c072['key']);continue;case'removeFormat':_0x4f544c['push'](_0xb1c072['key']);continue;default:_0x379ca7['push'](_0xb1c072);}if(_0x124581['length']){const _0x636f6e=_0x124581['map'](_0xef450b=>this['_attributeLabels']['has'](_0xef450b)?this['_attributeLabels']['get'](_0xef450b):_0xef450b)['join'](',\x20');_0x379ca7['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x636f6e)});}if(_0x4f544c['length']){const _0xe16b2f=_0x4f544c['map'](_0x2a4979=>this['_attributeLabels']['has'](_0x2a4979)?this['_attributeLabels']['get'](_0x2a4979):_0x2a4979)['join'](',\x20');_0x379ca7['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0xe16b2f)});}return _0x379ca7;}['_handleCustomCallbackDescription'](_0x35b19b){for(const _0x369175 of this['_customCallbacks']){const _0x3bb99a=_0x369175(_0x35b19b);if(_0x3bb99a&&'type'in _0x3bb99a)return _0x3bb99a;}}['_handleAttributeSuggestionDescription'](_0x3a79d7,_0x53df99){const _0x24bd90=_0x53df99['data'],_0x5ebc60=void 0x0===_0x24bd90['newValue']?'removeFormat':'addFormat';_0x3a79d7['push']({'type':_0x5ebc60,'key':_0x24bd90['key']});}['_handleRenameSuggestionDescription'](_0x8005da,_0x342abd){_0x8005da['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x342abd['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x31ec5a,_0x17d67e,_0x10ec78){if(this['_addDescriptionItems'](_0x31ec5a,_0x17d67e),_0x10ec78&&_0x10ec78['getFirstRange']()&&!_0x17d67e['getFirstRange']()['end']['isEqual'](_0x10ec78['getFirstRange']()['start'])){const _0x35c0a2=_0x31ec5a[_0x31ec5a['length']-0x1],_0x39935f='insertion'==_0x17d67e['type']?'add':'remove';_0x35c0a2&&'text'==_0x35c0a2['type']&&(_0x35c0a2[_0x39935f]+='\x0a');}}}class U extends _0x104d33{['afterInit'](){const _0x3d5fcc=this['editor'],_0x1676d8=_0x3d5fcc['plugins']['get']('TrackChangesEditing');_0x3d5fcc['commands']['get']('showAIAssistant')&&_0x1676d8['enableCommand']('showAIAssistant');}}class V extends _0x104d33{['afterInit'](){const _0x185cc4=this['editor'],_0x4dbb17=_0x185cc4['locale'];if(!_0x185cc4['plugins']['has']('AlignmentEditing'))return;const _0x168791=_0x185cc4['plugins']['get']('TrackChangesEditing');_0x168791['enableDefaultAttributesIntegration']('alignment'),_0x168791['registerBlockAttribute']('alignment'),_0x168791['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x4dbb17,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x6029f4=this['editor'],_0x46537e=_0x6029f4['locale'];_0x6029f4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4d75b4=>{if('formatBlock'!=_0x4d75b4['type'])return;const {data:_0x12956c}=_0x4d75b4;if(_0x12956c&&'alignment'==_0x12956c['commandName']){const _0x166a7b=_0x12956c['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x46537e,'*Format:*\x20%0',function(_0x2968e6){switch(_0x2968e6){case'left':return c(_0x46537e,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x46537e,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x46537e,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x46537e,'FORMAT_JUSTIFY_TEXT');}}(_0x166a7b))};}});}}const Qt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x104d33{['afterInit'](){const _0x3ff865=this['editor'],_0x2ce74c=_0x3ff865['plugins']['get']('TrackChangesEditing'),_0x2fcc90=_0x3ff865['locale'];for(const _0x3aea6d of Qt){if(!_0x3ff865['plugins']['has'](_0x3aea6d))continue;const _0x4b06e5=_0x3aea6d['slice'](0x0,-0x7)['toLowerCase'](),_0x35b8be='FORMAT_'+_0x4b06e5['toUpperCase']();_0x2ce74c['enableDefaultAttributesIntegration'](_0x4b06e5),_0x2ce74c['registerInlineAttribute'](_0x4b06e5),_0x2ce74c['descriptionFactory']['registerAttributeLabel'](_0x4b06e5,c(_0x2fcc90,_0x35b8be));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x34d68e=this['editor'],_0x3490d7=_0x34d68e['locale'],_0x2b23aa=_0x34d68e['plugins']['get']('TrackChangesEditing');function _0x28eb5c(_0x38a359,_0x1c9401){_0x2b23aa['descriptionFactory']['registerDescriptionCallback'](_0x2c0b91=>{if('formatInline'!=_0x2c0b91['type'])return;const {data:_0x4c6edd}=_0x2c0b91;return _0x4c6edd&&_0x4c6edd['commandName']===_0x38a359?_0x4c6edd['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3490d7,'*Format:*\x20%0',_0x1c9401)}:{'type':'format','content':c(_0x3490d7,'*Remove\x20format:*\x20%0',_0x1c9401)}:void 0x0;});}_0x28eb5c('bold',c(_0x3490d7,'FORMAT_BOLD')),_0x28eb5c('italic',c(_0x3490d7,'FORMAT_ITALIC')),_0x28eb5c('underline',c(_0x3490d7,'FORMAT_UNDERLINE')),_0x28eb5c('code',c(_0x3490d7,'FORMAT_CODE')),_0x28eb5c('strikethrough',c(_0x3490d7,'FORMAT_STRIKETHROUGH')),_0x28eb5c('subscript',c(_0x3490d7,'FORMAT_SUBSCRIPT')),_0x28eb5c('superscript',c(_0x3490d7,'FORMAT_SUPERSCRIPT'));}}class G extends _0x104d33{['afterInit'](){const _0x2312e5=this['editor'],_0x506966=_0x2312e5['locale'];if(!_0x2312e5['plugins']['has']('BlockQuoteEditing'))return;const _0x555bff=_0x2312e5['plugins']['get']('TrackChangesEditing'),_0x3d10e0=this['editor']['commands']['get']('blockQuote');_0x555bff['enableCommand']('blockQuote',(_0x5135f0,_0x422c49={})=>{const _0x54884b=this['editor']['model']['document']['selection'],_0x55563b=_0x422c49&&void 0x0!==_0x422c49['forceValue']?_0x422c49['forceValue']:!_0x3d10e0['value'];let _0x318abe=[];if(_0x55563b){const _0x2d1318=Array['from'](_0x54884b['getSelectedBlocks']())['filter'](_0xf8617e=>Yt(_0xf8617e)||function(_0x2efcf5,_0x35602f){const _0x1b0688=_0x35602f['checkChild'](_0x2efcf5['parent'],'blockQuote'),_0x409391=_0x35602f['checkChild'](['$root','blockQuote'],_0x2efcf5);return _0x1b0688&&_0x409391;}(_0xf8617e,this['editor']['model']['schema']));_0x318abe=Xt(_0x2d1318,_0x2312e5['model']);}else{const _0x20d014=Array['from'](_0x54884b['getSelectedBlocks']())['filter'](_0x493f21=>Yt(_0x493f21));_0x318abe=Xt(_0x20d014,_0x2312e5['model']);}_0x2312e5['model']['change'](()=>{for(const _0x5d80be of _0x318abe)_0x555bff['markBlockFormat'](_0x5d80be,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x55563b}]});});}),_0x555bff['descriptionFactory']['registerDescriptionCallback'](_0x582460=>{const {data:_0x4dee67}=_0x582460;if(_0x4dee67&&'blockQuote'==_0x4dee67['commandName']){const _0x42b47b=c(_0x506966,'ELEMENT_BLOCK_QUOTE');return _0x4dee67['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x506966,'*Set\x20format:*\x20%0',_0x42b47b)}:{'type':'format','content':c(_0x506966,'*Remove\x20format:*\x20%0',_0x42b47b)};}});}}function Yt(_0x5b5890){return'blockQuote'==_0x5b5890['parent']['name'];}class L extends _0x104d33{['afterInit'](){const _0x44b7d2=this['editor'],_0x16dc27=_0x44b7d2['locale'],_0x161c8c=_0x44b7d2['plugins']['get']('TrackChangesEditing');_0x44b7d2['plugins']['has']('BookmarkEditing')&&(_0x161c8c['enableCommand']('insertBookmark'),_0x161c8c['enableDefaultAttributesIntegration']('updateBookmark'),_0x161c8c['registerBlockAttribute']('bookmarkId'),_0x161c8c['descriptionFactory']['registerDescriptionCallback'](_0x223389=>{if('insertion'!=_0x223389['type']&&'deletion'!=_0x223389['type']&&'attribute'!=_0x223389['type'])return;const _0x40271a=_0x223389['getContainedElement']();if(null==_0x40271a)return;if(!_0x40271a['is']('element','bookmark'))return;const _0x3127a2=_0x40271a['getAttribute']('bookmarkId');if('insertion'==_0x223389['type'])return{'type':'insertion','content':c(_0x16dc27,'*Insert:*\x20%0','\x22'+_0x3127a2+'\x22\x20'+c(_0x16dc27,'ELEMENT_BOOKMARK'))};if('deletion'==_0x223389['type'])return{'type':'deletion','content':c(_0x16dc27,'*Remove:*\x20%0','\x22'+_0x3127a2+'\x22\x20'+c(_0x16dc27,'ELEMENT_BOOKMARK'))};const {data:_0x17ca92}=_0x223389;if(!_0x17ca92||'bookmarkId'!=_0x17ca92['key'])return;return{'type':'format','content':c(_0x16dc27,'*Set\x20bookmark:*\x20%0','\x22'+_0x17ca92['newValue']+'\x22')};}));}}class J extends _0x104d33{['afterInit'](){const _0x3d2707=this['editor'];_0x3d2707['plugins']['has']('CaseChange')&&(_0x3d2707['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3d2707['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3d2707['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x104d33{['afterInit'](){const _0x2490d4=this['editor'];_0x2490d4['commands']['get']('ckbox')&&_0x2490d4['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x104d33{['afterInit'](){const _0x1c2b5f=this['editor'];if(!_0x1c2b5f['plugins']['has']('CodeBlock'))return;const _0xfa9d97=_0x1c2b5f['plugins']['get']('TrackChangesEditing'),_0x32cf6c=_0x1c2b5f['locale'],_0x32855e=_0x1c2b5f['config']['get']('codeBlock')['languages'],_0x5daade=_0x1c2b5f['commands']['get']('codeBlock');_0xfa9d97['enableCommand']('indentCodeBlock'),_0xfa9d97['enableCommand']('outdentCodeBlock'),_0xfa9d97['enableCommand']('codeBlock',(_0x5919e6,_0x323672={})=>{const _0x38b078=_0x1c2b5f['model'],_0x5b6f05=_0x1c2b5f['model']['document']['selection'],_0x1d599b=_0x323672&&void 0x0!==_0x323672['forceValue']?_0x323672['forceValue']:!_0x5daade['value'];let _0x1d1a4f;_0x323672['language']||(_0x323672['language']=_0x32855e[0x0]['language']),_0x1d1a4f=_0x1d599b?Array['from'](_0x5b6f05['getSelectedBlocks']())['filter'](_0xbfdf23=>oo(_0xbfdf23)||function(_0x13ac27,_0x765c98){if(_0x13ac27['is']('rootElement')||_0x765c98['isLimit'](_0x13ac27))return!0x1;return _0x765c98['checkChild'](_0x13ac27['parent'],'codeBlock');}(_0xbfdf23,_0x38b078['schema'])):Array['from'](_0x5b6f05['getSelectedBlocks']())['filter'](_0xe3359f=>oo(_0xe3359f));const _0x56c34b=Xt(_0x1d1a4f,_0x38b078);_0x38b078['change'](()=>{for(const _0x1397a1 of _0x56c34b)_0xfa9d97['markBlockFormat'](_0x1397a1,{'commandName':'codeBlock','commandParams':[{..._0x323672,'forceValue':_0x1d599b}],'formatGroupId':'blockName'});});}),(_0xfa9d97['descriptionFactory']['registerElementLabel']('codeBlock',_0x11a02c=>c(_0x32cf6c,'ELEMENT_CODE_BLOCK',_0x11a02c)),_0xfa9d97['descriptionFactory']['registerDescriptionCallback'](_0x4e9727=>{if('formatBlock'!=_0x4e9727['type'])return;const _0x16e02f=_0x32cf6c['t'],{data:_0x2c993c}=_0x4e9727;if(!_0x2c993c||'codeBlock'!=_0x2c993c['commandName'])return;const _0x51640=_0x2c993c['commandParams'][0x0]['language'],_0x420306=_0x16e02f(_0x32855e['find'](_0x321537=>_0x321537['language']===_0x51640)['label'])['toLowerCase']();return _0x2c993c['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x32cf6c,'*Set\x20format:*\x20%0',c(_0x32cf6c,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x420306+')')}:{'type':'format','content':c(_0x32cf6c,'*Remove\x20format:*\x20%0',c(_0x32cf6c,'ELEMENT_CODE_BLOCK',0x1))};}));}}function oo(_0x44d3df){return'codeBlock'==_0x44d3df['name'];}class q extends _0x104d33{['afterInit'](){const _0x2575ec=this['editor'];if(!_0x2575ec['plugins']['has']('CommentsEditing'))return;_0x2575ec['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function no(_0x3da120,_0xa10f7f,_0x3f0cba){const _0x4b72c0=[];for(const _0x35edc5 of _0xa10f7f['getItems']())_0x35edc5['hasAttribute'](_0x3da120)&&_0x4b72c0['push'](_0x3f0cba['createRangeOn'](_0x35edc5));return _0x4b72c0;}function De(_0x21cdb2,_0x2f0d41,{showActiveMarker:_0xd82a8a=!0x0}={}){const _0x296417=_0x21cdb2['plugins']['get']('TrackChangesEditing');return(_0x3a4ccd,_0x1c4043,_0x24e8b2)=>{if(!_0x24e8b2['consumable']['test'](_0x1c4043['markerRange'],_0x3a4ccd['name']))return;const _0x4080ce=_0x1c4043['markerRange']['getWalker'](),_0x59b02a=_0x1c4043['markerRange']['start'],_0x246585=_0x21cdb2['model']['schema'];let _0x33c949=null,_0x5dfb36=null,_0x3ba868=!0x1,_0x443718=!0x1;for(const _0x25e9c3 of _0x4080ce){const _0x59ff1a=_0x25e9c3['item'];_0x3ba868=_0x3ba868||_0x246585['isContent'](_0x59ff1a);const _0x4d8966=_0x24e8b2['mapper']['toViewElement'](_0x59ff1a);if(_0x4d8966&&_0x4d8966['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x25e9c3['type']&&(_0x246585['isBlock'](_0x59ff1a)&&!_0x246585['isLimit'](_0x59ff1a)&&(_0x59ff1a['nextSibling']||_0x59b02a['isAtEnd']?_0x33c949&&_0x33c949['parent']==_0x59ff1a||(_0x33c949=_0x59ff1a,_0x5c83dc(_0x25e9c3['previousPosition']),_0x443718=!0x0):_0x5dfb36=_0x5dfb36||_0x25e9c3['previousPosition']));}function _0x5c83dc(_0x4a27d3){const {authorId:_0x3ecff0}=_0x296417['_splitMarkerName'](_0x1c4043['markerName']),_0x2cd981=_0x24e8b2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2f0d41,'data-author-id':_0x3ecff0}),_0x3490f4=_0x24e8b2['mapper']['toViewPosition'](_0x4a27d3);_0xd82a8a&&_0x296417['activeMarkers']['includes'](_0x1c4043['markerName'])&&_0x24e8b2['writer']['addClass']('ck-suggestion-marker--active',_0x2cd981),_0x24e8b2['writer']['insert'](_0x3490f4,_0x2cd981),_0x24e8b2['mapper']['bindElementToMarker'](_0x2cd981,_0x1c4043['markerName']);}_0x3ba868||_0x443718||!_0x5dfb36||_0x5c83dc(_0x5dfb36);};}class z extends _0x104d33{static get['requires'](){return[_0x44daea];}['init'](){const _0x1dd1b2=this['editor'],_0x495f37=_0x1dd1b2['plugins']['get']('TrackChangesEditing');_0x495f37['enableCommand']('delete');const _0x564007=_0x1dd1b2['commands']['get']('deleteForward');_0x495f37['enableCommand']('deleteForward',(_0x162c18,_0x4ebc34={})=>{const _0x3c6afd=_0x1dd1b2['model']['createSelection'](_0x1dd1b2['model']['document']['selection']);_0x3c6afd['isCollapsed']&&_0x1dd1b2['model']['modifySelection'](_0x3c6afd,{'direction':'forward','unit':_0x4ebc34['unit']});const _0x44ff19=_0x3c6afd['getFirstRange'](),_0x425126=_0x27b625['fromRange'](_0x44ff19);let _0x191b0e;_0x162c18(_0x4ebc34),_0x191b0e='$graveyard'==_0x425126['root']['rootName']?_0x1dd1b2['model']['createRange'](_0x44ff19['start']):_0x1dd1b2['model']['createRange'](_0x425126['start'],_0x425126['end']),_0x425126['detach'](),_0x1dd1b2['model']['enqueueChange'](_0x564007['buffer']['batch'],_0x9c41f7=>{_0x564007['buffer']['lock'](),_0x9c41f7['setSelection'](_0x9c41f7['createRange'](_0x191b0e['end'])),_0x564007['buffer']['unlock']();});}),_0x1dd1b2['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x1dd1b2,'merge'),{'priority':'high'}),_0x1dd1b2['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x2d7cd2,_0x446ccf,_0x3959b2)=>{_0x3959b2['options']['showSuggestionHighlights']&&De(_0x1dd1b2,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x2d7cd2,_0x446ccf,_0x3959b2);},{'priority':'high'}),_0x1dd1b2['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4e9a3e,_0x216ac3,_0x296acd)=>{const _0xbe98f4=_0x296acd['mapper']['markerNameToElements'](_0x216ac3['markerName']);if(_0xbe98f4){for(const _0x2cfba9 of _0xbe98f4)_0x2cfba9['is']('uiElement')&&(_0x296acd['mapper']['unbindElementFromMarkerName'](_0x2cfba9,_0x216ac3['markerName']),_0x296acd['writer']['remove'](_0x2cfba9));}},{'priority':'high'});}}class W extends _0x104d33{['afterInit'](){const _0x138a4e=this['editor'];if(!_0x138a4e['plugins']['has']('ListEditing'))return;const _0x3ac6aa=_0x138a4e['locale'],_0x3723df=_0x138a4e['plugins']['get']('TrackChangesEditing'),_0x1cb868=_0x138a4e['plugins']['has']('TodoListEditing'),_0x152df1=!!_0x138a4e['config']['get']('list.multiBlock');function _0x603c0d(_0x129a87){return{'type':'format','content':''+c(_0x3ac6aa,'*Set\x20format:*\x20%0',_0x129a87)};}function _0x3303b8(_0x59d53a){return{'type':'format','content':''+c(_0x3ac6aa,'*Remove\x20format:*\x20%0',_0x59d53a)};}_0x3723df['enableDefaultAttributesIntegration']('numberedList'),_0x3723df['enableDefaultAttributesIntegration']('bulletedList'),_0x3723df['enableDefaultAttributesIntegration']('customNumberedList'),_0x3723df['enableDefaultAttributesIntegration']('customBulletedList'),_0x3723df['enableDefaultAttributesIntegration']('indentList'),_0x3723df['enableDefaultAttributesIntegration']('outdentList'),_0x3723df['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x3723df['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x3723df['registerBlockAttribute']('listItemId'),_0x3723df['registerBlockAttribute']('listType'),_0x3723df['registerBlockAttribute']('listIndent'),_0x152df1&&(_0x3723df['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x3723df['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1cb868&&(_0x3723df['enableDefaultAttributesIntegration']('todoList'),_0x3723df['enableDefaultAttributesIntegration']('checkTodoList'),_0x3723df['registerBlockAttribute']('todoListChecked'),_0x3723df['descriptionFactory']['registerDescriptionCallback'](_0x1f3bcc=>{const {data:_0x369220}=_0x1f3bcc;if(_0x369220&&'todoListChecked'==_0x369220['key'])return{'type':'format','content':_0x369220['newValue']?c(_0x3ac6aa,'*Check\x20item*'):c(_0x3ac6aa,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x3e0d45=>{if(_0x3e0d45['batch']['isUndo'])return!0x1;let _0x2f68e3=!0x1;const _0x28e8c1=_0x3723df['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x9aa552=>'todoListChecked'===_0x3723df['_getAttributeKey'](_0x9aa552));for(const _0x9c2b53 of _0x28e8c1){'todo'!=_0x9c2b53['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x3723df['_findSuggestions'](_0x9c2b53['getFirstRange'](),'attribute')['find'](_0x2e99c6=>'listType'===_0x3723df['_getAttributeKey'](_0x2e99c6['suggestion']))||(_0x3e0d45['removeMarker'](_0x9c2b53['getFirstMarker']()),_0x2f68e3=!0x0));}return _0x2f68e3;})),_0x3723df['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x3ac6aa,'FORMAT_INDENT'));const _0x13f420={'type':'format','content':''};_0x3723df['descriptionFactory']['registerDescriptionCallback'](_0x2db326=>{const {data:_0x1a20ae}=_0x2db326;if(!_0x1a20ae||'listType'!=_0x1a20ae['key'])return;let _0x5c0376=_0x2db326['head'];for(;_0x5c0376;){if(_0x5c0376['data']&&(('listStyle'==_0x5c0376['data']['key']||'listMarkerStyle'==_0x5c0376['data']['key'])&&(_0x5c0376['data']['newValue']&&'default'!=_0x5c0376['data']['newValue']||'default'!=_0x5c0376['data']['oldValue']&&!_0x1a20ae['newValue'])||!_0x152df1&&_0x5c0376['data']['key']==u))return _0x13f420;_0x5c0376=_0x5c0376['next'];}if(null==_0x1a20ae['newValue'])switch(_0x1a20ae['oldValue']){case'bulleted':return _0x3303b8(c(_0x3ac6aa,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3303b8(c(_0x3ac6aa,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3303b8(c(_0x3ac6aa,'ELEMENT_TODO_LIST'));}switch(_0x1a20ae['newValue']){case'bulleted':return _0x603c0d(c(_0x3ac6aa,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x603c0d(c(_0x3ac6aa,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x603c0d(c(_0x3ac6aa,'ELEMENT_TODO_LIST'));}}),_0x3723df['descriptionFactory']['registerDescriptionCallback'](_0x37718f=>{const {data:_0x1c6c99}=_0x37718f;if(_0x1c6c99&&'listIndent'==_0x1c6c99['key'])return null==_0x1c6c99['newValue']||null==_0x1c6c99['oldValue']&&0x0==_0x1c6c99['newValue']?_0x13f420:void 0x0;}),_0x3723df['descriptionFactory']['registerDescriptionCallback'](_0x43e8a5=>{if('attribute'!=_0x43e8a5['type'])return;const {data:_0x35b876}=_0x43e8a5;if(!_0x35b876||'listItemId'!=_0x35b876['key'])return;const _0x3fa04c=Te(_0x43e8a5);return'newValue'==_0x3fa04c?{'type':'format','content':c(_0x3ac6aa,'*Merge:*\x20list\x20item')}:'oldValue'==_0x3fa04c?{'type':'format','content':c(_0x3ac6aa,'*Split:*\x20list\x20item')}:_0x13f420;}),_0x138a4e['model']['document']['registerPostFixer'](_0x5592c3=>this['listItemIdFixer'](_0x5592c3)),_0x138a4e['model']['document']['registerPostFixer'](_0x5c6c0f=>this['noTrackChangesFixer'](_0x5c6c0f)),_0x138a4e['model']['document']['on']('change:data',(_0x1b50cb,_0x335518)=>{if(_0x335518['isUndo']||!_0x335518['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x5451d7){if(_0x5451d7['batch']['isUndo']||!_0x5451d7['batch']['isLocal'])return!0x1;let _0x5037b7=!0x1;const _0x1fd152=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x406c94=>_0x406c94['data']&&'listItemId'==_0x406c94['data']['key'])['filter'](_0x120f24=>_0x120f24['data']['newValue']&&_0x120f24['data']['oldValue']);for(const _0x43f3a5 of _0x1fd152)Te(_0x43f3a5)||(_0x5451d7['removeMarker'](_0x43f3a5['getFirstMarker']()),_0x5037b7=!0x0);return _0x5037b7;}['noTrackChangesFixer'](_0x72f876){if(_0x72f876['batch']['isUndo']||!_0x72f876['batch']['isLocal'])return!0x1;const _0x10ebee=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x10ebee['trackChangesCommand']['value'])return!0x1;let _0x20b76d=!0x1;const _0xad666f=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x2cbe71=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x234f74=>'attribute'==_0x234f74['type'])['filter'](_0x41442d=>_0xad666f['includes'](_0x41442d['attributeKey']));if(0x0==_0x2cbe71['length'])return _0x20b76d;for(const _0x2a593e of _0x2cbe71){const _0x31b256=_0x10ebee['_findSuggestions'](_0x2a593e['range'],'attribute')['filter'](_0x224896=>!_0x224896['meta']['isNextTo'])['map'](_0x77009e=>_0x77009e['suggestion'])['filter'](_0xd8883c=>{const _0x37e913=_0x10ebee['_getAttributeKey'](_0xd8883c);return _0xad666f['includes'](_0x37e913);});if(_0x31b256['length']){for(const _0x1d3a07 of _0x31b256)_0x72f876['removeMarker'](_0x1d3a07['getFirstMarker']());_0x20b76d=!0x0;}}return _0x20b76d;}['assureChains'](){const _0x4f6749=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3b328e=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x26acdf;const _0xcfc689=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2fc21d=>{if(_0x2fc21d['data']['oldRange']||!_0x2fc21d['data']['newRange'])return null;if(!_0x2fc21d['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x25aff7}=_0x4f6749['_splitMarkerName'](_0x2fc21d['name']);if(!_0x4f6749['hasSuggestion'](_0x25aff7))return null;const _0x25eed5=_0x4f6749['getSuggestion'](_0x25aff7);return _0x3b328e['includes'](_0x25eed5['data']['key']);})['map'](_0x3acc53=>{const {id:_0x14761a}=_0x4f6749['_splitMarkerName'](_0x3acc53['name']),_0x20becb=_0x4f6749['getSuggestion'](_0x14761a);return _0x26acdf=_0x20becb['attributes']['groupId'],_0x20becb['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0xcfc689['size'])return;const _0x115d85=_0x4f6749['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3184d2=>'attribute'==_0x3184d2['type']&&_0x3184d2['data']&&_0x3b328e['includes'](_0x3184d2['data']['key'])&&_0x3184d2['attributes']['groupId']!=_0x26acdf)['map'](_0x58af39=>({'listItem':_0x58af39['getFirstRange']()['start']['nodeAfter'],'groupId':_0x58af39['attributes']['groupId']})),_0x55db43=new Set();for(const {groupId:_0x47a024,listItem:_0x1985d3}of _0x115d85)_0xcfc689['has'](_0x1985d3)&&_0x55db43['add'](_0x47a024);for(const _0x1db922 of _0x4f6749['getSuggestions']())_0x55db43['has'](_0x1db922['attributes']['groupId'])&&_0x1db922['setAttribute']('groupId',_0x26acdf);}['_supportLegacySuggestions'](){const _0x4136cb=this['editor'],_0x56499a=_0x4136cb['locale'],_0x540ecd=_0x4136cb['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x540ecd['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x2f8ad0,_0x16d463){const _0x73edb=[];for(let _0x2b0083 of _0x2f8ad0)_0x2b0083['start']['nodeAfter']===_0x2b0083['end']['parent']&&(_0x2b0083=_0x4136cb['model']['createRange'](_0x4136cb['model']['createPositionAt'](_0x2b0083['start']['nodeAfter'],0x0))),_0x73edb['push'](_0x2b0083);_0x4136cb['model']['change'](_0x3d561a=>{const _0xf3da8a=_0x4136cb['model']['document']['selection'],_0x19c7a0=Array['from'](_0xf3da8a['getRanges']())['map'](_0x44a1dc=>_0x27b625['fromRange'](_0x44a1dc));_0x3d561a['setSelection'](_0x73edb),_0x4136cb['commands']['get'](_0x16d463['commandName'])['refresh'](),_0x16d463['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4136cb['execute'](_0x16d463['commandName'],..._0x16d463['commandParams']),_0x3d561a['setSelection'](_0x19c7a0);for(const _0x451091 of _0x19c7a0)_0x451091['detach']();});}),_0x540ecd['descriptionFactory']['registerElementLabel'](function(_0x5acc4e){const _0x533827=!_0x4136cb['model']['schema']['isObject'](_0x5acc4e),_0x3f07f4=_0x5acc4e['previousSibling'],_0x22b04a=_0x5acc4e['nextSibling'],_0x8ab135=_0x5acc4e['getAttribute']('listItemId'),_0x5cb63b=!_0x3f07f4||_0x3f07f4['getAttribute']('listItemId')!==_0x8ab135,_0x1dc1e6=!_0x22b04a||_0x22b04a['getAttribute']('listItemId')!==_0x8ab135;return _0x533827&&Boolean(_0x8ab135)&&_0x5cb63b&&_0x1dc1e6;},_0x540eb3=>c(_0x56499a,'ELEMENT_LIST_ITEM',_0x540eb3));}['_registerLegacyDescription'](){const _0xa31e81=this['editor'],_0x4be9fb=_0xa31e81['locale'];function _0x20813c(_0x1039af){const _0x5f0b79=_0xa31e81['commands']['get']('bulletedList')['value'],_0x274cf6=_0xa31e81['commands']['get']('numberedList')['value'];return'numberedList'===_0x1039af?_0x5f0b79:_0x274cf6;}_0xa31e81['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0xb6d3e5){if('formatBlock'!=_0xb6d3e5['type'])return;const {data:_0x2e2bdf}=_0xb6d3e5;if(!_0x2e2bdf)return;let _0x5ed453,_0x35cfea,_0x483cb6,_0x5851c2;switch(_0x2e2bdf['commandName']){case'bulletedList':_0x483cb6=_0x2e2bdf['commandParams'][0x0]['forceValue'],_0x5851c2=_0x20813c(_0x2e2bdf['commandName']),_0x5ed453=_0x483cb6?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5851c2&&_0xa31e81['config']['get']('list.multiBlock')||(_0x5ed453='*Change\x20to:*\x20%0'),_0x35cfea={'type':'format','content':c(_0x4be9fb,_0x5ed453,c(_0x4be9fb,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x483cb6=_0x2e2bdf['commandParams'][0x0]['forceValue'],_0x5851c2=_0x20813c(_0x2e2bdf['commandName']),_0x5ed453=_0x483cb6?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5851c2&&_0xa31e81['config']['get']('list.multiBlock')||(_0x5ed453='*Change\x20to:*\x20%0'),_0x35cfea={'type':'format','content':c(_0x4be9fb,_0x5ed453,c(_0x4be9fb,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x5ed453='*Indent:*\x20%0',_0x35cfea={'type':'format','content':c(_0x4be9fb,_0x5ed453,c(_0x4be9fb,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x5ed453=function(_0x52b37a){const _0x1d89fc=_0x52b37a['getFirstRange']();let _0x43dc43=_0x1d89fc['start']['nodeAfter'];for(;_0x43dc43&&_0x1d89fc['containsItem'](_0x43dc43);){if(_0x43dc43['getAttribute']('listIndent')>0x0)return!0x1;_0x43dc43=_0x43dc43['nextSibling'];}return!0x0;}(_0xb6d3e5)?c(_0x4be9fb,'*Format:*\x20remove\x20from\x20%0',c(_0x4be9fb,function(_0x50dc59){return'ELEMENT_'+_0x50dc59['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0xb6d3e5))):c(_0x4be9fb,'*Outdent:*\x20%0',c(_0x4be9fb,'ELEMENT_LIST_ITEM')),_0x35cfea={'type':'format','content':_0x5ed453};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x2e2bdf['multipleBlocks']&&(_0x5ed453='*Merge:*\x20%0',_0x35cfea={'type':'deletion','content':c(_0x4be9fb,_0x5ed453,c(_0x4be9fb,'ELEMENT_LIST_ITEM'))});}return _0x35cfea;});}}function Te(_0x3e4b4c){let _0x3b4b88=_0x3e4b4c['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3b4b88;){const _0x42ba2b=_0x3b4b88['getAttribute']('listItemId');if(!_0x42ba2b)return!0x1;if(_0x42ba2b==_0x3e4b4c['data']['newValue'])return'newValue';if(_0x42ba2b==_0x3e4b4c['data']['oldValue'])return'oldValue';_0x3b4b88=_0x3b4b88['previousSibling'];}return!0x1;}class Se extends _0x104d33{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x316052=this['editor']['config']['get']('list.properties'),_0x445a45=this['editor']['plugins']['get']('TrackChangesEditing');_0x316052['styles']&&(_0x445a45['enableDefaultAttributesIntegration']('listStyle'),_0x445a45['registerBlockAttribute']('listStyle')),_0x316052['reversed']&&(_0x445a45['enableDefaultAttributesIntegration']('listReversed'),_0x445a45['registerBlockAttribute']('listReversed')),_0x316052['startIndex']&&(_0x445a45['enableDefaultAttributesIntegration']('listStart'),_0x445a45['registerBlockAttribute']('listStart'));const _0x56ae7a={'type':'format','content':''};_0x445a45['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4c6229=this['editor']['locale'];_0x445a45['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x4c6229,'FORMAT_LIST_REVERSED')),_0x445a45['descriptionFactory']['registerDescriptionCallback'](_0x23136b=>{const {data:_0x26eb3f}=_0x23136b;if(_0x26eb3f&&'listReversed'==_0x26eb3f['key'])return null==_0x26eb3f['newValue']||0x0==_0x26eb3f['newValue']&&null==_0x26eb3f['oldValue']?_0x56ae7a:void 0x0;}),_0x445a45['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x4c6229,'FORMAT_LIST_START')),_0x445a45['descriptionFactory']['registerDescriptionCallback'](_0xf8b76d=>{const {data:_0x4f9f9f}=_0xf8b76d;if(_0x4f9f9f&&'listStart'==_0x4f9f9f['key'])return null==_0x4f9f9f['newValue']||0x1==_0x4f9f9f['newValue']&&null==_0x4f9f9f['oldValue']?_0x56ae7a:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x40e112=>{if(_0x40e112['batch']['isUndo'])return!0x1;let _0x3ec06a=!0x1;const _0x117424=_0x445a45['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x51d4e1=>{const _0x378c7f=_0x445a45['_getAttributeKey'](_0x51d4e1);return'listStart'==_0x378c7f||'listReversed'==_0x378c7f;});for(const _0xeb7e1e of _0x117424){const _0x4f3204=_0xeb7e1e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4f3204||'customNumbered'==_0x4f3204)continue;_0x445a45['_findSuggestions'](_0xeb7e1e['getFirstRange'](),'attribute')['find'](_0x1590e1=>'listType'==_0x445a45['_getAttributeKey'](_0x1590e1['suggestion']))||(_0x40e112['removeMarker'](_0xeb7e1e['getFirstMarker']()),_0x3ec06a=!0x0);}return _0x3ec06a;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2f4e2e){const _0x39e33d=this['editor']['locale'],{data:_0x456293}=_0x2f4e2e,_0x140556={'type':'format','content':''};if(!_0x456293||'listStyle'!=_0x456293['key'])return;if(!_0x456293['oldValue'])return'default'==_0x456293['newValue']?_0x140556:{'type':'format','content':''+c(_0x39e33d,'*Set\x20format:*\x20%0',c(_0x39e33d,this['_getTranslationKeyForListStyle'](_0x456293['newValue'])))};if(!_0x456293['newValue']){if('default'==_0x456293['oldValue'])return _0x140556;let _0xb8c2ef=_0x2f4e2e['head'];for(;_0xb8c2ef;){if(_0xb8c2ef['data']&&'listType'==_0xb8c2ef['data']['key']&&_0xb8c2ef['data']['newValue'])return _0x140556;_0xb8c2ef=_0xb8c2ef['next'];}return{'type':'format','content':''+c(_0x39e33d,'*Remove\x20format:*\x20%0',c(_0x39e33d,this['_getTranslationKeyForListStyle'](_0x456293['oldValue'])))};}if('default'!=_0x456293['newValue'])return{'type':'format','content':''+c(_0x39e33d,'*Set\x20format:*\x20%0',c(_0x39e33d,this['_getTranslationKeyForListStyle'](_0x456293['newValue'])))};let _0x2c62d2=_0x2f4e2e['head'];for(;_0x2c62d2;){if(_0x2c62d2['data']&&'listType'==_0x2c62d2['data']['key']&&_0x2c62d2['data']['newValue']&&_0x2c62d2['data']['oldValue'])return _0x140556;_0x2c62d2=_0x2c62d2['next'];}return{'type':'format','content':c(_0x39e33d,'*Set\x20format:*\x20%0',c(_0x39e33d,'ELEMENT_'+_0x2f4e2e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x107c5a=this['editor'],_0x3eb390=_0x107c5a['locale'];_0x107c5a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x252e1b=>{if('formatBlock'!=_0x252e1b['type'])return;const {data:_0xd48f0c}=_0x252e1b;if(!_0xd48f0c)return;let _0x3ce689,_0x56c36e;switch(_0xd48f0c['commandName']){case'listStyle':_0x3ce689='*Change\x20to:*\x20%0',_0x56c36e={'type':'format','content':c(_0x3eb390,_0x3ce689,c(_0x3eb390,this['_getTranslationKeyForListStyle'](_0xd48f0c['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3ce689=_0xd48f0c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x56c36e={'type':'format','content':c(_0x3eb390,_0x3ce689)};break;case'listStart':_0x3ce689='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x56c36e={'type':'format','content':c(_0x3eb390,_0x3ce689,_0xd48f0c['commandParams'][0x0]['startIndex'])};}return _0x56c36e;});}['_getTranslationKeyForListStyle'](_0x15d6c8){return'ELEMENT_'+function(_0x334d66){if(_e['includes'](_0x334d66))return'bulleted';if(Re['includes'](_0x334d66))return'numbered';return null;}(_0x15d6c8)['toUpperCase']()+'_LIST_'+_0x15d6c8['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x104d33{static get['requires'](){return[_0x3f791];}['init'](){const _0x476a17=this['editor'],_0x2068f9=_0x476a17['plugins']['get']('TrackChangesEditing'),_0x3f7147=_0x476a17['commands']['get']('enter');_0x2068f9['enableCommand']('enter',()=>{_0x476a17['model']['change'](_0x12d2b2=>{const _0x256ebc=_0x476a17['model']['document']['selection'],_0x4eb50b=_0x256ebc['getFirstPosition'](),_0x3da90d=_0x27b625['fromRange'](_0x256ebc['getFirstRange']());if(_0x3f7147['enterBlock'](_0x12d2b2)){const _0x210bf5=_0x476a17['model']['createPositionAt'](_0x4eb50b['parent']['nextSibling'],0x0),_0x5006ed=_0x12d2b2['createRange'](_0x4eb50b,_0x210bf5);_0x2068f9['markInsertion'](_0x5006ed);}else _0x12d2b2['setSelection'](_0x12d2b2['createRange'](_0x3da90d['end']));_0x3da90d['detach'](),_0x3f7147['fire']('afterExecute',{'writer':_0x12d2b2});});}),_0x476a17['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x476a17,'split'),{'priority':'high'}),_0x476a17['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x5be850,_0x3dd3c7,_0x5e43ef)=>{const _0x4ef804=_0x5e43ef['mapper']['markerNameToElements'](_0x3dd3c7['markerName']);if(_0x4ef804){for(const _0x169499 of _0x4ef804)_0x169499['hasClass']('ck-suggestion-marker-split')&&(_0x5e43ef['mapper']['unbindElementFromMarkerName'](_0x169499,_0x3dd3c7['markerName']),_0x5e43ef['writer']['remove'](_0x169499));}},{'priority':'high'}),_0x476a17['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2767c4,_0x3191e1,_0x1881a7)=>{_0x1881a7['options']['showSuggestionHighlights']&&De(_0x476a17,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x2767c4,_0x3191e1,_0x1881a7);},{'priority':'high'});}}class Y extends _0x104d33{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1b69b5=this['editor']['plugins']['get']('TrackChangesEditing');_0x1b69b5['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1b69b5['enableCommand']('findNext'),_0x1b69b5['enableCommand']('findPrevious'),_0x1b69b5['enableCommand']('replace'),_0x1b69b5['enableCommand']('replaceAll');}['handleFindCommand'](_0x4512f0,_0x3b5711,_0xcc00d3={}){const _0x2d6d79=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x4512f0(_0x47935f=>{let _0x165fc4=('string'==typeof _0x3b5711?_0x2d6d79['findByTextCallback'](_0x3b5711,_0xcc00d3):_0x3b5711)(_0x47935f);Array['isArray'](_0x165fc4)&&(_0x165fc4={'results':_0x165fc4,'searchText':'string'==typeof _0x3b5711?_0x3b5711:''});const _0x39ed46=_0x165fc4['results']['filter'](_0x46417e=>!0x1===this['_isInDeletionRange'](_0x46417e,_0x47935f['item']));return{..._0x165fc4,'results':_0x39ed46};},_0xcc00d3);}['_isInDeletionRange'](_0x248680,_0x448448){const _0x4c9c0a=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x448448,_0x248680['start']),this['editor']['model']['createPositionAt'](_0x448448,_0x248680['end']));for(const _0x1119ee of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x4c9c0a['getIntersection'](_0x1119ee['getRange']()))return!0x0;return!0x1;}}const to=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x104d33{['afterInit'](){const _0x465334=this['editor']['locale'],_0x3c05a5=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2978ca,commandName:_0x2aaaa7}of to)this['editor']['plugins']['has'](_0x2978ca)&&(_0x3c05a5['enableDefaultAttributesIntegration'](_0x2aaaa7),_0x3c05a5['registerInlineAttribute'](_0x2aaaa7));_0x3c05a5['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x465334,'FORMAT_FONT_SIZE')),_0x3c05a5['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x465334,'FORMAT_FONT_FAMILY')),_0x3c05a5['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x465334,'FORMAT_FONT_COLOR')),_0x3c05a5['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x465334,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d625d=this['editor'],_0xbf93d=_0x4d625d['locale'];_0x4d625d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x16d85d=>{const _0x1616d0=_0xbf93d['t'];if('formatInline'!=_0x16d85d['type'])return;const {data:_0x914977}=_0x16d85d;if(null!=_0x914977){if('fontSize'==_0x914977['commandName']){const _0xdcd180=_0x914977['commandParams'][0x0]['value'];if(_0xdcd180){const _0xaa081=_0x1616d0(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x221a75=>_0x221a75['model']==_0xdcd180)['title'])['toLowerCase']();return{'type':'format','content':c(_0xbf93d,'*Set\x20font\x20size:*\x20%0',_0xaa081)};}return{'type':'format','content':c(_0xbf93d,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x914977['commandName']){const _0x4024ee=_0x914977['commandParams'][0x0]['value'];return _0x4024ee?{'type':'format','content':c(_0xbf93d,'*Set\x20font\x20family:*\x20%0',_0x4024ee)}:{'type':'format','content':c(_0xbf93d,'*Reset\x20font\x20family*')};}if('fontColor'==_0x914977['commandName']){const _0x134bf3=_0x914977['commandParams'][0x0]['value'];if(_0x134bf3){const _0x4d1412=Zt(this['editor']['config']['get']('fontColor.colors'))['find'](_0x2240b7=>_0x2240b7['model']==_0x134bf3);let _0x3400f5=_0x134bf3,_0x30e039='';return _0x4d1412&&(_0x3400f5=_0x4d1412['label'],_0x30e039=_0x1616d0(_0x3400f5)['toLowerCase']()),{'type':'format','content':c(_0xbf93d,'*Set\x20font\x20color:*\x20%0',_0x30e039)['trim'](),'color':{'value':_0x134bf3,'title':_0x30e039||_0x3400f5}};}return{'type':'format','content':c(_0xbf93d,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x914977['commandName']){const _0x39c948=_0x914977['commandParams'][0x0]['value'];if(_0x39c948){const _0x514422=Zt(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x565379=>_0x565379['model']==_0x39c948);let _0x51ba24=_0x39c948,_0x5bb4ee='';return _0x514422&&(_0x51ba24=_0x514422['label'],_0x5bb4ee=_0x1616d0(_0x51ba24)['toLowerCase']()),{'type':'format','content':c(_0xbf93d,'*Set\x20font\x20background\x20color:*\x20%0',_0x5bb4ee)['trim'](),'color':{'value':_0x39c948,'title':_0x5bb4ee||_0x51ba24}};}return{'type':'format','content':c(_0xbf93d,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x104d33{['afterInit'](){const _0x33087a=this['editor'],_0x26b5e3=_0x33087a['plugins']['get']('TrackChangesEditing'),_0x183d8d=_0x33087a['commands']['get']('copyFormat'),_0x2e53f9=_0x33087a['commands']['get']('pasteFormat');_0x183d8d&&_0x2e53f9&&(_0x26b5e3['enableDefaultAttributesIntegration']('pasteFormat'),_0x26b5e3['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0xc061a3=this['editor'],_0x5d2a6f=_0xc061a3['locale'];_0xc061a3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3554ec=>{if('formatBlock'!=_0x3554ec['type']&&'formatInline'!=_0x3554ec['type'])return;const {data:_0x32c89f}=_0x3554ec;if(_0x32c89f&&'pasteFormat'===_0x32c89f['commandName']){const _0x3b6642=[],_0x4754d7=_0x32c89f['commandParams'][0x0];for(const [_0x222590,_0x19fce3]of Object['entries'](_0x4754d7))_0x3b6642['push'](ro(_0xc061a3,_0x222590,_0x19fce3));return _0x3b6642['length']?{'type':'format','content':c(_0x5d2a6f,'*Set\x20format\x20to:*\x20%0',_0x3b6642['join'](',\x20'))}:{'type':'format','content':c(_0x5d2a6f,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x47aebe,_0x39f6de,_0x35e735){const _0x1a91a2=_0x47aebe['locale']['t'],_0x183992=_0x39f6de['split'](/(?=[A-Z])/)['join']('\x20'),_0x15cf60=_0x1a91a2(_0x183992['charAt'](0x0)['toUpperCase']()+_0x183992['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x35e735)return _0x15cf60;if('fontColor'===_0x39f6de||'fontBackgroundColor'===_0x39f6de){const _0x58f0c8=Zt(_0x47aebe['config']['get']('fontColor.colors'))['find'](_0x1fea27=>_0x1fea27['model']==_0x35e735);return _0x15cf60+'\x20('+(_0x58f0c8?_0x1a91a2(_0x58f0c8['label'])['toLowerCase']():_0x35e735)+')';}if('fontSize'===_0x39f6de&&isNaN(parseFloat(_0x35e735))){const _0x25fd79=_0x47aebe['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x47aebe['config']['get']('fontSize.options'))['find'](_0x434793=>_0x434793['model']==_0x35e735);return _0x15cf60+'\x20('+(_0x25fd79?_0x1a91a2(_0x25fd79['title'])['toLowerCase']():_0x35e735)+')';}return _0x15cf60+'\x20('+_0x35e735+')';}class et extends _0x104d33{['_headingOptions'];['afterInit'](){const _0x11cb4d=this['editor'];if(!_0x11cb4d['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x11cb4d['config']['get']('heading.options');const _0x2de42d=_0x11cb4d['locale'],_0x451ad8=_0x11cb4d['plugins']['get']('TrackChangesEditing');_0x451ad8['enableDefaultAttributesIntegration']('heading');for(const _0x2fe2b7 of this['_headingOptions'])'paragraph'!=_0x2fe2b7['model']&&_0x451ad8['descriptionFactory']['registerElementLabel'](_0x2fe2b7['model'],_0x3db1c4=>{const _0xde1bc5=this['_getHeadingLevel'](_0x2fe2b7['model']);return null!==_0xde1bc5?_0x1b5ee8(_0x3db1c4,_0xde1bc5):_0x2aec8d(_0x3db1c4,_0x2fe2b7['title']);});function _0x1b5ee8(_0x46fed5,_0x24c991){return c(_0x2de42d,'ELEMENT_HEADING',[_0x46fed5,_0x24c991]);}function _0x2aec8d(_0x418a1c,_0x17d985){return c(_0x2de42d,'ELEMENT_HEADING_CUSTOM',[_0x418a1c,_0x17d985]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1a1bdc=this['editor'],_0x1a3277=_0x1a1bdc['locale'];function _0x5c317f(_0x32ef84,_0x3cfc53){return c(_0x1a3277,'ELEMENT_HEADING_CUSTOM',[_0x32ef84,_0x3cfc53]);}_0x1a1bdc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4cfe74=>{if('formatBlock'!=_0x4cfe74['type'])return;const {data:_0x5b3b1c}=_0x4cfe74;if(_0x5b3b1c&&'heading'==_0x5b3b1c['commandName']){const _0x55dab4=_0x5b3b1c['commandParams'][0x0]['value'],_0x539400=this['_getHeadingLevel'](_0x55dab4);if(null!==_0x539400)return{'type':'format','content':c(_0x1a3277,'*Change\x20to:*\x20%0',(_0x412030=0x1,_0x4815d2=_0x539400,c(_0x1a3277,'ELEMENT_HEADING',[_0x412030,_0x4815d2])))};const _0x460392=this['_headingOptions']['find'](_0x381798=>_0x381798['model']===_0x55dab4)['title'];return{'type':'format','content':c(_0x1a3277,'*Change\x20to:*\x20%0',_0x5c317f(0x1,_0x460392))};}var _0x412030,_0x4815d2;});}['_getHeadingLevel'](_0x5beea1){const _0x2c5568=_0x5beea1['match'](/^heading(\d+)/);if(_0x2c5568)return _0x2c5568[0x1];const _0x2b920a=this['_headingOptions']?.['find'](_0x19f372=>_0x19f372['model']==_0x5beea1);if(_0x2b920a&&_0x2b920a['view']){const _0x51118c=_0x2b920a['view'],_0x563c82=(_0x51118c['name']??_0x51118c)['match'](/^h(\d+)/);if(_0x563c82)return _0x563c82[0x1];}return null;}}class nt extends _0x104d33{['afterInit'](){const _0x489763=this['editor'];if(!_0x489763['plugins']['has']('HighlightEditing'))return;const _0xd80f6=_0x489763['plugins']['get']('TrackChangesEditing'),_0x215fcf=_0x489763['locale'];_0xd80f6['enableDefaultAttributesIntegration']('highlight'),_0xd80f6['registerInlineAttribute']('highlight'),_0xd80f6['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x215fcf,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5938bb=this['editor'],_0x4e3710=_0x5938bb['locale'];_0x5938bb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb21357=>{if('formatInline'!=_0xb21357['type'])return;const {data:_0x129032}=_0xb21357;if(_0x129032&&'highlight'==_0x129032['commandName']){const _0x41252f=_0x4e3710['t'],_0x4cce7b=_0x129032['commandParams'][0x0]['value'];if(_0x4cce7b){const _0x4d49a3=_0x5938bb['config']['get']('highlight.options')['find'](_0x464503=>_0x464503['model']==_0x4cce7b),_0x8973d8=_0x41252f(_0x4d49a3['title'])['toLowerCase']();return{'type':'format','content':c(_0x4e3710,'*Set\x20highlight:*\x20%0',_0x8973d8),'color':{'value':_0x4d49a3['color'],'title':_0x4d49a3['title']}};}return{'type':'format','content':c(_0x4e3710,'*Remove\x20highlight*',c(_0x4e3710,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x104d33{['afterInit'](){const _0x42f79a=this['editor'];if(!_0x42f79a['plugins']['has']('HorizontalLineEditing'))return;_0x42f79a['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4fe97a=_0x42f79a['plugins']['get']('TrackChangesEditing'),_0x430177=_0x42f79a['locale'];_0x4fe97a['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3ce2d7=>c(_0x430177,'ELEMENT_HORIZONTAL_LINE',_0x3ce2d7)),_0x42f79a['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x568246,{writer:_0x337186,options:_0x4350ac})=>{if(!_0x4350ac['showSuggestionHighlights'])return null;const _0x31e3a8=_0x337186['createContainerElement']('div'),_0x1bb4a1=_0x337186['createEmptyElement']('hr');return _0x337186['addClass']('ck-horizontal-line',_0x31e3a8),_0x337186['insert'](_0x337186['createPositionAt'](_0x31e3a8,0x0),_0x1bb4a1),_0x31e3a8;},'converterPriority':'high'});}}class st extends _0x104d33{['afterInit'](){const _0x1d031e=this['editor'];if(!_0x1d031e['plugins']['has']('HtmlEmbed'))return;const _0x19ca59=_0x1d031e['plugins']['get']('TrackChangesEditing'),_0x45cab6=_0x1d031e['locale'];_0x19ca59['descriptionFactory']['registerElementLabel']('rawHtml',_0x63b8d0=>c(_0x45cab6,'ELEMENT_HTML_EMBED',_0x63b8d0)),_0x19ca59['enableDefaultAttributesIntegration']('htmlEmbed'),_0x19ca59['registerBlockAttribute']('value'),_0x19ca59['descriptionFactory']['registerDescriptionCallback'](_0x2a6f87=>{if('attribute'!=_0x2a6f87['type'])return;const {data:_0x2dbc80}=_0x2a6f87;if(_0x2dbc80&&'value'==_0x2dbc80['key']&&_0x2a6f87['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x4b5dca=c(_0x45cab6,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x45cab6,'*Change\x20%0\x20content*',_0x4b5dca)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3da96f=this['editor'],_0x5a41dc=_0x3da96f['locale'];_0x3da96f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x45c8c2=>{if('formatBlock'!=_0x45c8c2['type'])return;const {data:_0x3e3b44}=_0x45c8c2;if(_0x3e3b44&&'htmlEmbed'==_0x3e3b44['commandName']){const _0xf36fbd=c(_0x5a41dc,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x5a41dc,'*Change\x20%0\x20content*',_0xf36fbd)};}});}}class ot extends _0x104d33{['afterInit'](){const _0x2cded8=this['editor'];if(!_0x2cded8['plugins']['has']('ImageEditing'))return;const _0x24c55e=_0x2cded8['plugins']['get']('TrackChangesEditing'),_0x2b6952=_0x2cded8['plugins']['get']('ImageUtils'),_0x56e4d4=_0x2cded8['locale'];_0x24c55e['enableCommand']('insertImage'),_0x24c55e['descriptionFactory']['registerElementLabel']('imageBlock',_0x26b8c8=>c(_0x56e4d4,'ELEMENT_IMAGE',_0x26b8c8)),_0x24c55e['descriptionFactory']['registerElementLabel']('imageInline',_0x2776b6=>c(_0x56e4d4,'ELEMENT_INLINE_IMAGE',_0x2776b6)),_0x24c55e['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x56e4d4,'ELEMENT_CAPTION')),_0x2cded8['plugins']['has']('ImageUploadEditing')&&_0x24c55e['enableCommand']('uploadImage'),_0x2cded8['plugins']['has']('ImageBlockEditing')&&_0x2cded8['plugins']['has']('ImageInlineEditing')&&(_0x24c55e['enableCommand']('imageTypeInline',(_0x780e9f,_0x5a5ac1)=>{const _0x594a4a=_0x2b6952['getClosestSelectedImageElement'](_0x2cded8['model']['document']['selection']);_0x2cded8['model']['change'](()=>{_0x24c55e['markBlockFormat'](_0x594a4a,{'commandName':'imageTypeInline','commandParams':[_0x5a5ac1]},[],'convertBlockImageToInline');});}),_0x24c55e['enableCommand']('imageTypeBlock',(_0x3c50fd,_0xc3268c)=>{_0x2cded8['model']['change'](_0x18d70a=>{let _0x3dfa7d=_0x2b6952['getClosestSelectedImageElement'](_0x2cded8['model']['document']['selection']),_0x45dbf2=_0x18d70a['createRangeOn'](_0x3dfa7d);const _0x35262d=_0x2f306f['fromPosition'](_0x45dbf2['start'],'toPrevious'),_0x126980=_0x2f306f['fromPosition'](_0x45dbf2['end'],'toNext');_0x24c55e['forceDefaultExecution'](()=>_0x3c50fd(_0xc3268c)),_0x3dfa7d=_0x2b6952['getClosestSelectedImageElement'](_0x2cded8['model']['document']['selection']),_0x45dbf2=_0x18d70a['createRangeOn'](_0x3dfa7d);const _0x5e7812=_0x18d70a['createRange'](_0x35262d,_0x126980);_0x35262d['detach'](),_0x126980['detach'](),_0x24c55e['markBlockFormat'](_0x3dfa7d,{'commandName':'imageTypeInline','commandParams':[_0xc3268c]},[],'convertInlineImageToBlock'),_0x5e7812['start']['isBefore'](_0x45dbf2['start'])&&_0x24c55e['markInsertion'](_0x18d70a['createRange'](_0x5e7812['start'],_0x45dbf2['start']),'convertInlineImageToBlock'),_0x45dbf2['end']['isBefore'](_0x5e7812['end'])&&_0x24c55e['markInsertion'](_0x18d70a['createRange'](_0x45dbf2['end'],_0x5e7812['end']),'convertInlineImageToBlock');});}),_0x24c55e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x24c55e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x24c55e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x24c55e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x24c55e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x24c55e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x1a4e13])=>{const _0x26e9b2=_0x24c55e['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x310a1c=_0x1a4e13['start'],_0x354d86=_0x1a4e13['end'];const _0x2e2371=_0x2cded8['model']['schema']['getNearestSelectionRange'](_0x310a1c,'backward'),_0x23ef6b=_0x2cded8['model']['schema']['getNearestSelectionRange'](_0x354d86,'forward');_0x2e2371['isCollapsed']&&(_0x310a1c=_0x2e2371['start']),_0x23ef6b['isCollapsed']&&(_0x354d86=_0x23ef6b['end']),_0x26e9b2([_0x2cded8['model']['createRange'](_0x310a1c,_0x354d86)]);}),_0x24c55e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3fc240),_0x24c55e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3fc240)),_0x2cded8['plugins']['has']('ImageCaptionEditing')&&(_0x24c55e['enableCommand']('toggleImageCaption',(_0x4a28a8,_0x12924c)=>{const _0x3fd466=_0x2cded8['plugins']['get']('ImageCaptionUtils');let _0x217470=_0x2b6952['getClosestSelectedImageElement'](_0x2cded8['model']['document']['selection']),_0x1cc697=_0x3fd466['getCaptionFromImageModelElement'](_0x217470);_0x2cded8['model']['change'](()=>{if(_0x1cc697)return void _0x24c55e['markDeletion'](_0x2cded8['model']['createRangeOn'](_0x1cc697));const _0x220dec=_0x2b6952['isBlockImage'](_0x217470);_0x4a28a8(_0x12924c),_0x217470=_0x2b6952['getClosestSelectedImageElement'](_0x2cded8['model']['document']['selection']),_0x1cc697=_0x3fd466['getCaptionFromImageModelElement'](_0x217470),_0x24c55e['markInsertion'](_0x2cded8['model']['createRangeOn'](_0x1cc697),_0x220dec?null:'imageCaption');});}),_0x24c55e['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3fc240));const _0x20c732=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3fa2d4(_0x4e571f,_0x2b8603){const _0x3212c2=_0x20c732['findIndex'](({type:_0x2140a6,subType:_0x23ee5d})=>_0x4e571f['type']==_0x2140a6&&_0x4e571f['subType']==_0x23ee5d),_0x112139=_0x20c732['findIndex'](({type:_0x3a8f38,subType:_0x22996f})=>_0x2b8603['type']==_0x3a8f38&&_0x2b8603['subType']==_0x22996f);if(_0x3212c2<0x0||_0x112139<0x0)return!0x1;const _0x13c29f=_0x4e571f['getFirstRange'](),_0x21c7bf=_0x2b8603['getFirstRange']();if((0x0==_0x3212c2||0x1==_0x3212c2)&&0x2==_0x112139&&_0x13c29f['isIntersecting'](_0x21c7bf))return!0x0;if(0x2==_0x3212c2&&0x3==_0x112139){const _0x184c22=_0x24c55e['_findSuggestions'](_0x13c29f,'insertion')['filter'](({suggestion:_0x5f306a,meta:_0x322024})=>_0x322024['isOwn']&&'convertInlineImageToBlock'==_0x5f306a['subType']);if(_0x184c22['length']>0x1&&_0x21c7bf['end']['isEqual'](_0x13c29f['start']))return!0x0;if(0x1==_0x184c22['length']&&(_0x13c29f['start']['isEqual'](_0x21c7bf['end'])||_0x13c29f['end']['isEqual'](_0x21c7bf['start'])))return!0x0;}if(0x3==_0x3212c2&&0x3==_0x112139&&_0x13c29f['start']['isBefore'](_0x21c7bf['start'])){const _0x3e3958=_0x13c29f['end']['nodeAfter'],_0x4728e4=_0x21c7bf['start']['nodeBefore'];return _0x2b6952['isBlockImage'](_0x3e3958)&&_0x3e3958===_0x4728e4;}return!0x1;}function _0x3fc240(_0xffd05d,_0x3a8fd8){return _0x3fa2d4(_0xffd05d,_0x3a8fd8)?[_0xffd05d,_0x3a8fd8]:_0x3fa2d4(_0x3a8fd8,_0xffd05d)?[_0x3a8fd8,_0xffd05d]:null;}_0x2cded8['plugins']['has']('ImageResize')&&(_0x24c55e['enableDefaultAttributesIntegration']('resizeImage'),_0x24c55e['registerBlockAttribute']('resizedWidth'),_0x24c55e['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x56e4d4,'FORMAT_IMAGE_SIZE'))),_0x2cded8['plugins']['has']('ImageTextAlternativeEditing')&&(_0x24c55e['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x24c55e['registerBlockAttribute']('alt')),_0x2cded8['plugins']['has']('PictureEditing')&&(_0x24c55e['registerBlockAttribute']('sources'),_0x24c55e['descriptionFactory']['registerDescriptionCallback'](_0x32fed5=>{if('attribute'!=_0x32fed5['type'])return;const {data:_0x3ac6be}=_0x32fed5;return _0x3ac6be&&'sources'==_0x3ac6be['key']?{'type':'format','content':''}:void 0x0;})),_0x2cded8['plugins']['has']('ImageSizeAttributes')&&(_0x24c55e['registerBlockAttribute']('width'),_0x24c55e['registerBlockAttribute']('height'),_0x24c55e['descriptionFactory']['registerDescriptionCallback'](_0x26f4b1=>{if('attribute'!=_0x26f4b1['type'])return;const {data:_0x401ea5}=_0x26f4b1;return!_0x401ea5||'width'!=_0x401ea5['key']&&'height'!=_0x401ea5['key']?void 0x0:{'type':'format','content':''};})),_0x24c55e['descriptionFactory']['registerDescriptionCallback'](_0x4ea776=>{if(!!_0x20c732['find'](({type:_0x3cd0d1,subType:_0x487367})=>_0x4ea776['type']==_0x3cd0d1&&_0x4ea776['subType']==_0x487367))return _0x4ea776['previous']?{}:void 0x0;}),_0x24c55e['descriptionFactory']['registerDescriptionCallback'](_0x48c9bb=>{if('insertion'==_0x48c9bb['type']||'deletion'==_0x48c9bb['type']){const _0x5c49e4=_0x48c9bb['getContainedElement']();if(_0x5c49e4&&_0x5c49e4['is']('element','caption'))return{'type':'insertion'==_0x48c9bb['type']?'addObject':'removeObject','element':_0x5c49e4,'quantity':0x1};}}),_0x24c55e['descriptionFactory']['registerDescriptionCallback'](_0x3446d6=>'formatBlock'==_0x3446d6['type']&&'convertInlineImageToBlock'==_0x3446d6['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x3446d6['type']&&'convertBlockImageToInline'==_0x3446d6['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x24c55e['descriptionFactory']['registerDescriptionCallback'](_0x52b630=>{if('attribute'!=_0x52b630['type'])return;const {data:_0x199532}=_0x52b630;if(!_0x199532||'alt'!=_0x199532['key'])return;const _0x215c29=_0x199532['newValue'];return _0x215c29?{'type':'format','content':c(_0x56e4d4,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x215c29+'\x22')}:{'type':'format','content':c(_0x56e4d4,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x36d9fd=this['editor'],_0x4aa766=_0x36d9fd['locale'];_0x36d9fd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xfa6b7c=>{if('formatBlock'!=_0xfa6b7c['type']&&'formatInline'!=_0xfa6b7c['type'])return;const {data:_0xe8301c}=_0xfa6b7c;if(_0xe8301c){if('imageTextAlternative'==_0xe8301c['commandName']){const _0x3a4f78=_0xe8301c['commandParams'][0x0]['newValue'];return _0x3a4f78?{'type':'format','content':c(_0x4aa766,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3a4f78+'\x22')}:{'type':'format','content':c(_0x4aa766,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0xe8301c['commandName']){const _0x8b8b67=_0xe8301c['commandParams'][0x0]['width'];return _0x8b8b67?{'type':'format','content':c(_0x4aa766,'*Set\x20image\x20width:*\x20%0',_0x8b8b67)}:{'type':'format','content':c(_0x4aa766,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x104d33{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x56b3f3=this['editor']['locale'],_0x109ad5=this['editor']['plugins']['get']('TrackChangesEditing');_0x109ad5['enableDefaultAttributesIntegration']('replaceImageSource'),_0x109ad5['registerBlockAttribute']('src'),_0x109ad5['descriptionFactory']['registerDescriptionCallback'](_0x40a573=>{if('attribute'!=_0x40a573['type'])return;const {data:_0x3f665d}=_0x40a573;return _0x3f665d&&'src'==_0x3f665d['key']?_0x3f665d['newValue']&&_0x3f665d['oldValue']?{'type':'format','content':c(_0x56b3f3,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x262ce0=this['editor']['plugins']['get']('TrackChangesEditing');_0x262ce0['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x262ce0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x262ce0['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x262ce0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c8ce1=this['editor'],_0x886c61=_0x3c8ce1['locale'];_0x3c8ce1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x198c6e=>{if('formatBlock'!=_0x198c6e['type']&&'formatInline'!=_0x198c6e['type'])return;const {data:_0x3d30b7}=_0x198c6e;if(!_0x3d30b7||'replaceImageSource'!=_0x3d30b7['commandName'])return;return{'type':'format','content':c(_0x886c61,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x104d33{['afterInit'](){const _0x110f05=this['editor'];if(!_0x110f05['plugins']['has']('ImageStyleEditing'))return;const _0x3b21f5=_0x110f05['plugins']['get']('TrackChangesEditing'),_0x3087dc=_0x110f05['plugins']['get']('ImageUtils'),_0x15c56b={};_0x3b21f5['enableCommand']('imageStyle',(_0x1583f1,_0x1f2639)=>{const _0x47e8c7=_0x110f05['plugins']['get']('Users')['me'],_0x416fac=_0x110f05['commands']['get']('imageStyle');let _0x2e60d6=_0x3087dc['getClosestSelectedImageElement'](_0x110f05['model']['document']['selection']),_0x320924=_0x110f05['model']['createRangeOn'](_0x2e60d6),_0x1fe44c=_0x416fac['value'];if(_0x1fe44c==_0x1f2639['value'])return;const _0x1bc013={'commandName':'imageStyle','commandParams':[_0x1f2639],'formatGroupId':_0x5a1697()};_0x110f05['model']['change'](()=>{if(_0x3b21f5['getSuggestions']()['filter'](_0x51b0a6=>_0x51b0a6['isInContent']&&_0x47e8c7==_0x51b0a6['author']&&('formatBlock'==_0x51b0a6['type']||'formatInline'==_0x51b0a6['type'])&&('imageStylePreApply'==_0x51b0a6['subType']||'imageStylePostApply'==_0x51b0a6['subType'])&&_0x51b0a6['getFirstRange']()['isEqual'](_0x320924))['forEach'](_0x562601=>_0x3b21f5['discardSuggestion'](_0x562601['head'])),_0x2e60d6=_0x3087dc['getClosestSelectedImageElement'](_0x110f05['model']['document']['selection']),_0x320924=_0x110f05['model']['createRangeOn'](_0x2e60d6),_0x416fac['refresh'](),_0x110f05['commands']['get']('imageTypeInline')['refresh'](),_0x110f05['commands']['get']('imageTypeBlock')['refresh'](),_0x1fe44c=_0x416fac['value'],_0x1fe44c!=_0x1f2639['value'])return _0x3087dc['isInlineImage'](_0x2e60d6)&&_0x416fac['shouldConvertImageType'](_0x1f2639['value'],_0x2e60d6)?(_0x1583f1({..._0x1f2639,'setImageSizes':!0x1}),_0x2e60d6=_0x3087dc['getClosestSelectedImageElement'](_0x110f05['model']['document']['selection']),void _0x3b21f5['markBlockFormat'](_0x2e60d6,{..._0x1bc013,'commandReversedParams':[{'value':_0x1fe44c||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3087dc['isBlockImage'](_0x2e60d6)?_0x3b21f5['markBlockFormat'](_0x2e60d6,_0x1bc013,[],'imageStylePostApply'):_0x3b21f5['markInlineFormat'](_0x320924,_0x1bc013,'imageStylePostApply'));});});for(const _0x2fd11f of _0x110f05['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x15c56b[_0x2fd11f['name']]=_0x2fd11f['title']['toLowerCase']();_0x3b21f5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3b21f5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3b21f5['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3b21f5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x33b195])=>{_0x3087dc['setImageNaturalSizeAttributes'](_0x33b195['getContainedElement']());}),_0x3b21f5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x21d6b0,_0x490cec)=>{_0x3b21f5['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x21d6b0,{'commandName':_0x490cec['commandName'],'commandParams':_0x490cec['commandReversedParams']});}),_0x3b21f5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x4e4d5e,_0x15a134){if(_0x3e6df5(_0x4e4d5e,_0x15a134))return[_0x4e4d5e,_0x15a134];if(_0x3e6df5(_0x15a134,_0x4e4d5e))return[_0x15a134,_0x4e4d5e];return null;});const _0x52a41e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3e6df5(_0x246b32,_0x3d5c4a){const _0x247aa2=_0x52a41e['findIndex'](({type:_0x9fec5f,subType:_0x2a1184})=>_0x246b32['type']==_0x9fec5f&&_0x246b32['subType']==_0x2a1184),_0x20832e=_0x52a41e['findIndex'](({type:_0x1692c3,subType:_0x1497a0})=>_0x3d5c4a['type']==_0x1692c3&&_0x3d5c4a['subType']==_0x1497a0);if(_0x247aa2<0x0||_0x20832e<0x0)return!0x1;const _0x4d436f=_0x246b32['getFirstRange'](),_0x564eaf=_0x3d5c4a['getFirstRange']();if((0x0==_0x247aa2||0x1==_0x247aa2)&&0x2==_0x20832e&&_0x4d436f['isIntersecting'](_0x564eaf))return!0x0;if(0x2==_0x247aa2&&0x3==_0x20832e){const _0x2cbce0=_0x3b21f5['_findSuggestions'](_0x4d436f,'insertion')['filter'](({suggestion:_0x104409,meta:_0x4cebe3})=>_0x4cebe3['isOwn']&&'convertInlineImageToBlock'==_0x104409['subType']);if(_0x2cbce0['length']>0x1&&_0x564eaf['end']['isEqual'](_0x4d436f['start']))return!0x0;if(0x1==_0x2cbce0['length']&&(_0x4d436f['start']['isEqual'](_0x564eaf['end'])||_0x4d436f['end']['isEqual'](_0x564eaf['start'])))return!0x0;}if(0x3==_0x247aa2&&0x3==_0x20832e&&_0x4d436f['start']['isBefore'](_0x564eaf['start'])){const _0x394b67=_0x4d436f['end']['nodeAfter'],_0x18c461=_0x564eaf['start']['nodeBefore'];return _0x3087dc['isBlockImage'](_0x394b67)&&_0x394b67===_0x18c461;}return!0x1;}_0x110f05['model']['document']['registerPostFixer'](()=>{let _0x15bff2=!0x1;const _0x1fe447=Array['from'](_0x110f05['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2eeee9,data:_0x27babb}of _0x1fe447){const {group:_0x51b3af,type:_0x2b949e,subType:_0x4a30fe,id:_0x12eeec}=_0x3b21f5['_splitMarkerName'](_0x2eeee9);if('suggestion'==_0x51b3af&&_0x3b21f5['hasSuggestion'](_0x12eeec)){if('formatBlock'==_0x2b949e&&('imageStylePreApply'==_0x4a30fe||'imageStylePostApply'==_0x4a30fe)){const _0x177690=_0x3b21f5['getSuggestion'](_0x12eeec);if(_0x27babb['newRange']){const _0x2aac3a=_0x177690['getFirstRange']()['getContainedElement']();if(_0x3087dc['isBlockImage'](_0x2aac3a))continue;_0x3b21f5['discardSuggestion'](_0x177690),_0x15bff2=!0x0;}}if('insertion'==_0x2b949e&&'imageCaption'==_0x4a30fe&&!_0x27babb['newRange']){const _0x513ed8=_0x3b21f5['getSuggestion'](_0x12eeec);_0x513ed8['next']&&_0x513ed8['next']['isInContent']&&(_0x3b21f5['discardSuggestion'](_0x513ed8['next']),_0x15bff2=!0x0);}}}return _0x15bff2;}),this['_registerLegacyDescription'](_0x15c56b);}['_registerLegacyDescription'](_0x17c65f){const _0x82b375=this['editor'],_0x583424=_0x82b375['locale'];_0x82b375['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x488bb2=>{if('formatBlock'!=_0x488bb2['type']&&'formatInline'!=_0x488bb2['type'])return;const {data:_0x22242e}=_0x488bb2;if(!_0x22242e||'imageStyle'!=_0x22242e['commandName'])return;const _0x2f52ce=_0x22242e['commandParams'][0x0]['value'];return _0x2890d8('side'===_0x2f52ce?c(_0x583424,'FORMAT_SIDE_IMAGE'):_0x17c65f[_0x2f52ce]||_0x2f52ce);function _0x2890d8(_0x38b370){return{'type':'format','content':c(_0x583424,'*Format:*\x20%0',_0x38b370)};}});}}class ct extends _0x104d33{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x129fd7){super(_0x129fd7),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4e71f3=this['editor'],_0xc3b666=_0x4e71f3['commands']['get']('importWord'),_0x5c742f=_0x4e71f3['commands']['get']('trackChanges');_0xc3b666&&(_0xc3b666['on']('execute',(_0x2cd1eb,[,_0x2de3cb])=>{this['_trackChangesValueDuringImport']=_0x5c742f['value'],_0x2de3cb['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0xc3b666,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0xc3b666,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5c742f['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4e71f3['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x4caf73,_0x24847b){const {suggestions:_0x4d372c}=_0x24847b,_0x4cdb32=this['editor']['commands']['get']('trackChanges'),_0x30956c=_0x4cdb32['value'];this['_trackChangesValueDuringImport']!==_0x30956c&&(_0x4cdb32['execute'](),this['_trackChangesExecuted']=!0x0),_0x4d372c&&_0x4d372c['forEach'](({id:_0x392fe7,type:_0x56a12e,author:_0x4be062,created_at:_0x1a3ff4})=>{const _0x1c702d={'id':_0x392fe7,'type':_0x56a12e,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4be062,'createdAt':_0x1a3ff4?new Date(_0x1a3ff4):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1c702d);});}}class ut extends _0x104d33{['afterInit'](){const _0x2a0805=this['editor'],_0xec36a2=_0x2a0805['plugins']['get']('TrackChangesEditing');if(_0x2a0805['plugins']['has']('IndentEditing')&&(_0xec36a2['enableCommand']('indent'),_0xec36a2['enableCommand']('outdent')),_0x2a0805['plugins']['has']('IndentBlock')){for(const _0x38dd83 of['indentBlock','outdentBlock'])_0xec36a2['enableDefaultAttributesIntegration'](_0x38dd83);}const _0x16f431=_0x2a0805['locale'];_0xec36a2['registerBlockAttribute']('blockIndent'),_0xec36a2['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x16f431,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x186d29=this['editor'],_0x4fb66e=_0x186d29['locale'],_0x3251ae=_0x186d29['plugins']['get']('TrackChangesEditing');_0x3251ae['descriptionFactory']['registerDescriptionCallback'](_0x52d7ee=>{if('formatBlock'!=_0x52d7ee['type'])return;const {data:_0x3d5a48}=_0x52d7ee;if(!_0x3d5a48)return;if('indentBlock'!=_0x3d5a48['commandName']&&'outdentBlock'!=_0x3d5a48['commandName'])return;const _0x321d36=_0x52d7ee['getItems']()[0x0],_0xd699db=_0x3251ae['descriptionFactory']['getItemLabel'](_0x321d36);return'indentBlock'==_0x3d5a48['commandName']?{'type':'format','content':c(_0x4fb66e,'*Indent:*\x20%0',_0xd699db)}:'outdentBlock'==_0x3d5a48['commandName']?{'type':'format','content':c(_0x4fb66e,'*Outdent:*\x20%0',_0xd699db)}:void 0x0;});}}class ft extends _0x104d33{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x104d33{['afterInit'](){const _0x4a24f3=this['editor'];if(!_0x4a24f3['plugins']['has']('LinkEditing'))return;const _0x193901=_0x4a24f3['plugins']['get']('TrackChangesEditing'),_0xa86666=_0x4a24f3['commands']['get']('link');_0x193901['enableDefaultAttributesIntegration']('link'),_0x193901['enableDefaultAttributesIntegration']('unlink'),_0x193901['registerInlineAttribute']('linkHref');for(const _0x46cf85 of _0xa86666['manualDecorators'])_0x193901['registerInlineAttribute'](_0x46cf85['id']),_0x193901['descriptionFactory']['registerAttributeLabel'](_0x46cf85['id'],'link\x20('+_0x46cf85['label']['toLowerCase']()+')');_0x193901['descriptionFactory']['registerDescriptionCallback'](_0xebb46=>{if('attribute'!=_0xebb46['type'])return;const {data:_0x33c01e}=_0xebb46;if(!_0x33c01e||'linkHref'!=_0x33c01e['key'])return;const _0x4aa489=_0x33c01e['newValue'],_0x35011e=_0x4a24f3['locale'];return{'type':'format','content':null==_0x4aa489?c(_0x35011e,'*Remove\x20link*'):c(_0x35011e,'*Set\x20link:*\x20%0','\x22'+_0x4aa489+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x336702=this['editor'],_0x28809b=_0x336702['locale'];_0x336702['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x57e743=>{if('formatInline'!=_0x57e743['type'])return;const {data:_0x3c4734}=_0x57e743;if(_0x3c4734){if('link'==_0x3c4734['commandName']){const _0x1a1f4f=_0x3c4734['commandParams'][0x0];return{'type':'format','content':c(_0x28809b,'*Set\x20link:*\x20%0','\x22'+_0x1a1f4f+'\x22')};}return'unlink'==_0x3c4734['commandName']?{'type':'format','content':c(_0x28809b,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x104d33{['afterInit'](){const _0x120374=this['editor'],_0xed4f45=_0x120374['locale'];if(!_0x120374['plugins']['has']('LegacyListEditing'))return;const _0x49633d=_0x120374['plugins']['get']('TrackChangesEditing'),_0x5605d2=_0x120374['plugins']['has']('LegacyTodoListEditing');function _0x3385ea(_0x2d5322){return()=>{const _0x77b229=_0x120374['model']['document']['selection'],_0x5f0d06=_0x120374['commands']['get'](_0x2d5322);if(_0x5f0d06['value'])return void _0x120374['execute']('paragraph',{});const _0x17e0fd=_0x2d5322['slice'](0x0,-0x4),_0x3bedc5=function(_0x23eb42,_0x38a84b,_0x4912f6){let _0x5b208c=Array['from'](_0x23eb42)['filter'](_0x3225e2=>function(_0xa2d7e,_0x127cfa){return _0x127cfa['checkChild'](_0xa2d7e['parent'],'listItem')&&!_0x127cfa['isObject'](_0xa2d7e);}(_0x3225e2,_0x4912f6));_0x5b208c=_0x5b208c['filter'](_0x38d1fe=>!_0x38d1fe['is']('element','listItem')||_0x38d1fe['getAttribute']('listType')!=_0x38a84b);const _0x3eb8c6=new Set();for(const _0x43c815 of _0x5b208c)_0x43c815['is']('element','listItem')?_0x3eb8c6['add'](Le(_0x43c815)):_0x3eb8c6['add'](_0x43c815);return Array['from'](_0x3eb8c6);}(_0x77b229['getSelectedBlocks'](),_0x17e0fd,_0x120374['model']['schema']);_0x120374['model']['change'](()=>{for(const _0x4764d9 of _0x3bedc5)_0x49633d['markBlockFormat'](_0x4764d9,{'commandName':_0x2d5322,'commandParams':[{'forceValue':!_0x5f0d06['value']}],'formatGroupId':'blockName'},Ee(_0x4764d9));});};}function _0x52991f(_0x545c58){return()=>{const _0x11eec4=function(_0x40e68e){let _0xbeede2=Array['from'](_0x40e68e);const _0x63e5ee=_0xbeede2['findIndex'](_0x2a51bc=>'listItem'!=_0x2a51bc['name']);return _0x63e5ee>-0x1&&(_0xbeede2=_0xbeede2['slice'](0x0,_0x63e5ee)),_0xbeede2;}(_0x120374['model']['document']['selection']['getSelectedBlocks']()),_0x3e7fb8=_0x120374['model']['createRange'](_0x120374['model']['createPositionAt'](_0x11eec4[0x0],'before'),_0x120374['model']['createPositionAt'](_0x11eec4[_0x11eec4['length']-0x1],'end'));_0x120374['model']['change'](()=>{_0x49633d['markBlockFormat'](_0x3e7fb8,{'commandName':_0x545c58,'commandParams':[],'formatGroupId':'listIndent'},function(_0x202ccd){const _0x45d201=new Set();for(const _0x44904a of _0x202ccd){let _0x484d1a=_0x44904a['nextSibling'];for(;_0x484d1a&&_0x484d1a['getAttribute']('listIndent')>_0x44904a['getAttribute']('listIndent');)_0x45d201['add'](_0x484d1a),_0x484d1a=_0x484d1a['nextSibling'];}return Array['from'](_0x45d201);}(_0x11eec4));});};}_0x49633d['enableCommand']('numberedList',_0x3385ea('numberedList')),_0x49633d['enableCommand']('bulletedList',_0x3385ea('bulletedList')),_0x5605d2&&_0x49633d['enableCommand']('todoList',_0x3385ea('todoList')),_0x49633d['enableCommand']('indentList',_0x52991f('indentList')),_0x49633d['enableCommand']('outdentList',_0x52991f('outdentList')),_0x5605d2&&_0x49633d['enableCommand']('checkTodoList',()=>{const _0x37fb05=_0x120374['commands']['get']('checkTodoList'),_0x2a9990=Array['from'](_0x37fb05['_selectedElements']);_0x2a9990['filter'](_0x156e55=>_0x156e55['getAttribute']('todoListChecked')!=_0x37fb05['value']),_0x120374['model']['change'](()=>{for(const _0x6bd057 of _0x2a9990)_0x49633d['markBlockFormat'](_0x6bd057,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x37fb05['value']}]});});}),_0x49633d['descriptionFactory']['registerElementLabel']('listItem',_0x5030bb=>c(_0xed4f45,'ELEMENT_LIST_ITEM',_0x5030bb)),_0x49633d['descriptionFactory']['registerDescriptionCallback'](_0x325c2d=>{if('formatBlock'!=_0x325c2d['type']&&'formatInline'!=_0x325c2d['type'])return;const {data:_0x456b21}=_0x325c2d;if(_0x456b21){if('numberedList'==_0x456b21['commandName']||'bulletedList'==_0x456b21['commandName']||'todoList'==_0x456b21['commandName'])switch(_0x456b21['commandName']['replace']('List','')){case'bulleted':return _0x52a91e(c(_0xed4f45,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x52a91e(c(_0xed4f45,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x52a91e(c(_0xed4f45,'ELEMENT_TODO_LIST'));}if('indentList'==_0x456b21['commandName'])return{'type':'format','content':c(_0xed4f45,'*Indent:*\x20%0',c(_0xed4f45,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x456b21['commandName'])return{'type':'format','content':c(_0xed4f45,'*Outdent:*\x20%0',c(_0xed4f45,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x456b21['commandName'])return _0x456b21['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0xed4f45,'*Check\x20item*')}:{'type':'format','content':c(_0xed4f45,'*Uncheck\x20item*')};}function _0x52a91e(_0x55c9f2){return{'type':'format','content':c(_0xed4f45,'*Change\x20to:*\x20%0',_0x55c9f2)};}});}}function Le(_0x3d4a4c){const _0x2804c9=_0x3d4a4c['getAttribute']('listIndent');if(0x0==_0x2804c9)return _0x3d4a4c;let _0xdb6b65=_0x3d4a4c;for(;_0x3d4a4c['previousSibling']&&_0x3d4a4c['previousSibling']['is']('element','listItem');){const _0x27e7cf=_0x3d4a4c['previousSibling']['getAttribute']('listIndent');if(_0x27e7cf==_0x2804c9)_0xdb6b65=_0x3d4a4c['previousSibling'];else{if(_0x27e7cf<_0x2804c9)break;}_0x3d4a4c=_0x3d4a4c['previousSibling'];}return _0xdb6b65;}function Ee(_0xc97950){const _0x22e96b=[];if(_0xc97950['is']('element','listItem')&&_0xc97950['getAttribute']('listIndent')>0x0){let _0x4eb90f=_0xc97950['nextSibling'];for(;_0x4eb90f&&'listItem'==_0x4eb90f['name']&&_0x4eb90f['getAttribute']('listIndent')==_0xc97950['getAttribute']('listIndent');)_0x22e96b['push'](_0x4eb90f),_0x4eb90f=_0x4eb90f['nextSibling'];}return _0x22e96b;}class Q extends _0x104d33{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x407cfa=this['editor']['config']['get']('list.properties'),_0x5e0f4a=this['editor']['plugins']['get']('TrackChangesEditing');_0x407cfa['styles']&&_0x5e0f4a['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x407cfa['reversed']&&_0x5e0f4a['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x407cfa['startIndex']&&_0x5e0f4a['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x5e0f4a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x10e107,_0x29dda6={}){const _0x476de7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5f3655=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x476de7['markMultiRangeBlockFormat'](_0x5f3655,{'commandName':'listStyle','commandParams':[{'type':_0x29dda6['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0xd02d72,_0x4d6df0={}){const _0x24c90=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5de813=this['_getSuggestionBlocks'](_0x3f465d=>_0x3f465d['is']('element','listItem')&&'numbered'===_0x3f465d['getAttribute']('listType'));if(_0x5de813['length']<0x1)return;const _0x24e12e=_0x5de813['map'](_0x4a2d3f=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4a2d3f,'before'),this['editor']['model']['createPositionAt'](_0x4a2d3f,0x0)));this['editor']['model']['change'](()=>{_0x24c90['markMultiRangeBlockFormat'](_0x24e12e,{'commandName':'listReversed','commandParams':[{'reversed':_0x4d6df0['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0xcb51d0,_0x33b593={}){const _0x15262b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x354322=this['_getSuggestionBlocks'](_0x42b772=>_0x42b772['is']('element','listItem')&&'numbered'===_0x42b772['getAttribute']('listType'));if(_0x354322['length']<0x1)return;const _0x445159=_0x354322['map'](_0x2f9509=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2f9509,'before'),this['editor']['model']['createPositionAt'](_0x2f9509,0x0)));this['editor']['model']['change'](()=>{_0x15262b['markMultiRangeBlockFormat'](_0x445159,{'commandName':'listStart','commandParams':[{'startIndex':_0x33b593['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x493d1c){if('formatBlock'!=_0x493d1c['type']&&'formatInline'!=_0x493d1c['type'])return;const _0x31b670=this['editor']['locale'],{data:_0x294aed}=_0x493d1c;if(!_0x294aed)return;let _0xbda546,_0x261fcf;switch(_0x294aed['commandName']){case'listStyle':_0xbda546='*Change\x20to:*\x20%0',_0x261fcf={'type':'format','content':c(_0x31b670,_0xbda546,c(_0x31b670,this['_getTranslationKeyForListStyle'](_0x294aed['commandParams'][0x0]['type'])))};break;case'listReversed':_0xbda546=_0x294aed['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x261fcf={'type':'format','content':c(_0x31b670,_0xbda546)};break;case'listStart':_0xbda546='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x261fcf={'type':'format','content':c(_0x31b670,_0xbda546,_0x294aed['commandParams'][0x0]['startIndex'])};}return _0x261fcf;}['_getSuggestionBlocksForListStyle'](){const _0x5cdf72=this['editor']['plugins']['get']('LegacyListUtils');let _0x4386bc=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x4386bc[0x0]?.['is']('element','listItem')&&_0x4386bc['unshift'](..._0x5cdf72['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x4386bc[_0x4386bc['length']-0x1]?.['is']('element','listItem')&&_0x4386bc['push'](..._0x5cdf72['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x4386bc=[...new Set(_0x4386bc)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x4386bc=_0x4386bc['filter'](_0x47a16e=>_0x47a16e['is']('element','listItem'))),_0x4386bc;}['_getSuggestionBlocks'](_0xd5db0e){const _0x5e52f2=this['editor']['plugins']['get']('LegacyListUtils');let _0x29d832=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0xd5db0e)['map'](_0x29058f=>{const _0x19d260=this['editor']['model']['createPositionAt'](_0x29058f,0x0);return[..._0x5e52f2['getSiblingNodes'](_0x19d260,'backward'),..._0x5e52f2['getSiblingNodes'](_0x19d260,'forward')];})['flat']();return _0x29d832=[...new Set(_0x29d832)],_0x29d832;}['_getTranslationKeyForListStyle'](_0x2a7347){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x2a7347)||'default')['toUpperCase']()+'_LIST_'+_0x2a7347['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x104d33{['afterInit'](){const _0x29f3d9=this['editor'];if(!_0x29f3d9['plugins']['has']('MediaEmbedEditing'))return;const _0x46b785=_0x29f3d9['plugins']['get']('TrackChangesEditing'),_0x524576=_0x29f3d9['locale'];_0x46b785['enableCommand']('mediaEmbed'),_0x46b785['descriptionFactory']['registerElementLabel']('media',_0x532682=>c(_0x524576,'ELEMENT_MEDIA',_0x532682)),_0x29f3d9['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4116c0,{writer:_0x437bf8,options:_0x189020})=>{if(_0x189020['showSuggestionHighlights'])return _0x437bf8['createEmptyElement']('div');},'converterPriority':'high'}),_0x29f3d9['data']['downcastDispatcher']['on']('attribute:url:media',(_0x11f440,_0x5967e2,_0x5ea988)=>{_0x5ea988['options']['showSuggestionHighlights']&&_0x11f440['stop']();},{'priority':'high'});}}class mt extends _0x104d33{['afterInit'](){const _0x2fd281=this['editor'];_0x2fd281['plugins']['has']('MentionEditing')&&_0x2fd281['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x104d33{['afterInit'](){const _0x4702fd=this['editor'];if(!_0x4702fd['plugins']['has']('MergeFieldsEditing'))return;const _0x3a76ff=_0x4702fd['plugins']['get']('TrackChangesEditing'),_0x2e5b65=_0x4702fd['locale'];_0x3a76ff['enableCommand']('insertMergeField'),_0x3a76ff['enableCommand']('insertMergeFieldBlock'),_0x3a76ff['enableCommand']('insertMergeFieldImage'),_0x3a76ff['descriptionFactory']['registerElementLabel']('mergeField',_0x4c7ec2=>c(_0x2e5b65,'ELEMENT_MERGE_FIELD',_0x4c7ec2)),_0x3a76ff['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x3c7fb5=>c(_0x2e5b65,'ELEMENT_MERGE_FIELD',_0x3c7fb5)),_0x3a76ff['descriptionFactory']['registerDescriptionCallback'](_0x48f1b4=>{if('insertion'!=_0x48f1b4['type']&&'deletion'!=_0x48f1b4['type'])return;const _0x2dd17f=_0x48f1b4['getContainedElement']();if(null==_0x2dd17f)return;const _0x774447=_0x4702fd['plugins']['get']('MergeFieldsEditing');let _0x4cba6d;switch(_0x774447['getMergeFieldType'](_0x2dd17f)){case null:return;case'image':{const _0x25548a=_0x774447['unwrapAffixes'](_0x2dd17f['getAttribute']('src'));_0x4cba6d=_0x774447['getLabel'](_0x25548a)||_0x25548a;break;}default:{const _0x4518af=_0x2dd17f['getAttribute']('id');_0x4cba6d=_0x774447['getLabel'](_0x4518af)||_0x4518af;break;}}return'insertion'==_0x48f1b4['type']?{'type':'insertion','content':c(_0x2e5b65,'*Insert:*\x20%0','\x22'+_0x4cba6d+'\x22\x20'+c(_0x2e5b65,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x2e5b65,'*Remove:*\x20%0','\x22'+_0x4cba6d+'\x22\x20'+c(_0x2e5b65,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x104d33{['afterInit'](){const _0x55a799=this['editor'],_0x3a61a5=_0x55a799['plugins']['get']('TrackChangesEditing');_0x55a799['plugins']['has']('MultiLevelList')&&(_0x3a61a5['enableDefaultAttributesIntegration']('multiLevelList'),_0x3a61a5['registerBlockAttribute']('listMarkerStyle'),_0x3a61a5['descriptionFactory']['registerDescriptionCallback'](_0xcc447c=>this['handleDescriptions'](_0xcc447c)));}['handleDescriptions'](_0x390a56){const _0x326eec=this['editor']['locale'],{data:_0x4deef4}=_0x390a56,_0x19e589={'type':'format','content':''};if(_0x4deef4&&'listMarkerStyle'==_0x4deef4['key']){if(!_0x4deef4['oldValue'])return{'type':'format','content':c(_0x326eec,'*Set\x20format:*\x20%0',c(_0x326eec,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4deef4['newValue']+')'};if(!_0x4deef4['newValue']){let _0xd40a92=_0x390a56['head'];for(;_0xd40a92;){if(_0xd40a92['data']&&'listType'==_0xd40a92['data']['key']&&_0xd40a92['data']['newValue'])return _0x19e589;_0xd40a92=_0xd40a92['next'];}return{'type':'format','content':c(_0x326eec,'*Remove\x20format:*\x20%0',c(_0x326eec,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4deef4['oldValue']+')'};}}}}class kt extends _0x104d33{['afterInit'](){const _0x3b7646=this['editor'];if(!_0x3b7646['plugins']['has']('PageBreakEditing'))return;_0x3b7646['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x24a51d=_0x3b7646['plugins']['get']('TrackChangesEditing'),_0x487652=_0x3b7646['locale'];_0x24a51d['descriptionFactory']['registerElementLabel']('pageBreak',_0x15c316=>c(_0x487652,'ELEMENT_PAGE_BREAK',_0x15c316));}}class bt extends _0x104d33{['afterInit'](){const _0x411e2e=this['editor'];if(!_0x411e2e['plugins']['has']('Paragraph'))return;const _0x1b1b4a=_0x411e2e['locale'],_0x56e0a5=_0x411e2e['plugins']['get']('TrackChangesEditing');_0x56e0a5['descriptionFactory']['registerElementLabel']('paragraph',_0x149f13=>c(_0x1b1b4a,'ELEMENT_PARAGRAPH',_0x149f13)),_0x56e0a5['enableDefaultAttributesIntegration']('paragraph'),_0x56e0a5['enableCommand']('insertParagraph'),_0x411e2e['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x411e2e),{'priority':'highest'}),_0x411e2e['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1e45a9,_0x2f3de1,_0x361161)=>{_0x361161['options']['showSuggestionHighlights']&&nr(_0x411e2e,{'showActiveMarker':!0x1})(_0x1e45a9,_0x2f3de1,_0x361161);},{'priority':'highest'});const _0x244f02=_0x56e0a5['descriptionFactory'];_0x244f02['registerDescriptionCallback'](_0x18ed2a=>{if('insertion'!==_0x18ed2a['type'])return;const {start:_0x3b93cc,end:_0x330f47}=_0x18ed2a['getFirstRange']();if(!_0x3b93cc['isTouching'](_0x330f47)||!_0x3b93cc['nodeAfter'])return;const _0x3e5c56=_0x411e2e['model']['schema'],_0x34c0b5=_0x3b93cc['nodeAfter'];return _0x3e5c56['isBlock'](_0x34c0b5)&&!_0x3e5c56['isLimit'](_0x34c0b5)&&_0x3e5c56['checkChild'](_0x34c0b5,'$text')?{'type':'insertion','content':c(_0x1b1b4a,'*Insert:*\x20%0',_0x244f02['getItemLabel'](_0x34c0b5,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3ee924=this['editor'],_0x49f328=_0x3ee924['locale'];_0x3ee924['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b6d56=>{if('formatBlock'!=_0x1b6d56['type'])return;const {data:_0x9a070b}=_0x1b6d56;return _0x9a070b&&'paragraph'==_0x9a070b['commandName']?{'type':'format','content':c(_0x49f328,'*Change\x20to:*\x20%0',c(_0x49f328,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x51ae58,{showActiveMarker:_0x2849a7=!0x0}={}){return(_0x208259,_0x2ea8a2,_0x415fb2)=>{const _0x2f9a2b=_0x51ae58['plugins']['get']('TrackChangesEditing'),_0x13f96f=_0x2ea8a2['markerRange']['start'],_0x30d289=_0x2ea8a2['markerRange']['end'],_0x2a683d=_0x51ae58['model']['schema'];if(!_0x13f96f['isTouching'](_0x30d289)||!_0x13f96f['nodeAfter'])return;const _0x82d7b4=_0x13f96f['nodeAfter'];if(_0x2a683d['isBlock'](_0x82d7b4)&&!_0x2a683d['isLimit'](_0x82d7b4)&&_0x2a683d['checkChild'](_0x82d7b4,'$text')){if(!_0x415fb2['consumable']['consume'](_0x2ea8a2['markerRange'],_0x208259['name']))return;const {authorId:_0x4b7009}=_0x2f9a2b['_splitMarkerName'](_0x2ea8a2['markerName']),_0x2e169b=_0x415fb2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x4b7009}),_0x46466d=_0x415fb2['mapper']['toViewPosition'](_0x30d289);_0x2849a7&&_0x2f9a2b['activeMarkers']['includes'](_0x2ea8a2['markerName'])&&_0x415fb2['writer']['addClass']('ck-suggestion-marker--active',_0x2e169b),_0x415fb2['writer']['insert'](_0x46466d,_0x2e169b),_0x415fb2['mapper']['bindElementToMarker'](_0x2e169b,_0x2ea8a2['markerName']);}};}class yt extends _0x104d33{['afterInit'](){const _0x4ad888=this['editor'];if(!_0x4ad888['plugins']['has']('RemoveFormatEditing'))return;_0x4ad888['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x7e793d=this['editor'];_0x7e793d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1902c0=>{if('formatBlock'!=_0x1902c0['type']&&'formatInline'!=_0x1902c0['type'])return;const {data:_0x4f988b}=_0x1902c0;return _0x4f988b&&'removeFormat'==_0x4f988b['commandName']?{'type':'format','content':c(_0x7e793d['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x104d33{['afterInit'](){const _0x240880=this['editor'];if(!_0x240880['plugins']['has']('RestrictedEditingModeEditing'))return;const _0xb3e8ab=_0x240880['plugins']['get']('TrackChangesEditing');_0xb3e8ab['enableCommand']('goToPreviousRestrictedEditingException'),_0xb3e8ab['enableCommand']('goToNextRestrictedEditingException');const _0x5b4446=_0x240880['plugins']['get']('RestrictedEditingModeEditing');_0x5b4446['enableCommand']('trackChanges'),_0x5b4446['enableCommand']('acceptSuggestion'),_0x5b4446['enableCommand']('discardSuggestion'),_0x5b4446['enableCommand']('acceptAllSuggestions'),_0x5b4446['enableCommand']('discardAllSuggestions'),_0x5b4446['enableCommand']('acceptSelectedSuggestions'),_0x5b4446['enableCommand']('discardSelectedSuggestions');}}class St extends _0x104d33{static get['requires'](){return[_0x84f1d4];}['init'](){const _0x31254f=this['editor'],_0xb030f8=_0x31254f['plugins']['get']('TrackChangesEditing');_0xb030f8['enableCommand']('shiftEnter'),_0x31254f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x31254f),{'priority':'high'}),_0x31254f['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x31254f),{'priority':'high'}),_0x31254f['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xc83a02,_0x36b53c,_0x4d8e62)=>{_0x4d8e62['options']['showSuggestionHighlights']&&je(_0x31254f,{'showActiveMarker':!0x1})(_0xc83a02,_0x36b53c,_0x4d8e62);}),_0xb030f8['descriptionFactory']['registerElementLabel']('softBreak',_0x4ea2be=>c(_0x31254f['locale'],'ELEMENT_LINE_BREAK',_0x4ea2be));}}function je(_0x2e927a,{showActiveMarker:_0x3a5872=!0x0}={}){return(_0x3b8fde,_0x2206d5,_0x2e7196)=>{const _0x5f44f0=_0x2e927a['plugins']['get']('TrackChangesEditing');if(!_0x2e7196['consumable']['test'](_0x2206d5['markerRange'],_0x3b8fde['name']))return;const _0x266bca=_0x2e927a['model'];for(const _0x54ec6b of _0x2206d5['markerRange']['getItems']()){if(!_0x54ec6b['is']('element','softBreak'))continue;const _0x7db88f='deletion'==_0x2206d5['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x5aab4c}=_0x5f44f0['_splitMarkerName'](_0x2206d5['markerName']),_0x15d7c1=_0x2e7196['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x7db88f,'data-author-id':_0x5aab4c}),_0x254479=_0x2e7196['mapper']['toViewPosition'](_0x266bca['createPositionBefore'](_0x54ec6b));_0x3a5872&&_0x5f44f0['activeMarkers']['includes'](_0x2206d5['markerName'])&&_0x2e7196['writer']['addClass']('ck-suggestion-marker--active',_0x15d7c1),_0x2e7196['writer']['insert'](_0x254479,_0x15d7c1),_0x2e7196['mapper']['bindElementToMarker'](_0x15d7c1,_0x2206d5['markerName']);}};}class At extends _0x104d33{['afterInit'](){const _0x24f5a3=this['editor'],_0x228e86=_0x24f5a3['model'],_0x1710c7=_0x24f5a3['locale'];if(!_0x24f5a3['plugins']['has']('StandardEditingModeEditing'))return;const _0x4e1ae8=_0x24f5a3['plugins']['get']('TrackChangesEditing'),_0x2c1ca7='restrictedEditingException',_0x19d8ab=_0x24f5a3['commands']['get'](_0x2c1ca7);_0x4e1ae8['enableCommand'](_0x2c1ca7,(_0x3c2138,_0x34a9f7={})=>{const _0x28de4b=_0x228e86['document']['selection'];if(_0x28de4b['isCollapsed'])return void _0x3c2138(_0x34a9f7);const _0x1de7e9=void 0x0!==_0x34a9f7['forceValue']?_0x34a9f7['forceValue']:!_0x19d8ab['value'];_0x228e86['change'](()=>{const _0x4b0f68=Array['from'](_0x28de4b['getRanges']());for(const _0x65562e of _0x4b0f68){const _0x2e0ca2=_0x1de7e9?[_0x65562e]:no(_0x2c1ca7,_0x65562e,_0x228e86);for(const _0x21b842 of _0x2e0ca2)_0x4e1ae8['markInlineFormat'](_0x21b842,{'commandName':_0x2c1ca7,'commandParams':[{'forceValue':_0x1de7e9}]});}});}),_0x4e1ae8['descriptionFactory']['registerDescriptionCallback'](_0x233d69=>{if('formatBlock'!=_0x233d69['type']&&'formatInline'!=_0x233d69['type'])return;const {data:_0x478cf4}=_0x233d69;return _0x478cf4&&_0x478cf4['commandName']==_0x2c1ca7?_0x478cf4['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x1710c7,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x1710c7,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x104d33{['afterInit'](){const _0x50f701=this['editor'];if(!_0x50f701['plugins']['has']('Style')||!_0x50f701['plugins']['has']('DataSchema'))return;const _0x46c784=_0x50f701['plugins']['get']('TrackChangesEditing'),_0x315cc3=_0x50f701['locale'],_0x168450=_0x50f701['config']['get']('style')||{},_0x135d2=_0x50f701['plugins']['get']('GeneralHtmlSupport'),_0x43c43d=_0x50f701['plugins']['get']('StyleUtils')['normalizeConfig'](_0x50f701['plugins']['get']('DataSchema'),_0x168450['definitions']);_0x46c784['enableDefaultAttributesIntegration']('style');const _0x42ad8e=new Set();for(const _0x262122 of _0x43c43d['block']){const _0xa845ba=_0x135d2['getGhsAttributeNameForElement'](_0x262122['element']);_0x42ad8e['add'](_0xa845ba);}const _0x47a59a=new Set();for(const _0x7527d2 of _0x43c43d['inline']){const _0x139416=_0x135d2['getGhsAttributeNameForElement'](_0x7527d2['element']);_0x47a59a['add'](_0x139416);for(const _0x29e673 of _0x7527d2['ghsAttributes'])_0x47a59a['add'](_0x29e673);}for(const _0x262ac0 of _0x42ad8e)_0x46c784['registerBlockAttribute'](_0x262ac0),_0x46c784['descriptionFactory']['registerAttributeLabel'](_0x262ac0,c(_0x315cc3,'FORMAT_STYLE'));for(const _0x18bc5a of _0x47a59a)_0x46c784['registerInlineAttribute'](_0x18bc5a),_0x46c784['descriptionFactory']['registerAttributeLabel'](_0x18bc5a,c(_0x315cc3,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x58824d=this['editor'],_0x2ae288=_0x58824d['locale'];_0x58824d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x28af7c=>{if('formatBlock'!=_0x28af7c['type']&&'formatInline'!=_0x28af7c['type'])return;const {data:_0x1392c0}=_0x28af7c;return _0x1392c0&&'style'===_0x1392c0['commandName']?_0x1392c0['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x2ae288,'*Set\x20format:*\x20%0',_0x1392c0['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x2ae288,'*Remove\x20format:*\x20%0',_0x1392c0['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class _t extends _0x104d33{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4fb44a){super(_0x4fb44a),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x4911d2=this['editor'],_0x5e349d=_0x4911d2['model']['document']['selection'];if(!_0x4911d2['plugins']['has']('TableEditing'))return;const _0x53491f=_0x4911d2['locale'],_0x52881c=_0x4911d2['plugins']['get']('TrackChangesEditing'),_0x267c0c=_0x4911d2['plugins']['get']('TableUtils');_0x52881c['descriptionFactory']['registerElementLabel']('table',_0x6dcbba=>c(_0x53491f,'ELEMENT_TABLE',_0x6dcbba)),this['_setupColumnsRowsFixing'](),_0x52881c['enableCommand']('insertTable'),_0x52881c['enableCommand']('selectTableRow'),_0x52881c['enableCommand']('selectTableColumn');for(const _0x4341c5 of['insertTableRowAbove','insertTableRowBelow']){const _0x343fe0=_0x4911d2['commands']['get'](_0x4341c5);_0x52881c['enableCommand'](_0x4341c5,_0x18fa52=>{_0x4911d2['model']['change'](_0x5e16c3=>{_0x18fa52();const _0x831b06='above'===_0x343fe0['order'],_0x51d148=_0x267c0c['getSelectionAffectedTableCells'](_0x5e349d),_0xb8a8d4=_0x267c0c['getRowIndexes'](_0x51d148),_0x177393=_0x831b06?_0xb8a8d4['first']-0x1:_0xb8a8d4['last']+0x1,_0x513c0e=_0x51d148[0x0]['findAncestor']('table'),_0x25fae9=_0x267c0c['createTableWalker'](_0x513c0e,{'startRow':_0x177393,'endRow':_0x177393}),_0x383dd6=Array['from'](_0x25fae9)['map'](_0x2c425f=>_0x5e16c3['createRangeOn'](_0x2c425f['cell']));_0x52881c['markMultiRangeInsertion'](_0x383dd6,'tableRow');});});}for(const _0x150023 of['insertTableColumnLeft','insertTableColumnRight']){const _0x1e3404=_0x4911d2['commands']['get'](_0x150023);_0x52881c['enableCommand'](_0x150023,_0x514fff=>{_0x4911d2['model']['change'](_0x186470=>{_0x514fff();const _0x235eb6='left'===_0x1e3404['order'],_0x4fc6fb=_0x267c0c['getSelectionAffectedTableCells'](_0x5e349d),_0x476069=_0x267c0c['getColumnIndexes'](_0x4fc6fb),_0x5e280d=_0x235eb6?_0x476069['first']-0x1:_0x476069['last']+0x1,_0x13b515=_0x4fc6fb[0x0]['findAncestor']('table'),_0x25a73e=_0x267c0c['createTableWalker'](_0x13b515,{'startRow':0x0,'column':_0x5e280d,'includeAllSlots':!0x1}),_0x1cd669=Array['from'](_0x25a73e)['map'](_0x32be99=>_0x186470['createRangeOn'](_0x32be99['cell']));_0x52881c['markMultiRangeInsertion'](_0x1cd669,'tableColumn');});});}for(const _0x3559ca of['removeTableRow','removeTableColumn']){const _0x373d3f=_0x3559ca['substr'](0xb),_0x239e30=_0x373d3f['toLowerCase'](),_0x584dea=_0x239e30['substr'](0x0,0x3)+'span',_0x14c8e8='table'+_0x373d3f,_0x2db779='min'+_0x373d3f,_0x3566f7='max'+_0x373d3f;_0x52881c['enableCommand'](_0x3559ca,()=>{_0x4911d2['model']['change'](_0x326710=>{const _0x4e1858=_0x267c0c['getSelectionAffectedTableCells'](_0x5e349d),_0x45a203=_0x4e1858[0x0]['findAncestor']('table');let _0x59d7ee;if('removeTableRow'==_0x3559ca){const _0x1fb6a8=_0x267c0c['getRowIndexes'](_0x4e1858);_0x59d7ee={'startRow':_0x1fb6a8['first'],'endRow':_0x1fb6a8['last'],'includeAllSlots':!0x0};}else{const _0x3063c1=_0x267c0c['getColumnIndexes'](_0x4e1858);_0x59d7ee={'startColumn':_0x3063c1['first'],'endColumn':_0x3063c1['last'],'includeAllSlots':!0x0};}const _0x5a27d3=_0x267c0c['createTableWalker'](_0x45a203,_0x59d7ee),_0x5ea84c=Array['from'](_0x5a27d3)['map'](({cell:_0x5d1f94})=>_0x5d1f94),_0x104a43=Ne(_0x5ea84c['filter'](_0x3d92a6=>_0x3d92a6['hasAttribute'](_0x584dea))),_0x3f349b=Ne(_0x5ea84c['filter'](_0x4b09b8=>!_0x4b09b8['hasAttribute'](_0x584dea)))['map'](_0x2f2663=>_0x326710['createRangeOn'](_0x2f2663)),_0x2c2e8b=_0x52881c['markMultiRangeDeletion'](_0x3f349b,_0x14c8e8);if(_0x2c2e8b&&('tableRow'==_0x2c2e8b['subType']||'tableColumn'==_0x2c2e8b['subType'])){const _0x2cfdaf=this['_getSuggestionCoords'](_0x2c2e8b);for(const _0x2dc734 of _0x104a43){const _0x198329=_0x326710['createRangeOn'](_0x2dc734),_0x4e9eca=_0x267c0c['getCellLocation'](_0x2dc734),_0x31aaa6=_0x2dc734['getAttribute'](_0x584dea)-0x1,_0x1b3e1b=_0x2cfdaf[_0x2db779],_0x1cd4e9=_0x2cfdaf[_0x3566f7];_0x1b3e1b<=_0x4e9eca[_0x239e30]&&_0x4e9eca[_0x239e30]+_0x31aaa6<=_0x1cd4e9&&_0x2c2e8b['addRange'](_0x198329);}}});});}function _0x10fb9f(_0x189452){const _0x1ee506=Array['from'](_0x5e349d['getRanges']())['map'](_0x14e769=>_0x27b625['fromRange'](_0x14e769));_0x4911d2['model']['change'](_0x64e9c0=>{const _0x19f247=_0x64e9c0['batch'];_0x189452=_0x189452['filter'](_0x1ba86e=>'$graveyard'!=_0x1ba86e['root']['rootName']),_0x64e9c0['setSelection'](_0x189452),_0x4911d2['commands']['get']('removeTableRow')['refresh'](),_0x4911d2['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x4911d2['model']['enqueueChange'](()=>{_0x4911d2['model']['enqueueChange'](_0x19f247,_0x2e0ad2=>{const _0x32ff68=_0x1ee506['filter'](_0x328fa5=>'$graveyard'!=_0x328fa5['root']['rootName']);_0x32ff68['length']>0x0&&_0x2e0ad2['setSelection'](_0x32ff68);for(const _0x99fb10 of _0x1ee506)_0x99fb10['detach']();});});});}function _0x5126bb(_0xe386a9){_0x4911d2['model']['change'](_0x54a329=>{const _0x8a6a37=Array['from'](_0x5e349d['getRanges']())['map'](_0xc6b14f=>_0x27b625['fromRange'](_0xc6b14f)),_0xff7b6b=[];for(const _0x59e733 of _0xe386a9)for(const _0x56c449 of _0x59e733['getItems']({'shallow':!0x0}))_0xff7b6b['push'](_0x56c449);for(const _0x3ab990 of _0xff7b6b)'$graveyard'!=_0x3ab990['root']['rootName']&&(_0x54a329['setSelection'](_0x54a329['createPositionAt'](_0x3ab990,0x0)),_0x4911d2['commands']['get']('removeTableColumn')['refresh'](),_0x4911d2['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0xd6cc73=_0x8a6a37['filter'](_0x3740bf=>'$graveyard'!=_0x3740bf['root']['rootName']);_0xd6cc73['length']>0x0&&_0x54a329['setSelection'](_0xd6cc73);for(const _0x1e7ea6 of _0x8a6a37)_0x1e7ea6['detach']();});}function _0x567d0b(_0x3f708c,_0x32a889){return _0x32a889['every'](_0x39fcd9=>_0x3f708c['some'](_0x2b0df6=>_0x2b0df6['end']['isEqual'](_0x39fcd9['start'])||_0x39fcd9['end']['isEqual'](_0x2b0df6['start'])));}function _0x5d30a8(_0x186b3d,_0x50bebf){return!_0x186b3d['some'](_0x38c256=>_0x50bebf['some'](_0x28b255=>_0x38c256['isIntersecting'](_0x28b255)))&&_0x186b3d['some'](_0x533a37=>_0x50bebf['some'](_0x22500e=>_0x533a37['end']['isTouching'](_0x22500e['start'])));}_0x4911d2['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4ac3ea,_0x1f4407,_0x262460)=>{if(!_0x262460['options']['showSuggestionHighlights'])return;const _0x340d70=_0x1f4407['item'];if(!_0x340d70)return;const _0x16d841=_0x262460['mapper']['toViewElement'](_0x340d70);function _0x2221d8(_0x334a16){return Array['isArray'](_0x334a16)?_0x334a16:[_0x334a16];}_0x16d841&&'tableCell'===_0x340d70['name']&&_0x2bf806(_0x16d841,_0x262460['writer'],(_0x157446,_0x448905,_0x475dba)=>_0x475dba['addClass'](_0x2221d8(_0x448905['classes']),_0x157446),(_0x51c538,_0x3bd9ab,_0x3fe441)=>_0x3fe441['removeClass'](_0x2221d8(_0x3bd9ab['classes']),_0x51c538));},{'priority':'highest'}),_0x52881c['descriptionFactory']['registerDescriptionCallback'](_0xbec2ac=>{if('insertion'!=_0xbec2ac['type']&&'deletion'!=_0xbec2ac['type'])return;const _0x15c3f0=_0xbec2ac['getContainedElement']();if(null!=_0x15c3f0&&_0x15c3f0['is']('element','table')){if('insertion'==_0xbec2ac['type']){const _0x431c00=_0xbec2ac['getItems']()['filter'](_0x1d0ae3=>_0x1d0ae3['is']('$textProxy'))['map'](_0x3202b3=>_0x3202b3['data']);if(_0x431c00['length'])return{'type':'insertion','content':c(_0x53491f,'*Insert:*\x20%0',c(_0x53491f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x431c00['join']('\x20')+'\x22'))};}if('deletion'==_0xbec2ac['type']){const _0x42f938=_0xbec2ac['getItems']()['filter'](_0x4d5bde=>_0x4d5bde['is']('$textProxy'))['map'](_0x10feb0=>_0x10feb0['data']);if(_0x42f938['length'])return{'type':'deletion','content':c(_0x53491f,'*Remove:*\x20%0',c(_0x53491f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x42f938['join']('\x20')+'\x22'))};}}}),_0x52881c['descriptionFactory']['registerDescriptionCallback'](_0xc1d85e=>{if('tableRow'==_0xc1d85e['subType']){const _0xd21175=_0xc1d85e['getItems']()['filter'](_0x56db72=>_0x56db72['is']('$textProxy'))['map'](_0x291042=>_0x291042['data']),_0x1cd800=this['_getSuggestionCoords'](_0xc1d85e),_0x3a4209=_0x1cd800['maxRow']-_0x1cd800['minRow']+0x1;if('insertion'==_0xc1d85e['type'])return _0xd21175['length']?{'type':'insertion','content':c(_0x53491f,'*Insert:*\x20%0',c(_0x53491f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3a4209,'\x22'+_0xd21175['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x53491f,'*Insert:*\x20%0',c(_0x53491f,'ELEMENT_TABLE_ROW',_0x3a4209))};if('deletion'==_0xc1d85e['type'])return _0xd21175['length']?{'type':'deletion','content':c(_0x53491f,'*Remove:*\x20%0',c(_0x53491f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3a4209,'\x22'+_0xd21175['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x53491f,'*Remove:*\x20%0',c(_0x53491f,'ELEMENT_TABLE_ROW',_0x3a4209))};}if('tableColumn'==_0xc1d85e['subType']){const _0x2c36a3=_0xc1d85e['getItems']()['filter'](_0x572ab9=>_0x572ab9['is']('$textProxy'))['map'](_0xf0e69d=>_0xf0e69d['data']),_0xbc7ed6=this['_getSuggestionCoords'](_0xc1d85e),_0x30fa21=_0xbc7ed6['maxColumn']-_0xbc7ed6['minColumn']+0x1;if('insertion'==_0xc1d85e['type'])return _0x2c36a3['length']?{'type':'insertion','content':c(_0x53491f,'*Insert:*\x20%0',c(_0x53491f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x30fa21,'\x22'+_0x2c36a3['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x53491f,'*Insert:*\x20%0',c(_0x53491f,'ELEMENT_TABLE_COLUMN',_0x30fa21))};if('deletion'==_0xc1d85e['type'])return _0x2c36a3['length']?{'type':'deletion','content':c(_0x53491f,'*Remove:*\x20%0',c(_0x53491f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x30fa21,'\x22'+_0x2c36a3['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x53491f,'*Remove:*\x20%0',c(_0x53491f,'ELEMENT_TABLE_COLUMN',_0x30fa21))};}}),_0x52881c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x10fb9f),_0x52881c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x10fb9f),_0x52881c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x5126bb),_0x52881c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x5126bb),_0x52881c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x567d0b),_0x52881c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x567d0b),_0x52881c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5d30a8),_0x52881c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5d30a8);}['_acceptFormatSuggestionCallbackFactory'](){const _0x562fa9=this['editor'],_0x532f0a=_0x562fa9['model']['document']['selection'];return(_0x451a8b,_0x9f045d)=>{_0x562fa9['model']['change'](_0x3b3585=>{const {commandName:_0x5953af,commandParams:_0x562ef9}=_0x9f045d;let _0x2bca66=_0x451a8b[0x0]['end']['nodeBefore'];_0x562ef9&&_0x562ef9[0x0]&&!0x1===_0x562ef9[0x0]['forceValue']&&(_0x2bca66=_0x451a8b[0x0]['start']['nodeAfter']);const _0x2eca9f=_0x3b3585['createRangeIn'](_0x2bca66);if('$graveyard'==_0x2eca9f['root']['rootName'])return;const _0x539497=Array['from'](_0x532f0a['getRanges']())['map'](_0x3882c9=>_0x27b625['fromRange'](_0x3882c9));_0x3b3585['setSelection'](_0x2eca9f),_0x562fa9['commands']['get'](_0x5953af)['refresh'](),_0x562ef9['push']({'forceDefaultExecution':!0x0}),_0x562fa9['execute'](_0x5953af,..._0x562ef9);const _0x50bdc4=_0x539497['filter'](_0x4ff8be=>'$graveyard'!=_0x4ff8be['root']['rootName']);_0x50bdc4['length']>0x0&&_0x3b3585['setSelection'](_0x50bdc4);for(const _0x209002 of _0x539497)_0x209002['detach']();});};}['_getCoordsForCells'](_0x356f40){const _0x40a910=this['editor']['plugins']['get']('TableUtils');let _0x59f1e5=Number['MAX_SAFE_INTEGER'],_0x5d4157=Number['MIN_SAFE_INTEGER'],_0x17d46b=Number['MAX_SAFE_INTEGER'],_0x1a40fd=Number['MIN_SAFE_INTEGER'];for(const _0x261ceb of _0x356f40){if('$graveyard'==_0x261ceb['root']['rootName'])continue;const {row:_0x4d9fa8,column:_0x32dc32}=_0x40a910['getCellLocation'](_0x261ceb),_0x3c75f2=_0x261ceb['hasAttribute']('rowspan')?_0x261ceb['getAttribute']('rowspan')-0x1:0x0,_0x43af87=_0x261ceb['hasAttribute']('colspan')?_0x261ceb['getAttribute']('colspan')-0x1:0x0;_0x59f1e5=_0x4d9fa8<_0x59f1e5?_0x4d9fa8:_0x59f1e5,_0x5d4157=_0x4d9fa8+_0x3c75f2>_0x5d4157?_0x4d9fa8+_0x3c75f2:_0x5d4157,_0x17d46b=_0x32dc32<_0x17d46b?_0x32dc32:_0x17d46b,_0x1a40fd=_0x32dc32+_0x43af87>_0x1a40fd?_0x32dc32+_0x43af87:_0x1a40fd;}return{'minRow':_0x59f1e5,'maxRow':_0x5d4157,'minColumn':_0x17d46b,'maxColumn':_0x1a40fd};}['_setupColumnsRowsFixing'](){const _0x593b74=this['editor'],_0x33b2ba=_0x593b74['plugins']['get']('TrackChangesEditing'),_0x1098df=_0x593b74['plugins']['get']('TableUtils');_0x593b74['model']['document']['on']('change:data',()=>{const _0x32e370=Array['from'](_0x593b74['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x42443a,data:_0xcc015d}of _0x32e370){const {group:_0x185da2,id:_0x153d67,subType:_0x1e2613}=_0x33b2ba['_splitMarkerName'](_0x42443a);if('suggestion'!=_0x185da2)continue;if(null!=_0xcc015d['oldRange'])continue;const _0x1b7080=_0x33b2ba['getSuggestion'](_0x153d67);this['_tablePostFixingSubtypes']['includes'](_0x1e2613)&&this['_tableSuggestions']['add'](_0x1b7080);}},{'priority':'low'});const _0x135124=(_0x3c5c04,_0x5b5560)=>{let _0x410c50=!0x1;const _0x334f57=_0x5b5560['createRangeOn'](_0x3c5c04),_0x37fd9a=_0x3c5c04['findAncestor']('table'),_0x598950=_0x1098df['getCellLocation'](_0x3c5c04);for(const _0x52bd38 of this['_tableSuggestions']){const _0xf1c6c9=_0x52bd38['subType'],_0x1abe73=_0xf1c6c9['startsWith']('tablePaste'),_0x9fabbf=_0xf1c6c9['substr'](_0x1abe73?0xa:0x5),_0x785a3a=_0x9fabbf['toLowerCase'](),_0x5f5d57=_0x785a3a['substr'](0x0,0x3)+'span',_0x3c7a93='min'+_0x9fabbf,_0x416c41='max'+_0x9fabbf;if(!_0x52bd38['isInContent'])continue;if(_0x37fd9a!=_0x52bd38['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x52bd38['isIntersectingWithRange'](_0x334f57))continue;const _0x3aac6e=_0x3c5c04['hasAttribute'](_0x5f5d57)?_0x3c5c04['getAttribute'](_0x5f5d57)-0x1:0x0,_0x26fc15=this['_getSuggestionCoords'](_0x52bd38),_0x46c4e0=_0x26fc15[_0x3c7a93],_0x425bd3=_0x26fc15[_0x416c41];_0x46c4e0<=_0x598950[_0x785a3a]&&_0x598950[_0x785a3a]+_0x3aac6e<=_0x425bd3&&(_0x52bd38['addRange'](_0x334f57),_0x410c50=!0x0);}return _0x410c50;};_0x593b74['model']['document']['registerPostFixer'](_0x3ed2a1=>{let _0x2c6b23=!0x1;for(const _0x412d3e of _0x593b74['model']['document']['differ']['getChanges']())if('insert'==_0x412d3e['type']){if('tableRow'==_0x412d3e['name']){for(const _0x4a1390 of _0x412d3e['position']['nodeAfter']['getChildren']())_0x2c6b23=_0x2c6b23||_0x135124(_0x4a1390,_0x3ed2a1);}else'tableCell'==_0x412d3e['name']&&(_0x2c6b23=_0x2c6b23||_0x135124(_0x412d3e['position']['nodeAfter'],_0x3ed2a1));}return _0x2c6b23;});}['_getSuggestionCoords'](_0x5f839){return this['_getCoordsForCells'](_0x5f839['getRanges']()['map'](_0x18c269=>_0x18c269['start']['nodeAfter']));}}function Ne(_0x15e5d0){return Array['from'](new Set(_0x15e5d0)['values']());}class vt extends _0x104d33{static get['requires'](){return[_t];}['afterInit'](){const _0x56c97e=this['editor'],_0x5ec2a1=_0x56c97e['model']['document']['selection'],_0x5adbe1=_0x56c97e['locale'];if(!_0x56c97e['plugins']['has']('TableEditing'))return;const _0x3306cc=_0x56c97e['plugins']['get']('TrackChangesEditing'),_0x52f697=_0x56c97e['plugins']['get']('TableUtils'),_0x1a458c=_0x56c97e['plugins']['get'](_t);_0x1a458c['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3306cc['enableCommand']('mergeTableCells',()=>{const _0x17d317=_0x52f697['getSelectionAffectedTableCells'](_0x56c97e['model']['document']['selection']);_0x56c97e['model']['change'](()=>{_0x3306cc['markMultiRangeBlockFormat'](_0x17d317,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x56c97e['commands']['get']('mergeTableCells')['on']('execute',(_0x533674,_0x28d557)=>{_0x56c97e['commands']['get']('trackChanges')['value']&&(_0x28d557['length']>0x0&&_0x28d557[_0x28d557['length']-0x1]&&_0x28d557[_0x28d557['length']-0x1]['forceDefaultExecution']||_0x3306cc['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x533674['stop']());},{'priority':'highest'});for(const _0x591726 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x112cb7=_0x56c97e['commands']['get'](_0x591726);_0x3306cc['enableCommand'](_0x591726,()=>{const _0xf937c9=_0x56c97e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2caa84=>_0x2caa84['is']('element','tableCell')),_0x4cabcf=_0x112cb7['value'];_0x56c97e['model']['change'](()=>{_0x3306cc['markMultiRangeBlockFormat']([_0xf937c9,_0x4cabcf],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x5e951a of['splitTableCellVertically','splitTableCellHorizontally']){const _0x478a20=_0x56c97e['commands']['get'](_0x5e951a);_0x3306cc['enableCommand'](_0x5e951a,()=>{const _0x1e5117=_0x52f697['getSelectionAffectedTableCells'](_0x56c97e['model']['document']['selection'])[0x0],_0x128870=_0x1e5117['findAncestor']('table'),{column:_0x1ff8d1,row:_0x1e1c0b}=_0x52f697['getCellLocation'](_0x1e5117);let _0x47cda8=[];if('horizontally'==_0x478a20['direction']){const _0x50a1c2=_0x52f697['createTableWalker'](_0x128870,{'startRow':_0x1e1c0b,'endRow':_0x1e1c0b,'includeAllSlots':!0x0});_0x47cda8=Array['from'](_0x50a1c2)['map'](_0x456aff=>_0x456aff['cell']);}else{const _0x2a632d=_0x52f697['createTableWalker'](_0x128870,{'column':_0x1ff8d1,'includeAllSlots':!0x0});_0x47cda8=Array['from'](_0x2a632d)['map'](_0x4c9555=>_0x4c9555['cell']);}_0x56c97e['model']['change'](_0x611b95=>{_0x3306cc['markBlockFormat'](_0x611b95['createRangeOn'](_0x1e5117),{'commandName':_0x5e951a,'commandParams':[]},_0x47cda8,_0x5e951a);});});}_0x3306cc['descriptionFactory']['registerDescriptionCallback'](_0x438baf=>{if('formatBlock'!=_0x438baf['type']&&'formatInline'!=_0x438baf['type'])return;const {data:_0x48abc9}=_0x438baf;return _0x48abc9&&'mergeTableCells'==_0x48abc9['commandName']?{'type':'format','content':c(_0x5adbe1,'*Merge\x20cells*')}:void 0x0;}),_0x3306cc['descriptionFactory']['registerDescriptionCallback'](_0x3e524c=>{if('formatBlock'!=_0x3e524c['type']&&'formatInline'!=_0x3e524c['type'])return;const {data:_0x455dbf}=_0x3e524c;return _0x455dbf?'splitTableCellVertically'==_0x455dbf['commandName']?{'type':'format','content':c(_0x5adbe1,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x455dbf['commandName']?{'type':'format','content':c(_0x5adbe1,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x571d99=_0x1a458c['_acceptFormatSuggestionCallbackFactory']();for(const _0x2124f6 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3306cc['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2124f6,'accept',_0x571d99);for(const _0x5ed7f9 of['splitTableCellVertically','splitTableCellHorizontally'])_0x3306cc['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5ed7f9,'accept',_0x571d99);_0x3306cc['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x11753d=>{_0x56c97e['model']['change'](_0x29f4f1=>{const _0x4add31=Array['from'](_0x5ec2a1['getRanges']())['map'](_0x4be738=>_0x27b625['fromRange'](_0x4be738));_0x29f4f1['setSelection'](_0x11753d),_0x56c97e['commands']['get']('mergeTableCells')['refresh'](),_0x56c97e['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x33191d=_0x4add31['filter'](_0x3bf3ba=>'$graveyard'!=_0x3bf3ba['root']['rootName']);_0x33191d['length']>0x0&&_0x29f4f1['setSelection'](_0x33191d);for(const _0x557023 of _0x4add31)_0x557023['detach']();});});for(const _0x56e300 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0xff82b4=_0x56c97e['commands']['get'](_0x56e300);_0xff82b4['on']('set:isEnabled',(_0x1ad6c5,_0x189b0d,_0x2b39da)=>{if(_0x2b39da){const _0x36f89f=_0x56c97e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x354383=>_0x354383['is']('element','tableCell'));this['_areMergableCells'](_0xff82b4['value'],_0x36f89f)||(_0x1ad6c5['return']=!0x1,_0x1ad6c5['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1bc966=this['editor']['commands']['get']('mergeTableCells'),_0x1c1966=this['editor']['plugins']['get']('TableUtils');if(!_0x1bc966['isEnabled'])return!0x1;const _0x23d059=_0x1c1966['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3aae9c of _0x23d059)for(const _0x4e20dd of _0x23d059)if(_0x3aae9c!=_0x4e20dd&&!this['_areMergableCells'](_0x3aae9c,_0x4e20dd))return!0x1;return!0x0;}['_areMergableCells'](_0x4eb422,_0x4e97b4){const _0x38c485=this['editor']['plugins']['get']('TrackChangesEditing'),_0x49e8b2=this['editor']['model']['createRangeOn'](_0x4eb422),_0x1eba0b=this['editor']['model']['createRangeOn'](_0x4e97b4),_0x275a36=new Set(),_0x4d490d=new Set();for(const _0x23c8e4 of _0x38c485['getSuggestions']())if(('insertion'==_0x23c8e4['type']||'deletion'==_0x23c8e4['type']||'mergeTableCells'==_0x23c8e4['subType'])&&_0x23c8e4['isInContent']){for(const _0x14cae8 of _0x23c8e4['getRanges']())_0x14cae8['containsRange'](_0x49e8b2,!0x0)&&_0x275a36['add'](_0x23c8e4['type']+':'+_0x23c8e4['author']['id']),_0x14cae8['containsRange'](_0x1eba0b,!0x0)&&_0x4d490d['add'](_0x23c8e4['type']+':'+_0x23c8e4['author']['id']);}if(_0x275a36['size']!=_0x4d490d['size'])return!0x1;for(const _0xbf4c98 of _0x275a36)if(!_0x4d490d['has'](_0xbf4c98))return!0x1;return!0x0;}}class Ct extends _0x104d33{static get['requires'](){return[_t];}['afterInit'](){const _0x4558ea=this['editor'];if(!_0x4558ea['plugins']['has']('TableEditing'))return;const _0x1cf608=_0x4558ea['locale'],_0x404b19=_0x4558ea['plugins']['get']('TrackChangesEditing');_0x404b19['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x404b19['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x404b19['registerBlockAttribute']('headingRows'),_0x404b19['registerBlockAttribute']('headingColumns'),_0x404b19['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x1cf608,'FORMAT_HEADER_ROW')),_0x404b19['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x1cf608,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x58ceaf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x569cc7=this['editor']['plugins']['get']('TableUtils'),_0x11870b=this['editor']['plugins']['get'](_t)['_acceptFormatSuggestionCallbackFactory']();function _0x4a7d43({showActiveMarker:_0x4e1ba1=!0x0,setDataAttribute:_0x2ac523=!0x0}={}){return(_0x443ca5,_0x8680ea,_0xc38c77)=>{const {type:_0x48d9b7,id:_0x555031}=_0x58ceaf['_splitMarkerName'](_0x8680ea['markerName']),_0x4de221=_0x58ceaf['getSuggestion'](_0x555031),_0x1cb081=_0x4de221['data'];if('formatBlock'!=_0x4de221['type']||!_0x1cb081||'setTableColumnHeader'!=_0x1cb081['commandName'])return;if(_0x8680ea['item'])return void _0x443ca5['stop']();if(!_0xc38c77['consumable']['consume'](_0x8680ea['markerRange'],_0x443ca5['name']))return;const _0x8334a4=_0x8680ea['markerRange']['start']['nodeAfter'],_0x280a38=_0x8680ea['markerRange']['end']['nodeBefore'],_0x4a534f=_0x8334a4['parent']['parent'],{column:_0x2c5153}=_0x569cc7['getCellLocation'](_0x8334a4),{column:_0x38a051}=_0x569cc7['getCellLocation'](_0x280a38);for(let _0x39719e=_0x2c5153;_0x39719e<=_0x38a051;_0x39719e++){const _0x451e51=_0x569cc7['createTableWalker'](_0x4a534f,{'column':_0x39719e,'includeAllSlots':!0x1});for(const _0x16c8c4 of _0x451e51){const _0x2e80e4=_0x16c8c4['cell'],_0x5588a3=_0xc38c77['mapper']['toViewElement'](_0x2e80e4);_0xc38c77['writer']['addClass']('ck-suggestion-marker-'+_0x48d9b7,_0x5588a3),_0x2ac523&&_0xc38c77['writer']['setAttribute']('data-suggestion',_0x555031,_0x5588a3),_0xc38c77['mapper']['bindElementToMarker'](_0x5588a3,_0x8680ea['markerName']),_0x4e1ba1&&(_0x58ceaf['activeMarkers']['includes'](_0x8680ea['markerName'])?_0xc38c77['writer']['addClass']('ck-suggestion-marker--active',_0x5588a3):_0xc38c77['writer']['removeClass']('ck-suggestion-marker--active',_0x5588a3));}}};}_0x58ceaf['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x11870b),_0x58ceaf['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x11870b),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x4a7d43(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2898a3,_0x585cbf,_0x394dd1)=>{_0x394dd1['options']['showSuggestionHighlights']&&_0x4a7d43({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2898a3,_0x585cbf,_0x394dd1);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x2041a8,_0x1ffcc5,_0x797f78)=>{const {type:_0x21c19d,id:_0x55b634}=_0x58ceaf['_splitMarkerName'](_0x1ffcc5['markerName']),_0x501dd2=_0x58ceaf['getSuggestion'](_0x55b634),_0x40e570=_0x501dd2['data'];if('formatBlock'!=_0x501dd2['type']||!_0x40e570||'setTableColumnHeader'!=_0x40e570['commandName'])return;const _0x5045a3=_0x797f78['mapper']['markerNameToElements'](_0x1ffcc5['markerName']);if(_0x5045a3){for(const _0x47358a of _0x5045a3)_0x797f78['writer']['removeClass']('ck-suggestion-marker-'+_0x21c19d,_0x47358a),_0x797f78['writer']['removeClass']('ck-suggestion-marker--active',_0x47358a),_0x797f78['writer']['removeAttribute']('data-suggestion',_0x47358a),_0x797f78['mapper']['unbindElementFromMarkerName'](_0x47358a,_0x1ffcc5['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x46a9dd=this['editor'],_0x587f85=_0x46a9dd['locale'];function _0x2d17a5(_0x44e988){return{'type':'format','content':c(_0x587f85,'*Format:*\x20%0',_0x44e988)};}_0x46a9dd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x37ea4a=>{if('formatBlock'!=_0x37ea4a['type'])return;const {data:_0x52bda7}=_0x37ea4a;if(_0x52bda7){if('setTableRowHeader'==_0x52bda7['commandName']){const _0xf67176=_0x52bda7['commandParams'][0x0]['forceValue'];return _0x2d17a5(c(_0x587f85,_0xf67176?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x52bda7['commandName']){const _0x4fcf38=_0x52bda7['commandParams'][0x0]['forceValue'];return _0x2d17a5(c(_0x587f85,_0x4fcf38?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x2bfc94=>[_0x2bfc94,null]));class Nt extends _0x104d33{static get['requires'](){return[_t];}['afterInit'](){const _0x139a5d=this['editor'];if(!_0x139a5d['plugins']['has']('TableClipboard'))return;const _0x3a24a0=_0x139a5d['plugins']['get']('TrackChangesEditing'),_0x56a3df=_0x139a5d['plugins']['get']('TableUtils'),_0x1696d7=_0x139a5d['plugins']['get'](_t),_0x100a8e=_0x139a5d['plugins']['get']('TableClipboard');_0x1696d7['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x139a5d['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x139a5d['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x589fea=null;_0x139a5d['model']['on']('insertContent',(_0x27d5e2,_0x3904c9)=>{const [_0x504fd8,_0x38642c]=_0x3904c9,_0x3a2f04=_0x3904c9[_0x3904c9['length']-0x1];_0x3a2f04&&_0x3a2f04['forceDefaultExecution']||_0x3a24a0['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x2718ce,_0x572e90,_0x4ddfa4,_0x34a1fd,_0x451f97){if(_0x572e90&&!_0x572e90['is']('documentSelection'))return!0x1;const _0x9f1d2b=_0x451f97['getTableIfOnlyTableInContent'](_0x2718ce,_0x4ddfa4);if(!_0x9f1d2b||!Ue(_0x9f1d2b,void 0x0,_0x34a1fd))return!0x1;const _0x5557cd=_0x34a1fd['getSelectionAffectedTableCells'](_0x4ddfa4['document']['selection']);if(!_0x5557cd['length'])return!0x1;const _0x3da4c5=_0x5557cd[0x0]['findAncestor']('table'),_0x575dbe=_0x34a1fd['getRowIndexes'](_0x5557cd),_0x28d7d1=_0x34a1fd['getColumnIndexes'](_0x5557cd),_0x2d4c12={'startRow':_0x575dbe['first'],'endRow':_0x575dbe['last'],'startColumn':_0x28d7d1['first'],'endColumn':_0x28d7d1['last']};return 0x1==_0x5557cd['length']&&(_0x2d4c12['endRow']+=_0x34a1fd['getRows'](_0x9f1d2b)-0x1,_0x2d4c12['endColumn']+=_0x34a1fd['getColumns'](_0x9f1d2b)-0x1),Ue(_0x3da4c5,_0x2d4c12,_0x34a1fd);}(_0x504fd8,_0x38642c,_0x139a5d['model'],_0x56a3df,_0x100a8e)&&(_0x27d5e2['stop'](),_0x589fea={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x139a5d['model']['change'](()=>{_0x139a5d['model']['insertContent'](_0x3904c9[0x0],_0x3904c9[0x1],_0x3904c9[0x2],{'forceDefaultExecution':!0x0});const _0x360de6=_0x5a1697(),{rowInsertionRanges:_0x4a4729,columnInsertionRanges:_0x3a5ce2,insertionRanges:_0x4060e4,deletionRanges:_0x142e09,cells:_0x3333be}=_0x589fea;_0x4a4729['length']&&_0x3a24a0['markMultiRangeInsertion'](_0x4a4729,'tablePasteRow',{'tablePasteChainId':_0x360de6}),_0x3a5ce2['length']&&_0x3a24a0['markMultiRangeInsertion'](_0x3a5ce2,'tablePasteColumn',{'tablePasteChainId':_0x360de6}),_0x4060e4['length']&&(_0x3a24a0['markMultiRangeInsertion'](_0x4060e4,'tablePaste',{'tablePasteChainId':_0x360de6,'skipNestingCheck':!0x0}),_0x4060e4['forEach'](_0x157520=>_0x157520['detach']?.())),_0x142e09['length']&&(_0x3a24a0['markMultiRangeDeletion'](_0x142e09,'tablePaste',{'tablePasteChainId':_0x360de6,'skipNestingCheck':!0x0}),_0x142e09['forEach'](_0x21a84a=>_0x21a84a['detach']?.()));const _0x3b2aa6=_0x3a24a0['markMultiRangeBlockFormat'](_0x3333be['map'](({element:_0x63d4e})=>_0x63d4e),{'formatGroupId':_0x5a1697()},[],'tablePasteCell',{'tablePasteChainId':_0x360de6});if(_0x3b2aa6){const _0x37572e=_0x3b2aa6['getMarkers'](),_0x329f06=[];for(const {element:_0x1eb5c0,attributes:_0x40a0e0}of _0x3333be){if(!_0x40a0e0)continue;const _0x4f981c=_0x139a5d['model']['createRangeOn'](_0x1eb5c0),_0x1f6f1a=_0x37572e['find'](_0x116a27=>_0x116a27['getRange']()['isEqual'](_0x4f981c));_0x1f6f1a&&_0x329f06['push']([_0x1f6f1a['name'],_0x40a0e0]);}_0x329f06['length']&&_0x3b2aa6['setAttribute']('markerAttributes',Object['fromEntries'](_0x329f06));}_0x589fea=null;}));},{'priority':_0x185083['high']+0xa}),_0x139a5d['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0xd864a2,_0x9abcbd)=>{const [_0x4ea11f,_0x4c16f7,,_0x356b6e]=_0x9abcbd;if(!_0x589fea)return;_0xd864a2['stop']();const _0x2b1b9e=_0x4ea11f['cell'],_0xdd3f18=_0x4c16f7,_0x48846d=Oe(_0x2b1b9e),_0x4a3238=Oe(_0xdd3f18);_0xd864a2['return']=_0x2b1b9e;let _0x4c219d=null,_0x45c567=null;if(_0x4a3238||_0x48846d){if(_0x48846d&&!_0x4a3238){_0x356b6e['remove'](_0x2b1b9e['getChild'](0x0));for(const _0x223247 of Array['from'](_0xdd3f18['getChildren']()))_0x356b6e['insert'](_0x223247,_0x2b1b9e,'end');const _0x203838=_0x589fea['rowInsertionIndexes']['includes'](_0x4ea11f['row']),_0x8648ae=_0x589fea['columnInsertionIndexes']['includes'](_0x4ea11f['column']);_0x203838||_0x8648ae||(_0x4c219d=_0x27b625['fromRange'](_0x356b6e['createRangeIn'](_0x2b1b9e)));}else _0x4a3238&&!_0x48846d&&(_0x45c567=_0x356b6e['createRangeIn'](_0x2b1b9e));}else{const _0x267661=_0x356b6e['createElement']('tableCellSuggestion'),_0x581c27=_0x356b6e['createElement']('tableCellSuggestion');_0x356b6e['wrap'](_0x356b6e['createRangeIn'](_0x2b1b9e),_0x581c27),_0x356b6e['insert'](_0x267661,_0x2b1b9e,0x0);for(const _0x341463 of Array['from'](_0xdd3f18['getChildren']()))_0x356b6e['insert'](_0x341463,_0x267661,'end');_0x4c219d=_0x27b625['fromRange'](_0x356b6e['createRangeOn'](_0x267661)),_0x45c567=_0x27b625['fromRange'](_0x356b6e['createRangeOn'](_0x581c27));}const _0x1ae943=Array['from'](_0xdd3f18['getAttributes']())['filter'](([_0x260fb1])=>Be['includes'](_0x260fb1));_0x589fea['cells']['push']({'element':_0x2b1b9e,'attributes':_0x1ae943['length']?Object['fromEntries'](_0x1ae943):null}),_0x4c219d&&_0x589fea['insertionRanges']['push'](_0x4c219d),_0x45c567&&_0x589fea['deletionRanges']['push'](_0x45c567);},{'priority':'high'}),_0x56a3df['on']('insertColumns',(_0x306b3e,_0x26ead1)=>{const [_0x16e5b3,_0x272c29={}]=_0x26ead1;if(!_0x589fea)return;const _0x1e270e=_0x272c29['at']||0x0,_0x4bc9d1=_0x272c29['columns']||0x1;_0x589fea['columnInsertionIndexes']=new Array(_0x4bc9d1)['fill'](_0x1e270e)['map']((_0x376fc9,_0x3020de)=>_0x376fc9+_0x3020de);for(const {cell:_0x341aa2}of _0x56a3df['createTableWalker'](_0x16e5b3,{'startColumn':_0x1e270e,'endColumn':_0x1e270e+_0x4bc9d1-0x1}))_0x589fea['columnInsertionRanges']['push'](_0x139a5d['model']['createRangeOn'](_0x341aa2));},{'priority':'low'}),_0x56a3df['on']('insertRows',(_0x599297,_0x4216f6)=>{const [_0x406690,_0x30e56a={}]=_0x4216f6;if(!_0x589fea)return;const _0x155b38=_0x30e56a['at']||0x0,_0xd939a9=_0x30e56a['rows']||0x1;_0x589fea['rowInsertionIndexes']=new Array(_0xd939a9)['fill'](_0x155b38)['map']((_0x4a4c33,_0x184115)=>_0x4a4c33+_0x184115);for(const {cell:_0x1f98bc}of _0x56a3df['createTableWalker'](_0x406690,{'startRow':_0x155b38,'endRow':_0x155b38+_0xd939a9-0x1}))_0x589fea['rowInsertionRanges']['push'](_0x139a5d['model']['createRangeOn'](_0x1f98bc));},{'priority':'low'}),_0x3a24a0['descriptionFactory']['registerDescriptionCallback'](_0x27248c=>{if(_0x27248c['subType']&&_0x27248c['subType']['startsWith']('tablePaste'))return _0x27248c['previous']?{}:{'type':'insertion','content':c(_0x139a5d['locale'],'*Replace\x20table\x20cells*')};});const _0x31635c=()=>!0x1;for(const _0x547ed1 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x3a24a0['_suggestionFactory']['registerCustomCallback']('insertion',_0x547ed1,'join',_0x31635c),_0x3a24a0['_suggestionFactory']['registerCustomCallback']('deletion',_0x547ed1,'join',_0x31635c),_0x3a24a0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x547ed1,'join',_0x31635c);_0x3a24a0['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x31635c),_0x3a24a0['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x358f7f,_0x535e6e,_0x552f3f)=>{const _0x6a606=_0x358f7f['map'](_0x402099=>_0x402099['getContainedElement']())['filter'](_0x4a074b=>_0x4a074b),_0x227d21=new Map(_0x6a606['map'](_0x511241=>[_0x511241,null]));if(_0x589fea){for(const {element:_0x191c87,attributes:_0xb6c44}of _0x589fea['cells'])_0xb6c44&&_0x227d21['set'](_0x191c87,_0xb6c44);}else{if(_0x552f3f&&_0x552f3f['markerAttributes'])for(const [_0xea4230,_0x164af9]of Object['entries'](_0x552f3f['markerAttributes'])){const _0x50e78e=_0x139a5d['model']['markers']['get'](_0xea4230),_0x36c2c8=_0x50e78e?_0x50e78e['getRange']()['getContainedElement']():null;_0x36c2c8&&_0x227d21['set'](_0x36c2c8,_0x164af9);}}_0x139a5d['model']['change'](_0x491797=>{for(const [_0x590833,_0x51e2f9]of _0x227d21)_0x491797['setAttributes']({...xe,..._0x51e2f9},_0x590833);});});const _0x21c59d=(_0x25589b,_0xed0ef5)=>{_0x3a24a0['_suggestionFactory']['registerCustomCallback'](_0x25589b,'tablePaste',_0xed0ef5,(_0x3048e8,_0x5f4eda,_0x5a12f3)=>{_0x139a5d['model']['change'](_0x414cc5=>{const _0x1c04c9=[];for(const _0x7a690b of _0x3048e8){const _0x5e34bd=_0x7a690b['start']['nodeAfter'];_0x5e34bd['is']('element','tableCellSuggestion')&&_0x1c04c9['push'](_0x5e34bd);}_0x3a24a0['_suggestionFactory']['getSuggestionCallback'](_0x25589b,null,_0xed0ef5)(_0x3048e8,_0x5f4eda,_0x5a12f3);for(const _0x47446c of _0x1c04c9)'$graveyard'!=_0x47446c['root']['rootName']&&_0x414cc5['unwrap'](_0x47446c);});});};_0x21c59d('insertion','accept'),_0x21c59d('insertion','discard'),_0x21c59d('deletion','accept'),_0x21c59d('deletion','discard'),_0x3a24a0['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x295e17=>{const _0xf628a0=_0x295e17['map'](_0x368d23=>_0x368d23['getContainedElement']()),_0xf850e9=_0xf628a0[0x0]['findAncestor']('table'),{minRow:_0x4767b2,maxRow:_0x5d3fbc}=_0x1696d7['_getCoordsForCells'](_0xf628a0);_0x56a3df['removeRows'](_0xf850e9,{'at':_0x4767b2,'rows':_0x5d3fbc-_0x4767b2+0x1});}),_0x3a24a0['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x455e49=>{const _0x575ea2=_0x455e49['map'](_0xe174cf=>_0xe174cf['getContainedElement']()),_0x32adff=_0x575ea2[0x0]['findAncestor']('table'),{minColumn:_0x12e000,maxColumn:_0x1f26b0}=_0x1696d7['_getCoordsForCells'](_0x575ea2);_0x56a3df['removeColumns'](_0x32adff,{'at':_0x12e000,'columns':_0x1f26b0-_0x12e000+0x1});});const _0x247aa0=(_0x499110,_0x76dd98)=>{if(!_0x76dd98['subType']||!_0x76dd98['subType']['startsWith']('tablePaste'))return;const _0x5e6453=_0x76dd98['attributes']['tablePasteChainId'],_0x36c94d=_0x3a24a0['getSuggestions']()['filter'](_0x1b535b=>_0x1b535b['isInContent']&&_0x1b535b['attributes']&&_0x1b535b['attributes']['tablePasteChainId']==_0x5e6453);_0x36c94d['length']&&_0x76dd98['getAllAdjacentSuggestions']()['length']!=_0x36c94d['length']&&_0x36c94d['reduce']((_0x56b5a6,_0x4e253b)=>(_0x56b5a6['next']=_0x4e253b,_0x4e253b['previous']=_0x56b5a6,_0x4e253b));};function _0x38ce0e(_0x20b469,_0x4d3b3b=!0x0){const {id:_0x2c4023,authorId:_0x265133}=_0x3a24a0['_splitMarkerName'](_0x20b469['markerName']),_0x5afc48=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x500808=_0x3a24a0['activeMarkers']['includes'](_0x20b469['markerName']);return _0x500808&&_0x5afc48['push']('ck-suggestion-marker--active'),{'classes':_0x5afc48,'attributes':{'data-suggestion':_0x2c4023,'data-author-id':_0x265133},'priority':_0x500808&&_0x4d3b3b?0xbc2:0xbb8};}_0x3a24a0['on']('suggestionLoaded',_0x247aa0,{'priority':'high'}),_0x3a24a0['on']('suggestionUnloaded',_0x247aa0,{'priority':'high'}),_0x139a5d['model']['document']['registerPostFixer'](()=>{let _0x3ceb11=!0x1;const _0x4bbe37=Array['from'](_0x139a5d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x43fa2c,data:_0x524f3f}of _0x4bbe37){const {group:_0x1e421d,type:_0x57b385,id:_0x31632c}=_0x3a24a0['_splitMarkerName'](_0x43fa2c);if('suggestion'!=_0x1e421d||'deletion'!=_0x57b385||_0x524f3f['oldRange'])continue;if(!_0x3a24a0['hasSuggestion'](_0x31632c))continue;const _0x5acd97=_0x3a24a0['getSuggestion'](_0x31632c)['getRanges'](),_0x5463bc=_0x139a5d['plugins']['get']('Users')['me'];for(const _0x5bac73 of _0x3a24a0['getSuggestions']()){if(!_0x5bac73['isInContent']||_0x5bac73['author']!=_0x5463bc)continue;if('formatBlock'!=_0x5bac73['type']||'tablePasteCell'!=_0x5bac73['subType'])continue;if(_0x5bac73['getRanges']()['every'](_0x316b8d=>_0x5acd97['some'](_0x3f81f3=>_0x3f81f3['containsRange'](_0x316b8d,!0x0)))){for(const _0x8c66e1 of _0x5bac73['getAllAdjacentSuggestions']())_0x8c66e1['isInContent']&&(_0x8c66e1['discard'](),_0x3ceb11=!0x0);}}}return _0x3ceb11;}),_0x139a5d['model']['document']['registerPostFixer'](_0x25d20f=>{const _0x1c8c34=_0x139a5d['commands']['get']('redo');if(!_0x1c8c34||!_0x1c8c34['_createdBatches']['has'](_0x25d20f['batch']))return!0x1;let _0x236cc4=!0x1;const _0x101d57=_0x139a5d['plugins']['get']('Users')['me'],_0x13e347=_0x139a5d['model']['document']['differ']['getChanges'](),_0x53d58d=Array['from'](_0x139a5d['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x1007a4,data:_0x1b7ac1})=>{const {group:_0x2d8a4b,subType:_0xebc620,authorId:_0x3eef80}=_0x3a24a0['_splitMarkerName'](_0x1007a4);return'suggestion'==_0x2d8a4b&&'tablePaste'==_0xebc620&&_0x3eef80==_0x101d57['id']&&!_0x1b7ac1['oldRange'];});for(const _0x3f69b5 of _0x13e347){if('insert'!=_0x3f69b5['type']||'tableCellSuggestion'!=_0x3f69b5['name']||0x1!=_0x3f69b5['length'])continue;const _0x47b0d3=_0x25d20f['createRange'](_0x3f69b5['position'],_0x3f69b5['position']['getShiftedBy'](0x1));if(!_0x53d58d['find'](({data:_0x4eea96})=>_0x4eea96['newRange']['isEqual'](_0x47b0d3))){for(const {name:_0xcba97a,data:_0x45cddf}of _0x53d58d)if(_0x47b0d3['containsRange'](_0x45cddf['newRange'])){_0x25d20f['updateMarker'](_0xcba97a,{'range':_0x47b0d3}),_0x236cc4=!0x0;break;}}}return _0x236cc4;}),_0x139a5d['model']['document']['registerPostFixer'](_0x507fdf=>{let _0x34588f=!0x1;const _0x1618bb=_0x139a5d['plugins']['get']('Users')['me'],_0x25cbf5=_0x3a24a0['getSuggestions']()['filter'](_0x2aa2a9=>_0x2aa2a9['isInContent']&&_0x2aa2a9['author']==_0x1618bb),_0x5aad81=new Set(),_0x4ad4a8=new Set();for(const _0x41a36c of _0x25cbf5)if('tablePaste'==_0x41a36c['subType'])for(const _0x557da2 of _0x41a36c['getMarkers']()){const _0x143697=_0x557da2['getRange']()['getContainedElement']();if(_0x143697){if(_0x143697['is']('element','tableCellSuggestion')&&Oe(_0x143697)){_0x41a36c['removeMarker'](_0x557da2['name']),_0x5aad81['add'](_0x143697),_0x34588f=!0x0;const _0x498d92=_0x143697['nextSibling'],_0x220720=_0x143697['previousSibling'],_0x157338=_0x498d92&&_0x498d92['is']('element','tableCellSuggestion'),_0x7a40d1=_0x220720&&_0x220720['is']('element','tableCellSuggestion');_0x157338&&!_0x5aad81['has'](_0x498d92)&&_0x4ad4a8['add'](_0x498d92),_0x7a40d1&&!_0x5aad81['has'](_0x220720)&&_0x4ad4a8['add'](_0x220720);}else _0x143697['is']('element','paragraph')&&_0x143697['isEmpty']&&(_0x41a36c['removeMarker'](_0x557da2['name']),_0x34588f=!0x0);}}else{if('tablePasteCell'==_0x41a36c['subType']){if(!_0x41a36c['attributes']||!_0x41a36c['attributes']['tablePasteChainId'])continue;const _0x4d100c=_0x41a36c['attributes']['markerAttributes'];if(_0x4d100c&&Object['keys'](_0x4d100c)['length'])continue;const _0x109929=_0x41a36c['attributes']['tablePasteChainId'];let _0x2ba78d=!0x0,_0x595a8b=!0x0;for(const _0x19e21b of _0x25cbf5)if(_0x19e21b['subType']&&_0x19e21b['subType']['startsWith']('tablePaste')){if(!_0x19e21b['attributes']['tablePasteChainId']){_0x595a8b=!0x1;break;}if(_0x19e21b['id']!=_0x41a36c['id']&&_0x19e21b['attributes']['tablePasteChainId']==_0x109929){_0x2ba78d=!0x1;break;}}_0x595a8b&&_0x2ba78d&&(_0x41a36c['removeMarkers'](),_0x34588f=!0x0);}}for(const _0x20c957 of _0x5aad81)_0x507fdf['remove'](_0x20c957);for(const _0x22d6f8 of _0x4ad4a8)_0x507fdf['unwrap'](_0x22d6f8);return _0x34588f;}),_0x139a5d['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x23c5f6=>_0x38ce0e(_0x23c5f6),'converterPriority':'high'}),_0x139a5d['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x546a6a,_0x10a4f1)=>_0x10a4f1['options']['showSuggestionHighlights']?_0x38ce0e(_0x546a6a,!0x1):null,'converterPriority':'high'});const _0x2dd719=_0x139a5d['editing']['view'];this['listenTo'](_0x2dd719['document'],'clipboardOutput',(_0x43a015,_0x4e4ad0)=>{const _0x5dafed=[];for(const _0x5128a1 of _0x2dd719['createRangeIn'](_0x4e4ad0['content'])['getItems']())_0x5128a1['is']('element','suggestion-td')&&_0x5dafed['push'](_0x5128a1);_0x2dd719['change'](_0x1480d8=>{for(const _0x1ee3b3 of _0x5dafed)_0x1480d8['move'](_0x1480d8['createRangeIn'](_0x1ee3b3),_0x1480d8['createPositionBefore'](_0x1ee3b3)),_0x1480d8['remove'](_0x1ee3b3);});});}}function Oe(_0x5baff6){if(_0x5baff6['isEmpty'])return!0x0;const _0x2e2403=_0x5baff6['getChild'](0x0);return _0x2e2403['is']('element','paragraph')&&_0x2e2403['isEmpty'];}function Ue(_0x2fd884,_0x52dc2a={},_0xa1faf0){for(const {isAnchor:_0x263bb2,cellHeight:_0x53bf1e,cellWidth:_0x1f0960}of _0xa1faf0['createTableWalker'](_0x2fd884,{'includeAllSlots':!0x0,..._0x52dc2a}))if(!_0x263bb2||0x1!=_0x53bf1e||0x1!=_0x1f0960)return!0x1;return!0x0;}class Dt extends _0x104d33{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x5367b9=this['editor']['plugins']['get']('TrackChangesEditing');_0x5367b9['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x5367b9['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x5367b9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5367b9['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x5367b9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x5367b9['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x4594bd,_0x28bd3f){const _0x3c2b34=this['editor']['plugins']['get']('TrackChangesEditing'),_0x408573=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x55e56b=_0x28bd3f['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x5bafe0=_0x408573['getColumnGroupElement'](_0x55e56b);let _0x5a2600=_0x5bafe0?_0x408573['getTableColumnsWidths'](_0x5bafe0):null,_0x218bd2=_0x55e56b['getAttribute']('tableWidth')||null;const _0x427430=_0x28bd3f['tableWidth']||_0x218bd2,_0x56e346=_0x28bd3f['columnWidths']||_0x5a2600,_0x2b7c73=this['editor']['plugins']['get']('Users')['me'];for(const _0x17f674 of _0x3c2b34['getSuggestions']()){const _0x3ed63e=_0x17f674['getContainedElement']();if('resizeTable'===_0x17f674['subType']&&_0x3ed63e===_0x55e56b){_0x17f674['author']!==_0x2b7c73&&_0x17f674['discard']();const _0x234d87=_0x17f674['data']['commandParams'];_0x218bd2=_0x234d87[0x0]['tableWidth'],_0x5a2600=_0x234d87[0x0]['columnWidths'];break;}}_0x4594bd({'table':_0x55e56b,'tableWidth':_0x427430,'columnWidths':_0x56e346}),_0x3c2b34['markBlockFormat'](_0x55e56b,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x218bd2,'columnWidths':_0x5a2600}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x5b9df0){if('formatBlock'!=_0x5b9df0['type']&&'formatInline'!=_0x5b9df0['type'])return;const {data:_0x112aa8}=_0x5b9df0;if(_0x112aa8&&'resizeTable'===_0x112aa8['formatGroupId']){const _0x308940='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x308940)};}}}class Mt extends _0x104d33{['afterInit'](){const _0x5b9e72=this['editor'];_0x5b9e72['plugins']['has']('Template')&&_0x5b9e72['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x104d33{['afterInit'](){const _0x3e37e6=this['editor'];if(!_0x3e37e6['commands']['get']('insertTableOfContents'))return;_0x3e37e6['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x106ac7=_0x3e37e6['plugins']['get']('TrackChangesEditing'),_0x294b33=_0x3e37e6['locale'];_0x106ac7['descriptionFactory']['registerElementLabel']('tableOfContents',_0x5c8c72=>c(_0x294b33,'ELEMENT_TABLE_OF_CONTENTS',_0x5c8c72));}}class Bt extends _0x104d33{['afterInit'](){const _0x5b53d8=this['editor'];if(!_0x5b53d8['plugins']['has']('Title'))return;const _0x1c4bca=_0x5b53d8['plugins']['get']('TrackChangesEditing');_0x1c4bca['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x5b53d8['locale'],'ELEMENT_TITLE')),_0x5b53d8['model']['document']['registerPostFixer'](_0x1fd9ef=>{let _0x558f03=!0x1;const _0x182a2f=Array['from'](_0x5b53d8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x227b65,data:_0x5e36f0}of _0x182a2f){const {group:_0x57b22f}=_0x1c4bca['_splitMarkerName'](_0x227b65);if('suggestion'!==_0x57b22f||!_0x5e36f0['newRange'])continue;const _0x2352a6=_0x5e36f0['newRange'],_0x3e10db=_0x2352a6['end']['nodeBefore'];if(!_0x3e10db||!_0x3e10db['is']('element','title-content'))continue;if(!_0x2352a6['start']['isTouching'](_0x2352a6['end']))continue;const _0x36b557=_0x5b53d8['model']['schema']['getNearestSelectionRange'](_0x2352a6['end'],'forward');if(_0x36b557&&_0x36b557['isCollapsed']){const _0x5b9d23=_0x1fd9ef['createRange'](_0x2352a6['start'],_0x36b557['start']);_0x5b9d23['isEqual'](_0x2352a6)||(_0x1fd9ef['updateMarker'](_0x227b65,{'range':_0x5b9d23}),_0x558f03=!0x0);}_0x558f03||(_0x1fd9ef['removeMarker'](_0x227b65),_0x558f03=!0x0);}return _0x558f03;});}}class Ot extends _0x104d33{['afterInit'](){const _0x474d9b=this['editor'],_0x431d73=_0x474d9b['plugins']['get']('TrackChangesEditing');_0x474d9b['plugins']['has']('Uploadcare')&&(_0x431d73['enableCommand']('uploadcare'),_0x474d9b['plugins']['has']('UploadcareImageEdit')&&(_0x431d73['enableCommand']('uploadcareImageEdit'),_0x431d73['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x431d73['registerBlockAttribute']('uploadcareImageId'),_0x431d73['descriptionFactory']['registerDescriptionCallback'](_0x2f5876=>{if('attribute'!=_0x2f5876['type'])return;const {data:_0x12a26c}=_0x2f5876;return _0x12a26c&&'uploadcareImageId'==_0x12a26c['key']?{'type':'format','content':''}:void 0x0;})));}}class Rt extends _0x104d33{['afterInit'](){const _0x163034=this['editor'],_0x53708e=_0x163034['plugins']['get']('TrackChangesEditing');_0x163034['plugins']['has']('UndoEditing')&&(_0x53708e['enableCommand']('undo'),_0x53708e['enableCommand']('redo'));}}class xt extends _0x104d33{static get['requires'](){return[_t];}['afterInit'](){const _0x3d7ad3=this['editor'];if(!_0x3d7ad3['plugins']['has']('TableCaptionEditing'))return;_0x3d7ad3['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Tt extends _0x104d33{['tableProperties'];['tableCellProperties'];constructor(_0x49b402){super(_0x49b402),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x43515d=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x3b9942 of this['tableProperties'])_0x43515d['enableCommand'](_0x3b9942,(_0x45990a,_0x4c49e3)=>{const _0x1955b9=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x3b9942,[_0x1955b9],this['tableProperties'],'tableProperties',_0x45990a,_0x4c49e3);});_0x43515d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x43515d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x43515d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x4463c3,_0x20c4f1)=>this['handleDiscardAction'](this['tableProperties'],_0x4463c3,_0x20c4f1)),_0x43515d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x2dd142 of this['tableCellProperties'])_0x43515d['enableCommand'](_0x2dd142,(_0x451b3f,_0x21d10b)=>{const _0x16b405=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x2dd142,_0x16b405,this['tableCellProperties'],'tableCellProperties',_0x451b3f,_0x21d10b);});_0x43515d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x43515d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x43515d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4bbab7,_0x320354)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4bbab7,_0x320354)),_0x43515d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x43515d['descriptionFactory']['registerDescriptionCallback'](_0x4de690=>this['handleSuggestionDescription'](_0x4de690));}['_handlePropertyChange'](_0xfd58ee,_0x231107,_0x246aa6,_0x2b3629,_0x51f939,_0x1bcbf8){const _0x16b318=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x1bcbf8['batch'],()=>{for(const _0xb5a654 of _0x231107){if(this['_getSuggestion'](_0xb5a654,_0x2b3629))_0x51f939(_0x1bcbf8);else{const _0x5c3856={};for(const _0x283466 of _0x246aa6){const _0x56112a=_0xb5a654['getAttribute'](_0x283466);void 0x0!==_0x56112a&&(_0x5c3856[_0x283466]=_0x56112a);}_0x51f939(_0x1bcbf8),_0x16b318['markBlockFormat'](_0xb5a654,{'commandParams':[_0x5c3856]},[],_0x2b3629);}}});}['handleDiscardAction'](_0x2c8cef,_0x1c0cf2,_0x17836d){const _0x9350e7=_0x1c0cf2[0x0]['start']['nodeAfter'],_0x23a44f=_0x17836d['commandParams'][0x0];this['editor']['model']['change'](_0x1dda21=>{for(const _0x1e721c of _0x2c8cef)void 0x0!==_0x23a44f[_0x1e721c]?_0x1dda21['setAttribute'](_0x1e721c,_0x23a44f[_0x1e721c],_0x9350e7):_0x1dda21['removeAttribute'](_0x1e721c,_0x9350e7);});}['handleSuggestionDescription'](_0x4b2980){if(_0x4b2980['data'])switch(_0x4b2980['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x57a09b,_0x499bd1){const _0x4a5eb5=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x50afee of _0x4a5eb5['getSuggestions']({'skipNotAttached':!0x0})){const _0x3be27=_0x50afee['getContainedElement']();if(_0x50afee['subType']===_0x499bd1&&_0x3be27===_0x57a09b)return _0x50afee;}return null;}}const u='$elementName';class p extends _0x104d33{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x1615a7,_0x4e2c61,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,Se,dt,mt,pt,kt,bt,yt,jt,St,At,It,_t,vt,Ct,xt,Nt,Dt,$t,Tt,Mt,Bt,Ot,Rt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xed42bd){super(_0xed42bd),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x4c7984,_0x2181ff,_0x1a0446,_0x277112)=>{this['_model']['change'](()=>{for(const _0x3885e9 of[..._0x277112,..._0x1a0446])this['_model']['markers']['has'](_0x3885e9)&&_0xed42bd['editing']['reconvertMarker'](_0x3885e9);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ut(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0xed42bd['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0xed42bd['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0xed42bd['config']['get']('trackChanges.trackFormatChanges'),_0xed42bd['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0xed42bd['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0xed42bd,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x3d7f99=this['editor'],_0x1c3134=(_0x233c8d,_0x346eca)=>{if('attribute'!=_0x233c8d)return'ck-suggestion-marker-'+_0x233c8d;const _0x5678eb=_0x346eca['split']('|')[0x0];return this['_isBlockAttribute'](_0x5678eb)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x3d7f99['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1c748f=>{const {id:_0x1e7b34,authorId:_0x45f210,type:_0x4f1220,subType:_0x5cb6de}=this['_splitMarkerName'](_0x1c748f['markerName']),_0x1d7a77=['ck-suggestion-marker',_0x1c3134(_0x4f1220,_0x5cb6de)];let _0x820220=0xbb8;return this['activeMarkers']['includes'](_0x1c748f['markerName'])&&(_0x1d7a77['push']('ck-suggestion-marker--active'),_0x820220=0xbc2),'deletion'==_0x4f1220&&(_0x820220+=0x5),{'classes':_0x1d7a77,'attributes':{'data-suggestion':_0x1e7b34,'data-author-id':_0x45f210},'priority':_0x820220};}}),_0x3d7f99['conversion']['for']('dataDowncast')['add'](_0x4e51d7=>{_0x4e51d7['on']('addMarker:suggestion',(_0x4ca402,_0x202257,_0x63f08d)=>{if(!_0x63f08d['options']['showSuggestionHighlights'])return;const _0x224846=_0x202257['item'];if(!_0x224846)return;const _0x217db6=_0x63f08d['mapper']['toViewElement'](_0x224846);_0x3d7f99['model']['schema']['isObject'](_0x224846)&&_0x217db6&&!_0x217db6['getCustomProperty']('widget')&&_0x217db6['is']('containerElement')&&_0x43a896(_0x217db6,_0x63f08d['writer']);},{'priority':'high'});}),_0x3d7f99['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2d97b5,_0x418281)=>{if(!_0x418281['options']['showSuggestionHighlights'])return null;const {type:_0x520a03,subType:_0x21996b}=this['_splitMarkerName'](_0x2d97b5['markerName']);return{'classes':['ck-suggestion-marker',_0x1c3134(_0x520a03,_0x21996b)],'priority':0xbb8};}});const _0x5297c2=({showActiveMarkers:_0x5d0c81=!0x0,isAttributeSuggestion:_0x48ede5=!0x1}={})=>(_0x318ce6,_0x3f5d33,_0x583b51)=>{if(!_0x3f5d33['item'])return;const {id:_0x42cba3,authorId:_0x22c6fd}=this['_splitMarkerName'](_0x3f5d33['markerName']);if(_0x48ede5){const _0x5f40ee=this['_suggestions']['get'](_0x42cba3),_0x34ed24=this['_getAttributeKey'](_0x5f40ee);if(!this['_isBlockAttribute'](_0x34ed24))return;}if(_0x3f5d33['item']['is']('selection'))return void _0x583b51['consumable']['consume'](_0x3f5d33['item'],_0x318ce6['name']);const _0x5bcb4e=_0x583b51['mapper']['toViewElement'](_0x3f5d33['item']);if(_0x3f5d33['item']['is']('element')&&_0x3d7f99['model']['schema']['isBlock'](_0x3f5d33['item'])&&!_0x5bcb4e['getCustomProperty']('addHighlight')){_0x583b51['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x5bcb4e),_0x583b51['writer']['setAttribute']('data-suggestion',_0x42cba3,_0x5bcb4e),_0x583b51['writer']['setAttribute']('data-author-id',_0x22c6fd,_0x5bcb4e),_0x583b51['mapper']['bindElementToMarker'](_0x5bcb4e,_0x3f5d33['markerName']),_0x5d0c81&&(this['activeMarkers']['includes'](_0x3f5d33['markerName'])?_0x583b51['writer']['addClass']('ck-suggestion-marker--active',_0x5bcb4e):_0x583b51['writer']['removeClass']('ck-suggestion-marker--active',_0x5bcb4e));for(const _0x45965c of _0x3d7f99['model']['createRangeIn'](_0x3f5d33['item'])['getItems']())_0x583b51['consumable']['consume'](_0x45965c,_0x318ce6['name']);_0x583b51['consumable']['consume'](_0x3f5d33['item'],_0x318ce6['name']);}};_0x3d7f99['conversion']['for']('dataDowncast')['add'](_0x234bad=>{_0x234bad['on']('addMarker:suggestion:formatBlock',(_0x18cb67,_0x50d100,_0x51b447)=>{_0x51b447['options']['showSuggestionHighlights']&&_0x5297c2({'showActiveMarkers':!0x1})(_0x18cb67,_0x50d100,_0x51b447);},{'priority':'highest'});}),_0x3d7f99['conversion']['for']('dataDowncast')['add'](_0x43c761=>{_0x43c761['on']('addMarker:suggestion:attribute',(_0x27d31b,_0x5a6f61,_0xf2e921)=>{_0xf2e921['options']['showSuggestionHighlights']&&_0x5297c2({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x27d31b,_0x5a6f61,_0xf2e921);},{'priority':'highest'});}),_0x3d7f99['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x17bb02,_0x40539f)=>_0x40539f['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x17bb02['substr'](0xb)}}),_0x3d7f99['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xc56485,{writer:_0x194f82})=>{let _0x207ed3='suggestion:'+_0xc56485['getAttribute']('suggestion-type')+':'+_0xc56485['getAttribute']('id');return _0xc56485['getAttribute']('marker-count')&&(_0x207ed3+=':'+_0xc56485['getAttribute']('marker-count')),_0x194f82['createElement']('$marker',{'data-name':_0x207ed3});}}),_0x3d7f99['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x3d7f99['conversion']['for']('editingDowncast')['add'](_0x4d8df7=>{_0x4d8df7['on']('addMarker:suggestion:formatBlock',_0x5297c2(),{'priority':'high'});}),_0x3d7f99['conversion']['for']('editingDowncast')['add'](_0x54d852=>{_0x54d852['on']('addMarker:suggestion:attribute',_0x5297c2({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x3d7f99['conversion']['for']('editingDowncast')['add'](_0x1972e7=>{_0x1972e7['on']('removeMarker:suggestion:formatBlock',(_0x408c72,_0xf77d3,_0x3c0d64)=>{const _0x1efadf=_0x3c0d64['mapper']['markerNameToElements'](_0xf77d3['markerName']);if(_0x1efadf){for(const _0x12b478 of _0x1efadf)_0x12b478['getCustomProperty']('addHighlight')||(_0x3c0d64['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x12b478),_0x3c0d64['writer']['removeAttribute']('data-suggestion',_0x12b478),_0x3c0d64['writer']['removeAttribute']('data-author-id',_0x12b478),_0x3c0d64['mapper']['unbindElementFromMarkerName'](_0x12b478,_0xf77d3['markerName']));}},{'priority':'high'});}),_0x3d7f99['conversion']['for']('editingDowncast')['add'](_0x5519d1=>{_0x5519d1['on']('removeMarker:suggestion:attribute',(_0x3bd6dc,_0x2f94b8,_0x122270)=>{const _0x2e14b1=_0x122270['mapper']['markerNameToElements'](_0x2f94b8['markerName']);if(!_0x2e14b1)return;const {id:_0x4a302d}=this['_splitMarkerName'](_0x2f94b8['markerName']),_0x2b2090=this['_suggestions']['get'](_0x4a302d),_0x1caacb=this['_getAttributeKey'](_0x2b2090);if(this['_isBlockAttribute'](_0x1caacb)){for(const _0x393d6a of _0x2e14b1)_0x393d6a['getCustomProperty']('addHighlight')||(_0x122270['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x393d6a),_0x122270['writer']['removeAttribute']('data-suggestion',_0x393d6a),_0x122270['writer']['removeAttribute']('data-author-id',_0x393d6a),_0x122270['mapper']['unbindElementFromMarkerName'](_0x393d6a,_0x2f94b8['markerName']));}},{'priority':'high'});}),_0x3d7f99['model']['document']['registerPostFixer'](_0x40a3ec=>{let _0x2d06e6=!0x1;const _0x3349f8=Array['from'](_0x3d7f99['model']['document']['differ']['getChangedMarkers']()),_0x5333cd=new Set();for(const {name:_0x2dc8a2,data:_0x38cb55}of _0x3349f8){const {group:_0xb82853,type:_0x5263cc,subType:_0x647812,id:_0x4e1df2}=this['_splitMarkerName'](_0x2dc8a2);if('suggestion'!==_0xb82853)continue;const _0x2e4abd=this['_suggestions']['get'](_0x4e1df2);if(null!=_0x38cb55['newRange']){'formatInline'==_0x5263cc&&(_0x2d06e6=_0x2d06e6||Pt(_0x38cb55['newRange'],_0x2dc8a2,_0x40a3ec,_0x3d7f99['model']['schema']));const _0x504515='attribute'==_0x5263cc&&this['_isBlockAttribute'](_0x647812['split']('|')[0x0]);if(_0x38cb55['newRange']['isCollapsed']||'$graveyard'==_0x38cb55['newRange']['root']['rootName']||'formatBlock'==_0x5263cc&&!Lt(_0x38cb55['newRange'])||_0x504515&&!Lt(_0x38cb55['newRange'])||'deletion'==_0x5263cc&&!(!Ft(_0x4a1817=_0x38cb55['newRange'])&&!function(_0x3e1e08){return _0x3e1e08['start']['parent']==_0x3e1e08['end']['nodeBefore']&&_0x3e1e08['start']['isAtEnd'];}(_0x4a1817)))_0x40a3ec['removeMarker'](_0x2dc8a2),_0x2d06e6=!0x0;else{if(!_0x2e4abd||!_0x2e4abd['isInContent'])continue;if(_0x38cb55['newRange']&&_0x38cb55['oldRange']&&_0x38cb55['newRange']['isEqual'](_0x38cb55['oldRange']))continue;_0x5333cd['add'](_0x2e4abd);}}}var _0x4a1817;return _0x5333cd['size']>0x0&&(_0x2d06e6=!!this['_joinWithAdjacentSuggestions'](_0x5333cd)||_0x2d06e6),_0x2d06e6;}),_0x3d7f99['model']['document']['registerPostFixer'](_0x394569=>{let _0x3d473d=!0x1;for(const _0x482923 of _0x3d7f99['model']['document']['differ']['getChanges']())if('insert'==_0x482923['type'])for(const _0x4c8287 of this['_suggestions']['values']()){if(_0x4c8287['isMultiRange']||!_0x4c8287['isInContent'])continue;const _0x86950f='formatBlock'==_0x4c8287['type'],_0x5b3731=this['_getAttributeKey'](_0x4c8287),_0x1f8022=_0x5b3731&&this['_isBlockAttribute'](_0x5b3731);if(!_0x86950f&&!_0x1f8022)continue;const _0x4affa3=_0x4c8287['getFirstRange']();if(_0x4affa3['start']['parent']!=_0x4affa3['end']['parent']&&!_0x4affa3['end']['isAtEnd']){const _0x55107f=_0x3d7f99['model']['createPositionAt'](_0x4affa3['start']['nodeAfter'],'end'),_0x2407f0=_0x3d7f99['model']['createRange'](_0x4affa3['start'],_0x55107f);_0x394569['updateMarker'](_0x4c8287['getFirstMarker'](),{'range':_0x2407f0}),_0x3d473d=!0x0;}}return _0x3d473d;}),_0x3d7f99['model']['document']['registerPostFixer'](_0x4f0627=>this['_processAttributeChanges'](_0x4f0627)),_0x3d7f99['model']['document']['registerPostFixer'](_0x1c0ac3=>!_0x1c0ac3['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x1c0ac3)),_0x3d7f99['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x3d7f99['model']['document']['on']('change:data',(_0x49bd3b,_0x3fb385)=>{if(!_0x3fb385['isLocal']||_0x3fb385['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3afd86=_0x3d7f99['model']['document']['differ']['getChanges']();if(0x0==_0x3afd86['length'])return;const _0x455946=[],_0x31aca4=_0x3afd86['filter'](_0x4408fc=>'attribute'==_0x4408fc['type']),_0x24a3f4=_0x3afd86['filter'](_0x1b9f38=>'insert'==_0x1b9f38['type']&&'$text'!=_0x1b9f38['name']);for(const _0xc2bb32 of _0x31aca4)this['_isRegisteredAttribute'](_0xc2bb32['attributeKey'])&&_0x455946['push']({'key':_0xc2bb32['attributeKey'],'newValue':_0xc2bb32['attributeNewValue'],'oldValue':_0xc2bb32['attributeOldValue'],'range':Jt(_0xc2bb32['range'],_0x3d7f99['model'])});for(const _0x1cacb8 of _0x24a3f4){if('rename'!=_0x1cacb8['action']&&'refresh'!=_0x1cacb8['action'])continue;const _0x512ff5=Kt(_0x1cacb8['position']['nodeAfter'],_0x3d7f99['model']),_0x512b03=_0x1cacb8['before'];'rename'==_0x1cacb8['action']&&_0x455946['push']({'key':u,'newValue':_0x1cacb8['name'],'oldValue':_0x512b03['name'],'range':_0x512ff5});for(const [_0x3cd00d,_0xcde72c]of _0x512b03['attributes']){if(!this['_isRegisteredAttribute'](_0x3cd00d))continue;const _0x62fc8a=_0x1cacb8['attributes']['get'](_0x3cd00d);_0xcde72c!==_0x62fc8a&&_0x455946['push']({'key':_0x3cd00d,'newValue':_0x62fc8a,'oldValue':_0xcde72c,'range':_0x512ff5});}for(const [_0x520d89,_0x4d8707]of _0x1cacb8['attributes'])this['_isRegisteredAttribute'](_0x520d89)&&(_0x512b03['attributes']['has'](_0x520d89)||_0x455946['push']({'key':_0x520d89,'newValue':_0x4d8707,'oldValue':null,'range':_0x512ff5}));}0x0!=_0x455946['length']&&_0x3d7f99['model']['enqueueChange'](_0x3fb385,_0x392969=>{const _0x46ada9=_0x5a1697();for(const {range:_0xa4c7dc,key:_0x2d2d2d,oldValue:_0x55d4b5,newValue:_0x4d23d8}of _0x455946)this['markAttributeChange'](_0xa4c7dc,_0x2d2d2d,_0x55d4b5,_0x4d23d8,{'groupId':_0x46ada9});this['_reduceExistingSuggestions'](_0x392969,_0x455946);});},{'priority':'lowest'}),_0x3d7f99['model']['markers']['on']('update:suggestion',(_0x3cd057,_0x240443,_0x5117ca)=>{if(null==_0x5117ca){const {id:_0x295595}=this['_splitMarkerName'](_0x240443['name']),_0x4e2e5a=this['_suggestions']['get'](_0x295595);_0x4e2e5a&&_0x4e2e5a['addMarkerName'](_0x240443['name']);}}),_0x3d7f99['model']['document']['on']('change:data',()=>{const _0x2fefcf=Array['from'](_0x3d7f99['model']['document']['differ']['getChangedMarkers']())['filter'](_0x4b00de=>'suggestion'===this['_splitMarkerName'](_0x4b00de['name'])['group']);if(0x0===_0x2fefcf['length'])return;_0x2fefcf['sort']((_0x703390,_0x249b50)=>{const _0x527c24=_0x703390['data']['oldRange'],_0x26643b=_0x249b50['data']['oldRange'];return null===_0x527c24&&null===_0x26643b?0x0:null===_0x527c24&&null!==_0x26643b?-0x1:null!==_0x527c24&&null===_0x26643b?0x1:_0x527c24['start']['isBefore'](_0x26643b['start'])?-0x1:0x1;});const _0x2272e4=new Set(),_0x409722=new Set();for(const {name:_0x354727,data:_0x2bf32d}of _0x2fefcf){const {id:_0x3c6c5e}=this['_splitMarkerName'](_0x354727);if(null===_0x2bf32d['oldRange']){const _0x3fe44d=this['_handleNewSuggestionMarker'](_0x354727);_0x409722['add'](_0x3fe44d);}else{const _0x59c15e=this['_suggestions']['get'](_0x3c6c5e);null!==_0x2bf32d['newRange']||_0x59c15e['isInContent']?(_0x2272e4['add'](_0x59c15e['head']),_0x409722['add'](_0x59c15e)):this['_removeSuggestion'](_0x59c15e);}}_0x409722['size']>0x0&&this['_refreshSuggestionsChain'](_0x409722);for(const _0x589bb9 of _0x2272e4)this['fire']('suggestionChanged',_0x589bb9);}),_0x3d7f99['model']['on']('applyOperation',(_0x2dfbff,_0xd213be)=>{const _0x14c843=_0xd213be[0x0];if(!this['_suggestions']['size'])return;if(!_0x14c843['isDocumentOperation'])return;if(_0x14c843['batch']['isUndo']||!_0x14c843['batch']['isLocal'])return;let _0x2d5717,_0x262083;switch(_0x14c843['type']){case'insert':_0x2d5717=_0x3d7f99['model']['createPositionAt'](_0x14c843['position']),_0x262083=_0x2d5717['getShiftedBy'](_0x14c843['howMany']);break;case'split':_0x2d5717=_0x3d7f99['model']['createPositionAt'](_0x14c843['splitPosition']),_0x262083=_0x3d7f99['model']['createPositionAt'](_0x14c843['moveTargetPosition']);break;case'move':_0x2d5717=_0x3d7f99['model']['createPositionAt'](_0x14c843['targetPosition']),_0x262083=_0x2d5717['getShiftedBy'](_0x14c843['howMany']);break;default:return;}const _0xccd9ad=_0x3d7f99['model']['createRange'](_0x2d5717,_0x262083);_0x3d7f99['model']['change'](()=>{for(const {suggestion:_0x2c203a,meta:_0x4958c8}of this['_findSuggestions'](_0xccd9ad)){if(_0x2c203a['isMultiRange'])continue;if('formatInline'==_0x2c203a['type'])continue;const _0xfa9c48=this['_getAttributeKey'](_0x2c203a);if(_0xfa9c48&&this['_isBlockAttribute'](_0xfa9c48)&&'split'!=_0x14c843['type'])continue;const _0x55f1c0=_0x2c203a['data']&&_0x2c203a['data']['multipleBlocks'];('formatBlock'!=_0x2c203a['type']||'split'==_0x14c843['type']&&!_0x55f1c0)&&(_0x4958c8['containsRangeInObject']||'insertion'==_0x2c203a['type']&&_0x4958c8['isOwn']||_0x2c203a['getFirstRange']()['containsRange'](_0xccd9ad)&&this['_breakSuggestionMarker'](_0x2c203a,_0x2d5717,_0x262083));}});},{'priority':'lowest'}),_0x3d7f99['model']['on']('deleteContent',(_0x5c51df,_0x560fcb)=>{const _0x62afa0=_0x560fcb[0x0],_0x597419=_0x560fcb[0x1];if(_0x597419&&_0x597419['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x62afa0['isCollapsed'])return;const _0x48150d=_0x3d7f99['model']['schema'],{start:_0x4b525e,end:_0x1e5752}=_0x62afa0['getFirstRange'](),_0xe60bc7=_0x4b525e['nodeAfter']&&_0x48150d['isLimit'](_0x4b525e['nodeAfter'])?null:_0x48150d['getNearestSelectionRange'](_0x4b525e,'forward'),_0x33d42b=_0x1e5752['nodeBefore']&&_0x48150d['isLimit'](_0x1e5752['nodeBefore'])?null:_0x48150d['getNearestSelectionRange'](_0x1e5752,'backward'),_0x346c69=_0x3d7f99['model']['createRange'](_0xe60bc7?_0xe60bc7['start']:_0x4b525e,_0x33d42b?_0x33d42b['end']:_0x1e5752);_0x3d7f99['model']['change'](_0x3bad55=>{this['markDeletion'](_0x346c69);const _0x42977e=_0x3d7f99['model']['schema']['getNearestSelectionRange'](_0x346c69['start']);_0x62afa0['is']('documentSelection')?_0x3bad55['setSelection'](_0x42977e):_0x62afa0['setTo'](_0x42977e);}),_0x5c51df['stop']();},{'priority':_0x185083['normal']+0xa}),_0x3d7f99['model']['on']('insertContent',(_0x5dfc7e,_0x3e86b9)=>{const _0x875ef0=_0x3e86b9[_0x3e86b9['length']-0x1];_0x875ef0&&_0x875ef0['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x3d7f99['model']['change'](()=>{let _0x5db55e=_0x3d7f99['model']['insertContent'](_0x3e86b9[0x0],_0x3e86b9[0x1],_0x3e86b9[0x2],{'forceDefaultExecution':!0x0});if(!_0x5db55e)return;_0x5dfc7e['return']=_0x5db55e['clone']();const _0xa69cbc=_0x5db55e['end']['nodeBefore'],_0x5710fc=_0x3d7f99['model']['schema'];_0xa69cbc&&_0x5710fc['isBlock'](_0xa69cbc)&&!_0x5710fc['isObject'](_0xa69cbc)&&(_0x5db55e=_0x3d7f99['model']['createRange'](_0x5db55e['start'],_0x3d7f99['model']['createPositionAt'](_0xa69cbc,'end'))),this['markInsertion'](_0x5db55e);}),_0x5dfc7e['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x28a2e1=new O(_0x3d7f99,this['_suggestions']);_0x3d7f99['commands']['add']('acceptSuggestion',_0x28a2e1),this['enableCommand']('acceptSuggestion');const _0x558e2e=new R(_0x3d7f99,this['_suggestions']);_0x3d7f99['commands']['add']('discardSuggestion',_0x558e2e),this['enableCommand']('discardSuggestion'),_0x3d7f99['commands']['add']('acceptAllSuggestions',new x(_0x3d7f99,_0x28a2e1,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x3d7f99['commands']['add']('discardAllSuggestions',new x(_0x3d7f99,_0x558e2e,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x3d7f99['commands']['add']('acceptSelectedSuggestions',new E(_0x3d7f99,_0x28a2e1,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x3d7f99['commands']['add']('discardSelectedSuggestions',new E(_0x3d7f99,_0x558e2e,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x45f68b=_0x3d7f99['plugins']['get']('CommentsRepository');this['listenTo'](_0x45f68b,'addComment',(_0x124097,{threadId:_0x1616f0})=>{const _0x219032=this['_suggestions']['get'](_0x1616f0);_0x219032&&_0x219032['commentThread']&&0x1===_0x219032['commentThread']['length']&&this['_updateSuggestionData'](_0x1616f0,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x45f68b,'removeComment',(_0x5da8d0,{threadId:_0x4d1274})=>{const _0x4f57e9=this['_suggestions']['get'](_0x4d1274);_0x4f57e9&&_0x4f57e9['commentThread']&&!_0x4f57e9['commentThread']['length']&&this['_updateSuggestionData'](_0x4d1274,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x10ca98){const _0x16b843=_0x580041([0x71,0x74,0x6b,0x69,0x49,0x62,0x59,0x6e,0x36,0x75,0x58,0x4f,0x57,0x6c,0x76,0x6d,0x50,0x4a,0x6f,0x42,0x4e,0x38,0x55,0x56,0x43,0x6a,0x67,0x45,0x53,0x33,0x35,0x51,0x54,0x4b,0x47,0x64,0x66,0x52,0x61,0x30,0x73,0x48,0x44,0x4c,0x37,0x5a,0x32,0x46,0x65,0x78,0x4d,0x39,0x41,0x72,0x79,0x7a,0x70,0x34,0x31,0x63,0x77,0x68]),_0x136a7a=0x5f6c9b63,_0x56bd67=0x5f6bc453^_0x136a7a,_0x219985=window[_0x580041([0x44,0x61,0x74,0x65])][_0x580041([0x6e,0x6f,0x77])](),_0x23ced6=_0x10ca98[_0x580041([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x50d873=new window[(_0x580041([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x12f0a1=>{_0x23ced6[_0x580041([0x6f,0x6e,0x63,0x65])](_0x580041([0x72,0x65,0x61,0x64,0x79]),_0x12f0a1);}),_0x218cca={[_0x580041([0x6b,0x74,0x79])]:_0x580041([0x45,0x43]),[_0x580041([0x75,0x73,0x65])]:_0x580041([0x73,0x69,0x67]),[_0x580041([0x63,0x72,0x76])]:_0x580041([0x50,0x2d,0x32,0x35,0x36]),[_0x580041([0x78])]:_0x580041([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x580041([0x79])]:_0x580041([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x580041([0x61,0x6c,0x67])]:_0x580041([0x45,0x53,0x32,0x35,0x36])},_0xfe98a=_0x23ced6[_0x580041([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x580041([0x67,0x65,0x74])](_0x580041([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2eb091(){let _0x51b1e8,_0x3cbfe1=null,_0x3297aa=null;try{if(_0xfe98a==_0x580041([0x47,0x50,0x4c]))return _0x580041([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x51b1e8=_0x569141(),!_0x51b1e8)return _0x580041([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x51b1e8[_0x580041([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3297aa=_0x105da2(_0x51b1e8[_0x580041([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x51b1e8[_0x580041([0x6a,0x74,0x69])])),await _0x297786()?_0x1830cc()?_0x59b4ea()?_0x580041([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4c220d()?(_0x51b1e8[_0x580041([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x580041([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3cbfe1=_0x143192(_0x580041([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x51b1e8[_0x580041([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x580041([0x74,0x72,0x69,0x61,0x6c])&&(_0x3cbfe1=_0x143192(_0x580041([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x283776()):_0x580041([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x580041([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x580041([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x106df9){return _0x580041([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x59b4ea(){const _0x5469b5=[_0x580041([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x580041([0x74,0x72,0x69,0x61,0x6c])][_0x580041([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51b1e8[_0x580041([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x219985/0x3e8:0xe10*_0x56bd67;return _0x51b1e8[_0x580041([0x65,0x78,0x70])]<_0x5469b5;}function _0x1830cc(){const _0x246104=_0x51b1e8[_0x580041([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x246104)return!0x1;if(_0x246104[_0x580041([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x580041([0x2a])))return!0x0;if(_0x246104[_0x580041([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x580041([0x54,0x43])))return!0x0;if(_0x246104[_0x580041([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x580041([0x52,0x54,0x43]))){if(_0x5ad90a())return!0x0;if(_0x1ba012()||_0x3154a6())return!0x0;}return!0x1;}function _0x4c220d(){const _0x4e3ee6=_0x51b1e8[_0x580041([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4e3ee6||0x0==_0x4e3ee6[_0x580041([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x906caf}=new URL(window[_0x580041([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4e3ee6[_0x580041([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x906caf))return!0x0;const _0x4f44e5=_0x906caf[_0x580041([0x73,0x70,0x6c,0x69,0x74])](_0x580041([0x2e]));return _0x4e3ee6[_0x580041([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x7e0a6e=>_0x7e0a6e[_0x580041([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x580041([0x2a])))[_0x580041([0x6d,0x61,0x70])](_0x238112=>_0x238112[_0x580041([0x73,0x70,0x6c,0x69,0x74])](_0x580041([0x2e])))[_0x580041([0x73,0x6f,0x6d,0x65])](_0x10db8b=>_0x4f44e5[_0x580041([0x65,0x76,0x65,0x72,0x79])]((_0x315d82,_0x3e13c8)=>_0x10db8b[_0x3e13c8]===_0x315d82||_0x10db8b[_0x3e13c8]===_0x580041([0x2a])));}function _0x283776(){return _0x3cbfe1&&_0x3297aa?new window[(_0x580041([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3b7134,_0x2571b7)=>{_0x3cbfe1[_0x580041([0x74,0x68,0x65,0x6e])](_0x3b7134,_0x2571b7),_0x3297aa[_0x580041([0x74,0x68,0x65,0x6e])](_0x515a5b=>{_0x515a5b!=_0x580041([0x56,0x61,0x6c,0x69,0x64])&&_0x3b7134(_0x515a5b);},_0x2571b7);}):_0x3cbfe1||_0x3297aa||_0x580041([0x56,0x61,0x6c,0x69,0x64]);}}function _0x105da2(_0x322212,_0x4cf4c7){return new window[(_0x580041([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ce99a=>{if(_0x3a0bfe())return _0x3ce99a(_0x580041([0x56,0x61,0x6c,0x69,0x64]));_0x269d56(),_0x23ced6[_0x580041([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x580041([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x39a1ac=!0x1;const _0x33cb47=_0x5a1697();function _0x410c72(_0x33759a){return!!_0x33759a&&(typeof _0x33759a===_0x580041([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x33759a===_0x580041([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x33759a[_0x580041([0x74,0x68,0x65,0x6e])]===_0x580041([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x33759a[_0x580041([0x63,0x61,0x74,0x63,0x68])]===_0x580041([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xfef108(_0x5207c3){_0x2a97c5(_0x5207c3)[_0x580041([0x74,0x68,0x65,0x6e])](_0x3bce1b=>{if(!_0x3bce1b||_0x3bce1b[_0x580041([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x580041([0x6f,0x6b]))return _0x580041([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x485401(_0x4c6fd8(_0x33cb47+_0x4cf4c7))!=_0x3bce1b[_0x580041([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x580041([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x580041([0x56,0x61,0x6c,0x69,0x64]);})[_0x580041([0x74,0x68,0x65,0x6e])](_0x268979=>(_0x1aa478(),_0x268979),()=>{const _0x43971c=_0x48d9d7();return null==_0x43971c?(_0x1aa478(),_0x580041([0x56,0x61,0x6c,0x69,0x64])):_0x580041(_0x219985-_0x43971c>(0x7b601f63^_0x136a7a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x580041([0x74,0x68,0x65,0x6e])](_0x3ce99a)[_0x580041([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3ce99a(_0x580041([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4a21a4=0x5f5a75e3^_0x136a7a;function _0x1aa478(){const _0x77072d=_0x580041([0x6c,0x6c,0x63,0x74,0x2d])+_0x485401(_0x4c6fd8(_0x322212)),_0x448a7f=_0x23729b(_0x485401(window[_0x580041([0x4d,0x61,0x74,0x68])][_0x580041([0x63,0x65,0x69,0x6c])](_0x219985/_0x4a21a4)));window[_0x580041([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x580041([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x77072d,_0x448a7f);}function _0x48d9d7(){const _0x121b4b=_0x580041([0x6c,0x6c,0x63,0x74,0x2d])+_0x485401(_0x4c6fd8(_0x322212)),_0x3418af=window[_0x580041([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x580041([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x121b4b);return _0x3418af?window[_0x580041([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x23729b(_0x3418af),0x10)*_0x4a21a4:null;}function _0x2a97c5(_0x52498d){return new window[(_0x580041([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x253fbd,_0x4fc45d)=>{_0x52498d[_0x580041([0x74,0x68,0x65,0x6e])](_0x253fbd,_0x4fc45d),window[_0x580041([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4fc45d,0x5f6d4fa3^_0x136a7a);});}}_0x23ced6[_0x580041([0x6f,0x6e])](_0x580041([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x562a04,_0x2fa091)=>{if(_0x2fa091[0x0]!=_0x322212)return _0x3ce99a(_0x580041([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2fa091[0x1]={..._0x2fa091[0x1],[_0x580041([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x33cb47};},{[_0x580041([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x580041([0x68,0x69,0x67,0x68])}),_0x23ced6[_0x580041([0x6f,0x6e])](_0x580041([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x38bbd5=>{_0x410c72(_0x38bbd5[_0x580041([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x39a1ac=!0x0,_0xfef108(_0x38bbd5[_0x580041([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x580041([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x580041([0x6c,0x6f,0x77])}),_0x50d873[_0x580041([0x74,0x68,0x65,0x6e])](()=>{_0x39a1ac||_0x3ce99a(_0x580041([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3a0bfe(){return _0x23ced6[_0x580041([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x580041([0x76,0x69,0x65,0x77])][_0x580041([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x580041([0x61,0x75,0x74,0x6f]);}function _0x269d56(){_0x23ced6[_0x580041([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x580041([0x76,0x69,0x65,0x77])][_0x580041([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x580041([0x61,0x75,0x74,0x6f]);}}function _0x143192(_0x219601){const _0x5e9758=[new window[(_0x580041([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c6b18=>setTimeout(_0x1c6b18,0x5f65a5af^_0x136a7a)),_0x50d873[_0x580041([0x74,0x68,0x65,0x6e])](()=>new window[(_0x580041([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a10cf=>{let _0x562939=0x0;_0x23ced6[_0x580041([0x6d,0x6f,0x64,0x65,0x6c])][_0x580041([0x6f,0x6e])](_0x580041([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x51707e,_0x21777a)=>{_0x21777a[0x0][_0x580041([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x562939++,_0x562939==(0x5f6c9a9b^_0x136a7a)&&(_0x4a10cf(),_0x51707e[_0x580041([0x6f,0x66,0x66])]());});}))];return window[_0x580041([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x580041([0x72,0x61,0x63,0x65])](_0x5e9758)[_0x580041([0x74,0x68,0x65,0x6e])](()=>_0x219601);}async function _0x3ef7ca(){await _0x50d873,_0x23ced6[_0x580041([0x6d,0x6f,0x64,0x65,0x6c])][_0x580041([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x33a2d0,_0x23ced6[_0x580041([0x6d,0x6f,0x64,0x65,0x6c])][_0x580041([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x33a2d0,_0x23ced6[_0x580041([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x580041([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5ad90a(){return _0x97a73b(_0x580041([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2cfbf6(_0x580041([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x580041([0x73,0x74,0x61,0x74,0x65])]==_0x580041([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1ba012(){return _0x97a73b(_0x580041([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x3154a6(){return _0x97a73b(_0x580041([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x184cb1(_0x1b5e97){const _0x107d62=_0x28248a();_0x23ced6[_0x107d62]=_0x580041([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1b5e97,_0x1b5e97!=_0x580041([0x56,0x61,0x6c,0x69,0x64])&&_0x3ef7ca();}function _0x28248a(){const _0x1f94bc=window[_0x580041([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x580041([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x580041([0x6e,0x6f,0x77])]())[_0x580041([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x580041([0x2e]),'');let _0x1ec554=_0x580041([0x71]);for(let _0x548cb7=0x0;_0x548cb7<_0x1f94bc[_0x580041([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x548cb7+=0x2){let _0x23cee3=window[_0x580041([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1f94bc[_0x580041([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x548cb7,_0x548cb7+0x2));_0x23cee3>=_0x16b843[_0x580041([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x23cee3-=_0x16b843[_0x580041([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1ec554+=_0x16b843[_0x23cee3];}return _0x1ec554;}function _0x569141(){const _0x516240=_0xfe98a[_0x580041([0x73,0x70,0x6c,0x69,0x74])](_0x580041([0x2e]));if(0x3!=_0x516240[_0x580041([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x43ff84(_0x516240[0x1]);function _0x43ff84(_0x1a5a15){const _0x58e2b5=_0xa88e7f(_0x1a5a15);return _0x58e2b5&&_0x3882c8()?_0x58e2b5:null;function _0x3882c8(){const _0x2b3122=_0x58e2b5[_0x580041([0x6a,0x74,0x69])],_0xb9c1fe=window[_0x580041([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2b3122[_0x580041([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2b3122[_0x580041([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x436edc={..._0x58e2b5,[_0x580041([0x6a,0x74,0x69])]:_0x2b3122[_0x580041([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2b3122[_0x580041([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x436edc[_0x580041([0x76,0x63])],_0x4c6fd8(_0x436edc)==_0xb9c1fe;}}}async function _0x297786(){let _0x4c88a1=!0x0;try{const _0x6f04a5=_0xfe98a[_0x580041([0x73,0x70,0x6c,0x69,0x74])](_0x580041([0x2e])),[_0x54d864,_0x5f4874,_0x2493eb]=_0x6f04a5;return _0x1e0bf8(_0x54d864),await _0x44600e(_0x54d864,_0x5f4874,_0x2493eb),_0x4c88a1;}catch(_0x46289b){return!0x1;}function _0x1e0bf8(_0xf379bd){const _0x4061e8=_0xa88e7f(_0xf379bd);_0x4061e8&&_0x4061e8[_0x580041([0x61,0x6c,0x67])]==_0x580041([0x45,0x53,0x32,0x35,0x36])||(_0x4c88a1=!0x1);}async function _0x44600e(_0xc1c46f,_0x1d3d92,_0x144cb4){const _0xd0fc66=window[_0x580041([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x580041([0x66,0x72,0x6f,0x6d])](_0x4ed6fe(_0x144cb4),_0x24c1cb=>_0x24c1cb[_0x580041([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5d3678=new window[(_0x580041([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x580041([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xc1c46f+_0x580041([0x2e])+_0x1d3d92),_0x7e2258=window[_0x580041([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x580041([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x7e2258)return;const _0x426be6=await _0x7e2258[_0x580041([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x580041([0x6a,0x77,0x6b]),_0x218cca,{[_0x580041([0x6e,0x61,0x6d,0x65])]:_0x580041([0x45,0x43,0x44,0x53,0x41]),[_0x580041([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x580041([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x580041([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x7e2258[_0x580041([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x580041([0x6e,0x61,0x6d,0x65])]:_0x580041([0x45,0x43,0x44,0x53,0x41]),[_0x580041([0x68,0x61,0x73,0x68])]:{[_0x580041([0x6e,0x61,0x6d,0x65])]:_0x580041([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x426be6,_0xd0fc66,_0x5d3678)||(_0x4c88a1=!0x1);}}function _0xa88e7f(_0xe45b7e){return _0xe45b7e[_0x580041([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x580041([0x65,0x79]))?JSON[_0x580041([0x70,0x61,0x72,0x73,0x65])](_0x4ed6fe(_0xe45b7e)):null;}function _0x4ed6fe(_0x50aba0){return window[_0x580041([0x61,0x74,0x6f,0x62])](_0x50aba0[_0x580041([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x580041([0x2b]))[_0x580041([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x580041([0x2f])));}function _0x4c6fd8(_0x4318da){let _0x42c4d0=0x1505;function _0x4eeaa6(_0x26b1e0){for(let _0x40aae6=0x0;_0x40aae6<_0x26b1e0[_0x580041([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x40aae6++){const _0x2be45c=_0x26b1e0[_0x580041([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x40aae6);_0x42c4d0=(_0x42c4d0<<0x5)+_0x42c4d0+_0x2be45c,_0x42c4d0&=_0x42c4d0;}}function _0x5734d3(_0x256c2f){Array[_0x580041([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x256c2f)?_0x256c2f[_0x580041([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5734d3):_0x256c2f&&typeof _0x256c2f==_0x580041([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x580041([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x256c2f)[_0x580041([0x73,0x6f,0x72,0x74])]()[_0x580041([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1f1959,_0x5de213])=>{_0x4eeaa6(_0x1f1959),_0x5734d3(_0x5de213);}):_0x4eeaa6(window[_0x580041([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x256c2f));}return _0x5734d3(_0x4318da),_0x42c4d0>>>0x0;}function _0x485401(_0x435b01){return _0x435b01[_0x580041([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x580041([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x580041([0x30]));}function _0x23729b(_0x5c2038){return _0x5c2038[_0x580041([0x73,0x70,0x6c,0x69,0x74])]('')[_0x580041([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x580041([0x6a,0x6f,0x69,0x6e])]('');}function _0x97a73b(_0x35b99d){return _0x23ced6[_0x580041([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x580041([0x68,0x61,0x73])](_0x35b99d);}function _0x2cfbf6(_0x1a0fd2){return _0x23ced6[_0x580041([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x580041([0x67,0x65,0x74])](_0x1a0fd2);}function _0x33a2d0(){}function _0x580041(_0x565706){return _0x565706['map'](_0x6fac4=>String['fromCharCode'](_0x6fac4))['join']('');}_0x184cb1(await _0x2eb091());}(this);}set['adapter'](_0x5ef186){if(this['_adapter'])throw new _0x2ff27c('track-changes-adapter-already-set',this);this['_adapter']=_0x5ef186;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1b65e4=!0x1,toJSON:_0x233fea=!0x1}={}){const _0x516a26=[];for(const _0x1bff06 of this['_suggestions']['values']())_0x1b65e4&&!_0x1bff06['isInContent']||_0x516a26['push'](_0x1bff06);return _0x233fea?_0x516a26['map'](_0xca4759=>_0xca4759['toJSON']()):_0x516a26;}['getSuggestion'](_0x4d1a79){const _0x3cf8bc=this['_suggestions']['get'](_0x4d1a79);if(!_0x3cf8bc)throw new _0x2ff27c('track-changes-suggestion-not-found',this);return _0x3cf8bc;}['hasSuggestion'](_0x268da4){return this['_suggestions']['has'](_0x268da4);}['addSuggestionData'](_0xcdd512){const {authorId:_0x3f4f16,id:_0x186f80,attributes:_0xb4737c}=_0xcdd512,[_0x4aa197,_0x36f721]=_0xcdd512['type']['split'](':'),_0x7ae68b=this['_suggestions']['get'](_0x186f80)||this['_createSuggestion'](_0x4aa197,_0x36f721,_0x186f80,_0x3f4f16,_0xb4737c);if(this['_addThreadToSuggestion'](_0x7ae68b),this['_checkSuggestionCorrectness'](_0x7ae68b,_0x4aa197,_0x36f721||null,_0x3f4f16),_0x7ae68b['createdAt']=_0xcdd512['createdAt'],_0x7ae68b['_isDataLoaded']=!0x0,_0xb4737c&&_0xb4737c['@external']){const _0x3febbe=_0xb4737c['@external'],_0x4e4bfb=this['_getExternalAuthor'](_0x3febbe['authorName']);_0x7ae68b['authoredAt']=_0x3febbe['createdAt'],_0x7ae68b['author']=_0x4e4bfb,_0x7ae68b['isExternal']=!0x0;}else _0x7ae68b['authoredAt']=_0xcdd512['createdAt'];switch(_0xcdd512['data']&&(_0x7ae68b['data']=_0xcdd512['data']),_0xcdd512['attributes']&&(_0x7ae68b['attributes']=_0xcdd512['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x7ae68b['_saved']=!0x0),this['_suggestionState']['get'](_0x7ae68b)){case'notReady':this['_suggestionState']['set'](_0x7ae68b,'dataReady');break;case'markerReady':_0x7ae68b['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x7ae68b])),this['_refreshSuggestionsChain'](new Set([_0x7ae68b])),this['_suggestionState']['set'](_0x7ae68b,'ready'),this['fire']('suggestionLoaded',_0x7ae68b)):this['_suggestionState']['set'](_0x7ae68b,'removed');}return _0x7ae68b;}['acceptSuggestion'](_0xdc24f4){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x65b62e of _0xdc24f4['getAllAdjacentSuggestions']())_0x65b62e['accept']();});});}['discardSuggestion'](_0x444314){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x54fd68 of _0x444314['getAllAdjacentSuggestions']())_0x54fd68['discard']();});});}['enableCommand'](_0x562ed0,_0x395be3){const _0x57e687=this['editor']['commands']['get'](_0x562ed0);if(!_0x57e687)throw new _0x2ff27c('track-changes-command-not-found',this,{'commandName':_0x562ed0});if(this['_enabledCommands']['has'](_0x57e687))throw new _0x2ff27c('track-changes-enable-command-twice',this,{'commandName':_0x562ed0});this['_enabledCommands']['add'](_0x57e687),_0x395be3&&_0x57e687['on']('execute',(_0x9e4e04,_0x16701c)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x16701c['length']>0x0&&_0x16701c[_0x16701c['length']-0x1]&&_0x16701c[_0x16701c['length']-0x1]['forceDefaultExecution']?_0x16701c['pop']():(_0x9e4e04['return']=_0x395be3((..._0x53f670)=>_0x57e687['execute'](..._0x53f670,{'forceDefaultExecution':!0x0}),..._0x16701c),_0x9e4e04['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5c6d60){let _0x575555,_0x3ee478;const _0x3c4caf=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x575555=_0x5c6d60();}catch(_0x5dd4a4){_0x3ee478=_0x5dd4a4;}return _0x3c4caf||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3ee478&&_0x2ff27c['rethrowUnexpectedError'](_0x3ee478,this),_0x575555;}['markInsertion'](_0x2f2376,_0x170c2c=null,_0x578a01={}){if(_0x2f2376['isCollapsed'])return null;const _0x223dbf=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x3063c6,meta:_0x58d98e}of this['_findSuggestions'](_0x2f2376,'insertion'))if(_0x58d98e['isOwn']){if(!_0x58d98e['isNextTo']){if(_0x58d98e['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0x3063c6,_0x578a01))continue;return _0x3063c6;}if(zt(_0x3063c6,_0x578a01))return _0x3063c6;this['_breakSuggestionMarker'](_0x3063c6,_0x2f2376['start'],_0x2f2376['end']);break;}if(_0x170c2c==_0x3063c6['subType']&&zt(_0x3063c6,_0x578a01)){const _0x15bffc=_0x3063c6['getFirstRange']();return _0x15bffc['start']['isEqual'](_0x2f2376['end'])?this['_setSuggestionRange'](_0x3063c6,this['_model']['createRange'](_0x2f2376['start'],_0x15bffc['end'])):this['_setSuggestionRange'](_0x3063c6,this['_model']['createRange'](_0x15bffc['start'],_0x2f2376['end'])),_0x3063c6;}}const _0x4b3a4e=_0x5a1697(),_0x19b64f=_0x223dbf['id'],_0x31ee18=_0x170c2c?'insertion:'+_0x170c2c:'insertion',_0x48399e=this['_setSuggestionData']({'id':_0x4b3a4e,'type':_0x31ee18,'createdAt':new Date(),'authorId':_0x19b64f,'attributes':_0x578a01});return this['_addSuggestionMarker'](_0x31ee18,_0x4b3a4e,_0x19b64f,_0x2f2376),_0x48399e;}['markMultiRangeInsertion'](_0x5df807,_0x4b595d='multi',_0x1519c9={}){const _0x366a1=this['editor']['plugins']['get']('Users')['me'],_0x208e34=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x4b595d,'join');for(const _0x5e2e93 of this['getSuggestions']())if(_0x5e2e93['author']['id']==_0x366a1['id']&&'insertion'==_0x5e2e93['type']&&_0x5e2e93['subType']==_0x4b595d&&zt(_0x5e2e93,_0x1519c9)&&(_0x208e34(_0x5e2e93['getRanges'](),_0x5df807)||_0x208e34(_0x5df807,_0x5e2e93['getRanges']()))){for(const _0x563906 of _0x5df807)_0x5e2e93['addRange'](_0x563906);return _0x5e2e93;}for(const {suggestion:_0x27d7ab,meta:_0x56b09b}of this['_findSuggestions'](_0x5df807,'insertion')){if(!_0x56b09b['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x56b09b['containsRangeInObject'])continue;if(!zt(_0x27d7ab,_0x1519c9))continue;let _0x5ba6b1=!0x0;for(const _0x3059a6 of _0x27d7ab['getRanges']())for(const _0x11554d of _0x5df807)if(!_0x3059a6['containsRange'](_0x11554d)){_0x5ba6b1=!0x1;break;}if(_0x5ba6b1)return _0x27d7ab;}const _0x48c0bf=_0x5a1697(),_0x29a0e3=_0x366a1['id'],_0xffffd3='insertion:'+_0x4b595d,_0x277795=this['_setSuggestionData']({'id':_0x48c0bf,'type':_0xffffd3,'createdAt':new Date(),'authorId':_0x29a0e3,'attributes':_0x1519c9});for(const _0x3010e2 of _0x5df807)this['_addSuggestionMarker'](_0xffffd3,_0x48c0bf,_0x29a0e3,_0x3010e2,o['getMultiRangeId']());return _0x277795;}['markInlineFormat'](_0x4384e5,_0x30a346,_0x3c2a76=null,_0x219f76={}){if(_0x3c2a76=_0x3c2a76||Gt(_0x30a346),_0x4384e5['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x19f129=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3c2a76,'accept');return this['forceDefaultExecution'](()=>_0x19f129([_0x4384e5],_0x30a346,_0x219f76)),null;}const _0x3ef038=this['editor']['plugins']['get']('Users')['me'],_0x585fb7=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x13d60b,meta:_0x57c611}of this['_findSuggestions'](_0x4384e5,'insertion'))_0x57c611['isOwn']&&!_0x57c611['isInsideObject']&&_0x585fb7['push'](..._0x13d60b['getRanges']());}const _0x3284eb=function(_0x5c13d3,_0x2f4264){const _0x4841db=[];for(const _0x35cb93 of _0x2f4264){const _0x30a523=_0x5c13d3['getIntersection'](_0x35cb93);_0x30a523&&_0x4841db['push'](_0x30a523);}return _0x4841db;}(_0x4384e5,_0x585fb7),_0xbb46f3=function(_0x576219,_0x740b47){const _0x1e3967=[_0x576219];for(const _0x5af563 of _0x740b47){let _0xcb7b29=0x0;for(;_0xcb7b29<_0x1e3967['length'];){const _0x592931=_0x1e3967[_0xcb7b29]['getDifference'](_0x5af563);_0x1e3967['splice'](_0xcb7b29,0x1,..._0x592931),_0xcb7b29+=_0x592931['length'];}}return _0x1e3967;}(_0x4384e5,_0x585fb7);_0x3284eb['length']&&this['_model']['change'](()=>{for(const _0x4c18f4 of _0x3284eb){const _0x6abef9=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3c2a76,'accept');this['forceDefaultExecution'](()=>_0x6abef9([_0x4c18f4],_0x30a346,_0x219f76));}});for(const _0x36a339 of _0xbb46f3){let _0x1601b9=null,_0x49c22a=_0x36a339['start'],_0x1b9913=_0x36a339['end'];for(const {suggestion:_0x414397,meta:_0x43c4ad}of this['_findSuggestions'](_0x36a339,'formatInline')){if(!_0x43c4ad['isOwn'])continue;if(_0x414397['subType']!=_0x3c2a76)continue;if(!zt(_0x414397,_0x219f76))continue;const _0x56bfca=_0x414397['getFirstRange']();if(_0x56bfca['containsRange'](_0x36a339,!0x0))return null;_0x49c22a=_0x49c22a['isBefore'](_0x56bfca['start'])?_0x49c22a:_0x56bfca['start'],_0x1b9913=_0x1b9913['isAfter'](_0x56bfca['end'])?_0x1b9913:_0x56bfca['end'],_0x1601b9?_0x56bfca['start']['isBefore'](_0x1601b9['getFirstRange']()['start'])?(_0x1601b9['removeMarkers'](),_0x1601b9=_0x414397):_0x414397['removeMarkers']():_0x1601b9=_0x414397;}const _0x59ca4a=this['_model']['createRange'](_0x49c22a,_0x1b9913);if(_0x1601b9)this['_setSuggestionRange'](_0x1601b9,_0x59ca4a);else{const _0x1c9cb3=_0x5a1697(),_0x37aa23=_0x3ef038['id'];this['_setSuggestionData']({'id':_0x1c9cb3,'type':'formatInline:'+_0x3c2a76,'data':_0x30a346,'createdAt':new Date(),'authorId':_0x37aa23,'attributes':_0x219f76}),this['_addSuggestionMarker']('formatInline:'+_0x3c2a76,_0x1c9cb3,_0x37aa23,_0x59ca4a);}}return null;}['markBlockFormat'](_0x5592f3,_0x1259ed,_0xdcf9de=[],_0xaac276=null,_0x5128f2={}){_0x1259ed['formatGroupId']||(_0x1259ed['formatGroupId']=_0x1259ed['commandName']),_0x1259ed['multipleBlocks']=_0x5592f3['is']('range'),_0xaac276=_0xaac276||Gt(_0x1259ed);const _0x41c205=_0xdcf9de['map'](_0x346898=>Kt(_0x346898,this['_model'])),_0x28fbec=_0x5592f3['is']('range')?_0x5592f3:Kt(_0x5592f3,this['_model']);if('never'===this['_trackFormatChanges']){const _0x365e52=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xaac276,'accept');return this['forceDefaultExecution'](()=>_0x365e52([_0x28fbec],_0x1259ed,_0x5128f2)),null;}_0x41c205['push'](_0x28fbec);let _0x3cfe14=!0x0;for(const _0x178c25 of _0x41c205)if(!this['_rangeIsInLocalUserInsertion'](_0x178c25)){_0x3cfe14=!0x1;break;}if(_0x3cfe14&&'always'!==this['_trackFormatChanges']){const _0x7688d6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xaac276,'accept');return this['forceDefaultExecution'](()=>_0x7688d6([_0x28fbec],_0x1259ed,_0x5128f2)),null;}let _0x2c1f9b=null,_0x3fdd45=_0x28fbec['start'],_0x1f3902=_0x28fbec['end'];for(const {suggestion:_0x5ee764,meta:_0x40a52b}of this['_findSuggestions'](_0x28fbec,'formatBlock')){if(!_0x40a52b['isOwn'])continue;if(_0x40a52b['isNextTo']||_0x40a52b['containsRangeInObject']||_0x40a52b['isInsideObject'])continue;if(_0x5ee764['data']['formatGroupId']!=_0x1259ed['formatGroupId'])continue;if(!zt(_0x5ee764,_0x5128f2))continue;const _0x441642=_0x5ee764['getFirstRange']();if(_0x5ee764['subType']==_0xaac276){if(_0x441642['containsRange'](_0x28fbec,!0x0))return null;_0x3fdd45=_0x3fdd45['isBefore'](_0x441642['start'])?_0x3fdd45:_0x441642['start'],_0x1f3902=_0x1f3902['isAfter'](_0x441642['end'])?_0x1f3902:_0x441642['end'],_0x2c1f9b?_0x441642['start']['isBefore'](_0x2c1f9b['getFirstRange']()['start'])?(_0x2c1f9b['removeMarkers'](),_0x2c1f9b=_0x5ee764):_0x5ee764['removeMarkers']():_0x2c1f9b=_0x5ee764;}else{const _0x1c47c0=_0x28fbec['getIntersection'](_0x441642);this['_cutOutSuggestionMarker'](_0x5ee764,_0x1c47c0);}}const _0x66e859=this['editor']['plugins']['get']('Users')['me'],_0x242f72=_0x5a1697(),_0x583d72=_0x66e859['id'];if(_0x2c1f9b)return this['_setSuggestionRange'](_0x2c1f9b,this['_model']['createRange'](_0x3fdd45,_0x1f3902)),_0x2c1f9b;{const _0x2eba71=this['_setSuggestionData']({'id':_0x242f72,'type':'formatBlock:'+_0xaac276,'data':_0x1259ed,'createdAt':new Date(),'authorId':_0x583d72,'attributes':_0x5128f2});return this['_addSuggestionMarker']('formatBlock:'+_0xaac276,_0x242f72,_0x583d72,this['_model']['createRange'](_0x3fdd45,_0x1f3902)),_0x2eba71;}}['markMultiRangeBlockFormat'](_0x58ce5e,_0x3f90de,_0xad2297=[],_0x2467fc=null,_0x849f46={}){_0x3f90de['formatGroupId']||(_0x3f90de['formatGroupId']=_0x3f90de['commandName']);const _0x155b5f=_0x58ce5e[0x0];_0x3f90de['multipleBlocks']=_0x155b5f['is']('range'),_0x2467fc=_0x2467fc||Gt(_0x3f90de);const _0x157c32=_0xad2297['map'](_0x1ba5da=>Kt(_0x1ba5da,this['_model'])),_0x26eb04=_0x155b5f['is']('range')?_0x58ce5e:_0x58ce5e['map'](_0x432b81=>Kt(_0x432b81,this['_model']));if('never'===this['_trackFormatChanges']){const _0x38a678=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2467fc,'accept');return this['forceDefaultExecution'](()=>_0x38a678(_0x26eb04,_0x3f90de,_0x849f46)),null;}_0x157c32['push'](..._0x26eb04);let _0x2249d9=!0x0;for(const _0x56d8cd of _0x157c32)if(!this['_rangeIsInLocalUserInsertion'](_0x56d8cd)){_0x2249d9=!0x1;break;}if(_0x2249d9&&'always'!==this['_trackFormatChanges']){const _0x55579b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2467fc,'accept');return this['forceDefaultExecution'](()=>_0x55579b(_0x26eb04,_0x3f90de,_0x849f46)),null;}const _0x5b3e8e=this['editor']['plugins']['get']('Users')['me'];for(const _0x56b443 of this['getSuggestions']()){if(_0x56b443['author']['id']!=_0x5b3e8e['id'])continue;if('formatBlock'!=_0x56b443['type']||_0x56b443['data']['formatGroupId']!=_0x3f90de['formatGroupId'])continue;if(!zt(_0x56b443,_0x849f46))continue;const _0x4ea5bb=_0x56b443['subType']==_0x2467fc;for(let _0x182f01=0x0;_0x182f01<_0x26eb04['length'];_0x182f01++){const _0x3b1370=_0x26eb04[_0x182f01];for(const _0x17b7b8 of _0x56b443['getMarkers']()){const _0x5252ff=_0x17b7b8['getRange']();if(_0x3b1370['isEqual'](_0x5252ff)){_0x4ea5bb?(_0x26eb04['splice'](_0x182f01,0x1),_0x182f01--):_0x56b443['removeMarker'](_0x17b7b8['name']);break;}}}}if(0x0==_0x26eb04['length'])return null;const _0x16caf4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2467fc,'join');for(const _0x9c48fc of this['getSuggestions']())if(_0x9c48fc['author']['id']==_0x5b3e8e['id']&&'formatBlock'==_0x9c48fc['type']&&_0x9c48fc['data']['formatGroupId']==_0x3f90de['formatGroupId']&&_0x9c48fc['subType']==_0x2467fc&&zt(_0x9c48fc,_0x849f46)&&(_0x16caf4(_0x9c48fc['getRanges'](),_0x26eb04)||_0x16caf4(_0x26eb04,_0x9c48fc['getRanges']()))){for(const _0x2816a0 of _0x26eb04)_0x9c48fc['addRange'](_0x2816a0);return _0x9c48fc;}const _0x1bf025=_0x5a1697(),_0x537b53=_0x5b3e8e['id'],_0x1f7a94='formatBlock:'+_0x2467fc,_0x2cb840=this['_setSuggestionData']({'id':_0x1bf025,'type':_0x1f7a94,'data':_0x3f90de,'createdAt':new Date(),'authorId':_0x537b53,'attributes':_0x849f46});for(const _0x34e2fa of _0x26eb04)this['_addSuggestionMarker'](_0x1f7a94,_0x1bf025,_0x537b53,_0x34e2fa,o['getMultiRangeId']());return _0x2cb840;}['markDeletion'](_0x1e4869,_0xa5f3db=null,_0x38d9cd={}){if(_0x1e4869['isCollapsed'])return null;const _0x4bba01=this['editor']['plugins']['get']('Users')['me'],_0x38ce31=new _0x27b625(_0x1e4869['start'],_0x1e4869['end']);for(const {suggestion:_0x5cf5e1,meta:_0x559c70}of this['_findSuggestions'](_0x38ce31,'insertion'))if(_0x559c70['isOwn']&&!_0x559c70['isNextTo']){if(_0x5cf5e1['isMultiRange']){const _0x149da2=_0x5cf5e1['getRanges']()['filter'](_0x5829cf=>'$graveyard'!=_0x5829cf['root']['rootName']);_0x149da2['every'](_0x22c03f=>_0x38ce31['containsRange'](_0x22c03f,!0x0))&&_0x5cf5e1['discard']();if(_0x149da2['some'](_0x33859f=>_0x33859f['containsRange'](_0x38ce31,!0x0))){const _0x4dc7e2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xa5f3db,'accept');return this['forceDefaultExecution'](()=>_0x4dc7e2([_0x38ce31],null,_0x38d9cd)),null;}}else{const _0x530993=_0x38ce31['getIntersection'](_0x5cf5e1['getFirstRange']());null!==_0x530993&&_0x5cf5e1['_onDiscard']([_0x530993],null,_0x38d9cd);}}if(_0x38ce31['detach'](),_0x38ce31['isCollapsed']||'$graveyard'==_0x38ce31['root']['rootName'])return null;let _0x5830d6=null,_0x2ed904=_0x38ce31['start'],_0x4445bd=_0x38ce31['end'];const _0x202777=this['_findSuggestions'](_0x38ce31,'deletion');for(const {suggestion:_0x5ab93d,meta:_0x4ff084}of _0x202777){const _0x248c36=this['_model']['createRange'](_0x2ed904,_0x4445bd);if(_0x4ff084['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4ff084['containsRangeInObject']&&!_0x4ff084['isInsideObject'])){if(_0x5ab93d['isMultiRange']){if(!zt(_0x5ab93d,_0x38d9cd))continue;let _0x39e433=!0x0;for(const _0x2bd83c of _0x5ab93d['getRanges']()){if(_0x2bd83c['containsRange'](_0x248c36,!0x0))return _0x5ab93d;_0x248c36['containsRange'](_0x2bd83c)||(_0x39e433=!0x1);}_0x39e433&&_0x5ab93d['discard']();}else{const _0x5b8442=_0x5ab93d['getFirstRange']();if(_0x5b8442['containsRange'](_0x248c36,!0x0))return _0x5ab93d;if(!zt(_0x5ab93d,_0x38d9cd)){_0x248c36['containsRange'](_0x5b8442)?_0x5ab93d['removeMarkers']():_0x5b8442['containsPosition'](_0x2ed904)?_0x2ed904=_0x5b8442['end']:_0x5b8442['containsPosition'](_0x4445bd)&&(_0x4445bd=_0x5b8442['start']);continue;}_0x2ed904=_0x2ed904['isBefore'](_0x5b8442['start'])?_0x2ed904:_0x5b8442['start'],_0x4445bd=_0x4445bd['isAfter'](_0x5b8442['end'])?_0x4445bd:_0x5b8442['end'],_0x38d9cd=Object['assign']({},_0x5ab93d['attributes']),_0x5830d6?_0x5b8442['start']['isBefore'](_0x5830d6['getFirstRange']()['start'])?(_0x5830d6['removeMarkers'](),_0x5830d6=_0x5ab93d):_0x5ab93d['removeMarkers']():_0x5830d6=_0x5ab93d;}}}if(_0x5830d6)return this['_setSuggestionRange'](_0x5830d6,this['_model']['createRange'](_0x2ed904,_0x4445bd)),_0x5830d6;{const _0x12a57a=_0x5a1697(),_0x19f99b=this['_model']['createRange'](_0x2ed904,_0x4445bd),_0x532c3b=_0x4bba01['id'],_0xc7c377=_0xa5f3db?'deletion:'+_0xa5f3db:'deletion',_0x4c8d75=this['_setSuggestionData']({'id':_0x12a57a,'type':_0xc7c377,'createdAt':new Date(),'authorId':_0x532c3b,'attributes':_0x38d9cd});return this['_addSuggestionMarker'](_0xc7c377,_0x12a57a,_0x532c3b,_0x19f99b),_0x4c8d75;}}['markMultiRangeDeletion'](_0x34a2bf,_0x354873='multi',_0x1e212f={}){const _0x2d916b=this['editor']['plugins']['get']('Users')['me'],_0x1c212e=_0x34a2bf['map'](_0x442b3b=>new _0x27b625(_0x442b3b['start'],_0x442b3b['end'])),_0x16c284=new Set();for(const {suggestion:_0x5a2d4c,meta:_0x157e81}of this['_findSuggestions'](_0x1c212e,'insertion'))_0x157e81['isOwn']&&!_0x157e81['isNextTo']&&_0x16c284['add'](_0x5a2d4c);for(const _0x104690 of _0x16c284)if(_0x104690['isMultiRange']){const _0x481b1f=_0x104690['getRanges']();(!_0x104690['attributes']||!_0x104690['attributes']['skipNestingCheck'])&&(_0x481b1f['every'](_0x19a8a6=>_0x1c212e['some'](_0x566cf1=>_0x566cf1['containsRange'](_0x19a8a6,!0x0)))&&_0x104690['discard']());if(_0x1c212e['every'](_0x23572d=>_0x481b1f['some'](_0x5f54dc=>_0x5f54dc['containsRange'](_0x23572d,!0x0)))){const _0x5e39a7=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x354873,'accept');return this['forceDefaultExecution'](()=>_0x5e39a7(_0x34a2bf,null,_0x1e212f)),null;}}else{const _0x57b10b=_0x104690['getFirstRange']();_0x1c212e['some'](_0x1476e1=>_0x1476e1['containsRange'](_0x57b10b,!0x0))&&_0x104690['discard']();if(_0x1c212e['every'](_0x457e92=>_0x57b10b['containsRange'](_0x457e92,!0x0))){const _0x3284db=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x354873,'accept');return this['forceDefaultExecution'](()=>_0x3284db(_0x1c212e,null,_0x1e212f)),null;}}const _0xd9c966=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x354873,'join');let _0x394094=null;for(const _0x41af5f of this['getSuggestions']())if(_0x41af5f['author']['id']==_0x2d916b['id']&&_0x41af5f['isInContent']&&'deletion'==_0x41af5f['type']&&_0x41af5f['subType']==_0x354873&&zt(_0x41af5f,_0x1e212f)&&(_0xd9c966(_0x41af5f['getRanges'](),_0x1c212e)||_0xd9c966(_0x1c212e,_0x41af5f['getRanges']()))){if(_0x394094){if(_0x41af5f['commentThread']&&_0x41af5f['commentThread']['length'])continue;for(const _0x35c17b of _0x41af5f['getRanges']())_0x394094['isIntersectingWithRange'](_0x35c17b)||_0x394094['addRange'](_0x35c17b);_0x41af5f['removeMarkers']();}else{_0x394094=_0x41af5f;for(const _0x4f4291 of _0x1c212e)_0x41af5f['isIntersectingWithRange'](_0x4f4291)||_0x41af5f['addRange'](_0x4f4291);}}if(_0x394094)return _0x394094;_0x16c284['clear']();for(const {suggestion:_0x3498f8,meta:_0x209f90}of this['_findSuggestions'](_0x1c212e,'deletion'))_0x209f90['isOwn']&&(this['_mergeNestedSuggestions']||!_0x209f90['containsRangeInObject']&&!_0x209f90['isInsideObject'])&&zt(_0x3498f8,_0x1e212f)&&_0x16c284['add'](_0x3498f8);for(const _0x5969f7 of _0x16c284){const _0xf3d036=_0x5969f7['getRanges']();if(!_0x1e212f||!_0x1e212f['skipNestingCheck']){if(_0x1c212e['every'](_0x35c3a8=>_0xf3d036['some'](_0x4db583=>_0x4db583['containsRange'](_0x35c3a8,!0x0))))return _0x5969f7;}(!_0x5969f7['attributes']||!_0x5969f7['attributes']['skipNestingCheck'])&&(_0xf3d036['every'](_0x5cdc24=>_0x1c212e['some'](_0x4179a4=>_0x4179a4['containsRange'](_0x5cdc24,!0x0)))&&_0x5969f7['discard']());}const _0x24973d=_0x5a1697(),_0x9feb84=_0x2d916b['id'],_0xdbbec9='deletion:'+_0x354873,_0xa259ae=this['_setSuggestionData']({'id':_0x24973d,'type':_0xdbbec9,'createdAt':new Date(),'authorId':_0x9feb84,'attributes':_0x1e212f});for(const _0x3a71f0 of _0x1c212e)_0x3a71f0['detach'](),_0x3a71f0['isCollapsed']||'$graveyard'==_0x3a71f0['root']['rootName']||this['_addSuggestionMarker'](_0xdbbec9,_0x24973d,_0x9feb84,_0x3a71f0,o['getMultiRangeId']());return _0xa259ae;}['markAttributeChange'](_0x95864d,_0x369676,_0x5f5cf4,_0x3c0fbd,_0x27dd38){if(_0x95864d['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x5e9853=this['editor']['plugins']['get']('Users')['me']['id'],_0x5b8960=Array['from'](this['_suggestions']['values']())['filter'](_0x184666=>'attribute'==_0x184666['type']&&_0x184666['data']['key']==_0x369676&&_0x184666['isIntersectingWithRange'](_0x95864d));if('default'===this['_trackFormatChanges']){const _0x4fa8ea=this['_findSuggestions'](_0x95864d,'insertion')['filter'](({meta:_0x1074b1})=>_0x1074b1['isOwn']&&!_0x1074b1['isInsideObject']&&!_0x1074b1['isNextTo'])['map'](({suggestion:_0x39e1b2})=>_0x39e1b2);_0x5b8960['unshift'](..._0x4fa8ea);}const _0xfc0568=new Map([[_0x95864d,_0x5f5cf4]]);for(const _0x54b7f3 of _0x5b8960){const _0x3d1964='attribute'==_0x54b7f3['type']?_0x54b7f3['data']['oldValue']:void 0x0,_0x488f81=_0x54b7f3['getFirstRange'](),_0x5544d5=Array['from'](_0xfc0568['keys']())['find'](_0xbecff1=>_0xbecff1['isIntersecting'](_0x488f81));if(!_0x5544d5)continue;const _0x4db429=_0x5544d5['getDifference'](_0x488f81);this['_isBlockAttribute'](_0x369676)&&'insertion'==_0x54b7f3['type']&&0x0!=_0x4db429['length']||(_0xfc0568['delete'](_0x5544d5),_0x4db429['forEach'](_0x1a45c6=>{_0xfc0568['set'](_0x1a45c6,_0x5f5cf4);}),'insertion'!=_0x54b7f3['type']&&_0x3d1964!=_0x3c0fbd&&_0xfc0568['set'](_0x5544d5['getIntersection'](_0x488f81),_0x3d1964));}const _0xeaf703=[];for(const [_0x53ae4d,_0x5b691c]of _0xfc0568){const _0x116c5e=_0x5a1697(),_0x38d8bd={'key':_0x369676,'oldValue':_0x5b691c,'newValue':_0x3c0fbd};_0x369676['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':_0x369676});const _0x45ef31=('attribute:'+(_0x369676+'|'+Gt({'newValue':_0x3c0fbd})))['substring'](0x0,0x3c),_0x2011e3=this['_setSuggestionData']({'id':_0x116c5e,'type':_0x45ef31,'data':_0x38d8bd,'createdAt':new Date(),'authorId':_0x5e9853,'attributes':_0x27dd38});_0xeaf703['push'](_0x2011e3),this['_addSuggestionMarker'](_0x45ef31,_0x116c5e,_0x5e9853,_0x53ae4d);}return _0xeaf703;}['enableDefaultAttributesIntegration'](_0x3732eb){this['enableCommand'](_0x3732eb,(_0x303a57,..._0x385fcc)=>{this['_recordAttributeChanges'](()=>{_0x303a57(..._0x385fcc);});});}['registerBlockAttribute'](_0x46f0d0){this['_blockAttributeKeys']['add'](_0x46f0d0);}['registerInlineAttribute'](_0x8818d6){this['_inlineAttributeKeys']['add'](_0x8818d6);}['_getAttributeKey'](_0x3e31f5){return'attribute'==_0x3e31f5['type']?_0x3e31f5['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x545e73,_0x395f6a){const _0x2414e4=_0x545e73['getFirstMarker']();this['_model']['change'](_0x54a172=>{_0x54a172['updateMarker'](_0x2414e4,{'range':_0x395f6a});});}['_addThreadToSuggestion'](_0x11d031){const _0x2456d5=_0x11d031['id'],_0x42e9af=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2456d5)||this['_commentsRepository']['addCommentThread']({'channelId':_0x42e9af,'threadId':_0x2456d5,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x54d8e6=this['_commentsRepository']['getCommentThread'](_0x2456d5);_0x54d8e6['unbind']('isRemovable'),_0x54d8e6['isRemovable']=!0x1,_0x11d031['commentThread']=_0x54d8e6;}['_checkSuggestionCorrectness'](_0x2dd203,_0x5f3fda,_0x43ef54,_0x3ac598){if(_0x2dd203['type']!=_0x5f3fda||_0x2dd203['subType']!=_0x43ef54||_0x2dd203['creator']['id']!=_0x3ac598)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2ff27c('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x2aa6e1,_0x3a2156){const _0x1d29b9=_0x2aa6e1['getFirstRange']();if(_0x3a2156['isEqual'](_0x1d29b9))_0x2aa6e1['removeMarkers']();else{if(_0x1d29b9['containsRange'](_0x3a2156)){const _0x14c59a=this['_model']['createPositionAt'](_0x3a2156['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2aa6e1,this['_model']['createRange'](_0x1d29b9['start'],_0x14c59a));const _0x52a37d=_0x5a1697(),_0x4ef8ad=_0x2aa6e1['creator']['id'],_0x247c0f=_0x2aa6e1['type']+':'+_0x2aa6e1['subType'];this['_setSuggestionData']({'id':_0x52a37d,'type':_0x247c0f,'createdAt':new Date(),'authorId':_0x4ef8ad,'data':_0x2aa6e1['data'],'attributes':_0x2aa6e1['attributes']});const _0x5588fd=this['_model']['createPositionAt'](_0x3a2156['end']['parent'],'after'),_0xfd653b=this['_model']['createRange'](_0x5588fd,_0x1d29b9['end']);this['_addSuggestionMarker'](_0x247c0f,_0x52a37d,_0x4ef8ad,_0xfd653b);}else{if(_0x1d29b9['containsPosition'](_0x3a2156['start'])){const _0x113893=this['_model']['createPositionAt'](_0x3a2156['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2aa6e1,this['_model']['createRange'](_0x1d29b9['start'],_0x113893));}else{const _0x1f8c37=this['_model']['createPositionAt'](_0x3a2156['end']['parent'],'after');this['_setSuggestionRange'](_0x2aa6e1,this['_model']['createRange'](_0x1f8c37,_0x1d29b9['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x3aa6ef){for(const {suggestion:_0x17a371,meta:_0x3c6bfa}of this['_findSuggestions'](_0x3aa6ef,'insertion')){if(!_0x3c6bfa['isOwn'])continue;const _0x200aa2=_0x17a371['getRanges']();for(const _0x533948 of _0x200aa2)if(!_0x3aa6ef['getDifference'](_0x533948)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x5e9dae){const _0x13ae32=this['editor']['plugins']['get']('Users')['getUser'](_0x5e9dae);if(!_0x13ae32)throw new _0x2ff27c('track-changes-user-not-found',this);return _0x13ae32;}['_getExternalAuthor'](_0x4f3c54){const _0x7fa069=this['editor']['plugins']['get']('Users'),_0x28b190=_0x4f76cd('external:'+_0x4f3c54),_0x19248b=_0x7fa069['getUser'](_0x28b190);return _0x19248b||_0x7fa069['addUser']({'id':_0x28b190,'name':_0x4f3c54});}['_createSuggestion'](_0x24f6e7,_0x34f844,_0x2fd7f3,_0x147952,_0x3f57a3){const _0x3af8dd=this['_getAuthorFromId'](_0x147952),_0x5e1a82=this['_suggestionFactory']['buildSuggestion'](_0x24f6e7,_0x34f844,_0x2fd7f3,_0x3af8dd,_0x3f57a3,_0x2c82ec=>{this['_updateSuggestionData'](_0x2fd7f3,{'attributes':_0x2c82ec});const _0xf7c54f=this['getSuggestion'](_0x2fd7f3);this['_joinWithAdjacentSuggestions'](new Set([_0xf7c54f])),this['_refreshSuggestionsChain'](new Set([_0xf7c54f]));});return this['listenTo'](_0x5e1a82,'accept',()=>{this['_updateSuggestionData'](_0x2fd7f3,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x5e1a82,'discard',()=>{this['_updateSuggestionData'](_0x2fd7f3,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2fd7f3,_0x5e1a82),this['_suggestionState']['set'](_0x5e1a82,'notReady'),_0x5e1a82;}['_splitMarkerName'](_0x2ef01a){const _0x368e80=_0x2ef01a['split'](':');return{'group':_0x368e80[0x0],'type':_0x368e80[0x1],'subType':_0x368e80['length']>=0x5?_0x368e80[0x2]:null,'id':_0x368e80['length']<0x5?_0x368e80[0x2]:_0x368e80[0x3],'authorId':_0x368e80['length']<0x5?_0x368e80[0x3]:_0x368e80[0x4],'markerCount':0x6==_0x368e80['length']?_0x368e80[0x5]:null};}['_breakSuggestionMarker'](_0x39b4bd,_0x1605b9,_0xe568e5){const _0x58bbff=_0x39b4bd['getFirstRange'](),_0x2e98c5=_0x58bbff['start'],_0x2a630a=_0x58bbff['end'];this['_setSuggestionRange'](_0x39b4bd,this['_model']['createRange'](_0x2e98c5,_0x1605b9));const _0x3c7e42=_0x5a1697(),_0x208907=_0x39b4bd['creator']['id'],_0x404872=_0x39b4bd['type']+(_0x39b4bd['subType']?':'+_0x39b4bd['subType']:'');this['_setSuggestionData']({'id':_0x3c7e42,'type':_0x404872,'createdAt':new Date(),'authorId':_0x208907,'originalSuggestionId':_0x39b4bd['id'],'attributes':_0x39b4bd['attributes'],'data':_0x39b4bd['data']});const _0x2ec453=this['_getAttributeKey'](_0x39b4bd);('formatBlock'==_0x39b4bd['type']||_0x2ec453&&this['_isBlockAttribute'](_0x2ec453))&&(_0xe568e5=this['_model']['createPositionBefore'](_0xe568e5['parent'])),this['_addSuggestionMarker'](_0x404872,_0x3c7e42,_0x208907,this['_model']['createRange'](_0xe568e5,_0x2a630a));}['_findSuggestions'](_0xcd958,_0x143af4=null){const _0x1f5124=[],_0x3a9118=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0xcd958)||(_0xcd958=[_0xcd958]);for(const _0xa732e of this['getSuggestions']()){if(!_0xa732e['isInContent'])continue;if(_0x143af4&&_0xa732e['type']!=_0x143af4)continue;let _0x352598=!0x1;for(const _0x298b6d of _0xa732e['getRanges']()){for(const _0x380231 of _0xcd958){const _0x34c4f0=_0x380231['start']['isEqual'](_0x298b6d['end'])||_0x380231['end']['isEqual'](_0x298b6d['start']);if(_0x34c4f0||_0x380231['getIntersection'](_0x298b6d)){const _0x3f04d5=_0x380231['containsRange'](_0x298b6d)&&Vt(this['_model']['schema'],_0x298b6d['start'],_0x380231),_0x2b4f74=_0x298b6d['containsRange'](_0x380231)&&Vt(this['_model']['schema'],_0x380231['start'],_0x298b6d);_0x1f5124['push']({'suggestion':_0xa732e,'meta':{'isOwn':_0x3a9118==_0xa732e['author'],'isNextTo':_0x34c4f0,'isInsideObject':_0x3f04d5,'containsRangeInObject':_0x2b4f74}}),_0x352598=!0x0;break;}}if(_0x352598)break;}}return _0x1f5124;}['_addSuggestionMarker'](_0x134b3f,_0x9ea6ee,_0x1ef417,_0x49c026,_0x3f3034){this['_model']['change'](_0x6ad81=>{let _0x20f740='suggestion:'+_0x134b3f+':'+_0x9ea6ee+':'+_0x1ef417;_0x3f3034&&(_0x20f740=_0x20f740+':'+_0x3f3034),_0x6ad81['addMarker'](_0x20f740,{'range':_0x49c026,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x16f533){const _0x517fe1=_0x16f533['previous'],_0xa1bd54=_0x16f533['next'];_0x16f533['previous']=null,_0x16f533['next']=null,null!=_0x517fe1&&_0x517fe1['next']==_0x16f533&&(_0x517fe1['next']=_0xa1bd54),null!=_0xa1bd54&&_0xa1bd54['previous']==_0x16f533&&(_0xa1bd54['previous']=_0x517fe1),'ready'==this['_suggestionState']['get'](_0x16f533)&&(this['_suggestionState']['set'](_0x16f533,'removed'),this['fire']('suggestionUnloaded',_0x16f533,_0x517fe1,_0xa1bd54));}['_setSuggestionData'](_0x37e44e){const _0x549cb9=_0x37e44e['id'],_0x14b684=this['addSuggestionData'](_0x37e44e);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1bc9b3=this['editor']['plugins']['get']('PendingActions'),_0x322f2f=_0x14b684['hasComments'],_0x2ffee1=_0x14b684['subType']?_0x14b684['type']+':'+_0x14b684['subType']:_0x14b684['type'],_0x1ee3a7=this['editor']['locale'],_0x388d08=_0x1bc9b3['add'](c(_0x1ee3a7,'PENDING_ACTION_SUGGESTION')),_0x213487={'id':_0x549cb9,'type':_0x2ffee1,'hasComments':_0x322f2f,'data':_0x37e44e['data']||null,'originalSuggestionId':_0x37e44e['originalSuggestionId']||null,'attributes':_0x14b684['attributes']};this['_adapter']['addSuggestion'](_0x213487)['then'](_0x24b1a4=>{_0x14b684['_saved']=!0x0,_0x1bc9b3['remove'](_0x388d08),_0x24b1a4&&_0x24b1a4['createdAt']&&(this['_suggestions']['get'](_0x549cb9)['createdAt']=_0x24b1a4['createdAt']);})['catch'](_0x4de60a=>{throw _0x4f88d6('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x14b684['discard']();}),_0x14b684['stopListening'](),this['_suggestions']['delete'](_0x14b684['id']),this['_suggestionState']['delete'](_0x14b684),_0x4de60a;});}return _0x14b684;}['_isBlockAttribute'](_0x2b2e00){return this['_blockAttributeKeys']['has'](_0x2b2e00);}['_updateSuggestionData'](_0x5d2db2,_0x28d974){const _0x1eb976=this['editor']['plugins']['get']('PendingActions'),_0x3c6e83=this['getSuggestion'](_0x5d2db2);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x3c6e83['_saved']){const _0x5c409f=_0x1eb976['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x5d2db2,_0x28d974)['then'](()=>{_0x1eb976['remove'](_0x5c409f);});}else _0x3c6e83['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x5d2db2,_0x28d974);});}}['_getSuggestionData'](_0x117bfa){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2ff27c('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x117bfa);}['_handleNewSuggestionMarker'](_0x12a16b){const {id:_0x272ba0,type:_0x3d59ba,subType:_0x49381b,authorId:_0x5a02d7}=this['_splitMarkerName'](_0x12a16b),_0x3b28e8=this['_suggestions']['get'](_0x272ba0)||this['_createSuggestion'](_0x3d59ba,_0x49381b,_0x272ba0,_0x5a02d7,{});switch(this['_checkSuggestionCorrectness'](_0x3b28e8,_0x3d59ba,_0x49381b,_0x5a02d7),this['_suggestionState']['get'](_0x3b28e8)){case'notReady':this['_getSuggestionData'](_0x272ba0)['then'](_0x4664fa=>{let _0x18a53b=Promise['resolve']();_0x4664fa['hasComments']&&(_0x18a53b=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x272ba0})),_0x18a53b['then'](()=>{this['addSuggestionData'](_0x4664fa)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3b28e8,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x272ba0,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3b28e8,'ready'),this['fire']('suggestionLoaded',_0x3b28e8);break;case'ready':this['fire']('suggestionChanged',_0x3b28e8);}return _0x3b28e8['addMarkerName'](_0x12a16b),_0x3b28e8;}['_refreshSuggestionsChain'](_0x2b2f70){const _0x66604e=Array['from'](_0x2b2f70),_0x516cf4=_0x66604e['filter'](_0x295379=>'attribute'==_0x295379['type']);this['_refreshAttributeSuggestionsChain'](_0x516cf4);const _0xd023e0=_0x66604e['filter'](_0x275962=>!_0x275962['isMultiRange']&&'attribute'!=_0x275962['type']),_0x4615dc=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3933de=>!_0x3933de['isMultiRange']&&'attribute'!=_0x3933de['type']),_0xcdbb66=_0x4615dc['filter'](_0x194525=>!_0x2b2f70['has'](_0x194525)),_0x4c0147=new Map(_0x4615dc['map'](_0x1a3801=>[_0x1a3801,this['_suggestionFactory']['getSuggestionCallback'](_0x1a3801['type'],_0x1a3801['subType'],'chain')])),_0x39cb96=new Map(_0x4615dc['map'](_0x40bc28=>[_0x40bc28,_0x40bc28['getFirstRange']()])),_0x204b10=new Set(),_0x2cdc22=new Set();for(let _0x1116b5=0x0;_0x1116b5<_0xd023e0['length'];_0x1116b5++)_0x5334ad(_0xd023e0[_0x1116b5],_0xd023e0,_0x1116b5+0x1);for(let _0x35c914=0x0;_0x35c914<_0xd023e0['length'];_0x35c914++)_0x5334ad(_0xd023e0[_0x35c914],_0xcdbb66,0x0);const _0x50ffb7=new Set();for(let _0x510abf=0x0;_0x510abf<_0xd023e0['length'];_0x510abf++){const _0x58a899=_0xd023e0[_0x510abf];!_0x2cdc22['has'](_0x58a899)&&_0x58a899['previous']&&(_0x50ffb7['add'](_0x58a899['previous']),_0x58a899['previous']['next']===_0x58a899&&(_0x58a899['previous']['next']=null),_0x58a899['previous']=null),!_0x204b10['has'](_0x58a899)&&_0x58a899['next']&&(_0x50ffb7['add'](_0x58a899['next']),_0x58a899['next']['previous']===_0x58a899&&(_0x58a899['next']['previous']=null),_0x58a899['next']=null);}function _0x5334ad(_0x3d8899,_0x1235ed,_0x51418a){for(let _0x43e0c4=_0x51418a;_0x43e0c4<_0x1235ed['length'];_0x43e0c4++){const _0x5d57de=_0x5cbf17(_0x3d8899,_0x1235ed[_0x43e0c4]);_0x5d57de&&(_0x5d57de[0x0]['next']=_0x5d57de[0x1],_0x5d57de[0x1]['previous']=_0x5d57de[0x0],_0x204b10['add'](_0x5d57de[0x0]),_0x2cdc22['add'](_0x5d57de[0x1]));}}function _0x5cbf17(_0x3d59ec,_0x25d549){if(_0x3d59ec['author']['id']!==_0x25d549['author']['id'])return null;const _0x3a3048=_0x4c0147['get'](_0x3d59ec)(_0x3d59ec,_0x25d549,_0x39cb96['get'](_0x3d59ec),_0x39cb96['get'](_0x25d549));if(!_0x3a3048)return null;return _0x4c0147['get'](_0x25d549)(_0x3d59ec,_0x25d549,_0x39cb96['get'](_0x3d59ec),_0x39cb96['get'](_0x25d549))?_0x3a3048[0x1]['commentThread']&&_0x3a3048[0x1]['commentThread']['length']?null:_0x3a3048:null;}_0x50ffb7['size']&&this['_refreshSuggestionsChain'](_0x50ffb7);}['_refreshAttributeSuggestionsChain'](_0x248b9a){if(0x0==_0x248b9a['length'])return;const _0x36366a=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xffd675=>'attribute'==_0xffd675['type']&&_0xffd675['_isDataLoaded']),_0x28ba03=[],_0x54a613=new Map();for(const _0x2134bd of _0x36366a){const _0x402d15=_0x4f76cd(_0x2134bd['attributes']);_0x54a613['has'](_0x402d15)||(_0x54a613['set'](_0x402d15,_0x28ba03['length']),_0x28ba03['push']([]));const _0x13fb06=_0x54a613['get'](_0x402d15);_0x28ba03[_0x13fb06]['push'](_0x2134bd);}!(function(){_0x28ba03['sort']((_0x431e0c,_0x9f33bc)=>{const _0x5d929b=_0x431e0c[0x0]['createdAt'],_0x588518=_0x9f33bc[0x0]['createdAt'];return _0x5d929b==_0x588518?_0x431e0c[0x0]['attributes']['groupId']<_0x9f33bc[0x0]['attributes']['groupId']?-0x1:0x1:_0x5d929b<_0x588518?-0x1:0x1;});for(const _0x3f7b05 of _0x28ba03)_0x3f7b05['sort']((_0x1089fd,_0x71b7d)=>_0x1089fd['id']<_0x71b7d['id']?-0x1:0x1);}());for(let _0x2c819f=0x0;_0x2c819f<_0x28ba03['length'];_0x2c819f++){if(0x0==_0x28ba03[_0x2c819f]['length'])continue;const _0x4b8bf0=[];for(let _0x374d94=_0x2c819f+0x1;_0x374d94<_0x28ba03['length'];_0x374d94++)0x0!=_0x28ba03[_0x374d94]['length']&&_0x4e4105(_0x28ba03[_0x2c819f],_0x28ba03[_0x374d94])&&_0x4b8bf0['push'](_0x374d94);for(const _0x2129df of _0x4b8bf0)_0x28ba03[_0x2c819f]=_0x28ba03[_0x2c819f]['concat'](_0x28ba03[_0x2129df]),_0x28ba03[_0x2129df]=[];}for(const _0x1a89dc of _0x28ba03)for(let _0x33082f=0x0;_0x33082f<_0x1a89dc['length'];_0x33082f++){const _0x5eaaaf=_0x1a89dc[_0x33082f+0x1]||null;_0x1a89dc[_0x33082f]['next']!==_0x5eaaaf&&(_0x1a89dc[_0x33082f]['next']=_0x5eaaaf);}for(const _0x235ea1 of _0x28ba03)for(let _0x34e899=0x0;_0x34e899<_0x235ea1['length'];_0x34e899++){const _0x112915=_0x235ea1[_0x34e899-0x1]||null;_0x235ea1[_0x34e899]['previous']!==_0x112915&&(_0x235ea1[_0x34e899]['previous']=_0x112915);}function _0x4e4105(_0x5de0b6,_0x4f18fc){if(_0x5de0b6[0x0]['attributes']['groupId']!==_0x4f18fc[0x0]['attributes']['groupId']&&_0x5de0b6[0x0]['author']!==_0x4f18fc[0x0]['author'])return!0x1;if(!function(_0x57a9b6,_0x3e2fa7){if(!_0x57a9b6['hasComments']&&!_0x3e2fa7['hasComments'])return!0x0;if(_0x57a9b6['hasComments']&&_0x3e2fa7['hasComments'])return!0x1;if(_0x57a9b6['hasComments']&&_0x3e2fa7['createdAt']<_0x57a9b6['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x3e2fa7['hasComments']&&_0x57a9b6['createdAt']<_0x3e2fa7['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x5de0b6[0x0],_0x4f18fc[0x0]))return!0x1;const _0x2f03b2=Et(_0x5de0b6[0x0]['attributes'],'groupId'),_0x1eeba7=Et(_0x4f18fc[0x0]['attributes'],'groupId');if(!_0x4d0e84(_0x2f03b2,_0x1eeba7))return!0x1;return!!_0x5de0b6['every'](_0x48cecc=>_0x4f18fc['some'](_0x2ca995=>_0x48cecc['getFirstRange']()['isEqual'](_0x2ca995['getFirstRange']())))&&_0x4f18fc['every'](_0x4a7a53=>_0x5de0b6['some'](_0x24c096=>_0x4a7a53['getFirstRange']()['isEqual'](_0x24c096['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x3648af){const _0x57738d=Array['from'](_0x3648af),_0x2d69a2=this['getSuggestions']({'skipNotAttached':!0x0}),_0x27ce20=_0x2d69a2['filter'](_0xa580e5=>!_0x3648af['has'](_0xa580e5)),_0x5ad760=new Map(_0x57738d['map'](_0x9d27ac=>[_0x9d27ac,this['_suggestionFactory']['getSuggestionCallback'](_0x9d27ac['type'],_0x9d27ac['subType'],'join')])),_0x580bac=new Map(_0x2d69a2['map'](_0x3ae93d=>[_0x3ae93d,_0x3ae93d['getRanges']()]));for(let _0x46374c=0x0;_0x46374c<_0x57738d['length'];_0x46374c++){if(_0x58f755(this,_0x57738d[_0x46374c],_0x57738d,_0x46374c+0x1))return!0x0;}for(let _0x4c04db=0x0;_0x4c04db<_0x57738d['length'];_0x4c04db++){if(_0x58f755(this,_0x57738d[_0x4c04db],_0x27ce20,0x0))return!0x0;}return!0x1;function _0x58f755(_0xcf173,_0xea24a3,_0x1842ea,_0x17ed94){for(let _0x4ff4c5=_0x17ed94;_0x4ff4c5<_0x1842ea['length'];_0x4ff4c5++){const _0x2030c3=_0x1842ea[_0x4ff4c5];if(_0x2030c3['type']!==_0xea24a3['type']||_0x2030c3['author']['id']!==_0xea24a3['author']['id']||_0x2030c3['subType']!==_0xea24a3['subType'])continue;if(!qt(_0xea24a3,_0x2030c3))continue;if('attribute'==_0xea24a3['type']&&_0xea24a3['data']['oldValue']!=_0x2030c3['data']['oldValue'])continue;if('attribute'==_0xea24a3['type']&&_0xcf173['_isBlockAttribute'](_0xea24a3['data']['key']))continue;if('formatBlock'==_0xea24a3['type']){const _0x7ec106=_0xcf173['editor']['model'],_0x3adfac=_0xea24a3['getContainedElement']();if(_0x3adfac&&(_0x7ec106['schema']['isObject'](_0x3adfac)||_0x7ec106['schema']['isLimit'](_0x3adfac)))continue;}const _0x29099e=_0x5ad760['get'](_0xea24a3),_0x451c97=_0x580bac['get'](_0xea24a3),_0x51eaf3=_0x580bac['get'](_0x2030c3),_0x383050=_0xea24a3['commentThread']&&_0xea24a3['commentThread']['length'],_0xe39e8=_0x2030c3['commentThread']&&_0x2030c3['commentThread']['length'];if(!_0x383050&&_0x29099e(_0x51eaf3,_0x451c97))return _0xcf173['_joinSuggestions'](_0x2030c3,_0xea24a3),_0x580bac['delete'](_0xea24a3),!0x0;if(!_0xe39e8&&_0x29099e(_0x451c97,_0x51eaf3))return _0xcf173['_joinSuggestions'](_0xea24a3,_0x2030c3),_0x580bac['delete'](_0x2030c3),!0x0;}return!0x1;}}['_joinSuggestions'](_0x317f0a,_0x23a856){if(_0x317f0a['isMultiRange']){for(const _0x53746e of _0x23a856['getRanges']())_0x317f0a['addRange'](_0x53746e);}else{const _0x4d9fa4=_0x23a856['getFirstRange']()['end'];this['_setSuggestionRange'](_0x317f0a,this['_model']['createRange'](_0x317f0a['getFirstRange']()['start'],_0x4d9fa4));}_0x23a856['removeMarkers']();}['_getMarkerAnnouncementText'](_0x36e6e7,_0x2462fc,_0x1acea4){const _0x48dec6=_0x36e6e7['startsWith']('format')||_0x36e6e7['startsWith']('attribute')?'FORMATTING':_0x36e6e7['toUpperCase']();return c(this['editor']['locale'],_0x2462fc+'_'+_0x48dec6+'_SUGGESTION_ANNOUNCEMENT',_0x1acea4);}['_initAriaMarkerChangeAnnouncements'](){const _0x578e76=this['editor'];if(!_0x578e76['ui'])return;const {ariaLiveAnnouncer:_0x4856c5}=_0x578e76['ui'];_0x5df461(this['_model'],({left:_0x3aab0c,entered:_0x1e2bfd})=>{for(const _0x3aeccc of _0x3aab0c){const {group:_0x5b3fce,type:_0x2f742b}=this['_splitMarkerName'](_0x3aeccc['name']);if('suggestion'===_0x5b3fce){_0x4856c5['announce'](this['_getMarkerAnnouncementText'](_0x2f742b,'LEAVE'));break;}}for(const _0x248715 of _0x1e2bfd){const {group:_0x3a2d11,type:_0x152105}=this['_splitMarkerName'](_0x248715['name']);if('suggestion'===_0x3a2d11){_0x4856c5['announce'](this['_getMarkerAnnouncementText'](_0x152105,'ENTER',_0x58d004(_0xe1b8ad)));break;}}});}['_processAttributeChanges'](_0x13358a){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2e5584=this['editor'],_0x428854=_0x2e5584['model']['document']['differ']['getChanges']();if(0x0==_0x428854['length'])return!0x1;const _0x251683=[],_0x9fed58=_0x428854['filter'](_0x3240fc=>'attribute'==_0x3240fc['type']),_0x5e3051=_0x428854['filter'](_0xc68a37=>'insert'==_0xc68a37['type']&&'$text'!=_0xc68a37['name']),_0x6e6b1f=_0x428854['filter'](_0x2b56cc=>'remove'==_0x2b56cc['type']&&'$text'!=_0x2b56cc['name']);for(const _0x1349e6 of _0x9fed58)_0x251683['push']({'key':_0x1349e6['attributeKey'],'newValue':_0x1349e6['attributeNewValue'],'oldValue':_0x1349e6['attributeOldValue'],'range':Jt(_0x1349e6['range'],_0x2e5584['model'])});for(const _0x75a48f of _0x5e3051){const _0x26b233=_0x6e6b1f['find'](_0x3a4691=>_0x3a4691['position']['isEqual'](_0x75a48f['position']));_0x26b233&&_0x251683['push']({'key':u,'newValue':_0x75a48f['name'],'oldValue':_0x26b233['name'],'range':_0x2e5584['model']['createRangeOn'](_0x75a48f['position']['nodeAfter'])});}return 0x0!=_0x251683['length']&&this['_reduceExistingSuggestions'](_0x13358a,_0x251683);}['_processAttributeSuggestions'](_0x265bd1){let _0xaf3ebb=!0x1;const _0x5b54e7=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x28b4f6=>_0x28b4f6['data']['newRange']&&_0x28b4f6['name']['startsWith']('suggestion:attribute:'));for(const _0x1a81d5 of _0x5b54e7){const {subType:_0x79c59e,id:_0x5dbf7a}=this['_splitMarkerName'](_0x1a81d5['name']),_0x29d322=_0x79c59e['split']('|')[0x0];for(const _0x4fc49b of this['getSuggestions']({'skipNotAttached':!0x0}))_0x4fc49b['id']!=_0x5dbf7a&&'attribute'==_0x4fc49b['type']&&_0x4fc49b['data']&&_0x4fc49b['data']['key']==_0x29d322&&_0x4fc49b['getFirstRange']()['isIntersecting'](_0x1a81d5['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x4fc49b,_0x1a81d5['data']['newRange'],_0x265bd1),_0xaf3ebb=!0x0);}return _0xaf3ebb;}['_recordAttributeChanges'](_0x49be8e){this['_recordAttributeSuggestions']=!0x0,_0x49be8e();}['_isRegisteredAttribute'](_0x515381){const _0x3a0857=this['_isBlockAttribute'](_0x515381),_0x1ec650=this['_inlineAttributeKeys']['has'](_0x515381);return _0x3a0857||_0x1ec650;}['_reduceExistingSuggestions'](_0x21678f,_0x38d403){if(0x0==_0x38d403['length'])return!0x1;let _0x9a328e=!0x1;for(const _0x350660 of _0x38d403){const _0x570df1=this['_findSuggestions'](_0x350660['range'],'attribute')['filter'](_0x3dc501=>!_0x3dc501['meta']['isNextTo'])['map'](_0x1fbcd4=>_0x1fbcd4['suggestion']),_0x3667b4=_0x4f76cd({'newValue':_0x350660['newValue']});_0x570df1['filter'](_0x3b81e0=>{const [_0x2a418a,_0xe4991b]=_0x3b81e0['subType']['split']('|');return _0x2a418a==_0x350660['key']&&_0xe4991b!=_0x3667b4;})['forEach'](_0x140a4b=>{this['_reduceSuggestionAttributeRange'](_0x140a4b,_0x350660['range'],_0x21678f),_0x9a328e=!0x0;});}return _0x9a328e;}['_reduceSuggestionAttributeRange'](_0x405be0,_0x3b90d6,_0x54cc09){const _0x520894=_0x405be0['getFirstRange']()['getDifference'](_0x3b90d6);0x0!==_0x520894['length']?0x1!==_0x520894['length']?this['_breakSuggestionMarker'](_0x405be0,_0x3b90d6['start'],_0x3b90d6['end']):this['_setSuggestionRange'](_0x405be0,_0x520894[0x0]):_0x54cc09['removeMarker'](_0x405be0['getFirstMarker']());}}class Ut{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0xf1c06d){this['_editor']=_0xf1c06d,this['_model']=_0xf1c06d['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x5dd17b,_0x318d54,_0x41c66b,_0xae336c,_0x181717,_0x45a800){return new o(this['_model'],{'type':_0x5dd17b,'subType':_0x318d54,'id':_0x41c66b,'author':_0xae336c,'creator':_0xae336c,'attributes':_0x181717,'onAttributesChange':_0x45a800,'onAccept':(..._0x39283b)=>this['getSuggestionCallback'](_0x5dd17b,_0x318d54,'accept')(..._0x39283b),'onDiscard':(..._0x1b37a0)=>this['getSuggestionCallback'](_0x5dd17b,_0x318d54,'discard')(..._0x1b37a0)});}['registerCustomCallback'](_0x51909f,_0x473474,_0x14a540,_0x35e3cc){const _0x316f13=_0x51909f+':'+_0x473474+':'+_0x14a540;this['_customCallbacks']['set'](_0x316f13,_0x35e3cc);}['getSuggestionCallback'](_0x1243a9,_0x55259f,_0xfca7c8){const _0x38b12f=_0x1243a9+':'+_0x55259f+':'+_0xfca7c8;return this['_customCallbacks']['get'](_0x38b12f)||this['_defaultCallbacks']['get'](_0x1243a9+':'+_0xfca7c8);}['_registerDefaultCallbacks'](){const _0x4e8acc=()=>!0x1,_0x322a3a=_0x3c0c17=>{_0x3c0c17['sort']((_0x1ea2db,_0x14ab7a)=>_0x1ea2db['start']['isBefore'](_0x14ab7a['start'])?0x1:-0x1),this['_model']['change'](_0x44debd=>{for(const _0x186a3c of _0x3c0c17){let _0x32d0cf;_0x32d0cf=_0x186a3c['end']['isAtEnd']&&_0x186a3c['end']['parent']==_0x186a3c['start']['nodeAfter']?_0x44debd['createSelection'](_0x186a3c['start']['nodeAfter'],'on'):_0x44debd['createSelection'](_0x186a3c),this['_model']['deleteContent'](_0x32d0cf,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2c3918=(_0x5d75b6,_0x4b6596)=>{_0x4b6596&&this['_model']['change'](_0x1627df=>{const {commandName:_0x3d2b12,commandParams:_0x3b8bff=[]}=_0x4b6596,_0x3d0074=_0x5d75b6['map'](_0x31cf0f=>(Ft(_0x31cf0f)&&(_0x31cf0f=this['_model']['createRange'](_0x31cf0f['end'])),_0x31cf0f))['filter'](_0x463309=>'$graveyard'!==_0x463309['root']['rootName']);if(_0x3d0074['length']<0x1)return;const _0x564e3d=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x49a433=>_0x27b625['fromRange'](_0x49a433));_0x1627df['setSelection'](_0x3d0074);for(const _0x545914 of this['_editor']['commands']['commands']())_0x545914['refresh']();_0x3b8bff['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3d2b12,..._0x3b8bff);const _0x41bcce=_0x564e3d['filter'](_0x35b0a2=>'$graveyard'!=_0x35b0a2['root']['rootName']);_0x41bcce['length']>0x0&&_0x1627df['setSelection'](_0x41bcce);for(const _0x5bf425 of _0x564e3d)_0x5bf425['detach']();});},_0x146c03=(_0x1733c9,_0x50483d)=>0x1==_0x1733c9['length']&&0x1==_0x50483d['length']&&_0x1733c9[0x0]['end']['isEqual'](_0x50483d[0x0]['start']),_0x414a40=(_0x4afa2e,_0x598081,_0x355800,_0x24abc9)=>Ht(_0x4afa2e,_0x598081,_0x355800,_0x24abc9)?[_0x4afa2e,_0x598081]:Ht(_0x598081,_0x4afa2e,_0x24abc9,_0x355800)?[_0x598081,_0x4afa2e]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4e8acc),this['_defaultCallbacks']['set']('insertion:discard',_0x322a3a),this['_defaultCallbacks']['set']('insertion:join',_0x146c03),this['_defaultCallbacks']['set']('insertion:chain',_0x414a40),this['_defaultCallbacks']['set']('deletion:accept',_0x322a3a),this['_defaultCallbacks']['set']('deletion:discard',_0x4e8acc),this['_defaultCallbacks']['set']('deletion:join',_0x146c03),this['_defaultCallbacks']['set']('deletion:chain',_0x414a40),this['_defaultCallbacks']['set']('formatInline:accept',_0x2c3918),this['_defaultCallbacks']['set']('formatInline:discard',_0x4e8acc),this['_defaultCallbacks']['set']('formatInline:join',_0x146c03),this['_defaultCallbacks']['set']('formatInline:chain',_0x4e8acc),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2c3918),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4e8acc),this['_defaultCallbacks']['set']('formatBlock:join',_0x146c03),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4e8acc),this['_defaultCallbacks']['set']('attribute:accept',_0x4e8acc),this['_defaultCallbacks']['set']('attribute:discard',(_0x239b2d,_0x2d3389)=>{if(!_0x2d3389)return;const _0x49ff16=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x481685=>{if(_0x2d3389['key']==u)for(const _0x3e334b of _0x239b2d){const _0x4a4fbe=_0x3e334b['start']['nodeAfter'],_0x48a611=_0x2d3389['oldValue'];_0x481685['rename'](_0x4a4fbe,_0x48a611);}else{if(_0x49ff16['_isBlockAttribute'](_0x2d3389['key'])){for(const _0x4001b6 of _0x239b2d)void 0x0!==_0x2d3389['oldValue']?_0x481685['setAttribute'](_0x2d3389['key'],_0x2d3389['oldValue'],_0x4001b6['start']['nodeAfter']):_0x481685['removeAttribute'](_0x2d3389['key'],_0x4001b6['start']['nodeAfter']);}else{for(const _0x2aaf2d of _0x239b2d)_0x2d3389['oldValue']?_0x481685['setAttribute'](_0x2d3389['key'],_0x2d3389['oldValue'],_0x2aaf2d):_0x481685['removeAttribute'](_0x2d3389['key'],_0x2aaf2d);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x146c03);}}function Vt(_0x3f2515,_0x594165,_0x35eb92){for(const _0x46ea0e of _0x594165['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x46ea0e['root']==_0x46ea0e)return!0x1;if(!_0x35eb92['containsItem'](_0x46ea0e))return!0x1;if(_0x3f2515['isObject'](_0x46ea0e)||_0x3f2515['isLimit'](_0x46ea0e))return!0x0;}return!0x1;}function Ft(_0x5e8dfd){return _0x5e8dfd['end']['parent']==_0x5e8dfd['start']['nodeAfter']&&_0x5e8dfd['end']['isAtStart'];}function Pt(_0x4a835b,_0x9f6ca8,_0x3e6a34,_0x2aea1d){const _0xf9921a=_0x5c797e=>!_0x5c797e['item']['is']('$textProxy')&&!_0x2aea1d['isObject'](_0x5c797e['item']),_0x2e6ecb=_0x4a835b['start']['getLastMatchingPosition'](_0xf9921a),_0x1b6d50=_0x4a835b['end']['getLastMatchingPosition'](_0xf9921a,{'direction':'backward'});return(!_0x4a835b['start']['isEqual'](_0x2e6ecb)||!_0x4a835b['end']['isEqual'](_0x1b6d50))&&(_0x2e6ecb['isBefore'](_0x1b6d50)?_0x3e6a34['updateMarker'](_0x9f6ca8,{'range':_0x3e6a34['createRange'](_0x2e6ecb,_0x1b6d50)}):_0x3e6a34['removeMarker'](_0x9f6ca8),!0x0);}function Gt(_0x44a5a4){return _0x4f76cd(_0x44a5a4);}function Lt(_0x3f9c58){const _0x451e66=_0x3f9c58['start']['nodeAfter'];return _0x451e66&&_0x451e66['is']('element');}function Jt(_0x59feaf,_0x484295){return null==_0x59feaf['end']['nodeBefore']&&_0x59feaf['end']['parent']==_0x59feaf['start']['nodeAfter']?Kt(_0x59feaf['start']['nodeAfter'],_0x484295):_0x59feaf;}function Kt(_0x307378,_0xf2f9f1){const _0x26ba93=_0xf2f9f1['schema']['isObject'](_0x307378)||_0xf2f9f1['schema']['isSelectable'](_0x307378);return _0xf2f9f1['createRange'](_0xf2f9f1['createPositionAt'](_0x307378,'before'),_0x26ba93?_0xf2f9f1['createPositionAfter'](_0x307378):_0xf2f9f1['createPositionAt'](_0x307378,'end'));}function Ht(_0x667cc0,_0x59da61,_0x13ef6b,_0x122365){return!!qt(_0x667cc0,_0x59da61)&&_0x13ef6b['end']['isEqual'](_0x122365['start']);}function qt(_0x2c3965,_0x2b97d7){if(!_0x2c3965['_isDataLoaded']||!_0x2b97d7['_isDataLoaded'])return!0x1;const _0x587f21=new Set(Object['keys'](_0x2c3965['attributes'])),_0x5d3268=new Set(Object['keys'](_0x2b97d7['attributes']));if(_0x587f21['delete']('groupId'),_0x5d3268['delete']('groupId'),0x0==_0x587f21['size']&&0x0==_0x5d3268['size'])return!0x0;if(_0x587f21['size']!=_0x5d3268['size'])return!0x1;const _0x19190d={..._0x2c3965['attributes']},_0x1f42a8={..._0x2b97d7['attributes']};return delete _0x19190d['groupId'],delete _0x1f42a8['groupId'],JSON['stringify'](_0x19190d)==JSON['stringify'](_0x1f42a8);}function zt(_0x28a1cc,_0x58adab){const _0x495481=Wt(_0x28a1cc['attributes']),_0xc3b2c0=Wt(_0x58adab);if(!_0x28a1cc['_isDataLoaded'])return!0x1;for(const _0x3986d0 of Object['keys'](_0xc3b2c0))if(!_0x4d0e84(_0x495481[_0x3986d0],_0xc3b2c0[_0x3986d0]))return!0x1;return!0x0;}function Wt(_0x493465){const _0x280b3a=Object['assign']({},_0x493465);return delete _0x280b3a['skipNestingCheck'],delete _0x280b3a['tablePasteChainId'],_0x280b3a;}class pe extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x32db8d(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x155819,_0x4a9637,_0x4a2fa7,_0x5aa0c3){super(),this['model']=_0x4a9637,this['view']=_0x4a2fa7,this['commentThreadController']=_0x5aa0c3,this['_editor']=_0x155819,this['_acceptCommand']=_0x155819['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x155819['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x539d4c,_0x785642)=>_0x539d4c||_0x785642),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4197b5=>_0x4197b5&&this['_editor']['model']['canEditAt'](_0x4a9637['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4c17fe=>_0x4c17fe&&this['_editor']['model']['canEditAt'](_0x4a9637['getRanges']())),this['_pendingAction']=null,_0x4a2fa7['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x4a2fa7,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x4a2fa7,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x4a2fa7,'change:isDirty',()=>{_0x4a2fa7['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 _0x534980=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x534980);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x3fadb1{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4121e8,_0x56265f,_0x2835aa,_0x53e6ff){super(_0x4121e8),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2fbc95(_0x4121e8,c(_0x4121e8,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x56265f['authoredAt']),this['bind']('authoredAt')['to'](_0x56265f),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',_0x56265f,'authoredAt',this,'descriptionParts',(_0x22924c,_0x15eb6a,_0x33d4ef)=>{const _0x111cb1=_0x33d4ef['map'](_0x50813f=>ls(_0x50813f['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x22924c-0x1,_0x56265f['author']['name'],_0x15eb6a?_0x53e6ff['formatDateTime'](_0x15eb6a):'',new DOMParser()['parseFromString'](_0x111cb1,'text/html')['body']['textContent']]);}),this['focusables']=new _0x5a3c9d(),this['focusTracker']=new _0x48917c(),this['keystrokes']=new _0x455a98(),this['focusCycler']=new _0x2bda9c({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x57cd41=>_0x57cd41['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x56265f,this['_localUser']=_0x2835aa,this['_config']=_0x53e6ff,_0x53e6ff['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x334806(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x2407b0}=this['_config'];this['commentsListView']=new _0x2407b0(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',_0x3ac7e0=>_0x3ac7e0+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1f9263,_0x21422d)=>_0x1f9263||!!_0x21422d);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x368f9e}=this['_config'],_0x4f3265=new _0x368f9e(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5689fe=_0x4f3265['commentInputView'];return _0x4f3265['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5689fe,'value',(_0x582bf6,_0x53407f,_0x243977)=>!!_0x243977||_0x582bf6&&!_0x53407f),_0x5689fe['on']('submit',(_0xf33924,_0xf7a18d)=>{this['fire']('addComment',_0xf7a18d),_0x5689fe['editor']['setData']('');}),_0x5689fe['on']('cancel',()=>this['focus']()),_0x5689fe['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4f3265;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x1a7dc3,_0x5229f7,_0xfd29f7,_0x217595){super(_0x1a7dc3,_0x5229f7,_0xfd29f7,_0x217595),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x36d5bc=>_0x36d5bc&&_0x36d5bc[0x0]?_0x36d5bc[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x4149e6,_0xe6656c)=>{let _0x243131='';for(const _0x35943b of _0x4149e6)_0x243131+='<p>'+ls(_0x35943b['content'],_0x35943b['color'])+'</p>';return _0xe6656c?_0x243131:ti(_0x243131,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x217595['SuggestionView'](_0x1a7dc3,_0x5229f7,{'formatDateTime':_0x217595['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 _0x238e96=this['bindTemplate'],_0x21f5a4=[this['suggestionView']];return this['commentsListView']&&_0x21f5a4['push'](this['commentsListView']),this['commentThreadInputView']&&_0x21f5a4['push'](this['commentThreadInputView']),_0x21f5a4['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x238e96['if']('isActive','ck-suggestion-wrapper--active'),_0x238e96['to']('type',_0x139299=>'ck-suggestion-'+_0x139299),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':_0x238e96['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x21f5a4};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x3fadb1{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x6b35a1,_0x4e2345,_0x4bf88b){super(_0x6b35a1),this['_model']=_0x4e2345,this['_config']=_0x4bf88b,this['set']('description',''),this['bind']('authoredAt')['to'](_0x4e2345),this['acceptButton']=this['_createButton'](c(_0x6b35a1,'Accept\x20suggestion'),_0x1b653b,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x6b35a1,'Discard\x20suggestion'),_0x2fcadb,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0xee1198(_0x6b35a1,_0x4e2345['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x5a3c9d([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x48917c(),this['keystrokes']=new _0x455a98(),this['focusCycler']=new _0x2bda9c({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x1fa940=>_0x1fa940['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x4667b1=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x4667b1['innerHTML']=this['description'],this['on']('change:description',(_0x2b8c32,_0x33bee5,_0x3ab478)=>{_0x4667b1['innerHTML']=_0x3ab478;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x1ee79a=this['bindTemplate'],_0x31ee64=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x1ee79a['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1ee79a['to']('authoredAt',_0x32d96b=>this['_config']['formatDateTime'](_0x32d96b))}]}]},{'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']&&_0x31ee64['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':_0x31ee64}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x369273,_0x45a975,_0x5c662d,_0x5344f1,_0x422dd4){const _0x41098f=new _0xba3192(this['locale']);return _0x41098f['set']({'label':_0x369273,'icon':_0x45a975,'tooltip':!0x0,'tooltipPosition':_0x422dd4}),_0x41098f['extendTemplate']({'attributes':{'class':_0x5c662d}}),_0x41098f['on']('execute',()=>{this['fire'](_0x5344f1,this['_model']['id']);}),_0x41098f;}['_setupKeyboardNavigation'](){const _0x425c04=this['element'];this['keystrokes']['listenTo'](_0x425c04);for(const _0x4fc3c3 of this['focusables'])this['focusTracker']['add'](_0x4fc3c3['element']),this['keystrokes']['listenTo'](_0x4fc3c3['element']);this['keystrokes']['set']('enter',(_0x3dbbff,_0x34d659)=>{_0x425c04===_0x3dbbff['target']&&(this['focusCycler']['focusFirst'](),_0x34d659());}),this['keystrokes']['set']('esc',(_0x495755,_0x27a67a)=>{_0x425c04!==_0x495755['target']&&(this['focus'](),_0x27a67a());});}}class d extends _0x104d33{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x1615a7,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xb6f83e){super(_0xb6f83e),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1d7744=this['editor']['config'];_0x1d7744['define']('trackChanges.SuggestionThreadView',fe),_0x1d7744['define']('trackChanges.SuggestionView',we),_0x1d7744['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1d7744['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x3b1e27,_0x25b87f){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x2180d3,_0x273494]of this['_handleControllerBuffer']){const _0x5317d8=this['_suggestionToController']['has'](_0x2180d3);_0x5317d8||_0x273494?_0x5317d8&&_0x273494&&this['_destroyController'](_0x2180d3):this['_initializeController'](_0x2180d3);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x3b1e27,_0x25b87f);}['init'](){const _0x1f54f6=this['editor'],_0x5b86b3=_0x1f54f6['plugins']['get']('TrackChangesEditing'),_0x4d558d=_0x1f54f6['plugins']['get']('Annotations'),_0x5b3c57=_0x1f54f6['plugins']['get']('EditorAnnotations'),_0x15ea9b=_0x1f54f6['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x5b3c57['addSourceCollector'](()=>{const _0x4b6736=[];for(const [_0x2d5cee,_0x4e4af3]of Array['from'](this['_suggestionToController'])){const _0x2a8123=_0x2d5cee['getAllAdjacentSuggestions'](),_0x5b52a9=[];for(const _0x3615e1 of _0x2a8123){if(!_0x3615e1['isInContent'])continue;if(_0x3615e1['isMultiRange']){_0x5b52a9['push'](..._0x3615e1['getRanges']());continue;}const _0x25ba7f=_0x3615e1['getFirstRange']();if(_0x5b52a9['length']>0x0){const _0x13466f=_0x5b52a9[0x0]['getJoined'](_0x25ba7f);if(_0x13466f){_0x5b52a9[0x0]=_0x13466f;continue;}}_0x5b52a9['push'](_0x25ba7f);}_0x4b6736['push']([_0x4e4af3['view'],_0x5b52a9]);}return _0x4b6736;}),this['listenTo'](_0x5b86b3,'suggestionLoaded',(_0x17902c,_0x56319f)=>{this['listenTo'](_0x56319f,'change:previous',(_0x47932a,_0x1fa8e7,_0x1906f6,_0x189b80)=>{_0x56319f['isInContent']&&(null==_0x1906f6?(this['_updateController'](_0x189b80['head']),this['_handleSuggestionControllerDelayed'](_0x56319f,!0x1)):(this['_updateController'](_0x1906f6['head']),null==_0x189b80&&this['_handleSuggestionControllerDelayed'](_0x56319f,!0x0)));}),null!==_0x56319f['previous']?this['_updateController'](_0x56319f['head']):this['_handleSuggestionControllerDelayed'](_0x56319f,!0x1);}),this['listenTo'](_0x5b86b3,'suggestionUnloaded',(_0xf64a6,_0x4e082b,_0x285f3c)=>{this['stopListening'](_0x4e082b,'change:previous'),this['_handleControllerBuffer']['delete'](_0x4e082b),this['_suggestionToController']['has'](_0x4e082b)&&this['_destroyController'](_0x4e082b),_0x285f3c&&this['_updateController'](_0x285f3c['head']);}),this['listenTo'](_0x5b86b3,'suggestionChanged',(_0xa31656,_0x3f5d6b)=>{this['_updateController'](_0x3f5d6b);}),this['listenTo'](_0x4d558d,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x15ea9b,'addComment',(_0x40af24,{threadId:_0x2cc8ee,isFromAdapter:_0x3a0f86})=>{if(_0x3a0f86||!_0x5b86b3['hasSuggestion'](_0x2cc8ee))return;const _0x5eb6be=_0x5b86b3['getSuggestion'](_0x2cc8ee);this['_suggestionToController']['get'](_0x5eb6be)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x54527d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5eea6e;for(const _0x2e13be in _0x54527d){const _0x1a0e45=_0x2e13be,_0x2ce8cc=_0x54527d[_0x1a0e45];if('trackChangesLicenseKeyValid'==_0x2ce8cc||'trackChangesLicenseKeyInvalid'==_0x2ce8cc||'trackChangesLicenseKeyExpired'==_0x2ce8cc||'trackChangesLicenseKeyDomainLimit'==_0x2ce8cc||'trackChangesLicenseKeyNotAllowed'==_0x2ce8cc||'trackChangesLicenseKeyEvaluationLimit'==_0x2ce8cc||'trackChangesLicenseKeyTrialLimit'==_0x2ce8cc||'trackChangesLicenseKeyUsageLimit'==_0x2ce8cc){delete _0x54527d[_0x1a0e45],_0x5eea6e=_0x2ce8cc,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x5eea6e&&_0x54527d['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x5eea6e&&_0x54527d['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x5eea6e&&_0x54527d['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x5eea6e&&_0x54527d['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x5eea6e&&_0x54527d['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x5eea6e&&_0x54527d['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x5eea6e&&_0x54527d['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x5aed2f=this['editor']['plugins']['get']('Annotations'),_0x4b6813=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3d5622=Array['from'](_0x5aed2f['activeAnnotations'],_0x31f273=>_0x31f273['innerView'])['filter'](_0x1ee2ca=>this['_viewToController']['has'](_0x1ee2ca)),_0x5777b8=[];for(const _0x3dd20a of _0x3d5622){const _0x575028=this['_viewToController']['get'](_0x3dd20a)['model']['getAllAdjacentSuggestions']();_0x5777b8['push'](..._0x575028['reduce']((_0x22a067,_0x23c699)=>[..._0x22a067,..._0x23c699['getMarkerNames']()],[]));}_0x4b6813['activeMarkers']=_0x5777b8;}['_addUIComponentsToFactory'](){const _0x4118cf=this['editor'],_0x11ccf1=_0x4118cf['locale'],_0x4d7967=c(_0x11ccf1,'Track\x20changes'),_0x30f7bb=new _0xd666d2([{'type':'switchbutton','model':new _0x25171f({'withText':!0x0,'isToggleable':!0x0,'label':_0x4d7967,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x25171f({'withText':!0x0,'label':c(_0x11ccf1,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x25171f({'withText':!0x0,'label':c(_0x11ccf1,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x25171f({'withText':!0x0,'label':c(_0x11ccf1,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x25171f({'withText':!0x0,'label':c(_0x11ccf1,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x4118cf['plugins']['has']('TrackChangesPreview')&&_0x30f7bb['addMany']([{'type':'separator'},{'type':'button','model':new _0x25171f({'withText':!0x0,'label':c(_0x11ccf1,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x5abe65 of _0x30f7bb)if(ke(_0x5abe65)){const _0x1478d3=_0x4118cf['commands']['get'](_0x5abe65['model']['commandName']);_0x5abe65['model']['bind']('isOn','isEnabled')['to'](_0x1478d3,'value','isEnabled');}_0x4118cf['ui']['componentFactory']['add']('trackChanges',_0x12979b=>this['_createToolbarButton'](_0x12979b,_0x30f7bb,_0x4d7967)),_0x4118cf['ui']['componentFactory']['add']('menuBar:trackChanges',_0x37f130=>this['_createMenuBarMenu'](_0x37f130,_0x30f7bb,_0x4d7967));}['_createToolbarButton'](_0x2bc0cb,_0x2ce18d,_0x1fefeb){const _0x38ebbb=_0x4076e8(_0x2bc0cb,_0x5a3d17),_0x655db0=this['editor']['commands']['get']('trackChanges');_0x38ebbb['buttonView']['set']({'tooltip':_0x1fefeb,'label':_0x1fefeb,'icon':_0x20f8aa}),_0x38ebbb['buttonView']['bind']('isOn')['to'](_0x655db0,'value'),_0x38ebbb['buttonView']['on']('execute',()=>{_0x655db0['execute'](),this['editor']['editing']['view']['focus']();}),_0x2028ea(_0x38ebbb,_0x2ce18d,{'role':'menu'});const _0x4f1448=[];for(const _0x1d488e of _0x2ce18d)ke(_0x1d488e)&&_0x4f1448['push'](this['editor']['commands']['get'](_0x1d488e['model']['commandName']));const _0x1cdf63=_0x38ebbb['buttonView'];return _0x1cdf63['actionView']['unbind']('isEnabled'),_0x1cdf63['arrowView']['unbind']('isEnabled'),_0x1cdf63['actionView']['bind']('isEnabled')['to'](_0x655db0,'isEnabled'),_0x1cdf63['arrowView']['bind']('isEnabled')['toMany'](_0x4f1448,'isEnabled',(..._0x25da90)=>_0x25da90['some'](_0x175d7a=>_0x175d7a)),_0x38ebbb['on']('execute',_0x3568d7=>{this['editor']['execute'](_0x3568d7['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x38ebbb;}['_createMenuBarMenu'](_0x1f14e6,_0x33fe51,_0x486e80){const _0x10b65f=new _0x23b047(_0x1f14e6),_0x16b955=this['editor']['commands']['get']('trackChanges');_0x10b65f['buttonView']['set']({'label':_0x486e80,'icon':_0x20f8aa});const _0x3d8a74=new _0x28c472(_0x1f14e6);for(const _0xf6250 of _0x33fe51){if('separator'==_0xf6250['type']){_0x3d8a74['items']['add'](new _0x49a779(_0x1f14e6));continue;}const _0x599f08=new _0x2e29b1(_0x1f14e6,_0x10b65f),_0x5191f4=new _0x394f0b(_0x1f14e6),_0x5b192c=_0xf6250['model'];_0x5191f4['bind'](...Object['keys'](_0x5b192c))['to'](_0x5b192c),_0x5191f4['delegate']('execute')['to'](_0x10b65f),_0x5191f4['on']('execute',()=>{this['editor']['execute'](_0x5b192c['commandName']),this['editor']['editing']['view']['focus']();}),_0x599f08['children']['add'](_0x5191f4),_0x3d8a74['items']['add'](_0x599f08);}return _0x10b65f['bind']('isEnabled')['to'](_0x16b955,'isEnabled'),_0x10b65f['panelView']['children']['add'](_0x3d8a74),_0x10b65f;}['_initializeController'](_0x514692){const _0x1341f5=this['editor'],_0x124acc=_0x1341f5['config'],_0x8ef518=_0x1341f5['plugins']['get']('Annotations'),_0x4f56b1=_0x1341f5['plugins']['get']('CommentsRepository'),_0x2ed4a8=_0x1341f5['plugins']['get']('EditorAnnotations'),_0x379b02=_0x1341f5['plugins']['get'](_0x1615a7)['me'],_0x42e167=_0x124acc['get']('trackChanges')['SuggestionThreadView'],_0x2e821f=_0x124acc['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x1a9439,CommentThreadInputView:_0x1b418a}=_0x1341f5['plugins']['get']('CommentsUI');let _0x302985,_0x4c8a52,_0x4f9651;this['_annotationViews']['has'](_0x514692['id'])?(_0x4c8a52=this['_annotationViews']['get'](_0x514692['id']),_0x302985=_0x4c8a52['mainView']):(_0x302985=new _0x42e167(_0x1341f5['locale'],_0x514692,_0x379b02,{'disableComments':this['_disableComments'],'editorConfig':{..._0x124acc['get']('comments.editorConfig'),'licenseKey':_0x124acc['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x124acc['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x124acc['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x124acc['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3a19b8(_0x124acc['get']('locale')),'CommentView':_0x124acc['get']('comments')['CommentView'],'CommentsListView':_0x1a9439,'CommentThreadInputView':_0x1b418a,'SuggestionView':_0x2e821f}),_0x302985['suggestionView']['acceptButton']['on']('execute',()=>{_0x1341f5['editing']['view']['focus']();}),_0x302985['suggestionView']['discardButton']['on']('execute',()=>{_0x1341f5['editing']['view']['focus']();}),_0x4c8a52=_0x8ef518['createAnnotationView'](this['editor']['locale'],_0x302985),_0x4c8a52['bind']('isDirty')['to'](_0x302985,'isDirty'),_0x4c8a52['bind']('length')['to'](_0x302985),_0x4c8a52['bind']('type')['to'](_0x302985,'type',_0x284b34=>'suggestion-'+_0x284b34),_0x302985['on']('escape',()=>{_0x4f9651['fire']('escape');}),this['_annotationViews']['set'](_0x514692['id'],_0x4c8a52));const _0x35e339=_0x4f56b1['createCommentThreadController'](_0x514692['commentThread'],_0x302985),_0x437ee9=new pe(_0x1341f5,_0x514692,_0x302985,_0x35e339),_0x199d2e=_0x514692['getAllAdjacentSuggestions']()['filter'](_0x4fb8ae=>_0x4fb8ae['isInContent']);_0x302985['descriptionParts']=_0x1341f5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x199d2e),this['_suggestionToController']['set'](_0x514692,_0x437ee9),this['_viewToController']['set'](_0x302985,_0x437ee9),_0x4f9651=_0x8ef518['createAnnotation']({'view':_0x4c8a52,'target':()=>{const _0x3f2e7c=[],_0x3846f9=_0x514692['getAllAdjacentSuggestions']()['filter'](_0x1c3adf=>_0x1c3adf['isInContent']);for(const _0x1f988a of _0x3846f9)_0x3f2e7c['push'](..._0x1f988a['getMarkers']());return _0x1c092e(_0x1341f5['editing'],_0x3f2e7c);},'type':()=>'suggestion-'+_0x437ee9['view']['type']}),_0x4f56b1['_bindAnnotationToEditors'](_0x302985,_0x4f9651),_0x8ef518['add'](_0x4f9651),_0x2ed4a8['registerAnnotation'](_0x4f9651);}['_destroyController'](_0xeb2e7b){const _0x4e952a=this['editor']['plugins']['get']('CommentsRepository'),_0x3d2a69=this['editor']['plugins']['get']('Annotations'),_0x259417=this['_suggestionToController']['get'](_0xeb2e7b),_0x331614=_0x259417['view'],_0xa755=_0x3d2a69['getByInnerView'](_0x331614);_0x4e952a['_unbindEditors'](_0x331614),_0xa755&&_0x3d2a69['remove'](_0xa755),this['_suggestionToController']['delete'](_0xeb2e7b),this['_viewToController']['delete'](_0x331614),_0x259417['destroy']();}['_updateController'](_0x3ea2b3){if(!_0x3ea2b3['isInContent']||!this['_suggestionToController']['has'](_0x3ea2b3))return;const _0x4c84b2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x318263=this['_suggestionToController']['get'](_0x3ea2b3),_0x2a6f4a=_0x3ea2b3['getAllAdjacentSuggestions']();_0x318263['view']['descriptionParts']=_0x4c84b2['descriptionFactory']['getDescriptions'](_0x2a6f4a);}['destroy'](){for(const _0x4629bc of this['_suggestionToController']['keys']())this['_destroyController'](_0x4629bc);for(const _0x5cf000 of this['_annotationViews']['values']())_0x5cf000['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x3f8638){return'model'in _0x3f8638;}class k extends _0x104d33{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x179749){this['editor']['plugins']['get'](p)['adapter']=_0x179749;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x4386b3){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x4386b3);}['getSuggestions']({skipNotAttached:_0x1d4709=!0x1,toJSON:_0x32679b=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x1d4709,'toJSON':_0x32679b});}['getSuggestion'](_0x5b3bb3){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x5b3bb3);}}const w=['Pagination'];class T extends _0x104d33{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x20ec95=this['editor'];if(_0x20ec95['config']['define']('trackChangesData.editorCreator',_0x238855=>{const _0x178cd1=_0x20ec95['model']['document']['getRootNames']()['reduce']((_0x35d6ff,_0x34048f)=>(_0x35d6ff[_0x34048f]='',_0x35d6ff),{});return _0x20ec95['constructor']['create'](_0x178cd1,_0x238855);}),'function'!=typeof _0x20ec95['config']['get']('trackChangesData')['editorCreator'])throw new _0x2ff27c('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x35f91a){return N(this['editor'],!0x0,_0x35f91a);}['getDataWithDiscardedSuggestions'](_0x2e2c8e){return N(this['editor'],!0x1,_0x2e2c8e);}}class D extends _0x104d33{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1ef95f){function _0x5be8f7(_0x594454){return _0x594454['map'](_0x1f3a8c=>String['fromCharCode'](_0x1f3a8c))['join']('');}super(_0x1ef95f),this['result']='end',_0x1ef95f[_0x5be8f7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5be8f7([0x76,0x69,0x65,0x77])][_0x5be8f7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5be8f7([0x61,0x75,0x74,0x6f]),_0x1ef95f[_0x5be8f7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5be8f7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5be8f7([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5be8f7([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5be8f7([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Fe(_0x215a6d){return void 0x0!==_0x215a6d['getRootsAttributes'];}async function N(_0x5649cd,_0x3941f2,_0x20d61c){const _0x1b80d7=_0x1a7297(_0x5649cd,w);_0x1b80d7['plugins']['push'](p,D),_0x1b80d7['rootsAttributes']=Fe(_0x5649cd)?_0x5649cd['getRootsAttributes']():void 0x0;const _0xfede4c=document['createDocumentFragment'](),_0x4b2f66=_0x5649cd['config']['get']('trackChangesData')['editorCreator'],_0x2283bd=await _0x4b2f66(_0x1b80d7,()=>function(_0x1297bf){const _0x521bbd=document['createElement']('div');return _0x1297bf['appendChild'](_0x521bbd),_0x521bbd;}(_0xfede4c));!function(_0x6d792e,_0x1d4b87){const _0x5218c2=_0x6d792e['model']['document']['getRootNames']()['reduce']((_0x513cfd,_0x327cc6)=>(_0x513cfd[_0x327cc6]=_0x6d792e['data']['get']({'rootName':_0x327cc6}),_0x513cfd),{}),_0x3f3206=_0x6d792e['plugins']['get']('Users')['users']['map'](_0x1eb855=>({'id':_0x1eb855['id'],'name':_0x1eb855['name']})),_0x2432ff=_0x6d792e['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4ca766=_0x6d792e['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3a4674=_0x1d4b87['plugins']['get']('Users'),_0x3d5572=_0x1d4b87['plugins']['get']('TrackChangesEditing'),_0x582e2e=_0x1d4b87['plugins']['get']('CommentsRepository');for(const _0x38332e of _0x582e2e['getCommentThreads']())_0x38332e['remove']();for(const _0x3021eb of _0x3f3206)_0x3a4674['getUser'](_0x3021eb['id'])||_0x3a4674['addUser'](_0x3021eb);_0x3a4674['me']||_0x3a4674['useAnonymousUser']();for(const _0x486f35 of _0x4ca766)_0x582e2e['addCommentThread'](_0x486f35);for(const _0x3a3f16 of _0x2432ff)_0x3d5572['addSuggestionData'](_0x3a3f16);_0x1d4b87['data']['set'](_0x5218c2);}(_0x5649cd,_0x2283bd),_0x2283bd['execute'](_0x3941f2?'acceptAllSuggestions':'discardAllSuggestions');const _0x400289=Fe(_0x2283bd)?_0x2283bd['getFullData'](_0x20d61c):_0x2283bd['data']['get'](_0x20d61c);return await _0x2283bd['destroy'](),_0x400289;}class Me extends _0x3fadb1{['options'];constructor(_0x4c1032,_0x305341){super(_0x4c1032),this['options']=_0x305341,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0xfab11a,_0x1cfc1d){if(!this['element'])return;const _0x5833e1=[];for(const [_0x1ee657,_0x113854]of _0xfab11a){const _0x387ba9=document['createElement']('div');_0x387ba9['setAttribute']('data-ck-root-name',_0x1ee657),_0x387ba9['className']=_0x113854['classes']+'\x20ck-track-changes-preview__root-container',_0x387ba9['innerHTML']=_0x113854['content'],_0x5833e1['push'](_0x387ba9);}_0x1cfc1d(this['element'],_0x5833e1),this['element']['style']['width']='',this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x33780e{constructor(_0x5ac961){super(_0x5ac961),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x527778=this['editor'],_0x178eec=_0x527778['locale'],_0x43dfec=_0x527778['plugins']['get']('Dialog');let _0x1c7c81;const _0x1ed340=function(_0x3fba4b){const _0x5c6b92={};if('editables'in _0x3fba4b['ui']['view']){for(const [_0x43e662,_0x11dd5e]of Object['entries'](_0x3fba4b['ui']['view']['editables']))_0x5c6b92[_0x43e662]=_0x11dd5e['element'];}else _0x5c6b92[_0x3fba4b['model']['document']['getRootNames']()[0x0]]=_0x3fba4b['ui']['view']['editable']['element'];return _0x5c6b92;}(_0x527778),_0x15aebd=function(_0x2b6194){let _0x4aa031=0x0;for(const _0x13b0b8 of Object['values'](_0x2b6194))_0x4aa031=Math['max'](_0x4aa031,_0x13b0b8['getBoundingClientRect']()['width']);let _0x38f1d4=0x0;for(const _0x3d813c of Object['values'](_0x2b6194))_0x38f1d4+=_0x3d813c['getBoundingClientRect']()['height'];const _0x2d2204=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x1a2852=Math['min'](_0x38f1d4,_0x2d2204);return{'width':_0x4aa031,'height':_0x1a2852};}(_0x1ed340);_0x43dfec['show']({'id':'finalContentPreview','title':c(_0x178eec,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x178eec,{'dialogRects':_0x15aebd}),'onHide':()=>{_0x1c7c81['detachFromDom']();},'onShow':()=>{_0x527778['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x34a3c3=>{const _0x1f3dbb=this['_standarizeRootsData'](_0x34a3c3,_0x527778,_0x1ed340);_0x43dfec['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x1f3dbb,_0x527778['config']['get']('trackChanges.preview.renderFunction'));}),_0x1c7c81=new _0x3b70f9(_0x178eec,[_0x43dfec['view']]),_0x1c7c81['attachToDom'](),_0x1c7c81['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x527778['once']('destroy',()=>{_0x1c7c81['detachFromDom']();});const _0x3449ee=_0x43dfec['view']['headerView']['class'];_0x43dfec['view']['headerView']['class']=_0x3449ee?_0x3449ee+'\x20ck-reset_all':'ck-reset_all',_0x43dfec['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x43dfec['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x4c6fb9=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x553513=_0x4c6fb9['previewMode'],_0xa26b18={};if('$labels'===_0x553513){for(const _0x412557 of _0x4c6fb9['getMergeFieldsIds']())_0xa26b18[_0x412557]=_0x4c6fb9['getLabel'](_0x412557)||_0x412557;}else{const _0x352ac6='$defaultValues'===_0x553513?_0x4c6fb9['getDefaultValues']():_0x4c6fb9['getDataSetValues'](_0x553513,!0x0);for(const _0x1b1498 of Object['entries'](_0x352ac6)){const [_0x15a374,_0x4a5337]=_0x1b1498;_0xa26b18[_0x15a374]=null!==_0x4a5337?_0x4a5337:_0x4c6fb9['getLabel'](_0x15a374)||_0x15a374;}}return{'mergeFieldsData':_0xa26b18};}['_standarizeRootsData'](_0x3666e1,_0x382cd9,_0x754a2a){let _0x326df8;if('string'==typeof _0x3666e1){const _0x186279=_0x382cd9['model']['document']['getRootNames']()[0x0];_0x326df8={[_0x186279]:_0x3666e1};}else _0x326df8=_0x3666e1;const _0x3f2ed5=this['_fixMediaEmbeds'](_0x326df8,_0x382cd9),_0x546d38=function(_0x58ac87,_0x4cb55d){for(const [_0x54ba23,_0x7e8467]of _0x58ac87)_0x7e8467['classes']=_0x4cb55d[_0x54ba23]['classList']['value']['replace']('ck-focused','');return _0x58ac87;}(this['_sortRoots'](_0x382cd9)['reduce']((_0x5dc8c8,_0x5d4752)=>(_0x5dc8c8['push']([_0x5d4752,{'content':_0x3f2ed5[_0x5d4752],'classes':''}]),_0x5dc8c8),[]),_0x754a2a);return _0x546d38;}['_fixMediaEmbeds'](_0x2476db,_0x26a859){if(!_0x26a859['plugins']['has']('MediaEmbedEditing'))return _0x2476db;const _0x1cea8c=_0x26a859['plugins']['get']('MediaEmbedEditing');for(const [_0x139bc7,_0x32f81a]of Object['entries'](_0x2476db)){const _0x43e27b=document['createElement']('div');_0x43e27b['innerHTML']=_0x32f81a,(_0x43e27b['querySelectorAll']('figure.media')['forEach'](_0x4ec874=>{const _0x126ad=_0x4ec874['querySelector']('oembed');if(_0x126ad){const _0x1a6e9b=_0x126ad['getAttribute']('url');if(_0x1a6e9b){const _0x31d24e=_0x1cea8c['registry']['getMediaViewElement'](new _0x52b430(_0x26a859['editing']['view']['document']),_0x1a6e9b,{'elementName':'','renderForEditingView':!0x0}),_0x1969e0=document['createElement']('div');_0x1969e0['classList']['add']('ck-media__wrapper'),_0x31d24e['render'](_0x1969e0,_0x26a859['editing']['view']['domConverter']),_0x126ad['replaceWith'](_0x1969e0);}}}),_0x2476db[_0x139bc7]=_0x43e27b['innerHTML']);}return _0x2476db;}['_sortRoots'](_0x293519){if(!function(_0x617feb){return void 0x0!==_0x617feb['getRootsAttributes'];}(_0x293519))return _0x293519['model']['document']['getRootNames']();const _0xb0663=[],_0x474a60=new Map();for(const _0x3e2da9 of _0x293519['model']['document']['getRootNames']()){const _0x25be36=_0x293519['editing']['view']['getDomRoot'](_0x3e2da9)['getClientRects']()['item'](0x0);_0xb0663['push'](_0x3e2da9),_0x474a60['set'](_0x3e2da9,_0x25be36);}return _0xb0663['sort']((_0x5b4bc1,_0x3dce27)=>{const _0x4f8ad3=_0x474a60['get'](_0x5b4bc1),_0x10935a=_0x474a60['get'](_0x3dce27);return _0x4f8ad3['y']-_0x10935a['y']||_0x4f8ad3['x']-_0x10935a['x'];}),_0xb0663;}}class te extends _0x104d33{static get['requires'](){return[T,_0x4b542f];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x7ba5c6){super(_0x7ba5c6),_0x7ba5c6['commands']['add']('previewFinalContent',new re(this['editor'])),_0x7ba5c6['config']['define']('trackChanges.preview.renderFunction',(_0xef91f6,_0x4e1c97)=>{for(const _0x4bc2b8 of _0x4e1c97)_0xef91f6['appendChild'](_0x4bc2b8);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
|
|
23
|
+
import{Command as _0x2699b4,Plugin as _0x53ae92,PendingActions as _0xe8a11}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x3d4351,ObservableMixin as _0x26da1b,uid as _0x33987a,priorities as _0x9eec71,insertToPriorityArray as _0x2b1d38,logWarning as _0x2d4306,getEnvKeystrokeText as _0x3a2a25,FocusTracker as _0x3f3e84,KeystrokeHandler as _0x21acad,Collection as _0x3abf58}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x8f20bd,IconCancel as _0x297710,IconTrackChanges as _0x274568}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as Zt,View as _0x5297f1,ViewCollection as _0x2e2014,FocusCycler as _0x197fc3,ViewModel as _0x2e500b,createDropdown as _0xc838a8,SplitButtonView as _0x206658,addListToDropdown as _0x185cd5,MenuBarMenuView as _0x4e0aa7,MenuBarMenuListView as _0x2170a6,ListSeparatorView as _0x1a819b,MenuBarMenuListItemView as _0x3d208e,MenuBarMenuListItemButtonView as _0xbe4a96,BodyCollection as _0x5bf6bf,Dialog as _0xc3148a}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0xd79e0a,hashObject as _0x1c269b,surroundingMarkersDetector as _0x298a0a,FOCUS_ANNOTATION_KEYSTROKE as _0x3a9486,AriaDescriptionView as _0x5eb931,setupThreadKeyboardNavigation as _0x16eee3,trimHtml as ti,UserView as _0x25b38c,LateFocusButtonView as _0xd3f9ac,getDateTimeFormatter as _0x4e981b,getAllMarkersDomElementsSorted as _0x472501,sanitizeEditorConfig as _0x4681f7}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x11a90c,LiveRange as _0x7362da,LivePosition as _0x36d914,DowncastWriter as _0xc616a3}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0xc49cfd,toWidget as _0x5442e8}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x46ebd3,set as _0x53ca67,isEqual as _0x17e1e9,unset as _0x5e0f8b,omit as Et}from'es-toolkit/compat';import{Delete as _0x27e985,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x39beb8,ShiftEnter as _0x35e7df}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends _0x2699b4{['_enabledCommands'];constructor(_0x1f709b,_0x4fdc2c){super(_0x1f709b),this['_enabledCommands']=_0x4fdc2c,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 _0x43824e of this['editor']['commands']['commands']())_0x43824e['affectsData']&&!this['_enabledCommands']['has'](_0x43824e)&&_0x43824e['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x4794c6 of this['editor']['commands']['commands']())_0x4794c6['affectsData']&&!this['_enabledCommands']['has'](_0x4794c6)&&_0x4794c6['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x2699b4{['_suggestions'];constructor(_0x2b35a0,_0x32b381){super(_0x2b35a0),this['_suggestions']=_0x32b381,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5c583f){const _0x584912=this['_suggestions']['get'](_0x5c583f);if(!_0x584912)throw new _0x3d4351('track-changes-accept-suggestion-not-found',this);const _0x20efc1=_0x584912['getRanges']();this['editor']['model']['canEditAt'](_0x20efc1)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x584912);}}class R extends _0x2699b4{['_suggestions'];constructor(_0x519143,_0x46e24d){super(_0x519143),this['_suggestions']=_0x46e24d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x11d2c5){const _0x5590da=this['_suggestions']['get'](_0x11d2c5);if(!_0x5590da)throw new _0x3d4351('track-changes-discard-suggestion-not-found',this);const _0x40b251=_0x5590da['getRanges']();this['editor']['model']['canEditAt'](_0x40b251)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x5590da);}}function ls(_0x2d5e06,_0x9ea59d){let _0x5a84e0='';return _0x5a84e0+=_0x2d5e06['split']('*')['map']((_0x219724,_0x7bfb2c)=>_0x7bfb2c%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x219724)+'</span>':nn(_0x219724))['join'](''),_0x9ea59d&&(_0x5a84e0+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x9ea59d['value']+'\x22\x20title=\x22'+_0x9ea59d['title']+'\x22></span>'),_0x5a84e0;}function nn(_0x4186f5){const _0x3eb65e=document['createElement']('span');return _0x3eb65e['innerText']=_0x4186f5,_0x3eb65e['innerHTML'];}function ts(_0x3b67e3){return _0x3b67e3['sort']((_0x116335,_0xc3290a)=>'deletion'==_0x116335['type']&&'deletion'!=_0xc3290a['type']?-0x1:'deletion'!=_0x116335['type']&&'deletion'==_0xc3290a['type']?0x1:0x0);}function Xt(_0x3afa9d,_0x4e642c){let _0x221519,_0x28bedb=0x0;const _0xdf66fe=[],_0x511019=_0x4e642c['schema'];for(;_0x28bedb<_0x3afa9d['length'];){const _0x4dc29d=_0x3afa9d[_0x28bedb],_0xda4e1c=_0x3afa9d[_0x28bedb+0x1];_0x221519||(_0x221519=_0x4e642c['createPositionBefore'](_0x4dc29d)),on(_0x4e642c,_0x4dc29d,_0xda4e1c)||(_0xdf66fe['push'](_0x4e642c['createRange'](_0x221519,_0x511019['isObject'](_0x4dc29d)?_0x4e642c['createPositionAfter'](_0x4dc29d):_0x4e642c['createPositionAt'](_0x4dc29d,'end'))),_0x221519=null),_0x28bedb++;}return _0xdf66fe;}function on(_0x59dc8e,_0x5059b5,_0x1d036f){if(!_0x1d036f)return!0x1;const _0x37faca=_0x59dc8e['createPositionAfter'](_0x5059b5),_0x52f9ee=_0x59dc8e['createPositionBefore'](_0x1d036f);return _0x37faca['isTouching'](_0x52f9ee);}function rs(_0x51a8c0,_0x39a9a8,_0x3a8f3f){for(;_0x3a8f3f['length'];){const _0x46ff10=_0x3a8f3f['splice'](0x0,0x64);_0x51a8c0['change'](()=>{for(const _0xf87f0c of _0x46ff10)_0xf87f0c['isInContent']&&_0x39a9a8['execute'](_0xf87f0c['id']);});}}class x extends _0x2699b4{['_command'];['_suggestions'];constructor(_0x6dffeb,_0x32e0b5,_0xd53713){super(_0x6dffeb),this['_command']=_0x32e0b5,this['_suggestions']=_0xd53713,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3fd39d=Array['from'](this['_suggestions']['values']())['some'](_0x132bb8=>_0x132bb8['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x3fd39d;}['execute'](){const _0x1dd9a0=ts(Array['from'](this['_suggestions']['values']()));for(const _0x5d982a of _0x1dd9a0){const _0x5eefdf=_0x5d982a['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5eefdf))return;}rs(this['editor']['model'],this['_command'],_0x1dd9a0);}}class E extends _0x2699b4{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x729add,_0x595039,_0x3c4e40){super(_0x729add),this['_command']=_0x595039,this['_suggestions']=_0x3c4e40,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x188731=this['editor']['model']['document']['selection'],_0x2b60b3=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x1d1d82,_0x3e092f){const _0x45e9fd=Array['from'](_0x1d1d82['getRanges']()),_0x22d223=new Set();for(const _0xf85ae of _0x3e092f)if(_0xf85ae['isInContent']){for(const _0x57d0e1 of _0x45e9fd)for(const _0x1aaac8 of _0xf85ae['getRanges']())(_0x57d0e1['isIntersecting'](_0x1aaac8)||_0x1d1d82['isCollapsed']&&!_0xf85ae['isMultiRange']&&_0xf85ae['next']&&_0x1aaac8['end']['isTouching'](_0x57d0e1['start']))&&_0x22d223['add'](_0xf85ae);}return _0x22d223;}(_0x188731,_0x2b60b3),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x232abc=ts(Array['from'](this['_selectedSuggestions']));for(const _0x379e41 of _0x232abc){const _0x4a4751=_0x379e41['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4a4751))return;}rs(this['editor']['model'],this['_command'],_0x232abc);}}class o extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x26da1b(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4de20c,_0xb9b5ec){super(),this['id']=_0xb9b5ec['id'],this['type']=_0xb9b5ec['type'],this['subType']=_0xb9b5ec['subType']||null,this['author']=_0xb9b5ec['author'],this['creator']=_0xb9b5ec['creator']||_0xb9b5ec['author'],this['isExternal']=Boolean(_0xb9b5ec['attributes']&&_0xb9b5ec['attributes']['@external']),this['data']=null,this['_model']=_0x4de20c,this['_onAccept']=_0xb9b5ec['onAccept'],this['_onDiscard']=_0xb9b5ec['onDiscard'],this['_onAttributesChange']=_0xb9b5ec['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0xb9b5ec['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 _0x434cde=this;for(;_0x434cde['previous'];)_0x434cde=_0x434cde['previous'];return _0x434cde;}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'](_0x45810e){this['_markerNames']['add'](_0x45810e);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x1e7329=>this['_model']['markers']['get'](_0x1e7329))['filter'](_0x2635a6=>_0x2635a6);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4f7c8b=>{for(const _0x311849 of this['getMarkers']())_0x4f7c8b['removeMarker'](_0x311849);}),this['_markerNames']['clear']();}['removeMarker'](_0x5814bb){this['_model']['change'](_0x4de677=>{_0x4de677['removeMarker'](_0x5814bb);}),this['_markerNames']['delete'](_0x5814bb);}['addRange'](_0x1d9f82){const _0x1ccf6e='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x1ccf6e),this['_model']['change'](_0x3f406f=>{_0x3f406f['addMarker'](_0x1ccf6e,{'range':_0x1d9f82,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x200071){for(const _0x542d65 of this['getRanges']())if(_0x542d65['isIntersecting'](_0x200071))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0xabb97e=>_0xabb97e['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2854af,_0x2b23cf)=>[..._0x2854af,..._0x2b23cf['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x41ef1c=this['getRanges']();if(0x1!=_0x41ef1c['length'])return null;const _0x2d2f8b=_0x41ef1c[0x0],_0x3d59b0=_0x2d2f8b['start']['nodeAfter'],_0x55e1ff=_0x2d2f8b['end']['nodeBefore'];return _0x3d59b0 instanceof _0x11a90c?_0x3d59b0!=_0x55e1ff?null:_0x3d59b0: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 _0x447753=[];let _0x26ba63=this['head'];for(;_0x26ba63;)_0x447753['push'](_0x26ba63),_0x26ba63=_0x26ba63['next'];return _0x447753;}['setAttribute'](_0x5a9c71,_0x1ce070){const _0x12bd32=_0x46ebd3(this['attributes']);_0x53ca67(_0x12bd32,_0x5a9c71,_0x1ce070),_0x17e1e9(_0x12bd32,this['attributes'])||(this['attributes']=_0x12bd32,this['_onAttributesChange'](_0x12bd32));}['removeAttribute'](_0xea21c6){const _0x1877f3=_0x46ebd3(this['attributes']);_0x5e0f8b(_0x1877f3,_0xea21c6),_0x17e1e9(_0x1877f3,this['attributes'])||(this['attributes']=_0x1877f3,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 _0x33987a()['substr'](0x1,0x5);}}function c(_0x445258,_0x161206,_0x36a579){const _0x46ccb5=_0x445258['t'],t=_0x445258['t'];switch(_0x161206){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x36a579);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x36a579);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x36a579);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x36a579);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x36a579);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',_0x36a579);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x36a579);case'*Replace\x20image*':return t('*Replace\x20image*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x36a579);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x36a579);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x36a579);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x36a579);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x36a579);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x36a579);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x36a579);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x36a579);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x36a579);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x36a579);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x36a579);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x36a579);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x36a579);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x36a579);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x36a579);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x36a579);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x36a579);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'},_0x36a579);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x36a579);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x36a579);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x36a579);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x36a579);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x36a579);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'},_0x36a579);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x36a579);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x36a579);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x36a579);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x36a579);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'},_0x36a579);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x36a579);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'},_0x36a579);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'},_0x36a579);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x36a579);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'},_0x36a579);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x36a579);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'},_0x36a579);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x36a579);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x36a579);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'},_0x36a579);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x36a579);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 _0x46ccb5({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x36a579);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x46ccb5({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x36a579);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x36a579);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'},_0x36a579);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'},_0x36a579);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'},_0x36a579);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x161206;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x173372,_0x5ddfac){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x173372,this['_locale']=_0x5ddfac;}['getDescriptions'](_0x40cbd0){const _0x3728e8=[],_0x1e5fbb=new Set(),_0xe36461=new Set();for(let _0x4565ee=0x0;_0x4565ee<_0x40cbd0['length'];_0x4565ee++){const _0x527b7d=_0x40cbd0[_0x4565ee];if(!_0x527b7d['isInContent'])continue;const _0x137cc7=this['_handleCustomCallbackDescription'](_0x527b7d);if(_0x137cc7){if(null!=_0x527b7d['subType']){if(_0x1e5fbb['has'](_0x527b7d['subType']))continue;_0x1e5fbb['add'](_0x527b7d['subType']);}_0x3728e8['push'](_0x137cc7);}else{if('attribute'!=_0x527b7d['type'])'insertion'!=_0x527b7d['type']&&'deletion'!=_0x527b7d['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3728e8,_0x527b7d,_0x40cbd0[_0x4565ee+0x1]);else{const _0x161383=_0x527b7d['data']['key'];if(_0xe36461['has'](_0x161383))continue;_0xe36461['add'](_0x527b7d['data']['key']),_0x161383==u?this['_handleRenameSuggestionDescription'](_0x3728e8,_0x527b7d):this['_handleAttributeSuggestionDescription'](_0x3728e8,_0x527b7d);}}}return this['_resolveDescriptionItems'](_0x3728e8);}['registerDescriptionCallback'](_0x3823dd){this['_customCallbacks']['push'](_0x3823dd);}['registerElementLabel'](_0x2a400d,_0x487465,_0x56ee06=_0x9eec71['normal']){'function'==typeof _0x2a400d?_0x2b1d38(this['_itemLabelsCallbacks'],{'matchingCallback':_0x2a400d,'label':_0x487465,'priority':_0x56ee06}):this['_itemLabels']['set'](_0x2a400d,_0x487465);}['registerAttributeLabel'](_0x27ca9b,_0x518b5a){this['_attributeLabels']['set'](_0x27ca9b,_0x518b5a);}['getItemLabel'](_0x825058,_0x23ec8a=0x1){let _0x26d345;for(const _0x539a94 of this['_itemLabelsCallbacks'])if(_0x539a94['matchingCallback'](_0x825058)){_0x26d345=_0x539a94['label'];break;}return _0x26d345||(_0x26d345=this['_itemLabels']['get'](_0x825058['name'])),_0x26d345?_0x26d345(_0x23ec8a):0x1!==_0x23ec8a?_0x23ec8a+'\x20'+_0x825058['name']+'s':''+_0x825058['name'];}['_addDescriptionItems'](_0x22b9ee,_0x4dc5d6){const _0x2daf35=_0x4dc5d6['getFirstRange']()['getWalker'](),_0x5936fd='insertion'==_0x4dc5d6['type']?'add':'remove';for(const _0x5d58a1 of _0x2daf35){const _0x2adece=_0x5d58a1['item'],_0x161266=_0x22b9ee[_0x22b9ee['length']-0x1];if(_0x2adece['is']('$textProxy'))_0x161266&&_0x161266['type']['indexOf']('Container')>-0x1&&_0x22b9ee['pop'](),_0x161266&&'text'==_0x161266['type']?_0x161266[_0x5936fd]+=_0x2adece['data']:_0x22b9ee['push']({'type':'text','add':'add'==_0x5936fd?_0x2adece['data']:'','remove':'remove'==_0x5936fd?_0x2adece['data']:''});else{if(this['_schema']['isObject'](_0x2adece)){const _0x5bfd4d=_0x2adece;if(_0x161266&&_0x161266['type']['indexOf']('Container')>-0x1&&_0x22b9ee['pop'](),'elementEnd'==_0x5d58a1['type'])continue;_0x161266&&_0x161266['type']==_0x5936fd+'Object'&&_0x161266['element']['name']==_0x5bfd4d['name']?_0x161266['quantity']++:_0x22b9ee['push']({'type':_0x5936fd+'Object','element':_0x5bfd4d,'quantity':0x1}),_0x2daf35['skip'](_0x48235c=>!('elementEnd'==_0x48235c['type']&&_0x48235c['item']==_0x2adece));}else{if(this['_schema']['checkChild'](_0x2adece,'$text')||_0x2adece['is']('element','softBreak')){const _0x458e20=_0x2adece;if('add'==_0x5936fd&&'elementStart'==_0x5d58a1['type']||'remove'==_0x5936fd&&'elementEnd'==_0x5d58a1['type'])continue;if(_0x161266&&-0x1==_0x161266['type']['indexOf']('Container')){'text'==_0x161266['type']&&(_0x161266[_0x5936fd]+='\x0a');continue;}let _0x43f1d6;if(_0x43f1d6='add'==_0x5936fd?_0x458e20['nextSibling']&&!this['_schema']['isObject'](_0x458e20['nextSibling'])?_0x458e20['nextSibling']:null:_0x458e20['previousSibling']&&!this['_schema']['isObject'](_0x458e20['previousSibling'])?_0x458e20['previousSibling']:null,_0x458e20['isEmpty']||_0x43f1d6&&_0x43f1d6['isEmpty']){const _0x35a29e=_0x43f1d6&&_0x43f1d6['isEmpty']?_0x43f1d6:_0x458e20;_0x161266&&_0x161266['type']==_0x5936fd+'EmptyContainer'&&_0x161266['element']['name']==_0x35a29e['name']?_0x161266['quantity']++:_0x22b9ee['push']({'type':_0x5936fd+'EmptyContainer','element':_0x35a29e,'quantity':0x1});}else _0x22b9ee['push']({'type':_0x5936fd+'Container','element':_0x458e20});}}}}}['_resolveDescriptionItems'](_0xe74452){const _0x383897=this['_locale'],_0x399312=[],_0x2ca003=[],_0x5ba6ae=[];for(const _0x160e2f of _0xe74452)switch(_0x160e2f['type']){case'text':if(_0x160e2f['add']=_0x160e2f['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x160e2f['remove']=_0x160e2f['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x160e2f['add']&&''!=_0x160e2f['remove']){_0x399312['push']({'type':'replace','content':c(_0x383897,'REPLACE_TEXT',['\x22'+_0x160e2f['remove']+'\x22','\x22'+_0x160e2f['add']+'\x22'])});continue;}if(null!=_0x160e2f['add']['match'](/^ +$/)){_0x399312['push']({'type':'insertion','content':c(_0x383897,'*Insert:*\x20%0',c(_0x383897,'ELEMENT_SPACE',_0x160e2f['add']['length']))});continue;}if(null!=_0x160e2f['remove']['match'](/^ +$/)){_0x399312['push']({'type':'deletion','content':c(_0x383897,'*Remove:*\x20%0',c(_0x383897,'ELEMENT_SPACE',_0x160e2f['remove']['length']))});continue;}if(''!=_0x160e2f['add']){_0x399312['push']({'type':'insertion','content':c(_0x383897,'*Insert:*\x20%0','\x22'+_0x160e2f['add']+'\x22')});continue;}_0x399312['push']({'type':'deletion','content':c(_0x383897,'*Remove:*\x20%0','\x22'+_0x160e2f['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x399312['push']({'type':'insertion','content':c(_0x383897,'*Insert:*\x20%0',this['getItemLabel'](_0x160e2f['element'],_0x160e2f['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x399312['push']({'type':'deletion','content':c(_0x383897,'*Remove:*\x20%0',this['getItemLabel'](_0x160e2f['element'],_0x160e2f['quantity']))});continue;case'addContainer':_0x399312['push']({'type':'insertion','content':c(_0x383897,'*Split:*\x20%0',this['getItemLabel'](_0x160e2f['element'],_0x160e2f['quantity']))});continue;case'removeContainer':_0x399312['push']({'type':'deletion','content':c(_0x383897,'*Merge:*\x20%0',this['getItemLabel'](_0x160e2f['element'],_0x160e2f['quantity']))});continue;case'addFormat':_0x2ca003['push'](_0x160e2f['key']);continue;case'removeFormat':_0x5ba6ae['push'](_0x160e2f['key']);continue;default:_0x399312['push'](_0x160e2f);}if(_0x2ca003['length']){const _0x5a3f36=_0x2ca003['map'](_0x17458a=>this['_attributeLabels']['has'](_0x17458a)?this['_attributeLabels']['get'](_0x17458a):_0x17458a)['join'](',\x20');_0x399312['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x5a3f36)});}if(_0x5ba6ae['length']){const _0xfcb476=_0x5ba6ae['map'](_0x5aaed0=>this['_attributeLabels']['has'](_0x5aaed0)?this['_attributeLabels']['get'](_0x5aaed0):_0x5aaed0)['join'](',\x20');_0x399312['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0xfcb476)});}return _0x399312;}['_handleCustomCallbackDescription'](_0x229eac){for(const _0x1c8987 of this['_customCallbacks']){const _0x2a824b=_0x1c8987(_0x229eac);if(_0x2a824b&&'type'in _0x2a824b)return _0x2a824b;}}['_handleAttributeSuggestionDescription'](_0x146db3,_0x1c1381){const _0x5d8b29=_0x1c1381['data'],_0x5658c1=void 0x0===_0x5d8b29['newValue']?'removeFormat':'addFormat';_0x146db3['push']({'type':_0x5658c1,'key':_0x5d8b29['key']});}['_handleRenameSuggestionDescription'](_0x137400,_0x35ab5d){_0x137400['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x35ab5d['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x47e149,_0x3432a9,_0x2444c2){if(this['_addDescriptionItems'](_0x47e149,_0x3432a9),_0x2444c2&&_0x2444c2['getFirstRange']()&&!_0x3432a9['getFirstRange']()['end']['isEqual'](_0x2444c2['getFirstRange']()['start'])){const _0x11f32e=_0x47e149[_0x47e149['length']-0x1],_0x42e749='insertion'==_0x3432a9['type']?'add':'remove';_0x11f32e&&'text'==_0x11f32e['type']&&(_0x11f32e[_0x42e749]+='\x0a');}}}class U extends _0x53ae92{['afterInit'](){const _0x276d9e=this['editor'],_0xba4c06=_0x276d9e['plugins']['get']('TrackChangesEditing');_0x276d9e['commands']['get']('showAIAssistant')&&_0xba4c06['enableCommand']('showAIAssistant');}}class V extends _0x53ae92{['afterInit'](){const _0x504fec=this['editor'],_0x55a0f6=_0x504fec['locale'];if(!_0x504fec['plugins']['has']('AlignmentEditing'))return;const _0x4c6ad6=_0x504fec['plugins']['get']('TrackChangesEditing');_0x4c6ad6['enableDefaultAttributesIntegration']('alignment'),_0x4c6ad6['registerBlockAttribute']('alignment'),_0x4c6ad6['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x55a0f6,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a76d3=this['editor'],_0x1ce5ac=_0x3a76d3['locale'];_0x3a76d3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb1aac9=>{if('formatBlock'!=_0xb1aac9['type'])return;const {data:_0xbe0c71}=_0xb1aac9;if(_0xbe0c71&&'alignment'==_0xbe0c71['commandName']){const _0x25f98b=_0xbe0c71['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x1ce5ac,'*Format:*\x20%0',function(_0x370b26){switch(_0x370b26){case'left':return c(_0x1ce5ac,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x1ce5ac,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x1ce5ac,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x1ce5ac,'FORMAT_JUSTIFY_TEXT');}}(_0x25f98b))};}});}}const Qt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x53ae92{['afterInit'](){const _0x4fa6e3=this['editor'],_0x31c3e4=_0x4fa6e3['plugins']['get']('TrackChangesEditing'),_0x209e58=_0x4fa6e3['locale'];for(const _0x112da9 of Qt){if(!_0x4fa6e3['plugins']['has'](_0x112da9))continue;const _0x222b57=_0x112da9['slice'](0x0,-0x7)['toLowerCase'](),_0x2f99ea='FORMAT_'+_0x222b57['toUpperCase']();_0x31c3e4['enableDefaultAttributesIntegration'](_0x222b57),_0x31c3e4['registerInlineAttribute'](_0x222b57),_0x31c3e4['descriptionFactory']['registerAttributeLabel'](_0x222b57,c(_0x209e58,_0x2f99ea));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4fbe7a=this['editor'],_0x347a52=_0x4fbe7a['locale'],_0x267250=_0x4fbe7a['plugins']['get']('TrackChangesEditing');function _0x136496(_0x2d3e6d,_0x305dac){_0x267250['descriptionFactory']['registerDescriptionCallback'](_0x18d288=>{if('formatInline'!=_0x18d288['type'])return;const {data:_0x39394a}=_0x18d288;return _0x39394a&&_0x39394a['commandName']===_0x2d3e6d?_0x39394a['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x347a52,'*Format:*\x20%0',_0x305dac)}:{'type':'format','content':c(_0x347a52,'*Remove\x20format:*\x20%0',_0x305dac)}:void 0x0;});}_0x136496('bold',c(_0x347a52,'FORMAT_BOLD')),_0x136496('italic',c(_0x347a52,'FORMAT_ITALIC')),_0x136496('underline',c(_0x347a52,'FORMAT_UNDERLINE')),_0x136496('code',c(_0x347a52,'FORMAT_CODE')),_0x136496('strikethrough',c(_0x347a52,'FORMAT_STRIKETHROUGH')),_0x136496('subscript',c(_0x347a52,'FORMAT_SUBSCRIPT')),_0x136496('superscript',c(_0x347a52,'FORMAT_SUPERSCRIPT'));}}class G extends _0x53ae92{['afterInit'](){const _0x2efce5=this['editor'],_0x1ab3dc=_0x2efce5['locale'];if(!_0x2efce5['plugins']['has']('BlockQuoteEditing'))return;const _0x3b33cd=_0x2efce5['plugins']['get']('TrackChangesEditing'),_0x55e0aa=this['editor']['commands']['get']('blockQuote');_0x3b33cd['enableCommand']('blockQuote',(_0x4e3933,_0x3be6c7={})=>{const _0x4b406c=this['editor']['model']['document']['selection'],_0x51ada5=_0x3be6c7&&void 0x0!==_0x3be6c7['forceValue']?_0x3be6c7['forceValue']:!_0x55e0aa['value'];let _0x1a4300=[];if(_0x51ada5){const _0x4bc6d3=Array['from'](_0x4b406c['getSelectedBlocks']())['filter'](_0x3a8db9=>Yt(_0x3a8db9)||function(_0x59b68d,_0x17aef6){const _0x2cc66c=_0x17aef6['checkChild'](_0x59b68d['parent'],'blockQuote'),_0x5cfaef=_0x17aef6['checkChild'](['$root','blockQuote'],_0x59b68d);return _0x2cc66c&&_0x5cfaef;}(_0x3a8db9,this['editor']['model']['schema']));_0x1a4300=Xt(_0x4bc6d3,_0x2efce5['model']);}else{const _0x22bf98=Array['from'](_0x4b406c['getSelectedBlocks']())['filter'](_0x279dee=>Yt(_0x279dee));_0x1a4300=Xt(_0x22bf98,_0x2efce5['model']);}_0x2efce5['model']['change'](()=>{for(const _0x16ee15 of _0x1a4300)_0x3b33cd['markBlockFormat'](_0x16ee15,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x51ada5}]});});}),_0x3b33cd['descriptionFactory']['registerDescriptionCallback'](_0x52cb22=>{const {data:_0x177d7d}=_0x52cb22;if(_0x177d7d&&'blockQuote'==_0x177d7d['commandName']){const _0x308d32=c(_0x1ab3dc,'ELEMENT_BLOCK_QUOTE');return _0x177d7d['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x1ab3dc,'*Set\x20format:*\x20%0',_0x308d32)}:{'type':'format','content':c(_0x1ab3dc,'*Remove\x20format:*\x20%0',_0x308d32)};}});}}function Yt(_0x3cb39e){return'blockQuote'==_0x3cb39e['parent']['name'];}class L extends _0x53ae92{['afterInit'](){const _0x86a8eb=this['editor'],_0x23b107=_0x86a8eb['locale'],_0x402b50=_0x86a8eb['plugins']['get']('TrackChangesEditing');_0x86a8eb['plugins']['has']('BookmarkEditing')&&(_0x402b50['enableCommand']('insertBookmark'),_0x402b50['enableDefaultAttributesIntegration']('updateBookmark'),_0x402b50['registerBlockAttribute']('bookmarkId'),_0x402b50['descriptionFactory']['registerDescriptionCallback'](_0x4b0776=>{if('insertion'!=_0x4b0776['type']&&'deletion'!=_0x4b0776['type']&&'attribute'!=_0x4b0776['type'])return;const _0x57db06=_0x4b0776['getContainedElement']();if(null==_0x57db06)return;if(!_0x57db06['is']('element','bookmark'))return;const _0xb47439=_0x57db06['getAttribute']('bookmarkId');if('insertion'==_0x4b0776['type'])return{'type':'insertion','content':c(_0x23b107,'*Insert:*\x20%0','\x22'+_0xb47439+'\x22\x20'+c(_0x23b107,'ELEMENT_BOOKMARK'))};if('deletion'==_0x4b0776['type'])return{'type':'deletion','content':c(_0x23b107,'*Remove:*\x20%0','\x22'+_0xb47439+'\x22\x20'+c(_0x23b107,'ELEMENT_BOOKMARK'))};const {data:_0x129ea3}=_0x4b0776;if(!_0x129ea3||'bookmarkId'!=_0x129ea3['key'])return;return{'type':'format','content':c(_0x23b107,'*Set\x20bookmark:*\x20%0','\x22'+_0x129ea3['newValue']+'\x22')};}));}}class J extends _0x53ae92{['afterInit'](){const _0x2d3c16=this['editor'];_0x2d3c16['plugins']['has']('CaseChange')&&(_0x2d3c16['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x2d3c16['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x2d3c16['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x53ae92{['afterInit'](){const _0x543d7f=this['editor'];_0x543d7f['commands']['get']('ckbox')&&_0x543d7f['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x53ae92{['afterInit'](){const _0x23ceff=this['editor'];if(!_0x23ceff['plugins']['has']('CodeBlock'))return;const _0x55db41=_0x23ceff['plugins']['get']('TrackChangesEditing'),_0x2e5684=_0x23ceff['locale'],_0x6114ac=_0x23ceff['config']['get']('codeBlock')['languages'],_0x249821=_0x23ceff['commands']['get']('codeBlock');_0x55db41['enableCommand']('indentCodeBlock'),_0x55db41['enableCommand']('outdentCodeBlock'),_0x55db41['enableCommand']('codeBlock',(_0x14680a,_0x4cb19d={})=>{const _0x54f9cf=_0x23ceff['model'],_0x5b5565=_0x23ceff['model']['document']['selection'],_0x4fbfa9=_0x4cb19d&&void 0x0!==_0x4cb19d['forceValue']?_0x4cb19d['forceValue']:!_0x249821['value'];let _0x2b74fe;_0x4cb19d['language']||(_0x4cb19d['language']=_0x6114ac[0x0]['language']),_0x2b74fe=_0x4fbfa9?Array['from'](_0x5b5565['getSelectedBlocks']())['filter'](_0x159df9=>oo(_0x159df9)||function(_0x4db4cf,_0x2fddcf){if(_0x4db4cf['is']('rootElement')||_0x2fddcf['isLimit'](_0x4db4cf))return!0x1;return _0x2fddcf['checkChild'](_0x4db4cf['parent'],'codeBlock');}(_0x159df9,_0x54f9cf['schema'])):Array['from'](_0x5b5565['getSelectedBlocks']())['filter'](_0x4fb2d7=>oo(_0x4fb2d7));const _0x290455=Xt(_0x2b74fe,_0x54f9cf);_0x54f9cf['change'](()=>{for(const _0x47836e of _0x290455)_0x55db41['markBlockFormat'](_0x47836e,{'commandName':'codeBlock','commandParams':[{..._0x4cb19d,'forceValue':_0x4fbfa9}],'formatGroupId':'blockName'});});}),(_0x55db41['descriptionFactory']['registerElementLabel']('codeBlock',_0x41c6c5=>c(_0x2e5684,'ELEMENT_CODE_BLOCK',_0x41c6c5)),_0x55db41['descriptionFactory']['registerDescriptionCallback'](_0x4dab37=>{if('formatBlock'!=_0x4dab37['type'])return;const _0x163334=_0x2e5684['t'],{data:_0x567ae4}=_0x4dab37;if(!_0x567ae4||'codeBlock'!=_0x567ae4['commandName'])return;const _0xada14=_0x567ae4['commandParams'][0x0]['language'],_0x293d56=_0x163334(_0x6114ac['find'](_0x10ad23=>_0x10ad23['language']===_0xada14)['label'])['toLowerCase']();return _0x567ae4['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x2e5684,'*Set\x20format:*\x20%0',c(_0x2e5684,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x293d56+')')}:{'type':'format','content':c(_0x2e5684,'*Remove\x20format:*\x20%0',c(_0x2e5684,'ELEMENT_CODE_BLOCK',0x1))};}));}}function oo(_0x1ffecf){return'codeBlock'==_0x1ffecf['name'];}class q extends _0x53ae92{['afterInit'](){const _0x2034c7=this['editor'];if(!_0x2034c7['plugins']['has']('CommentsEditing'))return;_0x2034c7['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function no(_0x215951,_0x391360,_0x4dc630){const _0x38aa22=[];for(const _0x5ed86c of _0x391360['getItems']())_0x5ed86c['hasAttribute'](_0x215951)&&_0x38aa22['push'](_0x4dc630['createRangeOn'](_0x5ed86c));return _0x38aa22;}function De(_0xc8f7eb,_0x3b85dc,{showActiveMarker:_0x106872=!0x0}={}){const _0x17c13e=_0xc8f7eb['plugins']['get']('TrackChangesEditing');return(_0x9ef24d,_0x2f249b,_0x3b9a82)=>{if(!_0x3b9a82['consumable']['test'](_0x2f249b['markerRange'],_0x9ef24d['name']))return;const _0x9dc369=_0x2f249b['markerRange']['getWalker'](),_0x107aa5=_0x2f249b['markerRange']['start'],_0xf4150b=_0xc8f7eb['model']['schema'];let _0x19e9a1=null,_0x950ce7=null,_0x484845=!0x1,_0x232993=!0x1;for(const _0x4bf9a7 of _0x9dc369){const _0x30a874=_0x4bf9a7['item'];_0x484845=_0x484845||_0xf4150b['isContent'](_0x30a874);const _0x332d15=_0x3b9a82['mapper']['toViewElement'](_0x30a874);if(_0x332d15&&_0x332d15['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4bf9a7['type']&&(_0xf4150b['isBlock'](_0x30a874)&&!_0xf4150b['isLimit'](_0x30a874)&&(_0x30a874['nextSibling']||_0x107aa5['isAtEnd']?_0x19e9a1&&_0x19e9a1['parent']==_0x30a874||(_0x19e9a1=_0x30a874,_0x5a5522(_0x4bf9a7['previousPosition']),_0x232993=!0x0):_0x950ce7=_0x950ce7||_0x4bf9a7['previousPosition']));}function _0x5a5522(_0x2a88a0){const {authorId:_0x4f39ff}=_0x17c13e['_splitMarkerName'](_0x2f249b['markerName']),_0x5cdce7=_0x3b9a82['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3b85dc,'data-author-id':_0x4f39ff}),_0x24b3c0=_0x3b9a82['mapper']['toViewPosition'](_0x2a88a0);_0x106872&&_0x17c13e['activeMarkers']['includes'](_0x2f249b['markerName'])&&_0x3b9a82['writer']['addClass']('ck-suggestion-marker--active',_0x5cdce7),_0x3b9a82['writer']['insert'](_0x24b3c0,_0x5cdce7),_0x3b9a82['mapper']['bindElementToMarker'](_0x5cdce7,_0x2f249b['markerName']);}_0x484845||_0x232993||!_0x950ce7||_0x5a5522(_0x950ce7);};}class z extends _0x53ae92{static get['requires'](){return[_0x27e985];}['init'](){const _0x2da285=this['editor'],_0x57d240=_0x2da285['plugins']['get']('TrackChangesEditing');_0x57d240['enableCommand']('delete');const _0x2516d4=_0x2da285['commands']['get']('deleteForward');_0x57d240['enableCommand']('deleteForward',(_0x506332,_0x255afa={})=>{const _0x32b11c=_0x2da285['model']['createSelection'](_0x2da285['model']['document']['selection']);_0x32b11c['isCollapsed']&&_0x2da285['model']['modifySelection'](_0x32b11c,{'direction':'forward','unit':_0x255afa['unit']});const _0x1a4222=_0x32b11c['getFirstRange'](),_0x4db71b=_0x7362da['fromRange'](_0x1a4222);let _0x5dbf04;_0x506332(_0x255afa),_0x5dbf04='$graveyard'==_0x4db71b['root']['rootName']?_0x2da285['model']['createRange'](_0x1a4222['start']):_0x2da285['model']['createRange'](_0x4db71b['start'],_0x4db71b['end']),_0x4db71b['detach'](),_0x2da285['model']['enqueueChange'](_0x2516d4['buffer']['batch'],_0x17021f=>{_0x2516d4['buffer']['lock'](),_0x17021f['setSelection'](_0x17021f['createRange'](_0x5dbf04['end'])),_0x2516d4['buffer']['unlock']();});}),_0x2da285['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x2da285,'merge'),{'priority':'high'}),_0x2da285['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x34d0e0,_0x1ec797,_0xad5f10)=>{_0xad5f10['options']['showSuggestionHighlights']&&De(_0x2da285,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x34d0e0,_0x1ec797,_0xad5f10);},{'priority':'high'}),_0x2da285['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x318cda,_0x18887b,_0xba3322)=>{const _0x45c113=_0xba3322['mapper']['markerNameToElements'](_0x18887b['markerName']);if(_0x45c113){for(const _0x21b54b of _0x45c113)_0x21b54b['is']('uiElement')&&(_0xba3322['mapper']['unbindElementFromMarkerName'](_0x21b54b,_0x18887b['markerName']),_0xba3322['writer']['remove'](_0x21b54b));}},{'priority':'high'});}}class W extends _0x53ae92{['afterInit'](){const _0x1e6a8c=this['editor'];if(!_0x1e6a8c['plugins']['has']('ListEditing'))return;const _0x47055a=_0x1e6a8c['locale'],_0x4b38f8=_0x1e6a8c['plugins']['get']('TrackChangesEditing'),_0x57261a=_0x1e6a8c['plugins']['has']('TodoListEditing'),_0x146c6c=!!_0x1e6a8c['config']['get']('list.multiBlock');function _0xd2a890(_0x4490ab){return{'type':'format','content':''+c(_0x47055a,'*Set\x20format:*\x20%0',_0x4490ab)};}function _0xa7f148(_0x4a336e){return{'type':'format','content':''+c(_0x47055a,'*Remove\x20format:*\x20%0',_0x4a336e)};}_0x4b38f8['enableDefaultAttributesIntegration']('numberedList'),_0x4b38f8['enableDefaultAttributesIntegration']('bulletedList'),_0x4b38f8['enableDefaultAttributesIntegration']('customNumberedList'),_0x4b38f8['enableDefaultAttributesIntegration']('customBulletedList'),_0x4b38f8['enableDefaultAttributesIntegration']('indentList'),_0x4b38f8['enableDefaultAttributesIntegration']('outdentList'),_0x4b38f8['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4b38f8['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4b38f8['registerBlockAttribute']('listItemId'),_0x4b38f8['registerBlockAttribute']('listType'),_0x4b38f8['registerBlockAttribute']('listIndent'),_0x146c6c&&(_0x4b38f8['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4b38f8['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x57261a&&(_0x4b38f8['enableDefaultAttributesIntegration']('todoList'),_0x4b38f8['enableDefaultAttributesIntegration']('checkTodoList'),_0x4b38f8['registerBlockAttribute']('todoListChecked'),_0x4b38f8['descriptionFactory']['registerDescriptionCallback'](_0x550d74=>{const {data:_0x57b6eb}=_0x550d74;if(_0x57b6eb&&'todoListChecked'==_0x57b6eb['key'])return{'type':'format','content':_0x57b6eb['newValue']?c(_0x47055a,'*Check\x20item*'):c(_0x47055a,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x3f0df1=>{if(_0x3f0df1['batch']['isUndo'])return!0x1;let _0x1984e8=!0x1;const _0xddb77c=_0x4b38f8['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x371b62=>'todoListChecked'===_0x4b38f8['_getAttributeKey'](_0x371b62));for(const _0x46db92 of _0xddb77c){'todo'!=_0x46db92['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4b38f8['_findSuggestions'](_0x46db92['getFirstRange'](),'attribute')['find'](_0x59ceb1=>'listType'===_0x4b38f8['_getAttributeKey'](_0x59ceb1['suggestion']))||(_0x3f0df1['removeMarker'](_0x46db92['getFirstMarker']()),_0x1984e8=!0x0));}return _0x1984e8;})),_0x4b38f8['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x47055a,'FORMAT_INDENT'));const _0x3c687e={'type':'format','content':''};_0x4b38f8['descriptionFactory']['registerDescriptionCallback'](_0x9fe488=>{const {data:_0x179acb}=_0x9fe488;if(!_0x179acb||'listType'!=_0x179acb['key'])return;let _0x57ae32=_0x9fe488['head'];for(;_0x57ae32;){if(_0x57ae32['data']&&(('listStyle'==_0x57ae32['data']['key']||'listMarkerStyle'==_0x57ae32['data']['key'])&&(_0x57ae32['data']['newValue']&&'default'!=_0x57ae32['data']['newValue']||'default'!=_0x57ae32['data']['oldValue']&&!_0x179acb['newValue'])||!_0x146c6c&&_0x57ae32['data']['key']==u))return _0x3c687e;_0x57ae32=_0x57ae32['next'];}if(null==_0x179acb['newValue'])switch(_0x179acb['oldValue']){case'bulleted':return _0xa7f148(c(_0x47055a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xa7f148(c(_0x47055a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xa7f148(c(_0x47055a,'ELEMENT_TODO_LIST'));}switch(_0x179acb['newValue']){case'bulleted':return _0xd2a890(c(_0x47055a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xd2a890(c(_0x47055a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xd2a890(c(_0x47055a,'ELEMENT_TODO_LIST'));}}),_0x4b38f8['descriptionFactory']['registerDescriptionCallback'](_0x3098e1=>{const {data:_0x1f65cb}=_0x3098e1;if(_0x1f65cb&&'listIndent'==_0x1f65cb['key'])return null==_0x1f65cb['newValue']||null==_0x1f65cb['oldValue']&&0x0==_0x1f65cb['newValue']?_0x3c687e:void 0x0;}),_0x4b38f8['descriptionFactory']['registerDescriptionCallback'](_0x3e03e2=>{if('attribute'!=_0x3e03e2['type'])return;const {data:_0x5085d0}=_0x3e03e2;if(!_0x5085d0||'listItemId'!=_0x5085d0['key'])return;const _0x48837c=Te(_0x3e03e2);return'newValue'==_0x48837c?{'type':'format','content':c(_0x47055a,'*Merge:*\x20list\x20item')}:'oldValue'==_0x48837c?{'type':'format','content':c(_0x47055a,'*Split:*\x20list\x20item')}:_0x3c687e;}),_0x1e6a8c['model']['document']['registerPostFixer'](_0x5bb07a=>this['listItemIdFixer'](_0x5bb07a)),_0x1e6a8c['model']['document']['registerPostFixer'](_0x2a1d72=>this['noTrackChangesFixer'](_0x2a1d72)),_0x1e6a8c['model']['document']['on']('change:data',(_0x49c2f1,_0x1f51e1)=>{if(_0x1f51e1['isUndo']||!_0x1f51e1['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x3fd294){if(_0x3fd294['batch']['isUndo']||!_0x3fd294['batch']['isLocal'])return!0x1;let _0x53ad04=!0x1;const _0x45ea2e=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x355c58=>_0x355c58['data']&&'listItemId'==_0x355c58['data']['key'])['filter'](_0x316f5f=>_0x316f5f['data']['newValue']&&_0x316f5f['data']['oldValue']);for(const _0x2ff5cf of _0x45ea2e)Te(_0x2ff5cf)||(_0x3fd294['removeMarker'](_0x2ff5cf['getFirstMarker']()),_0x53ad04=!0x0);return _0x53ad04;}['noTrackChangesFixer'](_0x813549){if(_0x813549['batch']['isUndo']||!_0x813549['batch']['isLocal'])return!0x1;const _0x2fc8ea=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2fc8ea['trackChangesCommand']['value'])return!0x1;let _0x2e0421=!0x1;const _0x256b78=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x246647=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x2b06d8=>'attribute'==_0x2b06d8['type'])['filter'](_0x5dae9e=>_0x256b78['includes'](_0x5dae9e['attributeKey']));if(0x0==_0x246647['length'])return _0x2e0421;for(const _0x615b59 of _0x246647){const _0x4770d4=_0x2fc8ea['_findSuggestions'](_0x615b59['range'],'attribute')['filter'](_0x1a9546=>!_0x1a9546['meta']['isNextTo'])['map'](_0x1b2c2a=>_0x1b2c2a['suggestion'])['filter'](_0x6c2f8e=>{const _0x42d3a7=_0x2fc8ea['_getAttributeKey'](_0x6c2f8e);return _0x256b78['includes'](_0x42d3a7);});if(_0x4770d4['length']){for(const _0x1f1508 of _0x4770d4)_0x813549['removeMarker'](_0x1f1508['getFirstMarker']());_0x2e0421=!0x0;}}return _0x2e0421;}['assureChains'](){const _0x5d56e2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x113ebc=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x1bddc6;const _0x494dce=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xcb0e42=>{if(_0xcb0e42['data']['oldRange']||!_0xcb0e42['data']['newRange'])return null;if(!_0xcb0e42['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x427620}=_0x5d56e2['_splitMarkerName'](_0xcb0e42['name']);if(!_0x5d56e2['hasSuggestion'](_0x427620))return null;const _0xfb0464=_0x5d56e2['getSuggestion'](_0x427620);return _0x113ebc['includes'](_0xfb0464['data']['key']);})['map'](_0xa9774f=>{const {id:_0x58e7e4}=_0x5d56e2['_splitMarkerName'](_0xa9774f['name']),_0x196127=_0x5d56e2['getSuggestion'](_0x58e7e4);return _0x1bddc6=_0x196127['attributes']['groupId'],_0x196127['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x494dce['size'])return;const _0x37cb87=_0x5d56e2['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x179fc7=>'attribute'==_0x179fc7['type']&&_0x179fc7['data']&&_0x113ebc['includes'](_0x179fc7['data']['key'])&&_0x179fc7['attributes']['groupId']!=_0x1bddc6)['map'](_0x1abdc2=>({'listItem':_0x1abdc2['getFirstRange']()['start']['nodeAfter'],'groupId':_0x1abdc2['attributes']['groupId']})),_0x4103f5=new Set();for(const {groupId:_0x236c0b,listItem:_0x362162}of _0x37cb87)_0x494dce['has'](_0x362162)&&_0x4103f5['add'](_0x236c0b);for(const _0x36529b of _0x5d56e2['getSuggestions']())_0x4103f5['has'](_0x36529b['attributes']['groupId'])&&_0x36529b['setAttribute']('groupId',_0x1bddc6);}['_supportLegacySuggestions'](){const _0x557b24=this['editor'],_0x5e9da7=_0x557b24['locale'],_0xe5cd=_0x557b24['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0xe5cd['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x42cbaf,_0x1b7e44){const _0x43cab9=[];for(let _0x159d7e of _0x42cbaf)_0x159d7e['start']['nodeAfter']===_0x159d7e['end']['parent']&&(_0x159d7e=_0x557b24['model']['createRange'](_0x557b24['model']['createPositionAt'](_0x159d7e['start']['nodeAfter'],0x0))),_0x43cab9['push'](_0x159d7e);_0x557b24['model']['change'](_0x54821b=>{const _0x3d64d2=_0x557b24['model']['document']['selection'],_0x27cce2=Array['from'](_0x3d64d2['getRanges']())['map'](_0x4d115c=>_0x7362da['fromRange'](_0x4d115c));_0x54821b['setSelection'](_0x43cab9),_0x557b24['commands']['get'](_0x1b7e44['commandName'])['refresh'](),_0x1b7e44['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x557b24['execute'](_0x1b7e44['commandName'],..._0x1b7e44['commandParams']),_0x54821b['setSelection'](_0x27cce2);for(const _0x250add of _0x27cce2)_0x250add['detach']();});}),_0xe5cd['descriptionFactory']['registerElementLabel'](function(_0x5d2c7a){const _0x466676=!_0x557b24['model']['schema']['isObject'](_0x5d2c7a),_0x4fac8d=_0x5d2c7a['previousSibling'],_0x4d3247=_0x5d2c7a['nextSibling'],_0x11e159=_0x5d2c7a['getAttribute']('listItemId'),_0x2c3561=!_0x4fac8d||_0x4fac8d['getAttribute']('listItemId')!==_0x11e159,_0x4ae8f5=!_0x4d3247||_0x4d3247['getAttribute']('listItemId')!==_0x11e159;return _0x466676&&Boolean(_0x11e159)&&_0x2c3561&&_0x4ae8f5;},_0x350313=>c(_0x5e9da7,'ELEMENT_LIST_ITEM',_0x350313));}['_registerLegacyDescription'](){const _0x35779c=this['editor'],_0x2d6d2d=_0x35779c['locale'];function _0x19f4b1(_0x44fb9a){const _0x8b5af=_0x35779c['commands']['get']('bulletedList')['value'],_0x10cd82=_0x35779c['commands']['get']('numberedList')['value'];return'numberedList'===_0x44fb9a?_0x8b5af:_0x10cd82;}_0x35779c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x1ed8e3){if('formatBlock'!=_0x1ed8e3['type'])return;const {data:_0x37405c}=_0x1ed8e3;if(!_0x37405c)return;let _0x449451,_0x38bc2b,_0x47eb44,_0x3e7384;switch(_0x37405c['commandName']){case'bulletedList':_0x47eb44=_0x37405c['commandParams'][0x0]['forceValue'],_0x3e7384=_0x19f4b1(_0x37405c['commandName']),_0x449451=_0x47eb44?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3e7384&&_0x35779c['config']['get']('list.multiBlock')||(_0x449451='*Change\x20to:*\x20%0'),_0x38bc2b={'type':'format','content':c(_0x2d6d2d,_0x449451,c(_0x2d6d2d,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x47eb44=_0x37405c['commandParams'][0x0]['forceValue'],_0x3e7384=_0x19f4b1(_0x37405c['commandName']),_0x449451=_0x47eb44?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3e7384&&_0x35779c['config']['get']('list.multiBlock')||(_0x449451='*Change\x20to:*\x20%0'),_0x38bc2b={'type':'format','content':c(_0x2d6d2d,_0x449451,c(_0x2d6d2d,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x449451='*Indent:*\x20%0',_0x38bc2b={'type':'format','content':c(_0x2d6d2d,_0x449451,c(_0x2d6d2d,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x449451=function(_0x6acdad){const _0x518514=_0x6acdad['getFirstRange']();let _0x4890e2=_0x518514['start']['nodeAfter'];for(;_0x4890e2&&_0x518514['containsItem'](_0x4890e2);){if(_0x4890e2['getAttribute']('listIndent')>0x0)return!0x1;_0x4890e2=_0x4890e2['nextSibling'];}return!0x0;}(_0x1ed8e3)?c(_0x2d6d2d,'*Format:*\x20remove\x20from\x20%0',c(_0x2d6d2d,function(_0x4acde0){return'ELEMENT_'+_0x4acde0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x1ed8e3))):c(_0x2d6d2d,'*Outdent:*\x20%0',c(_0x2d6d2d,'ELEMENT_LIST_ITEM')),_0x38bc2b={'type':'format','content':_0x449451};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x37405c['multipleBlocks']&&(_0x449451='*Merge:*\x20%0',_0x38bc2b={'type':'deletion','content':c(_0x2d6d2d,_0x449451,c(_0x2d6d2d,'ELEMENT_LIST_ITEM'))});}return _0x38bc2b;});}}function Te(_0x2e230a){let _0x20f13b=_0x2e230a['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x20f13b;){const _0x3260bb=_0x20f13b['getAttribute']('listItemId');if(!_0x3260bb)return!0x1;if(_0x3260bb==_0x2e230a['data']['newValue'])return'newValue';if(_0x3260bb==_0x2e230a['data']['oldValue'])return'oldValue';_0x20f13b=_0x20f13b['previousSibling'];}return!0x1;}class Se extends _0x53ae92{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x17529c=this['editor']['config']['get']('list.properties'),_0xefcd5c=this['editor']['plugins']['get']('TrackChangesEditing');_0x17529c['styles']&&(_0xefcd5c['enableDefaultAttributesIntegration']('listStyle'),_0xefcd5c['registerBlockAttribute']('listStyle')),_0x17529c['reversed']&&(_0xefcd5c['enableDefaultAttributesIntegration']('listReversed'),_0xefcd5c['registerBlockAttribute']('listReversed')),_0x17529c['startIndex']&&(_0xefcd5c['enableDefaultAttributesIntegration']('listStart'),_0xefcd5c['registerBlockAttribute']('listStart'));const _0x208c6e={'type':'format','content':''};_0xefcd5c['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4a5034=this['editor']['locale'];_0xefcd5c['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x4a5034,'FORMAT_LIST_REVERSED')),_0xefcd5c['descriptionFactory']['registerDescriptionCallback'](_0x3b5521=>{const {data:_0x401140}=_0x3b5521;if(_0x401140&&'listReversed'==_0x401140['key'])return null==_0x401140['newValue']||0x0==_0x401140['newValue']&&null==_0x401140['oldValue']?_0x208c6e:void 0x0;}),_0xefcd5c['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x4a5034,'FORMAT_LIST_START')),_0xefcd5c['descriptionFactory']['registerDescriptionCallback'](_0x366cda=>{const {data:_0x399c67}=_0x366cda;if(_0x399c67&&'listStart'==_0x399c67['key'])return null==_0x399c67['newValue']||0x1==_0x399c67['newValue']&&null==_0x399c67['oldValue']?_0x208c6e:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x128dba=>{if(_0x128dba['batch']['isUndo'])return!0x1;let _0x2cfd76=!0x1;const _0x354303=_0xefcd5c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5eb88a=>{const _0x33e70f=_0xefcd5c['_getAttributeKey'](_0x5eb88a);return'listStart'==_0x33e70f||'listReversed'==_0x33e70f;});for(const _0x24d34d of _0x354303){const _0x3164cc=_0x24d34d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x3164cc||'customNumbered'==_0x3164cc)continue;_0xefcd5c['_findSuggestions'](_0x24d34d['getFirstRange'](),'attribute')['find'](_0x1a335c=>'listType'==_0xefcd5c['_getAttributeKey'](_0x1a335c['suggestion']))||(_0x128dba['removeMarker'](_0x24d34d['getFirstMarker']()),_0x2cfd76=!0x0);}return _0x2cfd76;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x3744d8){const _0x57ee15=this['editor']['locale'],{data:_0xcd177}=_0x3744d8,_0x489f5b={'type':'format','content':''};if(!_0xcd177||'listStyle'!=_0xcd177['key'])return;if(!_0xcd177['oldValue'])return'default'==_0xcd177['newValue']?_0x489f5b:{'type':'format','content':''+c(_0x57ee15,'*Set\x20format:*\x20%0',c(_0x57ee15,this['_getTranslationKeyForListStyle'](_0xcd177['newValue'])))};if(!_0xcd177['newValue']){if('default'==_0xcd177['oldValue'])return _0x489f5b;let _0x5ec66a=_0x3744d8['head'];for(;_0x5ec66a;){if(_0x5ec66a['data']&&'listType'==_0x5ec66a['data']['key']&&_0x5ec66a['data']['newValue'])return _0x489f5b;_0x5ec66a=_0x5ec66a['next'];}return{'type':'format','content':''+c(_0x57ee15,'*Remove\x20format:*\x20%0',c(_0x57ee15,this['_getTranslationKeyForListStyle'](_0xcd177['oldValue'])))};}if('default'!=_0xcd177['newValue'])return{'type':'format','content':''+c(_0x57ee15,'*Set\x20format:*\x20%0',c(_0x57ee15,this['_getTranslationKeyForListStyle'](_0xcd177['newValue'])))};let _0x4ba047=_0x3744d8['head'];for(;_0x4ba047;){if(_0x4ba047['data']&&'listType'==_0x4ba047['data']['key']&&_0x4ba047['data']['newValue']&&_0x4ba047['data']['oldValue'])return _0x489f5b;_0x4ba047=_0x4ba047['next'];}return{'type':'format','content':c(_0x57ee15,'*Set\x20format:*\x20%0',c(_0x57ee15,'ELEMENT_'+_0x3744d8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1ed82f=this['editor'],_0x2f6419=_0x1ed82f['locale'];_0x1ed82f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a4155=>{if('formatBlock'!=_0x1a4155['type'])return;const {data:_0x4d10e5}=_0x1a4155;if(!_0x4d10e5)return;let _0x49899b,_0x4a7d67;switch(_0x4d10e5['commandName']){case'listStyle':_0x49899b='*Change\x20to:*\x20%0',_0x4a7d67={'type':'format','content':c(_0x2f6419,_0x49899b,c(_0x2f6419,this['_getTranslationKeyForListStyle'](_0x4d10e5['commandParams'][0x0]['type'])))};break;case'listReversed':_0x49899b=_0x4d10e5['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4a7d67={'type':'format','content':c(_0x2f6419,_0x49899b)};break;case'listStart':_0x49899b='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4a7d67={'type':'format','content':c(_0x2f6419,_0x49899b,_0x4d10e5['commandParams'][0x0]['startIndex'])};}return _0x4a7d67;});}['_getTranslationKeyForListStyle'](_0x4cb4a8){return'ELEMENT_'+function(_0x1e97fd){if(_e['includes'](_0x1e97fd))return'bulleted';if(Re['includes'](_0x1e97fd))return'numbered';return null;}(_0x4cb4a8)['toUpperCase']()+'_LIST_'+_0x4cb4a8['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x53ae92{static get['requires'](){return[_0x39beb8];}['init'](){const _0x3c2132=this['editor'],_0x30d709=_0x3c2132['plugins']['get']('TrackChangesEditing'),_0x43a93e=_0x3c2132['commands']['get']('enter');_0x30d709['enableCommand']('enter',()=>{_0x3c2132['model']['change'](_0x45da12=>{const _0x499753=_0x3c2132['model']['document']['selection'],_0x4854ba=_0x499753['getFirstPosition'](),_0x431c4f=_0x7362da['fromRange'](_0x499753['getFirstRange']());if(_0x43a93e['enterBlock'](_0x45da12)){const _0x10a4e5=_0x3c2132['model']['createPositionAt'](_0x4854ba['parent']['nextSibling'],0x0),_0x37991e=_0x45da12['createRange'](_0x4854ba,_0x10a4e5);_0x30d709['markInsertion'](_0x37991e);}else _0x45da12['setSelection'](_0x45da12['createRange'](_0x431c4f['end']));_0x431c4f['detach'](),_0x43a93e['fire']('afterExecute',{'writer':_0x45da12});});}),_0x3c2132['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x3c2132,'split'),{'priority':'high'}),_0x3c2132['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x8519d9,_0x3ef895,_0x4ee01f)=>{const _0x4c59c8=_0x4ee01f['mapper']['markerNameToElements'](_0x3ef895['markerName']);if(_0x4c59c8){for(const _0x542f3d of _0x4c59c8)_0x542f3d['hasClass']('ck-suggestion-marker-split')&&(_0x4ee01f['mapper']['unbindElementFromMarkerName'](_0x542f3d,_0x3ef895['markerName']),_0x4ee01f['writer']['remove'](_0x542f3d));}},{'priority':'high'}),_0x3c2132['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x484a8b,_0x200df1,_0x5cebaf)=>{_0x5cebaf['options']['showSuggestionHighlights']&&De(_0x3c2132,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x484a8b,_0x200df1,_0x5cebaf);},{'priority':'high'});}}class Y extends _0x53ae92{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3630a4=this['editor']['plugins']['get']('TrackChangesEditing');_0x3630a4['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3630a4['enableCommand']('findNext'),_0x3630a4['enableCommand']('findPrevious'),_0x3630a4['enableCommand']('replace'),_0x3630a4['enableCommand']('replaceAll');}['handleFindCommand'](_0x2585ab,_0x353657,_0x44d1de={}){const _0x4dea26=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2585ab(_0x5a29d8=>{let _0x37f182=('string'==typeof _0x353657?_0x4dea26['findByTextCallback'](_0x353657,_0x44d1de):_0x353657)(_0x5a29d8);Array['isArray'](_0x37f182)&&(_0x37f182={'results':_0x37f182,'searchText':'string'==typeof _0x353657?_0x353657:''});const _0x55d9b0=_0x37f182['results']['filter'](_0x16b67c=>!0x1===this['_isInDeletionRange'](_0x16b67c,_0x5a29d8['item']));return{..._0x37f182,'results':_0x55d9b0};},_0x44d1de);}['_isInDeletionRange'](_0x23a480,_0x5e1fa9){const _0x30cd04=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5e1fa9,_0x23a480['start']),this['editor']['model']['createPositionAt'](_0x5e1fa9,_0x23a480['end']));for(const _0x37635d of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x30cd04['getIntersection'](_0x37635d['getRange']()))return!0x0;return!0x1;}}const to=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x53ae92{['afterInit'](){const _0x48bd56=this['editor']['locale'],_0x3af2ea=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2a013c,commandName:_0x4a3604}of to)this['editor']['plugins']['has'](_0x2a013c)&&(_0x3af2ea['enableDefaultAttributesIntegration'](_0x4a3604),_0x3af2ea['registerInlineAttribute'](_0x4a3604));_0x3af2ea['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x48bd56,'FORMAT_FONT_SIZE')),_0x3af2ea['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x48bd56,'FORMAT_FONT_FAMILY')),_0x3af2ea['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x48bd56,'FORMAT_FONT_COLOR')),_0x3af2ea['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x48bd56,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x405b95=this['editor'],_0x3e448c=_0x405b95['locale'];_0x405b95['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36e8ce=>{const _0x2e6faf=_0x3e448c['t'];if('formatInline'!=_0x36e8ce['type'])return;const {data:_0x5223a6}=_0x36e8ce;if(null!=_0x5223a6){if('fontSize'==_0x5223a6['commandName']){const _0x1fbb78=_0x5223a6['commandParams'][0x0]['value'];if(_0x1fbb78){const _0x47f989=_0x2e6faf(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x40cda7=>_0x40cda7['model']==_0x1fbb78)['title'])['toLowerCase']();return{'type':'format','content':c(_0x3e448c,'*Set\x20font\x20size:*\x20%0',_0x47f989)};}return{'type':'format','content':c(_0x3e448c,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5223a6['commandName']){const _0x8c6364=_0x5223a6['commandParams'][0x0]['value'];return _0x8c6364?{'type':'format','content':c(_0x3e448c,'*Set\x20font\x20family:*\x20%0',_0x8c6364)}:{'type':'format','content':c(_0x3e448c,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5223a6['commandName']){const _0x164f18=_0x5223a6['commandParams'][0x0]['value'];if(_0x164f18){const _0x31882c=Zt(this['editor']['config']['get']('fontColor.colors'))['find'](_0xa22a96=>_0xa22a96['model']==_0x164f18);let _0x144726=_0x164f18,_0x387ec3='';return _0x31882c&&(_0x144726=_0x31882c['label'],_0x387ec3=_0x2e6faf(_0x144726)['toLowerCase']()),{'type':'format','content':c(_0x3e448c,'*Set\x20font\x20color:*\x20%0',_0x387ec3)['trim'](),'color':{'value':_0x164f18,'title':_0x387ec3||_0x144726}};}return{'type':'format','content':c(_0x3e448c,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5223a6['commandName']){const _0x14371a=_0x5223a6['commandParams'][0x0]['value'];if(_0x14371a){const _0x27f306=Zt(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x442a30=>_0x442a30['model']==_0x14371a);let _0x3a4646=_0x14371a,_0x390a5b='';return _0x27f306&&(_0x3a4646=_0x27f306['label'],_0x390a5b=_0x2e6faf(_0x3a4646)['toLowerCase']()),{'type':'format','content':c(_0x3e448c,'*Set\x20font\x20background\x20color:*\x20%0',_0x390a5b)['trim'](),'color':{'value':_0x14371a,'title':_0x390a5b||_0x3a4646}};}return{'type':'format','content':c(_0x3e448c,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x53ae92{['afterInit'](){const _0x5a30ae=this['editor'],_0x5ddf37=_0x5a30ae['plugins']['get']('TrackChangesEditing'),_0x4076c2=_0x5a30ae['commands']['get']('copyFormat'),_0x3d2a29=_0x5a30ae['commands']['get']('pasteFormat');_0x4076c2&&_0x3d2a29&&(_0x5ddf37['enableDefaultAttributesIntegration']('pasteFormat'),_0x5ddf37['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x5ab5bc=this['editor'],_0x5851e0=_0x5ab5bc['locale'];_0x5ab5bc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4af5f8=>{if('formatBlock'!=_0x4af5f8['type']&&'formatInline'!=_0x4af5f8['type'])return;const {data:_0x386858}=_0x4af5f8;if(_0x386858&&'pasteFormat'===_0x386858['commandName']){const _0x522668=[],_0x17672f=_0x386858['commandParams'][0x0];for(const [_0x4e0f5f,_0x171e69]of Object['entries'](_0x17672f))_0x522668['push'](ro(_0x5ab5bc,_0x4e0f5f,_0x171e69));return _0x522668['length']?{'type':'format','content':c(_0x5851e0,'*Set\x20format\x20to:*\x20%0',_0x522668['join'](',\x20'))}:{'type':'format','content':c(_0x5851e0,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x3993f9,_0x12d941,_0x3afa78){const _0xa5d918=_0x3993f9['locale']['t'],_0x4c4c82=_0x12d941['split'](/(?=[A-Z])/)['join']('\x20'),_0x2df07e=_0xa5d918(_0x4c4c82['charAt'](0x0)['toUpperCase']()+_0x4c4c82['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3afa78)return _0x2df07e;if('fontColor'===_0x12d941||'fontBackgroundColor'===_0x12d941){const _0x1d7d12=Zt(_0x3993f9['config']['get']('fontColor.colors'))['find'](_0x27e2e5=>_0x27e2e5['model']==_0x3afa78);return _0x2df07e+'\x20('+(_0x1d7d12?_0xa5d918(_0x1d7d12['label'])['toLowerCase']():_0x3afa78)+')';}if('fontSize'===_0x12d941&&isNaN(parseFloat(_0x3afa78))){const _0xd3e637=_0x3993f9['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3993f9['config']['get']('fontSize.options'))['find'](_0x15b4e3=>_0x15b4e3['model']==_0x3afa78);return _0x2df07e+'\x20('+(_0xd3e637?_0xa5d918(_0xd3e637['title'])['toLowerCase']():_0x3afa78)+')';}return _0x2df07e+'\x20('+_0x3afa78+')';}class et extends _0x53ae92{['_headingOptions'];['afterInit'](){const _0x31b738=this['editor'];if(!_0x31b738['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x31b738['config']['get']('heading.options');const _0x3cbffa=_0x31b738['locale'],_0x41d7c3=_0x31b738['plugins']['get']('TrackChangesEditing');_0x41d7c3['enableDefaultAttributesIntegration']('heading');for(const _0x38f028 of this['_headingOptions'])'paragraph'!=_0x38f028['model']&&_0x41d7c3['descriptionFactory']['registerElementLabel'](_0x38f028['model'],_0x512e74=>{const _0x417c18=this['_getHeadingLevel'](_0x38f028['model']);return null!==_0x417c18?_0x454489(_0x512e74,_0x417c18):_0x4a5461(_0x512e74,_0x38f028['title']);});function _0x454489(_0x26e00d,_0x1cc3c2){return c(_0x3cbffa,'ELEMENT_HEADING',[_0x26e00d,_0x1cc3c2]);}function _0x4a5461(_0x1c7b50,_0x9abfca){return c(_0x3cbffa,'ELEMENT_HEADING_CUSTOM',[_0x1c7b50,_0x9abfca]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1bc3df=this['editor'],_0x2b39e0=_0x1bc3df['locale'];function _0x464bbd(_0x687da0,_0x32f8c6){return c(_0x2b39e0,'ELEMENT_HEADING_CUSTOM',[_0x687da0,_0x32f8c6]);}_0x1bc3df['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x407aaa=>{if('formatBlock'!=_0x407aaa['type'])return;const {data:_0x327dab}=_0x407aaa;if(_0x327dab&&'heading'==_0x327dab['commandName']){const _0x2f0418=_0x327dab['commandParams'][0x0]['value'],_0x3a135c=this['_getHeadingLevel'](_0x2f0418);if(null!==_0x3a135c)return{'type':'format','content':c(_0x2b39e0,'*Change\x20to:*\x20%0',(_0x69da39=0x1,_0x2c7737=_0x3a135c,c(_0x2b39e0,'ELEMENT_HEADING',[_0x69da39,_0x2c7737])))};const _0x201faa=this['_headingOptions']['find'](_0x47f0c3=>_0x47f0c3['model']===_0x2f0418)['title'];return{'type':'format','content':c(_0x2b39e0,'*Change\x20to:*\x20%0',_0x464bbd(0x1,_0x201faa))};}var _0x69da39,_0x2c7737;});}['_getHeadingLevel'](_0x258d5c){const _0x26d94f=_0x258d5c['match'](/^heading(\d+)/);if(_0x26d94f)return _0x26d94f[0x1];const _0x489f0d=this['_headingOptions']?.['find'](_0x227433=>_0x227433['model']==_0x258d5c);if(_0x489f0d&&_0x489f0d['view']){const _0x59f12e=_0x489f0d['view'],_0x4cadff=(_0x59f12e['name']??_0x59f12e)['match'](/^h(\d+)/);if(_0x4cadff)return _0x4cadff[0x1];}return null;}}class nt extends _0x53ae92{['afterInit'](){const _0x5485f6=this['editor'];if(!_0x5485f6['plugins']['has']('HighlightEditing'))return;const _0x4aec11=_0x5485f6['plugins']['get']('TrackChangesEditing'),_0x407ad9=_0x5485f6['locale'];_0x4aec11['enableDefaultAttributesIntegration']('highlight'),_0x4aec11['registerInlineAttribute']('highlight'),_0x4aec11['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x407ad9,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2bf753=this['editor'],_0x4a411d=_0x2bf753['locale'];_0x2bf753['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x506978=>{if('formatInline'!=_0x506978['type'])return;const {data:_0x5950ae}=_0x506978;if(_0x5950ae&&'highlight'==_0x5950ae['commandName']){const _0x24d1c6=_0x4a411d['t'],_0x257c6d=_0x5950ae['commandParams'][0x0]['value'];if(_0x257c6d){const _0xf80511=_0x2bf753['config']['get']('highlight.options')['find'](_0x20c920=>_0x20c920['model']==_0x257c6d),_0x42719f=_0x24d1c6(_0xf80511['title'])['toLowerCase']();return{'type':'format','content':c(_0x4a411d,'*Set\x20highlight:*\x20%0',_0x42719f),'color':{'value':_0xf80511['color'],'title':_0xf80511['title']}};}return{'type':'format','content':c(_0x4a411d,'*Remove\x20highlight*',c(_0x4a411d,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x53ae92{['afterInit'](){const _0xcef95b=this['editor'];if(!_0xcef95b['plugins']['has']('HorizontalLineEditing'))return;_0xcef95b['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x311e9f=_0xcef95b['plugins']['get']('TrackChangesEditing'),_0x50e30e=_0xcef95b['locale'];_0x311e9f['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3a5c8f=>c(_0x50e30e,'ELEMENT_HORIZONTAL_LINE',_0x3a5c8f)),_0xcef95b['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x5d3d24,{writer:_0x563138,options:_0x2c977e})=>{if(!_0x2c977e['showSuggestionHighlights'])return null;const _0x3caf3a=_0x563138['createContainerElement']('div'),_0x1e8ffe=_0x563138['createEmptyElement']('hr');return _0x563138['addClass']('ck-horizontal-line',_0x3caf3a),_0x563138['insert'](_0x563138['createPositionAt'](_0x3caf3a,0x0),_0x1e8ffe),_0x3caf3a;},'converterPriority':'high'});}}class st extends _0x53ae92{['afterInit'](){const _0xd825b2=this['editor'];if(!_0xd825b2['plugins']['has']('HtmlEmbed'))return;const _0x42068a=_0xd825b2['plugins']['get']('TrackChangesEditing'),_0x52f56c=_0xd825b2['locale'];_0x42068a['descriptionFactory']['registerElementLabel']('rawHtml',_0x256315=>c(_0x52f56c,'ELEMENT_HTML_EMBED',_0x256315)),_0x42068a['enableDefaultAttributesIntegration']('htmlEmbed'),_0x42068a['registerBlockAttribute']('value'),_0x42068a['descriptionFactory']['registerDescriptionCallback'](_0x487483=>{if('attribute'!=_0x487483['type'])return;const {data:_0x487ee7}=_0x487483;if(_0x487ee7&&'value'==_0x487ee7['key']&&_0x487483['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x5c01ec=c(_0x52f56c,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x52f56c,'*Change\x20%0\x20content*',_0x5c01ec)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x19c893=this['editor'],_0xc215fe=_0x19c893['locale'];_0x19c893['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x351918=>{if('formatBlock'!=_0x351918['type'])return;const {data:_0x4657ca}=_0x351918;if(_0x4657ca&&'htmlEmbed'==_0x4657ca['commandName']){const _0x3dd5e4=c(_0xc215fe,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0xc215fe,'*Change\x20%0\x20content*',_0x3dd5e4)};}});}}class ot extends _0x53ae92{['afterInit'](){const _0x7aa3a3=this['editor'];if(!_0x7aa3a3['plugins']['has']('ImageEditing'))return;const _0x3045e4=_0x7aa3a3['plugins']['get']('TrackChangesEditing'),_0x398571=_0x7aa3a3['plugins']['get']('ImageUtils'),_0x45d506=_0x7aa3a3['locale'];_0x3045e4['enableCommand']('insertImage'),_0x3045e4['descriptionFactory']['registerElementLabel']('imageBlock',_0x7d7038=>c(_0x45d506,'ELEMENT_IMAGE',_0x7d7038)),_0x3045e4['descriptionFactory']['registerElementLabel']('imageInline',_0x2a1539=>c(_0x45d506,'ELEMENT_INLINE_IMAGE',_0x2a1539)),_0x3045e4['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x45d506,'ELEMENT_CAPTION')),_0x7aa3a3['plugins']['has']('ImageUploadEditing')&&_0x3045e4['enableCommand']('uploadImage'),_0x7aa3a3['plugins']['has']('ImageBlockEditing')&&_0x7aa3a3['plugins']['has']('ImageInlineEditing')&&(_0x3045e4['enableCommand']('imageTypeInline',(_0x4088a4,_0xeab741)=>{const _0x3a4f2e=_0x398571['getClosestSelectedImageElement'](_0x7aa3a3['model']['document']['selection']);_0x7aa3a3['model']['change'](()=>{_0x3045e4['markBlockFormat'](_0x3a4f2e,{'commandName':'imageTypeInline','commandParams':[_0xeab741]},[],'convertBlockImageToInline');});}),_0x3045e4['enableCommand']('imageTypeBlock',(_0x346ed9,_0x288212)=>{_0x7aa3a3['model']['change'](_0x4aeed6=>{let _0x855c2d=_0x398571['getClosestSelectedImageElement'](_0x7aa3a3['model']['document']['selection']),_0x52832c=_0x4aeed6['createRangeOn'](_0x855c2d);const _0x264be7=_0x36d914['fromPosition'](_0x52832c['start'],'toPrevious'),_0x626e4d=_0x36d914['fromPosition'](_0x52832c['end'],'toNext');_0x3045e4['forceDefaultExecution'](()=>_0x346ed9(_0x288212)),_0x855c2d=_0x398571['getClosestSelectedImageElement'](_0x7aa3a3['model']['document']['selection']),_0x52832c=_0x4aeed6['createRangeOn'](_0x855c2d);const _0x3b4a44=_0x4aeed6['createRange'](_0x264be7,_0x626e4d);_0x264be7['detach'](),_0x626e4d['detach'](),_0x3045e4['markBlockFormat'](_0x855c2d,{'commandName':'imageTypeInline','commandParams':[_0x288212]},[],'convertInlineImageToBlock'),_0x3b4a44['start']['isBefore'](_0x52832c['start'])&&_0x3045e4['markInsertion'](_0x4aeed6['createRange'](_0x3b4a44['start'],_0x52832c['start']),'convertInlineImageToBlock'),_0x52832c['end']['isBefore'](_0x3b4a44['end'])&&_0x3045e4['markInsertion'](_0x4aeed6['createRange'](_0x52832c['end'],_0x3b4a44['end']),'convertInlineImageToBlock');});}),_0x3045e4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3045e4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3045e4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3045e4['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3045e4['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3045e4['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x36e021])=>{const _0x454e99=_0x3045e4['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2e7b34=_0x36e021['start'],_0x24ed53=_0x36e021['end'];const _0x28df9c=_0x7aa3a3['model']['schema']['getNearestSelectionRange'](_0x2e7b34,'backward'),_0x1daac3=_0x7aa3a3['model']['schema']['getNearestSelectionRange'](_0x24ed53,'forward');_0x28df9c['isCollapsed']&&(_0x2e7b34=_0x28df9c['start']),_0x1daac3['isCollapsed']&&(_0x24ed53=_0x1daac3['end']),_0x454e99([_0x7aa3a3['model']['createRange'](_0x2e7b34,_0x24ed53)]);}),_0x3045e4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x1360a2),_0x3045e4['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x1360a2)),_0x7aa3a3['plugins']['has']('ImageCaptionEditing')&&(_0x3045e4['enableCommand']('toggleImageCaption',(_0x514db,_0x37e831)=>{const _0x159f79=_0x7aa3a3['plugins']['get']('ImageCaptionUtils');let _0x12da71=_0x398571['getClosestSelectedImageElement'](_0x7aa3a3['model']['document']['selection']),_0x42e5d6=_0x159f79['getCaptionFromImageModelElement'](_0x12da71);_0x7aa3a3['model']['change'](()=>{if(_0x42e5d6)return void _0x3045e4['markDeletion'](_0x7aa3a3['model']['createRangeOn'](_0x42e5d6));const _0x297a2d=_0x398571['isBlockImage'](_0x12da71);_0x514db(_0x37e831),_0x12da71=_0x398571['getClosestSelectedImageElement'](_0x7aa3a3['model']['document']['selection']),_0x42e5d6=_0x159f79['getCaptionFromImageModelElement'](_0x12da71),_0x3045e4['markInsertion'](_0x7aa3a3['model']['createRangeOn'](_0x42e5d6),_0x297a2d?null:'imageCaption');});}),_0x3045e4['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x1360a2));const _0x3a9caa=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x53cd32(_0x511f8a,_0xd648a){const _0x5b9d8d=_0x3a9caa['findIndex'](({type:_0x1394da,subType:_0x3a1d12})=>_0x511f8a['type']==_0x1394da&&_0x511f8a['subType']==_0x3a1d12),_0x2185c1=_0x3a9caa['findIndex'](({type:_0x466d14,subType:_0x5ea4a5})=>_0xd648a['type']==_0x466d14&&_0xd648a['subType']==_0x5ea4a5);if(_0x5b9d8d<0x0||_0x2185c1<0x0)return!0x1;const _0x53c598=_0x511f8a['getFirstRange'](),_0x284e78=_0xd648a['getFirstRange']();if((0x0==_0x5b9d8d||0x1==_0x5b9d8d)&&0x2==_0x2185c1&&_0x53c598['isIntersecting'](_0x284e78))return!0x0;if(0x2==_0x5b9d8d&&0x3==_0x2185c1){const _0xd9420a=_0x3045e4['_findSuggestions'](_0x53c598,'insertion')['filter'](({suggestion:_0x587dc4,meta:_0x47624c})=>_0x47624c['isOwn']&&'convertInlineImageToBlock'==_0x587dc4['subType']);if(_0xd9420a['length']>0x1&&_0x284e78['end']['isEqual'](_0x53c598['start']))return!0x0;if(0x1==_0xd9420a['length']&&(_0x53c598['start']['isEqual'](_0x284e78['end'])||_0x53c598['end']['isEqual'](_0x284e78['start'])))return!0x0;}if(0x3==_0x5b9d8d&&0x3==_0x2185c1&&_0x53c598['start']['isBefore'](_0x284e78['start'])){const _0x4e1164=_0x53c598['end']['nodeAfter'],_0x11587e=_0x284e78['start']['nodeBefore'];return _0x398571['isBlockImage'](_0x4e1164)&&_0x4e1164===_0x11587e;}return!0x1;}function _0x1360a2(_0x2bb243,_0x1d3b3b){return _0x53cd32(_0x2bb243,_0x1d3b3b)?[_0x2bb243,_0x1d3b3b]:_0x53cd32(_0x1d3b3b,_0x2bb243)?[_0x1d3b3b,_0x2bb243]:null;}_0x7aa3a3['plugins']['has']('ImageResize')&&(_0x3045e4['enableDefaultAttributesIntegration']('resizeImage'),_0x3045e4['registerBlockAttribute']('resizedWidth'),_0x3045e4['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x45d506,'FORMAT_IMAGE_SIZE'))),_0x7aa3a3['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3045e4['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3045e4['registerBlockAttribute']('alt')),_0x7aa3a3['plugins']['has']('PictureEditing')&&(_0x3045e4['registerBlockAttribute']('sources'),_0x3045e4['descriptionFactory']['registerDescriptionCallback'](_0x4201ab=>{if('attribute'!=_0x4201ab['type'])return;const {data:_0x3e9487}=_0x4201ab;return _0x3e9487&&'sources'==_0x3e9487['key']?{'type':'format','content':''}:void 0x0;})),_0x7aa3a3['plugins']['has']('ImageSizeAttributes')&&(_0x3045e4['registerBlockAttribute']('width'),_0x3045e4['registerBlockAttribute']('height'),_0x3045e4['descriptionFactory']['registerDescriptionCallback'](_0x353d12=>{if('attribute'!=_0x353d12['type'])return;const {data:_0x4e8859}=_0x353d12;return!_0x4e8859||'width'!=_0x4e8859['key']&&'height'!=_0x4e8859['key']?void 0x0:{'type':'format','content':''};})),_0x3045e4['descriptionFactory']['registerDescriptionCallback'](_0x8a1e8a=>{if(!!_0x3a9caa['find'](({type:_0x17f26f,subType:_0x299dcb})=>_0x8a1e8a['type']==_0x17f26f&&_0x8a1e8a['subType']==_0x299dcb))return _0x8a1e8a['previous']?{}:void 0x0;}),_0x3045e4['descriptionFactory']['registerDescriptionCallback'](_0x41f433=>{if('insertion'==_0x41f433['type']||'deletion'==_0x41f433['type']){const _0x1b8e69=_0x41f433['getContainedElement']();if(_0x1b8e69&&_0x1b8e69['is']('element','caption'))return{'type':'insertion'==_0x41f433['type']?'addObject':'removeObject','element':_0x1b8e69,'quantity':0x1};}}),_0x3045e4['descriptionFactory']['registerDescriptionCallback'](_0x41773a=>'formatBlock'==_0x41773a['type']&&'convertInlineImageToBlock'==_0x41773a['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x41773a['type']&&'convertBlockImageToInline'==_0x41773a['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3045e4['descriptionFactory']['registerDescriptionCallback'](_0x40022a=>{if('attribute'!=_0x40022a['type'])return;const {data:_0x7155b9}=_0x40022a;if(!_0x7155b9||'alt'!=_0x7155b9['key'])return;const _0x1a7a8e=_0x7155b9['newValue'];return _0x1a7a8e?{'type':'format','content':c(_0x45d506,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1a7a8e+'\x22')}:{'type':'format','content':c(_0x45d506,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e7dc6=this['editor'],_0x2bf0ca=_0x2e7dc6['locale'];_0x2e7dc6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x54b775=>{if('formatBlock'!=_0x54b775['type']&&'formatInline'!=_0x54b775['type'])return;const {data:_0xe8f6e}=_0x54b775;if(_0xe8f6e){if('imageTextAlternative'==_0xe8f6e['commandName']){const _0x2fb45f=_0xe8f6e['commandParams'][0x0]['newValue'];return _0x2fb45f?{'type':'format','content':c(_0x2bf0ca,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2fb45f+'\x22')}:{'type':'format','content':c(_0x2bf0ca,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0xe8f6e['commandName']){const _0x26ff76=_0xe8f6e['commandParams'][0x0]['width'];return _0x26ff76?{'type':'format','content':c(_0x2bf0ca,'*Set\x20image\x20width:*\x20%0',_0x26ff76)}:{'type':'format','content':c(_0x2bf0ca,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x53ae92{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x414f4f=this['editor']['locale'],_0xfb8e42=this['editor']['plugins']['get']('TrackChangesEditing');_0xfb8e42['enableDefaultAttributesIntegration']('replaceImageSource'),_0xfb8e42['registerBlockAttribute']('src'),_0xfb8e42['descriptionFactory']['registerDescriptionCallback'](_0x3c9480=>{if('attribute'!=_0x3c9480['type'])return;const {data:_0x428a48}=_0x3c9480;return _0x428a48&&'src'==_0x428a48['key']?_0x428a48['newValue']&&_0x428a48['oldValue']?{'type':'format','content':c(_0x414f4f,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x47c087=this['editor']['plugins']['get']('TrackChangesEditing');_0x47c087['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x47c087['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x47c087['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x47c087['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x398b3a=this['editor'],_0x2a4eff=_0x398b3a['locale'];_0x398b3a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x21dcd5=>{if('formatBlock'!=_0x21dcd5['type']&&'formatInline'!=_0x21dcd5['type'])return;const {data:_0x5d3804}=_0x21dcd5;if(!_0x5d3804||'replaceImageSource'!=_0x5d3804['commandName'])return;return{'type':'format','content':c(_0x2a4eff,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x53ae92{['afterInit'](){const _0x4625b9=this['editor'];if(!_0x4625b9['plugins']['has']('ImageStyleEditing'))return;const _0x19622b=_0x4625b9['plugins']['get']('TrackChangesEditing'),_0x465784=_0x4625b9['plugins']['get']('ImageUtils'),_0x215f7e={};_0x19622b['enableCommand']('imageStyle',(_0x20759c,_0x35b699)=>{const _0x11b6fb=_0x4625b9['plugins']['get']('Users')['me'],_0x4588c0=_0x4625b9['commands']['get']('imageStyle');let _0x593bac=_0x465784['getClosestSelectedImageElement'](_0x4625b9['model']['document']['selection']),_0x25c09b=_0x4625b9['model']['createRangeOn'](_0x593bac),_0x40677b=_0x4588c0['value'];if(_0x40677b==_0x35b699['value'])return;const _0x112b84={'commandName':'imageStyle','commandParams':[_0x35b699],'formatGroupId':_0x33987a()};_0x4625b9['model']['change'](()=>{if(_0x19622b['getSuggestions']()['filter'](_0x5d74ec=>_0x5d74ec['isInContent']&&_0x11b6fb==_0x5d74ec['author']&&('formatBlock'==_0x5d74ec['type']||'formatInline'==_0x5d74ec['type'])&&('imageStylePreApply'==_0x5d74ec['subType']||'imageStylePostApply'==_0x5d74ec['subType'])&&_0x5d74ec['getFirstRange']()['isEqual'](_0x25c09b))['forEach'](_0x3e6891=>_0x19622b['discardSuggestion'](_0x3e6891['head'])),_0x593bac=_0x465784['getClosestSelectedImageElement'](_0x4625b9['model']['document']['selection']),_0x25c09b=_0x4625b9['model']['createRangeOn'](_0x593bac),_0x4588c0['refresh'](),_0x4625b9['commands']['get']('imageTypeInline')['refresh'](),_0x4625b9['commands']['get']('imageTypeBlock')['refresh'](),_0x40677b=_0x4588c0['value'],_0x40677b!=_0x35b699['value'])return _0x465784['isInlineImage'](_0x593bac)&&_0x4588c0['shouldConvertImageType'](_0x35b699['value'],_0x593bac)?(_0x20759c({..._0x35b699,'setImageSizes':!0x1}),_0x593bac=_0x465784['getClosestSelectedImageElement'](_0x4625b9['model']['document']['selection']),void _0x19622b['markBlockFormat'](_0x593bac,{..._0x112b84,'commandReversedParams':[{'value':_0x40677b||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x465784['isBlockImage'](_0x593bac)?_0x19622b['markBlockFormat'](_0x593bac,_0x112b84,[],'imageStylePostApply'):_0x19622b['markInlineFormat'](_0x25c09b,_0x112b84,'imageStylePostApply'));});});for(const _0xf2c4c4 of _0x4625b9['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x215f7e[_0xf2c4c4['name']]=_0xf2c4c4['title']['toLowerCase']();_0x19622b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x19622b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x19622b['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x19622b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x1a5593])=>{_0x465784['setImageNaturalSizeAttributes'](_0x1a5593['getContainedElement']());}),_0x19622b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x532b4b,_0x1fb428)=>{_0x19622b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x532b4b,{'commandName':_0x1fb428['commandName'],'commandParams':_0x1fb428['commandReversedParams']});}),_0x19622b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x3fbcb3,_0x5800de){if(_0x310fad(_0x3fbcb3,_0x5800de))return[_0x3fbcb3,_0x5800de];if(_0x310fad(_0x5800de,_0x3fbcb3))return[_0x5800de,_0x3fbcb3];return null;});const _0x3e1ff7=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x310fad(_0x5a3273,_0x1e338d){const _0x2c8a32=_0x3e1ff7['findIndex'](({type:_0x12c3cf,subType:_0x5c0978})=>_0x5a3273['type']==_0x12c3cf&&_0x5a3273['subType']==_0x5c0978),_0x157c66=_0x3e1ff7['findIndex'](({type:_0x55eda4,subType:_0x89a48a})=>_0x1e338d['type']==_0x55eda4&&_0x1e338d['subType']==_0x89a48a);if(_0x2c8a32<0x0||_0x157c66<0x0)return!0x1;const _0x4ebc33=_0x5a3273['getFirstRange'](),_0x3c5fc1=_0x1e338d['getFirstRange']();if((0x0==_0x2c8a32||0x1==_0x2c8a32)&&0x2==_0x157c66&&_0x4ebc33['isIntersecting'](_0x3c5fc1))return!0x0;if(0x2==_0x2c8a32&&0x3==_0x157c66){const _0x2ebbcd=_0x19622b['_findSuggestions'](_0x4ebc33,'insertion')['filter'](({suggestion:_0x3716a8,meta:_0x17822c})=>_0x17822c['isOwn']&&'convertInlineImageToBlock'==_0x3716a8['subType']);if(_0x2ebbcd['length']>0x1&&_0x3c5fc1['end']['isEqual'](_0x4ebc33['start']))return!0x0;if(0x1==_0x2ebbcd['length']&&(_0x4ebc33['start']['isEqual'](_0x3c5fc1['end'])||_0x4ebc33['end']['isEqual'](_0x3c5fc1['start'])))return!0x0;}if(0x3==_0x2c8a32&&0x3==_0x157c66&&_0x4ebc33['start']['isBefore'](_0x3c5fc1['start'])){const _0x49c2fe=_0x4ebc33['end']['nodeAfter'],_0x5e2631=_0x3c5fc1['start']['nodeBefore'];return _0x465784['isBlockImage'](_0x49c2fe)&&_0x49c2fe===_0x5e2631;}return!0x1;}_0x4625b9['model']['document']['registerPostFixer'](()=>{let _0x3ebf1c=!0x1;const _0x2b6ee2=Array['from'](_0x4625b9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x262ce5,data:_0x368adf}of _0x2b6ee2){const {group:_0x4fcf8f,type:_0x2424f1,subType:_0x1334ae,id:_0x4f0583}=_0x19622b['_splitMarkerName'](_0x262ce5);if('suggestion'==_0x4fcf8f&&_0x19622b['hasSuggestion'](_0x4f0583)){if('formatBlock'==_0x2424f1&&('imageStylePreApply'==_0x1334ae||'imageStylePostApply'==_0x1334ae)){const _0xa7308e=_0x19622b['getSuggestion'](_0x4f0583);if(_0x368adf['newRange']){const _0xd1c50c=_0xa7308e['getFirstRange']()['getContainedElement']();if(_0x465784['isBlockImage'](_0xd1c50c))continue;_0x19622b['discardSuggestion'](_0xa7308e),_0x3ebf1c=!0x0;}}if('insertion'==_0x2424f1&&'imageCaption'==_0x1334ae&&!_0x368adf['newRange']){const _0x153664=_0x19622b['getSuggestion'](_0x4f0583);_0x153664['next']&&_0x153664['next']['isInContent']&&(_0x19622b['discardSuggestion'](_0x153664['next']),_0x3ebf1c=!0x0);}}}return _0x3ebf1c;}),this['_registerLegacyDescription'](_0x215f7e);}['_registerLegacyDescription'](_0x263b59){const _0x1e0482=this['editor'],_0x612777=_0x1e0482['locale'];_0x1e0482['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x158935=>{if('formatBlock'!=_0x158935['type']&&'formatInline'!=_0x158935['type'])return;const {data:_0xd4aca9}=_0x158935;if(!_0xd4aca9||'imageStyle'!=_0xd4aca9['commandName'])return;const _0x58fce8=_0xd4aca9['commandParams'][0x0]['value'];return _0x349d35('side'===_0x58fce8?c(_0x612777,'FORMAT_SIDE_IMAGE'):_0x263b59[_0x58fce8]||_0x58fce8);function _0x349d35(_0x526003){return{'type':'format','content':c(_0x612777,'*Format:*\x20%0',_0x526003)};}});}}class ct extends _0x53ae92{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x11b93d){super(_0x11b93d),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x233cdf=this['editor'],_0x57e772=_0x233cdf['commands']['get']('importWord'),_0x4862b7=_0x233cdf['commands']['get']('trackChanges');_0x57e772&&(_0x57e772['on']('execute',(_0x311a50,[,_0xbb6f33])=>{this['_trackChangesValueDuringImport']=_0x4862b7['value'],_0xbb6f33['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x57e772,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x57e772,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x4862b7['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x233cdf['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x42c599,_0x24cd3e){const {suggestions:_0x2c43a4}=_0x24cd3e,_0x2cfaa9=this['editor']['commands']['get']('trackChanges'),_0xb81741=_0x2cfaa9['value'];this['_trackChangesValueDuringImport']!==_0xb81741&&(_0x2cfaa9['execute'](),this['_trackChangesExecuted']=!0x0),_0x2c43a4&&_0x2c43a4['forEach'](({id:_0x18124c,type:_0x27d84f,author:_0x1aadcf,created_at:_0x209511})=>{const _0x1622d7={'id':_0x18124c,'type':_0x27d84f,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1aadcf,'createdAt':_0x209511?new Date(_0x209511):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1622d7);});}}class ut extends _0x53ae92{['afterInit'](){const _0x161c6c=this['editor'],_0x43d4cf=_0x161c6c['plugins']['get']('TrackChangesEditing');if(_0x161c6c['plugins']['has']('IndentEditing')&&(_0x43d4cf['enableCommand']('indent'),_0x43d4cf['enableCommand']('outdent')),_0x161c6c['plugins']['has']('IndentBlock')){for(const _0x3f4820 of['indentBlock','outdentBlock'])_0x43d4cf['enableDefaultAttributesIntegration'](_0x3f4820);}const _0x46af60=_0x161c6c['locale'];_0x43d4cf['registerBlockAttribute']('blockIndent'),_0x43d4cf['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x46af60,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13e2d6=this['editor'],_0x4c08eb=_0x13e2d6['locale'],_0x65b4ad=_0x13e2d6['plugins']['get']('TrackChangesEditing');_0x65b4ad['descriptionFactory']['registerDescriptionCallback'](_0x37c428=>{if('formatBlock'!=_0x37c428['type'])return;const {data:_0xdc2fbb}=_0x37c428;if(!_0xdc2fbb)return;if('indentBlock'!=_0xdc2fbb['commandName']&&'outdentBlock'!=_0xdc2fbb['commandName'])return;const _0x1688eb=_0x37c428['getItems']()[0x0],_0x4904f5=_0x65b4ad['descriptionFactory']['getItemLabel'](_0x1688eb);return'indentBlock'==_0xdc2fbb['commandName']?{'type':'format','content':c(_0x4c08eb,'*Indent:*\x20%0',_0x4904f5)}:'outdentBlock'==_0xdc2fbb['commandName']?{'type':'format','content':c(_0x4c08eb,'*Outdent:*\x20%0',_0x4904f5)}:void 0x0;});}}class ft extends _0x53ae92{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x53ae92{['afterInit'](){const _0x26d4e4=this['editor'];if(!_0x26d4e4['plugins']['has']('LinkEditing'))return;const _0x2fb99f=_0x26d4e4['plugins']['get']('TrackChangesEditing'),_0x57b65c=_0x26d4e4['commands']['get']('link');_0x2fb99f['enableDefaultAttributesIntegration']('link'),_0x2fb99f['enableDefaultAttributesIntegration']('unlink'),_0x2fb99f['registerInlineAttribute']('linkHref');for(const _0x14d7d5 of _0x57b65c['manualDecorators'])_0x2fb99f['registerInlineAttribute'](_0x14d7d5['id']),_0x2fb99f['descriptionFactory']['registerAttributeLabel'](_0x14d7d5['id'],'link\x20('+_0x14d7d5['label']['toLowerCase']()+')');_0x2fb99f['descriptionFactory']['registerDescriptionCallback'](_0x12e629=>{if('attribute'!=_0x12e629['type'])return;const {data:_0x52db5d}=_0x12e629;if(!_0x52db5d||'linkHref'!=_0x52db5d['key'])return;const _0x42c658=_0x52db5d['newValue'],_0x38cc08=_0x26d4e4['locale'];return{'type':'format','content':null==_0x42c658?c(_0x38cc08,'*Remove\x20link*'):c(_0x38cc08,'*Set\x20link:*\x20%0','\x22'+_0x42c658+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x54c3e5=this['editor'],_0x1bbc42=_0x54c3e5['locale'];_0x54c3e5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2de999=>{if('formatInline'!=_0x2de999['type'])return;const {data:_0x5ee7b4}=_0x2de999;if(_0x5ee7b4){if('link'==_0x5ee7b4['commandName']){const _0x3d8a9e=_0x5ee7b4['commandParams'][0x0];return{'type':'format','content':c(_0x1bbc42,'*Set\x20link:*\x20%0','\x22'+_0x3d8a9e+'\x22')};}return'unlink'==_0x5ee7b4['commandName']?{'type':'format','content':c(_0x1bbc42,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x53ae92{['afterInit'](){const _0x3b2fa5=this['editor'],_0x4e5274=_0x3b2fa5['locale'];if(!_0x3b2fa5['plugins']['has']('LegacyListEditing'))return;const _0x459bd9=_0x3b2fa5['plugins']['get']('TrackChangesEditing'),_0x46ea79=_0x3b2fa5['plugins']['has']('LegacyTodoListEditing');function _0x52320a(_0x2e2d3f){return()=>{const _0x4e337f=_0x3b2fa5['model']['document']['selection'],_0x17377d=_0x3b2fa5['commands']['get'](_0x2e2d3f);if(_0x17377d['value'])return void _0x3b2fa5['execute']('paragraph',{});const _0x138a31=_0x2e2d3f['slice'](0x0,-0x4),_0x487e7d=function(_0x2c10ff,_0x25fde6,_0x36c516){let _0x4da2ff=Array['from'](_0x2c10ff)['filter'](_0x1cb16f=>function(_0x39fb30,_0x19f967){return _0x19f967['checkChild'](_0x39fb30['parent'],'listItem')&&!_0x19f967['isObject'](_0x39fb30);}(_0x1cb16f,_0x36c516));_0x4da2ff=_0x4da2ff['filter'](_0x30dc74=>!_0x30dc74['is']('element','listItem')||_0x30dc74['getAttribute']('listType')!=_0x25fde6);const _0x589fb6=new Set();for(const _0x5d6eae of _0x4da2ff)_0x5d6eae['is']('element','listItem')?_0x589fb6['add'](Le(_0x5d6eae)):_0x589fb6['add'](_0x5d6eae);return Array['from'](_0x589fb6);}(_0x4e337f['getSelectedBlocks'](),_0x138a31,_0x3b2fa5['model']['schema']);_0x3b2fa5['model']['change'](()=>{for(const _0x371da0 of _0x487e7d)_0x459bd9['markBlockFormat'](_0x371da0,{'commandName':_0x2e2d3f,'commandParams':[{'forceValue':!_0x17377d['value']}],'formatGroupId':'blockName'},Ee(_0x371da0));});};}function _0x537bfa(_0x33c947){return()=>{const _0xe76d53=function(_0x3734d5){let _0x5a317b=Array['from'](_0x3734d5);const _0x4377df=_0x5a317b['findIndex'](_0x31f6f2=>'listItem'!=_0x31f6f2['name']);return _0x4377df>-0x1&&(_0x5a317b=_0x5a317b['slice'](0x0,_0x4377df)),_0x5a317b;}(_0x3b2fa5['model']['document']['selection']['getSelectedBlocks']()),_0x495e28=_0x3b2fa5['model']['createRange'](_0x3b2fa5['model']['createPositionAt'](_0xe76d53[0x0],'before'),_0x3b2fa5['model']['createPositionAt'](_0xe76d53[_0xe76d53['length']-0x1],'end'));_0x3b2fa5['model']['change'](()=>{_0x459bd9['markBlockFormat'](_0x495e28,{'commandName':_0x33c947,'commandParams':[],'formatGroupId':'listIndent'},function(_0x3c8a52){const _0x41a4f3=new Set();for(const _0x2e2c3b of _0x3c8a52){let _0x4b80c7=_0x2e2c3b['nextSibling'];for(;_0x4b80c7&&_0x4b80c7['getAttribute']('listIndent')>_0x2e2c3b['getAttribute']('listIndent');)_0x41a4f3['add'](_0x4b80c7),_0x4b80c7=_0x4b80c7['nextSibling'];}return Array['from'](_0x41a4f3);}(_0xe76d53));});};}_0x459bd9['enableCommand']('numberedList',_0x52320a('numberedList')),_0x459bd9['enableCommand']('bulletedList',_0x52320a('bulletedList')),_0x46ea79&&_0x459bd9['enableCommand']('todoList',_0x52320a('todoList')),_0x459bd9['enableCommand']('indentList',_0x537bfa('indentList')),_0x459bd9['enableCommand']('outdentList',_0x537bfa('outdentList')),_0x46ea79&&_0x459bd9['enableCommand']('checkTodoList',()=>{const _0x206e38=_0x3b2fa5['commands']['get']('checkTodoList'),_0x443961=Array['from'](_0x206e38['_selectedElements']);_0x443961['filter'](_0x1886aa=>_0x1886aa['getAttribute']('todoListChecked')!=_0x206e38['value']),_0x3b2fa5['model']['change'](()=>{for(const _0x143fa9 of _0x443961)_0x459bd9['markBlockFormat'](_0x143fa9,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x206e38['value']}]});});}),_0x459bd9['descriptionFactory']['registerElementLabel']('listItem',_0x11f561=>c(_0x4e5274,'ELEMENT_LIST_ITEM',_0x11f561)),_0x459bd9['descriptionFactory']['registerDescriptionCallback'](_0x3eb263=>{if('formatBlock'!=_0x3eb263['type']&&'formatInline'!=_0x3eb263['type'])return;const {data:_0x159d35}=_0x3eb263;if(_0x159d35){if('numberedList'==_0x159d35['commandName']||'bulletedList'==_0x159d35['commandName']||'todoList'==_0x159d35['commandName'])switch(_0x159d35['commandName']['replace']('List','')){case'bulleted':return _0x14c662(c(_0x4e5274,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x14c662(c(_0x4e5274,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x14c662(c(_0x4e5274,'ELEMENT_TODO_LIST'));}if('indentList'==_0x159d35['commandName'])return{'type':'format','content':c(_0x4e5274,'*Indent:*\x20%0',c(_0x4e5274,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x159d35['commandName'])return{'type':'format','content':c(_0x4e5274,'*Outdent:*\x20%0',c(_0x4e5274,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x159d35['commandName'])return _0x159d35['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x4e5274,'*Check\x20item*')}:{'type':'format','content':c(_0x4e5274,'*Uncheck\x20item*')};}function _0x14c662(_0x1abe71){return{'type':'format','content':c(_0x4e5274,'*Change\x20to:*\x20%0',_0x1abe71)};}});}}function Le(_0xfb85e2){const _0x2575c1=_0xfb85e2['getAttribute']('listIndent');if(0x0==_0x2575c1)return _0xfb85e2;let _0x16a58f=_0xfb85e2;for(;_0xfb85e2['previousSibling']&&_0xfb85e2['previousSibling']['is']('element','listItem');){const _0x565d75=_0xfb85e2['previousSibling']['getAttribute']('listIndent');if(_0x565d75==_0x2575c1)_0x16a58f=_0xfb85e2['previousSibling'];else{if(_0x565d75<_0x2575c1)break;}_0xfb85e2=_0xfb85e2['previousSibling'];}return _0x16a58f;}function Ee(_0x2f771c){const _0x71f8d6=[];if(_0x2f771c['is']('element','listItem')&&_0x2f771c['getAttribute']('listIndent')>0x0){let _0x13989c=_0x2f771c['nextSibling'];for(;_0x13989c&&'listItem'==_0x13989c['name']&&_0x13989c['getAttribute']('listIndent')==_0x2f771c['getAttribute']('listIndent');)_0x71f8d6['push'](_0x13989c),_0x13989c=_0x13989c['nextSibling'];}return _0x71f8d6;}class Q extends _0x53ae92{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x2408f8=this['editor']['config']['get']('list.properties'),_0x166997=this['editor']['plugins']['get']('TrackChangesEditing');_0x2408f8['styles']&&_0x166997['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x2408f8['reversed']&&_0x166997['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x2408f8['startIndex']&&_0x166997['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x166997['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0xf2d1cf,_0x8799a9={}){const _0x13b554=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2976a7=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x13b554['markMultiRangeBlockFormat'](_0x2976a7,{'commandName':'listStyle','commandParams':[{'type':_0x8799a9['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x3b16da,_0xcc0bfb={}){const _0x1a0935=this['editor']['plugins']['get']('TrackChangesEditing'),_0x51dea9=this['_getSuggestionBlocks'](_0x451ca2=>_0x451ca2['is']('element','listItem')&&'numbered'===_0x451ca2['getAttribute']('listType'));if(_0x51dea9['length']<0x1)return;const _0x5641cd=_0x51dea9['map'](_0x19b0b6=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x19b0b6,'before'),this['editor']['model']['createPositionAt'](_0x19b0b6,0x0)));this['editor']['model']['change'](()=>{_0x1a0935['markMultiRangeBlockFormat'](_0x5641cd,{'commandName':'listReversed','commandParams':[{'reversed':_0xcc0bfb['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x110434,_0x2c2e9f={}){const _0x2b0ba2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x17c278=this['_getSuggestionBlocks'](_0x380058=>_0x380058['is']('element','listItem')&&'numbered'===_0x380058['getAttribute']('listType'));if(_0x17c278['length']<0x1)return;const _0x34ab16=_0x17c278['map'](_0x2d7dc6=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2d7dc6,'before'),this['editor']['model']['createPositionAt'](_0x2d7dc6,0x0)));this['editor']['model']['change'](()=>{_0x2b0ba2['markMultiRangeBlockFormat'](_0x34ab16,{'commandName':'listStart','commandParams':[{'startIndex':_0x2c2e9f['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x43819f){if('formatBlock'!=_0x43819f['type']&&'formatInline'!=_0x43819f['type'])return;const _0x367662=this['editor']['locale'],{data:_0x4b6db9}=_0x43819f;if(!_0x4b6db9)return;let _0x5a4d13,_0x27f21e;switch(_0x4b6db9['commandName']){case'listStyle':_0x5a4d13='*Change\x20to:*\x20%0',_0x27f21e={'type':'format','content':c(_0x367662,_0x5a4d13,c(_0x367662,this['_getTranslationKeyForListStyle'](_0x4b6db9['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5a4d13=_0x4b6db9['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x27f21e={'type':'format','content':c(_0x367662,_0x5a4d13)};break;case'listStart':_0x5a4d13='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x27f21e={'type':'format','content':c(_0x367662,_0x5a4d13,_0x4b6db9['commandParams'][0x0]['startIndex'])};}return _0x27f21e;}['_getSuggestionBlocksForListStyle'](){const _0x5865fc=this['editor']['plugins']['get']('LegacyListUtils');let _0x322253=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x322253[0x0]?.['is']('element','listItem')&&_0x322253['unshift'](..._0x5865fc['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x322253[_0x322253['length']-0x1]?.['is']('element','listItem')&&_0x322253['push'](..._0x5865fc['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x322253=[...new Set(_0x322253)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x322253=_0x322253['filter'](_0x1df09a=>_0x1df09a['is']('element','listItem'))),_0x322253;}['_getSuggestionBlocks'](_0x194d62){const _0x57b30=this['editor']['plugins']['get']('LegacyListUtils');let _0x142b8d=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x194d62)['map'](_0x40ff5c=>{const _0x269229=this['editor']['model']['createPositionAt'](_0x40ff5c,0x0);return[..._0x57b30['getSiblingNodes'](_0x269229,'backward'),..._0x57b30['getSiblingNodes'](_0x269229,'forward')];})['flat']();return _0x142b8d=[...new Set(_0x142b8d)],_0x142b8d;}['_getTranslationKeyForListStyle'](_0x4aa9cb){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4aa9cb)||'default')['toUpperCase']()+'_LIST_'+_0x4aa9cb['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x53ae92{['afterInit'](){const _0x17da02=this['editor'];if(!_0x17da02['plugins']['has']('MediaEmbedEditing'))return;const _0x4a97df=_0x17da02['plugins']['get']('TrackChangesEditing'),_0x5a8176=_0x17da02['locale'];_0x4a97df['enableCommand']('mediaEmbed'),_0x4a97df['descriptionFactory']['registerElementLabel']('media',_0x442027=>c(_0x5a8176,'ELEMENT_MEDIA',_0x442027)),_0x17da02['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x21a631,{writer:_0x3853f7,options:_0x396d34})=>{if(_0x396d34['showSuggestionHighlights'])return _0x3853f7['createEmptyElement']('div');},'converterPriority':'high'}),_0x17da02['data']['downcastDispatcher']['on']('attribute:url:media',(_0x5306a4,_0x4fadbb,_0x1cb441)=>{_0x1cb441['options']['showSuggestionHighlights']&&_0x5306a4['stop']();},{'priority':'high'});}}class mt extends _0x53ae92{['afterInit'](){const _0x440940=this['editor'];_0x440940['plugins']['has']('MentionEditing')&&_0x440940['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x53ae92{['afterInit'](){const _0x5470a0=this['editor'];if(!_0x5470a0['plugins']['has']('MergeFieldsEditing'))return;const _0x2275cb=_0x5470a0['plugins']['get']('TrackChangesEditing'),_0x9d5190=_0x5470a0['locale'];_0x2275cb['enableCommand']('insertMergeField'),_0x2275cb['enableCommand']('insertMergeFieldBlock'),_0x2275cb['enableCommand']('insertMergeFieldImage'),_0x2275cb['descriptionFactory']['registerElementLabel']('mergeField',_0x3133bd=>c(_0x9d5190,'ELEMENT_MERGE_FIELD',_0x3133bd)),_0x2275cb['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x341d84=>c(_0x9d5190,'ELEMENT_MERGE_FIELD',_0x341d84)),_0x2275cb['descriptionFactory']['registerDescriptionCallback'](_0x5d3e45=>{if('insertion'!=_0x5d3e45['type']&&'deletion'!=_0x5d3e45['type'])return;const _0x2477a8=_0x5d3e45['getContainedElement']();if(null==_0x2477a8)return;const _0x741d9e=_0x5470a0['plugins']['get']('MergeFieldsEditing');let _0x2c30c3;switch(_0x741d9e['getMergeFieldType'](_0x2477a8)){case null:return;case'image':{const _0x47e665=_0x741d9e['unwrapAffixes'](_0x2477a8['getAttribute']('src'));_0x2c30c3=_0x741d9e['getLabel'](_0x47e665)||_0x47e665;break;}default:{const _0x479911=_0x2477a8['getAttribute']('id');_0x2c30c3=_0x741d9e['getLabel'](_0x479911)||_0x479911;break;}}return'insertion'==_0x5d3e45['type']?{'type':'insertion','content':c(_0x9d5190,'*Insert:*\x20%0','\x22'+_0x2c30c3+'\x22\x20'+c(_0x9d5190,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x9d5190,'*Remove:*\x20%0','\x22'+_0x2c30c3+'\x22\x20'+c(_0x9d5190,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x53ae92{['afterInit'](){const _0x182151=this['editor'],_0x46360a=_0x182151['plugins']['get']('TrackChangesEditing');_0x182151['plugins']['has']('MultiLevelList')&&(_0x46360a['enableDefaultAttributesIntegration']('multiLevelList'),_0x46360a['registerBlockAttribute']('listMarkerStyle'),_0x46360a['descriptionFactory']['registerDescriptionCallback'](_0x29ed2b=>this['handleDescriptions'](_0x29ed2b)));}['handleDescriptions'](_0x30dcec){const _0x2b4a88=this['editor']['locale'],{data:_0x2b13c3}=_0x30dcec,_0x504311={'type':'format','content':''};if(_0x2b13c3&&'listMarkerStyle'==_0x2b13c3['key']){if(!_0x2b13c3['oldValue'])return{'type':'format','content':c(_0x2b4a88,'*Set\x20format:*\x20%0',c(_0x2b4a88,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2b13c3['newValue']+')'};if(!_0x2b13c3['newValue']){let _0x598d6e=_0x30dcec['head'];for(;_0x598d6e;){if(_0x598d6e['data']&&'listType'==_0x598d6e['data']['key']&&_0x598d6e['data']['newValue'])return _0x504311;_0x598d6e=_0x598d6e['next'];}return{'type':'format','content':c(_0x2b4a88,'*Remove\x20format:*\x20%0',c(_0x2b4a88,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2b13c3['oldValue']+')'};}}}}class kt extends _0x53ae92{['afterInit'](){const _0x2f9660=this['editor'];if(!_0x2f9660['plugins']['has']('PageBreakEditing'))return;_0x2f9660['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0xa79cbe=_0x2f9660['plugins']['get']('TrackChangesEditing'),_0x42fcb3=_0x2f9660['locale'];_0xa79cbe['descriptionFactory']['registerElementLabel']('pageBreak',_0x2a0ba1=>c(_0x42fcb3,'ELEMENT_PAGE_BREAK',_0x2a0ba1));}}class bt extends _0x53ae92{['afterInit'](){const _0x2b6f60=this['editor'];if(!_0x2b6f60['plugins']['has']('Paragraph'))return;const _0x2f325e=_0x2b6f60['locale'],_0x47a980=_0x2b6f60['plugins']['get']('TrackChangesEditing');_0x47a980['descriptionFactory']['registerElementLabel']('paragraph',_0x12134b=>c(_0x2f325e,'ELEMENT_PARAGRAPH',_0x12134b)),_0x47a980['enableDefaultAttributesIntegration']('paragraph'),_0x47a980['enableCommand']('insertParagraph'),_0x2b6f60['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x2b6f60),{'priority':'highest'}),_0x2b6f60['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x36d191,_0xb375d8,_0x33109b)=>{_0x33109b['options']['showSuggestionHighlights']&&nr(_0x2b6f60,{'showActiveMarker':!0x1})(_0x36d191,_0xb375d8,_0x33109b);},{'priority':'highest'});const _0x482141=_0x47a980['descriptionFactory'];_0x482141['registerDescriptionCallback'](_0x2628f7=>{if('insertion'!==_0x2628f7['type'])return;const {start:_0x4d3304,end:_0x34db03}=_0x2628f7['getFirstRange']();if(!_0x4d3304['isTouching'](_0x34db03)||!_0x4d3304['nodeAfter'])return;const _0x44cdba=_0x2b6f60['model']['schema'],_0x48b50c=_0x4d3304['nodeAfter'];return _0x44cdba['isBlock'](_0x48b50c)&&!_0x44cdba['isLimit'](_0x48b50c)&&_0x44cdba['checkChild'](_0x48b50c,'$text')?{'type':'insertion','content':c(_0x2f325e,'*Insert:*\x20%0',_0x482141['getItemLabel'](_0x48b50c,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e8207=this['editor'],_0x5ef767=_0x5e8207['locale'];_0x5e8207['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x417b26=>{if('formatBlock'!=_0x417b26['type'])return;const {data:_0x2edce3}=_0x417b26;return _0x2edce3&&'paragraph'==_0x2edce3['commandName']?{'type':'format','content':c(_0x5ef767,'*Change\x20to:*\x20%0',c(_0x5ef767,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0xd81303,{showActiveMarker:_0x3da493=!0x0}={}){return(_0x110a1c,_0x19c4b4,_0x2e274e)=>{const _0x51517a=_0xd81303['plugins']['get']('TrackChangesEditing'),_0x5e2b84=_0x19c4b4['markerRange']['start'],_0x5eec5f=_0x19c4b4['markerRange']['end'],_0xab7b00=_0xd81303['model']['schema'];if(!_0x5e2b84['isTouching'](_0x5eec5f)||!_0x5e2b84['nodeAfter'])return;const _0x12df27=_0x5e2b84['nodeAfter'];if(_0xab7b00['isBlock'](_0x12df27)&&!_0xab7b00['isLimit'](_0x12df27)&&_0xab7b00['checkChild'](_0x12df27,'$text')){if(!_0x2e274e['consumable']['consume'](_0x19c4b4['markerRange'],_0x110a1c['name']))return;const {authorId:_0x4be3dd}=_0x51517a['_splitMarkerName'](_0x19c4b4['markerName']),_0x566526=_0x2e274e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x4be3dd}),_0x18f55f=_0x2e274e['mapper']['toViewPosition'](_0x5eec5f);_0x3da493&&_0x51517a['activeMarkers']['includes'](_0x19c4b4['markerName'])&&_0x2e274e['writer']['addClass']('ck-suggestion-marker--active',_0x566526),_0x2e274e['writer']['insert'](_0x18f55f,_0x566526),_0x2e274e['mapper']['bindElementToMarker'](_0x566526,_0x19c4b4['markerName']);}};}class yt extends _0x53ae92{['afterInit'](){const _0x2f6097=this['editor'];if(!_0x2f6097['plugins']['has']('RemoveFormatEditing'))return;_0x2f6097['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5c5da5=this['editor'];_0x5c5da5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2222ef=>{if('formatBlock'!=_0x2222ef['type']&&'formatInline'!=_0x2222ef['type'])return;const {data:_0xab216d}=_0x2222ef;return _0xab216d&&'removeFormat'==_0xab216d['commandName']?{'type':'format','content':c(_0x5c5da5['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x53ae92{['afterInit'](){const _0x1eb560=this['editor'];if(!_0x1eb560['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x1ee3fe=_0x1eb560['plugins']['get']('TrackChangesEditing');_0x1ee3fe['enableCommand']('goToPreviousRestrictedEditingException'),_0x1ee3fe['enableCommand']('goToNextRestrictedEditingException');const _0x1cdcfe=_0x1eb560['plugins']['get']('RestrictedEditingModeEditing');_0x1cdcfe['enableCommand']('trackChanges'),_0x1cdcfe['enableCommand']('acceptSuggestion'),_0x1cdcfe['enableCommand']('discardSuggestion'),_0x1cdcfe['enableCommand']('acceptAllSuggestions'),_0x1cdcfe['enableCommand']('discardAllSuggestions'),_0x1cdcfe['enableCommand']('acceptSelectedSuggestions'),_0x1cdcfe['enableCommand']('discardSelectedSuggestions');}}class St extends _0x53ae92{static get['requires'](){return[_0x35e7df];}['init'](){const _0x3563d7=this['editor'],_0x3df5e4=_0x3563d7['plugins']['get']('TrackChangesEditing');_0x3df5e4['enableCommand']('shiftEnter'),_0x3563d7['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x3563d7),{'priority':'high'}),_0x3563d7['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x3563d7),{'priority':'high'}),_0x3563d7['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2b4304,_0x36cdc6,_0x2298d9)=>{_0x2298d9['options']['showSuggestionHighlights']&&je(_0x3563d7,{'showActiveMarker':!0x1})(_0x2b4304,_0x36cdc6,_0x2298d9);}),_0x3df5e4['descriptionFactory']['registerElementLabel']('softBreak',_0x327ce8=>c(_0x3563d7['locale'],'ELEMENT_LINE_BREAK',_0x327ce8));}}function je(_0x3e38f5,{showActiveMarker:_0xa0d30a=!0x0}={}){return(_0x3ce727,_0x44f710,_0x3d5272)=>{const _0x37fc77=_0x3e38f5['plugins']['get']('TrackChangesEditing');if(!_0x3d5272['consumable']['test'](_0x44f710['markerRange'],_0x3ce727['name']))return;const _0x41d434=_0x3e38f5['model'];for(const _0x1a4283 of _0x44f710['markerRange']['getItems']()){if(!_0x1a4283['is']('element','softBreak'))continue;const _0x49c313='deletion'==_0x44f710['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x4e6554}=_0x37fc77['_splitMarkerName'](_0x44f710['markerName']),_0xe03664=_0x3d5272['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x49c313,'data-author-id':_0x4e6554}),_0x4e10f2=_0x3d5272['mapper']['toViewPosition'](_0x41d434['createPositionBefore'](_0x1a4283));_0xa0d30a&&_0x37fc77['activeMarkers']['includes'](_0x44f710['markerName'])&&_0x3d5272['writer']['addClass']('ck-suggestion-marker--active',_0xe03664),_0x3d5272['writer']['insert'](_0x4e10f2,_0xe03664),_0x3d5272['mapper']['bindElementToMarker'](_0xe03664,_0x44f710['markerName']);}};}class At extends _0x53ae92{['afterInit'](){const _0x580296=this['editor'],_0x11e1da=_0x580296['model'],_0x28d1b4=_0x580296['locale'];if(!_0x580296['plugins']['has']('StandardEditingModeEditing'))return;const _0x5aeebf=_0x580296['plugins']['get']('TrackChangesEditing'),_0x1a2eb8='restrictedEditingException',_0x1dd46c=_0x580296['commands']['get'](_0x1a2eb8);_0x5aeebf['enableCommand'](_0x1a2eb8,(_0x5a7d4e,_0x40933f={})=>{const _0x5ae51a=_0x11e1da['document']['selection'];if(_0x5ae51a['isCollapsed'])return void _0x5a7d4e(_0x40933f);const _0x1ad46a=void 0x0!==_0x40933f['forceValue']?_0x40933f['forceValue']:!_0x1dd46c['value'];_0x11e1da['change'](()=>{const _0x4b9129=Array['from'](_0x5ae51a['getRanges']());for(const _0xc97528 of _0x4b9129){const _0x45f654=_0x1ad46a?[_0xc97528]:no(_0x1a2eb8,_0xc97528,_0x11e1da);for(const _0x1cd78f of _0x45f654)_0x5aeebf['markInlineFormat'](_0x1cd78f,{'commandName':_0x1a2eb8,'commandParams':[{'forceValue':_0x1ad46a}]});}});}),_0x5aeebf['descriptionFactory']['registerDescriptionCallback'](_0x1d8d97=>{if('formatBlock'!=_0x1d8d97['type']&&'formatInline'!=_0x1d8d97['type'])return;const {data:_0x20776c}=_0x1d8d97;return _0x20776c&&_0x20776c['commandName']==_0x1a2eb8?_0x20776c['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x28d1b4,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x28d1b4,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x53ae92{['afterInit'](){const _0x3bc567=this['editor'];if(!_0x3bc567['plugins']['has']('Style')||!_0x3bc567['plugins']['has']('DataSchema'))return;const _0x12b2c0=_0x3bc567['plugins']['get']('TrackChangesEditing'),_0x378bdd=_0x3bc567['locale'],_0x4e1008=_0x3bc567['config']['get']('style')||{},_0x4c295a=_0x3bc567['plugins']['get']('GeneralHtmlSupport'),_0x2cb967=_0x3bc567['plugins']['get']('StyleUtils')['normalizeConfig'](_0x3bc567['plugins']['get']('DataSchema'),_0x4e1008['definitions']);_0x12b2c0['enableDefaultAttributesIntegration']('style');const _0x148096=new Set();for(const _0x2467c3 of _0x2cb967['block']){const _0x4673ec=_0x4c295a['getGhsAttributeNameForElement'](_0x2467c3['element']);_0x148096['add'](_0x4673ec);}const _0x52e730=new Set();for(const _0x236a45 of _0x2cb967['inline']){const _0x8bef94=_0x4c295a['getGhsAttributeNameForElement'](_0x236a45['element']);_0x52e730['add'](_0x8bef94);for(const _0x2d41d0 of _0x236a45['ghsAttributes'])_0x52e730['add'](_0x2d41d0);}for(const _0x1466c3 of _0x148096)_0x12b2c0['registerBlockAttribute'](_0x1466c3),_0x12b2c0['descriptionFactory']['registerAttributeLabel'](_0x1466c3,c(_0x378bdd,'FORMAT_STYLE'));for(const _0x3941ca of _0x52e730)_0x12b2c0['registerInlineAttribute'](_0x3941ca),_0x12b2c0['descriptionFactory']['registerAttributeLabel'](_0x3941ca,c(_0x378bdd,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4afeee=this['editor'],_0x4dc2ae=_0x4afeee['locale'];_0x4afeee['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e65ae=>{if('formatBlock'!=_0x4e65ae['type']&&'formatInline'!=_0x4e65ae['type'])return;const {data:_0x45f7ab}=_0x4e65ae;return _0x45f7ab&&'style'===_0x45f7ab['commandName']?_0x45f7ab['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x4dc2ae,'*Set\x20format:*\x20%0',_0x45f7ab['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x4dc2ae,'*Remove\x20format:*\x20%0',_0x45f7ab['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class _t extends _0x53ae92{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x5afabc){super(_0x5afabc),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x5072e4=this['editor'],_0x53b595=_0x5072e4['model']['document']['selection'];if(!_0x5072e4['plugins']['has']('TableEditing'))return;const _0x8d5024=_0x5072e4['locale'],_0x180aca=_0x5072e4['plugins']['get']('TrackChangesEditing'),_0x51aff6=_0x5072e4['plugins']['get']('TableUtils');_0x180aca['descriptionFactory']['registerElementLabel']('table',_0x3209d3=>c(_0x8d5024,'ELEMENT_TABLE',_0x3209d3)),this['_setupColumnsRowsFixing'](),_0x180aca['enableCommand']('insertTable'),_0x180aca['enableCommand']('selectTableRow'),_0x180aca['enableCommand']('selectTableColumn');for(const _0xbcd3ba of['insertTableRowAbove','insertTableRowBelow']){const _0xe286bd=_0x5072e4['commands']['get'](_0xbcd3ba);_0x180aca['enableCommand'](_0xbcd3ba,_0x823ab8=>{_0x5072e4['model']['change'](_0x201c00=>{_0x823ab8();const _0x5606c4='above'===_0xe286bd['order'],_0x5cb7d1=_0x51aff6['getSelectionAffectedTableCells'](_0x53b595),_0x44c54a=_0x51aff6['getRowIndexes'](_0x5cb7d1),_0x44595a=_0x5606c4?_0x44c54a['first']-0x1:_0x44c54a['last']+0x1,_0x30131b=_0x5cb7d1[0x0]['findAncestor']('table'),_0x1cd015=_0x51aff6['createTableWalker'](_0x30131b,{'startRow':_0x44595a,'endRow':_0x44595a}),_0x3701cc=Array['from'](_0x1cd015)['map'](_0x3f2552=>_0x201c00['createRangeOn'](_0x3f2552['cell']));_0x180aca['markMultiRangeInsertion'](_0x3701cc,'tableRow');});});}for(const _0x1331b3 of['insertTableColumnLeft','insertTableColumnRight']){const _0x4f8ff3=_0x5072e4['commands']['get'](_0x1331b3);_0x180aca['enableCommand'](_0x1331b3,_0x406262=>{_0x5072e4['model']['change'](_0x3f5775=>{_0x406262();const _0x42c6ee='left'===_0x4f8ff3['order'],_0x32e34c=_0x51aff6['getSelectionAffectedTableCells'](_0x53b595),_0x1fe7b7=_0x51aff6['getColumnIndexes'](_0x32e34c),_0x4a660a=_0x42c6ee?_0x1fe7b7['first']-0x1:_0x1fe7b7['last']+0x1,_0x42e32e=_0x32e34c[0x0]['findAncestor']('table'),_0x5d8ecd=_0x51aff6['createTableWalker'](_0x42e32e,{'startRow':0x0,'column':_0x4a660a,'includeAllSlots':!0x1}),_0x467e01=Array['from'](_0x5d8ecd)['map'](_0x37d77f=>_0x3f5775['createRangeOn'](_0x37d77f['cell']));_0x180aca['markMultiRangeInsertion'](_0x467e01,'tableColumn');});});}for(const _0x2450b6 of['removeTableRow','removeTableColumn']){const _0x1ed5d6=_0x2450b6['substr'](0xb),_0x90d4e=_0x1ed5d6['toLowerCase'](),_0x11230b=_0x90d4e['substr'](0x0,0x3)+'span',_0x587ccc='table'+_0x1ed5d6,_0x500d87='min'+_0x1ed5d6,_0x353abf='max'+_0x1ed5d6;_0x180aca['enableCommand'](_0x2450b6,()=>{_0x5072e4['model']['change'](_0x1eb875=>{const _0x384018=_0x51aff6['getSelectionAffectedTableCells'](_0x53b595),_0x83a344=_0x384018[0x0]['findAncestor']('table');let _0x520511;if('removeTableRow'==_0x2450b6){const _0x51b931=_0x51aff6['getRowIndexes'](_0x384018);_0x520511={'startRow':_0x51b931['first'],'endRow':_0x51b931['last'],'includeAllSlots':!0x0};}else{const _0x4ba385=_0x51aff6['getColumnIndexes'](_0x384018);_0x520511={'startColumn':_0x4ba385['first'],'endColumn':_0x4ba385['last'],'includeAllSlots':!0x0};}const _0xa361c7=_0x51aff6['createTableWalker'](_0x83a344,_0x520511),_0x2b8ce3=Array['from'](_0xa361c7)['map'](({cell:_0x157e94})=>_0x157e94),_0x1b622b=Ne(_0x2b8ce3['filter'](_0x4e1ce8=>_0x4e1ce8['hasAttribute'](_0x11230b))),_0x5872da=Ne(_0x2b8ce3['filter'](_0x3b66d2=>!_0x3b66d2['hasAttribute'](_0x11230b)))['map'](_0x195443=>_0x1eb875['createRangeOn'](_0x195443)),_0x3a81a0=_0x180aca['markMultiRangeDeletion'](_0x5872da,_0x587ccc);if(_0x3a81a0&&('tableRow'==_0x3a81a0['subType']||'tableColumn'==_0x3a81a0['subType'])){const _0x214d86=this['_getSuggestionCoords'](_0x3a81a0);for(const _0x18d2fb of _0x1b622b){const _0x3af098=_0x1eb875['createRangeOn'](_0x18d2fb),_0x277a70=_0x51aff6['getCellLocation'](_0x18d2fb),_0x49c855=_0x18d2fb['getAttribute'](_0x11230b)-0x1,_0x299799=_0x214d86[_0x500d87],_0xbc423f=_0x214d86[_0x353abf];_0x299799<=_0x277a70[_0x90d4e]&&_0x277a70[_0x90d4e]+_0x49c855<=_0xbc423f&&_0x3a81a0['addRange'](_0x3af098);}}});});}function _0x57b576(_0x237099){const _0x42d8ec=Array['from'](_0x53b595['getRanges']())['map'](_0x144c14=>_0x7362da['fromRange'](_0x144c14));_0x5072e4['model']['change'](_0x1397d3=>{const _0x274e52=_0x1397d3['batch'];_0x237099=_0x237099['filter'](_0x534543=>'$graveyard'!=_0x534543['root']['rootName']),_0x1397d3['setSelection'](_0x237099),_0x5072e4['commands']['get']('removeTableRow')['refresh'](),_0x5072e4['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x5072e4['model']['enqueueChange'](()=>{_0x5072e4['model']['enqueueChange'](_0x274e52,_0x1a1912=>{const _0x3f8ca4=_0x42d8ec['filter'](_0x47d0cf=>'$graveyard'!=_0x47d0cf['root']['rootName']);_0x3f8ca4['length']>0x0&&_0x1a1912['setSelection'](_0x3f8ca4);for(const _0x265106 of _0x42d8ec)_0x265106['detach']();});});});}function _0x57466d(_0x3da264){_0x5072e4['model']['change'](_0x1db899=>{const _0x165ab1=Array['from'](_0x53b595['getRanges']())['map'](_0x2d8ab8=>_0x7362da['fromRange'](_0x2d8ab8)),_0x30e9d6=[];for(const _0x3ab38e of _0x3da264)for(const _0x203c1 of _0x3ab38e['getItems']({'shallow':!0x0}))_0x30e9d6['push'](_0x203c1);for(const _0x2f9391 of _0x30e9d6)'$graveyard'!=_0x2f9391['root']['rootName']&&(_0x1db899['setSelection'](_0x1db899['createPositionAt'](_0x2f9391,0x0)),_0x5072e4['commands']['get']('removeTableColumn')['refresh'](),_0x5072e4['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x42b52b=_0x165ab1['filter'](_0x3be1ab=>'$graveyard'!=_0x3be1ab['root']['rootName']);_0x42b52b['length']>0x0&&_0x1db899['setSelection'](_0x42b52b);for(const _0x5bccb6 of _0x165ab1)_0x5bccb6['detach']();});}function _0x54a618(_0x3100ed,_0xbcf869){return _0xbcf869['every'](_0x679c48=>_0x3100ed['some'](_0x6a0a68=>_0x6a0a68['end']['isEqual'](_0x679c48['start'])||_0x679c48['end']['isEqual'](_0x6a0a68['start'])));}function _0xaec4ea(_0x1ad1ca,_0x517479){return!_0x1ad1ca['some'](_0x2a3cc8=>_0x517479['some'](_0x3bb874=>_0x2a3cc8['isIntersecting'](_0x3bb874)))&&_0x1ad1ca['some'](_0x4b692e=>_0x517479['some'](_0x2234c0=>_0x4b692e['end']['isTouching'](_0x2234c0['start'])));}_0x5072e4['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1c5192,_0x5d8c2f,_0x2d67d2)=>{if(!_0x2d67d2['options']['showSuggestionHighlights'])return;const _0x175bdb=_0x5d8c2f['item'];if(!_0x175bdb)return;const _0x196140=_0x2d67d2['mapper']['toViewElement'](_0x175bdb);function _0x4a1af7(_0xd69928){return Array['isArray'](_0xd69928)?_0xd69928:[_0xd69928];}_0x196140&&'tableCell'===_0x175bdb['name']&&_0xc49cfd(_0x196140,_0x2d67d2['writer'],(_0x6dbf3e,_0x822dc4,_0x2c5954)=>_0x2c5954['addClass'](_0x4a1af7(_0x822dc4['classes']),_0x6dbf3e),(_0x473698,_0x334e38,_0x35dbdf)=>_0x35dbdf['removeClass'](_0x4a1af7(_0x334e38['classes']),_0x473698));},{'priority':'highest'}),_0x180aca['descriptionFactory']['registerDescriptionCallback'](_0x3fc6dd=>{if('insertion'!=_0x3fc6dd['type']&&'deletion'!=_0x3fc6dd['type'])return;const _0x1dfb97=_0x3fc6dd['getContainedElement']();if(null!=_0x1dfb97&&_0x1dfb97['is']('element','table')){if('insertion'==_0x3fc6dd['type']){const _0x4c2471=_0x3fc6dd['getItems']()['filter'](_0x2d3494=>_0x2d3494['is']('$textProxy'))['map'](_0x27403e=>_0x27403e['data']);if(_0x4c2471['length'])return{'type':'insertion','content':c(_0x8d5024,'*Insert:*\x20%0',c(_0x8d5024,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4c2471['join']('\x20')+'\x22'))};}if('deletion'==_0x3fc6dd['type']){const _0x357a3e=_0x3fc6dd['getItems']()['filter'](_0x4d5511=>_0x4d5511['is']('$textProxy'))['map'](_0x5618d4=>_0x5618d4['data']);if(_0x357a3e['length'])return{'type':'deletion','content':c(_0x8d5024,'*Remove:*\x20%0',c(_0x8d5024,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x357a3e['join']('\x20')+'\x22'))};}}}),_0x180aca['descriptionFactory']['registerDescriptionCallback'](_0x257a4d=>{if('tableRow'==_0x257a4d['subType']){const _0x106d06=_0x257a4d['getItems']()['filter'](_0x4d8502=>_0x4d8502['is']('$textProxy'))['map'](_0x376f14=>_0x376f14['data']),_0x1797fe=this['_getSuggestionCoords'](_0x257a4d),_0x2bb18a=_0x1797fe['maxRow']-_0x1797fe['minRow']+0x1;if('insertion'==_0x257a4d['type'])return _0x106d06['length']?{'type':'insertion','content':c(_0x8d5024,'*Insert:*\x20%0',c(_0x8d5024,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2bb18a,'\x22'+_0x106d06['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x8d5024,'*Insert:*\x20%0',c(_0x8d5024,'ELEMENT_TABLE_ROW',_0x2bb18a))};if('deletion'==_0x257a4d['type'])return _0x106d06['length']?{'type':'deletion','content':c(_0x8d5024,'*Remove:*\x20%0',c(_0x8d5024,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2bb18a,'\x22'+_0x106d06['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x8d5024,'*Remove:*\x20%0',c(_0x8d5024,'ELEMENT_TABLE_ROW',_0x2bb18a))};}if('tableColumn'==_0x257a4d['subType']){const _0x1ec317=_0x257a4d['getItems']()['filter'](_0x29203=>_0x29203['is']('$textProxy'))['map'](_0xff08b2=>_0xff08b2['data']),_0x1cbc3e=this['_getSuggestionCoords'](_0x257a4d),_0x5336f1=_0x1cbc3e['maxColumn']-_0x1cbc3e['minColumn']+0x1;if('insertion'==_0x257a4d['type'])return _0x1ec317['length']?{'type':'insertion','content':c(_0x8d5024,'*Insert:*\x20%0',c(_0x8d5024,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5336f1,'\x22'+_0x1ec317['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x8d5024,'*Insert:*\x20%0',c(_0x8d5024,'ELEMENT_TABLE_COLUMN',_0x5336f1))};if('deletion'==_0x257a4d['type'])return _0x1ec317['length']?{'type':'deletion','content':c(_0x8d5024,'*Remove:*\x20%0',c(_0x8d5024,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5336f1,'\x22'+_0x1ec317['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x8d5024,'*Remove:*\x20%0',c(_0x8d5024,'ELEMENT_TABLE_COLUMN',_0x5336f1))};}}),_0x180aca['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x57b576),_0x180aca['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x57b576),_0x180aca['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x57466d),_0x180aca['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x57466d),_0x180aca['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x54a618),_0x180aca['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x54a618),_0x180aca['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0xaec4ea),_0x180aca['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0xaec4ea);}['_acceptFormatSuggestionCallbackFactory'](){const _0x2fc7fa=this['editor'],_0x580801=_0x2fc7fa['model']['document']['selection'];return(_0x3b4388,_0x5e4ef9)=>{_0x2fc7fa['model']['change'](_0x1fcba3=>{const {commandName:_0xd7b28e,commandParams:_0x31d7c0}=_0x5e4ef9;let _0x1030e5=_0x3b4388[0x0]['end']['nodeBefore'];_0x31d7c0&&_0x31d7c0[0x0]&&!0x1===_0x31d7c0[0x0]['forceValue']&&(_0x1030e5=_0x3b4388[0x0]['start']['nodeAfter']);const _0x4c4de1=_0x1fcba3['createRangeIn'](_0x1030e5);if('$graveyard'==_0x4c4de1['root']['rootName'])return;const _0x5b83b9=Array['from'](_0x580801['getRanges']())['map'](_0x5eb473=>_0x7362da['fromRange'](_0x5eb473));_0x1fcba3['setSelection'](_0x4c4de1),_0x2fc7fa['commands']['get'](_0xd7b28e)['refresh'](),_0x31d7c0['push']({'forceDefaultExecution':!0x0}),_0x2fc7fa['execute'](_0xd7b28e,..._0x31d7c0);const _0x8c9678=_0x5b83b9['filter'](_0x563c89=>'$graveyard'!=_0x563c89['root']['rootName']);_0x8c9678['length']>0x0&&_0x1fcba3['setSelection'](_0x8c9678);for(const _0x2405d1 of _0x5b83b9)_0x2405d1['detach']();});};}['_getCoordsForCells'](_0x4084c2){const _0x38dbab=this['editor']['plugins']['get']('TableUtils');let _0x5e1955=Number['MAX_SAFE_INTEGER'],_0x57ee36=Number['MIN_SAFE_INTEGER'],_0x3b5ae7=Number['MAX_SAFE_INTEGER'],_0x1586b3=Number['MIN_SAFE_INTEGER'];for(const _0x34ee43 of _0x4084c2){if('$graveyard'==_0x34ee43['root']['rootName'])continue;const {row:_0xe1f5eb,column:_0x3abac7}=_0x38dbab['getCellLocation'](_0x34ee43),_0x30803a=_0x34ee43['hasAttribute']('rowspan')?_0x34ee43['getAttribute']('rowspan')-0x1:0x0,_0x3624a7=_0x34ee43['hasAttribute']('colspan')?_0x34ee43['getAttribute']('colspan')-0x1:0x0;_0x5e1955=_0xe1f5eb<_0x5e1955?_0xe1f5eb:_0x5e1955,_0x57ee36=_0xe1f5eb+_0x30803a>_0x57ee36?_0xe1f5eb+_0x30803a:_0x57ee36,_0x3b5ae7=_0x3abac7<_0x3b5ae7?_0x3abac7:_0x3b5ae7,_0x1586b3=_0x3abac7+_0x3624a7>_0x1586b3?_0x3abac7+_0x3624a7:_0x1586b3;}return{'minRow':_0x5e1955,'maxRow':_0x57ee36,'minColumn':_0x3b5ae7,'maxColumn':_0x1586b3};}['_setupColumnsRowsFixing'](){const _0x4e04de=this['editor'],_0x424b0e=_0x4e04de['plugins']['get']('TrackChangesEditing'),_0x444489=_0x4e04de['plugins']['get']('TableUtils');_0x4e04de['model']['document']['on']('change:data',()=>{const _0x12da05=Array['from'](_0x4e04de['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x7c37a7,data:_0x42ba17}of _0x12da05){const {group:_0x3c7111,id:_0x247848,subType:_0x330113}=_0x424b0e['_splitMarkerName'](_0x7c37a7);if('suggestion'!=_0x3c7111)continue;if(null!=_0x42ba17['oldRange'])continue;const _0x1c3482=_0x424b0e['getSuggestion'](_0x247848);this['_tablePostFixingSubtypes']['includes'](_0x330113)&&this['_tableSuggestions']['add'](_0x1c3482);}},{'priority':'low'});const _0x8646ba=(_0x344248,_0x5201d1)=>{let _0x1c7093=!0x1;const _0x1634d7=_0x5201d1['createRangeOn'](_0x344248),_0x4751fe=_0x344248['findAncestor']('table'),_0x3549a8=_0x444489['getCellLocation'](_0x344248);for(const _0x3e1a0f of this['_tableSuggestions']){const _0x24c9a9=_0x3e1a0f['subType'],_0x2674d4=_0x24c9a9['startsWith']('tablePaste'),_0xc22ce9=_0x24c9a9['substr'](_0x2674d4?0xa:0x5),_0x25b7ee=_0xc22ce9['toLowerCase'](),_0x13d72a=_0x25b7ee['substr'](0x0,0x3)+'span',_0x100af7='min'+_0xc22ce9,_0x1af9cc='max'+_0xc22ce9;if(!_0x3e1a0f['isInContent'])continue;if(_0x4751fe!=_0x3e1a0f['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x3e1a0f['isIntersectingWithRange'](_0x1634d7))continue;const _0x2d697b=_0x344248['hasAttribute'](_0x13d72a)?_0x344248['getAttribute'](_0x13d72a)-0x1:0x0,_0x131998=this['_getSuggestionCoords'](_0x3e1a0f),_0x2b4a3b=_0x131998[_0x100af7],_0x3b43dc=_0x131998[_0x1af9cc];_0x2b4a3b<=_0x3549a8[_0x25b7ee]&&_0x3549a8[_0x25b7ee]+_0x2d697b<=_0x3b43dc&&(_0x3e1a0f['addRange'](_0x1634d7),_0x1c7093=!0x0);}return _0x1c7093;};_0x4e04de['model']['document']['registerPostFixer'](_0x533eae=>{let _0x3d4439=!0x1;for(const _0x1ab58e of _0x4e04de['model']['document']['differ']['getChanges']())if('insert'==_0x1ab58e['type']){if('tableRow'==_0x1ab58e['name']){for(const _0x2b2f3b of _0x1ab58e['position']['nodeAfter']['getChildren']())_0x3d4439=_0x3d4439||_0x8646ba(_0x2b2f3b,_0x533eae);}else'tableCell'==_0x1ab58e['name']&&(_0x3d4439=_0x3d4439||_0x8646ba(_0x1ab58e['position']['nodeAfter'],_0x533eae));}return _0x3d4439;});}['_getSuggestionCoords'](_0x36b9){return this['_getCoordsForCells'](_0x36b9['getRanges']()['map'](_0x2e6ece=>_0x2e6ece['start']['nodeAfter']));}}function Ne(_0x333f51){return Array['from'](new Set(_0x333f51)['values']());}class vt extends _0x53ae92{static get['requires'](){return[_t];}['afterInit'](){const _0x15dc41=this['editor'],_0x42a91a=_0x15dc41['model']['document']['selection'],_0x2cf320=_0x15dc41['locale'];if(!_0x15dc41['plugins']['has']('TableEditing'))return;const _0xe31d4c=_0x15dc41['plugins']['get']('TrackChangesEditing'),_0x1a71ba=_0x15dc41['plugins']['get']('TableUtils'),_0x1f4605=_0x15dc41['plugins']['get'](_t);_0x1f4605['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0xe31d4c['enableCommand']('mergeTableCells',()=>{const _0x2290b7=_0x1a71ba['getSelectionAffectedTableCells'](_0x15dc41['model']['document']['selection']);_0x15dc41['model']['change'](()=>{_0xe31d4c['markMultiRangeBlockFormat'](_0x2290b7,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x15dc41['commands']['get']('mergeTableCells')['on']('execute',(_0x40b290,_0xb644b7)=>{_0x15dc41['commands']['get']('trackChanges')['value']&&(_0xb644b7['length']>0x0&&_0xb644b7[_0xb644b7['length']-0x1]&&_0xb644b7[_0xb644b7['length']-0x1]['forceDefaultExecution']||_0xe31d4c['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x40b290['stop']());},{'priority':'highest'});for(const _0x3465c4 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2b21b8=_0x15dc41['commands']['get'](_0x3465c4);_0xe31d4c['enableCommand'](_0x3465c4,()=>{const _0x5e126d=_0x15dc41['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x9ecb39=>_0x9ecb39['is']('element','tableCell')),_0x5d7aa5=_0x2b21b8['value'];_0x15dc41['model']['change'](()=>{_0xe31d4c['markMultiRangeBlockFormat']([_0x5e126d,_0x5d7aa5],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x22286e of['splitTableCellVertically','splitTableCellHorizontally']){const _0x3fd25e=_0x15dc41['commands']['get'](_0x22286e);_0xe31d4c['enableCommand'](_0x22286e,()=>{const _0x57e2d0=_0x1a71ba['getSelectionAffectedTableCells'](_0x15dc41['model']['document']['selection'])[0x0],_0x17f135=_0x57e2d0['findAncestor']('table'),{column:_0x5b25bf,row:_0x42c816}=_0x1a71ba['getCellLocation'](_0x57e2d0);let _0x5a3aab=[];if('horizontally'==_0x3fd25e['direction']){const _0x2a353e=_0x1a71ba['createTableWalker'](_0x17f135,{'startRow':_0x42c816,'endRow':_0x42c816,'includeAllSlots':!0x0});_0x5a3aab=Array['from'](_0x2a353e)['map'](_0x2b8d60=>_0x2b8d60['cell']);}else{const _0x3771fe=_0x1a71ba['createTableWalker'](_0x17f135,{'column':_0x5b25bf,'includeAllSlots':!0x0});_0x5a3aab=Array['from'](_0x3771fe)['map'](_0x2cf1b5=>_0x2cf1b5['cell']);}_0x15dc41['model']['change'](_0x2f39f2=>{_0xe31d4c['markBlockFormat'](_0x2f39f2['createRangeOn'](_0x57e2d0),{'commandName':_0x22286e,'commandParams':[]},_0x5a3aab,_0x22286e);});});}_0xe31d4c['descriptionFactory']['registerDescriptionCallback'](_0x1dc541=>{if('formatBlock'!=_0x1dc541['type']&&'formatInline'!=_0x1dc541['type'])return;const {data:_0x16a1b6}=_0x1dc541;return _0x16a1b6&&'mergeTableCells'==_0x16a1b6['commandName']?{'type':'format','content':c(_0x2cf320,'*Merge\x20cells*')}:void 0x0;}),_0xe31d4c['descriptionFactory']['registerDescriptionCallback'](_0x3a23b2=>{if('formatBlock'!=_0x3a23b2['type']&&'formatInline'!=_0x3a23b2['type'])return;const {data:_0x1910a0}=_0x3a23b2;return _0x1910a0?'splitTableCellVertically'==_0x1910a0['commandName']?{'type':'format','content':c(_0x2cf320,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1910a0['commandName']?{'type':'format','content':c(_0x2cf320,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x46b722=_0x1f4605['_acceptFormatSuggestionCallbackFactory']();for(const _0x5ebd8f of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0xe31d4c['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5ebd8f,'accept',_0x46b722);for(const _0x4bcb8 of['splitTableCellVertically','splitTableCellHorizontally'])_0xe31d4c['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4bcb8,'accept',_0x46b722);_0xe31d4c['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x58872c=>{_0x15dc41['model']['change'](_0x228d2b=>{const _0x1fb6da=Array['from'](_0x42a91a['getRanges']())['map'](_0x25f0a0=>_0x7362da['fromRange'](_0x25f0a0));_0x228d2b['setSelection'](_0x58872c),_0x15dc41['commands']['get']('mergeTableCells')['refresh'](),_0x15dc41['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1740c3=_0x1fb6da['filter'](_0x3e20f4=>'$graveyard'!=_0x3e20f4['root']['rootName']);_0x1740c3['length']>0x0&&_0x228d2b['setSelection'](_0x1740c3);for(const _0x18d758 of _0x1fb6da)_0x18d758['detach']();});});for(const _0x3ee2fe of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x155c65=_0x15dc41['commands']['get'](_0x3ee2fe);_0x155c65['on']('set:isEnabled',(_0x90df34,_0x39e9bc,_0x4bb20d)=>{if(_0x4bb20d){const _0x1ff565=_0x15dc41['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4ac616=>_0x4ac616['is']('element','tableCell'));this['_areMergableCells'](_0x155c65['value'],_0x1ff565)||(_0x90df34['return']=!0x1,_0x90df34['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x3202a8=this['editor']['commands']['get']('mergeTableCells'),_0x1b8595=this['editor']['plugins']['get']('TableUtils');if(!_0x3202a8['isEnabled'])return!0x1;const _0x270404=_0x1b8595['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x130104 of _0x270404)for(const _0x3aae8f of _0x270404)if(_0x130104!=_0x3aae8f&&!this['_areMergableCells'](_0x130104,_0x3aae8f))return!0x1;return!0x0;}['_areMergableCells'](_0x34e5a6,_0x4e5065){const _0x3a0b6d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3f4bda=this['editor']['model']['createRangeOn'](_0x34e5a6),_0x477442=this['editor']['model']['createRangeOn'](_0x4e5065),_0x3e4c5b=new Set(),_0x27644b=new Set();for(const _0x95dea1 of _0x3a0b6d['getSuggestions']())if(('insertion'==_0x95dea1['type']||'deletion'==_0x95dea1['type']||'mergeTableCells'==_0x95dea1['subType'])&&_0x95dea1['isInContent']){for(const _0x3c855a of _0x95dea1['getRanges']())_0x3c855a['containsRange'](_0x3f4bda,!0x0)&&_0x3e4c5b['add'](_0x95dea1['type']+':'+_0x95dea1['author']['id']),_0x3c855a['containsRange'](_0x477442,!0x0)&&_0x27644b['add'](_0x95dea1['type']+':'+_0x95dea1['author']['id']);}if(_0x3e4c5b['size']!=_0x27644b['size'])return!0x1;for(const _0x84e4a of _0x3e4c5b)if(!_0x27644b['has'](_0x84e4a))return!0x1;return!0x0;}}class Ct extends _0x53ae92{static get['requires'](){return[_t];}['afterInit'](){const _0x2dcd5f=this['editor'];if(!_0x2dcd5f['plugins']['has']('TableEditing'))return;const _0x25c8a0=_0x2dcd5f['locale'],_0x1b4a2b=_0x2dcd5f['plugins']['get']('TrackChangesEditing');_0x1b4a2b['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1b4a2b['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1b4a2b['registerBlockAttribute']('headingRows'),_0x1b4a2b['registerBlockAttribute']('headingColumns'),_0x1b4a2b['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x25c8a0,'FORMAT_HEADER_ROW')),_0x1b4a2b['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x25c8a0,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1273b2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x31ac2c=this['editor']['plugins']['get']('TableUtils'),_0x4e68b6=this['editor']['plugins']['get'](_t)['_acceptFormatSuggestionCallbackFactory']();function _0x476c86({showActiveMarker:_0x12f94b=!0x0,setDataAttribute:_0x2e030f=!0x0}={}){return(_0x169731,_0x280e4a,_0x1b559d)=>{const {type:_0x2d2cdb,id:_0x1fa0ab}=_0x1273b2['_splitMarkerName'](_0x280e4a['markerName']),_0x3d2a37=_0x1273b2['getSuggestion'](_0x1fa0ab),_0x2d3194=_0x3d2a37['data'];if('formatBlock'!=_0x3d2a37['type']||!_0x2d3194||'setTableColumnHeader'!=_0x2d3194['commandName'])return;if(_0x280e4a['item'])return void _0x169731['stop']();if(!_0x1b559d['consumable']['consume'](_0x280e4a['markerRange'],_0x169731['name']))return;const _0x3bc7f5=_0x280e4a['markerRange']['start']['nodeAfter'],_0x220ef0=_0x280e4a['markerRange']['end']['nodeBefore'],_0x56dc0e=_0x3bc7f5['parent']['parent'],{column:_0x30e5f0}=_0x31ac2c['getCellLocation'](_0x3bc7f5),{column:_0x27c6be}=_0x31ac2c['getCellLocation'](_0x220ef0);for(let _0x18e1bc=_0x30e5f0;_0x18e1bc<=_0x27c6be;_0x18e1bc++){const _0xadab8a=_0x31ac2c['createTableWalker'](_0x56dc0e,{'column':_0x18e1bc,'includeAllSlots':!0x1});for(const _0x241f4a of _0xadab8a){const _0x389406=_0x241f4a['cell'],_0x21c1fe=_0x1b559d['mapper']['toViewElement'](_0x389406);_0x1b559d['writer']['addClass']('ck-suggestion-marker-'+_0x2d2cdb,_0x21c1fe),_0x2e030f&&_0x1b559d['writer']['setAttribute']('data-suggestion',_0x1fa0ab,_0x21c1fe),_0x1b559d['mapper']['bindElementToMarker'](_0x21c1fe,_0x280e4a['markerName']),_0x12f94b&&(_0x1273b2['activeMarkers']['includes'](_0x280e4a['markerName'])?_0x1b559d['writer']['addClass']('ck-suggestion-marker--active',_0x21c1fe):_0x1b559d['writer']['removeClass']('ck-suggestion-marker--active',_0x21c1fe));}}};}_0x1273b2['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4e68b6),_0x1273b2['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4e68b6),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x476c86(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1a7ff0,_0x383e69,_0x214f5b)=>{_0x214f5b['options']['showSuggestionHighlights']&&_0x476c86({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1a7ff0,_0x383e69,_0x214f5b);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x495cf7,_0x25b282,_0x360113)=>{const {type:_0x422fc2,id:_0x38f5f2}=_0x1273b2['_splitMarkerName'](_0x25b282['markerName']),_0x5d6d56=_0x1273b2['getSuggestion'](_0x38f5f2),_0x3fcc1f=_0x5d6d56['data'];if('formatBlock'!=_0x5d6d56['type']||!_0x3fcc1f||'setTableColumnHeader'!=_0x3fcc1f['commandName'])return;const _0x1bb643=_0x360113['mapper']['markerNameToElements'](_0x25b282['markerName']);if(_0x1bb643){for(const _0x6058f of _0x1bb643)_0x360113['writer']['removeClass']('ck-suggestion-marker-'+_0x422fc2,_0x6058f),_0x360113['writer']['removeClass']('ck-suggestion-marker--active',_0x6058f),_0x360113['writer']['removeAttribute']('data-suggestion',_0x6058f),_0x360113['mapper']['unbindElementFromMarkerName'](_0x6058f,_0x25b282['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2cd324=this['editor'],_0x25b734=_0x2cd324['locale'];function _0x1b03e6(_0x3672bf){return{'type':'format','content':c(_0x25b734,'*Format:*\x20%0',_0x3672bf)};}_0x2cd324['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f1439=>{if('formatBlock'!=_0x2f1439['type'])return;const {data:_0x1f1d6}=_0x2f1439;if(_0x1f1d6){if('setTableRowHeader'==_0x1f1d6['commandName']){const _0x5392af=_0x1f1d6['commandParams'][0x0]['forceValue'];return _0x1b03e6(c(_0x25b734,_0x5392af?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1f1d6['commandName']){const _0x4b4046=_0x1f1d6['commandParams'][0x0]['forceValue'];return _0x1b03e6(c(_0x25b734,_0x4b4046?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x824190=>[_0x824190,null]));class Nt extends _0x53ae92{static get['requires'](){return[_t];}['afterInit'](){const _0x233079=this['editor'];if(!_0x233079['plugins']['has']('TableClipboard'))return;const _0x5a48ab=_0x233079['plugins']['get']('TrackChangesEditing'),_0x5d85ec=_0x233079['plugins']['get']('TableUtils'),_0x4b6819=_0x233079['plugins']['get'](_t),_0x4119af=_0x233079['plugins']['get']('TableClipboard');_0x4b6819['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x233079['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x233079['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x397af9=null;_0x233079['model']['on']('insertContent',(_0x296cda,_0x253c91)=>{const [_0x22e53d,_0x44615c]=_0x253c91,_0x357443=_0x253c91[_0x253c91['length']-0x1];_0x357443&&_0x357443['forceDefaultExecution']||_0x5a48ab['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4bd918,_0x187650,_0x4e54ff,_0x1ab07b,_0x51307){if(_0x187650&&!_0x187650['is']('documentSelection'))return!0x1;const _0x5c6ed3=_0x51307['getTableIfOnlyTableInContent'](_0x4bd918,_0x4e54ff);if(!_0x5c6ed3||!Ue(_0x5c6ed3,void 0x0,_0x1ab07b))return!0x1;const _0x52f7f5=_0x1ab07b['getSelectionAffectedTableCells'](_0x4e54ff['document']['selection']);if(!_0x52f7f5['length'])return!0x1;const _0x239ae0=_0x52f7f5[0x0]['findAncestor']('table'),_0x3d4251=_0x1ab07b['getRowIndexes'](_0x52f7f5),_0x539a42=_0x1ab07b['getColumnIndexes'](_0x52f7f5),_0x45b5b4={'startRow':_0x3d4251['first'],'endRow':_0x3d4251['last'],'startColumn':_0x539a42['first'],'endColumn':_0x539a42['last']};return 0x1==_0x52f7f5['length']&&(_0x45b5b4['endRow']+=_0x1ab07b['getRows'](_0x5c6ed3)-0x1,_0x45b5b4['endColumn']+=_0x1ab07b['getColumns'](_0x5c6ed3)-0x1),Ue(_0x239ae0,_0x45b5b4,_0x1ab07b);}(_0x22e53d,_0x44615c,_0x233079['model'],_0x5d85ec,_0x4119af)&&(_0x296cda['stop'](),_0x397af9={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x233079['model']['change'](()=>{_0x233079['model']['insertContent'](_0x253c91[0x0],_0x253c91[0x1],_0x253c91[0x2],{'forceDefaultExecution':!0x0});const _0x34c94d=_0x33987a(),{rowInsertionRanges:_0x5bc970,columnInsertionRanges:_0x1e5354,insertionRanges:_0x198bad,deletionRanges:_0x465adf,cells:_0x5f2050}=_0x397af9;_0x5bc970['length']&&_0x5a48ab['markMultiRangeInsertion'](_0x5bc970,'tablePasteRow',{'tablePasteChainId':_0x34c94d}),_0x1e5354['length']&&_0x5a48ab['markMultiRangeInsertion'](_0x1e5354,'tablePasteColumn',{'tablePasteChainId':_0x34c94d}),_0x198bad['length']&&(_0x5a48ab['markMultiRangeInsertion'](_0x198bad,'tablePaste',{'tablePasteChainId':_0x34c94d,'skipNestingCheck':!0x0}),_0x198bad['forEach'](_0x3b813f=>_0x3b813f['detach']?.())),_0x465adf['length']&&(_0x5a48ab['markMultiRangeDeletion'](_0x465adf,'tablePaste',{'tablePasteChainId':_0x34c94d,'skipNestingCheck':!0x0}),_0x465adf['forEach'](_0x505870=>_0x505870['detach']?.()));const _0x2c469a=_0x5a48ab['markMultiRangeBlockFormat'](_0x5f2050['map'](({element:_0x2e771a})=>_0x2e771a),{'formatGroupId':_0x33987a()},[],'tablePasteCell',{'tablePasteChainId':_0x34c94d});if(_0x2c469a){const _0x1cb144=_0x2c469a['getMarkers'](),_0xbb3264=[];for(const {element:_0x548510,attributes:_0x4ff22e}of _0x5f2050){if(!_0x4ff22e)continue;const _0x250a85=_0x233079['model']['createRangeOn'](_0x548510),_0x4edb3c=_0x1cb144['find'](_0x51c0ce=>_0x51c0ce['getRange']()['isEqual'](_0x250a85));_0x4edb3c&&_0xbb3264['push']([_0x4edb3c['name'],_0x4ff22e]);}_0xbb3264['length']&&_0x2c469a['setAttribute']('markerAttributes',Object['fromEntries'](_0xbb3264));}_0x397af9=null;}));},{'priority':_0x9eec71['high']+0xa}),_0x233079['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x22c142,_0x436c45)=>{const [_0x2afcd2,_0x445c15,,_0x1c567c]=_0x436c45;if(!_0x397af9)return;_0x22c142['stop']();const _0x57a5ae=_0x2afcd2['cell'],_0x11bd90=_0x445c15,_0x3c8790=Oe(_0x57a5ae),_0x330458=Oe(_0x11bd90);_0x22c142['return']=_0x57a5ae;let _0x330514=null,_0x5c0662=null;if(_0x330458||_0x3c8790){if(_0x3c8790&&!_0x330458){_0x1c567c['remove'](_0x57a5ae['getChild'](0x0));for(const _0x1f790d of Array['from'](_0x11bd90['getChildren']()))_0x1c567c['insert'](_0x1f790d,_0x57a5ae,'end');const _0x48c164=_0x397af9['rowInsertionIndexes']['includes'](_0x2afcd2['row']),_0x4ce7d7=_0x397af9['columnInsertionIndexes']['includes'](_0x2afcd2['column']);_0x48c164||_0x4ce7d7||(_0x330514=_0x7362da['fromRange'](_0x1c567c['createRangeIn'](_0x57a5ae)));}else _0x330458&&!_0x3c8790&&(_0x5c0662=_0x1c567c['createRangeIn'](_0x57a5ae));}else{const _0xf2ce66=_0x1c567c['createElement']('tableCellSuggestion'),_0x442bc2=_0x1c567c['createElement']('tableCellSuggestion');_0x1c567c['wrap'](_0x1c567c['createRangeIn'](_0x57a5ae),_0x442bc2),_0x1c567c['insert'](_0xf2ce66,_0x57a5ae,0x0);for(const _0x167151 of Array['from'](_0x11bd90['getChildren']()))_0x1c567c['insert'](_0x167151,_0xf2ce66,'end');_0x330514=_0x7362da['fromRange'](_0x1c567c['createRangeOn'](_0xf2ce66)),_0x5c0662=_0x7362da['fromRange'](_0x1c567c['createRangeOn'](_0x442bc2));}const _0x86168=Array['from'](_0x11bd90['getAttributes']())['filter'](([_0x145add])=>Be['includes'](_0x145add));_0x397af9['cells']['push']({'element':_0x57a5ae,'attributes':_0x86168['length']?Object['fromEntries'](_0x86168):null}),_0x330514&&_0x397af9['insertionRanges']['push'](_0x330514),_0x5c0662&&_0x397af9['deletionRanges']['push'](_0x5c0662);},{'priority':'high'}),_0x5d85ec['on']('insertColumns',(_0x31fc62,_0x335f32)=>{const [_0x4323c5,_0x1b8021={}]=_0x335f32;if(!_0x397af9)return;const _0x438978=_0x1b8021['at']||0x0,_0x1cc1cc=_0x1b8021['columns']||0x1;_0x397af9['columnInsertionIndexes']=new Array(_0x1cc1cc)['fill'](_0x438978)['map']((_0x25381f,_0xaefa5b)=>_0x25381f+_0xaefa5b);for(const {cell:_0x6497a6}of _0x5d85ec['createTableWalker'](_0x4323c5,{'startColumn':_0x438978,'endColumn':_0x438978+_0x1cc1cc-0x1}))_0x397af9['columnInsertionRanges']['push'](_0x233079['model']['createRangeOn'](_0x6497a6));},{'priority':'low'}),_0x5d85ec['on']('insertRows',(_0x562a2b,_0x1f84a6)=>{const [_0x2d88f1,_0x4fa269={}]=_0x1f84a6;if(!_0x397af9)return;const _0x28c7ba=_0x4fa269['at']||0x0,_0x24597b=_0x4fa269['rows']||0x1;_0x397af9['rowInsertionIndexes']=new Array(_0x24597b)['fill'](_0x28c7ba)['map']((_0xd062b9,_0x15fdf2)=>_0xd062b9+_0x15fdf2);for(const {cell:_0x5e8a67}of _0x5d85ec['createTableWalker'](_0x2d88f1,{'startRow':_0x28c7ba,'endRow':_0x28c7ba+_0x24597b-0x1}))_0x397af9['rowInsertionRanges']['push'](_0x233079['model']['createRangeOn'](_0x5e8a67));},{'priority':'low'}),_0x5a48ab['descriptionFactory']['registerDescriptionCallback'](_0x2b94ab=>{if(_0x2b94ab['subType']&&_0x2b94ab['subType']['startsWith']('tablePaste'))return _0x2b94ab['previous']?{}:{'type':'insertion','content':c(_0x233079['locale'],'*Replace\x20table\x20cells*')};});const _0x238f6e=()=>!0x1;for(const _0x1ee99a of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x5a48ab['_suggestionFactory']['registerCustomCallback']('insertion',_0x1ee99a,'join',_0x238f6e),_0x5a48ab['_suggestionFactory']['registerCustomCallback']('deletion',_0x1ee99a,'join',_0x238f6e),_0x5a48ab['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1ee99a,'join',_0x238f6e);_0x5a48ab['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x238f6e),_0x5a48ab['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x42525e,_0x1014fc,_0x2baca6)=>{const _0x8b35d5=_0x42525e['map'](_0x3d18f0=>_0x3d18f0['getContainedElement']())['filter'](_0x2ad483=>_0x2ad483),_0x28b04d=new Map(_0x8b35d5['map'](_0x39b21a=>[_0x39b21a,null]));if(_0x397af9){for(const {element:_0x3d2dbe,attributes:_0x4ef7d4}of _0x397af9['cells'])_0x4ef7d4&&_0x28b04d['set'](_0x3d2dbe,_0x4ef7d4);}else{if(_0x2baca6&&_0x2baca6['markerAttributes'])for(const [_0x542835,_0x576254]of Object['entries'](_0x2baca6['markerAttributes'])){const _0xb7c00b=_0x233079['model']['markers']['get'](_0x542835),_0x3d40d5=_0xb7c00b?_0xb7c00b['getRange']()['getContainedElement']():null;_0x3d40d5&&_0x28b04d['set'](_0x3d40d5,_0x576254);}}_0x233079['model']['change'](_0x57653d=>{for(const [_0x2d96e4,_0x59f550]of _0x28b04d)_0x57653d['setAttributes']({...xe,..._0x59f550},_0x2d96e4);});});const _0x549e90=(_0x3d0d17,_0x4565d4)=>{_0x5a48ab['_suggestionFactory']['registerCustomCallback'](_0x3d0d17,'tablePaste',_0x4565d4,(_0x594600,_0x432b88,_0x1c2b19)=>{_0x233079['model']['change'](_0x354cd9=>{const _0x5d2f91=[];for(const _0x57b91e of _0x594600){const _0xa95793=_0x57b91e['start']['nodeAfter'];_0xa95793['is']('element','tableCellSuggestion')&&_0x5d2f91['push'](_0xa95793);}_0x5a48ab['_suggestionFactory']['getSuggestionCallback'](_0x3d0d17,null,_0x4565d4)(_0x594600,_0x432b88,_0x1c2b19);for(const _0x2a6e54 of _0x5d2f91)'$graveyard'!=_0x2a6e54['root']['rootName']&&_0x354cd9['unwrap'](_0x2a6e54);});});};_0x549e90('insertion','accept'),_0x549e90('insertion','discard'),_0x549e90('deletion','accept'),_0x549e90('deletion','discard'),_0x5a48ab['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x255825=>{const _0xc83fa=_0x255825['map'](_0x95c196=>_0x95c196['getContainedElement']()),_0x3bb59f=_0xc83fa[0x0]['findAncestor']('table'),{minRow:_0x3f6ffe,maxRow:_0x312d2e}=_0x4b6819['_getCoordsForCells'](_0xc83fa);_0x5d85ec['removeRows'](_0x3bb59f,{'at':_0x3f6ffe,'rows':_0x312d2e-_0x3f6ffe+0x1});}),_0x5a48ab['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0xe53278=>{const _0x91db17=_0xe53278['map'](_0x335025=>_0x335025['getContainedElement']()),_0x19fd9d=_0x91db17[0x0]['findAncestor']('table'),{minColumn:_0x88c5ee,maxColumn:_0x340b27}=_0x4b6819['_getCoordsForCells'](_0x91db17);_0x5d85ec['removeColumns'](_0x19fd9d,{'at':_0x88c5ee,'columns':_0x340b27-_0x88c5ee+0x1});});const _0x72c78e=(_0x559d8c,_0xd91659)=>{if(!_0xd91659['subType']||!_0xd91659['subType']['startsWith']('tablePaste'))return;const _0x1df730=_0xd91659['attributes']['tablePasteChainId'],_0x5b6ddf=_0x5a48ab['getSuggestions']()['filter'](_0x1d4b10=>_0x1d4b10['isInContent']&&_0x1d4b10['attributes']&&_0x1d4b10['attributes']['tablePasteChainId']==_0x1df730);_0x5b6ddf['length']&&_0xd91659['getAllAdjacentSuggestions']()['length']!=_0x5b6ddf['length']&&_0x5b6ddf['reduce']((_0x31aab0,_0x4c831f)=>(_0x31aab0['next']=_0x4c831f,_0x4c831f['previous']=_0x31aab0,_0x4c831f));};function _0x4073e6(_0x38bc47,_0x46adb2=!0x0){const {id:_0x2ea17e,authorId:_0x4755ed}=_0x5a48ab['_splitMarkerName'](_0x38bc47['markerName']),_0x5da199=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x161503=_0x5a48ab['activeMarkers']['includes'](_0x38bc47['markerName']);return _0x161503&&_0x5da199['push']('ck-suggestion-marker--active'),{'classes':_0x5da199,'attributes':{'data-suggestion':_0x2ea17e,'data-author-id':_0x4755ed},'priority':_0x161503&&_0x46adb2?0xbc2:0xbb8};}_0x5a48ab['on']('suggestionLoaded',_0x72c78e,{'priority':'high'}),_0x5a48ab['on']('suggestionUnloaded',_0x72c78e,{'priority':'high'}),_0x233079['model']['document']['registerPostFixer'](()=>{let _0x3ece77=!0x1;const _0x5bea20=Array['from'](_0x233079['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x135c53,data:_0x3dfa48}of _0x5bea20){const {group:_0x10c2e1,type:_0xed3a57,id:_0x325e3a}=_0x5a48ab['_splitMarkerName'](_0x135c53);if('suggestion'!=_0x10c2e1||'deletion'!=_0xed3a57||_0x3dfa48['oldRange'])continue;if(!_0x5a48ab['hasSuggestion'](_0x325e3a))continue;const _0x578899=_0x5a48ab['getSuggestion'](_0x325e3a)['getRanges'](),_0x392e28=_0x233079['plugins']['get']('Users')['me'];for(const _0x1d3fd8 of _0x5a48ab['getSuggestions']()){if(!_0x1d3fd8['isInContent']||_0x1d3fd8['author']!=_0x392e28)continue;if('formatBlock'!=_0x1d3fd8['type']||'tablePasteCell'!=_0x1d3fd8['subType'])continue;if(_0x1d3fd8['getRanges']()['every'](_0x370b5a=>_0x578899['some'](_0x375f7b=>_0x375f7b['containsRange'](_0x370b5a,!0x0)))){for(const _0x72852c of _0x1d3fd8['getAllAdjacentSuggestions']())_0x72852c['isInContent']&&(_0x72852c['discard'](),_0x3ece77=!0x0);}}}return _0x3ece77;}),_0x233079['model']['document']['registerPostFixer'](_0x4397c8=>{const _0x246ca3=_0x233079['commands']['get']('redo');if(!_0x246ca3||!_0x246ca3['_createdBatches']['has'](_0x4397c8['batch']))return!0x1;let _0x22ac05=!0x1;const _0x995032=_0x233079['plugins']['get']('Users')['me'],_0x10be27=_0x233079['model']['document']['differ']['getChanges'](),_0x4c358a=Array['from'](_0x233079['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x5c32dc,data:_0x5b99ad})=>{const {group:_0x586a87,subType:_0x38a640,authorId:_0x223b3c}=_0x5a48ab['_splitMarkerName'](_0x5c32dc);return'suggestion'==_0x586a87&&'tablePaste'==_0x38a640&&_0x223b3c==_0x995032['id']&&!_0x5b99ad['oldRange'];});for(const _0x34b4eb of _0x10be27){if('insert'!=_0x34b4eb['type']||'tableCellSuggestion'!=_0x34b4eb['name']||0x1!=_0x34b4eb['length'])continue;const _0x491b16=_0x4397c8['createRange'](_0x34b4eb['position'],_0x34b4eb['position']['getShiftedBy'](0x1));if(!_0x4c358a['find'](({data:_0x100ce1})=>_0x100ce1['newRange']['isEqual'](_0x491b16))){for(const {name:_0x40bcbe,data:_0x253886}of _0x4c358a)if(_0x491b16['containsRange'](_0x253886['newRange'])){_0x4397c8['updateMarker'](_0x40bcbe,{'range':_0x491b16}),_0x22ac05=!0x0;break;}}}return _0x22ac05;}),_0x233079['model']['document']['registerPostFixer'](_0x4b85f3=>{let _0x46673d=!0x1;const _0x53658d=_0x233079['plugins']['get']('Users')['me'],_0x20c88f=_0x5a48ab['getSuggestions']()['filter'](_0x4bb632=>_0x4bb632['isInContent']&&_0x4bb632['author']==_0x53658d),_0x2a0963=new Set(),_0x47fbe1=new Set();for(const _0xa4f46c of _0x20c88f)if('tablePaste'==_0xa4f46c['subType'])for(const _0x4e93df of _0xa4f46c['getMarkers']()){const _0x2f5d96=_0x4e93df['getRange']()['getContainedElement']();if(_0x2f5d96){if(_0x2f5d96['is']('element','tableCellSuggestion')&&Oe(_0x2f5d96)){_0xa4f46c['removeMarker'](_0x4e93df['name']),_0x2a0963['add'](_0x2f5d96),_0x46673d=!0x0;const _0x30c5d2=_0x2f5d96['nextSibling'],_0x1867ba=_0x2f5d96['previousSibling'],_0x380812=_0x30c5d2&&_0x30c5d2['is']('element','tableCellSuggestion'),_0x594b8e=_0x1867ba&&_0x1867ba['is']('element','tableCellSuggestion');_0x380812&&!_0x2a0963['has'](_0x30c5d2)&&_0x47fbe1['add'](_0x30c5d2),_0x594b8e&&!_0x2a0963['has'](_0x1867ba)&&_0x47fbe1['add'](_0x1867ba);}else _0x2f5d96['is']('element','paragraph')&&_0x2f5d96['isEmpty']&&(_0xa4f46c['removeMarker'](_0x4e93df['name']),_0x46673d=!0x0);}}else{if('tablePasteCell'==_0xa4f46c['subType']){if(!_0xa4f46c['attributes']||!_0xa4f46c['attributes']['tablePasteChainId'])continue;const _0x579319=_0xa4f46c['attributes']['markerAttributes'];if(_0x579319&&Object['keys'](_0x579319)['length'])continue;const _0x5c2d8a=_0xa4f46c['attributes']['tablePasteChainId'];let _0x595b7a=!0x0,_0xef8216=!0x0;for(const _0x2af319 of _0x20c88f)if(_0x2af319['subType']&&_0x2af319['subType']['startsWith']('tablePaste')){if(!_0x2af319['attributes']['tablePasteChainId']){_0xef8216=!0x1;break;}if(_0x2af319['id']!=_0xa4f46c['id']&&_0x2af319['attributes']['tablePasteChainId']==_0x5c2d8a){_0x595b7a=!0x1;break;}}_0xef8216&&_0x595b7a&&(_0xa4f46c['removeMarkers'](),_0x46673d=!0x0);}}for(const _0x57a9c0 of _0x2a0963)_0x4b85f3['remove'](_0x57a9c0);for(const _0x3633d0 of _0x47fbe1)_0x4b85f3['unwrap'](_0x3633d0);return _0x46673d;}),_0x233079['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x1b0d67=>_0x4073e6(_0x1b0d67),'converterPriority':'high'}),_0x233079['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x38c874,_0x380651)=>_0x380651['options']['showSuggestionHighlights']?_0x4073e6(_0x38c874,!0x1):null,'converterPriority':'high'});const _0x1fbaa3=_0x233079['editing']['view'];this['listenTo'](_0x1fbaa3['document'],'clipboardOutput',(_0x328fc6,_0x25cd8b)=>{const _0x1738c5=[];for(const _0xc09065 of _0x1fbaa3['createRangeIn'](_0x25cd8b['content'])['getItems']())_0xc09065['is']('element','suggestion-td')&&_0x1738c5['push'](_0xc09065);_0x1fbaa3['change'](_0x355c86=>{for(const _0x488f7b of _0x1738c5)_0x355c86['move'](_0x355c86['createRangeIn'](_0x488f7b),_0x355c86['createPositionBefore'](_0x488f7b)),_0x355c86['remove'](_0x488f7b);});});}}function Oe(_0x1489c9){if(_0x1489c9['isEmpty'])return!0x0;const _0x380e62=_0x1489c9['getChild'](0x0);return _0x380e62['is']('element','paragraph')&&_0x380e62['isEmpty'];}function Ue(_0x258fe1,_0x48c481={},_0x55b733){for(const {isAnchor:_0x4f72ad,cellHeight:_0x1f4b7d,cellWidth:_0x57e794}of _0x55b733['createTableWalker'](_0x258fe1,{'includeAllSlots':!0x0,..._0x48c481}))if(!_0x4f72ad||0x1!=_0x1f4b7d||0x1!=_0x57e794)return!0x1;return!0x0;}class Dt extends _0x53ae92{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x45e726=this['editor']['plugins']['get']('TrackChangesEditing');_0x45e726['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x45e726['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x45e726['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x45e726['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x45e726['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x45e726['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1db68f,_0x405eab){const _0x116d61=this['editor']['plugins']['get']('TrackChangesEditing'),_0x544f1e=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x7bb863=_0x405eab['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x44e451=_0x544f1e['getColumnGroupElement'](_0x7bb863);let _0x11d78e=_0x44e451?_0x544f1e['getTableColumnsWidths'](_0x44e451):null,_0x4fe5fe=_0x7bb863['getAttribute']('tableWidth')||null;const _0x25b844=_0x405eab['tableWidth']||_0x4fe5fe,_0x380b0c=_0x405eab['columnWidths']||_0x11d78e,_0x369627=this['editor']['plugins']['get']('Users')['me'];for(const _0x3fa167 of _0x116d61['getSuggestions']()){const _0x11f9e5=_0x3fa167['getContainedElement']();if('resizeTable'===_0x3fa167['subType']&&_0x11f9e5===_0x7bb863){_0x3fa167['author']!==_0x369627&&_0x3fa167['discard']();const _0x454f4d=_0x3fa167['data']['commandParams'];_0x4fe5fe=_0x454f4d[0x0]['tableWidth'],_0x11d78e=_0x454f4d[0x0]['columnWidths'];break;}}_0x1db68f({'table':_0x7bb863,'tableWidth':_0x25b844,'columnWidths':_0x380b0c}),_0x116d61['markBlockFormat'](_0x7bb863,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x4fe5fe,'columnWidths':_0x11d78e}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x1ee07f){if('formatBlock'!=_0x1ee07f['type']&&'formatInline'!=_0x1ee07f['type'])return;const {data:_0x1baf3a}=_0x1ee07f;if(_0x1baf3a&&'resizeTable'===_0x1baf3a['formatGroupId']){const _0x30817d='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x30817d)};}}}class Mt extends _0x53ae92{['afterInit'](){const _0xe2b253=this['editor'];_0xe2b253['plugins']['has']('Template')&&_0xe2b253['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x53ae92{['afterInit'](){const _0x117ab7=this['editor'];if(!_0x117ab7['commands']['get']('insertTableOfContents'))return;_0x117ab7['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x5e957d=_0x117ab7['plugins']['get']('TrackChangesEditing'),_0x28bdf9=_0x117ab7['locale'];_0x5e957d['descriptionFactory']['registerElementLabel']('tableOfContents',_0x49e100=>c(_0x28bdf9,'ELEMENT_TABLE_OF_CONTENTS',_0x49e100));}}class Bt extends _0x53ae92{['afterInit'](){const _0x302e69=this['editor'];if(!_0x302e69['plugins']['has']('Title'))return;const _0x326bb8=_0x302e69['plugins']['get']('TrackChangesEditing');_0x326bb8['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x302e69['locale'],'ELEMENT_TITLE')),_0x302e69['model']['document']['registerPostFixer'](_0x4f9069=>{let _0x372209=!0x1;const _0xde41d1=Array['from'](_0x302e69['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x43dd2a,data:_0x3c09f8}of _0xde41d1){const {group:_0x56007c}=_0x326bb8['_splitMarkerName'](_0x43dd2a);if('suggestion'!==_0x56007c||!_0x3c09f8['newRange'])continue;const _0x56e76e=_0x3c09f8['newRange'],_0x3df9b8=_0x56e76e['end']['nodeBefore'];if(!_0x3df9b8||!_0x3df9b8['is']('element','title-content'))continue;if(!_0x56e76e['start']['isTouching'](_0x56e76e['end']))continue;const _0x4de331=_0x302e69['model']['schema']['getNearestSelectionRange'](_0x56e76e['end'],'forward');if(_0x4de331&&_0x4de331['isCollapsed']){const _0x296e56=_0x4f9069['createRange'](_0x56e76e['start'],_0x4de331['start']);_0x296e56['isEqual'](_0x56e76e)||(_0x4f9069['updateMarker'](_0x43dd2a,{'range':_0x296e56}),_0x372209=!0x0);}_0x372209||(_0x4f9069['removeMarker'](_0x43dd2a),_0x372209=!0x0);}return _0x372209;});}}class Ot extends _0x53ae92{['afterInit'](){const _0x534b0d=this['editor'],_0x46ad6f=_0x534b0d['plugins']['get']('TrackChangesEditing');_0x534b0d['plugins']['has']('Uploadcare')&&(_0x46ad6f['enableCommand']('uploadcare'),_0x534b0d['plugins']['has']('UploadcareImageEdit')&&(_0x46ad6f['enableCommand']('uploadcareImageEdit'),_0x46ad6f['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x46ad6f['registerBlockAttribute']('uploadcareImageId'),_0x46ad6f['descriptionFactory']['registerDescriptionCallback'](_0x50696a=>{if('attribute'!=_0x50696a['type'])return;const {data:_0x2cf865}=_0x50696a;return _0x2cf865&&'uploadcareImageId'==_0x2cf865['key']?{'type':'format','content':''}:void 0x0;})));}}class Rt extends _0x53ae92{['afterInit'](){const _0x473ced=this['editor'],_0x187200=_0x473ced['plugins']['get']('TrackChangesEditing');_0x473ced['plugins']['has']('UndoEditing')&&(_0x187200['enableCommand']('undo'),_0x187200['enableCommand']('redo'));}}class xt extends _0x53ae92{static get['requires'](){return[_t];}['afterInit'](){const _0x3572fd=this['editor'];if(!_0x3572fd['plugins']['has']('TableCaptionEditing'))return;_0x3572fd['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Tt extends _0x53ae92{['tableProperties'];['tableCellProperties'];constructor(_0x31db57){super(_0x31db57),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x5563fd=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x4ee2bf of this['tableProperties'])_0x5563fd['enableCommand'](_0x4ee2bf,(_0x9010e2,_0x1f22fe)=>{const _0x3c5e1d=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x4ee2bf,[_0x3c5e1d],this['tableProperties'],'tableProperties',_0x9010e2,_0x1f22fe);});_0x5563fd['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5563fd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5563fd['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x52c062,_0x196ceb)=>this['handleDiscardAction'](this['tableProperties'],_0x52c062,_0x196ceb)),_0x5563fd['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x12c8b1 of this['tableCellProperties'])_0x5563fd['enableCommand'](_0x12c8b1,(_0x2a6ac3,_0x2c477b)=>{const _0x4c055f=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x12c8b1,_0x4c055f,this['tableCellProperties'],'tableCellProperties',_0x2a6ac3,_0x2c477b);});_0x5563fd['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5563fd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5563fd['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x36f5c3,_0x2d3796)=>this['handleDiscardAction'](this['tableCellProperties'],_0x36f5c3,_0x2d3796)),_0x5563fd['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x5563fd['descriptionFactory']['registerDescriptionCallback'](_0x409974=>this['handleSuggestionDescription'](_0x409974));}['_handlePropertyChange'](_0x3b88c7,_0x5a3e05,_0x29cc0c,_0x30d303,_0x5498ce,_0x207531){const _0x2a4f32=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x207531['batch'],()=>{for(const _0x33fe6f of _0x5a3e05){if(this['_getSuggestion'](_0x33fe6f,_0x30d303))_0x5498ce(_0x207531);else{const _0x3e7b86={};for(const _0x362799 of _0x29cc0c){const _0x1dcf80=_0x33fe6f['getAttribute'](_0x362799);void 0x0!==_0x1dcf80&&(_0x3e7b86[_0x362799]=_0x1dcf80);}_0x5498ce(_0x207531),_0x2a4f32['markBlockFormat'](_0x33fe6f,{'commandParams':[_0x3e7b86]},[],_0x30d303);}}});}['handleDiscardAction'](_0x3561a2,_0x5b9ced,_0x4e7842){const _0x44a9c0=_0x5b9ced[0x0]['start']['nodeAfter'],_0x6865bf=_0x4e7842['commandParams'][0x0];this['editor']['model']['change'](_0xbef41=>{for(const _0x199b3c of _0x3561a2)void 0x0!==_0x6865bf[_0x199b3c]?_0xbef41['setAttribute'](_0x199b3c,_0x6865bf[_0x199b3c],_0x44a9c0):_0xbef41['removeAttribute'](_0x199b3c,_0x44a9c0);});}['handleSuggestionDescription'](_0x2615b7){if(_0x2615b7['data'])switch(_0x2615b7['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x2c5fa3,_0x3944d7){const _0x1e9525=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x32726a of _0x1e9525['getSuggestions']({'skipNotAttached':!0x0})){const _0x46b026=_0x32726a['getContainedElement']();if(_0x32726a['subType']===_0x3944d7&&_0x46b026===_0x2c5fa3)return _0x32726a;}return null;}}const u='$elementName';class p extends _0x53ae92{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0xd79e0a,_0xe8a11,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,Se,dt,mt,pt,kt,bt,yt,jt,St,At,It,_t,vt,Ct,xt,Nt,Dt,$t,Tt,Mt,Bt,Ot,Rt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x130072){super(_0x130072),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0xab41f4,_0x304434,_0xcb673e,_0x515c15)=>{this['_model']['change'](()=>{for(const _0x10bbb1 of[..._0x515c15,..._0xcb673e])this['_model']['markers']['has'](_0x10bbb1)&&_0x130072['editing']['reconvertMarker'](_0x10bbb1);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ut(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x130072['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x130072['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x130072['config']['get']('trackChanges.trackFormatChanges'),_0x130072['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x130072['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x130072,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x5f5ac2=this['editor'],_0x7f06a0=(_0x1afc83,_0x4b3907)=>{if('attribute'!=_0x1afc83)return'ck-suggestion-marker-'+_0x1afc83;const _0xd1203c=_0x4b3907['split']('|')[0x0];return this['_isBlockAttribute'](_0xd1203c)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x5f5ac2['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x3e5fbb=>{const {id:_0x4dc045,authorId:_0x35e1cf,type:_0x42cb04,subType:_0x1d95ec}=this['_splitMarkerName'](_0x3e5fbb['markerName']),_0x1456a6=['ck-suggestion-marker',_0x7f06a0(_0x42cb04,_0x1d95ec)];let _0x57cc41=0xbb8;return this['activeMarkers']['includes'](_0x3e5fbb['markerName'])&&(_0x1456a6['push']('ck-suggestion-marker--active'),_0x57cc41=0xbc2),'deletion'==_0x42cb04&&(_0x57cc41+=0x5),{'classes':_0x1456a6,'attributes':{'data-suggestion':_0x4dc045,'data-author-id':_0x35e1cf},'priority':_0x57cc41};}}),_0x5f5ac2['conversion']['for']('dataDowncast')['add'](_0x5c651e=>{_0x5c651e['on']('addMarker:suggestion',(_0x27ced6,_0xc4f7d2,_0x3917b1)=>{if(!_0x3917b1['options']['showSuggestionHighlights'])return;const _0x51b53a=_0xc4f7d2['item'];if(!_0x51b53a)return;const _0x1f4738=_0x3917b1['mapper']['toViewElement'](_0x51b53a);_0x5f5ac2['model']['schema']['isObject'](_0x51b53a)&&_0x1f4738&&!_0x1f4738['getCustomProperty']('widget')&&_0x1f4738['is']('containerElement')&&_0x5442e8(_0x1f4738,_0x3917b1['writer']);},{'priority':'high'});}),_0x5f5ac2['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0xcad25e,_0x75f508)=>{if(!_0x75f508['options']['showSuggestionHighlights'])return null;const {type:_0x185262,subType:_0x50a21a}=this['_splitMarkerName'](_0xcad25e['markerName']);return{'classes':['ck-suggestion-marker',_0x7f06a0(_0x185262,_0x50a21a)],'priority':0xbb8};}});const _0x47abfb=({showActiveMarkers:_0x37ec69=!0x0,isAttributeSuggestion:_0x7f8433=!0x1}={})=>(_0x141f24,_0x111bc6,_0x4469eb)=>{if(!_0x111bc6['item'])return;const {id:_0x456afb,authorId:_0x18b476}=this['_splitMarkerName'](_0x111bc6['markerName']);if(_0x7f8433){const _0x4a5803=this['_suggestions']['get'](_0x456afb),_0x30a5d9=this['_getAttributeKey'](_0x4a5803);if(!this['_isBlockAttribute'](_0x30a5d9))return;}if(_0x111bc6['item']['is']('selection'))return void _0x4469eb['consumable']['consume'](_0x111bc6['item'],_0x141f24['name']);const _0x54428a=_0x4469eb['mapper']['toViewElement'](_0x111bc6['item']);if(_0x111bc6['item']['is']('element')&&_0x5f5ac2['model']['schema']['isBlock'](_0x111bc6['item'])&&!_0x54428a['getCustomProperty']('addHighlight')){_0x4469eb['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x54428a),_0x4469eb['writer']['setAttribute']('data-suggestion',_0x456afb,_0x54428a),_0x4469eb['writer']['setAttribute']('data-author-id',_0x18b476,_0x54428a),_0x4469eb['mapper']['bindElementToMarker'](_0x54428a,_0x111bc6['markerName']),_0x37ec69&&(this['activeMarkers']['includes'](_0x111bc6['markerName'])?_0x4469eb['writer']['addClass']('ck-suggestion-marker--active',_0x54428a):_0x4469eb['writer']['removeClass']('ck-suggestion-marker--active',_0x54428a));for(const _0x29704c of _0x5f5ac2['model']['createRangeIn'](_0x111bc6['item'])['getItems']())_0x4469eb['consumable']['consume'](_0x29704c,_0x141f24['name']);_0x4469eb['consumable']['consume'](_0x111bc6['item'],_0x141f24['name']);}};_0x5f5ac2['conversion']['for']('dataDowncast')['add'](_0x1af5e8=>{_0x1af5e8['on']('addMarker:suggestion:formatBlock',(_0x17ec14,_0x5e34b6,_0x3c0afe)=>{_0x3c0afe['options']['showSuggestionHighlights']&&_0x47abfb({'showActiveMarkers':!0x1})(_0x17ec14,_0x5e34b6,_0x3c0afe);},{'priority':'highest'});}),_0x5f5ac2['conversion']['for']('dataDowncast')['add'](_0x33c8df=>{_0x33c8df['on']('addMarker:suggestion:attribute',(_0x546a30,_0x46accf,_0xa32aa0)=>{_0xa32aa0['options']['showSuggestionHighlights']&&_0x47abfb({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x546a30,_0x46accf,_0xa32aa0);},{'priority':'highest'});}),_0x5f5ac2['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x4b258a,_0x2bcdc3)=>_0x2bcdc3['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x4b258a['substr'](0xb)}}),_0x5f5ac2['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3acb83,{writer:_0xa188e6})=>{let _0x4cfdf5='suggestion:'+_0x3acb83['getAttribute']('suggestion-type')+':'+_0x3acb83['getAttribute']('id');return _0x3acb83['getAttribute']('marker-count')&&(_0x4cfdf5+=':'+_0x3acb83['getAttribute']('marker-count')),_0xa188e6['createElement']('$marker',{'data-name':_0x4cfdf5});}}),_0x5f5ac2['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x5f5ac2['conversion']['for']('editingDowncast')['add'](_0x115767=>{_0x115767['on']('addMarker:suggestion:formatBlock',_0x47abfb(),{'priority':'high'});}),_0x5f5ac2['conversion']['for']('editingDowncast')['add'](_0x3ae952=>{_0x3ae952['on']('addMarker:suggestion:attribute',_0x47abfb({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x5f5ac2['conversion']['for']('editingDowncast')['add'](_0x39719c=>{_0x39719c['on']('removeMarker:suggestion:formatBlock',(_0xec3078,_0x5430c0,_0xa2f5bc)=>{const _0xa3a307=_0xa2f5bc['mapper']['markerNameToElements'](_0x5430c0['markerName']);if(_0xa3a307){for(const _0x85a53a of _0xa3a307)_0x85a53a['getCustomProperty']('addHighlight')||(_0xa2f5bc['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x85a53a),_0xa2f5bc['writer']['removeAttribute']('data-suggestion',_0x85a53a),_0xa2f5bc['writer']['removeAttribute']('data-author-id',_0x85a53a),_0xa2f5bc['mapper']['unbindElementFromMarkerName'](_0x85a53a,_0x5430c0['markerName']));}},{'priority':'high'});}),_0x5f5ac2['conversion']['for']('editingDowncast')['add'](_0x79921=>{_0x79921['on']('removeMarker:suggestion:attribute',(_0x377504,_0x1b6c47,_0x109807)=>{const _0x12882e=_0x109807['mapper']['markerNameToElements'](_0x1b6c47['markerName']);if(!_0x12882e)return;const {id:_0xdf1a6a}=this['_splitMarkerName'](_0x1b6c47['markerName']),_0x566e99=this['_suggestions']['get'](_0xdf1a6a),_0x4d6e5a=this['_getAttributeKey'](_0x566e99);if(this['_isBlockAttribute'](_0x4d6e5a)){for(const _0x212b13 of _0x12882e)_0x212b13['getCustomProperty']('addHighlight')||(_0x109807['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x212b13),_0x109807['writer']['removeAttribute']('data-suggestion',_0x212b13),_0x109807['writer']['removeAttribute']('data-author-id',_0x212b13),_0x109807['mapper']['unbindElementFromMarkerName'](_0x212b13,_0x1b6c47['markerName']));}},{'priority':'high'});}),_0x5f5ac2['model']['document']['registerPostFixer'](_0x52dab6=>{let _0xd99213=!0x1;const _0x1aa16f=Array['from'](_0x5f5ac2['model']['document']['differ']['getChangedMarkers']()),_0x3cd641=new Set();for(const {name:_0x493964,data:_0x266131}of _0x1aa16f){const {group:_0x1b14d8,type:_0x3f9af2,subType:_0x5eb42a,id:_0x17d679}=this['_splitMarkerName'](_0x493964);if('suggestion'!==_0x1b14d8)continue;const _0xd59efa=this['_suggestions']['get'](_0x17d679);if(null!=_0x266131['newRange']){'formatInline'==_0x3f9af2&&(_0xd99213=_0xd99213||Pt(_0x266131['newRange'],_0x493964,_0x52dab6,_0x5f5ac2['model']['schema']));const _0x567369='attribute'==_0x3f9af2&&this['_isBlockAttribute'](_0x5eb42a['split']('|')[0x0]);if(_0x266131['newRange']['isCollapsed']||'$graveyard'==_0x266131['newRange']['root']['rootName']||'formatBlock'==_0x3f9af2&&!Lt(_0x266131['newRange'])||_0x567369&&!Lt(_0x266131['newRange'])||'deletion'==_0x3f9af2&&!(!Ft(_0x482c60=_0x266131['newRange'])&&!function(_0x3153a4){return _0x3153a4['start']['parent']==_0x3153a4['end']['nodeBefore']&&_0x3153a4['start']['isAtEnd'];}(_0x482c60)))_0x52dab6['removeMarker'](_0x493964),_0xd99213=!0x0;else{if(!_0xd59efa||!_0xd59efa['isInContent'])continue;if(_0x266131['newRange']&&_0x266131['oldRange']&&_0x266131['newRange']['isEqual'](_0x266131['oldRange']))continue;_0x3cd641['add'](_0xd59efa);}}}var _0x482c60;return _0x3cd641['size']>0x0&&(_0xd99213=!!this['_joinWithAdjacentSuggestions'](_0x3cd641)||_0xd99213),_0xd99213;}),_0x5f5ac2['model']['document']['registerPostFixer'](_0x5519e2=>{let _0x31b9aa=!0x1;for(const _0xfe948e of _0x5f5ac2['model']['document']['differ']['getChanges']())if('insert'==_0xfe948e['type'])for(const _0x7094c1 of this['_suggestions']['values']()){if(_0x7094c1['isMultiRange']||!_0x7094c1['isInContent'])continue;const _0x4ef33a='formatBlock'==_0x7094c1['type'],_0x2ddf4e=this['_getAttributeKey'](_0x7094c1),_0x9c63e7=_0x2ddf4e&&this['_isBlockAttribute'](_0x2ddf4e);if(!_0x4ef33a&&!_0x9c63e7)continue;const _0x169bed=_0x7094c1['getFirstRange']();if(_0x169bed['start']['parent']!=_0x169bed['end']['parent']&&!_0x169bed['end']['isAtEnd']){const _0x571329=_0x5f5ac2['model']['createPositionAt'](_0x169bed['start']['nodeAfter'],'end'),_0x31e0de=_0x5f5ac2['model']['createRange'](_0x169bed['start'],_0x571329);_0x5519e2['updateMarker'](_0x7094c1['getFirstMarker'](),{'range':_0x31e0de}),_0x31b9aa=!0x0;}}return _0x31b9aa;}),_0x5f5ac2['model']['document']['registerPostFixer'](_0x4cf11d=>this['_processAttributeChanges'](_0x4cf11d)),_0x5f5ac2['model']['document']['registerPostFixer'](_0x5722ba=>!_0x5722ba['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x5722ba)),_0x5f5ac2['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x5f5ac2['model']['document']['on']('change:data',(_0x5e780d,_0x195b77)=>{if(!_0x195b77['isLocal']||_0x195b77['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4dccee=_0x5f5ac2['model']['document']['differ']['getChanges']();if(0x0==_0x4dccee['length'])return;const _0x28704e=[],_0x2194c4=_0x4dccee['filter'](_0x6b9ec6=>'attribute'==_0x6b9ec6['type']),_0x542d3b=_0x4dccee['filter'](_0x1d5b18=>'insert'==_0x1d5b18['type']&&'$text'!=_0x1d5b18['name']);for(const _0x1ca3dd of _0x2194c4)this['_isRegisteredAttribute'](_0x1ca3dd['attributeKey'])&&_0x28704e['push']({'key':_0x1ca3dd['attributeKey'],'newValue':_0x1ca3dd['attributeNewValue'],'oldValue':_0x1ca3dd['attributeOldValue'],'range':Jt(_0x1ca3dd['range'],_0x5f5ac2['model'])});for(const _0x565906 of _0x542d3b){if('rename'!=_0x565906['action']&&'refresh'!=_0x565906['action'])continue;const _0x2749f5=Kt(_0x565906['position']['nodeAfter'],_0x5f5ac2['model']),_0x1b9166=_0x565906['before'];'rename'==_0x565906['action']&&_0x28704e['push']({'key':u,'newValue':_0x565906['name'],'oldValue':_0x1b9166['name'],'range':_0x2749f5});for(const [_0x35f045,_0x4281a9]of _0x1b9166['attributes']){if(!this['_isRegisteredAttribute'](_0x35f045))continue;const _0x238a3f=_0x565906['attributes']['get'](_0x35f045);_0x4281a9!==_0x238a3f&&_0x28704e['push']({'key':_0x35f045,'newValue':_0x238a3f,'oldValue':_0x4281a9,'range':_0x2749f5});}for(const [_0x5b6660,_0x2da797]of _0x565906['attributes'])this['_isRegisteredAttribute'](_0x5b6660)&&(_0x1b9166['attributes']['has'](_0x5b6660)||_0x28704e['push']({'key':_0x5b6660,'newValue':_0x2da797,'oldValue':null,'range':_0x2749f5}));}0x0!=_0x28704e['length']&&_0x5f5ac2['model']['enqueueChange'](_0x195b77,_0x172011=>{const _0x336c87=_0x33987a();for(const {range:_0x129c4e,key:_0x2b290f,oldValue:_0x3980e6,newValue:_0x26844b}of _0x28704e)this['markAttributeChange'](_0x129c4e,_0x2b290f,_0x3980e6,_0x26844b,{'groupId':_0x336c87});this['_reduceExistingSuggestions'](_0x172011,_0x28704e);});},{'priority':'lowest'}),_0x5f5ac2['model']['markers']['on']('update:suggestion',(_0x41c176,_0x124bf6,_0x24bfdd)=>{if(null==_0x24bfdd){const {id:_0xfac1ec}=this['_splitMarkerName'](_0x124bf6['name']),_0x3beb5d=this['_suggestions']['get'](_0xfac1ec);_0x3beb5d&&_0x3beb5d['addMarkerName'](_0x124bf6['name']);}}),_0x5f5ac2['model']['document']['on']('change:data',()=>{const _0x371d54=Array['from'](_0x5f5ac2['model']['document']['differ']['getChangedMarkers']())['filter'](_0x31e8b3=>'suggestion'===this['_splitMarkerName'](_0x31e8b3['name'])['group']);if(0x0===_0x371d54['length'])return;_0x371d54['sort']((_0x1ebe99,_0x3a93a9)=>{const _0x12f69f=_0x1ebe99['data']['oldRange'],_0x3b2efb=_0x3a93a9['data']['oldRange'];return null===_0x12f69f&&null===_0x3b2efb?0x0:null===_0x12f69f&&null!==_0x3b2efb?-0x1:null!==_0x12f69f&&null===_0x3b2efb?0x1:_0x12f69f['start']['isBefore'](_0x3b2efb['start'])?-0x1:0x1;});const _0x110827=new Set(),_0x46d533=new Set();for(const {name:_0x236e18,data:_0xe2843f}of _0x371d54){const {id:_0x5dc555}=this['_splitMarkerName'](_0x236e18);if(null===_0xe2843f['oldRange']){const _0x2dedf1=this['_handleNewSuggestionMarker'](_0x236e18);_0x46d533['add'](_0x2dedf1);}else{const _0x4cf144=this['_suggestions']['get'](_0x5dc555);null!==_0xe2843f['newRange']||_0x4cf144['isInContent']?(_0x110827['add'](_0x4cf144['head']),_0x46d533['add'](_0x4cf144)):this['_removeSuggestion'](_0x4cf144);}}_0x46d533['size']>0x0&&this['_refreshSuggestionsChain'](_0x46d533);for(const _0x3f1664 of _0x110827)this['fire']('suggestionChanged',_0x3f1664);}),_0x5f5ac2['model']['on']('applyOperation',(_0x4b41cb,_0x1705df)=>{const _0x4ebc48=_0x1705df[0x0];if(!this['_suggestions']['size'])return;if(!_0x4ebc48['isDocumentOperation'])return;if(_0x4ebc48['batch']['isUndo']||!_0x4ebc48['batch']['isLocal'])return;let _0x57fbc7,_0x592c53;switch(_0x4ebc48['type']){case'insert':_0x57fbc7=_0x5f5ac2['model']['createPositionAt'](_0x4ebc48['position']),_0x592c53=_0x57fbc7['getShiftedBy'](_0x4ebc48['howMany']);break;case'split':_0x57fbc7=_0x5f5ac2['model']['createPositionAt'](_0x4ebc48['splitPosition']),_0x592c53=_0x5f5ac2['model']['createPositionAt'](_0x4ebc48['moveTargetPosition']);break;case'move':_0x57fbc7=_0x5f5ac2['model']['createPositionAt'](_0x4ebc48['targetPosition']),_0x592c53=_0x57fbc7['getShiftedBy'](_0x4ebc48['howMany']);break;default:return;}const _0x470182=_0x5f5ac2['model']['createRange'](_0x57fbc7,_0x592c53);_0x5f5ac2['model']['change'](()=>{for(const {suggestion:_0x2b6b58,meta:_0x493164}of this['_findSuggestions'](_0x470182)){if(_0x2b6b58['isMultiRange'])continue;if('formatInline'==_0x2b6b58['type'])continue;const _0x14f69a=this['_getAttributeKey'](_0x2b6b58);if(_0x14f69a&&this['_isBlockAttribute'](_0x14f69a)&&'split'!=_0x4ebc48['type'])continue;const _0x4d8381=_0x2b6b58['data']&&_0x2b6b58['data']['multipleBlocks'];('formatBlock'!=_0x2b6b58['type']||'split'==_0x4ebc48['type']&&!_0x4d8381)&&(_0x493164['containsRangeInObject']||'insertion'==_0x2b6b58['type']&&_0x493164['isOwn']||_0x2b6b58['getFirstRange']()['containsRange'](_0x470182)&&this['_breakSuggestionMarker'](_0x2b6b58,_0x57fbc7,_0x592c53));}});},{'priority':'lowest'}),_0x5f5ac2['model']['on']('deleteContent',(_0x3bc6ce,_0x28aaeb)=>{const _0x515579=_0x28aaeb[0x0],_0x57d494=_0x28aaeb[0x1];if(_0x57d494&&_0x57d494['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x515579['isCollapsed'])return;const _0x323b22=_0x5f5ac2['model']['schema'],{start:_0x953b5,end:_0x1d8675}=_0x515579['getFirstRange'](),_0x5254eb=_0x953b5['nodeAfter']&&_0x323b22['isLimit'](_0x953b5['nodeAfter'])?null:_0x323b22['getNearestSelectionRange'](_0x953b5,'forward'),_0x404cf8=_0x1d8675['nodeBefore']&&_0x323b22['isLimit'](_0x1d8675['nodeBefore'])?null:_0x323b22['getNearestSelectionRange'](_0x1d8675,'backward'),_0x187b4e=_0x5f5ac2['model']['createRange'](_0x5254eb?_0x5254eb['start']:_0x953b5,_0x404cf8?_0x404cf8['end']:_0x1d8675);_0x5f5ac2['model']['change'](_0x801cfd=>{this['markDeletion'](_0x187b4e);const _0x20b87f=_0x5f5ac2['model']['schema']['getNearestSelectionRange'](_0x187b4e['start']);_0x515579['is']('documentSelection')?_0x801cfd['setSelection'](_0x20b87f):_0x515579['setTo'](_0x20b87f);}),_0x3bc6ce['stop']();},{'priority':_0x9eec71['normal']+0xa}),_0x5f5ac2['model']['on']('insertContent',(_0x2f07d4,_0x54e3ec)=>{const _0x189710=_0x54e3ec[_0x54e3ec['length']-0x1];_0x189710&&_0x189710['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x5f5ac2['model']['change'](()=>{let _0x321267=_0x5f5ac2['model']['insertContent'](_0x54e3ec[0x0],_0x54e3ec[0x1],_0x54e3ec[0x2],{'forceDefaultExecution':!0x0});if(!_0x321267)return;_0x2f07d4['return']=_0x321267['clone']();const _0x28237b=_0x321267['end']['nodeBefore'],_0x50ab2a=_0x5f5ac2['model']['schema'];_0x28237b&&_0x50ab2a['isBlock'](_0x28237b)&&!_0x50ab2a['isObject'](_0x28237b)&&(_0x321267=_0x5f5ac2['model']['createRange'](_0x321267['start'],_0x5f5ac2['model']['createPositionAt'](_0x28237b,'end'))),this['markInsertion'](_0x321267);}),_0x2f07d4['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3657d1=new O(_0x5f5ac2,this['_suggestions']);_0x5f5ac2['commands']['add']('acceptSuggestion',_0x3657d1),this['enableCommand']('acceptSuggestion');const _0x322a1c=new R(_0x5f5ac2,this['_suggestions']);_0x5f5ac2['commands']['add']('discardSuggestion',_0x322a1c),this['enableCommand']('discardSuggestion'),_0x5f5ac2['commands']['add']('acceptAllSuggestions',new x(_0x5f5ac2,_0x3657d1,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x5f5ac2['commands']['add']('discardAllSuggestions',new x(_0x5f5ac2,_0x322a1c,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x5f5ac2['commands']['add']('acceptSelectedSuggestions',new E(_0x5f5ac2,_0x3657d1,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x5f5ac2['commands']['add']('discardSelectedSuggestions',new E(_0x5f5ac2,_0x322a1c,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x4653c4=_0x5f5ac2['plugins']['get']('CommentsRepository');this['listenTo'](_0x4653c4,'addComment',(_0x4c8623,{threadId:_0x17082f})=>{const _0x12948f=this['_suggestions']['get'](_0x17082f);_0x12948f&&_0x12948f['commentThread']&&0x1===_0x12948f['commentThread']['length']&&this['_updateSuggestionData'](_0x17082f,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x4653c4,'removeComment',(_0x4649a0,{threadId:_0x19b222})=>{const _0x46a0a9=this['_suggestions']['get'](_0x19b222);_0x46a0a9&&_0x46a0a9['commentThread']&&!_0x46a0a9['commentThread']['length']&&this['_updateSuggestionData'](_0x19b222,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x3cd1e7){const _0xb8464e=_0x527c35([0x74,0x76,0x37,0x4f,0x70,0x66,0x4d,0x6d,0x50,0x31,0x63,0x45,0x65,0x58,0x36,0x62,0x6e,0x33,0x41,0x32,0x4b,0x56,0x67,0x43,0x54,0x5a,0x39,0x34,0x4a,0x6f,0x4e,0x51,0x75,0x42,0x7a,0x78,0x6a,0x30,0x64,0x4c,0x38,0x53,0x69,0x73,0x6b,0x77,0x49,0x44,0x48,0x57,0x35,0x55,0x47,0x6c,0x72,0x79,0x46,0x61,0x71,0x52,0x68,0x59]),_0x57e91b=0x171e8f4e,_0x2353c3=0x1719d006^_0x57e91b,_0x44dd93=window[_0x527c35([0x44,0x61,0x74,0x65])][_0x527c35([0x6e,0x6f,0x77])](),_0x215108=_0x3cd1e7[_0x527c35([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2f8255=new window[(_0x527c35([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x42910c=>{_0x215108[_0x527c35([0x6f,0x6e,0x63,0x65])](_0x527c35([0x72,0x65,0x61,0x64,0x79]),_0x42910c);}),_0x20f6f4={[_0x527c35([0x6b,0x74,0x79])]:_0x527c35([0x45,0x43]),[_0x527c35([0x75,0x73,0x65])]:_0x527c35([0x73,0x69,0x67]),[_0x527c35([0x63,0x72,0x76])]:_0x527c35([0x50,0x2d,0x32,0x35,0x36]),[_0x527c35([0x78])]:_0x527c35([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x527c35([0x79])]:_0x527c35([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x527c35([0x61,0x6c,0x67])]:_0x527c35([0x45,0x53,0x32,0x35,0x36])},_0x2d328a=_0x215108[_0x527c35([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x527c35([0x67,0x65,0x74])](_0x527c35([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x271111(){let _0x2eeb7e,_0x108950=null,_0x26b411=null;try{if(_0x2d328a==_0x527c35([0x47,0x50,0x4c]))return _0x527c35([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2eeb7e=_0x4883d5(),!_0x2eeb7e)return _0x527c35([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2eeb7e[_0x527c35([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x26b411=_0x1d0ec0(_0x2eeb7e[_0x527c35([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2eeb7e[_0x527c35([0x6a,0x74,0x69])])),await _0x4f199b()?_0x3d4d7b()?_0x1e9ffe()?_0x527c35([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3cd206()?(_0x2eeb7e[_0x527c35([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x527c35([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x108950=_0x524647(_0x527c35([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2eeb7e[_0x527c35([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x527c35([0x74,0x72,0x69,0x61,0x6c])&&(_0x108950=_0x524647(_0x527c35([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2bcfe0()):_0x527c35([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x527c35([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x527c35([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x298d40){return _0x527c35([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1e9ffe(){const _0x5a2d65=[_0x527c35([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x527c35([0x74,0x72,0x69,0x61,0x6c])][_0x527c35([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2eeb7e[_0x527c35([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x44dd93/0x3e8:0xe10*_0x2353c3;return _0x2eeb7e[_0x527c35([0x65,0x78,0x70])]<_0x5a2d65;}function _0x3d4d7b(){const _0x2cfba3=_0x2eeb7e[_0x527c35([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2cfba3)return!0x1;if(_0x2cfba3[_0x527c35([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x527c35([0x2a])))return!0x0;if(_0x2cfba3[_0x527c35([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x527c35([0x54,0x43])))return!0x0;if(_0x2cfba3[_0x527c35([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x527c35([0x52,0x54,0x43]))){if(_0x3bb319())return!0x0;if(_0x4ed6b0()||_0x3940c2())return!0x0;}return!0x1;}function _0x3cd206(){const _0x44e380=_0x2eeb7e[_0x527c35([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x44e380||0x0==_0x44e380[_0x527c35([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x508449}=new URL(window[_0x527c35([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x44e380[_0x527c35([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x508449))return!0x0;const _0x583847=_0x508449[_0x527c35([0x73,0x70,0x6c,0x69,0x74])](_0x527c35([0x2e]));return _0x44e380[_0x527c35([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5c024f=>_0x5c024f[_0x527c35([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x527c35([0x2a])))[_0x527c35([0x6d,0x61,0x70])](_0x2765f7=>_0x2765f7[_0x527c35([0x73,0x70,0x6c,0x69,0x74])](_0x527c35([0x2e])))[_0x527c35([0x73,0x6f,0x6d,0x65])](_0x3c543b=>_0x583847[_0x527c35([0x65,0x76,0x65,0x72,0x79])]((_0x1d45df,_0x1dc798)=>_0x3c543b[_0x1dc798]===_0x1d45df||_0x3c543b[_0x1dc798]===_0x527c35([0x2a])));}function _0x2bcfe0(){return _0x108950&&_0x26b411?new window[(_0x527c35([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4907bb,_0x177a78)=>{_0x108950[_0x527c35([0x74,0x68,0x65,0x6e])](_0x4907bb,_0x177a78),_0x26b411[_0x527c35([0x74,0x68,0x65,0x6e])](_0x58ff72=>{_0x58ff72!=_0x527c35([0x56,0x61,0x6c,0x69,0x64])&&_0x4907bb(_0x58ff72);},_0x177a78);}):_0x108950||_0x26b411||_0x527c35([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1d0ec0(_0x14f12d,_0x19349d){return new window[(_0x527c35([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1fcba6=>{if(_0x196960())return _0x1fcba6(_0x527c35([0x56,0x61,0x6c,0x69,0x64]));_0x363e7b(),_0x215108[_0x527c35([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x527c35([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x322e9e=!0x1;const _0x7470b0=_0x33987a();function _0x46a54b(_0x2f1165){return!!_0x2f1165&&(typeof _0x2f1165===_0x527c35([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2f1165===_0x527c35([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2f1165[_0x527c35([0x74,0x68,0x65,0x6e])]===_0x527c35([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2f1165[_0x527c35([0x63,0x61,0x74,0x63,0x68])]===_0x527c35([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5161a8(_0x4890e6){_0x4117f2(_0x4890e6)[_0x527c35([0x74,0x68,0x65,0x6e])](_0x35c14a=>{if(!_0x35c14a||_0x35c14a[_0x527c35([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x527c35([0x6f,0x6b]))return _0x527c35([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xc90d8f(_0x30b870(_0x7470b0+_0x19349d))!=_0x35c14a[_0x527c35([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x527c35([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x527c35([0x56,0x61,0x6c,0x69,0x64]);})[_0x527c35([0x74,0x68,0x65,0x6e])](_0x255b90=>(_0x471767(),_0x255b90),()=>{const _0x454de1=_0x37492a();return null==_0x454de1?(_0x471767(),_0x527c35([0x56,0x61,0x6c,0x69,0x64])):_0x527c35(_0x44dd93-_0x454de1>(0x33120b4e^_0x57e91b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x527c35([0x74,0x68,0x65,0x6e])](_0x1fcba6)[_0x527c35([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1fcba6(_0x527c35([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xb9f7a4=0x172861ce^_0x57e91b;function _0x471767(){const _0x1f0fb3=_0x527c35([0x6c,0x6c,0x63,0x74,0x2d])+_0xc90d8f(_0x30b870(_0x14f12d)),_0x34192d=_0x3251d6(_0xc90d8f(window[_0x527c35([0x4d,0x61,0x74,0x68])][_0x527c35([0x63,0x65,0x69,0x6c])](_0x44dd93/_0xb9f7a4)));window[_0x527c35([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x527c35([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1f0fb3,_0x34192d);}function _0x37492a(){const _0x13c197=_0x527c35([0x6c,0x6c,0x63,0x74,0x2d])+_0xc90d8f(_0x30b870(_0x14f12d)),_0x548208=window[_0x527c35([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x527c35([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x13c197);return _0x548208?window[_0x527c35([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3251d6(_0x548208),0x10)*_0xb9f7a4:null;}function _0x4117f2(_0x5006c3){return new window[(_0x527c35([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xb60fcb,_0x4a4901)=>{_0x5006c3[_0x527c35([0x74,0x68,0x65,0x6e])](_0xb60fcb,_0x4a4901),window[_0x527c35([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4a4901,0x171f5b8e^_0x57e91b);});}}_0x215108[_0x527c35([0x6f,0x6e])](_0x527c35([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x311747,_0x4b2158)=>{if(_0x4b2158[0x0]!=_0x14f12d)return _0x1fcba6(_0x527c35([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4b2158[0x1]={..._0x4b2158[0x1],[_0x527c35([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x7470b0};},{[_0x527c35([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x527c35([0x68,0x69,0x67,0x68])}),_0x215108[_0x527c35([0x6f,0x6e])](_0x527c35([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x11f012=>{_0x46a54b(_0x11f012[_0x527c35([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x322e9e=!0x0,_0x5161a8(_0x11f012[_0x527c35([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x527c35([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x527c35([0x6c,0x6f,0x77])}),_0x2f8255[_0x527c35([0x74,0x68,0x65,0x6e])](()=>{_0x322e9e||_0x1fcba6(_0x527c35([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x196960(){return _0x215108[_0x527c35([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x527c35([0x76,0x69,0x65,0x77])][_0x527c35([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x527c35([0x61,0x75,0x74,0x6f]);}function _0x363e7b(){_0x215108[_0x527c35([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x527c35([0x76,0x69,0x65,0x77])][_0x527c35([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x527c35([0x61,0x75,0x74,0x6f]);}}function _0x524647(_0x2a2a87){const _0x35e8cf=[new window[(_0x527c35([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x16b9be=>setTimeout(_0x16b9be,0x1717b182^_0x57e91b)),_0x2f8255[_0x527c35([0x74,0x68,0x65,0x6e])](()=>new window[(_0x527c35([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a47ee=>{let _0x2dc3fb=0x0;_0x215108[_0x527c35([0x6d,0x6f,0x64,0x65,0x6c])][_0x527c35([0x6f,0x6e])](_0x527c35([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x131081,_0x58255f)=>{_0x58255f[0x0][_0x527c35([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2dc3fb++,_0x2dc3fb==(0x171e8eb6^_0x57e91b)&&(_0x5a47ee(),_0x131081[_0x527c35([0x6f,0x66,0x66])]());});}))];return window[_0x527c35([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x527c35([0x72,0x61,0x63,0x65])](_0x35e8cf)[_0x527c35([0x74,0x68,0x65,0x6e])](()=>_0x2a2a87);}async function _0x22d1ff(){await _0x2f8255,_0x215108[_0x527c35([0x6d,0x6f,0x64,0x65,0x6c])][_0x527c35([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x475b64,_0x215108[_0x527c35([0x6d,0x6f,0x64,0x65,0x6c])][_0x527c35([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x475b64,_0x215108[_0x527c35([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x527c35([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3bb319(){return _0x239590(_0x527c35([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3f5855(_0x527c35([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x527c35([0x73,0x74,0x61,0x74,0x65])]==_0x527c35([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4ed6b0(){return _0x239590(_0x527c35([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x3940c2(){return _0x239590(_0x527c35([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x554d82(_0x3c0246){const _0x2d5747=_0x48bbcd();_0x215108[_0x2d5747]=_0x527c35([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3c0246,_0x3c0246!=_0x527c35([0x56,0x61,0x6c,0x69,0x64])&&_0x22d1ff();}function _0x48bbcd(){const _0x587720=window[_0x527c35([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x527c35([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x527c35([0x6e,0x6f,0x77])]())[_0x527c35([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x527c35([0x2e]),'');let _0x51568b=_0x527c35([0x74]);for(let _0x2290b2=0x0;_0x2290b2<_0x587720[_0x527c35([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2290b2+=0x2){let _0x3ed78f=window[_0x527c35([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x587720[_0x527c35([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2290b2,_0x2290b2+0x2));_0x3ed78f>=_0xb8464e[_0x527c35([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3ed78f-=_0xb8464e[_0x527c35([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x51568b+=_0xb8464e[_0x3ed78f];}return _0x51568b;}function _0x4883d5(){const _0x3b76c1=_0x2d328a[_0x527c35([0x73,0x70,0x6c,0x69,0x74])](_0x527c35([0x2e]));if(0x3!=_0x3b76c1[_0x527c35([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x54fc1e(_0x3b76c1[0x1]);function _0x54fc1e(_0x593de9){const _0x187a6b=_0x1f86d1(_0x593de9);return _0x187a6b&&_0x3145d8()?_0x187a6b:null;function _0x3145d8(){const _0x4836ec=_0x187a6b[_0x527c35([0x6a,0x74,0x69])],_0x353c42=window[_0x527c35([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4836ec[_0x527c35([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4836ec[_0x527c35([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x51be55={..._0x187a6b,[_0x527c35([0x6a,0x74,0x69])]:_0x4836ec[_0x527c35([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4836ec[_0x527c35([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x51be55[_0x527c35([0x76,0x63])],_0x30b870(_0x51be55)==_0x353c42;}}}async function _0x4f199b(){let _0x332705=!0x0;try{const _0x2cd419=_0x2d328a[_0x527c35([0x73,0x70,0x6c,0x69,0x74])](_0x527c35([0x2e])),[_0x49b32b,_0x12493b,_0x5117e]=_0x2cd419;return _0x3e24cc(_0x49b32b),await _0x538834(_0x49b32b,_0x12493b,_0x5117e),_0x332705;}catch(_0x5a8a2e){return!0x1;}function _0x3e24cc(_0x170c3c){const _0x286167=_0x1f86d1(_0x170c3c);_0x286167&&_0x286167[_0x527c35([0x61,0x6c,0x67])]==_0x527c35([0x45,0x53,0x32,0x35,0x36])||(_0x332705=!0x1);}async function _0x538834(_0x5102cf,_0x1ca2b1,_0x24f4b7){const _0x152f41=window[_0x527c35([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x527c35([0x66,0x72,0x6f,0x6d])](_0xae838b(_0x24f4b7),_0x10c9fe=>_0x10c9fe[_0x527c35([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x138799=new window[(_0x527c35([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x527c35([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5102cf+_0x527c35([0x2e])+_0x1ca2b1),_0x285b56=window[_0x527c35([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x527c35([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x285b56)return;const _0xc34033=await _0x285b56[_0x527c35([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x527c35([0x6a,0x77,0x6b]),_0x20f6f4,{[_0x527c35([0x6e,0x61,0x6d,0x65])]:_0x527c35([0x45,0x43,0x44,0x53,0x41]),[_0x527c35([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x527c35([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x527c35([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x285b56[_0x527c35([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x527c35([0x6e,0x61,0x6d,0x65])]:_0x527c35([0x45,0x43,0x44,0x53,0x41]),[_0x527c35([0x68,0x61,0x73,0x68])]:{[_0x527c35([0x6e,0x61,0x6d,0x65])]:_0x527c35([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xc34033,_0x152f41,_0x138799)||(_0x332705=!0x1);}}function _0x1f86d1(_0x29f136){return _0x29f136[_0x527c35([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x527c35([0x65,0x79]))?JSON[_0x527c35([0x70,0x61,0x72,0x73,0x65])](_0xae838b(_0x29f136)):null;}function _0xae838b(_0x5a81a9){return window[_0x527c35([0x61,0x74,0x6f,0x62])](_0x5a81a9[_0x527c35([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x527c35([0x2b]))[_0x527c35([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x527c35([0x2f])));}function _0x30b870(_0x1f5d23){let _0x1f9f9d=0x1505;function _0x40fde9(_0x3f8d3e){for(let _0x2e1cf0=0x0;_0x2e1cf0<_0x3f8d3e[_0x527c35([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2e1cf0++){const _0x538c72=_0x3f8d3e[_0x527c35([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2e1cf0);_0x1f9f9d=(_0x1f9f9d<<0x5)+_0x1f9f9d+_0x538c72,_0x1f9f9d&=_0x1f9f9d;}}function _0x12230d(_0x454f8f){Array[_0x527c35([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x454f8f)?_0x454f8f[_0x527c35([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x12230d):_0x454f8f&&typeof _0x454f8f==_0x527c35([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x527c35([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x454f8f)[_0x527c35([0x73,0x6f,0x72,0x74])]()[_0x527c35([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x19d713,_0x31545a])=>{_0x40fde9(_0x19d713),_0x12230d(_0x31545a);}):_0x40fde9(window[_0x527c35([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x454f8f));}return _0x12230d(_0x1f5d23),_0x1f9f9d>>>0x0;}function _0xc90d8f(_0x23b617){return _0x23b617[_0x527c35([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x527c35([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x527c35([0x30]));}function _0x3251d6(_0x47570a){return _0x47570a[_0x527c35([0x73,0x70,0x6c,0x69,0x74])]('')[_0x527c35([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x527c35([0x6a,0x6f,0x69,0x6e])]('');}function _0x239590(_0x365c98){return _0x215108[_0x527c35([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x527c35([0x68,0x61,0x73])](_0x365c98);}function _0x3f5855(_0x5ddd25){return _0x215108[_0x527c35([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x527c35([0x67,0x65,0x74])](_0x5ddd25);}function _0x475b64(){}function _0x527c35(_0x55a795){return _0x55a795['map'](_0x37c72b=>String['fromCharCode'](_0x37c72b))['join']('');}_0x554d82(await _0x271111());}(this);}set['adapter'](_0x1e6aa4){if(this['_adapter'])throw new _0x3d4351('track-changes-adapter-already-set',this);this['_adapter']=_0x1e6aa4;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2286e9=!0x1,toJSON:_0x112c79=!0x1}={}){const _0x56f5c7=[];for(const _0x1c26ef of this['_suggestions']['values']())_0x2286e9&&!_0x1c26ef['isInContent']||_0x56f5c7['push'](_0x1c26ef);return _0x112c79?_0x56f5c7['map'](_0x1e1721=>_0x1e1721['toJSON']()):_0x56f5c7;}['getSuggestion'](_0x242c3c){const _0x31b7e0=this['_suggestions']['get'](_0x242c3c);if(!_0x31b7e0)throw new _0x3d4351('track-changes-suggestion-not-found',this);return _0x31b7e0;}['hasSuggestion'](_0x345fa1){return this['_suggestions']['has'](_0x345fa1);}['addSuggestionData'](_0x4328f5){const {authorId:_0x1f6c52,id:_0x5b44f7,attributes:_0x50bead}=_0x4328f5,[_0x17dae2,_0x433c50]=_0x4328f5['type']['split'](':'),_0xbadf94=this['_suggestions']['get'](_0x5b44f7)||this['_createSuggestion'](_0x17dae2,_0x433c50,_0x5b44f7,_0x1f6c52,_0x50bead);if(this['_addThreadToSuggestion'](_0xbadf94),this['_checkSuggestionCorrectness'](_0xbadf94,_0x17dae2,_0x433c50||null,_0x1f6c52),_0xbadf94['createdAt']=_0x4328f5['createdAt'],_0xbadf94['_isDataLoaded']=!0x0,_0x50bead&&_0x50bead['@external']){const _0x39bfc0=_0x50bead['@external'],_0x1820f9=this['_getExternalAuthor'](_0x39bfc0['authorName']);_0xbadf94['authoredAt']=_0x39bfc0['createdAt'],_0xbadf94['author']=_0x1820f9,_0xbadf94['isExternal']=!0x0;}else _0xbadf94['authoredAt']=_0x4328f5['createdAt'];switch(_0x4328f5['data']&&(_0xbadf94['data']=_0x4328f5['data']),_0x4328f5['attributes']&&(_0xbadf94['attributes']=_0x4328f5['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0xbadf94['_saved']=!0x0),this['_suggestionState']['get'](_0xbadf94)){case'notReady':this['_suggestionState']['set'](_0xbadf94,'dataReady');break;case'markerReady':_0xbadf94['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0xbadf94])),this['_refreshSuggestionsChain'](new Set([_0xbadf94])),this['_suggestionState']['set'](_0xbadf94,'ready'),this['fire']('suggestionLoaded',_0xbadf94)):this['_suggestionState']['set'](_0xbadf94,'removed');}return _0xbadf94;}['acceptSuggestion'](_0x505075){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5b96d2 of _0x505075['getAllAdjacentSuggestions']())_0x5b96d2['accept']();});});}['discardSuggestion'](_0x46b163){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x379521 of _0x46b163['getAllAdjacentSuggestions']())_0x379521['discard']();});});}['enableCommand'](_0x2a1019,_0xb5b7d7){const _0x477474=this['editor']['commands']['get'](_0x2a1019);if(!_0x477474)throw new _0x3d4351('track-changes-command-not-found',this,{'commandName':_0x2a1019});if(this['_enabledCommands']['has'](_0x477474))throw new _0x3d4351('track-changes-enable-command-twice',this,{'commandName':_0x2a1019});this['_enabledCommands']['add'](_0x477474),_0xb5b7d7&&_0x477474['on']('execute',(_0x9324d2,_0x502612)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x502612['length']>0x0&&_0x502612[_0x502612['length']-0x1]&&_0x502612[_0x502612['length']-0x1]['forceDefaultExecution']?_0x502612['pop']():(_0x9324d2['return']=_0xb5b7d7((..._0x5bf560)=>_0x477474['execute'](..._0x5bf560,{'forceDefaultExecution':!0x0}),..._0x502612),_0x9324d2['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x41653b){let _0x50e79e,_0x41ccd3;const _0x228ce7=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x50e79e=_0x41653b();}catch(_0x1b8f8c){_0x41ccd3=_0x1b8f8c;}return _0x228ce7||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x41ccd3&&_0x3d4351['rethrowUnexpectedError'](_0x41ccd3,this),_0x50e79e;}['markInsertion'](_0x15c7ce,_0x9e6623=null,_0x27f7d1={}){if(_0x15c7ce['isCollapsed'])return null;const _0x8082bb=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x3e3e9e,meta:_0x1f0cb3}of this['_findSuggestions'](_0x15c7ce,'insertion'))if(_0x1f0cb3['isOwn']){if(!_0x1f0cb3['isNextTo']){if(_0x1f0cb3['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0x3e3e9e,_0x27f7d1))continue;return _0x3e3e9e;}if(zt(_0x3e3e9e,_0x27f7d1))return _0x3e3e9e;this['_breakSuggestionMarker'](_0x3e3e9e,_0x15c7ce['start'],_0x15c7ce['end']);break;}if(_0x9e6623==_0x3e3e9e['subType']&&zt(_0x3e3e9e,_0x27f7d1)){const _0x3ab122=_0x3e3e9e['getFirstRange']();return _0x3ab122['start']['isEqual'](_0x15c7ce['end'])?this['_setSuggestionRange'](_0x3e3e9e,this['_model']['createRange'](_0x15c7ce['start'],_0x3ab122['end'])):this['_setSuggestionRange'](_0x3e3e9e,this['_model']['createRange'](_0x3ab122['start'],_0x15c7ce['end'])),_0x3e3e9e;}}const _0x4c3b53=_0x33987a(),_0xf7c997=_0x8082bb['id'],_0x5069c1=_0x9e6623?'insertion:'+_0x9e6623:'insertion',_0xc420e2=this['_setSuggestionData']({'id':_0x4c3b53,'type':_0x5069c1,'createdAt':new Date(),'authorId':_0xf7c997,'attributes':_0x27f7d1});return this['_addSuggestionMarker'](_0x5069c1,_0x4c3b53,_0xf7c997,_0x15c7ce),_0xc420e2;}['markMultiRangeInsertion'](_0x355d82,_0x4c4aff='multi',_0x2355fb={}){const _0x1a0d6a=this['editor']['plugins']['get']('Users')['me'],_0xaeafca=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x4c4aff,'join');for(const _0x5d70ae of this['getSuggestions']())if(_0x5d70ae['author']['id']==_0x1a0d6a['id']&&'insertion'==_0x5d70ae['type']&&_0x5d70ae['subType']==_0x4c4aff&&zt(_0x5d70ae,_0x2355fb)&&(_0xaeafca(_0x5d70ae['getRanges'](),_0x355d82)||_0xaeafca(_0x355d82,_0x5d70ae['getRanges']()))){for(const _0x506461 of _0x355d82)_0x5d70ae['addRange'](_0x506461);return _0x5d70ae;}for(const {suggestion:_0x598aef,meta:_0x191fd8}of this['_findSuggestions'](_0x355d82,'insertion')){if(!_0x191fd8['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x191fd8['containsRangeInObject'])continue;if(!zt(_0x598aef,_0x2355fb))continue;let _0x48b10d=!0x0;for(const _0x496d65 of _0x598aef['getRanges']())for(const _0x17b082 of _0x355d82)if(!_0x496d65['containsRange'](_0x17b082)){_0x48b10d=!0x1;break;}if(_0x48b10d)return _0x598aef;}const _0xf73ac9=_0x33987a(),_0x374a82=_0x1a0d6a['id'],_0x1e7122='insertion:'+_0x4c4aff,_0x2fe1a7=this['_setSuggestionData']({'id':_0xf73ac9,'type':_0x1e7122,'createdAt':new Date(),'authorId':_0x374a82,'attributes':_0x2355fb});for(const _0x30e977 of _0x355d82)this['_addSuggestionMarker'](_0x1e7122,_0xf73ac9,_0x374a82,_0x30e977,o['getMultiRangeId']());return _0x2fe1a7;}['markInlineFormat'](_0x3fe5df,_0x15a38b,_0x4fd7df=null,_0x2e7074={}){if(_0x4fd7df=_0x4fd7df||Gt(_0x15a38b),_0x3fe5df['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x57f42a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4fd7df,'accept');return this['forceDefaultExecution'](()=>_0x57f42a([_0x3fe5df],_0x15a38b,_0x2e7074)),null;}const _0x566a9b=this['editor']['plugins']['get']('Users')['me'],_0xaeacb1=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3d7606,meta:_0x4d2b69}of this['_findSuggestions'](_0x3fe5df,'insertion'))_0x4d2b69['isOwn']&&!_0x4d2b69['isInsideObject']&&_0xaeacb1['push'](..._0x3d7606['getRanges']());}const _0x1dccf1=function(_0x2b8841,_0xcc32fa){const _0x123c4e=[];for(const _0x196d46 of _0xcc32fa){const _0x1853f8=_0x2b8841['getIntersection'](_0x196d46);_0x1853f8&&_0x123c4e['push'](_0x1853f8);}return _0x123c4e;}(_0x3fe5df,_0xaeacb1),_0x2e0dbf=function(_0x6ee042,_0x5e4509){const _0xb0a6a5=[_0x6ee042];for(const _0x28dcd1 of _0x5e4509){let _0x36eb65=0x0;for(;_0x36eb65<_0xb0a6a5['length'];){const _0x7fb3e2=_0xb0a6a5[_0x36eb65]['getDifference'](_0x28dcd1);_0xb0a6a5['splice'](_0x36eb65,0x1,..._0x7fb3e2),_0x36eb65+=_0x7fb3e2['length'];}}return _0xb0a6a5;}(_0x3fe5df,_0xaeacb1);_0x1dccf1['length']&&this['_model']['change'](()=>{for(const _0x1b24e2 of _0x1dccf1){const _0x4d5167=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4fd7df,'accept');this['forceDefaultExecution'](()=>_0x4d5167([_0x1b24e2],_0x15a38b,_0x2e7074));}});for(const _0x5da5e7 of _0x2e0dbf){let _0x50bb99=null,_0x1e6870=_0x5da5e7['start'],_0x345e9c=_0x5da5e7['end'];for(const {suggestion:_0xb3b3f9,meta:_0x579c03}of this['_findSuggestions'](_0x5da5e7,'formatInline')){if(!_0x579c03['isOwn'])continue;if(_0xb3b3f9['subType']!=_0x4fd7df)continue;if(!zt(_0xb3b3f9,_0x2e7074))continue;const _0x7094be=_0xb3b3f9['getFirstRange']();if(_0x7094be['containsRange'](_0x5da5e7,!0x0))return null;_0x1e6870=_0x1e6870['isBefore'](_0x7094be['start'])?_0x1e6870:_0x7094be['start'],_0x345e9c=_0x345e9c['isAfter'](_0x7094be['end'])?_0x345e9c:_0x7094be['end'],_0x50bb99?_0x7094be['start']['isBefore'](_0x50bb99['getFirstRange']()['start'])?(_0x50bb99['removeMarkers'](),_0x50bb99=_0xb3b3f9):_0xb3b3f9['removeMarkers']():_0x50bb99=_0xb3b3f9;}const _0x96c5d0=this['_model']['createRange'](_0x1e6870,_0x345e9c);if(_0x50bb99)this['_setSuggestionRange'](_0x50bb99,_0x96c5d0);else{const _0x11b9be=_0x33987a(),_0x460fd3=_0x566a9b['id'];this['_setSuggestionData']({'id':_0x11b9be,'type':'formatInline:'+_0x4fd7df,'data':_0x15a38b,'createdAt':new Date(),'authorId':_0x460fd3,'attributes':_0x2e7074}),this['_addSuggestionMarker']('formatInline:'+_0x4fd7df,_0x11b9be,_0x460fd3,_0x96c5d0);}}return null;}['markBlockFormat'](_0x2f8699,_0xee17d4,_0x31b141=[],_0x5e2985=null,_0x5524ae={}){_0xee17d4['formatGroupId']||(_0xee17d4['formatGroupId']=_0xee17d4['commandName']),_0xee17d4['multipleBlocks']=_0x2f8699['is']('range'),_0x5e2985=_0x5e2985||Gt(_0xee17d4);const _0x2752d5=_0x31b141['map'](_0x973b13=>Kt(_0x973b13,this['_model'])),_0x21c712=_0x2f8699['is']('range')?_0x2f8699:Kt(_0x2f8699,this['_model']);if('never'===this['_trackFormatChanges']){const _0x380171=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5e2985,'accept');return this['forceDefaultExecution'](()=>_0x380171([_0x21c712],_0xee17d4,_0x5524ae)),null;}_0x2752d5['push'](_0x21c712);let _0x5205c4=!0x0;for(const _0x1e5a00 of _0x2752d5)if(!this['_rangeIsInLocalUserInsertion'](_0x1e5a00)){_0x5205c4=!0x1;break;}if(_0x5205c4&&'always'!==this['_trackFormatChanges']){const _0x5472bd=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5e2985,'accept');return this['forceDefaultExecution'](()=>_0x5472bd([_0x21c712],_0xee17d4,_0x5524ae)),null;}let _0x46b5bb=null,_0x46f5e4=_0x21c712['start'],_0x4fd211=_0x21c712['end'];for(const {suggestion:_0x3f4c72,meta:_0x1248ce}of this['_findSuggestions'](_0x21c712,'formatBlock')){if(!_0x1248ce['isOwn'])continue;if(_0x1248ce['isNextTo']||_0x1248ce['containsRangeInObject']||_0x1248ce['isInsideObject'])continue;if(_0x3f4c72['data']['formatGroupId']!=_0xee17d4['formatGroupId'])continue;if(!zt(_0x3f4c72,_0x5524ae))continue;const _0x4e3d94=_0x3f4c72['getFirstRange']();if(_0x3f4c72['subType']==_0x5e2985){if(_0x4e3d94['containsRange'](_0x21c712,!0x0))return null;_0x46f5e4=_0x46f5e4['isBefore'](_0x4e3d94['start'])?_0x46f5e4:_0x4e3d94['start'],_0x4fd211=_0x4fd211['isAfter'](_0x4e3d94['end'])?_0x4fd211:_0x4e3d94['end'],_0x46b5bb?_0x4e3d94['start']['isBefore'](_0x46b5bb['getFirstRange']()['start'])?(_0x46b5bb['removeMarkers'](),_0x46b5bb=_0x3f4c72):_0x3f4c72['removeMarkers']():_0x46b5bb=_0x3f4c72;}else{const _0x41d7bf=_0x21c712['getIntersection'](_0x4e3d94);this['_cutOutSuggestionMarker'](_0x3f4c72,_0x41d7bf);}}const _0x308bb5=this['editor']['plugins']['get']('Users')['me'],_0xb602cc=_0x33987a(),_0x42a47d=_0x308bb5['id'];if(_0x46b5bb)return this['_setSuggestionRange'](_0x46b5bb,this['_model']['createRange'](_0x46f5e4,_0x4fd211)),_0x46b5bb;{const _0xc3107b=this['_setSuggestionData']({'id':_0xb602cc,'type':'formatBlock:'+_0x5e2985,'data':_0xee17d4,'createdAt':new Date(),'authorId':_0x42a47d,'attributes':_0x5524ae});return this['_addSuggestionMarker']('formatBlock:'+_0x5e2985,_0xb602cc,_0x42a47d,this['_model']['createRange'](_0x46f5e4,_0x4fd211)),_0xc3107b;}}['markMultiRangeBlockFormat'](_0x66227e,_0x587048,_0x5ceec8=[],_0x4f5033=null,_0x382e27={}){_0x587048['formatGroupId']||(_0x587048['formatGroupId']=_0x587048['commandName']);const _0x1568e3=_0x66227e[0x0];_0x587048['multipleBlocks']=_0x1568e3['is']('range'),_0x4f5033=_0x4f5033||Gt(_0x587048);const _0x5023bb=_0x5ceec8['map'](_0x733e6=>Kt(_0x733e6,this['_model'])),_0x2b0547=_0x1568e3['is']('range')?_0x66227e:_0x66227e['map'](_0x157f0a=>Kt(_0x157f0a,this['_model']));if('never'===this['_trackFormatChanges']){const _0x1d4dea=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4f5033,'accept');return this['forceDefaultExecution'](()=>_0x1d4dea(_0x2b0547,_0x587048,_0x382e27)),null;}_0x5023bb['push'](..._0x2b0547);let _0x2c2577=!0x0;for(const _0x4afaab of _0x5023bb)if(!this['_rangeIsInLocalUserInsertion'](_0x4afaab)){_0x2c2577=!0x1;break;}if(_0x2c2577&&'always'!==this['_trackFormatChanges']){const _0x376177=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4f5033,'accept');return this['forceDefaultExecution'](()=>_0x376177(_0x2b0547,_0x587048,_0x382e27)),null;}const _0x3c376f=this['editor']['plugins']['get']('Users')['me'];for(const _0x3b5099 of this['getSuggestions']()){if(_0x3b5099['author']['id']!=_0x3c376f['id'])continue;if('formatBlock'!=_0x3b5099['type']||_0x3b5099['data']['formatGroupId']!=_0x587048['formatGroupId'])continue;if(!zt(_0x3b5099,_0x382e27))continue;const _0x78c471=_0x3b5099['subType']==_0x4f5033;for(let _0x53f048=0x0;_0x53f048<_0x2b0547['length'];_0x53f048++){const _0x578e87=_0x2b0547[_0x53f048];for(const _0x34b686 of _0x3b5099['getMarkers']()){const _0x35e436=_0x34b686['getRange']();if(_0x578e87['isEqual'](_0x35e436)){_0x78c471?(_0x2b0547['splice'](_0x53f048,0x1),_0x53f048--):_0x3b5099['removeMarker'](_0x34b686['name']);break;}}}}if(0x0==_0x2b0547['length'])return null;const _0x54ca16=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4f5033,'join');for(const _0x3342e4 of this['getSuggestions']())if(_0x3342e4['author']['id']==_0x3c376f['id']&&'formatBlock'==_0x3342e4['type']&&_0x3342e4['data']['formatGroupId']==_0x587048['formatGroupId']&&_0x3342e4['subType']==_0x4f5033&&zt(_0x3342e4,_0x382e27)&&(_0x54ca16(_0x3342e4['getRanges'](),_0x2b0547)||_0x54ca16(_0x2b0547,_0x3342e4['getRanges']()))){for(const _0x16c117 of _0x2b0547)_0x3342e4['addRange'](_0x16c117);return _0x3342e4;}const _0x264a79=_0x33987a(),_0x54b35d=_0x3c376f['id'],_0x5787a3='formatBlock:'+_0x4f5033,_0x1f6d9c=this['_setSuggestionData']({'id':_0x264a79,'type':_0x5787a3,'data':_0x587048,'createdAt':new Date(),'authorId':_0x54b35d,'attributes':_0x382e27});for(const _0x13793f of _0x2b0547)this['_addSuggestionMarker'](_0x5787a3,_0x264a79,_0x54b35d,_0x13793f,o['getMultiRangeId']());return _0x1f6d9c;}['markDeletion'](_0x56769c,_0x2b59d4=null,_0x4c819f={}){if(_0x56769c['isCollapsed'])return null;const _0x57fc8a=this['editor']['plugins']['get']('Users')['me'],_0x31bb26=new _0x7362da(_0x56769c['start'],_0x56769c['end']);for(const {suggestion:_0x4c97e5,meta:_0x4d94bd}of this['_findSuggestions'](_0x31bb26,'insertion'))if(_0x4d94bd['isOwn']&&!_0x4d94bd['isNextTo']){if(_0x4c97e5['isMultiRange']){const _0x2e7837=_0x4c97e5['getRanges']()['filter'](_0x1a5d5c=>'$graveyard'!=_0x1a5d5c['root']['rootName']);_0x2e7837['every'](_0x507912=>_0x31bb26['containsRange'](_0x507912,!0x0))&&_0x4c97e5['discard']();if(_0x2e7837['some'](_0x50a2f0=>_0x50a2f0['containsRange'](_0x31bb26,!0x0))){const _0x58700c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2b59d4,'accept');return this['forceDefaultExecution'](()=>_0x58700c([_0x31bb26],null,_0x4c819f)),null;}}else{const _0x24dcd9=_0x31bb26['getIntersection'](_0x4c97e5['getFirstRange']());null!==_0x24dcd9&&_0x4c97e5['_onDiscard']([_0x24dcd9],null,_0x4c819f);}}if(_0x31bb26['detach'](),_0x31bb26['isCollapsed']||'$graveyard'==_0x31bb26['root']['rootName'])return null;let _0x5a495e=null,_0x40fbec=_0x31bb26['start'],_0x3a3e6a=_0x31bb26['end'];const _0x181042=this['_findSuggestions'](_0x31bb26,'deletion');for(const {suggestion:_0x595ed3,meta:_0xf84f8f}of _0x181042){const _0x378756=this['_model']['createRange'](_0x40fbec,_0x3a3e6a);if(_0xf84f8f['isOwn']&&(this['_mergeNestedSuggestions']||!_0xf84f8f['containsRangeInObject']&&!_0xf84f8f['isInsideObject'])){if(_0x595ed3['isMultiRange']){if(!zt(_0x595ed3,_0x4c819f))continue;let _0x12f60b=!0x0;for(const _0x1a86e4 of _0x595ed3['getRanges']()){if(_0x1a86e4['containsRange'](_0x378756,!0x0))return _0x595ed3;_0x378756['containsRange'](_0x1a86e4)||(_0x12f60b=!0x1);}_0x12f60b&&_0x595ed3['discard']();}else{const _0x4c469a=_0x595ed3['getFirstRange']();if(_0x4c469a['containsRange'](_0x378756,!0x0))return _0x595ed3;if(!zt(_0x595ed3,_0x4c819f)){_0x378756['containsRange'](_0x4c469a)?_0x595ed3['removeMarkers']():_0x4c469a['containsPosition'](_0x40fbec)?_0x40fbec=_0x4c469a['end']:_0x4c469a['containsPosition'](_0x3a3e6a)&&(_0x3a3e6a=_0x4c469a['start']);continue;}_0x40fbec=_0x40fbec['isBefore'](_0x4c469a['start'])?_0x40fbec:_0x4c469a['start'],_0x3a3e6a=_0x3a3e6a['isAfter'](_0x4c469a['end'])?_0x3a3e6a:_0x4c469a['end'],_0x4c819f=Object['assign']({},_0x595ed3['attributes']),_0x5a495e?_0x4c469a['start']['isBefore'](_0x5a495e['getFirstRange']()['start'])?(_0x5a495e['removeMarkers'](),_0x5a495e=_0x595ed3):_0x595ed3['removeMarkers']():_0x5a495e=_0x595ed3;}}}if(_0x5a495e)return this['_setSuggestionRange'](_0x5a495e,this['_model']['createRange'](_0x40fbec,_0x3a3e6a)),_0x5a495e;{const _0x2096c1=_0x33987a(),_0x106a46=this['_model']['createRange'](_0x40fbec,_0x3a3e6a),_0x259814=_0x57fc8a['id'],_0x15e0ce=_0x2b59d4?'deletion:'+_0x2b59d4:'deletion',_0x180b85=this['_setSuggestionData']({'id':_0x2096c1,'type':_0x15e0ce,'createdAt':new Date(),'authorId':_0x259814,'attributes':_0x4c819f});return this['_addSuggestionMarker'](_0x15e0ce,_0x2096c1,_0x259814,_0x106a46),_0x180b85;}}['markMultiRangeDeletion'](_0x2ffb02,_0xc3d40f='multi',_0x2c1e6c={}){const _0x349f1b=this['editor']['plugins']['get']('Users')['me'],_0x229d56=_0x2ffb02['map'](_0x230d8d=>new _0x7362da(_0x230d8d['start'],_0x230d8d['end'])),_0x436eac=new Set();for(const {suggestion:_0x5d2bf0,meta:_0x672a6a}of this['_findSuggestions'](_0x229d56,'insertion'))_0x672a6a['isOwn']&&!_0x672a6a['isNextTo']&&_0x436eac['add'](_0x5d2bf0);for(const _0x527c2a of _0x436eac)if(_0x527c2a['isMultiRange']){const _0x5e086e=_0x527c2a['getRanges']();(!_0x527c2a['attributes']||!_0x527c2a['attributes']['skipNestingCheck'])&&(_0x5e086e['every'](_0x2cb7a8=>_0x229d56['some'](_0x5ba418=>_0x5ba418['containsRange'](_0x2cb7a8,!0x0)))&&_0x527c2a['discard']());if(_0x229d56['every'](_0x551a43=>_0x5e086e['some'](_0x2565ee=>_0x2565ee['containsRange'](_0x551a43,!0x0)))){const _0x429664=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xc3d40f,'accept');return this['forceDefaultExecution'](()=>_0x429664(_0x2ffb02,null,_0x2c1e6c)),null;}}else{const _0x34e218=_0x527c2a['getFirstRange']();_0x229d56['some'](_0x4dfc4b=>_0x4dfc4b['containsRange'](_0x34e218,!0x0))&&_0x527c2a['discard']();if(_0x229d56['every'](_0x115e27=>_0x34e218['containsRange'](_0x115e27,!0x0))){const _0x43ee5b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xc3d40f,'accept');return this['forceDefaultExecution'](()=>_0x43ee5b(_0x229d56,null,_0x2c1e6c)),null;}}const _0x31b2d6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xc3d40f,'join');let _0x26ca11=null;for(const _0x3030ec of this['getSuggestions']())if(_0x3030ec['author']['id']==_0x349f1b['id']&&_0x3030ec['isInContent']&&'deletion'==_0x3030ec['type']&&_0x3030ec['subType']==_0xc3d40f&&zt(_0x3030ec,_0x2c1e6c)&&(_0x31b2d6(_0x3030ec['getRanges'](),_0x229d56)||_0x31b2d6(_0x229d56,_0x3030ec['getRanges']()))){if(_0x26ca11){if(_0x3030ec['commentThread']&&_0x3030ec['commentThread']['length'])continue;for(const _0x40f214 of _0x3030ec['getRanges']())_0x26ca11['isIntersectingWithRange'](_0x40f214)||_0x26ca11['addRange'](_0x40f214);_0x3030ec['removeMarkers']();}else{_0x26ca11=_0x3030ec;for(const _0x291831 of _0x229d56)_0x3030ec['isIntersectingWithRange'](_0x291831)||_0x3030ec['addRange'](_0x291831);}}if(_0x26ca11)return _0x26ca11;_0x436eac['clear']();for(const {suggestion:_0x4f565a,meta:_0x4c3bd9}of this['_findSuggestions'](_0x229d56,'deletion'))_0x4c3bd9['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4c3bd9['containsRangeInObject']&&!_0x4c3bd9['isInsideObject'])&&zt(_0x4f565a,_0x2c1e6c)&&_0x436eac['add'](_0x4f565a);for(const _0x59d816 of _0x436eac){const _0x32bd62=_0x59d816['getRanges']();if(!_0x2c1e6c||!_0x2c1e6c['skipNestingCheck']){if(_0x229d56['every'](_0x2ad065=>_0x32bd62['some'](_0x2d3469=>_0x2d3469['containsRange'](_0x2ad065,!0x0))))return _0x59d816;}(!_0x59d816['attributes']||!_0x59d816['attributes']['skipNestingCheck'])&&(_0x32bd62['every'](_0x249521=>_0x229d56['some'](_0x50c655=>_0x50c655['containsRange'](_0x249521,!0x0)))&&_0x59d816['discard']());}const _0x536cfb=_0x33987a(),_0x5c79b5=_0x349f1b['id'],_0x3837b='deletion:'+_0xc3d40f,_0x6f1314=this['_setSuggestionData']({'id':_0x536cfb,'type':_0x3837b,'createdAt':new Date(),'authorId':_0x5c79b5,'attributes':_0x2c1e6c});for(const _0x5450e4 of _0x229d56)_0x5450e4['detach'](),_0x5450e4['isCollapsed']||'$graveyard'==_0x5450e4['root']['rootName']||this['_addSuggestionMarker'](_0x3837b,_0x536cfb,_0x5c79b5,_0x5450e4,o['getMultiRangeId']());return _0x6f1314;}['markAttributeChange'](_0x27a808,_0x3effcb,_0x83263e,_0x3fd40a,_0x25ed7a){if(_0x27a808['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x25e919=this['editor']['plugins']['get']('Users')['me']['id'],_0x351165=Array['from'](this['_suggestions']['values']())['filter'](_0x492f18=>'attribute'==_0x492f18['type']&&_0x492f18['data']['key']==_0x3effcb&&_0x492f18['isIntersectingWithRange'](_0x27a808));if('default'===this['_trackFormatChanges']){const _0x414edb=this['_findSuggestions'](_0x27a808,'insertion')['filter'](({meta:_0x39e467})=>_0x39e467['isOwn']&&!_0x39e467['isInsideObject']&&!_0x39e467['isNextTo'])['map'](({suggestion:_0x4010f7})=>_0x4010f7);_0x351165['unshift'](..._0x414edb);}const _0x58a782=new Map([[_0x27a808,_0x83263e]]);for(const _0x1784c5 of _0x351165){const _0x2031d6='attribute'==_0x1784c5['type']?_0x1784c5['data']['oldValue']:void 0x0,_0x2fc091=_0x1784c5['getFirstRange'](),_0x566cf4=Array['from'](_0x58a782['keys']())['find'](_0x2a0cb4=>_0x2a0cb4['isIntersecting'](_0x2fc091));if(!_0x566cf4)continue;const _0x1f1b79=_0x566cf4['getDifference'](_0x2fc091);this['_isBlockAttribute'](_0x3effcb)&&'insertion'==_0x1784c5['type']&&0x0!=_0x1f1b79['length']||(_0x58a782['delete'](_0x566cf4),_0x1f1b79['forEach'](_0x32ee9a=>{_0x58a782['set'](_0x32ee9a,_0x83263e);}),'insertion'!=_0x1784c5['type']&&_0x2031d6!=_0x3fd40a&&_0x58a782['set'](_0x566cf4['getIntersection'](_0x2fc091),_0x2031d6));}const _0x403168=[];for(const [_0x125451,_0x322fc3]of _0x58a782){const _0x230f86=_0x33987a(),_0x5afed4={'key':_0x3effcb,'oldValue':_0x322fc3,'newValue':_0x3fd40a};_0x3effcb['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':_0x3effcb});const _0x30f891=('attribute:'+(_0x3effcb+'|'+Gt({'newValue':_0x3fd40a})))['substring'](0x0,0x3c),_0x5a434e=this['_setSuggestionData']({'id':_0x230f86,'type':_0x30f891,'data':_0x5afed4,'createdAt':new Date(),'authorId':_0x25e919,'attributes':_0x25ed7a});_0x403168['push'](_0x5a434e),this['_addSuggestionMarker'](_0x30f891,_0x230f86,_0x25e919,_0x125451);}return _0x403168;}['enableDefaultAttributesIntegration'](_0x59128f){this['enableCommand'](_0x59128f,(_0x1e0644,..._0x10635a)=>{this['_recordAttributeChanges'](()=>{_0x1e0644(..._0x10635a);});});}['registerBlockAttribute'](_0x58b66e){this['_blockAttributeKeys']['add'](_0x58b66e);}['registerInlineAttribute'](_0x3cc797){this['_inlineAttributeKeys']['add'](_0x3cc797);}['_getAttributeKey'](_0x5c7d33){return'attribute'==_0x5c7d33['type']?_0x5c7d33['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x5308be,_0x263a86){const _0xa6e686=_0x5308be['getFirstMarker']();this['_model']['change'](_0x63a28e=>{_0x63a28e['updateMarker'](_0xa6e686,{'range':_0x263a86});});}['_addThreadToSuggestion'](_0xa74d30){const _0x46cca0=_0xa74d30['id'],_0x551638=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x46cca0)||this['_commentsRepository']['addCommentThread']({'channelId':_0x551638,'threadId':_0x46cca0,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x5381f8=this['_commentsRepository']['getCommentThread'](_0x46cca0);_0x5381f8['unbind']('isRemovable'),_0x5381f8['isRemovable']=!0x1,_0xa74d30['commentThread']=_0x5381f8;}['_checkSuggestionCorrectness'](_0x2aea19,_0x3474e8,_0x1c11db,_0x3e59e9){if(_0x2aea19['type']!=_0x3474e8||_0x2aea19['subType']!=_0x1c11db||_0x2aea19['creator']['id']!=_0x3e59e9)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3d4351('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3b9f36,_0x4a3cfe){const _0x37a129=_0x3b9f36['getFirstRange']();if(_0x4a3cfe['isEqual'](_0x37a129))_0x3b9f36['removeMarkers']();else{if(_0x37a129['containsRange'](_0x4a3cfe)){const _0x4a2b0b=this['_model']['createPositionAt'](_0x4a3cfe['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3b9f36,this['_model']['createRange'](_0x37a129['start'],_0x4a2b0b));const _0x280e53=_0x33987a(),_0x1b949f=_0x3b9f36['creator']['id'],_0x4cdae0=_0x3b9f36['type']+':'+_0x3b9f36['subType'];this['_setSuggestionData']({'id':_0x280e53,'type':_0x4cdae0,'createdAt':new Date(),'authorId':_0x1b949f,'data':_0x3b9f36['data'],'attributes':_0x3b9f36['attributes']});const _0x285787=this['_model']['createPositionAt'](_0x4a3cfe['end']['parent'],'after'),_0x5408bb=this['_model']['createRange'](_0x285787,_0x37a129['end']);this['_addSuggestionMarker'](_0x4cdae0,_0x280e53,_0x1b949f,_0x5408bb);}else{if(_0x37a129['containsPosition'](_0x4a3cfe['start'])){const _0x2d1bae=this['_model']['createPositionAt'](_0x4a3cfe['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3b9f36,this['_model']['createRange'](_0x37a129['start'],_0x2d1bae));}else{const _0x4e0c75=this['_model']['createPositionAt'](_0x4a3cfe['end']['parent'],'after');this['_setSuggestionRange'](_0x3b9f36,this['_model']['createRange'](_0x4e0c75,_0x37a129['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x10c634){for(const {suggestion:_0x4fd2f8,meta:_0x2fc112}of this['_findSuggestions'](_0x10c634,'insertion')){if(!_0x2fc112['isOwn'])continue;const _0x36ace2=_0x4fd2f8['getRanges']();for(const _0x5ae507 of _0x36ace2)if(!_0x10c634['getDifference'](_0x5ae507)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4d8c11){const _0x906d94=this['editor']['plugins']['get']('Users')['getUser'](_0x4d8c11);if(!_0x906d94)throw new _0x3d4351('track-changes-user-not-found',this);return _0x906d94;}['_getExternalAuthor'](_0x55739c){const _0x1684f1=this['editor']['plugins']['get']('Users'),_0x5302c7=_0x1c269b('external:'+_0x55739c),_0x200643=_0x1684f1['getUser'](_0x5302c7);return _0x200643||_0x1684f1['addUser']({'id':_0x5302c7,'name':_0x55739c});}['_createSuggestion'](_0x5221bc,_0x25e7a2,_0x3ea1c6,_0x5e6158,_0x3c57f4){const _0x31d78a=this['_getAuthorFromId'](_0x5e6158),_0x3b7013=this['_suggestionFactory']['buildSuggestion'](_0x5221bc,_0x25e7a2,_0x3ea1c6,_0x31d78a,_0x3c57f4,_0x329893=>{this['_updateSuggestionData'](_0x3ea1c6,{'attributes':_0x329893});const _0x5548d6=this['getSuggestion'](_0x3ea1c6);this['_joinWithAdjacentSuggestions'](new Set([_0x5548d6])),this['_refreshSuggestionsChain'](new Set([_0x5548d6]));});return this['listenTo'](_0x3b7013,'accept',()=>{this['_updateSuggestionData'](_0x3ea1c6,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3b7013,'discard',()=>{this['_updateSuggestionData'](_0x3ea1c6,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x3ea1c6,_0x3b7013),this['_suggestionState']['set'](_0x3b7013,'notReady'),_0x3b7013;}['_splitMarkerName'](_0x29f092){const _0x1d5864=_0x29f092['split'](':');return{'group':_0x1d5864[0x0],'type':_0x1d5864[0x1],'subType':_0x1d5864['length']>=0x5?_0x1d5864[0x2]:null,'id':_0x1d5864['length']<0x5?_0x1d5864[0x2]:_0x1d5864[0x3],'authorId':_0x1d5864['length']<0x5?_0x1d5864[0x3]:_0x1d5864[0x4],'markerCount':0x6==_0x1d5864['length']?_0x1d5864[0x5]:null};}['_breakSuggestionMarker'](_0x828720,_0x47abc5,_0x520399){const _0x53fad5=_0x828720['getFirstRange'](),_0x26f24f=_0x53fad5['start'],_0x5a1a8=_0x53fad5['end'];this['_setSuggestionRange'](_0x828720,this['_model']['createRange'](_0x26f24f,_0x47abc5));const _0x567214=_0x33987a(),_0xf040a1=_0x828720['creator']['id'],_0x35ec0d=_0x828720['type']+(_0x828720['subType']?':'+_0x828720['subType']:'');this['_setSuggestionData']({'id':_0x567214,'type':_0x35ec0d,'createdAt':new Date(),'authorId':_0xf040a1,'originalSuggestionId':_0x828720['id'],'attributes':_0x828720['attributes'],'data':_0x828720['data']});const _0x265958=this['_getAttributeKey'](_0x828720);('formatBlock'==_0x828720['type']||_0x265958&&this['_isBlockAttribute'](_0x265958))&&(_0x520399=this['_model']['createPositionBefore'](_0x520399['parent'])),this['_addSuggestionMarker'](_0x35ec0d,_0x567214,_0xf040a1,this['_model']['createRange'](_0x520399,_0x5a1a8));}['_findSuggestions'](_0x228ecb,_0x12f3c7=null){const _0x50f929=[],_0x2e820c=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x228ecb)||(_0x228ecb=[_0x228ecb]);for(const _0x52c9bf of this['getSuggestions']()){if(!_0x52c9bf['isInContent'])continue;if(_0x12f3c7&&_0x52c9bf['type']!=_0x12f3c7)continue;let _0x324abd=!0x1;for(const _0x49a0c4 of _0x52c9bf['getRanges']()){for(const _0x5a3c62 of _0x228ecb){const _0x2f7f9f=_0x5a3c62['start']['isEqual'](_0x49a0c4['end'])||_0x5a3c62['end']['isEqual'](_0x49a0c4['start']);if(_0x2f7f9f||_0x5a3c62['getIntersection'](_0x49a0c4)){const _0x4b9bbe=_0x5a3c62['containsRange'](_0x49a0c4)&&Vt(this['_model']['schema'],_0x49a0c4['start'],_0x5a3c62),_0xb11e8d=_0x49a0c4['containsRange'](_0x5a3c62)&&Vt(this['_model']['schema'],_0x5a3c62['start'],_0x49a0c4);_0x50f929['push']({'suggestion':_0x52c9bf,'meta':{'isOwn':_0x2e820c==_0x52c9bf['author'],'isNextTo':_0x2f7f9f,'isInsideObject':_0x4b9bbe,'containsRangeInObject':_0xb11e8d}}),_0x324abd=!0x0;break;}}if(_0x324abd)break;}}return _0x50f929;}['_addSuggestionMarker'](_0x48e55b,_0x928fb5,_0x4592c7,_0x4d5816,_0x4758ee){this['_model']['change'](_0x4c0d81=>{let _0x783fa0='suggestion:'+_0x48e55b+':'+_0x928fb5+':'+_0x4592c7;_0x4758ee&&(_0x783fa0=_0x783fa0+':'+_0x4758ee),_0x4c0d81['addMarker'](_0x783fa0,{'range':_0x4d5816,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x31ea2c){const _0x273be5=_0x31ea2c['previous'],_0x2de416=_0x31ea2c['next'];_0x31ea2c['previous']=null,_0x31ea2c['next']=null,null!=_0x273be5&&_0x273be5['next']==_0x31ea2c&&(_0x273be5['next']=_0x2de416),null!=_0x2de416&&_0x2de416['previous']==_0x31ea2c&&(_0x2de416['previous']=_0x273be5),'ready'==this['_suggestionState']['get'](_0x31ea2c)&&(this['_suggestionState']['set'](_0x31ea2c,'removed'),this['fire']('suggestionUnloaded',_0x31ea2c,_0x273be5,_0x2de416));}['_setSuggestionData'](_0x11ac40){const _0x5a2fc2=_0x11ac40['id'],_0x5e1a8e=this['addSuggestionData'](_0x11ac40);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x32f76e=this['editor']['plugins']['get']('PendingActions'),_0x50bbfc=_0x5e1a8e['hasComments'],_0x3c8fa6=_0x5e1a8e['subType']?_0x5e1a8e['type']+':'+_0x5e1a8e['subType']:_0x5e1a8e['type'],_0x3bd2c6=this['editor']['locale'],_0x19d56c=_0x32f76e['add'](c(_0x3bd2c6,'PENDING_ACTION_SUGGESTION')),_0x33f393={'id':_0x5a2fc2,'type':_0x3c8fa6,'hasComments':_0x50bbfc,'data':_0x11ac40['data']||null,'originalSuggestionId':_0x11ac40['originalSuggestionId']||null,'attributes':_0x5e1a8e['attributes']};this['_adapter']['addSuggestion'](_0x33f393)['then'](_0x12ec49=>{_0x5e1a8e['_saved']=!0x0,_0x32f76e['remove'](_0x19d56c),_0x12ec49&&_0x12ec49['createdAt']&&(this['_suggestions']['get'](_0x5a2fc2)['createdAt']=_0x12ec49['createdAt']);})['catch'](_0x16c19d=>{throw _0x2d4306('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x5e1a8e['discard']();}),_0x5e1a8e['stopListening'](),this['_suggestions']['delete'](_0x5e1a8e['id']),this['_suggestionState']['delete'](_0x5e1a8e),_0x16c19d;});}return _0x5e1a8e;}['_isBlockAttribute'](_0x8aa0be){return this['_blockAttributeKeys']['has'](_0x8aa0be);}['_updateSuggestionData'](_0x41f062,_0x5bc587){const _0x2d98dc=this['editor']['plugins']['get']('PendingActions'),_0x28b92d=this['getSuggestion'](_0x41f062);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x28b92d['_saved']){const _0x26406a=_0x2d98dc['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x41f062,_0x5bc587)['then'](()=>{_0x2d98dc['remove'](_0x26406a);});}else _0x28b92d['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x41f062,_0x5bc587);});}}['_getSuggestionData'](_0x17f8a8){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3d4351('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x17f8a8);}['_handleNewSuggestionMarker'](_0x31c368){const {id:_0x5974c6,type:_0x67b688,subType:_0x5bb10b,authorId:_0x495f8a}=this['_splitMarkerName'](_0x31c368),_0x128b06=this['_suggestions']['get'](_0x5974c6)||this['_createSuggestion'](_0x67b688,_0x5bb10b,_0x5974c6,_0x495f8a,{});switch(this['_checkSuggestionCorrectness'](_0x128b06,_0x67b688,_0x5bb10b,_0x495f8a),this['_suggestionState']['get'](_0x128b06)){case'notReady':this['_getSuggestionData'](_0x5974c6)['then'](_0x41f57b=>{let _0x356ea5=Promise['resolve']();_0x41f57b['hasComments']&&(_0x356ea5=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x5974c6})),_0x356ea5['then'](()=>{this['addSuggestionData'](_0x41f57b)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x128b06,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x5974c6,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x128b06,'ready'),this['fire']('suggestionLoaded',_0x128b06);break;case'ready':this['fire']('suggestionChanged',_0x128b06);}return _0x128b06['addMarkerName'](_0x31c368),_0x128b06;}['_refreshSuggestionsChain'](_0x1fd433){const _0x56a3e5=Array['from'](_0x1fd433),_0x262e78=_0x56a3e5['filter'](_0xb3094b=>'attribute'==_0xb3094b['type']);this['_refreshAttributeSuggestionsChain'](_0x262e78);const _0x2ce37c=_0x56a3e5['filter'](_0x1657a1=>!_0x1657a1['isMultiRange']&&'attribute'!=_0x1657a1['type']),_0x3d0999=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4b81f4=>!_0x4b81f4['isMultiRange']&&'attribute'!=_0x4b81f4['type']),_0x2a06c6=_0x3d0999['filter'](_0x6da58=>!_0x1fd433['has'](_0x6da58)),_0x34d9e6=new Map(_0x3d0999['map'](_0x27be52=>[_0x27be52,this['_suggestionFactory']['getSuggestionCallback'](_0x27be52['type'],_0x27be52['subType'],'chain')])),_0x472ee1=new Map(_0x3d0999['map'](_0xb92032=>[_0xb92032,_0xb92032['getFirstRange']()])),_0x3ced7a=new Set(),_0x37684f=new Set();for(let _0x3b5f24=0x0;_0x3b5f24<_0x2ce37c['length'];_0x3b5f24++)_0x5cb92c(_0x2ce37c[_0x3b5f24],_0x2ce37c,_0x3b5f24+0x1);for(let _0x164c27=0x0;_0x164c27<_0x2ce37c['length'];_0x164c27++)_0x5cb92c(_0x2ce37c[_0x164c27],_0x2a06c6,0x0);const _0x4e8ce5=new Set();for(let _0x2b1ef0=0x0;_0x2b1ef0<_0x2ce37c['length'];_0x2b1ef0++){const _0x1c431d=_0x2ce37c[_0x2b1ef0];!_0x37684f['has'](_0x1c431d)&&_0x1c431d['previous']&&(_0x4e8ce5['add'](_0x1c431d['previous']),_0x1c431d['previous']['next']===_0x1c431d&&(_0x1c431d['previous']['next']=null),_0x1c431d['previous']=null),!_0x3ced7a['has'](_0x1c431d)&&_0x1c431d['next']&&(_0x4e8ce5['add'](_0x1c431d['next']),_0x1c431d['next']['previous']===_0x1c431d&&(_0x1c431d['next']['previous']=null),_0x1c431d['next']=null);}function _0x5cb92c(_0xfe5cd5,_0x29f7c8,_0x23070f){for(let _0x4fdd6c=_0x23070f;_0x4fdd6c<_0x29f7c8['length'];_0x4fdd6c++){const _0x4a5b03=_0x320dde(_0xfe5cd5,_0x29f7c8[_0x4fdd6c]);_0x4a5b03&&(_0x4a5b03[0x0]['next']=_0x4a5b03[0x1],_0x4a5b03[0x1]['previous']=_0x4a5b03[0x0],_0x3ced7a['add'](_0x4a5b03[0x0]),_0x37684f['add'](_0x4a5b03[0x1]));}}function _0x320dde(_0x3defda,_0x29e6d3){if(_0x3defda['author']['id']!==_0x29e6d3['author']['id'])return null;const _0x5a62a5=_0x34d9e6['get'](_0x3defda)(_0x3defda,_0x29e6d3,_0x472ee1['get'](_0x3defda),_0x472ee1['get'](_0x29e6d3));if(!_0x5a62a5)return null;return _0x34d9e6['get'](_0x29e6d3)(_0x3defda,_0x29e6d3,_0x472ee1['get'](_0x3defda),_0x472ee1['get'](_0x29e6d3))?_0x5a62a5[0x1]['commentThread']&&_0x5a62a5[0x1]['commentThread']['length']?null:_0x5a62a5:null;}_0x4e8ce5['size']&&this['_refreshSuggestionsChain'](_0x4e8ce5);}['_refreshAttributeSuggestionsChain'](_0x3af53a){if(0x0==_0x3af53a['length'])return;const _0x191040=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3e51b6=>'attribute'==_0x3e51b6['type']&&_0x3e51b6['_isDataLoaded']),_0x346ab4=[],_0x385574=new Map();for(const _0x17f3a2 of _0x191040){const _0x1115b1=_0x1c269b(_0x17f3a2['attributes']);_0x385574['has'](_0x1115b1)||(_0x385574['set'](_0x1115b1,_0x346ab4['length']),_0x346ab4['push']([]));const _0x1418df=_0x385574['get'](_0x1115b1);_0x346ab4[_0x1418df]['push'](_0x17f3a2);}!(function(){_0x346ab4['sort']((_0x24887e,_0x15b6ea)=>{const _0x55a5fa=_0x24887e[0x0]['createdAt'],_0x1c3743=_0x15b6ea[0x0]['createdAt'];return _0x55a5fa==_0x1c3743?_0x24887e[0x0]['attributes']['groupId']<_0x15b6ea[0x0]['attributes']['groupId']?-0x1:0x1:_0x55a5fa<_0x1c3743?-0x1:0x1;});for(const _0x1d078b of _0x346ab4)_0x1d078b['sort']((_0x204d03,_0x58aecc)=>_0x204d03['id']<_0x58aecc['id']?-0x1:0x1);}());for(let _0x147a1b=0x0;_0x147a1b<_0x346ab4['length'];_0x147a1b++){if(0x0==_0x346ab4[_0x147a1b]['length'])continue;const _0x3524dc=[];for(let _0x54635c=_0x147a1b+0x1;_0x54635c<_0x346ab4['length'];_0x54635c++)0x0!=_0x346ab4[_0x54635c]['length']&&_0x224c0e(_0x346ab4[_0x147a1b],_0x346ab4[_0x54635c])&&_0x3524dc['push'](_0x54635c);for(const _0x2d404b of _0x3524dc)_0x346ab4[_0x147a1b]=_0x346ab4[_0x147a1b]['concat'](_0x346ab4[_0x2d404b]),_0x346ab4[_0x2d404b]=[];}for(const _0x2f8c38 of _0x346ab4)for(let _0x3d54cc=0x0;_0x3d54cc<_0x2f8c38['length'];_0x3d54cc++){const _0x55de67=_0x2f8c38[_0x3d54cc+0x1]||null;_0x2f8c38[_0x3d54cc]['next']!==_0x55de67&&(_0x2f8c38[_0x3d54cc]['next']=_0x55de67);}for(const _0x1b8220 of _0x346ab4)for(let _0x2d54e9=0x0;_0x2d54e9<_0x1b8220['length'];_0x2d54e9++){const _0x401e72=_0x1b8220[_0x2d54e9-0x1]||null;_0x1b8220[_0x2d54e9]['previous']!==_0x401e72&&(_0x1b8220[_0x2d54e9]['previous']=_0x401e72);}function _0x224c0e(_0x55c963,_0x599a18){if(_0x55c963[0x0]['attributes']['groupId']!==_0x599a18[0x0]['attributes']['groupId']&&_0x55c963[0x0]['author']!==_0x599a18[0x0]['author'])return!0x1;if(!function(_0x233176,_0x3f497a){if(!_0x233176['hasComments']&&!_0x3f497a['hasComments'])return!0x0;if(_0x233176['hasComments']&&_0x3f497a['hasComments'])return!0x1;if(_0x233176['hasComments']&&_0x3f497a['createdAt']<_0x233176['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x3f497a['hasComments']&&_0x233176['createdAt']<_0x3f497a['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x55c963[0x0],_0x599a18[0x0]))return!0x1;const _0x30f2dc=Et(_0x55c963[0x0]['attributes'],'groupId'),_0x18a7a1=Et(_0x599a18[0x0]['attributes'],'groupId');if(!_0x17e1e9(_0x30f2dc,_0x18a7a1))return!0x1;return!!_0x55c963['every'](_0x228bdc=>_0x599a18['some'](_0x59b151=>_0x228bdc['getFirstRange']()['isEqual'](_0x59b151['getFirstRange']())))&&_0x599a18['every'](_0x1f1a8f=>_0x55c963['some'](_0x36a9a2=>_0x1f1a8f['getFirstRange']()['isEqual'](_0x36a9a2['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x2c4e3d){const _0x2f1ad1=Array['from'](_0x2c4e3d),_0x43d7f2=this['getSuggestions']({'skipNotAttached':!0x0}),_0x290532=_0x43d7f2['filter'](_0x7f722c=>!_0x2c4e3d['has'](_0x7f722c)),_0x4e997a=new Map(_0x2f1ad1['map'](_0x5e7836=>[_0x5e7836,this['_suggestionFactory']['getSuggestionCallback'](_0x5e7836['type'],_0x5e7836['subType'],'join')])),_0x2c1e89=new Map(_0x43d7f2['map'](_0x32be3f=>[_0x32be3f,_0x32be3f['getRanges']()]));for(let _0x3dd267=0x0;_0x3dd267<_0x2f1ad1['length'];_0x3dd267++){if(_0x365df2(this,_0x2f1ad1[_0x3dd267],_0x2f1ad1,_0x3dd267+0x1))return!0x0;}for(let _0x4d6dd1=0x0;_0x4d6dd1<_0x2f1ad1['length'];_0x4d6dd1++){if(_0x365df2(this,_0x2f1ad1[_0x4d6dd1],_0x290532,0x0))return!0x0;}return!0x1;function _0x365df2(_0x5f4b5f,_0x14d0fa,_0x264f44,_0x3c3f4b){for(let _0xd62686=_0x3c3f4b;_0xd62686<_0x264f44['length'];_0xd62686++){const _0x49b757=_0x264f44[_0xd62686];if(_0x49b757['type']!==_0x14d0fa['type']||_0x49b757['author']['id']!==_0x14d0fa['author']['id']||_0x49b757['subType']!==_0x14d0fa['subType'])continue;if(!qt(_0x14d0fa,_0x49b757))continue;if('attribute'==_0x14d0fa['type']&&_0x14d0fa['data']['oldValue']!=_0x49b757['data']['oldValue'])continue;if('attribute'==_0x14d0fa['type']&&_0x5f4b5f['_isBlockAttribute'](_0x14d0fa['data']['key']))continue;if('formatBlock'==_0x14d0fa['type']){const _0x2f4d7c=_0x5f4b5f['editor']['model'],_0x5e225b=_0x14d0fa['getContainedElement']();if(_0x5e225b&&(_0x2f4d7c['schema']['isObject'](_0x5e225b)||_0x2f4d7c['schema']['isLimit'](_0x5e225b)))continue;}const _0x2d57b3=_0x4e997a['get'](_0x14d0fa),_0x579b69=_0x2c1e89['get'](_0x14d0fa),_0x399888=_0x2c1e89['get'](_0x49b757),_0x4529a3=_0x14d0fa['commentThread']&&_0x14d0fa['commentThread']['length'],_0x4ddb8a=_0x49b757['commentThread']&&_0x49b757['commentThread']['length'];if(!_0x4529a3&&_0x2d57b3(_0x399888,_0x579b69))return _0x5f4b5f['_joinSuggestions'](_0x49b757,_0x14d0fa),_0x2c1e89['delete'](_0x14d0fa),!0x0;if(!_0x4ddb8a&&_0x2d57b3(_0x579b69,_0x399888))return _0x5f4b5f['_joinSuggestions'](_0x14d0fa,_0x49b757),_0x2c1e89['delete'](_0x49b757),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5b5ef8,_0x1546ec){if(_0x5b5ef8['isMultiRange']){for(const _0x1e0f85 of _0x1546ec['getRanges']())_0x5b5ef8['addRange'](_0x1e0f85);}else{const _0x45a7f8=_0x1546ec['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5b5ef8,this['_model']['createRange'](_0x5b5ef8['getFirstRange']()['start'],_0x45a7f8));}_0x1546ec['removeMarkers']();}['_getMarkerAnnouncementText'](_0x5e8109,_0x33f637,_0x4ea188){const _0x15854a=_0x5e8109['startsWith']('format')||_0x5e8109['startsWith']('attribute')?'FORMATTING':_0x5e8109['toUpperCase']();return c(this['editor']['locale'],_0x33f637+'_'+_0x15854a+'_SUGGESTION_ANNOUNCEMENT',_0x4ea188);}['_initAriaMarkerChangeAnnouncements'](){const _0x520133=this['editor'];if(!_0x520133['ui'])return;const {ariaLiveAnnouncer:_0x21c7cc}=_0x520133['ui'];_0x298a0a(this['_model'],({left:_0x4b904e,entered:_0x50987b})=>{for(const _0x55aa88 of _0x4b904e){const {group:_0x3a8b09,type:_0x47532e}=this['_splitMarkerName'](_0x55aa88['name']);if('suggestion'===_0x3a8b09){_0x21c7cc['announce'](this['_getMarkerAnnouncementText'](_0x47532e,'LEAVE'));break;}}for(const _0x5c6e77 of _0x50987b){const {group:_0x546a7a,type:_0x1832c8}=this['_splitMarkerName'](_0x5c6e77['name']);if('suggestion'===_0x546a7a){_0x21c7cc['announce'](this['_getMarkerAnnouncementText'](_0x1832c8,'ENTER',_0x3a2a25(_0x3a9486)));break;}}});}['_processAttributeChanges'](_0x16bb5b){if(this['_recordAttributeSuggestions'])return!0x1;const _0x46e37e=this['editor'],_0x488160=_0x46e37e['model']['document']['differ']['getChanges']();if(0x0==_0x488160['length'])return!0x1;const _0x9d25db=[],_0x53c250=_0x488160['filter'](_0x57488b=>'attribute'==_0x57488b['type']),_0x1303cf=_0x488160['filter'](_0x153733=>'insert'==_0x153733['type']&&'$text'!=_0x153733['name']),_0x137713=_0x488160['filter'](_0x5ad43a=>'remove'==_0x5ad43a['type']&&'$text'!=_0x5ad43a['name']);for(const _0x27bba3 of _0x53c250)_0x9d25db['push']({'key':_0x27bba3['attributeKey'],'newValue':_0x27bba3['attributeNewValue'],'oldValue':_0x27bba3['attributeOldValue'],'range':Jt(_0x27bba3['range'],_0x46e37e['model'])});for(const _0x54b2ea of _0x1303cf){const _0x3e30b1=_0x137713['find'](_0x5e18d7=>_0x5e18d7['position']['isEqual'](_0x54b2ea['position']));_0x3e30b1&&_0x9d25db['push']({'key':u,'newValue':_0x54b2ea['name'],'oldValue':_0x3e30b1['name'],'range':_0x46e37e['model']['createRangeOn'](_0x54b2ea['position']['nodeAfter'])});}return 0x0!=_0x9d25db['length']&&this['_reduceExistingSuggestions'](_0x16bb5b,_0x9d25db);}['_processAttributeSuggestions'](_0x41c7d7){let _0x2123ab=!0x1;const _0x595a44=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x240506=>_0x240506['data']['newRange']&&_0x240506['name']['startsWith']('suggestion:attribute:'));for(const _0x499bd7 of _0x595a44){const {subType:_0x17c0a9,id:_0x3aed44}=this['_splitMarkerName'](_0x499bd7['name']),_0xae18dd=_0x17c0a9['split']('|')[0x0];for(const _0x377c29 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x377c29['id']!=_0x3aed44&&'attribute'==_0x377c29['type']&&_0x377c29['data']&&_0x377c29['data']['key']==_0xae18dd&&_0x377c29['getFirstRange']()['isIntersecting'](_0x499bd7['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x377c29,_0x499bd7['data']['newRange'],_0x41c7d7),_0x2123ab=!0x0);}return _0x2123ab;}['_recordAttributeChanges'](_0x137938){this['_recordAttributeSuggestions']=!0x0,_0x137938();}['_isRegisteredAttribute'](_0xbfe987){const _0x5510b3=this['_isBlockAttribute'](_0xbfe987),_0x368131=this['_inlineAttributeKeys']['has'](_0xbfe987);return _0x5510b3||_0x368131;}['_reduceExistingSuggestions'](_0x2abc7c,_0x5b2849){if(0x0==_0x5b2849['length'])return!0x1;let _0x266db1=!0x1;for(const _0x4c5638 of _0x5b2849){const _0x25d7ab=this['_findSuggestions'](_0x4c5638['range'],'attribute')['filter'](_0x204a04=>!_0x204a04['meta']['isNextTo'])['map'](_0x3d1d62=>_0x3d1d62['suggestion']),_0x425088=_0x1c269b({'newValue':_0x4c5638['newValue']});_0x25d7ab['filter'](_0x2da84e=>{const [_0xf5360c,_0x4512a3]=_0x2da84e['subType']['split']('|');return _0xf5360c==_0x4c5638['key']&&_0x4512a3!=_0x425088;})['forEach'](_0x8d45dc=>{this['_reduceSuggestionAttributeRange'](_0x8d45dc,_0x4c5638['range'],_0x2abc7c),_0x266db1=!0x0;});}return _0x266db1;}['_reduceSuggestionAttributeRange'](_0x37e31e,_0x117c30,_0xf561a4){const _0x47c65e=_0x37e31e['getFirstRange']()['getDifference'](_0x117c30);0x0!==_0x47c65e['length']?0x1!==_0x47c65e['length']?this['_breakSuggestionMarker'](_0x37e31e,_0x117c30['start'],_0x117c30['end']):this['_setSuggestionRange'](_0x37e31e,_0x47c65e[0x0]):_0xf561a4['removeMarker'](_0x37e31e['getFirstMarker']());}}class Ut{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4fc557){this['_editor']=_0x4fc557,this['_model']=_0x4fc557['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x1526cd,_0x466923,_0x825352,_0x58b509,_0x3ccf3f,_0x3d7a3b){return new o(this['_model'],{'type':_0x1526cd,'subType':_0x466923,'id':_0x825352,'author':_0x58b509,'creator':_0x58b509,'attributes':_0x3ccf3f,'onAttributesChange':_0x3d7a3b,'onAccept':(..._0x4fd3d6)=>this['getSuggestionCallback'](_0x1526cd,_0x466923,'accept')(..._0x4fd3d6),'onDiscard':(..._0x243f1e)=>this['getSuggestionCallback'](_0x1526cd,_0x466923,'discard')(..._0x243f1e)});}['registerCustomCallback'](_0x1dd82d,_0x23a881,_0x44af1d,_0x5d84c0){const _0x4759db=_0x1dd82d+':'+_0x23a881+':'+_0x44af1d;this['_customCallbacks']['set'](_0x4759db,_0x5d84c0);}['getSuggestionCallback'](_0x447dea,_0x5ca52b,_0x2d6e5c){const _0x46b1fc=_0x447dea+':'+_0x5ca52b+':'+_0x2d6e5c;return this['_customCallbacks']['get'](_0x46b1fc)||this['_defaultCallbacks']['get'](_0x447dea+':'+_0x2d6e5c);}['_registerDefaultCallbacks'](){const _0x281967=()=>!0x1,_0xa630a=_0x15810d=>{_0x15810d['sort']((_0x475bf2,_0x233deb)=>_0x475bf2['start']['isBefore'](_0x233deb['start'])?0x1:-0x1),this['_model']['change'](_0x4fc8e9=>{for(const _0x3595be of _0x15810d){let _0x4610a1;_0x4610a1=_0x3595be['end']['isAtEnd']&&_0x3595be['end']['parent']==_0x3595be['start']['nodeAfter']?_0x4fc8e9['createSelection'](_0x3595be['start']['nodeAfter'],'on'):_0x4fc8e9['createSelection'](_0x3595be),this['_model']['deleteContent'](_0x4610a1,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3b5654=(_0x59b36e,_0x43a768)=>{_0x43a768&&this['_model']['change'](_0x2d45f7=>{const {commandName:_0x332b04,commandParams:_0x1f1cbb=[]}=_0x43a768,_0x4b4994=_0x59b36e['map'](_0x590eb3=>(Ft(_0x590eb3)&&(_0x590eb3=this['_model']['createRange'](_0x590eb3['end'])),_0x590eb3))['filter'](_0x242a9f=>'$graveyard'!==_0x242a9f['root']['rootName']);if(_0x4b4994['length']<0x1)return;const _0x3139c5=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x4904da=>_0x7362da['fromRange'](_0x4904da));_0x2d45f7['setSelection'](_0x4b4994);for(const _0x5f15a8 of this['_editor']['commands']['commands']())_0x5f15a8['refresh']();_0x1f1cbb['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x332b04,..._0x1f1cbb);const _0x5a67e6=_0x3139c5['filter'](_0x4f6b3d=>'$graveyard'!=_0x4f6b3d['root']['rootName']);_0x5a67e6['length']>0x0&&_0x2d45f7['setSelection'](_0x5a67e6);for(const _0x322c60 of _0x3139c5)_0x322c60['detach']();});},_0x2cb1da=(_0x36c48b,_0x5a35c2)=>0x1==_0x36c48b['length']&&0x1==_0x5a35c2['length']&&_0x36c48b[0x0]['end']['isEqual'](_0x5a35c2[0x0]['start']),_0x30d5ba=(_0x346381,_0x40c43f,_0x7658fb,_0x3dc0c5)=>Ht(_0x346381,_0x40c43f,_0x7658fb,_0x3dc0c5)?[_0x346381,_0x40c43f]:Ht(_0x40c43f,_0x346381,_0x3dc0c5,_0x7658fb)?[_0x40c43f,_0x346381]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x281967),this['_defaultCallbacks']['set']('insertion:discard',_0xa630a),this['_defaultCallbacks']['set']('insertion:join',_0x2cb1da),this['_defaultCallbacks']['set']('insertion:chain',_0x30d5ba),this['_defaultCallbacks']['set']('deletion:accept',_0xa630a),this['_defaultCallbacks']['set']('deletion:discard',_0x281967),this['_defaultCallbacks']['set']('deletion:join',_0x2cb1da),this['_defaultCallbacks']['set']('deletion:chain',_0x30d5ba),this['_defaultCallbacks']['set']('formatInline:accept',_0x3b5654),this['_defaultCallbacks']['set']('formatInline:discard',_0x281967),this['_defaultCallbacks']['set']('formatInline:join',_0x2cb1da),this['_defaultCallbacks']['set']('formatInline:chain',_0x281967),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3b5654),this['_defaultCallbacks']['set']('formatBlock:discard',_0x281967),this['_defaultCallbacks']['set']('formatBlock:join',_0x2cb1da),this['_defaultCallbacks']['set']('formatBlock:chain',_0x281967),this['_defaultCallbacks']['set']('attribute:accept',_0x281967),this['_defaultCallbacks']['set']('attribute:discard',(_0x48c96a,_0x334dc5)=>{if(!_0x334dc5)return;const _0x336162=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x383522=>{if(_0x334dc5['key']==u)for(const _0x1a9167 of _0x48c96a){const _0x28bec0=_0x1a9167['start']['nodeAfter'],_0x40fb9a=_0x334dc5['oldValue'];_0x383522['rename'](_0x28bec0,_0x40fb9a);}else{if(_0x336162['_isBlockAttribute'](_0x334dc5['key'])){for(const _0x411837 of _0x48c96a)void 0x0!==_0x334dc5['oldValue']?_0x383522['setAttribute'](_0x334dc5['key'],_0x334dc5['oldValue'],_0x411837['start']['nodeAfter']):_0x383522['removeAttribute'](_0x334dc5['key'],_0x411837['start']['nodeAfter']);}else{for(const _0x212dd3 of _0x48c96a)_0x334dc5['oldValue']?_0x383522['setAttribute'](_0x334dc5['key'],_0x334dc5['oldValue'],_0x212dd3):_0x383522['removeAttribute'](_0x334dc5['key'],_0x212dd3);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2cb1da);}}function Vt(_0x343b53,_0xa38478,_0x554a28){for(const _0x23be16 of _0xa38478['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x23be16['root']==_0x23be16)return!0x1;if(!_0x554a28['containsItem'](_0x23be16))return!0x1;if(_0x343b53['isObject'](_0x23be16)||_0x343b53['isLimit'](_0x23be16))return!0x0;}return!0x1;}function Ft(_0x400b77){return _0x400b77['end']['parent']==_0x400b77['start']['nodeAfter']&&_0x400b77['end']['isAtStart'];}function Pt(_0x4daae7,_0x4b6a1c,_0x3fd618,_0x10cda2){const _0x24229b=_0x5234d6=>!_0x5234d6['item']['is']('$textProxy')&&!_0x10cda2['isObject'](_0x5234d6['item']),_0x279653=_0x4daae7['start']['getLastMatchingPosition'](_0x24229b),_0x849104=_0x4daae7['end']['getLastMatchingPosition'](_0x24229b,{'direction':'backward'});return(!_0x4daae7['start']['isEqual'](_0x279653)||!_0x4daae7['end']['isEqual'](_0x849104))&&(_0x279653['isBefore'](_0x849104)?_0x3fd618['updateMarker'](_0x4b6a1c,{'range':_0x3fd618['createRange'](_0x279653,_0x849104)}):_0x3fd618['removeMarker'](_0x4b6a1c),!0x0);}function Gt(_0x1daa8c){return _0x1c269b(_0x1daa8c);}function Lt(_0x30514b){const _0x20669d=_0x30514b['start']['nodeAfter'];return _0x20669d&&_0x20669d['is']('element');}function Jt(_0x4f7092,_0x305237){return null==_0x4f7092['end']['nodeBefore']&&_0x4f7092['end']['parent']==_0x4f7092['start']['nodeAfter']?Kt(_0x4f7092['start']['nodeAfter'],_0x305237):_0x4f7092;}function Kt(_0x5dcc53,_0x50646d){const _0x357045=_0x50646d['schema']['isObject'](_0x5dcc53)||_0x50646d['schema']['isSelectable'](_0x5dcc53);return _0x50646d['createRange'](_0x50646d['createPositionAt'](_0x5dcc53,'before'),_0x357045?_0x50646d['createPositionAfter'](_0x5dcc53):_0x50646d['createPositionAt'](_0x5dcc53,'end'));}function Ht(_0x25c9ce,_0x3d6b7b,_0x3d7e93,_0x4295dc){return!!qt(_0x25c9ce,_0x3d6b7b)&&_0x3d7e93['end']['isEqual'](_0x4295dc['start']);}function qt(_0x29a6c3,_0x14f630){if(!_0x29a6c3['_isDataLoaded']||!_0x14f630['_isDataLoaded'])return!0x1;const _0x34f231=new Set(Object['keys'](_0x29a6c3['attributes'])),_0x521205=new Set(Object['keys'](_0x14f630['attributes']));if(_0x34f231['delete']('groupId'),_0x521205['delete']('groupId'),0x0==_0x34f231['size']&&0x0==_0x521205['size'])return!0x0;if(_0x34f231['size']!=_0x521205['size'])return!0x1;const _0x3397b2={..._0x29a6c3['attributes']},_0x1e0a9b={..._0x14f630['attributes']};return delete _0x3397b2['groupId'],delete _0x1e0a9b['groupId'],JSON['stringify'](_0x3397b2)==JSON['stringify'](_0x1e0a9b);}function zt(_0xc1ea3e,_0x33b1ee){const _0x3bb657=Wt(_0xc1ea3e['attributes']),_0x5ba07e=Wt(_0x33b1ee);if(!_0xc1ea3e['_isDataLoaded'])return!0x1;for(const _0x6406e4 of Object['keys'](_0x5ba07e))if(!_0x17e1e9(_0x3bb657[_0x6406e4],_0x5ba07e[_0x6406e4]))return!0x1;return!0x0;}function Wt(_0x15f20e){const _0x25fc6b=Object['assign']({},_0x15f20e);return delete _0x25fc6b['skipNestingCheck'],delete _0x25fc6b['tablePasteChainId'],_0x25fc6b;}class pe extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x26da1b(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x8accac,_0x2882d2,_0x184157,_0x4524ff){super(),this['model']=_0x2882d2,this['view']=_0x184157,this['commentThreadController']=_0x4524ff,this['_editor']=_0x8accac,this['_acceptCommand']=_0x8accac['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x8accac['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x52590d,_0x2b91ef)=>_0x52590d||_0x2b91ef),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x55ea49=>_0x55ea49&&this['_editor']['model']['canEditAt'](_0x2882d2['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x587ada=>_0x587ada&&this['_editor']['model']['canEditAt'](_0x2882d2['getRanges']())),this['_pendingAction']=null,_0x184157['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x184157,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x184157,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x184157,'change:isDirty',()=>{_0x184157['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 _0x28296b=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x28296b);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x5297f1{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4af207,_0x243414,_0x226e13,_0x1e4d48){super(_0x4af207),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x5eb931(_0x4af207,c(_0x4af207,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x243414['authoredAt']),this['bind']('authoredAt')['to'](_0x243414),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',_0x243414,'authoredAt',this,'descriptionParts',(_0x1cd80a,_0x2c34ee,_0x2b4945)=>{const _0x1080f6=_0x2b4945['map'](_0x52cdc7=>ls(_0x52cdc7['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x1cd80a-0x1,_0x243414['author']['name'],_0x2c34ee?_0x1e4d48['formatDateTime'](_0x2c34ee):'',new DOMParser()['parseFromString'](_0x1080f6,'text/html')['body']['textContent']]);}),this['focusables']=new _0x2e2014(),this['focusTracker']=new _0x3f3e84(),this['keystrokes']=new _0x21acad(),this['focusCycler']=new _0x197fc3({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0xef760d=>_0xef760d['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x243414,this['_localUser']=_0x226e13,this['_config']=_0x1e4d48,_0x1e4d48['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x16eee3(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x1ef34c}=this['_config'];this['commentsListView']=new _0x1ef34c(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',_0x3e4b94=>_0x3e4b94+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4abcf4,_0x104e84)=>_0x4abcf4||!!_0x104e84);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0xdd191}=this['_config'],_0xc35378=new _0xdd191(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x453aa=_0xc35378['commentInputView'];return _0xc35378['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x453aa,'value',(_0x267724,_0x372200,_0x214dd2)=>!!_0x214dd2||_0x267724&&!_0x372200),_0x453aa['on']('submit',(_0x9dba32,_0x1b3d8a)=>{this['fire']('addComment',_0x1b3d8a),_0x453aa['editor']['setData']('');}),_0x453aa['on']('cancel',()=>this['focus']()),_0x453aa['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0xc35378;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x56bd42,_0x474f14,_0x15b268,_0x265c2c){super(_0x56bd42,_0x474f14,_0x15b268,_0x265c2c),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x290f2f=>_0x290f2f&&_0x290f2f[0x0]?_0x290f2f[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3df544,_0x36d764)=>{let _0x5bc320='';for(const _0xe65c9f of _0x3df544)_0x5bc320+='<p>'+ls(_0xe65c9f['content'],_0xe65c9f['color'])+'</p>';return _0x36d764?_0x5bc320:ti(_0x5bc320,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x265c2c['SuggestionView'](_0x56bd42,_0x474f14,{'formatDateTime':_0x265c2c['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 _0x5a9290=this['bindTemplate'],_0x5e7de5=[this['suggestionView']];return this['commentsListView']&&_0x5e7de5['push'](this['commentsListView']),this['commentThreadInputView']&&_0x5e7de5['push'](this['commentThreadInputView']),_0x5e7de5['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x5a9290['if']('isActive','ck-suggestion-wrapper--active'),_0x5a9290['to']('type',_0x419daf=>'ck-suggestion-'+_0x419daf),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':_0x5a9290['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x5e7de5};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x5297f1{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x3726b9,_0x1d8a50,_0x3df107){super(_0x3726b9),this['_model']=_0x1d8a50,this['_config']=_0x3df107,this['set']('description',''),this['bind']('authoredAt')['to'](_0x1d8a50),this['acceptButton']=this['_createButton'](c(_0x3726b9,'Accept\x20suggestion'),_0x8f20bd,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x3726b9,'Discard\x20suggestion'),_0x297710,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x25b38c(_0x3726b9,_0x1d8a50['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x2e2014([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x3f3e84(),this['keystrokes']=new _0x21acad(),this['focusCycler']=new _0x197fc3({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x3a10da=>_0x3a10da['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0xbbeaac=this['element']['querySelector']('.ck-annotation__content-wrapper');_0xbbeaac['innerHTML']=this['description'],this['on']('change:description',(_0x3d94dc,_0x384a6e,_0x3086a4)=>{_0xbbeaac['innerHTML']=_0x3086a4;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x1a3b7d=this['bindTemplate'],_0x5cdaf1=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x1a3b7d['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1a3b7d['to']('authoredAt',_0x1db1ae=>this['_config']['formatDateTime'](_0x1db1ae))}]}]},{'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']&&_0x5cdaf1['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':_0x5cdaf1}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x113f47,_0x49e8cf,_0x13242e,_0x498b18,_0x451a5b){const _0x5017a7=new _0xd3f9ac(this['locale']);return _0x5017a7['set']({'label':_0x113f47,'icon':_0x49e8cf,'tooltip':!0x0,'tooltipPosition':_0x451a5b}),_0x5017a7['extendTemplate']({'attributes':{'class':_0x13242e}}),_0x5017a7['on']('execute',()=>{this['fire'](_0x498b18,this['_model']['id']);}),_0x5017a7;}['_setupKeyboardNavigation'](){const _0x4fd74c=this['element'];this['keystrokes']['listenTo'](_0x4fd74c);for(const _0x2def7b of this['focusables'])this['focusTracker']['add'](_0x2def7b['element']),this['keystrokes']['listenTo'](_0x2def7b['element']);this['keystrokes']['set']('enter',(_0x428bba,_0xb8e7b9)=>{_0x4fd74c===_0x428bba['target']&&(this['focusCycler']['focusFirst'](),_0xb8e7b9());}),this['keystrokes']['set']('esc',(_0x79b2b6,_0x5bf632)=>{_0x4fd74c!==_0x79b2b6['target']&&(this['focus'](),_0x5bf632());});}}class d extends _0x53ae92{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0xd79e0a,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2a4db1){super(_0x2a4db1),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4eea47=this['editor']['config'];_0x4eea47['define']('trackChanges.SuggestionThreadView',fe),_0x4eea47['define']('trackChanges.SuggestionView',we),_0x4eea47['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4eea47['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x66a836,_0x1f05cd){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x2e01cd,_0x3b4253]of this['_handleControllerBuffer']){const _0x17f310=this['_suggestionToController']['has'](_0x2e01cd);_0x17f310||_0x3b4253?_0x17f310&&_0x3b4253&&this['_destroyController'](_0x2e01cd):this['_initializeController'](_0x2e01cd);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x66a836,_0x1f05cd);}['init'](){const _0x390075=this['editor'],_0x22bd80=_0x390075['plugins']['get']('TrackChangesEditing'),_0x5a6f9f=_0x390075['plugins']['get']('Annotations'),_0x877bc2=_0x390075['plugins']['get']('EditorAnnotations'),_0x1fa7c3=_0x390075['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x877bc2['addSourceCollector'](()=>{const _0x99fcd3=[];for(const [_0x207c39,_0x3697f2]of Array['from'](this['_suggestionToController'])){const _0x2084ca=_0x207c39['getAllAdjacentSuggestions'](),_0x26a821=[];for(const _0x16d4f8 of _0x2084ca){if(!_0x16d4f8['isInContent'])continue;if(_0x16d4f8['isMultiRange']){_0x26a821['push'](..._0x16d4f8['getRanges']());continue;}const _0x3ee623=_0x16d4f8['getFirstRange']();if(_0x26a821['length']>0x0){const _0x1c950a=_0x26a821[0x0]['getJoined'](_0x3ee623);if(_0x1c950a){_0x26a821[0x0]=_0x1c950a;continue;}}_0x26a821['push'](_0x3ee623);}_0x99fcd3['push']([_0x3697f2['view'],_0x26a821]);}return _0x99fcd3;}),this['listenTo'](_0x22bd80,'suggestionLoaded',(_0x23f7ac,_0x65b284)=>{this['listenTo'](_0x65b284,'change:previous',(_0x760b39,_0x4f0ae9,_0x2130e8,_0x4c99c6)=>{_0x65b284['isInContent']&&(null==_0x2130e8?(this['_updateController'](_0x4c99c6['head']),this['_handleSuggestionControllerDelayed'](_0x65b284,!0x1)):(this['_updateController'](_0x2130e8['head']),null==_0x4c99c6&&this['_handleSuggestionControllerDelayed'](_0x65b284,!0x0)));}),null!==_0x65b284['previous']?this['_updateController'](_0x65b284['head']):this['_handleSuggestionControllerDelayed'](_0x65b284,!0x1);}),this['listenTo'](_0x22bd80,'suggestionUnloaded',(_0x1d863e,_0x3f201c,_0x2e2fa2)=>{this['stopListening'](_0x3f201c,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3f201c),this['_suggestionToController']['has'](_0x3f201c)&&this['_destroyController'](_0x3f201c),_0x2e2fa2&&this['_updateController'](_0x2e2fa2['head']);}),this['listenTo'](_0x22bd80,'suggestionChanged',(_0x112cfb,_0x1911bc)=>{this['_updateController'](_0x1911bc);}),this['listenTo'](_0x5a6f9f,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1fa7c3,'addComment',(_0x350506,{threadId:_0x52d362,isFromAdapter:_0x24e9b4})=>{if(_0x24e9b4||!_0x22bd80['hasSuggestion'](_0x52d362))return;const _0x509f7d=_0x22bd80['getSuggestion'](_0x52d362);this['_suggestionToController']['get'](_0x509f7d)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4b3d78=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x8d4eae;for(const _0x374c13 in _0x4b3d78){const _0x26965b=_0x374c13,_0x3f6421=_0x4b3d78[_0x26965b];if('trackChangesLicenseKeyValid'==_0x3f6421||'trackChangesLicenseKeyInvalid'==_0x3f6421||'trackChangesLicenseKeyExpired'==_0x3f6421||'trackChangesLicenseKeyDomainLimit'==_0x3f6421||'trackChangesLicenseKeyNotAllowed'==_0x3f6421||'trackChangesLicenseKeyEvaluationLimit'==_0x3f6421||'trackChangesLicenseKeyTrialLimit'==_0x3f6421||'trackChangesLicenseKeyUsageLimit'==_0x3f6421){delete _0x4b3d78[_0x26965b],_0x8d4eae=_0x3f6421,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x8d4eae&&_0x4b3d78['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x8d4eae&&_0x4b3d78['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x8d4eae&&_0x4b3d78['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x8d4eae&&_0x4b3d78['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x8d4eae&&_0x4b3d78['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x8d4eae&&_0x4b3d78['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x8d4eae&&_0x4b3d78['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x1d01d7=this['editor']['plugins']['get']('Annotations'),_0x5a81f8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x35ac71=Array['from'](_0x1d01d7['activeAnnotations'],_0x263c58=>_0x263c58['innerView'])['filter'](_0x2d4b62=>this['_viewToController']['has'](_0x2d4b62)),_0x144902=[];for(const _0x223bed of _0x35ac71){const _0x2d7291=this['_viewToController']['get'](_0x223bed)['model']['getAllAdjacentSuggestions']();_0x144902['push'](..._0x2d7291['reduce']((_0x28b752,_0x840384)=>[..._0x28b752,..._0x840384['getMarkerNames']()],[]));}_0x5a81f8['activeMarkers']=_0x144902;}['_addUIComponentsToFactory'](){const _0x1a9f5d=this['editor'],_0x35d612=_0x1a9f5d['locale'],_0x26423e=c(_0x35d612,'Track\x20changes'),_0x421147=new _0x3abf58([{'type':'switchbutton','model':new _0x2e500b({'withText':!0x0,'isToggleable':!0x0,'label':_0x26423e,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x2e500b({'withText':!0x0,'label':c(_0x35d612,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2e500b({'withText':!0x0,'label':c(_0x35d612,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2e500b({'withText':!0x0,'label':c(_0x35d612,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2e500b({'withText':!0x0,'label':c(_0x35d612,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x1a9f5d['plugins']['has']('TrackChangesPreview')&&_0x421147['addMany']([{'type':'separator'},{'type':'button','model':new _0x2e500b({'withText':!0x0,'label':c(_0x35d612,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x438dd8 of _0x421147)if(ke(_0x438dd8)){const _0x47ac6b=_0x1a9f5d['commands']['get'](_0x438dd8['model']['commandName']);_0x438dd8['model']['bind']('isOn','isEnabled')['to'](_0x47ac6b,'value','isEnabled');}_0x1a9f5d['ui']['componentFactory']['add']('trackChanges',_0x1cf24f=>this['_createToolbarButton'](_0x1cf24f,_0x421147,_0x26423e)),_0x1a9f5d['ui']['componentFactory']['add']('menuBar:trackChanges',_0x44afb5=>this['_createMenuBarMenu'](_0x44afb5,_0x421147,_0x26423e));}['_createToolbarButton'](_0xd2636,_0x36d68f,_0x344d68){const _0x296e00=_0xc838a8(_0xd2636,_0x206658),_0x3f32a1=this['editor']['commands']['get']('trackChanges');_0x296e00['buttonView']['set']({'tooltip':_0x344d68,'label':_0x344d68,'icon':_0x274568}),_0x296e00['buttonView']['bind']('isOn')['to'](_0x3f32a1,'value'),_0x296e00['buttonView']['on']('execute',()=>{_0x3f32a1['execute'](),this['editor']['editing']['view']['focus']();}),_0x185cd5(_0x296e00,_0x36d68f,{'role':'menu'});const _0x599938=[];for(const _0x176ddd of _0x36d68f)ke(_0x176ddd)&&_0x599938['push'](this['editor']['commands']['get'](_0x176ddd['model']['commandName']));const _0x45e15f=_0x296e00['buttonView'];return _0x45e15f['actionView']['unbind']('isEnabled'),_0x45e15f['arrowView']['unbind']('isEnabled'),_0x45e15f['actionView']['bind']('isEnabled')['to'](_0x3f32a1,'isEnabled'),_0x45e15f['arrowView']['bind']('isEnabled')['toMany'](_0x599938,'isEnabled',(..._0x159918)=>_0x159918['some'](_0x171c50=>_0x171c50)),_0x296e00['on']('execute',_0x53b212=>{this['editor']['execute'](_0x53b212['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x296e00;}['_createMenuBarMenu'](_0x35a977,_0x7f074a,_0x2d800a){const _0x5f0ab4=new _0x4e0aa7(_0x35a977),_0x437934=this['editor']['commands']['get']('trackChanges');_0x5f0ab4['buttonView']['set']({'label':_0x2d800a,'icon':_0x274568});const _0x433bc3=new _0x2170a6(_0x35a977);for(const _0x325a77 of _0x7f074a){if('separator'==_0x325a77['type']){_0x433bc3['items']['add'](new _0x1a819b(_0x35a977));continue;}const _0x4ec499=new _0x3d208e(_0x35a977,_0x5f0ab4),_0x4ca64d=new _0xbe4a96(_0x35a977),_0x245e61=_0x325a77['model'];_0x4ca64d['bind'](...Object['keys'](_0x245e61))['to'](_0x245e61),_0x4ca64d['delegate']('execute')['to'](_0x5f0ab4),_0x4ca64d['on']('execute',()=>{this['editor']['execute'](_0x245e61['commandName']),this['editor']['editing']['view']['focus']();}),_0x4ec499['children']['add'](_0x4ca64d),_0x433bc3['items']['add'](_0x4ec499);}return _0x5f0ab4['bind']('isEnabled')['to'](_0x437934,'isEnabled'),_0x5f0ab4['panelView']['children']['add'](_0x433bc3),_0x5f0ab4;}['_initializeController'](_0x5b9218){const _0x10a66a=this['editor'],_0xbede38=_0x10a66a['config'],_0x47e9c7=_0x10a66a['plugins']['get']('Annotations'),_0x5eadbc=_0x10a66a['plugins']['get']('CommentsRepository'),_0x2b827f=_0x10a66a['plugins']['get']('EditorAnnotations'),_0x350790=_0x10a66a['plugins']['get'](_0xd79e0a)['me'],_0x3505cb=_0xbede38['get']('trackChanges')['SuggestionThreadView'],_0xc06f9=_0xbede38['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x3eb983,CommentThreadInputView:_0x24b072}=_0x10a66a['plugins']['get']('CommentsUI');let _0x30c56f,_0x2a2cb3,_0x2ef6d3;this['_annotationViews']['has'](_0x5b9218['id'])?(_0x2a2cb3=this['_annotationViews']['get'](_0x5b9218['id']),_0x30c56f=_0x2a2cb3['mainView']):(_0x30c56f=new _0x3505cb(_0x10a66a['locale'],_0x5b9218,_0x350790,{'disableComments':this['_disableComments'],'editorConfig':{..._0xbede38['get']('comments.editorConfig'),'licenseKey':_0xbede38['get']('licenseKey')},'maxCommentsWhenCollapsed':_0xbede38['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xbede38['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xbede38['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4e981b(_0xbede38['get']('locale')),'CommentView':_0xbede38['get']('comments')['CommentView'],'CommentsListView':_0x3eb983,'CommentThreadInputView':_0x24b072,'SuggestionView':_0xc06f9}),_0x30c56f['suggestionView']['acceptButton']['on']('execute',()=>{_0x10a66a['editing']['view']['focus']();}),_0x30c56f['suggestionView']['discardButton']['on']('execute',()=>{_0x10a66a['editing']['view']['focus']();}),_0x2a2cb3=_0x47e9c7['createAnnotationView'](this['editor']['locale'],_0x30c56f),_0x2a2cb3['bind']('isDirty')['to'](_0x30c56f,'isDirty'),_0x2a2cb3['bind']('length')['to'](_0x30c56f),_0x2a2cb3['bind']('type')['to'](_0x30c56f,'type',_0x24c9fd=>'suggestion-'+_0x24c9fd),_0x30c56f['on']('escape',()=>{_0x2ef6d3['fire']('escape');}),this['_annotationViews']['set'](_0x5b9218['id'],_0x2a2cb3));const _0x2935ed=_0x5eadbc['createCommentThreadController'](_0x5b9218['commentThread'],_0x30c56f),_0x5bcb59=new pe(_0x10a66a,_0x5b9218,_0x30c56f,_0x2935ed),_0x1f4ea7=_0x5b9218['getAllAdjacentSuggestions']()['filter'](_0x5df376=>_0x5df376['isInContent']);_0x30c56f['descriptionParts']=_0x10a66a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1f4ea7),this['_suggestionToController']['set'](_0x5b9218,_0x5bcb59),this['_viewToController']['set'](_0x30c56f,_0x5bcb59),_0x2ef6d3=_0x47e9c7['createAnnotation']({'view':_0x2a2cb3,'target':()=>{const _0x23548a=[],_0x39476d=_0x5b9218['getAllAdjacentSuggestions']()['filter'](_0x4d0948=>_0x4d0948['isInContent']);for(const _0x3a6f84 of _0x39476d)_0x23548a['push'](..._0x3a6f84['getMarkers']());return _0x472501(_0x10a66a['editing'],_0x23548a);},'type':()=>'suggestion-'+_0x5bcb59['view']['type']}),_0x5eadbc['_bindAnnotationToEditors'](_0x30c56f,_0x2ef6d3),_0x47e9c7['add'](_0x2ef6d3),_0x2b827f['registerAnnotation'](_0x2ef6d3);}['_destroyController'](_0x2b7271){const _0x338fde=this['editor']['plugins']['get']('CommentsRepository'),_0x56df67=this['editor']['plugins']['get']('Annotations'),_0x2cb806=this['_suggestionToController']['get'](_0x2b7271),_0x2e41e8=_0x2cb806['view'],_0x3e044e=_0x56df67['getByInnerView'](_0x2e41e8);_0x338fde['_unbindEditors'](_0x2e41e8),_0x3e044e&&_0x56df67['remove'](_0x3e044e),this['_suggestionToController']['delete'](_0x2b7271),this['_viewToController']['delete'](_0x2e41e8),_0x2cb806['destroy']();}['_updateController'](_0x29094b){if(!_0x29094b['isInContent']||!this['_suggestionToController']['has'](_0x29094b))return;const _0x3004e6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x6c0187=this['_suggestionToController']['get'](_0x29094b),_0x59966f=_0x29094b['getAllAdjacentSuggestions']();_0x6c0187['view']['descriptionParts']=_0x3004e6['descriptionFactory']['getDescriptions'](_0x59966f);}['destroy'](){for(const _0x4013c6 of this['_suggestionToController']['keys']())this['_destroyController'](_0x4013c6);for(const _0x4b1ad4 of this['_annotationViews']['values']())_0x4b1ad4['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x5b06f8){return'model'in _0x5b06f8;}class k extends _0x53ae92{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x237319){this['editor']['plugins']['get'](p)['adapter']=_0x237319;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x15672d){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x15672d);}['getSuggestions']({skipNotAttached:_0x265990=!0x1,toJSON:_0x4e0df7=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x265990,'toJSON':_0x4e0df7});}['getSuggestion'](_0x249971){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x249971);}}const w=['Pagination'];class T extends _0x53ae92{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x583a5d=this['editor'];if(_0x583a5d['config']['define']('trackChangesData.editorCreator',_0x3fae25=>{const _0x247de7=_0x583a5d['model']['document']['getRootNames']()['reduce']((_0x41cb1d,_0xcb2603)=>(_0x41cb1d[_0xcb2603]='',_0x41cb1d),{});return _0x583a5d['constructor']['create'](_0x247de7,_0x3fae25);}),'function'!=typeof _0x583a5d['config']['get']('trackChangesData')['editorCreator'])throw new _0x3d4351('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x5427e3){return N(this['editor'],!0x0,_0x5427e3);}['getDataWithDiscardedSuggestions'](_0x253a32){return N(this['editor'],!0x1,_0x253a32);}}class D extends _0x53ae92{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3eda32){function _0x473e0c(_0x43ecc5){return _0x43ecc5['map'](_0x485581=>String['fromCharCode'](_0x485581))['join']('');}super(_0x3eda32),this['result']='end',_0x3eda32[_0x473e0c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x473e0c([0x76,0x69,0x65,0x77])][_0x473e0c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x473e0c([0x61,0x75,0x74,0x6f]),_0x3eda32[_0x473e0c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x473e0c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x473e0c([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x473e0c([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x473e0c([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Fe(_0x2f0a04){return void 0x0!==_0x2f0a04['getRootsAttributes'];}async function N(_0x53f1e2,_0x4d6dc2,_0x45d964){const _0x16bff3=_0x4681f7(_0x53f1e2,w);_0x16bff3['plugins']['push'](p,D),_0x16bff3['rootsAttributes']=Fe(_0x53f1e2)?_0x53f1e2['getRootsAttributes']():void 0x0;const _0x443e34=document['createDocumentFragment'](),_0x5584e6=_0x53f1e2['config']['get']('trackChangesData')['editorCreator'],_0x1cd3d2=await _0x5584e6(_0x16bff3,()=>function(_0x11d662){const _0x238e3b=document['createElement']('div');return _0x11d662['appendChild'](_0x238e3b),_0x238e3b;}(_0x443e34));!function(_0x23cbc9,_0x957ed1){const _0x1833bc=_0x23cbc9['model']['document']['getRootNames']()['reduce']((_0x5f3742,_0x36bd66)=>(_0x5f3742[_0x36bd66]=_0x23cbc9['data']['get']({'rootName':_0x36bd66}),_0x5f3742),{}),_0x5c0bfa=_0x23cbc9['plugins']['get']('Users')['users']['map'](_0xdd0f49=>({'id':_0xdd0f49['id'],'name':_0xdd0f49['name']})),_0x49b385=_0x23cbc9['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xc520a6=_0x23cbc9['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1829bc=_0x957ed1['plugins']['get']('Users'),_0x11da87=_0x957ed1['plugins']['get']('TrackChangesEditing'),_0x2bcdc4=_0x957ed1['plugins']['get']('CommentsRepository');for(const _0x4a9bc5 of _0x2bcdc4['getCommentThreads']())_0x4a9bc5['remove']();for(const _0x5da4ed of _0x5c0bfa)_0x1829bc['getUser'](_0x5da4ed['id'])||_0x1829bc['addUser'](_0x5da4ed);_0x1829bc['me']||_0x1829bc['useAnonymousUser']();for(const _0x47d479 of _0xc520a6)_0x2bcdc4['addCommentThread'](_0x47d479);for(const _0xc3d409 of _0x49b385)_0x11da87['addSuggestionData'](_0xc3d409);_0x957ed1['data']['set'](_0x1833bc);}(_0x53f1e2,_0x1cd3d2),_0x1cd3d2['execute'](_0x4d6dc2?'acceptAllSuggestions':'discardAllSuggestions');const _0x3efc6b=Fe(_0x1cd3d2)?_0x1cd3d2['getFullData'](_0x45d964):_0x1cd3d2['data']['get'](_0x45d964);return await _0x1cd3d2['destroy'](),_0x3efc6b;}class Me extends _0x5297f1{['options'];constructor(_0x39ceab,_0xe9745c){super(_0x39ceab),this['options']=_0xe9745c,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x584347,_0x2c7bb3){if(!this['element'])return;const _0x1165c6=[];for(const [_0x23daf4,_0x54eb3b]of _0x584347){const _0x24e340=document['createElement']('div');_0x24e340['setAttribute']('data-ck-root-name',_0x23daf4),_0x24e340['className']=_0x54eb3b['classes']+'\x20ck-track-changes-preview__root-container',_0x24e340['innerHTML']=_0x54eb3b['content'],_0x1165c6['push'](_0x24e340);}_0x2c7bb3(this['element'],_0x1165c6),this['element']['style']['width']='',this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x2699b4{constructor(_0x449d65){super(_0x449d65),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x406043=this['editor'],_0x2b2ddc=_0x406043['locale'],_0x5303ec=_0x406043['plugins']['get']('Dialog');let _0x3ce1d7;const _0x2d3cf3=function(_0x4ddfe6){const _0x388493={};if('editables'in _0x4ddfe6['ui']['view']){for(const [_0x26eb25,_0x594a14]of Object['entries'](_0x4ddfe6['ui']['view']['editables']))_0x388493[_0x26eb25]=_0x594a14['element'];}else _0x388493[_0x4ddfe6['model']['document']['getRootNames']()[0x0]]=_0x4ddfe6['ui']['view']['editable']['element'];return _0x388493;}(_0x406043),_0x3e650f=function(_0x2491d7){let _0x5943ec=0x0;for(const _0x519fd9 of Object['values'](_0x2491d7))_0x5943ec=Math['max'](_0x5943ec,_0x519fd9['getBoundingClientRect']()['width']);let _0x3ff59a=0x0;for(const _0x433ad6 of Object['values'](_0x2491d7))_0x3ff59a+=_0x433ad6['getBoundingClientRect']()['height'];const _0x327f05=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x7dfaa0=Math['min'](_0x3ff59a,_0x327f05);return{'width':_0x5943ec,'height':_0x7dfaa0};}(_0x2d3cf3);_0x5303ec['show']({'id':'finalContentPreview','title':c(_0x2b2ddc,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x2b2ddc,{'dialogRects':_0x3e650f}),'onHide':()=>{_0x3ce1d7['detachFromDom']();},'onShow':()=>{_0x406043['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x25e5a6=>{const _0x44693e=this['_standarizeRootsData'](_0x25e5a6,_0x406043,_0x2d3cf3);_0x5303ec['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x44693e,_0x406043['config']['get']('trackChanges.preview.renderFunction'));}),_0x3ce1d7=new _0x5bf6bf(_0x2b2ddc,[_0x5303ec['view']]),_0x3ce1d7['attachToDom'](),_0x3ce1d7['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x406043['once']('destroy',()=>{_0x3ce1d7['detachFromDom']();});const _0x958c0e=_0x5303ec['view']['headerView']['class'];_0x5303ec['view']['headerView']['class']=_0x958c0e?_0x958c0e+'\x20ck-reset_all':'ck-reset_all',_0x5303ec['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x5303ec['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x30a4bf=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x278df0=_0x30a4bf['previewMode'],_0xf13a97={};if('$labels'===_0x278df0){for(const _0x4f8f9e of _0x30a4bf['getMergeFieldsIds']())_0xf13a97[_0x4f8f9e]=_0x30a4bf['getLabel'](_0x4f8f9e)||_0x4f8f9e;}else{const _0x43e29a='$defaultValues'===_0x278df0?_0x30a4bf['getDefaultValues']():_0x30a4bf['getDataSetValues'](_0x278df0,!0x0);for(const _0x5bbed3 of Object['entries'](_0x43e29a)){const [_0x19bb3f,_0x364ee5]=_0x5bbed3;_0xf13a97[_0x19bb3f]=null!==_0x364ee5?_0x364ee5:_0x30a4bf['getLabel'](_0x19bb3f)||_0x19bb3f;}}return{'mergeFieldsData':_0xf13a97};}['_standarizeRootsData'](_0x251f17,_0x20b998,_0x341a7b){let _0x1ffb62;if('string'==typeof _0x251f17){const _0x51cc45=_0x20b998['model']['document']['getRootNames']()[0x0];_0x1ffb62={[_0x51cc45]:_0x251f17};}else _0x1ffb62=_0x251f17;const _0x23e02a=this['_fixMediaEmbeds'](_0x1ffb62,_0x20b998),_0x42ed7b=function(_0x1f8032,_0x51b6b5){for(const [_0x37c171,_0x4f4ff9]of _0x1f8032)_0x4f4ff9['classes']=_0x51b6b5[_0x37c171]['classList']['value']['replace']('ck-focused','');return _0x1f8032;}(this['_sortRoots'](_0x20b998)['reduce']((_0xa760b7,_0x155a6d)=>(_0xa760b7['push']([_0x155a6d,{'content':_0x23e02a[_0x155a6d],'classes':''}]),_0xa760b7),[]),_0x341a7b);return _0x42ed7b;}['_fixMediaEmbeds'](_0x5f3fae,_0xc2e022){if(!_0xc2e022['plugins']['has']('MediaEmbedEditing'))return _0x5f3fae;const _0x15bda0=_0xc2e022['plugins']['get']('MediaEmbedEditing');for(const [_0x3d2bc2,_0x23e6f0]of Object['entries'](_0x5f3fae)){const _0x1db52c=document['createElement']('div');_0x1db52c['innerHTML']=_0x23e6f0,(_0x1db52c['querySelectorAll']('figure.media')['forEach'](_0x163f66=>{const _0x158f53=_0x163f66['querySelector']('oembed');if(_0x158f53){const _0x1c482f=_0x158f53['getAttribute']('url');if(_0x1c482f){const _0x55d2c0=_0x15bda0['registry']['getMediaViewElement'](new _0xc616a3(_0xc2e022['editing']['view']['document']),_0x1c482f,{'elementName':'','renderForEditingView':!0x0}),_0x3706ba=document['createElement']('div');_0x3706ba['classList']['add']('ck-media__wrapper'),_0x55d2c0['render'](_0x3706ba,_0xc2e022['editing']['view']['domConverter']),_0x158f53['replaceWith'](_0x3706ba);}}}),_0x5f3fae[_0x3d2bc2]=_0x1db52c['innerHTML']);}return _0x5f3fae;}['_sortRoots'](_0x15e8b7){if(!function(_0x4646c6){return void 0x0!==_0x4646c6['getRootsAttributes'];}(_0x15e8b7))return _0x15e8b7['model']['document']['getRootNames']();const _0x119ae0=[],_0x477704=new Map();for(const _0x4971c6 of _0x15e8b7['model']['document']['getRootNames']()){const _0x4b4f7f=_0x15e8b7['editing']['view']['getDomRoot'](_0x4971c6)['getClientRects']()['item'](0x0);_0x119ae0['push'](_0x4971c6),_0x477704['set'](_0x4971c6,_0x4b4f7f);}return _0x119ae0['sort']((_0x2421c9,_0x4c3275)=>{const _0x5ec352=_0x477704['get'](_0x2421c9),_0x8c5cc6=_0x477704['get'](_0x4c3275);return _0x5ec352['y']-_0x8c5cc6['y']||_0x5ec352['x']-_0x8c5cc6['x'];}),_0x119ae0;}}class te extends _0x53ae92{static get['requires'](){return[T,_0xc3148a];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x39970f){super(_0x39970f),_0x39970f['commands']['add']('previewFinalContent',new re(this['editor'])),_0x39970f['config']['define']('trackChanges.preview.renderFunction',(_0x441c4b,_0x1c6ad7)=>{for(const _0x25cac5 of _0x1c6ad7)_0x441c4b['appendChild'](_0x25cac5);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
|