@ckeditor/ckeditor5-track-changes 46.0.1-alpha.2 → 46.0.1-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
24
|
-
_0x51e0c1(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x21838f,_0x5d7d96){super(),this['id']=_0x5d7d96['id'],this['type']=_0x5d7d96['type'],this['subType']=_0x5d7d96['subType']||null,this['author']=_0x5d7d96['author'],this['creator']=_0x5d7d96['creator']||_0x5d7d96['author'],this['isExternal']=Boolean(_0x5d7d96['attributes']&&_0x5d7d96['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x5d7d96['originalSuggestionId']||null,this['_model']=_0x21838f,this['_onAccept']=_0x5d7d96['onAccept'],this['_onDiscard']=_0x5d7d96['onDiscard'],this['_onAttributesChange']=_0x5d7d96['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5d7d96['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 _0x396bbb=this;for(;_0x396bbb['previous'];)_0x396bbb=_0x396bbb['previous'];return _0x396bbb;}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'](_0x510d5a){this['_markerNames']['add'](_0x510d5a);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2f2cd7=>this['_model']['markers']['get'](_0x2f2cd7))['filter'](_0x1dcea9=>_0x1dcea9);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x97a64f=>{for(const _0x4dad5e of this['getMarkers']())_0x97a64f['removeMarker'](_0x4dad5e);}),this['_markerNames']['clear']();}['removeMarker'](_0xea82ed){this['_model']['change'](_0x8a74b5=>{_0x8a74b5['removeMarker'](_0xea82ed);}),this['_markerNames']['delete'](_0xea82ed);}['addRange'](_0x1180d5){const _0x3964e5='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x3964e5),this['_model']['change'](_0x2576a6=>{_0x2576a6['addMarker'](_0x3964e5,{'range':_0x1180d5,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x35878d){for(const _0x54ad74 of this['getRanges']())if(_0x54ad74['isIntersecting'](_0x35878d))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x2607b1=>_0x2607b1['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x72598e,_0x3f4272)=>[..._0x72598e,..._0x3f4272['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2c5442=this['getRanges']();if(0x1!=_0x2c5442['length'])return null;const _0x48e2a6=_0x2c5442[0x0],_0x5460c1=_0x48e2a6['start']['nodeAfter'],_0x123403=_0x48e2a6['end']['nodeBefore'];return _0x5460c1 instanceof _0x359eb7?_0x5460c1!=_0x123403?null:_0x5460c1: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 _0x225351=[];let _0x482e1e=this['head'];for(;_0x482e1e;)_0x225351['push'](_0x482e1e),_0x482e1e=_0x482e1e['next'];return _0x225351;}['setAttribute'](_0x4ea646,_0x42c46f){const _0xccb5cd=_0x4a425e(this['attributes']);_0x383ca5(_0xccb5cd,_0x4ea646,_0x42c46f),_0x59664a(_0xccb5cd,this['attributes'])||(this['attributes']=_0xccb5cd,this['_onAttributesChange'](_0xccb5cd));}['removeAttribute'](_0x21d0b3){const _0x34cd93=_0x4a425e(this['attributes']);_0x1670a9(_0x34cd93,_0x21d0b3),_0x59664a(_0x34cd93,this['attributes'])||(this['attributes']=_0x34cd93,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 _0x2e8cc()['substr'](0x1,0x5);}}function o(_0x5a9c41,_0x1bf509,_0x36bb68){const _0x3a2b37=_0x5a9c41['t'],t=_0x5a9c41['t'];switch(_0x1bf509){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',_0x36bb68);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x36bb68);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x36bb68);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x36bb68);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x36bb68);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',_0x36bb68);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x36bb68);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',_0x36bb68);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x36bb68);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x36bb68);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x36bb68);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x36bb68);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x36bb68);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x36bb68);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x36bb68);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x36bb68);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x36bb68);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x36bb68);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x36bb68);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x36bb68);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x36bb68);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x36bb68);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x36bb68);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x36bb68);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x36bb68);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'},_0x36bb68);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x36bb68);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x36bb68);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x36bb68);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x36bb68);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x36bb68);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x36bb68);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x36bb68);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'},_0x36bb68);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x36bb68);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x36bb68);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x36bb68);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x36bb68);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'},_0x36bb68);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x36bb68);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'},_0x36bb68);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'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'},_0x36bb68);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x36bb68);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'},_0x36bb68);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x36bb68);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'},_0x36bb68);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x36bb68);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x36bb68);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'},_0x36bb68);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x36bb68);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 _0x3a2b37({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x36bb68);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x3a2b37({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x36bb68);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x36bb68);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'},_0x36bb68);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'},_0x36bb68);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'},_0x36bb68);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x1bf509;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3141fb,_0x27d8b4){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3141fb,this['_locale']=_0x27d8b4;}['getDescriptions'](_0x524275){const _0x3bc2d8=[],_0x34ca0e=new Set(),_0x938f70=new Set();for(let _0x4ccf9c=0x0;_0x4ccf9c<_0x524275['length'];_0x4ccf9c++){const _0x3aa9f3=_0x524275[_0x4ccf9c];if(!_0x3aa9f3['isInContent'])continue;const _0x35652b=this['_handleCustomCallbackDescription'](_0x3aa9f3);if(_0x35652b){if(null!=_0x3aa9f3['subType']){if(_0x34ca0e['has'](_0x3aa9f3['subType']))continue;_0x34ca0e['add'](_0x3aa9f3['subType']);}_0x3bc2d8['push'](_0x35652b);}else{if('attribute'==_0x3aa9f3['type']){const _0x24a103=_0x3aa9f3['data']['key'];if(_0x938f70['has'](_0x24a103))continue;_0x938f70['add'](_0x3aa9f3['data']['key']),_0x24a103==m?this['_handleRenameSuggestionDescription'](_0x3bc2d8,_0x3aa9f3):this['_handleAttributeSuggestionDescription'](_0x3bc2d8,_0x3aa9f3);continue;}'insertion'!=_0x3aa9f3['type']&&'deletion'!=_0x3aa9f3['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3bc2d8,_0x3aa9f3,_0x524275[_0x4ccf9c+0x1]);}}return this['_resolveDescriptionItems'](_0x3bc2d8);}['registerDescriptionCallback'](_0x520f73){this['_customCallbacks']['push'](_0x520f73);}['registerElementLabel'](_0x4e428a,_0x56f865,_0x572538=_0x2bad7d['normal']){'function'==typeof _0x4e428a?_0x3fb32d(this['_itemLabelsCallbacks'],{'matchingCallback':_0x4e428a,'label':_0x56f865,'priority':_0x572538}):this['_itemLabels']['set'](_0x4e428a,_0x56f865);}['registerAttributeLabel'](_0x123693,_0x580cc7){this['_attributeLabels']['set'](_0x123693,_0x580cc7);}['getItemLabel'](_0x7ff696,_0x279988=0x1){let _0x310237;for(const _0x56c0c0 of this['_itemLabelsCallbacks'])if(_0x56c0c0['matchingCallback'](_0x7ff696)){_0x310237=_0x56c0c0['label'];break;}return _0x310237||(_0x310237=this['_itemLabels']['get'](_0x7ff696['name'])),_0x310237?_0x310237(_0x279988):0x1!==_0x279988?_0x279988+'\x20'+_0x7ff696['name']+'s':''+_0x7ff696['name'];}['_addDescriptionItems'](_0x24ab38,_0x515805){const _0x2e2040=_0x515805['getFirstRange']()['getWalker'](),_0x366045='insertion'==_0x515805['type']?'add':'remove';for(const _0x362e28 of _0x2e2040){const _0x3283ce=_0x362e28['item'],_0x541178=_0x24ab38[_0x24ab38['length']-0x1];if(_0x3283ce['is']('$textProxy'))_0x541178&&_0x541178['type']['indexOf']('Container')>-0x1&&_0x24ab38['pop'](),_0x541178&&'text'==_0x541178['type']?_0x541178[_0x366045]+=_0x3283ce['data']:_0x24ab38['push']({'type':'text','add':'add'==_0x366045?_0x3283ce['data']:'','remove':'remove'==_0x366045?_0x3283ce['data']:''});else{if(this['_schema']['isObject'](_0x3283ce)){const _0x549767=_0x3283ce;if(_0x541178&&_0x541178['type']['indexOf']('Container')>-0x1&&_0x24ab38['pop'](),'elementEnd'==_0x362e28['type'])continue;_0x541178&&_0x541178['type']==_0x366045+'Object'&&_0x541178['element']['name']==_0x549767['name']?_0x541178['quantity']++:_0x24ab38['push']({'type':_0x366045+'Object','element':_0x549767,'quantity':0x1}),_0x2e2040['skip'](_0x2d295d=>!('elementEnd'==_0x2d295d['type']&&_0x2d295d['item']==_0x3283ce));}else{if(this['_schema']['checkChild'](_0x3283ce,'$text')||_0x3283ce['is']('element','softBreak')){const _0x57ad2a=_0x3283ce;if('add'==_0x366045&&'elementStart'==_0x362e28['type']||'remove'==_0x366045&&'elementEnd'==_0x362e28['type'])continue;if(_0x541178&&-0x1==_0x541178['type']['indexOf']('Container')){'text'==_0x541178['type']&&(_0x541178[_0x366045]+='\x0a');continue;}let _0x48e89d;if(_0x48e89d='add'==_0x366045?_0x57ad2a['nextSibling']&&!this['_schema']['isObject'](_0x57ad2a['nextSibling'])?_0x57ad2a['nextSibling']:null:_0x57ad2a['previousSibling']&&!this['_schema']['isObject'](_0x57ad2a['previousSibling'])?_0x57ad2a['previousSibling']:null,_0x57ad2a['isEmpty']||_0x48e89d&&_0x48e89d['isEmpty']){const _0xd742c7=_0x48e89d&&_0x48e89d['isEmpty']?_0x48e89d:_0x57ad2a;_0x541178&&_0x541178['type']==_0x366045+'EmptyContainer'&&_0x541178['element']['name']==_0xd742c7['name']?_0x541178['quantity']++:_0x24ab38['push']({'type':_0x366045+'EmptyContainer','element':_0xd742c7,'quantity':0x1});}else _0x24ab38['push']({'type':_0x366045+'Container','element':_0x57ad2a});}}}}}['_resolveDescriptionItems'](_0x14bf54){const _0xfd92c9=this['_locale'],_0x194c6d=[],_0xc3b35=[],_0x28b436=[];for(const _0x530175 of _0x14bf54)switch(_0x530175['type']){case'text':if(_0x530175['add']=_0x530175['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x530175['remove']=_0x530175['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x530175['add']&&''!=_0x530175['remove']){_0x194c6d['push']({'type':'replace','content':o(_0xfd92c9,'REPLACE_TEXT',['\x22'+_0x530175['remove']+'\x22','\x22'+_0x530175['add']+'\x22'])});continue;}if(null!=_0x530175['add']['match'](/^ +$/)){_0x194c6d['push']({'type':'insertion','content':o(_0xfd92c9,'*Insert:*\x20%0',o(_0xfd92c9,'ELEMENT_SPACE',_0x530175['add']['length']))});continue;}if(null!=_0x530175['remove']['match'](/^ +$/)){_0x194c6d['push']({'type':'deletion','content':o(_0xfd92c9,'*Remove:*\x20%0',o(_0xfd92c9,'ELEMENT_SPACE',_0x530175['remove']['length']))});continue;}if(''!=_0x530175['add']){_0x194c6d['push']({'type':'insertion','content':o(_0xfd92c9,'*Insert:*\x20%0','\x22'+_0x530175['add']+'\x22')});continue;}_0x194c6d['push']({'type':'deletion','content':o(_0xfd92c9,'*Remove:*\x20%0','\x22'+_0x530175['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x194c6d['push']({'type':'insertion','content':o(_0xfd92c9,'*Insert:*\x20%0',this['getItemLabel'](_0x530175['element'],_0x530175['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x194c6d['push']({'type':'deletion','content':o(_0xfd92c9,'*Remove:*\x20%0',this['getItemLabel'](_0x530175['element'],_0x530175['quantity']))});continue;case'addContainer':_0x194c6d['push']({'type':'insertion','content':o(_0xfd92c9,'*Split:*\x20%0',this['getItemLabel'](_0x530175['element'],_0x530175['quantity']))});continue;case'removeContainer':_0x194c6d['push']({'type':'deletion','content':o(_0xfd92c9,'*Merge:*\x20%0',this['getItemLabel'](_0x530175['element'],_0x530175['quantity']))});continue;case'addFormat':_0xc3b35['push'](_0x530175['key']);continue;case'removeFormat':_0x28b436['push'](_0x530175['key']);continue;default:_0x194c6d['push'](_0x530175);}if(_0xc3b35['length']){const _0xcd7a3d=_0xc3b35['map'](_0x3bcceb=>this['_attributeLabels']['has'](_0x3bcceb)?this['_attributeLabels']['get'](_0x3bcceb):_0x3bcceb)['join'](',\x20');_0x194c6d['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0xcd7a3d)});}if(_0x28b436['length']){const _0x175e57=_0x28b436['map'](_0x28f0ba=>this['_attributeLabels']['has'](_0x28f0ba)?this['_attributeLabels']['get'](_0x28f0ba):_0x28f0ba)['join'](',\x20');_0x194c6d['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x175e57)});}return _0x194c6d;}['_handleCustomCallbackDescription'](_0x2a5b20){for(const _0x7171b4 of this['_customCallbacks']){const _0x3ee6b9=_0x7171b4(_0x2a5b20);if(_0x3ee6b9&&'type'in _0x3ee6b9)return _0x3ee6b9;}}['_handleAttributeSuggestionDescription'](_0x4cc275,_0x30c1d0){const _0x353fa5=_0x30c1d0['data'],_0x35fbdb=void 0x0===_0x353fa5['newValue']?'removeFormat':'addFormat';_0x4cc275['push']({'type':_0x35fbdb,'key':_0x353fa5['key']});}['_handleRenameSuggestionDescription'](_0x12aca8,_0x1a2917){_0x12aca8['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x1a2917['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x4e0cdd,_0x526757,_0x5762e8){if(this['_addDescriptionItems'](_0x4e0cdd,_0x526757),_0x5762e8&&_0x5762e8['getFirstRange']()&&!_0x526757['getFirstRange']()['end']['isEqual'](_0x5762e8['getFirstRange']()['start'])){const _0x558bb5=_0x4e0cdd[_0x4e0cdd['length']-0x1],_0x539633='insertion'==_0x526757['type']?'add':'remove';_0x558bb5&&'text'==_0x558bb5['type']&&(_0x558bb5[_0x539633]+='\x0a');}}}class O extends _0x1074b3{['afterInit'](){const _0x1a502c=this['editor'],_0x57b96a=_0x1a502c['plugins']['get']('TrackChangesEditing');_0x1a502c['commands']['get']('showAIAssistant')&&_0x57b96a['enableCommand']('showAIAssistant');}}class E extends _0x1074b3{['afterInit'](){const _0x2cd902=this['editor'],_0x58c4dc=_0x2cd902['locale'];if(!_0x2cd902['plugins']['has']('AlignmentEditing'))return;const _0x43bba3=_0x2cd902['plugins']['get']('TrackChangesEditing');_0x43bba3['enableDefaultAttributesIntegration']('alignment'),_0x43bba3['registerBlockAttribute']('alignment'),_0x43bba3['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x58c4dc,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x110498=this['editor'],_0x51a0e8=_0x110498['locale'];_0x110498['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1c77d3=>{if('formatBlock'!=_0x1c77d3['type'])return;const {data:_0x5dc841}=_0x1c77d3;if(_0x5dc841&&'alignment'==_0x5dc841['commandName']){const _0xc692c1=_0x5dc841['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x51a0e8,'*Format:*\x20%0',function(_0x1f5646){switch(_0x1f5646){case'left':return o(_0x51a0e8,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x51a0e8,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x51a0e8,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x51a0e8,'FORMAT_JUSTIFY_TEXT');}}(_0xc692c1))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0x1074b3{['afterInit'](){const _0x426a11=this['editor'],_0x455547=_0x426a11['plugins']['get']('TrackChangesEditing'),_0x22200a=_0x426a11['locale'];for(const _0x4e71df of ti){if(!_0x426a11['plugins']['has'](_0x4e71df))continue;const _0x3ea1e2=_0x4e71df['slice'](0x0,-0x7)['toLowerCase'](),_0x3bf9ac='FORMAT_'+_0x3ea1e2['toUpperCase']();_0x455547['enableDefaultAttributesIntegration'](_0x3ea1e2),_0x455547['registerInlineAttribute'](_0x3ea1e2),_0x455547['descriptionFactory']['registerAttributeLabel'](_0x3ea1e2,o(_0x22200a,_0x3bf9ac));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e69d7=this['editor'],_0x2b730a=_0x5e69d7['locale'],_0x4b0205=_0x5e69d7['plugins']['get']('TrackChangesEditing');function _0x2389fc(_0x282f8e,_0x50b333){_0x4b0205['descriptionFactory']['registerDescriptionCallback'](_0x9fdbc3=>{if('formatInline'!=_0x9fdbc3['type'])return;const {data:_0x3bf9ed}=_0x9fdbc3;return _0x3bf9ed&&_0x3bf9ed['commandName']===_0x282f8e?_0x3bf9ed['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2b730a,'*Format:*\x20%0',_0x50b333)}:{'type':'format','content':o(_0x2b730a,'*Remove\x20format:*\x20%0',_0x50b333)}:void 0x0;});}_0x2389fc('bold',o(_0x2b730a,'FORMAT_BOLD')),_0x2389fc('italic',o(_0x2b730a,'FORMAT_ITALIC')),_0x2389fc('underline',o(_0x2b730a,'FORMAT_UNDERLINE')),_0x2389fc('code',o(_0x2b730a,'FORMAT_CODE')),_0x2389fc('strikethrough',o(_0x2b730a,'FORMAT_STRIKETHROUGH')),_0x2389fc('subscript',o(_0x2b730a,'FORMAT_SUBSCRIPT')),_0x2389fc('superscript',o(_0x2b730a,'FORMAT_SUPERSCRIPT'));}}class U extends _0x1074b3{['afterInit'](){const _0x5cc471=this['editor'],_0x21b711=_0x5cc471['locale'];if(!_0x5cc471['plugins']['has']('BlockQuoteEditing'))return;const _0x3f41e2=_0x5cc471['plugins']['get']('TrackChangesEditing'),_0x395dfe=this['editor']['commands']['get']('blockQuote');_0x3f41e2['enableCommand']('blockQuote',(_0xc34364,_0x261ae6={})=>{const _0x44751c=this['editor']['model']['document']['selection'],_0x37ed94=_0x261ae6&&void 0x0!==_0x261ae6['forceValue']?_0x261ae6['forceValue']:!_0x395dfe['value'];let _0x1e37ed=[];if(_0x37ed94){const _0x528a52=Array['from'](_0x44751c['getSelectedBlocks']())['filter'](_0x1786ee=>oo(_0x1786ee)||function(_0x5352e6,_0x48b8cf){const _0x4d79f8=_0x48b8cf['checkChild'](_0x5352e6['parent'],'blockQuote'),_0x4980a8=_0x48b8cf['checkChild'](['$root','blockQuote'],_0x5352e6);return _0x4d79f8&&_0x4980a8;}(_0x1786ee,this['editor']['model']['schema']));_0x1e37ed=to(_0x528a52,_0x5cc471['model']);}else{const _0x16dd34=Array['from'](_0x44751c['getSelectedBlocks']())['filter'](_0x5c432b=>oo(_0x5c432b));_0x1e37ed=to(_0x16dd34,_0x5cc471['model']);}_0x5cc471['model']['change'](()=>{for(const _0x499e81 of _0x1e37ed)_0x3f41e2['markBlockFormat'](_0x499e81,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x37ed94}]});});}),_0x3f41e2['descriptionFactory']['registerDescriptionCallback'](_0x2cb88a=>{const {data:_0x30d9c6}=_0x2cb88a;if(_0x30d9c6&&'blockQuote'==_0x30d9c6['commandName']){const _0x353a8e=o(_0x21b711,'ELEMENT_BLOCK_QUOTE');return _0x30d9c6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x21b711,'*Set\x20format:*\x20%0',_0x353a8e)}:{'type':'format','content':o(_0x21b711,'*Remove\x20format:*\x20%0',_0x353a8e)};}});}}function oo(_0x3c8591){return'blockQuote'==_0x3c8591['parent']['name'];}class V extends _0x1074b3{['afterInit'](){const _0x1ca108=this['editor'],_0x558857=_0x1ca108['locale'],_0x334bd6=_0x1ca108['plugins']['get']('TrackChangesEditing');_0x1ca108['plugins']['has']('BookmarkEditing')&&(_0x334bd6['enableCommand']('insertBookmark'),_0x334bd6['enableDefaultAttributesIntegration']('updateBookmark'),_0x334bd6['registerBlockAttribute']('bookmarkId'),_0x334bd6['descriptionFactory']['registerDescriptionCallback'](_0x544ef9=>{if('insertion'!=_0x544ef9['type']&&'deletion'!=_0x544ef9['type']&&'attribute'!=_0x544ef9['type'])return;const _0x49fd28=_0x544ef9['getContainedElement']();if(null==_0x49fd28)return;if(!_0x49fd28['is']('element','bookmark'))return;const _0x1022f9=_0x49fd28['getAttribute']('bookmarkId');if('insertion'==_0x544ef9['type'])return{'type':'insertion','content':o(_0x558857,'*Insert:*\x20%0','\x22'+_0x1022f9+'\x22\x20'+o(_0x558857,'ELEMENT_BOOKMARK'))};if('deletion'==_0x544ef9['type'])return{'type':'deletion','content':o(_0x558857,'*Remove:*\x20%0','\x22'+_0x1022f9+'\x22\x20'+o(_0x558857,'ELEMENT_BOOKMARK'))};const {data:_0x4d1b46}=_0x544ef9;if(!_0x4d1b46||'bookmarkId'!=_0x4d1b46['key'])return;return{'type':'format','content':o(_0x558857,'*Set\x20bookmark:*\x20%0','\x22'+_0x4d1b46['newValue']+'\x22')};}));}}class F extends _0x1074b3{['afterInit'](){const _0x57b076=this['editor'];_0x57b076['plugins']['has']('CaseChange')&&(_0x57b076['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x57b076['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x57b076['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x1074b3{['afterInit'](){const _0x42a900=this['editor'];_0x42a900['commands']['get']('ckbox')&&_0x42a900['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x1074b3{['afterInit'](){const _0x3838cb=this['editor'];if(!_0x3838cb['plugins']['has']('CodeBlock'))return;const _0x4108b9=_0x3838cb['plugins']['get']('TrackChangesEditing'),_0x14f8fc=_0x3838cb['locale'],_0x3d759f=_0x3838cb['config']['get']('codeBlock')['languages'],_0x4c7c75=_0x3838cb['commands']['get']('codeBlock');_0x4108b9['enableCommand']('indentCodeBlock'),_0x4108b9['enableCommand']('outdentCodeBlock'),_0x4108b9['enableCommand']('codeBlock',(_0x5d6ed4,_0xedd504={})=>{const _0x303bac=_0x3838cb['model'],_0x5e317e=_0x3838cb['model']['document']['selection'],_0x31d7e0=_0xedd504&&void 0x0!==_0xedd504['forceValue']?_0xedd504['forceValue']:!_0x4c7c75['value'];let _0x18ff80;_0xedd504['language']||(_0xedd504['language']=_0x3d759f[0x0]['language']),_0x18ff80=_0x31d7e0?Array['from'](_0x5e317e['getSelectedBlocks']())['filter'](_0x195c93=>co(_0x195c93)||function(_0x5c8d35,_0x733dcc){if(_0x5c8d35['is']('rootElement')||_0x733dcc['isLimit'](_0x5c8d35))return!0x1;return _0x733dcc['checkChild'](_0x5c8d35['parent'],'codeBlock');}(_0x195c93,_0x303bac['schema'])):Array['from'](_0x5e317e['getSelectedBlocks']())['filter'](_0x47e38f=>co(_0x47e38f));const _0x3631e3=to(_0x18ff80,_0x303bac);_0x303bac['change'](()=>{for(const _0x3b00db of _0x3631e3)_0x4108b9['markBlockFormat'](_0x3b00db,{'commandName':'codeBlock','commandParams':[{..._0xedd504,'forceValue':_0x31d7e0}],'formatGroupId':'blockName'});});}),(_0x4108b9['descriptionFactory']['registerElementLabel']('codeBlock',_0x19bec1=>o(_0x14f8fc,'ELEMENT_CODE_BLOCK',_0x19bec1)),_0x4108b9['descriptionFactory']['registerDescriptionCallback'](_0x2ea5ef=>{if('formatBlock'!=_0x2ea5ef['type'])return;const _0x16d197=_0x14f8fc['t'],{data:_0x324f55}=_0x2ea5ef;if(!_0x324f55||'codeBlock'!=_0x324f55['commandName'])return;const _0x4c2511=_0x324f55['commandParams'][0x0]['language'],_0x2d7942=_0x16d197(_0x3d759f['find'](_0x2b41b8=>_0x2b41b8['language']===_0x4c2511)['label'])['toLowerCase']();return _0x324f55['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x14f8fc,'*Set\x20format:*\x20%0',o(_0x14f8fc,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2d7942+')')}:{'type':'format','content':o(_0x14f8fc,'*Remove\x20format:*\x20%0',o(_0x14f8fc,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x1d2ae7){return'codeBlock'==_0x1d2ae7['name'];}class J extends _0x1074b3{['afterInit'](){const _0x9fc03b=this['editor'];if(!_0x9fc03b['plugins']['has']('CommentsEditing'))return;_0x9fc03b['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x40defa,_0x460036,_0x5431a6){const _0xf2fd71=[];for(const _0x5641ea of _0x460036['getItems']())_0x5641ea['hasAttribute'](_0x40defa)&&_0xf2fd71['push'](_0x5431a6['createRangeOn'](_0x5641ea));return _0xf2fd71;}function De(_0x81539e,_0x4f8cff,{showActiveMarker:_0x1efe94=!0x0}={}){const _0x30a85b=_0x81539e['plugins']['get']('TrackChangesEditing');return(_0x316007,_0x560857,_0x178e7e)=>{if(!_0x178e7e['consumable']['test'](_0x560857['markerRange'],_0x316007['name']))return;const _0x5373d1=_0x560857['markerRange']['getWalker'](),_0x290b26=_0x560857['markerRange']['start'],_0xedecde=_0x81539e['model']['schema'];let _0x310628=null,_0x740f13=null,_0xc97c91=!0x1,_0x1050be=!0x1;for(const _0x2db5c6 of _0x5373d1){const _0x377555=_0x2db5c6['item'];_0xc97c91=_0xc97c91||_0xedecde['isContent'](_0x377555);const _0x568106=_0x178e7e['mapper']['toViewElement'](_0x377555);if(_0x568106&&_0x568106['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2db5c6['type']&&(_0xedecde['isBlock'](_0x377555)&&!_0xedecde['isLimit'](_0x377555)&&(_0x377555['nextSibling']||_0x290b26['isAtEnd']?_0x310628&&_0x310628['parent']==_0x377555||(_0x310628=_0x377555,_0x3340f7(_0x2db5c6['previousPosition']),_0x1050be=!0x0):_0x740f13=_0x740f13||_0x2db5c6['previousPosition']));}function _0x3340f7(_0x585d76){const {id:_0x2073bf,authorId:_0x3b1d46}=_0x30a85b['_splitMarkerName'](_0x560857['markerName']),_0x407d2d=_0x178e7e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4f8cff,'data-suggestion':_0x2073bf,'data-author-id':_0x3b1d46}),_0x41bc6e=_0x178e7e['mapper']['toViewPosition'](_0x585d76);_0x1efe94&&_0x30a85b['activeMarkers']['includes'](_0x560857['markerName'])&&_0x178e7e['writer']['addClass']('ck-suggestion-marker--active',_0x407d2d),_0x178e7e['writer']['insert'](_0x41bc6e,_0x407d2d),_0x178e7e['mapper']['bindElementToMarker'](_0x407d2d,_0x560857['markerName']);}_0xc97c91||_0x1050be||!_0x740f13||_0x3340f7(_0x740f13);};}class K extends _0x1074b3{static get['requires'](){return[_0x40e408];}['init'](){const _0x4babe2=this['editor'],_0x28ae3f=_0x4babe2['plugins']['get']('TrackChangesEditing');_0x28ae3f['enableCommand']('delete');const _0x9f6939=_0x4babe2['commands']['get']('deleteForward');_0x28ae3f['enableCommand']('deleteForward',(_0x4c7577,_0x343a1f={})=>{const _0x10b356=_0x4babe2['model']['createSelection'](_0x4babe2['model']['document']['selection']);_0x10b356['isCollapsed']&&_0x4babe2['model']['modifySelection'](_0x10b356,{'direction':'forward','unit':_0x343a1f['unit']});const _0x4359e7=_0x10b356['getFirstRange'](),_0x300f91=_0x28f293['fromRange'](_0x4359e7);let _0x5b9aa0;_0x4c7577(_0x343a1f),_0x5b9aa0='$graveyard'==_0x300f91['root']['rootName']?_0x4babe2['model']['createRange'](_0x4359e7['start']):_0x4babe2['model']['createRange'](_0x300f91['start'],_0x300f91['end']),_0x300f91['detach'](),_0x4babe2['model']['enqueueChange'](_0x9f6939['buffer']['batch'],_0x2face3=>{_0x9f6939['buffer']['lock'](),_0x2face3['setSelection'](_0x2face3['createRange'](_0x5b9aa0['end'])),_0x9f6939['buffer']['unlock']();});}),_0x4babe2['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x4babe2,'merge'),{'priority':'high'}),_0x4babe2['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x2d568a,_0x4923fc,_0x7953e3)=>{_0x7953e3['options']['showSuggestionHighlights']&&De(_0x4babe2,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x2d568a,_0x4923fc,_0x7953e3);},{'priority':'high'}),_0x4babe2['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x9d439b,_0x19ed5b,_0x27dbd1)=>{const _0x2cf907=_0x27dbd1['mapper']['markerNameToElements'](_0x19ed5b['markerName']);if(_0x2cf907){for(const _0x2c19d1 of _0x2cf907)_0x2c19d1['is']('uiElement')&&(_0x27dbd1['mapper']['unbindElementFromMarkerName'](_0x2c19d1,_0x19ed5b['markerName']),_0x27dbd1['writer']['remove'](_0x2c19d1));}},{'priority':'high'});}}class H extends _0x1074b3{['afterInit'](){const _0x13456f=this['editor'];if(!_0x13456f['plugins']['has']('ListEditing'))return;const _0x277600=_0x13456f['locale'],_0x4295cd=_0x13456f['plugins']['get']('TrackChangesEditing'),_0x24727a=_0x13456f['plugins']['has']('TodoListEditing'),_0x7edc27=!!_0x13456f['config']['get']('list.multiBlock');function _0x2f8b96(_0x18bdbd){return{'type':'format','content':''+o(_0x277600,'*Set\x20format:*\x20%0',_0x18bdbd)};}function _0x34bf71(_0x304169){return{'type':'format','content':''+o(_0x277600,'*Remove\x20format:*\x20%0',_0x304169)};}_0x4295cd['enableDefaultAttributesIntegration']('numberedList'),_0x4295cd['enableDefaultAttributesIntegration']('bulletedList'),_0x4295cd['enableDefaultAttributesIntegration']('customNumberedList'),_0x4295cd['enableDefaultAttributesIntegration']('customBulletedList'),_0x4295cd['enableDefaultAttributesIntegration']('indentList'),_0x4295cd['enableDefaultAttributesIntegration']('outdentList'),_0x4295cd['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4295cd['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4295cd['registerBlockAttribute']('listItemId'),_0x4295cd['registerBlockAttribute']('listType'),_0x4295cd['registerBlockAttribute']('listIndent'),_0x7edc27&&(_0x4295cd['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4295cd['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x24727a&&(_0x4295cd['enableDefaultAttributesIntegration']('todoList'),_0x4295cd['enableDefaultAttributesIntegration']('checkTodoList'),_0x4295cd['registerBlockAttribute']('todoListChecked'),_0x4295cd['descriptionFactory']['registerDescriptionCallback'](_0x3644e0=>{const {data:_0x51fb5c}=_0x3644e0;if(_0x51fb5c&&'todoListChecked'==_0x51fb5c['key'])return{'type':'format','content':_0x51fb5c['newValue']?o(_0x277600,'*Check\x20item*'):o(_0x277600,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x418fea=>{if(_0x418fea['batch']['isUndo'])return!0x1;let _0x3e6a91=!0x1;const _0x973fd=_0x4295cd['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x932d49=>'todoListChecked'===_0x4295cd['_getAttributeKey'](_0x932d49));for(const _0x432ce1 of _0x973fd){'todo'!=_0x432ce1['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4295cd['_findSuggestions'](_0x432ce1['getFirstRange'](),'attribute')['find'](_0x57fdf9=>'listType'===_0x4295cd['_getAttributeKey'](_0x57fdf9['suggestion']))||(_0x418fea['removeMarker'](_0x432ce1['getFirstMarker']()),_0x3e6a91=!0x0));}return _0x3e6a91;})),_0x4295cd['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x277600,'FORMAT_INDENT'));const _0x2ca002={'type':'format','content':''};_0x4295cd['descriptionFactory']['registerDescriptionCallback'](_0x191193=>{const {data:_0x2cd695}=_0x191193;if(!_0x2cd695||'listType'!=_0x2cd695['key'])return;let _0x512af9=_0x191193['head'];for(;_0x512af9;){if(_0x512af9['data']&&(('listStyle'==_0x512af9['data']['key']||'listMarkerStyle'==_0x512af9['data']['key'])&&(_0x512af9['data']['newValue']&&'default'!=_0x512af9['data']['newValue']||'default'!=_0x512af9['data']['oldValue']&&!_0x2cd695['newValue'])||!_0x7edc27&&_0x512af9['data']['key']==m))return _0x2ca002;_0x512af9=_0x512af9['next'];}if(null==_0x2cd695['newValue'])switch(_0x2cd695['oldValue']){case'bulleted':return _0x34bf71(o(_0x277600,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x34bf71(o(_0x277600,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x34bf71(o(_0x277600,'ELEMENT_TODO_LIST'));}switch(_0x2cd695['newValue']){case'bulleted':return _0x2f8b96(o(_0x277600,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2f8b96(o(_0x277600,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2f8b96(o(_0x277600,'ELEMENT_TODO_LIST'));}}),_0x4295cd['descriptionFactory']['registerDescriptionCallback'](_0xd9454e=>{const {data:_0x497e11}=_0xd9454e;if(_0x497e11&&'listIndent'==_0x497e11['key'])return null==_0x497e11['newValue']||null==_0x497e11['oldValue']&&0x0==_0x497e11['newValue']?_0x2ca002:void 0x0;}),_0x4295cd['descriptionFactory']['registerDescriptionCallback'](_0x2aafba=>{if('attribute'!=_0x2aafba['type'])return;const {data:_0x414409}=_0x2aafba;if(!_0x414409||'listItemId'!=_0x414409['key'])return;const _0x356e34=Te(_0x2aafba);return'newValue'==_0x356e34?{'type':'format','content':o(_0x277600,'*Merge:*\x20list\x20item')}:'oldValue'==_0x356e34?{'type':'format','content':o(_0x277600,'*Split:*\x20list\x20item')}:_0x2ca002;}),_0x13456f['model']['document']['registerPostFixer'](_0x59685d=>this['listItemIdFixer'](_0x59685d)),_0x13456f['model']['document']['registerPostFixer'](_0x505e11=>this['noTrackChangesFixer'](_0x505e11)),_0x13456f['model']['document']['on']('change:data',(_0x3c15cd,_0x2ab43e)=>{if(_0x2ab43e['isUndo']||!_0x2ab43e['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x246002){if(_0x246002['batch']['isUndo']||!_0x246002['batch']['isLocal'])return!0x1;let _0x56b199=!0x1;const _0xe99abc=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x17efef=>_0x17efef['data']&&'listItemId'==_0x17efef['data']['key'])['filter'](_0x286f1f=>_0x286f1f['data']['newValue']&&_0x286f1f['data']['oldValue']);for(const _0x4ef343 of _0xe99abc)Te(_0x4ef343)||(_0x246002['removeMarker'](_0x4ef343['getFirstMarker']()),_0x56b199=!0x0);return _0x56b199;}['noTrackChangesFixer'](_0x53c318){if(_0x53c318['batch']['isUndo']||!_0x53c318['batch']['isLocal'])return!0x1;const _0x362798=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x362798['trackChangesCommand']['value'])return!0x1;let _0x3d9344=!0x1;const _0x54626e=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x45c7f7=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x4bfb2a=>'attribute'==_0x4bfb2a['type'])['filter'](_0x5d38aa=>_0x54626e['includes'](_0x5d38aa['attributeKey']));if(0x0==_0x45c7f7['length'])return _0x3d9344;for(const _0x27e099 of _0x45c7f7){const _0x205e3d=_0x362798['_findSuggestions'](_0x27e099['range'],'attribute')['filter'](_0x4c680e=>!_0x4c680e['meta']['isNextTo'])['map'](_0x207c83=>_0x207c83['suggestion'])['filter'](_0x4d572d=>{const _0x22124d=_0x362798['_getAttributeKey'](_0x4d572d);return _0x54626e['includes'](_0x22124d);});if(_0x205e3d['length']){for(const _0x2b5186 of _0x205e3d)_0x53c318['removeMarker'](_0x2b5186['getFirstMarker']());_0x3d9344=!0x0;}}return _0x3d9344;}['assureChains'](){const _0x34c48a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2747dc=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x248c86;const _0x9ce8dd=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x52ee9b=>{if(_0x52ee9b['data']['oldRange']||!_0x52ee9b['data']['newRange'])return null;if(!_0x52ee9b['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0xcd7f75}=_0x34c48a['_splitMarkerName'](_0x52ee9b['name']);if(!_0x34c48a['hasSuggestion'](_0xcd7f75))return null;const _0x36c254=_0x34c48a['getSuggestion'](_0xcd7f75);return _0x2747dc['includes'](_0x36c254['data']['key']);})['map'](_0x286562=>{const {id:_0x1e4788}=_0x34c48a['_splitMarkerName'](_0x286562['name']),_0x454b1a=_0x34c48a['getSuggestion'](_0x1e4788);return _0x248c86=_0x454b1a['attributes']['groupId'],_0x454b1a['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x9ce8dd['size'])return;const _0x3f5cf5=_0x34c48a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4cb3a=>'attribute'==_0x4cb3a['type']&&_0x4cb3a['data']&&_0x2747dc['includes'](_0x4cb3a['data']['key'])&&_0x4cb3a['attributes']['groupId']!=_0x248c86)['map'](_0x4c516a=>({'listItem':_0x4c516a['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4c516a['attributes']['groupId']})),_0x26d0cd=new Set();for(const {groupId:_0x537785,listItem:_0x59812e}of _0x3f5cf5)_0x9ce8dd['has'](_0x59812e)&&_0x26d0cd['add'](_0x537785);for(const _0x52f508 of _0x34c48a['getSuggestions']())_0x26d0cd['has'](_0x52f508['attributes']['groupId'])&&_0x52f508['setAttribute']('groupId',_0x248c86);}['_supportLegacySuggestions'](){const _0x321f48=this['editor'],_0x439ae0=_0x321f48['locale'],_0x4d6221=_0x321f48['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4d6221['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x2dd35c,_0x4a50bb){const _0x4de363=[];for(let _0x2baa58 of _0x2dd35c)_0x2baa58['start']['nodeAfter']===_0x2baa58['end']['parent']&&(_0x2baa58=_0x321f48['model']['createRange'](_0x321f48['model']['createPositionAt'](_0x2baa58['start']['nodeAfter'],0x0))),_0x4de363['push'](_0x2baa58);_0x321f48['model']['change'](_0x4e0aa6=>{const _0x515b6c=_0x321f48['model']['document']['selection'],_0x593b8e=Array['from'](_0x515b6c['getRanges']())['map'](_0x3cf00d=>_0x28f293['fromRange'](_0x3cf00d));_0x4e0aa6['setSelection'](_0x4de363),_0x321f48['commands']['get'](_0x4a50bb['commandName'])['refresh'](),_0x4a50bb['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x321f48['execute'](_0x4a50bb['commandName'],..._0x4a50bb['commandParams']),_0x4e0aa6['setSelection'](_0x593b8e);for(const _0x3d3a52 of _0x593b8e)_0x3d3a52['detach']();});}),_0x4d6221['descriptionFactory']['registerElementLabel'](function(_0x4989ff){const _0x239e2d=!_0x321f48['model']['schema']['isObject'](_0x4989ff),_0x4a56ef=_0x4989ff['previousSibling'],_0x1f1586=_0x4989ff['nextSibling'],_0x44350f=_0x4989ff['getAttribute']('listItemId'),_0x5ea95c=!_0x4a56ef||_0x4a56ef['getAttribute']('listItemId')!==_0x44350f,_0x153cac=!_0x1f1586||_0x1f1586['getAttribute']('listItemId')!==_0x44350f;return _0x239e2d&&Boolean(_0x44350f)&&_0x5ea95c&&_0x153cac;},_0x362170=>o(_0x439ae0,'ELEMENT_LIST_ITEM',_0x362170));}['_registerLegacyDescription'](){const _0x5af9bd=this['editor'],_0x2e270c=_0x5af9bd['locale'];function _0x4c3074(_0x2ee14b){const _0x2bb5f7=_0x5af9bd['commands']['get']('bulletedList')['value'],_0x32a0f0=_0x5af9bd['commands']['get']('numberedList')['value'];return'numberedList'===_0x2ee14b?_0x2bb5f7:_0x32a0f0;}_0x5af9bd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x1b648a){if('formatBlock'!=_0x1b648a['type'])return;const {data:_0x50dc18}=_0x1b648a;if(!_0x50dc18)return;let _0x587eeb,_0x33cf69,_0x44dd18,_0x571ac5;switch(_0x50dc18['commandName']){case'bulletedList':_0x44dd18=_0x50dc18['commandParams'][0x0]['forceValue'],_0x571ac5=_0x4c3074(_0x50dc18['commandName']),_0x587eeb=_0x44dd18?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x571ac5&&_0x5af9bd['config']['get']('list.multiBlock')||(_0x587eeb='*Change\x20to:*\x20%0'),_0x33cf69={'type':'format','content':o(_0x2e270c,_0x587eeb,o(_0x2e270c,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x44dd18=_0x50dc18['commandParams'][0x0]['forceValue'],_0x571ac5=_0x4c3074(_0x50dc18['commandName']),_0x587eeb=_0x44dd18?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x571ac5&&_0x5af9bd['config']['get']('list.multiBlock')||(_0x587eeb='*Change\x20to:*\x20%0'),_0x33cf69={'type':'format','content':o(_0x2e270c,_0x587eeb,o(_0x2e270c,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x587eeb='*Indent:*\x20%0',_0x33cf69={'type':'format','content':o(_0x2e270c,_0x587eeb,o(_0x2e270c,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x587eeb=function(_0x480220){const _0xdb8d38=_0x480220['getFirstRange']();let _0x216080=_0xdb8d38['start']['nodeAfter'];for(;_0x216080&&_0xdb8d38['containsItem'](_0x216080);){if(_0x216080['getAttribute']('listIndent')>0x0)return!0x1;_0x216080=_0x216080['nextSibling'];}return!0x0;}(_0x1b648a)?o(_0x2e270c,'*Format:*\x20remove\x20from\x20%0',o(_0x2e270c,function(_0x442fdc){return'ELEMENT_'+_0x442fdc['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x1b648a))):o(_0x2e270c,'*Outdent:*\x20%0',o(_0x2e270c,'ELEMENT_LIST_ITEM')),_0x33cf69={'type':'format','content':_0x587eeb};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x50dc18['multipleBlocks']&&(_0x587eeb='*Merge:*\x20%0',_0x33cf69={'type':'deletion','content':o(_0x2e270c,_0x587eeb,o(_0x2e270c,'ELEMENT_LIST_ITEM'))});}return _0x33cf69;});}}function Te(_0x1ddaa1){let _0x5149d0=_0x1ddaa1['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x5149d0;){const _0x3a3277=_0x5149d0['getAttribute']('listItemId');if(!_0x3a3277)return!0x1;if(_0x3a3277==_0x1ddaa1['data']['newValue'])return'newValue';if(_0x3a3277==_0x1ddaa1['data']['oldValue'])return'oldValue';_0x5149d0=_0x5149d0['previousSibling'];}return!0x1;}class q extends _0x1074b3{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0xea9077=this['editor']['config']['get']('list.properties'),_0x11a6ac=this['editor']['plugins']['get']('TrackChangesEditing');_0xea9077['styles']&&(_0x11a6ac['enableDefaultAttributesIntegration']('listStyle'),_0x11a6ac['registerBlockAttribute']('listStyle')),_0xea9077['reversed']&&(_0x11a6ac['enableDefaultAttributesIntegration']('listReversed'),_0x11a6ac['registerBlockAttribute']('listReversed')),_0xea9077['startIndex']&&(_0x11a6ac['enableDefaultAttributesIntegration']('listStart'),_0x11a6ac['registerBlockAttribute']('listStart'));const _0x2690f8={'type':'format','content':''};_0x11a6ac['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x15dac7=this['editor']['locale'];_0x11a6ac['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x15dac7,'FORMAT_LIST_REVERSED')),_0x11a6ac['descriptionFactory']['registerDescriptionCallback'](_0x164d32=>{const {data:_0x1eeec0}=_0x164d32;if(_0x1eeec0&&'listReversed'==_0x1eeec0['key'])return null==_0x1eeec0['newValue']||0x0==_0x1eeec0['newValue']&&null==_0x1eeec0['oldValue']?_0x2690f8:void 0x0;}),_0x11a6ac['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x15dac7,'FORMAT_LIST_START')),_0x11a6ac['descriptionFactory']['registerDescriptionCallback'](_0xb7e4d2=>{const {data:_0x5af81a}=_0xb7e4d2;if(_0x5af81a&&'listStart'==_0x5af81a['key'])return null==_0x5af81a['newValue']||0x1==_0x5af81a['newValue']&&null==_0x5af81a['oldValue']?_0x2690f8:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x5038db=>{if(_0x5038db['batch']['isUndo'])return!0x1;let _0x3a993a=!0x1;const _0x25f057=_0x11a6ac['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x29cd4c=>{const _0xd12de4=_0x11a6ac['_getAttributeKey'](_0x29cd4c);return'listStart'==_0xd12de4||'listReversed'==_0xd12de4;});for(const _0x14a0a6 of _0x25f057){const _0x240cd3=_0x14a0a6['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x240cd3||'customNumbered'==_0x240cd3)continue;_0x11a6ac['_findSuggestions'](_0x14a0a6['getFirstRange'](),'attribute')['find'](_0x3e07c8=>'listType'==_0x11a6ac['_getAttributeKey'](_0x3e07c8['suggestion']))||(_0x5038db['removeMarker'](_0x14a0a6['getFirstMarker']()),_0x3a993a=!0x0);}return _0x3a993a;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x4d17c1){const _0x4b4547=this['editor']['locale'],{data:_0x281e2a}=_0x4d17c1,_0x404fa2={'type':'format','content':''};if(!_0x281e2a||'listStyle'!=_0x281e2a['key'])return;if(!_0x281e2a['oldValue'])return'default'==_0x281e2a['newValue']?_0x404fa2:{'type':'format','content':''+o(_0x4b4547,'*Set\x20format:*\x20%0',o(_0x4b4547,this['_getTranslationKeyForListStyle'](_0x281e2a['newValue'])))};if(!_0x281e2a['newValue']){if('default'==_0x281e2a['oldValue'])return _0x404fa2;let _0x10df8e=_0x4d17c1['head'];for(;_0x10df8e;){if(_0x10df8e['data']&&'listType'==_0x10df8e['data']['key']&&_0x10df8e['data']['newValue'])return _0x404fa2;_0x10df8e=_0x10df8e['next'];}return{'type':'format','content':''+o(_0x4b4547,'*Remove\x20format:*\x20%0',o(_0x4b4547,this['_getTranslationKeyForListStyle'](_0x281e2a['oldValue'])))};}if('default'!=_0x281e2a['newValue'])return{'type':'format','content':''+o(_0x4b4547,'*Set\x20format:*\x20%0',o(_0x4b4547,this['_getTranslationKeyForListStyle'](_0x281e2a['newValue'])))};let _0x52862e=_0x4d17c1['head'];for(;_0x52862e;){if(_0x52862e['data']&&'listType'==_0x52862e['data']['key']&&_0x52862e['data']['newValue']&&_0x52862e['data']['oldValue'])return _0x404fa2;_0x52862e=_0x52862e['next'];}return{'type':'format','content':o(_0x4b4547,'*Set\x20format:*\x20%0',o(_0x4b4547,'ELEMENT_'+_0x4d17c1['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x5bd9ad=this['editor'],_0x19b39a=_0x5bd9ad['locale'];_0x5bd9ad['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40c605=>{if('formatBlock'!=_0x40c605['type'])return;const {data:_0x2a6251}=_0x40c605;if(!_0x2a6251)return;let _0x4b1a71,_0x4a1f06;switch(_0x2a6251['commandName']){case'listStyle':_0x4b1a71='*Change\x20to:*\x20%0',_0x4a1f06={'type':'format','content':o(_0x19b39a,_0x4b1a71,o(_0x19b39a,this['_getTranslationKeyForListStyle'](_0x2a6251['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4b1a71=_0x2a6251['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4a1f06={'type':'format','content':o(_0x19b39a,_0x4b1a71)};break;case'listStart':_0x4b1a71='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4a1f06={'type':'format','content':o(_0x19b39a,_0x4b1a71,_0x2a6251['commandParams'][0x0]['startIndex'])};}return _0x4a1f06;});}['_getTranslationKeyForListStyle'](_0x4d1d14){return'ELEMENT_'+function(_0x18b29d){if(Se['includes'](_0x18b29d))return'bulleted';if(_e['includes'](_0x18b29d))return'numbered';return null;}(_0x4d1d14)['toUpperCase']()+'_LIST_'+_0x4d1d14['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0x1074b3{['afterInit'](){const _0x58fa60=this['editor'];_0x58fa60['commands']['get']('emoji')&&_0x58fa60['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0x1074b3{static get['requires'](){return[_0x150a5a];}['init'](){const _0x1104d3=this['editor'],_0x31a0c8=_0x1104d3['plugins']['get']('TrackChangesEditing'),_0x3fd8f4=_0x1104d3['commands']['get']('enter');_0x31a0c8['enableCommand']('enter',()=>{_0x1104d3['model']['change'](_0x3d75cb=>{const _0x328d4d=_0x1104d3['model']['document']['selection'],_0x351e04=_0x328d4d['getFirstPosition'](),_0x4a8733=_0x28f293['fromRange'](_0x328d4d['getFirstRange']());if(_0x3fd8f4['enterBlock'](_0x3d75cb)){const _0x30262e=_0x1104d3['model']['createPositionAt'](_0x351e04['parent']['nextSibling'],0x0),_0x4a7de8=_0x3d75cb['createRange'](_0x351e04,_0x30262e);_0x31a0c8['markInsertion'](_0x4a7de8);}else _0x3d75cb['setSelection'](_0x3d75cb['createRange'](_0x4a8733['end']));_0x4a8733['detach'](),_0x3fd8f4['fire']('afterExecute',{'writer':_0x3d75cb});});}),_0x1104d3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x1104d3,'split'),{'priority':'high'}),_0x1104d3['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x1b53c5,_0x3ba293,_0x4dc529)=>{const _0x2dcdd9=_0x4dc529['mapper']['markerNameToElements'](_0x3ba293['markerName']);if(_0x2dcdd9){for(const _0xf9ce23 of _0x2dcdd9)_0xf9ce23['hasClass']('ck-suggestion-marker-split')&&(_0x4dc529['mapper']['unbindElementFromMarkerName'](_0xf9ce23,_0x3ba293['markerName']),_0x4dc529['writer']['remove'](_0xf9ce23));}},{'priority':'high'}),_0x1104d3['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x279dc6,_0x27c654,_0x17cd06)=>{_0x17cd06['options']['showSuggestionHighlights']&&De(_0x1104d3,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x279dc6,_0x27c654,_0x17cd06);},{'priority':'high'});}}class Q extends _0x1074b3{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x426e94=this['editor']['plugins']['get']('TrackChangesEditing');_0x426e94['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x426e94['enableCommand']('findNext'),_0x426e94['enableCommand']('findPrevious'),_0x426e94['enableCommand']('replace'),_0x426e94['enableCommand']('replaceAll');}['handleFindCommand'](_0x38771d,_0x3e8b92,_0x7581e8={}){const _0x391071=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x38771d(_0x5c0e2b=>{let _0x3bfa3f=('string'==typeof _0x3e8b92?_0x391071['findByTextCallback'](_0x3e8b92,_0x7581e8):_0x3e8b92)(_0x5c0e2b);Array['isArray'](_0x3bfa3f)&&(_0x3bfa3f={'results':_0x3bfa3f,'searchText':'string'==typeof _0x3e8b92?_0x3e8b92:''});const _0x145b04=_0x3bfa3f['results']['filter'](_0x316a6c=>!0x1===this['_isInDeletionRange'](_0x316a6c,_0x5c0e2b['item']));return{..._0x3bfa3f,'results':_0x145b04};},_0x7581e8);}['_isInDeletionRange'](_0x239a6f,_0x18999b){const _0x5ddae0=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x18999b,_0x239a6f['start']),this['editor']['model']['createPositionAt'](_0x18999b,_0x239a6f['end']));for(const _0x1b66c5 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5ddae0['getIntersection'](_0x1b66c5['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0x1074b3{['afterInit'](){const _0x185001=this['editor']['locale'],_0x493531=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4bbdf2,commandName:_0x29777a}of eo)this['editor']['plugins']['has'](_0x4bbdf2)&&(_0x493531['enableDefaultAttributesIntegration'](_0x29777a),_0x493531['registerInlineAttribute'](_0x29777a));_0x493531['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x185001,'FORMAT_FONT_SIZE')),_0x493531['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x185001,'FORMAT_FONT_FAMILY')),_0x493531['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x185001,'FORMAT_FONT_COLOR')),_0x493531['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x185001,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x7f60ca=this['editor'],_0xd92afa=_0x7f60ca['locale'];_0x7f60ca['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3fbb64=>{const _0x461e70=_0xd92afa['t'];if('formatInline'!=_0x3fbb64['type'])return;const {data:_0xafe96d}=_0x3fbb64;if(null!=_0xafe96d){if('fontSize'==_0xafe96d['commandName']){const _0x12547e=_0xafe96d['commandParams'][0x0]['value'];if(_0x12547e){const _0x2b98a0=_0x461e70(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x97ed8d=>_0x97ed8d['model']==_0x12547e)['title'])['toLowerCase']();return{'type':'format','content':o(_0xd92afa,'*Set\x20font\x20size:*\x20%0',_0x2b98a0)};}return{'type':'format','content':o(_0xd92afa,'*Reset\x20font\x20size*')};}if('fontFamily'==_0xafe96d['commandName']){const _0x24f2a6=_0xafe96d['commandParams'][0x0]['value'];return _0x24f2a6?{'type':'format','content':o(_0xd92afa,'*Set\x20font\x20family:*\x20%0',_0x24f2a6)}:{'type':'format','content':o(_0xd92afa,'*Reset\x20font\x20family*')};}if('fontColor'==_0xafe96d['commandName']){const _0x344cc6=_0xafe96d['commandParams'][0x0]['value'];if(_0x344cc6){const _0x308a86=_0x51ce7a(this['editor']['config']['get']('fontColor.colors'))['find'](_0x2e2fb0=>_0x2e2fb0['model']==_0x344cc6);let _0x509bd3=_0x344cc6,_0x12feb4='';return _0x308a86&&(_0x509bd3=_0x308a86['label'],_0x12feb4=_0x461e70(_0x509bd3)['toLowerCase']()),{'type':'format','content':o(_0xd92afa,'*Set\x20font\x20color:*\x20%0',_0x12feb4)['trim'](),'color':{'value':_0x344cc6,'title':_0x12feb4||_0x509bd3}};}return{'type':'format','content':o(_0xd92afa,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0xafe96d['commandName']){const _0x2e8b97=_0xafe96d['commandParams'][0x0]['value'];if(_0x2e8b97){const _0x2ac5cc=_0x51ce7a(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x285c48=>_0x285c48['model']==_0x2e8b97);let _0x3cbb8b=_0x2e8b97,_0x3511e6='';return _0x2ac5cc&&(_0x3cbb8b=_0x2ac5cc['label'],_0x3511e6=_0x461e70(_0x3cbb8b)['toLowerCase']()),{'type':'format','content':o(_0xd92afa,'*Set\x20font\x20background\x20color:*\x20%0',_0x3511e6)['trim'](),'color':{'value':_0x2e8b97,'title':_0x3511e6||_0x3cbb8b}};}return{'type':'format','content':o(_0xd92afa,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0x1074b3{['afterInit'](){const _0x2d50a3=this['editor'],_0x11e927=_0x2d50a3['plugins']['get']('TrackChangesEditing'),_0x3e9cb5=_0x2d50a3['commands']['get']('copyFormat'),_0x45c9ab=_0x2d50a3['commands']['get']('pasteFormat');_0x3e9cb5&&_0x45c9ab&&(_0x11e927['enableDefaultAttributesIntegration']('pasteFormat'),_0x11e927['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0xc03ae=this['editor'],_0x284c40=_0xc03ae['locale'];_0xc03ae['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x113f97=>{if('formatBlock'!=_0x113f97['type']&&'formatInline'!=_0x113f97['type'])return;const {data:_0x8154e}=_0x113f97;if(_0x8154e&&'pasteFormat'===_0x8154e['commandName']){const _0x324949=[],_0xa804c=_0x8154e['commandParams'][0x0];for(const [_0x5137d2,_0xd102d1]of Object['entries'](_0xa804c))_0x324949['push'](ro(_0xc03ae,_0x5137d2,_0xd102d1));return _0x324949['length']?{'type':'format','content':o(_0x284c40,'*Set\x20format\x20to:*\x20%0',_0x324949['join'](',\x20'))}:{'type':'format','content':o(_0x284c40,'*Remove\x20all\x20formatting*')};}});}}function ro(_0xff91e8,_0x2ecff1,_0x5c2e32){const _0x134834=_0xff91e8['locale']['t'],_0x86844d=_0x2ecff1['split'](/(?=[A-Z])/)['join']('\x20'),_0x2c40f1=_0x134834(_0x86844d['charAt'](0x0)['toUpperCase']()+_0x86844d['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x5c2e32)return _0x2c40f1;if('fontColor'===_0x2ecff1||'fontBackgroundColor'===_0x2ecff1){const _0x174fd4=_0x51ce7a(_0xff91e8['config']['get']('fontColor.colors'))['find'](_0x4cac10=>_0x4cac10['model']==_0x5c2e32);return _0x2c40f1+'\x20('+(_0x174fd4?_0x134834(_0x174fd4['label'])['toLowerCase']():_0x5c2e32)+')';}if('fontSize'===_0x2ecff1&&isNaN(parseFloat(_0x5c2e32))){const _0x3fc927=_0xff91e8['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xff91e8['config']['get']('fontSize.options'))['find'](_0x4a239e=>_0x4a239e['model']==_0x5c2e32);return _0x2c40f1+'\x20('+(_0x3fc927?_0x134834(_0x3fc927['title'])['toLowerCase']():_0x5c2e32)+')';}return _0x2c40f1+'\x20('+_0x5c2e32+')';}class Z extends _0x1074b3{['_headingOptions'];['afterInit'](){const _0xbfb3=this['editor'];if(!_0xbfb3['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0xbfb3['config']['get']('heading.options');const _0xb2c8fc=_0xbfb3['locale'],_0x4284a7=_0xbfb3['plugins']['get']('TrackChangesEditing');_0x4284a7['enableDefaultAttributesIntegration']('heading');for(const _0x1c53e1 of this['_headingOptions'])'paragraph'!=_0x1c53e1['model']&&_0x4284a7['descriptionFactory']['registerElementLabel'](_0x1c53e1['model'],_0x35f7e4=>{const _0xe81100=this['_getHeadingLevel'](_0x1c53e1['model']);return null!==_0xe81100?_0xb5a004(_0x35f7e4,_0xe81100):_0xdef32c(_0x35f7e4,_0x1c53e1['title']);});function _0xb5a004(_0x32fbfc,_0x1c26d5){return o(_0xb2c8fc,'ELEMENT_HEADING',[_0x32fbfc,_0x1c26d5]);}function _0xdef32c(_0x171647,_0x123e5b){return o(_0xb2c8fc,'ELEMENT_HEADING_CUSTOM',[_0x171647,_0x123e5b]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5bd8dc=this['editor'],_0x22c792=_0x5bd8dc['locale'];function _0x566d5b(_0x5498c4,_0x4e6e8a){return o(_0x22c792,'ELEMENT_HEADING_CUSTOM',[_0x5498c4,_0x4e6e8a]);}_0x5bd8dc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a8f89=>{if('formatBlock'!=_0x5a8f89['type'])return;const {data:_0x267fee}=_0x5a8f89;if(_0x267fee&&'heading'==_0x267fee['commandName']){const _0x309fff=_0x267fee['commandParams'][0x0]['value'],_0x2909c7=this['_getHeadingLevel'](_0x309fff);if(null!==_0x2909c7)return{'type':'format','content':o(_0x22c792,'*Change\x20to:*\x20%0',(_0x2e62f2=0x1,_0x3ae94c=_0x2909c7,o(_0x22c792,'ELEMENT_HEADING',[_0x2e62f2,_0x3ae94c])))};const _0x95b9fa=this['_headingOptions']['find'](_0x54e367=>_0x54e367['model']===_0x309fff)['title'];return{'type':'format','content':o(_0x22c792,'*Change\x20to:*\x20%0',_0x566d5b(0x1,_0x95b9fa))};}var _0x2e62f2,_0x3ae94c;});}['_getHeadingLevel'](_0x3f46ed){const _0x5b7a46=_0x3f46ed['match'](/^heading(\d+)/);if(_0x5b7a46)return _0x5b7a46[0x1];const _0x522b8a=this['_headingOptions']?.['find'](_0x21221c=>_0x21221c['model']==_0x3f46ed);if(_0x522b8a&&_0x522b8a['view']){const _0x515ba8=_0x522b8a['view'],_0x5e24d4=(_0x515ba8['name']??_0x515ba8)['match'](/^h(\d+)/);if(_0x5e24d4)return _0x5e24d4[0x1];}return null;}}class tt extends _0x1074b3{['afterInit'](){const _0x579219=this['editor'];if(!_0x579219['plugins']['has']('HighlightEditing'))return;const _0x4e4484=_0x579219['plugins']['get']('TrackChangesEditing'),_0x3e0fb5=_0x579219['locale'];_0x4e4484['enableDefaultAttributesIntegration']('highlight'),_0x4e4484['registerInlineAttribute']('highlight'),_0x4e4484['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x3e0fb5,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x148758=this['editor'],_0x1b22fc=_0x148758['locale'];_0x148758['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f37db=>{if('formatInline'!=_0x4f37db['type'])return;const {data:_0x79026f}=_0x4f37db;if(_0x79026f&&'highlight'==_0x79026f['commandName']){const _0x48f3f5=_0x1b22fc['t'],_0x91e754=_0x79026f['commandParams'][0x0]['value'];if(_0x91e754){const _0x3f37d4=_0x148758['config']['get']('highlight.options')['find'](_0x254b4c=>_0x254b4c['model']==_0x91e754),_0x2a0e15=_0x48f3f5(_0x3f37d4['title'])['toLowerCase']();return{'type':'format','content':o(_0x1b22fc,'*Set\x20highlight:*\x20%0',_0x2a0e15),'color':{'value':_0x3f37d4['color'],'title':_0x3f37d4['title']}};}return{'type':'format','content':o(_0x1b22fc,'*Remove\x20highlight*',o(_0x1b22fc,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x1074b3{['afterInit'](){const _0x347ada=this['editor'];if(!_0x347ada['plugins']['has']('HorizontalLineEditing'))return;_0x347ada['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x47efc4=_0x347ada['plugins']['get']('TrackChangesEditing'),_0x41407a=_0x347ada['locale'];_0x47efc4['descriptionFactory']['registerElementLabel']('horizontalLine',_0x51f092=>o(_0x41407a,'ELEMENT_HORIZONTAL_LINE',_0x51f092)),_0x347ada['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x7374a4,{writer:_0x17d2f1,options:_0x2a42f8})=>{if(!_0x2a42f8['showSuggestionHighlights'])return null;const _0x1d6b51=_0x17d2f1['createContainerElement']('div'),_0x1d1ab2=_0x17d2f1['createEmptyElement']('hr');return _0x17d2f1['addClass']('ck-horizontal-line',_0x1d6b51),_0x17d2f1['insert'](_0x17d2f1['createPositionAt'](_0x1d6b51,0x0),_0x1d1ab2),_0x1d6b51;},'converterPriority':'high'});}}class nt extends _0x1074b3{['afterInit'](){const _0x5ce0de=this['editor'];if(!_0x5ce0de['plugins']['has']('HtmlEmbed'))return;const _0x58c7e2=_0x5ce0de['plugins']['get']('TrackChangesEditing'),_0x278fdd=_0x5ce0de['locale'];_0x58c7e2['descriptionFactory']['registerElementLabel']('rawHtml',_0x523fb9=>o(_0x278fdd,'ELEMENT_HTML_EMBED',_0x523fb9)),_0x58c7e2['enableDefaultAttributesIntegration']('htmlEmbed'),_0x58c7e2['registerBlockAttribute']('value'),_0x58c7e2['descriptionFactory']['registerDescriptionCallback'](_0x142ab2=>{if('attribute'!=_0x142ab2['type'])return;const {data:_0x586128}=_0x142ab2;if(_0x586128&&'value'==_0x586128['key']&&_0x142ab2['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x55f096=o(_0x278fdd,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x278fdd,'*Change\x20%0\x20content*',_0x55f096)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x91d7b0=this['editor'],_0x4a9313=_0x91d7b0['locale'];_0x91d7b0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xbeacf3=>{if('formatBlock'!=_0xbeacf3['type'])return;const {data:_0xdd892f}=_0xbeacf3;if(_0xdd892f&&'htmlEmbed'==_0xdd892f['commandName']){const _0x437d6a=o(_0x4a9313,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4a9313,'*Change\x20%0\x20content*',_0x437d6a)};}});}}class et extends _0x1074b3{['afterInit'](){const _0x329c99=this['editor'];if(!_0x329c99['plugins']['has']('ImageEditing'))return;const _0x2420c6=_0x329c99['plugins']['get']('TrackChangesEditing'),_0x47db58=_0x329c99['plugins']['get']('ImageUtils'),_0x5216b7=_0x329c99['locale'];_0x2420c6['enableCommand']('insertImage'),_0x2420c6['descriptionFactory']['registerElementLabel']('imageBlock',_0x145c2b=>o(_0x5216b7,'ELEMENT_IMAGE',_0x145c2b)),_0x2420c6['descriptionFactory']['registerElementLabel']('imageInline',_0x35918c=>o(_0x5216b7,'ELEMENT_INLINE_IMAGE',_0x35918c)),_0x2420c6['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x5216b7,'ELEMENT_CAPTION')),_0x329c99['plugins']['has']('ImageUploadEditing')&&_0x2420c6['enableCommand']('uploadImage'),_0x329c99['plugins']['has']('ImageBlockEditing')&&_0x329c99['plugins']['has']('ImageInlineEditing')&&(_0x2420c6['enableCommand']('imageTypeInline',(_0x1e6da5,_0xd0e57f)=>{const _0x36e261=_0x47db58['getClosestSelectedImageElement'](_0x329c99['model']['document']['selection']);_0x329c99['model']['change'](()=>{_0x2420c6['markBlockFormat'](_0x36e261,{'commandName':'imageTypeInline','commandParams':[_0xd0e57f]},[],'convertBlockImageToInline');});}),_0x2420c6['enableCommand']('imageTypeBlock',(_0x4d2223,_0x3e582b)=>{_0x329c99['model']['change'](_0x1734cc=>{let _0xcc05d7=_0x47db58['getClosestSelectedImageElement'](_0x329c99['model']['document']['selection']),_0x3d440f=_0x1734cc['createRangeOn'](_0xcc05d7);const _0x3c9445=_0x3b97a1['fromPosition'](_0x3d440f['start'],'toPrevious'),_0x5f0e07=_0x3b97a1['fromPosition'](_0x3d440f['end'],'toNext');_0x2420c6['forceDefaultExecution'](()=>_0x4d2223(_0x3e582b)),_0xcc05d7=_0x47db58['getClosestSelectedImageElement'](_0x329c99['model']['document']['selection']),_0x3d440f=_0x1734cc['createRangeOn'](_0xcc05d7);const _0x424bdf=_0x1734cc['createRange'](_0x3c9445,_0x5f0e07);_0x3c9445['detach'](),_0x5f0e07['detach'](),_0x2420c6['markBlockFormat'](_0xcc05d7,{'commandName':'imageTypeInline','commandParams':[_0x3e582b]},[],'convertInlineImageToBlock'),_0x424bdf['start']['isBefore'](_0x3d440f['start'])&&_0x2420c6['markInsertion'](_0x1734cc['createRange'](_0x424bdf['start'],_0x3d440f['start']),'convertInlineImageToBlock'),_0x3d440f['end']['isBefore'](_0x424bdf['end'])&&_0x2420c6['markInsertion'](_0x1734cc['createRange'](_0x3d440f['end'],_0x424bdf['end']),'convertInlineImageToBlock');});}),_0x2420c6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x2420c6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x2420c6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x2420c6['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x2420c6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x2420c6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x2d0ddc])=>{const _0x5ef5b5=_0x2420c6['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x4dc28e=_0x2d0ddc['start'],_0x4745c4=_0x2d0ddc['end'];const _0x136a3c=_0x329c99['model']['schema']['getNearestSelectionRange'](_0x4dc28e,'backward'),_0x5b9e07=_0x329c99['model']['schema']['getNearestSelectionRange'](_0x4745c4,'forward');_0x136a3c['isCollapsed']&&(_0x4dc28e=_0x136a3c['start']),_0x5b9e07['isCollapsed']&&(_0x4745c4=_0x5b9e07['end']),_0x5ef5b5([_0x329c99['model']['createRange'](_0x4dc28e,_0x4745c4)]);}),_0x2420c6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xd5cb70),_0x2420c6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xd5cb70)),_0x329c99['plugins']['has']('ImageCaptionEditing')&&(_0x2420c6['enableCommand']('toggleImageCaption',(_0x371645,_0x784d76)=>{const _0x4d93a1=_0x329c99['plugins']['get']('ImageCaptionUtils');let _0x439c9d=_0x47db58['getClosestSelectedImageElement'](_0x329c99['model']['document']['selection']),_0x193fb4=_0x4d93a1['getCaptionFromImageModelElement'](_0x439c9d);_0x329c99['model']['change'](()=>{if(_0x193fb4)return void _0x2420c6['markDeletion'](_0x329c99['model']['createRangeOn'](_0x193fb4));const _0x972212=_0x47db58['isBlockImage'](_0x439c9d);_0x371645(_0x784d76),_0x439c9d=_0x47db58['getClosestSelectedImageElement'](_0x329c99['model']['document']['selection']),_0x193fb4=_0x4d93a1['getCaptionFromImageModelElement'](_0x439c9d),_0x2420c6['markInsertion'](_0x329c99['model']['createRangeOn'](_0x193fb4),_0x972212?null:'imageCaption');});}),_0x2420c6['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xd5cb70));const _0x24407d=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x42e2ff(_0x2c4a99,_0x2e3aed){const _0x369538=_0x24407d['findIndex'](({type:_0x459082,subType:_0x2f72af})=>_0x2c4a99['type']==_0x459082&&_0x2c4a99['subType']==_0x2f72af),_0x5168d2=_0x24407d['findIndex'](({type:_0x360960,subType:_0x1e1d7f})=>_0x2e3aed['type']==_0x360960&&_0x2e3aed['subType']==_0x1e1d7f);if(_0x369538<0x0||_0x5168d2<0x0)return!0x1;const _0x23139c=_0x2c4a99['getFirstRange'](),_0x5f5037=_0x2e3aed['getFirstRange']();if((0x0==_0x369538||0x1==_0x369538)&&0x2==_0x5168d2&&_0x23139c['isIntersecting'](_0x5f5037))return!0x0;if(0x2==_0x369538&&0x3==_0x5168d2){const _0x251ec0=_0x2420c6['_findSuggestions'](_0x23139c,'insertion')['filter'](({suggestion:_0xd60392,meta:_0x388ee8})=>_0x388ee8['isOwn']&&'convertInlineImageToBlock'==_0xd60392['subType']);if(_0x251ec0['length']>0x1&&_0x5f5037['end']['isEqual'](_0x23139c['start']))return!0x0;if(0x1==_0x251ec0['length']&&(_0x23139c['start']['isEqual'](_0x5f5037['end'])||_0x23139c['end']['isEqual'](_0x5f5037['start'])))return!0x0;}if(0x3==_0x369538&&0x3==_0x5168d2&&_0x23139c['start']['isBefore'](_0x5f5037['start'])){const _0x202348=_0x23139c['end']['nodeAfter'],_0x30792a=_0x5f5037['start']['nodeBefore'];return _0x47db58['isBlockImage'](_0x202348)&&_0x202348===_0x30792a;}return!0x1;}function _0xd5cb70(_0x2b3adf,_0x2bcf2e){return _0x42e2ff(_0x2b3adf,_0x2bcf2e)?[_0x2b3adf,_0x2bcf2e]:_0x42e2ff(_0x2bcf2e,_0x2b3adf)?[_0x2bcf2e,_0x2b3adf]:null;}_0x329c99['plugins']['has']('ImageResize')&&(_0x2420c6['enableDefaultAttributesIntegration']('resizeImage'),_0x2420c6['registerBlockAttribute']('resizedWidth'),_0x2420c6['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x5216b7,'FORMAT_IMAGE_SIZE'))),_0x329c99['plugins']['has']('ImageTextAlternativeEditing')&&(_0x2420c6['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x2420c6['registerBlockAttribute']('alt')),_0x329c99['plugins']['has']('PictureEditing')&&(_0x2420c6['registerBlockAttribute']('sources'),_0x2420c6['descriptionFactory']['registerDescriptionCallback'](_0x446af3=>{if('attribute'!=_0x446af3['type'])return;const {data:_0xdeb74f}=_0x446af3;return _0xdeb74f&&'sources'==_0xdeb74f['key']?{'type':'format','content':''}:void 0x0;})),_0x329c99['plugins']['has']('ImageSizeAttributes')&&(_0x2420c6['registerBlockAttribute']('width'),_0x2420c6['registerBlockAttribute']('height'),_0x2420c6['descriptionFactory']['registerDescriptionCallback'](_0x2eb351=>{if('attribute'!=_0x2eb351['type'])return;const {data:_0x305474}=_0x2eb351;return!_0x305474||'width'!=_0x305474['key']&&'height'!=_0x305474['key']?void 0x0:{'type':'format','content':''};})),_0x2420c6['descriptionFactory']['registerDescriptionCallback'](_0x10a851=>{if(!!_0x24407d['find'](({type:_0x42c3c6,subType:_0x17895b})=>_0x10a851['type']==_0x42c3c6&&_0x10a851['subType']==_0x17895b))return _0x10a851['previous']?{}:void 0x0;}),_0x2420c6['descriptionFactory']['registerDescriptionCallback'](_0x3a5035=>{if('insertion'==_0x3a5035['type']||'deletion'==_0x3a5035['type']){const _0x9b1578=_0x3a5035['getContainedElement']();if(_0x9b1578&&_0x9b1578['is']('element','caption'))return{'type':'insertion'==_0x3a5035['type']?'addObject':'removeObject','element':_0x9b1578,'quantity':0x1};}}),_0x2420c6['descriptionFactory']['registerDescriptionCallback'](_0x2362d4=>'formatBlock'==_0x2362d4['type']&&'convertInlineImageToBlock'==_0x2362d4['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x2362d4['type']&&'convertBlockImageToInline'==_0x2362d4['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x2420c6['descriptionFactory']['registerDescriptionCallback'](_0x1b27ff=>{if('attribute'!=_0x1b27ff['type'])return;const {data:_0x158343}=_0x1b27ff;if(!_0x158343||'alt'!=_0x158343['key'])return;const _0x18e9cc=_0x158343['newValue'];return _0x18e9cc?{'type':'format','content':o(_0x5216b7,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x18e9cc+'\x22')}:{'type':'format','content':o(_0x5216b7,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3007e6=this['editor'],_0x37a4ad=_0x3007e6['locale'];_0x3007e6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1dc053=>{if('formatBlock'!=_0x1dc053['type']&&'formatInline'!=_0x1dc053['type'])return;const {data:_0x21c8b4}=_0x1dc053;if(_0x21c8b4){if('imageTextAlternative'==_0x21c8b4['commandName']){const _0x4dd19c=_0x21c8b4['commandParams'][0x0]['newValue'];return _0x4dd19c?{'type':'format','content':o(_0x37a4ad,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4dd19c+'\x22')}:{'type':'format','content':o(_0x37a4ad,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x21c8b4['commandName']){const _0xd3f293=_0x21c8b4['commandParams'][0x0]['width'];return _0xd3f293?{'type':'format','content':o(_0x37a4ad,'*Set\x20image\x20width:*\x20%0',_0xd3f293)}:{'type':'format','content':o(_0x37a4ad,'*Reset\x20image\x20width*')};}}});}}class st extends _0x1074b3{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x2674bf=this['editor']['locale'],_0x1a9466=this['editor']['plugins']['get']('TrackChangesEditing');_0x1a9466['enableDefaultAttributesIntegration']('replaceImageSource'),_0x1a9466['registerBlockAttribute']('src'),_0x1a9466['descriptionFactory']['registerDescriptionCallback'](_0x2a8569=>{if('attribute'!=_0x2a8569['type'])return;const {data:_0x2b34d5}=_0x2a8569;return _0x2b34d5&&'src'==_0x2b34d5['key']?_0x2b34d5['newValue']&&_0x2b34d5['oldValue']?{'type':'format','content':o(_0x2674bf,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x20489=this['editor']['plugins']['get']('TrackChangesEditing');_0x20489['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x20489['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x20489['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x20489['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x538342=this['editor'],_0x4c69d9=_0x538342['locale'];_0x538342['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x41308f=>{if('formatBlock'!=_0x41308f['type']&&'formatInline'!=_0x41308f['type'])return;const {data:_0x39eec3}=_0x41308f;if(!_0x39eec3||'replaceImageSource'!=_0x39eec3['commandName'])return;return{'type':'format','content':o(_0x4c69d9,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0x1074b3{['afterInit'](){const _0x250beb=this['editor'];if(!_0x250beb['plugins']['has']('ImageStyleEditing'))return;const _0x2d51d2=_0x250beb['plugins']['get']('TrackChangesEditing'),_0x1d628c=_0x250beb['plugins']['get']('ImageUtils'),_0x27433b={};_0x2d51d2['enableCommand']('imageStyle',(_0x402f42,_0x51a2bc)=>{const _0xaf7497=_0x250beb['plugins']['get']('Users')['me'],_0x4d72e3=_0x250beb['commands']['get']('imageStyle');let _0x629d0e=_0x1d628c['getClosestSelectedImageElement'](_0x250beb['model']['document']['selection']),_0x475183=_0x250beb['model']['createRangeOn'](_0x629d0e),_0x5bb814=_0x4d72e3['value'];if(_0x5bb814==_0x51a2bc['value'])return;const _0x5e2b15={'commandName':'imageStyle','commandParams':[_0x51a2bc],'formatGroupId':_0x2e8cc()};_0x250beb['model']['change'](()=>{if(_0x2d51d2['getSuggestions']()['filter'](_0x48b1aa=>_0x48b1aa['isInContent']&&_0xaf7497==_0x48b1aa['author']&&('formatBlock'==_0x48b1aa['type']||'formatInline'==_0x48b1aa['type'])&&('imageStylePreApply'==_0x48b1aa['subType']||'imageStylePostApply'==_0x48b1aa['subType'])&&_0x48b1aa['getFirstRange']()['isEqual'](_0x475183))['forEach'](_0x24b41c=>_0x2d51d2['discardSuggestion'](_0x24b41c['head'])),_0x629d0e=_0x1d628c['getClosestSelectedImageElement'](_0x250beb['model']['document']['selection']),_0x475183=_0x250beb['model']['createRangeOn'](_0x629d0e),_0x4d72e3['refresh'](),_0x250beb['commands']['get']('imageTypeInline')['refresh'](),_0x250beb['commands']['get']('imageTypeBlock')['refresh'](),_0x5bb814=_0x4d72e3['value'],_0x5bb814!=_0x51a2bc['value'])return _0x1d628c['isInlineImage'](_0x629d0e)&&_0x4d72e3['shouldConvertImageType'](_0x51a2bc['value'],_0x629d0e)?(_0x402f42({..._0x51a2bc,'setImageSizes':!0x1}),_0x629d0e=_0x1d628c['getClosestSelectedImageElement'](_0x250beb['model']['document']['selection']),void _0x2d51d2['markBlockFormat'](_0x629d0e,{..._0x5e2b15,'commandReversedParams':[{'value':_0x5bb814||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1d628c['isBlockImage'](_0x629d0e)?_0x2d51d2['markBlockFormat'](_0x629d0e,_0x5e2b15,[],'imageStylePostApply'):_0x2d51d2['markInlineFormat'](_0x475183,_0x5e2b15,'imageStylePostApply'));});});for(const _0x47b167 of _0x250beb['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x27433b[_0x47b167['name']]=_0x47b167['title']['toLowerCase']();_0x2d51d2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2d51d2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2d51d2['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2d51d2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x5dd262])=>{_0x1d628c['setImageNaturalSizeAttributes'](_0x5dd262['getContainedElement']());}),_0x2d51d2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x49a72b,_0x35f79e)=>{_0x2d51d2['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x49a72b,{'commandName':_0x35f79e['commandName'],'commandParams':_0x35f79e['commandReversedParams']});}),_0x2d51d2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x367c04,_0xcd2ff4){if(_0x990227(_0x367c04,_0xcd2ff4))return[_0x367c04,_0xcd2ff4];if(_0x990227(_0xcd2ff4,_0x367c04))return[_0xcd2ff4,_0x367c04];return null;});const _0x5cfaad=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x990227(_0x5f040e,_0x281b25){const _0x3e414f=_0x5cfaad['findIndex'](({type:_0xf1e34,subType:_0x3c7e1a})=>_0x5f040e['type']==_0xf1e34&&_0x5f040e['subType']==_0x3c7e1a),_0x3f5121=_0x5cfaad['findIndex'](({type:_0x22a74f,subType:_0x5c99fa})=>_0x281b25['type']==_0x22a74f&&_0x281b25['subType']==_0x5c99fa);if(_0x3e414f<0x0||_0x3f5121<0x0)return!0x1;const _0x16739e=_0x5f040e['getFirstRange'](),_0x1a9a30=_0x281b25['getFirstRange']();if((0x0==_0x3e414f||0x1==_0x3e414f)&&0x2==_0x3f5121&&_0x16739e['isIntersecting'](_0x1a9a30))return!0x0;if(0x2==_0x3e414f&&0x3==_0x3f5121){const _0x1a1578=_0x2d51d2['_findSuggestions'](_0x16739e,'insertion')['filter'](({suggestion:_0x348f95,meta:_0xcb53bc})=>_0xcb53bc['isOwn']&&'convertInlineImageToBlock'==_0x348f95['subType']);if(_0x1a1578['length']>0x1&&_0x1a9a30['end']['isEqual'](_0x16739e['start']))return!0x0;if(0x1==_0x1a1578['length']&&(_0x16739e['start']['isEqual'](_0x1a9a30['end'])||_0x16739e['end']['isEqual'](_0x1a9a30['start'])))return!0x0;}if(0x3==_0x3e414f&&0x3==_0x3f5121&&_0x16739e['start']['isBefore'](_0x1a9a30['start'])){const _0x3e5708=_0x16739e['end']['nodeAfter'],_0x583db7=_0x1a9a30['start']['nodeBefore'];return _0x1d628c['isBlockImage'](_0x3e5708)&&_0x3e5708===_0x583db7;}return!0x1;}_0x250beb['model']['document']['registerPostFixer'](()=>{let _0x2e8779=!0x1;const _0x26580a=Array['from'](_0x250beb['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x186642,data:_0x4c61ad}of _0x26580a){const {group:_0xbe7ba8,type:_0x46890e,subType:_0x3f5b7e,id:_0x6d0582}=_0x2d51d2['_splitMarkerName'](_0x186642);if('suggestion'==_0xbe7ba8&&_0x2d51d2['hasSuggestion'](_0x6d0582)){if('formatBlock'==_0x46890e&&('imageStylePreApply'==_0x3f5b7e||'imageStylePostApply'==_0x3f5b7e)){const _0x2a3f36=_0x2d51d2['getSuggestion'](_0x6d0582);if(_0x4c61ad['newRange']){const _0x1bf0e7=_0x2a3f36['getFirstRange']()['getContainedElement']();if(_0x1d628c['isBlockImage'](_0x1bf0e7))continue;_0x2d51d2['discardSuggestion'](_0x2a3f36),_0x2e8779=!0x0;}}if('insertion'==_0x46890e&&'imageCaption'==_0x3f5b7e&&!_0x4c61ad['newRange']){const _0x25636e=_0x2d51d2['getSuggestion'](_0x6d0582);_0x25636e['next']&&_0x25636e['next']['isInContent']&&(_0x2d51d2['discardSuggestion'](_0x25636e['next']),_0x2e8779=!0x0);}}}return _0x2e8779;}),this['_registerLegacyDescription'](_0x27433b);}['_registerLegacyDescription'](_0xed7b15){const _0x5cc494=this['editor'],_0x285f45=_0x5cc494['locale'];_0x5cc494['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x10b6da=>{if('formatBlock'!=_0x10b6da['type']&&'formatInline'!=_0x10b6da['type'])return;const {data:_0x1d2c0f}=_0x10b6da;if(!_0x1d2c0f||'imageStyle'!=_0x1d2c0f['commandName'])return;const _0x4c690a=_0x1d2c0f['commandParams'][0x0]['value'];return _0x31fb7f('side'===_0x4c690a?o(_0x285f45,'FORMAT_SIDE_IMAGE'):_0xed7b15[_0x4c690a]||_0x4c690a);function _0x31fb7f(_0x896840){return{'type':'format','content':o(_0x285f45,'*Format:*\x20%0',_0x896840)};}});}}class rt extends _0x1074b3{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x37aa97){super(_0x37aa97),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x5ac29b=this['editor'],_0x1cd788=_0x5ac29b['commands']['get']('importWord'),_0x67d12=_0x5ac29b['commands']['get']('trackChanges');_0x1cd788&&(_0x1cd788['on']('execute',(_0x5b2c57,[,_0xd0212d])=>{this['_trackChangesValueDuringImport']=_0x67d12['value'],_0xd0212d['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x1cd788,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x1cd788,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x67d12['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5ac29b['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x11b2bb,_0x535f76){const {suggestions:_0x3d4204}=_0x535f76,_0x3495ee=this['editor']['commands']['get']('trackChanges'),_0x44bab9=_0x3495ee['value'];this['_trackChangesValueDuringImport']!==_0x44bab9&&(_0x3495ee['execute'](),this['_trackChangesExecuted']=!0x0),_0x3d4204&&_0x3d4204['forEach'](({id:_0x7b581f,type:_0x222363,author:_0x495acf,created_at:_0x47046d})=>{const _0x13f25f={'id':_0x7b581f,'type':_0x222363,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x495acf,'createdAt':_0x47046d?new Date(_0x47046d):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x13f25f);});}}class at extends _0x1074b3{['afterInit'](){const _0x1fcddb=this['editor'],_0x4fb48c=_0x1fcddb['plugins']['get']('TrackChangesEditing');if(_0x1fcddb['plugins']['has']('IndentEditing')&&(_0x4fb48c['enableCommand']('indent'),_0x4fb48c['enableCommand']('outdent')),_0x1fcddb['plugins']['has']('IndentBlock')){for(const _0xecd169 of['indentBlock','outdentBlock'])_0x4fb48c['enableDefaultAttributesIntegration'](_0xecd169);}const _0x250ea4=_0x1fcddb['locale'];_0x4fb48c['registerBlockAttribute']('blockIndent'),_0x4fb48c['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x250ea4,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2941c0=this['editor'],_0x32b2be=_0x2941c0['locale'],_0x272680=_0x2941c0['plugins']['get']('TrackChangesEditing');_0x272680['descriptionFactory']['registerDescriptionCallback'](_0x318ea4=>{if('formatBlock'!=_0x318ea4['type'])return;const {data:_0x224498}=_0x318ea4;if(!_0x224498)return;if('indentBlock'!=_0x224498['commandName']&&'outdentBlock'!=_0x224498['commandName'])return;const _0x3b4d7d=_0x318ea4['getItems']()[0x0],_0x4a24f7=_0x272680['descriptionFactory']['getItemLabel'](_0x3b4d7d);return'indentBlock'==_0x224498['commandName']?{'type':'format','content':o(_0x32b2be,'*Indent:*\x20%0',_0x4a24f7)}:'outdentBlock'==_0x224498['commandName']?{'type':'format','content':o(_0x32b2be,'*Outdent:*\x20%0',_0x4a24f7)}:void 0x0;});}}class ct extends _0x1074b3{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0x1074b3{['afterInit'](){const _0x54f748=this['editor'];if(!_0x54f748['plugins']['has']('LinkEditing'))return;const _0x2f5082=_0x54f748['plugins']['get']('TrackChangesEditing'),_0x12d7a7=_0x54f748['commands']['get']('link');_0x2f5082['enableDefaultAttributesIntegration']('link'),_0x2f5082['enableDefaultAttributesIntegration']('unlink'),_0x2f5082['registerInlineAttribute']('linkHref');for(const _0x11f1f0 of _0x12d7a7['manualDecorators'])_0x2f5082['registerInlineAttribute'](_0x11f1f0['id']),_0x2f5082['descriptionFactory']['registerAttributeLabel'](_0x11f1f0['id'],'link\x20('+_0x11f1f0['label']['toLowerCase']()+')');_0x2f5082['descriptionFactory']['registerDescriptionCallback'](_0x4a9be9=>{if('attribute'!=_0x4a9be9['type'])return;const {data:_0x3f31bf}=_0x4a9be9;if(!_0x3f31bf||'linkHref'!=_0x3f31bf['key'])return;const _0x5d021f=_0x3f31bf['newValue'],_0x3ca419=_0x54f748['locale'];return{'type':'format','content':null==_0x5d021f?o(_0x3ca419,'*Remove\x20link*'):o(_0x3ca419,'*Set\x20link:*\x20%0','\x22'+_0x5d021f+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3dde6f=this['editor'],_0x403f6d=_0x3dde6f['locale'];_0x3dde6f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x35ef30=>{if('formatInline'!=_0x35ef30['type'])return;const {data:_0x4bb051}=_0x35ef30;if(_0x4bb051){if('link'==_0x4bb051['commandName']){const _0x131b3f=_0x4bb051['commandParams'][0x0];return{'type':'format','content':o(_0x403f6d,'*Set\x20link:*\x20%0','\x22'+_0x131b3f+'\x22')};}return'unlink'==_0x4bb051['commandName']?{'type':'format','content':o(_0x403f6d,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x1074b3{['afterInit'](){const _0x2cf447=this['editor'],_0x26afbb=_0x2cf447['locale'];if(!_0x2cf447['plugins']['has']('LegacyListEditing'))return;const _0x23517c=_0x2cf447['plugins']['get']('TrackChangesEditing'),_0x22b43c=_0x2cf447['plugins']['has']('LegacyTodoListEditing');function _0x446ef8(_0x417bc7){return()=>{const _0x3b2914=_0x2cf447['model']['document']['selection'],_0xcfee01=_0x2cf447['commands']['get'](_0x417bc7);if(_0xcfee01['value'])return void _0x2cf447['execute']('paragraph',{});const _0x23eda7=_0x417bc7['slice'](0x0,-0x4),_0x2e38c3=function(_0x45f305,_0x402f86,_0x583061){let _0x4fffd2=Array['from'](_0x45f305)['filter'](_0x3c17ed=>function(_0x3e6ed3,_0x1de922){return _0x1de922['checkChild'](_0x3e6ed3['parent'],'listItem')&&!_0x1de922['isObject'](_0x3e6ed3);}(_0x3c17ed,_0x583061));_0x4fffd2=_0x4fffd2['filter'](_0x28600b=>!_0x28600b['is']('element','listItem')||_0x28600b['getAttribute']('listType')!=_0x402f86);const _0x235868=new Set();for(const _0x2daf3c of _0x4fffd2)_0x2daf3c['is']('element','listItem')?_0x235868['add'](Le(_0x2daf3c)):_0x235868['add'](_0x2daf3c);return Array['from'](_0x235868);}(_0x3b2914['getSelectedBlocks'](),_0x23eda7,_0x2cf447['model']['schema']);_0x2cf447['model']['change'](()=>{for(const _0x401ce4 of _0x2e38c3)_0x23517c['markBlockFormat'](_0x401ce4,{'commandName':_0x417bc7,'commandParams':[{'forceValue':!_0xcfee01['value']}],'formatGroupId':'blockName'},Ee(_0x401ce4));});};}function _0x4ded2e(_0x5e7758){return()=>{const _0x42b1b8=function(_0x2b5bd0){let _0x5627fb=Array['from'](_0x2b5bd0);const _0x2e6d92=_0x5627fb['findIndex'](_0x1d052f=>'listItem'!=_0x1d052f['name']);return _0x2e6d92>-0x1&&(_0x5627fb=_0x5627fb['slice'](0x0,_0x2e6d92)),_0x5627fb;}(_0x2cf447['model']['document']['selection']['getSelectedBlocks']()),_0x332b1f=_0x2cf447['model']['createRange'](_0x2cf447['model']['createPositionAt'](_0x42b1b8[0x0],'before'),_0x2cf447['model']['createPositionAt'](_0x42b1b8[_0x42b1b8['length']-0x1],'end'));_0x2cf447['model']['change'](()=>{_0x23517c['markBlockFormat'](_0x332b1f,{'commandName':_0x5e7758,'commandParams':[],'formatGroupId':'listIndent'},function(_0x23f2ed){const _0x2803f8=new Set();for(const _0x385379 of _0x23f2ed){let _0xbd3ef0=_0x385379['nextSibling'];for(;_0xbd3ef0&&_0xbd3ef0['getAttribute']('listIndent')>_0x385379['getAttribute']('listIndent');)_0x2803f8['add'](_0xbd3ef0),_0xbd3ef0=_0xbd3ef0['nextSibling'];}return Array['from'](_0x2803f8);}(_0x42b1b8));});};}_0x23517c['enableCommand']('numberedList',_0x446ef8('numberedList')),_0x23517c['enableCommand']('bulletedList',_0x446ef8('bulletedList')),_0x22b43c&&_0x23517c['enableCommand']('todoList',_0x446ef8('todoList')),_0x23517c['enableCommand']('indentList',_0x4ded2e('indentList')),_0x23517c['enableCommand']('outdentList',_0x4ded2e('outdentList')),_0x22b43c&&_0x23517c['enableCommand']('checkTodoList',()=>{const _0x24a0f3=_0x2cf447['commands']['get']('checkTodoList'),_0x26e1c1=Array['from'](_0x24a0f3['_selectedElements']);_0x26e1c1['filter'](_0x321aad=>_0x321aad['getAttribute']('todoListChecked')!=_0x24a0f3['value']),_0x2cf447['model']['change'](()=>{for(const _0x5027b3 of _0x26e1c1)_0x23517c['markBlockFormat'](_0x5027b3,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x24a0f3['value']}]});});}),_0x23517c['descriptionFactory']['registerElementLabel']('listItem',_0x768132=>o(_0x26afbb,'ELEMENT_LIST_ITEM',_0x768132)),_0x23517c['descriptionFactory']['registerDescriptionCallback'](_0x2cbdcf=>{if('formatBlock'!=_0x2cbdcf['type']&&'formatInline'!=_0x2cbdcf['type'])return;const {data:_0x2756c4}=_0x2cbdcf;if(_0x2756c4){if('numberedList'==_0x2756c4['commandName']||'bulletedList'==_0x2756c4['commandName']||'todoList'==_0x2756c4['commandName'])switch(_0x2756c4['commandName']['replace']('List','')){case'bulleted':return _0x5310b9(o(_0x26afbb,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5310b9(o(_0x26afbb,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5310b9(o(_0x26afbb,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2756c4['commandName'])return{'type':'format','content':o(_0x26afbb,'*Indent:*\x20%0',o(_0x26afbb,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2756c4['commandName'])return{'type':'format','content':o(_0x26afbb,'*Outdent:*\x20%0',o(_0x26afbb,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2756c4['commandName'])return _0x2756c4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x26afbb,'*Check\x20item*')}:{'type':'format','content':o(_0x26afbb,'*Uncheck\x20item*')};}function _0x5310b9(_0x339c45){return{'type':'format','content':o(_0x26afbb,'*Change\x20to:*\x20%0',_0x339c45)};}});}}function Le(_0x111b16){const _0x3951cd=_0x111b16['getAttribute']('listIndent');if(0x0==_0x3951cd)return _0x111b16;let _0x1b0619=_0x111b16;for(;_0x111b16['previousSibling']&&_0x111b16['previousSibling']['is']('element','listItem');){const _0x5ee587=_0x111b16['previousSibling']['getAttribute']('listIndent');if(_0x5ee587==_0x3951cd)_0x1b0619=_0x111b16['previousSibling'];else{if(_0x5ee587<_0x3951cd)break;}_0x111b16=_0x111b16['previousSibling'];}return _0x1b0619;}function Ee(_0x19bd66){const _0x2f22c9=[];if(_0x19bd66['is']('element','listItem')&&_0x19bd66['getAttribute']('listIndent')>0x0){let _0x5d2044=_0x19bd66['nextSibling'];for(;_0x5d2044&&'listItem'==_0x5d2044['name']&&_0x5d2044['getAttribute']('listIndent')==_0x19bd66['getAttribute']('listIndent');)_0x2f22c9['push'](_0x5d2044),_0x5d2044=_0x5d2044['nextSibling'];}return _0x2f22c9;}class ht extends _0x1074b3{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x47307c=this['editor']['config']['get']('list.properties'),_0x35c272=this['editor']['plugins']['get']('TrackChangesEditing');_0x47307c['styles']&&_0x35c272['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x47307c['reversed']&&_0x35c272['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x47307c['startIndex']&&_0x35c272['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x35c272['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1d7993,_0xaa891b={}){const _0x35039b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x56b207=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x35039b['markMultiRangeBlockFormat'](_0x56b207,{'commandName':'listStyle','commandParams':[{'type':_0xaa891b['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0xebaeb,_0x30a958={}){const _0x302180=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2d90fe=this['_getSuggestionBlocks'](_0x1cd2c9=>_0x1cd2c9['is']('element','listItem')&&'numbered'===_0x1cd2c9['getAttribute']('listType'));if(_0x2d90fe['length']<0x1)return;const _0x56b43a=_0x2d90fe['map'](_0xdce785=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xdce785,'before'),this['editor']['model']['createPositionAt'](_0xdce785,0x0)));this['editor']['model']['change'](()=>{_0x302180['markMultiRangeBlockFormat'](_0x56b43a,{'commandName':'listReversed','commandParams':[{'reversed':_0x30a958['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x351871,_0x37f5d0={}){const _0xb8722f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4cdf77=this['_getSuggestionBlocks'](_0x591d42=>_0x591d42['is']('element','listItem')&&'numbered'===_0x591d42['getAttribute']('listType'));if(_0x4cdf77['length']<0x1)return;const _0x31f809=_0x4cdf77['map'](_0x230f67=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x230f67,'before'),this['editor']['model']['createPositionAt'](_0x230f67,0x0)));this['editor']['model']['change'](()=>{_0xb8722f['markMultiRangeBlockFormat'](_0x31f809,{'commandName':'listStart','commandParams':[{'startIndex':_0x37f5d0['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0xef8d54){if('formatBlock'!=_0xef8d54['type']&&'formatInline'!=_0xef8d54['type'])return;const _0x1120b7=this['editor']['locale'],{data:_0x16d0f5}=_0xef8d54;if(!_0x16d0f5)return;let _0x40ffd7,_0x595337;switch(_0x16d0f5['commandName']){case'listStyle':_0x40ffd7='*Change\x20to:*\x20%0',_0x595337={'type':'format','content':o(_0x1120b7,_0x40ffd7,o(_0x1120b7,this['_getTranslationKeyForListStyle'](_0x16d0f5['commandParams'][0x0]['type'])))};break;case'listReversed':_0x40ffd7=_0x16d0f5['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x595337={'type':'format','content':o(_0x1120b7,_0x40ffd7)};break;case'listStart':_0x40ffd7='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x595337={'type':'format','content':o(_0x1120b7,_0x40ffd7,_0x16d0f5['commandParams'][0x0]['startIndex'])};}return _0x595337;}['_getSuggestionBlocksForListStyle'](){const _0x448ca2=this['editor']['plugins']['get']('LegacyListUtils');let _0x233d35=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x233d35[0x0]?.['is']('element','listItem')&&_0x233d35['unshift'](..._0x448ca2['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x233d35[_0x233d35['length']-0x1]?.['is']('element','listItem')&&_0x233d35['push'](..._0x448ca2['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x233d35=[...new Set(_0x233d35)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x233d35=_0x233d35['filter'](_0x4a576b=>_0x4a576b['is']('element','listItem'))),_0x233d35;}['_getSuggestionBlocks'](_0x235afe){const _0x1e0cec=this['editor']['plugins']['get']('LegacyListUtils');let _0x352fbf=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x235afe)['map'](_0x2b22c3=>{const _0x33ea2c=this['editor']['model']['createPositionAt'](_0x2b22c3,0x0);return[..._0x1e0cec['getSiblingNodes'](_0x33ea2c,'backward'),..._0x1e0cec['getSiblingNodes'](_0x33ea2c,'forward')];})['flat']();return _0x352fbf=[...new Set(_0x352fbf)],_0x352fbf;}['_getTranslationKeyForListStyle'](_0x53b595){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x53b595)||'default')['toUpperCase']()+'_LIST_'+_0x53b595['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0x1074b3{['afterInit'](){const _0xd057f4=this['editor'];if(!_0xd057f4['plugins']['has']('MediaEmbedEditing'))return;const _0x285aed=_0xd057f4['plugins']['get']('TrackChangesEditing'),_0x4de848=_0xd057f4['locale'];_0x285aed['enableCommand']('mediaEmbed'),_0x285aed['descriptionFactory']['registerElementLabel']('media',_0x1c585b=>o(_0x4de848,'ELEMENT_MEDIA',_0x1c585b)),_0xd057f4['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x13190e,{writer:_0x2635f9,options:_0x567046})=>{if(_0x567046['showSuggestionHighlights'])return _0x2635f9['createEmptyElement']('div');},'converterPriority':'high'}),_0xd057f4['data']['downcastDispatcher']['on']('attribute:url:media',(_0x16b7d4,_0x561d63,_0x33db28)=>{_0x33db28['options']['showSuggestionHighlights']&&_0x16b7d4['stop']();},{'priority':'high'});}}class lt extends _0x1074b3{['afterInit'](){const _0x1f460b=this['editor'];_0x1f460b['plugins']['has']('MentionEditing')&&_0x1f460b['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x1074b3{['afterInit'](){const _0x12e65a=this['editor'];if(!_0x12e65a['plugins']['has']('MergeFieldsEditing'))return;const _0x2ad1ca=_0x12e65a['plugins']['get']('TrackChangesEditing'),_0x22ed5b=_0x12e65a['locale'];_0x2ad1ca['enableCommand']('insertMergeField'),_0x2ad1ca['enableCommand']('insertMergeFieldBlock'),_0x2ad1ca['enableCommand']('insertMergeFieldImage'),_0x2ad1ca['descriptionFactory']['registerElementLabel']('mergeField',_0x57abef=>o(_0x22ed5b,'ELEMENT_MERGE_FIELD',_0x57abef)),_0x2ad1ca['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0xa8592b=>o(_0x22ed5b,'ELEMENT_MERGE_FIELD',_0xa8592b)),_0x2ad1ca['descriptionFactory']['registerDescriptionCallback'](_0x57c593=>{if('insertion'!=_0x57c593['type']&&'deletion'!=_0x57c593['type'])return;const _0x152209=_0x57c593['getContainedElement']();if(null==_0x152209)return;const _0x217485=_0x12e65a['plugins']['get']('MergeFieldsEditing');let _0x56598e;switch(_0x217485['getMergeFieldType'](_0x152209)){case null:return;case'image':{const _0x359b84=_0x217485['unwrapAffixes'](_0x152209['getAttribute']('src'));_0x56598e=_0x217485['getLabel'](_0x359b84)||_0x359b84;break;}default:{const _0x415336=_0x152209['getAttribute']('id');_0x56598e=_0x217485['getLabel'](_0x415336)||_0x415336;break;}}return'insertion'==_0x57c593['type']?{'type':'insertion','content':o(_0x22ed5b,'*Insert:*\x20%0','\x22'+_0x56598e+'\x22\x20'+o(_0x22ed5b,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x22ed5b,'*Remove:*\x20%0','\x22'+_0x56598e+'\x22\x20'+o(_0x22ed5b,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x1074b3{['afterInit'](){const _0x4f5a40=this['editor'],_0x226408=_0x4f5a40['plugins']['get']('TrackChangesEditing');_0x4f5a40['plugins']['has']('MultiLevelList')&&(_0x226408['enableDefaultAttributesIntegration']('multiLevelList'),_0x226408['registerBlockAttribute']('listMarkerStyle'),_0x226408['descriptionFactory']['registerDescriptionCallback'](_0x21ca44=>this['handleDescriptions'](_0x21ca44)));}['handleDescriptions'](_0x2d7058){const _0x114ab0=this['editor']['locale'],{data:_0x475c86}=_0x2d7058,_0x510c65={'type':'format','content':''};if(_0x475c86&&'listMarkerStyle'==_0x475c86['key']){if(!_0x475c86['oldValue'])return{'type':'format','content':o(_0x114ab0,'*Set\x20format:*\x20%0',o(_0x114ab0,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x475c86['newValue']+')'};if(!_0x475c86['newValue']){let _0x2c9ca2=_0x2d7058['head'];for(;_0x2c9ca2;){if(_0x2c9ca2['data']&&'listType'==_0x2c9ca2['data']['key']&&_0x2c9ca2['data']['newValue'])return _0x510c65;_0x2c9ca2=_0x2c9ca2['next'];}return{'type':'format','content':o(_0x114ab0,'*Remove\x20format:*\x20%0',o(_0x114ab0,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x475c86['oldValue']+')'};}}}}class pt extends _0x1074b3{['afterInit'](){const _0x83345d=this['editor'];if(!_0x83345d['plugins']['has']('PageBreakEditing'))return;_0x83345d['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x12dd03=_0x83345d['plugins']['get']('TrackChangesEditing'),_0x2be125=_0x83345d['locale'];_0x12dd03['descriptionFactory']['registerElementLabel']('pageBreak',_0x1eafbe=>o(_0x2be125,'ELEMENT_PAGE_BREAK',_0x1eafbe));}}class kt extends _0x1074b3{['afterInit'](){const _0x2af8a8=this['editor'];if(!_0x2af8a8['plugins']['has']('Paragraph'))return;const _0x4b51e0=_0x2af8a8['locale'],_0x34b121=_0x2af8a8['plugins']['get']('TrackChangesEditing');_0x34b121['descriptionFactory']['registerElementLabel']('paragraph',_0x39e3e7=>o(_0x4b51e0,'ELEMENT_PARAGRAPH',_0x39e3e7)),_0x34b121['enableDefaultAttributesIntegration']('paragraph'),_0x34b121['enableCommand']('insertParagraph'),_0x2af8a8['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x2af8a8),{'priority':'highest'}),_0x2af8a8['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3ebe41,_0x1ec73b,_0x2aa617)=>{_0x2aa617['options']['showSuggestionHighlights']&&nr(_0x2af8a8,{'showActiveMarker':!0x1})(_0x3ebe41,_0x1ec73b,_0x2aa617);},{'priority':'highest'});const _0x1eada6=_0x34b121['descriptionFactory'];_0x1eada6['registerDescriptionCallback'](_0x1de903=>{if('insertion'!==_0x1de903['type'])return;const {start:_0x4e2cad,end:_0x5c6667}=_0x1de903['getFirstRange']();if(!_0x4e2cad['isTouching'](_0x5c6667)||!_0x4e2cad['nodeAfter'])return;const _0x29a965=_0x2af8a8['model']['schema'],_0x268312=_0x4e2cad['nodeAfter'];return _0x29a965['isBlock'](_0x268312)&&!_0x29a965['isLimit'](_0x268312)&&_0x29a965['checkChild'](_0x268312,'$text')?{'type':'insertion','content':o(_0x4b51e0,'*Insert:*\x20%0',_0x1eada6['getItemLabel'](_0x268312,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x262efe=this['editor'],_0x2d6f67=_0x262efe['locale'];_0x262efe['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b1544=>{if('formatBlock'!=_0x5b1544['type'])return;const {data:_0x226a50}=_0x5b1544;return _0x226a50&&'paragraph'==_0x226a50['commandName']?{'type':'format','content':o(_0x2d6f67,'*Change\x20to:*\x20%0',o(_0x2d6f67,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x3caf2c,{showActiveMarker:_0x58ab84=!0x0}={}){return(_0x5974dc,_0x3b800f,_0x58c99b)=>{const _0x5aa9cd=_0x3caf2c['plugins']['get']('TrackChangesEditing'),_0xb03c5e=_0x3b800f['markerRange']['start'],_0x9167f0=_0x3b800f['markerRange']['end'],_0x547a17=_0x3caf2c['model']['schema'];if(!_0xb03c5e['isTouching'](_0x9167f0)||!_0xb03c5e['nodeAfter'])return;const _0x30da74=_0xb03c5e['nodeAfter'];if(_0x547a17['isBlock'](_0x30da74)&&!_0x547a17['isLimit'](_0x30da74)&&_0x547a17['checkChild'](_0x30da74,'$text')){if(!_0x58c99b['consumable']['consume'](_0x3b800f['markerRange'],_0x5974dc['name']))return;const {id:_0x54c32c,authorId:_0x4c3894}=_0x5aa9cd['_splitMarkerName'](_0x3b800f['markerName']),_0x23ee14=_0x58c99b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x54c32c,'data-author-id':_0x4c3894}),_0x4755ad=_0x58c99b['mapper']['toViewPosition'](_0x9167f0);_0x58ab84&&_0x5aa9cd['activeMarkers']['includes'](_0x3b800f['markerName'])&&_0x58c99b['writer']['addClass']('ck-suggestion-marker--active',_0x23ee14),_0x58c99b['writer']['insert'](_0x4755ad,_0x23ee14),_0x58c99b['mapper']['bindElementToMarker'](_0x23ee14,_0x3b800f['markerName']);}};}class wt extends _0x1074b3{['afterInit'](){const _0x39d4a0=this['editor'];_0x39d4a0['commands']['get']('replaceSource')&&_0x39d4a0['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0x1074b3{['afterInit'](){const _0x29bbf8=this['editor'];if(!_0x29bbf8['plugins']['has']('RemoveFormatEditing'))return;_0x29bbf8['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d3643=this['editor'];_0x5d3643['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xbd81c8=>{if('formatBlock'!=_0xbd81c8['type']&&'formatInline'!=_0xbd81c8['type'])return;const {data:_0x20b0c3}=_0xbd81c8;return _0x20b0c3&&'removeFormat'==_0x20b0c3['commandName']?{'type':'format','content':o(_0x5d3643['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x1074b3{['afterInit'](){const _0x5050ff=this['editor'];if(!_0x5050ff['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x2c09c6=_0x5050ff['plugins']['get']('TrackChangesEditing');_0x2c09c6['enableCommand']('goToPreviousRestrictedEditingException'),_0x2c09c6['enableCommand']('goToNextRestrictedEditingException');const _0x2d1be1=_0x5050ff['plugins']['get']('RestrictedEditingModeEditing');_0x2d1be1['enableCommand']('trackChanges'),_0x2d1be1['enableCommand']('acceptSuggestion'),_0x2d1be1['enableCommand']('discardSuggestion'),_0x2d1be1['enableCommand']('acceptAllSuggestions'),_0x2d1be1['enableCommand']('discardAllSuggestions'),_0x2d1be1['enableCommand']('acceptSelectedSuggestions'),_0x2d1be1['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x1074b3{['afterInit'](){const _0x5d2838=this['editor'];if(!_0x5d2838['plugins']['has']('ShiftEnter'))return;const _0x3e22fe=_0x5d2838['plugins']['get']('TrackChangesEditing');_0x3e22fe['enableCommand']('shiftEnter'),_0x5d2838['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x5d2838),{'priority':'high'}),_0x5d2838['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x5d2838),{'priority':'high'}),_0x5d2838['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1451e9,_0x1bf71a,_0x1b25ce)=>{_0x1b25ce['options']['showSuggestionHighlights']&&je(_0x5d2838,{'showActiveMarker':!0x1})(_0x1451e9,_0x1bf71a,_0x1b25ce);}),_0x3e22fe['descriptionFactory']['registerElementLabel']('softBreak',_0x226565=>o(_0x5d2838['locale'],'ELEMENT_LINE_BREAK',_0x226565));}}function je(_0x526629,{showActiveMarker:_0x3bcf48=!0x0}={}){return(_0x4b8f67,_0xa65f5c,_0x25f4cb)=>{const _0x4a6914=_0x526629['plugins']['get']('TrackChangesEditing');if(!_0x25f4cb['consumable']['test'](_0xa65f5c['markerRange'],_0x4b8f67['name']))return;const _0x413e33=_0x526629['model'];for(const _0xf54d7c of _0xa65f5c['markerRange']['getItems']()){if(!_0xf54d7c['is']('element','softBreak'))continue;const _0x3b49fd='deletion'==_0xa65f5c['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x104b49,authorId:_0x87991}=_0x4a6914['_splitMarkerName'](_0xa65f5c['markerName']),_0x4c81a0=_0x25f4cb['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3b49fd,'data-suggestion':_0x104b49,'data-author-id':_0x87991}),_0x3afdbb=_0x25f4cb['mapper']['toViewPosition'](_0x413e33['createPositionBefore'](_0xf54d7c));_0x3bcf48&&_0x4a6914['activeMarkers']['includes'](_0xa65f5c['markerName'])&&_0x25f4cb['writer']['addClass']('ck-suggestion-marker--active',_0x4c81a0),_0x25f4cb['writer']['insert'](_0x3afdbb,_0x4c81a0),_0x25f4cb['mapper']['bindElementToMarker'](_0x4c81a0,_0xa65f5c['markerName']);}};}class St extends _0x1074b3{['afterInit'](){const _0xded0b9=this['editor'],_0x2463b0=_0xded0b9['model'],_0x53b20d=_0xded0b9['locale'];if(!_0xded0b9['plugins']['has']('StandardEditingModeEditing'))return;const _0x4e339e=_0xded0b9['plugins']['get']('TrackChangesEditing'),_0x47db19='restrictedEditingException',_0x17ba44=_0xded0b9['commands']['get'](_0x47db19);_0x4e339e['enableCommand'](_0x47db19,(_0x2f2899,_0x24f50a={})=>{const _0x38c73a=_0x2463b0['document']['selection'];if(_0x38c73a['isCollapsed'])return void _0x2f2899(_0x24f50a);const _0x44cb8c=void 0x0!==_0x24f50a['forceValue']?_0x24f50a['forceValue']:!_0x17ba44['value'];_0x2463b0['change'](()=>{const _0x29e6c7=Array['from'](_0x38c73a['getRanges']());for(const _0x170dd2 of _0x29e6c7){const _0x1e683f=_0x44cb8c?[_0x170dd2]:io(_0x47db19,_0x170dd2,_0x2463b0);for(const _0x3b65ae of _0x1e683f)_0x4e339e['markInlineFormat'](_0x3b65ae,{'commandName':_0x47db19,'commandParams':[{'forceValue':_0x44cb8c}]});}});}),_0x4e339e['descriptionFactory']['registerDescriptionCallback'](_0x5be415=>{if('formatBlock'!=_0x5be415['type']&&'formatInline'!=_0x5be415['type'])return;const {data:_0xea807a}=_0x5be415;return _0xea807a&&_0xea807a['commandName']==_0x47db19?_0xea807a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x53b20d,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x53b20d,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x1074b3{['afterInit'](){const _0x288f0c=this['editor'];if(!_0x288f0c['plugins']['has']('Style')||!_0x288f0c['plugins']['has']('DataSchema'))return;const _0x1f34cf=_0x288f0c['plugins']['get']('TrackChangesEditing'),_0x56e988=_0x288f0c['locale'],_0x3f2811=_0x288f0c['config']['get']('style')||{},_0x5f0571=_0x288f0c['plugins']['get']('GeneralHtmlSupport'),_0x36ed11=_0x288f0c['plugins']['get']('StyleUtils')['normalizeConfig'](_0x288f0c['plugins']['get']('DataSchema'),_0x3f2811['definitions']);_0x1f34cf['enableDefaultAttributesIntegration']('style');const _0x2fafcd=new Set();for(const _0xfcb755 of _0x36ed11['block']){const _0x343ec6=_0x5f0571['getGhsAttributeNameForElement'](_0xfcb755['element']);_0x2fafcd['add'](_0x343ec6);}const _0x186fe1=new Set();for(const _0x192d54 of _0x36ed11['inline']){const _0x34507a=_0x5f0571['getGhsAttributeNameForElement'](_0x192d54['element']);_0x186fe1['add'](_0x34507a);for(const _0xa841ba of _0x192d54['ghsAttributes'])_0x186fe1['add'](_0xa841ba);}for(const _0x3d3670 of _0x2fafcd)_0x1f34cf['registerBlockAttribute'](_0x3d3670),_0x1f34cf['descriptionFactory']['registerAttributeLabel'](_0x3d3670,o(_0x56e988,'FORMAT_STYLE'));for(const _0x1a3a24 of _0x186fe1)_0x1f34cf['registerInlineAttribute'](_0x1a3a24),_0x1f34cf['descriptionFactory']['registerAttributeLabel'](_0x1a3a24,o(_0x56e988,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x23aee7=this['editor'],_0xc9986a=_0x23aee7['locale'];_0x23aee7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29a80a=>{if('formatBlock'!=_0x29a80a['type']&&'formatInline'!=_0x29a80a['type'])return;const {data:_0x2d7a29}=_0x29a80a;return _0x2d7a29&&'style'===_0x2d7a29['commandName']?_0x2d7a29['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xc9986a,'*Set\x20format:*\x20%0',_0x2d7a29['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0xc9986a,'*Remove\x20format:*\x20%0',_0x2d7a29['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0x1074b3{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x59cd06){super(_0x59cd06),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x14d3c3=this['editor'],_0x56e139=_0x14d3c3['model']['document']['selection'];if(!_0x14d3c3['plugins']['has']('TableEditing'))return;const _0x5d6b48=_0x14d3c3['locale'],_0x4cfe54=_0x14d3c3['plugins']['get']('TrackChangesEditing'),_0x4028bc=_0x14d3c3['plugins']['get']('TableUtils');_0x4cfe54['descriptionFactory']['registerElementLabel']('table',_0x5ecc08=>o(_0x5d6b48,'ELEMENT_TABLE',_0x5ecc08)),this['_setupColumnsRowsFixing'](),_0x4cfe54['enableCommand']('insertTable'),_0x4cfe54['enableCommand']('selectTableRow'),_0x4cfe54['enableCommand']('selectTableColumn');for(const _0x45aa75 of['insertTableRowAbove','insertTableRowBelow']){const _0x59013f=_0x14d3c3['commands']['get'](_0x45aa75);_0x4cfe54['enableCommand'](_0x45aa75,_0x51f1a3=>{_0x14d3c3['model']['change'](_0x2bce05=>{_0x51f1a3();const _0x26c5ec='above'===_0x59013f['order'],_0x271b0c=_0x4028bc['getSelectionAffectedTableCells'](_0x56e139),_0x4ec1e9=_0x4028bc['getRowIndexes'](_0x271b0c),_0x2184fe=_0x26c5ec?_0x4ec1e9['first']-0x1:_0x4ec1e9['last']+0x1,_0x52fac3=_0x271b0c[0x0]['findAncestor']('table'),_0x5d2a98=_0x4028bc['createTableWalker'](_0x52fac3,{'startRow':_0x2184fe,'endRow':_0x2184fe}),_0xb14633=Array['from'](_0x5d2a98)['map'](_0x3a32df=>_0x2bce05['createRangeOn'](_0x3a32df['cell']));_0x4cfe54['markMultiRangeInsertion'](_0xb14633,'tableRow');});});}for(const _0x40eaf8 of['insertTableColumnLeft','insertTableColumnRight']){const _0xb03c22=_0x14d3c3['commands']['get'](_0x40eaf8);_0x4cfe54['enableCommand'](_0x40eaf8,_0x470e75=>{_0x14d3c3['model']['change'](_0x7977c6=>{_0x470e75();const _0x30f23e='left'===_0xb03c22['order'],_0x2a9a2e=_0x4028bc['getSelectionAffectedTableCells'](_0x56e139),_0x37c135=_0x4028bc['getColumnIndexes'](_0x2a9a2e),_0x270bad=_0x30f23e?_0x37c135['first']-0x1:_0x37c135['last']+0x1,_0x443a31=_0x2a9a2e[0x0]['findAncestor']('table'),_0xb88e6f=_0x4028bc['createTableWalker'](_0x443a31,{'startRow':0x0,'column':_0x270bad,'includeAllSlots':!0x1}),_0x51b2da=Array['from'](_0xb88e6f)['map'](_0x1f04b0=>_0x7977c6['createRangeOn'](_0x1f04b0['cell']));_0x4cfe54['markMultiRangeInsertion'](_0x51b2da,'tableColumn');});});}for(const _0x11fb23 of['removeTableRow','removeTableColumn']){const _0x576f0f=_0x11fb23['substr'](0xb),_0x2413f7=_0x576f0f['toLowerCase'](),_0x5a15de=_0x2413f7['substr'](0x0,0x3)+'span',_0x41621e='table'+_0x576f0f,_0x141007='min'+_0x576f0f,_0x258e47='max'+_0x576f0f;_0x4cfe54['enableCommand'](_0x11fb23,()=>{_0x14d3c3['model']['change'](_0x3219b2=>{const _0x5f4674=_0x4028bc['getSelectionAffectedTableCells'](_0x56e139),_0x2ccd79=_0x5f4674[0x0]['findAncestor']('table');let _0x411a1e;if('removeTableRow'==_0x11fb23){const _0x122e02=_0x4028bc['getRowIndexes'](_0x5f4674);_0x411a1e={'startRow':_0x122e02['first'],'endRow':_0x122e02['last'],'includeAllSlots':!0x0};}else{const _0x3308c0=_0x4028bc['getColumnIndexes'](_0x5f4674);_0x411a1e={'startColumn':_0x3308c0['first'],'endColumn':_0x3308c0['last'],'includeAllSlots':!0x0};}const _0xb348c8=_0x4028bc['createTableWalker'](_0x2ccd79,_0x411a1e),_0xd1cac0=Array['from'](_0xb348c8)['map'](({cell:_0x195225})=>_0x195225),_0x18bbf7=Ne(_0xd1cac0['filter'](_0x3915e3=>_0x3915e3['hasAttribute'](_0x5a15de))),_0x9e471d=Ne(_0xd1cac0['filter'](_0x113cb0=>!_0x113cb0['hasAttribute'](_0x5a15de)))['map'](_0x47d278=>_0x3219b2['createRangeOn'](_0x47d278)),_0x4f169c=_0x4cfe54['markMultiRangeDeletion'](_0x9e471d,_0x41621e);if(_0x4f169c&&('tableRow'==_0x4f169c['subType']||'tableColumn'==_0x4f169c['subType'])){const _0x510153=this['_getSuggestionCoords'](_0x4f169c);for(const _0xa57e9f of _0x18bbf7){const _0x487d93=_0x3219b2['createRangeOn'](_0xa57e9f),_0x1db48d=_0x4028bc['getCellLocation'](_0xa57e9f),_0x3c3a56=_0xa57e9f['getAttribute'](_0x5a15de)-0x1,_0x339f45=_0x510153[_0x141007],_0x2de244=_0x510153[_0x258e47];_0x339f45<=_0x1db48d[_0x2413f7]&&_0x1db48d[_0x2413f7]+_0x3c3a56<=_0x2de244&&_0x4f169c['addRange'](_0x487d93);}}});});}function _0x48b129(_0x4a765e){const _0x33735a=Array['from'](_0x56e139['getRanges']())['map'](_0x398581=>_0x28f293['fromRange'](_0x398581));_0x14d3c3['model']['change'](_0x8d93ec=>{const _0x1aa696=_0x8d93ec['batch'];_0x4a765e=_0x4a765e['filter'](_0x479826=>'$graveyard'!=_0x479826['root']['rootName']),_0x8d93ec['setSelection'](_0x4a765e),_0x14d3c3['commands']['get']('removeTableRow')['refresh'](),_0x14d3c3['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x14d3c3['model']['enqueueChange'](()=>{_0x14d3c3['model']['enqueueChange'](_0x1aa696,_0x620b2d=>{const _0x5e7fdf=_0x33735a['filter'](_0x422f4b=>'$graveyard'!=_0x422f4b['root']['rootName']);_0x5e7fdf['length']>0x0&&_0x620b2d['setSelection'](_0x5e7fdf);for(const _0xcbb795 of _0x33735a)_0xcbb795['detach']();});});});}function _0x4c1962(_0x3031c8){_0x14d3c3['model']['change'](_0x530a0a=>{const _0x7b46c3=Array['from'](_0x56e139['getRanges']())['map'](_0x182a34=>_0x28f293['fromRange'](_0x182a34)),_0x1a8210=[];for(const _0x5848c4 of _0x3031c8)for(const _0xe91a70 of _0x5848c4['getItems']({'shallow':!0x0}))_0x1a8210['push'](_0xe91a70);for(const _0x354c40 of _0x1a8210)'$graveyard'!=_0x354c40['root']['rootName']&&(_0x530a0a['setSelection'](_0x530a0a['createPositionAt'](_0x354c40,0x0)),_0x14d3c3['commands']['get']('removeTableColumn')['refresh'](),_0x14d3c3['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x59b4b7=_0x7b46c3['filter'](_0x28ef7a=>'$graveyard'!=_0x28ef7a['root']['rootName']);_0x59b4b7['length']>0x0&&_0x530a0a['setSelection'](_0x59b4b7);for(const _0x50f95e of _0x7b46c3)_0x50f95e['detach']();});}function _0x2369ef(_0x366143,_0xc43194){return _0xc43194['every'](_0x139c7c=>_0x366143['some'](_0xe1572b=>_0xe1572b['end']['isEqual'](_0x139c7c['start'])||_0x139c7c['end']['isEqual'](_0xe1572b['start'])));}function _0x198d58(_0x5cb088,_0x3e6e01){return!_0x5cb088['some'](_0x25353f=>_0x3e6e01['some'](_0x52fca0=>_0x25353f['isIntersecting'](_0x52fca0)))&&_0x5cb088['some'](_0x256a47=>_0x3e6e01['some'](_0x611f5e=>_0x256a47['end']['isTouching'](_0x611f5e['start'])));}_0x14d3c3['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x48d06e,_0x4b5c66,_0x196aeb)=>{if(!_0x196aeb['options']['showSuggestionHighlights'])return;const _0x431731=_0x4b5c66['item'];if(!_0x431731||!_0x431731['is']('element','tableCell'))return;const _0x3eb63b=_0x196aeb['mapper']['toViewElement'](_0x431731);if(_0x3eb63b){const {id:_0x1fabfd,authorId:_0x433490}=_0x4cfe54['_splitMarkerName'](_0x4b5c66['markerName']);_0x30ec20(_0x3eb63b,_0x196aeb['writer'],(_0x2bf0e1,_0x131ca8,_0x47d742)=>{_0x47d742['addClass'](_0x8efbf8(_0x131ca8['classes']),_0x2bf0e1),_0x47d742['setAttribute']('data-suggestion-id',_0x1fabfd,_0x2bf0e1),_0x47d742['setAttribute']('data-author-id',_0x433490,_0x2bf0e1);},(_0x1bcb76,_0x14f72f,_0x1d209a)=>{_0x1d209a['removeClass'](_0x8efbf8(_0x14f72f['classes']),_0x1bcb76),_0x1d209a['removeAttribute']('data-suggestion-id',_0x1bcb76),_0x1d209a['removeAttribute']('data-author-id',_0x1bcb76);});}},{'priority':'highest'}),_0x4cfe54['descriptionFactory']['registerDescriptionCallback'](_0x22e3da=>{if('insertion'!=_0x22e3da['type']&&'deletion'!=_0x22e3da['type'])return;const _0x1b7348=_0x22e3da['getContainedElement']();if(null!=_0x1b7348&&_0x1b7348['is']('element','table')){if('insertion'==_0x22e3da['type']){const _0x28b56e=_0x22e3da['getItems']()['filter'](_0x187ca7=>_0x187ca7['is']('$textProxy'))['map'](_0x40eaa3=>_0x40eaa3['data']);if(_0x28b56e['length'])return{'type':'insertion','content':o(_0x5d6b48,'*Insert:*\x20%0',o(_0x5d6b48,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x28b56e['join']('\x20')+'\x22'))};}if('deletion'==_0x22e3da['type']){const _0x21aeb3=_0x22e3da['getItems']()['filter'](_0x114198=>_0x114198['is']('$textProxy'))['map'](_0x1ebd70=>_0x1ebd70['data']);if(_0x21aeb3['length'])return{'type':'deletion','content':o(_0x5d6b48,'*Remove:*\x20%0',o(_0x5d6b48,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x21aeb3['join']('\x20')+'\x22'))};}}}),_0x4cfe54['descriptionFactory']['registerDescriptionCallback'](_0x27f7ae=>{if('tableRow'==_0x27f7ae['subType']){const _0x92c7e4=_0x27f7ae['getItems']()['filter'](_0xba38b3=>_0xba38b3['is']('$textProxy'))['map'](_0xb86ff5=>_0xb86ff5['data']),_0x1430d4=this['_getSuggestionCoords'](_0x27f7ae),_0x151cdf=_0x1430d4['maxRow']-_0x1430d4['minRow']+0x1;if('insertion'==_0x27f7ae['type'])return _0x92c7e4['length']?{'type':'insertion','content':o(_0x5d6b48,'*Insert:*\x20%0',o(_0x5d6b48,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x151cdf,'\x22'+_0x92c7e4['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5d6b48,'*Insert:*\x20%0',o(_0x5d6b48,'ELEMENT_TABLE_ROW',_0x151cdf))};if('deletion'==_0x27f7ae['type'])return _0x92c7e4['length']?{'type':'deletion','content':o(_0x5d6b48,'*Remove:*\x20%0',o(_0x5d6b48,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x151cdf,'\x22'+_0x92c7e4['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5d6b48,'*Remove:*\x20%0',o(_0x5d6b48,'ELEMENT_TABLE_ROW',_0x151cdf))};}if('tableColumn'==_0x27f7ae['subType']){const _0x316e09=_0x27f7ae['getItems']()['filter'](_0x51194a=>_0x51194a['is']('$textProxy'))['map'](_0x202134=>_0x202134['data']),_0x4709e6=this['_getSuggestionCoords'](_0x27f7ae),_0x485f61=_0x4709e6['maxColumn']-_0x4709e6['minColumn']+0x1;if('insertion'==_0x27f7ae['type'])return _0x316e09['length']?{'type':'insertion','content':o(_0x5d6b48,'*Insert:*\x20%0',o(_0x5d6b48,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x485f61,'\x22'+_0x316e09['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5d6b48,'*Insert:*\x20%0',o(_0x5d6b48,'ELEMENT_TABLE_COLUMN',_0x485f61))};if('deletion'==_0x27f7ae['type'])return _0x316e09['length']?{'type':'deletion','content':o(_0x5d6b48,'*Remove:*\x20%0',o(_0x5d6b48,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x485f61,'\x22'+_0x316e09['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5d6b48,'*Remove:*\x20%0',o(_0x5d6b48,'ELEMENT_TABLE_COLUMN',_0x485f61))};}}),_0x4cfe54['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x48b129),_0x4cfe54['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x48b129),_0x4cfe54['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x4c1962),_0x4cfe54['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x4c1962),_0x4cfe54['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2369ef),_0x4cfe54['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2369ef),_0x4cfe54['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x198d58),_0x4cfe54['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x198d58);}['_acceptFormatSuggestionCallbackFactory'](){const _0x2fc225=this['editor'],_0x4f7706=_0x2fc225['model']['document']['selection'];return(_0x4bfac2,_0x52b799)=>{_0x2fc225['model']['change'](_0x2bdd9e=>{const {commandName:_0x1f5883,commandParams:_0x12675f}=_0x52b799;let _0x16c373=_0x4bfac2[0x0]['end']['nodeBefore'];_0x12675f&&_0x12675f[0x0]&&!0x1===_0x12675f[0x0]['forceValue']&&(_0x16c373=_0x4bfac2[0x0]['start']['nodeAfter']);const _0x4b1ddb=_0x2bdd9e['createRangeIn'](_0x16c373);if('$graveyard'==_0x4b1ddb['root']['rootName'])return;const _0x479567=Array['from'](_0x4f7706['getRanges']())['map'](_0x59af0d=>_0x28f293['fromRange'](_0x59af0d));_0x2bdd9e['setSelection'](_0x4b1ddb),_0x2fc225['commands']['get'](_0x1f5883)['refresh'](),_0x12675f['push']({'forceDefaultExecution':!0x0}),_0x2fc225['execute'](_0x1f5883,..._0x12675f);const _0x1d8e19=_0x479567['filter'](_0x5881fc=>'$graveyard'!=_0x5881fc['root']['rootName']);_0x1d8e19['length']>0x0&&_0x2bdd9e['setSelection'](_0x1d8e19);for(const _0x355a61 of _0x479567)_0x355a61['detach']();});};}['_getCoordsForCells'](_0x24b00a){const _0x79a79=this['editor']['plugins']['get']('TableUtils');let _0x10adaa=Number['MAX_SAFE_INTEGER'],_0x1554a1=Number['MIN_SAFE_INTEGER'],_0x5e7c41=Number['MAX_SAFE_INTEGER'],_0x13ee05=Number['MIN_SAFE_INTEGER'];for(const _0x47207f of _0x24b00a){if('$graveyard'==_0x47207f['root']['rootName'])continue;const {row:_0x5cf04a,column:_0x5e60de}=_0x79a79['getCellLocation'](_0x47207f),_0x3bd5a1=_0x47207f['hasAttribute']('rowspan')?_0x47207f['getAttribute']('rowspan')-0x1:0x0,_0x25c8b2=_0x47207f['hasAttribute']('colspan')?_0x47207f['getAttribute']('colspan')-0x1:0x0;_0x10adaa=_0x5cf04a<_0x10adaa?_0x5cf04a:_0x10adaa,_0x1554a1=_0x5cf04a+_0x3bd5a1>_0x1554a1?_0x5cf04a+_0x3bd5a1:_0x1554a1,_0x5e7c41=_0x5e60de<_0x5e7c41?_0x5e60de:_0x5e7c41,_0x13ee05=_0x5e60de+_0x25c8b2>_0x13ee05?_0x5e60de+_0x25c8b2:_0x13ee05;}return{'minRow':_0x10adaa,'maxRow':_0x1554a1,'minColumn':_0x5e7c41,'maxColumn':_0x13ee05};}['_setupColumnsRowsFixing'](){const _0x142c51=this['editor'],_0x2711af=_0x142c51['plugins']['get']('TrackChangesEditing'),_0x1bc41f=_0x142c51['plugins']['get']('TableUtils');_0x142c51['model']['document']['on']('change:data',()=>{const _0x133427=Array['from'](_0x142c51['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x18de0d,data:_0x5356a3}of _0x133427){const {group:_0x280f05,id:_0xdc22a0,subType:_0x366c67}=_0x2711af['_splitMarkerName'](_0x18de0d);if('suggestion'!=_0x280f05)continue;if(null!=_0x5356a3['oldRange'])continue;const _0xdd52f6=_0x2711af['getSuggestion'](_0xdc22a0);this['_tablePostFixingSubtypes']['includes'](_0x366c67)&&this['_tableSuggestions']['add'](_0xdd52f6);}},{'priority':'low'});const _0x2ca35e=(_0x5973e8,_0x78afcf)=>{let _0x497fd6=!0x1;const _0x1a23d9=_0x78afcf['createRangeOn'](_0x5973e8),_0x11dcee=_0x5973e8['findAncestor']('table'),_0x13c737=_0x1bc41f['getCellLocation'](_0x5973e8);for(const _0x46942e of this['_tableSuggestions']){const _0x2ca5fd=_0x46942e['subType'],_0x5c43c1=_0x2ca5fd['startsWith']('tablePaste'),_0x1a4440=_0x2ca5fd['substr'](_0x5c43c1?0xa:0x5),_0x56b115=_0x1a4440['toLowerCase'](),_0x56aa99=_0x56b115['substr'](0x0,0x3)+'span',_0x3d6086='min'+_0x1a4440,_0x153898='max'+_0x1a4440;if(!_0x46942e['isInContent'])continue;if(_0x11dcee!=_0x46942e['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x46942e['isIntersectingWithRange'](_0x1a23d9))continue;const _0x36efc2=_0x5973e8['hasAttribute'](_0x56aa99)?_0x5973e8['getAttribute'](_0x56aa99)-0x1:0x0,_0xfea3b0=this['_getSuggestionCoords'](_0x46942e),_0x75bf0=_0xfea3b0[_0x3d6086],_0x398a9a=_0xfea3b0[_0x153898];_0x75bf0<=_0x13c737[_0x56b115]&&_0x13c737[_0x56b115]+_0x36efc2<=_0x398a9a&&(_0x46942e['addRange'](_0x1a23d9),_0x497fd6=!0x0);}return _0x497fd6;};_0x142c51['model']['document']['registerPostFixer'](_0x17e0dd=>{let _0x1d2e37=!0x1;for(const _0xc1c8bf of _0x142c51['model']['document']['differ']['getChanges']())if('insert'==_0xc1c8bf['type']){if('tableRow'==_0xc1c8bf['name']){for(const _0x4a1da3 of _0xc1c8bf['position']['nodeAfter']['getChildren']())_0x1d2e37=_0x1d2e37||_0x2ca35e(_0x4a1da3,_0x17e0dd);}else'tableCell'==_0xc1c8bf['name']&&(_0x1d2e37=_0x1d2e37||_0x2ca35e(_0xc1c8bf['position']['nodeAfter'],_0x17e0dd));}return _0x1d2e37;});}['_getSuggestionCoords'](_0x1a53c4){return this['_getCoordsForCells'](_0x1a53c4['getRanges']()['map'](_0x1d2be1=>_0x1d2be1['start']['nodeAfter']));}}function Ne(_0x3c6933){return Array['from'](new Set(_0x3c6933)['values']());}class _t extends _0x1074b3{static get['requires'](){return[At];}['afterInit'](){const _0x3ba45e=this['editor'],_0xbadf8=_0x3ba45e['model']['document']['selection'],_0x311070=_0x3ba45e['locale'];if(!_0x3ba45e['plugins']['has']('TableEditing'))return;const _0x5922f0=_0x3ba45e['plugins']['get']('TrackChangesEditing'),_0x4d5a88=_0x3ba45e['plugins']['get']('TableUtils'),_0x423502=_0x3ba45e['plugins']['get'](At);_0x423502['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5922f0['enableCommand']('mergeTableCells',()=>{const _0x18db96=_0x4d5a88['getSelectionAffectedTableCells'](_0x3ba45e['model']['document']['selection']);_0x3ba45e['model']['change'](()=>{_0x5922f0['markMultiRangeBlockFormat'](_0x18db96,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3ba45e['commands']['get']('mergeTableCells')['on']('execute',(_0x20b67c,_0x24cae3)=>{_0x3ba45e['commands']['get']('trackChanges')['value']&&(_0x24cae3['length']>0x0&&_0x24cae3[_0x24cae3['length']-0x1]&&_0x24cae3[_0x24cae3['length']-0x1]['forceDefaultExecution']||_0x5922f0['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x20b67c['stop']());},{'priority':'highest'});for(const _0x1d09e9 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x51c122=_0x3ba45e['commands']['get'](_0x1d09e9);_0x5922f0['enableCommand'](_0x1d09e9,()=>{const _0x5522f3=_0x3ba45e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x41a702=>_0x41a702['is']('element','tableCell')),_0x14923a=_0x51c122['value'];_0x3ba45e['model']['change'](()=>{_0x5922f0['markMultiRangeBlockFormat']([_0x5522f3,_0x14923a],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x5e8966 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x2eec14=_0x3ba45e['commands']['get'](_0x5e8966);_0x5922f0['enableCommand'](_0x5e8966,()=>{const _0x717a9b=_0x4d5a88['getSelectionAffectedTableCells'](_0x3ba45e['model']['document']['selection'])[0x0],_0x581def=_0x717a9b['findAncestor']('table'),{column:_0x507450,row:_0x27ba01}=_0x4d5a88['getCellLocation'](_0x717a9b);let _0x128367=[];if('horizontally'==_0x2eec14['direction']){const _0x3dc8ca=_0x4d5a88['createTableWalker'](_0x581def,{'startRow':_0x27ba01,'endRow':_0x27ba01,'includeAllSlots':!0x0});_0x128367=Array['from'](_0x3dc8ca)['map'](_0x11d5d6=>_0x11d5d6['cell']);}else{const _0x46a6e0=_0x4d5a88['createTableWalker'](_0x581def,{'column':_0x507450,'includeAllSlots':!0x0});_0x128367=Array['from'](_0x46a6e0)['map'](_0x3d5da3=>_0x3d5da3['cell']);}_0x3ba45e['model']['change'](_0x5c2a7c=>{_0x5922f0['markBlockFormat'](_0x5c2a7c['createRangeOn'](_0x717a9b),{'commandName':_0x5e8966,'commandParams':[]},_0x128367,_0x5e8966);});});}_0x5922f0['descriptionFactory']['registerDescriptionCallback'](_0x3e79f3=>{if('formatBlock'!=_0x3e79f3['type']&&'formatInline'!=_0x3e79f3['type'])return;const {data:_0x10b2ea}=_0x3e79f3;return _0x10b2ea&&'mergeTableCells'==_0x10b2ea['commandName']?{'type':'format','content':o(_0x311070,'*Merge\x20cells*')}:void 0x0;}),_0x5922f0['descriptionFactory']['registerDescriptionCallback'](_0x5d07e5=>{if('formatBlock'!=_0x5d07e5['type']&&'formatInline'!=_0x5d07e5['type'])return;const {data:_0x224037}=_0x5d07e5;return _0x224037?'splitTableCellVertically'==_0x224037['commandName']?{'type':'format','content':o(_0x311070,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x224037['commandName']?{'type':'format','content':o(_0x311070,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0xdd85f=_0x423502['_acceptFormatSuggestionCallbackFactory']();for(const _0x1c9a9f of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5922f0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1c9a9f,'accept',_0xdd85f);for(const _0x11d2d7 of['splitTableCellVertically','splitTableCellHorizontally'])_0x5922f0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x11d2d7,'accept',_0xdd85f);_0x5922f0['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x233c87=>{_0x3ba45e['model']['change'](_0x42c174=>{const _0x4b706a=Array['from'](_0xbadf8['getRanges']())['map'](_0x499a11=>_0x28f293['fromRange'](_0x499a11));_0x42c174['setSelection'](_0x233c87),_0x3ba45e['commands']['get']('mergeTableCells')['refresh'](),_0x3ba45e['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5cd426=_0x4b706a['filter'](_0x303ba8=>'$graveyard'!=_0x303ba8['root']['rootName']);_0x5cd426['length']>0x0&&_0x42c174['setSelection'](_0x5cd426);for(const _0x30ec81 of _0x4b706a)_0x30ec81['detach']();});});for(const _0x201b31 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x56ddb6=_0x3ba45e['commands']['get'](_0x201b31);_0x56ddb6['on']('set:isEnabled',(_0xc098bf,_0x10866e,_0x455644)=>{if(_0x455644){const _0x3b6a51=_0x3ba45e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1d5491=>_0x1d5491['is']('element','tableCell'));this['_areMergableCells'](_0x56ddb6['value'],_0x3b6a51)||(_0xc098bf['return']=!0x1,_0xc098bf['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x3ae824=this['editor']['commands']['get']('mergeTableCells'),_0x434ebf=this['editor']['plugins']['get']('TableUtils');if(!_0x3ae824['isEnabled'])return!0x1;const _0x35c38d=_0x434ebf['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3a5081 of _0x35c38d)for(const _0x57209b of _0x35c38d)if(_0x3a5081!=_0x57209b&&!this['_areMergableCells'](_0x3a5081,_0x57209b))return!0x1;return!0x0;}['_areMergableCells'](_0xb1acab,_0x531ba6){const _0x141b4f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2304ec=this['editor']['model']['createRangeOn'](_0xb1acab),_0x2116a1=this['editor']['model']['createRangeOn'](_0x531ba6),_0x1996ef=new Set(),_0x1f77a7=new Set();for(const _0x4b3050 of _0x141b4f['getSuggestions']())if(('insertion'==_0x4b3050['type']||'deletion'==_0x4b3050['type']||'mergeTableCells'==_0x4b3050['subType'])&&_0x4b3050['isInContent']){for(const _0x2efdcd of _0x4b3050['getRanges']())_0x2efdcd['containsRange'](_0x2304ec,!0x0)&&_0x1996ef['add'](_0x4b3050['type']+':'+_0x4b3050['author']['id']),_0x2efdcd['containsRange'](_0x2116a1,!0x0)&&_0x1f77a7['add'](_0x4b3050['type']+':'+_0x4b3050['author']['id']);}if(_0x1996ef['size']!=_0x1f77a7['size'])return!0x1;for(const _0xf26da8 of _0x1996ef)if(!_0x1f77a7['has'](_0xf26da8))return!0x1;return!0x0;}}class Ct extends _0x1074b3{static get['requires'](){return[At];}['afterInit'](){const _0x3c15e2=this['editor'];if(!_0x3c15e2['plugins']['has']('TableEditing'))return;const _0x459726=_0x3c15e2['locale'],_0x4104b4=_0x3c15e2['plugins']['get']('TrackChangesEditing');_0x4104b4['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x4104b4['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x4104b4['registerBlockAttribute']('headingRows'),_0x4104b4['registerBlockAttribute']('headingColumns'),_0x4104b4['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x459726,'FORMAT_HEADER_ROW')),_0x4104b4['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x459726,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4f50d8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x578813=this['editor']['plugins']['get']('TableUtils'),_0x79ac10=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x3a4c46({showActiveMarker:_0x1a92fd=!0x0,setDataAttribute:_0xdcebc1=!0x0}={}){return(_0x249d33,_0x30a8ff,_0x294ffc)=>{const {type:_0xd59c26,id:_0x3a746a}=_0x4f50d8['_splitMarkerName'](_0x30a8ff['markerName']),_0x10cdf2=_0x4f50d8['getSuggestion'](_0x3a746a),_0x112179=_0x10cdf2['data'];if('formatBlock'!=_0x10cdf2['type']||!_0x112179||'setTableColumnHeader'!=_0x112179['commandName'])return;if(_0x30a8ff['item'])return void _0x249d33['stop']();if(!_0x294ffc['consumable']['consume'](_0x30a8ff['markerRange'],_0x249d33['name']))return;const _0x5aa17c=_0x30a8ff['markerRange']['start']['nodeAfter'],_0xe6990a=_0x30a8ff['markerRange']['end']['nodeBefore'],_0x493b32=_0x5aa17c['parent']['parent'],{column:_0xc8fc0d}=_0x578813['getCellLocation'](_0x5aa17c),{column:_0x28409a}=_0x578813['getCellLocation'](_0xe6990a);for(let _0x3dbe3d=_0xc8fc0d;_0x3dbe3d<=_0x28409a;_0x3dbe3d++){const _0x191456=_0x578813['createTableWalker'](_0x493b32,{'column':_0x3dbe3d,'includeAllSlots':!0x1});for(const _0x27b9fd of _0x191456){const _0x4e35d9=_0x27b9fd['cell'],_0xd0c132=_0x294ffc['mapper']['toViewElement'](_0x4e35d9);_0x294ffc['writer']['addClass']('ck-suggestion-marker-'+_0xd59c26,_0xd0c132),_0xdcebc1&&_0x294ffc['writer']['setAttribute']('data-suggestion',_0x3a746a,_0xd0c132),_0x294ffc['mapper']['bindElementToMarker'](_0xd0c132,_0x30a8ff['markerName']),_0x1a92fd&&(_0x4f50d8['activeMarkers']['includes'](_0x30a8ff['markerName'])?_0x294ffc['writer']['addClass']('ck-suggestion-marker--active',_0xd0c132):_0x294ffc['writer']['removeClass']('ck-suggestion-marker--active',_0xd0c132));}}};}_0x4f50d8['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x79ac10),_0x4f50d8['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x79ac10),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3a4c46(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5edc19,_0x5e0d8e,_0x672887)=>{_0x672887['options']['showSuggestionHighlights']&&_0x3a4c46({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5edc19,_0x5e0d8e,_0x672887);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x31aeeb,_0x69077e,_0x250a6a)=>{const {type:_0xc38af4,id:_0xae436c}=_0x4f50d8['_splitMarkerName'](_0x69077e['markerName']),_0x233b67=_0x4f50d8['getSuggestion'](_0xae436c),_0x5cd75b=_0x233b67['data'];if('formatBlock'!=_0x233b67['type']||!_0x5cd75b||'setTableColumnHeader'!=_0x5cd75b['commandName'])return;const _0x305819=_0x250a6a['mapper']['markerNameToElements'](_0x69077e['markerName']);if(_0x305819){for(const _0xa9bc3d of _0x305819)_0x250a6a['writer']['removeClass']('ck-suggestion-marker-'+_0xc38af4,_0xa9bc3d),_0x250a6a['writer']['removeClass']('ck-suggestion-marker--active',_0xa9bc3d),_0x250a6a['writer']['removeAttribute']('data-suggestion',_0xa9bc3d),_0x250a6a['mapper']['unbindElementFromMarkerName'](_0xa9bc3d,_0x69077e['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x22dc9c=this['editor'],_0xa0a2ea=_0x22dc9c['locale'];function _0x43e58b(_0x29c202){return{'type':'format','content':o(_0xa0a2ea,'*Format:*\x20%0',_0x29c202)};}_0x22dc9c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f9005=>{if('formatBlock'!=_0x3f9005['type'])return;const {data:_0x22cbaf}=_0x3f9005;if(_0x22cbaf){if('setTableRowHeader'==_0x22cbaf['commandName']){const _0x4bf0da=_0x22cbaf['commandParams'][0x0]['forceValue'];return _0x43e58b(o(_0xa0a2ea,_0x4bf0da?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x22cbaf['commandName']){const _0x5413d5=_0x22cbaf['commandParams'][0x0]['forceValue'];return _0x43e58b(o(_0xa0a2ea,_0x5413d5?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0x1074b3{['afterInit'](){const _0x50342c=this['editor'],_0x5627bc=_0x50342c['locale'],_0x4268c2=_0x50342c['plugins']['get']('TrackChangesEditing');function _0x96e6a5(_0x310104){return{'type':'format','content':''+o(_0x5627bc,'*Set\x20table\x20type:*\x20%0',_0x310104)};}_0x50342c['plugins']['has']('TableLayout')&&(_0x4268c2['enableCommand']('insertTableLayout'),_0x4268c2['enableDefaultAttributesIntegration']('tableType'),_0x4268c2['registerBlockAttribute']('tableType'),_0x4268c2['descriptionFactory']['registerElementLabel'](_0x29e233=>_0x29e233['is']('element','table')&&'layout'===_0x29e233['getAttribute']('tableType'),_0x3be6f7=>o(_0x5627bc,'ELEMENT_LAYOUT_TABLE',_0x3be6f7)),_0x4268c2['descriptionFactory']['registerDescriptionCallback'](_0x110e57=>{const {data:_0xfbd6f7}=_0x110e57;if(_0xfbd6f7&&'tableType'==_0xfbd6f7['key'])switch(_0xfbd6f7['newValue']){case'layout':return _0x96e6a5(o(_0x5627bc,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x96e6a5(o(_0x5627bc,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](Be['map'](_0x220371=>[_0x220371,null]));class Nt extends _0x1074b3{static get['requires'](){return[At];}['afterInit'](){const _0x3dc3c6=this['editor'];if(!_0x3dc3c6['plugins']['has']('TableClipboard'))return;const _0x2144ed=_0x3dc3c6['plugins']['get']('TrackChangesEditing'),_0x1366b3=_0x3dc3c6['plugins']['get']('TableUtils'),_0x7444f6=_0x3dc3c6['plugins']['get'](At),_0x47080d=_0x3dc3c6['plugins']['get']('TableClipboard'),_0x33de2c=_0x3dc3c6['plugins']['get']('TableSelection'),_0x276e39=_0x3dc3c6['plugins']['get'](_0x32ad2a);_0x7444f6['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x3dc3c6['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x3dc3c6['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x41891c=null,_0x1e81d4=!0x1;_0x276e39['on']('contentInsertion',(_0x1c648b,_0x4acba6)=>{_0x1e81d4='paste'===_0x4acba6['method'];}),_0x3dc3c6['model']['on']('insertContent',(_0x91f8e9,_0x48d36b)=>{if(!_0x1e81d4&&null===_0x33de2c['getSelectedTableCells']())return;const [_0x4751a1,_0x394d40]=_0x48d36b,_0x4ac856=_0x48d36b[_0x48d36b['length']-0x1];_0x4ac856&&_0x4ac856['forceDefaultExecution']||_0x2144ed['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x9e42f1,_0x2abfab,_0x5b2533,_0x28e283,_0x474b10){if(_0x2abfab&&!_0x2abfab['is']('documentSelection'))return!0x1;const _0x1ea3a2=_0x474b10['getTableIfOnlyTableInContent'](_0x9e42f1,_0x5b2533);if(!_0x1ea3a2||!Ue(_0x1ea3a2,void 0x0,_0x28e283))return!0x1;const _0x3e37c9=_0x28e283['getSelectionAffectedTableCells'](_0x5b2533['document']['selection']);if(!_0x3e37c9['length'])return!0x1;const _0x2e3bad=_0x3e37c9[0x0]['findAncestor']('table'),_0x3affca=_0x28e283['getRowIndexes'](_0x3e37c9),_0x5a883c=_0x28e283['getColumnIndexes'](_0x3e37c9),_0x122c08={'startRow':_0x3affca['first'],'endRow':_0x3affca['last'],'startColumn':_0x5a883c['first'],'endColumn':_0x5a883c['last']};return 0x1==_0x3e37c9['length']&&(_0x122c08['endRow']+=_0x28e283['getRows'](_0x1ea3a2)-0x1,_0x122c08['endColumn']+=_0x28e283['getColumns'](_0x1ea3a2)-0x1),Ue(_0x2e3bad,_0x122c08,_0x28e283);}(_0x4751a1,_0x394d40,_0x3dc3c6['model'],_0x1366b3,_0x47080d)&&(_0x91f8e9['stop'](),_0x41891c={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x3dc3c6['model']['change'](()=>{_0x3dc3c6['model']['insertContent'](_0x48d36b[0x0],_0x48d36b[0x1],_0x48d36b[0x2],{'forceDefaultExecution':!0x0});const _0x407184=_0x2e8cc(),{rowInsertionRanges:_0x31b077,columnInsertionRanges:_0x5d6e6f,insertionRanges:_0x505653,deletionRanges:_0x3d7c63,cells:_0x448564}=_0x41891c;_0x31b077['length']&&_0x2144ed['markMultiRangeInsertion'](_0x31b077,'tablePasteRow',{'tablePasteChainId':_0x407184}),_0x5d6e6f['length']&&_0x2144ed['markMultiRangeInsertion'](_0x5d6e6f,'tablePasteColumn',{'tablePasteChainId':_0x407184}),_0x505653['length']&&(_0x2144ed['markMultiRangeInsertion'](_0x505653,'tablePaste',{'tablePasteChainId':_0x407184,'skipNestingCheck':!0x0}),_0x505653['forEach'](_0x77f609=>_0x77f609['detach']?.())),_0x3d7c63['length']&&(_0x2144ed['markMultiRangeDeletion'](_0x3d7c63,'tablePaste',{'tablePasteChainId':_0x407184,'skipNestingCheck':!0x0}),_0x3d7c63['forEach'](_0x39d770=>_0x39d770['detach']?.()));const _0x4db8c9=_0x2144ed['markMultiRangeBlockFormat'](_0x448564['map'](({element:_0x26c6c1})=>_0x26c6c1),{'formatGroupId':_0x2e8cc()},[],'tablePasteCell',{'tablePasteChainId':_0x407184});if(_0x4db8c9){const _0x4f5a80=_0x4db8c9['getMarkers'](),_0x51bfbf=[];for(const {element:_0x21321a,attributes:_0x945b4b}of _0x448564){if(!_0x945b4b)continue;const _0x3f3b20=_0x3dc3c6['model']['createRangeOn'](_0x21321a),_0x10e6e9=_0x4f5a80['find'](_0x1bed81=>_0x1bed81['getRange']()['isEqual'](_0x3f3b20));_0x10e6e9&&_0x51bfbf['push']([_0x10e6e9['name'],_0x945b4b]);}_0x51bfbf['length']&&_0x4db8c9['setAttribute']('markerAttributes',Object['fromEntries'](_0x51bfbf));}_0x41891c=null;}));},{'priority':_0x2bad7d['high']+0xa}),_0x276e39['on']('contentInsertion',()=>{_0x1e81d4=!0x1;},{'priority':'lowest'}),_0x3dc3c6['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x44a89b,_0x13483f)=>{const [_0x24e3a0,_0x28b77e,,_0x3e5923]=_0x13483f;if(!_0x41891c)return;_0x44a89b['stop']();const _0x408cfc=_0x24e3a0['cell'],_0x8e0db9=_0x28b77e,_0x3e7d92=Oe(_0x408cfc),_0x1de036=Oe(_0x8e0db9);_0x44a89b['return']=_0x408cfc;let _0x13e25a=null,_0x32a61b=null;if(_0x1de036||_0x3e7d92){if(_0x3e7d92&&!_0x1de036){_0x3e5923['remove'](_0x408cfc['getChild'](0x0));for(const _0x5c99f9 of Array['from'](_0x8e0db9['getChildren']()))_0x3e5923['insert'](_0x5c99f9,_0x408cfc,'end');const _0x5bc146=_0x41891c['rowInsertionIndexes']['includes'](_0x24e3a0['row']),_0x518d54=_0x41891c['columnInsertionIndexes']['includes'](_0x24e3a0['column']);_0x5bc146||_0x518d54||(_0x13e25a=_0x28f293['fromRange'](_0x3e5923['createRangeIn'](_0x408cfc)));}else _0x1de036&&!_0x3e7d92&&(_0x32a61b=_0x3e5923['createRangeIn'](_0x408cfc));}else{const _0x48d483=_0x3e5923['createElement']('tableCellSuggestion'),_0x58f947=_0x3e5923['createElement']('tableCellSuggestion');_0x3e5923['wrap'](_0x3e5923['createRangeIn'](_0x408cfc),_0x58f947),_0x3e5923['insert'](_0x48d483,_0x408cfc,0x0);for(const _0x13a963 of Array['from'](_0x8e0db9['getChildren']()))_0x3e5923['insert'](_0x13a963,_0x48d483,'end');_0x13e25a=_0x28f293['fromRange'](_0x3e5923['createRangeOn'](_0x48d483)),_0x32a61b=_0x28f293['fromRange'](_0x3e5923['createRangeOn'](_0x58f947));}const _0x463ea3=Array['from'](_0x8e0db9['getAttributes']())['filter'](([_0x31d29c])=>Be['includes'](_0x31d29c));_0x41891c['cells']['push']({'element':_0x408cfc,'attributes':_0x463ea3['length']?Object['fromEntries'](_0x463ea3):null}),_0x13e25a&&_0x41891c['insertionRanges']['push'](_0x13e25a),_0x32a61b&&_0x41891c['deletionRanges']['push'](_0x32a61b);},{'priority':'high'}),_0x1366b3['on']('insertColumns',(_0x439660,_0x12754b)=>{const [_0x199b67,_0x27cc5b={}]=_0x12754b;if(!_0x41891c)return;const _0x3f1e54=_0x27cc5b['at']||0x0,_0x4d13bd=_0x27cc5b['columns']||0x1;_0x41891c['columnInsertionIndexes']=new Array(_0x4d13bd)['fill'](_0x3f1e54)['map']((_0x492ed1,_0x211de3)=>_0x492ed1+_0x211de3);for(const {cell:_0x1c8de1}of _0x1366b3['createTableWalker'](_0x199b67,{'startColumn':_0x3f1e54,'endColumn':_0x3f1e54+_0x4d13bd-0x1}))_0x41891c['columnInsertionRanges']['push'](_0x3dc3c6['model']['createRangeOn'](_0x1c8de1));},{'priority':'low'}),_0x1366b3['on']('insertRows',(_0x5b1daf,_0x725f48)=>{const [_0x34223a,_0xf36ae0={}]=_0x725f48;if(!_0x41891c)return;const _0x36608b=_0xf36ae0['at']||0x0,_0x43bb7c=_0xf36ae0['rows']||0x1;_0x41891c['rowInsertionIndexes']=new Array(_0x43bb7c)['fill'](_0x36608b)['map']((_0x1ca03f,_0x23d73f)=>_0x1ca03f+_0x23d73f);for(const {cell:_0x40565a}of _0x1366b3['createTableWalker'](_0x34223a,{'startRow':_0x36608b,'endRow':_0x36608b+_0x43bb7c-0x1}))_0x41891c['rowInsertionRanges']['push'](_0x3dc3c6['model']['createRangeOn'](_0x40565a));},{'priority':'low'}),_0x2144ed['descriptionFactory']['registerDescriptionCallback'](_0xb98770=>{if(_0xb98770['subType']&&_0xb98770['subType']['startsWith']('tablePaste'))return _0xb98770['previous']?{}:{'type':'insertion','content':o(_0x3dc3c6['locale'],'*Replace\x20table\x20cells*')};});const _0xa0f13e=()=>!0x1;for(const _0x167dc7 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x2144ed['_suggestionFactory']['registerCustomCallback']('insertion',_0x167dc7,'join',_0xa0f13e),_0x2144ed['_suggestionFactory']['registerCustomCallback']('deletion',_0x167dc7,'join',_0xa0f13e),_0x2144ed['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x167dc7,'join',_0xa0f13e);_0x2144ed['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0xa0f13e),_0x2144ed['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x5a0774,_0x4eb4a7,_0x2d6505)=>{const _0x111a24=_0x5a0774['map'](_0x33b23e=>_0x33b23e['getContainedElement']())['filter'](_0x454a42=>_0x454a42),_0x4f05a3=new Map(_0x111a24['map'](_0x558f53=>[_0x558f53,null]));if(_0x41891c){for(const {element:_0x51cbf7,attributes:_0x2f74fc}of _0x41891c['cells'])_0x2f74fc&&_0x4f05a3['set'](_0x51cbf7,_0x2f74fc);}else{if(_0x2d6505&&_0x2d6505['markerAttributes'])for(const [_0x50db8d,_0x5ada38]of Object['entries'](_0x2d6505['markerAttributes'])){const _0x4b580d=_0x3dc3c6['model']['markers']['get'](_0x50db8d),_0x2310ad=_0x4b580d?_0x4b580d['getRange']()['getContainedElement']():null;_0x2310ad&&_0x4f05a3['set'](_0x2310ad,_0x5ada38);}}_0x3dc3c6['model']['change'](_0xa282a0=>{for(const [_0x5205ac,_0x306a60]of _0x4f05a3)_0xa282a0['setAttributes']({...xe,..._0x306a60},_0x5205ac);});});const _0x49c960=(_0x1adf79,_0x56bede)=>{_0x2144ed['_suggestionFactory']['registerCustomCallback'](_0x1adf79,'tablePaste',_0x56bede,(_0x3cef82,_0x30a918,_0x52d8b4)=>{_0x3dc3c6['model']['change'](_0x16edcd=>{const _0x3a1279=[];for(const _0x48679d of _0x3cef82){const _0x16499c=_0x48679d['start']['nodeAfter'];_0x16499c['is']('element','tableCellSuggestion')&&_0x3a1279['push'](_0x16499c);}_0x2144ed['_suggestionFactory']['getSuggestionCallback'](_0x1adf79,null,_0x56bede)(_0x3cef82,_0x30a918,_0x52d8b4);for(const _0x729982 of _0x3a1279)'$graveyard'!=_0x729982['root']['rootName']&&_0x16edcd['unwrap'](_0x729982);});});};_0x49c960('insertion','accept'),_0x49c960('insertion','discard'),_0x49c960('deletion','accept'),_0x49c960('deletion','discard'),_0x2144ed['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x88525=>{const _0x4a427c=_0x88525['map'](_0x136051=>_0x136051['getContainedElement']()),_0x20f362=_0x4a427c[0x0]['findAncestor']('table'),{minRow:_0x1535b7,maxRow:_0x4e20ec}=_0x7444f6['_getCoordsForCells'](_0x4a427c);_0x1366b3['removeRows'](_0x20f362,{'at':_0x1535b7,'rows':_0x4e20ec-_0x1535b7+0x1});}),_0x2144ed['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0xf87ef4=>{const _0x2f15ee=_0xf87ef4['map'](_0x1db371=>_0x1db371['getContainedElement']()),_0x9b16b8=_0x2f15ee[0x0]['findAncestor']('table'),{minColumn:_0x128495,maxColumn:_0x178376}=_0x7444f6['_getCoordsForCells'](_0x2f15ee);_0x1366b3['removeColumns'](_0x9b16b8,{'at':_0x128495,'columns':_0x178376-_0x128495+0x1});});const _0x7e2f3d=(_0xda88f6,_0xbeb7c9)=>{if(!_0xbeb7c9['subType']||!_0xbeb7c9['subType']['startsWith']('tablePaste'))return;const _0x456883=_0xbeb7c9['attributes']['tablePasteChainId'],_0x5e5839=_0x2144ed['getSuggestions']()['filter'](_0x2d3cf7=>_0x2d3cf7['isInContent']&&_0x2d3cf7['attributes']&&_0x2d3cf7['attributes']['tablePasteChainId']==_0x456883);_0x5e5839['length']&&_0xbeb7c9['getAllAdjacentSuggestions']()['length']!=_0x5e5839['length']&&_0x5e5839['reduce']((_0x5ae486,_0x15652e)=>(_0x5ae486['next']=_0x15652e,_0x15652e['previous']=_0x5ae486,_0x15652e));};function _0x41c38d(_0x4eefa3,_0x354c6d=!0x0){const {id:_0x568e72,authorId:_0x3b3b16}=_0x2144ed['_splitMarkerName'](_0x4eefa3['markerName']),_0x5a7840=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1af40c=_0x2144ed['activeMarkers']['includes'](_0x4eefa3['markerName']);return _0x1af40c&&_0x5a7840['push']('ck-suggestion-marker--active'),{'classes':_0x5a7840,'attributes':{'data-suggestion':_0x568e72,'data-author-id':_0x3b3b16},'priority':_0x1af40c&&_0x354c6d?0xbc2:0xbb8};}_0x2144ed['on']('suggestionLoaded',_0x7e2f3d,{'priority':'high'}),_0x2144ed['on']('suggestionUnloaded',_0x7e2f3d,{'priority':'high'}),_0x3dc3c6['model']['document']['registerPostFixer'](()=>{let _0x4c2dba=!0x1;const _0x3bbc98=Array['from'](_0x3dc3c6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4417cd,data:_0x4d6eec}of _0x3bbc98){const {group:_0x564851,type:_0x5578f9,id:_0x1bd794}=_0x2144ed['_splitMarkerName'](_0x4417cd);if('suggestion'!=_0x564851||'deletion'!=_0x5578f9||_0x4d6eec['oldRange'])continue;if(!_0x2144ed['hasSuggestion'](_0x1bd794))continue;const _0x23628d=_0x2144ed['getSuggestion'](_0x1bd794)['getRanges'](),_0x1af61f=_0x3dc3c6['plugins']['get']('Users')['me'];for(const _0x65a76c of _0x2144ed['getSuggestions']()){if(!_0x65a76c['isInContent']||_0x65a76c['author']!=_0x1af61f)continue;if('formatBlock'!=_0x65a76c['type']||'tablePasteCell'!=_0x65a76c['subType'])continue;if(_0x65a76c['getRanges']()['every'](_0x1932b9=>_0x23628d['some'](_0x5b6cd1=>_0x5b6cd1['containsRange'](_0x1932b9,!0x0)))){for(const _0x27862f of _0x65a76c['getAllAdjacentSuggestions']())_0x27862f['isInContent']&&(_0x27862f['discard'](),_0x4c2dba=!0x0);}}}return _0x4c2dba;}),_0x3dc3c6['model']['document']['registerPostFixer'](_0x34ce0e=>{const _0x429795=_0x3dc3c6['commands']['get']('redo');if(!_0x429795||!_0x429795['_createdBatches']['has'](_0x34ce0e['batch']))return!0x1;let _0x446169=!0x1;const _0xefc244=_0x3dc3c6['plugins']['get']('Users')['me'],_0x372408=_0x3dc3c6['model']['document']['differ']['getChanges'](),_0x1d7ba6=Array['from'](_0x3dc3c6['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x172b58,data:_0x521a13})=>{const {group:_0x52d484,subType:_0x36996b,authorId:_0x1f719b}=_0x2144ed['_splitMarkerName'](_0x172b58);return'suggestion'==_0x52d484&&'tablePaste'==_0x36996b&&_0x1f719b==_0xefc244['id']&&!_0x521a13['oldRange'];});for(const _0x160f68 of _0x372408){if('insert'!=_0x160f68['type']||'tableCellSuggestion'!=_0x160f68['name']||0x1!=_0x160f68['length'])continue;const _0x108e8a=_0x34ce0e['createRange'](_0x160f68['position'],_0x160f68['position']['getShiftedBy'](0x1));if(!_0x1d7ba6['find'](({data:_0xf38741})=>_0xf38741['newRange']['isEqual'](_0x108e8a))){for(const {name:_0x1595cb,data:_0x434759}of _0x1d7ba6)if(_0x108e8a['containsRange'](_0x434759['newRange'])){_0x34ce0e['updateMarker'](_0x1595cb,{'range':_0x108e8a}),_0x446169=!0x0;break;}}}return _0x446169;}),_0x3dc3c6['model']['document']['registerPostFixer'](_0x1915d2=>{let _0x2b7327=!0x1;const _0x35caa6=_0x3dc3c6['plugins']['get']('Users')['me'],_0x4c33f8=_0x2144ed['getSuggestions']()['filter'](_0xdc716a=>_0xdc716a['isInContent']&&_0xdc716a['author']==_0x35caa6),_0x2d4c41=new Set(),_0x74a45=new Set();for(const _0x5e850 of _0x4c33f8)if('tablePaste'==_0x5e850['subType'])for(const _0x4506af of _0x5e850['getMarkers']()){const _0x2d9ad3=_0x4506af['getRange']()['getContainedElement']();if(_0x2d9ad3){if(_0x2d9ad3['is']('element','tableCellSuggestion')&&Oe(_0x2d9ad3)){_0x5e850['removeMarker'](_0x4506af['name']),_0x2d4c41['add'](_0x2d9ad3),_0x2b7327=!0x0;const _0x4cf52b=_0x2d9ad3['nextSibling'],_0x41c335=_0x2d9ad3['previousSibling'],_0x4d39de=_0x4cf52b&&_0x4cf52b['is']('element','tableCellSuggestion'),_0x1f2d6e=_0x41c335&&_0x41c335['is']('element','tableCellSuggestion');_0x4d39de&&!_0x2d4c41['has'](_0x4cf52b)&&_0x74a45['add'](_0x4cf52b),_0x1f2d6e&&!_0x2d4c41['has'](_0x41c335)&&_0x74a45['add'](_0x41c335);}else _0x2d9ad3['is']('element','paragraph')&&_0x2d9ad3['isEmpty']&&(_0x5e850['removeMarker'](_0x4506af['name']),_0x2b7327=!0x0);}}else{if('tablePasteCell'==_0x5e850['subType']){if(!_0x5e850['attributes']||!_0x5e850['attributes']['tablePasteChainId'])continue;const _0x492361=_0x5e850['attributes']['markerAttributes'];if(_0x492361&&Object['keys'](_0x492361)['length'])continue;const _0x74dd66=_0x5e850['attributes']['tablePasteChainId'];let _0x481ef9=!0x0,_0x5d9007=!0x0;for(const _0x47cbf7 of _0x4c33f8)if(_0x47cbf7['subType']&&_0x47cbf7['subType']['startsWith']('tablePaste')){if(!_0x47cbf7['attributes']['tablePasteChainId']){_0x5d9007=!0x1;break;}if(_0x47cbf7['id']!=_0x5e850['id']&&_0x47cbf7['attributes']['tablePasteChainId']==_0x74dd66){_0x481ef9=!0x1;break;}}_0x5d9007&&_0x481ef9&&(_0x5e850['removeMarkers'](),_0x2b7327=!0x0);}}for(const _0xc2db4 of _0x2d4c41)_0x1915d2['remove'](_0xc2db4);for(const _0x27f1f3 of _0x74a45)_0x1915d2['unwrap'](_0x27f1f3);return _0x2b7327;}),_0x3dc3c6['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x224d25=>_0x41c38d(_0x224d25),'converterPriority':'high'}),_0x3dc3c6['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x23a5ce,_0x31abf7)=>_0x31abf7['options']['showSuggestionHighlights']?_0x41c38d(_0x23a5ce,!0x1):null,'converterPriority':'high'});const _0x4caccd=_0x3dc3c6['editing']['view'];this['listenTo'](_0x4caccd['document'],'clipboardOutput',(_0x546379,_0x1f7f95)=>{const _0x41b986=[];for(const _0x4ef78c of _0x4caccd['createRangeIn'](_0x1f7f95['content'])['getItems']())_0x4ef78c['is']('element','suggestion-td')&&_0x41b986['push'](_0x4ef78c);_0x4caccd['change'](_0x165239=>{for(const _0x483ee9 of _0x41b986)_0x165239['move'](_0x165239['createRangeIn'](_0x483ee9),_0x165239['createPositionBefore'](_0x483ee9)),_0x165239['remove'](_0x483ee9);});});}}function Oe(_0x26da96){if(_0x26da96['isEmpty'])return!0x0;const _0x377b6e=_0x26da96['getChild'](0x0);return _0x377b6e['is']('element','paragraph')&&_0x377b6e['isEmpty'];}function Ue(_0x49f7de,_0x30bd96={},_0x46e0c4){for(const {isAnchor:_0x5575bf,cellHeight:_0x28e5df,cellWidth:_0x14d7c4}of _0x46e0c4['createTableWalker'](_0x49f7de,{'includeAllSlots':!0x0,..._0x30bd96}))if(!_0x5575bf||0x1!=_0x28e5df||0x1!=_0x14d7c4)return!0x1;return!0x0;}class Dt extends _0x1074b3{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x3c2038=this['editor']['plugins']['get']('TrackChangesEditing');_0x3c2038['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x3c2038['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x3c2038['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3c2038['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x3c2038['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x3c2038['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x5566e7,_0x285b02){const _0x16160c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x19a16b=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x2cf1fe=_0x285b02['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x34d9ce=_0x19a16b['getColumnGroupElement'](_0x2cf1fe);let _0x2f8b33=_0x34d9ce?_0x19a16b['getTableColumnsWidths'](_0x34d9ce):null,_0x1f8ce0=_0x2cf1fe['getAttribute']('tableWidth')||null;const _0x47a3be=_0x285b02['tableWidth']||_0x1f8ce0,_0x3362db=_0x285b02['columnWidths']||_0x2f8b33,_0x47a336=this['editor']['plugins']['get']('Users')['me'];for(const _0x49cbae of _0x16160c['getSuggestions']()){const _0x4daead=_0x49cbae['getContainedElement']();if('resizeTable'===_0x49cbae['subType']&&_0x4daead===_0x2cf1fe){_0x49cbae['author']!==_0x47a336&&_0x49cbae['discard']();const _0xbeb37e=_0x49cbae['data']['commandParams'];_0x1f8ce0=_0xbeb37e[0x0]['tableWidth'],_0x2f8b33=_0xbeb37e[0x0]['columnWidths'];break;}}_0x5566e7({'table':_0x2cf1fe,'tableWidth':_0x47a3be,'columnWidths':_0x3362db}),_0x16160c['markBlockFormat'](_0x2cf1fe,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x1f8ce0,'columnWidths':_0x2f8b33}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x1b294e){if('formatBlock'!=_0x1b294e['type']&&'formatInline'!=_0x1b294e['type'])return;const {data:_0xdd330f}=_0x1b294e;if(_0xdd330f&&'resizeTable'===_0xdd330f['formatGroupId']){const _0x382ef4='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x382ef4)};}}}class $t extends _0x1074b3{['afterInit'](){const _0x5c28cb=this['editor'];_0x5c28cb['plugins']['has']('Template')&&_0x5c28cb['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x1074b3{['afterInit'](){const _0x549a35=this['editor'];if(!_0x549a35['commands']['get']('insertTableOfContents'))return;_0x549a35['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x5e4f=_0x549a35['plugins']['get']('TrackChangesEditing'),_0xfe5dc3=_0x549a35['locale'];_0x5e4f['descriptionFactory']['registerElementLabel']('tableOfContents',_0x590150=>o(_0xfe5dc3,'ELEMENT_TABLE_OF_CONTENTS',_0x590150));}}class Bt extends _0x1074b3{['afterInit'](){const _0x47fbe5=this['editor'];if(!_0x47fbe5['plugins']['has']('Title'))return;const _0x290a16=_0x47fbe5['plugins']['get']('TrackChangesEditing');_0x290a16['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x47fbe5['locale'],'ELEMENT_TITLE')),_0x47fbe5['model']['document']['registerPostFixer'](_0x57a763=>{let _0x3496bb=!0x1;const _0x1fd266=Array['from'](_0x47fbe5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5251c5,data:_0x14efad}of _0x1fd266){const {group:_0x46d088}=_0x290a16['_splitMarkerName'](_0x5251c5);if('suggestion'!==_0x46d088||!_0x14efad['newRange'])continue;const _0x312278=_0x14efad['newRange'],_0x1d2625=_0x312278['end']['nodeBefore'];if(!_0x1d2625||!_0x1d2625['is']('element','title-content'))continue;if(!_0x312278['start']['isTouching'](_0x312278['end']))continue;const _0x2c5162=_0x47fbe5['model']['schema']['getNearestSelectionRange'](_0x312278['end'],'forward');if(_0x2c5162&&_0x2c5162['isCollapsed']){const _0x428338=_0x57a763['createRange'](_0x312278['start'],_0x2c5162['start']);_0x428338['isEqual'](_0x312278)||(_0x57a763['updateMarker'](_0x5251c5,{'range':_0x428338}),_0x3496bb=!0x0);}_0x3496bb||(_0x57a763['removeMarker'](_0x5251c5),_0x3496bb=!0x0);}return _0x3496bb;});}}class Tt extends _0x1074b3{['afterInit'](){const _0x22d5f1=this['editor'],_0x306d58=_0x22d5f1['plugins']['get']('TrackChangesEditing');_0x22d5f1['plugins']['has']('Uploadcare')&&(_0x306d58['enableCommand']('uploadcare'),_0x22d5f1['plugins']['has']('UploadcareImageEdit')&&(_0x306d58['enableCommand']('uploadcareImageEdit'),_0x306d58['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x306d58['registerBlockAttribute']('uploadcareImageId'),_0x306d58['descriptionFactory']['registerDescriptionCallback'](_0xa98ed8=>{if('attribute'!=_0xa98ed8['type'])return;const {data:_0x4951b6}=_0xa98ed8;return _0x4951b6&&'uploadcareImageId'==_0x4951b6['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x1074b3{['afterInit'](){const _0x4e218=this['editor'],_0x99abad=_0x4e218['plugins']['get']('TrackChangesEditing');_0x4e218['plugins']['has']('UndoEditing')&&(_0x99abad['enableCommand']('undo'),_0x99abad['enableCommand']('redo'));}}class Ot extends _0x1074b3{static get['requires'](){return[At];}['afterInit'](){const _0x2a2072=this['editor'];if(!_0x2a2072['plugins']['has']('TableCaptionEditing'))return;_0x2a2072['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x1074b3{['tableProperties'];['tableCellProperties'];constructor(_0x239d60){super(_0x239d60),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 _0x230810=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x58854c of this['tableProperties'])_0x230810['enableCommand'](_0x58854c,(_0x417686,_0x42db99)=>{const _0x5c66a3=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x58854c,[_0x5c66a3],this['tableProperties'],'tableProperties',_0x417686,_0x42db99);});_0x230810['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x230810['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x230810['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x491cac,_0x35c6df)=>this['handleDiscardAction'](this['tableProperties'],_0x491cac,_0x35c6df)),_0x230810['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x203020 of this['tableCellProperties'])_0x230810['enableCommand'](_0x203020,(_0x39ade4,_0x281e15)=>{const _0x196237=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x203020,_0x196237,this['tableCellProperties'],'tableCellProperties',_0x39ade4,_0x281e15);});_0x230810['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x230810['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x230810['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x2509dc,_0x41a7a8)=>this['handleDiscardAction'](this['tableCellProperties'],_0x2509dc,_0x41a7a8)),_0x230810['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x230810['descriptionFactory']['registerDescriptionCallback'](_0x87611c=>this['handleSuggestionDescription'](_0x87611c)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x218fd8,_0x5af1e4,_0x2be0c4,_0x1046b4,_0x5ba26f,_0x128cc2){const _0x161ef4=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x128cc2['batch'],()=>{for(const _0x3b9c46 of _0x5af1e4){if(this['_getSuggestion'](_0x3b9c46,_0x1046b4))_0x5ba26f(_0x128cc2);else{const _0x137642={};for(const _0x3aa44c of _0x2be0c4){const _0x3b039a=_0x3b9c46['getAttribute'](_0x3aa44c);void 0x0!==_0x3b039a&&(_0x137642[_0x3aa44c]=_0x3b039a);}_0x5ba26f(_0x128cc2),_0x161ef4['markBlockFormat'](_0x3b9c46,{'commandParams':[_0x137642]},[],_0x1046b4);}}});}['handleDiscardAction'](_0x333d7e,_0x187e09,_0x2c96a9){const _0x5e8508=_0x187e09[0x0]['start']['nodeAfter'],_0x53d4cf=_0x2c96a9['commandParams'][0x0];this['editor']['model']['change'](_0x181ffd=>{for(const _0x58170c of _0x333d7e)void 0x0!==_0x53d4cf[_0x58170c]?_0x181ffd['setAttribute'](_0x58170c,_0x53d4cf[_0x58170c],_0x5e8508):_0x181ffd['removeAttribute'](_0x58170c,_0x5e8508);});}['handleSuggestionDescription'](_0x19f314){if(_0x19f314['data'])switch(_0x19f314['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x443a14,_0x37a37b){const _0x9dcc27=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x5ca64c of _0x9dcc27['getSuggestions']({'skipNotAttached':!0x0})){const _0x2f73db=_0x5ca64c['getContainedElement']();if(_0x5ca64c['subType']===_0x37a37b&&_0x2f73db===_0x443a14)return _0x5ca64c;}return null;}['_registerTablePropertiesAttributes'](){const _0x3ca815=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4930f6=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x432b05 of _0x4930f6){const _0x8bbea0=_0x432b05['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x3ca815['registerBlockAttribute'](_0x432b05),_0x3ca815['descriptionFactory']['registerAttributeLabel'](_0x432b05,o(this['editor']['locale'],'FORMAT_'+_0x8bbea0));}}}class Rt extends _0x1074b3{['afterInit'](){const _0x5b82c1=this['editor'];if(!_0x5b82c1['plugins']['has']('LineHeight'))return;const _0x52776c=_0x5b82c1['plugins']['get']('TrackChangesEditing'),_0xafa1bb=_0x5b82c1['locale'];_0x52776c['enableDefaultAttributesIntegration']('lineHeight'),_0x52776c['registerBlockAttribute']('lineHeight'),_0x52776c['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0xafa1bb,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x1074b3{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x423ea0,_0x546289,O,E,R,U,V,G,F,L,J,K,z,W,Q,X,Y,Z,tt,it,nt,et,ot,st,rt,at,ct,ft,ht,mt,ut,H,Rt,q,gt,lt,dt,pt,kt,wt,bt,yt,jt,St,It,At,_t,Ct,vt,Ot,Nt,Dt,Mt,Et,$t,Bt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x7c86e1){super(_0x7c86e1),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x5062c8,_0x530bd9,_0x11a36e,_0x3c7f81)=>{this['_model']['change'](()=>{for(const _0x1f19a0 of[..._0x3c7f81,..._0x11a36e])this['_model']['markers']['has'](_0x1f19a0)&&_0x7c86e1['editing']['reconvertMarker'](_0x1f19a0);});}),this['descriptionFactory']=new x(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Vt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x7c86e1['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x7c86e1['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x7c86e1['config']['get']('trackChanges.trackFormatChanges'),_0x7c86e1['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x7c86e1['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x7c86e1,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x230d36=this['editor'],_0x23b321=(_0x26d58f,_0x2b8e70)=>{if('attribute'!=_0x26d58f)return'ck-suggestion-marker-'+_0x26d58f;const _0x3606a5=_0x2b8e70['split']('|')[0x0];return this['_isBlockAttribute'](_0x3606a5)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x230d36['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x52a462=>{const {id:_0x149005,authorId:_0x3418fa,type:_0x1f26b0,subType:_0x61385e}=this['_splitMarkerName'](_0x52a462['markerName']),_0x515781=['ck-suggestion-marker',_0x23b321(_0x1f26b0,_0x61385e)];let _0x57b4e0=0xbb8;return this['activeMarkers']['includes'](_0x52a462['markerName'])&&(_0x515781['push']('ck-suggestion-marker--active'),_0x57b4e0=0xbc2),'deletion'==_0x1f26b0&&(_0x57b4e0+=0x5),{'classes':_0x515781,'attributes':{'data-suggestion':_0x149005,'data-author-id':_0x3418fa},'priority':_0x57b4e0};}}),_0x230d36['conversion']['for']('dataDowncast')['add'](_0x5bf7e3=>{_0x5bf7e3['on']('addMarker:suggestion',(_0x55fcdc,_0x324281,_0x4d809d)=>{if(!_0x4d809d['options']['showSuggestionHighlights'])return;const _0x1e10fd=_0x324281['item'];if(!_0x1e10fd)return;const _0x3080da=_0x4d809d['mapper']['toViewElement'](_0x1e10fd);_0x230d36['model']['schema']['isObject'](_0x1e10fd)&&_0x3080da&&!_0x3080da['getCustomProperty']('widget')&&_0x3080da['is']('containerElement')&&_0x2a174b(_0x3080da,_0x4d809d['writer']);},{'priority':'high'});}),_0x230d36['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x434eec,_0x2888ff)=>{if(!_0x2888ff['options']['showSuggestionHighlights'])return null;const {id:_0x1b70da,authorId:_0x1a7a4c,type:_0x5cc521,subType:_0x107ddf}=this['_splitMarkerName'](_0x434eec['markerName']);return{'classes':['ck-suggestion-marker',_0x23b321(_0x5cc521,_0x107ddf)],'priority':0xbb8,'attributes':{'data-suggestion':_0x1b70da,'data-author-id':_0x1a7a4c}};}});const _0x45e0af=({showActiveMarkers:_0x2b8a60=!0x0,isAttributeSuggestion:_0x2f6a57=!0x1}={})=>(_0x4600b6,_0x4a3ed6,_0x1fcce9)=>{if(!_0x4a3ed6['item'])return;const {id:_0x2af855,authorId:_0x33b5ed}=this['_splitMarkerName'](_0x4a3ed6['markerName']);if(_0x2f6a57){const _0x778854=this['_suggestions']['get'](_0x2af855),_0x158c44=this['_getAttributeKey'](_0x778854);if(!this['_isBlockAttribute'](_0x158c44))return;}if(_0x4a3ed6['item']['is']('selection'))return void _0x1fcce9['consumable']['consume'](_0x4a3ed6['item'],_0x4600b6['name']);const _0x4d7e87=_0x1fcce9['mapper']['toViewElement'](_0x4a3ed6['item']);if(_0x4a3ed6['item']['is']('element')&&_0x230d36['model']['schema']['isBlock'](_0x4a3ed6['item'])&&!_0x4d7e87['getCustomProperty']('addHighlight')){_0x1fcce9['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4d7e87),_0x1fcce9['writer']['setAttribute']('data-suggestion',_0x2af855,_0x4d7e87),_0x1fcce9['writer']['setAttribute']('data-author-id',_0x33b5ed,_0x4d7e87),_0x1fcce9['mapper']['bindElementToMarker'](_0x4d7e87,_0x4a3ed6['markerName']),_0x2b8a60&&(this['activeMarkers']['includes'](_0x4a3ed6['markerName'])?_0x1fcce9['writer']['addClass']('ck-suggestion-marker--active',_0x4d7e87):_0x1fcce9['writer']['removeClass']('ck-suggestion-marker--active',_0x4d7e87));for(const _0x5688a7 of _0x230d36['model']['createRangeIn'](_0x4a3ed6['item'])['getItems']())_0x1fcce9['consumable']['consume'](_0x5688a7,_0x4600b6['name']);_0x1fcce9['consumable']['consume'](_0x4a3ed6['item'],_0x4600b6['name']);}};_0x230d36['conversion']['for']('dataDowncast')['add'](_0x1bc95e=>{_0x1bc95e['on']('addMarker:suggestion:formatBlock',(_0x4355de,_0x481fb7,_0x45c410)=>{_0x45c410['options']['showSuggestionHighlights']&&_0x45e0af({'showActiveMarkers':!0x1})(_0x4355de,_0x481fb7,_0x45c410);},{'priority':'highest'});}),_0x230d36['conversion']['for']('dataDowncast')['add'](_0x480c96=>{_0x480c96['on']('addMarker:suggestion:attribute',(_0x498c71,_0x3d6f85,_0x271e61)=>{_0x271e61['options']['showSuggestionHighlights']&&_0x45e0af({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x498c71,_0x3d6f85,_0x271e61);},{'priority':'highest'});}),_0x230d36['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x134af9,_0x4e22e7)=>{if(_0x4e22e7['options']['showSuggestionHighlights']){const {id:_0x22559,authorId:_0x506d36}=this['_splitMarkerName'](_0x134af9);return _0x134af9['includes'](':split')||_0x134af9['includes'](':merge')?{'group':'suggestion','name':_0x134af9['substr'](0xb),'attributes':{'data-suggestion':_0x22559,'data-author-id':_0x506d36}}:null;}return{'group':'suggestion','name':_0x134af9['substr'](0xb)};}}),_0x230d36['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x39c71e,{writer:_0x406335})=>{let _0x4a1de7='suggestion:'+_0x39c71e['getAttribute']('suggestion-type')+':'+_0x39c71e['getAttribute']('id');return _0x39c71e['getAttribute']('marker-count')&&(_0x4a1de7+=':'+_0x39c71e['getAttribute']('marker-count')),_0x406335['createElement']('$marker',{'data-name':_0x4a1de7});}}),_0x230d36['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x230d36['conversion']['for']('editingDowncast')['add'](_0x5c0b7a=>{_0x5c0b7a['on']('addMarker:suggestion:formatBlock',_0x45e0af(),{'priority':'high'});}),_0x230d36['conversion']['for']('editingDowncast')['add'](_0x1376d1=>{_0x1376d1['on']('addMarker:suggestion:attribute',_0x45e0af({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x230d36['conversion']['for']('editingDowncast')['add'](_0x545ded=>{_0x545ded['on']('removeMarker:suggestion:formatBlock',(_0x333488,_0x354baa,_0x31b563)=>{const _0xda516f=_0x31b563['mapper']['markerNameToElements'](_0x354baa['markerName']);if(_0xda516f){for(const _0x3ca43c of _0xda516f)_0x3ca43c['getCustomProperty']('addHighlight')||(_0x31b563['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3ca43c),_0x31b563['writer']['removeAttribute']('data-suggestion',_0x3ca43c),_0x31b563['writer']['removeAttribute']('data-author-id',_0x3ca43c),_0x31b563['mapper']['unbindElementFromMarkerName'](_0x3ca43c,_0x354baa['markerName']));}},{'priority':'high'});}),_0x230d36['conversion']['for']('editingDowncast')['add'](_0x4f6c70=>{_0x4f6c70['on']('removeMarker:suggestion:attribute',(_0x4bb36b,_0x14e12c,_0x12ed71)=>{const _0x245627=_0x12ed71['mapper']['markerNameToElements'](_0x14e12c['markerName']);if(!_0x245627)return;const {id:_0x4ebca3}=this['_splitMarkerName'](_0x14e12c['markerName']),_0x47585a=this['_suggestions']['get'](_0x4ebca3),_0x484c6c=this['_getAttributeKey'](_0x47585a);if(this['_isBlockAttribute'](_0x484c6c)){for(const _0x51928f of _0x245627)_0x51928f['getCustomProperty']('addHighlight')||(_0x12ed71['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x51928f),_0x12ed71['writer']['removeAttribute']('data-suggestion',_0x51928f),_0x12ed71['writer']['removeAttribute']('data-author-id',_0x51928f),_0x12ed71['mapper']['unbindElementFromMarkerName'](_0x51928f,_0x14e12c['markerName']));}},{'priority':'high'});}),_0x230d36['model']['document']['registerPostFixer'](_0x315d6b=>{let _0x10fabb=!0x1;const _0x48df76=Array['from'](_0x230d36['model']['document']['differ']['getChangedMarkers']()),_0x49e657=new Set();for(const {name:_0x3311bb,data:_0x1cef66}of _0x48df76){const {group:_0x50c074,type:_0x523f61,subType:_0x1a2d6e,id:_0x582a7b}=this['_splitMarkerName'](_0x3311bb);if('suggestion'!==_0x50c074)continue;const _0xcf7202=_0x1a2d6e?'suggestion:'+_0x523f61+':'+_0x1a2d6e+':'+_0x582a7b:'suggestion:'+_0x523f61+':'+_0x582a7b,_0x2769aa=_0x230d36['model']['markers']['getMarkersGroup'](_0xcf7202),_0xcbda41=_0x230d36['model']['markers']['get'](_0x3311bb),_0x1e4957=this['_suggestions']['get'](_0x582a7b);if(null!=_0x1cef66['newRange']){'formatInline'==_0x523f61&&(_0x10fabb=_0x10fabb||Gt(_0x1cef66['newRange'],_0x3311bb,_0x315d6b,_0x230d36['model']['schema']));const _0x282838='attribute'==_0x523f61&&this['_isBlockAttribute'](_0x1a2d6e['split']('|')[0x0]),_0x1a516c='attribute'==_0x523f61&&this['_isInlineAttribute'](_0x1a2d6e['split']('|')[0x0]);if(_0x1cef66['newRange']['isCollapsed']||'$graveyard'==_0x1cef66['newRange']['root']['rootName']||'formatBlock'==_0x523f61&&!Jt(_0x1cef66['newRange'])||_0x282838&&!Jt(_0x1cef66['newRange'])||_0x1a516c&&Kt(_0x1cef66['newRange'])||'deletion'==_0x523f61&&Kt(_0x1cef66['newRange'])||_0xcbda41&&Ht(_0xcbda41,_0x2769aa))_0x315d6b['removeMarker'](_0x3311bb),_0x10fabb=!0x0;else{if(!_0x1e4957||!_0x1e4957['isInContent'])continue;if(_0x1cef66['newRange']&&_0x1cef66['oldRange']&&_0x1cef66['newRange']['isEqual'](_0x1cef66['oldRange']))continue;_0x49e657['add'](_0x1e4957);}}}return _0x49e657['size']>0x0&&(_0x10fabb=!!this['_joinWithAdjacentSuggestions'](_0x49e657)||_0x10fabb),_0x10fabb;}),_0x230d36['model']['document']['registerPostFixer'](_0x22062e=>{let _0x5f3ff8=!0x1;for(const _0x2d4b81 of _0x230d36['model']['document']['differ']['getChanges']())if('insert'==_0x2d4b81['type'])for(const _0xe78fc8 of this['_suggestions']['values']()){if(_0xe78fc8['isMultiRange']||!_0xe78fc8['isInContent'])continue;const _0x47b0fc='formatBlock'==_0xe78fc8['type'],_0x17446a=this['_getAttributeKey'](_0xe78fc8),_0x42c12c=_0x17446a&&this['_isBlockAttribute'](_0x17446a);if(!_0x47b0fc&&!_0x42c12c)continue;const _0x6e1b1=_0xe78fc8['getFirstRange']();if(_0x6e1b1['start']['parent']!=_0x6e1b1['end']['parent']&&!_0x6e1b1['end']['isAtEnd']){const _0x3a8b2b=_0x230d36['model']['createPositionAt'](_0x6e1b1['start']['nodeAfter'],'end'),_0x4fc616=_0x230d36['model']['createRange'](_0x6e1b1['start'],_0x3a8b2b);_0x22062e['updateMarker'](_0xe78fc8['getFirstMarker'](),{'range':_0x4fc616}),_0x5f3ff8=!0x0;}}return _0x5f3ff8;}),_0x230d36['model']['document']['registerPostFixer'](_0x3a9b8c=>this['_processAttributeChanges'](_0x3a9b8c)),_0x230d36['model']['document']['registerPostFixer'](_0x334333=>!_0x334333['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x334333)),_0x230d36['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x230d36['model']['document']['on']('change:data',(_0x479609,_0x5a530c)=>{if(!_0x5a530c['isLocal']||_0x5a530c['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x12daa2=_0x230d36['model']['document']['differ']['getChanges']();if(0x0==_0x12daa2['length'])return;const _0x346aa3=[],_0x3232df=_0x12daa2['filter'](_0x962d7a=>'attribute'==_0x962d7a['type']),_0x30372d=_0x12daa2['filter'](_0x1903a6=>'insert'==_0x1903a6['type']&&'$text'!=_0x1903a6['name']);for(const _0x3731be of _0x3232df)this['_isRegisteredAttribute'](_0x3731be['attributeKey'])&&_0x346aa3['push']({'key':_0x3731be['attributeKey'],'newValue':_0x3731be['attributeNewValue'],'oldValue':_0x3731be['attributeOldValue'],'range':qt(_0x3731be['range'],_0x230d36['model'])});for(const _0xc132f0 of _0x30372d){if('rename'!=_0xc132f0['action']&&'refresh'!=_0xc132f0['action'])continue;const _0x5cac8f=zt(_0xc132f0['position']['nodeAfter'],_0x230d36['model']),_0x358cfa=_0xc132f0['before'];'rename'==_0xc132f0['action']&&_0x346aa3['push']({'key':m,'newValue':_0xc132f0['name'],'oldValue':_0x358cfa['name'],'range':_0x5cac8f});for(const [_0x493bcb,_0x243761]of _0x358cfa['attributes']){if(!this['_isRegisteredAttribute'](_0x493bcb))continue;const _0x260fb3=_0xc132f0['attributes']['get'](_0x493bcb);_0x243761!==_0x260fb3&&_0x346aa3['push']({'key':_0x493bcb,'newValue':_0x260fb3,'oldValue':_0x243761,'range':_0x5cac8f});}for(const [_0x3401a1,_0x20a4c6]of _0xc132f0['attributes'])this['_isRegisteredAttribute'](_0x3401a1)&&(_0x358cfa['attributes']['has'](_0x3401a1)||_0x346aa3['push']({'key':_0x3401a1,'newValue':_0x20a4c6,'oldValue':null,'range':_0x5cac8f}));}0x0!=_0x346aa3['length']&&_0x230d36['model']['enqueueChange'](_0x5a530c,_0x109eab=>{const _0x1df85a=_0x2e8cc();for(const {range:_0x433219,key:_0x387918,oldValue:_0x53980d,newValue:_0x1cfb39}of _0x346aa3)this['markAttributeChange'](_0x433219,_0x387918,_0x53980d,_0x1cfb39,{'groupId':_0x1df85a});this['_reduceExistingSuggestions'](_0x109eab,_0x346aa3);});},{'priority':'lowest'}),_0x230d36['model']['markers']['on']('update:suggestion',(_0x3dcc6c,_0xb4ca3d,_0xf3b4bb)=>{if(null==_0xf3b4bb){const {id:_0x3d31eb}=this['_splitMarkerName'](_0xb4ca3d['name']),_0x26dc75=this['_suggestions']['get'](_0x3d31eb);_0x26dc75&&_0x26dc75['addMarkerName'](_0xb4ca3d['name']);}}),_0x230d36['model']['document']['on']('change:data',()=>{const _0x2f63b8=Array['from'](_0x230d36['model']['document']['differ']['getChangedMarkers']())['filter'](_0x160b33=>'suggestion'===this['_splitMarkerName'](_0x160b33['name'])['group']);if(0x0===_0x2f63b8['length'])return;_0x2f63b8['sort']((_0x4453e0,_0x32ac9d)=>{const _0x489751=_0x4453e0['data']['oldRange'],_0x17b1e2=_0x32ac9d['data']['oldRange'];return null===_0x489751&&null===_0x17b1e2?0x0:null===_0x489751&&null!==_0x17b1e2?-0x1:null!==_0x489751&&null===_0x17b1e2?0x1:_0x489751['start']['isBefore'](_0x17b1e2['start'])?-0x1:0x1;});const _0x1852a8=new Set(),_0x572f5f=new Set();for(const {name:_0x2251d7,data:_0x1f065d}of _0x2f63b8){const {id:_0x51851b}=this['_splitMarkerName'](_0x2251d7);if(null===_0x1f065d['oldRange']){const _0x284ec4=this['_handleNewSuggestionMarker'](_0x2251d7);_0x572f5f['add'](_0x284ec4);}else{const _0x1d4cf1=this['_suggestions']['get'](_0x51851b);null!==_0x1f065d['newRange']||_0x1d4cf1['isInContent']?(_0x1852a8['add'](_0x1d4cf1['head']),_0x572f5f['add'](_0x1d4cf1)):this['_removeSuggestion'](_0x1d4cf1);}}_0x572f5f['size']>0x0&&this['_refreshSuggestionsChain'](_0x572f5f);for(const _0x3e5d59 of _0x1852a8)this['fire']('suggestionChanged',_0x3e5d59);}),_0x230d36['model']['on']('applyOperation',(_0x360071,_0x41f814)=>{const _0x6dafea=_0x41f814[0x0];if(!this['_suggestions']['size'])return;if(!_0x6dafea['isDocumentOperation'])return;if(_0x6dafea['batch']['isUndo']||!_0x6dafea['batch']['isLocal'])return;let _0x502750,_0x20ae6a;switch(_0x6dafea['type']){case'insert':_0x502750=_0x230d36['model']['createPositionAt'](_0x6dafea['position']),_0x20ae6a=_0x502750['getShiftedBy'](_0x6dafea['howMany']);break;case'split':_0x502750=_0x230d36['model']['createPositionAt'](_0x6dafea['splitPosition']),_0x20ae6a=_0x230d36['model']['createPositionAt'](_0x6dafea['moveTargetPosition']);break;case'move':_0x502750=_0x230d36['model']['createPositionAt'](_0x6dafea['targetPosition']),_0x20ae6a=_0x502750['getShiftedBy'](_0x6dafea['howMany']);break;default:return;}const _0x19390d=_0x230d36['model']['createRange'](_0x502750,_0x20ae6a);_0x230d36['model']['change'](()=>{for(const {suggestion:_0x5975a1,meta:_0x28b74a}of this['_findSuggestions'](_0x19390d)){if(_0x5975a1['isMultiRange'])continue;if('formatInline'==_0x5975a1['type'])continue;const _0x200f4f=this['_getAttributeKey'](_0x5975a1);if(_0x200f4f&&this['_isBlockAttribute'](_0x200f4f)&&'split'!=_0x6dafea['type'])continue;const _0x36eda1=_0x5975a1['data']&&_0x5975a1['data']['multipleBlocks'];('formatBlock'!=_0x5975a1['type']||'split'==_0x6dafea['type']&&!_0x36eda1)&&(_0x28b74a['containsRangeInObject']||'insertion'==_0x5975a1['type']&&_0x28b74a['isOwn']||_0x5975a1['getFirstRange']()['containsRange'](_0x19390d)&&this['_breakSuggestionMarker'](_0x5975a1,_0x502750,_0x20ae6a));}});},{'priority':'lowest'}),_0x230d36['model']['on']('deleteContent',(_0x415bf6,_0x1dca0e)=>{const _0x5bdf2e=_0x1dca0e[0x0],_0x2e5b18=_0x1dca0e[0x1];if(_0x2e5b18&&_0x2e5b18['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x5bdf2e['isCollapsed'])return;const _0x115c2a=_0x230d36['model']['schema'],{start:_0x9a1af3,end:_0x2fc8eb}=_0x5bdf2e['getFirstRange'](),_0x35a854=_0x9a1af3['nodeAfter']&&_0x115c2a['isLimit'](_0x9a1af3['nodeAfter'])?null:_0x115c2a['getNearestSelectionRange'](_0x9a1af3,'forward'),_0xe65709=_0x2fc8eb['nodeBefore']&&_0x115c2a['isLimit'](_0x2fc8eb['nodeBefore'])?null:_0x115c2a['getNearestSelectionRange'](_0x2fc8eb,'backward'),_0x53d8b8=_0x230d36['model']['createRange'](_0x35a854?_0x35a854['start']:_0x9a1af3,_0xe65709?_0xe65709['end']:_0x2fc8eb);_0x230d36['model']['change'](_0xc045ab=>{this['markDeletion'](_0x53d8b8);const _0x14b1a8=_0x230d36['model']['schema']['getNearestSelectionRange'](_0x53d8b8['start']);_0x5bdf2e['is']('documentSelection')?_0xc045ab['setSelection'](_0x14b1a8):_0x5bdf2e['setTo'](_0x14b1a8);}),_0x415bf6['stop']();},{'priority':_0x2bad7d['normal']+0xa}),_0x230d36['model']['on']('insertContent',(_0x360d17,_0xf9fa56)=>{const _0x3f122c=_0xf9fa56[_0xf9fa56['length']-0x1];_0x3f122c&&_0x3f122c['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x230d36['model']['change'](()=>{let _0x4f55a8=_0x230d36['model']['insertContent'](_0xf9fa56[0x0],_0xf9fa56[0x1],_0xf9fa56[0x2],{'forceDefaultExecution':!0x0});if(!_0x4f55a8)return;_0x360d17['return']=_0x4f55a8['clone']();const _0x284914=_0x4f55a8['end']['nodeBefore'],_0x59ba40=_0x230d36['model']['schema'];_0x284914&&_0x59ba40['isBlock'](_0x284914)&&!_0x59ba40['isObject'](_0x284914)&&(_0x4f55a8=_0x230d36['model']['createRange'](_0x4f55a8['start'],_0x230d36['model']['createPositionAt'](_0x284914,'end'))),this['markInsertion'](_0x4f55a8);}),_0x360d17['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x27539f=new D(_0x230d36,this['_suggestions']);_0x230d36['commands']['add']('acceptSuggestion',_0x27539f),this['enableCommand']('acceptSuggestion');const _0x6f2a51=new $(_0x230d36,this['_suggestions']);_0x230d36['commands']['add']('discardSuggestion',_0x6f2a51),this['enableCommand']('discardSuggestion'),_0x230d36['commands']['add']('acceptAllSuggestions',new M(_0x230d36,_0x27539f,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x230d36['commands']['add']('discardAllSuggestions',new M(_0x230d36,_0x6f2a51,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x230d36['commands']['add']('acceptSelectedSuggestions',new B(_0x230d36,_0x27539f,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x230d36['commands']['add']('discardSelectedSuggestions',new B(_0x230d36,_0x6f2a51,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2b68c1=_0x230d36['plugins']['get']('CommentsRepository');this['listenTo'](_0x2b68c1,'addComment',(_0x2fc595,{threadId:_0x2d9bdc})=>{const _0x3f7999=this['_suggestions']['get'](_0x2d9bdc);_0x3f7999&&_0x3f7999['commentThread']&&0x1===_0x3f7999['commentThread']['length']&&this['_updateSuggestionData'](_0x2d9bdc,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2b68c1,'removeComment',(_0x2d8d8c,{threadId:_0x547ad6})=>{const _0x469a80=this['_suggestions']['get'](_0x547ad6);_0x469a80&&_0x469a80['commentThread']&&!_0x469a80['commentThread']['length']&&this['_updateSuggestionData'](_0x547ad6,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x22951c){const _0x36f359=_0x4d40a1([0x57,0x71,0x6e,0x5a,0x50,0x61,0x4d,0x72,0x67,0x6a,0x46,0x41,0x4f,0x35,0x73,0x47,0x54,0x63,0x64,0x69,0x68,0x77,0x65,0x39,0x31,0x70,0x37,0x55,0x56,0x36,0x48,0x4c,0x33,0x6c,0x49,0x62,0x44,0x43,0x6f,0x74,0x4e,0x4a,0x58,0x52,0x53,0x75,0x4b,0x51,0x38,0x78,0x79,0x7a,0x6d,0x42,0x66,0x6b,0x59,0x32,0x76,0x30,0x45,0x34]),_0x85f7c1=0x4a747321,_0x142e3e=0x4a731c19^_0x85f7c1,_0x582acf=window[_0x4d40a1([0x44,0x61,0x74,0x65])][_0x4d40a1([0x6e,0x6f,0x77])](),_0x5e55d4=_0x22951c[_0x4d40a1([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4512b9=new window[(_0x4d40a1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x184362=>{_0x5e55d4[_0x4d40a1([0x6f,0x6e,0x63,0x65])](_0x4d40a1([0x72,0x65,0x61,0x64,0x79]),_0x184362);}),_0x7bbbe6={[_0x4d40a1([0x6b,0x74,0x79])]:_0x4d40a1([0x45,0x43]),[_0x4d40a1([0x75,0x73,0x65])]:_0x4d40a1([0x73,0x69,0x67]),[_0x4d40a1([0x63,0x72,0x76])]:_0x4d40a1([0x50,0x2d,0x32,0x35,0x36]),[_0x4d40a1([0x78])]:_0x4d40a1([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]),[_0x4d40a1([0x79])]:_0x4d40a1([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]),[_0x4d40a1([0x61,0x6c,0x67])]:_0x4d40a1([0x45,0x53,0x32,0x35,0x36])},_0x1d342f=_0x5e55d4[_0x4d40a1([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4d40a1([0x67,0x65,0x74])](_0x4d40a1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x203ada(){let _0xf86241,_0x546d45=null,_0x51ace2=null;try{if(_0x1d342f==_0x4d40a1([0x47,0x50,0x4c]))return _0x4d40a1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xf86241=_0x3bde8c(),!_0xf86241)return _0x4d40a1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xf86241[_0x4d40a1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x51ace2=_0x486573(_0xf86241[_0x4d40a1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xf86241[_0x4d40a1([0x6a,0x74,0x69])])),await _0x2ded9e()?_0x918f8()?_0x1cf354()?_0x4d40a1([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x45a10e()?(_0xf86241[_0x4d40a1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4d40a1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x546d45=_0x10464c(_0x4d40a1([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xf86241[_0x4d40a1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4d40a1([0x74,0x72,0x69,0x61,0x6c])&&(_0x546d45=_0x10464c(_0x4d40a1([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3645d7()):_0x4d40a1([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4d40a1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4d40a1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4d40a1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1cf354(){const _0x4060ef=[_0x4d40a1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4d40a1([0x74,0x72,0x69,0x61,0x6c])][_0x4d40a1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf86241[_0x4d40a1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x582acf/0x3e8:0xe10*_0x142e3e;return _0xf86241[_0x4d40a1([0x65,0x78,0x70])]<_0x4060ef;}function _0x918f8(){const _0x1faa35=_0xf86241[_0x4d40a1([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1faa35)return!0x1;if(_0x1faa35[_0x4d40a1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d40a1([0x2a])))return!0x0;if(_0x1faa35[_0x4d40a1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d40a1([0x54,0x43])))return!0x0;if(_0x1faa35[_0x4d40a1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d40a1([0x52,0x54,0x43]))){if(_0x3deb8c())return!0x0;if(_0x337d17()||_0x1aef71())return!0x0;}return!0x1;}function _0x45a10e(){const _0x479055=_0xf86241[_0x4d40a1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x479055||0x0==_0x479055[_0x4d40a1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x14e2d7}=new URL(window[_0x4d40a1([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x479055[_0x4d40a1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14e2d7))return!0x0;const _0x278eaa=_0x14e2d7[_0x4d40a1([0x73,0x70,0x6c,0x69,0x74])](_0x4d40a1([0x2e]));return _0x479055[_0x4d40a1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2402bc=>_0x2402bc[_0x4d40a1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d40a1([0x2a])))[_0x4d40a1([0x6d,0x61,0x70])](_0x3fcf28=>_0x3fcf28[_0x4d40a1([0x73,0x70,0x6c,0x69,0x74])](_0x4d40a1([0x2e])))[_0x4d40a1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x9abe4c=>_0x9abe4c[_0x4d40a1([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x278eaa[_0x4d40a1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4d40a1([0x6d,0x61,0x70])](_0x569d92=>Array(_0x278eaa[_0x4d40a1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x569d92[_0x4d40a1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4d40a1([0x66,0x69,0x6c,0x6c])](_0x569d92[0x0]===_0x4d40a1([0x2a])?_0x4d40a1([0x2a]):'')[_0x4d40a1([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x569d92))[_0x4d40a1([0x73,0x6f,0x6d,0x65])](_0x440324=>_0x278eaa[_0x4d40a1([0x65,0x76,0x65,0x72,0x79])]((_0x3f84fe,_0x5a9f55)=>_0x440324[_0x5a9f55]===_0x3f84fe||_0x440324[_0x5a9f55]===_0x4d40a1([0x2a])));}function _0x3645d7(){return _0x546d45&&_0x51ace2?new window[(_0x4d40a1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x28ecb8,_0xf982fd)=>{_0x546d45[_0x4d40a1([0x74,0x68,0x65,0x6e])](_0x28ecb8,_0xf982fd),_0x51ace2[_0x4d40a1([0x74,0x68,0x65,0x6e])](_0x417546=>{_0x417546!=_0x4d40a1([0x56,0x61,0x6c,0x69,0x64])&&_0x28ecb8(_0x417546);},_0xf982fd);}):_0x546d45||_0x51ace2||_0x4d40a1([0x56,0x61,0x6c,0x69,0x64]);}}function _0x486573(_0x31b02b,_0x45239a){return new window[(_0x4d40a1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c2181=>{if(_0x527cdc())return _0x4c2181(_0x4d40a1([0x56,0x61,0x6c,0x69,0x64]));_0x4c0d56(),_0x5e55d4[_0x4d40a1([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4d40a1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x488e02=!0x1;const _0x5afb34=_0x2e8cc();function _0x500497(_0x29c073){return!!_0x29c073&&(typeof _0x29c073===_0x4d40a1([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x29c073===_0x4d40a1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x29c073[_0x4d40a1([0x74,0x68,0x65,0x6e])]===_0x4d40a1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x29c073[_0x4d40a1([0x63,0x61,0x74,0x63,0x68])]===_0x4d40a1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2e031a(_0x347b5c){_0x4473cc(_0x347b5c)[_0x4d40a1([0x74,0x68,0x65,0x6e])](_0x534036=>{if(!_0x534036||_0x534036[_0x4d40a1([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4d40a1([0x6f,0x6b]))return _0x4d40a1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5f38e6(_0x27da88(_0x5afb34+_0x45239a))!=_0x534036[_0x4d40a1([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4d40a1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4d40a1([0x56,0x61,0x6c,0x69,0x64]);})[_0x4d40a1([0x74,0x68,0x65,0x6e])](_0x2fbd51=>(_0x2b688d(),_0x2fbd51),()=>{const _0x462b38=_0xe86841();return null==_0x462b38?(_0x2b688d(),_0x4d40a1([0x56,0x61,0x6c,0x69,0x64])):_0x4d40a1(_0x582acf-_0x462b38>(0x6e78f721^_0x85f7c1)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4d40a1([0x74,0x68,0x65,0x6e])](_0x4c2181)[_0x4d40a1([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4c2181(_0x4d40a1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xc0053d=0x4a429da1^_0x85f7c1;function _0x2b688d(){const _0x395146=_0x4d40a1([0x6c,0x6c,0x63,0x74,0x2d])+_0x5f38e6(_0x27da88(_0x31b02b)),_0x29b0b4=_0x1d7d9e(_0x5f38e6(window[_0x4d40a1([0x4d,0x61,0x74,0x68])][_0x4d40a1([0x63,0x65,0x69,0x6c])](_0x582acf/_0xc0053d)));window[_0x4d40a1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4d40a1([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x395146,_0x29b0b4);}function _0xe86841(){const _0x3acc4e=_0x4d40a1([0x6c,0x6c,0x63,0x74,0x2d])+_0x5f38e6(_0x27da88(_0x31b02b)),_0x565c72=window[_0x4d40a1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4d40a1([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3acc4e);return _0x565c72?window[_0x4d40a1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1d7d9e(_0x565c72),0x10)*_0xc0053d:null;}function _0x4473cc(_0x5e749d){return new window[(_0x4d40a1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3bef64,_0x1a14e7)=>{_0x5e749d[_0x4d40a1([0x74,0x68,0x65,0x6e])](_0x3bef64,_0x1a14e7),window[_0x4d40a1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1a14e7,0x4a75a7e1^_0x85f7c1);});}}_0x5e55d4[_0x4d40a1([0x6f,0x6e])](_0x4d40a1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x37561b,_0x31d4a6)=>{if(_0x31d4a6[0x0]!=_0x31b02b)return _0x4c2181(_0x4d40a1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x31d4a6[0x1]={..._0x31d4a6[0x1],[_0x4d40a1([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5afb34};},{[_0x4d40a1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4d40a1([0x68,0x69,0x67,0x68])}),_0x5e55d4[_0x4d40a1([0x6f,0x6e])](_0x4d40a1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x55cd0a=>{_0x500497(_0x55cd0a[_0x4d40a1([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x488e02=!0x0,_0x2e031a(_0x55cd0a[_0x4d40a1([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4d40a1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4d40a1([0x6c,0x6f,0x77])}),_0x4512b9[_0x4d40a1([0x74,0x68,0x65,0x6e])](()=>{_0x488e02||_0x4c2181(_0x4d40a1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x527cdc(){return _0x5e55d4[_0x4d40a1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4d40a1([0x76,0x69,0x65,0x77])][_0x4d40a1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4d40a1([0x61,0x75,0x74,0x6f]);}function _0x4c0d56(){_0x5e55d4[_0x4d40a1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4d40a1([0x76,0x69,0x65,0x77])][_0x4d40a1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4d40a1([0x61,0x75,0x74,0x6f]);}}function _0x10464c(_0x21f457){const _0x33178b=[new window[(_0x4d40a1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4963d7=>setTimeout(_0x4963d7,0x4a7d4ded^_0x85f7c1)),_0x4512b9[_0x4d40a1([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4d40a1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf01d9a=>{let _0x2c2ac8=0x0;_0x5e55d4[_0x4d40a1([0x6d,0x6f,0x64,0x65,0x6c])][_0x4d40a1([0x6f,0x6e])](_0x4d40a1([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5d08ad,_0x5090ea)=>{_0x5090ea[0x0][_0x4d40a1([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2c2ac8++,_0x2c2ac8==(0x4a7472d9^_0x85f7c1)&&(_0xf01d9a(),_0x5d08ad[_0x4d40a1([0x6f,0x66,0x66])]());});}))];return window[_0x4d40a1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4d40a1([0x72,0x61,0x63,0x65])](_0x33178b)[_0x4d40a1([0x74,0x68,0x65,0x6e])](()=>_0x21f457);}async function _0x2c2efc(){await _0x4512b9,_0x5e55d4[_0x4d40a1([0x6d,0x6f,0x64,0x65,0x6c])][_0x4d40a1([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4c7e67,_0x5e55d4[_0x4d40a1([0x6d,0x6f,0x64,0x65,0x6c])][_0x4d40a1([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4c7e67,_0x5e55d4[_0x4d40a1([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4d40a1([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3deb8c(){return _0x6e7961(_0x4d40a1([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4fdcd3(_0x4d40a1([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4d40a1([0x73,0x74,0x61,0x74,0x65])]==_0x4d40a1([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x337d17(){return _0x6e7961(_0x4d40a1([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 _0x1aef71(){return _0x6e7961(_0x4d40a1([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2c17fc(_0x3c8aa0){const _0x574291=_0x10ee81();_0x5e55d4[_0x574291]=_0x4d40a1([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3c8aa0,_0x3c8aa0!=_0x4d40a1([0x56,0x61,0x6c,0x69,0x64])&&_0x2c2efc();}function _0x10ee81(){const _0x15a957=window[_0x4d40a1([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4d40a1([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4d40a1([0x6e,0x6f,0x77])]())[_0x4d40a1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4d40a1([0x2e]),'');let _0xa29cc4=_0x4d40a1([0x57]);for(let _0x335c53=0x0;_0x335c53<_0x15a957[_0x4d40a1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x335c53+=0x2){let _0x2e96ad=window[_0x4d40a1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x15a957[_0x4d40a1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x335c53,_0x335c53+0x2));_0x2e96ad>=_0x36f359[_0x4d40a1([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2e96ad-=_0x36f359[_0x4d40a1([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xa29cc4+=_0x36f359[_0x2e96ad];}return _0xa29cc4;}function _0x3bde8c(){const _0x3175f9=_0x1d342f[_0x4d40a1([0x73,0x70,0x6c,0x69,0x74])](_0x4d40a1([0x2e]));if(0x3!=_0x3175f9[_0x4d40a1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x347d9f(_0x3175f9[0x1]);function _0x347d9f(_0x324fb7){const _0x2790e7=_0x260265(_0x324fb7);return _0x2790e7&&_0xb05c73()?_0x2790e7:null;function _0xb05c73(){const _0xed3d33=_0x2790e7[_0x4d40a1([0x6a,0x74,0x69])],_0xc5acc8=window[_0x4d40a1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xed3d33[_0x4d40a1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xed3d33[_0x4d40a1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xc5b541={..._0x2790e7,[_0x4d40a1([0x6a,0x74,0x69])]:_0xed3d33[_0x4d40a1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xed3d33[_0x4d40a1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xc5b541[_0x4d40a1([0x76,0x63])],_0x27da88(_0xc5b541)==_0xc5acc8;}}}async function _0x2ded9e(){let _0x2a37f0=!0x0;try{const _0xae88aa=_0x1d342f[_0x4d40a1([0x73,0x70,0x6c,0x69,0x74])](_0x4d40a1([0x2e])),[_0x332955,_0x4ad8bc,_0x4bdf44]=_0xae88aa;return _0x964e99(_0x332955),await _0x4988bb(_0x332955,_0x4ad8bc,_0x4bdf44),_0x2a37f0;}catch{return!0x1;}function _0x964e99(_0x10a7b0){const _0x11d01e=_0x260265(_0x10a7b0);_0x11d01e&&_0x11d01e[_0x4d40a1([0x61,0x6c,0x67])]==_0x4d40a1([0x45,0x53,0x32,0x35,0x36])||(_0x2a37f0=!0x1);}async function _0x4988bb(_0x69f97e,_0xeb6c62,_0x3c17c4){const _0x9b98c3=window[_0x4d40a1([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4d40a1([0x66,0x72,0x6f,0x6d])](_0x2f0b53(_0x3c17c4),_0x4e07da=>_0x4e07da[_0x4d40a1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x123e76=new window[(_0x4d40a1([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4d40a1([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x69f97e+_0x4d40a1([0x2e])+_0xeb6c62),_0x2242e2=window[_0x4d40a1([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4d40a1([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2242e2)return;const _0x36b7ea=await _0x2242e2[_0x4d40a1([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4d40a1([0x6a,0x77,0x6b]),_0x7bbbe6,{[_0x4d40a1([0x6e,0x61,0x6d,0x65])]:_0x4d40a1([0x45,0x43,0x44,0x53,0x41]),[_0x4d40a1([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4d40a1([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4d40a1([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2242e2[_0x4d40a1([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4d40a1([0x6e,0x61,0x6d,0x65])]:_0x4d40a1([0x45,0x43,0x44,0x53,0x41]),[_0x4d40a1([0x68,0x61,0x73,0x68])]:{[_0x4d40a1([0x6e,0x61,0x6d,0x65])]:_0x4d40a1([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x36b7ea,_0x9b98c3,_0x123e76)||(_0x2a37f0=!0x1);}}function _0x260265(_0x4160cf){return _0x4160cf[_0x4d40a1([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4d40a1([0x65,0x79]))?JSON[_0x4d40a1([0x70,0x61,0x72,0x73,0x65])](_0x2f0b53(_0x4160cf)):null;}function _0x2f0b53(_0x1dd0cb){return window[_0x4d40a1([0x61,0x74,0x6f,0x62])](_0x1dd0cb[_0x4d40a1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4d40a1([0x2b]))[_0x4d40a1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4d40a1([0x2f])));}function _0x27da88(_0x2f157e){let _0x2d936c=0x1505;function _0x4d16a0(_0x4d375f){for(let _0x3ff835=0x0;_0x3ff835<_0x4d375f[_0x4d40a1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3ff835++){const _0x2a1cdc=_0x4d375f[_0x4d40a1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3ff835);_0x2d936c=(_0x2d936c<<0x5)+_0x2d936c+_0x2a1cdc,_0x2d936c&=_0x2d936c;}}function _0x347c25(_0x5134cd){Array[_0x4d40a1([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5134cd)?_0x5134cd[_0x4d40a1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x347c25):_0x5134cd&&typeof _0x5134cd==_0x4d40a1([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4d40a1([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5134cd)[_0x4d40a1([0x73,0x6f,0x72,0x74])]()[_0x4d40a1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5880a2,_0x47e609])=>{_0x4d16a0(_0x5880a2),_0x347c25(_0x47e609);}):_0x4d16a0(window[_0x4d40a1([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5134cd));}return _0x347c25(_0x2f157e),_0x2d936c>>>0x0;}function _0x5f38e6(_0x3a1531){return _0x3a1531[_0x4d40a1([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4d40a1([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4d40a1([0x30]));}function _0x1d7d9e(_0x10ca0c){return _0x10ca0c[_0x4d40a1([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4d40a1([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4d40a1([0x6a,0x6f,0x69,0x6e])]('');}function _0x6e7961(_0x4b55ae){return _0x5e55d4[_0x4d40a1([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4d40a1([0x68,0x61,0x73])](_0x4b55ae);}function _0x4fdcd3(_0x589c81){return _0x5e55d4[_0x4d40a1([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4d40a1([0x67,0x65,0x74])](_0x589c81);}function _0x4c7e67(){}function _0x4d40a1(_0x5beb75){return _0x5beb75['map'](_0x580868=>String['fromCharCode'](_0x580868))['join']('');}_0x2c17fc(await _0x203ada());}(this);}set['adapter'](_0xeff6c6){if(this['_adapter'])throw new _0x6d13d3('track-changes-adapter-already-set',this);this['_adapter']=_0xeff6c6;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x5db2bc=!0x1,toJSON:_0x5888ec=!0x1}={}){const _0x410c3c=[];for(const _0x1e6d53 of this['_suggestions']['values']())_0x5db2bc&&!_0x1e6d53['isInContent']||_0x410c3c['push'](_0x1e6d53);return _0x5888ec?_0x410c3c['map'](_0x19833a=>_0x19833a['toJSON']()):_0x410c3c;}['getSuggestion'](_0x300959){const _0x1bc734=this['_suggestions']['get'](_0x300959);if(!_0x1bc734)throw new _0x6d13d3('track-changes-suggestion-not-found',this);return _0x1bc734;}['hasSuggestion'](_0x1af5b6){return this['_suggestions']['has'](_0x1af5b6);}['addSuggestionData'](_0x7684a4){const {authorId:_0x2b91ae,id:_0x1ef399,originalSuggestionId:_0x45dada,attributes:_0x96f3f9}=_0x7684a4,[_0x27d75d,_0x192f27]=_0x7684a4['type']['split'](':'),_0x360941=this['_suggestions']['get'](_0x1ef399)||this['_createSuggestion'](_0x27d75d,_0x192f27,_0x1ef399,_0x2b91ae,_0x96f3f9,_0x45dada);if(this['_addThreadToSuggestion'](_0x360941),this['_checkSuggestionCorrectness'](_0x360941,_0x27d75d,_0x192f27||null,_0x2b91ae),_0x360941['createdAt']=_0x7684a4['createdAt'],_0x360941['_isDataLoaded']=!0x0,_0x96f3f9&&_0x96f3f9['@external']){const _0x24145d=_0x96f3f9['@external'],_0x11603e=this['_getExternalAuthor'](_0x24145d['authorName']);_0x360941['authoredAt']=_0x24145d['createdAt'],_0x360941['author']=_0x11603e,_0x360941['isExternal']=!0x0;}else _0x360941['authoredAt']=_0x7684a4['createdAt'];switch(_0x7684a4['data']&&(_0x360941['data']=_0x7684a4['data']),_0x7684a4['attributes']&&(_0x360941['attributes']=_0x7684a4['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x360941['_saved']=!0x0),this['_suggestionState']['get'](_0x360941)){case'notReady':this['_suggestionState']['set'](_0x360941,'dataReady');break;case'markerReady':_0x360941['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x360941])),this['_refreshSuggestionsChain'](new Set([_0x360941])),this['_suggestionState']['set'](_0x360941,'ready'),this['fire']('suggestionLoaded',_0x360941)):this['_suggestionState']['set'](_0x360941,'removed');}return _0x360941;}['acceptSuggestion'](_0xa7462){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x7dd7a6 of _0xa7462['getAllAdjacentSuggestions']())_0x7dd7a6['accept']();});});}['discardSuggestion'](_0x4c985b){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x374711 of _0x4c985b['getAllAdjacentSuggestions']())_0x374711['discard']();});});}['enableCommand'](_0x448381,_0x3c0cb1){const _0x3a4fde=this['editor']['commands']['get'](_0x448381);if(!_0x3a4fde)throw new _0x6d13d3('track-changes-command-not-found',this,{'commandName':_0x448381});if(this['_enabledCommands']['has'](_0x3a4fde))throw new _0x6d13d3('track-changes-enable-command-twice',this,{'commandName':_0x448381});this['_enabledCommands']['add'](_0x3a4fde),_0x3c0cb1&&_0x3a4fde['on']('execute',(_0x16dee5,_0x4564f3)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x4564f3['length']>0x0&&_0x4564f3[_0x4564f3['length']-0x1]&&_0x4564f3[_0x4564f3['length']-0x1]['forceDefaultExecution']?_0x4564f3['pop']():(_0x16dee5['return']=_0x3c0cb1((..._0xd29c42)=>_0x3a4fde['execute'](..._0xd29c42,{'forceDefaultExecution':!0x0}),..._0x4564f3),_0x16dee5['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x362f90){let _0x4fd575,_0x26ee39;const _0x391d10=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4fd575=_0x362f90();}catch(_0x49161b){_0x26ee39=_0x49161b;}return _0x391d10||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x26ee39&&_0x6d13d3['rethrowUnexpectedError'](_0x26ee39,this),_0x4fd575;}['markInsertion'](_0x10c220,_0x5cbd44=null,_0x21ca43={}){if(_0x10c220['isCollapsed'])return null;const _0x344fea=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x21ca43['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4d2fab,meta:_0x2a6892}of this['_findSuggestions'](_0x10c220,'insertion'))if(_0x2a6892['isOwn']){if(!_0x2a6892['isNextTo']){if(_0x2a6892['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x4d2fab,_0x21ca43))continue;return _0x4d2fab;}if(Xt(_0x4d2fab,_0x21ca43))return _0x4d2fab;this['_breakSuggestionMarker'](_0x4d2fab,_0x10c220['start'],_0x10c220['end']);break;}if(_0x5cbd44==_0x4d2fab['subType']&&Xt(_0x4d2fab,_0x21ca43)){const _0x48c18f=_0x4d2fab['getFirstRange']();return _0x48c18f['start']['isEqual'](_0x10c220['end'])?this['_setSuggestionRange'](_0x4d2fab,this['_model']['createRange'](_0x10c220['start'],_0x48c18f['end'])):this['_setSuggestionRange'](_0x4d2fab,this['_model']['createRange'](_0x48c18f['start'],_0x10c220['end'])),_0x4d2fab;}}const _0x59169e=_0x2e8cc(),_0x754aa8=_0x344fea['id'],_0x36f8b4=_0x5cbd44?'insertion:'+_0x5cbd44:'insertion',_0x50872f=this['_setSuggestionData']({'id':_0x59169e,'type':_0x36f8b4,'createdAt':new Date(),'authorId':_0x754aa8,'attributes':_0x21ca43});return this['_addSuggestionMarker'](_0x36f8b4,_0x59169e,_0x754aa8,_0x10c220),_0x50872f;}['markMultiRangeInsertion'](_0x259a6e,_0x22fcb6='multi',_0x255b77={}){const _0x37a39c=this['editor']['plugins']['get']('Users')['me'],_0x343e6e=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x22fcb6,'join');this['_trackingSessionId']&&(_0x255b77['trackingSessionId']=this['_trackingSessionId']);for(const _0x2ae11b of this['getSuggestions']())if(_0x2ae11b['author']['id']==_0x37a39c['id']&&'insertion'==_0x2ae11b['type']&&_0x2ae11b['subType']==_0x22fcb6&&Xt(_0x2ae11b,_0x255b77)&&(_0x343e6e(_0x2ae11b['getRanges'](),_0x259a6e)||_0x343e6e(_0x259a6e,_0x2ae11b['getRanges']()))){for(const _0x36a232 of _0x259a6e)_0x2ae11b['addRange'](_0x36a232);return _0x2ae11b;}for(const {suggestion:_0x1d96c3,meta:_0x23be51}of this['_findSuggestions'](_0x259a6e,'insertion')){if(!_0x23be51['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x23be51['containsRangeInObject'])continue;if(!Xt(_0x1d96c3,_0x255b77))continue;let _0x677de2=!0x0;for(const _0x2ef97d of _0x1d96c3['getRanges']())for(const _0x116d77 of _0x259a6e)if(!_0x2ef97d['containsRange'](_0x116d77)){_0x677de2=!0x1;break;}if(_0x677de2)return _0x1d96c3;}const _0x1740c0=_0x2e8cc(),_0x3df962=_0x37a39c['id'],_0x580ee6='insertion:'+_0x22fcb6,_0x3522f8=this['_setSuggestionData']({'id':_0x1740c0,'type':_0x580ee6,'createdAt':new Date(),'authorId':_0x3df962,'attributes':_0x255b77});for(const _0x1f9dba of _0x259a6e)this['_addSuggestionMarker'](_0x580ee6,_0x1740c0,_0x3df962,_0x1f9dba,T['getMultiRangeId']());return _0x3522f8;}['markInlineFormat'](_0x555be8,_0x4b5328,_0x156db8=null,_0x4a0f83={}){if(_0x156db8=_0x156db8||Lt(_0x4b5328),_0x555be8['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x4a0f83['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x15b09d=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x156db8,'accept');return this['forceDefaultExecution'](()=>_0x15b09d([_0x555be8],_0x4b5328,_0x4a0f83)),null;}const _0x1cb0e1=this['editor']['plugins']['get']('Users')['me'],_0x399cd4=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x5f2242,meta:_0x46a174}of this['_findSuggestions'](_0x555be8,'insertion'))_0x46a174['isOwn']&&!_0x46a174['isInsideObject']&&_0x399cd4['push'](..._0x5f2242['getRanges']());}const _0x4ab76a=function(_0x1fbd5a,_0x525613){const _0x42b5c8=[];for(const _0x4bcc08 of _0x525613){const _0x571cb5=_0x1fbd5a['getIntersection'](_0x4bcc08);_0x571cb5&&_0x42b5c8['push'](_0x571cb5);}return _0x42b5c8;}(_0x555be8,_0x399cd4),_0x470773=function(_0x2dbe24,_0x3a963d){const _0x1c2baf=[_0x2dbe24];for(const _0x59b3fd of _0x3a963d){let _0x1af7e8=0x0;for(;_0x1af7e8<_0x1c2baf['length'];){const _0x59d075=_0x1c2baf[_0x1af7e8]['getDifference'](_0x59b3fd);_0x1c2baf['splice'](_0x1af7e8,0x1,..._0x59d075),_0x1af7e8+=_0x59d075['length'];}}return _0x1c2baf;}(_0x555be8,_0x399cd4);_0x4ab76a['length']&&this['_model']['change'](()=>{for(const _0x22497d of _0x4ab76a){const _0x4e8d96=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x156db8,'accept');this['forceDefaultExecution'](()=>_0x4e8d96([_0x22497d],_0x4b5328,_0x4a0f83));}});for(const _0x57f16a of _0x470773){let _0x32b156=null,_0x593cd7=_0x57f16a['start'],_0x33fe22=_0x57f16a['end'];for(const {suggestion:_0x542a49,meta:_0x564b25}of this['_findSuggestions'](_0x57f16a,'formatInline')){if(!_0x564b25['isOwn'])continue;if(_0x542a49['subType']!=_0x156db8)continue;if(!Xt(_0x542a49,_0x4a0f83))continue;const _0x43487e=_0x542a49['getFirstRange']();if(_0x43487e['containsRange'](_0x57f16a,!0x0))return null;_0x593cd7=_0x593cd7['isBefore'](_0x43487e['start'])?_0x593cd7:_0x43487e['start'],_0x33fe22=_0x33fe22['isAfter'](_0x43487e['end'])?_0x33fe22:_0x43487e['end'],_0x32b156?_0x43487e['start']['isBefore'](_0x32b156['getFirstRange']()['start'])?(_0x32b156['removeMarkers'](),_0x32b156=_0x542a49):_0x542a49['removeMarkers']():_0x32b156=_0x542a49;}const _0x44239=this['_model']['createRange'](_0x593cd7,_0x33fe22);if(_0x32b156)this['_setSuggestionRange'](_0x32b156,_0x44239);else{const _0x1e91d9=_0x2e8cc(),_0x11871b=_0x1cb0e1['id'];this['_setSuggestionData']({'id':_0x1e91d9,'type':'formatInline:'+_0x156db8,'data':_0x4b5328,'createdAt':new Date(),'authorId':_0x11871b,'attributes':_0x4a0f83}),this['_addSuggestionMarker']('formatInline:'+_0x156db8,_0x1e91d9,_0x11871b,_0x44239);}}return null;}['markBlockFormat'](_0x30cf42,_0x34bbcd,_0x5e6270=[],_0x110ad8=null,_0x28cea3={}){_0x34bbcd['formatGroupId']||(_0x34bbcd['formatGroupId']=_0x34bbcd['commandName']),_0x34bbcd['multipleBlocks']=_0x30cf42['is']('range'),_0x110ad8=_0x110ad8||Lt(_0x34bbcd);const _0x17c6ec=_0x5e6270['map'](_0x2eb08a=>zt(_0x2eb08a,this['_model'])),_0x58dc44=_0x30cf42['is']('range')?_0x30cf42:zt(_0x30cf42,this['_model']);if(this['_trackingSessionId']&&(_0x28cea3['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x12f08b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x110ad8,'accept');return this['forceDefaultExecution'](()=>_0x12f08b([_0x58dc44],_0x34bbcd,_0x28cea3)),null;}_0x17c6ec['push'](_0x58dc44);let _0x288f99=!0x0;for(const _0x2045f8 of _0x17c6ec)if(!this['_rangeIsInLocalUserInsertion'](_0x2045f8)){_0x288f99=!0x1;break;}if(_0x288f99&&'always'!==this['_trackFormatChanges']){const _0x223d70=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x110ad8,'accept');return this['forceDefaultExecution'](()=>_0x223d70([_0x58dc44],_0x34bbcd,_0x28cea3)),null;}let _0x56bb48=null,_0x14bf97=_0x58dc44['start'],_0x423f85=_0x58dc44['end'];for(const {suggestion:_0x3eaa4d,meta:_0x433b8b}of this['_findSuggestions'](_0x58dc44,'formatBlock')){if(!_0x433b8b['isOwn'])continue;if(_0x433b8b['isNextTo']||_0x433b8b['containsRangeInObject']||_0x433b8b['isInsideObject'])continue;if(_0x3eaa4d['data']['formatGroupId']!=_0x34bbcd['formatGroupId'])continue;if(!Xt(_0x3eaa4d,_0x28cea3))continue;const _0x13ea94=_0x3eaa4d['getFirstRange']();if(_0x3eaa4d['subType']==_0x110ad8){if(_0x13ea94['containsRange'](_0x58dc44,!0x0))return null;_0x14bf97=_0x14bf97['isBefore'](_0x13ea94['start'])?_0x14bf97:_0x13ea94['start'],_0x423f85=_0x423f85['isAfter'](_0x13ea94['end'])?_0x423f85:_0x13ea94['end'],_0x56bb48?_0x13ea94['start']['isBefore'](_0x56bb48['getFirstRange']()['start'])?(_0x56bb48['removeMarkers'](),_0x56bb48=_0x3eaa4d):_0x3eaa4d['removeMarkers']():_0x56bb48=_0x3eaa4d;}else{const _0x35e252=_0x58dc44['getIntersection'](_0x13ea94);this['_cutOutSuggestionMarker'](_0x3eaa4d,_0x35e252);}}const _0x4edf72=this['editor']['plugins']['get']('Users')['me'],_0x19307d=_0x2e8cc(),_0xa7fc63=_0x4edf72['id'];if(_0x56bb48)return this['_setSuggestionRange'](_0x56bb48,this['_model']['createRange'](_0x14bf97,_0x423f85)),_0x56bb48;{const _0x51033b=this['_setSuggestionData']({'id':_0x19307d,'type':'formatBlock:'+_0x110ad8,'data':_0x34bbcd,'createdAt':new Date(),'authorId':_0xa7fc63,'attributes':_0x28cea3});return this['_addSuggestionMarker']('formatBlock:'+_0x110ad8,_0x19307d,_0xa7fc63,this['_model']['createRange'](_0x14bf97,_0x423f85)),_0x51033b;}}['markMultiRangeBlockFormat'](_0x3f82de,_0x3e2305,_0xfc5981=[],_0x4d6330=null,_0x42983d={}){_0x3e2305['formatGroupId']||(_0x3e2305['formatGroupId']=_0x3e2305['commandName']);const _0x351680=_0x3f82de[0x0];_0x3e2305['multipleBlocks']=_0x351680['is']('range'),_0x4d6330=_0x4d6330||Lt(_0x3e2305);const _0x23d665=_0xfc5981['map'](_0x36ef3b=>zt(_0x36ef3b,this['_model'])),_0x25833e=_0x351680['is']('range')?_0x3f82de:_0x3f82de['map'](_0x3ba80d=>zt(_0x3ba80d,this['_model']));if(this['_trackingSessionId']&&(_0x42983d['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3e8f88=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4d6330,'accept');return this['forceDefaultExecution'](()=>_0x3e8f88(_0x25833e,_0x3e2305,_0x42983d)),null;}_0x23d665['push'](..._0x25833e);let _0x448bf9=!0x0;for(const _0x329437 of _0x23d665)if(!this['_rangeIsInLocalUserInsertion'](_0x329437)){_0x448bf9=!0x1;break;}if(_0x448bf9&&'always'!==this['_trackFormatChanges']){const _0x1e5d87=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4d6330,'accept');return this['forceDefaultExecution'](()=>_0x1e5d87(_0x25833e,_0x3e2305,_0x42983d)),null;}const _0xe9ecb5=this['editor']['plugins']['get']('Users')['me'];for(const _0x219011 of this['getSuggestions']()){const _0x3120b6=_0x219011['data'];if(_0x219011['author']['id']!=_0xe9ecb5['id'])continue;if('formatBlock'!=_0x219011['type']||_0x3120b6['formatGroupId']!=_0x3e2305['formatGroupId'])continue;if(!Xt(_0x219011,_0x42983d))continue;const _0x237fa6=_0x219011['subType']==_0x4d6330;for(let _0x3458db=0x0;_0x3458db<_0x25833e['length'];_0x3458db++){const _0x538570=_0x25833e[_0x3458db];for(const _0x4e0888 of _0x219011['getMarkers']()){const _0x2d7082=_0x4e0888['getRange']();if(_0x538570['isEqual'](_0x2d7082)){_0x237fa6?(_0x25833e['splice'](_0x3458db,0x1),_0x3458db--):_0x219011['removeMarker'](_0x4e0888['name']);break;}}}}if(0x0==_0x25833e['length'])return null;const _0xcdac63=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4d6330,'join');for(const _0x18f2a9 of this['getSuggestions']()){const _0x386fd3=_0x18f2a9['data'];if(_0x18f2a9['author']['id']==_0xe9ecb5['id']&&('formatBlock'==_0x18f2a9['type']&&_0x386fd3['formatGroupId']==_0x3e2305['formatGroupId']&&_0x18f2a9['subType']==_0x4d6330&&Xt(_0x18f2a9,_0x42983d)&&(_0xcdac63(_0x18f2a9['getRanges'](),_0x25833e)||_0xcdac63(_0x25833e,_0x18f2a9['getRanges']())))){for(const _0x254dde of _0x25833e)_0x18f2a9['addRange'](_0x254dde);return _0x18f2a9;}}const _0x596470=_0x2e8cc(),_0x55cced=_0xe9ecb5['id'],_0x2ef796='formatBlock:'+_0x4d6330,_0x9a0764=this['_setSuggestionData']({'id':_0x596470,'type':_0x2ef796,'data':_0x3e2305,'createdAt':new Date(),'authorId':_0x55cced,'attributes':_0x42983d});for(const _0x33db34 of _0x25833e)this['_addSuggestionMarker'](_0x2ef796,_0x596470,_0x55cced,_0x33db34,T['getMultiRangeId']());return _0x9a0764;}['markDeletion'](_0x2e55ca,_0x6bffb4=null,_0x3ee195={}){if(_0x2e55ca['isCollapsed'])return null;const _0x255b04=this['editor']['plugins']['get']('Users')['me'],_0x7270ad=new _0x28f293(_0x2e55ca['start'],_0x2e55ca['end']);this['_trackingSessionId']&&(_0x3ee195['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x58c2a6,meta:_0x4f7260}of this['_findSuggestions'](_0x7270ad,'insertion'))if(_0x4f7260['isOwn']&&!_0x4f7260['isNextTo']){if(_0x58c2a6['isMultiRange']){const _0x5b7bef=_0x58c2a6['getRanges']()['filter'](_0x35eddb=>'$graveyard'!=_0x35eddb['root']['rootName']);_0x5b7bef['every'](_0x4c165e=>_0x7270ad['containsRange'](_0x4c165e,!0x0))&&_0x58c2a6['discard']();if(_0x5b7bef['some'](_0x126264=>_0x126264['containsRange'](_0x7270ad,!0x0))){const _0x139956=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x6bffb4,'accept');return this['forceDefaultExecution'](()=>_0x139956([_0x7270ad],null,_0x3ee195)),null;}}else{const _0x5a1488=_0x7270ad['getIntersection'](_0x58c2a6['getFirstRange']());null!==_0x5a1488&&_0x58c2a6['_onDiscard']([_0x5a1488],null,_0x3ee195);}}if(_0x7270ad['detach'](),_0x7270ad['isCollapsed']||'$graveyard'==_0x7270ad['root']['rootName'])return null;let _0x23a6b8=null,_0x37502a=_0x7270ad['start'],_0x18f3bf=_0x7270ad['end'];const _0x33879d=this['_findSuggestions'](_0x7270ad,'deletion');for(const {suggestion:_0x260dcf,meta:_0x29854e}of _0x33879d){const _0xf05dd3=this['_model']['createRange'](_0x37502a,_0x18f3bf);if(_0x29854e['isOwn']&&(this['_mergeNestedSuggestions']||!_0x29854e['containsRangeInObject']&&!_0x29854e['isInsideObject'])){if(_0x260dcf['isMultiRange']){if(!Xt(_0x260dcf,_0x3ee195))continue;let _0x2ab7fe=!0x0;for(const _0x429727 of _0x260dcf['getRanges']()){if(_0x429727['containsRange'](_0xf05dd3,!0x0))return _0x260dcf;_0xf05dd3['containsRange'](_0x429727)||(_0x2ab7fe=!0x1);}_0x2ab7fe&&_0x260dcf['discard']();}else{const _0x1b81a6=_0x260dcf['getFirstRange']();if(_0x1b81a6['containsRange'](_0xf05dd3,!0x0))return _0x260dcf;if(!Xt(_0x260dcf,_0x3ee195)){_0xf05dd3['containsRange'](_0x1b81a6)?_0x260dcf['removeMarkers']():_0x1b81a6['containsPosition'](_0x37502a)?_0x37502a=_0x1b81a6['end']:_0x1b81a6['containsPosition'](_0x18f3bf)&&(_0x18f3bf=_0x1b81a6['start']);continue;}_0x37502a=_0x37502a['isBefore'](_0x1b81a6['start'])?_0x37502a:_0x1b81a6['start'],_0x18f3bf=_0x18f3bf['isAfter'](_0x1b81a6['end'])?_0x18f3bf:_0x1b81a6['end'],_0x3ee195=Object['assign']({},_0x260dcf['attributes']),_0x23a6b8?_0x1b81a6['start']['isBefore'](_0x23a6b8['getFirstRange']()['start'])?(_0x23a6b8['removeMarkers'](),_0x23a6b8=_0x260dcf):_0x260dcf['removeMarkers']():_0x23a6b8=_0x260dcf;}}}if(_0x23a6b8)return this['_setSuggestionRange'](_0x23a6b8,this['_model']['createRange'](_0x37502a,_0x18f3bf)),_0x23a6b8;{const _0x157a9c=_0x2e8cc(),_0x34919a=this['_model']['createRange'](_0x37502a,_0x18f3bf),_0x3e1ed5=_0x255b04['id'],_0x438ee4=_0x6bffb4?'deletion:'+_0x6bffb4:'deletion',_0x1b3f41=this['_setSuggestionData']({'id':_0x157a9c,'type':_0x438ee4,'createdAt':new Date(),'authorId':_0x3e1ed5,'attributes':_0x3ee195});return this['_addSuggestionMarker'](_0x438ee4,_0x157a9c,_0x3e1ed5,_0x34919a),_0x1b3f41;}}['markMultiRangeDeletion'](_0x2a7217,_0x58a27f='multi',_0x33460a={}){const _0x22cdc7=this['editor']['plugins']['get']('Users')['me'],_0x47b9d6=_0x2a7217['map'](_0x3db3a7=>new _0x28f293(_0x3db3a7['start'],_0x3db3a7['end'])),_0x513b1c=new Set();this['_trackingSessionId']&&(_0x33460a['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3201c0,meta:_0x3cbd43}of this['_findSuggestions'](_0x47b9d6,'insertion'))_0x3cbd43['isOwn']&&!_0x3cbd43['isNextTo']&&_0x513b1c['add'](_0x3201c0);for(const _0x3db87e of _0x513b1c)if(_0x3db87e['isMultiRange']){const _0x112ecb=_0x3db87e['getRanges']();(!_0x3db87e['attributes']||!_0x3db87e['attributes']['skipNestingCheck'])&&(_0x112ecb['every'](_0x47863a=>_0x47b9d6['some'](_0x263969=>_0x263969['containsRange'](_0x47863a,!0x0)))&&_0x3db87e['discard']());if(_0x47b9d6['every'](_0x265ca1=>_0x112ecb['some'](_0x8eb114=>_0x8eb114['containsRange'](_0x265ca1,!0x0)))){const _0x30aa1e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x58a27f,'accept');return this['forceDefaultExecution'](()=>_0x30aa1e(_0x2a7217,null,_0x33460a)),null;}}else{const _0x8938e9=_0x3db87e['getFirstRange']();_0x47b9d6['some'](_0x2b2204=>_0x2b2204['containsRange'](_0x8938e9,!0x0))&&_0x3db87e['discard']();if(_0x47b9d6['every'](_0x39d075=>_0x8938e9['containsRange'](_0x39d075,!0x0))){const _0x320d89=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x58a27f,'accept');return this['forceDefaultExecution'](()=>_0x320d89(_0x47b9d6,null,_0x33460a)),null;}}const _0x430d64=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x58a27f,'join');let _0x152024=null;for(const _0x21cbff of this['getSuggestions']())if(_0x21cbff['author']['id']==_0x22cdc7['id']&&_0x21cbff['isInContent']&&'deletion'==_0x21cbff['type']&&_0x21cbff['subType']==_0x58a27f&&Xt(_0x21cbff,_0x33460a)&&(_0x430d64(_0x21cbff['getRanges'](),_0x47b9d6)||_0x430d64(_0x47b9d6,_0x21cbff['getRanges']()))){if(_0x152024){if(_0x21cbff['commentThread']&&_0x21cbff['commentThread']['length'])continue;for(const _0x5d29ef of _0x21cbff['getRanges']())_0x152024['isIntersectingWithRange'](_0x5d29ef)||_0x152024['addRange'](_0x5d29ef);_0x21cbff['removeMarkers']();}else{_0x152024=_0x21cbff;for(const _0x5e8a14 of _0x47b9d6)_0x21cbff['isIntersectingWithRange'](_0x5e8a14)||_0x21cbff['addRange'](_0x5e8a14);}}if(_0x152024)return _0x152024;_0x513b1c['clear']();for(const {suggestion:_0x1b1617,meta:_0x509d25}of this['_findSuggestions'](_0x47b9d6,'deletion'))_0x509d25['isOwn']&&(this['_mergeNestedSuggestions']||!_0x509d25['containsRangeInObject']&&!_0x509d25['isInsideObject'])&&Xt(_0x1b1617,_0x33460a)&&_0x513b1c['add'](_0x1b1617);for(const _0x2624c7 of _0x513b1c){const _0x1b42bf=_0x2624c7['getRanges']();if(!_0x33460a||!_0x33460a['skipNestingCheck']){if(_0x47b9d6['every'](_0x4be8e5=>_0x1b42bf['some'](_0x1e841f=>_0x1e841f['containsRange'](_0x4be8e5,!0x0))))return _0x2624c7;}(!_0x2624c7['attributes']||!_0x2624c7['attributes']['skipNestingCheck'])&&(_0x1b42bf['every'](_0x2d928b=>_0x47b9d6['some'](_0x37f245=>_0x37f245['containsRange'](_0x2d928b,!0x0)))&&_0x2624c7['discard']());}const _0x53715b=_0x2e8cc(),_0x141088=_0x22cdc7['id'],_0x200a28='deletion:'+_0x58a27f,_0x431f3a=this['_setSuggestionData']({'id':_0x53715b,'type':_0x200a28,'createdAt':new Date(),'authorId':_0x141088,'attributes':_0x33460a});for(const _0x4eb5e5 of _0x47b9d6)_0x4eb5e5['detach'](),_0x4eb5e5['isCollapsed']||'$graveyard'==_0x4eb5e5['root']['rootName']||this['_addSuggestionMarker'](_0x200a28,_0x53715b,_0x141088,_0x4eb5e5,T['getMultiRangeId']());return _0x431f3a;}['markAttributeChange'](_0x57c797,_0x10dd35,_0x4a7c9b,_0xa812f5,_0x908103){if(_0x57c797['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x51bb4d=this['editor']['plugins']['get']('Users')['me']['id'],_0x2e73fb=Array['from'](this['_suggestions']['values']())['filter'](_0x58e717=>'attribute'==_0x58e717['type']&&_0x58e717['data']['key']==_0x10dd35&&_0x58e717['isIntersectingWithRange'](_0x57c797));if(this['_trackingSessionId']&&(_0x908103['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x23b156=this['_findSuggestions'](_0x57c797,'insertion')['filter'](({meta:_0x7695f2})=>_0x7695f2['isOwn']&&!_0x7695f2['isInsideObject']&&!_0x7695f2['isNextTo'])['map'](({suggestion:_0x459db3})=>_0x459db3);_0x2e73fb['unshift'](..._0x23b156);}const _0xd0a40b=new Map([[_0x57c797,_0x4a7c9b]]);for(const _0xda9b2b of _0x2e73fb){const _0x3c9342='attribute'==_0xda9b2b['type']?_0xda9b2b['data']['oldValue']:void 0x0,_0x4fe72e=_0xda9b2b['getFirstRange'](),_0xeeaf2a=Array['from'](_0xd0a40b['keys']())['find'](_0x2cdd9d=>_0x2cdd9d['isIntersecting'](_0x4fe72e));if(!_0xeeaf2a)continue;const _0x8a1575=_0xeeaf2a['getDifference'](_0x4fe72e);this['_isBlockAttribute'](_0x10dd35)&&'insertion'==_0xda9b2b['type']&&0x0!=_0x8a1575['length']||(_0xd0a40b['delete'](_0xeeaf2a),_0x8a1575['forEach'](_0x542dd2=>{_0xd0a40b['set'](_0x542dd2,_0x4a7c9b);}),'insertion'!=_0xda9b2b['type']&&_0x3c9342!=_0xa812f5&&_0xd0a40b['set'](_0xeeaf2a['getIntersection'](_0x4fe72e),_0x3c9342));}const _0x3af2ac=[];for(const [_0x553a24,_0x364d14]of _0xd0a40b){const _0xb19b1f=_0x2e8cc(),_0x5d05cd={'key':_0x10dd35,'oldValue':_0x364d14,'newValue':_0xa812f5};_0x10dd35['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':_0x10dd35});const _0x4fc08c=('attribute:'+(_0x10dd35+'|'+Lt({'newValue':_0xa812f5})))['substring'](0x0,0x3c),_0x1f7fe6=this['_setSuggestionData']({'id':_0xb19b1f,'type':_0x4fc08c,'data':_0x5d05cd,'createdAt':new Date(),'authorId':_0x51bb4d,'attributes':_0x908103});_0x3af2ac['push'](_0x1f7fe6),this['_addSuggestionMarker'](_0x4fc08c,_0xb19b1f,_0x51bb4d,_0x553a24);}return _0x3af2ac;}['enableDefaultAttributesIntegration'](_0x3bb3cd){this['enableCommand'](_0x3bb3cd,(_0x4de334,..._0x339b73)=>{this['recordAttributeChanges'](()=>{_0x4de334(..._0x339b73);});});}['registerBlockAttribute'](_0x5d330d){this['_blockAttributeKeys']['add'](_0x5d330d);}['registerInlineAttribute'](_0x1c6509){this['_inlineAttributeKeys']['add'](_0x1c6509);}['startTrackingSession'](_0x9b771f){return this['_trackingSessionId']=void 0x0!==_0x9b771f?_0x9b771f:_0x2e8cc(),this['_trackingSessionId'];}['_getAttributeKey'](_0x577b7e){return'attribute'==_0x577b7e['type']?_0x577b7e['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x1b503f,_0x217106){const _0x314763=_0x1b503f['getFirstMarker']();this['_model']['change'](_0xd7cfe1=>{_0xd7cfe1['updateMarker'](_0x314763,{'range':_0x217106});});}['_addThreadToSuggestion'](_0x5cbc4a){const _0x318d14=_0x5cbc4a['id'],_0x552558=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x318d14)||this['_commentsRepository']['addCommentThread']({'channelId':_0x552558,'threadId':_0x318d14,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3d6bc4=this['_commentsRepository']['getCommentThread'](_0x318d14);_0x3d6bc4['unbind']('isRemovable'),_0x3d6bc4['isRemovable']=!0x1,_0x5cbc4a['commentThread']=_0x3d6bc4;}['_checkSuggestionCorrectness'](_0xdd647a,_0x513b0e,_0x5433f3,_0x3143ce){if(_0xdd647a['type']!=_0x513b0e||_0xdd647a['subType']!=_0x5433f3||_0xdd647a['creator']['id']!=_0x3143ce)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x6d13d3('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1c1b93,_0x2513e5){const _0x4e6b99=_0x1c1b93['getFirstRange']();if(_0x2513e5['isEqual'](_0x4e6b99))_0x1c1b93['removeMarkers']();else{if(_0x4e6b99['containsRange'](_0x2513e5)){const _0x1dd0d0=this['_model']['createPositionAt'](_0x2513e5['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1c1b93,this['_model']['createRange'](_0x4e6b99['start'],_0x1dd0d0));const _0x4c60af=_0x2e8cc(),_0x35d1a3=_0x1c1b93['creator']['id'],_0x384c95=_0x1c1b93['type']+':'+_0x1c1b93['subType'];this['_setSuggestionData']({'id':_0x4c60af,'type':_0x384c95,'createdAt':new Date(),'authorId':_0x35d1a3,'data':_0x1c1b93['data'],'attributes':_0x1c1b93['attributes']});const _0xad0fa4=this['_model']['createPositionAt'](_0x2513e5['end']['parent'],'after'),_0x2ecedb=this['_model']['createRange'](_0xad0fa4,_0x4e6b99['end']);this['_addSuggestionMarker'](_0x384c95,_0x4c60af,_0x35d1a3,_0x2ecedb);}else{if(_0x4e6b99['containsPosition'](_0x2513e5['start'])){const _0xe6756a=this['_model']['createPositionAt'](_0x2513e5['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1c1b93,this['_model']['createRange'](_0x4e6b99['start'],_0xe6756a));}else{const _0x138997=this['_model']['createPositionAt'](_0x2513e5['end']['parent'],'after');this['_setSuggestionRange'](_0x1c1b93,this['_model']['createRange'](_0x138997,_0x4e6b99['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x4e5402){for(const {suggestion:_0x1efb7e,meta:_0x2bf3ca}of this['_findSuggestions'](_0x4e5402,'insertion')){if(!_0x2bf3ca['isOwn'])continue;const _0x19c7bf=_0x1efb7e['getRanges']();for(const _0x1dda42 of _0x19c7bf)if(!_0x4e5402['getDifference'](_0x1dda42)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x28f13b){const _0x33d39c=this['editor']['plugins']['get']('Users')['getUser'](_0x28f13b);if(!_0x33d39c)throw new _0x6d13d3('track-changes-user-not-found',this);return _0x33d39c;}['_getExternalAuthor'](_0x26d3fe){const _0x549f7b=this['editor']['plugins']['get']('Users'),_0x905b45=_0x460a8f('external:'+_0x26d3fe),_0x4978ea=_0x549f7b['getUser'](_0x905b45);return _0x4978ea||_0x549f7b['addUser']({'id':_0x905b45,'name':_0x26d3fe});}['_createSuggestion'](_0x21d80c,_0x815ed8,_0x1c17c4,_0x3d172b,_0x4c6382,_0x3e0775){const _0x3c38b1=this['_getAuthorFromId'](_0x3d172b),_0x186ab8=this['_suggestionFactory']['buildSuggestion'](_0x21d80c,_0x815ed8,_0x1c17c4,_0x3c38b1,_0x4c6382,_0x2e162b=>{this['_updateSuggestionData'](_0x1c17c4,{'attributes':_0x2e162b});const _0x34cd43=this['getSuggestion'](_0x1c17c4);this['_joinWithAdjacentSuggestions'](new Set([_0x34cd43])),this['_refreshSuggestionsChain'](new Set([_0x34cd43]));},_0x3e0775);return this['listenTo'](_0x186ab8,'accept',()=>{this['_updateSuggestionData'](_0x1c17c4,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x186ab8,'discard',()=>{this['_updateSuggestionData'](_0x1c17c4,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1c17c4,_0x186ab8),this['_suggestionState']['set'](_0x186ab8,'notReady'),_0x186ab8;}['_splitMarkerName'](_0x978755){const _0x23be14=_0x978755['split'](':');return{'group':_0x23be14[0x0],'type':_0x23be14[0x1],'subType':_0x23be14['length']>=0x5?_0x23be14[0x2]:null,'id':_0x23be14['length']<0x5?_0x23be14[0x2]:_0x23be14[0x3],'authorId':_0x23be14['length']<0x5?_0x23be14[0x3]:_0x23be14[0x4],'markerCount':0x6==_0x23be14['length']?_0x23be14[0x5]:null};}['_breakSuggestionMarker'](_0x1d1e86,_0x5e96d6,_0x5e0310){const _0x4401c3=_0x1d1e86['getFirstRange'](),_0x170b27=_0x4401c3['start'],_0x36b15d=_0x4401c3['end'];this['_setSuggestionRange'](_0x1d1e86,this['_model']['createRange'](_0x170b27,_0x5e96d6));const _0x583184=_0x2e8cc(),_0xdcbe8a=_0x1d1e86['creator']['id'],_0x361709=_0x1d1e86['type']+(_0x1d1e86['subType']?':'+_0x1d1e86['subType']:'');this['_setSuggestionData']({'id':_0x583184,'type':_0x361709,'createdAt':new Date(),'authorId':_0xdcbe8a,'originalSuggestionId':_0x1d1e86['_originalSuggestionId']||_0x1d1e86['id'],'attributes':_0x1d1e86['attributes'],'data':_0x1d1e86['data']});const _0x2990f7=this['_getAttributeKey'](_0x1d1e86);('formatBlock'==_0x1d1e86['type']||_0x2990f7&&this['_isBlockAttribute'](_0x2990f7))&&(_0x5e0310=this['_model']['createPositionBefore'](_0x5e0310['parent'])),this['_addSuggestionMarker'](_0x361709,_0x583184,_0xdcbe8a,this['_model']['createRange'](_0x5e0310,_0x36b15d));}['_findSuggestions'](_0x1f5950,_0x3d68ff=null){const _0x1277a1=[],_0xe8d7d4=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x1f5950)||(_0x1f5950=[_0x1f5950]);for(const _0xde6cc0 of this['getSuggestions']()){if(!_0xde6cc0['isInContent'])continue;if(_0x3d68ff&&_0xde6cc0['type']!=_0x3d68ff)continue;let _0x22b579=!0x1;for(const _0x25a1fe of _0xde6cc0['getRanges']()){for(const _0x58b22c of _0x1f5950){const _0x580bf8=_0x58b22c['start']['isEqual'](_0x25a1fe['end'])||_0x58b22c['end']['isEqual'](_0x25a1fe['start']);if(_0x580bf8||_0x58b22c['getIntersection'](_0x25a1fe)){const _0x133b76=_0x58b22c['containsRange'](_0x25a1fe)&&Ft(this['_model']['schema'],_0x25a1fe['start'],_0x58b22c),_0x46ea42=_0x25a1fe['containsRange'](_0x58b22c)&&Ft(this['_model']['schema'],_0x58b22c['start'],_0x25a1fe);_0x1277a1['push']({'suggestion':_0xde6cc0,'meta':{'isOwn':_0xe8d7d4==_0xde6cc0['author'],'isNextTo':_0x580bf8,'isInsideObject':_0x133b76,'containsRangeInObject':_0x46ea42}}),_0x22b579=!0x0;break;}}if(_0x22b579)break;}}return _0x1277a1;}['_addSuggestionMarker'](_0x337122,_0x37f372,_0x1fbc5f,_0x543a44,_0x244e9e){this['_model']['change'](_0x590679=>{let _0x42efa3='suggestion:'+_0x337122+':'+_0x37f372+':'+_0x1fbc5f;_0x244e9e&&(_0x42efa3=_0x42efa3+':'+_0x244e9e),_0x590679['addMarker'](_0x42efa3,{'range':_0x543a44,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x106fce){const _0x58ac97=_0x106fce['previous'],_0x460bd1=_0x106fce['next'];_0x106fce['previous']=null,_0x106fce['next']=null,null!=_0x58ac97&&_0x58ac97['next']==_0x106fce&&(_0x58ac97['next']=_0x460bd1),null!=_0x460bd1&&_0x460bd1['previous']==_0x106fce&&(_0x460bd1['previous']=_0x58ac97),'ready'==this['_suggestionState']['get'](_0x106fce)&&(this['_suggestionState']['set'](_0x106fce,'removed'),this['fire']('suggestionUnloaded',_0x106fce,_0x58ac97,_0x460bd1));}['_setSuggestionData'](_0x30ba52){const _0x294954=_0x30ba52['id'],_0x57cfee=this['addSuggestionData'](_0x30ba52);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0xa0d6da=this['editor']['plugins']['get']('PendingActions'),_0x23ce11=_0x57cfee['hasComments'],_0xefd97f=_0x57cfee['subType']?_0x57cfee['type']+':'+_0x57cfee['subType']:_0x57cfee['type'],_0x4448c0=this['editor']['locale'],_0x5c34bd=_0xa0d6da['add'](o(_0x4448c0,'PENDING_ACTION_SUGGESTION')),_0x3163e8={'id':_0x294954,'type':_0xefd97f,'hasComments':_0x23ce11,'data':_0x30ba52['data']||null,'originalSuggestionId':_0x30ba52['originalSuggestionId']||null,'attributes':_0x57cfee['attributes']};this['_adapter']['addSuggestion'](_0x3163e8)['then'](_0x531799=>{_0x57cfee['_saved']=!0x0,_0xa0d6da['remove'](_0x5c34bd),_0x531799&&_0x531799['createdAt']&&(this['_suggestions']['get'](_0x294954)['createdAt']=_0x531799['createdAt']);})['catch'](_0x4f937e=>{throw _0x2a9d82('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x57cfee['discard']();}),_0x57cfee['stopListening'](),this['_suggestions']['delete'](_0x57cfee['id']),this['_suggestionState']['delete'](_0x57cfee),_0x4f937e;});}return _0x57cfee;}['_isBlockAttribute'](_0x5e059e){return this['_blockAttributeKeys']['has'](_0x5e059e);}['_isInlineAttribute'](_0x2e1492){return this['_inlineAttributeKeys']['has'](_0x2e1492);}['_updateSuggestionData'](_0x5e3fcd,_0x4e953a){const _0x4ec118=this['editor']['plugins']['get']('PendingActions'),_0x3295ca=this['getSuggestion'](_0x5e3fcd);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x3295ca['_saved']){const _0xfb3f5b=_0x4ec118['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x5e3fcd,_0x4e953a)['then'](()=>{_0x4ec118['remove'](_0xfb3f5b);});}else _0x3295ca['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x5e3fcd,_0x4e953a);});}}['_getSuggestionData'](_0x2922bb){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x6d13d3('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2922bb);}['_handleNewSuggestionMarker'](_0x35a286){const {id:_0x236c2d,type:_0x291570,subType:_0x3918bd,authorId:_0x4958ed}=this['_splitMarkerName'](_0x35a286),_0x5382b3=this['_suggestions']['get'](_0x236c2d)||this['_createSuggestion'](_0x291570,_0x3918bd,_0x236c2d,_0x4958ed,{});switch(this['_checkSuggestionCorrectness'](_0x5382b3,_0x291570,_0x3918bd,_0x4958ed),this['_suggestionState']['get'](_0x5382b3)){case'notReady':this['_getSuggestionData'](_0x236c2d)['then'](_0x4441ef=>{let _0x1e99f6=Promise['resolve']();_0x4441ef['hasComments']&&(_0x1e99f6=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x236c2d})),_0x1e99f6['then'](()=>{this['addSuggestionData'](_0x4441ef)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x5382b3,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x236c2d,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x5382b3,'ready'),this['fire']('suggestionLoaded',_0x5382b3);break;case'ready':this['fire']('suggestionChanged',_0x5382b3);}return _0x5382b3['addMarkerName'](_0x35a286),_0x5382b3;}['_refreshSuggestionsChain'](_0x534e8f){const _0x2830c7=Array['from'](_0x534e8f),_0x2b3a6b=_0x2830c7['filter'](_0x315f40=>'attribute'==_0x315f40['type']);this['_refreshAttributeSuggestionsChain'](_0x2b3a6b);const _0x2567f9=_0x2830c7['filter'](_0x8f476f=>!_0x8f476f['isMultiRange']&&'attribute'!=_0x8f476f['type']),_0x508943=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x24c257=>!_0x24c257['isMultiRange']&&'attribute'!=_0x24c257['type']),_0xd40797=_0x508943['filter'](_0x3ac732=>!_0x534e8f['has'](_0x3ac732)),_0x6e8d04=new Map(_0x508943['map'](_0x50ae87=>[_0x50ae87,this['_suggestionFactory']['getSuggestionCallback'](_0x50ae87['type'],_0x50ae87['subType'],'chain')])),_0x352df8=new Map(_0x508943['map'](_0x39d637=>[_0x39d637,_0x39d637['getFirstRange']()])),_0x5468c5=new Set(),_0x4b647b=new Set();for(let _0x3718b2=0x0;_0x3718b2<_0x2567f9['length'];_0x3718b2++)_0x1736f9(_0x2567f9[_0x3718b2],_0x2567f9,_0x3718b2+0x1);for(let _0x249ff5=0x0;_0x249ff5<_0x2567f9['length'];_0x249ff5++)_0x1736f9(_0x2567f9[_0x249ff5],_0xd40797,0x0);const _0x3c7579=new Set();for(let _0x390013=0x0;_0x390013<_0x2567f9['length'];_0x390013++){const _0x50087f=_0x2567f9[_0x390013];!_0x4b647b['has'](_0x50087f)&&_0x50087f['previous']&&(_0x3c7579['add'](_0x50087f['previous']),_0x50087f['previous']['next']===_0x50087f&&(_0x50087f['previous']['next']=null),_0x50087f['previous']=null),!_0x5468c5['has'](_0x50087f)&&_0x50087f['next']&&(_0x3c7579['add'](_0x50087f['next']),_0x50087f['next']['previous']===_0x50087f&&(_0x50087f['next']['previous']=null),_0x50087f['next']=null);}function _0x1736f9(_0x5408ee,_0x21a939,_0x54cef6){for(let _0x29d17a=_0x54cef6;_0x29d17a<_0x21a939['length'];_0x29d17a++){const _0x486449=_0x48eff5(_0x5408ee,_0x21a939[_0x29d17a]);_0x486449&&(_0x486449[0x0]['next']=_0x486449[0x1],_0x486449[0x1]['previous']=_0x486449[0x0],_0x5468c5['add'](_0x486449[0x0]),_0x4b647b['add'](_0x486449[0x1]));}}function _0x48eff5(_0x46ca43,_0x1689a6){if(_0x46ca43['author']['id']!==_0x1689a6['author']['id'])return null;const _0x460ef8=_0x6e8d04['get'](_0x46ca43)(_0x46ca43,_0x1689a6,_0x352df8['get'](_0x46ca43),_0x352df8['get'](_0x1689a6));if(!_0x460ef8)return null;return _0x6e8d04['get'](_0x1689a6)(_0x46ca43,_0x1689a6,_0x352df8['get'](_0x46ca43),_0x352df8['get'](_0x1689a6))?_0x460ef8[0x1]['commentThread']&&_0x460ef8[0x1]['commentThread']['length']?null:_0x460ef8:null;}_0x3c7579['size']&&this['_refreshSuggestionsChain'](_0x3c7579);}['_refreshAttributeSuggestionsChain'](_0x11b86a){if(0x0==_0x11b86a['length'])return;const _0x2e48e7=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x32f9f8=>'attribute'==_0x32f9f8['type']&&_0x32f9f8['_isDataLoaded']),_0x11e579=[],_0x73d538=new Map();for(const _0x3bd9fc of _0x2e48e7){const _0x2847ef=_0x460a8f(_0x3bd9fc['attributes']);_0x73d538['has'](_0x2847ef)||(_0x73d538['set'](_0x2847ef,_0x11e579['length']),_0x11e579['push']([]));const _0x3fde0d=_0x73d538['get'](_0x2847ef);_0x11e579[_0x3fde0d]['push'](_0x3bd9fc);}!(function(){_0x11e579['sort']((_0x5098bf,_0x18b878)=>{const _0x4a6d9f=_0x5098bf[0x0]['createdAt'],_0x7b1411=_0x18b878[0x0]['createdAt'];return _0x4a6d9f==_0x7b1411?_0x5098bf[0x0]['attributes']['groupId']<_0x18b878[0x0]['attributes']['groupId']?-0x1:0x1:_0x4a6d9f<_0x7b1411?-0x1:0x1;});for(const _0x4a2ad7 of _0x11e579)_0x4a2ad7['sort']((_0x1ee9c5,_0x122c72)=>_0x1ee9c5['id']<_0x122c72['id']?-0x1:0x1);}());for(let _0x3c5ae3=0x0;_0x3c5ae3<_0x11e579['length'];_0x3c5ae3++){if(0x0==_0x11e579[_0x3c5ae3]['length'])continue;const _0x3d64c2=[];for(let _0x4be4de=_0x3c5ae3+0x1;_0x4be4de<_0x11e579['length'];_0x4be4de++)0x0!=_0x11e579[_0x4be4de]['length']&&_0x501ab8(_0x11e579[_0x3c5ae3],_0x11e579[_0x4be4de])&&_0x3d64c2['push'](_0x4be4de);for(const _0x11cb25 of _0x3d64c2)_0x11e579[_0x3c5ae3]=_0x11e579[_0x3c5ae3]['concat'](_0x11e579[_0x11cb25]),_0x11e579[_0x11cb25]=[];}for(const _0x370651 of _0x11e579)for(let _0x716cf9=0x0;_0x716cf9<_0x370651['length'];_0x716cf9++){const _0x55f6a0=_0x370651[_0x716cf9+0x1]||null;_0x370651[_0x716cf9]['next']!==_0x55f6a0&&(_0x370651[_0x716cf9]['next']=_0x55f6a0);}for(const _0x46bce9 of _0x11e579)for(let _0x16968b=0x0;_0x16968b<_0x46bce9['length'];_0x16968b++){const _0x472c80=_0x46bce9[_0x16968b-0x1]||null;_0x46bce9[_0x16968b]['previous']!==_0x472c80&&(_0x46bce9[_0x16968b]['previous']=_0x472c80);}function _0x501ab8(_0x471cb0,_0x2c0b64){if(_0x471cb0[0x0]['attributes']['groupId']!==_0x2c0b64[0x0]['attributes']['groupId']&&_0x471cb0[0x0]['author']!==_0x2c0b64[0x0]['author'])return!0x1;if(!function(_0x4d50ec,_0x16b1ea){if(!_0x4d50ec['hasComments']&&!_0x16b1ea['hasComments'])return!0x0;if(_0x4d50ec['hasComments']&&_0x16b1ea['hasComments'])return!0x1;if(_0x4d50ec['hasComments']&&_0x16b1ea['createdAt']<_0x4d50ec['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x16b1ea['hasComments']&&_0x4d50ec['createdAt']<_0x16b1ea['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x471cb0[0x0],_0x2c0b64[0x0]))return!0x1;const _0x802a89=Ut(_0x471cb0[0x0]['attributes'],['groupId','trackingSessionId']),_0x555ce8=Ut(_0x2c0b64[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x59664a(_0x802a89,_0x555ce8))return!0x1;if(_0x471cb0[0x0]['attributes']['groupId']==_0x2c0b64[0x0]['attributes']['groupId'])return!0x0;if(_0x471cb0[0x0]['attributes']['trackingSessionId']!==_0x2c0b64[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x471cb0['every'](_0x2ecdeb=>_0x2c0b64['some'](_0x37d1c1=>_0x2ecdeb['getFirstRange']()['isEqual'](_0x37d1c1['getFirstRange']())))&&_0x2c0b64['every'](_0x1b4b6f=>_0x471cb0['some'](_0x4c43fd=>_0x1b4b6f['getFirstRange']()['isEqual'](_0x4c43fd['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0xbff35c){const _0x34bc39=Array['from'](_0xbff35c),_0x4f6c88=this['getSuggestions']({'skipNotAttached':!0x0}),_0x40c609=_0x4f6c88['filter'](_0x4fa4ad=>!_0xbff35c['has'](_0x4fa4ad)),_0x4a7fb4=new Map(_0x34bc39['map'](_0x46d32f=>[_0x46d32f,this['_suggestionFactory']['getSuggestionCallback'](_0x46d32f['type'],_0x46d32f['subType'],'join')])),_0x17f673=new Map(_0x4f6c88['map'](_0xc6509f=>[_0xc6509f,_0xc6509f['getRanges']()]));for(let _0x5dd61e=0x0;_0x5dd61e<_0x34bc39['length'];_0x5dd61e++){if(_0x9806ef(this,_0x34bc39[_0x5dd61e],_0x34bc39,_0x5dd61e+0x1))return!0x0;}for(let _0x240042=0x0;_0x240042<_0x34bc39['length'];_0x240042++){if(_0x9806ef(this,_0x34bc39[_0x240042],_0x40c609,0x0))return!0x0;}return!0x1;function _0x9806ef(_0x23a3c0,_0x3776ff,_0x228c37,_0x43ab93){for(let _0x368130=_0x43ab93;_0x368130<_0x228c37['length'];_0x368130++){const _0x3aab89=_0x228c37[_0x368130];if(_0x3aab89['type']!==_0x3776ff['type']||_0x3aab89['author']['id']!==_0x3776ff['author']['id']||_0x3aab89['subType']!==_0x3776ff['subType'])continue;if(!Qt(_0x3776ff,_0x3aab89))continue;if('attribute'==_0x3776ff['type']&&_0x3776ff['data']['oldValue']!=_0x3aab89['data']['oldValue'])continue;if('attribute'==_0x3776ff['type']&&_0x23a3c0['_isBlockAttribute'](_0x3776ff['data']['key']))continue;if('formatBlock'==_0x3776ff['type']){const _0x3272e0=_0x23a3c0['editor']['model'],_0xbca9dc=_0x3776ff['getContainedElement']();if(_0xbca9dc&&(_0x3272e0['schema']['isObject'](_0xbca9dc)||_0x3272e0['schema']['isLimit'](_0xbca9dc)))continue;}const _0x48ecfd=_0x4a7fb4['get'](_0x3776ff),_0x4783f9=_0x17f673['get'](_0x3776ff),_0x4ce95b=_0x17f673['get'](_0x3aab89),_0x457aef=_0x3776ff['commentThread']&&_0x3776ff['commentThread']['length'],_0x17bfa9=_0x3aab89['commentThread']&&_0x3aab89['commentThread']['length'];if(!_0x457aef&&_0x48ecfd(_0x4ce95b,_0x4783f9))return _0x23a3c0['_joinSuggestions'](_0x3aab89,_0x3776ff),_0x17f673['delete'](_0x3776ff),!0x0;if(!_0x17bfa9&&_0x48ecfd(_0x4783f9,_0x4ce95b))return _0x23a3c0['_joinSuggestions'](_0x3776ff,_0x3aab89),_0x17f673['delete'](_0x3aab89),!0x0;}return!0x1;}}['_joinSuggestions'](_0x137001,_0x3de30f){if(_0x137001['isMultiRange']){for(const _0x185505 of _0x3de30f['getRanges']())_0x137001['addRange'](_0x185505);}else{const _0x1827d7=_0x3de30f['getFirstRange']()['end'];this['_setSuggestionRange'](_0x137001,this['_model']['createRange'](_0x137001['getFirstRange']()['start'],_0x1827d7));}_0x3de30f['removeMarkers']();}['_getMarkerAnnouncementText'](_0x14cfdb,_0x2af64a,_0x3f2996){const _0xfa87b8=_0x14cfdb['startsWith']('format')||_0x14cfdb['startsWith']('attribute')?'FORMATTING':_0x14cfdb['toUpperCase']();return o(this['editor']['locale'],_0x2af64a+'_'+_0xfa87b8+'_SUGGESTION_ANNOUNCEMENT',_0x3f2996);}['_initAriaMarkerChangeAnnouncements'](){const _0x1c01d0=this['editor'];if(!_0x1c01d0['ui'])return;const {ariaLiveAnnouncer:_0x2be202}=_0x1c01d0['ui'];_0x43b928(this['_model'],({left:_0x26d856,entered:_0x31a141})=>{for(const _0x21238a of _0x26d856){const {group:_0x5456ac,type:_0x271220}=this['_splitMarkerName'](_0x21238a['name']);if('suggestion'===_0x5456ac){_0x2be202['announce'](this['_getMarkerAnnouncementText'](_0x271220,'LEAVE'));break;}}for(const _0x530322 of _0x31a141){const {group:_0x2275e2,type:_0x33ef0f}=this['_splitMarkerName'](_0x530322['name']);if('suggestion'===_0x2275e2){_0x2be202['announce'](this['_getMarkerAnnouncementText'](_0x33ef0f,'ENTER',_0x5a028f(_0x2030ec)));break;}}});}['_processAttributeChanges'](_0x164549){if(this['_recordAttributeSuggestions'])return!0x1;const _0x50005d=this['editor'],_0xe2577a=_0x50005d['model']['document']['differ']['getChanges']();if(0x0==_0xe2577a['length'])return!0x1;const _0x5a25bd=[],_0x1009fb=_0xe2577a['filter'](_0x1fa1af=>'attribute'==_0x1fa1af['type']),_0x167950=_0xe2577a['filter'](_0x4a1965=>'insert'==_0x4a1965['type']&&'$text'!=_0x4a1965['name']),_0x54059d=_0xe2577a['filter'](_0x11eb8d=>'remove'==_0x11eb8d['type']&&'$text'!=_0x11eb8d['name']);for(const _0x38a8aa of _0x1009fb)_0x5a25bd['push']({'key':_0x38a8aa['attributeKey'],'newValue':_0x38a8aa['attributeNewValue'],'oldValue':_0x38a8aa['attributeOldValue'],'range':qt(_0x38a8aa['range'],_0x50005d['model'])});for(const _0x564323 of _0x167950){const _0x394cb8=_0x54059d['find'](_0x30fcba=>_0x30fcba['position']['isEqual'](_0x564323['position']));_0x394cb8&&_0x5a25bd['push']({'key':m,'newValue':_0x564323['name'],'oldValue':_0x394cb8['name'],'range':_0x50005d['model']['createRangeOn'](_0x564323['position']['nodeAfter'])});}return 0x0!=_0x5a25bd['length']&&this['_reduceExistingSuggestions'](_0x164549,_0x5a25bd);}['_processAttributeSuggestions'](_0x4cb36d){let _0x513801=!0x1;const _0x2f4419=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2f56b1=>_0x2f56b1['data']['newRange']&&_0x2f56b1['name']['startsWith']('suggestion:attribute:'));for(const _0x5aa36d of _0x2f4419){const {subType:_0x55452c,id:_0x260de5}=this['_splitMarkerName'](_0x5aa36d['name']),_0x439870=_0x55452c['split']('|')[0x0];for(const _0x18a7f6 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x18a7f6['id']!=_0x260de5&&'attribute'==_0x18a7f6['type']&&_0x18a7f6['data']&&_0x18a7f6['data']['key']==_0x439870&&_0x18a7f6['getFirstRange']()['isIntersecting'](_0x5aa36d['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x18a7f6,_0x5aa36d['data']['newRange'],_0x4cb36d),_0x513801=!0x0);}return _0x513801;}['recordAttributeChanges'](_0x4d69e6){this['_recordAttributeSuggestions']=!0x0,_0x4d69e6();}['_isRegisteredAttribute'](_0x36034d){const _0x46475e=this['_isBlockAttribute'](_0x36034d),_0x59f899=this['_isInlineAttribute'](_0x36034d);return _0x46475e||_0x59f899;}['_reduceExistingSuggestions'](_0x579969,_0x2641db){if(0x0==_0x2641db['length'])return!0x1;let _0x51e20a=!0x1;for(const _0x58a649 of _0x2641db){const _0xd48567=this['_findSuggestions'](_0x58a649['range'],'attribute')['filter'](_0x960ee1=>!_0x960ee1['meta']['isNextTo'])['map'](_0x2c2750=>_0x2c2750['suggestion']),_0x2e392c=_0x460a8f({'newValue':_0x58a649['newValue']});_0xd48567['filter'](_0x5a995d=>{const [_0x117ba8,_0x32847e]=_0x5a995d['subType']['split']('|');return _0x117ba8==_0x58a649['key']&&_0x32847e!=_0x2e392c;})['forEach'](_0x3f61d4=>{this['_reduceSuggestionAttributeRange'](_0x3f61d4,_0x58a649['range'],_0x579969),_0x51e20a=!0x0;});}return _0x51e20a;}['_reduceSuggestionAttributeRange'](_0x362246,_0x34feb6,_0x65b531){const _0x278b49=_0x362246['getFirstRange']()['getDifference'](_0x34feb6);0x0!==_0x278b49['length']?0x1!==_0x278b49['length']?this['_breakSuggestionMarker'](_0x362246,_0x34feb6['start'],_0x34feb6['end']):this['_setSuggestionRange'](_0x362246,_0x278b49[0x0]):_0x65b531['removeMarker'](_0x362246['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x16e66c){this['_editor']=_0x16e66c,this['_model']=_0x16e66c['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x103b03,_0xa68ce3,_0x4aeb1b,_0x8e1d65,_0x7921b1,_0x20740c,_0x15c23d){return new T(this['_model'],{'type':_0x103b03,'subType':_0xa68ce3,'id':_0x4aeb1b,'originalSuggestionId':_0x15c23d,'author':_0x8e1d65,'creator':_0x8e1d65,'attributes':_0x7921b1,'onAttributesChange':_0x20740c,'onAccept':(..._0x115787)=>this['getSuggestionCallback'](_0x103b03,_0xa68ce3,'accept')(..._0x115787),'onDiscard':(..._0x3a25ab)=>this['getSuggestionCallback'](_0x103b03,_0xa68ce3,'discard')(..._0x3a25ab)});}['registerCustomCallback'](_0x427bdb,_0x3e467a,_0x1de31b,_0x356cda){const _0xb681ec=_0x427bdb+':'+_0x3e467a+':'+_0x1de31b;this['_customCallbacks']['set'](_0xb681ec,_0x356cda);}['getSuggestionCallback'](_0x304a98,_0xc5f4bd,_0x5cf60b){const _0xd87d51=_0x304a98+':'+_0xc5f4bd+':'+_0x5cf60b;return this['_customCallbacks']['get'](_0xd87d51)||this['_defaultCallbacks']['get'](_0x304a98+':'+_0x5cf60b);}['_registerDefaultCallbacks'](){const _0x741697=()=>!0x1,_0x333654=_0x50eb3=>{_0x50eb3['sort']((_0x9123c,_0x5f085f)=>_0x9123c['start']['isBefore'](_0x5f085f['start'])?0x1:-0x1),this['_model']['change'](_0x11ce04=>{for(const _0x1a36cb of _0x50eb3){let _0x145e75;_0x145e75=_0x1a36cb['end']['isAtEnd']&&_0x1a36cb['end']['parent']==_0x1a36cb['start']['nodeAfter']?_0x11ce04['createSelection'](_0x1a36cb['start']['nodeAfter'],'on'):_0x11ce04['createSelection'](_0x1a36cb),this['_model']['deleteContent'](_0x145e75,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x44b9f1=(_0x2d6005,_0x2ed3c6)=>{_0x2ed3c6&&this['_model']['change'](_0x497099=>{const {commandName:_0x2afc90,commandParams:_0x5bb154=[]}=_0x2ed3c6,_0x56c3cf=_0x2d6005['map'](_0x2a7de4=>(Pt(_0x2a7de4)&&(_0x2a7de4=this['_model']['createRange'](_0x2a7de4['end'])),_0x2a7de4))['filter'](_0x18f3d7=>'$graveyard'!==_0x18f3d7['root']['rootName']);if(_0x56c3cf['length']<0x1)return;const _0x3484d8=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x206e4a=>_0x28f293['fromRange'](_0x206e4a));_0x497099['setSelection'](_0x56c3cf);for(const _0x4ff178 of this['_editor']['commands']['commands']())_0x4ff178['refresh']();_0x5bb154['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x2afc90,..._0x5bb154);const _0x4e704c=_0x3484d8['filter'](_0x3488e2=>'$graveyard'!=_0x3488e2['root']['rootName']);_0x4e704c['length']>0x0&&_0x497099['setSelection'](_0x4e704c);for(const _0x5e38be of _0x3484d8)_0x5e38be['detach']();});},_0x41f3d0=(_0x2b4e7b,_0x4404e0)=>0x1==_0x2b4e7b['length']&&0x1==_0x4404e0['length']&&_0x2b4e7b[0x0]['end']['isEqual'](_0x4404e0[0x0]['start']),_0x462c96=(_0x3bf9b7,_0x97d276,_0x515e3d,_0x4645f0)=>Wt(_0x3bf9b7,_0x97d276,_0x515e3d,_0x4645f0)?[_0x3bf9b7,_0x97d276]:Wt(_0x97d276,_0x3bf9b7,_0x4645f0,_0x515e3d)?[_0x97d276,_0x3bf9b7]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x741697),this['_defaultCallbacks']['set']('insertion:discard',_0x333654),this['_defaultCallbacks']['set']('insertion:join',_0x41f3d0),this['_defaultCallbacks']['set']('insertion:chain',_0x462c96),this['_defaultCallbacks']['set']('deletion:accept',_0x333654),this['_defaultCallbacks']['set']('deletion:discard',_0x741697),this['_defaultCallbacks']['set']('deletion:join',_0x41f3d0),this['_defaultCallbacks']['set']('deletion:chain',_0x462c96),this['_defaultCallbacks']['set']('formatInline:accept',_0x44b9f1),this['_defaultCallbacks']['set']('formatInline:discard',_0x741697),this['_defaultCallbacks']['set']('formatInline:join',_0x41f3d0),this['_defaultCallbacks']['set']('formatInline:chain',_0x741697),this['_defaultCallbacks']['set']('formatBlock:accept',_0x44b9f1),this['_defaultCallbacks']['set']('formatBlock:discard',_0x741697),this['_defaultCallbacks']['set']('formatBlock:join',_0x41f3d0),this['_defaultCallbacks']['set']('formatBlock:chain',_0x741697),this['_defaultCallbacks']['set']('attribute:accept',_0x741697),this['_defaultCallbacks']['set']('attribute:discard',(_0x1f9b76,_0x2be5fc)=>{if(!_0x2be5fc)return;const _0x5d3006=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x45a142=>{if(_0x2be5fc['key']==m)for(const _0x183285 of _0x1f9b76){const _0x2352ca=_0x183285['start']['nodeAfter'],_0x3f7a60=_0x2be5fc['oldValue'];_0x45a142['rename'](_0x2352ca,_0x3f7a60);}else{if(_0x5d3006['_isBlockAttribute'](_0x2be5fc['key'])){for(const _0x257a2d of _0x1f9b76)void 0x0!==_0x2be5fc['oldValue']?_0x45a142['setAttribute'](_0x2be5fc['key'],_0x2be5fc['oldValue'],_0x257a2d['start']['nodeAfter']):_0x45a142['removeAttribute'](_0x2be5fc['key'],_0x257a2d['start']['nodeAfter']);}else{for(const _0x1fff29 of _0x1f9b76)_0x2be5fc['oldValue']?_0x45a142['setAttribute'](_0x2be5fc['key'],_0x2be5fc['oldValue'],_0x1fff29):_0x45a142['removeAttribute'](_0x2be5fc['key'],_0x1fff29);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x41f3d0);}}function Ft(_0x50c005,_0x196bdc,_0x21bf07){for(const _0xf50819 of _0x196bdc['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xf50819['root']==_0xf50819)return!0x1;if(!_0x21bf07['containsItem'](_0xf50819))return!0x1;if(_0x50c005['isObject'](_0xf50819)||_0x50c005['isLimit'](_0xf50819))return!0x0;}return!0x1;}function Pt(_0x5d03f1){return _0x5d03f1['end']['parent']==_0x5d03f1['start']['nodeAfter']&&_0x5d03f1['end']['isAtStart'];}function Gt(_0x2b47d9,_0x4e3baf,_0x5b17b3,_0x33ed05){const _0x2823ac=_0x3776d4=>!_0x3776d4['item']['is']('$textProxy')&&!_0x33ed05['isObject'](_0x3776d4['item']),_0x538e19=_0x2b47d9['start']['getLastMatchingPosition'](_0x2823ac),_0x2aa4eb=_0x2b47d9['end']['getLastMatchingPosition'](_0x2823ac,{'direction':'backward'});return(!_0x2b47d9['start']['isEqual'](_0x538e19)||!_0x2b47d9['end']['isEqual'](_0x2aa4eb))&&(_0x538e19['isBefore'](_0x2aa4eb)?_0x5b17b3['updateMarker'](_0x4e3baf,{'range':_0x5b17b3['createRange'](_0x538e19,_0x2aa4eb)}):_0x5b17b3['removeMarker'](_0x4e3baf),!0x0);}function Lt(_0x8eeb61){return _0x460a8f(_0x8eeb61);}function Jt(_0x30d6a1){const _0x1c3a50=_0x30d6a1['start']['nodeAfter'];return _0x1c3a50&&_0x1c3a50['is']('element');}function Kt(_0x27f9cc){return Pt(_0x27f9cc)||function(_0x2d8a2f){return _0x2d8a2f['start']['parent']==_0x2d8a2f['end']['nodeBefore']&&_0x2d8a2f['start']['isAtEnd'];}(_0x27f9cc);}function Ht(_0x23d9fb,_0x43e968){try{const _0x2afc8e=_0x23d9fb['getRange']();for(const _0x56ba8d of _0x43e968)if(_0x23d9fb!==_0x56ba8d&&_0x2afc8e&&_0x2afc8e['isIntersecting'](_0x56ba8d['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function qt(_0x2a6ab3,_0x52867d){return null==_0x2a6ab3['end']['nodeBefore']&&_0x2a6ab3['end']['parent']==_0x2a6ab3['start']['nodeAfter']?zt(_0x2a6ab3['start']['nodeAfter'],_0x52867d):_0x2a6ab3;}function zt(_0x1f233e,_0x31f431){const _0xbbaa66=_0x31f431['schema']['isObject'](_0x1f233e)||_0x31f431['schema']['isSelectable'](_0x1f233e);return _0x31f431['createRange'](_0x31f431['createPositionAt'](_0x1f233e,'before'),_0xbbaa66?_0x31f431['createPositionAfter'](_0x1f233e):_0x31f431['createPositionAt'](_0x1f233e,'end'));}function Wt(_0x44eb2a,_0x5686fb,_0x1f2a6b,_0xca5834){return!!Qt(_0x44eb2a,_0x5686fb)&&_0x1f2a6b['end']['isEqual'](_0xca5834['start']);}function Qt(_0x5da6fe,_0x52b566){if(!_0x5da6fe['_isDataLoaded']||!_0x52b566['_isDataLoaded'])return!0x1;const _0x3756b2=new Set(Object['keys'](_0x5da6fe['attributes'])),_0x343a4e=new Set(Object['keys'](_0x52b566['attributes']));if(_0x3756b2['delete']('groupId'),_0x343a4e['delete']('groupId'),0x0==_0x3756b2['size']&&0x0==_0x343a4e['size'])return!0x0;if(_0x3756b2['size']!=_0x343a4e['size'])return!0x1;const _0x5b7e5f={..._0x5da6fe['attributes']},_0x1303f0={..._0x52b566['attributes']};return delete _0x5b7e5f['groupId'],delete _0x1303f0['groupId'],JSON['stringify'](_0x5b7e5f)==JSON['stringify'](_0x1303f0);}function Xt(_0xfc4e92,_0x28e5b2){const _0x376e0e=Yt(_0xfc4e92['attributes']),_0x315183=Yt(_0x28e5b2);if(!_0xfc4e92['_isDataLoaded'])return!0x1;for(const _0x3add46 of Object['keys'](_0x315183))if(!_0x59664a(_0x376e0e[_0x3add46],_0x315183[_0x3add46]))return!0x1;return!0x0;}function Yt(_0x3c5d9e){const _0x564adf=Object['assign']({},_0x3c5d9e);return delete _0x564adf['skipNestingCheck'],delete _0x564adf['tablePasteChainId'],_0x564adf;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
-
_0x51e0c1(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x2710b6,_0x54de18,_0x45c823,_0x4b72e4){super(),this['model']=_0x54de18,this['view']=_0x45c823,this['commentThreadController']=_0x4b72e4,this['_editor']=_0x2710b6,this['_acceptCommand']=_0x2710b6['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x2710b6['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x27d81e,_0xbd1de2)=>_0x27d81e||_0xbd1de2),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x5aca70=>_0x5aca70&&this['_editor']['model']['canEditAt'](_0x54de18['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x46e80d=>_0x46e80d&&this['_editor']['model']['canEditAt'](_0x54de18['getRanges']())),this['_pendingAction']=null,_0x45c823['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x45c823,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x45c823,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x45c823,'change:isDirty',()=>{_0x45c823['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 _0x4c752c=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4c752c);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x4929b7{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x5c2a76,_0x2574cb,_0x438c34,_0x42a6b9){super(_0x5c2a76),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x541df3(_0x5c2a76,o(_0x5c2a76,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x2574cb['authoredAt']),this['bind']('authoredAt')['to'](_0x2574cb),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',_0x2574cb,'authoredAt',this,'descriptionParts',(_0x3139f2,_0x25223a,_0x25a611)=>{const _0x3e60d6=_0x25a611['map'](_0x4f9ec1=>ls(_0x4f9ec1['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x3139f2-0x1,_0x2574cb['author']['name'],_0x25223a?_0x42a6b9['formatDateTime'](_0x25223a):'',new DOMParser()['parseFromString'](_0x3e60d6,'text/html')['body']['textContent']]);}),this['focusables']=new _0x1cda7a(),this['focusTracker']=new _0x3acf41(),this['keystrokes']=new _0xfcbfa2(),this['focusCycler']=new _0x16e89e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x43b0a8=>_0x43b0a8['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x2574cb,this['_localUser']=_0x438c34,this['_config']=_0x42a6b9,_0x42a6b9['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x3e5ad7(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x238852}=this['_config'];this['commentsListView']=new _0x238852(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',_0x15e0ef=>_0x15e0ef+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x3a1dab,_0x2a0098)=>_0x3a1dab||!!_0x2a0098);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x3a1ea8}=this['_config'],_0x50c512=new _0x3a1ea8(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0xd1fa1d=_0x50c512['commentInputView'];return _0x50c512['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0xd1fa1d,'value',(_0x1ae31a,_0x42a9ef,_0x5091f0)=>!!_0x5091f0||_0x1ae31a&&!_0x42a9ef),_0xd1fa1d['on']('submit',(_0x4c49d,_0x5f40b1)=>{this['fire']('addComment',_0x5f40b1),_0xd1fa1d['editor']['setData']('');}),_0xd1fa1d['on']('cancel',()=>this['focus']()),_0xd1fa1d['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x50c512;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x4e1dce,_0x514b14,_0x3d983a,_0x472f74){super(_0x4e1dce,_0x514b14,_0x3d983a,_0x472f74),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x29c0b2=>_0x29c0b2&&_0x29c0b2[0x0]?_0x29c0b2[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x228f8e,_0x2bfef7)=>{let _0x9bbac9='';for(const _0x8b0852 of _0x228f8e)_0x9bbac9+='<p>'+ls(_0x8b0852['content'],_0x8b0852['color'])+'</p>';return _0x2bfef7?_0x9bbac9:_0x2a05df(_0x9bbac9,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x472f74['SuggestionView'](_0x4e1dce,_0x514b14,{'formatDateTime':_0x472f74['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 _0x966a12=this['bindTemplate'],_0x35c655=[this['suggestionView']];return this['commentsListView']&&_0x35c655['push'](this['commentsListView']),this['commentThreadInputView']&&_0x35c655['push'](this['commentThreadInputView']),_0x35c655['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x966a12['if']('isActive','ck-suggestion-wrapper--active'),_0x966a12['to']('type',_0x36cda2=>'ck-suggestion-'+_0x36cda2),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':_0x966a12['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x35c655};}['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 _0x4929b7{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x242a3d,_0x1909f8,_0x4376f0){super(_0x242a3d),this['_model']=_0x1909f8,this['_config']=_0x4376f0,this['set']('description',''),this['bind']('authoredAt')['to'](_0x1909f8),this['acceptButton']=this['_createButton'](o(_0x242a3d,'Accept\x20suggestion'),_0x255591,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x242a3d,'Discard\x20suggestion'),_0x579e23,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x4d74f1(_0x242a3d,_0x1909f8['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x1cda7a([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x3acf41(),this['keystrokes']=new _0xfcbfa2(),this['focusCycler']=new _0x16e89e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x82bc8d=>_0x82bc8d['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x255c8b=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x255c8b['innerHTML']=this['description'],this['on']('change:description',(_0x84eb01,_0x865436,_0x36610a)=>{_0x255c8b['innerHTML']=_0x36610a;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x3fb3c0=this['bindTemplate'],_0x463b47=[{'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':_0x3fb3c0['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3fb3c0['to']('authoredAt',_0xa3c935=>this['_config']['formatDateTime'](_0xa3c935))}]}]},{'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']&&_0x463b47['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':_0x463b47}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x5a7a98,_0x1c0a1d,_0x2efca9,_0x473426,_0x4633ea){const _0x11ee7e=new _0x170638(this['locale']);return _0x11ee7e['set']({'label':_0x5a7a98,'icon':_0x1c0a1d,'tooltip':!0x0,'tooltipPosition':_0x4633ea}),_0x11ee7e['extendTemplate']({'attributes':{'class':_0x2efca9}}),_0x11ee7e['on']('execute',()=>{this['fire'](_0x473426,this['_model']['id']);}),_0x11ee7e;}['_setupKeyboardNavigation'](){const _0x44e9d3=this['element'];this['keystrokes']['listenTo'](_0x44e9d3);for(const _0x594dd9 of this['focusables'])this['focusTracker']['add'](_0x594dd9['element']),this['keystrokes']['listenTo'](_0x594dd9['element']);this['keystrokes']['set']('enter',(_0x2f166d,_0x513c3f)=>{_0x44e9d3===_0x2f166d['target']&&(this['focusCycler']['focusFirst'](),_0x513c3f());}),this['keystrokes']['set']('esc',(_0x2a37f4,_0xd64c29)=>{_0x44e9d3!==_0x2a37f4['target']&&(this['focus'](),_0xd64c29());});}}class u extends _0x1074b3{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x423ea0,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3c2e63){super(_0x3c2e63),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x10395e=this['editor']['config'];_0x10395e['define']('trackChanges.SuggestionThreadView',fe),_0x10395e['define']('trackChanges.SuggestionView',we),_0x10395e['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x10395e['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x486580,_0x373d78){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x4fbf88,_0x27e5e7]of this['_handleControllerBuffer']){const _0x5e4c03=this['_suggestionToController']['has'](_0x4fbf88);_0x5e4c03||_0x27e5e7?_0x5e4c03&&_0x27e5e7&&this['_destroyController'](_0x4fbf88):this['_initializeController'](_0x4fbf88);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x486580,_0x373d78);}['init'](){const _0x520b26=this['editor'],_0x2d4c3c=_0x520b26['plugins']['get']('TrackChangesEditing'),_0xa025cf=_0x520b26['plugins']['get']('Annotations'),_0xdc14e9=_0x520b26['plugins']['get']('EditorAnnotations'),_0x53062d=_0x520b26['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0xdc14e9['addSourceCollector'](()=>{const _0x11f4d9=[];for(const [_0x184bf1,_0x71dee0]of Array['from'](this['_suggestionToController'])){const _0x1cc6c5=_0x184bf1['getAllAdjacentSuggestions'](),_0x2f3618=[];for(const _0x2394fb of _0x1cc6c5){if(!_0x2394fb['isInContent'])continue;if(_0x2394fb['isMultiRange']){_0x2f3618['push'](..._0x2394fb['getRanges']());continue;}const _0x7286cd=_0x2394fb['getFirstRange']();if(_0x2f3618['length']>0x0){const _0x4a24b7=_0x2f3618[0x0]['getJoined'](_0x7286cd);if(_0x4a24b7){_0x2f3618[0x0]=_0x4a24b7;continue;}}_0x2f3618['push'](_0x7286cd);}_0x11f4d9['push']([_0x71dee0['view'],_0x2f3618]);}return _0x11f4d9;}),this['listenTo'](_0x2d4c3c,'suggestionLoaded',(_0x1802d4,_0xec5641)=>{this['listenTo'](_0xec5641,'change:previous',(_0x3d5ae8,_0x18ecd6,_0x2e9352,_0x2b79dc)=>{_0xec5641['isInContent']&&(null==_0x2e9352?(this['_updateController'](_0x2b79dc['head']),this['_handleSuggestionControllerDelayed'](_0xec5641,!0x1)):(this['_updateController'](_0x2e9352['head']),null==_0x2b79dc&&this['_handleSuggestionControllerDelayed'](_0xec5641,!0x0)));}),null!==_0xec5641['previous']?this['_updateController'](_0xec5641['head']):this['_handleSuggestionControllerDelayed'](_0xec5641,!0x1);}),this['listenTo'](_0x2d4c3c,'suggestionUnloaded',(_0x24e4a0,_0x5c3fd1,_0x12aee1)=>{this['stopListening'](_0x5c3fd1,'change:previous'),this['_handleControllerBuffer']['delete'](_0x5c3fd1),this['_suggestionToController']['has'](_0x5c3fd1)&&this['_destroyController'](_0x5c3fd1),_0x12aee1&&this['_updateController'](_0x12aee1['head']);}),this['listenTo'](_0x2d4c3c,'suggestionChanged',(_0x5ce9c8,_0x26d8e5)=>{this['_updateController'](_0x26d8e5);}),this['listenTo'](_0xa025cf,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x53062d,'addComment',(_0x4d0c75,{threadId:_0x188126,isFromAdapter:_0x39f49f})=>{if(_0x39f49f||!_0x2d4c3c['hasSuggestion'](_0x188126))return;const _0x407459=_0x2d4c3c['getSuggestion'](_0x188126);this['_suggestionToController']['get'](_0x407459)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x42af23=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x238693;for(const _0x33d54e in _0x42af23){const _0x289abb=_0x33d54e,_0x3aff6f=_0x42af23[_0x289abb];if('trackChangesLicenseKeyValid'==_0x3aff6f||'trackChangesLicenseKeyInvalid'==_0x3aff6f||'trackChangesLicenseKeyExpired'==_0x3aff6f||'trackChangesLicenseKeyDomainLimit'==_0x3aff6f||'trackChangesLicenseKeyNotAllowed'==_0x3aff6f||'trackChangesLicenseKeyEvaluationLimit'==_0x3aff6f||'trackChangesLicenseKeyTrialLimit'==_0x3aff6f||'trackChangesLicenseKeyUsageLimit'==_0x3aff6f){delete _0x42af23[_0x289abb],_0x238693=_0x3aff6f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x238693&&_0x42af23['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x238693&&_0x42af23['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x238693&&_0x42af23['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x238693&&_0x42af23['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x238693&&_0x42af23['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x238693&&_0x42af23['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x238693&&_0x42af23['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x59d032){const _0x5acd42=this['_suggestionToController']['get'](_0x59d032);if(!_0x5acd42)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x5acd42['view'])||null;}['getSuggestionForAnnotation'](_0x115f02){const _0x242a80=this['_viewToController']['get'](_0x115f02['innerView']);return _0x242a80?_0x242a80['model']:null;}['_refreshActiveMarkers'](){const _0xb925be=this['editor']['plugins']['get']('Annotations'),_0x46e1ce=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1ed03a=Array['from'](_0xb925be['activeAnnotations'],_0x22b5ab=>_0x22b5ab['innerView'])['filter'](_0x2562ce=>this['_viewToController']['has'](_0x2562ce)),_0x1f38b=[];for(const _0x1202f2 of _0x1ed03a){const _0x134a6b=this['_viewToController']['get'](_0x1202f2)['model']['getAllAdjacentSuggestions']();_0x1f38b['push'](..._0x134a6b['reduce']((_0x14503a,_0x540389)=>[..._0x14503a,..._0x540389['getMarkerNames']()],[]));}_0x46e1ce['activeMarkers']=_0x1f38b;}['_addUIComponentsToFactory'](){const _0xbe2fc3=this['editor'],_0x16d55b=_0xbe2fc3['locale'],_0x59b428=o(_0x16d55b,'Track\x20changes'),_0x4dd2d8=new _0x26da26([{'type':'switchbutton','model':new _0x47196e({'withText':!0x0,'isToggleable':!0x0,'label':_0x59b428,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x47196e({'withText':!0x0,'label':o(_0x16d55b,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x47196e({'withText':!0x0,'label':o(_0x16d55b,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x47196e({'withText':!0x0,'label':o(_0x16d55b,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x47196e({'withText':!0x0,'label':o(_0x16d55b,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0xbe2fc3['plugins']['has']('TrackChangesPreview')&&_0x4dd2d8['addMany']([{'type':'separator'},{'type':'button','model':new _0x47196e({'withText':!0x0,'label':o(_0x16d55b,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x325ef6 of _0x4dd2d8)if(ke(_0x325ef6)){const _0x45832c=_0xbe2fc3['commands']['get'](_0x325ef6['model']['commandName']);_0x325ef6['model']['bind']('isOn','isEnabled')['to'](_0x45832c,'value','isEnabled');}_0xbe2fc3['ui']['componentFactory']['add']('trackChanges',_0x449e30=>this['_createToolbarButton'](_0x449e30,_0x4dd2d8,_0x59b428)),_0xbe2fc3['ui']['componentFactory']['add']('menuBar:trackChanges',_0x4a2249=>this['_createMenuBarMenu'](_0x4a2249,_0x4dd2d8,_0x59b428));}['_createToolbarButton'](_0x5190d2,_0x13ddad,_0x10d4da){const _0x50d6c7=_0x563db1(_0x5190d2,_0xe30b3e),_0x59658f=this['editor']['commands']['get']('trackChanges');_0x50d6c7['buttonView']['set']({'tooltip':_0x10d4da,'label':_0x10d4da,'icon':_0x2fd875}),_0x50d6c7['buttonView']['bind']('isOn')['to'](_0x59658f,'value'),_0x50d6c7['buttonView']['on']('execute',()=>{_0x59658f['execute'](),this['editor']['editing']['view']['focus']();}),_0x14cecf(_0x50d6c7,_0x13ddad,{'role':'menu'});const _0x40165e=[];for(const _0x5dc992 of _0x13ddad)ke(_0x5dc992)&&_0x40165e['push'](this['editor']['commands']['get'](_0x5dc992['model']['commandName']));const _0x3570ff=_0x50d6c7['buttonView'];return _0x3570ff['actionView']['unbind']('isEnabled'),_0x3570ff['arrowView']['unbind']('isEnabled'),_0x3570ff['actionView']['bind']('isEnabled')['to'](_0x59658f,'isEnabled'),_0x3570ff['arrowView']['bind']('isEnabled')['toMany'](_0x40165e,'isEnabled',(..._0x724116)=>_0x724116['some'](_0x591b9b=>_0x591b9b)),_0x50d6c7['on']('execute',_0x4ddd41=>{this['editor']['execute'](_0x4ddd41['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x50d6c7;}['_createMenuBarMenu'](_0x271637,_0x1d120f,_0xc2773a){const _0x4fbd7a=new _0x1e0534(_0x271637),_0x4699a0=this['editor']['commands']['get']('trackChanges');_0x4fbd7a['buttonView']['set']({'label':_0xc2773a,'icon':_0x2fd875});const _0x34e510=new _0x1f0a50(_0x271637);for(const _0x561ef8 of _0x1d120f){if('separator'==_0x561ef8['type']){_0x34e510['items']['add'](new _0x15b98d(_0x271637));continue;}const _0x3b4a2a=new _0x465790(_0x271637,_0x4fbd7a),_0x424f86=new _0x303a53(_0x271637),_0x16dbed=_0x561ef8['model'];_0x424f86['bind'](...Object['keys'](_0x16dbed))['to'](_0x16dbed),_0x424f86['delegate']('execute')['to'](_0x4fbd7a),_0x424f86['on']('execute',()=>{this['editor']['execute'](_0x16dbed['commandName']),this['editor']['editing']['view']['focus']();}),_0x3b4a2a['children']['add'](_0x424f86),_0x34e510['items']['add'](_0x3b4a2a);}return _0x4fbd7a['bind']('isEnabled')['to'](_0x4699a0,'isEnabled'),_0x4fbd7a['panelView']['children']['add'](_0x34e510),_0x4fbd7a;}['_initializeController'](_0x3c062d){const _0x49b408=this['editor'],_0x2c468c=_0x49b408['config'],_0x45444c=_0x49b408['plugins']['get']('Annotations'),_0x1e3e46=_0x49b408['plugins']['get']('CommentsRepository'),_0x4d07af=_0x49b408['plugins']['get']('EditorAnnotations'),_0x3c76b3=_0x49b408['plugins']['get'](_0x423ea0)['me'],_0x5d8654=_0x2c468c['get']('trackChanges')['SuggestionThreadView'],_0x2fc47d=_0x2c468c['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x3eedb0,CommentThreadInputView:_0x1410ce}=_0x49b408['plugins']['get']('CommentsUI');let _0x5b81d1,_0x4c5756,_0x2431fc;this['_annotationViews']['has'](_0x3c062d['id'])?(_0x4c5756=this['_annotationViews']['get'](_0x3c062d['id']),_0x5b81d1=_0x4c5756['mainView']):(_0x5b81d1=new _0x5d8654(_0x49b408['locale'],_0x3c062d,_0x3c76b3,{'disableComments':this['_disableComments'],'editorConfig':{..._0x2c468c['get']('comments.editorConfig'),'licenseKey':_0x2c468c['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x2c468c['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2c468c['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2c468c['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3ebd86(_0x2c468c['get']('locale'),_0x49b408['locale']),'CommentView':_0x2c468c['get']('comments')['CommentView'],'CommentsListView':_0x3eedb0,'CommentThreadInputView':_0x1410ce,'SuggestionView':_0x2fc47d}),_0x5b81d1['suggestionView']['acceptButton']['on']('execute',()=>{_0x49b408['editing']['view']['focus']();}),_0x5b81d1['suggestionView']['discardButton']['on']('execute',()=>{_0x49b408['editing']['view']['focus']();}),_0x4c5756=_0x45444c['createAnnotationView'](this['editor']['locale'],_0x5b81d1),_0x4c5756['bind']('isDirty')['to'](_0x5b81d1,'isDirty'),_0x4c5756['bind']('length')['to'](_0x5b81d1),_0x4c5756['bind']('type')['to'](_0x5b81d1,'type',_0x301766=>'suggestion-'+_0x301766),_0x5b81d1['on']('escape',()=>{_0x2431fc['fire']('escape');}),this['_annotationViews']['set'](_0x3c062d['id'],_0x4c5756));const _0x38c513=_0x1e3e46['createCommentThreadController'](_0x3c062d['commentThread'],_0x5b81d1),_0x3e94ea=new pe(_0x49b408,_0x3c062d,_0x5b81d1,_0x38c513),_0x5c0f32=_0x3c062d['getAllAdjacentSuggestions']()['filter'](_0x1d9d3b=>_0x1d9d3b['isInContent']);_0x5b81d1['descriptionParts']=_0x49b408['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x5c0f32),this['_suggestionToController']['set'](_0x3c062d,_0x3e94ea),this['_viewToController']['set'](_0x5b81d1,_0x3e94ea);const _0x1dfd52=()=>{const _0x3907d3=[],_0x3b8508=_0x3c062d['getAllAdjacentSuggestions']()['filter'](_0x4548b0=>_0x4548b0['isInContent']);for(const _0xc5d908 of _0x3b8508)_0x3907d3['push'](..._0xc5d908['getMarkers']());return _0x55ffd7(_0x49b408['editing'],_0x3907d3);};_0x2431fc=_0x45444c['createAnnotation']({'view':_0x4c5756,'target':_0x1dfd52,'type':()=>'suggestion-'+_0x3e94ea['view']['type'],'isVisible':!!_0x1dfd52()}),_0x1e3e46['_bindAnnotationToEditors'](_0x5b81d1,_0x2431fc),_0x45444c['add'](_0x2431fc),_0x4d07af['registerAnnotation'](_0x2431fc);}['_destroyController'](_0x5462c9){const _0x26edf8=this['editor']['plugins']['get']('CommentsRepository'),_0x450753=this['editor']['plugins']['get']('Annotations'),_0x3b4bf3=this['_suggestionToController']['get'](_0x5462c9),_0x554ded=_0x3b4bf3['view'],_0x50d2eb=_0x450753['getByInnerView'](_0x554ded);_0x26edf8['_unbindEditors'](_0x554ded),_0x50d2eb&&_0x450753['remove'](_0x50d2eb),this['_suggestionToController']['delete'](_0x5462c9),this['_viewToController']['delete'](_0x554ded),_0x3b4bf3['destroy']();}['_updateController'](_0x14b381){if(!_0x14b381['isInContent']||!this['_suggestionToController']['has'](_0x14b381))return;const _0x3dfd6d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x38b7ba=this['_suggestionToController']['get'](_0x14b381),_0x588bb5=_0x14b381['getAllAdjacentSuggestions']();_0x38b7ba['view']['descriptionParts']=_0x3dfd6d['descriptionFactory']['getDescriptions'](_0x588bb5);}['destroy'](){for(const _0x111dc6 of this['_suggestionToController']['keys']())this['_destroyController'](_0x111dc6);for(const _0x89b7f4 of this['_annotationViews']['values']())_0x89b7f4['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x3c3be){return'model'in _0x3c3be;}class Fe extends _0x1074b3{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x4635df){this['editor']['plugins']['get'](d)['adapter']=_0x4635df;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x483a7c){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x483a7c);}['getSuggestions']({skipNotAttached:_0x5c556d=!0x1,toJSON:_0x3f54a1=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x5c556d,'toJSON':_0x3f54a1});}['getSuggestion'](_0x2ea190){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x2ea190);}}const p=['Pagination'];class re extends _0x1074b3{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x46fdbb=this['editor'];if(_0x46fdbb['config']['define']('trackChangesData.editorCreator',_0x203287=>{const _0x314b22=_0x46fdbb['model']['document']['getRootNames']()['reduce']((_0x290e26,_0x2cc196)=>(_0x290e26[_0x2cc196]='',_0x290e26),{});return _0x46fdbb['constructor']['create'](_0x314b22,_0x203287);}),'function'!=typeof _0x46fdbb['config']['get']('trackChangesData')['editorCreator'])throw new _0x6d13d3('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0xb24678){return P(this['editor'],!0x0,_0xb24678);}['getDataWithDiscardedSuggestions'](_0x109f76){return P(this['editor'],!0x1,_0x109f76);}}class Ge extends _0x1074b3{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x44c88b){function _0x2d8970(_0x27e522){return _0x27e522['map'](_0xe2347a=>String['fromCharCode'](_0xe2347a))['join']('');}super(_0x44c88b),this['result']='end',_0x44c88b[_0x2d8970([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2d8970([0x76,0x69,0x65,0x77])][_0x2d8970([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2d8970([0x61,0x75,0x74,0x6f]),_0x44c88b[_0x2d8970([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2d8970([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2d8970([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2d8970([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2d8970([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 He(_0x367493){return void 0x0!==_0x367493['getRootsAttributes'];}async function P(_0x4db13b,_0x722b17,_0x25dc34){const _0x43508e=_0x617c53(_0x4db13b,p);_0x43508e['plugins']['push'](d,Ge),_0x43508e['rootsAttributes']=He(_0x4db13b)?_0x4db13b['getRootsAttributes']():void 0x0;const _0x3703a8=document['createDocumentFragment'](),_0x33b90e=_0x4db13b['config']['get']('trackChangesData')['editorCreator'],_0x280318=await _0x33b90e(_0x43508e,()=>function(_0x594c7e){const _0x1f3ec8=document['createElement']('div');return _0x594c7e['appendChild'](_0x1f3ec8),_0x1f3ec8;}(_0x3703a8));!function(_0x3ca79b,_0x1ec17d){const _0x4c0d8a=_0x3ca79b['model']['document']['getRootNames']()['reduce']((_0x1a060f,_0x2e2429)=>(_0x1a060f[_0x2e2429]=_0x3ca79b['data']['get']({'rootName':_0x2e2429}),_0x1a060f),{}),_0xabc8a1=_0x3ca79b['plugins']['get']('Users')['users']['map'](_0x381228=>({'id':_0x381228['id'],'name':_0x381228['name']})),_0xc76728=_0x3ca79b['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x14c856=_0x3ca79b['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1dc0ae=_0x1ec17d['plugins']['get']('Users'),_0x4191df=_0x1ec17d['plugins']['get']('TrackChangesEditing'),_0x207285=_0x1ec17d['plugins']['get']('CommentsRepository');for(const _0x1f6464 of _0x207285['getCommentThreads']())_0x1f6464['remove']();for(const _0x55b9e4 of _0xabc8a1)_0x1dc0ae['getUser'](_0x55b9e4['id'])||_0x1dc0ae['addUser'](_0x55b9e4);_0x1dc0ae['me']||_0x1dc0ae['useAnonymousUser']();for(const _0x208559 of _0x14c856)_0x207285['addCommentThread'](_0x208559);for(const _0x58491f of _0xc76728)_0x4191df['addSuggestionData'](_0x58491f);_0x1ec17d['data']['set'](_0x4c0d8a);}(_0x4db13b,_0x280318),_0x280318['execute'](_0x722b17?'acceptAllSuggestions':'discardAllSuggestions');const _0x1eda79=He(_0x280318)?_0x280318['getFullData'](_0x25dc34):_0x280318['data']['get'](_0x25dc34);return await _0x280318['destroy'](),_0x1eda79;}class Me extends _0x4929b7{['options'];constructor(_0x4974d8,_0x3ee3ef){super(_0x4974d8),this['options']=_0x3ee3ef,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'](_0x12f1b1,_0x3a8285){if(!this['element'])return;const _0x35eab4=[];for(const [_0x5b1449,_0x113657]of _0x12f1b1){const _0x478cea=document['createElement']('div');_0x478cea['setAttribute']('data-ck-root-name',_0x5b1449),_0x478cea['className']=_0x113657['classes']+'\x20ck-track-changes-preview__root-container',_0x478cea['innerHTML']=_0x113657['content'],_0x35eab4['push'](_0x478cea);}_0x3a8285(this['element'],_0x35eab4),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x364e75{constructor(_0x48a83b){super(_0x48a83b),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x2b758=this['editor'],_0x1467e4=_0x2b758['locale'],_0x59bfb5=_0x2b758['plugins']['get']('Dialog');let _0x3c53fa;const _0x454d9d=function(_0x4a4b86){const _0x259a44={};if('editables'in _0x4a4b86['ui']['view']){for(const [_0x399ac3,_0x13d997]of Object['entries'](_0x4a4b86['ui']['view']['editables']))_0x259a44[_0x399ac3]=_0x13d997['element'];}else _0x259a44[_0x4a4b86['model']['document']['getRootNames']()[0x0]]=_0x4a4b86['ui']['view']['editable']['element'];return _0x259a44;}(_0x2b758),_0x18dee9=function(_0x5938a9){let _0x23f1b6=0x0;for(const _0x50ff72 of Object['values'](_0x5938a9))_0x23f1b6=Math['max'](_0x23f1b6,_0x50ff72['getBoundingClientRect']()['width']);let _0x5623e9=0x0;for(const _0x5504c5 of Object['values'](_0x5938a9))_0x5623e9+=_0x5504c5['getBoundingClientRect']()['height'];const _0x2d2147=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x20a520=Math['min'](_0x5623e9,_0x2d2147);return{'width':_0x23f1b6,'height':_0x20a520};}(_0x454d9d);_0x59bfb5['show']({'id':'finalContentPreview','title':o(_0x1467e4,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x1467e4,{'dialogRects':_0x18dee9}),'onHide':()=>{_0x3c53fa['detachFromDom']();},'onShow':()=>{_0x2b758['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x4e3023=>{const _0x463f6e=this['_standarizeRootsData'](_0x4e3023,_0x2b758,_0x454d9d);_0x59bfb5['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x463f6e,_0x2b758['config']['get']('trackChanges.preview.renderFunction'));}),_0x3c53fa=new _0x2e3b92(_0x1467e4,[_0x59bfb5['view']]),_0x3c53fa['attachToDom'](),_0x3c53fa['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x2b758['once']('destroy',()=>{_0x3c53fa['detachFromDom']();});const _0x294413=_0x59bfb5['view']['headerView']['class'];_0x59bfb5['view']['headerView']['class']=_0x294413?_0x294413+'\x20ck-reset_all':'ck-reset_all',_0x59bfb5['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x59bfb5['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x575a8e=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x1457bd=_0x575a8e['previewMode'],_0x3b62c7={};if('$labels'===_0x1457bd){for(const _0x466505 of _0x575a8e['getMergeFieldsIds']())_0x3b62c7[_0x466505]=_0x575a8e['getLabel'](_0x466505)||_0x466505;}else{const _0x43f156='$defaultValues'===_0x1457bd?_0x575a8e['getDefaultValues']():_0x575a8e['getDataSetValues'](_0x1457bd,!0x0);for(const _0x3626c9 of Object['entries'](_0x43f156)){const [_0x49baa5,_0x4baf74]=_0x3626c9;_0x3b62c7[_0x49baa5]=null!==_0x4baf74?_0x4baf74:_0x575a8e['getLabel'](_0x49baa5)||_0x49baa5;}}return{'mergeFieldsData':_0x3b62c7};}['_standarizeRootsData'](_0x322979,_0x140e3e,_0x42d880){let _0x77201b;if('string'==typeof _0x322979){const _0x31a67d=_0x140e3e['model']['document']['getRootNames']()[0x0];_0x77201b={[_0x31a67d]:_0x322979};}else _0x77201b=_0x322979;const _0x1bb8df=this['_fixMediaEmbeds'](_0x77201b,_0x140e3e),_0x42854d=function(_0x326903,_0x471877){for(const [_0x520f8a,_0x4358cf]of _0x326903)_0x4358cf['classes']=_0x471877[_0x520f8a]['classList']['value']['replace']('ck-focused','');return _0x326903;}(this['_sortRoots'](_0x140e3e)['reduce']((_0x345810,_0x2b35a6)=>(_0x345810['push']([_0x2b35a6,{'content':_0x1bb8df[_0x2b35a6],'classes':''}]),_0x345810),[]),_0x42d880);return _0x42854d;}['_fixMediaEmbeds'](_0x4f7b0f,_0xaa6562){if(!_0xaa6562['plugins']['has']('MediaEmbedEditing'))return _0x4f7b0f;const _0x25bb90=_0xaa6562['plugins']['get']('MediaEmbedEditing');for(const [_0x197da3,_0x2bb943]of Object['entries'](_0x4f7b0f)){const _0x1a12c1=document['createElement']('div');_0x1a12c1['innerHTML']=_0x2bb943,(_0x1a12c1['querySelectorAll']('figure.media')['forEach'](_0x466773=>{const _0x36959b=_0x466773['querySelector']('oembed');if(_0x36959b){const _0x27abda=_0x36959b['getAttribute']('url');if(_0x27abda){const _0x5766be=_0x25bb90['registry']['getMediaViewElement'](new _0x11ba32(_0xaa6562['editing']['view']['document']),_0x27abda,{'elementName':'','renderForEditingView':!0x0}),_0x2d0ca9=document['createElement']('div');_0x2d0ca9['classList']['add']('ck-media__wrapper'),_0x5766be['render'](_0x2d0ca9,_0xaa6562['editing']['view']['domConverter']),_0x36959b['replaceWith'](_0x2d0ca9);}}}),_0x4f7b0f[_0x197da3]=_0x1a12c1['innerHTML']);}return _0x4f7b0f;}['_sortRoots'](_0x556b65){if(!function(_0x549584){return void 0x0!==_0x549584['getRootsAttributes'];}(_0x556b65))return _0x556b65['model']['document']['getRootNames']();const _0x5ee533=[],_0x412663=new Map();for(const _0x27cee8 of _0x556b65['model']['document']['getRootNames']()){const _0x4c6d6e=_0x556b65['editing']['view']['getDomRoot'](_0x27cee8)['getClientRects']()['item'](0x0);_0x5ee533['push'](_0x27cee8),_0x412663['set'](_0x27cee8,_0x4c6d6e);}return _0x5ee533['sort']((_0x328930,_0x31d4a4)=>{const _0x577918=_0x412663['get'](_0x328930),_0x2a9d5e=_0x412663['get'](_0x31d4a4);return _0x577918['y']-_0x2a9d5e['y']||_0x577918['x']-_0x2a9d5e['x'];}),_0x5ee533;}}class $e extends _0x1074b3{static get['requires'](){return[re,_0x1ecda3];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x6a8062){super(_0x6a8062),_0x6a8062['commands']['add']('previewFinalContent',new te(this['editor'])),_0x6a8062['config']['define']('trackChanges.preview.renderFunction',(_0x3940da,_0xbb4c8e)=>{for(const _0x2187ab of _0xbb4c8e)_0x3940da['appendChild'](_0x2187ab);});}}export{D as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,$ as DiscardSuggestionCommand,M as ExecuteOnAllSuggestionsCommand,B as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,x as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Fe as TrackChanges,N as TrackChangesCommand,re as TrackChangesData,Ge as TrackChangesDataGetter,d as TrackChangesEditing,$e as TrackChangesPreview,u as TrackChangesUI};
|
|
23
|
+
import{Command as _0x4429de,Plugin as _0x493265,PendingActions as _0x109e96}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x519eac,ObservableMixin as _0x5f4475,uid as _0x3786a7,priorities as _0x3d5b98,insertToPriorityArray as _0x5e9005,toArray as _0x359e10,logWarning as _0x41903e,getEnvKeystrokeText as _0x323ba9,FocusTracker as _0x28748c,KeystrokeHandler as _0x24d05b,Collection as _0xcbf03}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x3db85f,IconCancel as _0x14e7e0,IconTrackChanges as _0xfa3e1e}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x38cbdb,View as _0x431475,ViewCollection as _0x5d01d9,FocusCycler as _0x26f916,UIModel as _0x61e74d,createDropdown as _0x829e02,SplitButtonView as _0x5e7944,addListToDropdown as _0x3ddc40,MenuBarMenuView as _0x35cb01,MenuBarMenuListView as _0x392691,ListSeparatorView as _0x2f83b6,MenuBarMenuListItemView as _0x254f14,MenuBarMenuListItemButtonView as _0x2a8fc5,BodyCollection as _0x164ff6,Dialog as _0x322021}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x36327f,hashObject as _0x2f0848,surroundingMarkersDetector as _0x4c72ed,FOCUS_ANNOTATION_KEYSTROKE as _0x164adf,AriaDescriptionView as _0x400a41,setupThreadKeyboardNavigation as _0x985267,trimHtml as _0x28f815,UserView as _0x364437,LateFocusButtonView as _0x65421f,getDateTimeFormatter as _0x4fedce,getAllMarkersDomElementsSorted as _0x4473f0,sanitizeEditorConfig as _0x181ffb}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x26a31d,ModelLiveRange as _0x21756a,ModelLivePosition as _0x30236a,ViewDowncastWriter as _0x5c1432}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x4dff6b,toWidget as _0x331d2a}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x40fcf2,set as _0x1283c4,isEqual as _0x2d7833,unset as _0xf9398,omit as Ut}from'es-toolkit/compat';import{Delete as _0x594a61,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x2d7d29}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x2c6e46}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class N extends _0x4429de{['_enabledCommands'];constructor(_0x2746fc,_0x2507ad){super(_0x2746fc),this['_enabledCommands']=_0x2507ad,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 _0x775176 of this['editor']['commands']['commands']())_0x775176['affectsData']&&!this['_enabledCommands']['has'](_0x775176)&&_0x775176['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x5a916d of this['editor']['commands']['commands']())_0x5a916d['affectsData']&&!this['_enabledCommands']['has'](_0x5a916d)&&_0x5a916d['clearForceDisabled']('TrackChangesCommand');}}class D extends _0x4429de{['_suggestions'];constructor(_0x5a837b,_0x3fe0ab){super(_0x5a837b),this['_suggestions']=_0x3fe0ab,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x179ecf){const _0x20dae1=this['_suggestions']['get'](_0x179ecf);if(!_0x20dae1)throw new _0x519eac('track-changes-accept-suggestion-not-found',this);const _0x526826=_0x20dae1['getRanges']();this['editor']['model']['canEditAt'](_0x526826)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x20dae1);}}class $ extends _0x4429de{['_suggestions'];constructor(_0x396b14,_0x76f0a9){super(_0x396b14),this['_suggestions']=_0x76f0a9,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x24aaaf){const _0x1eae95=this['_suggestions']['get'](_0x24aaaf);if(!_0x1eae95)throw new _0x519eac('track-changes-discard-suggestion-not-found',this);const _0x1f105c=_0x1eae95['getRanges']();this['editor']['model']['canEditAt'](_0x1f105c)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x1eae95);}}function ls(_0x192553,_0x5e3761){let _0x441869='';return _0x441869+=_0x192553['split']('*')['map']((_0x1f4089,_0x3fb0dc)=>_0x3fb0dc%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+tn(_0x1f4089)+'</span>':tn(_0x1f4089))['join'](''),_0x5e3761&&(_0x441869+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x5e3761['value']+'\x22\x20title=\x22'+_0x5e3761['title']+'\x22></span>'),_0x441869;}function tn(_0x1d9d4b){const _0x5d8a75=document['createElement']('span');return _0x5d8a75['innerText']=_0x1d9d4b,_0x5d8a75['innerHTML'];}function ts(_0x1a074e){return _0x1a074e['sort']((_0x27a317,_0x4903ad)=>'attribute'===_0x27a317['type']&&'attribute'!==_0x4903ad['type']?-0x1:'attribute'!==_0x27a317['type']&&'attribute'===_0x4903ad['type']?0x1:'deletion'==_0x27a317['type']&&'deletion'!=_0x4903ad['type']?-0x1:'deletion'!=_0x27a317['type']&&'deletion'==_0x4903ad['type']?0x1:0x0);}function to(_0x488f55,_0x2c2345){let _0x4bbe05,_0x443f24=0x0;const _0x3c5de2=[],_0x26dcc3=_0x2c2345['schema'];for(;_0x443f24<_0x488f55['length'];){const _0x1199db=_0x488f55[_0x443f24],_0x71d397=_0x488f55[_0x443f24+0x1];_0x4bbe05||(_0x4bbe05=_0x2c2345['createPositionBefore'](_0x1199db)),nn(_0x2c2345,_0x1199db,_0x71d397)||(_0x3c5de2['push'](_0x2c2345['createRange'](_0x4bbe05,_0x26dcc3['isObject'](_0x1199db)?_0x2c2345['createPositionAfter'](_0x1199db):_0x2c2345['createPositionAt'](_0x1199db,'end'))),_0x4bbe05=null),_0x443f24++;}return _0x3c5de2;}function nn(_0x2bac96,_0x2ba550,_0xb6eb6a){if(!_0xb6eb6a)return!0x1;const _0x23afe0=_0x2bac96['createPositionAfter'](_0x2ba550),_0x4ca141=_0x2bac96['createPositionBefore'](_0xb6eb6a);return _0x23afe0['isTouching'](_0x4ca141);}function rs(_0x54d72f,_0x41f43d,_0x127a20){for(;_0x127a20['length'];){const _0x5e5167=_0x127a20['splice'](0x0,0x64);_0x54d72f['change'](()=>{for(const _0x5c73d7 of _0x5e5167)_0x5c73d7['isInContent']&&_0x41f43d['execute'](_0x5c73d7['id']);});}}class M extends _0x4429de{['_command'];['_suggestions'];constructor(_0x2e0db1,_0x1f9833,_0x309511){super(_0x2e0db1),this['_command']=_0x1f9833,this['_suggestions']=_0x309511,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x56d513=Array['from'](this['_suggestions']['values']())['some'](_0x4838ef=>_0x4838ef['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x56d513;}['execute'](){const _0x25d028=ts(Array['from'](this['_suggestions']['values']()));for(const _0x40ac62 of _0x25d028){const _0x1e3548=_0x40ac62['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1e3548))return;}rs(this['editor']['model'],this['_command'],_0x25d028);}}class B extends _0x4429de{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x4149f8,_0x4cff3b,_0x2ebc56){super(_0x4149f8),this['_command']=_0x4cff3b,this['_suggestions']=_0x2ebc56,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x53af12=this['editor']['model']['document']['selection'],_0x426629=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0xb6281a,_0x50d943){const _0x5590fe=Array['from'](_0xb6281a['getRanges']()),_0x4be37c=new Set();for(const _0x6f706 of _0x50d943)if(_0x6f706['isInContent']){for(const _0x51728d of _0x5590fe)for(const _0x225275 of _0x6f706['getRanges']())(_0x51728d['isIntersecting'](_0x225275)||_0xb6281a['isCollapsed']&&!_0x6f706['isMultiRange']&&_0x6f706['next']&&_0x225275['end']['isTouching'](_0x51728d['start']))&&_0x4be37c['add'](_0x6f706);}return _0x4be37c;}(_0x53af12,_0x426629),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x25d6c7=ts(Array['from'](this['_selectedSuggestions']));for(const _0x345574 of _0x25d6c7){const _0x482cf1=_0x345574['getRanges']();if(!this['editor']['model']['canEditAt'](_0x482cf1))return;}rs(this['editor']['model'],this['_command'],_0x25d6c7);}}class T extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5f4475(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x517d12,_0x426411){super(),this['id']=_0x426411['id'],this['type']=_0x426411['type'],this['subType']=_0x426411['subType']||null,this['author']=_0x426411['author'],this['creator']=_0x426411['creator']||_0x426411['author'],this['isExternal']=Boolean(_0x426411['attributes']&&_0x426411['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x426411['originalSuggestionId']||null,this['_model']=_0x517d12,this['_onAccept']=_0x426411['onAccept'],this['_onDiscard']=_0x426411['onDiscard'],this['_onAttributesChange']=_0x426411['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x426411['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 _0x4db3cf=this;for(;_0x4db3cf['previous'];)_0x4db3cf=_0x4db3cf['previous'];return _0x4db3cf;}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'](_0x207180){this['_markerNames']['add'](_0x207180);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x228549=>this['_model']['markers']['get'](_0x228549))['filter'](_0xb124e1=>_0xb124e1);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x5d710b=>{for(const _0x4718f9 of this['getMarkers']())_0x5d710b['removeMarker'](_0x4718f9);}),this['_markerNames']['clear']();}['removeMarker'](_0xd3ce2f){this['_model']['change'](_0x19e4fa=>{_0x19e4fa['removeMarker'](_0xd3ce2f);}),this['_markerNames']['delete'](_0xd3ce2f);}['addRange'](_0x5ddf5e){const _0x1d120e='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x1d120e),this['_model']['change'](_0x56da77=>{_0x56da77['addMarker'](_0x1d120e,{'range':_0x5ddf5e,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x4fe528){for(const _0x485564 of this['getRanges']())if(_0x485564['isIntersecting'](_0x4fe528))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x433fe8=>_0x433fe8['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x52d6f7,_0x506c18)=>[..._0x52d6f7,..._0x506c18['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x36d8c7=this['getRanges']();if(0x1!=_0x36d8c7['length'])return null;const _0x15f03b=_0x36d8c7[0x0],_0x59f3ed=_0x15f03b['start']['nodeAfter'],_0x5e7180=_0x15f03b['end']['nodeBefore'];return _0x59f3ed instanceof _0x26a31d?_0x59f3ed!=_0x5e7180?null:_0x59f3ed: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 _0x47308d=[];let _0x24cda1=this['head'];for(;_0x24cda1;)_0x47308d['push'](_0x24cda1),_0x24cda1=_0x24cda1['next'];return _0x47308d;}['setAttribute'](_0x3bbcf2,_0x4de388){const _0x501aa9=_0x40fcf2(this['attributes']);_0x1283c4(_0x501aa9,_0x3bbcf2,_0x4de388),_0x2d7833(_0x501aa9,this['attributes'])||(this['attributes']=_0x501aa9,this['_onAttributesChange'](_0x501aa9));}['removeAttribute'](_0x2de3d8){const _0x35abcb=_0x40fcf2(this['attributes']);_0xf9398(_0x35abcb,_0x2de3d8),_0x2d7833(_0x35abcb,this['attributes'])||(this['attributes']=_0x35abcb,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 _0x3786a7()['substr'](0x1,0x5);}}function o(_0x388a8d,_0x201b35,_0x270d22){const _0x4b98a4=_0x388a8d['t'],t=_0x388a8d['t'];switch(_0x201b35){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',_0x270d22);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x270d22);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x270d22);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x270d22);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x270d22);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',_0x270d22);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x270d22);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',_0x270d22);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x270d22);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x270d22);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x270d22);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x270d22);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x270d22);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x270d22);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x270d22);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x270d22);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x270d22);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x270d22);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x270d22);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x270d22);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x270d22);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x270d22);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x270d22);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x270d22);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x270d22);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'},_0x270d22);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x270d22);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x270d22);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x270d22);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x270d22);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x270d22);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x270d22);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x270d22);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'},_0x270d22);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x270d22);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x270d22);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x270d22);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x270d22);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'},_0x270d22);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x270d22);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'},_0x270d22);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'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'},_0x270d22);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x270d22);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'},_0x270d22);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x270d22);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'},_0x270d22);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x270d22);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x270d22);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'},_0x270d22);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x270d22);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 _0x4b98a4({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x270d22);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x4b98a4({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x270d22);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x270d22);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'},_0x270d22);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'},_0x270d22);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'},_0x270d22);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x201b35;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x325876,_0x51951f){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x325876,this['_locale']=_0x51951f;}['getDescriptions'](_0x32b086){const _0x2eab4c=[],_0x265520=new Set(),_0x8e91e7=new Set();for(let _0x3c8afc=0x0;_0x3c8afc<_0x32b086['length'];_0x3c8afc++){const _0xdfd68f=_0x32b086[_0x3c8afc];if(!_0xdfd68f['isInContent'])continue;const _0x37f9f1=this['_handleCustomCallbackDescription'](_0xdfd68f);if(_0x37f9f1){if(null!=_0xdfd68f['subType']){if(_0x265520['has'](_0xdfd68f['subType']))continue;_0x265520['add'](_0xdfd68f['subType']);}_0x2eab4c['push'](_0x37f9f1);}else{if('attribute'==_0xdfd68f['type']){const _0x251ce5=_0xdfd68f['data']['key'];if(_0x8e91e7['has'](_0x251ce5))continue;_0x8e91e7['add'](_0xdfd68f['data']['key']),_0x251ce5==m?this['_handleRenameSuggestionDescription'](_0x2eab4c,_0xdfd68f):this['_handleAttributeSuggestionDescription'](_0x2eab4c,_0xdfd68f);continue;}'insertion'!=_0xdfd68f['type']&&'deletion'!=_0xdfd68f['type']||this['_handleInsertRemoveSuggestionDescription'](_0x2eab4c,_0xdfd68f,_0x32b086[_0x3c8afc+0x1]);}}return this['_resolveDescriptionItems'](_0x2eab4c);}['registerDescriptionCallback'](_0x13817c){this['_customCallbacks']['push'](_0x13817c);}['registerElementLabel'](_0xcfbe6,_0xdd05ae,_0x17dae7=_0x3d5b98['normal']){'function'==typeof _0xcfbe6?_0x5e9005(this['_itemLabelsCallbacks'],{'matchingCallback':_0xcfbe6,'label':_0xdd05ae,'priority':_0x17dae7}):this['_itemLabels']['set'](_0xcfbe6,_0xdd05ae);}['registerAttributeLabel'](_0x57b37e,_0x3281a9){this['_attributeLabels']['set'](_0x57b37e,_0x3281a9);}['getItemLabel'](_0x5ae0ef,_0x14ded1=0x1){let _0x25b4ba;for(const _0x186f16 of this['_itemLabelsCallbacks'])if(_0x186f16['matchingCallback'](_0x5ae0ef)){_0x25b4ba=_0x186f16['label'];break;}return _0x25b4ba||(_0x25b4ba=this['_itemLabels']['get'](_0x5ae0ef['name'])),_0x25b4ba?_0x25b4ba(_0x14ded1):0x1!==_0x14ded1?_0x14ded1+'\x20'+_0x5ae0ef['name']+'s':''+_0x5ae0ef['name'];}['_addDescriptionItems'](_0x58a3ab,_0x663281){const _0x1566c8=_0x663281['getFirstRange']()['getWalker'](),_0x40c692='insertion'==_0x663281['type']?'add':'remove';for(const _0x3ac93a of _0x1566c8){const _0x4adf48=_0x3ac93a['item'],_0x36909e=_0x58a3ab[_0x58a3ab['length']-0x1];if(_0x4adf48['is']('$textProxy'))_0x36909e&&_0x36909e['type']['indexOf']('Container')>-0x1&&_0x58a3ab['pop'](),_0x36909e&&'text'==_0x36909e['type']?_0x36909e[_0x40c692]+=_0x4adf48['data']:_0x58a3ab['push']({'type':'text','add':'add'==_0x40c692?_0x4adf48['data']:'','remove':'remove'==_0x40c692?_0x4adf48['data']:''});else{if(this['_schema']['isObject'](_0x4adf48)){const _0x5908b6=_0x4adf48;if(_0x36909e&&_0x36909e['type']['indexOf']('Container')>-0x1&&_0x58a3ab['pop'](),'elementEnd'==_0x3ac93a['type'])continue;_0x36909e&&_0x36909e['type']==_0x40c692+'Object'&&_0x36909e['element']['name']==_0x5908b6['name']?_0x36909e['quantity']++:_0x58a3ab['push']({'type':_0x40c692+'Object','element':_0x5908b6,'quantity':0x1}),_0x1566c8['skip'](_0x44771d=>!('elementEnd'==_0x44771d['type']&&_0x44771d['item']==_0x4adf48));}else{if(this['_schema']['checkChild'](_0x4adf48,'$text')||_0x4adf48['is']('element','softBreak')){const _0x5de6ab=_0x4adf48;if('add'==_0x40c692&&'elementStart'==_0x3ac93a['type']||'remove'==_0x40c692&&'elementEnd'==_0x3ac93a['type'])continue;if(_0x36909e&&-0x1==_0x36909e['type']['indexOf']('Container')){'text'==_0x36909e['type']&&(_0x36909e[_0x40c692]+='\x0a');continue;}let _0xfe14d4;if(_0xfe14d4='add'==_0x40c692?_0x5de6ab['nextSibling']&&!this['_schema']['isObject'](_0x5de6ab['nextSibling'])?_0x5de6ab['nextSibling']:null:_0x5de6ab['previousSibling']&&!this['_schema']['isObject'](_0x5de6ab['previousSibling'])?_0x5de6ab['previousSibling']:null,_0x5de6ab['isEmpty']||_0xfe14d4&&_0xfe14d4['isEmpty']){const _0x460728=_0xfe14d4&&_0xfe14d4['isEmpty']?_0xfe14d4:_0x5de6ab;_0x36909e&&_0x36909e['type']==_0x40c692+'EmptyContainer'&&_0x36909e['element']['name']==_0x460728['name']?_0x36909e['quantity']++:_0x58a3ab['push']({'type':_0x40c692+'EmptyContainer','element':_0x460728,'quantity':0x1});}else _0x58a3ab['push']({'type':_0x40c692+'Container','element':_0x5de6ab});}}}}}['_resolveDescriptionItems'](_0x1bc50a){const _0x16a1c7=this['_locale'],_0x58d42a=[],_0x325637=[],_0xc77120=[];for(const _0x22b3f9 of _0x1bc50a)switch(_0x22b3f9['type']){case'text':if(_0x22b3f9['add']=_0x22b3f9['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x22b3f9['remove']=_0x22b3f9['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x22b3f9['add']&&''!=_0x22b3f9['remove']){_0x58d42a['push']({'type':'replace','content':o(_0x16a1c7,'REPLACE_TEXT',['\x22'+_0x22b3f9['remove']+'\x22','\x22'+_0x22b3f9['add']+'\x22'])});continue;}if(null!=_0x22b3f9['add']['match'](/^ +$/)){_0x58d42a['push']({'type':'insertion','content':o(_0x16a1c7,'*Insert:*\x20%0',o(_0x16a1c7,'ELEMENT_SPACE',_0x22b3f9['add']['length']))});continue;}if(null!=_0x22b3f9['remove']['match'](/^ +$/)){_0x58d42a['push']({'type':'deletion','content':o(_0x16a1c7,'*Remove:*\x20%0',o(_0x16a1c7,'ELEMENT_SPACE',_0x22b3f9['remove']['length']))});continue;}if(''!=_0x22b3f9['add']){_0x58d42a['push']({'type':'insertion','content':o(_0x16a1c7,'*Insert:*\x20%0','\x22'+_0x22b3f9['add']+'\x22')});continue;}_0x58d42a['push']({'type':'deletion','content':o(_0x16a1c7,'*Remove:*\x20%0','\x22'+_0x22b3f9['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x58d42a['push']({'type':'insertion','content':o(_0x16a1c7,'*Insert:*\x20%0',this['getItemLabel'](_0x22b3f9['element'],_0x22b3f9['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x58d42a['push']({'type':'deletion','content':o(_0x16a1c7,'*Remove:*\x20%0',this['getItemLabel'](_0x22b3f9['element'],_0x22b3f9['quantity']))});continue;case'addContainer':_0x58d42a['push']({'type':'insertion','content':o(_0x16a1c7,'*Split:*\x20%0',this['getItemLabel'](_0x22b3f9['element'],_0x22b3f9['quantity']))});continue;case'removeContainer':_0x58d42a['push']({'type':'deletion','content':o(_0x16a1c7,'*Merge:*\x20%0',this['getItemLabel'](_0x22b3f9['element'],_0x22b3f9['quantity']))});continue;case'addFormat':_0x325637['push'](_0x22b3f9['key']);continue;case'removeFormat':_0xc77120['push'](_0x22b3f9['key']);continue;default:_0x58d42a['push'](_0x22b3f9);}if(_0x325637['length']){const _0x3fa5a8=_0x325637['map'](_0x459c39=>this['_attributeLabels']['has'](_0x459c39)?this['_attributeLabels']['get'](_0x459c39):_0x459c39)['join'](',\x20');_0x58d42a['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x3fa5a8)});}if(_0xc77120['length']){const _0x3016cb=_0xc77120['map'](_0x1eb401=>this['_attributeLabels']['has'](_0x1eb401)?this['_attributeLabels']['get'](_0x1eb401):_0x1eb401)['join'](',\x20');_0x58d42a['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x3016cb)});}return _0x58d42a;}['_handleCustomCallbackDescription'](_0x130a7b){for(const _0x6ee8e of this['_customCallbacks']){const _0x151d10=_0x6ee8e(_0x130a7b);if(_0x151d10&&'type'in _0x151d10)return _0x151d10;}}['_handleAttributeSuggestionDescription'](_0x50de47,_0x4dec2b){const _0x36044a=_0x4dec2b['data'],_0x1dca2a=void 0x0===_0x36044a['newValue']?'removeFormat':'addFormat';_0x50de47['push']({'type':_0x1dca2a,'key':_0x36044a['key']});}['_handleRenameSuggestionDescription'](_0x3eb0b5,_0xd69217){_0x3eb0b5['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0xd69217['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1dfe59,_0x1ed2f9,_0x411a6c){if(this['_addDescriptionItems'](_0x1dfe59,_0x1ed2f9),_0x411a6c&&_0x411a6c['getFirstRange']()&&!_0x1ed2f9['getFirstRange']()['end']['isEqual'](_0x411a6c['getFirstRange']()['start'])){const _0x582666=_0x1dfe59[_0x1dfe59['length']-0x1],_0x3accee='insertion'==_0x1ed2f9['type']?'add':'remove';_0x582666&&'text'==_0x582666['type']&&(_0x582666[_0x3accee]+='\x0a');}}}class O extends _0x493265{['afterInit'](){const _0x26ed0b=this['editor'],_0x4f88f5=_0x26ed0b['plugins']['get']('TrackChangesEditing');_0x26ed0b['commands']['get']('showAIAssistant')&&_0x4f88f5['enableCommand']('showAIAssistant');}}class E extends _0x493265{['afterInit'](){const _0x4aae32=this['editor'],_0x46187b=_0x4aae32['locale'];if(!_0x4aae32['plugins']['has']('AlignmentEditing'))return;const _0x409ca6=_0x4aae32['plugins']['get']('TrackChangesEditing');_0x409ca6['enableDefaultAttributesIntegration']('alignment'),_0x409ca6['registerBlockAttribute']('alignment'),_0x409ca6['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x46187b,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x222664=this['editor'],_0x30f468=_0x222664['locale'];_0x222664['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x589d76=>{if('formatBlock'!=_0x589d76['type'])return;const {data:_0x2b8160}=_0x589d76;if(_0x2b8160&&'alignment'==_0x2b8160['commandName']){const _0x57b33f=_0x2b8160['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x30f468,'*Format:*\x20%0',function(_0x3a7866){switch(_0x3a7866){case'left':return o(_0x30f468,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x30f468,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x30f468,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x30f468,'FORMAT_JUSTIFY_TEXT');}}(_0x57b33f))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0x493265{['afterInit'](){const _0x23481d=this['editor'],_0x2ea563=_0x23481d['plugins']['get']('TrackChangesEditing'),_0x224ad9=_0x23481d['locale'];for(const _0x59dd59 of Zt){if(!_0x23481d['plugins']['has'](_0x59dd59))continue;const _0x1ea353=_0x59dd59['slice'](0x0,-0x7)['toLowerCase'](),_0x5db022='FORMAT_'+_0x1ea353['toUpperCase']();_0x2ea563['enableDefaultAttributesIntegration'](_0x1ea353),_0x2ea563['registerInlineAttribute'](_0x1ea353),_0x2ea563['descriptionFactory']['registerAttributeLabel'](_0x1ea353,o(_0x224ad9,_0x5db022));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1160eb=this['editor'],_0x243bd5=_0x1160eb['locale'],_0x1fe96a=_0x1160eb['plugins']['get']('TrackChangesEditing');function _0x31d8b2(_0x21d864,_0x31ca44){_0x1fe96a['descriptionFactory']['registerDescriptionCallback'](_0x2ed0b4=>{if('formatInline'!=_0x2ed0b4['type'])return;const {data:_0x9c2b9d}=_0x2ed0b4;return _0x9c2b9d&&_0x9c2b9d['commandName']===_0x21d864?_0x9c2b9d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x243bd5,'*Format:*\x20%0',_0x31ca44)}:{'type':'format','content':o(_0x243bd5,'*Remove\x20format:*\x20%0',_0x31ca44)}:void 0x0;});}_0x31d8b2('bold',o(_0x243bd5,'FORMAT_BOLD')),_0x31d8b2('italic',o(_0x243bd5,'FORMAT_ITALIC')),_0x31d8b2('underline',o(_0x243bd5,'FORMAT_UNDERLINE')),_0x31d8b2('code',o(_0x243bd5,'FORMAT_CODE')),_0x31d8b2('strikethrough',o(_0x243bd5,'FORMAT_STRIKETHROUGH')),_0x31d8b2('subscript',o(_0x243bd5,'FORMAT_SUBSCRIPT')),_0x31d8b2('superscript',o(_0x243bd5,'FORMAT_SUPERSCRIPT'));}}class U extends _0x493265{['afterInit'](){const _0xc16d1d=this['editor'],_0x4ce088=_0xc16d1d['locale'];if(!_0xc16d1d['plugins']['has']('BlockQuoteEditing'))return;const _0x55d1a0=_0xc16d1d['plugins']['get']('TrackChangesEditing'),_0x10ffe2=this['editor']['commands']['get']('blockQuote');_0x55d1a0['enableCommand']('blockQuote',(_0x34ecc1,_0x34e442={})=>{const _0x46062f=this['editor']['model']['document']['selection'],_0x5465a5=_0x34e442&&void 0x0!==_0x34e442['forceValue']?_0x34e442['forceValue']:!_0x10ffe2['value'];let _0x204a0c=[];if(_0x5465a5){const _0x130d2c=Array['from'](_0x46062f['getSelectedBlocks']())['filter'](_0x4f0827=>oo(_0x4f0827)||function(_0xfaa6ea,_0x361e16){const _0x2bb754=_0x361e16['checkChild'](_0xfaa6ea['parent'],'blockQuote'),_0xf3abe0=_0x361e16['checkChild'](['$root','blockQuote'],_0xfaa6ea);return _0x2bb754&&_0xf3abe0;}(_0x4f0827,this['editor']['model']['schema']));_0x204a0c=to(_0x130d2c,_0xc16d1d['model']);}else{const _0x4e55ec=Array['from'](_0x46062f['getSelectedBlocks']())['filter'](_0x5246e4=>oo(_0x5246e4));_0x204a0c=to(_0x4e55ec,_0xc16d1d['model']);}_0xc16d1d['model']['change'](()=>{for(const _0x31cf20 of _0x204a0c)_0x55d1a0['markBlockFormat'](_0x31cf20,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5465a5}]});});}),_0x55d1a0['descriptionFactory']['registerDescriptionCallback'](_0x562bfe=>{const {data:_0x49b596}=_0x562bfe;if(_0x49b596&&'blockQuote'==_0x49b596['commandName']){const _0x30b2d7=o(_0x4ce088,'ELEMENT_BLOCK_QUOTE');return _0x49b596['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4ce088,'*Set\x20format:*\x20%0',_0x30b2d7)}:{'type':'format','content':o(_0x4ce088,'*Remove\x20format:*\x20%0',_0x30b2d7)};}});}}function oo(_0x26da26){return'blockQuote'==_0x26da26['parent']['name'];}class V extends _0x493265{['afterInit'](){const _0x3c15f4=this['editor'],_0x17f9c9=_0x3c15f4['locale'],_0x337148=_0x3c15f4['plugins']['get']('TrackChangesEditing');_0x3c15f4['plugins']['has']('BookmarkEditing')&&(_0x337148['enableCommand']('insertBookmark'),_0x337148['enableDefaultAttributesIntegration']('updateBookmark'),_0x337148['registerBlockAttribute']('bookmarkId'),_0x337148['descriptionFactory']['registerDescriptionCallback'](_0x424a92=>{if('insertion'!=_0x424a92['type']&&'deletion'!=_0x424a92['type']&&'attribute'!=_0x424a92['type'])return;const _0x57d5e6=_0x424a92['getContainedElement']();if(null==_0x57d5e6)return;if(!_0x57d5e6['is']('element','bookmark'))return;const _0x195b3f=_0x57d5e6['getAttribute']('bookmarkId');if('insertion'==_0x424a92['type'])return{'type':'insertion','content':o(_0x17f9c9,'*Insert:*\x20%0','\x22'+_0x195b3f+'\x22\x20'+o(_0x17f9c9,'ELEMENT_BOOKMARK'))};if('deletion'==_0x424a92['type'])return{'type':'deletion','content':o(_0x17f9c9,'*Remove:*\x20%0','\x22'+_0x195b3f+'\x22\x20'+o(_0x17f9c9,'ELEMENT_BOOKMARK'))};const {data:_0x2bde06}=_0x424a92;if(!_0x2bde06||'bookmarkId'!=_0x2bde06['key'])return;return{'type':'format','content':o(_0x17f9c9,'*Set\x20bookmark:*\x20%0','\x22'+_0x2bde06['newValue']+'\x22')};}));}}class F extends _0x493265{['afterInit'](){const _0x5a2bf8=this['editor'];_0x5a2bf8['plugins']['has']('CaseChange')&&(_0x5a2bf8['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x5a2bf8['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x5a2bf8['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x493265{['afterInit'](){const _0x2a0420=this['editor'];_0x2a0420['commands']['get']('ckbox')&&_0x2a0420['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x493265{['afterInit'](){const _0x219eae=this['editor'];if(!_0x219eae['plugins']['has']('CodeBlock'))return;const _0x34d7e9=_0x219eae['plugins']['get']('TrackChangesEditing'),_0x2af460=_0x219eae['locale'],_0x277d57=_0x219eae['config']['get']('codeBlock')['languages'],_0x53060c=_0x219eae['commands']['get']('codeBlock');_0x34d7e9['enableCommand']('indentCodeBlock'),_0x34d7e9['enableCommand']('outdentCodeBlock'),_0x34d7e9['enableCommand']('codeBlock',(_0x5cc120,_0x3773e={})=>{const _0x570c7c=_0x219eae['model'],_0x4440c4=_0x219eae['model']['document']['selection'],_0x2a29bb=_0x3773e&&void 0x0!==_0x3773e['forceValue']?_0x3773e['forceValue']:!_0x53060c['value'];let _0x3fd8ed;_0x3773e['language']||(_0x3773e['language']=_0x277d57[0x0]['language']),_0x3fd8ed=_0x2a29bb?Array['from'](_0x4440c4['getSelectedBlocks']())['filter'](_0x423620=>co(_0x423620)||function(_0x3402e6,_0x576685){if(_0x3402e6['is']('rootElement')||_0x576685['isLimit'](_0x3402e6))return!0x1;return _0x576685['checkChild'](_0x3402e6['parent'],'codeBlock');}(_0x423620,_0x570c7c['schema'])):Array['from'](_0x4440c4['getSelectedBlocks']())['filter'](_0x5084a1=>co(_0x5084a1));const _0x2c19fe=to(_0x3fd8ed,_0x570c7c);_0x570c7c['change'](()=>{for(const _0x52a39b of _0x2c19fe)_0x34d7e9['markBlockFormat'](_0x52a39b,{'commandName':'codeBlock','commandParams':[{..._0x3773e,'forceValue':_0x2a29bb}],'formatGroupId':'blockName'});});}),(_0x34d7e9['descriptionFactory']['registerElementLabel']('codeBlock',_0x228232=>o(_0x2af460,'ELEMENT_CODE_BLOCK',_0x228232)),_0x34d7e9['descriptionFactory']['registerDescriptionCallback'](_0x5c0102=>{if('formatBlock'!=_0x5c0102['type'])return;const _0x25c179=_0x2af460['t'],{data:_0x53615f}=_0x5c0102;if(!_0x53615f||'codeBlock'!=_0x53615f['commandName'])return;const _0x2b7361=_0x53615f['commandParams'][0x0]['language'],_0x177b77=_0x25c179(_0x277d57['find'](_0x314f82=>_0x314f82['language']===_0x2b7361)['label'])['toLowerCase']();return _0x53615f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2af460,'*Set\x20format:*\x20%0',o(_0x2af460,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x177b77+')')}:{'type':'format','content':o(_0x2af460,'*Remove\x20format:*\x20%0',o(_0x2af460,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x4c6af4){return'codeBlock'==_0x4c6af4['name'];}class J extends _0x493265{['afterInit'](){const _0x4fb0aa=this['editor'];if(!_0x4fb0aa['plugins']['has']('CommentsEditing'))return;_0x4fb0aa['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x253a69,_0x25317c,_0x2f8d46){const _0x1f0af7=[];for(const _0x2bf282 of _0x25317c['getItems']())_0x2bf282['hasAttribute'](_0x253a69)&&_0x1f0af7['push'](_0x2f8d46['createRangeOn'](_0x2bf282));return _0x1f0af7;}function De(_0x295391,_0x1c9079,{showActiveMarker:_0xe81e7f=!0x0}={}){const _0x56a53e=_0x295391['plugins']['get']('TrackChangesEditing');return(_0x4c2c45,_0x4adb5e,_0x293e42)=>{if(!_0x293e42['consumable']['test'](_0x4adb5e['markerRange'],_0x4c2c45['name']))return;const _0x2fff58=_0x4adb5e['markerRange']['getWalker'](),_0x4eb790=_0x4adb5e['markerRange']['start'],_0x3e5c83=_0x295391['model']['schema'];let _0x314ae4=null,_0x350640=null,_0x40afa3=!0x1,_0x442dd8=!0x1;for(const _0x19cf6d of _0x2fff58){const _0x5eceed=_0x19cf6d['item'];_0x40afa3=_0x40afa3||_0x3e5c83['isContent'](_0x5eceed);const _0x505c35=_0x293e42['mapper']['toViewElement'](_0x5eceed);if(_0x505c35&&_0x505c35['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x19cf6d['type']&&(_0x3e5c83['isBlock'](_0x5eceed)&&!_0x3e5c83['isLimit'](_0x5eceed)&&(_0x5eceed['nextSibling']||_0x4eb790['isAtEnd']?_0x314ae4&&_0x314ae4['parent']==_0x5eceed||(_0x314ae4=_0x5eceed,_0x59e9a6(_0x19cf6d['previousPosition']),_0x442dd8=!0x0):_0x350640=_0x350640||_0x19cf6d['previousPosition']));}function _0x59e9a6(_0x477858){const {id:_0x244e50,authorId:_0x4c73b2}=_0x56a53e['_splitMarkerName'](_0x4adb5e['markerName']),_0x56fdbf=_0x293e42['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1c9079,'data-suggestion':_0x244e50,'data-author-id':_0x4c73b2}),_0x1fcacc=_0x293e42['mapper']['toViewPosition'](_0x477858);_0xe81e7f&&_0x56a53e['activeMarkers']['includes'](_0x4adb5e['markerName'])&&_0x293e42['writer']['addClass']('ck-suggestion-marker--active',_0x56fdbf),_0x293e42['writer']['insert'](_0x1fcacc,_0x56fdbf),_0x293e42['mapper']['bindElementToMarker'](_0x56fdbf,_0x4adb5e['markerName']);}_0x40afa3||_0x442dd8||!_0x350640||_0x59e9a6(_0x350640);};}class K extends _0x493265{static get['requires'](){return[_0x594a61];}['init'](){const _0x54bca9=this['editor'],_0x35348d=_0x54bca9['plugins']['get']('TrackChangesEditing');_0x35348d['enableCommand']('delete');const _0x3b310c=_0x54bca9['commands']['get']('deleteForward');_0x35348d['enableCommand']('deleteForward',(_0x4f12e1,_0x21ee27={})=>{const _0x41b0b4=_0x54bca9['model']['createSelection'](_0x54bca9['model']['document']['selection']);_0x41b0b4['isCollapsed']&&_0x54bca9['model']['modifySelection'](_0x41b0b4,{'direction':'forward','unit':_0x21ee27['unit']});const _0x2a4b46=_0x41b0b4['getFirstRange'](),_0x14c501=_0x21756a['fromRange'](_0x2a4b46);let _0x33c7f2;_0x4f12e1(_0x21ee27),_0x33c7f2='$graveyard'==_0x14c501['root']['rootName']?_0x54bca9['model']['createRange'](_0x2a4b46['start']):_0x54bca9['model']['createRange'](_0x14c501['start'],_0x14c501['end']),_0x14c501['detach'](),_0x54bca9['model']['enqueueChange'](_0x3b310c['buffer']['batch'],_0x460164=>{_0x3b310c['buffer']['lock'](),_0x460164['setSelection'](_0x460164['createRange'](_0x33c7f2['end'])),_0x3b310c['buffer']['unlock']();});}),_0x54bca9['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x54bca9,'merge'),{'priority':'high'}),_0x54bca9['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x386e13,_0x1cd179,_0x388451)=>{_0x388451['options']['showSuggestionHighlights']&&De(_0x54bca9,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x386e13,_0x1cd179,_0x388451);},{'priority':'high'}),_0x54bca9['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x508dcb,_0x1b1df7,_0x18010b)=>{const _0x5b12b9=_0x18010b['mapper']['markerNameToElements'](_0x1b1df7['markerName']);if(_0x5b12b9){for(const _0x12595d of _0x5b12b9)_0x12595d['is']('uiElement')&&(_0x18010b['mapper']['unbindElementFromMarkerName'](_0x12595d,_0x1b1df7['markerName']),_0x18010b['writer']['remove'](_0x12595d));}},{'priority':'high'});}}class H extends _0x493265{['afterInit'](){const _0x3ec02b=this['editor'];if(!_0x3ec02b['plugins']['has']('ListEditing'))return;const _0x40ae39=_0x3ec02b['locale'],_0x2da7de=_0x3ec02b['plugins']['get']('TrackChangesEditing'),_0x5bb1ec=_0x3ec02b['plugins']['has']('TodoListEditing'),_0x235fd6=!!_0x3ec02b['config']['get']('list.multiBlock');function _0x204e4c(_0x13d5d2){return{'type':'format','content':''+o(_0x40ae39,'*Set\x20format:*\x20%0',_0x13d5d2)};}function _0x247885(_0x46f9e7){return{'type':'format','content':''+o(_0x40ae39,'*Remove\x20format:*\x20%0',_0x46f9e7)};}_0x2da7de['enableDefaultAttributesIntegration']('numberedList'),_0x2da7de['enableDefaultAttributesIntegration']('bulletedList'),_0x2da7de['enableDefaultAttributesIntegration']('customNumberedList'),_0x2da7de['enableDefaultAttributesIntegration']('customBulletedList'),_0x2da7de['enableDefaultAttributesIntegration']('indentList'),_0x2da7de['enableDefaultAttributesIntegration']('outdentList'),_0x2da7de['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x2da7de['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x2da7de['registerBlockAttribute']('listItemId'),_0x2da7de['registerBlockAttribute']('listType'),_0x2da7de['registerBlockAttribute']('listIndent'),_0x235fd6&&(_0x2da7de['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x2da7de['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x5bb1ec&&(_0x2da7de['enableDefaultAttributesIntegration']('todoList'),_0x2da7de['enableDefaultAttributesIntegration']('checkTodoList'),_0x2da7de['registerBlockAttribute']('todoListChecked'),_0x2da7de['descriptionFactory']['registerDescriptionCallback'](_0x5bf3b5=>{const {data:_0x9e5904}=_0x5bf3b5;if(_0x9e5904&&'todoListChecked'==_0x9e5904['key'])return{'type':'format','content':_0x9e5904['newValue']?o(_0x40ae39,'*Check\x20item*'):o(_0x40ae39,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x1d2d5e=>{if(_0x1d2d5e['batch']['isUndo'])return!0x1;let _0x4765d7=!0x1;const _0x18c8f1=_0x2da7de['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1831bf=>'todoListChecked'===_0x2da7de['_getAttributeKey'](_0x1831bf));for(const _0x2631d5 of _0x18c8f1){'todo'!=_0x2631d5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x2da7de['_findSuggestions'](_0x2631d5['getFirstRange'](),'attribute')['find'](_0x8a40f2=>'listType'===_0x2da7de['_getAttributeKey'](_0x8a40f2['suggestion']))||(_0x1d2d5e['removeMarker'](_0x2631d5['getFirstMarker']()),_0x4765d7=!0x0));}return _0x4765d7;})),_0x2da7de['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x40ae39,'FORMAT_INDENT'));const _0xd44e34={'type':'format','content':''};_0x2da7de['descriptionFactory']['registerDescriptionCallback'](_0xe0b42=>{const {data:_0x16bdd8}=_0xe0b42;if(!_0x16bdd8||'listType'!=_0x16bdd8['key'])return;let _0x292432=_0xe0b42['head'];for(;_0x292432;){if(_0x292432['data']&&(('listStyle'==_0x292432['data']['key']||'listMarkerStyle'==_0x292432['data']['key'])&&(_0x292432['data']['newValue']&&'default'!=_0x292432['data']['newValue']||'default'!=_0x292432['data']['oldValue']&&!_0x16bdd8['newValue'])||!_0x235fd6&&_0x292432['data']['key']==m))return _0xd44e34;_0x292432=_0x292432['next'];}if(null==_0x16bdd8['newValue'])switch(_0x16bdd8['oldValue']){case'bulleted':return _0x247885(o(_0x40ae39,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x247885(o(_0x40ae39,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x247885(o(_0x40ae39,'ELEMENT_TODO_LIST'));}switch(_0x16bdd8['newValue']){case'bulleted':return _0x204e4c(o(_0x40ae39,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x204e4c(o(_0x40ae39,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x204e4c(o(_0x40ae39,'ELEMENT_TODO_LIST'));}}),_0x2da7de['descriptionFactory']['registerDescriptionCallback'](_0x39f00b=>{const {data:_0x186eba}=_0x39f00b;if(_0x186eba&&'listIndent'==_0x186eba['key'])return null==_0x186eba['newValue']||null==_0x186eba['oldValue']&&0x0==_0x186eba['newValue']?_0xd44e34:void 0x0;}),_0x2da7de['descriptionFactory']['registerDescriptionCallback'](_0x3d7d94=>{if('attribute'!=_0x3d7d94['type'])return;const {data:_0x569d04}=_0x3d7d94;if(!_0x569d04||'listItemId'!=_0x569d04['key'])return;const _0x55ce06=Te(_0x3d7d94);return'newValue'==_0x55ce06?{'type':'format','content':o(_0x40ae39,'*Merge:*\x20list\x20item')}:'oldValue'==_0x55ce06?{'type':'format','content':o(_0x40ae39,'*Split:*\x20list\x20item')}:_0xd44e34;}),_0x3ec02b['model']['document']['registerPostFixer'](_0x2e59c6=>this['listItemIdFixer'](_0x2e59c6)),_0x3ec02b['model']['document']['registerPostFixer'](_0x2b5ec3=>this['noTrackChangesFixer'](_0x2b5ec3)),_0x3ec02b['model']['document']['on']('change:data',(_0x50ac1e,_0x27d1b3)=>{if(_0x27d1b3['isUndo']||!_0x27d1b3['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x365f38){if(_0x365f38['batch']['isUndo']||!_0x365f38['batch']['isLocal'])return!0x1;let _0x43ff75=!0x1;const _0x287a74=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x45d3c7=>_0x45d3c7['data']&&'listItemId'==_0x45d3c7['data']['key'])['filter'](_0xb17d5c=>_0xb17d5c['data']['newValue']&&_0xb17d5c['data']['oldValue']);for(const _0x497b2d of _0x287a74)Te(_0x497b2d)||(_0x365f38['removeMarker'](_0x497b2d['getFirstMarker']()),_0x43ff75=!0x0);return _0x43ff75;}['noTrackChangesFixer'](_0x525fc6){if(_0x525fc6['batch']['isUndo']||!_0x525fc6['batch']['isLocal'])return!0x1;const _0x4e8014=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4e8014['trackChangesCommand']['value'])return!0x1;let _0xe4668d=!0x1;const _0x3dae96=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x3b4b1d=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x485b21=>'attribute'==_0x485b21['type'])['filter'](_0x508fc5=>_0x3dae96['includes'](_0x508fc5['attributeKey']));if(0x0==_0x3b4b1d['length'])return _0xe4668d;for(const _0x26ee7f of _0x3b4b1d){const _0x293dfb=_0x4e8014['_findSuggestions'](_0x26ee7f['range'],'attribute')['filter'](_0x45adbe=>!_0x45adbe['meta']['isNextTo'])['map'](_0x49eb98=>_0x49eb98['suggestion'])['filter'](_0xecd0d1=>{const _0x3daf62=_0x4e8014['_getAttributeKey'](_0xecd0d1);return _0x3dae96['includes'](_0x3daf62);});if(_0x293dfb['length']){for(const _0x2119b6 of _0x293dfb)_0x525fc6['removeMarker'](_0x2119b6['getFirstMarker']());_0xe4668d=!0x0;}}return _0xe4668d;}['assureChains'](){const _0x364f8a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4a8ca3=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x3a1f17;const _0x2aaedd=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x29456e=>{if(_0x29456e['data']['oldRange']||!_0x29456e['data']['newRange'])return null;if(!_0x29456e['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x589e29}=_0x364f8a['_splitMarkerName'](_0x29456e['name']);if(!_0x364f8a['hasSuggestion'](_0x589e29))return null;const _0x178408=_0x364f8a['getSuggestion'](_0x589e29);return _0x4a8ca3['includes'](_0x178408['data']['key']);})['map'](_0x1d1ba1=>{const {id:_0x4feef8}=_0x364f8a['_splitMarkerName'](_0x1d1ba1['name']),_0x3cff75=_0x364f8a['getSuggestion'](_0x4feef8);return _0x3a1f17=_0x3cff75['attributes']['groupId'],_0x3cff75['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x2aaedd['size'])return;const _0x38d60a=_0x364f8a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1e15bd=>'attribute'==_0x1e15bd['type']&&_0x1e15bd['data']&&_0x4a8ca3['includes'](_0x1e15bd['data']['key'])&&_0x1e15bd['attributes']['groupId']!=_0x3a1f17)['map'](_0x4b59f3=>({'listItem':_0x4b59f3['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4b59f3['attributes']['groupId']})),_0x73fd8c=new Set();for(const {groupId:_0x4470c5,listItem:_0x296738}of _0x38d60a)_0x2aaedd['has'](_0x296738)&&_0x73fd8c['add'](_0x4470c5);for(const _0x1b7745 of _0x364f8a['getSuggestions']())_0x73fd8c['has'](_0x1b7745['attributes']['groupId'])&&_0x1b7745['setAttribute']('groupId',_0x3a1f17);}['_supportLegacySuggestions'](){const _0x210b28=this['editor'],_0x3183c3=_0x210b28['locale'],_0xddf241=_0x210b28['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0xddf241['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x2f7a39,_0x4b8a45){const _0x5f1bc7=[];for(let _0xcfec1b of _0x2f7a39)_0xcfec1b['start']['nodeAfter']===_0xcfec1b['end']['parent']&&(_0xcfec1b=_0x210b28['model']['createRange'](_0x210b28['model']['createPositionAt'](_0xcfec1b['start']['nodeAfter'],0x0))),_0x5f1bc7['push'](_0xcfec1b);_0x210b28['model']['change'](_0x5e84e0=>{const _0x4c6f8a=_0x210b28['model']['document']['selection'],_0x57291f=Array['from'](_0x4c6f8a['getRanges']())['map'](_0x2b246a=>_0x21756a['fromRange'](_0x2b246a));_0x5e84e0['setSelection'](_0x5f1bc7),_0x210b28['commands']['get'](_0x4b8a45['commandName'])['refresh'](),_0x4b8a45['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x210b28['execute'](_0x4b8a45['commandName'],..._0x4b8a45['commandParams']),_0x5e84e0['setSelection'](_0x57291f);for(const _0x191de5 of _0x57291f)_0x191de5['detach']();});}),_0xddf241['descriptionFactory']['registerElementLabel'](function(_0x4a18bd){const _0x3fcb08=!_0x210b28['model']['schema']['isObject'](_0x4a18bd),_0x6392fb=_0x4a18bd['previousSibling'],_0x3ebdef=_0x4a18bd['nextSibling'],_0x32d61a=_0x4a18bd['getAttribute']('listItemId'),_0x268fc8=!_0x6392fb||_0x6392fb['getAttribute']('listItemId')!==_0x32d61a,_0x1df1d0=!_0x3ebdef||_0x3ebdef['getAttribute']('listItemId')!==_0x32d61a;return _0x3fcb08&&Boolean(_0x32d61a)&&_0x268fc8&&_0x1df1d0;},_0x4043f6=>o(_0x3183c3,'ELEMENT_LIST_ITEM',_0x4043f6));}['_registerLegacyDescription'](){const _0x4cea70=this['editor'],_0x1cc7b0=_0x4cea70['locale'];function _0x5f0099(_0x52fd5){const _0x16369b=_0x4cea70['commands']['get']('bulletedList')['value'],_0x3e58db=_0x4cea70['commands']['get']('numberedList')['value'];return'numberedList'===_0x52fd5?_0x16369b:_0x3e58db;}_0x4cea70['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x424b5c){if('formatBlock'!=_0x424b5c['type'])return;const {data:_0x34d965}=_0x424b5c;if(!_0x34d965)return;let _0x2715fe,_0x388dcc,_0x10d7e9,_0x4ab62a;switch(_0x34d965['commandName']){case'bulletedList':_0x10d7e9=_0x34d965['commandParams'][0x0]['forceValue'],_0x4ab62a=_0x5f0099(_0x34d965['commandName']),_0x2715fe=_0x10d7e9?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4ab62a&&_0x4cea70['config']['get']('list.multiBlock')||(_0x2715fe='*Change\x20to:*\x20%0'),_0x388dcc={'type':'format','content':o(_0x1cc7b0,_0x2715fe,o(_0x1cc7b0,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x10d7e9=_0x34d965['commandParams'][0x0]['forceValue'],_0x4ab62a=_0x5f0099(_0x34d965['commandName']),_0x2715fe=_0x10d7e9?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4ab62a&&_0x4cea70['config']['get']('list.multiBlock')||(_0x2715fe='*Change\x20to:*\x20%0'),_0x388dcc={'type':'format','content':o(_0x1cc7b0,_0x2715fe,o(_0x1cc7b0,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x2715fe='*Indent:*\x20%0',_0x388dcc={'type':'format','content':o(_0x1cc7b0,_0x2715fe,o(_0x1cc7b0,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x2715fe=function(_0x4988d4){const _0xdbcf42=_0x4988d4['getFirstRange']();let _0x4e5e9a=_0xdbcf42['start']['nodeAfter'];for(;_0x4e5e9a&&_0xdbcf42['containsItem'](_0x4e5e9a);){if(_0x4e5e9a['getAttribute']('listIndent')>0x0)return!0x1;_0x4e5e9a=_0x4e5e9a['nextSibling'];}return!0x0;}(_0x424b5c)?o(_0x1cc7b0,'*Format:*\x20remove\x20from\x20%0',o(_0x1cc7b0,function(_0x2950bf){return'ELEMENT_'+_0x2950bf['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x424b5c))):o(_0x1cc7b0,'*Outdent:*\x20%0',o(_0x1cc7b0,'ELEMENT_LIST_ITEM')),_0x388dcc={'type':'format','content':_0x2715fe};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x34d965['multipleBlocks']&&(_0x2715fe='*Merge:*\x20%0',_0x388dcc={'type':'deletion','content':o(_0x1cc7b0,_0x2715fe,o(_0x1cc7b0,'ELEMENT_LIST_ITEM'))});}return _0x388dcc;});}}function Te(_0x1af413){let _0x31ef7b=_0x1af413['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x31ef7b;){const _0x2255e7=_0x31ef7b['getAttribute']('listItemId');if(!_0x2255e7)return!0x1;if(_0x2255e7==_0x1af413['data']['newValue'])return'newValue';if(_0x2255e7==_0x1af413['data']['oldValue'])return'oldValue';_0x31ef7b=_0x31ef7b['previousSibling'];}return!0x1;}class q extends _0x493265{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2d5fc0=this['editor']['config']['get']('list.properties'),_0x3bce37=this['editor']['plugins']['get']('TrackChangesEditing');_0x2d5fc0['styles']&&(_0x3bce37['enableDefaultAttributesIntegration']('listStyle'),_0x3bce37['registerBlockAttribute']('listStyle')),_0x2d5fc0['reversed']&&(_0x3bce37['enableDefaultAttributesIntegration']('listReversed'),_0x3bce37['registerBlockAttribute']('listReversed')),_0x2d5fc0['startIndex']&&(_0x3bce37['enableDefaultAttributesIntegration']('listStart'),_0x3bce37['registerBlockAttribute']('listStart'));const _0x3b3515={'type':'format','content':''};_0x3bce37['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x302ac7=this['editor']['locale'];_0x3bce37['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x302ac7,'FORMAT_LIST_REVERSED')),_0x3bce37['descriptionFactory']['registerDescriptionCallback'](_0x401429=>{const {data:_0x150d84}=_0x401429;if(_0x150d84&&'listReversed'==_0x150d84['key'])return null==_0x150d84['newValue']||0x0==_0x150d84['newValue']&&null==_0x150d84['oldValue']?_0x3b3515:void 0x0;}),_0x3bce37['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x302ac7,'FORMAT_LIST_START')),_0x3bce37['descriptionFactory']['registerDescriptionCallback'](_0x38b25d=>{const {data:_0x9fea2}=_0x38b25d;if(_0x9fea2&&'listStart'==_0x9fea2['key'])return null==_0x9fea2['newValue']||0x1==_0x9fea2['newValue']&&null==_0x9fea2['oldValue']?_0x3b3515:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x43eb59=>{if(_0x43eb59['batch']['isUndo'])return!0x1;let _0x534903=!0x1;const _0x56afa9=_0x3bce37['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2a722f=>{const _0x4bd8da=_0x3bce37['_getAttributeKey'](_0x2a722f);return'listStart'==_0x4bd8da||'listReversed'==_0x4bd8da;});for(const _0xd4609f of _0x56afa9){const _0x1aeaed=_0xd4609f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x1aeaed||'customNumbered'==_0x1aeaed)continue;_0x3bce37['_findSuggestions'](_0xd4609f['getFirstRange'](),'attribute')['find'](_0x16b4a1=>'listType'==_0x3bce37['_getAttributeKey'](_0x16b4a1['suggestion']))||(_0x43eb59['removeMarker'](_0xd4609f['getFirstMarker']()),_0x534903=!0x0);}return _0x534903;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x52aaf0){const _0x436cf0=this['editor']['locale'],{data:_0x2e9057}=_0x52aaf0,_0x252be6={'type':'format','content':''};if(!_0x2e9057||'listStyle'!=_0x2e9057['key'])return;if(!_0x2e9057['oldValue'])return'default'==_0x2e9057['newValue']?_0x252be6:{'type':'format','content':''+o(_0x436cf0,'*Set\x20format:*\x20%0',o(_0x436cf0,this['_getTranslationKeyForListStyle'](_0x2e9057['newValue'])))};if(!_0x2e9057['newValue']){if('default'==_0x2e9057['oldValue'])return _0x252be6;let _0x17d001=_0x52aaf0['head'];for(;_0x17d001;){if(_0x17d001['data']&&'listType'==_0x17d001['data']['key']&&_0x17d001['data']['newValue'])return _0x252be6;_0x17d001=_0x17d001['next'];}return{'type':'format','content':''+o(_0x436cf0,'*Remove\x20format:*\x20%0',o(_0x436cf0,this['_getTranslationKeyForListStyle'](_0x2e9057['oldValue'])))};}if('default'!=_0x2e9057['newValue'])return{'type':'format','content':''+o(_0x436cf0,'*Set\x20format:*\x20%0',o(_0x436cf0,this['_getTranslationKeyForListStyle'](_0x2e9057['newValue'])))};let _0x2173c1=_0x52aaf0['head'];for(;_0x2173c1;){if(_0x2173c1['data']&&'listType'==_0x2173c1['data']['key']&&_0x2173c1['data']['newValue']&&_0x2173c1['data']['oldValue'])return _0x252be6;_0x2173c1=_0x2173c1['next'];}return{'type':'format','content':o(_0x436cf0,'*Set\x20format:*\x20%0',o(_0x436cf0,'ELEMENT_'+_0x52aaf0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1e5593=this['editor'],_0x536c9f=_0x1e5593['locale'];_0x1e5593['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x10d3b7=>{if('formatBlock'!=_0x10d3b7['type'])return;const {data:_0x5b22d0}=_0x10d3b7;if(!_0x5b22d0)return;let _0x286bc5,_0xe94de1;switch(_0x5b22d0['commandName']){case'listStyle':_0x286bc5='*Change\x20to:*\x20%0',_0xe94de1={'type':'format','content':o(_0x536c9f,_0x286bc5,o(_0x536c9f,this['_getTranslationKeyForListStyle'](_0x5b22d0['commandParams'][0x0]['type'])))};break;case'listReversed':_0x286bc5=_0x5b22d0['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xe94de1={'type':'format','content':o(_0x536c9f,_0x286bc5)};break;case'listStart':_0x286bc5='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xe94de1={'type':'format','content':o(_0x536c9f,_0x286bc5,_0x5b22d0['commandParams'][0x0]['startIndex'])};}return _0xe94de1;});}['_getTranslationKeyForListStyle'](_0x635a02){return'ELEMENT_'+function(_0x15357f){if(Se['includes'](_0x15357f))return'bulleted';if(_e['includes'](_0x15357f))return'numbered';return null;}(_0x635a02)['toUpperCase']()+'_LIST_'+_0x635a02['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0x493265{['afterInit'](){const _0x4ea5a7=this['editor'];_0x4ea5a7['commands']['get']('emoji')&&_0x4ea5a7['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0x493265{static get['requires'](){return[_0x2d7d29];}['init'](){const _0x30f460=this['editor'],_0x2ba19c=_0x30f460['plugins']['get']('TrackChangesEditing'),_0x1d992e=_0x30f460['commands']['get']('enter');_0x2ba19c['enableCommand']('enter',()=>{_0x30f460['model']['change'](_0x22f7ee=>{const _0xa2e3e8=_0x30f460['model']['document']['selection'],_0x4ccd66=_0xa2e3e8['getFirstPosition'](),_0x48c980=_0x21756a['fromRange'](_0xa2e3e8['getFirstRange']());if(_0x1d992e['enterBlock'](_0x22f7ee)){const _0x479cdd=_0x30f460['model']['createPositionAt'](_0x4ccd66['parent']['nextSibling'],0x0),_0x33fc87=_0x22f7ee['createRange'](_0x4ccd66,_0x479cdd);_0x2ba19c['markInsertion'](_0x33fc87);}else _0x22f7ee['setSelection'](_0x22f7ee['createRange'](_0x48c980['end']));_0x48c980['detach'](),_0x1d992e['fire']('afterExecute',{'writer':_0x22f7ee});});}),_0x30f460['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x30f460,'split'),{'priority':'high'}),_0x30f460['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x323b9f,_0x3ffa57,_0x2a1550)=>{const _0x71071b=_0x2a1550['mapper']['markerNameToElements'](_0x3ffa57['markerName']);if(_0x71071b){for(const _0x345be6 of _0x71071b)_0x345be6['hasClass']('ck-suggestion-marker-split')&&(_0x2a1550['mapper']['unbindElementFromMarkerName'](_0x345be6,_0x3ffa57['markerName']),_0x2a1550['writer']['remove'](_0x345be6));}},{'priority':'high'}),_0x30f460['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x42158b,_0x1e00e3,_0x1f09da)=>{_0x1f09da['options']['showSuggestionHighlights']&&De(_0x30f460,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x42158b,_0x1e00e3,_0x1f09da);},{'priority':'high'});}}class Q extends _0x493265{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x4dd93f=this['editor']['plugins']['get']('TrackChangesEditing');_0x4dd93f['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x4dd93f['enableCommand']('findNext'),_0x4dd93f['enableCommand']('findPrevious'),_0x4dd93f['enableCommand']('replace'),_0x4dd93f['enableCommand']('replaceAll');}['handleFindCommand'](_0x504d6a,_0x760882,_0x49cc8a={}){const _0x55b129=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x504d6a(_0x202411=>{let _0x1d6272=('string'==typeof _0x760882?_0x55b129['findByTextCallback'](_0x760882,_0x49cc8a):_0x760882)(_0x202411);Array['isArray'](_0x1d6272)&&(_0x1d6272={'results':_0x1d6272,'searchText':'string'==typeof _0x760882?_0x760882:''});const _0x4668ac=_0x1d6272['results']['filter'](_0x127d36=>!0x1===this['_isInDeletionRange'](_0x127d36,_0x202411['item']));return{..._0x1d6272,'results':_0x4668ac};},_0x49cc8a);}['_isInDeletionRange'](_0x1cecaa,_0x5abe87){const _0x39c3bd=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5abe87,_0x1cecaa['start']),this['editor']['model']['createPositionAt'](_0x5abe87,_0x1cecaa['end']));for(const _0xb37e42 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x39c3bd['getIntersection'](_0xb37e42['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0x493265{['afterInit'](){const _0x6bd549=this['editor']['locale'],_0x4e189a=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2e830f,commandName:_0x5c329e}of eo)this['editor']['plugins']['has'](_0x2e830f)&&(_0x4e189a['enableDefaultAttributesIntegration'](_0x5c329e),_0x4e189a['registerInlineAttribute'](_0x5c329e));_0x4e189a['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x6bd549,'FORMAT_FONT_SIZE')),_0x4e189a['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x6bd549,'FORMAT_FONT_FAMILY')),_0x4e189a['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x6bd549,'FORMAT_FONT_COLOR')),_0x4e189a['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x6bd549,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x91aa07=this['editor'],_0x30647f=_0x91aa07['locale'];_0x91aa07['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a921b=>{const _0x471927=_0x30647f['t'];if('formatInline'!=_0x4a921b['type'])return;const {data:_0x1b0a71}=_0x4a921b;if(null!=_0x1b0a71){if('fontSize'==_0x1b0a71['commandName']){const _0x44c55d=_0x1b0a71['commandParams'][0x0]['value'];if(_0x44c55d){const _0xdcc10a=_0x471927(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1ea2c3=>_0x1ea2c3['model']==_0x44c55d)['title'])['toLowerCase']();return{'type':'format','content':o(_0x30647f,'*Set\x20font\x20size:*\x20%0',_0xdcc10a)};}return{'type':'format','content':o(_0x30647f,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x1b0a71['commandName']){const _0x196bc9=_0x1b0a71['commandParams'][0x0]['value'];return _0x196bc9?{'type':'format','content':o(_0x30647f,'*Set\x20font\x20family:*\x20%0',_0x196bc9)}:{'type':'format','content':o(_0x30647f,'*Reset\x20font\x20family*')};}if('fontColor'==_0x1b0a71['commandName']){const _0x95f47=_0x1b0a71['commandParams'][0x0]['value'];if(_0x95f47){const _0x3d08b9=_0x38cbdb(this['editor']['config']['get']('fontColor.colors'))['find'](_0x2e1442=>_0x2e1442['model']==_0x95f47);let _0x4ffab2=_0x95f47,_0x53e4d3='';return _0x3d08b9&&(_0x4ffab2=_0x3d08b9['label'],_0x53e4d3=_0x471927(_0x4ffab2)['toLowerCase']()),{'type':'format','content':o(_0x30647f,'*Set\x20font\x20color:*\x20%0',_0x53e4d3)['trim'](),'color':{'value':_0x95f47,'title':_0x53e4d3||_0x4ffab2}};}return{'type':'format','content':o(_0x30647f,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x1b0a71['commandName']){const _0x4cf46d=_0x1b0a71['commandParams'][0x0]['value'];if(_0x4cf46d){const _0x274b6e=_0x38cbdb(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x91ad27=>_0x91ad27['model']==_0x4cf46d);let _0x2e16b3=_0x4cf46d,_0x2c7660='';return _0x274b6e&&(_0x2e16b3=_0x274b6e['label'],_0x2c7660=_0x471927(_0x2e16b3)['toLowerCase']()),{'type':'format','content':o(_0x30647f,'*Set\x20font\x20background\x20color:*\x20%0',_0x2c7660)['trim'](),'color':{'value':_0x4cf46d,'title':_0x2c7660||_0x2e16b3}};}return{'type':'format','content':o(_0x30647f,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0x493265{['afterInit'](){const _0x4a2ec5=this['editor'],_0x327584=_0x4a2ec5['plugins']['get']('TrackChangesEditing'),_0x4bc8f1=_0x4a2ec5['commands']['get']('copyFormat'),_0x4805b0=_0x4a2ec5['commands']['get']('pasteFormat');_0x4bc8f1&&_0x4805b0&&(_0x327584['enableDefaultAttributesIntegration']('pasteFormat'),_0x327584['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x5adaa2=this['editor'],_0x4976f=_0x5adaa2['locale'];_0x5adaa2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c48ed=>{if('formatBlock'!=_0x5c48ed['type']&&'formatInline'!=_0x5c48ed['type'])return;const {data:_0x5ad2d9}=_0x5c48ed;if(_0x5ad2d9&&'pasteFormat'===_0x5ad2d9['commandName']){const _0x11028a=[],_0x4f382a=_0x5ad2d9['commandParams'][0x0];for(const [_0x14c443,_0x4a41a1]of Object['entries'](_0x4f382a))_0x11028a['push'](ro(_0x5adaa2,_0x14c443,_0x4a41a1));return _0x11028a['length']?{'type':'format','content':o(_0x4976f,'*Set\x20format\x20to:*\x20%0',_0x11028a['join'](',\x20'))}:{'type':'format','content':o(_0x4976f,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x5aa497,_0xf94e03,_0x15af68){const _0x46dd83=_0x5aa497['locale']['t'],_0x5e7c3f=_0xf94e03['split'](/(?=[A-Z])/)['join']('\x20'),_0x1e47f9=_0x46dd83(_0x5e7c3f['charAt'](0x0)['toUpperCase']()+_0x5e7c3f['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x15af68)return _0x1e47f9;if('fontColor'===_0xf94e03||'fontBackgroundColor'===_0xf94e03){const _0x49c654=_0x38cbdb(_0x5aa497['config']['get']('fontColor.colors'))['find'](_0x253045=>_0x253045['model']==_0x15af68);return _0x1e47f9+'\x20('+(_0x49c654?_0x46dd83(_0x49c654['label'])['toLowerCase']():_0x15af68)+')';}if('fontSize'===_0xf94e03&&isNaN(parseFloat(_0x15af68))){const _0x560a8d=_0x5aa497['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x5aa497['config']['get']('fontSize.options'))['find'](_0x4528eb=>_0x4528eb['model']==_0x15af68);return _0x1e47f9+'\x20('+(_0x560a8d?_0x46dd83(_0x560a8d['title'])['toLowerCase']():_0x15af68)+')';}return _0x1e47f9+'\x20('+_0x15af68+')';}class Z extends _0x493265{['_headingOptions'];['afterInit'](){const _0x350e45=this['editor'];if(!_0x350e45['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x350e45['config']['get']('heading.options');const _0x403735=_0x350e45['locale'],_0x316164=_0x350e45['plugins']['get']('TrackChangesEditing');_0x316164['enableDefaultAttributesIntegration']('heading');for(const _0x5899aa of this['_headingOptions'])'paragraph'!=_0x5899aa['model']&&_0x316164['descriptionFactory']['registerElementLabel'](_0x5899aa['model'],_0x1f19bd=>{const _0xfbea74=this['_getHeadingLevel'](_0x5899aa['model']);return null!==_0xfbea74?_0x3a64b0(_0x1f19bd,_0xfbea74):_0x11057b(_0x1f19bd,_0x5899aa['title']);});function _0x3a64b0(_0x13d858,_0x2b1e39){return o(_0x403735,'ELEMENT_HEADING',[_0x13d858,_0x2b1e39]);}function _0x11057b(_0x1de97b,_0x28ee6c){return o(_0x403735,'ELEMENT_HEADING_CUSTOM',[_0x1de97b,_0x28ee6c]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xdac57=this['editor'],_0x53d6fd=_0xdac57['locale'];function _0x12f2f1(_0x4e9c7f,_0x215afb){return o(_0x53d6fd,'ELEMENT_HEADING_CUSTOM',[_0x4e9c7f,_0x215afb]);}_0xdac57['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x10d39a=>{if('formatBlock'!=_0x10d39a['type'])return;const {data:_0x5d53b6}=_0x10d39a;if(_0x5d53b6&&'heading'==_0x5d53b6['commandName']){const _0x48184f=_0x5d53b6['commandParams'][0x0]['value'],_0x5cbfe5=this['_getHeadingLevel'](_0x48184f);if(null!==_0x5cbfe5)return{'type':'format','content':o(_0x53d6fd,'*Change\x20to:*\x20%0',(_0x3fc6e5=0x1,_0x5d47f2=_0x5cbfe5,o(_0x53d6fd,'ELEMENT_HEADING',[_0x3fc6e5,_0x5d47f2])))};const _0x4d4d63=this['_headingOptions']['find'](_0x4273ff=>_0x4273ff['model']===_0x48184f)['title'];return{'type':'format','content':o(_0x53d6fd,'*Change\x20to:*\x20%0',_0x12f2f1(0x1,_0x4d4d63))};}var _0x3fc6e5,_0x5d47f2;});}['_getHeadingLevel'](_0x2514f4){const _0x29e6f2=_0x2514f4['match'](/^heading(\d+)/);if(_0x29e6f2)return _0x29e6f2[0x1];const _0x324590=this['_headingOptions']?.['find'](_0x546fc5=>_0x546fc5['model']==_0x2514f4);if(_0x324590&&_0x324590['view']){const _0xc586e=_0x324590['view'],_0xbbab8d=(_0xc586e['name']??_0xc586e)['match'](/^h(\d+)/);if(_0xbbab8d)return _0xbbab8d[0x1];}return null;}}class tt extends _0x493265{['afterInit'](){const _0x17c518=this['editor'];if(!_0x17c518['plugins']['has']('HighlightEditing'))return;const _0x470506=_0x17c518['plugins']['get']('TrackChangesEditing'),_0x2ee531=_0x17c518['locale'];_0x470506['enableDefaultAttributesIntegration']('highlight'),_0x470506['registerInlineAttribute']('highlight'),_0x470506['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x2ee531,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x36b91a=this['editor'],_0x3dcfec=_0x36b91a['locale'];_0x36b91a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1284df=>{if('formatInline'!=_0x1284df['type'])return;const {data:_0x1dda30}=_0x1284df;if(_0x1dda30&&'highlight'==_0x1dda30['commandName']){const _0xd8b9bb=_0x3dcfec['t'],_0x8d2734=_0x1dda30['commandParams'][0x0]['value'];if(_0x8d2734){const _0xafe26a=_0x36b91a['config']['get']('highlight.options')['find'](_0x2ceacc=>_0x2ceacc['model']==_0x8d2734),_0x165c1b=_0xd8b9bb(_0xafe26a['title'])['toLowerCase']();return{'type':'format','content':o(_0x3dcfec,'*Set\x20highlight:*\x20%0',_0x165c1b),'color':{'value':_0xafe26a['color'],'title':_0xafe26a['title']}};}return{'type':'format','content':o(_0x3dcfec,'*Remove\x20highlight*',o(_0x3dcfec,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x493265{['afterInit'](){const _0x148dea=this['editor'];if(!_0x148dea['plugins']['has']('HorizontalLineEditing'))return;_0x148dea['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3e30a6=_0x148dea['plugins']['get']('TrackChangesEditing'),_0x3097a5=_0x148dea['locale'];_0x3e30a6['descriptionFactory']['registerElementLabel']('horizontalLine',_0x1a586b=>o(_0x3097a5,'ELEMENT_HORIZONTAL_LINE',_0x1a586b)),_0x148dea['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x561c06,{writer:_0x110cf6,options:_0x11d12a})=>{if(!_0x11d12a['showSuggestionHighlights'])return null;const _0xfcba21=_0x110cf6['createContainerElement']('div'),_0x176c46=_0x110cf6['createEmptyElement']('hr');return _0x110cf6['addClass']('ck-horizontal-line',_0xfcba21),_0x110cf6['insert'](_0x110cf6['createPositionAt'](_0xfcba21,0x0),_0x176c46),_0xfcba21;},'converterPriority':'high'});}}class nt extends _0x493265{['afterInit'](){const _0x186d66=this['editor'];if(!_0x186d66['plugins']['has']('HtmlEmbed'))return;const _0x36ffa1=_0x186d66['plugins']['get']('TrackChangesEditing'),_0x43e979=_0x186d66['locale'];_0x36ffa1['descriptionFactory']['registerElementLabel']('rawHtml',_0x1c5dcb=>o(_0x43e979,'ELEMENT_HTML_EMBED',_0x1c5dcb)),_0x36ffa1['enableDefaultAttributesIntegration']('htmlEmbed'),_0x36ffa1['registerBlockAttribute']('value'),_0x36ffa1['descriptionFactory']['registerDescriptionCallback'](_0x22ca01=>{if('attribute'!=_0x22ca01['type'])return;const {data:_0x2d9a05}=_0x22ca01;if(_0x2d9a05&&'value'==_0x2d9a05['key']&&_0x22ca01['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x43ed4b=o(_0x43e979,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x43e979,'*Change\x20%0\x20content*',_0x43ed4b)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x623f15=this['editor'],_0x4fa7ac=_0x623f15['locale'];_0x623f15['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x324208=>{if('formatBlock'!=_0x324208['type'])return;const {data:_0x1e97eb}=_0x324208;if(_0x1e97eb&&'htmlEmbed'==_0x1e97eb['commandName']){const _0x4866fa=o(_0x4fa7ac,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4fa7ac,'*Change\x20%0\x20content*',_0x4866fa)};}});}}class et extends _0x493265{['afterInit'](){const _0x349e64=this['editor'];if(!_0x349e64['plugins']['has']('ImageEditing'))return;const _0x277e3a=_0x349e64['plugins']['get']('TrackChangesEditing'),_0x3f3ff6=_0x349e64['plugins']['get']('ImageUtils'),_0x565012=_0x349e64['locale'];_0x277e3a['enableCommand']('insertImage'),_0x277e3a['descriptionFactory']['registerElementLabel']('imageBlock',_0x25527a=>o(_0x565012,'ELEMENT_IMAGE',_0x25527a)),_0x277e3a['descriptionFactory']['registerElementLabel']('imageInline',_0xbc07d2=>o(_0x565012,'ELEMENT_INLINE_IMAGE',_0xbc07d2)),_0x277e3a['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x565012,'ELEMENT_CAPTION')),_0x349e64['plugins']['has']('ImageUploadEditing')&&_0x277e3a['enableCommand']('uploadImage'),_0x349e64['plugins']['has']('ImageBlockEditing')&&_0x349e64['plugins']['has']('ImageInlineEditing')&&(_0x277e3a['enableCommand']('imageTypeInline',(_0x38b4b6,_0x2123b3)=>{const _0x20f102=_0x3f3ff6['getClosestSelectedImageElement'](_0x349e64['model']['document']['selection']);_0x349e64['model']['change'](()=>{_0x277e3a['markBlockFormat'](_0x20f102,{'commandName':'imageTypeInline','commandParams':[_0x2123b3]},[],'convertBlockImageToInline');});}),_0x277e3a['enableCommand']('imageTypeBlock',(_0x4f2061,_0x5a39ce)=>{_0x349e64['model']['change'](_0x36c59d=>{let _0x3b0ca9=_0x3f3ff6['getClosestSelectedImageElement'](_0x349e64['model']['document']['selection']),_0x4063e7=_0x36c59d['createRangeOn'](_0x3b0ca9);const _0x5364e3=_0x30236a['fromPosition'](_0x4063e7['start'],'toPrevious'),_0x51d8a2=_0x30236a['fromPosition'](_0x4063e7['end'],'toNext');_0x277e3a['forceDefaultExecution'](()=>_0x4f2061(_0x5a39ce)),_0x3b0ca9=_0x3f3ff6['getClosestSelectedImageElement'](_0x349e64['model']['document']['selection']),_0x4063e7=_0x36c59d['createRangeOn'](_0x3b0ca9);const _0x1475b6=_0x36c59d['createRange'](_0x5364e3,_0x51d8a2);_0x5364e3['detach'](),_0x51d8a2['detach'](),_0x277e3a['markBlockFormat'](_0x3b0ca9,{'commandName':'imageTypeInline','commandParams':[_0x5a39ce]},[],'convertInlineImageToBlock'),_0x1475b6['start']['isBefore'](_0x4063e7['start'])&&_0x277e3a['markInsertion'](_0x36c59d['createRange'](_0x1475b6['start'],_0x4063e7['start']),'convertInlineImageToBlock'),_0x4063e7['end']['isBefore'](_0x1475b6['end'])&&_0x277e3a['markInsertion'](_0x36c59d['createRange'](_0x4063e7['end'],_0x1475b6['end']),'convertInlineImageToBlock');});}),_0x277e3a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x277e3a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x277e3a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x277e3a['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x277e3a['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x277e3a['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x2d8a1a])=>{const _0x5594b0=_0x277e3a['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0xc2ae75=_0x2d8a1a['start'],_0x54accf=_0x2d8a1a['end'];const _0x2a6eaa=_0x349e64['model']['schema']['getNearestSelectionRange'](_0xc2ae75,'backward'),_0x4870bb=_0x349e64['model']['schema']['getNearestSelectionRange'](_0x54accf,'forward');_0x2a6eaa['isCollapsed']&&(_0xc2ae75=_0x2a6eaa['start']),_0x4870bb['isCollapsed']&&(_0x54accf=_0x4870bb['end']),_0x5594b0([_0x349e64['model']['createRange'](_0xc2ae75,_0x54accf)]);}),_0x277e3a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x1030e8),_0x277e3a['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x1030e8)),_0x349e64['plugins']['has']('ImageCaptionEditing')&&(_0x277e3a['enableCommand']('toggleImageCaption',(_0x55ff3b,_0x2b2849)=>{const _0x4d1e87=_0x349e64['plugins']['get']('ImageCaptionUtils');let _0x2cdaee=_0x3f3ff6['getClosestSelectedImageElement'](_0x349e64['model']['document']['selection']),_0x482794=_0x4d1e87['getCaptionFromImageModelElement'](_0x2cdaee);_0x349e64['model']['change'](()=>{if(_0x482794)return void _0x277e3a['markDeletion'](_0x349e64['model']['createRangeOn'](_0x482794));const _0x105727=_0x3f3ff6['isBlockImage'](_0x2cdaee);_0x55ff3b(_0x2b2849),_0x2cdaee=_0x3f3ff6['getClosestSelectedImageElement'](_0x349e64['model']['document']['selection']),_0x482794=_0x4d1e87['getCaptionFromImageModelElement'](_0x2cdaee),_0x277e3a['markInsertion'](_0x349e64['model']['createRangeOn'](_0x482794),_0x105727?null:'imageCaption');});}),_0x277e3a['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x1030e8));const _0x540e1d=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4fbf5e(_0x2b41b9,_0x4f1b0b){const _0x3168b1=_0x540e1d['findIndex'](({type:_0x3b8dd0,subType:_0x1495a9})=>_0x2b41b9['type']==_0x3b8dd0&&_0x2b41b9['subType']==_0x1495a9),_0x3d19bc=_0x540e1d['findIndex'](({type:_0x5b12ea,subType:_0x1ec53a})=>_0x4f1b0b['type']==_0x5b12ea&&_0x4f1b0b['subType']==_0x1ec53a);if(_0x3168b1<0x0||_0x3d19bc<0x0)return!0x1;const _0x9e0e02=_0x2b41b9['getFirstRange'](),_0x428f7b=_0x4f1b0b['getFirstRange']();if((0x0==_0x3168b1||0x1==_0x3168b1)&&0x2==_0x3d19bc&&_0x9e0e02['isIntersecting'](_0x428f7b))return!0x0;if(0x2==_0x3168b1&&0x3==_0x3d19bc){const _0x4cc37a=_0x277e3a['_findSuggestions'](_0x9e0e02,'insertion')['filter'](({suggestion:_0x106b27,meta:_0x3f240e})=>_0x3f240e['isOwn']&&'convertInlineImageToBlock'==_0x106b27['subType']);if(_0x4cc37a['length']>0x1&&_0x428f7b['end']['isEqual'](_0x9e0e02['start']))return!0x0;if(0x1==_0x4cc37a['length']&&(_0x9e0e02['start']['isEqual'](_0x428f7b['end'])||_0x9e0e02['end']['isEqual'](_0x428f7b['start'])))return!0x0;}if(0x3==_0x3168b1&&0x3==_0x3d19bc&&_0x9e0e02['start']['isBefore'](_0x428f7b['start'])){const _0x4ce5fe=_0x9e0e02['end']['nodeAfter'],_0x4f19bb=_0x428f7b['start']['nodeBefore'];return _0x3f3ff6['isBlockImage'](_0x4ce5fe)&&_0x4ce5fe===_0x4f19bb;}return!0x1;}function _0x1030e8(_0x45567e,_0x6dcd77){return _0x4fbf5e(_0x45567e,_0x6dcd77)?[_0x45567e,_0x6dcd77]:_0x4fbf5e(_0x6dcd77,_0x45567e)?[_0x6dcd77,_0x45567e]:null;}_0x349e64['plugins']['has']('ImageResize')&&(_0x277e3a['enableDefaultAttributesIntegration']('resizeImage'),_0x277e3a['registerBlockAttribute']('resizedWidth'),_0x277e3a['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x565012,'FORMAT_IMAGE_SIZE'))),_0x349e64['plugins']['has']('ImageTextAlternativeEditing')&&(_0x277e3a['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x277e3a['registerBlockAttribute']('alt')),_0x349e64['plugins']['has']('PictureEditing')&&(_0x277e3a['registerBlockAttribute']('sources'),_0x277e3a['descriptionFactory']['registerDescriptionCallback'](_0x27e905=>{if('attribute'!=_0x27e905['type'])return;const {data:_0x2e7df0}=_0x27e905;return _0x2e7df0&&'sources'==_0x2e7df0['key']?{'type':'format','content':''}:void 0x0;})),_0x349e64['plugins']['has']('ImageSizeAttributes')&&(_0x277e3a['registerBlockAttribute']('width'),_0x277e3a['registerBlockAttribute']('height'),_0x277e3a['descriptionFactory']['registerDescriptionCallback'](_0x1d88c5=>{if('attribute'!=_0x1d88c5['type'])return;const {data:_0x148896}=_0x1d88c5;return!_0x148896||'width'!=_0x148896['key']&&'height'!=_0x148896['key']?void 0x0:{'type':'format','content':''};})),_0x277e3a['descriptionFactory']['registerDescriptionCallback'](_0x4db6df=>{if(!!_0x540e1d['find'](({type:_0x4f0623,subType:_0x3a7589})=>_0x4db6df['type']==_0x4f0623&&_0x4db6df['subType']==_0x3a7589))return _0x4db6df['previous']?{}:void 0x0;}),_0x277e3a['descriptionFactory']['registerDescriptionCallback'](_0x1478ad=>{if('insertion'==_0x1478ad['type']||'deletion'==_0x1478ad['type']){const _0x54e556=_0x1478ad['getContainedElement']();if(_0x54e556&&_0x54e556['is']('element','caption'))return{'type':'insertion'==_0x1478ad['type']?'addObject':'removeObject','element':_0x54e556,'quantity':0x1};}}),_0x277e3a['descriptionFactory']['registerDescriptionCallback'](_0x2eef63=>'formatBlock'==_0x2eef63['type']&&'convertInlineImageToBlock'==_0x2eef63['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x2eef63['type']&&'convertBlockImageToInline'==_0x2eef63['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x277e3a['descriptionFactory']['registerDescriptionCallback'](_0x4e9255=>{if('attribute'!=_0x4e9255['type'])return;const {data:_0x244732}=_0x4e9255;if(!_0x244732||'alt'!=_0x244732['key'])return;const _0xea3575=_0x244732['newValue'];return _0xea3575?{'type':'format','content':o(_0x565012,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xea3575+'\x22')}:{'type':'format','content':o(_0x565012,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x458248=this['editor'],_0xc65273=_0x458248['locale'];_0x458248['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ba328=>{if('formatBlock'!=_0x4ba328['type']&&'formatInline'!=_0x4ba328['type'])return;const {data:_0x1f54e0}=_0x4ba328;if(_0x1f54e0){if('imageTextAlternative'==_0x1f54e0['commandName']){const _0x2bf7fe=_0x1f54e0['commandParams'][0x0]['newValue'];return _0x2bf7fe?{'type':'format','content':o(_0xc65273,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2bf7fe+'\x22')}:{'type':'format','content':o(_0xc65273,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1f54e0['commandName']){const _0x46af0b=_0x1f54e0['commandParams'][0x0]['width'];return _0x46af0b?{'type':'format','content':o(_0xc65273,'*Set\x20image\x20width:*\x20%0',_0x46af0b)}:{'type':'format','content':o(_0xc65273,'*Reset\x20image\x20width*')};}}});}}class st extends _0x493265{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x49aae2=this['editor']['locale'],_0x32d17b=this['editor']['plugins']['get']('TrackChangesEditing');_0x32d17b['enableDefaultAttributesIntegration']('replaceImageSource'),_0x32d17b['registerBlockAttribute']('src'),_0x32d17b['descriptionFactory']['registerDescriptionCallback'](_0x1e295f=>{if('attribute'!=_0x1e295f['type'])return;const {data:_0x463c30}=_0x1e295f;return _0x463c30&&'src'==_0x463c30['key']?_0x463c30['newValue']&&_0x463c30['oldValue']?{'type':'format','content':o(_0x49aae2,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x189f8e=this['editor']['plugins']['get']('TrackChangesEditing');_0x189f8e['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x189f8e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x189f8e['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x189f8e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x22e92b=this['editor'],_0x1aca3a=_0x22e92b['locale'];_0x22e92b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19bc78=>{if('formatBlock'!=_0x19bc78['type']&&'formatInline'!=_0x19bc78['type'])return;const {data:_0x314658}=_0x19bc78;if(!_0x314658||'replaceImageSource'!=_0x314658['commandName'])return;return{'type':'format','content':o(_0x1aca3a,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0x493265{['afterInit'](){const _0x18ec1d=this['editor'];if(!_0x18ec1d['plugins']['has']('ImageStyleEditing'))return;const _0x33851a=_0x18ec1d['plugins']['get']('TrackChangesEditing'),_0x34cb17=_0x18ec1d['plugins']['get']('ImageUtils'),_0x42769a={};_0x33851a['enableCommand']('imageStyle',(_0x5f2ec7,_0x7d155e)=>{const _0x429d50=_0x18ec1d['plugins']['get']('Users')['me'],_0x4380d9=_0x18ec1d['commands']['get']('imageStyle');let _0x4f34a3=_0x34cb17['getClosestSelectedImageElement'](_0x18ec1d['model']['document']['selection']),_0x5a0d54=_0x18ec1d['model']['createRangeOn'](_0x4f34a3),_0x57340c=_0x4380d9['value'];if(_0x57340c==_0x7d155e['value'])return;const _0x3a8d73={'commandName':'imageStyle','commandParams':[_0x7d155e],'formatGroupId':_0x3786a7()};_0x18ec1d['model']['change'](()=>{if(_0x33851a['getSuggestions']()['filter'](_0x496029=>_0x496029['isInContent']&&_0x429d50==_0x496029['author']&&('formatBlock'==_0x496029['type']||'formatInline'==_0x496029['type'])&&('imageStylePreApply'==_0x496029['subType']||'imageStylePostApply'==_0x496029['subType'])&&_0x496029['getFirstRange']()['isEqual'](_0x5a0d54))['forEach'](_0x56215a=>_0x33851a['discardSuggestion'](_0x56215a['head'])),_0x4f34a3=_0x34cb17['getClosestSelectedImageElement'](_0x18ec1d['model']['document']['selection']),_0x5a0d54=_0x18ec1d['model']['createRangeOn'](_0x4f34a3),_0x4380d9['refresh'](),_0x18ec1d['commands']['get']('imageTypeInline')['refresh'](),_0x18ec1d['commands']['get']('imageTypeBlock')['refresh'](),_0x57340c=_0x4380d9['value'],_0x57340c!=_0x7d155e['value'])return _0x34cb17['isInlineImage'](_0x4f34a3)&&_0x4380d9['shouldConvertImageType'](_0x7d155e['value'],_0x4f34a3)?(_0x5f2ec7({..._0x7d155e,'setImageSizes':!0x1}),_0x4f34a3=_0x34cb17['getClosestSelectedImageElement'](_0x18ec1d['model']['document']['selection']),void _0x33851a['markBlockFormat'](_0x4f34a3,{..._0x3a8d73,'commandReversedParams':[{'value':_0x57340c||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x34cb17['isBlockImage'](_0x4f34a3)?_0x33851a['markBlockFormat'](_0x4f34a3,_0x3a8d73,[],'imageStylePostApply'):_0x33851a['markInlineFormat'](_0x5a0d54,_0x3a8d73,'imageStylePostApply'));});});for(const _0x198dd9 of _0x18ec1d['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x42769a[_0x198dd9['name']]=_0x198dd9['title']['toLowerCase']();_0x33851a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x33851a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x33851a['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x33851a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x337b8b])=>{_0x34cb17['setImageNaturalSizeAttributes'](_0x337b8b['getContainedElement']());}),_0x33851a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2b428a,_0x4a8c7b)=>{_0x33851a['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2b428a,{'commandName':_0x4a8c7b['commandName'],'commandParams':_0x4a8c7b['commandReversedParams']});}),_0x33851a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x14182f,_0x42939a){if(_0x4ca9be(_0x14182f,_0x42939a))return[_0x14182f,_0x42939a];if(_0x4ca9be(_0x42939a,_0x14182f))return[_0x42939a,_0x14182f];return null;});const _0x201ce1=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4ca9be(_0x235e66,_0x3021ab){const _0xc77394=_0x201ce1['findIndex'](({type:_0x73d884,subType:_0x3e3faa})=>_0x235e66['type']==_0x73d884&&_0x235e66['subType']==_0x3e3faa),_0x408709=_0x201ce1['findIndex'](({type:_0x150c4f,subType:_0x3ac614})=>_0x3021ab['type']==_0x150c4f&&_0x3021ab['subType']==_0x3ac614);if(_0xc77394<0x0||_0x408709<0x0)return!0x1;const _0x4196c5=_0x235e66['getFirstRange'](),_0x3d4afc=_0x3021ab['getFirstRange']();if((0x0==_0xc77394||0x1==_0xc77394)&&0x2==_0x408709&&_0x4196c5['isIntersecting'](_0x3d4afc))return!0x0;if(0x2==_0xc77394&&0x3==_0x408709){const _0x25835b=_0x33851a['_findSuggestions'](_0x4196c5,'insertion')['filter'](({suggestion:_0x554cd2,meta:_0x1229be})=>_0x1229be['isOwn']&&'convertInlineImageToBlock'==_0x554cd2['subType']);if(_0x25835b['length']>0x1&&_0x3d4afc['end']['isEqual'](_0x4196c5['start']))return!0x0;if(0x1==_0x25835b['length']&&(_0x4196c5['start']['isEqual'](_0x3d4afc['end'])||_0x4196c5['end']['isEqual'](_0x3d4afc['start'])))return!0x0;}if(0x3==_0xc77394&&0x3==_0x408709&&_0x4196c5['start']['isBefore'](_0x3d4afc['start'])){const _0x6c1599=_0x4196c5['end']['nodeAfter'],_0x19d89a=_0x3d4afc['start']['nodeBefore'];return _0x34cb17['isBlockImage'](_0x6c1599)&&_0x6c1599===_0x19d89a;}return!0x1;}_0x18ec1d['model']['document']['registerPostFixer'](()=>{let _0x111d70=!0x1;const _0x2d4770=Array['from'](_0x18ec1d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5750c2,data:_0x28c6b0}of _0x2d4770){const {group:_0x5c4c46,type:_0x33e083,subType:_0x283945,id:_0x2b79f1}=_0x33851a['_splitMarkerName'](_0x5750c2);if('suggestion'==_0x5c4c46&&_0x33851a['hasSuggestion'](_0x2b79f1)){if('formatBlock'==_0x33e083&&('imageStylePreApply'==_0x283945||'imageStylePostApply'==_0x283945)){const _0x1acf02=_0x33851a['getSuggestion'](_0x2b79f1);if(_0x28c6b0['newRange']){const _0x602828=_0x1acf02['getFirstRange']()['getContainedElement']();if(_0x34cb17['isBlockImage'](_0x602828))continue;_0x33851a['discardSuggestion'](_0x1acf02),_0x111d70=!0x0;}}if('insertion'==_0x33e083&&'imageCaption'==_0x283945&&!_0x28c6b0['newRange']){const _0x1aaa42=_0x33851a['getSuggestion'](_0x2b79f1);_0x1aaa42['next']&&_0x1aaa42['next']['isInContent']&&(_0x33851a['discardSuggestion'](_0x1aaa42['next']),_0x111d70=!0x0);}}}return _0x111d70;}),this['_registerLegacyDescription'](_0x42769a);}['_registerLegacyDescription'](_0x5a653f){const _0x438ade=this['editor'],_0x137a92=_0x438ade['locale'];_0x438ade['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x546b0d=>{if('formatBlock'!=_0x546b0d['type']&&'formatInline'!=_0x546b0d['type'])return;const {data:_0x2188bc}=_0x546b0d;if(!_0x2188bc||'imageStyle'!=_0x2188bc['commandName'])return;const _0x163362=_0x2188bc['commandParams'][0x0]['value'];return _0x4f3856('side'===_0x163362?o(_0x137a92,'FORMAT_SIDE_IMAGE'):_0x5a653f[_0x163362]||_0x163362);function _0x4f3856(_0x4a344a){return{'type':'format','content':o(_0x137a92,'*Format:*\x20%0',_0x4a344a)};}});}}class rt extends _0x493265{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x5c5631){super(_0x5c5631),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x3c7bb3=this['editor'],_0x4df607=_0x3c7bb3['commands']['get']('importWord'),_0x2c52e0=_0x3c7bb3['commands']['get']('trackChanges');_0x4df607&&(_0x4df607['on']('execute',(_0x31ea14,[,_0x53c2c8])=>{this['_trackChangesValueDuringImport']=_0x2c52e0['value'],_0x53c2c8['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4df607,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4df607,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2c52e0['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x3c7bb3['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x55548d,_0x57be6b){const {suggestions:_0x52a44b}=_0x57be6b,_0x2ca2ea=this['editor']['commands']['get']('trackChanges'),_0x27d06f=_0x2ca2ea['value'];this['_trackChangesValueDuringImport']!==_0x27d06f&&(_0x2ca2ea['execute'](),this['_trackChangesExecuted']=!0x0),_0x52a44b&&_0x52a44b['forEach'](({id:_0x75a986,type:_0x38731a,author:_0x1401fe,created_at:_0x5ca8d6})=>{const _0x95a44e={'id':_0x75a986,'type':_0x38731a,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1401fe,'createdAt':_0x5ca8d6?new Date(_0x5ca8d6):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x95a44e);});}}class at extends _0x493265{['afterInit'](){const _0x2799c7=this['editor'],_0x165edf=_0x2799c7['plugins']['get']('TrackChangesEditing');if(_0x2799c7['plugins']['has']('IndentEditing')&&(_0x165edf['enableCommand']('indent'),_0x165edf['enableCommand']('outdent')),_0x2799c7['plugins']['has']('IndentBlock')){for(const _0x162d7a of['indentBlock','outdentBlock'])_0x165edf['enableDefaultAttributesIntegration'](_0x162d7a);}const _0x1802ae=_0x2799c7['locale'];_0x165edf['registerBlockAttribute']('blockIndent'),_0x165edf['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x1802ae,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f924f=this['editor'],_0x3c606e=_0x1f924f['locale'],_0x491680=_0x1f924f['plugins']['get']('TrackChangesEditing');_0x491680['descriptionFactory']['registerDescriptionCallback'](_0x2f81df=>{if('formatBlock'!=_0x2f81df['type'])return;const {data:_0x45f6e0}=_0x2f81df;if(!_0x45f6e0)return;if('indentBlock'!=_0x45f6e0['commandName']&&'outdentBlock'!=_0x45f6e0['commandName'])return;const _0xc9dc9d=_0x2f81df['getItems']()[0x0],_0x20473e=_0x491680['descriptionFactory']['getItemLabel'](_0xc9dc9d);return'indentBlock'==_0x45f6e0['commandName']?{'type':'format','content':o(_0x3c606e,'*Indent:*\x20%0',_0x20473e)}:'outdentBlock'==_0x45f6e0['commandName']?{'type':'format','content':o(_0x3c606e,'*Outdent:*\x20%0',_0x20473e)}:void 0x0;});}}class ct extends _0x493265{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0x493265{['afterInit'](){const _0x53635b=this['editor'];if(!_0x53635b['plugins']['has']('LinkEditing'))return;const _0x5e0f8d=_0x53635b['plugins']['get']('TrackChangesEditing'),_0x4a1853=_0x53635b['commands']['get']('link');_0x5e0f8d['enableDefaultAttributesIntegration']('link'),_0x5e0f8d['enableDefaultAttributesIntegration']('unlink'),_0x5e0f8d['registerInlineAttribute']('linkHref');for(const _0x3e0989 of _0x4a1853['manualDecorators'])_0x5e0f8d['registerInlineAttribute'](_0x3e0989['id']),_0x5e0f8d['descriptionFactory']['registerAttributeLabel'](_0x3e0989['id'],'link\x20('+_0x3e0989['label']['toLowerCase']()+')');_0x5e0f8d['descriptionFactory']['registerDescriptionCallback'](_0x17d61f=>{if('attribute'!=_0x17d61f['type'])return;const {data:_0xac9238}=_0x17d61f;if(!_0xac9238||'linkHref'!=_0xac9238['key'])return;const _0x14c949=_0xac9238['newValue'],_0x43198e=_0x53635b['locale'];return{'type':'format','content':null==_0x14c949?o(_0x43198e,'*Remove\x20link*'):o(_0x43198e,'*Set\x20link:*\x20%0','\x22'+_0x14c949+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3ec7bd=this['editor'],_0xfba3cb=_0x3ec7bd['locale'];_0x3ec7bd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8d97a6=>{if('formatInline'!=_0x8d97a6['type'])return;const {data:_0x475d44}=_0x8d97a6;if(_0x475d44){if('link'==_0x475d44['commandName']){const _0x3f7900=_0x475d44['commandParams'][0x0];return{'type':'format','content':o(_0xfba3cb,'*Set\x20link:*\x20%0','\x22'+_0x3f7900+'\x22')};}return'unlink'==_0x475d44['commandName']?{'type':'format','content':o(_0xfba3cb,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x493265{['afterInit'](){const _0x1699d2=this['editor'],_0x37d59b=_0x1699d2['locale'];if(!_0x1699d2['plugins']['has']('LegacyListEditing'))return;const _0x1afbcc=_0x1699d2['plugins']['get']('TrackChangesEditing'),_0x20817c=_0x1699d2['plugins']['has']('LegacyTodoListEditing');function _0x15233f(_0x51364c){return()=>{const _0x5a5b57=_0x1699d2['model']['document']['selection'],_0x5b73f9=_0x1699d2['commands']['get'](_0x51364c);if(_0x5b73f9['value'])return void _0x1699d2['execute']('paragraph',{});const _0x11c8ad=_0x51364c['slice'](0x0,-0x4),_0x254ab8=function(_0x5ca4df,_0x39121f,_0x5f1db4){let _0x1ddfe1=Array['from'](_0x5ca4df)['filter'](_0x132de5=>function(_0x2876f7,_0x541dac){return _0x541dac['checkChild'](_0x2876f7['parent'],'listItem')&&!_0x541dac['isObject'](_0x2876f7);}(_0x132de5,_0x5f1db4));_0x1ddfe1=_0x1ddfe1['filter'](_0x21bf88=>!_0x21bf88['is']('element','listItem')||_0x21bf88['getAttribute']('listType')!=_0x39121f);const _0x2734ac=new Set();for(const _0x392ef8 of _0x1ddfe1)_0x392ef8['is']('element','listItem')?_0x2734ac['add'](Le(_0x392ef8)):_0x2734ac['add'](_0x392ef8);return Array['from'](_0x2734ac);}(_0x5a5b57['getSelectedBlocks'](),_0x11c8ad,_0x1699d2['model']['schema']);_0x1699d2['model']['change'](()=>{for(const _0x162531 of _0x254ab8)_0x1afbcc['markBlockFormat'](_0x162531,{'commandName':_0x51364c,'commandParams':[{'forceValue':!_0x5b73f9['value']}],'formatGroupId':'blockName'},Ee(_0x162531));});};}function _0x573c0e(_0x109bd8){return()=>{const _0x12179b=function(_0x4f36c2){let _0x2444e1=Array['from'](_0x4f36c2);const _0x7fa573=_0x2444e1['findIndex'](_0x469a0d=>'listItem'!=_0x469a0d['name']);return _0x7fa573>-0x1&&(_0x2444e1=_0x2444e1['slice'](0x0,_0x7fa573)),_0x2444e1;}(_0x1699d2['model']['document']['selection']['getSelectedBlocks']()),_0x40a36a=_0x1699d2['model']['createRange'](_0x1699d2['model']['createPositionAt'](_0x12179b[0x0],'before'),_0x1699d2['model']['createPositionAt'](_0x12179b[_0x12179b['length']-0x1],'end'));_0x1699d2['model']['change'](()=>{_0x1afbcc['markBlockFormat'](_0x40a36a,{'commandName':_0x109bd8,'commandParams':[],'formatGroupId':'listIndent'},function(_0x3e1048){const _0x51fc92=new Set();for(const _0xcc0c84 of _0x3e1048){let _0x1d8b14=_0xcc0c84['nextSibling'];for(;_0x1d8b14&&_0x1d8b14['getAttribute']('listIndent')>_0xcc0c84['getAttribute']('listIndent');)_0x51fc92['add'](_0x1d8b14),_0x1d8b14=_0x1d8b14['nextSibling'];}return Array['from'](_0x51fc92);}(_0x12179b));});};}_0x1afbcc['enableCommand']('numberedList',_0x15233f('numberedList')),_0x1afbcc['enableCommand']('bulletedList',_0x15233f('bulletedList')),_0x20817c&&_0x1afbcc['enableCommand']('todoList',_0x15233f('todoList')),_0x1afbcc['enableCommand']('indentList',_0x573c0e('indentList')),_0x1afbcc['enableCommand']('outdentList',_0x573c0e('outdentList')),_0x20817c&&_0x1afbcc['enableCommand']('checkTodoList',()=>{const _0x328dab=_0x1699d2['commands']['get']('checkTodoList'),_0x5ac27f=Array['from'](_0x328dab['_selectedElements']);_0x5ac27f['filter'](_0x239159=>_0x239159['getAttribute']('todoListChecked')!=_0x328dab['value']),_0x1699d2['model']['change'](()=>{for(const _0x1a365c of _0x5ac27f)_0x1afbcc['markBlockFormat'](_0x1a365c,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x328dab['value']}]});});}),_0x1afbcc['descriptionFactory']['registerElementLabel']('listItem',_0x2a7f1f=>o(_0x37d59b,'ELEMENT_LIST_ITEM',_0x2a7f1f)),_0x1afbcc['descriptionFactory']['registerDescriptionCallback'](_0x4e252e=>{if('formatBlock'!=_0x4e252e['type']&&'formatInline'!=_0x4e252e['type'])return;const {data:_0x1fce87}=_0x4e252e;if(_0x1fce87){if('numberedList'==_0x1fce87['commandName']||'bulletedList'==_0x1fce87['commandName']||'todoList'==_0x1fce87['commandName'])switch(_0x1fce87['commandName']['replace']('List','')){case'bulleted':return _0x484661(o(_0x37d59b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x484661(o(_0x37d59b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x484661(o(_0x37d59b,'ELEMENT_TODO_LIST'));}if('indentList'==_0x1fce87['commandName'])return{'type':'format','content':o(_0x37d59b,'*Indent:*\x20%0',o(_0x37d59b,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x1fce87['commandName'])return{'type':'format','content':o(_0x37d59b,'*Outdent:*\x20%0',o(_0x37d59b,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x1fce87['commandName'])return _0x1fce87['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x37d59b,'*Check\x20item*')}:{'type':'format','content':o(_0x37d59b,'*Uncheck\x20item*')};}function _0x484661(_0x6c10ae){return{'type':'format','content':o(_0x37d59b,'*Change\x20to:*\x20%0',_0x6c10ae)};}});}}function Le(_0x4ba594){const _0x54fb53=_0x4ba594['getAttribute']('listIndent');if(0x0==_0x54fb53)return _0x4ba594;let _0x35ed8e=_0x4ba594;for(;_0x4ba594['previousSibling']&&_0x4ba594['previousSibling']['is']('element','listItem');){const _0x5b6dca=_0x4ba594['previousSibling']['getAttribute']('listIndent');if(_0x5b6dca==_0x54fb53)_0x35ed8e=_0x4ba594['previousSibling'];else{if(_0x5b6dca<_0x54fb53)break;}_0x4ba594=_0x4ba594['previousSibling'];}return _0x35ed8e;}function Ee(_0x375cff){const _0x47f24b=[];if(_0x375cff['is']('element','listItem')&&_0x375cff['getAttribute']('listIndent')>0x0){let _0x4e5958=_0x375cff['nextSibling'];for(;_0x4e5958&&'listItem'==_0x4e5958['name']&&_0x4e5958['getAttribute']('listIndent')==_0x375cff['getAttribute']('listIndent');)_0x47f24b['push'](_0x4e5958),_0x4e5958=_0x4e5958['nextSibling'];}return _0x47f24b;}class ht extends _0x493265{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x191d5e=this['editor']['config']['get']('list.properties'),_0x2e6f47=this['editor']['plugins']['get']('TrackChangesEditing');_0x191d5e['styles']&&_0x2e6f47['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x191d5e['reversed']&&_0x2e6f47['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x191d5e['startIndex']&&_0x2e6f47['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x2e6f47['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x5c826e,_0x3bcbb5={}){const _0x543b88=this['editor']['plugins']['get']('TrackChangesEditing'),_0x149091=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x543b88['markMultiRangeBlockFormat'](_0x149091,{'commandName':'listStyle','commandParams':[{'type':_0x3bcbb5['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x76b051,_0x5932f3={}){const _0x12e792=this['editor']['plugins']['get']('TrackChangesEditing'),_0x556a5e=this['_getSuggestionBlocks'](_0x429f28=>_0x429f28['is']('element','listItem')&&'numbered'===_0x429f28['getAttribute']('listType'));if(_0x556a5e['length']<0x1)return;const _0x5b7259=_0x556a5e['map'](_0x42c81f=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x42c81f,'before'),this['editor']['model']['createPositionAt'](_0x42c81f,0x0)));this['editor']['model']['change'](()=>{_0x12e792['markMultiRangeBlockFormat'](_0x5b7259,{'commandName':'listReversed','commandParams':[{'reversed':_0x5932f3['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x1de302,_0x11b636={}){const _0x4b920b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x540525=this['_getSuggestionBlocks'](_0x45e9b8=>_0x45e9b8['is']('element','listItem')&&'numbered'===_0x45e9b8['getAttribute']('listType'));if(_0x540525['length']<0x1)return;const _0x1dc86b=_0x540525['map'](_0x11b385=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x11b385,'before'),this['editor']['model']['createPositionAt'](_0x11b385,0x0)));this['editor']['model']['change'](()=>{_0x4b920b['markMultiRangeBlockFormat'](_0x1dc86b,{'commandName':'listStart','commandParams':[{'startIndex':_0x11b636['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0xc776ec){if('formatBlock'!=_0xc776ec['type']&&'formatInline'!=_0xc776ec['type'])return;const _0xd117ac=this['editor']['locale'],{data:_0x414044}=_0xc776ec;if(!_0x414044)return;let _0x1cae7b,_0x43525f;switch(_0x414044['commandName']){case'listStyle':_0x1cae7b='*Change\x20to:*\x20%0',_0x43525f={'type':'format','content':o(_0xd117ac,_0x1cae7b,o(_0xd117ac,this['_getTranslationKeyForListStyle'](_0x414044['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1cae7b=_0x414044['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x43525f={'type':'format','content':o(_0xd117ac,_0x1cae7b)};break;case'listStart':_0x1cae7b='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x43525f={'type':'format','content':o(_0xd117ac,_0x1cae7b,_0x414044['commandParams'][0x0]['startIndex'])};}return _0x43525f;}['_getSuggestionBlocksForListStyle'](){const _0xa54300=this['editor']['plugins']['get']('LegacyListUtils');let _0x344cbb=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x344cbb[0x0]?.['is']('element','listItem')&&_0x344cbb['unshift'](..._0xa54300['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x344cbb[_0x344cbb['length']-0x1]?.['is']('element','listItem')&&_0x344cbb['push'](..._0xa54300['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x344cbb=[...new Set(_0x344cbb)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x344cbb=_0x344cbb['filter'](_0x477373=>_0x477373['is']('element','listItem'))),_0x344cbb;}['_getSuggestionBlocks'](_0x2ab186){const _0x7b57be=this['editor']['plugins']['get']('LegacyListUtils');let _0x3a0b72=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x2ab186)['map'](_0x2da0b7=>{const _0x3fccc2=this['editor']['model']['createPositionAt'](_0x2da0b7,0x0);return[..._0x7b57be['getSiblingNodes'](_0x3fccc2,'backward'),..._0x7b57be['getSiblingNodes'](_0x3fccc2,'forward')];})['flat']();return _0x3a0b72=[...new Set(_0x3a0b72)],_0x3a0b72;}['_getTranslationKeyForListStyle'](_0x3611f2){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x3611f2)||'default')['toUpperCase']()+'_LIST_'+_0x3611f2['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0x493265{['afterInit'](){const _0x21ea18=this['editor'];if(!_0x21ea18['plugins']['has']('MediaEmbedEditing'))return;const _0x36db88=_0x21ea18['plugins']['get']('TrackChangesEditing'),_0x2dbbaa=_0x21ea18['locale'];_0x36db88['enableCommand']('mediaEmbed'),_0x36db88['descriptionFactory']['registerElementLabel']('media',_0x20d4ad=>o(_0x2dbbaa,'ELEMENT_MEDIA',_0x20d4ad)),_0x21ea18['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x30db94,{writer:_0x5ddf4c,options:_0x4a628c})=>{if(_0x4a628c['showSuggestionHighlights'])return _0x5ddf4c['createEmptyElement']('div');},'converterPriority':'high'}),_0x21ea18['data']['downcastDispatcher']['on']('attribute:url:media',(_0x35b808,_0x44531e,_0xe7fe96)=>{_0xe7fe96['options']['showSuggestionHighlights']&&_0x35b808['stop']();},{'priority':'high'});}}class lt extends _0x493265{['afterInit'](){const _0x30d7bb=this['editor'];_0x30d7bb['plugins']['has']('MentionEditing')&&_0x30d7bb['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x493265{['afterInit'](){const _0x56b785=this['editor'];if(!_0x56b785['plugins']['has']('MergeFieldsEditing'))return;const _0x23cfac=_0x56b785['plugins']['get']('TrackChangesEditing'),_0x176315=_0x56b785['locale'];_0x23cfac['enableCommand']('insertMergeField'),_0x23cfac['enableCommand']('insertMergeFieldBlock'),_0x23cfac['enableCommand']('insertMergeFieldImage'),_0x23cfac['descriptionFactory']['registerElementLabel']('mergeField',_0x530643=>o(_0x176315,'ELEMENT_MERGE_FIELD',_0x530643)),_0x23cfac['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x47be14=>o(_0x176315,'ELEMENT_MERGE_FIELD',_0x47be14)),_0x23cfac['descriptionFactory']['registerDescriptionCallback'](_0x107ba8=>{if('insertion'!=_0x107ba8['type']&&'deletion'!=_0x107ba8['type'])return;const _0x5d6a4f=_0x107ba8['getContainedElement']();if(null==_0x5d6a4f)return;const _0x574367=_0x56b785['plugins']['get']('MergeFieldsEditing');let _0x5a6a95;switch(_0x574367['getMergeFieldType'](_0x5d6a4f)){case null:return;case'image':{const _0x3c56f9=_0x574367['unwrapAffixes'](_0x5d6a4f['getAttribute']('src'));_0x5a6a95=_0x574367['getLabel'](_0x3c56f9)||_0x3c56f9;break;}default:{const _0x52c2f7=_0x5d6a4f['getAttribute']('id');_0x5a6a95=_0x574367['getLabel'](_0x52c2f7)||_0x52c2f7;break;}}return'insertion'==_0x107ba8['type']?{'type':'insertion','content':o(_0x176315,'*Insert:*\x20%0','\x22'+_0x5a6a95+'\x22\x20'+o(_0x176315,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x176315,'*Remove:*\x20%0','\x22'+_0x5a6a95+'\x22\x20'+o(_0x176315,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x493265{['afterInit'](){const _0x3924ca=this['editor'],_0x4013f6=_0x3924ca['plugins']['get']('TrackChangesEditing');_0x3924ca['plugins']['has']('MultiLevelList')&&(_0x4013f6['enableDefaultAttributesIntegration']('multiLevelList'),_0x4013f6['registerBlockAttribute']('listMarkerStyle'),_0x4013f6['descriptionFactory']['registerDescriptionCallback'](_0x30be3b=>this['handleDescriptions'](_0x30be3b)));}['handleDescriptions'](_0x8ebd05){const _0x2a540a=this['editor']['locale'],{data:_0x4686ed}=_0x8ebd05,_0x3442b9={'type':'format','content':''};if(_0x4686ed&&'listMarkerStyle'==_0x4686ed['key']){if(!_0x4686ed['oldValue'])return{'type':'format','content':o(_0x2a540a,'*Set\x20format:*\x20%0',o(_0x2a540a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4686ed['newValue']+')'};if(!_0x4686ed['newValue']){let _0x57ca34=_0x8ebd05['head'];for(;_0x57ca34;){if(_0x57ca34['data']&&'listType'==_0x57ca34['data']['key']&&_0x57ca34['data']['newValue'])return _0x3442b9;_0x57ca34=_0x57ca34['next'];}return{'type':'format','content':o(_0x2a540a,'*Remove\x20format:*\x20%0',o(_0x2a540a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4686ed['oldValue']+')'};}}}}class pt extends _0x493265{['afterInit'](){const _0x3bd3fd=this['editor'];if(!_0x3bd3fd['plugins']['has']('PageBreakEditing'))return;_0x3bd3fd['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x25b7fc=_0x3bd3fd['plugins']['get']('TrackChangesEditing'),_0x4f1f0d=_0x3bd3fd['locale'];_0x25b7fc['descriptionFactory']['registerElementLabel']('pageBreak',_0x567898=>o(_0x4f1f0d,'ELEMENT_PAGE_BREAK',_0x567898));}}class kt extends _0x493265{['afterInit'](){const _0x19eb94=this['editor'];if(!_0x19eb94['plugins']['has']('Paragraph'))return;const _0x2ca02e=_0x19eb94['locale'],_0x200744=_0x19eb94['plugins']['get']('TrackChangesEditing');_0x200744['descriptionFactory']['registerElementLabel']('paragraph',_0x53b11f=>o(_0x2ca02e,'ELEMENT_PARAGRAPH',_0x53b11f)),_0x200744['enableDefaultAttributesIntegration']('paragraph'),_0x200744['enableCommand']('insertParagraph'),_0x19eb94['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x19eb94),{'priority':'highest'}),_0x19eb94['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1e5d49,_0x385537,_0x1f93bf)=>{_0x1f93bf['options']['showSuggestionHighlights']&&nr(_0x19eb94,{'showActiveMarker':!0x1})(_0x1e5d49,_0x385537,_0x1f93bf);},{'priority':'highest'});const _0x55d4b2=_0x200744['descriptionFactory'];_0x55d4b2['registerDescriptionCallback'](_0x3391de=>{if('insertion'!==_0x3391de['type'])return;const {start:_0x543982,end:_0xc71a5f}=_0x3391de['getFirstRange']();if(!_0x543982['isTouching'](_0xc71a5f)||!_0x543982['nodeAfter'])return;const _0x4e3710=_0x19eb94['model']['schema'],_0x1aac41=_0x543982['nodeAfter'];return _0x4e3710['isBlock'](_0x1aac41)&&!_0x4e3710['isLimit'](_0x1aac41)&&_0x4e3710['checkChild'](_0x1aac41,'$text')?{'type':'insertion','content':o(_0x2ca02e,'*Insert:*\x20%0',_0x55d4b2['getItemLabel'](_0x1aac41,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e3a6a=this['editor'],_0x3f8865=_0x3e3a6a['locale'];_0x3e3a6a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xcea3c5=>{if('formatBlock'!=_0xcea3c5['type'])return;const {data:_0x135be5}=_0xcea3c5;return _0x135be5&&'paragraph'==_0x135be5['commandName']?{'type':'format','content':o(_0x3f8865,'*Change\x20to:*\x20%0',o(_0x3f8865,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x2a59c4,{showActiveMarker:_0x14b396=!0x0}={}){return(_0xe4f6fe,_0x370783,_0x240841)=>{const _0x1cff7a=_0x2a59c4['plugins']['get']('TrackChangesEditing'),_0xc3dce3=_0x370783['markerRange']['start'],_0x58f6d9=_0x370783['markerRange']['end'],_0x290921=_0x2a59c4['model']['schema'];if(!_0xc3dce3['isTouching'](_0x58f6d9)||!_0xc3dce3['nodeAfter'])return;const _0x353a61=_0xc3dce3['nodeAfter'];if(_0x290921['isBlock'](_0x353a61)&&!_0x290921['isLimit'](_0x353a61)&&_0x290921['checkChild'](_0x353a61,'$text')){if(!_0x240841['consumable']['consume'](_0x370783['markerRange'],_0xe4f6fe['name']))return;const {id:_0x51a0c4,authorId:_0x21b8e5}=_0x1cff7a['_splitMarkerName'](_0x370783['markerName']),_0x39693a=_0x240841['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x51a0c4,'data-author-id':_0x21b8e5}),_0x2f5d21=_0x240841['mapper']['toViewPosition'](_0x58f6d9);_0x14b396&&_0x1cff7a['activeMarkers']['includes'](_0x370783['markerName'])&&_0x240841['writer']['addClass']('ck-suggestion-marker--active',_0x39693a),_0x240841['writer']['insert'](_0x2f5d21,_0x39693a),_0x240841['mapper']['bindElementToMarker'](_0x39693a,_0x370783['markerName']);}};}class wt extends _0x493265{['afterInit'](){const _0x47d1e4=this['editor'];_0x47d1e4['commands']['get']('replaceSource')&&_0x47d1e4['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0x493265{['afterInit'](){const _0x22169f=this['editor'];if(!_0x22169f['plugins']['has']('RemoveFormatEditing'))return;_0x22169f['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x20536e=this['editor'];_0x20536e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ce7db=>{if('formatBlock'!=_0x3ce7db['type']&&'formatInline'!=_0x3ce7db['type'])return;const {data:_0x4b91fa}=_0x3ce7db;return _0x4b91fa&&'removeFormat'==_0x4b91fa['commandName']?{'type':'format','content':o(_0x20536e['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x493265{['afterInit'](){const _0x39b289=this['editor'];if(!_0x39b289['plugins']['has']('RestrictedEditingModeEditing'))return;const _0xcff18c=_0x39b289['plugins']['get']('TrackChangesEditing');_0xcff18c['enableCommand']('goToPreviousRestrictedEditingException'),_0xcff18c['enableCommand']('goToNextRestrictedEditingException');const _0x2bba7b=_0x39b289['plugins']['get']('RestrictedEditingModeEditing');_0x2bba7b['enableCommand']('trackChanges'),_0x2bba7b['enableCommand']('acceptSuggestion'),_0x2bba7b['enableCommand']('discardSuggestion'),_0x2bba7b['enableCommand']('acceptAllSuggestions'),_0x2bba7b['enableCommand']('discardAllSuggestions'),_0x2bba7b['enableCommand']('acceptSelectedSuggestions'),_0x2bba7b['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x493265{['afterInit'](){const _0x179e01=this['editor'];if(!_0x179e01['plugins']['has']('ShiftEnter'))return;const _0x5ba416=_0x179e01['plugins']['get']('TrackChangesEditing');_0x5ba416['enableCommand']('shiftEnter'),_0x179e01['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x179e01),{'priority':'high'}),_0x179e01['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x179e01),{'priority':'high'}),_0x179e01['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x40dc4d,_0x25996c,_0x3507b6)=>{_0x3507b6['options']['showSuggestionHighlights']&&je(_0x179e01,{'showActiveMarker':!0x1})(_0x40dc4d,_0x25996c,_0x3507b6);}),_0x5ba416['descriptionFactory']['registerElementLabel']('softBreak',_0x306e5=>o(_0x179e01['locale'],'ELEMENT_LINE_BREAK',_0x306e5));}}function je(_0x233327,{showActiveMarker:_0x110959=!0x0}={}){return(_0x39c468,_0x3cd77a,_0x8587e)=>{const _0x27dda2=_0x233327['plugins']['get']('TrackChangesEditing');if(!_0x8587e['consumable']['test'](_0x3cd77a['markerRange'],_0x39c468['name']))return;const _0x45b1c7=_0x233327['model'];for(const _0x4d0c66 of _0x3cd77a['markerRange']['getItems']()){if(!_0x4d0c66['is']('element','softBreak'))continue;const _0x4d013b='deletion'==_0x3cd77a['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x2dba99,authorId:_0x496fae}=_0x27dda2['_splitMarkerName'](_0x3cd77a['markerName']),_0x3ea83a=_0x8587e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4d013b,'data-suggestion':_0x2dba99,'data-author-id':_0x496fae}),_0x41f0ec=_0x8587e['mapper']['toViewPosition'](_0x45b1c7['createPositionBefore'](_0x4d0c66));_0x110959&&_0x27dda2['activeMarkers']['includes'](_0x3cd77a['markerName'])&&_0x8587e['writer']['addClass']('ck-suggestion-marker--active',_0x3ea83a),_0x8587e['writer']['insert'](_0x41f0ec,_0x3ea83a),_0x8587e['mapper']['bindElementToMarker'](_0x3ea83a,_0x3cd77a['markerName']);}};}class St extends _0x493265{['afterInit'](){const _0x101056=this['editor'],_0x398ad6=_0x101056['model'],_0xf0982b=_0x101056['locale'];if(!_0x101056['plugins']['has']('StandardEditingModeEditing'))return;const _0x2653b5=_0x101056['plugins']['get']('TrackChangesEditing'),_0x52506a='restrictedEditingException',_0x4eff6f=_0x101056['commands']['get'](_0x52506a);_0x2653b5['enableCommand'](_0x52506a,(_0x2b581c,_0x322920={})=>{const _0x14ae12=_0x398ad6['document']['selection'];if(_0x14ae12['isCollapsed'])return void _0x2b581c(_0x322920);const _0x3e3180=void 0x0!==_0x322920['forceValue']?_0x322920['forceValue']:!_0x4eff6f['value'];_0x398ad6['change'](()=>{const _0x433bb5=Array['from'](_0x14ae12['getRanges']());for(const _0x55bae7 of _0x433bb5){const _0x2ddbb8=_0x3e3180?[_0x55bae7]:io(_0x52506a,_0x55bae7,_0x398ad6);for(const _0x4892f1 of _0x2ddbb8)_0x2653b5['markInlineFormat'](_0x4892f1,{'commandName':_0x52506a,'commandParams':[{'forceValue':_0x3e3180}]});}});}),_0x2653b5['descriptionFactory']['registerDescriptionCallback'](_0x127d24=>{if('formatBlock'!=_0x127d24['type']&&'formatInline'!=_0x127d24['type'])return;const {data:_0x23601d}=_0x127d24;return _0x23601d&&_0x23601d['commandName']==_0x52506a?_0x23601d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xf0982b,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0xf0982b,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x493265{['afterInit'](){const _0x784044=this['editor'];if(!_0x784044['plugins']['has']('Style')||!_0x784044['plugins']['has']('DataSchema'))return;const _0x1d1329=_0x784044['plugins']['get']('TrackChangesEditing'),_0x4af816=_0x784044['locale'],_0x24d570=_0x784044['config']['get']('style')||{},_0x5ed1e3=_0x784044['plugins']['get']('GeneralHtmlSupport'),_0x3a1e00=_0x784044['plugins']['get']('StyleUtils')['normalizeConfig'](_0x784044['plugins']['get']('DataSchema'),_0x24d570['definitions']);_0x1d1329['enableDefaultAttributesIntegration']('style');const _0x40ef3c=new Set();for(const _0x1c5d74 of _0x3a1e00['block']){const _0x1476ee=_0x5ed1e3['getGhsAttributeNameForElement'](_0x1c5d74['element']);_0x40ef3c['add'](_0x1476ee);}const _0x2c0671=new Set();for(const _0x3dd451 of _0x3a1e00['inline']){const _0x10bc39=_0x5ed1e3['getGhsAttributeNameForElement'](_0x3dd451['element']);_0x2c0671['add'](_0x10bc39);for(const _0x45eae3 of _0x3dd451['ghsAttributes'])_0x2c0671['add'](_0x45eae3);}for(const _0x4935d1 of _0x40ef3c)_0x1d1329['registerBlockAttribute'](_0x4935d1),_0x1d1329['descriptionFactory']['registerAttributeLabel'](_0x4935d1,o(_0x4af816,'FORMAT_STYLE'));for(const _0x34c16f of _0x2c0671)_0x1d1329['registerInlineAttribute'](_0x34c16f),_0x1d1329['descriptionFactory']['registerAttributeLabel'](_0x34c16f,o(_0x4af816,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x30ed0f=this['editor'],_0x39f9c1=_0x30ed0f['locale'];_0x30ed0f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x565463=>{if('formatBlock'!=_0x565463['type']&&'formatInline'!=_0x565463['type'])return;const {data:_0x114149}=_0x565463;return _0x114149&&'style'===_0x114149['commandName']?_0x114149['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x39f9c1,'*Set\x20format:*\x20%0',_0x114149['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x39f9c1,'*Remove\x20format:*\x20%0',_0x114149['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0x493265{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x401a2e){super(_0x401a2e),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x1ecb4b=this['editor'],_0x584d77=_0x1ecb4b['model']['document']['selection'];if(!_0x1ecb4b['plugins']['has']('TableEditing'))return;const _0x15f35a=_0x1ecb4b['locale'],_0x501dc0=_0x1ecb4b['plugins']['get']('TrackChangesEditing'),_0x48bba4=_0x1ecb4b['plugins']['get']('TableUtils');_0x501dc0['descriptionFactory']['registerElementLabel']('table',_0x5ba566=>o(_0x15f35a,'ELEMENT_TABLE',_0x5ba566)),this['_setupColumnsRowsFixing'](),_0x501dc0['enableCommand']('insertTable'),_0x501dc0['enableCommand']('selectTableRow'),_0x501dc0['enableCommand']('selectTableColumn');for(const _0x5b0e4c of['insertTableRowAbove','insertTableRowBelow']){const _0x2b7e8f=_0x1ecb4b['commands']['get'](_0x5b0e4c);_0x501dc0['enableCommand'](_0x5b0e4c,_0x137d55=>{_0x1ecb4b['model']['change'](_0x4a3267=>{_0x137d55();const _0x4be9c8='above'===_0x2b7e8f['order'],_0x2132a7=_0x48bba4['getSelectionAffectedTableCells'](_0x584d77),_0x2b9d23=_0x48bba4['getRowIndexes'](_0x2132a7),_0x52f3da=_0x4be9c8?_0x2b9d23['first']-0x1:_0x2b9d23['last']+0x1,_0xb6068=_0x2132a7[0x0]['findAncestor']('table'),_0x2e00c6=_0x48bba4['createTableWalker'](_0xb6068,{'startRow':_0x52f3da,'endRow':_0x52f3da}),_0x4de538=Array['from'](_0x2e00c6)['map'](_0x2974d8=>_0x4a3267['createRangeOn'](_0x2974d8['cell']));_0x501dc0['markMultiRangeInsertion'](_0x4de538,'tableRow');});});}for(const _0x2cf34d of['insertTableColumnLeft','insertTableColumnRight']){const _0x310f8f=_0x1ecb4b['commands']['get'](_0x2cf34d);_0x501dc0['enableCommand'](_0x2cf34d,_0x513ebc=>{_0x1ecb4b['model']['change'](_0x30dcd0=>{_0x513ebc();const _0x41c4f4='left'===_0x310f8f['order'],_0x51a6da=_0x48bba4['getSelectionAffectedTableCells'](_0x584d77),_0x4e7093=_0x48bba4['getColumnIndexes'](_0x51a6da),_0x3b1642=_0x41c4f4?_0x4e7093['first']-0x1:_0x4e7093['last']+0x1,_0x5932b9=_0x51a6da[0x0]['findAncestor']('table'),_0x3bb814=_0x48bba4['createTableWalker'](_0x5932b9,{'startRow':0x0,'column':_0x3b1642,'includeAllSlots':!0x1}),_0x3a7bce=Array['from'](_0x3bb814)['map'](_0x4b258c=>_0x30dcd0['createRangeOn'](_0x4b258c['cell']));_0x501dc0['markMultiRangeInsertion'](_0x3a7bce,'tableColumn');});});}for(const _0x5c9051 of['removeTableRow','removeTableColumn']){const _0xb85aea=_0x5c9051['substr'](0xb),_0x3e2fc3=_0xb85aea['toLowerCase'](),_0x3a5286=_0x3e2fc3['substr'](0x0,0x3)+'span',_0x41c56b='table'+_0xb85aea,_0x3e30a5='min'+_0xb85aea,_0x22ea0e='max'+_0xb85aea;_0x501dc0['enableCommand'](_0x5c9051,()=>{_0x1ecb4b['model']['change'](_0x2cdacf=>{const _0x186f06=_0x48bba4['getSelectionAffectedTableCells'](_0x584d77),_0x28814b=_0x186f06[0x0]['findAncestor']('table');let _0x868c79;if('removeTableRow'==_0x5c9051){const _0x1d123e=_0x48bba4['getRowIndexes'](_0x186f06);_0x868c79={'startRow':_0x1d123e['first'],'endRow':_0x1d123e['last'],'includeAllSlots':!0x0};}else{const _0x3745ae=_0x48bba4['getColumnIndexes'](_0x186f06);_0x868c79={'startColumn':_0x3745ae['first'],'endColumn':_0x3745ae['last'],'includeAllSlots':!0x0};}const _0x2cf856=_0x48bba4['createTableWalker'](_0x28814b,_0x868c79),_0xc21bf0=Array['from'](_0x2cf856)['map'](({cell:_0x453369})=>_0x453369),_0x1f0beb=Ne(_0xc21bf0['filter'](_0x1e2e9f=>_0x1e2e9f['hasAttribute'](_0x3a5286))),_0x3b59db=Ne(_0xc21bf0['filter'](_0x3906b9=>!_0x3906b9['hasAttribute'](_0x3a5286)))['map'](_0x3d049b=>_0x2cdacf['createRangeOn'](_0x3d049b)),_0x3453c4=_0x501dc0['markMultiRangeDeletion'](_0x3b59db,_0x41c56b);if(_0x3453c4&&('tableRow'==_0x3453c4['subType']||'tableColumn'==_0x3453c4['subType'])){const _0xf13781=this['_getSuggestionCoords'](_0x3453c4);for(const _0x5de958 of _0x1f0beb){const _0xc8c6db=_0x2cdacf['createRangeOn'](_0x5de958),_0x24118f=_0x48bba4['getCellLocation'](_0x5de958),_0x5ca488=_0x5de958['getAttribute'](_0x3a5286)-0x1,_0x4bd3da=_0xf13781[_0x3e30a5],_0x19f84d=_0xf13781[_0x22ea0e];_0x4bd3da<=_0x24118f[_0x3e2fc3]&&_0x24118f[_0x3e2fc3]+_0x5ca488<=_0x19f84d&&_0x3453c4['addRange'](_0xc8c6db);}}});});}function _0x1dd72f(_0x4155c1){const _0x2d942a=Array['from'](_0x584d77['getRanges']())['map'](_0xae6c71=>_0x21756a['fromRange'](_0xae6c71));_0x1ecb4b['model']['change'](_0x49049a=>{const _0x2173e2=_0x49049a['batch'];_0x4155c1=_0x4155c1['filter'](_0x301975=>'$graveyard'!=_0x301975['root']['rootName']),_0x49049a['setSelection'](_0x4155c1),_0x1ecb4b['commands']['get']('removeTableRow')['refresh'](),_0x1ecb4b['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1ecb4b['model']['enqueueChange'](()=>{_0x1ecb4b['model']['enqueueChange'](_0x2173e2,_0x2a37c6=>{const _0x3e244a=_0x2d942a['filter'](_0x13f3af=>'$graveyard'!=_0x13f3af['root']['rootName']);_0x3e244a['length']>0x0&&_0x2a37c6['setSelection'](_0x3e244a);for(const _0x26a588 of _0x2d942a)_0x26a588['detach']();});});});}function _0x1052cf(_0x1784f3){_0x1ecb4b['model']['change'](_0x2c58f3=>{const _0x37467e=Array['from'](_0x584d77['getRanges']())['map'](_0xa21404=>_0x21756a['fromRange'](_0xa21404)),_0x53922e=[];for(const _0x403e70 of _0x1784f3)for(const _0x1c2a9f of _0x403e70['getItems']({'shallow':!0x0}))_0x53922e['push'](_0x1c2a9f);for(const _0x2e1ad1 of _0x53922e)'$graveyard'!=_0x2e1ad1['root']['rootName']&&(_0x2c58f3['setSelection'](_0x2c58f3['createPositionAt'](_0x2e1ad1,0x0)),_0x1ecb4b['commands']['get']('removeTableColumn')['refresh'](),_0x1ecb4b['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1b0423=_0x37467e['filter'](_0x3abce5=>'$graveyard'!=_0x3abce5['root']['rootName']);_0x1b0423['length']>0x0&&_0x2c58f3['setSelection'](_0x1b0423);for(const _0x5b668c of _0x37467e)_0x5b668c['detach']();});}function _0x3d43bf(_0x41220e,_0x13b959){return _0x13b959['every'](_0xc93bee=>_0x41220e['some'](_0x38e76e=>_0x38e76e['end']['isEqual'](_0xc93bee['start'])||_0xc93bee['end']['isEqual'](_0x38e76e['start'])));}function _0x147cfc(_0x3b0324,_0x33958b){return!_0x3b0324['some'](_0x1cf1ee=>_0x33958b['some'](_0x1105e0=>_0x1cf1ee['isIntersecting'](_0x1105e0)))&&_0x3b0324['some'](_0x5bd524=>_0x33958b['some'](_0x38e112=>_0x5bd524['end']['isTouching'](_0x38e112['start'])));}_0x1ecb4b['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x341c75,_0x1ffd2e,_0x317af3)=>{if(!_0x317af3['options']['showSuggestionHighlights'])return;const _0x4f877f=_0x1ffd2e['item'];if(!_0x4f877f||!_0x4f877f['is']('element','tableCell'))return;const _0x4cfdae=_0x317af3['mapper']['toViewElement'](_0x4f877f);if(_0x4cfdae){const {id:_0x2e7990,authorId:_0x378b0d}=_0x501dc0['_splitMarkerName'](_0x1ffd2e['markerName']);_0x4dff6b(_0x4cfdae,_0x317af3['writer'],(_0x14960c,_0x2a4352,_0x2d3557)=>{_0x2d3557['addClass'](_0x359e10(_0x2a4352['classes']),_0x14960c),_0x2d3557['setAttribute']('data-suggestion-id',_0x2e7990,_0x14960c),_0x2d3557['setAttribute']('data-author-id',_0x378b0d,_0x14960c);},(_0x564860,_0x289ca2,_0x331010)=>{_0x331010['removeClass'](_0x359e10(_0x289ca2['classes']),_0x564860),_0x331010['removeAttribute']('data-suggestion-id',_0x564860),_0x331010['removeAttribute']('data-author-id',_0x564860);});}},{'priority':'highest'}),_0x501dc0['descriptionFactory']['registerDescriptionCallback'](_0x414d66=>{if('insertion'!=_0x414d66['type']&&'deletion'!=_0x414d66['type'])return;const _0x2ae276=_0x414d66['getContainedElement']();if(null!=_0x2ae276&&_0x2ae276['is']('element','table')){if('insertion'==_0x414d66['type']){const _0x1809a7=_0x414d66['getItems']()['filter'](_0x477923=>_0x477923['is']('$textProxy'))['map'](_0x558722=>_0x558722['data']);if(_0x1809a7['length'])return{'type':'insertion','content':o(_0x15f35a,'*Insert:*\x20%0',o(_0x15f35a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1809a7['join']('\x20')+'\x22'))};}if('deletion'==_0x414d66['type']){const _0x37d979=_0x414d66['getItems']()['filter'](_0x5c3a7f=>_0x5c3a7f['is']('$textProxy'))['map'](_0x158776=>_0x158776['data']);if(_0x37d979['length'])return{'type':'deletion','content':o(_0x15f35a,'*Remove:*\x20%0',o(_0x15f35a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x37d979['join']('\x20')+'\x22'))};}}}),_0x501dc0['descriptionFactory']['registerDescriptionCallback'](_0x38c7c2=>{if('tableRow'==_0x38c7c2['subType']){const _0x3c0796=_0x38c7c2['getItems']()['filter'](_0x210d74=>_0x210d74['is']('$textProxy'))['map'](_0x4d1249=>_0x4d1249['data']),_0x5dcc12=this['_getSuggestionCoords'](_0x38c7c2),_0x19fada=_0x5dcc12['maxRow']-_0x5dcc12['minRow']+0x1;if('insertion'==_0x38c7c2['type'])return _0x3c0796['length']?{'type':'insertion','content':o(_0x15f35a,'*Insert:*\x20%0',o(_0x15f35a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x19fada,'\x22'+_0x3c0796['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x15f35a,'*Insert:*\x20%0',o(_0x15f35a,'ELEMENT_TABLE_ROW',_0x19fada))};if('deletion'==_0x38c7c2['type'])return _0x3c0796['length']?{'type':'deletion','content':o(_0x15f35a,'*Remove:*\x20%0',o(_0x15f35a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x19fada,'\x22'+_0x3c0796['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x15f35a,'*Remove:*\x20%0',o(_0x15f35a,'ELEMENT_TABLE_ROW',_0x19fada))};}if('tableColumn'==_0x38c7c2['subType']){const _0x5e48ff=_0x38c7c2['getItems']()['filter'](_0x3c1ca5=>_0x3c1ca5['is']('$textProxy'))['map'](_0x48994b=>_0x48994b['data']),_0x4341ae=this['_getSuggestionCoords'](_0x38c7c2),_0x55d195=_0x4341ae['maxColumn']-_0x4341ae['minColumn']+0x1;if('insertion'==_0x38c7c2['type'])return _0x5e48ff['length']?{'type':'insertion','content':o(_0x15f35a,'*Insert:*\x20%0',o(_0x15f35a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x55d195,'\x22'+_0x5e48ff['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x15f35a,'*Insert:*\x20%0',o(_0x15f35a,'ELEMENT_TABLE_COLUMN',_0x55d195))};if('deletion'==_0x38c7c2['type'])return _0x5e48ff['length']?{'type':'deletion','content':o(_0x15f35a,'*Remove:*\x20%0',o(_0x15f35a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x55d195,'\x22'+_0x5e48ff['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x15f35a,'*Remove:*\x20%0',o(_0x15f35a,'ELEMENT_TABLE_COLUMN',_0x55d195))};}}),_0x501dc0['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1dd72f),_0x501dc0['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1dd72f),_0x501dc0['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1052cf),_0x501dc0['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1052cf),_0x501dc0['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3d43bf),_0x501dc0['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3d43bf),_0x501dc0['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x147cfc),_0x501dc0['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x147cfc);}['_acceptFormatSuggestionCallbackFactory'](){const _0x240174=this['editor'],_0x3eb8ce=_0x240174['model']['document']['selection'];return(_0x597400,_0x19da94)=>{_0x240174['model']['change'](_0x121329=>{const {commandName:_0x308789,commandParams:_0x38fc9b}=_0x19da94;let _0x4aea49=_0x597400[0x0]['end']['nodeBefore'];_0x38fc9b&&_0x38fc9b[0x0]&&!0x1===_0x38fc9b[0x0]['forceValue']&&(_0x4aea49=_0x597400[0x0]['start']['nodeAfter']);const _0x25bcd3=_0x121329['createRangeIn'](_0x4aea49);if('$graveyard'==_0x25bcd3['root']['rootName'])return;const _0x355650=Array['from'](_0x3eb8ce['getRanges']())['map'](_0x4b4ee0=>_0x21756a['fromRange'](_0x4b4ee0));_0x121329['setSelection'](_0x25bcd3),_0x240174['commands']['get'](_0x308789)['refresh'](),_0x38fc9b['push']({'forceDefaultExecution':!0x0}),_0x240174['execute'](_0x308789,..._0x38fc9b);const _0x98832d=_0x355650['filter'](_0x5c4834=>'$graveyard'!=_0x5c4834['root']['rootName']);_0x98832d['length']>0x0&&_0x121329['setSelection'](_0x98832d);for(const _0x1b40c2 of _0x355650)_0x1b40c2['detach']();});};}['_getCoordsForCells'](_0x3f0498){const _0x22151e=this['editor']['plugins']['get']('TableUtils');let _0x232910=Number['MAX_SAFE_INTEGER'],_0x2eddaf=Number['MIN_SAFE_INTEGER'],_0x2500ab=Number['MAX_SAFE_INTEGER'],_0x2351b0=Number['MIN_SAFE_INTEGER'];for(const _0x5cb6c of _0x3f0498){if('$graveyard'==_0x5cb6c['root']['rootName'])continue;const {row:_0x28cd8b,column:_0x109fd9}=_0x22151e['getCellLocation'](_0x5cb6c),_0x43bf60=_0x5cb6c['hasAttribute']('rowspan')?_0x5cb6c['getAttribute']('rowspan')-0x1:0x0,_0x37b70f=_0x5cb6c['hasAttribute']('colspan')?_0x5cb6c['getAttribute']('colspan')-0x1:0x0;_0x232910=_0x28cd8b<_0x232910?_0x28cd8b:_0x232910,_0x2eddaf=_0x28cd8b+_0x43bf60>_0x2eddaf?_0x28cd8b+_0x43bf60:_0x2eddaf,_0x2500ab=_0x109fd9<_0x2500ab?_0x109fd9:_0x2500ab,_0x2351b0=_0x109fd9+_0x37b70f>_0x2351b0?_0x109fd9+_0x37b70f:_0x2351b0;}return{'minRow':_0x232910,'maxRow':_0x2eddaf,'minColumn':_0x2500ab,'maxColumn':_0x2351b0};}['_setupColumnsRowsFixing'](){const _0x78127b=this['editor'],_0x597faf=_0x78127b['plugins']['get']('TrackChangesEditing'),_0xd566ab=_0x78127b['plugins']['get']('TableUtils');_0x78127b['model']['document']['on']('change:data',()=>{const _0x43659b=Array['from'](_0x78127b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2b69f5,data:_0x4535dc}of _0x43659b){const {group:_0x8d0bbe,id:_0x510a9e,subType:_0x7b7be9}=_0x597faf['_splitMarkerName'](_0x2b69f5);if('suggestion'!=_0x8d0bbe)continue;if(null!=_0x4535dc['oldRange'])continue;const _0x26d7b4=_0x597faf['getSuggestion'](_0x510a9e);this['_tablePostFixingSubtypes']['includes'](_0x7b7be9)&&this['_tableSuggestions']['add'](_0x26d7b4);}},{'priority':'low'});const _0x75529e=(_0x11b344,_0x3e10e4)=>{let _0x1f1074=!0x1;const _0x2e844c=_0x3e10e4['createRangeOn'](_0x11b344),_0x2e97d1=_0x11b344['findAncestor']('table'),_0xd8375f=_0xd566ab['getCellLocation'](_0x11b344);for(const _0x129e40 of this['_tableSuggestions']){const _0x11664f=_0x129e40['subType'],_0x115553=_0x11664f['startsWith']('tablePaste'),_0x4d2cf9=_0x11664f['substr'](_0x115553?0xa:0x5),_0x28e606=_0x4d2cf9['toLowerCase'](),_0x1184d4=_0x28e606['substr'](0x0,0x3)+'span',_0x472dd2='min'+_0x4d2cf9,_0x4a71b3='max'+_0x4d2cf9;if(!_0x129e40['isInContent'])continue;if(_0x2e97d1!=_0x129e40['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x129e40['isIntersectingWithRange'](_0x2e844c))continue;const _0x51b770=_0x11b344['hasAttribute'](_0x1184d4)?_0x11b344['getAttribute'](_0x1184d4)-0x1:0x0,_0x3a8e35=this['_getSuggestionCoords'](_0x129e40),_0x2ca8d6=_0x3a8e35[_0x472dd2],_0x31aea6=_0x3a8e35[_0x4a71b3];_0x2ca8d6<=_0xd8375f[_0x28e606]&&_0xd8375f[_0x28e606]+_0x51b770<=_0x31aea6&&(_0x129e40['addRange'](_0x2e844c),_0x1f1074=!0x0);}return _0x1f1074;};_0x78127b['model']['document']['registerPostFixer'](_0x4e9996=>{let _0x2754e9=!0x1;for(const _0x4f66df of _0x78127b['model']['document']['differ']['getChanges']())if('insert'==_0x4f66df['type']){if('tableRow'==_0x4f66df['name']){for(const _0x258a91 of _0x4f66df['position']['nodeAfter']['getChildren']())_0x2754e9=_0x2754e9||_0x75529e(_0x258a91,_0x4e9996);}else'tableCell'==_0x4f66df['name']&&(_0x2754e9=_0x2754e9||_0x75529e(_0x4f66df['position']['nodeAfter'],_0x4e9996));}return _0x2754e9;});}['_getSuggestionCoords'](_0x488c58){return this['_getCoordsForCells'](_0x488c58['getRanges']()['map'](_0x29f48b=>_0x29f48b['start']['nodeAfter']));}}function Ne(_0x4e28eb){return Array['from'](new Set(_0x4e28eb)['values']());}class _t extends _0x493265{static get['requires'](){return[At];}['afterInit'](){const _0x3b9a03=this['editor'],_0xb30a0e=_0x3b9a03['model']['document']['selection'],_0x5b286c=_0x3b9a03['locale'];if(!_0x3b9a03['plugins']['has']('TableEditing'))return;const _0x3fb7e0=_0x3b9a03['plugins']['get']('TrackChangesEditing'),_0x431e1a=_0x3b9a03['plugins']['get']('TableUtils'),_0x3b3186=_0x3b9a03['plugins']['get'](At);_0x3b3186['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3fb7e0['enableCommand']('mergeTableCells',()=>{const _0x1056ff=_0x431e1a['getSelectionAffectedTableCells'](_0x3b9a03['model']['document']['selection']);_0x3b9a03['model']['change'](()=>{_0x3fb7e0['markMultiRangeBlockFormat'](_0x1056ff,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3b9a03['commands']['get']('mergeTableCells')['on']('execute',(_0x5de91f,_0x1a0591)=>{_0x3b9a03['commands']['get']('trackChanges')['value']&&(_0x1a0591['length']>0x0&&_0x1a0591[_0x1a0591['length']-0x1]&&_0x1a0591[_0x1a0591['length']-0x1]['forceDefaultExecution']||_0x3fb7e0['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5de91f['stop']());},{'priority':'highest'});for(const _0x35edb4 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x5b54a8=_0x3b9a03['commands']['get'](_0x35edb4);_0x3fb7e0['enableCommand'](_0x35edb4,()=>{const _0x531b94=_0x3b9a03['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1284cb=>_0x1284cb['is']('element','tableCell')),_0x3937f6=_0x5b54a8['value'];_0x3b9a03['model']['change'](()=>{_0x3fb7e0['markMultiRangeBlockFormat']([_0x531b94,_0x3937f6],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x55e17e of['splitTableCellVertically','splitTableCellHorizontally']){const _0x11e510=_0x3b9a03['commands']['get'](_0x55e17e);_0x3fb7e0['enableCommand'](_0x55e17e,()=>{const _0x44f510=_0x431e1a['getSelectionAffectedTableCells'](_0x3b9a03['model']['document']['selection'])[0x0],_0x2e71f1=_0x44f510['findAncestor']('table'),{column:_0x49c0ac,row:_0x486ef8}=_0x431e1a['getCellLocation'](_0x44f510);let _0x26f21e=[];if('horizontally'==_0x11e510['direction']){const _0x2c382c=_0x431e1a['createTableWalker'](_0x2e71f1,{'startRow':_0x486ef8,'endRow':_0x486ef8,'includeAllSlots':!0x0});_0x26f21e=Array['from'](_0x2c382c)['map'](_0x56348a=>_0x56348a['cell']);}else{const _0x3ab760=_0x431e1a['createTableWalker'](_0x2e71f1,{'column':_0x49c0ac,'includeAllSlots':!0x0});_0x26f21e=Array['from'](_0x3ab760)['map'](_0x2ef551=>_0x2ef551['cell']);}_0x3b9a03['model']['change'](_0x593745=>{_0x3fb7e0['markBlockFormat'](_0x593745['createRangeOn'](_0x44f510),{'commandName':_0x55e17e,'commandParams':[]},_0x26f21e,_0x55e17e);});});}_0x3fb7e0['descriptionFactory']['registerDescriptionCallback'](_0x2052e3=>{if('formatBlock'!=_0x2052e3['type']&&'formatInline'!=_0x2052e3['type'])return;const {data:_0x334827}=_0x2052e3;return _0x334827&&'mergeTableCells'==_0x334827['commandName']?{'type':'format','content':o(_0x5b286c,'*Merge\x20cells*')}:void 0x0;}),_0x3fb7e0['descriptionFactory']['registerDescriptionCallback'](_0x21aac4=>{if('formatBlock'!=_0x21aac4['type']&&'formatInline'!=_0x21aac4['type'])return;const {data:_0x10bda9}=_0x21aac4;return _0x10bda9?'splitTableCellVertically'==_0x10bda9['commandName']?{'type':'format','content':o(_0x5b286c,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x10bda9['commandName']?{'type':'format','content':o(_0x5b286c,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x42e3f1=_0x3b3186['_acceptFormatSuggestionCallbackFactory']();for(const _0x1a2dab of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3fb7e0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1a2dab,'accept',_0x42e3f1);for(const _0x5cf694 of['splitTableCellVertically','splitTableCellHorizontally'])_0x3fb7e0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5cf694,'accept',_0x42e3f1);_0x3fb7e0['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x1e8fa6=>{_0x3b9a03['model']['change'](_0x5c223c=>{const _0x94f881=Array['from'](_0xb30a0e['getRanges']())['map'](_0x1b4fa0=>_0x21756a['fromRange'](_0x1b4fa0));_0x5c223c['setSelection'](_0x1e8fa6),_0x3b9a03['commands']['get']('mergeTableCells')['refresh'](),_0x3b9a03['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x133536=_0x94f881['filter'](_0x1c206e=>'$graveyard'!=_0x1c206e['root']['rootName']);_0x133536['length']>0x0&&_0x5c223c['setSelection'](_0x133536);for(const _0x47d4c3 of _0x94f881)_0x47d4c3['detach']();});});for(const _0x13c575 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x443fb4=_0x3b9a03['commands']['get'](_0x13c575);_0x443fb4['on']('set:isEnabled',(_0x1ca323,_0x2b6e34,_0x414dc1)=>{if(_0x414dc1){const _0x42fa34=_0x3b9a03['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3ef81d=>_0x3ef81d['is']('element','tableCell'));this['_areMergableCells'](_0x443fb4['value'],_0x42fa34)||(_0x1ca323['return']=!0x1,_0x1ca323['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x556ee3=this['editor']['commands']['get']('mergeTableCells'),_0x4258fb=this['editor']['plugins']['get']('TableUtils');if(!_0x556ee3['isEnabled'])return!0x1;const _0x29da69=_0x4258fb['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x565727 of _0x29da69)for(const _0x2872f2 of _0x29da69)if(_0x565727!=_0x2872f2&&!this['_areMergableCells'](_0x565727,_0x2872f2))return!0x1;return!0x0;}['_areMergableCells'](_0x50f558,_0x32216c){const _0xd76abd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5621e3=this['editor']['model']['createRangeOn'](_0x50f558),_0x4a7864=this['editor']['model']['createRangeOn'](_0x32216c),_0x3b1afc=new Set(),_0x4e4af9=new Set();for(const _0x272be0 of _0xd76abd['getSuggestions']())if(('insertion'==_0x272be0['type']||'deletion'==_0x272be0['type']||'mergeTableCells'==_0x272be0['subType'])&&_0x272be0['isInContent']){for(const _0x1b2016 of _0x272be0['getRanges']())_0x1b2016['containsRange'](_0x5621e3,!0x0)&&_0x3b1afc['add'](_0x272be0['type']+':'+_0x272be0['author']['id']),_0x1b2016['containsRange'](_0x4a7864,!0x0)&&_0x4e4af9['add'](_0x272be0['type']+':'+_0x272be0['author']['id']);}if(_0x3b1afc['size']!=_0x4e4af9['size'])return!0x1;for(const _0x4c2467 of _0x3b1afc)if(!_0x4e4af9['has'](_0x4c2467))return!0x1;return!0x0;}}class Ct extends _0x493265{static get['requires'](){return[At];}['afterInit'](){const _0x39e789=this['editor'];if(!_0x39e789['plugins']['has']('TableEditing'))return;const _0x344b65=_0x39e789['locale'],_0x271c18=_0x39e789['plugins']['get']('TrackChangesEditing');_0x271c18['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x271c18['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x271c18['registerBlockAttribute']('headingRows'),_0x271c18['registerBlockAttribute']('headingColumns'),_0x271c18['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x344b65,'FORMAT_HEADER_ROW')),_0x271c18['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x344b65,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x50420e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x13b5e3=this['editor']['plugins']['get']('TableUtils'),_0x5e43f8=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x21dfc7({showActiveMarker:_0x323091=!0x0,setDataAttribute:_0x254358=!0x0}={}){return(_0x45adae,_0x47f673,_0x20d0f7)=>{const {type:_0x12cfe3,id:_0x58104c}=_0x50420e['_splitMarkerName'](_0x47f673['markerName']),_0x1aee73=_0x50420e['getSuggestion'](_0x58104c),_0x69af8e=_0x1aee73['data'];if('formatBlock'!=_0x1aee73['type']||!_0x69af8e||'setTableColumnHeader'!=_0x69af8e['commandName'])return;if(_0x47f673['item'])return void _0x45adae['stop']();if(!_0x20d0f7['consumable']['consume'](_0x47f673['markerRange'],_0x45adae['name']))return;const _0x251989=_0x47f673['markerRange']['start']['nodeAfter'],_0x41560e=_0x47f673['markerRange']['end']['nodeBefore'],_0x51657e=_0x251989['parent']['parent'],{column:_0x3ee8dd}=_0x13b5e3['getCellLocation'](_0x251989),{column:_0x705154}=_0x13b5e3['getCellLocation'](_0x41560e);for(let _0x30ee03=_0x3ee8dd;_0x30ee03<=_0x705154;_0x30ee03++){const _0x58b27d=_0x13b5e3['createTableWalker'](_0x51657e,{'column':_0x30ee03,'includeAllSlots':!0x1});for(const _0x33ce96 of _0x58b27d){const _0x549d5b=_0x33ce96['cell'],_0x460872=_0x20d0f7['mapper']['toViewElement'](_0x549d5b);_0x20d0f7['writer']['addClass']('ck-suggestion-marker-'+_0x12cfe3,_0x460872),_0x254358&&_0x20d0f7['writer']['setAttribute']('data-suggestion',_0x58104c,_0x460872),_0x20d0f7['mapper']['bindElementToMarker'](_0x460872,_0x47f673['markerName']),_0x323091&&(_0x50420e['activeMarkers']['includes'](_0x47f673['markerName'])?_0x20d0f7['writer']['addClass']('ck-suggestion-marker--active',_0x460872):_0x20d0f7['writer']['removeClass']('ck-suggestion-marker--active',_0x460872));}}};}_0x50420e['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x5e43f8),_0x50420e['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x5e43f8),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x21dfc7(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x57be3f,_0x47f3ca,_0x5a26f3)=>{_0x5a26f3['options']['showSuggestionHighlights']&&_0x21dfc7({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x57be3f,_0x47f3ca,_0x5a26f3);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1c38cf,_0x3debe5,_0x19ef26)=>{const {type:_0x13dd2e,id:_0x70a542}=_0x50420e['_splitMarkerName'](_0x3debe5['markerName']),_0x49256b=_0x50420e['getSuggestion'](_0x70a542),_0x1f1b2d=_0x49256b['data'];if('formatBlock'!=_0x49256b['type']||!_0x1f1b2d||'setTableColumnHeader'!=_0x1f1b2d['commandName'])return;const _0x31007e=_0x19ef26['mapper']['markerNameToElements'](_0x3debe5['markerName']);if(_0x31007e){for(const _0x96fd5b of _0x31007e)_0x19ef26['writer']['removeClass']('ck-suggestion-marker-'+_0x13dd2e,_0x96fd5b),_0x19ef26['writer']['removeClass']('ck-suggestion-marker--active',_0x96fd5b),_0x19ef26['writer']['removeAttribute']('data-suggestion',_0x96fd5b),_0x19ef26['mapper']['unbindElementFromMarkerName'](_0x96fd5b,_0x3debe5['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x45cbe4=this['editor'],_0x24df2a=_0x45cbe4['locale'];function _0x203c6e(_0x1f57d3){return{'type':'format','content':o(_0x24df2a,'*Format:*\x20%0',_0x1f57d3)};}_0x45cbe4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x484faf=>{if('formatBlock'!=_0x484faf['type'])return;const {data:_0x24fcef}=_0x484faf;if(_0x24fcef){if('setTableRowHeader'==_0x24fcef['commandName']){const _0x4f480e=_0x24fcef['commandParams'][0x0]['forceValue'];return _0x203c6e(o(_0x24df2a,_0x4f480e?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x24fcef['commandName']){const _0x35de79=_0x24fcef['commandParams'][0x0]['forceValue'];return _0x203c6e(o(_0x24df2a,_0x35de79?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0x493265{['afterInit'](){const _0x1544ba=this['editor'],_0x29ddd9=_0x1544ba['locale'],_0x4f3459=_0x1544ba['plugins']['get']('TrackChangesEditing');function _0x2ea187(_0x1aa2d4){return{'type':'format','content':''+o(_0x29ddd9,'*Set\x20table\x20type:*\x20%0',_0x1aa2d4)};}_0x1544ba['plugins']['has']('TableLayout')&&(_0x4f3459['enableCommand']('insertTableLayout'),_0x4f3459['enableDefaultAttributesIntegration']('tableType'),_0x4f3459['registerBlockAttribute']('tableType'),_0x4f3459['descriptionFactory']['registerElementLabel'](_0x1f3cd3=>_0x1f3cd3['is']('element','table')&&'layout'===_0x1f3cd3['getAttribute']('tableType'),_0xbcea9e=>o(_0x29ddd9,'ELEMENT_LAYOUT_TABLE',_0xbcea9e)),_0x4f3459['descriptionFactory']['registerDescriptionCallback'](_0x25ae34=>{const {data:_0x43cf7c}=_0x25ae34;if(_0x43cf7c&&'tableType'==_0x43cf7c['key'])switch(_0x43cf7c['newValue']){case'layout':return _0x2ea187(o(_0x29ddd9,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x2ea187(o(_0x29ddd9,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](Be['map'](_0x237556=>[_0x237556,null]));class Nt extends _0x493265{static get['requires'](){return[At];}['afterInit'](){const _0x2fbf49=this['editor'];if(!_0x2fbf49['plugins']['has']('TableClipboard'))return;const _0x47e150=_0x2fbf49['plugins']['get']('TrackChangesEditing'),_0x26be8f=_0x2fbf49['plugins']['get']('TableUtils'),_0x413119=_0x2fbf49['plugins']['get'](At),_0x1a7684=_0x2fbf49['plugins']['get']('TableClipboard'),_0x2fb512=_0x2fbf49['plugins']['get']('TableSelection'),_0x24116b=_0x2fbf49['plugins']['get'](_0x2c6e46);_0x413119['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2fbf49['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2fbf49['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x376ef8=null,_0x45a4e1=!0x1;_0x24116b['on']('contentInsertion',(_0x177fac,_0x23d8d3)=>{_0x45a4e1='paste'===_0x23d8d3['method'];}),_0x2fbf49['model']['on']('insertContent',(_0x2157a8,_0x27bdd4)=>{if(!_0x45a4e1&&null===_0x2fb512['getSelectedTableCells']())return;const [_0x4a95ee,_0x429cfc]=_0x27bdd4,_0x5582c7=_0x27bdd4[_0x27bdd4['length']-0x1];_0x5582c7&&_0x5582c7['forceDefaultExecution']||_0x47e150['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x571447,_0x4ef5b5,_0x1d8555,_0x300383,_0x4554bb){if(_0x4ef5b5&&!_0x4ef5b5['is']('documentSelection'))return!0x1;const _0x542374=_0x4554bb['getTableIfOnlyTableInContent'](_0x571447,_0x1d8555);if(!_0x542374||!Ue(_0x542374,void 0x0,_0x300383))return!0x1;const _0x3474cd=_0x300383['getSelectionAffectedTableCells'](_0x1d8555['document']['selection']);if(!_0x3474cd['length'])return!0x1;const _0x37578d=_0x3474cd[0x0]['findAncestor']('table'),_0x11f821=_0x300383['getRowIndexes'](_0x3474cd),_0xf75422=_0x300383['getColumnIndexes'](_0x3474cd),_0x52facc={'startRow':_0x11f821['first'],'endRow':_0x11f821['last'],'startColumn':_0xf75422['first'],'endColumn':_0xf75422['last']};return 0x1==_0x3474cd['length']&&(_0x52facc['endRow']+=_0x300383['getRows'](_0x542374)-0x1,_0x52facc['endColumn']+=_0x300383['getColumns'](_0x542374)-0x1),Ue(_0x37578d,_0x52facc,_0x300383);}(_0x4a95ee,_0x429cfc,_0x2fbf49['model'],_0x26be8f,_0x1a7684)&&(_0x2157a8['stop'](),_0x376ef8={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2fbf49['model']['change'](()=>{_0x2fbf49['model']['insertContent'](_0x27bdd4[0x0],_0x27bdd4[0x1],_0x27bdd4[0x2],{'forceDefaultExecution':!0x0});const _0x200dd7=_0x3786a7(),{rowInsertionRanges:_0x3fe7da,columnInsertionRanges:_0x25b7d7,insertionRanges:_0x16fcf4,deletionRanges:_0x5b3af3,cells:_0x4d2a81}=_0x376ef8;_0x3fe7da['length']&&_0x47e150['markMultiRangeInsertion'](_0x3fe7da,'tablePasteRow',{'tablePasteChainId':_0x200dd7}),_0x25b7d7['length']&&_0x47e150['markMultiRangeInsertion'](_0x25b7d7,'tablePasteColumn',{'tablePasteChainId':_0x200dd7}),_0x16fcf4['length']&&(_0x47e150['markMultiRangeInsertion'](_0x16fcf4,'tablePaste',{'tablePasteChainId':_0x200dd7,'skipNestingCheck':!0x0}),_0x16fcf4['forEach'](_0x4afa0c=>_0x4afa0c['detach']?.())),_0x5b3af3['length']&&(_0x47e150['markMultiRangeDeletion'](_0x5b3af3,'tablePaste',{'tablePasteChainId':_0x200dd7,'skipNestingCheck':!0x0}),_0x5b3af3['forEach'](_0x3c384a=>_0x3c384a['detach']?.()));const _0x544945=_0x47e150['markMultiRangeBlockFormat'](_0x4d2a81['map'](({element:_0x3881fd})=>_0x3881fd),{'formatGroupId':_0x3786a7()},[],'tablePasteCell',{'tablePasteChainId':_0x200dd7});if(_0x544945){const _0x12cc24=_0x544945['getMarkers'](),_0x46bd88=[];for(const {element:_0x5a23f8,attributes:_0x215ed5}of _0x4d2a81){if(!_0x215ed5)continue;const _0x91b08e=_0x2fbf49['model']['createRangeOn'](_0x5a23f8),_0x147f66=_0x12cc24['find'](_0x2ce280=>_0x2ce280['getRange']()['isEqual'](_0x91b08e));_0x147f66&&_0x46bd88['push']([_0x147f66['name'],_0x215ed5]);}_0x46bd88['length']&&_0x544945['setAttribute']('markerAttributes',Object['fromEntries'](_0x46bd88));}_0x376ef8=null;}));},{'priority':_0x3d5b98['high']+0xa}),_0x24116b['on']('contentInsertion',()=>{_0x45a4e1=!0x1;},{'priority':'lowest'}),_0x2fbf49['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x4c5685,_0x2a83f1)=>{const [_0x495aa9,_0x42fae1,,_0x5ebada]=_0x2a83f1;if(!_0x376ef8)return;_0x4c5685['stop']();const _0x2906d1=_0x495aa9['cell'],_0xbbed50=_0x42fae1,_0x44086d=Oe(_0x2906d1),_0x4f7090=Oe(_0xbbed50);_0x4c5685['return']=_0x2906d1;let _0x5057f9=null,_0x22a400=null;if(_0x4f7090||_0x44086d){if(_0x44086d&&!_0x4f7090){_0x5ebada['remove'](_0x2906d1['getChild'](0x0));for(const _0x22185d of Array['from'](_0xbbed50['getChildren']()))_0x5ebada['insert'](_0x22185d,_0x2906d1,'end');const _0xcbe4ae=_0x376ef8['rowInsertionIndexes']['includes'](_0x495aa9['row']),_0x1bc7d1=_0x376ef8['columnInsertionIndexes']['includes'](_0x495aa9['column']);_0xcbe4ae||_0x1bc7d1||(_0x5057f9=_0x21756a['fromRange'](_0x5ebada['createRangeIn'](_0x2906d1)));}else _0x4f7090&&!_0x44086d&&(_0x22a400=_0x5ebada['createRangeIn'](_0x2906d1));}else{const _0x99c1b2=_0x5ebada['createElement']('tableCellSuggestion'),_0x1915f4=_0x5ebada['createElement']('tableCellSuggestion');_0x5ebada['wrap'](_0x5ebada['createRangeIn'](_0x2906d1),_0x1915f4),_0x5ebada['insert'](_0x99c1b2,_0x2906d1,0x0);for(const _0x235af8 of Array['from'](_0xbbed50['getChildren']()))_0x5ebada['insert'](_0x235af8,_0x99c1b2,'end');_0x5057f9=_0x21756a['fromRange'](_0x5ebada['createRangeOn'](_0x99c1b2)),_0x22a400=_0x21756a['fromRange'](_0x5ebada['createRangeOn'](_0x1915f4));}const _0x5a304f=Array['from'](_0xbbed50['getAttributes']())['filter'](([_0x2f82b9])=>Be['includes'](_0x2f82b9));_0x376ef8['cells']['push']({'element':_0x2906d1,'attributes':_0x5a304f['length']?Object['fromEntries'](_0x5a304f):null}),_0x5057f9&&_0x376ef8['insertionRanges']['push'](_0x5057f9),_0x22a400&&_0x376ef8['deletionRanges']['push'](_0x22a400);},{'priority':'high'}),_0x26be8f['on']('insertColumns',(_0x4c1edc,_0x50e74b)=>{const [_0x24ed79,_0x26ec55={}]=_0x50e74b;if(!_0x376ef8)return;const _0xc9242b=_0x26ec55['at']||0x0,_0x4a70e1=_0x26ec55['columns']||0x1;_0x376ef8['columnInsertionIndexes']=new Array(_0x4a70e1)['fill'](_0xc9242b)['map']((_0x2dd43e,_0x5939a7)=>_0x2dd43e+_0x5939a7);for(const {cell:_0x20004b}of _0x26be8f['createTableWalker'](_0x24ed79,{'startColumn':_0xc9242b,'endColumn':_0xc9242b+_0x4a70e1-0x1}))_0x376ef8['columnInsertionRanges']['push'](_0x2fbf49['model']['createRangeOn'](_0x20004b));},{'priority':'low'}),_0x26be8f['on']('insertRows',(_0x43ea42,_0x532d5)=>{const [_0x55bc6a,_0x11935e={}]=_0x532d5;if(!_0x376ef8)return;const _0x27403e=_0x11935e['at']||0x0,_0x5363e8=_0x11935e['rows']||0x1;_0x376ef8['rowInsertionIndexes']=new Array(_0x5363e8)['fill'](_0x27403e)['map']((_0x8d3b6e,_0x195ce9)=>_0x8d3b6e+_0x195ce9);for(const {cell:_0x585396}of _0x26be8f['createTableWalker'](_0x55bc6a,{'startRow':_0x27403e,'endRow':_0x27403e+_0x5363e8-0x1}))_0x376ef8['rowInsertionRanges']['push'](_0x2fbf49['model']['createRangeOn'](_0x585396));},{'priority':'low'}),_0x47e150['descriptionFactory']['registerDescriptionCallback'](_0x130c81=>{if(_0x130c81['subType']&&_0x130c81['subType']['startsWith']('tablePaste'))return _0x130c81['previous']?{}:{'type':'insertion','content':o(_0x2fbf49['locale'],'*Replace\x20table\x20cells*')};});const _0x5826ea=()=>!0x1;for(const _0x3cda54 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x47e150['_suggestionFactory']['registerCustomCallback']('insertion',_0x3cda54,'join',_0x5826ea),_0x47e150['_suggestionFactory']['registerCustomCallback']('deletion',_0x3cda54,'join',_0x5826ea),_0x47e150['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3cda54,'join',_0x5826ea);_0x47e150['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x5826ea),_0x47e150['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x6e2312,_0x42e5e8,_0x43069a)=>{const _0x493deb=_0x6e2312['map'](_0x5c01be=>_0x5c01be['getContainedElement']())['filter'](_0x5d1982=>_0x5d1982),_0x3fa056=new Map(_0x493deb['map'](_0x4fbaa8=>[_0x4fbaa8,null]));if(_0x376ef8){for(const {element:_0x3daab8,attributes:_0x1ca24c}of _0x376ef8['cells'])_0x1ca24c&&_0x3fa056['set'](_0x3daab8,_0x1ca24c);}else{if(_0x43069a&&_0x43069a['markerAttributes'])for(const [_0xc71a8e,_0x545d76]of Object['entries'](_0x43069a['markerAttributes'])){const _0x4810d7=_0x2fbf49['model']['markers']['get'](_0xc71a8e),_0x57a422=_0x4810d7?_0x4810d7['getRange']()['getContainedElement']():null;_0x57a422&&_0x3fa056['set'](_0x57a422,_0x545d76);}}_0x2fbf49['model']['change'](_0xb6258d=>{for(const [_0x478f57,_0x2c0fe1]of _0x3fa056)_0xb6258d['setAttributes']({...xe,..._0x2c0fe1},_0x478f57);});});const _0xdbe16b=(_0x13c148,_0x17880b)=>{_0x47e150['_suggestionFactory']['registerCustomCallback'](_0x13c148,'tablePaste',_0x17880b,(_0x54b464,_0x434ec5,_0x1a0611)=>{_0x2fbf49['model']['change'](_0x2d75f2=>{const _0x5b9b6b=[];for(const _0x1d0042 of _0x54b464){const _0x2ee8ec=_0x1d0042['start']['nodeAfter'];_0x2ee8ec['is']('element','tableCellSuggestion')&&_0x5b9b6b['push'](_0x2ee8ec);}_0x47e150['_suggestionFactory']['getSuggestionCallback'](_0x13c148,null,_0x17880b)(_0x54b464,_0x434ec5,_0x1a0611);for(const _0x11315a of _0x5b9b6b)'$graveyard'!=_0x11315a['root']['rootName']&&_0x2d75f2['unwrap'](_0x11315a);});});};_0xdbe16b('insertion','accept'),_0xdbe16b('insertion','discard'),_0xdbe16b('deletion','accept'),_0xdbe16b('deletion','discard'),_0x47e150['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x221a8e=>{const _0x4e6c91=_0x221a8e['map'](_0x5529e0=>_0x5529e0['getContainedElement']()),_0x216871=_0x4e6c91[0x0]['findAncestor']('table'),{minRow:_0x4b7808,maxRow:_0x35ab24}=_0x413119['_getCoordsForCells'](_0x4e6c91);_0x26be8f['removeRows'](_0x216871,{'at':_0x4b7808,'rows':_0x35ab24-_0x4b7808+0x1});}),_0x47e150['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1ee924=>{const _0x47b5e3=_0x1ee924['map'](_0xd79e9a=>_0xd79e9a['getContainedElement']()),_0x77bfde=_0x47b5e3[0x0]['findAncestor']('table'),{minColumn:_0x2aedd4,maxColumn:_0x504354}=_0x413119['_getCoordsForCells'](_0x47b5e3);_0x26be8f['removeColumns'](_0x77bfde,{'at':_0x2aedd4,'columns':_0x504354-_0x2aedd4+0x1});});const _0xbf8870=(_0x4a0cd0,_0x2b4c80)=>{if(!_0x2b4c80['subType']||!_0x2b4c80['subType']['startsWith']('tablePaste'))return;const _0xe6753f=_0x2b4c80['attributes']['tablePasteChainId'],_0x2b1388=_0x47e150['getSuggestions']()['filter'](_0x714360=>_0x714360['isInContent']&&_0x714360['attributes']&&_0x714360['attributes']['tablePasteChainId']==_0xe6753f);_0x2b1388['length']&&_0x2b4c80['getAllAdjacentSuggestions']()['length']!=_0x2b1388['length']&&_0x2b1388['reduce']((_0x5edc2c,_0x5cc9d1)=>(_0x5edc2c['next']=_0x5cc9d1,_0x5cc9d1['previous']=_0x5edc2c,_0x5cc9d1));};function _0x42bdb1(_0x36b96a,_0x57c457=!0x0){const {id:_0x321a94,authorId:_0x4a30d5}=_0x47e150['_splitMarkerName'](_0x36b96a['markerName']),_0x28ece7=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4463cb=_0x47e150['activeMarkers']['includes'](_0x36b96a['markerName']);return _0x4463cb&&_0x28ece7['push']('ck-suggestion-marker--active'),{'classes':_0x28ece7,'attributes':{'data-suggestion':_0x321a94,'data-author-id':_0x4a30d5},'priority':_0x4463cb&&_0x57c457?0xbc2:0xbb8};}_0x47e150['on']('suggestionLoaded',_0xbf8870,{'priority':'high'}),_0x47e150['on']('suggestionUnloaded',_0xbf8870,{'priority':'high'}),_0x2fbf49['model']['document']['registerPostFixer'](()=>{let _0x1b5cfe=!0x1;const _0x305bde=Array['from'](_0x2fbf49['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x459999,data:_0x57fe33}of _0x305bde){const {group:_0x5c7c61,type:_0x2bbd16,id:_0x16dcea}=_0x47e150['_splitMarkerName'](_0x459999);if('suggestion'!=_0x5c7c61||'deletion'!=_0x2bbd16||_0x57fe33['oldRange'])continue;if(!_0x47e150['hasSuggestion'](_0x16dcea))continue;const _0x4e0840=_0x47e150['getSuggestion'](_0x16dcea)['getRanges'](),_0x2d4e7d=_0x2fbf49['plugins']['get']('Users')['me'];for(const _0x35f10b of _0x47e150['getSuggestions']()){if(!_0x35f10b['isInContent']||_0x35f10b['author']!=_0x2d4e7d)continue;if('formatBlock'!=_0x35f10b['type']||'tablePasteCell'!=_0x35f10b['subType'])continue;if(_0x35f10b['getRanges']()['every'](_0x4f17b8=>_0x4e0840['some'](_0x2929b7=>_0x2929b7['containsRange'](_0x4f17b8,!0x0)))){for(const _0xa4a008 of _0x35f10b['getAllAdjacentSuggestions']())_0xa4a008['isInContent']&&(_0xa4a008['discard'](),_0x1b5cfe=!0x0);}}}return _0x1b5cfe;}),_0x2fbf49['model']['document']['registerPostFixer'](_0x50eee0=>{const _0x1c9bea=_0x2fbf49['commands']['get']('redo');if(!_0x1c9bea||!_0x1c9bea['_createdBatches']['has'](_0x50eee0['batch']))return!0x1;let _0x8b3e69=!0x1;const _0x194153=_0x2fbf49['plugins']['get']('Users')['me'],_0x4862f4=_0x2fbf49['model']['document']['differ']['getChanges'](),_0x1d0197=Array['from'](_0x2fbf49['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x59b3b2,data:_0x520843})=>{const {group:_0x453779,subType:_0x237872,authorId:_0x3c4cce}=_0x47e150['_splitMarkerName'](_0x59b3b2);return'suggestion'==_0x453779&&'tablePaste'==_0x237872&&_0x3c4cce==_0x194153['id']&&!_0x520843['oldRange'];});for(const _0x3447f4 of _0x4862f4){if('insert'!=_0x3447f4['type']||'tableCellSuggestion'!=_0x3447f4['name']||0x1!=_0x3447f4['length'])continue;const _0x49fa63=_0x50eee0['createRange'](_0x3447f4['position'],_0x3447f4['position']['getShiftedBy'](0x1));if(!_0x1d0197['find'](({data:_0x138ecd})=>_0x138ecd['newRange']['isEqual'](_0x49fa63))){for(const {name:_0x384b51,data:_0x37f2e1}of _0x1d0197)if(_0x49fa63['containsRange'](_0x37f2e1['newRange'])){_0x50eee0['updateMarker'](_0x384b51,{'range':_0x49fa63}),_0x8b3e69=!0x0;break;}}}return _0x8b3e69;}),_0x2fbf49['model']['document']['registerPostFixer'](_0x32b214=>{let _0x4886e4=!0x1;const _0x2a3e95=_0x2fbf49['plugins']['get']('Users')['me'],_0x4b52fa=_0x47e150['getSuggestions']()['filter'](_0x1f35c5=>_0x1f35c5['isInContent']&&_0x1f35c5['author']==_0x2a3e95),_0x2f415b=new Set(),_0x2b5479=new Set();for(const _0x50700f of _0x4b52fa)if('tablePaste'==_0x50700f['subType'])for(const _0x2ea497 of _0x50700f['getMarkers']()){const _0x52115c=_0x2ea497['getRange']()['getContainedElement']();if(_0x52115c){if(_0x52115c['is']('element','tableCellSuggestion')&&Oe(_0x52115c)){_0x50700f['removeMarker'](_0x2ea497['name']),_0x2f415b['add'](_0x52115c),_0x4886e4=!0x0;const _0x4152e5=_0x52115c['nextSibling'],_0x2045f9=_0x52115c['previousSibling'],_0x36f383=_0x4152e5&&_0x4152e5['is']('element','tableCellSuggestion'),_0x5ce127=_0x2045f9&&_0x2045f9['is']('element','tableCellSuggestion');_0x36f383&&!_0x2f415b['has'](_0x4152e5)&&_0x2b5479['add'](_0x4152e5),_0x5ce127&&!_0x2f415b['has'](_0x2045f9)&&_0x2b5479['add'](_0x2045f9);}else _0x52115c['is']('element','paragraph')&&_0x52115c['isEmpty']&&(_0x50700f['removeMarker'](_0x2ea497['name']),_0x4886e4=!0x0);}}else{if('tablePasteCell'==_0x50700f['subType']){if(!_0x50700f['attributes']||!_0x50700f['attributes']['tablePasteChainId'])continue;const _0x3e448c=_0x50700f['attributes']['markerAttributes'];if(_0x3e448c&&Object['keys'](_0x3e448c)['length'])continue;const _0x1303a6=_0x50700f['attributes']['tablePasteChainId'];let _0x8254aa=!0x0,_0x3a0754=!0x0;for(const _0x493a7e of _0x4b52fa)if(_0x493a7e['subType']&&_0x493a7e['subType']['startsWith']('tablePaste')){if(!_0x493a7e['attributes']['tablePasteChainId']){_0x3a0754=!0x1;break;}if(_0x493a7e['id']!=_0x50700f['id']&&_0x493a7e['attributes']['tablePasteChainId']==_0x1303a6){_0x8254aa=!0x1;break;}}_0x3a0754&&_0x8254aa&&(_0x50700f['removeMarkers'](),_0x4886e4=!0x0);}}for(const _0x494965 of _0x2f415b)_0x32b214['remove'](_0x494965);for(const _0x3f4118 of _0x2b5479)_0x32b214['unwrap'](_0x3f4118);return _0x4886e4;}),_0x2fbf49['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x46e35d=>_0x42bdb1(_0x46e35d),'converterPriority':'high'}),_0x2fbf49['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4c07f8,_0x4c6c05)=>_0x4c6c05['options']['showSuggestionHighlights']?_0x42bdb1(_0x4c07f8,!0x1):null,'converterPriority':'high'});const _0x47e2f4=_0x2fbf49['editing']['view'];this['listenTo'](_0x47e2f4['document'],'clipboardOutput',(_0x5b7902,_0x4bd8b7)=>{const _0x3af1bc=[];for(const _0x17dbe6 of _0x47e2f4['createRangeIn'](_0x4bd8b7['content'])['getItems']())_0x17dbe6['is']('element','suggestion-td')&&_0x3af1bc['push'](_0x17dbe6);_0x47e2f4['change'](_0x1ea474=>{for(const _0x177718 of _0x3af1bc)_0x1ea474['move'](_0x1ea474['createRangeIn'](_0x177718),_0x1ea474['createPositionBefore'](_0x177718)),_0x1ea474['remove'](_0x177718);});});}}function Oe(_0x2c65fa){if(_0x2c65fa['isEmpty'])return!0x0;const _0x35cbeb=_0x2c65fa['getChild'](0x0);return _0x35cbeb['is']('element','paragraph')&&_0x35cbeb['isEmpty'];}function Ue(_0x83d46d,_0x37a76a={},_0x3300d5){for(const {isAnchor:_0xe05cbf,cellHeight:_0x495ccc,cellWidth:_0x8ecc}of _0x3300d5['createTableWalker'](_0x83d46d,{'includeAllSlots':!0x0,..._0x37a76a}))if(!_0xe05cbf||0x1!=_0x495ccc||0x1!=_0x8ecc)return!0x1;return!0x0;}class Dt extends _0x493265{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x1b3500=this['editor']['plugins']['get']('TrackChangesEditing');_0x1b3500['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x1b3500['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x1b3500['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1b3500['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x1b3500['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x1b3500['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x2035a6,_0x14873f){const _0x27536f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x38e52a=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x5605ab=_0x14873f['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x35971d=_0x38e52a['getColumnGroupElement'](_0x5605ab);let _0x3dd77f=_0x35971d?_0x38e52a['getTableColumnsWidths'](_0x35971d):null,_0x16e658=_0x5605ab['getAttribute']('tableWidth')||null;const _0x251eda=_0x14873f['tableWidth']||_0x16e658,_0x2d6ed6=_0x14873f['columnWidths']||_0x3dd77f,_0x57adf7=this['editor']['plugins']['get']('Users')['me'];for(const _0x1668fd of _0x27536f['getSuggestions']()){const _0x551c29=_0x1668fd['getContainedElement']();if('resizeTable'===_0x1668fd['subType']&&_0x551c29===_0x5605ab){_0x1668fd['author']!==_0x57adf7&&_0x1668fd['discard']();const _0x4b937c=_0x1668fd['data']['commandParams'];_0x16e658=_0x4b937c[0x0]['tableWidth'],_0x3dd77f=_0x4b937c[0x0]['columnWidths'];break;}}_0x2035a6({'table':_0x5605ab,'tableWidth':_0x251eda,'columnWidths':_0x2d6ed6}),_0x27536f['markBlockFormat'](_0x5605ab,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x16e658,'columnWidths':_0x3dd77f}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x363822){if('formatBlock'!=_0x363822['type']&&'formatInline'!=_0x363822['type'])return;const {data:_0xccc6fb}=_0x363822;if(_0xccc6fb&&'resizeTable'===_0xccc6fb['formatGroupId']){const _0x57493e='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x57493e)};}}}class $t extends _0x493265{['afterInit'](){const _0x457272=this['editor'];_0x457272['plugins']['has']('Template')&&_0x457272['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x493265{['afterInit'](){const _0x2a2d12=this['editor'];if(!_0x2a2d12['commands']['get']('insertTableOfContents'))return;_0x2a2d12['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x1b1a5e=_0x2a2d12['plugins']['get']('TrackChangesEditing'),_0x203b46=_0x2a2d12['locale'];_0x1b1a5e['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3a6599=>o(_0x203b46,'ELEMENT_TABLE_OF_CONTENTS',_0x3a6599));}}class Bt extends _0x493265{['afterInit'](){const _0x587e3d=this['editor'];if(!_0x587e3d['plugins']['has']('Title'))return;const _0x5ad081=_0x587e3d['plugins']['get']('TrackChangesEditing');_0x5ad081['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x587e3d['locale'],'ELEMENT_TITLE')),_0x587e3d['model']['document']['registerPostFixer'](_0x56c1af=>{let _0x11a6cd=!0x1;const _0x32cf58=Array['from'](_0x587e3d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1abe7f,data:_0x7694e6}of _0x32cf58){const {group:_0x5557b5}=_0x5ad081['_splitMarkerName'](_0x1abe7f);if('suggestion'!==_0x5557b5||!_0x7694e6['newRange'])continue;const _0x51790d=_0x7694e6['newRange'],_0x4b0512=_0x51790d['end']['nodeBefore'];if(!_0x4b0512||!_0x4b0512['is']('element','title-content'))continue;if(!_0x51790d['start']['isTouching'](_0x51790d['end']))continue;const _0x34f979=_0x587e3d['model']['schema']['getNearestSelectionRange'](_0x51790d['end'],'forward');if(_0x34f979&&_0x34f979['isCollapsed']){const _0x1f1d5a=_0x56c1af['createRange'](_0x51790d['start'],_0x34f979['start']);_0x1f1d5a['isEqual'](_0x51790d)||(_0x56c1af['updateMarker'](_0x1abe7f,{'range':_0x1f1d5a}),_0x11a6cd=!0x0);}_0x11a6cd||(_0x56c1af['removeMarker'](_0x1abe7f),_0x11a6cd=!0x0);}return _0x11a6cd;});}}class Tt extends _0x493265{['afterInit'](){const _0x2ffbcc=this['editor'],_0x543ab3=_0x2ffbcc['plugins']['get']('TrackChangesEditing');_0x2ffbcc['plugins']['has']('Uploadcare')&&(_0x543ab3['enableCommand']('uploadcare'),_0x2ffbcc['plugins']['has']('UploadcareImageEdit')&&(_0x543ab3['enableCommand']('uploadcareImageEdit'),_0x543ab3['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x543ab3['registerBlockAttribute']('uploadcareImageId'),_0x543ab3['descriptionFactory']['registerDescriptionCallback'](_0x10b0cf=>{if('attribute'!=_0x10b0cf['type'])return;const {data:_0x37b2dd}=_0x10b0cf;return _0x37b2dd&&'uploadcareImageId'==_0x37b2dd['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x493265{['afterInit'](){const _0x5798ea=this['editor'],_0xdd1aaa=_0x5798ea['plugins']['get']('TrackChangesEditing');_0x5798ea['plugins']['has']('UndoEditing')&&(_0xdd1aaa['enableCommand']('undo'),_0xdd1aaa['enableCommand']('redo'));}}class Ot extends _0x493265{static get['requires'](){return[At];}['afterInit'](){const _0x47f52e=this['editor'];if(!_0x47f52e['plugins']['has']('TableCaptionEditing'))return;_0x47f52e['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x493265{['tableProperties'];['tableCellProperties'];constructor(_0xdb8ca4){super(_0xdb8ca4),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 _0x3b0d40=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x5c06e2 of this['tableProperties'])_0x3b0d40['enableCommand'](_0x5c06e2,(_0x129135,_0x1473f7)=>{const _0x4f37d0=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x5c06e2,[_0x4f37d0],this['tableProperties'],'tableProperties',_0x129135,_0x1473f7);});_0x3b0d40['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x3b0d40['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3b0d40['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x501ede,_0x56e471)=>this['handleDiscardAction'](this['tableProperties'],_0x501ede,_0x56e471)),_0x3b0d40['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x33fdce of this['tableCellProperties'])_0x3b0d40['enableCommand'](_0x33fdce,(_0x44e47e,_0x5c89ca)=>{const _0x5e4cbb=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x33fdce,_0x5e4cbb,this['tableCellProperties'],'tableCellProperties',_0x44e47e,_0x5c89ca);});_0x3b0d40['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x3b0d40['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3b0d40['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x50cbd7,_0x194a94)=>this['handleDiscardAction'](this['tableCellProperties'],_0x50cbd7,_0x194a94)),_0x3b0d40['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x3b0d40['descriptionFactory']['registerDescriptionCallback'](_0x10c49a=>this['handleSuggestionDescription'](_0x10c49a)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x30cc3e,_0x48277c,_0x18d9bb,_0x3b7a37,_0x30a855,_0x5e6a6d){const _0x2c86b6=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x5e6a6d['batch'],()=>{for(const _0x2b80ed of _0x48277c){if(this['_getSuggestion'](_0x2b80ed,_0x3b7a37))_0x30a855(_0x5e6a6d);else{const _0x28be9f={};for(const _0x300a0b of _0x18d9bb){const _0x359e51=_0x2b80ed['getAttribute'](_0x300a0b);void 0x0!==_0x359e51&&(_0x28be9f[_0x300a0b]=_0x359e51);}_0x30a855(_0x5e6a6d),_0x2c86b6['markBlockFormat'](_0x2b80ed,{'commandParams':[_0x28be9f]},[],_0x3b7a37);}}});}['handleDiscardAction'](_0x5b696a,_0x56fa3b,_0x8d7e84){const _0x22f9c4=_0x56fa3b[0x0]['start']['nodeAfter'],_0x4a30df=_0x8d7e84['commandParams'][0x0];this['editor']['model']['change'](_0x335f16=>{for(const _0x2cb805 of _0x5b696a)void 0x0!==_0x4a30df[_0x2cb805]?_0x335f16['setAttribute'](_0x2cb805,_0x4a30df[_0x2cb805],_0x22f9c4):_0x335f16['removeAttribute'](_0x2cb805,_0x22f9c4);});}['handleSuggestionDescription'](_0x32cb81){if(_0x32cb81['data'])switch(_0x32cb81['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x3cd998,_0x4b23ef){const _0x1802a3=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x4f963d of _0x1802a3['getSuggestions']({'skipNotAttached':!0x0})){const _0x5dcb58=_0x4f963d['getContainedElement']();if(_0x4f963d['subType']===_0x4b23ef&&_0x5dcb58===_0x3cd998)return _0x4f963d;}return null;}['_registerTablePropertiesAttributes'](){const _0x518534=this['editor']['plugins']['get']('TrackChangesEditing'),_0x453a20=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x54014b of _0x453a20){const _0x126808=_0x54014b['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x518534['registerBlockAttribute'](_0x54014b),_0x518534['descriptionFactory']['registerAttributeLabel'](_0x54014b,o(this['editor']['locale'],'FORMAT_'+_0x126808));}}}class Rt extends _0x493265{['afterInit'](){const _0x31e98c=this['editor'];if(!_0x31e98c['plugins']['has']('LineHeight'))return;const _0x107cef=_0x31e98c['plugins']['get']('TrackChangesEditing'),_0x19575e=_0x31e98c['locale'];_0x107cef['enableDefaultAttributesIntegration']('lineHeight'),_0x107cef['registerBlockAttribute']('lineHeight'),_0x107cef['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x19575e,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x493265{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x36327f,_0x109e96,O,E,R,U,V,G,F,L,J,K,z,W,Q,X,Y,Z,tt,it,nt,et,ot,st,rt,at,ct,ft,ht,mt,ut,H,Rt,q,gt,lt,dt,pt,kt,wt,bt,yt,jt,St,It,At,_t,Ct,vt,Ot,Nt,Dt,Mt,Et,$t,Bt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x16382c){super(_0x16382c),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x5452bc,_0x5aec13,_0x235eb6,_0x5b54b7)=>{this['_model']['change'](()=>{for(const _0x574abc of[..._0x5b54b7,..._0x235eb6])this['_model']['markers']['has'](_0x574abc)&&_0x16382c['editing']['reconvertMarker'](_0x574abc);});}),this['descriptionFactory']=new x(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Vt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x16382c['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x16382c['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x16382c['config']['get']('trackChanges.trackFormatChanges'),_0x16382c['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x16382c['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x16382c,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x53bb7b=this['editor'],_0xd61e9f=(_0xc884b5,_0x1ddb6a)=>{if('attribute'!=_0xc884b5)return'ck-suggestion-marker-'+_0xc884b5;const _0x3f1039=_0x1ddb6a['split']('|')[0x0];return this['_isBlockAttribute'](_0x3f1039)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x53bb7b['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x6125f7=>{const {id:_0x1767bc,authorId:_0x96a5c9,type:_0x5977ba,subType:_0x3b1bda}=this['_splitMarkerName'](_0x6125f7['markerName']),_0x2534e5=['ck-suggestion-marker',_0xd61e9f(_0x5977ba,_0x3b1bda)];let _0x1605b7=0xbb8;return this['activeMarkers']['includes'](_0x6125f7['markerName'])&&(_0x2534e5['push']('ck-suggestion-marker--active'),_0x1605b7=0xbc2),'deletion'==_0x5977ba&&(_0x1605b7+=0x5),{'classes':_0x2534e5,'attributes':{'data-suggestion':_0x1767bc,'data-author-id':_0x96a5c9},'priority':_0x1605b7};}}),_0x53bb7b['conversion']['for']('dataDowncast')['add'](_0xa2b498=>{_0xa2b498['on']('addMarker:suggestion',(_0x146650,_0x4fee82,_0x423ab7)=>{if(!_0x423ab7['options']['showSuggestionHighlights'])return;const _0x265d0b=_0x4fee82['item'];if(!_0x265d0b)return;const _0x17c49e=_0x423ab7['mapper']['toViewElement'](_0x265d0b);_0x53bb7b['model']['schema']['isObject'](_0x265d0b)&&_0x17c49e&&!_0x17c49e['getCustomProperty']('widget')&&_0x17c49e['is']('containerElement')&&_0x331d2a(_0x17c49e,_0x423ab7['writer']);},{'priority':'high'});}),_0x53bb7b['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x47815d,_0x4b0039)=>{if(!_0x4b0039['options']['showSuggestionHighlights'])return null;const {id:_0x3583aa,authorId:_0x53569a,type:_0x2b8b40,subType:_0x3ae30b}=this['_splitMarkerName'](_0x47815d['markerName']);return{'classes':['ck-suggestion-marker',_0xd61e9f(_0x2b8b40,_0x3ae30b)],'priority':0xbb8,'attributes':{'data-suggestion':_0x3583aa,'data-author-id':_0x53569a}};}});const _0x1b7a05=({showActiveMarkers:_0x17a5a0=!0x0,isAttributeSuggestion:_0x4b4988=!0x1}={})=>(_0x125171,_0x1f39b3,_0x15a136)=>{if(!_0x1f39b3['item'])return;const {id:_0x3d0d88,authorId:_0x529ae7}=this['_splitMarkerName'](_0x1f39b3['markerName']);if(_0x4b4988){const _0x6eab43=this['_suggestions']['get'](_0x3d0d88),_0x3367ad=this['_getAttributeKey'](_0x6eab43);if(!this['_isBlockAttribute'](_0x3367ad))return;}if(_0x1f39b3['item']['is']('selection'))return void _0x15a136['consumable']['consume'](_0x1f39b3['item'],_0x125171['name']);const _0x4e3f59=_0x15a136['mapper']['toViewElement'](_0x1f39b3['item']);if(_0x1f39b3['item']['is']('element')&&_0x53bb7b['model']['schema']['isBlock'](_0x1f39b3['item'])&&!_0x4e3f59['getCustomProperty']('addHighlight')){_0x15a136['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4e3f59),_0x15a136['writer']['setAttribute']('data-suggestion',_0x3d0d88,_0x4e3f59),_0x15a136['writer']['setAttribute']('data-author-id',_0x529ae7,_0x4e3f59),_0x15a136['mapper']['bindElementToMarker'](_0x4e3f59,_0x1f39b3['markerName']),_0x17a5a0&&(this['activeMarkers']['includes'](_0x1f39b3['markerName'])?_0x15a136['writer']['addClass']('ck-suggestion-marker--active',_0x4e3f59):_0x15a136['writer']['removeClass']('ck-suggestion-marker--active',_0x4e3f59));for(const _0x583d3d of _0x53bb7b['model']['createRangeIn'](_0x1f39b3['item'])['getItems']())_0x15a136['consumable']['consume'](_0x583d3d,_0x125171['name']);_0x15a136['consumable']['consume'](_0x1f39b3['item'],_0x125171['name']);}};_0x53bb7b['conversion']['for']('dataDowncast')['add'](_0x4f5386=>{_0x4f5386['on']('addMarker:suggestion:formatBlock',(_0x502424,_0x3377ea,_0x23f9e9)=>{_0x23f9e9['options']['showSuggestionHighlights']&&_0x1b7a05({'showActiveMarkers':!0x1})(_0x502424,_0x3377ea,_0x23f9e9);},{'priority':'highest'});}),_0x53bb7b['conversion']['for']('dataDowncast')['add'](_0x30d42e=>{_0x30d42e['on']('addMarker:suggestion:attribute',(_0x3b5d73,_0x66bb4e,_0x50dcfe)=>{_0x50dcfe['options']['showSuggestionHighlights']&&_0x1b7a05({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x3b5d73,_0x66bb4e,_0x50dcfe);},{'priority':'highest'});}),_0x53bb7b['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x5c214e,_0x504b66)=>{if(_0x504b66['options']['showSuggestionHighlights']){const {id:_0x1a77da,authorId:_0xf65432}=this['_splitMarkerName'](_0x5c214e);return _0x5c214e['includes'](':split')||_0x5c214e['includes'](':merge')?{'group':'suggestion','name':_0x5c214e['substr'](0xb),'attributes':{'data-suggestion':_0x1a77da,'data-author-id':_0xf65432}}:null;}return{'group':'suggestion','name':_0x5c214e['substr'](0xb)};}}),_0x53bb7b['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1e6fa9,{writer:_0xde0020})=>{let _0x3b6ba3='suggestion:'+_0x1e6fa9['getAttribute']('suggestion-type')+':'+_0x1e6fa9['getAttribute']('id');return _0x1e6fa9['getAttribute']('marker-count')&&(_0x3b6ba3+=':'+_0x1e6fa9['getAttribute']('marker-count')),_0xde0020['createElement']('$marker',{'data-name':_0x3b6ba3});}}),_0x53bb7b['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x53bb7b['conversion']['for']('editingDowncast')['add'](_0x3119da=>{_0x3119da['on']('addMarker:suggestion:formatBlock',_0x1b7a05(),{'priority':'high'});}),_0x53bb7b['conversion']['for']('editingDowncast')['add'](_0xf36e48=>{_0xf36e48['on']('addMarker:suggestion:attribute',_0x1b7a05({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x53bb7b['conversion']['for']('editingDowncast')['add'](_0x4788ea=>{_0x4788ea['on']('removeMarker:suggestion:formatBlock',(_0x60ab2d,_0x55e414,_0x1336f3)=>{const _0x561f8c=_0x1336f3['mapper']['markerNameToElements'](_0x55e414['markerName']);if(_0x561f8c){for(const _0x22ea41 of _0x561f8c)_0x22ea41['getCustomProperty']('addHighlight')||(_0x1336f3['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x22ea41),_0x1336f3['writer']['removeAttribute']('data-suggestion',_0x22ea41),_0x1336f3['writer']['removeAttribute']('data-author-id',_0x22ea41),_0x1336f3['mapper']['unbindElementFromMarkerName'](_0x22ea41,_0x55e414['markerName']));}},{'priority':'high'});}),_0x53bb7b['conversion']['for']('editingDowncast')['add'](_0x3eead6=>{_0x3eead6['on']('removeMarker:suggestion:attribute',(_0x26778c,_0x1315e7,_0x1f0203)=>{const _0x37818d=_0x1f0203['mapper']['markerNameToElements'](_0x1315e7['markerName']);if(!_0x37818d)return;const {id:_0x44ef31}=this['_splitMarkerName'](_0x1315e7['markerName']),_0x87c1a0=this['_suggestions']['get'](_0x44ef31),_0x582e8b=this['_getAttributeKey'](_0x87c1a0);if(this['_isBlockAttribute'](_0x582e8b)){for(const _0x12efa of _0x37818d)_0x12efa['getCustomProperty']('addHighlight')||(_0x1f0203['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x12efa),_0x1f0203['writer']['removeAttribute']('data-suggestion',_0x12efa),_0x1f0203['writer']['removeAttribute']('data-author-id',_0x12efa),_0x1f0203['mapper']['unbindElementFromMarkerName'](_0x12efa,_0x1315e7['markerName']));}},{'priority':'high'});}),_0x53bb7b['model']['document']['registerPostFixer'](_0x2d0080=>{let _0x24a89f=!0x1;const _0x444ea9=Array['from'](_0x53bb7b['model']['document']['differ']['getChangedMarkers']()),_0x3625a5=new Set();for(const {name:_0x5036b1,data:_0x220341}of _0x444ea9){const {group:_0x108005,type:_0x3a6a8a,subType:_0x928148,id:_0x34deea}=this['_splitMarkerName'](_0x5036b1);if('suggestion'!==_0x108005)continue;const _0xee08d=_0x928148?'suggestion:'+_0x3a6a8a+':'+_0x928148+':'+_0x34deea:'suggestion:'+_0x3a6a8a+':'+_0x34deea,_0x2328f5=_0x53bb7b['model']['markers']['getMarkersGroup'](_0xee08d),_0x30b18e=_0x53bb7b['model']['markers']['get'](_0x5036b1),_0x1de630=this['_suggestions']['get'](_0x34deea);if(null!=_0x220341['newRange']){'formatInline'==_0x3a6a8a&&(_0x24a89f=_0x24a89f||Gt(_0x220341['newRange'],_0x5036b1,_0x2d0080,_0x53bb7b['model']['schema']));const _0x4b6c27='attribute'==_0x3a6a8a&&this['_isBlockAttribute'](_0x928148['split']('|')[0x0]),_0x5262a5='attribute'==_0x3a6a8a&&this['_isInlineAttribute'](_0x928148['split']('|')[0x0]);if(_0x220341['newRange']['isCollapsed']||'$graveyard'==_0x220341['newRange']['root']['rootName']||'formatBlock'==_0x3a6a8a&&!Jt(_0x220341['newRange'])||_0x4b6c27&&!Jt(_0x220341['newRange'])||_0x5262a5&&Kt(_0x220341['newRange'])||'deletion'==_0x3a6a8a&&Kt(_0x220341['newRange'])||_0x30b18e&&Ht(_0x30b18e,_0x2328f5))_0x2d0080['removeMarker'](_0x5036b1),_0x24a89f=!0x0;else{if(!_0x1de630||!_0x1de630['isInContent'])continue;if(_0x220341['newRange']&&_0x220341['oldRange']&&_0x220341['newRange']['isEqual'](_0x220341['oldRange']))continue;_0x3625a5['add'](_0x1de630);}}}return _0x3625a5['size']>0x0&&(_0x24a89f=!!this['_joinWithAdjacentSuggestions'](_0x3625a5)||_0x24a89f),_0x24a89f;}),_0x53bb7b['model']['document']['registerPostFixer'](_0x357a7e=>{let _0x136236=!0x1;for(const _0xd45164 of _0x53bb7b['model']['document']['differ']['getChanges']())if('insert'==_0xd45164['type'])for(const _0x4f966c of this['_suggestions']['values']()){if(_0x4f966c['isMultiRange']||!_0x4f966c['isInContent'])continue;const _0x30538e='formatBlock'==_0x4f966c['type'],_0x123e0e=this['_getAttributeKey'](_0x4f966c),_0x2a059c=_0x123e0e&&this['_isBlockAttribute'](_0x123e0e);if(!_0x30538e&&!_0x2a059c)continue;const _0xf5df6c=_0x4f966c['getFirstRange']();if(_0xf5df6c['start']['parent']!=_0xf5df6c['end']['parent']&&!_0xf5df6c['end']['isAtEnd']){const _0x56a131=_0x53bb7b['model']['createPositionAt'](_0xf5df6c['start']['nodeAfter'],'end'),_0x97e7e1=_0x53bb7b['model']['createRange'](_0xf5df6c['start'],_0x56a131);_0x357a7e['updateMarker'](_0x4f966c['getFirstMarker'](),{'range':_0x97e7e1}),_0x136236=!0x0;}}return _0x136236;}),_0x53bb7b['model']['document']['registerPostFixer'](_0xf684df=>this['_processAttributeChanges'](_0xf684df)),_0x53bb7b['model']['document']['registerPostFixer'](_0x3ae48f=>!_0x3ae48f['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x3ae48f)),_0x53bb7b['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x53bb7b['model']['document']['on']('change:data',(_0x7d09d8,_0x2845db)=>{if(!_0x2845db['isLocal']||_0x2845db['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x46245a=_0x53bb7b['model']['document']['differ']['getChanges']();if(0x0==_0x46245a['length'])return;const _0x3aa29c=[],_0x2546d2=_0x46245a['filter'](_0x18fff2=>'attribute'==_0x18fff2['type']),_0x412d0f=_0x46245a['filter'](_0x36276f=>'insert'==_0x36276f['type']&&'$text'!=_0x36276f['name']);for(const _0x323fb2 of _0x2546d2)this['_isRegisteredAttribute'](_0x323fb2['attributeKey'])&&_0x3aa29c['push']({'key':_0x323fb2['attributeKey'],'newValue':_0x323fb2['attributeNewValue'],'oldValue':_0x323fb2['attributeOldValue'],'range':qt(_0x323fb2['range'],_0x53bb7b['model'])});for(const _0x346e3b of _0x412d0f){if('rename'!=_0x346e3b['action']&&'refresh'!=_0x346e3b['action'])continue;const _0x308de5=zt(_0x346e3b['position']['nodeAfter'],_0x53bb7b['model']),_0x53ef78=_0x346e3b['before'];'rename'==_0x346e3b['action']&&_0x3aa29c['push']({'key':m,'newValue':_0x346e3b['name'],'oldValue':_0x53ef78['name'],'range':_0x308de5});for(const [_0xfd4c26,_0x4f371a]of _0x53ef78['attributes']){if(!this['_isRegisteredAttribute'](_0xfd4c26))continue;const _0x326fe5=_0x346e3b['attributes']['get'](_0xfd4c26);_0x4f371a!==_0x326fe5&&_0x3aa29c['push']({'key':_0xfd4c26,'newValue':_0x326fe5,'oldValue':_0x4f371a,'range':_0x308de5});}for(const [_0x36d6d4,_0x1f3154]of _0x346e3b['attributes'])this['_isRegisteredAttribute'](_0x36d6d4)&&(_0x53ef78['attributes']['has'](_0x36d6d4)||_0x3aa29c['push']({'key':_0x36d6d4,'newValue':_0x1f3154,'oldValue':null,'range':_0x308de5}));}0x0!=_0x3aa29c['length']&&_0x53bb7b['model']['enqueueChange'](_0x2845db,_0x37b2d5=>{const _0x496edc=_0x3786a7();for(const {range:_0x4d612e,key:_0x29c6e7,oldValue:_0xe5917c,newValue:_0x442137}of _0x3aa29c)this['markAttributeChange'](_0x4d612e,_0x29c6e7,_0xe5917c,_0x442137,{'groupId':_0x496edc});this['_reduceExistingSuggestions'](_0x37b2d5,_0x3aa29c);});},{'priority':'lowest'}),_0x53bb7b['model']['markers']['on']('update:suggestion',(_0x56e05b,_0x4ff3d5,_0x2e2330)=>{if(null==_0x2e2330){const {id:_0x42c2b8}=this['_splitMarkerName'](_0x4ff3d5['name']),_0x29bf0c=this['_suggestions']['get'](_0x42c2b8);_0x29bf0c&&_0x29bf0c['addMarkerName'](_0x4ff3d5['name']);}}),_0x53bb7b['model']['document']['on']('change:data',()=>{const _0x2f4de5=Array['from'](_0x53bb7b['model']['document']['differ']['getChangedMarkers']())['filter'](_0x28d372=>'suggestion'===this['_splitMarkerName'](_0x28d372['name'])['group']);if(0x0===_0x2f4de5['length'])return;_0x2f4de5['sort']((_0x128be3,_0x1ff23c)=>{const _0x3909b7=_0x128be3['data']['oldRange'],_0x318c39=_0x1ff23c['data']['oldRange'];return null===_0x3909b7&&null===_0x318c39?0x0:null===_0x3909b7&&null!==_0x318c39?-0x1:null!==_0x3909b7&&null===_0x318c39?0x1:_0x3909b7['start']['isBefore'](_0x318c39['start'])?-0x1:0x1;});const _0x1580c6=new Set(),_0xbaf1a7=new Set();for(const {name:_0xd93fcb,data:_0x260629}of _0x2f4de5){const {id:_0x55d461}=this['_splitMarkerName'](_0xd93fcb);if(null===_0x260629['oldRange']){const _0x5f3df1=this['_handleNewSuggestionMarker'](_0xd93fcb);_0xbaf1a7['add'](_0x5f3df1);}else{const _0x5e3736=this['_suggestions']['get'](_0x55d461);null!==_0x260629['newRange']||_0x5e3736['isInContent']?(_0x1580c6['add'](_0x5e3736['head']),_0xbaf1a7['add'](_0x5e3736)):this['_removeSuggestion'](_0x5e3736);}}_0xbaf1a7['size']>0x0&&this['_refreshSuggestionsChain'](_0xbaf1a7);for(const _0x110bef of _0x1580c6)this['fire']('suggestionChanged',_0x110bef);}),_0x53bb7b['model']['on']('applyOperation',(_0x52355d,_0x41f1ce)=>{const _0x198682=_0x41f1ce[0x0];if(!this['_suggestions']['size'])return;if(!_0x198682['isDocumentOperation'])return;if(_0x198682['batch']['isUndo']||!_0x198682['batch']['isLocal'])return;let _0x4756c5,_0x3b5909;switch(_0x198682['type']){case'insert':_0x4756c5=_0x53bb7b['model']['createPositionAt'](_0x198682['position']),_0x3b5909=_0x4756c5['getShiftedBy'](_0x198682['howMany']);break;case'split':_0x4756c5=_0x53bb7b['model']['createPositionAt'](_0x198682['splitPosition']),_0x3b5909=_0x53bb7b['model']['createPositionAt'](_0x198682['moveTargetPosition']);break;case'move':_0x4756c5=_0x53bb7b['model']['createPositionAt'](_0x198682['targetPosition']),_0x3b5909=_0x4756c5['getShiftedBy'](_0x198682['howMany']);break;default:return;}const _0x497a05=_0x53bb7b['model']['createRange'](_0x4756c5,_0x3b5909);_0x53bb7b['model']['change'](()=>{for(const {suggestion:_0x2399c1,meta:_0x438e07}of this['_findSuggestions'](_0x497a05)){if(_0x2399c1['isMultiRange'])continue;if('formatInline'==_0x2399c1['type'])continue;const _0x2333c4=this['_getAttributeKey'](_0x2399c1);if(_0x2333c4&&this['_isBlockAttribute'](_0x2333c4)&&'split'!=_0x198682['type'])continue;const _0x275fb1=_0x2399c1['data']&&_0x2399c1['data']['multipleBlocks'];('formatBlock'!=_0x2399c1['type']||'split'==_0x198682['type']&&!_0x275fb1)&&(_0x438e07['containsRangeInObject']||'insertion'==_0x2399c1['type']&&_0x438e07['isOwn']||_0x2399c1['getFirstRange']()['containsRange'](_0x497a05)&&this['_breakSuggestionMarker'](_0x2399c1,_0x4756c5,_0x3b5909));}});},{'priority':'lowest'}),_0x53bb7b['model']['on']('deleteContent',(_0x41c53a,_0x2cc247)=>{const _0x23e12e=_0x2cc247[0x0],_0x59b8e6=_0x2cc247[0x1];if(_0x59b8e6&&_0x59b8e6['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x23e12e['isCollapsed'])return;const _0x298437=_0x53bb7b['model']['schema'],{start:_0x43e0e7,end:_0x4e89e2}=_0x23e12e['getFirstRange'](),_0xb16ff9=_0x43e0e7['nodeAfter']&&_0x298437['isLimit'](_0x43e0e7['nodeAfter'])?null:_0x298437['getNearestSelectionRange'](_0x43e0e7,'forward'),_0x5001f2=_0x4e89e2['nodeBefore']&&_0x298437['isLimit'](_0x4e89e2['nodeBefore'])?null:_0x298437['getNearestSelectionRange'](_0x4e89e2,'backward'),_0x4dd735=_0x53bb7b['model']['createRange'](_0xb16ff9?_0xb16ff9['start']:_0x43e0e7,_0x5001f2?_0x5001f2['end']:_0x4e89e2);_0x53bb7b['model']['change'](_0x590ace=>{this['markDeletion'](_0x4dd735);const _0x4587c0=_0x53bb7b['model']['schema']['getNearestSelectionRange'](_0x4dd735['start']);_0x23e12e['is']('documentSelection')?_0x590ace['setSelection'](_0x4587c0):_0x23e12e['setTo'](_0x4587c0);}),_0x41c53a['stop']();},{'priority':_0x3d5b98['normal']+0xa}),_0x53bb7b['model']['on']('insertContent',(_0x45824a,_0x5daa13)=>{const _0x388d5e=_0x5daa13[_0x5daa13['length']-0x1];_0x388d5e&&_0x388d5e['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x53bb7b['model']['change'](()=>{let _0xd93d63=_0x53bb7b['model']['insertContent'](_0x5daa13[0x0],_0x5daa13[0x1],_0x5daa13[0x2],{'forceDefaultExecution':!0x0});if(!_0xd93d63)return;_0x45824a['return']=_0xd93d63['clone']();const _0x41e0f8=_0xd93d63['end']['nodeBefore'],_0x4eab71=_0x53bb7b['model']['schema'];_0x41e0f8&&_0x4eab71['isBlock'](_0x41e0f8)&&!_0x4eab71['isObject'](_0x41e0f8)&&(_0xd93d63=_0x53bb7b['model']['createRange'](_0xd93d63['start'],_0x53bb7b['model']['createPositionAt'](_0x41e0f8,'end'))),this['markInsertion'](_0xd93d63);}),_0x45824a['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0xb2fa47=new D(_0x53bb7b,this['_suggestions']);_0x53bb7b['commands']['add']('acceptSuggestion',_0xb2fa47),this['enableCommand']('acceptSuggestion');const _0x4b98c8=new $(_0x53bb7b,this['_suggestions']);_0x53bb7b['commands']['add']('discardSuggestion',_0x4b98c8),this['enableCommand']('discardSuggestion'),_0x53bb7b['commands']['add']('acceptAllSuggestions',new M(_0x53bb7b,_0xb2fa47,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x53bb7b['commands']['add']('discardAllSuggestions',new M(_0x53bb7b,_0x4b98c8,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x53bb7b['commands']['add']('acceptSelectedSuggestions',new B(_0x53bb7b,_0xb2fa47,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x53bb7b['commands']['add']('discardSelectedSuggestions',new B(_0x53bb7b,_0x4b98c8,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1f662b=_0x53bb7b['plugins']['get']('CommentsRepository');this['listenTo'](_0x1f662b,'addComment',(_0x36bc60,{threadId:_0xa38021})=>{const _0x576213=this['_suggestions']['get'](_0xa38021);_0x576213&&_0x576213['commentThread']&&0x1===_0x576213['commentThread']['length']&&this['_updateSuggestionData'](_0xa38021,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1f662b,'removeComment',(_0x19f76c,{threadId:_0x45f888})=>{const _0x1e5a5f=this['_suggestions']['get'](_0x45f888);_0x1e5a5f&&_0x1e5a5f['commentThread']&&!_0x1e5a5f['commentThread']['length']&&this['_updateSuggestionData'](_0x45f888,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x36c30c){const _0x230633=_0x203c74([0x49,0x48,0x6a,0x68,0x44,0x57,0x76,0x31,0x61,0x74,0x54,0x52,0x58,0x6f,0x33,0x4d,0x51,0x53,0x32,0x6c,0x36,0x38,0x6b,0x56,0x4c,0x47,0x55,0x5a,0x75,0x4b,0x77,0x37,0x78,0x6d,0x34,0x64,0x70,0x4e,0x35,0x79,0x62,0x63,0x4a,0x6e,0x73,0x50,0x4f,0x72,0x30,0x59,0x71,0x66,0x7a,0x43,0x69,0x65,0x42,0x67,0x46,0x45,0x39,0x41]),_0x57d51b=0x742d58d8,_0x5ee7f7=0x742a37b0^_0x57d51b,_0x4867cb=window[_0x203c74([0x44,0x61,0x74,0x65])][_0x203c74([0x6e,0x6f,0x77])](),_0x9464e7=_0x36c30c[_0x203c74([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x28a1cf=new window[(_0x203c74([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c206d=>{_0x9464e7[_0x203c74([0x6f,0x6e,0x63,0x65])](_0x203c74([0x72,0x65,0x61,0x64,0x79]),_0x5c206d);}),_0x3e3aec={[_0x203c74([0x6b,0x74,0x79])]:_0x203c74([0x45,0x43]),[_0x203c74([0x75,0x73,0x65])]:_0x203c74([0x73,0x69,0x67]),[_0x203c74([0x63,0x72,0x76])]:_0x203c74([0x50,0x2d,0x32,0x35,0x36]),[_0x203c74([0x78])]:_0x203c74([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]),[_0x203c74([0x79])]:_0x203c74([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]),[_0x203c74([0x61,0x6c,0x67])]:_0x203c74([0x45,0x53,0x32,0x35,0x36])},_0x72c43d=_0x9464e7[_0x203c74([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x203c74([0x67,0x65,0x74])](_0x203c74([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xa986b3(){let _0x5b7f14,_0x4116d3=null,_0x3b0813=null;try{if(_0x72c43d==_0x203c74([0x47,0x50,0x4c]))return _0x203c74([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5b7f14=_0x3e8e6a(),!_0x5b7f14)return _0x203c74([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5b7f14[_0x203c74([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3b0813=_0xbb6bfa(_0x5b7f14[_0x203c74([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5b7f14[_0x203c74([0x6a,0x74,0x69])])),await _0x1de88f()?_0x256a54()?_0x361b56()?_0x203c74([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5e90d7()?(_0x5b7f14[_0x203c74([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x203c74([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4116d3=_0x47b7c4(_0x203c74([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5b7f14[_0x203c74([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x203c74([0x74,0x72,0x69,0x61,0x6c])&&(_0x4116d3=_0x47b7c4(_0x203c74([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x590ea1()):_0x203c74([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x203c74([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x203c74([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x203c74([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x361b56(){const _0x1fab2f=[_0x203c74([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x203c74([0x74,0x72,0x69,0x61,0x6c])][_0x203c74([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b7f14[_0x203c74([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4867cb/0x3e8:0xe10*_0x5ee7f7;return _0x5b7f14[_0x203c74([0x65,0x78,0x70])]<_0x1fab2f;}function _0x256a54(){const _0x518d9c=_0x5b7f14[_0x203c74([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x518d9c)return!0x1;if(_0x518d9c[_0x203c74([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x203c74([0x2a])))return!0x0;if(_0x518d9c[_0x203c74([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x203c74([0x54,0x43])))return!0x0;if(_0x518d9c[_0x203c74([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x203c74([0x52,0x54,0x43]))){if(_0x3d4219())return!0x0;if(_0x4e5b7e()||_0x3e5b45())return!0x0;}return!0x1;}function _0x5e90d7(){const _0x2e3500=_0x5b7f14[_0x203c74([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2e3500||0x0==_0x2e3500[_0x203c74([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2b6ec3}=new URL(window[_0x203c74([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2e3500[_0x203c74([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b6ec3))return!0x0;const _0x4d6251=_0x2b6ec3[_0x203c74([0x73,0x70,0x6c,0x69,0x74])](_0x203c74([0x2e]));return _0x2e3500[_0x203c74([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x114f05=>_0x114f05[_0x203c74([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x203c74([0x2a])))[_0x203c74([0x6d,0x61,0x70])](_0x28ed3e=>_0x28ed3e[_0x203c74([0x73,0x70,0x6c,0x69,0x74])](_0x203c74([0x2e])))[_0x203c74([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1683f0=>_0x1683f0[_0x203c74([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4d6251[_0x203c74([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x203c74([0x6d,0x61,0x70])](_0x4525c5=>Array(_0x4d6251[_0x203c74([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4525c5[_0x203c74([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x203c74([0x66,0x69,0x6c,0x6c])](_0x4525c5[0x0]===_0x203c74([0x2a])?_0x203c74([0x2a]):'')[_0x203c74([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4525c5))[_0x203c74([0x73,0x6f,0x6d,0x65])](_0x2fb158=>_0x4d6251[_0x203c74([0x65,0x76,0x65,0x72,0x79])]((_0x40b11e,_0x68ac86)=>_0x2fb158[_0x68ac86]===_0x40b11e||_0x2fb158[_0x68ac86]===_0x203c74([0x2a])));}function _0x590ea1(){return _0x4116d3&&_0x3b0813?new window[(_0x203c74([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x559e82,_0x482e26)=>{_0x4116d3[_0x203c74([0x74,0x68,0x65,0x6e])](_0x559e82,_0x482e26),_0x3b0813[_0x203c74([0x74,0x68,0x65,0x6e])](_0x11f111=>{_0x11f111!=_0x203c74([0x56,0x61,0x6c,0x69,0x64])&&_0x559e82(_0x11f111);},_0x482e26);}):_0x4116d3||_0x3b0813||_0x203c74([0x56,0x61,0x6c,0x69,0x64]);}}function _0xbb6bfa(_0x5487d6,_0x5001cb){return new window[(_0x203c74([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x115926=>{if(_0x26658a())return _0x115926(_0x203c74([0x56,0x61,0x6c,0x69,0x64]));_0xd2b719(),_0x9464e7[_0x203c74([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x203c74([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x64ea19=!0x1;const _0x29d800=_0x3786a7();function _0x31c9f0(_0x4046b3){return!!_0x4046b3&&(typeof _0x4046b3===_0x203c74([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4046b3===_0x203c74([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4046b3[_0x203c74([0x74,0x68,0x65,0x6e])]===_0x203c74([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4046b3[_0x203c74([0x63,0x61,0x74,0x63,0x68])]===_0x203c74([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x26667a(_0x359c03){_0x39e9d4(_0x359c03)[_0x203c74([0x74,0x68,0x65,0x6e])](_0x3d619b=>{if(!_0x3d619b||_0x3d619b[_0x203c74([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x203c74([0x6f,0x6b]))return _0x203c74([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x42568c(_0x5d2c08(_0x29d800+_0x5001cb))!=_0x3d619b[_0x203c74([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x203c74([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x203c74([0x56,0x61,0x6c,0x69,0x64]);})[_0x203c74([0x74,0x68,0x65,0x6e])](_0x2b8a0b=>(_0x1b2424(),_0x2b8a0b),()=>{const _0x1f3c94=_0x32c675();return null==_0x1f3c94?(_0x1b2424(),_0x203c74([0x56,0x61,0x6c,0x69,0x64])):_0x203c74(_0x4867cb-_0x1f3c94>(0x5021dcd8^_0x57d51b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x203c74([0x74,0x68,0x65,0x6e])](_0x115926)[_0x203c74([0x63,0x61,0x74,0x63,0x68])](()=>{_0x115926(_0x203c74([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x32cea7=0x741bb658^_0x57d51b;function _0x1b2424(){const _0x5abfb2=_0x203c74([0x6c,0x6c,0x63,0x74,0x2d])+_0x42568c(_0x5d2c08(_0x5487d6)),_0x3402cd=_0x1b03aa(_0x42568c(window[_0x203c74([0x4d,0x61,0x74,0x68])][_0x203c74([0x63,0x65,0x69,0x6c])](_0x4867cb/_0x32cea7)));window[_0x203c74([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x203c74([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5abfb2,_0x3402cd);}function _0x32c675(){const _0xadf9f4=_0x203c74([0x6c,0x6c,0x63,0x74,0x2d])+_0x42568c(_0x5d2c08(_0x5487d6)),_0x28bde7=window[_0x203c74([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x203c74([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xadf9f4);return _0x28bde7?window[_0x203c74([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1b03aa(_0x28bde7),0x10)*_0x32cea7:null;}function _0x39e9d4(_0x406b6a){return new window[(_0x203c74([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x43f7a4,_0x4062a7)=>{_0x406b6a[_0x203c74([0x74,0x68,0x65,0x6e])](_0x43f7a4,_0x4062a7),window[_0x203c74([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4062a7,0x742c8c18^_0x57d51b);});}}_0x9464e7[_0x203c74([0x6f,0x6e])](_0x203c74([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x167579,_0xf883f1)=>{if(_0xf883f1[0x0]!=_0x5487d6)return _0x115926(_0x203c74([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xf883f1[0x1]={..._0xf883f1[0x1],[_0x203c74([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x29d800};},{[_0x203c74([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x203c74([0x68,0x69,0x67,0x68])}),_0x9464e7[_0x203c74([0x6f,0x6e])](_0x203c74([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x53c032=>{_0x31c9f0(_0x53c032[_0x203c74([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x64ea19=!0x0,_0x26667a(_0x53c032[_0x203c74([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x203c74([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x203c74([0x6c,0x6f,0x77])}),_0x28a1cf[_0x203c74([0x74,0x68,0x65,0x6e])](()=>{_0x64ea19||_0x115926(_0x203c74([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x26658a(){return _0x9464e7[_0x203c74([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x203c74([0x76,0x69,0x65,0x77])][_0x203c74([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x203c74([0x61,0x75,0x74,0x6f]);}function _0xd2b719(){_0x9464e7[_0x203c74([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x203c74([0x76,0x69,0x65,0x77])][_0x203c74([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x203c74([0x61,0x75,0x74,0x6f]);}}function _0x47b7c4(_0x584308){const _0x551e1f=[new window[(_0x203c74([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3fa6d6=>setTimeout(_0x3fa6d6,0x74246614^_0x57d51b)),_0x28a1cf[_0x203c74([0x74,0x68,0x65,0x6e])](()=>new window[(_0x203c74([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57023a=>{let _0x1355f6=0x0;_0x9464e7[_0x203c74([0x6d,0x6f,0x64,0x65,0x6c])][_0x203c74([0x6f,0x6e])](_0x203c74([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1a91ad,_0x32cf28)=>{_0x32cf28[0x0][_0x203c74([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1355f6++,_0x1355f6==(0x742d5920^_0x57d51b)&&(_0x57023a(),_0x1a91ad[_0x203c74([0x6f,0x66,0x66])]());});}))];return window[_0x203c74([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x203c74([0x72,0x61,0x63,0x65])](_0x551e1f)[_0x203c74([0x74,0x68,0x65,0x6e])](()=>_0x584308);}async function _0x4e8b08(){await _0x28a1cf,_0x9464e7[_0x203c74([0x6d,0x6f,0x64,0x65,0x6c])][_0x203c74([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x59ac48,_0x9464e7[_0x203c74([0x6d,0x6f,0x64,0x65,0x6c])][_0x203c74([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x59ac48,_0x9464e7[_0x203c74([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x203c74([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3d4219(){return _0x58a096(_0x203c74([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x8bed32(_0x203c74([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x203c74([0x73,0x74,0x61,0x74,0x65])]==_0x203c74([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4e5b7e(){return _0x58a096(_0x203c74([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 _0x3e5b45(){return _0x58a096(_0x203c74([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x347f49(_0x6a234e){const _0x4a3d58=_0x350d46();_0x9464e7[_0x4a3d58]=_0x203c74([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x6a234e,_0x6a234e!=_0x203c74([0x56,0x61,0x6c,0x69,0x64])&&_0x4e8b08();}function _0x350d46(){const _0x5bf0a4=window[_0x203c74([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x203c74([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x203c74([0x6e,0x6f,0x77])]())[_0x203c74([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x203c74([0x2e]),'');let _0x5411db=_0x203c74([0x49]);for(let _0xc036f=0x0;_0xc036f<_0x5bf0a4[_0x203c74([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xc036f+=0x2){let _0x5ac0c5=window[_0x203c74([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5bf0a4[_0x203c74([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xc036f,_0xc036f+0x2));_0x5ac0c5>=_0x230633[_0x203c74([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5ac0c5-=_0x230633[_0x203c74([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5411db+=_0x230633[_0x5ac0c5];}return _0x5411db;}function _0x3e8e6a(){const _0xd14df7=_0x72c43d[_0x203c74([0x73,0x70,0x6c,0x69,0x74])](_0x203c74([0x2e]));if(0x3!=_0xd14df7[_0x203c74([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5e4040(_0xd14df7[0x1]);function _0x5e4040(_0x3b4adf){const _0x5da0c8=_0x2a5173(_0x3b4adf);return _0x5da0c8&&_0x5bcee7()?_0x5da0c8:null;function _0x5bcee7(){const _0x253f22=_0x5da0c8[_0x203c74([0x6a,0x74,0x69])],_0x372e1e=window[_0x203c74([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x253f22[_0x203c74([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x253f22[_0x203c74([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1e1823={..._0x5da0c8,[_0x203c74([0x6a,0x74,0x69])]:_0x253f22[_0x203c74([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x253f22[_0x203c74([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1e1823[_0x203c74([0x76,0x63])],_0x5d2c08(_0x1e1823)==_0x372e1e;}}}async function _0x1de88f(){let _0x3acd2d=!0x0;try{const _0x1f6f26=_0x72c43d[_0x203c74([0x73,0x70,0x6c,0x69,0x74])](_0x203c74([0x2e])),[_0x1e054b,_0x41bb8d,_0x48a39b]=_0x1f6f26;return _0x2790e6(_0x1e054b),await _0xae2d3f(_0x1e054b,_0x41bb8d,_0x48a39b),_0x3acd2d;}catch{return!0x1;}function _0x2790e6(_0x59e535){const _0x22d959=_0x2a5173(_0x59e535);_0x22d959&&_0x22d959[_0x203c74([0x61,0x6c,0x67])]==_0x203c74([0x45,0x53,0x32,0x35,0x36])||(_0x3acd2d=!0x1);}async function _0xae2d3f(_0x57345f,_0x279f08,_0x5379fb){const _0x464e4a=window[_0x203c74([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x203c74([0x66,0x72,0x6f,0x6d])](_0x5bd63e(_0x5379fb),_0x484072=>_0x484072[_0x203c74([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x9b6f0a=new window[(_0x203c74([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x203c74([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x57345f+_0x203c74([0x2e])+_0x279f08),_0x3acc85=window[_0x203c74([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x203c74([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3acc85)return;const _0x417ac4=await _0x3acc85[_0x203c74([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x203c74([0x6a,0x77,0x6b]),_0x3e3aec,{[_0x203c74([0x6e,0x61,0x6d,0x65])]:_0x203c74([0x45,0x43,0x44,0x53,0x41]),[_0x203c74([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x203c74([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x203c74([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3acc85[_0x203c74([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x203c74([0x6e,0x61,0x6d,0x65])]:_0x203c74([0x45,0x43,0x44,0x53,0x41]),[_0x203c74([0x68,0x61,0x73,0x68])]:{[_0x203c74([0x6e,0x61,0x6d,0x65])]:_0x203c74([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x417ac4,_0x464e4a,_0x9b6f0a)||(_0x3acd2d=!0x1);}}function _0x2a5173(_0x3b032d){return _0x3b032d[_0x203c74([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x203c74([0x65,0x79]))?JSON[_0x203c74([0x70,0x61,0x72,0x73,0x65])](_0x5bd63e(_0x3b032d)):null;}function _0x5bd63e(_0x2455f9){return window[_0x203c74([0x61,0x74,0x6f,0x62])](_0x2455f9[_0x203c74([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x203c74([0x2b]))[_0x203c74([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x203c74([0x2f])));}function _0x5d2c08(_0x52fd94){let _0x19e314=0x1505;function _0xaa35a6(_0x4be9a6){for(let _0x5ebcbd=0x0;_0x5ebcbd<_0x4be9a6[_0x203c74([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5ebcbd++){const _0x4b48f0=_0x4be9a6[_0x203c74([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5ebcbd);_0x19e314=(_0x19e314<<0x5)+_0x19e314+_0x4b48f0,_0x19e314&=_0x19e314;}}function _0x4adeb5(_0x29eccb){Array[_0x203c74([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x29eccb)?_0x29eccb[_0x203c74([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4adeb5):_0x29eccb&&typeof _0x29eccb==_0x203c74([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x203c74([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x29eccb)[_0x203c74([0x73,0x6f,0x72,0x74])]()[_0x203c74([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x27eeda,_0x2a1c9a])=>{_0xaa35a6(_0x27eeda),_0x4adeb5(_0x2a1c9a);}):_0xaa35a6(window[_0x203c74([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x29eccb));}return _0x4adeb5(_0x52fd94),_0x19e314>>>0x0;}function _0x42568c(_0x556c71){return _0x556c71[_0x203c74([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x203c74([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x203c74([0x30]));}function _0x1b03aa(_0x42a2fc){return _0x42a2fc[_0x203c74([0x73,0x70,0x6c,0x69,0x74])]('')[_0x203c74([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x203c74([0x6a,0x6f,0x69,0x6e])]('');}function _0x58a096(_0x247f1c){return _0x9464e7[_0x203c74([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x203c74([0x68,0x61,0x73])](_0x247f1c);}function _0x8bed32(_0x3a2478){return _0x9464e7[_0x203c74([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x203c74([0x67,0x65,0x74])](_0x3a2478);}function _0x59ac48(){}function _0x203c74(_0x4d518){return _0x4d518['map'](_0x1a5fe6=>String['fromCharCode'](_0x1a5fe6))['join']('');}_0x347f49(await _0xa986b3());}(this);}set['adapter'](_0x5974ad){if(this['_adapter'])throw new _0x519eac('track-changes-adapter-already-set',this);this['_adapter']=_0x5974ad;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x5b2d48=!0x1,toJSON:_0x53f56c=!0x1}={}){const _0x5eb2d8=[];for(const _0x5b232b of this['_suggestions']['values']())_0x5b2d48&&!_0x5b232b['isInContent']||_0x5eb2d8['push'](_0x5b232b);return _0x53f56c?_0x5eb2d8['map'](_0x41c33e=>_0x41c33e['toJSON']()):_0x5eb2d8;}['getSuggestion'](_0x386c96){const _0x4c4d4c=this['_suggestions']['get'](_0x386c96);if(!_0x4c4d4c)throw new _0x519eac('track-changes-suggestion-not-found',this);return _0x4c4d4c;}['hasSuggestion'](_0x282d5b){return this['_suggestions']['has'](_0x282d5b);}['addSuggestionData'](_0x5edc22){const {authorId:_0x4aa322,id:_0x20bb4a,originalSuggestionId:_0x114cae,attributes:_0x51cecf}=_0x5edc22,[_0x470e24,_0x5072a8]=_0x5edc22['type']['split'](':'),_0x3f94c8=this['_suggestions']['get'](_0x20bb4a)||this['_createSuggestion'](_0x470e24,_0x5072a8,_0x20bb4a,_0x4aa322,_0x51cecf,_0x114cae);if(this['_addThreadToSuggestion'](_0x3f94c8),this['_checkSuggestionCorrectness'](_0x3f94c8,_0x470e24,_0x5072a8||null,_0x4aa322),_0x3f94c8['createdAt']=_0x5edc22['createdAt'],_0x3f94c8['_isDataLoaded']=!0x0,_0x51cecf&&_0x51cecf['@external']){const _0x4f98a9=_0x51cecf['@external'],_0x1de7b9=this['_getExternalAuthor'](_0x4f98a9['authorName']);_0x3f94c8['authoredAt']=_0x4f98a9['createdAt'],_0x3f94c8['author']=_0x1de7b9,_0x3f94c8['isExternal']=!0x0;}else _0x3f94c8['authoredAt']=_0x5edc22['createdAt'];switch(_0x5edc22['data']&&(_0x3f94c8['data']=_0x5edc22['data']),_0x5edc22['attributes']&&(_0x3f94c8['attributes']=_0x5edc22['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3f94c8['_saved']=!0x0),this['_suggestionState']['get'](_0x3f94c8)){case'notReady':this['_suggestionState']['set'](_0x3f94c8,'dataReady');break;case'markerReady':_0x3f94c8['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3f94c8])),this['_refreshSuggestionsChain'](new Set([_0x3f94c8])),this['_suggestionState']['set'](_0x3f94c8,'ready'),this['fire']('suggestionLoaded',_0x3f94c8)):this['_suggestionState']['set'](_0x3f94c8,'removed');}return _0x3f94c8;}['acceptSuggestion'](_0x24fdab){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x223ca7 of _0x24fdab['getAllAdjacentSuggestions']())_0x223ca7['accept']();});});}['discardSuggestion'](_0x407036){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x10f7a0 of _0x407036['getAllAdjacentSuggestions']())_0x10f7a0['discard']();});});}['enableCommand'](_0x625452,_0x5bd58a){const _0x1ab783=this['editor']['commands']['get'](_0x625452);if(!_0x1ab783)throw new _0x519eac('track-changes-command-not-found',this,{'commandName':_0x625452});if(this['_enabledCommands']['has'](_0x1ab783))throw new _0x519eac('track-changes-enable-command-twice',this,{'commandName':_0x625452});this['_enabledCommands']['add'](_0x1ab783),_0x5bd58a&&_0x1ab783['on']('execute',(_0x2d700f,_0x129e38)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x129e38['length']>0x0&&_0x129e38[_0x129e38['length']-0x1]&&_0x129e38[_0x129e38['length']-0x1]['forceDefaultExecution']?_0x129e38['pop']():(_0x2d700f['return']=_0x5bd58a((..._0x4fea8d)=>_0x1ab783['execute'](..._0x4fea8d,{'forceDefaultExecution':!0x0}),..._0x129e38),_0x2d700f['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4734bc){let _0x4fd48f,_0x3d3fce;const _0x3746da=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4fd48f=_0x4734bc();}catch(_0x5aa952){_0x3d3fce=_0x5aa952;}return _0x3746da||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3d3fce&&_0x519eac['rethrowUnexpectedError'](_0x3d3fce,this),_0x4fd48f;}['markInsertion'](_0x3dd4c5,_0x51bfef=null,_0x17d8b8={}){if(_0x3dd4c5['isCollapsed'])return null;const _0x2aa665=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x17d8b8['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xeb7250,meta:_0x42d410}of this['_findSuggestions'](_0x3dd4c5,'insertion'))if(_0x42d410['isOwn']){if(!_0x42d410['isNextTo']){if(_0x42d410['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0xeb7250,_0x17d8b8))continue;return _0xeb7250;}if(Xt(_0xeb7250,_0x17d8b8))return _0xeb7250;this['_breakSuggestionMarker'](_0xeb7250,_0x3dd4c5['start'],_0x3dd4c5['end']);break;}if(_0x51bfef==_0xeb7250['subType']&&Xt(_0xeb7250,_0x17d8b8)){const _0x2619f1=_0xeb7250['getFirstRange']();return _0x2619f1['start']['isEqual'](_0x3dd4c5['end'])?this['_setSuggestionRange'](_0xeb7250,this['_model']['createRange'](_0x3dd4c5['start'],_0x2619f1['end'])):this['_setSuggestionRange'](_0xeb7250,this['_model']['createRange'](_0x2619f1['start'],_0x3dd4c5['end'])),_0xeb7250;}}const _0xd9bce1=_0x3786a7(),_0x6bf884=_0x2aa665['id'],_0x54b266=_0x51bfef?'insertion:'+_0x51bfef:'insertion',_0x550c3a=this['_setSuggestionData']({'id':_0xd9bce1,'type':_0x54b266,'createdAt':new Date(),'authorId':_0x6bf884,'attributes':_0x17d8b8});return this['_addSuggestionMarker'](_0x54b266,_0xd9bce1,_0x6bf884,_0x3dd4c5),_0x550c3a;}['markMultiRangeInsertion'](_0x2d8fee,_0x5b8eed='multi',_0x3ab0a9={}){const _0x526035=this['editor']['plugins']['get']('Users')['me'],_0x173c08=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x5b8eed,'join');this['_trackingSessionId']&&(_0x3ab0a9['trackingSessionId']=this['_trackingSessionId']);for(const _0x307414 of this['getSuggestions']())if(_0x307414['author']['id']==_0x526035['id']&&'insertion'==_0x307414['type']&&_0x307414['subType']==_0x5b8eed&&Xt(_0x307414,_0x3ab0a9)&&(_0x173c08(_0x307414['getRanges'](),_0x2d8fee)||_0x173c08(_0x2d8fee,_0x307414['getRanges']()))){for(const _0x3a5fad of _0x2d8fee)_0x307414['addRange'](_0x3a5fad);return _0x307414;}for(const {suggestion:_0x551652,meta:_0x5c6c53}of this['_findSuggestions'](_0x2d8fee,'insertion')){if(!_0x5c6c53['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x5c6c53['containsRangeInObject'])continue;if(!Xt(_0x551652,_0x3ab0a9))continue;let _0x557e07=!0x0;for(const _0x5cdecd of _0x551652['getRanges']())for(const _0x4c3fa9 of _0x2d8fee)if(!_0x5cdecd['containsRange'](_0x4c3fa9)){_0x557e07=!0x1;break;}if(_0x557e07)return _0x551652;}const _0x26a770=_0x3786a7(),_0x283791=_0x526035['id'],_0x5e34ee='insertion:'+_0x5b8eed,_0x4e4b09=this['_setSuggestionData']({'id':_0x26a770,'type':_0x5e34ee,'createdAt':new Date(),'authorId':_0x283791,'attributes':_0x3ab0a9});for(const _0x55f9fb of _0x2d8fee)this['_addSuggestionMarker'](_0x5e34ee,_0x26a770,_0x283791,_0x55f9fb,T['getMultiRangeId']());return _0x4e4b09;}['markInlineFormat'](_0x929402,_0x40eeeb,_0x3e0122=null,_0x2f4487={}){if(_0x3e0122=_0x3e0122||Lt(_0x40eeeb),_0x929402['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x2f4487['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x13ca6e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3e0122,'accept');return this['forceDefaultExecution'](()=>_0x13ca6e([_0x929402],_0x40eeeb,_0x2f4487)),null;}const _0x418bc4=this['editor']['plugins']['get']('Users')['me'],_0x261593=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0xe0c7b0,meta:_0x4af737}of this['_findSuggestions'](_0x929402,'insertion'))_0x4af737['isOwn']&&!_0x4af737['isInsideObject']&&_0x261593['push'](..._0xe0c7b0['getRanges']());}const _0x2e1e1f=function(_0x55c24d,_0x2ac918){const _0x16bcf2=[];for(const _0x37b82e of _0x2ac918){const _0x57421d=_0x55c24d['getIntersection'](_0x37b82e);_0x57421d&&_0x16bcf2['push'](_0x57421d);}return _0x16bcf2;}(_0x929402,_0x261593),_0x294a41=function(_0x4e55f7,_0x273487){const _0xcf9b4b=[_0x4e55f7];for(const _0x4d443f of _0x273487){let _0x1c8867=0x0;for(;_0x1c8867<_0xcf9b4b['length'];){const _0x397b9e=_0xcf9b4b[_0x1c8867]['getDifference'](_0x4d443f);_0xcf9b4b['splice'](_0x1c8867,0x1,..._0x397b9e),_0x1c8867+=_0x397b9e['length'];}}return _0xcf9b4b;}(_0x929402,_0x261593);_0x2e1e1f['length']&&this['_model']['change'](()=>{for(const _0x3c8bc1 of _0x2e1e1f){const _0x49dbb5=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3e0122,'accept');this['forceDefaultExecution'](()=>_0x49dbb5([_0x3c8bc1],_0x40eeeb,_0x2f4487));}});for(const _0x93b9a1 of _0x294a41){let _0x4f2155=null,_0x5b9995=_0x93b9a1['start'],_0x2fdb99=_0x93b9a1['end'];for(const {suggestion:_0x4bb852,meta:_0x82dd45}of this['_findSuggestions'](_0x93b9a1,'formatInline')){if(!_0x82dd45['isOwn'])continue;if(_0x4bb852['subType']!=_0x3e0122)continue;if(!Xt(_0x4bb852,_0x2f4487))continue;const _0x11c9d8=_0x4bb852['getFirstRange']();if(_0x11c9d8['containsRange'](_0x93b9a1,!0x0))return null;_0x5b9995=_0x5b9995['isBefore'](_0x11c9d8['start'])?_0x5b9995:_0x11c9d8['start'],_0x2fdb99=_0x2fdb99['isAfter'](_0x11c9d8['end'])?_0x2fdb99:_0x11c9d8['end'],_0x4f2155?_0x11c9d8['start']['isBefore'](_0x4f2155['getFirstRange']()['start'])?(_0x4f2155['removeMarkers'](),_0x4f2155=_0x4bb852):_0x4bb852['removeMarkers']():_0x4f2155=_0x4bb852;}const _0x546e7f=this['_model']['createRange'](_0x5b9995,_0x2fdb99);if(_0x4f2155)this['_setSuggestionRange'](_0x4f2155,_0x546e7f);else{const _0x163538=_0x3786a7(),_0x5021d4=_0x418bc4['id'];this['_setSuggestionData']({'id':_0x163538,'type':'formatInline:'+_0x3e0122,'data':_0x40eeeb,'createdAt':new Date(),'authorId':_0x5021d4,'attributes':_0x2f4487}),this['_addSuggestionMarker']('formatInline:'+_0x3e0122,_0x163538,_0x5021d4,_0x546e7f);}}return null;}['markBlockFormat'](_0x4aeb35,_0x394394,_0x459992=[],_0x2c4c34=null,_0x5e22c7={}){_0x394394['formatGroupId']||(_0x394394['formatGroupId']=_0x394394['commandName']),_0x394394['multipleBlocks']=_0x4aeb35['is']('range'),_0x2c4c34=_0x2c4c34||Lt(_0x394394);const _0xe2f9de=_0x459992['map'](_0x7ad904=>zt(_0x7ad904,this['_model'])),_0x7ef9d8=_0x4aeb35['is']('range')?_0x4aeb35:zt(_0x4aeb35,this['_model']);if(this['_trackingSessionId']&&(_0x5e22c7['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3446b1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2c4c34,'accept');return this['forceDefaultExecution'](()=>_0x3446b1([_0x7ef9d8],_0x394394,_0x5e22c7)),null;}_0xe2f9de['push'](_0x7ef9d8);let _0x5855ec=!0x0;for(const _0x27ee99 of _0xe2f9de)if(!this['_rangeIsInLocalUserInsertion'](_0x27ee99)){_0x5855ec=!0x1;break;}if(_0x5855ec&&'always'!==this['_trackFormatChanges']){const _0xd50388=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2c4c34,'accept');return this['forceDefaultExecution'](()=>_0xd50388([_0x7ef9d8],_0x394394,_0x5e22c7)),null;}let _0x5bdedc=null,_0x5401f0=_0x7ef9d8['start'],_0x4a2354=_0x7ef9d8['end'];for(const {suggestion:_0x435194,meta:_0x336d4a}of this['_findSuggestions'](_0x7ef9d8,'formatBlock')){if(!_0x336d4a['isOwn'])continue;if(_0x336d4a['isNextTo']||_0x336d4a['containsRangeInObject']||_0x336d4a['isInsideObject'])continue;if(_0x435194['data']['formatGroupId']!=_0x394394['formatGroupId'])continue;if(!Xt(_0x435194,_0x5e22c7))continue;const _0x3a93fd=_0x435194['getFirstRange']();if(_0x435194['subType']==_0x2c4c34){if(_0x3a93fd['containsRange'](_0x7ef9d8,!0x0))return null;_0x5401f0=_0x5401f0['isBefore'](_0x3a93fd['start'])?_0x5401f0:_0x3a93fd['start'],_0x4a2354=_0x4a2354['isAfter'](_0x3a93fd['end'])?_0x4a2354:_0x3a93fd['end'],_0x5bdedc?_0x3a93fd['start']['isBefore'](_0x5bdedc['getFirstRange']()['start'])?(_0x5bdedc['removeMarkers'](),_0x5bdedc=_0x435194):_0x435194['removeMarkers']():_0x5bdedc=_0x435194;}else{const _0x1d3815=_0x7ef9d8['getIntersection'](_0x3a93fd);this['_cutOutSuggestionMarker'](_0x435194,_0x1d3815);}}const _0x2430f4=this['editor']['plugins']['get']('Users')['me'],_0x240646=_0x3786a7(),_0xd9e28b=_0x2430f4['id'];if(_0x5bdedc)return this['_setSuggestionRange'](_0x5bdedc,this['_model']['createRange'](_0x5401f0,_0x4a2354)),_0x5bdedc;{const _0x5ad43a=this['_setSuggestionData']({'id':_0x240646,'type':'formatBlock:'+_0x2c4c34,'data':_0x394394,'createdAt':new Date(),'authorId':_0xd9e28b,'attributes':_0x5e22c7});return this['_addSuggestionMarker']('formatBlock:'+_0x2c4c34,_0x240646,_0xd9e28b,this['_model']['createRange'](_0x5401f0,_0x4a2354)),_0x5ad43a;}}['markMultiRangeBlockFormat'](_0x38f5e7,_0x2d279b,_0x4823f9=[],_0x28a67e=null,_0x2fe5bb={}){_0x2d279b['formatGroupId']||(_0x2d279b['formatGroupId']=_0x2d279b['commandName']);const _0x422333=_0x38f5e7[0x0];_0x2d279b['multipleBlocks']=_0x422333['is']('range'),_0x28a67e=_0x28a67e||Lt(_0x2d279b);const _0x25535e=_0x4823f9['map'](_0x559c47=>zt(_0x559c47,this['_model'])),_0x30464b=_0x422333['is']('range')?_0x38f5e7:_0x38f5e7['map'](_0x2ce5f0=>zt(_0x2ce5f0,this['_model']));if(this['_trackingSessionId']&&(_0x2fe5bb['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x559f7b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x28a67e,'accept');return this['forceDefaultExecution'](()=>_0x559f7b(_0x30464b,_0x2d279b,_0x2fe5bb)),null;}_0x25535e['push'](..._0x30464b);let _0x442016=!0x0;for(const _0x86a6f3 of _0x25535e)if(!this['_rangeIsInLocalUserInsertion'](_0x86a6f3)){_0x442016=!0x1;break;}if(_0x442016&&'always'!==this['_trackFormatChanges']){const _0x37ec20=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x28a67e,'accept');return this['forceDefaultExecution'](()=>_0x37ec20(_0x30464b,_0x2d279b,_0x2fe5bb)),null;}const _0x5dd836=this['editor']['plugins']['get']('Users')['me'];for(const _0x629411 of this['getSuggestions']()){const _0x159aa5=_0x629411['data'];if(_0x629411['author']['id']!=_0x5dd836['id'])continue;if('formatBlock'!=_0x629411['type']||_0x159aa5['formatGroupId']!=_0x2d279b['formatGroupId'])continue;if(!Xt(_0x629411,_0x2fe5bb))continue;const _0x398390=_0x629411['subType']==_0x28a67e;for(let _0x1dfc6c=0x0;_0x1dfc6c<_0x30464b['length'];_0x1dfc6c++){const _0x373d11=_0x30464b[_0x1dfc6c];for(const _0x4227e7 of _0x629411['getMarkers']()){const _0x112f6d=_0x4227e7['getRange']();if(_0x373d11['isEqual'](_0x112f6d)){_0x398390?(_0x30464b['splice'](_0x1dfc6c,0x1),_0x1dfc6c--):_0x629411['removeMarker'](_0x4227e7['name']);break;}}}}if(0x0==_0x30464b['length'])return null;const _0x2ecbe6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x28a67e,'join');for(const _0x1a5da4 of this['getSuggestions']()){const _0x3cf6f3=_0x1a5da4['data'];if(_0x1a5da4['author']['id']==_0x5dd836['id']&&('formatBlock'==_0x1a5da4['type']&&_0x3cf6f3['formatGroupId']==_0x2d279b['formatGroupId']&&_0x1a5da4['subType']==_0x28a67e&&Xt(_0x1a5da4,_0x2fe5bb)&&(_0x2ecbe6(_0x1a5da4['getRanges'](),_0x30464b)||_0x2ecbe6(_0x30464b,_0x1a5da4['getRanges']())))){for(const _0x5a87c3 of _0x30464b)_0x1a5da4['addRange'](_0x5a87c3);return _0x1a5da4;}}const _0x64e8a8=_0x3786a7(),_0x2bf36c=_0x5dd836['id'],_0x5c74eb='formatBlock:'+_0x28a67e,_0x18102d=this['_setSuggestionData']({'id':_0x64e8a8,'type':_0x5c74eb,'data':_0x2d279b,'createdAt':new Date(),'authorId':_0x2bf36c,'attributes':_0x2fe5bb});for(const _0x1817a7 of _0x30464b)this['_addSuggestionMarker'](_0x5c74eb,_0x64e8a8,_0x2bf36c,_0x1817a7,T['getMultiRangeId']());return _0x18102d;}['markDeletion'](_0x48630c,_0x4841ab=null,_0x40bd76={}){if(_0x48630c['isCollapsed'])return null;const _0x5843e2=this['editor']['plugins']['get']('Users')['me'],_0x386b5d=new _0x21756a(_0x48630c['start'],_0x48630c['end']);this['_trackingSessionId']&&(_0x40bd76['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x28ce90,meta:_0x349624}of this['_findSuggestions'](_0x386b5d,'insertion'))if(_0x349624['isOwn']&&!_0x349624['isNextTo']){if(_0x28ce90['isMultiRange']){const _0x2a244f=_0x28ce90['getRanges']()['filter'](_0x395f3b=>'$graveyard'!=_0x395f3b['root']['rootName']);_0x2a244f['every'](_0x1d3103=>_0x386b5d['containsRange'](_0x1d3103,!0x0))&&_0x28ce90['discard']();if(_0x2a244f['some'](_0x1a1dbf=>_0x1a1dbf['containsRange'](_0x386b5d,!0x0))){const _0x36512d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4841ab,'accept');return this['forceDefaultExecution'](()=>_0x36512d([_0x386b5d],null,_0x40bd76)),null;}}else{const _0x1220bb=_0x386b5d['getIntersection'](_0x28ce90['getFirstRange']());null!==_0x1220bb&&_0x28ce90['_onDiscard']([_0x1220bb],null,_0x40bd76);}}if(_0x386b5d['detach'](),_0x386b5d['isCollapsed']||'$graveyard'==_0x386b5d['root']['rootName'])return null;let _0x46b3f1=null,_0x2960e3=_0x386b5d['start'],_0x3b6199=_0x386b5d['end'];const _0x10cd09=this['_findSuggestions'](_0x386b5d,'deletion');for(const {suggestion:_0x15881d,meta:_0x1ec8e9}of _0x10cd09){const _0x41744b=this['_model']['createRange'](_0x2960e3,_0x3b6199);if(_0x1ec8e9['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1ec8e9['containsRangeInObject']&&!_0x1ec8e9['isInsideObject'])){if(_0x15881d['isMultiRange']){if(!Xt(_0x15881d,_0x40bd76))continue;let _0x3b4b0a=!0x0;for(const _0x4c2f57 of _0x15881d['getRanges']()){if(_0x4c2f57['containsRange'](_0x41744b,!0x0))return _0x15881d;_0x41744b['containsRange'](_0x4c2f57)||(_0x3b4b0a=!0x1);}_0x3b4b0a&&_0x15881d['discard']();}else{const _0x5ef682=_0x15881d['getFirstRange']();if(_0x5ef682['containsRange'](_0x41744b,!0x0))return _0x15881d;if(!Xt(_0x15881d,_0x40bd76)){_0x41744b['containsRange'](_0x5ef682)?_0x15881d['removeMarkers']():_0x5ef682['containsPosition'](_0x2960e3)?_0x2960e3=_0x5ef682['end']:_0x5ef682['containsPosition'](_0x3b6199)&&(_0x3b6199=_0x5ef682['start']);continue;}_0x2960e3=_0x2960e3['isBefore'](_0x5ef682['start'])?_0x2960e3:_0x5ef682['start'],_0x3b6199=_0x3b6199['isAfter'](_0x5ef682['end'])?_0x3b6199:_0x5ef682['end'],_0x40bd76=Object['assign']({},_0x15881d['attributes']),_0x46b3f1?_0x5ef682['start']['isBefore'](_0x46b3f1['getFirstRange']()['start'])?(_0x46b3f1['removeMarkers'](),_0x46b3f1=_0x15881d):_0x15881d['removeMarkers']():_0x46b3f1=_0x15881d;}}}if(_0x46b3f1)return this['_setSuggestionRange'](_0x46b3f1,this['_model']['createRange'](_0x2960e3,_0x3b6199)),_0x46b3f1;{const _0x2f0529=_0x3786a7(),_0x563c0c=this['_model']['createRange'](_0x2960e3,_0x3b6199),_0x467d06=_0x5843e2['id'],_0x1442da=_0x4841ab?'deletion:'+_0x4841ab:'deletion',_0x28f3fa=this['_setSuggestionData']({'id':_0x2f0529,'type':_0x1442da,'createdAt':new Date(),'authorId':_0x467d06,'attributes':_0x40bd76});return this['_addSuggestionMarker'](_0x1442da,_0x2f0529,_0x467d06,_0x563c0c),_0x28f3fa;}}['markMultiRangeDeletion'](_0x3bcad3,_0x1fdb1c='multi',_0x1ab1ed={}){const _0x489fdf=this['editor']['plugins']['get']('Users')['me'],_0x25444f=_0x3bcad3['map'](_0x32735a=>new _0x21756a(_0x32735a['start'],_0x32735a['end'])),_0x2ae612=new Set();this['_trackingSessionId']&&(_0x1ab1ed['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5c5df6,meta:_0x44d162}of this['_findSuggestions'](_0x25444f,'insertion'))_0x44d162['isOwn']&&!_0x44d162['isNextTo']&&_0x2ae612['add'](_0x5c5df6);for(const _0xc113f0 of _0x2ae612)if(_0xc113f0['isMultiRange']){const _0x3fc42b=_0xc113f0['getRanges']();(!_0xc113f0['attributes']||!_0xc113f0['attributes']['skipNestingCheck'])&&(_0x3fc42b['every'](_0x3a9ed3=>_0x25444f['some'](_0x1b4b04=>_0x1b4b04['containsRange'](_0x3a9ed3,!0x0)))&&_0xc113f0['discard']());if(_0x25444f['every'](_0x153937=>_0x3fc42b['some'](_0x18c6ac=>_0x18c6ac['containsRange'](_0x153937,!0x0)))){const _0x50a076=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1fdb1c,'accept');return this['forceDefaultExecution'](()=>_0x50a076(_0x3bcad3,null,_0x1ab1ed)),null;}}else{const _0x3585d4=_0xc113f0['getFirstRange']();_0x25444f['some'](_0xea5a99=>_0xea5a99['containsRange'](_0x3585d4,!0x0))&&_0xc113f0['discard']();if(_0x25444f['every'](_0x476ab3=>_0x3585d4['containsRange'](_0x476ab3,!0x0))){const _0x76f386=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1fdb1c,'accept');return this['forceDefaultExecution'](()=>_0x76f386(_0x25444f,null,_0x1ab1ed)),null;}}const _0x4e35ef=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1fdb1c,'join');let _0x3cf0f8=null;for(const _0x281835 of this['getSuggestions']())if(_0x281835['author']['id']==_0x489fdf['id']&&_0x281835['isInContent']&&'deletion'==_0x281835['type']&&_0x281835['subType']==_0x1fdb1c&&Xt(_0x281835,_0x1ab1ed)&&(_0x4e35ef(_0x281835['getRanges'](),_0x25444f)||_0x4e35ef(_0x25444f,_0x281835['getRanges']()))){if(_0x3cf0f8){if(_0x281835['commentThread']&&_0x281835['commentThread']['length'])continue;for(const _0x3b6e1a of _0x281835['getRanges']())_0x3cf0f8['isIntersectingWithRange'](_0x3b6e1a)||_0x3cf0f8['addRange'](_0x3b6e1a);_0x281835['removeMarkers']();}else{_0x3cf0f8=_0x281835;for(const _0xc50647 of _0x25444f)_0x281835['isIntersectingWithRange'](_0xc50647)||_0x281835['addRange'](_0xc50647);}}if(_0x3cf0f8)return _0x3cf0f8;_0x2ae612['clear']();for(const {suggestion:_0x111939,meta:_0x925d28}of this['_findSuggestions'](_0x25444f,'deletion'))_0x925d28['isOwn']&&(this['_mergeNestedSuggestions']||!_0x925d28['containsRangeInObject']&&!_0x925d28['isInsideObject'])&&Xt(_0x111939,_0x1ab1ed)&&_0x2ae612['add'](_0x111939);for(const _0xc9843f of _0x2ae612){const _0x3aabf8=_0xc9843f['getRanges']();if(!_0x1ab1ed||!_0x1ab1ed['skipNestingCheck']){if(_0x25444f['every'](_0x124ffc=>_0x3aabf8['some'](_0x22c160=>_0x22c160['containsRange'](_0x124ffc,!0x0))))return _0xc9843f;}(!_0xc9843f['attributes']||!_0xc9843f['attributes']['skipNestingCheck'])&&(_0x3aabf8['every'](_0x4309a1=>_0x25444f['some'](_0x54c187=>_0x54c187['containsRange'](_0x4309a1,!0x0)))&&_0xc9843f['discard']());}const _0x4202e3=_0x3786a7(),_0x389104=_0x489fdf['id'],_0x2324e8='deletion:'+_0x1fdb1c,_0x2fa3d0=this['_setSuggestionData']({'id':_0x4202e3,'type':_0x2324e8,'createdAt':new Date(),'authorId':_0x389104,'attributes':_0x1ab1ed});for(const _0x4d4a1c of _0x25444f)_0x4d4a1c['detach'](),_0x4d4a1c['isCollapsed']||'$graveyard'==_0x4d4a1c['root']['rootName']||this['_addSuggestionMarker'](_0x2324e8,_0x4202e3,_0x389104,_0x4d4a1c,T['getMultiRangeId']());return _0x2fa3d0;}['markAttributeChange'](_0x4a3fa3,_0x1f4521,_0x4e6d2c,_0x6ab91e,_0x4c7374){if(_0x4a3fa3['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0xf97d15=this['editor']['plugins']['get']('Users')['me']['id'],_0x4c55e8=Array['from'](this['_suggestions']['values']())['filter'](_0x5a4afe=>'attribute'==_0x5a4afe['type']&&_0x5a4afe['data']['key']==_0x1f4521&&_0x5a4afe['isIntersectingWithRange'](_0x4a3fa3));if(this['_trackingSessionId']&&(_0x4c7374['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x877617=this['_findSuggestions'](_0x4a3fa3,'insertion')['filter'](({meta:_0x249e71})=>_0x249e71['isOwn']&&!_0x249e71['isInsideObject']&&!_0x249e71['isNextTo'])['map'](({suggestion:_0x4166e0})=>_0x4166e0);_0x4c55e8['unshift'](..._0x877617);}const _0x5230e6=new Map([[_0x4a3fa3,_0x4e6d2c]]);for(const _0x487b91 of _0x4c55e8){const _0x3e306b='attribute'==_0x487b91['type']?_0x487b91['data']['oldValue']:void 0x0,_0x14ee74=_0x487b91['getFirstRange'](),_0x5ee46f=Array['from'](_0x5230e6['keys']())['find'](_0x55fb21=>_0x55fb21['isIntersecting'](_0x14ee74));if(!_0x5ee46f)continue;const _0x24ffb1=_0x5ee46f['getDifference'](_0x14ee74);this['_isBlockAttribute'](_0x1f4521)&&'insertion'==_0x487b91['type']&&0x0!=_0x24ffb1['length']||(_0x5230e6['delete'](_0x5ee46f),_0x24ffb1['forEach'](_0x87b3fb=>{_0x5230e6['set'](_0x87b3fb,_0x4e6d2c);}),'insertion'!=_0x487b91['type']&&_0x3e306b!=_0x6ab91e&&_0x5230e6['set'](_0x5ee46f['getIntersection'](_0x14ee74),_0x3e306b));}const _0x28e091=[];for(const [_0x2ff44c,_0x2d872e]of _0x5230e6){const _0x4fbec2=_0x3786a7(),_0x2367c5={'key':_0x1f4521,'oldValue':_0x2d872e,'newValue':_0x6ab91e};_0x1f4521['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':_0x1f4521});const _0x5a3488=('attribute:'+(_0x1f4521+'|'+Lt({'newValue':_0x6ab91e})))['substring'](0x0,0x3c),_0x5e0059=this['_setSuggestionData']({'id':_0x4fbec2,'type':_0x5a3488,'data':_0x2367c5,'createdAt':new Date(),'authorId':_0xf97d15,'attributes':_0x4c7374});_0x28e091['push'](_0x5e0059),this['_addSuggestionMarker'](_0x5a3488,_0x4fbec2,_0xf97d15,_0x2ff44c);}return _0x28e091;}['enableDefaultAttributesIntegration'](_0x4fe50e){this['enableCommand'](_0x4fe50e,(_0x3ea172,..._0x5ed52e)=>{this['recordAttributeChanges'](()=>{_0x3ea172(..._0x5ed52e);});});}['registerBlockAttribute'](_0x140943){this['_blockAttributeKeys']['add'](_0x140943);}['registerInlineAttribute'](_0x586d99){this['_inlineAttributeKeys']['add'](_0x586d99);}['startTrackingSession'](_0x56bc21){return this['_trackingSessionId']=void 0x0!==_0x56bc21?_0x56bc21:_0x3786a7(),this['_trackingSessionId'];}['_getAttributeKey'](_0x370ed4){return'attribute'==_0x370ed4['type']?_0x370ed4['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x5e6ef5,_0x5c7b06){const _0x2d5ed8=_0x5e6ef5['getFirstMarker']();this['_model']['change'](_0x400f7f=>{_0x400f7f['updateMarker'](_0x2d5ed8,{'range':_0x5c7b06});});}['_addThreadToSuggestion'](_0x16a843){const _0xbf4d3d=_0x16a843['id'],_0x52e11d=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0xbf4d3d)||this['_commentsRepository']['addCommentThread']({'channelId':_0x52e11d,'threadId':_0xbf4d3d,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x241431=this['_commentsRepository']['getCommentThread'](_0xbf4d3d);_0x241431['unbind']('isRemovable'),_0x241431['isRemovable']=!0x1,_0x16a843['commentThread']=_0x241431;}['_checkSuggestionCorrectness'](_0x3cfe87,_0x2bb37c,_0x555772,_0xc5c14e){if(_0x3cfe87['type']!=_0x2bb37c||_0x3cfe87['subType']!=_0x555772||_0x3cfe87['creator']['id']!=_0xc5c14e)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x519eac('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x40a066,_0x2da9d3){const _0x268f20=_0x40a066['getFirstRange']();if(_0x2da9d3['isEqual'](_0x268f20))_0x40a066['removeMarkers']();else{if(_0x268f20['containsRange'](_0x2da9d3)){const _0x2ee010=this['_model']['createPositionAt'](_0x2da9d3['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x40a066,this['_model']['createRange'](_0x268f20['start'],_0x2ee010));const _0x2cba66=_0x3786a7(),_0x33fa57=_0x40a066['creator']['id'],_0x4daccc=_0x40a066['type']+':'+_0x40a066['subType'];this['_setSuggestionData']({'id':_0x2cba66,'type':_0x4daccc,'createdAt':new Date(),'authorId':_0x33fa57,'data':_0x40a066['data'],'attributes':_0x40a066['attributes']});const _0x2af046=this['_model']['createPositionAt'](_0x2da9d3['end']['parent'],'after'),_0x4afc90=this['_model']['createRange'](_0x2af046,_0x268f20['end']);this['_addSuggestionMarker'](_0x4daccc,_0x2cba66,_0x33fa57,_0x4afc90);}else{if(_0x268f20['containsPosition'](_0x2da9d3['start'])){const _0x54d8c3=this['_model']['createPositionAt'](_0x2da9d3['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x40a066,this['_model']['createRange'](_0x268f20['start'],_0x54d8c3));}else{const _0x24d0ea=this['_model']['createPositionAt'](_0x2da9d3['end']['parent'],'after');this['_setSuggestionRange'](_0x40a066,this['_model']['createRange'](_0x24d0ea,_0x268f20['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x3bc7aa){for(const {suggestion:_0x513c14,meta:_0x1081f9}of this['_findSuggestions'](_0x3bc7aa,'insertion')){if(!_0x1081f9['isOwn'])continue;const _0x2187a8=_0x513c14['getRanges']();for(const _0x9e28d1 of _0x2187a8)if(!_0x3bc7aa['getDifference'](_0x9e28d1)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x59c074){const _0x53427e=this['editor']['plugins']['get']('Users')['getUser'](_0x59c074);if(!_0x53427e)throw new _0x519eac('track-changes-user-not-found',this);return _0x53427e;}['_getExternalAuthor'](_0x3cb1e8){const _0x14f2a7=this['editor']['plugins']['get']('Users'),_0x47916d=_0x2f0848('external:'+_0x3cb1e8),_0x435650=_0x14f2a7['getUser'](_0x47916d);return _0x435650||_0x14f2a7['addUser']({'id':_0x47916d,'name':_0x3cb1e8});}['_createSuggestion'](_0x54bea8,_0x149d4f,_0x113275,_0x3df642,_0x1bbee,_0x169989){const _0xfc9eae=this['_getAuthorFromId'](_0x3df642),_0x144cc2=this['_suggestionFactory']['buildSuggestion'](_0x54bea8,_0x149d4f,_0x113275,_0xfc9eae,_0x1bbee,_0x5e0309=>{this['_updateSuggestionData'](_0x113275,{'attributes':_0x5e0309});const _0x449bf5=this['getSuggestion'](_0x113275);this['_joinWithAdjacentSuggestions'](new Set([_0x449bf5])),this['_refreshSuggestionsChain'](new Set([_0x449bf5]));},_0x169989);return this['listenTo'](_0x144cc2,'accept',()=>{this['_updateSuggestionData'](_0x113275,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x144cc2,'discard',()=>{this['_updateSuggestionData'](_0x113275,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x113275,_0x144cc2),this['_suggestionState']['set'](_0x144cc2,'notReady'),_0x144cc2;}['_splitMarkerName'](_0x57ab02){const _0x5d59ba=_0x57ab02['split'](':');return{'group':_0x5d59ba[0x0],'type':_0x5d59ba[0x1],'subType':_0x5d59ba['length']>=0x5?_0x5d59ba[0x2]:null,'id':_0x5d59ba['length']<0x5?_0x5d59ba[0x2]:_0x5d59ba[0x3],'authorId':_0x5d59ba['length']<0x5?_0x5d59ba[0x3]:_0x5d59ba[0x4],'markerCount':0x6==_0x5d59ba['length']?_0x5d59ba[0x5]:null};}['_breakSuggestionMarker'](_0x8b09c5,_0x3c1eae,_0x3cd96e){const _0x545e16=_0x8b09c5['getFirstRange'](),_0x15e27d=_0x545e16['start'],_0x5c73a5=_0x545e16['end'];this['_setSuggestionRange'](_0x8b09c5,this['_model']['createRange'](_0x15e27d,_0x3c1eae));const _0x3bec6e=_0x3786a7(),_0x55fe9d=_0x8b09c5['creator']['id'],_0x546fcd=_0x8b09c5['type']+(_0x8b09c5['subType']?':'+_0x8b09c5['subType']:'');this['_setSuggestionData']({'id':_0x3bec6e,'type':_0x546fcd,'createdAt':new Date(),'authorId':_0x55fe9d,'originalSuggestionId':_0x8b09c5['_originalSuggestionId']||_0x8b09c5['id'],'attributes':_0x8b09c5['attributes'],'data':_0x8b09c5['data']});const _0x3b73ab=this['_getAttributeKey'](_0x8b09c5);('formatBlock'==_0x8b09c5['type']||_0x3b73ab&&this['_isBlockAttribute'](_0x3b73ab))&&(_0x3cd96e=this['_model']['createPositionBefore'](_0x3cd96e['parent'])),this['_addSuggestionMarker'](_0x546fcd,_0x3bec6e,_0x55fe9d,this['_model']['createRange'](_0x3cd96e,_0x5c73a5));}['_findSuggestions'](_0x1c0b0a,_0x638f4a=null){const _0x440dc7=[],_0x5daf4a=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x1c0b0a)||(_0x1c0b0a=[_0x1c0b0a]);for(const _0x2af1b6 of this['getSuggestions']()){if(!_0x2af1b6['isInContent'])continue;if(_0x638f4a&&_0x2af1b6['type']!=_0x638f4a)continue;let _0x341345=!0x1;for(const _0x54b71b of _0x2af1b6['getRanges']()){for(const _0x1da1b6 of _0x1c0b0a){const _0x31aa27=_0x1da1b6['start']['isEqual'](_0x54b71b['end'])||_0x1da1b6['end']['isEqual'](_0x54b71b['start']);if(_0x31aa27||_0x1da1b6['getIntersection'](_0x54b71b)){const _0x2ef7fd=_0x1da1b6['containsRange'](_0x54b71b)&&Ft(this['_model']['schema'],_0x54b71b['start'],_0x1da1b6),_0x24bdab=_0x54b71b['containsRange'](_0x1da1b6)&&Ft(this['_model']['schema'],_0x1da1b6['start'],_0x54b71b);_0x440dc7['push']({'suggestion':_0x2af1b6,'meta':{'isOwn':_0x5daf4a==_0x2af1b6['author'],'isNextTo':_0x31aa27,'isInsideObject':_0x2ef7fd,'containsRangeInObject':_0x24bdab}}),_0x341345=!0x0;break;}}if(_0x341345)break;}}return _0x440dc7;}['_addSuggestionMarker'](_0x353fc6,_0x23b12d,_0x3ad104,_0x474a4a,_0x14ee21){this['_model']['change'](_0x2c43f8=>{let _0x4e9a39='suggestion:'+_0x353fc6+':'+_0x23b12d+':'+_0x3ad104;_0x14ee21&&(_0x4e9a39=_0x4e9a39+':'+_0x14ee21),_0x2c43f8['addMarker'](_0x4e9a39,{'range':_0x474a4a,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x18b26c){const _0x12464b=_0x18b26c['previous'],_0x51fbaf=_0x18b26c['next'];_0x18b26c['previous']=null,_0x18b26c['next']=null,null!=_0x12464b&&_0x12464b['next']==_0x18b26c&&(_0x12464b['next']=_0x51fbaf),null!=_0x51fbaf&&_0x51fbaf['previous']==_0x18b26c&&(_0x51fbaf['previous']=_0x12464b),'ready'==this['_suggestionState']['get'](_0x18b26c)&&(this['_suggestionState']['set'](_0x18b26c,'removed'),this['fire']('suggestionUnloaded',_0x18b26c,_0x12464b,_0x51fbaf));}['_setSuggestionData'](_0x5c1cac){const _0x5e0e71=_0x5c1cac['id'],_0x5ccb78=this['addSuggestionData'](_0x5c1cac);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x3340b2=this['editor']['plugins']['get']('PendingActions'),_0x39f520=_0x5ccb78['hasComments'],_0x26bd9e=_0x5ccb78['subType']?_0x5ccb78['type']+':'+_0x5ccb78['subType']:_0x5ccb78['type'],_0x72bbe8=this['editor']['locale'],_0x1400ba=_0x3340b2['add'](o(_0x72bbe8,'PENDING_ACTION_SUGGESTION')),_0x45d3ac={'id':_0x5e0e71,'type':_0x26bd9e,'hasComments':_0x39f520,'data':_0x5c1cac['data']||null,'originalSuggestionId':_0x5c1cac['originalSuggestionId']||null,'attributes':_0x5ccb78['attributes']};this['_adapter']['addSuggestion'](_0x45d3ac)['then'](_0x3914c1=>{_0x5ccb78['_saved']=!0x0,_0x3340b2['remove'](_0x1400ba),_0x3914c1&&_0x3914c1['createdAt']&&(this['_suggestions']['get'](_0x5e0e71)['createdAt']=_0x3914c1['createdAt']);})['catch'](_0x50936d=>{throw _0x41903e('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x5ccb78['discard']();}),_0x5ccb78['stopListening'](),this['_suggestions']['delete'](_0x5ccb78['id']),this['_suggestionState']['delete'](_0x5ccb78),_0x50936d;});}return _0x5ccb78;}['_isBlockAttribute'](_0x23feae){return this['_blockAttributeKeys']['has'](_0x23feae);}['_isInlineAttribute'](_0x19e718){return this['_inlineAttributeKeys']['has'](_0x19e718);}['_updateSuggestionData'](_0x5bdfac,_0x41dfaf){const _0x2c354d=this['editor']['plugins']['get']('PendingActions'),_0x179aef=this['getSuggestion'](_0x5bdfac);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x179aef['_saved']){const _0x4c55bd=_0x2c354d['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x5bdfac,_0x41dfaf)['then'](()=>{_0x2c354d['remove'](_0x4c55bd);});}else _0x179aef['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x5bdfac,_0x41dfaf);});}}['_getSuggestionData'](_0x1d9636){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x519eac('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1d9636);}['_handleNewSuggestionMarker'](_0x160023){const {id:_0x52a4fb,type:_0x58004c,subType:_0x410bf0,authorId:_0x2c05ea}=this['_splitMarkerName'](_0x160023),_0x4ec913=this['_suggestions']['get'](_0x52a4fb)||this['_createSuggestion'](_0x58004c,_0x410bf0,_0x52a4fb,_0x2c05ea,{});switch(this['_checkSuggestionCorrectness'](_0x4ec913,_0x58004c,_0x410bf0,_0x2c05ea),this['_suggestionState']['get'](_0x4ec913)){case'notReady':this['_getSuggestionData'](_0x52a4fb)['then'](_0x2a0519=>{let _0xef3140=Promise['resolve']();_0x2a0519['hasComments']&&(_0xef3140=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x52a4fb})),_0xef3140['then'](()=>{this['addSuggestionData'](_0x2a0519)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4ec913,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x52a4fb,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4ec913,'ready'),this['fire']('suggestionLoaded',_0x4ec913);break;case'ready':this['fire']('suggestionChanged',_0x4ec913);}return _0x4ec913['addMarkerName'](_0x160023),_0x4ec913;}['_refreshSuggestionsChain'](_0x11b38b){const _0x5ef505=Array['from'](_0x11b38b),_0xc05cc6=_0x5ef505['filter'](_0x1e190e=>'attribute'==_0x1e190e['type']);this['_refreshAttributeSuggestionsChain'](_0xc05cc6);const _0x399d82=_0x5ef505['filter'](_0x3e3bcd=>!_0x3e3bcd['isMultiRange']&&'attribute'!=_0x3e3bcd['type']),_0x29a582=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x17753f=>!_0x17753f['isMultiRange']&&'attribute'!=_0x17753f['type']),_0x4aaafa=_0x29a582['filter'](_0x394388=>!_0x11b38b['has'](_0x394388)),_0x315951=new Map(_0x29a582['map'](_0x541f93=>[_0x541f93,this['_suggestionFactory']['getSuggestionCallback'](_0x541f93['type'],_0x541f93['subType'],'chain')])),_0x4b86f5=new Map(_0x29a582['map'](_0x191c0b=>[_0x191c0b,_0x191c0b['getFirstRange']()])),_0x4aea72=new Set(),_0x19f0ab=new Set();for(let _0x2a39f6=0x0;_0x2a39f6<_0x399d82['length'];_0x2a39f6++)_0x2076ce(_0x399d82[_0x2a39f6],_0x399d82,_0x2a39f6+0x1);for(let _0x4fbf78=0x0;_0x4fbf78<_0x399d82['length'];_0x4fbf78++)_0x2076ce(_0x399d82[_0x4fbf78],_0x4aaafa,0x0);const _0x217a6a=new Set();for(let _0x1ad36=0x0;_0x1ad36<_0x399d82['length'];_0x1ad36++){const _0x1f105e=_0x399d82[_0x1ad36];!_0x19f0ab['has'](_0x1f105e)&&_0x1f105e['previous']&&(_0x217a6a['add'](_0x1f105e['previous']),_0x1f105e['previous']['next']===_0x1f105e&&(_0x1f105e['previous']['next']=null),_0x1f105e['previous']=null),!_0x4aea72['has'](_0x1f105e)&&_0x1f105e['next']&&(_0x217a6a['add'](_0x1f105e['next']),_0x1f105e['next']['previous']===_0x1f105e&&(_0x1f105e['next']['previous']=null),_0x1f105e['next']=null);}function _0x2076ce(_0x406fb6,_0x355d94,_0xf30d86){for(let _0x4f2602=_0xf30d86;_0x4f2602<_0x355d94['length'];_0x4f2602++){const _0x2d30c3=_0x44486c(_0x406fb6,_0x355d94[_0x4f2602]);_0x2d30c3&&(_0x2d30c3[0x0]['next']=_0x2d30c3[0x1],_0x2d30c3[0x1]['previous']=_0x2d30c3[0x0],_0x4aea72['add'](_0x2d30c3[0x0]),_0x19f0ab['add'](_0x2d30c3[0x1]));}}function _0x44486c(_0x2a3078,_0xaeed3d){if(_0x2a3078['author']['id']!==_0xaeed3d['author']['id'])return null;const _0x30ce93=_0x315951['get'](_0x2a3078)(_0x2a3078,_0xaeed3d,_0x4b86f5['get'](_0x2a3078),_0x4b86f5['get'](_0xaeed3d));if(!_0x30ce93)return null;return _0x315951['get'](_0xaeed3d)(_0x2a3078,_0xaeed3d,_0x4b86f5['get'](_0x2a3078),_0x4b86f5['get'](_0xaeed3d))?_0x30ce93[0x1]['commentThread']&&_0x30ce93[0x1]['commentThread']['length']?null:_0x30ce93:null;}_0x217a6a['size']&&this['_refreshSuggestionsChain'](_0x217a6a);}['_refreshAttributeSuggestionsChain'](_0xa8af7e){if(0x0==_0xa8af7e['length'])return;const _0x1bd0f9=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x38886e=>'attribute'==_0x38886e['type']&&_0x38886e['_isDataLoaded']),_0x367105=[],_0x10a0ec=new Map();for(const _0x5adfda of _0x1bd0f9){const _0x33c403=_0x2f0848(_0x5adfda['attributes']);_0x10a0ec['has'](_0x33c403)||(_0x10a0ec['set'](_0x33c403,_0x367105['length']),_0x367105['push']([]));const _0x422526=_0x10a0ec['get'](_0x33c403);_0x367105[_0x422526]['push'](_0x5adfda);}!(function(){_0x367105['sort']((_0x1390b0,_0x1d3cc0)=>{const _0x2fdce9=_0x1390b0[0x0]['createdAt'],_0x3330c9=_0x1d3cc0[0x0]['createdAt'];return _0x2fdce9==_0x3330c9?_0x1390b0[0x0]['attributes']['groupId']<_0x1d3cc0[0x0]['attributes']['groupId']?-0x1:0x1:_0x2fdce9<_0x3330c9?-0x1:0x1;});for(const _0x13a457 of _0x367105)_0x13a457['sort']((_0x746314,_0x32cb65)=>_0x746314['id']<_0x32cb65['id']?-0x1:0x1);}());for(let _0x2e805f=0x0;_0x2e805f<_0x367105['length'];_0x2e805f++){if(0x0==_0x367105[_0x2e805f]['length'])continue;const _0x475741=[];for(let _0x58ae92=_0x2e805f+0x1;_0x58ae92<_0x367105['length'];_0x58ae92++)0x0!=_0x367105[_0x58ae92]['length']&&_0x25be21(_0x367105[_0x2e805f],_0x367105[_0x58ae92])&&_0x475741['push'](_0x58ae92);for(const _0x535b7f of _0x475741)_0x367105[_0x2e805f]=_0x367105[_0x2e805f]['concat'](_0x367105[_0x535b7f]),_0x367105[_0x535b7f]=[];}for(const _0x59bf84 of _0x367105)for(let _0x2699dd=0x0;_0x2699dd<_0x59bf84['length'];_0x2699dd++){const _0x4636bb=_0x59bf84[_0x2699dd+0x1]||null;_0x59bf84[_0x2699dd]['next']!==_0x4636bb&&(_0x59bf84[_0x2699dd]['next']=_0x4636bb);}for(const _0x118b8f of _0x367105)for(let _0x4f3a33=0x0;_0x4f3a33<_0x118b8f['length'];_0x4f3a33++){const _0x50a787=_0x118b8f[_0x4f3a33-0x1]||null;_0x118b8f[_0x4f3a33]['previous']!==_0x50a787&&(_0x118b8f[_0x4f3a33]['previous']=_0x50a787);}function _0x25be21(_0x536d50,_0x2f7983){if(_0x536d50[0x0]['attributes']['groupId']!==_0x2f7983[0x0]['attributes']['groupId']&&_0x536d50[0x0]['author']!==_0x2f7983[0x0]['author'])return!0x1;if(!function(_0x734adc,_0x3e6b69){if(!_0x734adc['hasComments']&&!_0x3e6b69['hasComments'])return!0x0;if(_0x734adc['hasComments']&&_0x3e6b69['hasComments'])return!0x1;if(_0x734adc['hasComments']&&_0x3e6b69['createdAt']<_0x734adc['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x3e6b69['hasComments']&&_0x734adc['createdAt']<_0x3e6b69['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x536d50[0x0],_0x2f7983[0x0]))return!0x1;const _0x669a6=Ut(_0x536d50[0x0]['attributes'],['groupId','trackingSessionId']),_0xa70412=Ut(_0x2f7983[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x2d7833(_0x669a6,_0xa70412))return!0x1;if(_0x536d50[0x0]['attributes']['groupId']==_0x2f7983[0x0]['attributes']['groupId'])return!0x0;if(_0x536d50[0x0]['attributes']['trackingSessionId']!==_0x2f7983[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x536d50['every'](_0x55e607=>_0x2f7983['some'](_0x5be9fa=>_0x55e607['getFirstRange']()['isEqual'](_0x5be9fa['getFirstRange']())))&&_0x2f7983['every'](_0x533ec5=>_0x536d50['some'](_0x1eee9e=>_0x533ec5['getFirstRange']()['isEqual'](_0x1eee9e['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x11317f){const _0x62dfbe=Array['from'](_0x11317f),_0x2fb897=this['getSuggestions']({'skipNotAttached':!0x0}),_0xfcbc22=_0x2fb897['filter'](_0x5146d5=>!_0x11317f['has'](_0x5146d5)),_0x412af6=new Map(_0x62dfbe['map'](_0x120285=>[_0x120285,this['_suggestionFactory']['getSuggestionCallback'](_0x120285['type'],_0x120285['subType'],'join')])),_0x2588ec=new Map(_0x2fb897['map'](_0x56fbde=>[_0x56fbde,_0x56fbde['getRanges']()]));for(let _0x389d56=0x0;_0x389d56<_0x62dfbe['length'];_0x389d56++){if(_0x1ae9fa(this,_0x62dfbe[_0x389d56],_0x62dfbe,_0x389d56+0x1))return!0x0;}for(let _0x478b3d=0x0;_0x478b3d<_0x62dfbe['length'];_0x478b3d++){if(_0x1ae9fa(this,_0x62dfbe[_0x478b3d],_0xfcbc22,0x0))return!0x0;}return!0x1;function _0x1ae9fa(_0x2508cd,_0x4c574f,_0x200c28,_0x518153){for(let _0x1cbc29=_0x518153;_0x1cbc29<_0x200c28['length'];_0x1cbc29++){const _0x41a92f=_0x200c28[_0x1cbc29];if(_0x41a92f['type']!==_0x4c574f['type']||_0x41a92f['author']['id']!==_0x4c574f['author']['id']||_0x41a92f['subType']!==_0x4c574f['subType'])continue;if(!Qt(_0x4c574f,_0x41a92f))continue;if('attribute'==_0x4c574f['type']&&_0x4c574f['data']['oldValue']!=_0x41a92f['data']['oldValue'])continue;if('attribute'==_0x4c574f['type']&&_0x2508cd['_isBlockAttribute'](_0x4c574f['data']['key']))continue;if('formatBlock'==_0x4c574f['type']){const _0x6792f7=_0x2508cd['editor']['model'],_0x574ef4=_0x4c574f['getContainedElement']();if(_0x574ef4&&(_0x6792f7['schema']['isObject'](_0x574ef4)||_0x6792f7['schema']['isLimit'](_0x574ef4)))continue;}const _0x2b4058=_0x412af6['get'](_0x4c574f),_0x7ccd80=_0x2588ec['get'](_0x4c574f),_0x3feb0e=_0x2588ec['get'](_0x41a92f),_0xf06f5a=_0x4c574f['commentThread']&&_0x4c574f['commentThread']['length'],_0x1f06e8=_0x41a92f['commentThread']&&_0x41a92f['commentThread']['length'];if(!_0xf06f5a&&_0x2b4058(_0x3feb0e,_0x7ccd80))return _0x2508cd['_joinSuggestions'](_0x41a92f,_0x4c574f),_0x2588ec['delete'](_0x4c574f),!0x0;if(!_0x1f06e8&&_0x2b4058(_0x7ccd80,_0x3feb0e))return _0x2508cd['_joinSuggestions'](_0x4c574f,_0x41a92f),_0x2588ec['delete'](_0x41a92f),!0x0;}return!0x1;}}['_joinSuggestions'](_0x41be05,_0x4eeeef){if(_0x41be05['isMultiRange']){for(const _0x5f5059 of _0x4eeeef['getRanges']())_0x41be05['addRange'](_0x5f5059);}else{const _0x19f75c=_0x4eeeef['getFirstRange']()['end'];this['_setSuggestionRange'](_0x41be05,this['_model']['createRange'](_0x41be05['getFirstRange']()['start'],_0x19f75c));}_0x4eeeef['removeMarkers']();}['_getMarkerAnnouncementText'](_0x329ce8,_0x2563bf,_0x307a4a){const _0x4347ec=_0x329ce8['startsWith']('format')||_0x329ce8['startsWith']('attribute')?'FORMATTING':_0x329ce8['toUpperCase']();return o(this['editor']['locale'],_0x2563bf+'_'+_0x4347ec+'_SUGGESTION_ANNOUNCEMENT',_0x307a4a);}['_initAriaMarkerChangeAnnouncements'](){const _0x4e65a8=this['editor'];if(!_0x4e65a8['ui'])return;const {ariaLiveAnnouncer:_0x20b7ac}=_0x4e65a8['ui'];_0x4c72ed(this['_model'],({left:_0x54790a,entered:_0x348439})=>{for(const _0x263bc4 of _0x54790a){const {group:_0x12969a,type:_0xf54dd0}=this['_splitMarkerName'](_0x263bc4['name']);if('suggestion'===_0x12969a){_0x20b7ac['announce'](this['_getMarkerAnnouncementText'](_0xf54dd0,'LEAVE'));break;}}for(const _0x1960bb of _0x348439){const {group:_0x2a1bc7,type:_0x3fc072}=this['_splitMarkerName'](_0x1960bb['name']);if('suggestion'===_0x2a1bc7){_0x20b7ac['announce'](this['_getMarkerAnnouncementText'](_0x3fc072,'ENTER',_0x323ba9(_0x164adf)));break;}}});}['_processAttributeChanges'](_0x2da090){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4f12e3=this['editor'],_0x2f8568=_0x4f12e3['model']['document']['differ']['getChanges']();if(0x0==_0x2f8568['length'])return!0x1;const _0x4b5079=[],_0x1a4c25=_0x2f8568['filter'](_0x4cbfa4=>'attribute'==_0x4cbfa4['type']),_0x5518c1=_0x2f8568['filter'](_0x56bbf4=>'insert'==_0x56bbf4['type']&&'$text'!=_0x56bbf4['name']),_0x5a6d26=_0x2f8568['filter'](_0x45370f=>'remove'==_0x45370f['type']&&'$text'!=_0x45370f['name']);for(const _0x10bce6 of _0x1a4c25)_0x4b5079['push']({'key':_0x10bce6['attributeKey'],'newValue':_0x10bce6['attributeNewValue'],'oldValue':_0x10bce6['attributeOldValue'],'range':qt(_0x10bce6['range'],_0x4f12e3['model'])});for(const _0x30a8e3 of _0x5518c1){const _0x3146a6=_0x5a6d26['find'](_0xb4fc4c=>_0xb4fc4c['position']['isEqual'](_0x30a8e3['position']));_0x3146a6&&_0x4b5079['push']({'key':m,'newValue':_0x30a8e3['name'],'oldValue':_0x3146a6['name'],'range':_0x4f12e3['model']['createRangeOn'](_0x30a8e3['position']['nodeAfter'])});}return 0x0!=_0x4b5079['length']&&this['_reduceExistingSuggestions'](_0x2da090,_0x4b5079);}['_processAttributeSuggestions'](_0x105554){let _0x356c5c=!0x1;const _0x271680=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x12ecea=>_0x12ecea['data']['newRange']&&_0x12ecea['name']['startsWith']('suggestion:attribute:'));for(const _0x241ddb of _0x271680){const {subType:_0x52da95,id:_0x8b4b66}=this['_splitMarkerName'](_0x241ddb['name']),_0x157f36=_0x52da95['split']('|')[0x0];for(const _0x1f5143 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x1f5143['id']!=_0x8b4b66&&'attribute'==_0x1f5143['type']&&_0x1f5143['data']&&_0x1f5143['data']['key']==_0x157f36&&_0x1f5143['getFirstRange']()['isIntersecting'](_0x241ddb['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x1f5143,_0x241ddb['data']['newRange'],_0x105554),_0x356c5c=!0x0);}return _0x356c5c;}['recordAttributeChanges'](_0x4616dc){this['_recordAttributeSuggestions']=!0x0,_0x4616dc();}['_isRegisteredAttribute'](_0x14cac1){const _0x56575f=this['_isBlockAttribute'](_0x14cac1),_0x5518a7=this['_isInlineAttribute'](_0x14cac1);return _0x56575f||_0x5518a7;}['_reduceExistingSuggestions'](_0x1159e8,_0x4e450b){if(0x0==_0x4e450b['length'])return!0x1;let _0x5262ef=!0x1;for(const _0x3b2d6a of _0x4e450b){const _0x289d95=this['_findSuggestions'](_0x3b2d6a['range'],'attribute')['filter'](_0x142723=>!_0x142723['meta']['isNextTo'])['map'](_0x946e35=>_0x946e35['suggestion']),_0x4c674c=_0x2f0848({'newValue':_0x3b2d6a['newValue']});_0x289d95['filter'](_0xff987a=>{const [_0x29a1f9,_0x323738]=_0xff987a['subType']['split']('|');return _0x29a1f9==_0x3b2d6a['key']&&_0x323738!=_0x4c674c;})['forEach'](_0x2322cc=>{this['_reduceSuggestionAttributeRange'](_0x2322cc,_0x3b2d6a['range'],_0x1159e8),_0x5262ef=!0x0;});}return _0x5262ef;}['_reduceSuggestionAttributeRange'](_0x5e152d,_0x683717,_0x5dc459){const _0x37297b=_0x5e152d['getFirstRange']()['getDifference'](_0x683717);0x0!==_0x37297b['length']?0x1!==_0x37297b['length']?this['_breakSuggestionMarker'](_0x5e152d,_0x683717['start'],_0x683717['end']):this['_setSuggestionRange'](_0x5e152d,_0x37297b[0x0]):_0x5dc459['removeMarker'](_0x5e152d['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5b749b){this['_editor']=_0x5b749b,this['_model']=_0x5b749b['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x318de0,_0x2436df,_0x4b81fc,_0x20261e,_0x330427,_0x47a912,_0x1f699c){return new T(this['_model'],{'type':_0x318de0,'subType':_0x2436df,'id':_0x4b81fc,'originalSuggestionId':_0x1f699c,'author':_0x20261e,'creator':_0x20261e,'attributes':_0x330427,'onAttributesChange':_0x47a912,'onAccept':(..._0x274e32)=>this['getSuggestionCallback'](_0x318de0,_0x2436df,'accept')(..._0x274e32),'onDiscard':(..._0x4421f2)=>this['getSuggestionCallback'](_0x318de0,_0x2436df,'discard')(..._0x4421f2)});}['registerCustomCallback'](_0x2fe1ab,_0x180fd4,_0xc2fc9d,_0x3bf6c0){const _0x1159b8=_0x2fe1ab+':'+_0x180fd4+':'+_0xc2fc9d;this['_customCallbacks']['set'](_0x1159b8,_0x3bf6c0);}['getSuggestionCallback'](_0x2c1035,_0x36053d,_0x37c1af){const _0x17bae1=_0x2c1035+':'+_0x36053d+':'+_0x37c1af;return this['_customCallbacks']['get'](_0x17bae1)||this['_defaultCallbacks']['get'](_0x2c1035+':'+_0x37c1af);}['_registerDefaultCallbacks'](){const _0x1bdab0=()=>!0x1,_0xac068c=_0x38839a=>{_0x38839a['sort']((_0x387866,_0x2cdeb1)=>_0x387866['start']['isBefore'](_0x2cdeb1['start'])?0x1:-0x1),this['_model']['change'](_0x53672e=>{for(const _0x119d90 of _0x38839a){let _0x2fa401;_0x2fa401=_0x119d90['end']['isAtEnd']&&_0x119d90['end']['parent']==_0x119d90['start']['nodeAfter']?_0x53672e['createSelection'](_0x119d90['start']['nodeAfter'],'on'):_0x53672e['createSelection'](_0x119d90),this['_model']['deleteContent'](_0x2fa401,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x4fdad8=(_0x49f300,_0x246b94)=>{_0x246b94&&this['_model']['change'](_0x16d5f8=>{const {commandName:_0x5eec71,commandParams:_0x239d50=[]}=_0x246b94,_0x4a20a9=_0x49f300['map'](_0x86a8ea=>(Pt(_0x86a8ea)&&(_0x86a8ea=this['_model']['createRange'](_0x86a8ea['end'])),_0x86a8ea))['filter'](_0x1b4c4b=>'$graveyard'!==_0x1b4c4b['root']['rootName']);if(_0x4a20a9['length']<0x1)return;const _0x28b9fb=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x588466=>_0x21756a['fromRange'](_0x588466));_0x16d5f8['setSelection'](_0x4a20a9);for(const _0x4685c4 of this['_editor']['commands']['commands']())_0x4685c4['refresh']();_0x239d50['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x5eec71,..._0x239d50);const _0xa40c84=_0x28b9fb['filter'](_0x592d6a=>'$graveyard'!=_0x592d6a['root']['rootName']);_0xa40c84['length']>0x0&&_0x16d5f8['setSelection'](_0xa40c84);for(const _0x1fe55f of _0x28b9fb)_0x1fe55f['detach']();});},_0x1f7023=(_0x5f5aaa,_0x3469e9)=>0x1==_0x5f5aaa['length']&&0x1==_0x3469e9['length']&&_0x5f5aaa[0x0]['end']['isEqual'](_0x3469e9[0x0]['start']),_0x1858b8=(_0x2084d5,_0x8f49de,_0x42ecaf,_0x2c5cca)=>Wt(_0x2084d5,_0x8f49de,_0x42ecaf,_0x2c5cca)?[_0x2084d5,_0x8f49de]:Wt(_0x8f49de,_0x2084d5,_0x2c5cca,_0x42ecaf)?[_0x8f49de,_0x2084d5]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x1bdab0),this['_defaultCallbacks']['set']('insertion:discard',_0xac068c),this['_defaultCallbacks']['set']('insertion:join',_0x1f7023),this['_defaultCallbacks']['set']('insertion:chain',_0x1858b8),this['_defaultCallbacks']['set']('deletion:accept',_0xac068c),this['_defaultCallbacks']['set']('deletion:discard',_0x1bdab0),this['_defaultCallbacks']['set']('deletion:join',_0x1f7023),this['_defaultCallbacks']['set']('deletion:chain',_0x1858b8),this['_defaultCallbacks']['set']('formatInline:accept',_0x4fdad8),this['_defaultCallbacks']['set']('formatInline:discard',_0x1bdab0),this['_defaultCallbacks']['set']('formatInline:join',_0x1f7023),this['_defaultCallbacks']['set']('formatInline:chain',_0x1bdab0),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4fdad8),this['_defaultCallbacks']['set']('formatBlock:discard',_0x1bdab0),this['_defaultCallbacks']['set']('formatBlock:join',_0x1f7023),this['_defaultCallbacks']['set']('formatBlock:chain',_0x1bdab0),this['_defaultCallbacks']['set']('attribute:accept',_0x1bdab0),this['_defaultCallbacks']['set']('attribute:discard',(_0x1b8af8,_0x23a4ab)=>{if(!_0x23a4ab)return;const _0x3ee31b=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x22abb8=>{if(_0x23a4ab['key']==m)for(const _0x1be004 of _0x1b8af8){const _0x176eb6=_0x1be004['start']['nodeAfter'],_0xb0b85=_0x23a4ab['oldValue'];_0x22abb8['rename'](_0x176eb6,_0xb0b85);}else{if(_0x3ee31b['_isBlockAttribute'](_0x23a4ab['key'])){for(const _0x1825d6 of _0x1b8af8)void 0x0!==_0x23a4ab['oldValue']?_0x22abb8['setAttribute'](_0x23a4ab['key'],_0x23a4ab['oldValue'],_0x1825d6['start']['nodeAfter']):_0x22abb8['removeAttribute'](_0x23a4ab['key'],_0x1825d6['start']['nodeAfter']);}else{for(const _0x2a7fa5 of _0x1b8af8)_0x23a4ab['oldValue']?_0x22abb8['setAttribute'](_0x23a4ab['key'],_0x23a4ab['oldValue'],_0x2a7fa5):_0x22abb8['removeAttribute'](_0x23a4ab['key'],_0x2a7fa5);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1f7023);}}function Ft(_0x153044,_0x34839e,_0x144435){for(const _0x4f18fc of _0x34839e['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4f18fc['root']==_0x4f18fc)return!0x1;if(!_0x144435['containsItem'](_0x4f18fc))return!0x1;if(_0x153044['isObject'](_0x4f18fc)||_0x153044['isLimit'](_0x4f18fc))return!0x0;}return!0x1;}function Pt(_0x42e882){return _0x42e882['end']['parent']==_0x42e882['start']['nodeAfter']&&_0x42e882['end']['isAtStart'];}function Gt(_0x1efed6,_0x105e16,_0x33fb4e,_0x875313){const _0x21143a=_0x119f77=>!_0x119f77['item']['is']('$textProxy')&&!_0x875313['isObject'](_0x119f77['item']),_0x41384b=_0x1efed6['start']['getLastMatchingPosition'](_0x21143a),_0x4b0fc8=_0x1efed6['end']['getLastMatchingPosition'](_0x21143a,{'direction':'backward'});return(!_0x1efed6['start']['isEqual'](_0x41384b)||!_0x1efed6['end']['isEqual'](_0x4b0fc8))&&(_0x41384b['isBefore'](_0x4b0fc8)?_0x33fb4e['updateMarker'](_0x105e16,{'range':_0x33fb4e['createRange'](_0x41384b,_0x4b0fc8)}):_0x33fb4e['removeMarker'](_0x105e16),!0x0);}function Lt(_0x524f45){return _0x2f0848(_0x524f45);}function Jt(_0x1817e8){const _0x242bfb=_0x1817e8['start']['nodeAfter'];return _0x242bfb&&_0x242bfb['is']('element');}function Kt(_0xa873c9){return Pt(_0xa873c9)||function(_0x176256){return _0x176256['start']['parent']==_0x176256['end']['nodeBefore']&&_0x176256['start']['isAtEnd'];}(_0xa873c9);}function Ht(_0x3734e3,_0x5b4e1d){try{const _0x389549=_0x3734e3['getRange']();for(const _0x22993d of _0x5b4e1d)if(_0x3734e3!==_0x22993d&&_0x389549&&_0x389549['isIntersecting'](_0x22993d['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function qt(_0x1d0f7b,_0x2ee8f2){return null==_0x1d0f7b['end']['nodeBefore']&&_0x1d0f7b['end']['parent']==_0x1d0f7b['start']['nodeAfter']?zt(_0x1d0f7b['start']['nodeAfter'],_0x2ee8f2):_0x1d0f7b;}function zt(_0x59df9f,_0x21c1dd){const _0x2d3d86=_0x21c1dd['schema']['isObject'](_0x59df9f)||_0x21c1dd['schema']['isSelectable'](_0x59df9f);return _0x21c1dd['createRange'](_0x21c1dd['createPositionAt'](_0x59df9f,'before'),_0x2d3d86?_0x21c1dd['createPositionAfter'](_0x59df9f):_0x21c1dd['createPositionAt'](_0x59df9f,'end'));}function Wt(_0x2f37b1,_0x22d9fd,_0x42fa31,_0xa8c011){return!!Qt(_0x2f37b1,_0x22d9fd)&&_0x42fa31['end']['isEqual'](_0xa8c011['start']);}function Qt(_0xe26466,_0x2a6af8){if(!_0xe26466['_isDataLoaded']||!_0x2a6af8['_isDataLoaded'])return!0x1;const _0x37c143=new Set(Object['keys'](_0xe26466['attributes'])),_0x359350=new Set(Object['keys'](_0x2a6af8['attributes']));if(_0x37c143['delete']('groupId'),_0x359350['delete']('groupId'),0x0==_0x37c143['size']&&0x0==_0x359350['size'])return!0x0;if(_0x37c143['size']!=_0x359350['size'])return!0x1;const _0x407ee4={..._0xe26466['attributes']},_0x40462d={..._0x2a6af8['attributes']};return delete _0x407ee4['groupId'],delete _0x40462d['groupId'],JSON['stringify'](_0x407ee4)==JSON['stringify'](_0x40462d);}function Xt(_0x1c83e4,_0x54e1e4){const _0x4af197=Yt(_0x1c83e4['attributes']),_0x23a9f6=Yt(_0x54e1e4);if(!_0x1c83e4['_isDataLoaded'])return!0x1;for(const _0x56b8c6 of Object['keys'](_0x23a9f6))if(!_0x2d7833(_0x4af197[_0x56b8c6],_0x23a9f6[_0x56b8c6]))return!0x1;return!0x0;}function Yt(_0x31cb8f){const _0xa7e5a4=Object['assign']({},_0x31cb8f);return delete _0xa7e5a4['skipNestingCheck'],delete _0xa7e5a4['tablePasteChainId'],_0xa7e5a4;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x5f4475(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x118f03,_0x49ed83,_0x7862de,_0x40611b){super(),this['model']=_0x49ed83,this['view']=_0x7862de,this['commentThreadController']=_0x40611b,this['_editor']=_0x118f03,this['_acceptCommand']=_0x118f03['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x118f03['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x550401,_0x1ff97b)=>_0x550401||_0x1ff97b),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x52d100=>_0x52d100&&this['_editor']['model']['canEditAt'](_0x49ed83['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3f8f66=>_0x3f8f66&&this['_editor']['model']['canEditAt'](_0x49ed83['getRanges']())),this['_pendingAction']=null,_0x7862de['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x7862de,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x7862de,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x7862de,'change:isDirty',()=>{_0x7862de['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 _0x2d53b2=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x2d53b2);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ti extends _0x431475{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x1ec083,_0x13c40c,_0x37e676,_0x377583){super(_0x1ec083),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x400a41(_0x1ec083,o(_0x1ec083,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x13c40c['authoredAt']),this['bind']('authoredAt')['to'](_0x13c40c),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',_0x13c40c,'authoredAt',this,'descriptionParts',(_0x23dcbf,_0x1f564d,_0x4b1ae8)=>{const _0x43f8fb=_0x4b1ae8['map'](_0x2b08c3=>ls(_0x2b08c3['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x23dcbf-0x1,_0x13c40c['author']['name'],_0x1f564d?_0x377583['formatDateTime'](_0x1f564d):'',new DOMParser()['parseFromString'](_0x43f8fb,'text/html')['body']['textContent']]);}),this['focusables']=new _0x5d01d9(),this['focusTracker']=new _0x28748c(),this['keystrokes']=new _0x24d05b(),this['focusCycler']=new _0x26f916({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x181c34=>_0x181c34['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x13c40c,this['_localUser']=_0x37e676,this['_config']=_0x377583,_0x377583['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x985267(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x571ac2}=this['_config'];this['commentsListView']=new _0x571ac2(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',_0x48e7d4=>_0x48e7d4+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0xff97c2,_0x161a8a)=>_0xff97c2||!!_0x161a8a);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2c69c0}=this['_config'],_0x401f8d=new _0x2c69c0(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2bb974=_0x401f8d['commentInputView'];return _0x401f8d['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2bb974,'value',(_0x463312,_0x2e4f94,_0x5e4082)=>!!_0x5e4082||_0x463312&&!_0x2e4f94),_0x2bb974['on']('submit',(_0x54e0fd,_0x2d29eb)=>{this['fire']('addComment',_0x2d29eb),_0x2bb974['editor']['setData']('');}),_0x2bb974['on']('cancel',()=>this['focus']()),_0x2bb974['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x401f8d;}}class fe extends ti{['suggestionView'];['_descriptionElement'];constructor(_0x303205,_0x2478bf,_0x1d4291,_0x54196e){super(_0x303205,_0x2478bf,_0x1d4291,_0x54196e),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x1bd652=>_0x1bd652&&_0x1bd652[0x0]?_0x1bd652[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x28c5d6,_0x300d6a)=>{let _0x4792ff='';for(const _0x10e344 of _0x28c5d6)_0x4792ff+='<p>'+ls(_0x10e344['content'],_0x10e344['color'])+'</p>';return _0x300d6a?_0x4792ff:_0x28f815(_0x4792ff,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x54196e['SuggestionView'](_0x303205,_0x2478bf,{'formatDateTime':_0x54196e['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 _0x130726=this['bindTemplate'],_0xdb265c=[this['suggestionView']];return this['commentsListView']&&_0xdb265c['push'](this['commentsListView']),this['commentThreadInputView']&&_0xdb265c['push'](this['commentThreadInputView']),_0xdb265c['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x130726['if']('isActive','ck-suggestion-wrapper--active'),_0x130726['to']('type',_0x3e9a55=>'ck-suggestion-'+_0x3e9a55),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':_0x130726['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0xdb265c};}['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 _0x431475{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x564369,_0x3dcd2e,_0x1cee1b){super(_0x564369),this['_model']=_0x3dcd2e,this['_config']=_0x1cee1b,this['set']('description',''),this['bind']('authoredAt')['to'](_0x3dcd2e),this['acceptButton']=this['_createButton'](o(_0x564369,'Accept\x20suggestion'),_0x3db85f,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x564369,'Discard\x20suggestion'),_0x14e7e0,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x364437(_0x564369,_0x3dcd2e['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x5d01d9([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x28748c(),this['keystrokes']=new _0x24d05b(),this['focusCycler']=new _0x26f916({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x55a32f=>_0x55a32f['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x3c421a=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x3c421a['innerHTML']=this['description'],this['on']('change:description',(_0x52f763,_0x1e9163,_0x3323a5)=>{_0x3c421a['innerHTML']=_0x3323a5;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x35c794=this['bindTemplate'],_0x4b7411=[{'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':_0x35c794['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x35c794['to']('authoredAt',_0x5992fe=>this['_config']['formatDateTime'](_0x5992fe))}]}]},{'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']&&_0x4b7411['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':_0x4b7411}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x32dc42,_0xfcd42,_0x30d9c0,_0x3ba914,_0x196938){const _0x5e8d55=new _0x65421f(this['locale']);return _0x5e8d55['set']({'label':_0x32dc42,'icon':_0xfcd42,'tooltip':!0x0,'tooltipPosition':_0x196938}),_0x5e8d55['extendTemplate']({'attributes':{'class':_0x30d9c0}}),_0x5e8d55['on']('execute',()=>{this['fire'](_0x3ba914,this['_model']['id']);}),_0x5e8d55;}['_setupKeyboardNavigation'](){const _0xb0878b=this['element'];this['keystrokes']['listenTo'](_0xb0878b);for(const _0x78e776 of this['focusables'])this['focusTracker']['add'](_0x78e776['element']),this['keystrokes']['listenTo'](_0x78e776['element']);this['keystrokes']['set']('enter',(_0x3c1b28,_0x54e666)=>{_0xb0878b===_0x3c1b28['target']&&(this['focusCycler']['focusFirst'](),_0x54e666());}),this['keystrokes']['set']('esc',(_0x5b3665,_0x581a52)=>{_0xb0878b!==_0x5b3665['target']&&(this['focus'](),_0x581a52());});}}class u extends _0x493265{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x36327f,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x37b772){super(_0x37b772),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x125f47=this['editor']['config'];_0x125f47['define']('trackChanges.SuggestionThreadView',fe),_0x125f47['define']('trackChanges.SuggestionView',we),_0x125f47['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x125f47['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x5eac25,_0x56d44b){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1b0fe8,_0x18804c]of this['_handleControllerBuffer']){const _0x597a70=this['_suggestionToController']['has'](_0x1b0fe8);_0x597a70||_0x18804c?_0x597a70&&_0x18804c&&this['_destroyController'](_0x1b0fe8):this['_initializeController'](_0x1b0fe8);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x5eac25,_0x56d44b);}['init'](){const _0x12aca4=this['editor'],_0x353d5f=_0x12aca4['plugins']['get']('TrackChangesEditing'),_0x53db9b=_0x12aca4['plugins']['get']('Annotations'),_0x50894e=_0x12aca4['plugins']['get']('EditorAnnotations'),_0x729c53=_0x12aca4['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x50894e['addSourceCollector'](()=>{const _0x3ed4c0=[];for(const [_0x319ded,_0x41b78d]of Array['from'](this['_suggestionToController'])){const _0x1c4276=_0x319ded['getAllAdjacentSuggestions'](),_0x2ec4b8=[];for(const _0x139a76 of _0x1c4276){if(!_0x139a76['isInContent'])continue;if(_0x139a76['isMultiRange']){_0x2ec4b8['push'](..._0x139a76['getRanges']());continue;}const _0x1fe272=_0x139a76['getFirstRange']();if(_0x2ec4b8['length']>0x0){const _0x1c86e4=_0x2ec4b8[0x0]['getJoined'](_0x1fe272);if(_0x1c86e4){_0x2ec4b8[0x0]=_0x1c86e4;continue;}}_0x2ec4b8['push'](_0x1fe272);}_0x3ed4c0['push']([_0x41b78d['view'],_0x2ec4b8]);}return _0x3ed4c0;}),this['listenTo'](_0x353d5f,'suggestionLoaded',(_0xfde38e,_0x2463e3)=>{this['listenTo'](_0x2463e3,'change:previous',(_0x4ca553,_0x25f8de,_0x402ff9,_0x4d3272)=>{_0x2463e3['isInContent']&&(null==_0x402ff9?(this['_updateController'](_0x4d3272['head']),this['_handleSuggestionControllerDelayed'](_0x2463e3,!0x1)):(this['_updateController'](_0x402ff9['head']),null==_0x4d3272&&this['_handleSuggestionControllerDelayed'](_0x2463e3,!0x0)));}),null!==_0x2463e3['previous']?this['_updateController'](_0x2463e3['head']):this['_handleSuggestionControllerDelayed'](_0x2463e3,!0x1);}),this['listenTo'](_0x353d5f,'suggestionUnloaded',(_0x44e92b,_0x45655c,_0x431ea6)=>{this['stopListening'](_0x45655c,'change:previous'),this['_handleControllerBuffer']['delete'](_0x45655c),this['_suggestionToController']['has'](_0x45655c)&&this['_destroyController'](_0x45655c),_0x431ea6&&this['_updateController'](_0x431ea6['head']);}),this['listenTo'](_0x353d5f,'suggestionChanged',(_0x2f8455,_0x1562ea)=>{this['_updateController'](_0x1562ea);}),this['listenTo'](_0x53db9b,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x729c53,'addComment',(_0x56979d,{threadId:_0x2f8f6f,isFromAdapter:_0x5aca71})=>{if(_0x5aca71||!_0x353d5f['hasSuggestion'](_0x2f8f6f))return;const _0x3b3906=_0x353d5f['getSuggestion'](_0x2f8f6f);this['_suggestionToController']['get'](_0x3b3906)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x536af5=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4c68bf;for(const _0x114597 in _0x536af5){const _0x2f459d=_0x114597,_0xf59e94=_0x536af5[_0x2f459d];if('trackChangesLicenseKeyValid'==_0xf59e94||'trackChangesLicenseKeyInvalid'==_0xf59e94||'trackChangesLicenseKeyExpired'==_0xf59e94||'trackChangesLicenseKeyDomainLimit'==_0xf59e94||'trackChangesLicenseKeyNotAllowed'==_0xf59e94||'trackChangesLicenseKeyEvaluationLimit'==_0xf59e94||'trackChangesLicenseKeyTrialLimit'==_0xf59e94||'trackChangesLicenseKeyUsageLimit'==_0xf59e94){delete _0x536af5[_0x2f459d],_0x4c68bf=_0xf59e94,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x4c68bf&&_0x536af5['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x4c68bf&&_0x536af5['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x4c68bf&&_0x536af5['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x4c68bf&&_0x536af5['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x4c68bf&&_0x536af5['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x4c68bf&&_0x536af5['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x4c68bf&&_0x536af5['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x1f1207){const _0x10188f=this['_suggestionToController']['get'](_0x1f1207);if(!_0x10188f)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x10188f['view'])||null;}['getSuggestionForAnnotation'](_0x315227){const _0x43a1ec=this['_viewToController']['get'](_0x315227['innerView']);return _0x43a1ec?_0x43a1ec['model']:null;}['_refreshActiveMarkers'](){const _0x48ca42=this['editor']['plugins']['get']('Annotations'),_0x60dfad=this['editor']['plugins']['get']('TrackChangesEditing'),_0x11ab9a=Array['from'](_0x48ca42['activeAnnotations'],_0x129f2d=>_0x129f2d['innerView'])['filter'](_0x5e523e=>this['_viewToController']['has'](_0x5e523e)),_0x3eb5d2=[];for(const _0x305ca7 of _0x11ab9a){const _0x1c74ff=this['_viewToController']['get'](_0x305ca7)['model']['getAllAdjacentSuggestions']();_0x3eb5d2['push'](..._0x1c74ff['reduce']((_0x5236d2,_0x199352)=>[..._0x5236d2,..._0x199352['getMarkerNames']()],[]));}_0x60dfad['activeMarkers']=_0x3eb5d2;}['_addUIComponentsToFactory'](){const _0x185185=this['editor'],_0xc2306=_0x185185['locale'],_0x89e68a=o(_0xc2306,'Track\x20changes'),_0x1c6def=new _0xcbf03([{'type':'switchbutton','model':new _0x61e74d({'withText':!0x0,'isToggleable':!0x0,'label':_0x89e68a,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x61e74d({'withText':!0x0,'label':o(_0xc2306,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x61e74d({'withText':!0x0,'label':o(_0xc2306,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x61e74d({'withText':!0x0,'label':o(_0xc2306,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x61e74d({'withText':!0x0,'label':o(_0xc2306,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x185185['plugins']['has']('TrackChangesPreview')&&_0x1c6def['addMany']([{'type':'separator'},{'type':'button','model':new _0x61e74d({'withText':!0x0,'label':o(_0xc2306,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x1f22ba of _0x1c6def)if(ke(_0x1f22ba)){const _0x32c028=_0x185185['commands']['get'](_0x1f22ba['model']['commandName']);_0x1f22ba['model']['bind']('isOn','isEnabled')['to'](_0x32c028,'value','isEnabled');}_0x185185['ui']['componentFactory']['add']('trackChanges',_0x5320f2=>this['_createToolbarButton'](_0x5320f2,_0x1c6def,_0x89e68a)),_0x185185['ui']['componentFactory']['add']('menuBar:trackChanges',_0xe25beb=>this['_createMenuBarMenu'](_0xe25beb,_0x1c6def,_0x89e68a));}['_createToolbarButton'](_0x31aa49,_0x2d1f54,_0x5f291b){const _0x5d259b=_0x829e02(_0x31aa49,_0x5e7944),_0x5d39a8=this['editor']['commands']['get']('trackChanges');_0x5d259b['buttonView']['set']({'tooltip':_0x5f291b,'label':_0x5f291b,'icon':_0xfa3e1e}),_0x5d259b['buttonView']['bind']('isOn')['to'](_0x5d39a8,'value'),_0x5d259b['buttonView']['on']('execute',()=>{_0x5d39a8['execute'](),this['editor']['editing']['view']['focus']();}),_0x3ddc40(_0x5d259b,_0x2d1f54,{'role':'menu'});const _0x36660c=[];for(const _0x53b439 of _0x2d1f54)ke(_0x53b439)&&_0x36660c['push'](this['editor']['commands']['get'](_0x53b439['model']['commandName']));const _0x3e6442=_0x5d259b['buttonView'];return _0x3e6442['actionView']['unbind']('isEnabled'),_0x3e6442['arrowView']['unbind']('isEnabled'),_0x3e6442['actionView']['bind']('isEnabled')['to'](_0x5d39a8,'isEnabled'),_0x3e6442['arrowView']['bind']('isEnabled')['toMany'](_0x36660c,'isEnabled',(..._0x3cb470)=>_0x3cb470['some'](_0x5afb77=>_0x5afb77)),_0x5d259b['on']('execute',_0x27a5c3=>{this['editor']['execute'](_0x27a5c3['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x5d259b;}['_createMenuBarMenu'](_0x131f70,_0x42582a,_0x375507){const _0x28fe44=new _0x35cb01(_0x131f70),_0x3fcc35=this['editor']['commands']['get']('trackChanges');_0x28fe44['buttonView']['set']({'label':_0x375507,'icon':_0xfa3e1e});const _0x1632f7=new _0x392691(_0x131f70);for(const _0x4466b9 of _0x42582a){if('separator'==_0x4466b9['type']){_0x1632f7['items']['add'](new _0x2f83b6(_0x131f70));continue;}const _0x8cbf4a=new _0x254f14(_0x131f70,_0x28fe44),_0x5374d3=new _0x2a8fc5(_0x131f70),_0x4949a8=_0x4466b9['model'];_0x5374d3['bind'](...Object['keys'](_0x4949a8))['to'](_0x4949a8),_0x5374d3['delegate']('execute')['to'](_0x28fe44),_0x5374d3['on']('execute',()=>{this['editor']['execute'](_0x4949a8['commandName']),this['editor']['editing']['view']['focus']();}),_0x8cbf4a['children']['add'](_0x5374d3),_0x1632f7['items']['add'](_0x8cbf4a);}return _0x28fe44['bind']('isEnabled')['to'](_0x3fcc35,'isEnabled'),_0x28fe44['panelView']['children']['add'](_0x1632f7),_0x28fe44;}['_initializeController'](_0x43d778){const _0x526e44=this['editor'],_0x1388b0=_0x526e44['config'],_0xd9a22d=_0x526e44['plugins']['get']('Annotations'),_0x5320ff=_0x526e44['plugins']['get']('CommentsRepository'),_0x303f0e=_0x526e44['plugins']['get']('EditorAnnotations'),_0x446893=_0x526e44['plugins']['get'](_0x36327f)['me'],_0x2c57e3=_0x1388b0['get']('trackChanges')['SuggestionThreadView'],_0x393f3d=_0x1388b0['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x5d2c6d,CommentThreadInputView:_0x41cfc1}=_0x526e44['plugins']['get']('CommentsUI');let _0x5a7691,_0x31a160,_0x2b6f45;this['_annotationViews']['has'](_0x43d778['id'])?(_0x31a160=this['_annotationViews']['get'](_0x43d778['id']),_0x5a7691=_0x31a160['mainView']):(_0x5a7691=new _0x2c57e3(_0x526e44['locale'],_0x43d778,_0x446893,{'disableComments':this['_disableComments'],'editorConfig':{..._0x1388b0['get']('comments.editorConfig'),'licenseKey':_0x1388b0['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x1388b0['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x1388b0['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x1388b0['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4fedce(_0x1388b0['get']('locale'),_0x526e44['locale']),'CommentView':_0x1388b0['get']('comments')['CommentView'],'CommentsListView':_0x5d2c6d,'CommentThreadInputView':_0x41cfc1,'SuggestionView':_0x393f3d}),_0x5a7691['suggestionView']['acceptButton']['on']('execute',()=>{_0x526e44['editing']['view']['focus']();}),_0x5a7691['suggestionView']['discardButton']['on']('execute',()=>{_0x526e44['editing']['view']['focus']();}),_0x31a160=_0xd9a22d['createAnnotationView'](this['editor']['locale'],_0x5a7691),_0x31a160['bind']('isDirty')['to'](_0x5a7691,'isDirty'),_0x31a160['bind']('length')['to'](_0x5a7691),_0x31a160['bind']('type')['to'](_0x5a7691,'type',_0x277f2f=>'suggestion-'+_0x277f2f),_0x5a7691['on']('escape',()=>{_0x2b6f45['fire']('escape');}),this['_annotationViews']['set'](_0x43d778['id'],_0x31a160));const _0x453528=_0x5320ff['createCommentThreadController'](_0x43d778['commentThread'],_0x5a7691),_0x4060f7=new pe(_0x526e44,_0x43d778,_0x5a7691,_0x453528),_0x33acb3=_0x43d778['getAllAdjacentSuggestions']()['filter'](_0x93158e=>_0x93158e['isInContent']);_0x5a7691['descriptionParts']=_0x526e44['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x33acb3),this['_suggestionToController']['set'](_0x43d778,_0x4060f7),this['_viewToController']['set'](_0x5a7691,_0x4060f7);const _0x4e77cf=()=>{const _0x2c3008=[],_0x235232=_0x43d778['getAllAdjacentSuggestions']()['filter'](_0x3e0b54=>_0x3e0b54['isInContent']);for(const _0x256e64 of _0x235232)_0x2c3008['push'](..._0x256e64['getMarkers']());return _0x4473f0(_0x526e44['editing'],_0x2c3008);};_0x2b6f45=_0xd9a22d['createAnnotation']({'view':_0x31a160,'target':_0x4e77cf,'type':()=>'suggestion-'+_0x4060f7['view']['type'],'isVisible':!!_0x4e77cf()}),_0x5320ff['_bindAnnotationToEditors'](_0x5a7691,_0x2b6f45),_0xd9a22d['add'](_0x2b6f45),_0x303f0e['registerAnnotation'](_0x2b6f45);}['_destroyController'](_0x20ea17){const _0x170226=this['editor']['plugins']['get']('CommentsRepository'),_0x558d19=this['editor']['plugins']['get']('Annotations'),_0x2d16e4=this['_suggestionToController']['get'](_0x20ea17),_0x4a2768=_0x2d16e4['view'],_0x9c1fe0=_0x558d19['getByInnerView'](_0x4a2768);_0x170226['_unbindEditors'](_0x4a2768),_0x9c1fe0&&_0x558d19['remove'](_0x9c1fe0),this['_suggestionToController']['delete'](_0x20ea17),this['_viewToController']['delete'](_0x4a2768),_0x2d16e4['destroy']();}['_updateController'](_0x5aae4a){if(!_0x5aae4a['isInContent']||!this['_suggestionToController']['has'](_0x5aae4a))return;const _0x3f265f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5b4e14=this['_suggestionToController']['get'](_0x5aae4a),_0x3d49d8=_0x5aae4a['getAllAdjacentSuggestions']();_0x5b4e14['view']['descriptionParts']=_0x3f265f['descriptionFactory']['getDescriptions'](_0x3d49d8);}['destroy'](){for(const _0x403eb8 of this['_suggestionToController']['keys']())this['_destroyController'](_0x403eb8);for(const _0x2d55a0 of this['_annotationViews']['values']())_0x2d55a0['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x23b92e){return'model'in _0x23b92e;}class Fe extends _0x493265{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x539b3b){this['editor']['plugins']['get'](d)['adapter']=_0x539b3b;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x5af771){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x5af771);}['getSuggestions']({skipNotAttached:_0x74749=!0x1,toJSON:_0x85d4d3=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x74749,'toJSON':_0x85d4d3});}['getSuggestion'](_0x150e6a){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x150e6a);}}const p=['Pagination'];class re extends _0x493265{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x3ad04d=this['editor'];if(_0x3ad04d['config']['define']('trackChangesData.editorCreator',_0x4718ec=>{const _0x217b29=_0x3ad04d['model']['document']['getRootNames']()['reduce']((_0x51ab9f,_0x12dac7)=>(_0x51ab9f[_0x12dac7]='',_0x51ab9f),{});return _0x3ad04d['constructor']['create'](_0x217b29,_0x4718ec);}),'function'!=typeof _0x3ad04d['config']['get']('trackChangesData')['editorCreator'])throw new _0x519eac('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x12e106){return P(this['editor'],!0x0,_0x12e106);}['getDataWithDiscardedSuggestions'](_0x41645e){return P(this['editor'],!0x1,_0x41645e);}}class Ge extends _0x493265{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5dd172){function _0x22ec7d(_0x1378ad){return _0x1378ad['map'](_0x13b5d2=>String['fromCharCode'](_0x13b5d2))['join']('');}super(_0x5dd172),this['result']='end',_0x5dd172[_0x22ec7d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x22ec7d([0x76,0x69,0x65,0x77])][_0x22ec7d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x22ec7d([0x61,0x75,0x74,0x6f]),_0x5dd172[_0x22ec7d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x22ec7d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x22ec7d([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x22ec7d([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x22ec7d([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 He(_0x278b17){return void 0x0!==_0x278b17['getRootsAttributes'];}async function P(_0x4f6a34,_0x55ae41,_0x332b16){const _0x3bad71=_0x181ffb(_0x4f6a34,p);_0x3bad71['plugins']['push'](d,Ge),_0x3bad71['rootsAttributes']=He(_0x4f6a34)?_0x4f6a34['getRootsAttributes']():void 0x0;const _0x23571d=document['createDocumentFragment'](),_0x41b1a0=_0x4f6a34['config']['get']('trackChangesData')['editorCreator'],_0x302a21=await _0x41b1a0(_0x3bad71,()=>function(_0x29e41f){const _0x84d8b1=document['createElement']('div');return _0x29e41f['appendChild'](_0x84d8b1),_0x84d8b1;}(_0x23571d));!function(_0x3276d4,_0x5983be){const _0x50604b=_0x3276d4['model']['document']['getRootNames']()['reduce']((_0x21636c,_0x58177a)=>(_0x21636c[_0x58177a]=_0x3276d4['data']['get']({'rootName':_0x58177a}),_0x21636c),{}),_0x46035a=_0x3276d4['plugins']['get']('Users')['users']['map'](_0x57f01b=>({'id':_0x57f01b['id'],'name':_0x57f01b['name']})),_0x2d7fee=_0x3276d4['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1bfad9=_0x3276d4['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x23cd41=_0x5983be['plugins']['get']('Users'),_0x1c5838=_0x5983be['plugins']['get']('TrackChangesEditing'),_0x3a6f3a=_0x5983be['plugins']['get']('CommentsRepository');for(const _0x2dc8b5 of _0x3a6f3a['getCommentThreads']())_0x2dc8b5['remove']();for(const _0x183244 of _0x46035a)_0x23cd41['getUser'](_0x183244['id'])||_0x23cd41['addUser'](_0x183244);_0x23cd41['me']||_0x23cd41['useAnonymousUser']();for(const _0xd5708a of _0x1bfad9)_0x3a6f3a['addCommentThread'](_0xd5708a);for(const _0x14f4a5 of _0x2d7fee)_0x1c5838['addSuggestionData'](_0x14f4a5);_0x5983be['data']['set'](_0x50604b);}(_0x4f6a34,_0x302a21),_0x302a21['execute'](_0x55ae41?'acceptAllSuggestions':'discardAllSuggestions');const _0x12b3ad=He(_0x302a21)?_0x302a21['getFullData'](_0x332b16):_0x302a21['data']['get'](_0x332b16);return await _0x302a21['destroy'](),_0x12b3ad;}class Me extends _0x431475{['options'];constructor(_0x39904c,_0x1ebe7c){super(_0x39904c),this['options']=_0x1ebe7c,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'](_0x52387e,_0x533d37){if(!this['element'])return;const _0x4c58f4=[];for(const [_0x291227,_0x1b869e]of _0x52387e){const _0x4855d2=document['createElement']('div');_0x4855d2['setAttribute']('data-ck-root-name',_0x291227),_0x4855d2['className']=_0x1b869e['classes']+'\x20ck-track-changes-preview__root-container',_0x4855d2['innerHTML']=_0x1b869e['content'],_0x4c58f4['push'](_0x4855d2);}_0x533d37(this['element'],_0x4c58f4),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x4429de{constructor(_0x29ea57){super(_0x29ea57),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x265351=this['editor'],_0xb1dd31=_0x265351['locale'],_0x14cc80=_0x265351['plugins']['get']('Dialog');let _0x58397d;const _0x2a2504=function(_0x4cea27){const _0x34e248={};if('editables'in _0x4cea27['ui']['view']){for(const [_0x8835eb,_0x9bcc09]of Object['entries'](_0x4cea27['ui']['view']['editables']))_0x34e248[_0x8835eb]=_0x9bcc09['element'];}else _0x34e248[_0x4cea27['model']['document']['getRootNames']()[0x0]]=_0x4cea27['ui']['view']['editable']['element'];return _0x34e248;}(_0x265351),_0x4a379b=function(_0x4af1dd){let _0x3b5e2c=0x0;for(const _0x104742 of Object['values'](_0x4af1dd))_0x3b5e2c=Math['max'](_0x3b5e2c,_0x104742['getBoundingClientRect']()['width']);let _0x5a76d2=0x0;for(const _0xb6001c of Object['values'](_0x4af1dd))_0x5a76d2+=_0xb6001c['getBoundingClientRect']()['height'];const _0x128dc2=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x4883bc=Math['min'](_0x5a76d2,_0x128dc2);return{'width':_0x3b5e2c,'height':_0x4883bc};}(_0x2a2504);_0x14cc80['show']({'id':'finalContentPreview','title':o(_0xb1dd31,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0xb1dd31,{'dialogRects':_0x4a379b}),'onHide':()=>{_0x58397d['detachFromDom']();},'onShow':()=>{_0x265351['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x315e1a=>{const _0x1588d8=this['_standarizeRootsData'](_0x315e1a,_0x265351,_0x2a2504);_0x14cc80['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x1588d8,_0x265351['config']['get']('trackChanges.preview.renderFunction'));}),_0x58397d=new _0x164ff6(_0xb1dd31,[_0x14cc80['view']]),_0x58397d['attachToDom'](),_0x58397d['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x265351['once']('destroy',()=>{_0x58397d['detachFromDom']();});const _0x3003b6=_0x14cc80['view']['headerView']['class'];_0x14cc80['view']['headerView']['class']=_0x3003b6?_0x3003b6+'\x20ck-reset_all':'ck-reset_all',_0x14cc80['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x14cc80['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x195f8d=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x3aac87=_0x195f8d['previewMode'],_0x126625={};if('$labels'===_0x3aac87){for(const _0x52c90e of _0x195f8d['getMergeFieldsIds']())_0x126625[_0x52c90e]=_0x195f8d['getLabel'](_0x52c90e)||_0x52c90e;}else{const _0x58fca6='$defaultValues'===_0x3aac87?_0x195f8d['getDefaultValues']():_0x195f8d['getDataSetValues'](_0x3aac87,!0x0);for(const _0x2fad18 of Object['entries'](_0x58fca6)){const [_0x2c5515,_0x171be4]=_0x2fad18;_0x126625[_0x2c5515]=null!==_0x171be4?_0x171be4:_0x195f8d['getLabel'](_0x2c5515)||_0x2c5515;}}return{'mergeFieldsData':_0x126625};}['_standarizeRootsData'](_0x83d36f,_0x11a6e8,_0x4e9cbb){let _0x21070a;if('string'==typeof _0x83d36f){const _0x234636=_0x11a6e8['model']['document']['getRootNames']()[0x0];_0x21070a={[_0x234636]:_0x83d36f};}else _0x21070a=_0x83d36f;const _0x4bff83=this['_fixMediaEmbeds'](_0x21070a,_0x11a6e8),_0x3bef6d=function(_0x102dc4,_0x23c5b1){for(const [_0x7ae51d,_0x40cd3b]of _0x102dc4)_0x40cd3b['classes']=_0x23c5b1[_0x7ae51d]['classList']['value']['replace']('ck-focused','');return _0x102dc4;}(this['_sortRoots'](_0x11a6e8)['reduce']((_0xaf38cd,_0x1b01ef)=>(_0xaf38cd['push']([_0x1b01ef,{'content':_0x4bff83[_0x1b01ef],'classes':''}]),_0xaf38cd),[]),_0x4e9cbb);return _0x3bef6d;}['_fixMediaEmbeds'](_0x49f968,_0x551b16){if(!_0x551b16['plugins']['has']('MediaEmbedEditing'))return _0x49f968;const _0xd96563=_0x551b16['plugins']['get']('MediaEmbedEditing');for(const [_0x103ccf,_0x35e973]of Object['entries'](_0x49f968)){const _0x4bc7c3=document['createElement']('div');_0x4bc7c3['innerHTML']=_0x35e973,(_0x4bc7c3['querySelectorAll']('figure.media')['forEach'](_0x4245f0=>{const _0x2ff8ba=_0x4245f0['querySelector']('oembed');if(_0x2ff8ba){const _0x448633=_0x2ff8ba['getAttribute']('url');if(_0x448633){const _0x57b9ab=_0xd96563['registry']['getMediaViewElement'](new _0x5c1432(_0x551b16['editing']['view']['document']),_0x448633,{'elementName':'','renderForEditingView':!0x0}),_0x5316ae=document['createElement']('div');_0x5316ae['classList']['add']('ck-media__wrapper'),_0x57b9ab['render'](_0x5316ae,_0x551b16['editing']['view']['domConverter']),_0x2ff8ba['replaceWith'](_0x5316ae);}}}),_0x49f968[_0x103ccf]=_0x4bc7c3['innerHTML']);}return _0x49f968;}['_sortRoots'](_0x221386){if(!function(_0x572ab1){return void 0x0!==_0x572ab1['getRootsAttributes'];}(_0x221386))return _0x221386['model']['document']['getRootNames']();const _0x2b2277=[],_0x537f29=new Map();for(const _0x24d7ce of _0x221386['model']['document']['getRootNames']()){const _0x2ecbc9=_0x221386['editing']['view']['getDomRoot'](_0x24d7ce)['getClientRects']()['item'](0x0);_0x2b2277['push'](_0x24d7ce),_0x537f29['set'](_0x24d7ce,_0x2ecbc9);}return _0x2b2277['sort']((_0x318d3e,_0x3174fe)=>{const _0x46639e=_0x537f29['get'](_0x318d3e),_0x3c06b9=_0x537f29['get'](_0x3174fe);return _0x46639e['y']-_0x3c06b9['y']||_0x46639e['x']-_0x3c06b9['x'];}),_0x2b2277;}}class $e extends _0x493265{static get['requires'](){return[re,_0x322021];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x58ff11){super(_0x58ff11),_0x58ff11['commands']['add']('previewFinalContent',new te(this['editor'])),_0x58ff11['config']['define']('trackChanges.preview.renderFunction',(_0x2290a1,_0x2117df)=>{for(const _0x316402 of _0x2117df)_0x2290a1['appendChild'](_0x316402);});}}export{D as AcceptSuggestionCommand,ti as BaseSuggestionThreadView,$ as DiscardSuggestionCommand,M as ExecuteOnAllSuggestionsCommand,B as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,x as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Fe as TrackChanges,N as TrackChangesCommand,re as TrackChangesData,Ge as TrackChangesDataGetter,d as TrackChangesEditing,$e as TrackChangesPreview,u as TrackChangesUI};
|