@ckeditor/ckeditor5-track-changes 45.2.1-alpha.2 → 45.2.1-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +27 -27
- package/src/trackchangesediting.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
24
|
-
_0x18406a(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x100a79,_0xb59c27){super(),this['id']=_0xb59c27['id'],this['type']=_0xb59c27['type'],this['subType']=_0xb59c27['subType']||null,this['author']=_0xb59c27['author'],this['creator']=_0xb59c27['creator']||_0xb59c27['author'],this['isExternal']=Boolean(_0xb59c27['attributes']&&_0xb59c27['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0xb59c27['originalSuggestionId']||null,this['_model']=_0x100a79,this['_onAccept']=_0xb59c27['onAccept'],this['_onDiscard']=_0xb59c27['onDiscard'],this['_onAttributesChange']=_0xb59c27['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0xb59c27['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 _0x2eab23=this;for(;_0x2eab23['previous'];)_0x2eab23=_0x2eab23['previous'];return _0x2eab23;}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'](_0x405ff0){this['_markerNames']['add'](_0x405ff0);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x1c9e3e=>this['_model']['markers']['get'](_0x1c9e3e))['filter'](_0x53c7f7=>_0x53c7f7);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x267fa8=>{for(const _0x4990d8 of this['getMarkers']())_0x267fa8['removeMarker'](_0x4990d8);}),this['_markerNames']['clear']();}['removeMarker'](_0x52d601){this['_model']['change'](_0x545bfb=>{_0x545bfb['removeMarker'](_0x52d601);}),this['_markerNames']['delete'](_0x52d601);}['addRange'](_0x1521c2){const _0x174cf4='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x174cf4),this['_model']['change'](_0x166559=>{_0x166559['addMarker'](_0x174cf4,{'range':_0x1521c2,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x25fc6c){for(const _0x384231 of this['getRanges']())if(_0x384231['isIntersecting'](_0x25fc6c))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x58d982=>_0x58d982['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x444fa1,_0x14dc91)=>[..._0x444fa1,..._0x14dc91['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x4f3277=this['getRanges']();if(0x1!=_0x4f3277['length'])return null;const _0x190227=_0x4f3277[0x0],_0x2b696e=_0x190227['start']['nodeAfter'],_0x24a485=_0x190227['end']['nodeBefore'];return _0x2b696e instanceof _0x3e9916?_0x2b696e!=_0x24a485?null:_0x2b696e: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 _0xb79b2f=[];let _0x2d1953=this['head'];for(;_0x2d1953;)_0xb79b2f['push'](_0x2d1953),_0x2d1953=_0x2d1953['next'];return _0xb79b2f;}['setAttribute'](_0x5a8b57,_0xf73634){const _0x16407a=_0x2a9f3a(this['attributes']);_0x3e8089(_0x16407a,_0x5a8b57,_0xf73634),_0x2aed50(_0x16407a,this['attributes'])||(this['attributes']=_0x16407a,this['_onAttributesChange'](_0x16407a));}['removeAttribute'](_0x30c292){const _0x35404a=_0x2a9f3a(this['attributes']);_0x5303ea(_0x35404a,_0x30c292),_0x2aed50(_0x35404a,this['attributes'])||(this['attributes']=_0x35404a,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 _0x12ee37()['substr'](0x1,0x5);}}function c(_0x26cac0,_0x288126,_0xaa40cd){const _0x219865=_0x26cac0['t'],t=_0x26cac0['t'];switch(_0x288126){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',_0xaa40cd);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0xaa40cd);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0xaa40cd);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0xaa40cd);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0xaa40cd);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',_0xaa40cd);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0xaa40cd);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',_0xaa40cd);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0xaa40cd);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0xaa40cd);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0xaa40cd);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0xaa40cd);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0xaa40cd);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0xaa40cd);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0xaa40cd);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0xaa40cd);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0xaa40cd);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0xaa40cd);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0xaa40cd);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0xaa40cd);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0xaa40cd);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0xaa40cd);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0xaa40cd);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0xaa40cd);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0xaa40cd);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'},_0xaa40cd);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0xaa40cd);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0xaa40cd);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0xaa40cd);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0xaa40cd);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0xaa40cd);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0xaa40cd);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0xaa40cd);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'},_0xaa40cd);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0xaa40cd);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0xaa40cd);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0xaa40cd);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0xaa40cd);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'},_0xaa40cd);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0xaa40cd);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'},_0xaa40cd);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0xaa40cd);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0xaa40cd);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'},_0xaa40cd);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0xaa40cd);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'},_0xaa40cd);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0xaa40cd);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0xaa40cd);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'},_0xaa40cd);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0xaa40cd);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 _0x219865({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0xaa40cd);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x219865({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0xaa40cd);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0xaa40cd);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'},_0xaa40cd);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'},_0xaa40cd);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'},_0xaa40cd);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x288126;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0xcc7fda,_0x30bc5e){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0xcc7fda,this['_locale']=_0x30bc5e;}['getDescriptions'](_0x30fe66){const _0x5ceeb7=[],_0x4abd5c=new Set(),_0xe9663a=new Set();for(let _0x227ac1=0x0;_0x227ac1<_0x30fe66['length'];_0x227ac1++){const _0x169f8a=_0x30fe66[_0x227ac1];if(!_0x169f8a['isInContent'])continue;const _0x221257=this['_handleCustomCallbackDescription'](_0x169f8a);if(_0x221257){if(null!=_0x169f8a['subType']){if(_0x4abd5c['has'](_0x169f8a['subType']))continue;_0x4abd5c['add'](_0x169f8a['subType']);}_0x5ceeb7['push'](_0x221257);}else{if('attribute'!=_0x169f8a['type'])'insertion'!=_0x169f8a['type']&&'deletion'!=_0x169f8a['type']||this['_handleInsertRemoveSuggestionDescription'](_0x5ceeb7,_0x169f8a,_0x30fe66[_0x227ac1+0x1]);else{const _0x5680dc=_0x169f8a['data']['key'];if(_0xe9663a['has'](_0x5680dc))continue;_0xe9663a['add'](_0x169f8a['data']['key']),_0x5680dc==u?this['_handleRenameSuggestionDescription'](_0x5ceeb7,_0x169f8a):this['_handleAttributeSuggestionDescription'](_0x5ceeb7,_0x169f8a);}}}return this['_resolveDescriptionItems'](_0x5ceeb7);}['registerDescriptionCallback'](_0x5e8fae){this['_customCallbacks']['push'](_0x5e8fae);}['registerElementLabel'](_0x597128,_0x596036,_0x12f458=_0x2ef4ce['normal']){'function'==typeof _0x597128?_0x29ae24(this['_itemLabelsCallbacks'],{'matchingCallback':_0x597128,'label':_0x596036,'priority':_0x12f458}):this['_itemLabels']['set'](_0x597128,_0x596036);}['registerAttributeLabel'](_0x11b9f3,_0x541c5b){this['_attributeLabels']['set'](_0x11b9f3,_0x541c5b);}['getItemLabel'](_0x2b7cc7,_0x249e50=0x1){let _0x141b5a;for(const _0x4cb955 of this['_itemLabelsCallbacks'])if(_0x4cb955['matchingCallback'](_0x2b7cc7)){_0x141b5a=_0x4cb955['label'];break;}return _0x141b5a||(_0x141b5a=this['_itemLabels']['get'](_0x2b7cc7['name'])),_0x141b5a?_0x141b5a(_0x249e50):0x1!==_0x249e50?_0x249e50+'\x20'+_0x2b7cc7['name']+'s':''+_0x2b7cc7['name'];}['_addDescriptionItems'](_0xb7560d,_0x538a52){const _0x53f58b=_0x538a52['getFirstRange']()['getWalker'](),_0x49ecf5='insertion'==_0x538a52['type']?'add':'remove';for(const _0x48a386 of _0x53f58b){const _0x4889e7=_0x48a386['item'],_0x5d43cb=_0xb7560d[_0xb7560d['length']-0x1];if(_0x4889e7['is']('$textProxy'))_0x5d43cb&&_0x5d43cb['type']['indexOf']('Container')>-0x1&&_0xb7560d['pop'](),_0x5d43cb&&'text'==_0x5d43cb['type']?_0x5d43cb[_0x49ecf5]+=_0x4889e7['data']:_0xb7560d['push']({'type':'text','add':'add'==_0x49ecf5?_0x4889e7['data']:'','remove':'remove'==_0x49ecf5?_0x4889e7['data']:''});else{if(this['_schema']['isObject'](_0x4889e7)){const _0x5f573e=_0x4889e7;if(_0x5d43cb&&_0x5d43cb['type']['indexOf']('Container')>-0x1&&_0xb7560d['pop'](),'elementEnd'==_0x48a386['type'])continue;_0x5d43cb&&_0x5d43cb['type']==_0x49ecf5+'Object'&&_0x5d43cb['element']['name']==_0x5f573e['name']?_0x5d43cb['quantity']++:_0xb7560d['push']({'type':_0x49ecf5+'Object','element':_0x5f573e,'quantity':0x1}),_0x53f58b['skip'](_0x4ee379=>!('elementEnd'==_0x4ee379['type']&&_0x4ee379['item']==_0x4889e7));}else{if(this['_schema']['checkChild'](_0x4889e7,'$text')||_0x4889e7['is']('element','softBreak')){const _0x57f499=_0x4889e7;if('add'==_0x49ecf5&&'elementStart'==_0x48a386['type']||'remove'==_0x49ecf5&&'elementEnd'==_0x48a386['type'])continue;if(_0x5d43cb&&-0x1==_0x5d43cb['type']['indexOf']('Container')){'text'==_0x5d43cb['type']&&(_0x5d43cb[_0x49ecf5]+='\x0a');continue;}let _0x2318bb;if(_0x2318bb='add'==_0x49ecf5?_0x57f499['nextSibling']&&!this['_schema']['isObject'](_0x57f499['nextSibling'])?_0x57f499['nextSibling']:null:_0x57f499['previousSibling']&&!this['_schema']['isObject'](_0x57f499['previousSibling'])?_0x57f499['previousSibling']:null,_0x57f499['isEmpty']||_0x2318bb&&_0x2318bb['isEmpty']){const _0x352c17=_0x2318bb&&_0x2318bb['isEmpty']?_0x2318bb:_0x57f499;_0x5d43cb&&_0x5d43cb['type']==_0x49ecf5+'EmptyContainer'&&_0x5d43cb['element']['name']==_0x352c17['name']?_0x5d43cb['quantity']++:_0xb7560d['push']({'type':_0x49ecf5+'EmptyContainer','element':_0x352c17,'quantity':0x1});}else _0xb7560d['push']({'type':_0x49ecf5+'Container','element':_0x57f499});}}}}}['_resolveDescriptionItems'](_0x16390d){const _0x3a7ce4=this['_locale'],_0x2668ae=[],_0x396f87=[],_0xf40285=[];for(const _0x258180 of _0x16390d)switch(_0x258180['type']){case'text':if(_0x258180['add']=_0x258180['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x258180['remove']=_0x258180['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x258180['add']&&''!=_0x258180['remove']){_0x2668ae['push']({'type':'replace','content':c(_0x3a7ce4,'REPLACE_TEXT',['\x22'+_0x258180['remove']+'\x22','\x22'+_0x258180['add']+'\x22'])});continue;}if(null!=_0x258180['add']['match'](/^ +$/)){_0x2668ae['push']({'type':'insertion','content':c(_0x3a7ce4,'*Insert:*\x20%0',c(_0x3a7ce4,'ELEMENT_SPACE',_0x258180['add']['length']))});continue;}if(null!=_0x258180['remove']['match'](/^ +$/)){_0x2668ae['push']({'type':'deletion','content':c(_0x3a7ce4,'*Remove:*\x20%0',c(_0x3a7ce4,'ELEMENT_SPACE',_0x258180['remove']['length']))});continue;}if(''!=_0x258180['add']){_0x2668ae['push']({'type':'insertion','content':c(_0x3a7ce4,'*Insert:*\x20%0','\x22'+_0x258180['add']+'\x22')});continue;}_0x2668ae['push']({'type':'deletion','content':c(_0x3a7ce4,'*Remove:*\x20%0','\x22'+_0x258180['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2668ae['push']({'type':'insertion','content':c(_0x3a7ce4,'*Insert:*\x20%0',this['getItemLabel'](_0x258180['element'],_0x258180['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2668ae['push']({'type':'deletion','content':c(_0x3a7ce4,'*Remove:*\x20%0',this['getItemLabel'](_0x258180['element'],_0x258180['quantity']))});continue;case'addContainer':_0x2668ae['push']({'type':'insertion','content':c(_0x3a7ce4,'*Split:*\x20%0',this['getItemLabel'](_0x258180['element'],_0x258180['quantity']))});continue;case'removeContainer':_0x2668ae['push']({'type':'deletion','content':c(_0x3a7ce4,'*Merge:*\x20%0',this['getItemLabel'](_0x258180['element'],_0x258180['quantity']))});continue;case'addFormat':_0x396f87['push'](_0x258180['key']);continue;case'removeFormat':_0xf40285['push'](_0x258180['key']);continue;default:_0x2668ae['push'](_0x258180);}if(_0x396f87['length']){const _0x159a0d=_0x396f87['map'](_0x5d50b3=>this['_attributeLabels']['has'](_0x5d50b3)?this['_attributeLabels']['get'](_0x5d50b3):_0x5d50b3)['join'](',\x20');_0x2668ae['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x159a0d)});}if(_0xf40285['length']){const _0x4e39e7=_0xf40285['map'](_0x4f8a99=>this['_attributeLabels']['has'](_0x4f8a99)?this['_attributeLabels']['get'](_0x4f8a99):_0x4f8a99)['join'](',\x20');_0x2668ae['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x4e39e7)});}return _0x2668ae;}['_handleCustomCallbackDescription'](_0x239a75){for(const _0x1d3c4f of this['_customCallbacks']){const _0x597b35=_0x1d3c4f(_0x239a75);if(_0x597b35&&'type'in _0x597b35)return _0x597b35;}}['_handleAttributeSuggestionDescription'](_0x1bdbc8,_0x30985e){const _0x95c82b=_0x30985e['data'],_0x27a3c0=void 0x0===_0x95c82b['newValue']?'removeFormat':'addFormat';_0x1bdbc8['push']({'type':_0x27a3c0,'key':_0x95c82b['key']});}['_handleRenameSuggestionDescription'](_0x30f162,_0x30bf7f){_0x30f162['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x30bf7f['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3994be,_0xcfabee,_0x46cff3){if(this['_addDescriptionItems'](_0x3994be,_0xcfabee),_0x46cff3&&_0x46cff3['getFirstRange']()&&!_0xcfabee['getFirstRange']()['end']['isEqual'](_0x46cff3['getFirstRange']()['start'])){const _0x30135d=_0x3994be[_0x3994be['length']-0x1],_0x10b976='insertion'==_0xcfabee['type']?'add':'remove';_0x30135d&&'text'==_0x30135d['type']&&(_0x30135d[_0x10b976]+='\x0a');}}}class U extends _0x11ea7f{['afterInit'](){const _0x5afa87=this['editor'],_0x33792c=_0x5afa87['plugins']['get']('TrackChangesEditing');_0x5afa87['commands']['get']('showAIAssistant')&&_0x33792c['enableCommand']('showAIAssistant');}}class V extends _0x11ea7f{['afterInit'](){const _0x394e42=this['editor'],_0x581dfc=_0x394e42['locale'];if(!_0x394e42['plugins']['has']('AlignmentEditing'))return;const _0x2cf0c5=_0x394e42['plugins']['get']('TrackChangesEditing');_0x2cf0c5['enableDefaultAttributesIntegration']('alignment'),_0x2cf0c5['registerBlockAttribute']('alignment'),_0x2cf0c5['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x581dfc,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x19cef9=this['editor'],_0x250d7d=_0x19cef9['locale'];_0x19cef9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x273974=>{if('formatBlock'!=_0x273974['type'])return;const {data:_0x482cf1}=_0x273974;if(_0x482cf1&&'alignment'==_0x482cf1['commandName']){const _0x40eee1=_0x482cf1['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x250d7d,'*Format:*\x20%0',function(_0x1e5da2){switch(_0x1e5da2){case'left':return c(_0x250d7d,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x250d7d,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x250d7d,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x250d7d,'FORMAT_JUSTIFY_TEXT');}}(_0x40eee1))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x11ea7f{['afterInit'](){const _0x388fa1=this['editor'],_0x42819a=_0x388fa1['plugins']['get']('TrackChangesEditing'),_0x100e55=_0x388fa1['locale'];for(const _0x24846e of Zt){if(!_0x388fa1['plugins']['has'](_0x24846e))continue;const _0x3f81c1=_0x24846e['slice'](0x0,-0x7)['toLowerCase'](),_0x510d84='FORMAT_'+_0x3f81c1['toUpperCase']();_0x42819a['enableDefaultAttributesIntegration'](_0x3f81c1),_0x42819a['registerInlineAttribute'](_0x3f81c1),_0x42819a['descriptionFactory']['registerAttributeLabel'](_0x3f81c1,c(_0x100e55,_0x510d84));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x448949=this['editor'],_0x2af97e=_0x448949['locale'],_0x339696=_0x448949['plugins']['get']('TrackChangesEditing');function _0x52a48f(_0x4ad98b,_0x2755a2){_0x339696['descriptionFactory']['registerDescriptionCallback'](_0x23f779=>{if('formatInline'!=_0x23f779['type'])return;const {data:_0x1132ac}=_0x23f779;return _0x1132ac&&_0x1132ac['commandName']===_0x4ad98b?_0x1132ac['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x2af97e,'*Format:*\x20%0',_0x2755a2)}:{'type':'format','content':c(_0x2af97e,'*Remove\x20format:*\x20%0',_0x2755a2)}:void 0x0;});}_0x52a48f('bold',c(_0x2af97e,'FORMAT_BOLD')),_0x52a48f('italic',c(_0x2af97e,'FORMAT_ITALIC')),_0x52a48f('underline',c(_0x2af97e,'FORMAT_UNDERLINE')),_0x52a48f('code',c(_0x2af97e,'FORMAT_CODE')),_0x52a48f('strikethrough',c(_0x2af97e,'FORMAT_STRIKETHROUGH')),_0x52a48f('subscript',c(_0x2af97e,'FORMAT_SUBSCRIPT')),_0x52a48f('superscript',c(_0x2af97e,'FORMAT_SUPERSCRIPT'));}}class G extends _0x11ea7f{['afterInit'](){const _0x5039aa=this['editor'],_0x1b0b8d=_0x5039aa['locale'];if(!_0x5039aa['plugins']['has']('BlockQuoteEditing'))return;const _0x1cace7=_0x5039aa['plugins']['get']('TrackChangesEditing'),_0x434cb6=this['editor']['commands']['get']('blockQuote');_0x1cace7['enableCommand']('blockQuote',(_0x11810c,_0x44621b={})=>{const _0x136001=this['editor']['model']['document']['selection'],_0x392bce=_0x44621b&&void 0x0!==_0x44621b['forceValue']?_0x44621b['forceValue']:!_0x434cb6['value'];let _0x3602f9=[];if(_0x392bce){const _0x418a4d=Array['from'](_0x136001['getSelectedBlocks']())['filter'](_0x1b6c66=>oo(_0x1b6c66)||function(_0x1785e7,_0x275748){const _0x8b8212=_0x275748['checkChild'](_0x1785e7['parent'],'blockQuote'),_0x5d6dcb=_0x275748['checkChild'](['$root','blockQuote'],_0x1785e7);return _0x8b8212&&_0x5d6dcb;}(_0x1b6c66,this['editor']['model']['schema']));_0x3602f9=to(_0x418a4d,_0x5039aa['model']);}else{const _0x43ee84=Array['from'](_0x136001['getSelectedBlocks']())['filter'](_0x4dffff=>oo(_0x4dffff));_0x3602f9=to(_0x43ee84,_0x5039aa['model']);}_0x5039aa['model']['change'](()=>{for(const _0x1943ae of _0x3602f9)_0x1cace7['markBlockFormat'](_0x1943ae,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x392bce}]});});}),_0x1cace7['descriptionFactory']['registerDescriptionCallback'](_0x38d18b=>{const {data:_0x3a9ce6}=_0x38d18b;if(_0x3a9ce6&&'blockQuote'==_0x3a9ce6['commandName']){const _0x11bc40=c(_0x1b0b8d,'ELEMENT_BLOCK_QUOTE');return _0x3a9ce6['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x1b0b8d,'*Set\x20format:*\x20%0',_0x11bc40)}:{'type':'format','content':c(_0x1b0b8d,'*Remove\x20format:*\x20%0',_0x11bc40)};}});}}function oo(_0x5f310a){return'blockQuote'==_0x5f310a['parent']['name'];}class L extends _0x11ea7f{['afterInit'](){const _0x309e18=this['editor'],_0x30e7b1=_0x309e18['locale'],_0x5f1f31=_0x309e18['plugins']['get']('TrackChangesEditing');_0x309e18['plugins']['has']('BookmarkEditing')&&(_0x5f1f31['enableCommand']('insertBookmark'),_0x5f1f31['enableDefaultAttributesIntegration']('updateBookmark'),_0x5f1f31['registerBlockAttribute']('bookmarkId'),_0x5f1f31['descriptionFactory']['registerDescriptionCallback'](_0x9bc879=>{if('insertion'!=_0x9bc879['type']&&'deletion'!=_0x9bc879['type']&&'attribute'!=_0x9bc879['type'])return;const _0x21c433=_0x9bc879['getContainedElement']();if(null==_0x21c433)return;if(!_0x21c433['is']('element','bookmark'))return;const _0x1d6620=_0x21c433['getAttribute']('bookmarkId');if('insertion'==_0x9bc879['type'])return{'type':'insertion','content':c(_0x30e7b1,'*Insert:*\x20%0','\x22'+_0x1d6620+'\x22\x20'+c(_0x30e7b1,'ELEMENT_BOOKMARK'))};if('deletion'==_0x9bc879['type'])return{'type':'deletion','content':c(_0x30e7b1,'*Remove:*\x20%0','\x22'+_0x1d6620+'\x22\x20'+c(_0x30e7b1,'ELEMENT_BOOKMARK'))};const {data:_0x24f98f}=_0x9bc879;if(!_0x24f98f||'bookmarkId'!=_0x24f98f['key'])return;return{'type':'format','content':c(_0x30e7b1,'*Set\x20bookmark:*\x20%0','\x22'+_0x24f98f['newValue']+'\x22')};}));}}class J extends _0x11ea7f{['afterInit'](){const _0x39e8d1=this['editor'];_0x39e8d1['plugins']['has']('CaseChange')&&(_0x39e8d1['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x39e8d1['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x39e8d1['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x11ea7f{['afterInit'](){const _0x5da135=this['editor'];_0x5da135['commands']['get']('ckbox')&&_0x5da135['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x11ea7f{['afterInit'](){const _0x5525ef=this['editor'];if(!_0x5525ef['plugins']['has']('CodeBlock'))return;const _0x3193f1=_0x5525ef['plugins']['get']('TrackChangesEditing'),_0x5c8062=_0x5525ef['locale'],_0x33ac2e=_0x5525ef['config']['get']('codeBlock')['languages'],_0x321e01=_0x5525ef['commands']['get']('codeBlock');_0x3193f1['enableCommand']('indentCodeBlock'),_0x3193f1['enableCommand']('outdentCodeBlock'),_0x3193f1['enableCommand']('codeBlock',(_0x443484,_0x4dc424={})=>{const _0x5acb0b=_0x5525ef['model'],_0x44e3b8=_0x5525ef['model']['document']['selection'],_0x3ec977=_0x4dc424&&void 0x0!==_0x4dc424['forceValue']?_0x4dc424['forceValue']:!_0x321e01['value'];let _0x4df317;_0x4dc424['language']||(_0x4dc424['language']=_0x33ac2e[0x0]['language']),_0x4df317=_0x3ec977?Array['from'](_0x44e3b8['getSelectedBlocks']())['filter'](_0xdca95c=>eo(_0xdca95c)||function(_0x42ec25,_0xf7b517){if(_0x42ec25['is']('rootElement')||_0xf7b517['isLimit'](_0x42ec25))return!0x1;return _0xf7b517['checkChild'](_0x42ec25['parent'],'codeBlock');}(_0xdca95c,_0x5acb0b['schema'])):Array['from'](_0x44e3b8['getSelectedBlocks']())['filter'](_0x13cedb=>eo(_0x13cedb));const _0x6c2cd9=to(_0x4df317,_0x5acb0b);_0x5acb0b['change'](()=>{for(const _0x528de3 of _0x6c2cd9)_0x3193f1['markBlockFormat'](_0x528de3,{'commandName':'codeBlock','commandParams':[{..._0x4dc424,'forceValue':_0x3ec977}],'formatGroupId':'blockName'});});}),(_0x3193f1['descriptionFactory']['registerElementLabel']('codeBlock',_0x2ae932=>c(_0x5c8062,'ELEMENT_CODE_BLOCK',_0x2ae932)),_0x3193f1['descriptionFactory']['registerDescriptionCallback'](_0x2eef16=>{if('formatBlock'!=_0x2eef16['type'])return;const _0x57c69b=_0x5c8062['t'],{data:_0x29469f}=_0x2eef16;if(!_0x29469f||'codeBlock'!=_0x29469f['commandName'])return;const _0xed40ad=_0x29469f['commandParams'][0x0]['language'],_0xa0296b=_0x57c69b(_0x33ac2e['find'](_0x29ebfb=>_0x29ebfb['language']===_0xed40ad)['label'])['toLowerCase']();return _0x29469f['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x5c8062,'*Set\x20format:*\x20%0',c(_0x5c8062,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0xa0296b+')')}:{'type':'format','content':c(_0x5c8062,'*Remove\x20format:*\x20%0',c(_0x5c8062,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0xa2ac5f){return'codeBlock'==_0xa2ac5f['name'];}class q extends _0x11ea7f{['afterInit'](){const _0x230f86=this['editor'];if(!_0x230f86['plugins']['has']('CommentsEditing'))return;_0x230f86['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x10bc29,_0x18120a,_0xb5aed8){const _0x2d0c5d=[];for(const _0x1e759b of _0x18120a['getItems']())_0x1e759b['hasAttribute'](_0x10bc29)&&_0x2d0c5d['push'](_0xb5aed8['createRangeOn'](_0x1e759b));return _0x2d0c5d;}function Fe(_0x584a16,_0x501a34,{showActiveMarker:_0x16d1c6=!0x0}={}){const _0x4fe7bd=_0x584a16['plugins']['get']('TrackChangesEditing');return(_0x3bffd6,_0x2c937e,_0xcf6625)=>{if(!_0xcf6625['consumable']['test'](_0x2c937e['markerRange'],_0x3bffd6['name']))return;const _0xf62d27=_0x2c937e['markerRange']['getWalker'](),_0x3acdd1=_0x2c937e['markerRange']['start'],_0x238a9e=_0x584a16['model']['schema'];let _0x2c2909=null,_0x4cfba2=null,_0x171e44=!0x1,_0x17006c=!0x1;for(const _0x45508a of _0xf62d27){const _0xe5a50c=_0x45508a['item'];_0x171e44=_0x171e44||_0x238a9e['isContent'](_0xe5a50c);const _0xc2361f=_0xcf6625['mapper']['toViewElement'](_0xe5a50c);if(_0xc2361f&&_0xc2361f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x45508a['type']&&(_0x238a9e['isBlock'](_0xe5a50c)&&!_0x238a9e['isLimit'](_0xe5a50c)&&(_0xe5a50c['nextSibling']||_0x3acdd1['isAtEnd']?_0x2c2909&&_0x2c2909['parent']==_0xe5a50c||(_0x2c2909=_0xe5a50c,_0x5529d4(_0x45508a['previousPosition']),_0x17006c=!0x0):_0x4cfba2=_0x4cfba2||_0x45508a['previousPosition']));}function _0x5529d4(_0x2ed454){const {id:_0x173ca8,authorId:_0x576bf5}=_0x4fe7bd['_splitMarkerName'](_0x2c937e['markerName']),_0x4db8ab=_0xcf6625['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x501a34,'data-suggestion':_0x173ca8,'data-author-id':_0x576bf5}),_0x4b3060=_0xcf6625['mapper']['toViewPosition'](_0x2ed454);_0x16d1c6&&_0x4fe7bd['activeMarkers']['includes'](_0x2c937e['markerName'])&&_0xcf6625['writer']['addClass']('ck-suggestion-marker--active',_0x4db8ab),_0xcf6625['writer']['insert'](_0x4b3060,_0x4db8ab),_0xcf6625['mapper']['bindElementToMarker'](_0x4db8ab,_0x2c937e['markerName']);}_0x171e44||_0x17006c||!_0x4cfba2||_0x5529d4(_0x4cfba2);};}class z extends _0x11ea7f{static get['requires'](){return[_0x544c25];}['init'](){const _0xdb427e=this['editor'],_0x38e2e9=_0xdb427e['plugins']['get']('TrackChangesEditing');_0x38e2e9['enableCommand']('delete');const _0x2564ef=_0xdb427e['commands']['get']('deleteForward');_0x38e2e9['enableCommand']('deleteForward',(_0x5351b0,_0x5e0b39={})=>{const _0x11dabc=_0xdb427e['model']['createSelection'](_0xdb427e['model']['document']['selection']);_0x11dabc['isCollapsed']&&_0xdb427e['model']['modifySelection'](_0x11dabc,{'direction':'forward','unit':_0x5e0b39['unit']});const _0x4be3cc=_0x11dabc['getFirstRange'](),_0x2559fa=_0x53edc8['fromRange'](_0x4be3cc);let _0xbe987;_0x5351b0(_0x5e0b39),_0xbe987='$graveyard'==_0x2559fa['root']['rootName']?_0xdb427e['model']['createRange'](_0x4be3cc['start']):_0xdb427e['model']['createRange'](_0x2559fa['start'],_0x2559fa['end']),_0x2559fa['detach'](),_0xdb427e['model']['enqueueChange'](_0x2564ef['buffer']['batch'],_0x5a5c66=>{_0x2564ef['buffer']['lock'](),_0x5a5c66['setSelection'](_0x5a5c66['createRange'](_0xbe987['end'])),_0x2564ef['buffer']['unlock']();});}),_0xdb427e['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0xdb427e,'merge'),{'priority':'high'}),_0xdb427e['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x225377,_0x46b390,_0x3ea239)=>{_0x3ea239['options']['showSuggestionHighlights']&&Fe(_0xdb427e,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x225377,_0x46b390,_0x3ea239);},{'priority':'high'}),_0xdb427e['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x306923,_0x4aa8d5,_0x4ab60c)=>{const _0x2c9cd1=_0x4ab60c['mapper']['markerNameToElements'](_0x4aa8d5['markerName']);if(_0x2c9cd1){for(const _0x2f62ad of _0x2c9cd1)_0x2f62ad['is']('uiElement')&&(_0x4ab60c['mapper']['unbindElementFromMarkerName'](_0x2f62ad,_0x4aa8d5['markerName']),_0x4ab60c['writer']['remove'](_0x2f62ad));}},{'priority':'high'});}}class W extends _0x11ea7f{['afterInit'](){const _0x11dfcf=this['editor'];if(!_0x11dfcf['plugins']['has']('ListEditing'))return;const _0x2bed8b=_0x11dfcf['locale'],_0x13534b=_0x11dfcf['plugins']['get']('TrackChangesEditing'),_0x12f728=_0x11dfcf['plugins']['has']('TodoListEditing'),_0x37bc1b=!!_0x11dfcf['config']['get']('list.multiBlock');function _0x2ab931(_0xf398f){return{'type':'format','content':''+c(_0x2bed8b,'*Set\x20format:*\x20%0',_0xf398f)};}function _0x48518c(_0x2e3b1){return{'type':'format','content':''+c(_0x2bed8b,'*Remove\x20format:*\x20%0',_0x2e3b1)};}_0x13534b['enableDefaultAttributesIntegration']('numberedList'),_0x13534b['enableDefaultAttributesIntegration']('bulletedList'),_0x13534b['enableDefaultAttributesIntegration']('customNumberedList'),_0x13534b['enableDefaultAttributesIntegration']('customBulletedList'),_0x13534b['enableDefaultAttributesIntegration']('indentList'),_0x13534b['enableDefaultAttributesIntegration']('outdentList'),_0x13534b['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x13534b['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x13534b['registerBlockAttribute']('listItemId'),_0x13534b['registerBlockAttribute']('listType'),_0x13534b['registerBlockAttribute']('listIndent'),_0x37bc1b&&(_0x13534b['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x13534b['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x12f728&&(_0x13534b['enableDefaultAttributesIntegration']('todoList'),_0x13534b['enableDefaultAttributesIntegration']('checkTodoList'),_0x13534b['registerBlockAttribute']('todoListChecked'),_0x13534b['descriptionFactory']['registerDescriptionCallback'](_0x49d547=>{const {data:_0x5e45d7}=_0x49d547;if(_0x5e45d7&&'todoListChecked'==_0x5e45d7['key'])return{'type':'format','content':_0x5e45d7['newValue']?c(_0x2bed8b,'*Check\x20item*'):c(_0x2bed8b,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x316870=>{if(_0x316870['batch']['isUndo'])return!0x1;let _0x1ceab2=!0x1;const _0x340400=_0x13534b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x18041b=>'todoListChecked'===_0x13534b['_getAttributeKey'](_0x18041b));for(const _0x3b4edd of _0x340400){'todo'!=_0x3b4edd['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x13534b['_findSuggestions'](_0x3b4edd['getFirstRange'](),'attribute')['find'](_0x484933=>'listType'===_0x13534b['_getAttributeKey'](_0x484933['suggestion']))||(_0x316870['removeMarker'](_0x3b4edd['getFirstMarker']()),_0x1ceab2=!0x0));}return _0x1ceab2;})),_0x13534b['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x2bed8b,'FORMAT_INDENT'));const _0x7af824={'type':'format','content':''};_0x13534b['descriptionFactory']['registerDescriptionCallback'](_0x512418=>{const {data:_0x51e6aa}=_0x512418;if(!_0x51e6aa||'listType'!=_0x51e6aa['key'])return;let _0x1b395a=_0x512418['head'];for(;_0x1b395a;){if(_0x1b395a['data']&&(('listStyle'==_0x1b395a['data']['key']||'listMarkerStyle'==_0x1b395a['data']['key'])&&(_0x1b395a['data']['newValue']&&'default'!=_0x1b395a['data']['newValue']||'default'!=_0x1b395a['data']['oldValue']&&!_0x51e6aa['newValue'])||!_0x37bc1b&&_0x1b395a['data']['key']==u))return _0x7af824;_0x1b395a=_0x1b395a['next'];}if(null==_0x51e6aa['newValue'])switch(_0x51e6aa['oldValue']){case'bulleted':return _0x48518c(c(_0x2bed8b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x48518c(c(_0x2bed8b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x48518c(c(_0x2bed8b,'ELEMENT_TODO_LIST'));}switch(_0x51e6aa['newValue']){case'bulleted':return _0x2ab931(c(_0x2bed8b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2ab931(c(_0x2bed8b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2ab931(c(_0x2bed8b,'ELEMENT_TODO_LIST'));}}),_0x13534b['descriptionFactory']['registerDescriptionCallback'](_0x36b2f5=>{const {data:_0x1e40be}=_0x36b2f5;if(_0x1e40be&&'listIndent'==_0x1e40be['key'])return null==_0x1e40be['newValue']||null==_0x1e40be['oldValue']&&0x0==_0x1e40be['newValue']?_0x7af824:void 0x0;}),_0x13534b['descriptionFactory']['registerDescriptionCallback'](_0x5614a3=>{if('attribute'!=_0x5614a3['type'])return;const {data:_0x1d6bd9}=_0x5614a3;if(!_0x1d6bd9||'listItemId'!=_0x1d6bd9['key'])return;const _0x400537=Te(_0x5614a3);return'newValue'==_0x400537?{'type':'format','content':c(_0x2bed8b,'*Merge:*\x20list\x20item')}:'oldValue'==_0x400537?{'type':'format','content':c(_0x2bed8b,'*Split:*\x20list\x20item')}:_0x7af824;}),_0x11dfcf['model']['document']['registerPostFixer'](_0x59bc46=>this['listItemIdFixer'](_0x59bc46)),_0x11dfcf['model']['document']['registerPostFixer'](_0x3992a2=>this['noTrackChangesFixer'](_0x3992a2)),_0x11dfcf['model']['document']['on']('change:data',(_0x339d00,_0x42306c)=>{if(_0x42306c['isUndo']||!_0x42306c['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x11b855){if(_0x11b855['batch']['isUndo']||!_0x11b855['batch']['isLocal'])return!0x1;let _0xe2ac22=!0x1;const _0x38038d=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3423e1=>_0x3423e1['data']&&'listItemId'==_0x3423e1['data']['key'])['filter'](_0x381372=>_0x381372['data']['newValue']&&_0x381372['data']['oldValue']);for(const _0x29252c of _0x38038d)Te(_0x29252c)||(_0x11b855['removeMarker'](_0x29252c['getFirstMarker']()),_0xe2ac22=!0x0);return _0xe2ac22;}['noTrackChangesFixer'](_0x106b43){if(_0x106b43['batch']['isUndo']||!_0x106b43['batch']['isLocal'])return!0x1;const _0x4145bb=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4145bb['trackChangesCommand']['value'])return!0x1;let _0x6a83a8=!0x1;const _0x5d1317=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x497d3d=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x111a1d=>'attribute'==_0x111a1d['type'])['filter'](_0x2fbc60=>_0x5d1317['includes'](_0x2fbc60['attributeKey']));if(0x0==_0x497d3d['length'])return _0x6a83a8;for(const _0x371d89 of _0x497d3d){const _0xf436b9=_0x4145bb['_findSuggestions'](_0x371d89['range'],'attribute')['filter'](_0x4cd352=>!_0x4cd352['meta']['isNextTo'])['map'](_0x3f4f97=>_0x3f4f97['suggestion'])['filter'](_0x4aee34=>{const _0x50bb2a=_0x4145bb['_getAttributeKey'](_0x4aee34);return _0x5d1317['includes'](_0x50bb2a);});if(_0xf436b9['length']){for(const _0x252bb0 of _0xf436b9)_0x106b43['removeMarker'](_0x252bb0['getFirstMarker']());_0x6a83a8=!0x0;}}return _0x6a83a8;}['assureChains'](){const _0x2135fb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x15ed47=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x4de280;const _0x1ff6cf=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x22498f=>{if(_0x22498f['data']['oldRange']||!_0x22498f['data']['newRange'])return null;if(!_0x22498f['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x24a63a}=_0x2135fb['_splitMarkerName'](_0x22498f['name']);if(!_0x2135fb['hasSuggestion'](_0x24a63a))return null;const _0x26b2d7=_0x2135fb['getSuggestion'](_0x24a63a);return _0x15ed47['includes'](_0x26b2d7['data']['key']);})['map'](_0x5a7ea1=>{const {id:_0x33504a}=_0x2135fb['_splitMarkerName'](_0x5a7ea1['name']),_0x5f5987=_0x2135fb['getSuggestion'](_0x33504a);return _0x4de280=_0x5f5987['attributes']['groupId'],_0x5f5987['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x1ff6cf['size'])return;const _0x459f48=_0x2135fb['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5186f8=>'attribute'==_0x5186f8['type']&&_0x5186f8['data']&&_0x15ed47['includes'](_0x5186f8['data']['key'])&&_0x5186f8['attributes']['groupId']!=_0x4de280)['map'](_0xcfb9a2=>({'listItem':_0xcfb9a2['getFirstRange']()['start']['nodeAfter'],'groupId':_0xcfb9a2['attributes']['groupId']})),_0x500f16=new Set();for(const {groupId:_0x40f9f8,listItem:_0x3af73f}of _0x459f48)_0x1ff6cf['has'](_0x3af73f)&&_0x500f16['add'](_0x40f9f8);for(const _0x1eafc3 of _0x2135fb['getSuggestions']())_0x500f16['has'](_0x1eafc3['attributes']['groupId'])&&_0x1eafc3['setAttribute']('groupId',_0x4de280);}['_supportLegacySuggestions'](){const _0x4a2af3=this['editor'],_0x1e8cf0=_0x4a2af3['locale'],_0x14683c=_0x4a2af3['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x14683c['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x47334f,_0x4adef7){const _0x9a2a44=[];for(let _0x2af7fc of _0x47334f)_0x2af7fc['start']['nodeAfter']===_0x2af7fc['end']['parent']&&(_0x2af7fc=_0x4a2af3['model']['createRange'](_0x4a2af3['model']['createPositionAt'](_0x2af7fc['start']['nodeAfter'],0x0))),_0x9a2a44['push'](_0x2af7fc);_0x4a2af3['model']['change'](_0x2a01e3=>{const _0xb87117=_0x4a2af3['model']['document']['selection'],_0x23807d=Array['from'](_0xb87117['getRanges']())['map'](_0x32b8ef=>_0x53edc8['fromRange'](_0x32b8ef));_0x2a01e3['setSelection'](_0x9a2a44),_0x4a2af3['commands']['get'](_0x4adef7['commandName'])['refresh'](),_0x4adef7['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4a2af3['execute'](_0x4adef7['commandName'],..._0x4adef7['commandParams']),_0x2a01e3['setSelection'](_0x23807d);for(const _0x3cf0f2 of _0x23807d)_0x3cf0f2['detach']();});}),_0x14683c['descriptionFactory']['registerElementLabel'](function(_0x2b1844){const _0x480c60=!_0x4a2af3['model']['schema']['isObject'](_0x2b1844),_0x562bf1=_0x2b1844['previousSibling'],_0x417c88=_0x2b1844['nextSibling'],_0x1aaa5d=_0x2b1844['getAttribute']('listItemId'),_0x5e8106=!_0x562bf1||_0x562bf1['getAttribute']('listItemId')!==_0x1aaa5d,_0x2433f6=!_0x417c88||_0x417c88['getAttribute']('listItemId')!==_0x1aaa5d;return _0x480c60&&Boolean(_0x1aaa5d)&&_0x5e8106&&_0x2433f6;},_0x388886=>c(_0x1e8cf0,'ELEMENT_LIST_ITEM',_0x388886));}['_registerLegacyDescription'](){const _0x178e42=this['editor'],_0x44ee8b=_0x178e42['locale'];function _0x155797(_0x503693){const _0x207f0a=_0x178e42['commands']['get']('bulletedList')['value'],_0x1755f5=_0x178e42['commands']['get']('numberedList')['value'];return'numberedList'===_0x503693?_0x207f0a:_0x1755f5;}_0x178e42['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x22d43f){if('formatBlock'!=_0x22d43f['type'])return;const {data:_0x5d320a}=_0x22d43f;if(!_0x5d320a)return;let _0x1ee24b,_0x7a9005,_0x1d091f,_0x1cd5ad;switch(_0x5d320a['commandName']){case'bulletedList':_0x1d091f=_0x5d320a['commandParams'][0x0]['forceValue'],_0x1cd5ad=_0x155797(_0x5d320a['commandName']),_0x1ee24b=_0x1d091f?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1cd5ad&&_0x178e42['config']['get']('list.multiBlock')||(_0x1ee24b='*Change\x20to:*\x20%0'),_0x7a9005={'type':'format','content':c(_0x44ee8b,_0x1ee24b,c(_0x44ee8b,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x1d091f=_0x5d320a['commandParams'][0x0]['forceValue'],_0x1cd5ad=_0x155797(_0x5d320a['commandName']),_0x1ee24b=_0x1d091f?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1cd5ad&&_0x178e42['config']['get']('list.multiBlock')||(_0x1ee24b='*Change\x20to:*\x20%0'),_0x7a9005={'type':'format','content':c(_0x44ee8b,_0x1ee24b,c(_0x44ee8b,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1ee24b='*Indent:*\x20%0',_0x7a9005={'type':'format','content':c(_0x44ee8b,_0x1ee24b,c(_0x44ee8b,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1ee24b=function(_0x5cb85b){const _0x95c63e=_0x5cb85b['getFirstRange']();let _0x2c13cf=_0x95c63e['start']['nodeAfter'];for(;_0x2c13cf&&_0x95c63e['containsItem'](_0x2c13cf);){if(_0x2c13cf['getAttribute']('listIndent')>0x0)return!0x1;_0x2c13cf=_0x2c13cf['nextSibling'];}return!0x0;}(_0x22d43f)?c(_0x44ee8b,'*Format:*\x20remove\x20from\x20%0',c(_0x44ee8b,function(_0x173579){return'ELEMENT_'+_0x173579['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x22d43f))):c(_0x44ee8b,'*Outdent:*\x20%0',c(_0x44ee8b,'ELEMENT_LIST_ITEM')),_0x7a9005={'type':'format','content':_0x1ee24b};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x5d320a['multipleBlocks']&&(_0x1ee24b='*Merge:*\x20%0',_0x7a9005={'type':'deletion','content':c(_0x44ee8b,_0x1ee24b,c(_0x44ee8b,'ELEMENT_LIST_ITEM'))});}return _0x7a9005;});}}function Te(_0x3031af){let _0x1a0ae5=_0x3031af['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x1a0ae5;){const _0x5d6750=_0x1a0ae5['getAttribute']('listItemId');if(!_0x5d6750)return!0x1;if(_0x5d6750==_0x3031af['data']['newValue'])return'newValue';if(_0x5d6750==_0x3031af['data']['oldValue'])return'oldValue';_0x1a0ae5=_0x1a0ae5['previousSibling'];}return!0x1;}class Se extends _0x11ea7f{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x5df778=this['editor']['config']['get']('list.properties'),_0x4f2e1e=this['editor']['plugins']['get']('TrackChangesEditing');_0x5df778['styles']&&(_0x4f2e1e['enableDefaultAttributesIntegration']('listStyle'),_0x4f2e1e['registerBlockAttribute']('listStyle')),_0x5df778['reversed']&&(_0x4f2e1e['enableDefaultAttributesIntegration']('listReversed'),_0x4f2e1e['registerBlockAttribute']('listReversed')),_0x5df778['startIndex']&&(_0x4f2e1e['enableDefaultAttributesIntegration']('listStart'),_0x4f2e1e['registerBlockAttribute']('listStart'));const _0x109754={'type':'format','content':''};_0x4f2e1e['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x83b7d=this['editor']['locale'];_0x4f2e1e['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x83b7d,'FORMAT_LIST_REVERSED')),_0x4f2e1e['descriptionFactory']['registerDescriptionCallback'](_0x25cecd=>{const {data:_0x3d5bf5}=_0x25cecd;if(_0x3d5bf5&&'listReversed'==_0x3d5bf5['key'])return null==_0x3d5bf5['newValue']||0x0==_0x3d5bf5['newValue']&&null==_0x3d5bf5['oldValue']?_0x109754:void 0x0;}),_0x4f2e1e['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x83b7d,'FORMAT_LIST_START')),_0x4f2e1e['descriptionFactory']['registerDescriptionCallback'](_0x2fff9f=>{const {data:_0x48c735}=_0x2fff9f;if(_0x48c735&&'listStart'==_0x48c735['key'])return null==_0x48c735['newValue']||0x1==_0x48c735['newValue']&&null==_0x48c735['oldValue']?_0x109754:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x2fe280=>{if(_0x2fe280['batch']['isUndo'])return!0x1;let _0x553b11=!0x1;const _0x2bb257=_0x4f2e1e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x504216=>{const _0xd45990=_0x4f2e1e['_getAttributeKey'](_0x504216);return'listStart'==_0xd45990||'listReversed'==_0xd45990;});for(const _0x428ee7 of _0x2bb257){const _0x4ac297=_0x428ee7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4ac297||'customNumbered'==_0x4ac297)continue;_0x4f2e1e['_findSuggestions'](_0x428ee7['getFirstRange'](),'attribute')['find'](_0x3f5ad9=>'listType'==_0x4f2e1e['_getAttributeKey'](_0x3f5ad9['suggestion']))||(_0x2fe280['removeMarker'](_0x428ee7['getFirstMarker']()),_0x553b11=!0x0);}return _0x553b11;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x51edb1){const _0x32d667=this['editor']['locale'],{data:_0x5a6b44}=_0x51edb1,_0x5adb91={'type':'format','content':''};if(!_0x5a6b44||'listStyle'!=_0x5a6b44['key'])return;if(!_0x5a6b44['oldValue'])return'default'==_0x5a6b44['newValue']?_0x5adb91:{'type':'format','content':''+c(_0x32d667,'*Set\x20format:*\x20%0',c(_0x32d667,this['_getTranslationKeyForListStyle'](_0x5a6b44['newValue'])))};if(!_0x5a6b44['newValue']){if('default'==_0x5a6b44['oldValue'])return _0x5adb91;let _0x4b5688=_0x51edb1['head'];for(;_0x4b5688;){if(_0x4b5688['data']&&'listType'==_0x4b5688['data']['key']&&_0x4b5688['data']['newValue'])return _0x5adb91;_0x4b5688=_0x4b5688['next'];}return{'type':'format','content':''+c(_0x32d667,'*Remove\x20format:*\x20%0',c(_0x32d667,this['_getTranslationKeyForListStyle'](_0x5a6b44['oldValue'])))};}if('default'!=_0x5a6b44['newValue'])return{'type':'format','content':''+c(_0x32d667,'*Set\x20format:*\x20%0',c(_0x32d667,this['_getTranslationKeyForListStyle'](_0x5a6b44['newValue'])))};let _0x1b734e=_0x51edb1['head'];for(;_0x1b734e;){if(_0x1b734e['data']&&'listType'==_0x1b734e['data']['key']&&_0x1b734e['data']['newValue']&&_0x1b734e['data']['oldValue'])return _0x5adb91;_0x1b734e=_0x1b734e['next'];}return{'type':'format','content':c(_0x32d667,'*Set\x20format:*\x20%0',c(_0x32d667,'ELEMENT_'+_0x51edb1['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x5a59c9=this['editor'],_0x55ddc7=_0x5a59c9['locale'];_0x5a59c9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x43500c=>{if('formatBlock'!=_0x43500c['type'])return;const {data:_0x567de7}=_0x43500c;if(!_0x567de7)return;let _0x1b54a9,_0x119575;switch(_0x567de7['commandName']){case'listStyle':_0x1b54a9='*Change\x20to:*\x20%0',_0x119575={'type':'format','content':c(_0x55ddc7,_0x1b54a9,c(_0x55ddc7,this['_getTranslationKeyForListStyle'](_0x567de7['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1b54a9=_0x567de7['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x119575={'type':'format','content':c(_0x55ddc7,_0x1b54a9)};break;case'listStart':_0x1b54a9='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x119575={'type':'format','content':c(_0x55ddc7,_0x1b54a9,_0x567de7['commandParams'][0x0]['startIndex'])};}return _0x119575;});}['_getTranslationKeyForListStyle'](_0x330e16){return'ELEMENT_'+function(_0x12ef83){if(_e['includes'](_0x12ef83))return'bulleted';if(Re['includes'](_0x12ef83))return'numbered';return null;}(_0x330e16)['toUpperCase']()+'_LIST_'+_0x330e16['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x11ea7f{['afterInit'](){const _0x570c19=this['editor'];_0x570c19['commands']['get']('emoji')&&_0x570c19['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x11ea7f{static get['requires'](){return[_0x120978];}['init'](){const _0x50883d=this['editor'],_0x12e9ff=_0x50883d['plugins']['get']('TrackChangesEditing'),_0x23ec8d=_0x50883d['commands']['get']('enter');_0x12e9ff['enableCommand']('enter',()=>{_0x50883d['model']['change'](_0x5d8253=>{const _0x2ee180=_0x50883d['model']['document']['selection'],_0x4944dc=_0x2ee180['getFirstPosition'](),_0x4c9a5b=_0x53edc8['fromRange'](_0x2ee180['getFirstRange']());if(_0x23ec8d['enterBlock'](_0x5d8253)){const _0x5597b3=_0x50883d['model']['createPositionAt'](_0x4944dc['parent']['nextSibling'],0x0),_0x53bc8e=_0x5d8253['createRange'](_0x4944dc,_0x5597b3);_0x12e9ff['markInsertion'](_0x53bc8e);}else _0x5d8253['setSelection'](_0x5d8253['createRange'](_0x4c9a5b['end']));_0x4c9a5b['detach'](),_0x23ec8d['fire']('afterExecute',{'writer':_0x5d8253});});}),_0x50883d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x50883d,'split'),{'priority':'high'}),_0x50883d['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x26d287,_0x2855fd,_0x2593a6)=>{const _0x34979a=_0x2593a6['mapper']['markerNameToElements'](_0x2855fd['markerName']);if(_0x34979a){for(const _0x59f85c of _0x34979a)_0x59f85c['hasClass']('ck-suggestion-marker-split')&&(_0x2593a6['mapper']['unbindElementFromMarkerName'](_0x59f85c,_0x2855fd['markerName']),_0x2593a6['writer']['remove'](_0x59f85c));}},{'priority':'high'}),_0x50883d['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x36b371,_0x445e22,_0x5ba6b2)=>{_0x5ba6b2['options']['showSuggestionHighlights']&&Fe(_0x50883d,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x36b371,_0x445e22,_0x5ba6b2);},{'priority':'high'});}}class Z extends _0x11ea7f{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x330370=this['editor']['plugins']['get']('TrackChangesEditing');_0x330370['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x330370['enableCommand']('findNext'),_0x330370['enableCommand']('findPrevious'),_0x330370['enableCommand']('replace'),_0x330370['enableCommand']('replaceAll');}['handleFindCommand'](_0x348393,_0x2262c5,_0x1083e6={}){const _0x4fc4bc=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x348393(_0x1e7fa3=>{let _0x11efc4=('string'==typeof _0x2262c5?_0x4fc4bc['findByTextCallback'](_0x2262c5,_0x1083e6):_0x2262c5)(_0x1e7fa3);Array['isArray'](_0x11efc4)&&(_0x11efc4={'results':_0x11efc4,'searchText':'string'==typeof _0x2262c5?_0x2262c5:''});const _0x468117=_0x11efc4['results']['filter'](_0x527d0e=>!0x1===this['_isInDeletionRange'](_0x527d0e,_0x1e7fa3['item']));return{..._0x11efc4,'results':_0x468117};},_0x1083e6);}['_isInDeletionRange'](_0x260df6,_0x47022d){const _0x5d0ad0=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x47022d,_0x260df6['start']),this['editor']['model']['createPositionAt'](_0x47022d,_0x260df6['end']));for(const _0x34a67b of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5d0ad0['getIntersection'](_0x34a67b['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x11ea7f{['afterInit'](){const _0x2871e1=this['editor']['locale'],_0xb7b70=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4c8e7d,commandName:_0x31bd07}of ro)this['editor']['plugins']['has'](_0x4c8e7d)&&(_0xb7b70['enableDefaultAttributesIntegration'](_0x31bd07),_0xb7b70['registerInlineAttribute'](_0x31bd07));_0xb7b70['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x2871e1,'FORMAT_FONT_SIZE')),_0xb7b70['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x2871e1,'FORMAT_FONT_FAMILY')),_0xb7b70['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x2871e1,'FORMAT_FONT_COLOR')),_0xb7b70['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x2871e1,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x47d088=this['editor'],_0x3380d4=_0x47d088['locale'];_0x47d088['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x27666e=>{const _0xa7b87c=_0x3380d4['t'];if('formatInline'!=_0x27666e['type'])return;const {data:_0x2573da}=_0x27666e;if(null!=_0x2573da){if('fontSize'==_0x2573da['commandName']){const _0x3be5c3=_0x2573da['commandParams'][0x0]['value'];if(_0x3be5c3){const _0x479d07=_0xa7b87c(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x779e8d=>_0x779e8d['model']==_0x3be5c3)['title'])['toLowerCase']();return{'type':'format','content':c(_0x3380d4,'*Set\x20font\x20size:*\x20%0',_0x479d07)};}return{'type':'format','content':c(_0x3380d4,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2573da['commandName']){const _0x5722b7=_0x2573da['commandParams'][0x0]['value'];return _0x5722b7?{'type':'format','content':c(_0x3380d4,'*Set\x20font\x20family:*\x20%0',_0x5722b7)}:{'type':'format','content':c(_0x3380d4,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2573da['commandName']){const _0x57bb62=_0x2573da['commandParams'][0x0]['value'];if(_0x57bb62){const _0x26bbc3=_0x1d84f3(this['editor']['config']['get']('fontColor.colors'))['find'](_0x16dc7a=>_0x16dc7a['model']==_0x57bb62);let _0x58a8fe=_0x57bb62,_0x4389e0='';return _0x26bbc3&&(_0x58a8fe=_0x26bbc3['label'],_0x4389e0=_0xa7b87c(_0x58a8fe)['toLowerCase']()),{'type':'format','content':c(_0x3380d4,'*Set\x20font\x20color:*\x20%0',_0x4389e0)['trim'](),'color':{'value':_0x57bb62,'title':_0x4389e0||_0x58a8fe}};}return{'type':'format','content':c(_0x3380d4,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2573da['commandName']){const _0x1e210e=_0x2573da['commandParams'][0x0]['value'];if(_0x1e210e){const _0x5ea47b=_0x1d84f3(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x12b8c9=>_0x12b8c9['model']==_0x1e210e);let _0x27c1c1=_0x1e210e,_0x203dfe='';return _0x5ea47b&&(_0x27c1c1=_0x5ea47b['label'],_0x203dfe=_0xa7b87c(_0x27c1c1)['toLowerCase']()),{'type':'format','content':c(_0x3380d4,'*Set\x20font\x20background\x20color:*\x20%0',_0x203dfe)['trim'](),'color':{'value':_0x1e210e,'title':_0x203dfe||_0x27c1c1}};}return{'type':'format','content':c(_0x3380d4,'*Reset\x20font\x20background\x20color*')};}}});}}class it extends _0x11ea7f{['afterInit'](){const _0x1c8bcc=this['editor'],_0x1c45db=_0x1c8bcc['plugins']['get']('TrackChangesEditing'),_0x2ae975=_0x1c8bcc['commands']['get']('copyFormat'),_0x4e72d9=_0x1c8bcc['commands']['get']('pasteFormat');_0x2ae975&&_0x4e72d9&&(_0x1c45db['enableDefaultAttributesIntegration']('pasteFormat'),_0x1c45db['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x585e9e=this['editor'],_0x43b621=_0x585e9e['locale'];_0x585e9e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b0ed2=>{if('formatBlock'!=_0x4b0ed2['type']&&'formatInline'!=_0x4b0ed2['type'])return;const {data:_0x27681c}=_0x4b0ed2;if(_0x27681c&&'pasteFormat'===_0x27681c['commandName']){const _0x464ffb=[],_0x52a8b8=_0x27681c['commandParams'][0x0];for(const [_0x79f919,_0x4b4392]of Object['entries'](_0x52a8b8))_0x464ffb['push'](so(_0x585e9e,_0x79f919,_0x4b4392));return _0x464ffb['length']?{'type':'format','content':c(_0x43b621,'*Set\x20format\x20to:*\x20%0',_0x464ffb['join'](',\x20'))}:{'type':'format','content':c(_0x43b621,'*Remove\x20all\x20formatting*')};}});}}function so(_0x1b7f3c,_0x4c58db,_0x2c83e7){const _0x5794c2=_0x1b7f3c['locale']['t'],_0x3427ea=_0x4c58db['split'](/(?=[A-Z])/)['join']('\x20'),_0x344e24=_0x5794c2(_0x3427ea['charAt'](0x0)['toUpperCase']()+_0x3427ea['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x2c83e7)return _0x344e24;if('fontColor'===_0x4c58db||'fontBackgroundColor'===_0x4c58db){const _0x1e79aa=_0x1d84f3(_0x1b7f3c['config']['get']('fontColor.colors'))['find'](_0x255e63=>_0x255e63['model']==_0x2c83e7);return _0x344e24+'\x20('+(_0x1e79aa?_0x5794c2(_0x1e79aa['label'])['toLowerCase']():_0x2c83e7)+')';}if('fontSize'===_0x4c58db&&isNaN(parseFloat(_0x2c83e7))){const _0x15cae0=_0x1b7f3c['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1b7f3c['config']['get']('fontSize.options'))['find'](_0x5a58a8=>_0x5a58a8['model']==_0x2c83e7);return _0x344e24+'\x20('+(_0x15cae0?_0x5794c2(_0x15cae0['title'])['toLowerCase']():_0x2c83e7)+')';}return _0x344e24+'\x20('+_0x2c83e7+')';}class et extends _0x11ea7f{['_headingOptions'];['afterInit'](){const _0x4f6885=this['editor'];if(!_0x4f6885['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x4f6885['config']['get']('heading.options');const _0x5da9ca=_0x4f6885['locale'],_0x38f783=_0x4f6885['plugins']['get']('TrackChangesEditing');_0x38f783['enableDefaultAttributesIntegration']('heading');for(const _0x30c113 of this['_headingOptions'])'paragraph'!=_0x30c113['model']&&_0x38f783['descriptionFactory']['registerElementLabel'](_0x30c113['model'],_0xfee632=>{const _0x137e9d=this['_getHeadingLevel'](_0x30c113['model']);return null!==_0x137e9d?_0x515ff1(_0xfee632,_0x137e9d):_0x3c70d4(_0xfee632,_0x30c113['title']);});function _0x515ff1(_0x378790,_0x47a0d7){return c(_0x5da9ca,'ELEMENT_HEADING',[_0x378790,_0x47a0d7]);}function _0x3c70d4(_0x4c9a1f,_0x480e51){return c(_0x5da9ca,'ELEMENT_HEADING_CUSTOM',[_0x4c9a1f,_0x480e51]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x196325=this['editor'],_0x4d0043=_0x196325['locale'];function _0xb7623c(_0x307538,_0x5be59e){return c(_0x4d0043,'ELEMENT_HEADING_CUSTOM',[_0x307538,_0x5be59e]);}_0x196325['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5083c7=>{if('formatBlock'!=_0x5083c7['type'])return;const {data:_0x28a7c7}=_0x5083c7;if(_0x28a7c7&&'heading'==_0x28a7c7['commandName']){const _0x2d93ec=_0x28a7c7['commandParams'][0x0]['value'],_0x5ee88d=this['_getHeadingLevel'](_0x2d93ec);if(null!==_0x5ee88d)return{'type':'format','content':c(_0x4d0043,'*Change\x20to:*\x20%0',(_0x295719=0x1,_0xcd9989=_0x5ee88d,c(_0x4d0043,'ELEMENT_HEADING',[_0x295719,_0xcd9989])))};const _0x180fd9=this['_headingOptions']['find'](_0x3fe2b3=>_0x3fe2b3['model']===_0x2d93ec)['title'];return{'type':'format','content':c(_0x4d0043,'*Change\x20to:*\x20%0',_0xb7623c(0x1,_0x180fd9))};}var _0x295719,_0xcd9989;});}['_getHeadingLevel'](_0xbb551a){const _0x4c724a=_0xbb551a['match'](/^heading(\d+)/);if(_0x4c724a)return _0x4c724a[0x1];const _0xe30f5a=this['_headingOptions']?.['find'](_0x16b0c7=>_0x16b0c7['model']==_0xbb551a);if(_0xe30f5a&&_0xe30f5a['view']){const _0x25889f=_0xe30f5a['view'],_0x2c2f50=(_0x25889f['name']??_0x25889f)['match'](/^h(\d+)/);if(_0x2c2f50)return _0x2c2f50[0x1];}return null;}}class nt extends _0x11ea7f{['afterInit'](){const _0x3b2ee6=this['editor'];if(!_0x3b2ee6['plugins']['has']('HighlightEditing'))return;const _0x30b574=_0x3b2ee6['plugins']['get']('TrackChangesEditing'),_0x1987ec=_0x3b2ee6['locale'];_0x30b574['enableDefaultAttributesIntegration']('highlight'),_0x30b574['registerInlineAttribute']('highlight'),_0x30b574['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x1987ec,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x38355f=this['editor'],_0x5023d5=_0x38355f['locale'];_0x38355f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x9d7ac3=>{if('formatInline'!=_0x9d7ac3['type'])return;const {data:_0x57e50a}=_0x9d7ac3;if(_0x57e50a&&'highlight'==_0x57e50a['commandName']){const _0x43b327=_0x5023d5['t'],_0x5736a4=_0x57e50a['commandParams'][0x0]['value'];if(_0x5736a4){const _0xcc65ad=_0x38355f['config']['get']('highlight.options')['find'](_0x222eed=>_0x222eed['model']==_0x5736a4),_0x11e045=_0x43b327(_0xcc65ad['title'])['toLowerCase']();return{'type':'format','content':c(_0x5023d5,'*Set\x20highlight:*\x20%0',_0x11e045),'color':{'value':_0xcc65ad['color'],'title':_0xcc65ad['title']}};}return{'type':'format','content':c(_0x5023d5,'*Remove\x20highlight*',c(_0x5023d5,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x11ea7f{['afterInit'](){const _0x424905=this['editor'];if(!_0x424905['plugins']['has']('HorizontalLineEditing'))return;_0x424905['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3a16b5=_0x424905['plugins']['get']('TrackChangesEditing'),_0x16e0b2=_0x424905['locale'];_0x3a16b5['descriptionFactory']['registerElementLabel']('horizontalLine',_0x1e4604=>c(_0x16e0b2,'ELEMENT_HORIZONTAL_LINE',_0x1e4604)),_0x424905['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x269679,{writer:_0x3a6530,options:_0x411c55})=>{if(!_0x411c55['showSuggestionHighlights'])return null;const _0x588fd1=_0x3a6530['createContainerElement']('div'),_0x1abeac=_0x3a6530['createEmptyElement']('hr');return _0x3a6530['addClass']('ck-horizontal-line',_0x588fd1),_0x3a6530['insert'](_0x3a6530['createPositionAt'](_0x588fd1,0x0),_0x1abeac),_0x588fd1;},'converterPriority':'high'});}}class ot extends _0x11ea7f{['afterInit'](){const _0x3dba2a=this['editor'];if(!_0x3dba2a['plugins']['has']('HtmlEmbed'))return;const _0x4fe8c1=_0x3dba2a['plugins']['get']('TrackChangesEditing'),_0x560b5e=_0x3dba2a['locale'];_0x4fe8c1['descriptionFactory']['registerElementLabel']('rawHtml',_0x1a7bc2=>c(_0x560b5e,'ELEMENT_HTML_EMBED',_0x1a7bc2)),_0x4fe8c1['enableDefaultAttributesIntegration']('htmlEmbed'),_0x4fe8c1['registerBlockAttribute']('value'),_0x4fe8c1['descriptionFactory']['registerDescriptionCallback'](_0x154911=>{if('attribute'!=_0x154911['type'])return;const {data:_0x2c3b1b}=_0x154911;if(_0x2c3b1b&&'value'==_0x2c3b1b['key']&&_0x154911['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2fb513=c(_0x560b5e,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x560b5e,'*Change\x20%0\x20content*',_0x2fb513)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x41a79b=this['editor'],_0x2f72d6=_0x41a79b['locale'];_0x41a79b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40dcf6=>{if('formatBlock'!=_0x40dcf6['type'])return;const {data:_0x1e03eb}=_0x40dcf6;if(_0x1e03eb&&'htmlEmbed'==_0x1e03eb['commandName']){const _0x2e3f80=c(_0x2f72d6,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x2f72d6,'*Change\x20%0\x20content*',_0x2e3f80)};}});}}class rt extends _0x11ea7f{['afterInit'](){const _0xf55a5=this['editor'];if(!_0xf55a5['plugins']['has']('ImageEditing'))return;const _0x2f2ce3=_0xf55a5['plugins']['get']('TrackChangesEditing'),_0x33b3ba=_0xf55a5['plugins']['get']('ImageUtils'),_0xb87c04=_0xf55a5['locale'];_0x2f2ce3['enableCommand']('insertImage'),_0x2f2ce3['descriptionFactory']['registerElementLabel']('imageBlock',_0x28d65f=>c(_0xb87c04,'ELEMENT_IMAGE',_0x28d65f)),_0x2f2ce3['descriptionFactory']['registerElementLabel']('imageInline',_0x580250=>c(_0xb87c04,'ELEMENT_INLINE_IMAGE',_0x580250)),_0x2f2ce3['descriptionFactory']['registerElementLabel']('caption',()=>c(_0xb87c04,'ELEMENT_CAPTION')),_0xf55a5['plugins']['has']('ImageUploadEditing')&&_0x2f2ce3['enableCommand']('uploadImage'),_0xf55a5['plugins']['has']('ImageBlockEditing')&&_0xf55a5['plugins']['has']('ImageInlineEditing')&&(_0x2f2ce3['enableCommand']('imageTypeInline',(_0x217178,_0x183bd8)=>{const _0x5a7ea0=_0x33b3ba['getClosestSelectedImageElement'](_0xf55a5['model']['document']['selection']);_0xf55a5['model']['change'](()=>{_0x2f2ce3['markBlockFormat'](_0x5a7ea0,{'commandName':'imageTypeInline','commandParams':[_0x183bd8]},[],'convertBlockImageToInline');});}),_0x2f2ce3['enableCommand']('imageTypeBlock',(_0x1d8224,_0x5b5b44)=>{_0xf55a5['model']['change'](_0xfee0a9=>{let _0x29ec6d=_0x33b3ba['getClosestSelectedImageElement'](_0xf55a5['model']['document']['selection']),_0x3a6dfc=_0xfee0a9['createRangeOn'](_0x29ec6d);const _0x43bb4f=_0x130d1d['fromPosition'](_0x3a6dfc['start'],'toPrevious'),_0x28fba6=_0x130d1d['fromPosition'](_0x3a6dfc['end'],'toNext');_0x2f2ce3['forceDefaultExecution'](()=>_0x1d8224(_0x5b5b44)),_0x29ec6d=_0x33b3ba['getClosestSelectedImageElement'](_0xf55a5['model']['document']['selection']),_0x3a6dfc=_0xfee0a9['createRangeOn'](_0x29ec6d);const _0x5cdb66=_0xfee0a9['createRange'](_0x43bb4f,_0x28fba6);_0x43bb4f['detach'](),_0x28fba6['detach'](),_0x2f2ce3['markBlockFormat'](_0x29ec6d,{'commandName':'imageTypeInline','commandParams':[_0x5b5b44]},[],'convertInlineImageToBlock'),_0x5cdb66['start']['isBefore'](_0x3a6dfc['start'])&&_0x2f2ce3['markInsertion'](_0xfee0a9['createRange'](_0x5cdb66['start'],_0x3a6dfc['start']),'convertInlineImageToBlock'),_0x3a6dfc['end']['isBefore'](_0x5cdb66['end'])&&_0x2f2ce3['markInsertion'](_0xfee0a9['createRange'](_0x3a6dfc['end'],_0x5cdb66['end']),'convertInlineImageToBlock');});}),_0x2f2ce3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x2f2ce3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x2f2ce3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x2f2ce3['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x2f2ce3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x2f2ce3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x488ebd])=>{const _0x816d9a=_0x2f2ce3['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x33b4b5=_0x488ebd['start'],_0x252880=_0x488ebd['end'];const _0x1f9c3b=_0xf55a5['model']['schema']['getNearestSelectionRange'](_0x33b4b5,'backward'),_0x4ca5cd=_0xf55a5['model']['schema']['getNearestSelectionRange'](_0x252880,'forward');_0x1f9c3b['isCollapsed']&&(_0x33b4b5=_0x1f9c3b['start']),_0x4ca5cd['isCollapsed']&&(_0x252880=_0x4ca5cd['end']),_0x816d9a([_0xf55a5['model']['createRange'](_0x33b4b5,_0x252880)]);}),_0x2f2ce3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x28513f),_0x2f2ce3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x28513f)),_0xf55a5['plugins']['has']('ImageCaptionEditing')&&(_0x2f2ce3['enableCommand']('toggleImageCaption',(_0x4bfb98,_0x4ecdc0)=>{const _0x191390=_0xf55a5['plugins']['get']('ImageCaptionUtils');let _0x3331fd=_0x33b3ba['getClosestSelectedImageElement'](_0xf55a5['model']['document']['selection']),_0x5c4487=_0x191390['getCaptionFromImageModelElement'](_0x3331fd);_0xf55a5['model']['change'](()=>{if(_0x5c4487)return void _0x2f2ce3['markDeletion'](_0xf55a5['model']['createRangeOn'](_0x5c4487));const _0xd12349=_0x33b3ba['isBlockImage'](_0x3331fd);_0x4bfb98(_0x4ecdc0),_0x3331fd=_0x33b3ba['getClosestSelectedImageElement'](_0xf55a5['model']['document']['selection']),_0x5c4487=_0x191390['getCaptionFromImageModelElement'](_0x3331fd),_0x2f2ce3['markInsertion'](_0xf55a5['model']['createRangeOn'](_0x5c4487),_0xd12349?null:'imageCaption');});}),_0x2f2ce3['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x28513f));const _0x1c5d7e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x172002(_0x5af7ea,_0x1a1d7d){const _0x53f64e=_0x1c5d7e['findIndex'](({type:_0x458333,subType:_0x3c6d54})=>_0x5af7ea['type']==_0x458333&&_0x5af7ea['subType']==_0x3c6d54),_0x5d7c6f=_0x1c5d7e['findIndex'](({type:_0x2a6409,subType:_0x266bc3})=>_0x1a1d7d['type']==_0x2a6409&&_0x1a1d7d['subType']==_0x266bc3);if(_0x53f64e<0x0||_0x5d7c6f<0x0)return!0x1;const _0x4d246e=_0x5af7ea['getFirstRange'](),_0x550b8d=_0x1a1d7d['getFirstRange']();if((0x0==_0x53f64e||0x1==_0x53f64e)&&0x2==_0x5d7c6f&&_0x4d246e['isIntersecting'](_0x550b8d))return!0x0;if(0x2==_0x53f64e&&0x3==_0x5d7c6f){const _0x2f3e3f=_0x2f2ce3['_findSuggestions'](_0x4d246e,'insertion')['filter'](({suggestion:_0x350980,meta:_0x59d5cd})=>_0x59d5cd['isOwn']&&'convertInlineImageToBlock'==_0x350980['subType']);if(_0x2f3e3f['length']>0x1&&_0x550b8d['end']['isEqual'](_0x4d246e['start']))return!0x0;if(0x1==_0x2f3e3f['length']&&(_0x4d246e['start']['isEqual'](_0x550b8d['end'])||_0x4d246e['end']['isEqual'](_0x550b8d['start'])))return!0x0;}if(0x3==_0x53f64e&&0x3==_0x5d7c6f&&_0x4d246e['start']['isBefore'](_0x550b8d['start'])){const _0x528ce0=_0x4d246e['end']['nodeAfter'],_0x26cecb=_0x550b8d['start']['nodeBefore'];return _0x33b3ba['isBlockImage'](_0x528ce0)&&_0x528ce0===_0x26cecb;}return!0x1;}function _0x28513f(_0x3c833f,_0x46295f){return _0x172002(_0x3c833f,_0x46295f)?[_0x3c833f,_0x46295f]:_0x172002(_0x46295f,_0x3c833f)?[_0x46295f,_0x3c833f]:null;}_0xf55a5['plugins']['has']('ImageResize')&&(_0x2f2ce3['enableDefaultAttributesIntegration']('resizeImage'),_0x2f2ce3['registerBlockAttribute']('resizedWidth'),_0x2f2ce3['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0xb87c04,'FORMAT_IMAGE_SIZE'))),_0xf55a5['plugins']['has']('ImageTextAlternativeEditing')&&(_0x2f2ce3['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x2f2ce3['registerBlockAttribute']('alt')),_0xf55a5['plugins']['has']('PictureEditing')&&(_0x2f2ce3['registerBlockAttribute']('sources'),_0x2f2ce3['descriptionFactory']['registerDescriptionCallback'](_0xf4ce9c=>{if('attribute'!=_0xf4ce9c['type'])return;const {data:_0x1e64ac}=_0xf4ce9c;return _0x1e64ac&&'sources'==_0x1e64ac['key']?{'type':'format','content':''}:void 0x0;})),_0xf55a5['plugins']['has']('ImageSizeAttributes')&&(_0x2f2ce3['registerBlockAttribute']('width'),_0x2f2ce3['registerBlockAttribute']('height'),_0x2f2ce3['descriptionFactory']['registerDescriptionCallback'](_0x85b3e5=>{if('attribute'!=_0x85b3e5['type'])return;const {data:_0x2fd73c}=_0x85b3e5;return!_0x2fd73c||'width'!=_0x2fd73c['key']&&'height'!=_0x2fd73c['key']?void 0x0:{'type':'format','content':''};})),_0x2f2ce3['descriptionFactory']['registerDescriptionCallback'](_0xa6be69=>{if(!!_0x1c5d7e['find'](({type:_0x92d26a,subType:_0x55cec2})=>_0xa6be69['type']==_0x92d26a&&_0xa6be69['subType']==_0x55cec2))return _0xa6be69['previous']?{}:void 0x0;}),_0x2f2ce3['descriptionFactory']['registerDescriptionCallback'](_0x317e6e=>{if('insertion'==_0x317e6e['type']||'deletion'==_0x317e6e['type']){const _0x56962a=_0x317e6e['getContainedElement']();if(_0x56962a&&_0x56962a['is']('element','caption'))return{'type':'insertion'==_0x317e6e['type']?'addObject':'removeObject','element':_0x56962a,'quantity':0x1};}}),_0x2f2ce3['descriptionFactory']['registerDescriptionCallback'](_0x45b318=>'formatBlock'==_0x45b318['type']&&'convertInlineImageToBlock'==_0x45b318['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x45b318['type']&&'convertBlockImageToInline'==_0x45b318['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x2f2ce3['descriptionFactory']['registerDescriptionCallback'](_0x440b7e=>{if('attribute'!=_0x440b7e['type'])return;const {data:_0x4906b0}=_0x440b7e;if(!_0x4906b0||'alt'!=_0x4906b0['key'])return;const _0xc6e537=_0x4906b0['newValue'];return _0xc6e537?{'type':'format','content':c(_0xb87c04,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xc6e537+'\x22')}:{'type':'format','content':c(_0xb87c04,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x19cc7b=this['editor'],_0x443644=_0x19cc7b['locale'];_0x19cc7b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1c9503=>{if('formatBlock'!=_0x1c9503['type']&&'formatInline'!=_0x1c9503['type'])return;const {data:_0x393479}=_0x1c9503;if(_0x393479){if('imageTextAlternative'==_0x393479['commandName']){const _0xb1a486=_0x393479['commandParams'][0x0]['newValue'];return _0xb1a486?{'type':'format','content':c(_0x443644,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xb1a486+'\x22')}:{'type':'format','content':c(_0x443644,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x393479['commandName']){const _0x3ef1ad=_0x393479['commandParams'][0x0]['width'];return _0x3ef1ad?{'type':'format','content':c(_0x443644,'*Set\x20image\x20width:*\x20%0',_0x3ef1ad)}:{'type':'format','content':c(_0x443644,'*Reset\x20image\x20width*')};}}});}}class at extends _0x11ea7f{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x4ba206=this['editor']['locale'],_0x3ca18f=this['editor']['plugins']['get']('TrackChangesEditing');_0x3ca18f['enableDefaultAttributesIntegration']('replaceImageSource'),_0x3ca18f['registerBlockAttribute']('src'),_0x3ca18f['descriptionFactory']['registerDescriptionCallback'](_0x2bd729=>{if('attribute'!=_0x2bd729['type'])return;const {data:_0x46151a}=_0x2bd729;return _0x46151a&&'src'==_0x46151a['key']?_0x46151a['newValue']&&_0x46151a['oldValue']?{'type':'format','content':c(_0x4ba206,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x372a22=this['editor']['plugins']['get']('TrackChangesEditing');_0x372a22['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x372a22['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x372a22['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x372a22['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d5d71=this['editor'],_0x68229d=_0x5d5d71['locale'];_0x5d5d71['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ef0f4=>{if('formatBlock'!=_0x2ef0f4['type']&&'formatInline'!=_0x2ef0f4['type'])return;const {data:_0x23edbd}=_0x2ef0f4;if(!_0x23edbd||'replaceImageSource'!=_0x23edbd['commandName'])return;return{'type':'format','content':c(_0x68229d,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x11ea7f{['afterInit'](){const _0x2a5ee9=this['editor'];if(!_0x2a5ee9['plugins']['has']('ImageStyleEditing'))return;const _0x108efe=_0x2a5ee9['plugins']['get']('TrackChangesEditing'),_0x36517e=_0x2a5ee9['plugins']['get']('ImageUtils'),_0x6e18a7={};_0x108efe['enableCommand']('imageStyle',(_0x38180a,_0x3de9ee)=>{const _0x26e905=_0x2a5ee9['plugins']['get']('Users')['me'],_0x2ed83c=_0x2a5ee9['commands']['get']('imageStyle');let _0x378386=_0x36517e['getClosestSelectedImageElement'](_0x2a5ee9['model']['document']['selection']),_0x1c1aeb=_0x2a5ee9['model']['createRangeOn'](_0x378386),_0x202ec8=_0x2ed83c['value'];if(_0x202ec8==_0x3de9ee['value'])return;const _0x80bb8e={'commandName':'imageStyle','commandParams':[_0x3de9ee],'formatGroupId':_0x12ee37()};_0x2a5ee9['model']['change'](()=>{if(_0x108efe['getSuggestions']()['filter'](_0x3b4539=>_0x3b4539['isInContent']&&_0x26e905==_0x3b4539['author']&&('formatBlock'==_0x3b4539['type']||'formatInline'==_0x3b4539['type'])&&('imageStylePreApply'==_0x3b4539['subType']||'imageStylePostApply'==_0x3b4539['subType'])&&_0x3b4539['getFirstRange']()['isEqual'](_0x1c1aeb))['forEach'](_0x320249=>_0x108efe['discardSuggestion'](_0x320249['head'])),_0x378386=_0x36517e['getClosestSelectedImageElement'](_0x2a5ee9['model']['document']['selection']),_0x1c1aeb=_0x2a5ee9['model']['createRangeOn'](_0x378386),_0x2ed83c['refresh'](),_0x2a5ee9['commands']['get']('imageTypeInline')['refresh'](),_0x2a5ee9['commands']['get']('imageTypeBlock')['refresh'](),_0x202ec8=_0x2ed83c['value'],_0x202ec8!=_0x3de9ee['value'])return _0x36517e['isInlineImage'](_0x378386)&&_0x2ed83c['shouldConvertImageType'](_0x3de9ee['value'],_0x378386)?(_0x38180a({..._0x3de9ee,'setImageSizes':!0x1}),_0x378386=_0x36517e['getClosestSelectedImageElement'](_0x2a5ee9['model']['document']['selection']),void _0x108efe['markBlockFormat'](_0x378386,{..._0x80bb8e,'commandReversedParams':[{'value':_0x202ec8||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x36517e['isBlockImage'](_0x378386)?_0x108efe['markBlockFormat'](_0x378386,_0x80bb8e,[],'imageStylePostApply'):_0x108efe['markInlineFormat'](_0x1c1aeb,_0x80bb8e,'imageStylePostApply'));});});for(const _0x43ca73 of _0x2a5ee9['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x6e18a7[_0x43ca73['name']]=_0x43ca73['title']['toLowerCase']();_0x108efe['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x108efe['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x108efe['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x108efe['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x405ca6])=>{_0x36517e['setImageNaturalSizeAttributes'](_0x405ca6['getContainedElement']());}),_0x108efe['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x16eb6d,_0x2e8e62)=>{_0x108efe['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x16eb6d,{'commandName':_0x2e8e62['commandName'],'commandParams':_0x2e8e62['commandReversedParams']});}),_0x108efe['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5b9273,_0x4f3583){if(_0x3ea8b8(_0x5b9273,_0x4f3583))return[_0x5b9273,_0x4f3583];if(_0x3ea8b8(_0x4f3583,_0x5b9273))return[_0x4f3583,_0x5b9273];return null;});const _0x26e558=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3ea8b8(_0x1a7d1a,_0x44c515){const _0x2013f4=_0x26e558['findIndex'](({type:_0x5a2a38,subType:_0x266c61})=>_0x1a7d1a['type']==_0x5a2a38&&_0x1a7d1a['subType']==_0x266c61),_0x517f43=_0x26e558['findIndex'](({type:_0x3bedf1,subType:_0x3747cf})=>_0x44c515['type']==_0x3bedf1&&_0x44c515['subType']==_0x3747cf);if(_0x2013f4<0x0||_0x517f43<0x0)return!0x1;const _0x41581c=_0x1a7d1a['getFirstRange'](),_0x397e35=_0x44c515['getFirstRange']();if((0x0==_0x2013f4||0x1==_0x2013f4)&&0x2==_0x517f43&&_0x41581c['isIntersecting'](_0x397e35))return!0x0;if(0x2==_0x2013f4&&0x3==_0x517f43){const _0x2b2d3e=_0x108efe['_findSuggestions'](_0x41581c,'insertion')['filter'](({suggestion:_0x380cbc,meta:_0x16fe58})=>_0x16fe58['isOwn']&&'convertInlineImageToBlock'==_0x380cbc['subType']);if(_0x2b2d3e['length']>0x1&&_0x397e35['end']['isEqual'](_0x41581c['start']))return!0x0;if(0x1==_0x2b2d3e['length']&&(_0x41581c['start']['isEqual'](_0x397e35['end'])||_0x41581c['end']['isEqual'](_0x397e35['start'])))return!0x0;}if(0x3==_0x2013f4&&0x3==_0x517f43&&_0x41581c['start']['isBefore'](_0x397e35['start'])){const _0x19e380=_0x41581c['end']['nodeAfter'],_0x3fcafd=_0x397e35['start']['nodeBefore'];return _0x36517e['isBlockImage'](_0x19e380)&&_0x19e380===_0x3fcafd;}return!0x1;}_0x2a5ee9['model']['document']['registerPostFixer'](()=>{let _0x52963f=!0x1;const _0x396ca3=Array['from'](_0x2a5ee9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2f827f,data:_0x28abf8}of _0x396ca3){const {group:_0x4a70b9,type:_0x51c4b0,subType:_0x285f91,id:_0x2c6efb}=_0x108efe['_splitMarkerName'](_0x2f827f);if('suggestion'==_0x4a70b9&&_0x108efe['hasSuggestion'](_0x2c6efb)){if('formatBlock'==_0x51c4b0&&('imageStylePreApply'==_0x285f91||'imageStylePostApply'==_0x285f91)){const _0x312dd3=_0x108efe['getSuggestion'](_0x2c6efb);if(_0x28abf8['newRange']){const _0x296709=_0x312dd3['getFirstRange']()['getContainedElement']();if(_0x36517e['isBlockImage'](_0x296709))continue;_0x108efe['discardSuggestion'](_0x312dd3),_0x52963f=!0x0;}}if('insertion'==_0x51c4b0&&'imageCaption'==_0x285f91&&!_0x28abf8['newRange']){const _0x475991=_0x108efe['getSuggestion'](_0x2c6efb);_0x475991['next']&&_0x475991['next']['isInContent']&&(_0x108efe['discardSuggestion'](_0x475991['next']),_0x52963f=!0x0);}}}return _0x52963f;}),this['_registerLegacyDescription'](_0x6e18a7);}['_registerLegacyDescription'](_0x3c2160){const _0x3fba56=this['editor'],_0x4b4b5c=_0x3fba56['locale'];_0x3fba56['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e5ce2=>{if('formatBlock'!=_0x3e5ce2['type']&&'formatInline'!=_0x3e5ce2['type'])return;const {data:_0x1a1f15}=_0x3e5ce2;if(!_0x1a1f15||'imageStyle'!=_0x1a1f15['commandName'])return;const _0x2607be=_0x1a1f15['commandParams'][0x0]['value'];return _0x5dc564('side'===_0x2607be?c(_0x4b4b5c,'FORMAT_SIDE_IMAGE'):_0x3c2160[_0x2607be]||_0x2607be);function _0x5dc564(_0x442841){return{'type':'format','content':c(_0x4b4b5c,'*Format:*\x20%0',_0x442841)};}});}}class ut extends _0x11ea7f{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x25efe8){super(_0x25efe8),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x2b64fa=this['editor'],_0x5b8f67=_0x2b64fa['commands']['get']('importWord'),_0x508958=_0x2b64fa['commands']['get']('trackChanges');_0x5b8f67&&(_0x5b8f67['on']('execute',(_0x2e9047,[,_0x1a6d47])=>{this['_trackChangesValueDuringImport']=_0x508958['value'],_0x1a6d47['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x5b8f67,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x5b8f67,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x508958['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x2b64fa['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x5be994,_0xf9f265){const {suggestions:_0x1261e2}=_0xf9f265,_0x160b8a=this['editor']['commands']['get']('trackChanges'),_0x2d34b6=_0x160b8a['value'];this['_trackChangesValueDuringImport']!==_0x2d34b6&&(_0x160b8a['execute'](),this['_trackChangesExecuted']=!0x0),_0x1261e2&&_0x1261e2['forEach'](({id:_0x2efa65,type:_0x35ff26,author:_0x1fd057,created_at:_0x5eeb78})=>{const _0x1307aa={'id':_0x2efa65,'type':_0x35ff26,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1fd057,'createdAt':_0x5eeb78?new Date(_0x5eeb78):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1307aa);});}}class ft extends _0x11ea7f{['afterInit'](){const _0x5664f1=this['editor'],_0x30c688=_0x5664f1['plugins']['get']('TrackChangesEditing');if(_0x5664f1['plugins']['has']('IndentEditing')&&(_0x30c688['enableCommand']('indent'),_0x30c688['enableCommand']('outdent')),_0x5664f1['plugins']['has']('IndentBlock')){for(const _0x14cad8 of['indentBlock','outdentBlock'])_0x30c688['enableDefaultAttributesIntegration'](_0x14cad8);}const _0x680512=_0x5664f1['locale'];_0x30c688['registerBlockAttribute']('blockIndent'),_0x30c688['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x680512,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x18de10=this['editor'],_0x3c54ea=_0x18de10['locale'],_0x22442e=_0x18de10['plugins']['get']('TrackChangesEditing');_0x22442e['descriptionFactory']['registerDescriptionCallback'](_0x19801e=>{if('formatBlock'!=_0x19801e['type'])return;const {data:_0xf0fb01}=_0x19801e;if(!_0xf0fb01)return;if('indentBlock'!=_0xf0fb01['commandName']&&'outdentBlock'!=_0xf0fb01['commandName'])return;const _0x2dbf54=_0x19801e['getItems']()[0x0],_0x3b9046=_0x22442e['descriptionFactory']['getItemLabel'](_0x2dbf54);return'indentBlock'==_0xf0fb01['commandName']?{'type':'format','content':c(_0x3c54ea,'*Indent:*\x20%0',_0x3b9046)}:'outdentBlock'==_0xf0fb01['commandName']?{'type':'format','content':c(_0x3c54ea,'*Outdent:*\x20%0',_0x3b9046)}:void 0x0;});}}class ht extends _0x11ea7f{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class gt extends _0x11ea7f{['afterInit'](){const _0x51141c=this['editor'];if(!_0x51141c['plugins']['has']('LinkEditing'))return;const _0x49a7ac=_0x51141c['plugins']['get']('TrackChangesEditing'),_0x1008e0=_0x51141c['commands']['get']('link');_0x49a7ac['enableDefaultAttributesIntegration']('link'),_0x49a7ac['enableDefaultAttributesIntegration']('unlink'),_0x49a7ac['registerInlineAttribute']('linkHref');for(const _0x50bf44 of _0x1008e0['manualDecorators'])_0x49a7ac['registerInlineAttribute'](_0x50bf44['id']),_0x49a7ac['descriptionFactory']['registerAttributeLabel'](_0x50bf44['id'],'link\x20('+_0x50bf44['label']['toLowerCase']()+')');_0x49a7ac['descriptionFactory']['registerDescriptionCallback'](_0x3ada8f=>{if('attribute'!=_0x3ada8f['type'])return;const {data:_0x45c013}=_0x3ada8f;if(!_0x45c013||'linkHref'!=_0x45c013['key'])return;const _0x2dfbb3=_0x45c013['newValue'],_0x2009f5=_0x51141c['locale'];return{'type':'format','content':null==_0x2dfbb3?c(_0x2009f5,'*Remove\x20link*'):c(_0x2009f5,'*Set\x20link:*\x20%0','\x22'+_0x2dfbb3+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a535e=this['editor'],_0x1d1365=_0x5a535e['locale'];_0x5a535e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c8615=>{if('formatInline'!=_0x5c8615['type'])return;const {data:_0x1c6d13}=_0x5c8615;if(_0x1c6d13){if('link'==_0x1c6d13['commandName']){const _0x33948f=_0x1c6d13['commandParams'][0x0];return{'type':'format','content':c(_0x1d1365,'*Set\x20link:*\x20%0','\x22'+_0x33948f+'\x22')};}return'unlink'==_0x1c6d13['commandName']?{'type':'format','content':c(_0x1d1365,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x11ea7f{['afterInit'](){const _0x58fcac=this['editor'],_0x5d0b9a=_0x58fcac['locale'];if(!_0x58fcac['plugins']['has']('LegacyListEditing'))return;const _0x240b0f=_0x58fcac['plugins']['get']('TrackChangesEditing'),_0x40208e=_0x58fcac['plugins']['has']('LegacyTodoListEditing');function _0x1b7db8(_0x17a48f){return()=>{const _0x5852d8=_0x58fcac['model']['document']['selection'],_0x5b66e5=_0x58fcac['commands']['get'](_0x17a48f);if(_0x5b66e5['value'])return void _0x58fcac['execute']('paragraph',{});const _0x3da584=_0x17a48f['slice'](0x0,-0x4),_0x19f990=function(_0x4b3a3c,_0xa22ef8,_0x5e74e7){let _0x4a10cd=Array['from'](_0x4b3a3c)['filter'](_0x47432e=>function(_0xa70d50,_0x10fcfd){return _0x10fcfd['checkChild'](_0xa70d50['parent'],'listItem')&&!_0x10fcfd['isObject'](_0xa70d50);}(_0x47432e,_0x5e74e7));_0x4a10cd=_0x4a10cd['filter'](_0x67caf4=>!_0x67caf4['is']('element','listItem')||_0x67caf4['getAttribute']('listType')!=_0xa22ef8);const _0x31e73b=new Set();for(const _0xa06357 of _0x4a10cd)_0xa06357['is']('element','listItem')?_0x31e73b['add'](Le(_0xa06357)):_0x31e73b['add'](_0xa06357);return Array['from'](_0x31e73b);}(_0x5852d8['getSelectedBlocks'](),_0x3da584,_0x58fcac['model']['schema']);_0x58fcac['model']['change'](()=>{for(const _0x5558df of _0x19f990)_0x240b0f['markBlockFormat'](_0x5558df,{'commandName':_0x17a48f,'commandParams':[{'forceValue':!_0x5b66e5['value']}],'formatGroupId':'blockName'},Ee(_0x5558df));});};}function _0x3f601f(_0x4e628c){return()=>{const _0x46d618=function(_0x399638){let _0x135f7a=Array['from'](_0x399638);const _0x44ce34=_0x135f7a['findIndex'](_0x4542d3=>'listItem'!=_0x4542d3['name']);return _0x44ce34>-0x1&&(_0x135f7a=_0x135f7a['slice'](0x0,_0x44ce34)),_0x135f7a;}(_0x58fcac['model']['document']['selection']['getSelectedBlocks']()),_0xe02905=_0x58fcac['model']['createRange'](_0x58fcac['model']['createPositionAt'](_0x46d618[0x0],'before'),_0x58fcac['model']['createPositionAt'](_0x46d618[_0x46d618['length']-0x1],'end'));_0x58fcac['model']['change'](()=>{_0x240b0f['markBlockFormat'](_0xe02905,{'commandName':_0x4e628c,'commandParams':[],'formatGroupId':'listIndent'},function(_0x237d34){const _0x2b3627=new Set();for(const _0x3daed9 of _0x237d34){let _0x5edda6=_0x3daed9['nextSibling'];for(;_0x5edda6&&_0x5edda6['getAttribute']('listIndent')>_0x3daed9['getAttribute']('listIndent');)_0x2b3627['add'](_0x5edda6),_0x5edda6=_0x5edda6['nextSibling'];}return Array['from'](_0x2b3627);}(_0x46d618));});};}_0x240b0f['enableCommand']('numberedList',_0x1b7db8('numberedList')),_0x240b0f['enableCommand']('bulletedList',_0x1b7db8('bulletedList')),_0x40208e&&_0x240b0f['enableCommand']('todoList',_0x1b7db8('todoList')),_0x240b0f['enableCommand']('indentList',_0x3f601f('indentList')),_0x240b0f['enableCommand']('outdentList',_0x3f601f('outdentList')),_0x40208e&&_0x240b0f['enableCommand']('checkTodoList',()=>{const _0x462710=_0x58fcac['commands']['get']('checkTodoList'),_0x9c6702=Array['from'](_0x462710['_selectedElements']);_0x9c6702['filter'](_0x34a9d5=>_0x34a9d5['getAttribute']('todoListChecked')!=_0x462710['value']),_0x58fcac['model']['change'](()=>{for(const _0x473013 of _0x9c6702)_0x240b0f['markBlockFormat'](_0x473013,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x462710['value']}]});});}),_0x240b0f['descriptionFactory']['registerElementLabel']('listItem',_0x237db4=>c(_0x5d0b9a,'ELEMENT_LIST_ITEM',_0x237db4)),_0x240b0f['descriptionFactory']['registerDescriptionCallback'](_0xfdfdd3=>{if('formatBlock'!=_0xfdfdd3['type']&&'formatInline'!=_0xfdfdd3['type'])return;const {data:_0x22e5a1}=_0xfdfdd3;if(_0x22e5a1){if('numberedList'==_0x22e5a1['commandName']||'bulletedList'==_0x22e5a1['commandName']||'todoList'==_0x22e5a1['commandName'])switch(_0x22e5a1['commandName']['replace']('List','')){case'bulleted':return _0x1d0883(c(_0x5d0b9a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1d0883(c(_0x5d0b9a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1d0883(c(_0x5d0b9a,'ELEMENT_TODO_LIST'));}if('indentList'==_0x22e5a1['commandName'])return{'type':'format','content':c(_0x5d0b9a,'*Indent:*\x20%0',c(_0x5d0b9a,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x22e5a1['commandName'])return{'type':'format','content':c(_0x5d0b9a,'*Outdent:*\x20%0',c(_0x5d0b9a,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x22e5a1['commandName'])return _0x22e5a1['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x5d0b9a,'*Check\x20item*')}:{'type':'format','content':c(_0x5d0b9a,'*Uncheck\x20item*')};}function _0x1d0883(_0x31ef1e){return{'type':'format','content':c(_0x5d0b9a,'*Change\x20to:*\x20%0',_0x31ef1e)};}});}}function Le(_0x23be5f){const _0x50177d=_0x23be5f['getAttribute']('listIndent');if(0x0==_0x50177d)return _0x23be5f;let _0x3f14ea=_0x23be5f;for(;_0x23be5f['previousSibling']&&_0x23be5f['previousSibling']['is']('element','listItem');){const _0x3ee536=_0x23be5f['previousSibling']['getAttribute']('listIndent');if(_0x3ee536==_0x50177d)_0x3f14ea=_0x23be5f['previousSibling'];else{if(_0x3ee536<_0x50177d)break;}_0x23be5f=_0x23be5f['previousSibling'];}return _0x3f14ea;}function Ee(_0x6e9df7){const _0x227a69=[];if(_0x6e9df7['is']('element','listItem')&&_0x6e9df7['getAttribute']('listIndent')>0x0){let _0x5558bb=_0x6e9df7['nextSibling'];for(;_0x5558bb&&'listItem'==_0x5558bb['name']&&_0x5558bb['getAttribute']('listIndent')==_0x6e9df7['getAttribute']('listIndent');)_0x227a69['push'](_0x5558bb),_0x5558bb=_0x5558bb['nextSibling'];}return _0x227a69;}class Q extends _0x11ea7f{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x197c0d=this['editor']['config']['get']('list.properties'),_0x2553af=this['editor']['plugins']['get']('TrackChangesEditing');_0x197c0d['styles']&&_0x2553af['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x197c0d['reversed']&&_0x2553af['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x197c0d['startIndex']&&_0x2553af['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x2553af['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x3b3a41,_0x439c25={}){const _0xf8f0a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4e8b1a=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0xf8f0a['markMultiRangeBlockFormat'](_0x4e8b1a,{'commandName':'listStyle','commandParams':[{'type':_0x439c25['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x40df91,_0x1398ef={}){const _0x4be023=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2fdb56=this['_getSuggestionBlocks'](_0x286801=>_0x286801['is']('element','listItem')&&'numbered'===_0x286801['getAttribute']('listType'));if(_0x2fdb56['length']<0x1)return;const _0x71f6a0=_0x2fdb56['map'](_0x4b4ae4=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4b4ae4,'before'),this['editor']['model']['createPositionAt'](_0x4b4ae4,0x0)));this['editor']['model']['change'](()=>{_0x4be023['markMultiRangeBlockFormat'](_0x71f6a0,{'commandName':'listReversed','commandParams':[{'reversed':_0x1398ef['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x579fd9,_0x5d6641={}){const _0x360ed8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x466bd0=this['_getSuggestionBlocks'](_0x5dc23b=>_0x5dc23b['is']('element','listItem')&&'numbered'===_0x5dc23b['getAttribute']('listType'));if(_0x466bd0['length']<0x1)return;const _0x14da97=_0x466bd0['map'](_0x400e8c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x400e8c,'before'),this['editor']['model']['createPositionAt'](_0x400e8c,0x0)));this['editor']['model']['change'](()=>{_0x360ed8['markMultiRangeBlockFormat'](_0x14da97,{'commandName':'listStart','commandParams':[{'startIndex':_0x5d6641['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x4507a8){if('formatBlock'!=_0x4507a8['type']&&'formatInline'!=_0x4507a8['type'])return;const _0x6bd375=this['editor']['locale'],{data:_0x4d369f}=_0x4507a8;if(!_0x4d369f)return;let _0x169f38,_0x297f78;switch(_0x4d369f['commandName']){case'listStyle':_0x169f38='*Change\x20to:*\x20%0',_0x297f78={'type':'format','content':c(_0x6bd375,_0x169f38,c(_0x6bd375,this['_getTranslationKeyForListStyle'](_0x4d369f['commandParams'][0x0]['type'])))};break;case'listReversed':_0x169f38=_0x4d369f['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x297f78={'type':'format','content':c(_0x6bd375,_0x169f38)};break;case'listStart':_0x169f38='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x297f78={'type':'format','content':c(_0x6bd375,_0x169f38,_0x4d369f['commandParams'][0x0]['startIndex'])};}return _0x297f78;}['_getSuggestionBlocksForListStyle'](){const _0x3cabcd=this['editor']['plugins']['get']('LegacyListUtils');let _0x358310=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x358310[0x0]?.['is']('element','listItem')&&_0x358310['unshift'](..._0x3cabcd['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x358310[_0x358310['length']-0x1]?.['is']('element','listItem')&&_0x358310['push'](..._0x3cabcd['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x358310=[...new Set(_0x358310)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x358310=_0x358310['filter'](_0x218dc8=>_0x218dc8['is']('element','listItem'))),_0x358310;}['_getSuggestionBlocks'](_0x51c915){const _0x35c3f9=this['editor']['plugins']['get']('LegacyListUtils');let _0x34d2e8=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x51c915)['map'](_0x31f254=>{const _0x386559=this['editor']['model']['createPositionAt'](_0x31f254,0x0);return[..._0x35c3f9['getSiblingNodes'](_0x386559,'backward'),..._0x35c3f9['getSiblingNodes'](_0x386559,'forward')];})['flat']();return _0x34d2e8=[...new Set(_0x34d2e8)],_0x34d2e8;}['_getTranslationKeyForListStyle'](_0x34378f){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x34378f)||'default')['toUpperCase']()+'_LIST_'+_0x34378f['toUpperCase']()['replace'](/-/g,'_');}}class mt extends _0x11ea7f{['afterInit'](){const _0xac8a17=this['editor'];if(!_0xac8a17['plugins']['has']('MediaEmbedEditing'))return;const _0x3ba106=_0xac8a17['plugins']['get']('TrackChangesEditing'),_0x3da6ee=_0xac8a17['locale'];_0x3ba106['enableCommand']('mediaEmbed'),_0x3ba106['descriptionFactory']['registerElementLabel']('media',_0x268aab=>c(_0x3da6ee,'ELEMENT_MEDIA',_0x268aab)),_0xac8a17['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x5a3632,{writer:_0x3dacdb,options:_0x30f28a})=>{if(_0x30f28a['showSuggestionHighlights'])return _0x3dacdb['createEmptyElement']('div');},'converterPriority':'high'}),_0xac8a17['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3dd702,_0x1d0bef,_0x36a5b1)=>{_0x36a5b1['options']['showSuggestionHighlights']&&_0x3dd702['stop']();},{'priority':'high'});}}class pt extends _0x11ea7f{['afterInit'](){const _0x225016=this['editor'];_0x225016['plugins']['has']('MentionEditing')&&_0x225016['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class kt extends _0x11ea7f{['afterInit'](){const _0x3c2fc6=this['editor'];if(!_0x3c2fc6['plugins']['has']('MergeFieldsEditing'))return;const _0x2a608b=_0x3c2fc6['plugins']['get']('TrackChangesEditing'),_0x231b75=_0x3c2fc6['locale'];_0x2a608b['enableCommand']('insertMergeField'),_0x2a608b['enableCommand']('insertMergeFieldBlock'),_0x2a608b['enableCommand']('insertMergeFieldImage'),_0x2a608b['descriptionFactory']['registerElementLabel']('mergeField',_0x3e1143=>c(_0x231b75,'ELEMENT_MERGE_FIELD',_0x3e1143)),_0x2a608b['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x1f9e60=>c(_0x231b75,'ELEMENT_MERGE_FIELD',_0x1f9e60)),_0x2a608b['descriptionFactory']['registerDescriptionCallback'](_0x5cf920=>{if('insertion'!=_0x5cf920['type']&&'deletion'!=_0x5cf920['type'])return;const _0x3fa0c7=_0x5cf920['getContainedElement']();if(null==_0x3fa0c7)return;const _0xcb62a4=_0x3c2fc6['plugins']['get']('MergeFieldsEditing');let _0x1dd6be;switch(_0xcb62a4['getMergeFieldType'](_0x3fa0c7)){case null:return;case'image':{const _0x114c45=_0xcb62a4['unwrapAffixes'](_0x3fa0c7['getAttribute']('src'));_0x1dd6be=_0xcb62a4['getLabel'](_0x114c45)||_0x114c45;break;}default:{const _0x40a961=_0x3fa0c7['getAttribute']('id');_0x1dd6be=_0xcb62a4['getLabel'](_0x40a961)||_0x40a961;break;}}return'insertion'==_0x5cf920['type']?{'type':'insertion','content':c(_0x231b75,'*Insert:*\x20%0','\x22'+_0x1dd6be+'\x22\x20'+c(_0x231b75,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x231b75,'*Remove:*\x20%0','\x22'+_0x1dd6be+'\x22\x20'+c(_0x231b75,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x11ea7f{['afterInit'](){const _0x18d4a6=this['editor'],_0x15fc7d=_0x18d4a6['plugins']['get']('TrackChangesEditing');_0x18d4a6['plugins']['has']('MultiLevelList')&&(_0x15fc7d['enableDefaultAttributesIntegration']('multiLevelList'),_0x15fc7d['registerBlockAttribute']('listMarkerStyle'),_0x15fc7d['descriptionFactory']['registerDescriptionCallback'](_0x6dfd1b=>this['handleDescriptions'](_0x6dfd1b)));}['handleDescriptions'](_0x4827d1){const _0xdb5448=this['editor']['locale'],{data:_0x11c1d4}=_0x4827d1,_0x2f121b={'type':'format','content':''};if(_0x11c1d4&&'listMarkerStyle'==_0x11c1d4['key']){if(!_0x11c1d4['oldValue'])return{'type':'format','content':c(_0xdb5448,'*Set\x20format:*\x20%0',c(_0xdb5448,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x11c1d4['newValue']+')'};if(!_0x11c1d4['newValue']){let _0x429540=_0x4827d1['head'];for(;_0x429540;){if(_0x429540['data']&&'listType'==_0x429540['data']['key']&&_0x429540['data']['newValue'])return _0x2f121b;_0x429540=_0x429540['next'];}return{'type':'format','content':c(_0xdb5448,'*Remove\x20format:*\x20%0',c(_0xdb5448,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x11c1d4['oldValue']+')'};}}}}class bt extends _0x11ea7f{['afterInit'](){const _0x42804e=this['editor'];if(!_0x42804e['plugins']['has']('PageBreakEditing'))return;_0x42804e['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3cebbb=_0x42804e['plugins']['get']('TrackChangesEditing'),_0x18ceed=_0x42804e['locale'];_0x3cebbb['descriptionFactory']['registerElementLabel']('pageBreak',_0x31cf16=>c(_0x18ceed,'ELEMENT_PAGE_BREAK',_0x31cf16));}}class yt extends _0x11ea7f{['afterInit'](){const _0x1b3137=this['editor'];if(!_0x1b3137['plugins']['has']('Paragraph'))return;const _0x259352=_0x1b3137['locale'],_0x3c276e=_0x1b3137['plugins']['get']('TrackChangesEditing');_0x3c276e['descriptionFactory']['registerElementLabel']('paragraph',_0x8cdbdf=>c(_0x259352,'ELEMENT_PARAGRAPH',_0x8cdbdf)),_0x3c276e['enableDefaultAttributesIntegration']('paragraph'),_0x3c276e['enableCommand']('insertParagraph'),_0x1b3137['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x1b3137),{'priority':'highest'}),_0x1b3137['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xc18875,_0x5856dc,_0x46e9b9)=>{_0x46e9b9['options']['showSuggestionHighlights']&&nr(_0x1b3137,{'showActiveMarker':!0x1})(_0xc18875,_0x5856dc,_0x46e9b9);},{'priority':'highest'});const _0x304e0=_0x3c276e['descriptionFactory'];_0x304e0['registerDescriptionCallback'](_0x4d02d9=>{if('insertion'!==_0x4d02d9['type'])return;const {start:_0xf26fa1,end:_0x21e3b9}=_0x4d02d9['getFirstRange']();if(!_0xf26fa1['isTouching'](_0x21e3b9)||!_0xf26fa1['nodeAfter'])return;const _0x52fb71=_0x1b3137['model']['schema'],_0x483926=_0xf26fa1['nodeAfter'];return _0x52fb71['isBlock'](_0x483926)&&!_0x52fb71['isLimit'](_0x483926)&&_0x52fb71['checkChild'](_0x483926,'$text')?{'type':'insertion','content':c(_0x259352,'*Insert:*\x20%0',_0x304e0['getItemLabel'](_0x483926,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x549783=this['editor'],_0xdb7ea7=_0x549783['locale'];_0x549783['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1925ed=>{if('formatBlock'!=_0x1925ed['type'])return;const {data:_0x427310}=_0x1925ed;return _0x427310&&'paragraph'==_0x427310['commandName']?{'type':'format','content':c(_0xdb7ea7,'*Change\x20to:*\x20%0',c(_0xdb7ea7,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x333433,{showActiveMarker:_0x49468b=!0x0}={}){return(_0x429b55,_0x3076c7,_0x274d34)=>{const _0x349ae6=_0x333433['plugins']['get']('TrackChangesEditing'),_0x5899f5=_0x3076c7['markerRange']['start'],_0x4a042f=_0x3076c7['markerRange']['end'],_0x6eb75=_0x333433['model']['schema'];if(!_0x5899f5['isTouching'](_0x4a042f)||!_0x5899f5['nodeAfter'])return;const _0x58dac6=_0x5899f5['nodeAfter'];if(_0x6eb75['isBlock'](_0x58dac6)&&!_0x6eb75['isLimit'](_0x58dac6)&&_0x6eb75['checkChild'](_0x58dac6,'$text')){if(!_0x274d34['consumable']['consume'](_0x3076c7['markerRange'],_0x429b55['name']))return;const {id:_0x3c503e,authorId:_0x3e7a41}=_0x349ae6['_splitMarkerName'](_0x3076c7['markerName']),_0x31c74a=_0x274d34['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x3c503e,'data-author-id':_0x3e7a41}),_0x1af0e7=_0x274d34['mapper']['toViewPosition'](_0x4a042f);_0x49468b&&_0x349ae6['activeMarkers']['includes'](_0x3076c7['markerName'])&&_0x274d34['writer']['addClass']('ck-suggestion-marker--active',_0x31c74a),_0x274d34['writer']['insert'](_0x1af0e7,_0x31c74a),_0x274d34['mapper']['bindElementToMarker'](_0x31c74a,_0x3076c7['markerName']);}};}class St extends _0x11ea7f{['afterInit'](){const _0xb4d035=this['editor'];_0xb4d035['commands']['get']('replaceSource')&&_0xb4d035['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class jt extends _0x11ea7f{['afterInit'](){const _0x484a12=this['editor'];if(!_0x484a12['plugins']['has']('RemoveFormatEditing'))return;_0x484a12['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ae033=this['editor'];_0x4ae033['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x321efd=>{if('formatBlock'!=_0x321efd['type']&&'formatInline'!=_0x321efd['type'])return;const {data:_0x170072}=_0x321efd;return _0x170072&&'removeFormat'==_0x170072['commandName']?{'type':'format','content':c(_0x4ae033['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x11ea7f{['afterInit'](){const _0x32a584=this['editor'];if(!_0x32a584['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x321e07=_0x32a584['plugins']['get']('TrackChangesEditing');_0x321e07['enableCommand']('goToPreviousRestrictedEditingException'),_0x321e07['enableCommand']('goToNextRestrictedEditingException');const _0x516990=_0x32a584['plugins']['get']('RestrictedEditingModeEditing');_0x516990['enableCommand']('trackChanges'),_0x516990['enableCommand']('acceptSuggestion'),_0x516990['enableCommand']('discardSuggestion'),_0x516990['enableCommand']('acceptAllSuggestions'),_0x516990['enableCommand']('discardAllSuggestions'),_0x516990['enableCommand']('acceptSelectedSuggestions'),_0x516990['enableCommand']('discardSelectedSuggestions');}}class At extends _0x11ea7f{['afterInit'](){const _0x1d7c3b=this['editor'];if(!_0x1d7c3b['plugins']['has']('ShiftEnter'))return;const _0xb72cbf=_0x1d7c3b['plugins']['get']('TrackChangesEditing');_0xb72cbf['enableCommand']('shiftEnter'),_0x1d7c3b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x1d7c3b),{'priority':'high'}),_0x1d7c3b['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x1d7c3b),{'priority':'high'}),_0x1d7c3b['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x54a8dc,_0x85b27d,_0x5c29b2)=>{_0x5c29b2['options']['showSuggestionHighlights']&&je(_0x1d7c3b,{'showActiveMarker':!0x1})(_0x54a8dc,_0x85b27d,_0x5c29b2);}),_0xb72cbf['descriptionFactory']['registerElementLabel']('softBreak',_0x3d370a=>c(_0x1d7c3b['locale'],'ELEMENT_LINE_BREAK',_0x3d370a));}}function je(_0x4cca5a,{showActiveMarker:_0x3f4678=!0x0}={}){return(_0x50db50,_0x4c39f8,_0xc19a39)=>{const _0x5841f7=_0x4cca5a['plugins']['get']('TrackChangesEditing');if(!_0xc19a39['consumable']['test'](_0x4c39f8['markerRange'],_0x50db50['name']))return;const _0xa0db9=_0x4cca5a['model'];for(const _0x3d56bd of _0x4c39f8['markerRange']['getItems']()){if(!_0x3d56bd['is']('element','softBreak'))continue;const _0x6664dc='deletion'==_0x4c39f8['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x59cfba,authorId:_0xd010f0}=_0x5841f7['_splitMarkerName'](_0x4c39f8['markerName']),_0x53aff7=_0xc19a39['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x6664dc,'data-suggestion':_0x59cfba,'data-author-id':_0xd010f0}),_0x21fad6=_0xc19a39['mapper']['toViewPosition'](_0xa0db9['createPositionBefore'](_0x3d56bd));_0x3f4678&&_0x5841f7['activeMarkers']['includes'](_0x4c39f8['markerName'])&&_0xc19a39['writer']['addClass']('ck-suggestion-marker--active',_0x53aff7),_0xc19a39['writer']['insert'](_0x21fad6,_0x53aff7),_0xc19a39['mapper']['bindElementToMarker'](_0x53aff7,_0x4c39f8['markerName']);}};}class _t extends _0x11ea7f{['afterInit'](){const _0x5839c6=this['editor'],_0x252dca=_0x5839c6['model'],_0xd1d59a=_0x5839c6['locale'];if(!_0x5839c6['plugins']['has']('StandardEditingModeEditing'))return;const _0x260f3f=_0x5839c6['plugins']['get']('TrackChangesEditing'),_0x4cc4bd='restrictedEditingException',_0x4bbbbf=_0x5839c6['commands']['get'](_0x4cc4bd);_0x260f3f['enableCommand'](_0x4cc4bd,(_0xab85e1,_0xb26ee2={})=>{const _0x34999e=_0x252dca['document']['selection'];if(_0x34999e['isCollapsed'])return void _0xab85e1(_0xb26ee2);const _0x56e3f8=void 0x0!==_0xb26ee2['forceValue']?_0xb26ee2['forceValue']:!_0x4bbbbf['value'];_0x252dca['change'](()=>{const _0x2047f6=Array['from'](_0x34999e['getRanges']());for(const _0x5d2f63 of _0x2047f6){const _0x1490dc=_0x56e3f8?[_0x5d2f63]:io(_0x4cc4bd,_0x5d2f63,_0x252dca);for(const _0x1fa435 of _0x1490dc)_0x260f3f['markInlineFormat'](_0x1fa435,{'commandName':_0x4cc4bd,'commandParams':[{'forceValue':_0x56e3f8}]});}});}),_0x260f3f['descriptionFactory']['registerDescriptionCallback'](_0x345e0b=>{if('formatBlock'!=_0x345e0b['type']&&'formatInline'!=_0x345e0b['type'])return;const {data:_0x50a485}=_0x345e0b;return _0x50a485&&_0x50a485['commandName']==_0x4cc4bd?_0x50a485['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0xd1d59a,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0xd1d59a,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x11ea7f{['afterInit'](){const _0x569873=this['editor'];if(!_0x569873['plugins']['has']('Style')||!_0x569873['plugins']['has']('DataSchema'))return;const _0x2b9327=_0x569873['plugins']['get']('TrackChangesEditing'),_0x16f435=_0x569873['locale'],_0x26eac4=_0x569873['config']['get']('style')||{},_0x17a881=_0x569873['plugins']['get']('GeneralHtmlSupport'),_0x3d9f59=_0x569873['plugins']['get']('StyleUtils')['normalizeConfig'](_0x569873['plugins']['get']('DataSchema'),_0x26eac4['definitions']);_0x2b9327['enableDefaultAttributesIntegration']('style');const _0x3fa994=new Set();for(const _0x4ae774 of _0x3d9f59['block']){const _0x729aca=_0x17a881['getGhsAttributeNameForElement'](_0x4ae774['element']);_0x3fa994['add'](_0x729aca);}const _0x595e30=new Set();for(const _0x1aba5d of _0x3d9f59['inline']){const _0x26838b=_0x17a881['getGhsAttributeNameForElement'](_0x1aba5d['element']);_0x595e30['add'](_0x26838b);for(const _0x519102 of _0x1aba5d['ghsAttributes'])_0x595e30['add'](_0x519102);}for(const _0x8d2ef of _0x3fa994)_0x2b9327['registerBlockAttribute'](_0x8d2ef),_0x2b9327['descriptionFactory']['registerAttributeLabel'](_0x8d2ef,c(_0x16f435,'FORMAT_STYLE'));for(const _0x1201db of _0x595e30)_0x2b9327['registerInlineAttribute'](_0x1201db),_0x2b9327['descriptionFactory']['registerAttributeLabel'](_0x1201db,c(_0x16f435,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x383ac5=this['editor'],_0x466390=_0x383ac5['locale'];_0x383ac5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13a29c=>{if('formatBlock'!=_0x13a29c['type']&&'formatInline'!=_0x13a29c['type'])return;const {data:_0x24ee61}=_0x13a29c;return _0x24ee61&&'style'===_0x24ee61['commandName']?_0x24ee61['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x466390,'*Set\x20format:*\x20%0',_0x24ee61['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x466390,'*Remove\x20format:*\x20%0',_0x24ee61['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x11ea7f{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x16f027){super(_0x16f027),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x32d315=this['editor'],_0x26b9a2=_0x32d315['model']['document']['selection'];if(!_0x32d315['plugins']['has']('TableEditing'))return;const _0x539c10=_0x32d315['locale'],_0x19a292=_0x32d315['plugins']['get']('TrackChangesEditing'),_0x5dffbf=_0x32d315['plugins']['get']('TableUtils');_0x19a292['descriptionFactory']['registerElementLabel']('table',_0x317ef2=>c(_0x539c10,'ELEMENT_TABLE',_0x317ef2)),this['_setupColumnsRowsFixing'](),_0x19a292['enableCommand']('insertTable'),_0x19a292['enableCommand']('selectTableRow'),_0x19a292['enableCommand']('selectTableColumn');for(const _0x1ca67a of['insertTableRowAbove','insertTableRowBelow']){const _0x3a2e27=_0x32d315['commands']['get'](_0x1ca67a);_0x19a292['enableCommand'](_0x1ca67a,_0x423c78=>{_0x32d315['model']['change'](_0x3ca5ca=>{_0x423c78();const _0xd0c01a='above'===_0x3a2e27['order'],_0x4e13ae=_0x5dffbf['getSelectionAffectedTableCells'](_0x26b9a2),_0x32e891=_0x5dffbf['getRowIndexes'](_0x4e13ae),_0x1b8c8d=_0xd0c01a?_0x32e891['first']-0x1:_0x32e891['last']+0x1,_0x1d4b0e=_0x4e13ae[0x0]['findAncestor']('table'),_0x8e4e5=_0x5dffbf['createTableWalker'](_0x1d4b0e,{'startRow':_0x1b8c8d,'endRow':_0x1b8c8d}),_0x1badea=Array['from'](_0x8e4e5)['map'](_0x5e00bb=>_0x3ca5ca['createRangeOn'](_0x5e00bb['cell']));_0x19a292['markMultiRangeInsertion'](_0x1badea,'tableRow');});});}for(const _0x5af938 of['insertTableColumnLeft','insertTableColumnRight']){const _0x29961e=_0x32d315['commands']['get'](_0x5af938);_0x19a292['enableCommand'](_0x5af938,_0x3b0734=>{_0x32d315['model']['change'](_0x24e659=>{_0x3b0734();const _0x323a53='left'===_0x29961e['order'],_0x748e96=_0x5dffbf['getSelectionAffectedTableCells'](_0x26b9a2),_0xac200c=_0x5dffbf['getColumnIndexes'](_0x748e96),_0x103196=_0x323a53?_0xac200c['first']-0x1:_0xac200c['last']+0x1,_0x4aefd7=_0x748e96[0x0]['findAncestor']('table'),_0x574b5b=_0x5dffbf['createTableWalker'](_0x4aefd7,{'startRow':0x0,'column':_0x103196,'includeAllSlots':!0x1}),_0xcabc89=Array['from'](_0x574b5b)['map'](_0x599a63=>_0x24e659['createRangeOn'](_0x599a63['cell']));_0x19a292['markMultiRangeInsertion'](_0xcabc89,'tableColumn');});});}for(const _0x272960 of['removeTableRow','removeTableColumn']){const _0x19c523=_0x272960['substr'](0xb),_0x5513aa=_0x19c523['toLowerCase'](),_0x2bf58b=_0x5513aa['substr'](0x0,0x3)+'span',_0x5699b0='table'+_0x19c523,_0x2254f0='min'+_0x19c523,_0x2a7746='max'+_0x19c523;_0x19a292['enableCommand'](_0x272960,()=>{_0x32d315['model']['change'](_0x424a70=>{const _0x33bc53=_0x5dffbf['getSelectionAffectedTableCells'](_0x26b9a2),_0x4a3a28=_0x33bc53[0x0]['findAncestor']('table');let _0x4c8478;if('removeTableRow'==_0x272960){const _0x518936=_0x5dffbf['getRowIndexes'](_0x33bc53);_0x4c8478={'startRow':_0x518936['first'],'endRow':_0x518936['last'],'includeAllSlots':!0x0};}else{const _0x50d2d0=_0x5dffbf['getColumnIndexes'](_0x33bc53);_0x4c8478={'startColumn':_0x50d2d0['first'],'endColumn':_0x50d2d0['last'],'includeAllSlots':!0x0};}const _0x2ee648=_0x5dffbf['createTableWalker'](_0x4a3a28,_0x4c8478),_0x55496e=Array['from'](_0x2ee648)['map'](({cell:_0x55c57d})=>_0x55c57d),_0x2acb42=xe(_0x55496e['filter'](_0x4a17c8=>_0x4a17c8['hasAttribute'](_0x2bf58b))),_0x1c27a8=xe(_0x55496e['filter'](_0x2ad321=>!_0x2ad321['hasAttribute'](_0x2bf58b)))['map'](_0x471c85=>_0x424a70['createRangeOn'](_0x471c85)),_0x27ba68=_0x19a292['markMultiRangeDeletion'](_0x1c27a8,_0x5699b0);if(_0x27ba68&&('tableRow'==_0x27ba68['subType']||'tableColumn'==_0x27ba68['subType'])){const _0x250289=this['_getSuggestionCoords'](_0x27ba68);for(const _0x5836e0 of _0x2acb42){const _0x52ec00=_0x424a70['createRangeOn'](_0x5836e0),_0xe3a269=_0x5dffbf['getCellLocation'](_0x5836e0),_0x5792dd=_0x5836e0['getAttribute'](_0x2bf58b)-0x1,_0x15e5ef=_0x250289[_0x2254f0],_0x1006e5=_0x250289[_0x2a7746];_0x15e5ef<=_0xe3a269[_0x5513aa]&&_0xe3a269[_0x5513aa]+_0x5792dd<=_0x1006e5&&_0x27ba68['addRange'](_0x52ec00);}}});});}function _0x3435c0(_0x397cdc){const _0x22cf31=Array['from'](_0x26b9a2['getRanges']())['map'](_0x418f86=>_0x53edc8['fromRange'](_0x418f86));_0x32d315['model']['change'](_0x532703=>{const _0x42fc23=_0x532703['batch'];_0x397cdc=_0x397cdc['filter'](_0x44a9f6=>'$graveyard'!=_0x44a9f6['root']['rootName']),_0x532703['setSelection'](_0x397cdc),_0x32d315['commands']['get']('removeTableRow')['refresh'](),_0x32d315['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x32d315['model']['enqueueChange'](()=>{_0x32d315['model']['enqueueChange'](_0x42fc23,_0x10f84e=>{const _0x1da987=_0x22cf31['filter'](_0x4cf7fa=>'$graveyard'!=_0x4cf7fa['root']['rootName']);_0x1da987['length']>0x0&&_0x10f84e['setSelection'](_0x1da987);for(const _0x44440c of _0x22cf31)_0x44440c['detach']();});});});}function _0x25dbfc(_0x416b57){_0x32d315['model']['change'](_0x24a14e=>{const _0x3de626=Array['from'](_0x26b9a2['getRanges']())['map'](_0x3db02f=>_0x53edc8['fromRange'](_0x3db02f)),_0xd808b5=[];for(const _0x5da7bf of _0x416b57)for(const _0x3a12fa of _0x5da7bf['getItems']({'shallow':!0x0}))_0xd808b5['push'](_0x3a12fa);for(const _0x27b42c of _0xd808b5)'$graveyard'!=_0x27b42c['root']['rootName']&&(_0x24a14e['setSelection'](_0x24a14e['createPositionAt'](_0x27b42c,0x0)),_0x32d315['commands']['get']('removeTableColumn')['refresh'](),_0x32d315['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x717979=_0x3de626['filter'](_0x109dee=>'$graveyard'!=_0x109dee['root']['rootName']);_0x717979['length']>0x0&&_0x24a14e['setSelection'](_0x717979);for(const _0x1adf29 of _0x3de626)_0x1adf29['detach']();});}function _0x4e29e7(_0x5c8fe6,_0x93992d){return _0x93992d['every'](_0x5cbaa6=>_0x5c8fe6['some'](_0x1c6986=>_0x1c6986['end']['isEqual'](_0x5cbaa6['start'])||_0x5cbaa6['end']['isEqual'](_0x1c6986['start'])));}function _0x49a266(_0x459a03,_0x52e2a2){return!_0x459a03['some'](_0x53cf3b=>_0x52e2a2['some'](_0x4b728c=>_0x53cf3b['isIntersecting'](_0x4b728c)))&&_0x459a03['some'](_0x3ad67e=>_0x52e2a2['some'](_0x1fba5b=>_0x3ad67e['end']['isTouching'](_0x1fba5b['start'])));}_0x32d315['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3d0d46,_0x24d84d,_0x313fe4)=>{if(!_0x313fe4['options']['showSuggestionHighlights'])return;const _0x223140=_0x24d84d['item'];if(!_0x223140||!_0x223140['is']('element','tableCell'))return;const _0x39bfd4=_0x313fe4['mapper']['toViewElement'](_0x223140);if(_0x39bfd4){const {id:_0x1bbb2b,authorId:_0xaacbd}=_0x19a292['_splitMarkerName'](_0x24d84d['markerName']);_0x9867d8(_0x39bfd4,_0x313fe4['writer'],(_0x43a9e5,_0x1b3821,_0x1ce5ab)=>{_0x1ce5ab['addClass'](_0x388c61(_0x1b3821['classes']),_0x43a9e5),_0x1ce5ab['setAttribute']('data-suggestion-id',_0x1bbb2b,_0x43a9e5),_0x1ce5ab['setAttribute']('data-author-id',_0xaacbd,_0x43a9e5);},(_0x4378e5,_0x3fcf91,_0x59b75b)=>{_0x59b75b['removeClass'](_0x388c61(_0x3fcf91['classes']),_0x4378e5),_0x59b75b['removeAttribute']('data-suggestion-id',_0x4378e5),_0x59b75b['removeAttribute']('data-author-id',_0x4378e5);});}},{'priority':'highest'}),_0x19a292['descriptionFactory']['registerDescriptionCallback'](_0x331956=>{if('insertion'!=_0x331956['type']&&'deletion'!=_0x331956['type'])return;const _0x267a62=_0x331956['getContainedElement']();if(null!=_0x267a62&&_0x267a62['is']('element','table')){if('insertion'==_0x331956['type']){const _0x5afd73=_0x331956['getItems']()['filter'](_0xa19fd9=>_0xa19fd9['is']('$textProxy'))['map'](_0x3a4c6a=>_0x3a4c6a['data']);if(_0x5afd73['length'])return{'type':'insertion','content':c(_0x539c10,'*Insert:*\x20%0',c(_0x539c10,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5afd73['join']('\x20')+'\x22'))};}if('deletion'==_0x331956['type']){const _0x39aa08=_0x331956['getItems']()['filter'](_0x3d3dea=>_0x3d3dea['is']('$textProxy'))['map'](_0x483b11=>_0x483b11['data']);if(_0x39aa08['length'])return{'type':'deletion','content':c(_0x539c10,'*Remove:*\x20%0',c(_0x539c10,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x39aa08['join']('\x20')+'\x22'))};}}}),_0x19a292['descriptionFactory']['registerDescriptionCallback'](_0x5d48fe=>{if('tableRow'==_0x5d48fe['subType']){const _0x25445b=_0x5d48fe['getItems']()['filter'](_0x4500f8=>_0x4500f8['is']('$textProxy'))['map'](_0xe51178=>_0xe51178['data']),_0x55c9fa=this['_getSuggestionCoords'](_0x5d48fe),_0x4077d2=_0x55c9fa['maxRow']-_0x55c9fa['minRow']+0x1;if('insertion'==_0x5d48fe['type'])return _0x25445b['length']?{'type':'insertion','content':c(_0x539c10,'*Insert:*\x20%0',c(_0x539c10,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4077d2,'\x22'+_0x25445b['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x539c10,'*Insert:*\x20%0',c(_0x539c10,'ELEMENT_TABLE_ROW',_0x4077d2))};if('deletion'==_0x5d48fe['type'])return _0x25445b['length']?{'type':'deletion','content':c(_0x539c10,'*Remove:*\x20%0',c(_0x539c10,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4077d2,'\x22'+_0x25445b['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x539c10,'*Remove:*\x20%0',c(_0x539c10,'ELEMENT_TABLE_ROW',_0x4077d2))};}if('tableColumn'==_0x5d48fe['subType']){const _0x1a5f29=_0x5d48fe['getItems']()['filter'](_0x1ff1db=>_0x1ff1db['is']('$textProxy'))['map'](_0x122e84=>_0x122e84['data']),_0x332ec3=this['_getSuggestionCoords'](_0x5d48fe),_0xf465e2=_0x332ec3['maxColumn']-_0x332ec3['minColumn']+0x1;if('insertion'==_0x5d48fe['type'])return _0x1a5f29['length']?{'type':'insertion','content':c(_0x539c10,'*Insert:*\x20%0',c(_0x539c10,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xf465e2,'\x22'+_0x1a5f29['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x539c10,'*Insert:*\x20%0',c(_0x539c10,'ELEMENT_TABLE_COLUMN',_0xf465e2))};if('deletion'==_0x5d48fe['type'])return _0x1a5f29['length']?{'type':'deletion','content':c(_0x539c10,'*Remove:*\x20%0',c(_0x539c10,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xf465e2,'\x22'+_0x1a5f29['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x539c10,'*Remove:*\x20%0',c(_0x539c10,'ELEMENT_TABLE_COLUMN',_0xf465e2))};}}),_0x19a292['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x3435c0),_0x19a292['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x3435c0),_0x19a292['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x25dbfc),_0x19a292['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x25dbfc),_0x19a292['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4e29e7),_0x19a292['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4e29e7),_0x19a292['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x49a266),_0x19a292['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x49a266);}['_acceptFormatSuggestionCallbackFactory'](){const _0xee329b=this['editor'],_0x5c2106=_0xee329b['model']['document']['selection'];return(_0x493e48,_0x489bf3)=>{_0xee329b['model']['change'](_0x94ef1f=>{const {commandName:_0x1a6ef3,commandParams:_0x1aff7a}=_0x489bf3;let _0xf7a774=_0x493e48[0x0]['end']['nodeBefore'];_0x1aff7a&&_0x1aff7a[0x0]&&!0x1===_0x1aff7a[0x0]['forceValue']&&(_0xf7a774=_0x493e48[0x0]['start']['nodeAfter']);const _0x659e80=_0x94ef1f['createRangeIn'](_0xf7a774);if('$graveyard'==_0x659e80['root']['rootName'])return;const _0x3c027e=Array['from'](_0x5c2106['getRanges']())['map'](_0x5600d0=>_0x53edc8['fromRange'](_0x5600d0));_0x94ef1f['setSelection'](_0x659e80),_0xee329b['commands']['get'](_0x1a6ef3)['refresh'](),_0x1aff7a['push']({'forceDefaultExecution':!0x0}),_0xee329b['execute'](_0x1a6ef3,..._0x1aff7a);const _0xc26ab0=_0x3c027e['filter'](_0x5cf156=>'$graveyard'!=_0x5cf156['root']['rootName']);_0xc26ab0['length']>0x0&&_0x94ef1f['setSelection'](_0xc26ab0);for(const _0xe9c1cc of _0x3c027e)_0xe9c1cc['detach']();});};}['_getCoordsForCells'](_0x5580b3){const _0x256054=this['editor']['plugins']['get']('TableUtils');let _0x59de3f=Number['MAX_SAFE_INTEGER'],_0x4b42af=Number['MIN_SAFE_INTEGER'],_0x55232d=Number['MAX_SAFE_INTEGER'],_0x467048=Number['MIN_SAFE_INTEGER'];for(const _0x374c16 of _0x5580b3){if('$graveyard'==_0x374c16['root']['rootName'])continue;const {row:_0x1aa4e5,column:_0x1df1e8}=_0x256054['getCellLocation'](_0x374c16),_0x40eeb1=_0x374c16['hasAttribute']('rowspan')?_0x374c16['getAttribute']('rowspan')-0x1:0x0,_0x5724bb=_0x374c16['hasAttribute']('colspan')?_0x374c16['getAttribute']('colspan')-0x1:0x0;_0x59de3f=_0x1aa4e5<_0x59de3f?_0x1aa4e5:_0x59de3f,_0x4b42af=_0x1aa4e5+_0x40eeb1>_0x4b42af?_0x1aa4e5+_0x40eeb1:_0x4b42af,_0x55232d=_0x1df1e8<_0x55232d?_0x1df1e8:_0x55232d,_0x467048=_0x1df1e8+_0x5724bb>_0x467048?_0x1df1e8+_0x5724bb:_0x467048;}return{'minRow':_0x59de3f,'maxRow':_0x4b42af,'minColumn':_0x55232d,'maxColumn':_0x467048};}['_setupColumnsRowsFixing'](){const _0x165081=this['editor'],_0x5a1874=_0x165081['plugins']['get']('TrackChangesEditing'),_0x51e4d4=_0x165081['plugins']['get']('TableUtils');_0x165081['model']['document']['on']('change:data',()=>{const _0x27f650=Array['from'](_0x165081['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x26da7f,data:_0x419f91}of _0x27f650){const {group:_0x173bbd,id:_0x14080d,subType:_0x3c0507}=_0x5a1874['_splitMarkerName'](_0x26da7f);if('suggestion'!=_0x173bbd)continue;if(null!=_0x419f91['oldRange'])continue;const _0x3f9183=_0x5a1874['getSuggestion'](_0x14080d);this['_tablePostFixingSubtypes']['includes'](_0x3c0507)&&this['_tableSuggestions']['add'](_0x3f9183);}},{'priority':'low'});const _0x13df6a=(_0x367b00,_0x47fb26)=>{let _0x1d95b7=!0x1;const _0x2f275b=_0x47fb26['createRangeOn'](_0x367b00),_0x46f7da=_0x367b00['findAncestor']('table'),_0x178d4d=_0x51e4d4['getCellLocation'](_0x367b00);for(const _0x2c46ca of this['_tableSuggestions']){const _0x5d4384=_0x2c46ca['subType'],_0x3f652b=_0x5d4384['startsWith']('tablePaste'),_0x577b56=_0x5d4384['substr'](_0x3f652b?0xa:0x5),_0x3873da=_0x577b56['toLowerCase'](),_0x5e2ca0=_0x3873da['substr'](0x0,0x3)+'span',_0x2cd275='min'+_0x577b56,_0x52ca38='max'+_0x577b56;if(!_0x2c46ca['isInContent'])continue;if(_0x46f7da!=_0x2c46ca['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x2c46ca['isIntersectingWithRange'](_0x2f275b))continue;const _0x2fcbf1=_0x367b00['hasAttribute'](_0x5e2ca0)?_0x367b00['getAttribute'](_0x5e2ca0)-0x1:0x0,_0x391d5c=this['_getSuggestionCoords'](_0x2c46ca),_0x36b201=_0x391d5c[_0x2cd275],_0x3db841=_0x391d5c[_0x52ca38];_0x36b201<=_0x178d4d[_0x3873da]&&_0x178d4d[_0x3873da]+_0x2fcbf1<=_0x3db841&&(_0x2c46ca['addRange'](_0x2f275b),_0x1d95b7=!0x0);}return _0x1d95b7;};_0x165081['model']['document']['registerPostFixer'](_0x576e52=>{let _0x5b9231=!0x1;for(const _0x2f6343 of _0x165081['model']['document']['differ']['getChanges']())if('insert'==_0x2f6343['type']){if('tableRow'==_0x2f6343['name']){for(const _0x243335 of _0x2f6343['position']['nodeAfter']['getChildren']())_0x5b9231=_0x5b9231||_0x13df6a(_0x243335,_0x576e52);}else'tableCell'==_0x2f6343['name']&&(_0x5b9231=_0x5b9231||_0x13df6a(_0x2f6343['position']['nodeAfter'],_0x576e52));}return _0x5b9231;});}['_getSuggestionCoords'](_0x3fd583){return this['_getCoordsForCells'](_0x3fd583['getRanges']()['map'](_0x5f4e3e=>_0x5f4e3e['start']['nodeAfter']));}}function xe(_0x6e7bd2){return Array['from'](new Set(_0x6e7bd2)['values']());}class Nt extends _0x11ea7f{static get['requires'](){return[Ct];}['afterInit'](){const _0x3dff12=this['editor'],_0x83674a=_0x3dff12['model']['document']['selection'],_0x1caff8=_0x3dff12['locale'];if(!_0x3dff12['plugins']['has']('TableEditing'))return;const _0x8bf8b3=_0x3dff12['plugins']['get']('TrackChangesEditing'),_0x45b504=_0x3dff12['plugins']['get']('TableUtils'),_0x3b1664=_0x3dff12['plugins']['get'](Ct);_0x3b1664['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x8bf8b3['enableCommand']('mergeTableCells',()=>{const _0xc327a6=_0x45b504['getSelectionAffectedTableCells'](_0x3dff12['model']['document']['selection']);_0x3dff12['model']['change'](()=>{_0x8bf8b3['markMultiRangeBlockFormat'](_0xc327a6,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3dff12['commands']['get']('mergeTableCells')['on']('execute',(_0x5359cf,_0x4280f1)=>{_0x3dff12['commands']['get']('trackChanges')['value']&&(_0x4280f1['length']>0x0&&_0x4280f1[_0x4280f1['length']-0x1]&&_0x4280f1[_0x4280f1['length']-0x1]['forceDefaultExecution']||_0x8bf8b3['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5359cf['stop']());},{'priority':'highest'});for(const _0x28b6dc of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x429594=_0x3dff12['commands']['get'](_0x28b6dc);_0x8bf8b3['enableCommand'](_0x28b6dc,()=>{const _0x514162=_0x3dff12['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x329986=>_0x329986['is']('element','tableCell')),_0x2c1b64=_0x429594['value'];_0x3dff12['model']['change'](()=>{_0x8bf8b3['markMultiRangeBlockFormat']([_0x514162,_0x2c1b64],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x41f772 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x1d3bdf=_0x3dff12['commands']['get'](_0x41f772);_0x8bf8b3['enableCommand'](_0x41f772,()=>{const _0x73cf2d=_0x45b504['getSelectionAffectedTableCells'](_0x3dff12['model']['document']['selection'])[0x0],_0x50c4d2=_0x73cf2d['findAncestor']('table'),{column:_0x2bba6b,row:_0x7b72d8}=_0x45b504['getCellLocation'](_0x73cf2d);let _0x2b0dcd=[];if('horizontally'==_0x1d3bdf['direction']){const _0x380988=_0x45b504['createTableWalker'](_0x50c4d2,{'startRow':_0x7b72d8,'endRow':_0x7b72d8,'includeAllSlots':!0x0});_0x2b0dcd=Array['from'](_0x380988)['map'](_0x418885=>_0x418885['cell']);}else{const _0x2d5ef1=_0x45b504['createTableWalker'](_0x50c4d2,{'column':_0x2bba6b,'includeAllSlots':!0x0});_0x2b0dcd=Array['from'](_0x2d5ef1)['map'](_0x353bf7=>_0x353bf7['cell']);}_0x3dff12['model']['change'](_0x3a2f4f=>{_0x8bf8b3['markBlockFormat'](_0x3a2f4f['createRangeOn'](_0x73cf2d),{'commandName':_0x41f772,'commandParams':[]},_0x2b0dcd,_0x41f772);});});}_0x8bf8b3['descriptionFactory']['registerDescriptionCallback'](_0x34b2e0=>{if('formatBlock'!=_0x34b2e0['type']&&'formatInline'!=_0x34b2e0['type'])return;const {data:_0x2002d5}=_0x34b2e0;return _0x2002d5&&'mergeTableCells'==_0x2002d5['commandName']?{'type':'format','content':c(_0x1caff8,'*Merge\x20cells*')}:void 0x0;}),_0x8bf8b3['descriptionFactory']['registerDescriptionCallback'](_0x39779e=>{if('formatBlock'!=_0x39779e['type']&&'formatInline'!=_0x39779e['type'])return;const {data:_0xe412dc}=_0x39779e;return _0xe412dc?'splitTableCellVertically'==_0xe412dc['commandName']?{'type':'format','content':c(_0x1caff8,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xe412dc['commandName']?{'type':'format','content':c(_0x1caff8,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0xb5505e=_0x3b1664['_acceptFormatSuggestionCallbackFactory']();for(const _0x28db5b of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x8bf8b3['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x28db5b,'accept',_0xb5505e);for(const _0xccbf23 of['splitTableCellVertically','splitTableCellHorizontally'])_0x8bf8b3['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xccbf23,'accept',_0xb5505e);_0x8bf8b3['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x52a28c=>{_0x3dff12['model']['change'](_0x43bf2f=>{const _0x279dda=Array['from'](_0x83674a['getRanges']())['map'](_0x52ae8b=>_0x53edc8['fromRange'](_0x52ae8b));_0x43bf2f['setSelection'](_0x52a28c),_0x3dff12['commands']['get']('mergeTableCells')['refresh'](),_0x3dff12['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x23efb7=_0x279dda['filter'](_0x33c424=>'$graveyard'!=_0x33c424['root']['rootName']);_0x23efb7['length']>0x0&&_0x43bf2f['setSelection'](_0x23efb7);for(const _0xd6c72e of _0x279dda)_0xd6c72e['detach']();});});for(const _0x130e3e of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x73f03d=_0x3dff12['commands']['get'](_0x130e3e);_0x73f03d['on']('set:isEnabled',(_0x1a23a7,_0x191950,_0x5da7ea)=>{if(_0x5da7ea){const _0x552f8e=_0x3dff12['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5da987=>_0x5da987['is']('element','tableCell'));this['_areMergableCells'](_0x73f03d['value'],_0x552f8e)||(_0x1a23a7['return']=!0x1,_0x1a23a7['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x2886cc=this['editor']['commands']['get']('mergeTableCells'),_0x3e0162=this['editor']['plugins']['get']('TableUtils');if(!_0x2886cc['isEnabled'])return!0x1;const _0x1e3ab5=_0x3e0162['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1b8b38 of _0x1e3ab5)for(const _0x27fd73 of _0x1e3ab5)if(_0x1b8b38!=_0x27fd73&&!this['_areMergableCells'](_0x1b8b38,_0x27fd73))return!0x1;return!0x0;}['_areMergableCells'](_0x28db6d,_0x5a93ab){const _0x1bf77e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4f4ae5=this['editor']['model']['createRangeOn'](_0x28db6d),_0x557cde=this['editor']['model']['createRangeOn'](_0x5a93ab),_0x323772=new Set(),_0xa18608=new Set();for(const _0x405dc4 of _0x1bf77e['getSuggestions']())if(('insertion'==_0x405dc4['type']||'deletion'==_0x405dc4['type']||'mergeTableCells'==_0x405dc4['subType'])&&_0x405dc4['isInContent']){for(const _0x502674 of _0x405dc4['getRanges']())_0x502674['containsRange'](_0x4f4ae5,!0x0)&&_0x323772['add'](_0x405dc4['type']+':'+_0x405dc4['author']['id']),_0x502674['containsRange'](_0x557cde,!0x0)&&_0xa18608['add'](_0x405dc4['type']+':'+_0x405dc4['author']['id']);}if(_0x323772['size']!=_0xa18608['size'])return!0x1;for(const _0x3d178d of _0x323772)if(!_0xa18608['has'](_0x3d178d))return!0x1;return!0x0;}}class Dt extends _0x11ea7f{static get['requires'](){return[Ct];}['afterInit'](){const _0x1339aa=this['editor'];if(!_0x1339aa['plugins']['has']('TableEditing'))return;const _0xe5642e=_0x1339aa['locale'],_0x25e672=_0x1339aa['plugins']['get']('TrackChangesEditing');_0x25e672['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x25e672['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x25e672['registerBlockAttribute']('headingRows'),_0x25e672['registerBlockAttribute']('headingColumns'),_0x25e672['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0xe5642e,'FORMAT_HEADER_ROW')),_0x25e672['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0xe5642e,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x285d59=this['editor']['plugins']['get']('TrackChangesEditing'),_0x486a62=this['editor']['plugins']['get']('TableUtils'),_0x22670e=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x1e3c1a({showActiveMarker:_0x20d86e=!0x0,setDataAttribute:_0x27f24f=!0x0}={}){return(_0x6486b5,_0x3b6b36,_0x5a2ad1)=>{const {type:_0x226bed,id:_0x594a70}=_0x285d59['_splitMarkerName'](_0x3b6b36['markerName']),_0x23d8b8=_0x285d59['getSuggestion'](_0x594a70),_0x32a31b=_0x23d8b8['data'];if('formatBlock'!=_0x23d8b8['type']||!_0x32a31b||'setTableColumnHeader'!=_0x32a31b['commandName'])return;if(_0x3b6b36['item'])return void _0x6486b5['stop']();if(!_0x5a2ad1['consumable']['consume'](_0x3b6b36['markerRange'],_0x6486b5['name']))return;const _0x511d44=_0x3b6b36['markerRange']['start']['nodeAfter'],_0x202f8d=_0x3b6b36['markerRange']['end']['nodeBefore'],_0x57fbf8=_0x511d44['parent']['parent'],{column:_0x1377ff}=_0x486a62['getCellLocation'](_0x511d44),{column:_0x264114}=_0x486a62['getCellLocation'](_0x202f8d);for(let _0x3bdfdf=_0x1377ff;_0x3bdfdf<=_0x264114;_0x3bdfdf++){const _0x2d4533=_0x486a62['createTableWalker'](_0x57fbf8,{'column':_0x3bdfdf,'includeAllSlots':!0x1});for(const _0x47743b of _0x2d4533){const _0x3c2f8d=_0x47743b['cell'],_0xf4c2c9=_0x5a2ad1['mapper']['toViewElement'](_0x3c2f8d);_0x5a2ad1['writer']['addClass']('ck-suggestion-marker-'+_0x226bed,_0xf4c2c9),_0x27f24f&&_0x5a2ad1['writer']['setAttribute']('data-suggestion',_0x594a70,_0xf4c2c9),_0x5a2ad1['mapper']['bindElementToMarker'](_0xf4c2c9,_0x3b6b36['markerName']),_0x20d86e&&(_0x285d59['activeMarkers']['includes'](_0x3b6b36['markerName'])?_0x5a2ad1['writer']['addClass']('ck-suggestion-marker--active',_0xf4c2c9):_0x5a2ad1['writer']['removeClass']('ck-suggestion-marker--active',_0xf4c2c9));}}};}_0x285d59['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x22670e),_0x285d59['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x22670e),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x1e3c1a(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2a66e9,_0x4a0dc9,_0x4bff93)=>{_0x4bff93['options']['showSuggestionHighlights']&&_0x1e3c1a({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2a66e9,_0x4a0dc9,_0x4bff93);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x55825b,_0x4154a6,_0x409a84)=>{const {type:_0x405162,id:_0x5adb2b}=_0x285d59['_splitMarkerName'](_0x4154a6['markerName']),_0x6c5315=_0x285d59['getSuggestion'](_0x5adb2b),_0x30777d=_0x6c5315['data'];if('formatBlock'!=_0x6c5315['type']||!_0x30777d||'setTableColumnHeader'!=_0x30777d['commandName'])return;const _0x544a26=_0x409a84['mapper']['markerNameToElements'](_0x4154a6['markerName']);if(_0x544a26){for(const _0x39024b of _0x544a26)_0x409a84['writer']['removeClass']('ck-suggestion-marker-'+_0x405162,_0x39024b),_0x409a84['writer']['removeClass']('ck-suggestion-marker--active',_0x39024b),_0x409a84['writer']['removeAttribute']('data-suggestion',_0x39024b),_0x409a84['mapper']['unbindElementFromMarkerName'](_0x39024b,_0x4154a6['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x192a14=this['editor'],_0x12d5a1=_0x192a14['locale'];function _0x32a69a(_0x143187){return{'type':'format','content':c(_0x12d5a1,'*Format:*\x20%0',_0x143187)};}_0x192a14['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x23d2ce=>{if('formatBlock'!=_0x23d2ce['type'])return;const {data:_0x50ffa0}=_0x23d2ce;if(_0x50ffa0){if('setTableRowHeader'==_0x50ffa0['commandName']){const _0x5677a5=_0x50ffa0['commandParams'][0x0]['forceValue'];return _0x32a69a(c(_0x12d5a1,_0x5677a5?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x50ffa0['commandName']){const _0x5e95be=_0x50ffa0['commandParams'][0x0]['forceValue'];return _0x32a69a(c(_0x12d5a1,_0x5e95be?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x11ea7f{['afterInit'](){const _0x38a34f=this['editor'],_0x2135b9=_0x38a34f['locale'],_0x191efb=_0x38a34f['plugins']['get']('TrackChangesEditing');function _0x26fa6d(_0x970ecc){return{'type':'format','content':''+c(_0x2135b9,'*Set\x20table\x20type:*\x20%0',_0x970ecc)};}_0x38a34f['plugins']['has']('TableLayout')&&(_0x191efb['enableCommand']('insertTableLayout'),_0x191efb['enableDefaultAttributesIntegration']('tableType'),_0x191efb['registerBlockAttribute']('tableType'),_0x191efb['descriptionFactory']['registerElementLabel'](_0x2300ef=>_0x2300ef['is']('element','table')&&'layout'===_0x2300ef['getAttribute']('tableType'),_0x277c6e=>c(_0x2135b9,'ELEMENT_LAYOUT_TABLE',_0x277c6e)),_0x191efb['descriptionFactory']['registerDescriptionCallback'](_0x24b733=>{const {data:_0x5e5ed5}=_0x24b733;if(_0x5e5ed5&&'tableType'==_0x5e5ed5['key'])switch(_0x5e5ed5['newValue']){case'layout':return _0x26fa6d(c(_0x2135b9,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x26fa6d(c(_0x2135b9,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=Object['fromEntries'](Oe['map'](_0xdbc75e=>[_0xdbc75e,null]));class $t extends _0x11ea7f{static get['requires'](){return[Ct];}['afterInit'](){const _0x554337=this['editor'];if(!_0x554337['plugins']['has']('TableClipboard'))return;const _0x203391=_0x554337['plugins']['get']('TrackChangesEditing'),_0x4bf84f=_0x554337['plugins']['get']('TableUtils'),_0x5218b6=_0x554337['plugins']['get'](Ct),_0x4310b1=_0x554337['plugins']['get']('TableClipboard'),_0x42ad63=_0x554337['plugins']['get']('TableSelection'),_0x5d2221=_0x554337['plugins']['get'](_0x420ad0);_0x5218b6['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x554337['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x554337['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x19c498=null,_0x39af78=!0x1;_0x5d2221['on']('contentInsertion',(_0x2c94ad,_0x532d06)=>{_0x39af78='paste'===_0x532d06['method'];}),_0x554337['model']['on']('insertContent',(_0x5912f2,_0x5ca9e7)=>{if(!_0x39af78&&null===_0x42ad63['getSelectedTableCells']())return;const [_0x1617b2,_0x4f8039]=_0x5ca9e7,_0x1c857f=_0x5ca9e7[_0x5ca9e7['length']-0x1];_0x1c857f&&_0x1c857f['forceDefaultExecution']||_0x203391['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x36699d,_0x4d8bd8,_0x1f8f37,_0x572fce,_0x5217da){if(_0x4d8bd8&&!_0x4d8bd8['is']('documentSelection'))return!0x1;const _0x8e5dd2=_0x5217da['getTableIfOnlyTableInContent'](_0x36699d,_0x1f8f37);if(!_0x8e5dd2||!He(_0x8e5dd2,void 0x0,_0x572fce))return!0x1;const _0x2479cc=_0x572fce['getSelectionAffectedTableCells'](_0x1f8f37['document']['selection']);if(!_0x2479cc['length'])return!0x1;const _0x4d1405=_0x2479cc[0x0]['findAncestor']('table'),_0x4ff110=_0x572fce['getRowIndexes'](_0x2479cc),_0x3e2bcf=_0x572fce['getColumnIndexes'](_0x2479cc),_0x2f172e={'startRow':_0x4ff110['first'],'endRow':_0x4ff110['last'],'startColumn':_0x3e2bcf['first'],'endColumn':_0x3e2bcf['last']};return 0x1==_0x2479cc['length']&&(_0x2f172e['endRow']+=_0x572fce['getRows'](_0x8e5dd2)-0x1,_0x2f172e['endColumn']+=_0x572fce['getColumns'](_0x8e5dd2)-0x1),He(_0x4d1405,_0x2f172e,_0x572fce);}(_0x1617b2,_0x4f8039,_0x554337['model'],_0x4bf84f,_0x4310b1)&&(_0x5912f2['stop'](),_0x19c498={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x554337['model']['change'](()=>{_0x554337['model']['insertContent'](_0x5ca9e7[0x0],_0x5ca9e7[0x1],_0x5ca9e7[0x2],{'forceDefaultExecution':!0x0});const _0x59a071=_0x12ee37(),{rowInsertionRanges:_0x420357,columnInsertionRanges:_0x19f681,insertionRanges:_0x6fa5f8,deletionRanges:_0x29caa2,cells:_0xbc989d}=_0x19c498;_0x420357['length']&&_0x203391['markMultiRangeInsertion'](_0x420357,'tablePasteRow',{'tablePasteChainId':_0x59a071}),_0x19f681['length']&&_0x203391['markMultiRangeInsertion'](_0x19f681,'tablePasteColumn',{'tablePasteChainId':_0x59a071}),_0x6fa5f8['length']&&(_0x203391['markMultiRangeInsertion'](_0x6fa5f8,'tablePaste',{'tablePasteChainId':_0x59a071,'skipNestingCheck':!0x0}),_0x6fa5f8['forEach'](_0x48a2ec=>_0x48a2ec['detach']?.())),_0x29caa2['length']&&(_0x203391['markMultiRangeDeletion'](_0x29caa2,'tablePaste',{'tablePasteChainId':_0x59a071,'skipNestingCheck':!0x0}),_0x29caa2['forEach'](_0x3644f4=>_0x3644f4['detach']?.()));const _0x14cf71=_0x203391['markMultiRangeBlockFormat'](_0xbc989d['map'](({element:_0x2bafb5})=>_0x2bafb5),{'formatGroupId':_0x12ee37()},[],'tablePasteCell',{'tablePasteChainId':_0x59a071});if(_0x14cf71){const _0x27e4d3=_0x14cf71['getMarkers'](),_0x59f7e1=[];for(const {element:_0x5d882a,attributes:_0xfec53e}of _0xbc989d){if(!_0xfec53e)continue;const _0x49012a=_0x554337['model']['createRangeOn'](_0x5d882a),_0x534f12=_0x27e4d3['find'](_0x1ab3f0=>_0x1ab3f0['getRange']()['isEqual'](_0x49012a));_0x534f12&&_0x59f7e1['push']([_0x534f12['name'],_0xfec53e]);}_0x59f7e1['length']&&_0x14cf71['setAttribute']('markerAttributes',Object['fromEntries'](_0x59f7e1));}_0x19c498=null;}));},{'priority':_0x2ef4ce['high']+0xa}),_0x5d2221['on']('contentInsertion',()=>{_0x39af78=!0x1;},{'priority':'lowest'}),_0x554337['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x399f45,_0x103408)=>{const [_0x389cd0,_0x5a2ac9,,_0xac6e7b]=_0x103408;if(!_0x19c498)return;_0x399f45['stop']();const _0x5ba741=_0x389cd0['cell'],_0x32abd6=_0x5a2ac9,_0x16288e=De(_0x5ba741),_0x5a3f5c=De(_0x32abd6);_0x399f45['return']=_0x5ba741;let _0x4ca267=null,_0x4862e2=null;if(_0x5a3f5c||_0x16288e){if(_0x16288e&&!_0x5a3f5c){_0xac6e7b['remove'](_0x5ba741['getChild'](0x0));for(const _0x7b01b7 of Array['from'](_0x32abd6['getChildren']()))_0xac6e7b['insert'](_0x7b01b7,_0x5ba741,'end');const _0x1836c3=_0x19c498['rowInsertionIndexes']['includes'](_0x389cd0['row']),_0x448bb5=_0x19c498['columnInsertionIndexes']['includes'](_0x389cd0['column']);_0x1836c3||_0x448bb5||(_0x4ca267=_0x53edc8['fromRange'](_0xac6e7b['createRangeIn'](_0x5ba741)));}else _0x5a3f5c&&!_0x16288e&&(_0x4862e2=_0xac6e7b['createRangeIn'](_0x5ba741));}else{const _0xf3a4df=_0xac6e7b['createElement']('tableCellSuggestion'),_0x49ead1=_0xac6e7b['createElement']('tableCellSuggestion');_0xac6e7b['wrap'](_0xac6e7b['createRangeIn'](_0x5ba741),_0x49ead1),_0xac6e7b['insert'](_0xf3a4df,_0x5ba741,0x0);for(const _0x57356c of Array['from'](_0x32abd6['getChildren']()))_0xac6e7b['insert'](_0x57356c,_0xf3a4df,'end');_0x4ca267=_0x53edc8['fromRange'](_0xac6e7b['createRangeOn'](_0xf3a4df)),_0x4862e2=_0x53edc8['fromRange'](_0xac6e7b['createRangeOn'](_0x49ead1));}const _0x4c944c=Array['from'](_0x32abd6['getAttributes']())['filter'](([_0x3c52a8])=>Oe['includes'](_0x3c52a8));_0x19c498['cells']['push']({'element':_0x5ba741,'attributes':_0x4c944c['length']?Object['fromEntries'](_0x4c944c):null}),_0x4ca267&&_0x19c498['insertionRanges']['push'](_0x4ca267),_0x4862e2&&_0x19c498['deletionRanges']['push'](_0x4862e2);},{'priority':'high'}),_0x4bf84f['on']('insertColumns',(_0x497644,_0x409772)=>{const [_0xb4d49a,_0xa35f4b={}]=_0x409772;if(!_0x19c498)return;const _0x53fc9d=_0xa35f4b['at']||0x0,_0x37e236=_0xa35f4b['columns']||0x1;_0x19c498['columnInsertionIndexes']=new Array(_0x37e236)['fill'](_0x53fc9d)['map']((_0x2ed0f1,_0x1aeb96)=>_0x2ed0f1+_0x1aeb96);for(const {cell:_0xa68d0d}of _0x4bf84f['createTableWalker'](_0xb4d49a,{'startColumn':_0x53fc9d,'endColumn':_0x53fc9d+_0x37e236-0x1}))_0x19c498['columnInsertionRanges']['push'](_0x554337['model']['createRangeOn'](_0xa68d0d));},{'priority':'low'}),_0x4bf84f['on']('insertRows',(_0x18b85e,_0x229a69)=>{const [_0x3c1dfd,_0x5ab546={}]=_0x229a69;if(!_0x19c498)return;const _0x1a7892=_0x5ab546['at']||0x0,_0x59ee2c=_0x5ab546['rows']||0x1;_0x19c498['rowInsertionIndexes']=new Array(_0x59ee2c)['fill'](_0x1a7892)['map']((_0x584a5c,_0x207432)=>_0x584a5c+_0x207432);for(const {cell:_0x9f86c1}of _0x4bf84f['createTableWalker'](_0x3c1dfd,{'startRow':_0x1a7892,'endRow':_0x1a7892+_0x59ee2c-0x1}))_0x19c498['rowInsertionRanges']['push'](_0x554337['model']['createRangeOn'](_0x9f86c1));},{'priority':'low'}),_0x203391['descriptionFactory']['registerDescriptionCallback'](_0xf9850a=>{if(_0xf9850a['subType']&&_0xf9850a['subType']['startsWith']('tablePaste'))return _0xf9850a['previous']?{}:{'type':'insertion','content':c(_0x554337['locale'],'*Replace\x20table\x20cells*')};});const _0x128228=()=>!0x1;for(const _0x1d95fc of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x203391['_suggestionFactory']['registerCustomCallback']('insertion',_0x1d95fc,'join',_0x128228),_0x203391['_suggestionFactory']['registerCustomCallback']('deletion',_0x1d95fc,'join',_0x128228),_0x203391['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1d95fc,'join',_0x128228);_0x203391['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x128228),_0x203391['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x48062d,_0x300be7,_0x4d70fa)=>{const _0x4aa8d4=_0x48062d['map'](_0x192cc6=>_0x192cc6['getContainedElement']())['filter'](_0x1ec175=>_0x1ec175),_0x3c301d=new Map(_0x4aa8d4['map'](_0x1472d8=>[_0x1472d8,null]));if(_0x19c498){for(const {element:_0x4578ea,attributes:_0x4a9f4d}of _0x19c498['cells'])_0x4a9f4d&&_0x3c301d['set'](_0x4578ea,_0x4a9f4d);}else{if(_0x4d70fa&&_0x4d70fa['markerAttributes'])for(const [_0x42240d,_0x2f2dbd]of Object['entries'](_0x4d70fa['markerAttributes'])){const _0x113bc5=_0x554337['model']['markers']['get'](_0x42240d),_0x4035f4=_0x113bc5?_0x113bc5['getRange']()['getContainedElement']():null;_0x4035f4&&_0x3c301d['set'](_0x4035f4,_0x2f2dbd);}}_0x554337['model']['change'](_0x53c7fa=>{for(const [_0x100f07,_0x475356]of _0x3c301d)_0x53c7fa['setAttributes']({...Ue,..._0x475356},_0x100f07);});});const _0x56fd72=(_0x5d471d,_0x3b0fe8)=>{_0x203391['_suggestionFactory']['registerCustomCallback'](_0x5d471d,'tablePaste',_0x3b0fe8,(_0x53d29e,_0x23cc40,_0xfbda1e)=>{_0x554337['model']['change'](_0x2eea58=>{const _0x3b7191=[];for(const _0x41d806 of _0x53d29e){const _0x2deee9=_0x41d806['start']['nodeAfter'];_0x2deee9['is']('element','tableCellSuggestion')&&_0x3b7191['push'](_0x2deee9);}_0x203391['_suggestionFactory']['getSuggestionCallback'](_0x5d471d,null,_0x3b0fe8)(_0x53d29e,_0x23cc40,_0xfbda1e);for(const _0x192fb0 of _0x3b7191)'$graveyard'!=_0x192fb0['root']['rootName']&&_0x2eea58['unwrap'](_0x192fb0);});});};_0x56fd72('insertion','accept'),_0x56fd72('insertion','discard'),_0x56fd72('deletion','accept'),_0x56fd72('deletion','discard'),_0x203391['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x2a8e6d=>{const _0x3c2bb5=_0x2a8e6d['map'](_0x4927e6=>_0x4927e6['getContainedElement']()),_0x1f8619=_0x3c2bb5[0x0]['findAncestor']('table'),{minRow:_0x459051,maxRow:_0x46950a}=_0x5218b6['_getCoordsForCells'](_0x3c2bb5);_0x4bf84f['removeRows'](_0x1f8619,{'at':_0x459051,'rows':_0x46950a-_0x459051+0x1});}),_0x203391['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x309e4f=>{const _0x54ccbc=_0x309e4f['map'](_0x502fde=>_0x502fde['getContainedElement']()),_0x5b1055=_0x54ccbc[0x0]['findAncestor']('table'),{minColumn:_0x15396c,maxColumn:_0x558f5f}=_0x5218b6['_getCoordsForCells'](_0x54ccbc);_0x4bf84f['removeColumns'](_0x5b1055,{'at':_0x15396c,'columns':_0x558f5f-_0x15396c+0x1});});const _0x331ae4=(_0x3c033d,_0x120ae3)=>{if(!_0x120ae3['subType']||!_0x120ae3['subType']['startsWith']('tablePaste'))return;const _0x4a4351=_0x120ae3['attributes']['tablePasteChainId'],_0x5cce91=_0x203391['getSuggestions']()['filter'](_0x45c871=>_0x45c871['isInContent']&&_0x45c871['attributes']&&_0x45c871['attributes']['tablePasteChainId']==_0x4a4351);_0x5cce91['length']&&_0x120ae3['getAllAdjacentSuggestions']()['length']!=_0x5cce91['length']&&_0x5cce91['reduce']((_0x3ec4e6,_0x141721)=>(_0x3ec4e6['next']=_0x141721,_0x141721['previous']=_0x3ec4e6,_0x141721));};function _0xdf0cce(_0xe18a19,_0x389b4b=!0x0){const {id:_0x18c954,authorId:_0x26ab58}=_0x203391['_splitMarkerName'](_0xe18a19['markerName']),_0x2bb800=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3a2a9a=_0x203391['activeMarkers']['includes'](_0xe18a19['markerName']);return _0x3a2a9a&&_0x2bb800['push']('ck-suggestion-marker--active'),{'classes':_0x2bb800,'attributes':{'data-suggestion':_0x18c954,'data-author-id':_0x26ab58},'priority':_0x3a2a9a&&_0x389b4b?0xbc2:0xbb8};}_0x203391['on']('suggestionLoaded',_0x331ae4,{'priority':'high'}),_0x203391['on']('suggestionUnloaded',_0x331ae4,{'priority':'high'}),_0x554337['model']['document']['registerPostFixer'](()=>{let _0x24a1f6=!0x1;const _0x2ca42d=Array['from'](_0x554337['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1668fd,data:_0xad1363}of _0x2ca42d){const {group:_0x1f2a8d,type:_0x5af998,id:_0x277f70}=_0x203391['_splitMarkerName'](_0x1668fd);if('suggestion'!=_0x1f2a8d||'deletion'!=_0x5af998||_0xad1363['oldRange'])continue;if(!_0x203391['hasSuggestion'](_0x277f70))continue;const _0x23cf30=_0x203391['getSuggestion'](_0x277f70)['getRanges'](),_0x3eee01=_0x554337['plugins']['get']('Users')['me'];for(const _0x3a110a of _0x203391['getSuggestions']()){if(!_0x3a110a['isInContent']||_0x3a110a['author']!=_0x3eee01)continue;if('formatBlock'!=_0x3a110a['type']||'tablePasteCell'!=_0x3a110a['subType'])continue;if(_0x3a110a['getRanges']()['every'](_0x582bb7=>_0x23cf30['some'](_0xedf3fb=>_0xedf3fb['containsRange'](_0x582bb7,!0x0)))){for(const _0x1de381 of _0x3a110a['getAllAdjacentSuggestions']())_0x1de381['isInContent']&&(_0x1de381['discard'](),_0x24a1f6=!0x0);}}}return _0x24a1f6;}),_0x554337['model']['document']['registerPostFixer'](_0x3d7609=>{const _0x2c551e=_0x554337['commands']['get']('redo');if(!_0x2c551e||!_0x2c551e['_createdBatches']['has'](_0x3d7609['batch']))return!0x1;let _0x4be0c0=!0x1;const _0x5521a1=_0x554337['plugins']['get']('Users')['me'],_0x319bae=_0x554337['model']['document']['differ']['getChanges'](),_0x5a18b7=Array['from'](_0x554337['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x5db6cc,data:_0x3e734a})=>{const {group:_0x36bd9d,subType:_0x157a22,authorId:_0x3eb99b}=_0x203391['_splitMarkerName'](_0x5db6cc);return'suggestion'==_0x36bd9d&&'tablePaste'==_0x157a22&&_0x3eb99b==_0x5521a1['id']&&!_0x3e734a['oldRange'];});for(const _0x32e0d8 of _0x319bae){if('insert'!=_0x32e0d8['type']||'tableCellSuggestion'!=_0x32e0d8['name']||0x1!=_0x32e0d8['length'])continue;const _0x25d679=_0x3d7609['createRange'](_0x32e0d8['position'],_0x32e0d8['position']['getShiftedBy'](0x1));if(!_0x5a18b7['find'](({data:_0x552424})=>_0x552424['newRange']['isEqual'](_0x25d679))){for(const {name:_0x4b1318,data:_0x159abe}of _0x5a18b7)if(_0x25d679['containsRange'](_0x159abe['newRange'])){_0x3d7609['updateMarker'](_0x4b1318,{'range':_0x25d679}),_0x4be0c0=!0x0;break;}}}return _0x4be0c0;}),_0x554337['model']['document']['registerPostFixer'](_0x21bc9a=>{let _0xab1298=!0x1;const _0x1fdcc5=_0x554337['plugins']['get']('Users')['me'],_0x4d7999=_0x203391['getSuggestions']()['filter'](_0x2d4d5c=>_0x2d4d5c['isInContent']&&_0x2d4d5c['author']==_0x1fdcc5),_0x1b0c05=new Set(),_0x7624b8=new Set();for(const _0x496e46 of _0x4d7999)if('tablePaste'==_0x496e46['subType'])for(const _0x2f3d18 of _0x496e46['getMarkers']()){const _0x547dab=_0x2f3d18['getRange']()['getContainedElement']();if(_0x547dab){if(_0x547dab['is']('element','tableCellSuggestion')&&De(_0x547dab)){_0x496e46['removeMarker'](_0x2f3d18['name']),_0x1b0c05['add'](_0x547dab),_0xab1298=!0x0;const _0x403961=_0x547dab['nextSibling'],_0x3f0826=_0x547dab['previousSibling'],_0x5ca727=_0x403961&&_0x403961['is']('element','tableCellSuggestion'),_0x511f3d=_0x3f0826&&_0x3f0826['is']('element','tableCellSuggestion');_0x5ca727&&!_0x1b0c05['has'](_0x403961)&&_0x7624b8['add'](_0x403961),_0x511f3d&&!_0x1b0c05['has'](_0x3f0826)&&_0x7624b8['add'](_0x3f0826);}else _0x547dab['is']('element','paragraph')&&_0x547dab['isEmpty']&&(_0x496e46['removeMarker'](_0x2f3d18['name']),_0xab1298=!0x0);}}else{if('tablePasteCell'==_0x496e46['subType']){if(!_0x496e46['attributes']||!_0x496e46['attributes']['tablePasteChainId'])continue;const _0x560901=_0x496e46['attributes']['markerAttributes'];if(_0x560901&&Object['keys'](_0x560901)['length'])continue;const _0x342cd1=_0x496e46['attributes']['tablePasteChainId'];let _0x532253=!0x0,_0x42c187=!0x0;for(const _0x260a39 of _0x4d7999)if(_0x260a39['subType']&&_0x260a39['subType']['startsWith']('tablePaste')){if(!_0x260a39['attributes']['tablePasteChainId']){_0x42c187=!0x1;break;}if(_0x260a39['id']!=_0x496e46['id']&&_0x260a39['attributes']['tablePasteChainId']==_0x342cd1){_0x532253=!0x1;break;}}_0x42c187&&_0x532253&&(_0x496e46['removeMarkers'](),_0xab1298=!0x0);}}for(const _0x5e63e5 of _0x1b0c05)_0x21bc9a['remove'](_0x5e63e5);for(const _0x328edc of _0x7624b8)_0x21bc9a['unwrap'](_0x328edc);return _0xab1298;}),_0x554337['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x95c54a=>_0xdf0cce(_0x95c54a),'converterPriority':'high'}),_0x554337['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5f58b0,_0x5ccc05)=>_0x5ccc05['options']['showSuggestionHighlights']?_0xdf0cce(_0x5f58b0,!0x1):null,'converterPriority':'high'});const _0x123734=_0x554337['editing']['view'];this['listenTo'](_0x123734['document'],'clipboardOutput',(_0x2bfaa3,_0x25c1de)=>{const _0x2f1ed7=[];for(const _0x3687fb of _0x123734['createRangeIn'](_0x25c1de['content'])['getItems']())_0x3687fb['is']('element','suggestion-td')&&_0x2f1ed7['push'](_0x3687fb);_0x123734['change'](_0x187342=>{for(const _0x2fef39 of _0x2f1ed7)_0x187342['move'](_0x187342['createRangeIn'](_0x2fef39),_0x187342['createPositionBefore'](_0x2fef39)),_0x187342['remove'](_0x2fef39);});});}}function De(_0x2668b9){if(_0x2668b9['isEmpty'])return!0x0;const _0x596bb8=_0x2668b9['getChild'](0x0);return _0x596bb8['is']('element','paragraph')&&_0x596bb8['isEmpty'];}function He(_0x4aa6d3,_0xfa0ac1={},_0x509517){for(const {isAnchor:_0x284ca9,cellHeight:_0x8f0601,cellWidth:_0x255bcd}of _0x509517['createTableWalker'](_0x4aa6d3,{'includeAllSlots':!0x0,..._0xfa0ac1}))if(!_0x284ca9||0x1!=_0x8f0601||0x1!=_0x255bcd)return!0x1;return!0x0;}class Bt extends _0x11ea7f{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x55616e=this['editor']['plugins']['get']('TrackChangesEditing');_0x55616e['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x55616e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x55616e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x55616e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x55616e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x55616e['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x2bf3e2,_0x46194f){const _0x4c19bc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2f5f=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x31eab2=_0x46194f['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x56fca2=_0x2f5f['getColumnGroupElement'](_0x31eab2);let _0x187a75=_0x56fca2?_0x2f5f['getTableColumnsWidths'](_0x56fca2):null,_0x27d124=_0x31eab2['getAttribute']('tableWidth')||null;const _0x403132=_0x46194f['tableWidth']||_0x27d124,_0x4fea93=_0x46194f['columnWidths']||_0x187a75,_0xab4289=this['editor']['plugins']['get']('Users')['me'];for(const _0x5597ac of _0x4c19bc['getSuggestions']()){const _0x4e9384=_0x5597ac['getContainedElement']();if('resizeTable'===_0x5597ac['subType']&&_0x4e9384===_0x31eab2){_0x5597ac['author']!==_0xab4289&&_0x5597ac['discard']();const _0x5dd346=_0x5597ac['data']['commandParams'];_0x27d124=_0x5dd346[0x0]['tableWidth'],_0x187a75=_0x5dd346[0x0]['columnWidths'];break;}}_0x2bf3e2({'table':_0x31eab2,'tableWidth':_0x403132,'columnWidths':_0x4fea93}),_0x4c19bc['markBlockFormat'](_0x31eab2,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x27d124,'columnWidths':_0x187a75}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x124b0e){if('formatBlock'!=_0x124b0e['type']&&'formatInline'!=_0x124b0e['type'])return;const {data:_0x984f28}=_0x124b0e;if(_0x984f28&&'resizeTable'===_0x984f28['formatGroupId']){const _0x164973='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x164973)};}}}class xt extends _0x11ea7f{['afterInit'](){const _0x51d1af=this['editor'];_0x51d1af['plugins']['has']('Template')&&_0x51d1af['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x11ea7f{['afterInit'](){const _0x54f835=this['editor'];if(!_0x54f835['commands']['get']('insertTableOfContents'))return;_0x54f835['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x4b9d83=_0x54f835['plugins']['get']('TrackChangesEditing'),_0x512569=_0x54f835['locale'];_0x4b9d83['descriptionFactory']['registerElementLabel']('tableOfContents',_0x47b8cd=>c(_0x512569,'ELEMENT_TABLE_OF_CONTENTS',_0x47b8cd));}}class Rt extends _0x11ea7f{['afterInit'](){const _0x56db5d=this['editor'];if(!_0x56db5d['plugins']['has']('Title'))return;const _0x304040=_0x56db5d['plugins']['get']('TrackChangesEditing');_0x304040['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x56db5d['locale'],'ELEMENT_TITLE')),_0x56db5d['model']['document']['registerPostFixer'](_0xa43b9=>{let _0x2f70c7=!0x1;const _0x4921d7=Array['from'](_0x56db5d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4ee3f6,data:_0x30caf5}of _0x4921d7){const {group:_0x381dea}=_0x304040['_splitMarkerName'](_0x4ee3f6);if('suggestion'!==_0x381dea||!_0x30caf5['newRange'])continue;const _0x36856f=_0x30caf5['newRange'],_0x58a9f9=_0x36856f['end']['nodeBefore'];if(!_0x58a9f9||!_0x58a9f9['is']('element','title-content'))continue;if(!_0x36856f['start']['isTouching'](_0x36856f['end']))continue;const _0x515462=_0x56db5d['model']['schema']['getNearestSelectionRange'](_0x36856f['end'],'forward');if(_0x515462&&_0x515462['isCollapsed']){const _0x4b43e1=_0xa43b9['createRange'](_0x36856f['start'],_0x515462['start']);_0x4b43e1['isEqual'](_0x36856f)||(_0xa43b9['updateMarker'](_0x4ee3f6,{'range':_0x4b43e1}),_0x2f70c7=!0x0);}_0x2f70c7||(_0xa43b9['removeMarker'](_0x4ee3f6),_0x2f70c7=!0x0);}return _0x2f70c7;});}}class Tt extends _0x11ea7f{['afterInit'](){const _0x2a2043=this['editor'],_0x394218=_0x2a2043['plugins']['get']('TrackChangesEditing');_0x2a2043['plugins']['has']('Uploadcare')&&(_0x394218['enableCommand']('uploadcare'),_0x2a2043['plugins']['has']('UploadcareImageEdit')&&(_0x394218['enableCommand']('uploadcareImageEdit'),_0x394218['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x394218['registerBlockAttribute']('uploadcareImageId'),_0x394218['descriptionFactory']['registerDescriptionCallback'](_0x284d90=>{if('attribute'!=_0x284d90['type'])return;const {data:_0x1b3ce6}=_0x284d90;return _0x1b3ce6&&'uploadcareImageId'==_0x1b3ce6['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x11ea7f{['afterInit'](){const _0x44c5f8=this['editor'],_0x5f4539=_0x44c5f8['plugins']['get']('TrackChangesEditing');_0x44c5f8['plugins']['has']('UndoEditing')&&(_0x5f4539['enableCommand']('undo'),_0x5f4539['enableCommand']('redo'));}}class Ut extends _0x11ea7f{static get['requires'](){return[Ct];}['afterInit'](){const _0x4619fa=this['editor'];if(!_0x4619fa['plugins']['has']('TableCaptionEditing'))return;_0x4619fa['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x11ea7f{['tableProperties'];['tableCellProperties'];constructor(_0x49ac2c){super(_0x49ac2c),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 _0x54a2ee=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x5cdc0f of this['tableProperties'])_0x54a2ee['enableCommand'](_0x5cdc0f,(_0x106f51,_0x209fd4)=>{const _0x495823=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x5cdc0f,[_0x495823],this['tableProperties'],'tableProperties',_0x106f51,_0x209fd4);});_0x54a2ee['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x54a2ee['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x54a2ee['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x207c71,_0x50283a)=>this['handleDiscardAction'](this['tableProperties'],_0x207c71,_0x50283a)),_0x54a2ee['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x3a5cf8 of this['tableCellProperties'])_0x54a2ee['enableCommand'](_0x3a5cf8,(_0x280c0f,_0x25959e)=>{const _0x138241=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x3a5cf8,_0x138241,this['tableCellProperties'],'tableCellProperties',_0x280c0f,_0x25959e);});_0x54a2ee['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x54a2ee['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x54a2ee['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x54d716,_0x6942ff)=>this['handleDiscardAction'](this['tableCellProperties'],_0x54d716,_0x6942ff)),_0x54a2ee['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x54a2ee['descriptionFactory']['registerDescriptionCallback'](_0x56c315=>this['handleSuggestionDescription'](_0x56c315));}['_handlePropertyChange'](_0x518e94,_0x316fbd,_0x5b4772,_0x2bbb17,_0x304342,_0x182613){const _0x381914=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x182613['batch'],()=>{for(const _0xe865d5 of _0x316fbd){if(this['_getSuggestion'](_0xe865d5,_0x2bbb17))_0x304342(_0x182613);else{const _0x960dc3={};for(const _0x1e20c1 of _0x5b4772){const _0x5cc699=_0xe865d5['getAttribute'](_0x1e20c1);void 0x0!==_0x5cc699&&(_0x960dc3[_0x1e20c1]=_0x5cc699);}_0x304342(_0x182613),_0x381914['markBlockFormat'](_0xe865d5,{'commandParams':[_0x960dc3]},[],_0x2bbb17);}}});}['handleDiscardAction'](_0xb69d50,_0x4b4c83,_0x363be5){const _0x435a46=_0x4b4c83[0x0]['start']['nodeAfter'],_0x1975e3=_0x363be5['commandParams'][0x0];this['editor']['model']['change'](_0x27cfae=>{for(const _0x516724 of _0xb69d50)void 0x0!==_0x1975e3[_0x516724]?_0x27cfae['setAttribute'](_0x516724,_0x1975e3[_0x516724],_0x435a46):_0x27cfae['removeAttribute'](_0x516724,_0x435a46);});}['handleSuggestionDescription'](_0x2db5ba){if(_0x2db5ba['data'])switch(_0x2db5ba['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x5afcfc,_0x16dbba){const _0x2e32f2=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x1dd0a9 of _0x2e32f2['getSuggestions']({'skipNotAttached':!0x0})){const _0x42a5ac=_0x1dd0a9['getContainedElement']();if(_0x1dd0a9['subType']===_0x16dbba&&_0x42a5ac===_0x5afcfc)return _0x1dd0a9;}return null;}}const u='$elementName';class p extends _0x11ea7f{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x19fdf5,_0x2727c4,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,it,et,nt,st,ot,rt,ct,at,ut,ft,ht,lt,Q,wt,gt,W,Se,mt,pt,kt,bt,yt,St,jt,It,At,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Ot,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5b11f0){super(_0x5b11f0),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x172e3e,_0x5076e9,_0x5f2e9a,_0x40b756)=>{this['_model']['change'](()=>{for(const _0x1883af of[..._0x40b756,..._0x5f2e9a])this['_model']['markers']['has'](_0x1883af)&&_0x5b11f0['editing']['reconvertMarker'](_0x1883af);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x5b11f0['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x5b11f0['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x5b11f0['config']['get']('trackChanges.trackFormatChanges'),_0x5b11f0['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5b11f0['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x5b11f0,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x34ce2a=this['editor'],_0x732589=(_0x2a9802,_0x23cd68)=>{if('attribute'!=_0x2a9802)return'ck-suggestion-marker-'+_0x2a9802;const _0x1fb1b5=_0x23cd68['split']('|')[0x0];return this['_isBlockAttribute'](_0x1fb1b5)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x34ce2a['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x2d4a43=>{const {id:_0x59e30e,authorId:_0x564fae,type:_0xbdb5,subType:_0x267317}=this['_splitMarkerName'](_0x2d4a43['markerName']),_0x185f61=['ck-suggestion-marker',_0x732589(_0xbdb5,_0x267317)];let _0x387cec=0xbb8;return this['activeMarkers']['includes'](_0x2d4a43['markerName'])&&(_0x185f61['push']('ck-suggestion-marker--active'),_0x387cec=0xbc2),'deletion'==_0xbdb5&&(_0x387cec+=0x5),{'classes':_0x185f61,'attributes':{'data-suggestion':_0x59e30e,'data-author-id':_0x564fae},'priority':_0x387cec};}}),_0x34ce2a['conversion']['for']('dataDowncast')['add'](_0x5578c2=>{_0x5578c2['on']('addMarker:suggestion',(_0xbd54d8,_0x5c1543,_0x147c05)=>{if(!_0x147c05['options']['showSuggestionHighlights'])return;const _0xc44a65=_0x5c1543['item'];if(!_0xc44a65)return;const _0x1c2b85=_0x147c05['mapper']['toViewElement'](_0xc44a65);_0x34ce2a['model']['schema']['isObject'](_0xc44a65)&&_0x1c2b85&&!_0x1c2b85['getCustomProperty']('widget')&&_0x1c2b85['is']('containerElement')&&_0x1a15a4(_0x1c2b85,_0x147c05['writer']);},{'priority':'high'});}),_0x34ce2a['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x427320,_0x1e1731)=>{if(!_0x1e1731['options']['showSuggestionHighlights'])return null;const {id:_0xe99ecc,authorId:_0x243bae,type:_0xcf248d,subType:_0x5cb379}=this['_splitMarkerName'](_0x427320['markerName']);return{'classes':['ck-suggestion-marker',_0x732589(_0xcf248d,_0x5cb379)],'priority':0xbb8,'attributes':{'data-suggestion':_0xe99ecc,'data-author-id':_0x243bae}};}});const _0x155e62=({showActiveMarkers:_0x293fb0=!0x0,isAttributeSuggestion:_0x4a8019=!0x1}={})=>(_0x445140,_0x2fbc04,_0x2f260f)=>{if(!_0x2fbc04['item'])return;const {id:_0x33c577,authorId:_0x26330f}=this['_splitMarkerName'](_0x2fbc04['markerName']);if(_0x4a8019){const _0x335586=this['_suggestions']['get'](_0x33c577),_0x6b8c8d=this['_getAttributeKey'](_0x335586);if(!this['_isBlockAttribute'](_0x6b8c8d))return;}if(_0x2fbc04['item']['is']('selection'))return void _0x2f260f['consumable']['consume'](_0x2fbc04['item'],_0x445140['name']);const _0x3eff0c=_0x2f260f['mapper']['toViewElement'](_0x2fbc04['item']);if(_0x2fbc04['item']['is']('element')&&_0x34ce2a['model']['schema']['isBlock'](_0x2fbc04['item'])&&!_0x3eff0c['getCustomProperty']('addHighlight')){_0x2f260f['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x3eff0c),_0x2f260f['writer']['setAttribute']('data-suggestion',_0x33c577,_0x3eff0c),_0x2f260f['writer']['setAttribute']('data-author-id',_0x26330f,_0x3eff0c),_0x2f260f['mapper']['bindElementToMarker'](_0x3eff0c,_0x2fbc04['markerName']),_0x293fb0&&(this['activeMarkers']['includes'](_0x2fbc04['markerName'])?_0x2f260f['writer']['addClass']('ck-suggestion-marker--active',_0x3eff0c):_0x2f260f['writer']['removeClass']('ck-suggestion-marker--active',_0x3eff0c));for(const _0x39e2ba of _0x34ce2a['model']['createRangeIn'](_0x2fbc04['item'])['getItems']())_0x2f260f['consumable']['consume'](_0x39e2ba,_0x445140['name']);_0x2f260f['consumable']['consume'](_0x2fbc04['item'],_0x445140['name']);}};_0x34ce2a['conversion']['for']('dataDowncast')['add'](_0x5a5d8e=>{_0x5a5d8e['on']('addMarker:suggestion:formatBlock',(_0x5e7b4f,_0x3b0e71,_0xa28161)=>{_0xa28161['options']['showSuggestionHighlights']&&_0x155e62({'showActiveMarkers':!0x1})(_0x5e7b4f,_0x3b0e71,_0xa28161);},{'priority':'highest'});}),_0x34ce2a['conversion']['for']('dataDowncast')['add'](_0x322d01=>{_0x322d01['on']('addMarker:suggestion:attribute',(_0x1c627d,_0x3c460d,_0x503015)=>{_0x503015['options']['showSuggestionHighlights']&&_0x155e62({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x1c627d,_0x3c460d,_0x503015);},{'priority':'highest'});}),_0x34ce2a['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x2e5179,_0x144b39)=>{if(_0x144b39['options']['showSuggestionHighlights']){const {id:_0x2e090c,authorId:_0x369f0e}=this['_splitMarkerName'](_0x2e5179);return _0x2e5179['includes'](':split')||_0x2e5179['includes'](':merge')?{'group':'suggestion','name':_0x2e5179['substr'](0xb),'attributes':{'data-suggestion':_0x2e090c,'data-author-id':_0x369f0e}}:null;}return{'group':'suggestion','name':_0x2e5179['substr'](0xb)};}}),_0x34ce2a['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x66ecc5,{writer:_0x3cf1bf})=>{let _0x44cce1='suggestion:'+_0x66ecc5['getAttribute']('suggestion-type')+':'+_0x66ecc5['getAttribute']('id');return _0x66ecc5['getAttribute']('marker-count')&&(_0x44cce1+=':'+_0x66ecc5['getAttribute']('marker-count')),_0x3cf1bf['createElement']('$marker',{'data-name':_0x44cce1});}}),_0x34ce2a['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x34ce2a['conversion']['for']('editingDowncast')['add'](_0x1779f3=>{_0x1779f3['on']('addMarker:suggestion:formatBlock',_0x155e62(),{'priority':'high'});}),_0x34ce2a['conversion']['for']('editingDowncast')['add'](_0xfd470a=>{_0xfd470a['on']('addMarker:suggestion:attribute',_0x155e62({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x34ce2a['conversion']['for']('editingDowncast')['add'](_0x4f7e55=>{_0x4f7e55['on']('removeMarker:suggestion:formatBlock',(_0x5161ad,_0x3a2616,_0x51041b)=>{const _0x418488=_0x51041b['mapper']['markerNameToElements'](_0x3a2616['markerName']);if(_0x418488){for(const _0x19f39a of _0x418488)_0x19f39a['getCustomProperty']('addHighlight')||(_0x51041b['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x19f39a),_0x51041b['writer']['removeAttribute']('data-suggestion',_0x19f39a),_0x51041b['writer']['removeAttribute']('data-author-id',_0x19f39a),_0x51041b['mapper']['unbindElementFromMarkerName'](_0x19f39a,_0x3a2616['markerName']));}},{'priority':'high'});}),_0x34ce2a['conversion']['for']('editingDowncast')['add'](_0x472c5e=>{_0x472c5e['on']('removeMarker:suggestion:attribute',(_0x335a66,_0x5e62db,_0x36381e)=>{const _0x7eb216=_0x36381e['mapper']['markerNameToElements'](_0x5e62db['markerName']);if(!_0x7eb216)return;const {id:_0x41083f}=this['_splitMarkerName'](_0x5e62db['markerName']),_0xe666c7=this['_suggestions']['get'](_0x41083f),_0x59cf6a=this['_getAttributeKey'](_0xe666c7);if(this['_isBlockAttribute'](_0x59cf6a)){for(const _0x464b75 of _0x7eb216)_0x464b75['getCustomProperty']('addHighlight')||(_0x36381e['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x464b75),_0x36381e['writer']['removeAttribute']('data-suggestion',_0x464b75),_0x36381e['writer']['removeAttribute']('data-author-id',_0x464b75),_0x36381e['mapper']['unbindElementFromMarkerName'](_0x464b75,_0x5e62db['markerName']));}},{'priority':'high'});}),_0x34ce2a['model']['document']['registerPostFixer'](_0xe86eda=>{let _0x2caf17=!0x1;const _0x9b3532=Array['from'](_0x34ce2a['model']['document']['differ']['getChangedMarkers']()),_0x8ae176=new Set();for(const {name:_0x17625e,data:_0x556caa}of _0x9b3532){const {group:_0x2ab1f7,type:_0x41a3c2,subType:_0x307728,id:_0x47cea8}=this['_splitMarkerName'](_0x17625e);if('suggestion'!==_0x2ab1f7)continue;const _0x64edf4=this['_suggestions']['get'](_0x47cea8);if(null!=_0x556caa['newRange']){'formatInline'==_0x41a3c2&&(_0x2caf17=_0x2caf17||Jt(_0x556caa['newRange'],_0x17625e,_0xe86eda,_0x34ce2a['model']['schema']));const _0x297917='attribute'==_0x41a3c2&&this['_isBlockAttribute'](_0x307728['split']('|')[0x0]);if(_0x556caa['newRange']['isCollapsed']||'$graveyard'==_0x556caa['newRange']['root']['rootName']||'formatBlock'==_0x41a3c2&&!Ht(_0x556caa['newRange'])||_0x297917&&!Ht(_0x556caa['newRange'])||'deletion'==_0x41a3c2&&!(!Lt(_0x4a3c79=_0x556caa['newRange'])&&!function(_0x5e100e){return _0x5e100e['start']['parent']==_0x5e100e['end']['nodeBefore']&&_0x5e100e['start']['isAtEnd'];}(_0x4a3c79)))_0xe86eda['removeMarker'](_0x17625e),_0x2caf17=!0x0;else{if(!_0x64edf4||!_0x64edf4['isInContent'])continue;if(_0x556caa['newRange']&&_0x556caa['oldRange']&&_0x556caa['newRange']['isEqual'](_0x556caa['oldRange']))continue;_0x8ae176['add'](_0x64edf4);}}}var _0x4a3c79;return _0x8ae176['size']>0x0&&(_0x2caf17=!!this['_joinWithAdjacentSuggestions'](_0x8ae176)||_0x2caf17),_0x2caf17;}),_0x34ce2a['model']['document']['registerPostFixer'](_0x2346b1=>{let _0x5128df=!0x1;for(const _0x403e16 of _0x34ce2a['model']['document']['differ']['getChanges']())if('insert'==_0x403e16['type'])for(const _0x3e79c of this['_suggestions']['values']()){if(_0x3e79c['isMultiRange']||!_0x3e79c['isInContent'])continue;const _0x28f5a7='formatBlock'==_0x3e79c['type'],_0x362921=this['_getAttributeKey'](_0x3e79c),_0x30212b=_0x362921&&this['_isBlockAttribute'](_0x362921);if(!_0x28f5a7&&!_0x30212b)continue;const _0x1b5f8c=_0x3e79c['getFirstRange']();if(_0x1b5f8c['start']['parent']!=_0x1b5f8c['end']['parent']&&!_0x1b5f8c['end']['isAtEnd']){const _0x30a6b3=_0x34ce2a['model']['createPositionAt'](_0x1b5f8c['start']['nodeAfter'],'end'),_0x287268=_0x34ce2a['model']['createRange'](_0x1b5f8c['start'],_0x30a6b3);_0x2346b1['updateMarker'](_0x3e79c['getFirstMarker'](),{'range':_0x287268}),_0x5128df=!0x0;}}return _0x5128df;}),_0x34ce2a['model']['document']['registerPostFixer'](_0x4a9d5f=>this['_processAttributeChanges'](_0x4a9d5f)),_0x34ce2a['model']['document']['registerPostFixer'](_0x114bb4=>!_0x114bb4['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x114bb4)),_0x34ce2a['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x34ce2a['model']['document']['on']('change:data',(_0xfa5b16,_0x42cb8d)=>{if(!_0x42cb8d['isLocal']||_0x42cb8d['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4cb9c0=_0x34ce2a['model']['document']['differ']['getChanges']();if(0x0==_0x4cb9c0['length'])return;const _0x5c9b41=[],_0x374e09=_0x4cb9c0['filter'](_0x275a56=>'attribute'==_0x275a56['type']),_0x525198=_0x4cb9c0['filter'](_0x14d07b=>'insert'==_0x14d07b['type']&&'$text'!=_0x14d07b['name']);for(const _0x1fbd31 of _0x374e09)this['_isRegisteredAttribute'](_0x1fbd31['attributeKey'])&&_0x5c9b41['push']({'key':_0x1fbd31['attributeKey'],'newValue':_0x1fbd31['attributeNewValue'],'oldValue':_0x1fbd31['attributeOldValue'],'range':qt(_0x1fbd31['range'],_0x34ce2a['model'])});for(const _0x1dd001 of _0x525198){if('rename'!=_0x1dd001['action']&&'refresh'!=_0x1dd001['action'])continue;const _0x1cec82=zt(_0x1dd001['position']['nodeAfter'],_0x34ce2a['model']),_0x33d961=_0x1dd001['before'];'rename'==_0x1dd001['action']&&_0x5c9b41['push']({'key':u,'newValue':_0x1dd001['name'],'oldValue':_0x33d961['name'],'range':_0x1cec82});for(const [_0x5d2c78,_0x13a182]of _0x33d961['attributes']){if(!this['_isRegisteredAttribute'](_0x5d2c78))continue;const _0x5a40cc=_0x1dd001['attributes']['get'](_0x5d2c78);_0x13a182!==_0x5a40cc&&_0x5c9b41['push']({'key':_0x5d2c78,'newValue':_0x5a40cc,'oldValue':_0x13a182,'range':_0x1cec82});}for(const [_0x277502,_0x1236e4]of _0x1dd001['attributes'])this['_isRegisteredAttribute'](_0x277502)&&(_0x33d961['attributes']['has'](_0x277502)||_0x5c9b41['push']({'key':_0x277502,'newValue':_0x1236e4,'oldValue':null,'range':_0x1cec82}));}0x0!=_0x5c9b41['length']&&_0x34ce2a['model']['enqueueChange'](_0x42cb8d,_0xf72838=>{const _0x1a4e8f=_0x12ee37();for(const {range:_0x172497,key:_0x5e2fd2,oldValue:_0x3916d6,newValue:_0x48f43b}of _0x5c9b41)this['markAttributeChange'](_0x172497,_0x5e2fd2,_0x3916d6,_0x48f43b,{'groupId':_0x1a4e8f});this['_reduceExistingSuggestions'](_0xf72838,_0x5c9b41);});},{'priority':'lowest'}),_0x34ce2a['model']['markers']['on']('update:suggestion',(_0xdb0b13,_0x4582fb,_0x13424f)=>{if(null==_0x13424f){const {id:_0x2086e1}=this['_splitMarkerName'](_0x4582fb['name']),_0x1a3e3b=this['_suggestions']['get'](_0x2086e1);_0x1a3e3b&&_0x1a3e3b['addMarkerName'](_0x4582fb['name']);}}),_0x34ce2a['model']['document']['on']('change:data',()=>{const _0x58859b=Array['from'](_0x34ce2a['model']['document']['differ']['getChangedMarkers']())['filter'](_0x19a53f=>'suggestion'===this['_splitMarkerName'](_0x19a53f['name'])['group']);if(0x0===_0x58859b['length'])return;_0x58859b['sort']((_0x3d14aa,_0x48e8c4)=>{const _0x1a81bb=_0x3d14aa['data']['oldRange'],_0x113954=_0x48e8c4['data']['oldRange'];return null===_0x1a81bb&&null===_0x113954?0x0:null===_0x1a81bb&&null!==_0x113954?-0x1:null!==_0x1a81bb&&null===_0x113954?0x1:_0x1a81bb['start']['isBefore'](_0x113954['start'])?-0x1:0x1;});const _0x1798ad=new Set(),_0x3bb617=new Set();for(const {name:_0x5cf2e3,data:_0x56b557}of _0x58859b){const {id:_0x1825f5}=this['_splitMarkerName'](_0x5cf2e3);if(null===_0x56b557['oldRange']){const _0x4b3954=this['_handleNewSuggestionMarker'](_0x5cf2e3);_0x3bb617['add'](_0x4b3954);}else{const _0xf9bcf4=this['_suggestions']['get'](_0x1825f5);null!==_0x56b557['newRange']||_0xf9bcf4['isInContent']?(_0x1798ad['add'](_0xf9bcf4['head']),_0x3bb617['add'](_0xf9bcf4)):this['_removeSuggestion'](_0xf9bcf4);}}_0x3bb617['size']>0x0&&this['_refreshSuggestionsChain'](_0x3bb617);for(const _0x950dae of _0x1798ad)this['fire']('suggestionChanged',_0x950dae);}),_0x34ce2a['model']['on']('applyOperation',(_0x37f65e,_0x3a234e)=>{const _0x13990b=_0x3a234e[0x0];if(!this['_suggestions']['size'])return;if(!_0x13990b['isDocumentOperation'])return;if(_0x13990b['batch']['isUndo']||!_0x13990b['batch']['isLocal'])return;let _0x52727a,_0x401d4a;switch(_0x13990b['type']){case'insert':_0x52727a=_0x34ce2a['model']['createPositionAt'](_0x13990b['position']),_0x401d4a=_0x52727a['getShiftedBy'](_0x13990b['howMany']);break;case'split':_0x52727a=_0x34ce2a['model']['createPositionAt'](_0x13990b['splitPosition']),_0x401d4a=_0x34ce2a['model']['createPositionAt'](_0x13990b['moveTargetPosition']);break;case'move':_0x52727a=_0x34ce2a['model']['createPositionAt'](_0x13990b['targetPosition']),_0x401d4a=_0x52727a['getShiftedBy'](_0x13990b['howMany']);break;default:return;}const _0xd3c5da=_0x34ce2a['model']['createRange'](_0x52727a,_0x401d4a);_0x34ce2a['model']['change'](()=>{for(const {suggestion:_0x20f785,meta:_0x5bbf43}of this['_findSuggestions'](_0xd3c5da)){if(_0x20f785['isMultiRange'])continue;if('formatInline'==_0x20f785['type'])continue;const _0x5bc0f1=this['_getAttributeKey'](_0x20f785);if(_0x5bc0f1&&this['_isBlockAttribute'](_0x5bc0f1)&&'split'!=_0x13990b['type'])continue;const _0x12c1af=_0x20f785['data']&&_0x20f785['data']['multipleBlocks'];('formatBlock'!=_0x20f785['type']||'split'==_0x13990b['type']&&!_0x12c1af)&&(_0x5bbf43['containsRangeInObject']||'insertion'==_0x20f785['type']&&_0x5bbf43['isOwn']||_0x20f785['getFirstRange']()['containsRange'](_0xd3c5da)&&this['_breakSuggestionMarker'](_0x20f785,_0x52727a,_0x401d4a));}});},{'priority':'lowest'}),_0x34ce2a['model']['on']('deleteContent',(_0x4c3140,_0x38cc24)=>{const _0x44a0e0=_0x38cc24[0x0],_0x44577b=_0x38cc24[0x1];if(_0x44577b&&_0x44577b['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x44a0e0['isCollapsed'])return;const _0x61d597=_0x34ce2a['model']['schema'],{start:_0x50f1a1,end:_0x4a6f1a}=_0x44a0e0['getFirstRange'](),_0xbbd397=_0x50f1a1['nodeAfter']&&_0x61d597['isLimit'](_0x50f1a1['nodeAfter'])?null:_0x61d597['getNearestSelectionRange'](_0x50f1a1,'forward'),_0x55f98a=_0x4a6f1a['nodeBefore']&&_0x61d597['isLimit'](_0x4a6f1a['nodeBefore'])?null:_0x61d597['getNearestSelectionRange'](_0x4a6f1a,'backward'),_0x10592e=_0x34ce2a['model']['createRange'](_0xbbd397?_0xbbd397['start']:_0x50f1a1,_0x55f98a?_0x55f98a['end']:_0x4a6f1a);_0x34ce2a['model']['change'](_0x2a1723=>{this['markDeletion'](_0x10592e);const _0x506054=_0x34ce2a['model']['schema']['getNearestSelectionRange'](_0x10592e['start']);_0x44a0e0['is']('documentSelection')?_0x2a1723['setSelection'](_0x506054):_0x44a0e0['setTo'](_0x506054);}),_0x4c3140['stop']();},{'priority':_0x2ef4ce['normal']+0xa}),_0x34ce2a['model']['on']('insertContent',(_0x51a924,_0x2729b0)=>{const _0x4fcf21=_0x2729b0[_0x2729b0['length']-0x1];_0x4fcf21&&_0x4fcf21['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x34ce2a['model']['change'](()=>{let _0x3fafd1=_0x34ce2a['model']['insertContent'](_0x2729b0[0x0],_0x2729b0[0x1],_0x2729b0[0x2],{'forceDefaultExecution':!0x0});if(!_0x3fafd1)return;_0x51a924['return']=_0x3fafd1['clone']();const _0x442ac7=_0x3fafd1['end']['nodeBefore'],_0x5a5b15=_0x34ce2a['model']['schema'];_0x442ac7&&_0x5a5b15['isBlock'](_0x442ac7)&&!_0x5a5b15['isObject'](_0x442ac7)&&(_0x3fafd1=_0x34ce2a['model']['createRange'](_0x3fafd1['start'],_0x34ce2a['model']['createPositionAt'](_0x442ac7,'end'))),this['markInsertion'](_0x3fafd1);}),_0x51a924['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x26d0cb=new x(_0x34ce2a,this['_suggestions']);_0x34ce2a['commands']['add']('acceptSuggestion',_0x26d0cb),this['enableCommand']('acceptSuggestion');const _0x22e3dc=new O(_0x34ce2a,this['_suggestions']);_0x34ce2a['commands']['add']('discardSuggestion',_0x22e3dc),this['enableCommand']('discardSuggestion'),_0x34ce2a['commands']['add']('acceptAllSuggestions',new R(_0x34ce2a,_0x26d0cb,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x34ce2a['commands']['add']('discardAllSuggestions',new R(_0x34ce2a,_0x22e3dc,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x34ce2a['commands']['add']('acceptSelectedSuggestions',new E(_0x34ce2a,_0x26d0cb,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x34ce2a['commands']['add']('discardSelectedSuggestions',new E(_0x34ce2a,_0x22e3dc,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2af871=_0x34ce2a['plugins']['get']('CommentsRepository');this['listenTo'](_0x2af871,'addComment',(_0x4eb114,{threadId:_0x326d26})=>{const _0x383319=this['_suggestions']['get'](_0x326d26);_0x383319&&_0x383319['commentThread']&&0x1===_0x383319['commentThread']['length']&&this['_updateSuggestionData'](_0x326d26,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2af871,'removeComment',(_0x3c6b22,{threadId:_0x1730b2})=>{const _0xb74508=this['_suggestions']['get'](_0x1730b2);_0xb74508&&_0xb74508['commentThread']&&!_0xb74508['commentThread']['length']&&this['_updateSuggestionData'](_0x1730b2,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x22fa7a){const _0x36e233=_0x11a22a([0x35,0x50,0x4c,0x53,0x46,0x4a,0x52,0x47,0x6f,0x43,0x44,0x37,0x57,0x32,0x51,0x39,0x75,0x4f,0x33,0x4d,0x71,0x63,0x34,0x59,0x30,0x61,0x4b,0x76,0x55,0x48,0x4e,0x45,0x74,0x62,0x70,0x69,0x42,0x6a,0x6d,0x72,0x41,0x36,0x54,0x58,0x68,0x6c,0x66,0x31,0x64,0x38,0x77,0x73,0x6e,0x65,0x49,0x6b,0x7a,0x5a,0x67,0x79,0x56,0x78]),_0x449c62=0x1c3fef4,_0x456729=0x1c49424^_0x449c62,_0x30ad91=window[_0x11a22a([0x44,0x61,0x74,0x65])][_0x11a22a([0x6e,0x6f,0x77])](),_0x44f2d7=_0x22fa7a[_0x11a22a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2b879d=new window[(_0x11a22a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xebef6c=>{_0x44f2d7[_0x11a22a([0x6f,0x6e,0x63,0x65])](_0x11a22a([0x72,0x65,0x61,0x64,0x79]),_0xebef6c);}),_0x1c0b39={[_0x11a22a([0x6b,0x74,0x79])]:_0x11a22a([0x45,0x43]),[_0x11a22a([0x75,0x73,0x65])]:_0x11a22a([0x73,0x69,0x67]),[_0x11a22a([0x63,0x72,0x76])]:_0x11a22a([0x50,0x2d,0x32,0x35,0x36]),[_0x11a22a([0x78])]:_0x11a22a([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]),[_0x11a22a([0x79])]:_0x11a22a([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]),[_0x11a22a([0x61,0x6c,0x67])]:_0x11a22a([0x45,0x53,0x32,0x35,0x36])},_0xec3d7c=_0x44f2d7[_0x11a22a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x11a22a([0x67,0x65,0x74])](_0x11a22a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1fe8b0(){let _0x34781d,_0x4787ba=null,_0x3720f9=null;try{if(_0xec3d7c==_0x11a22a([0x47,0x50,0x4c]))return _0x11a22a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x34781d=_0x157442(),!_0x34781d)return _0x11a22a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x34781d[_0x11a22a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3720f9=_0x1623c5(_0x34781d[_0x11a22a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x34781d[_0x11a22a([0x6a,0x74,0x69])])),await _0x4666ad()?_0x3fd7f0()?_0x15c095()?_0x11a22a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x195901()?(_0x34781d[_0x11a22a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x11a22a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4787ba=_0x3cd6ea(_0x11a22a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x34781d[_0x11a22a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x11a22a([0x74,0x72,0x69,0x61,0x6c])&&(_0x4787ba=_0x3cd6ea(_0x11a22a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x677645()):_0x11a22a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x11a22a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x11a22a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x11a22a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x15c095(){const _0x4dde09=[_0x11a22a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x11a22a([0x74,0x72,0x69,0x61,0x6c])][_0x11a22a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34781d[_0x11a22a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x30ad91/0x3e8:0xe10*_0x456729;return _0x34781d[_0x11a22a([0x65,0x78,0x70])]<_0x4dde09;}function _0x3fd7f0(){const _0x3c55f1=_0x34781d[_0x11a22a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3c55f1)return!0x1;if(_0x3c55f1[_0x11a22a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11a22a([0x2a])))return!0x0;if(_0x3c55f1[_0x11a22a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11a22a([0x54,0x43])))return!0x0;if(_0x3c55f1[_0x11a22a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11a22a([0x52,0x54,0x43]))){if(_0x404574())return!0x0;if(_0x1ee6a6()||_0x2773b9())return!0x0;}return!0x1;}function _0x195901(){const _0x4f14e1=_0x34781d[_0x11a22a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4f14e1||0x0==_0x4f14e1[_0x11a22a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1ba3d8}=new URL(window[_0x11a22a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4f14e1[_0x11a22a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ba3d8))return!0x0;const _0x1d0288=_0x1ba3d8[_0x11a22a([0x73,0x70,0x6c,0x69,0x74])](_0x11a22a([0x2e]));return _0x4f14e1[_0x11a22a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4479f9=>_0x4479f9[_0x11a22a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11a22a([0x2a])))[_0x11a22a([0x6d,0x61,0x70])](_0x3881a5=>_0x3881a5[_0x11a22a([0x73,0x70,0x6c,0x69,0x74])](_0x11a22a([0x2e])))[_0x11a22a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x199444=>_0x199444[_0x11a22a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1d0288[_0x11a22a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x11a22a([0x6d,0x61,0x70])](_0x69a9f=>Array(_0x1d0288[_0x11a22a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x69a9f[_0x11a22a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x11a22a([0x66,0x69,0x6c,0x6c])](_0x69a9f[0x0]===_0x11a22a([0x2a])?_0x11a22a([0x2a]):'')[_0x11a22a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x69a9f))[_0x11a22a([0x73,0x6f,0x6d,0x65])](_0x2a9b4d=>_0x1d0288[_0x11a22a([0x65,0x76,0x65,0x72,0x79])]((_0x3b966f,_0x49f4fc)=>_0x2a9b4d[_0x49f4fc]===_0x3b966f||_0x2a9b4d[_0x49f4fc]===_0x11a22a([0x2a])));}function _0x677645(){return _0x4787ba&&_0x3720f9?new window[(_0x11a22a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xc83147,_0x14a7b4)=>{_0x4787ba[_0x11a22a([0x74,0x68,0x65,0x6e])](_0xc83147,_0x14a7b4),_0x3720f9[_0x11a22a([0x74,0x68,0x65,0x6e])](_0x473096=>{_0x473096!=_0x11a22a([0x56,0x61,0x6c,0x69,0x64])&&_0xc83147(_0x473096);},_0x14a7b4);}):_0x4787ba||_0x3720f9||_0x11a22a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1623c5(_0x3c484e,_0x9cc0d8){return new window[(_0x11a22a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x27653c=>{if(_0x4f5852())return _0x27653c(_0x11a22a([0x56,0x61,0x6c,0x69,0x64]));_0x2ab860(),_0x44f2d7[_0x11a22a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x11a22a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1a0b3f=!0x1;const _0x4acbb1=_0x12ee37();function _0x5f1590(_0x3ef6e4){return!!_0x3ef6e4&&(typeof _0x3ef6e4===_0x11a22a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3ef6e4===_0x11a22a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3ef6e4[_0x11a22a([0x74,0x68,0x65,0x6e])]===_0x11a22a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3ef6e4[_0x11a22a([0x63,0x61,0x74,0x63,0x68])]===_0x11a22a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5ea74e(_0x2ba884){_0x282069(_0x2ba884)[_0x11a22a([0x74,0x68,0x65,0x6e])](_0x2d29a9=>{if(!_0x2d29a9||_0x2d29a9[_0x11a22a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x11a22a([0x6f,0x6b]))return _0x11a22a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2aed12(_0x175afd(_0x4acbb1+_0x9cc0d8))!=_0x2d29a9[_0x11a22a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x11a22a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x11a22a([0x56,0x61,0x6c,0x69,0x64]);})[_0x11a22a([0x74,0x68,0x65,0x6e])](_0xf74856=>(_0x504145(),_0xf74856),()=>{const _0x549934=_0x11ee21();return null==_0x549934?(_0x504145(),_0x11a22a([0x56,0x61,0x6c,0x69,0x64])):_0x11a22a(_0x30ad91-_0x549934>(0x25cf7af4^_0x449c62)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x11a22a([0x74,0x68,0x65,0x6e])](_0x27653c)[_0x11a22a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x27653c(_0x11a22a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x332924=0x1f51074^_0x449c62;function _0x504145(){const _0x340818=_0x11a22a([0x6c,0x6c,0x63,0x74,0x2d])+_0x2aed12(_0x175afd(_0x3c484e)),_0x1e3409=_0x150360(_0x2aed12(window[_0x11a22a([0x4d,0x61,0x74,0x68])][_0x11a22a([0x63,0x65,0x69,0x6c])](_0x30ad91/_0x332924)));window[_0x11a22a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x11a22a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x340818,_0x1e3409);}function _0x11ee21(){const _0x2b2e72=_0x11a22a([0x6c,0x6c,0x63,0x74,0x2d])+_0x2aed12(_0x175afd(_0x3c484e)),_0x1f6fed=window[_0x11a22a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x11a22a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2b2e72);return _0x1f6fed?window[_0x11a22a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x150360(_0x1f6fed),0x10)*_0x332924:null;}function _0x282069(_0x202c5b){return new window[(_0x11a22a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4c12e5,_0x4449c6)=>{_0x202c5b[_0x11a22a([0x74,0x68,0x65,0x6e])](_0x4c12e5,_0x4449c6),window[_0x11a22a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4449c6,0x1c22a34^_0x449c62);});}}_0x44f2d7[_0x11a22a([0x6f,0x6e])](_0x11a22a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x59de3c,_0x13121a)=>{if(_0x13121a[0x0]!=_0x3c484e)return _0x27653c(_0x11a22a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x13121a[0x1]={..._0x13121a[0x1],[_0x11a22a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4acbb1};},{[_0x11a22a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x11a22a([0x68,0x69,0x67,0x68])}),_0x44f2d7[_0x11a22a([0x6f,0x6e])](_0x11a22a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x319eb4=>{_0x5f1590(_0x319eb4[_0x11a22a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1a0b3f=!0x0,_0x5ea74e(_0x319eb4[_0x11a22a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x11a22a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x11a22a([0x6c,0x6f,0x77])}),_0x2b879d[_0x11a22a([0x74,0x68,0x65,0x6e])](()=>{_0x1a0b3f||_0x27653c(_0x11a22a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4f5852(){return _0x44f2d7[_0x11a22a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x11a22a([0x76,0x69,0x65,0x77])][_0x11a22a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x11a22a([0x61,0x75,0x74,0x6f]);}function _0x2ab860(){_0x44f2d7[_0x11a22a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x11a22a([0x76,0x69,0x65,0x77])][_0x11a22a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x11a22a([0x61,0x75,0x74,0x6f]);}}function _0x3cd6ea(_0x11acfe){const _0x1ab3be=[new window[(_0x11a22a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a690a=>setTimeout(_0x4a690a,0x1cac038^_0x449c62)),_0x2b879d[_0x11a22a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x11a22a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x8d7fe1=>{let _0x3bddaf=0x0;_0x44f2d7[_0x11a22a([0x6d,0x6f,0x64,0x65,0x6c])][_0x11a22a([0x6f,0x6e])](_0x11a22a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2c9c03,_0x583e12)=>{_0x583e12[0x0][_0x11a22a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3bddaf++,_0x3bddaf==(0x1c3ff0c^_0x449c62)&&(_0x8d7fe1(),_0x2c9c03[_0x11a22a([0x6f,0x66,0x66])]());});}))];return window[_0x11a22a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x11a22a([0x72,0x61,0x63,0x65])](_0x1ab3be)[_0x11a22a([0x74,0x68,0x65,0x6e])](()=>_0x11acfe);}async function _0x11b24b(){await _0x2b879d,_0x44f2d7[_0x11a22a([0x6d,0x6f,0x64,0x65,0x6c])][_0x11a22a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5d7de8,_0x44f2d7[_0x11a22a([0x6d,0x6f,0x64,0x65,0x6c])][_0x11a22a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5d7de8,_0x44f2d7[_0x11a22a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x11a22a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x404574(){return _0x35cd84(_0x11a22a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x121128(_0x11a22a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x11a22a([0x73,0x74,0x61,0x74,0x65])]==_0x11a22a([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1ee6a6(){return _0x35cd84(_0x11a22a([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 _0x2773b9(){return _0x35cd84(_0x11a22a([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x496fdd(_0x2013d1){const _0x5f2c16=_0x162d0a();_0x44f2d7[_0x5f2c16]=_0x11a22a([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2013d1,_0x2013d1!=_0x11a22a([0x56,0x61,0x6c,0x69,0x64])&&_0x11b24b();}function _0x162d0a(){const _0x3e1cff=window[_0x11a22a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x11a22a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x11a22a([0x6e,0x6f,0x77])]())[_0x11a22a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x11a22a([0x2e]),'');let _0x40293a=_0x11a22a([0x50]);for(let _0x13c707=0x0;_0x13c707<_0x3e1cff[_0x11a22a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x13c707+=0x2){let _0x369c22=window[_0x11a22a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e1cff[_0x11a22a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x13c707,_0x13c707+0x2));_0x369c22>=_0x36e233[_0x11a22a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x369c22-=_0x36e233[_0x11a22a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x40293a+=_0x36e233[_0x369c22];}return _0x40293a;}function _0x157442(){const _0xdbcf9f=_0xec3d7c[_0x11a22a([0x73,0x70,0x6c,0x69,0x74])](_0x11a22a([0x2e]));if(0x3!=_0xdbcf9f[_0x11a22a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5a660c(_0xdbcf9f[0x1]);function _0x5a660c(_0x1cff5b){const _0x1b4897=_0x383caa(_0x1cff5b);return _0x1b4897&&_0x418c19()?_0x1b4897:null;function _0x418c19(){const _0x43f46d=_0x1b4897[_0x11a22a([0x6a,0x74,0x69])],_0x4c8f3b=window[_0x11a22a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x43f46d[_0x11a22a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x43f46d[_0x11a22a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2c0ca0={..._0x1b4897,[_0x11a22a([0x6a,0x74,0x69])]:_0x43f46d[_0x11a22a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x43f46d[_0x11a22a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2c0ca0[_0x11a22a([0x76,0x63])],_0x175afd(_0x2c0ca0)==_0x4c8f3b;}}}async function _0x4666ad(){let _0x37b82d=!0x0;try{const _0x1814b0=_0xec3d7c[_0x11a22a([0x73,0x70,0x6c,0x69,0x74])](_0x11a22a([0x2e])),[_0x414bc3,_0x13598c,_0x4ba61e]=_0x1814b0;return _0x212aa7(_0x414bc3),await _0x419c2d(_0x414bc3,_0x13598c,_0x4ba61e),_0x37b82d;}catch{return!0x1;}function _0x212aa7(_0x2a9fcd){const _0x4f5491=_0x383caa(_0x2a9fcd);_0x4f5491&&_0x4f5491[_0x11a22a([0x61,0x6c,0x67])]==_0x11a22a([0x45,0x53,0x32,0x35,0x36])||(_0x37b82d=!0x1);}async function _0x419c2d(_0x1955de,_0x32b284,_0x3df6e0){const _0x687e5f=window[_0x11a22a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x11a22a([0x66,0x72,0x6f,0x6d])](_0x1117d5(_0x3df6e0),_0x390d1a=>_0x390d1a[_0x11a22a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x136be5=new window[(_0x11a22a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x11a22a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1955de+_0x11a22a([0x2e])+_0x32b284),_0x14830f=window[_0x11a22a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x11a22a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x14830f)return;const _0xc85eb9=await _0x14830f[_0x11a22a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x11a22a([0x6a,0x77,0x6b]),_0x1c0b39,{[_0x11a22a([0x6e,0x61,0x6d,0x65])]:_0x11a22a([0x45,0x43,0x44,0x53,0x41]),[_0x11a22a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x11a22a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x11a22a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x14830f[_0x11a22a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x11a22a([0x6e,0x61,0x6d,0x65])]:_0x11a22a([0x45,0x43,0x44,0x53,0x41]),[_0x11a22a([0x68,0x61,0x73,0x68])]:{[_0x11a22a([0x6e,0x61,0x6d,0x65])]:_0x11a22a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xc85eb9,_0x687e5f,_0x136be5)||(_0x37b82d=!0x1);}}function _0x383caa(_0x5c9912){return _0x5c9912[_0x11a22a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x11a22a([0x65,0x79]))?JSON[_0x11a22a([0x70,0x61,0x72,0x73,0x65])](_0x1117d5(_0x5c9912)):null;}function _0x1117d5(_0x31c9ed){return window[_0x11a22a([0x61,0x74,0x6f,0x62])](_0x31c9ed[_0x11a22a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x11a22a([0x2b]))[_0x11a22a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x11a22a([0x2f])));}function _0x175afd(_0x5d16be){let _0x561fab=0x1505;function _0x2a9b15(_0x46513c){for(let _0x3ec0da=0x0;_0x3ec0da<_0x46513c[_0x11a22a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3ec0da++){const _0x1e3739=_0x46513c[_0x11a22a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3ec0da);_0x561fab=(_0x561fab<<0x5)+_0x561fab+_0x1e3739,_0x561fab&=_0x561fab;}}function _0x28749f(_0x2b18cd){Array[_0x11a22a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2b18cd)?_0x2b18cd[_0x11a22a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x28749f):_0x2b18cd&&typeof _0x2b18cd==_0x11a22a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x11a22a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2b18cd)[_0x11a22a([0x73,0x6f,0x72,0x74])]()[_0x11a22a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x289b79,_0x2e9d59])=>{_0x2a9b15(_0x289b79),_0x28749f(_0x2e9d59);}):_0x2a9b15(window[_0x11a22a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2b18cd));}return _0x28749f(_0x5d16be),_0x561fab>>>0x0;}function _0x2aed12(_0x51f768){return _0x51f768[_0x11a22a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x11a22a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x11a22a([0x30]));}function _0x150360(_0xa55d7){return _0xa55d7[_0x11a22a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x11a22a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x11a22a([0x6a,0x6f,0x69,0x6e])]('');}function _0x35cd84(_0x40c66d){return _0x44f2d7[_0x11a22a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x11a22a([0x68,0x61,0x73])](_0x40c66d);}function _0x121128(_0x4c83a0){return _0x44f2d7[_0x11a22a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x11a22a([0x67,0x65,0x74])](_0x4c83a0);}function _0x5d7de8(){}function _0x11a22a(_0x18d3f9){return _0x18d3f9['map'](_0x16b218=>String['fromCharCode'](_0x16b218))['join']('');}_0x496fdd(await _0x1fe8b0());}(this);}set['adapter'](_0x52e708){if(this['_adapter'])throw new _0x1cd3be('track-changes-adapter-already-set',this);this['_adapter']=_0x52e708;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x5d36c7=!0x1,toJSON:_0x1e946a=!0x1}={}){const _0x1cdf3f=[];for(const _0x4ad7cb of this['_suggestions']['values']())_0x5d36c7&&!_0x4ad7cb['isInContent']||_0x1cdf3f['push'](_0x4ad7cb);return _0x1e946a?_0x1cdf3f['map'](_0x4c01a0=>_0x4c01a0['toJSON']()):_0x1cdf3f;}['getSuggestion'](_0x308cd1){const _0x14d5e2=this['_suggestions']['get'](_0x308cd1);if(!_0x14d5e2)throw new _0x1cd3be('track-changes-suggestion-not-found',this);return _0x14d5e2;}['hasSuggestion'](_0x134324){return this['_suggestions']['has'](_0x134324);}['addSuggestionData'](_0x2b6d6a){const {authorId:_0x11b0d8,id:_0x55422f,originalSuggestionId:_0x2e4b56,attributes:_0x53de87}=_0x2b6d6a,[_0x4056a9,_0x34c4fe]=_0x2b6d6a['type']['split'](':'),_0x26046e=this['_suggestions']['get'](_0x55422f)||this['_createSuggestion'](_0x4056a9,_0x34c4fe,_0x55422f,_0x11b0d8,_0x53de87,_0x2e4b56);if(this['_addThreadToSuggestion'](_0x26046e),this['_checkSuggestionCorrectness'](_0x26046e,_0x4056a9,_0x34c4fe||null,_0x11b0d8),_0x26046e['createdAt']=_0x2b6d6a['createdAt'],_0x26046e['_isDataLoaded']=!0x0,_0x53de87&&_0x53de87['@external']){const _0x17ba8a=_0x53de87['@external'],_0xf9f3e8=this['_getExternalAuthor'](_0x17ba8a['authorName']);_0x26046e['authoredAt']=_0x17ba8a['createdAt'],_0x26046e['author']=_0xf9f3e8,_0x26046e['isExternal']=!0x0;}else _0x26046e['authoredAt']=_0x2b6d6a['createdAt'];switch(_0x2b6d6a['data']&&(_0x26046e['data']=_0x2b6d6a['data']),_0x2b6d6a['attributes']&&(_0x26046e['attributes']=_0x2b6d6a['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x26046e['_saved']=!0x0),this['_suggestionState']['get'](_0x26046e)){case'notReady':this['_suggestionState']['set'](_0x26046e,'dataReady');break;case'markerReady':_0x26046e['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x26046e])),this['_refreshSuggestionsChain'](new Set([_0x26046e])),this['_suggestionState']['set'](_0x26046e,'ready'),this['fire']('suggestionLoaded',_0x26046e)):this['_suggestionState']['set'](_0x26046e,'removed');}return _0x26046e;}['acceptSuggestion'](_0xef87){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4e2cd8 of _0xef87['getAllAdjacentSuggestions']())_0x4e2cd8['accept']();});});}['discardSuggestion'](_0x1444ed){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3e08fd of _0x1444ed['getAllAdjacentSuggestions']())_0x3e08fd['discard']();});});}['enableCommand'](_0x9c1c27,_0x3be28a){const _0x2408fb=this['editor']['commands']['get'](_0x9c1c27);if(!_0x2408fb)throw new _0x1cd3be('track-changes-command-not-found',this,{'commandName':_0x9c1c27});if(this['_enabledCommands']['has'](_0x2408fb))throw new _0x1cd3be('track-changes-enable-command-twice',this,{'commandName':_0x9c1c27});this['_enabledCommands']['add'](_0x2408fb),_0x3be28a&&_0x2408fb['on']('execute',(_0x1663cd,_0x3b3812)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x3b3812['length']>0x0&&_0x3b3812[_0x3b3812['length']-0x1]&&_0x3b3812[_0x3b3812['length']-0x1]['forceDefaultExecution']?_0x3b3812['pop']():(_0x1663cd['return']=_0x3be28a((..._0x45b8f2)=>_0x2408fb['execute'](..._0x45b8f2,{'forceDefaultExecution':!0x0}),..._0x3b3812),_0x1663cd['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5906ac){let _0x38ceb9,_0x38a490;const _0x23701c=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x38ceb9=_0x5906ac();}catch(_0x483942){_0x38a490=_0x483942;}return _0x23701c||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x38a490&&_0x1cd3be['rethrowUnexpectedError'](_0x38a490,this),_0x38ceb9;}['markInsertion'](_0x468114,_0x4d9a05=null,_0x331ee2={}){if(_0x468114['isCollapsed'])return null;const _0x510baa=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x331ee2['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x13b961,meta:_0x55a644}of this['_findSuggestions'](_0x468114,'insertion'))if(_0x55a644['isOwn']){if(!_0x55a644['isNextTo']){if(_0x55a644['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x13b961,_0x331ee2))continue;return _0x13b961;}if(Xt(_0x13b961,_0x331ee2))return _0x13b961;this['_breakSuggestionMarker'](_0x13b961,_0x468114['start'],_0x468114['end']);break;}if(_0x4d9a05==_0x13b961['subType']&&Xt(_0x13b961,_0x331ee2)){const _0x4f388a=_0x13b961['getFirstRange']();return _0x4f388a['start']['isEqual'](_0x468114['end'])?this['_setSuggestionRange'](_0x13b961,this['_model']['createRange'](_0x468114['start'],_0x4f388a['end'])):this['_setSuggestionRange'](_0x13b961,this['_model']['createRange'](_0x4f388a['start'],_0x468114['end'])),_0x13b961;}}const _0x571035=_0x12ee37(),_0x3b22a3=_0x510baa['id'],_0x2202a5=_0x4d9a05?'insertion:'+_0x4d9a05:'insertion',_0x1dd3b2=this['_setSuggestionData']({'id':_0x571035,'type':_0x2202a5,'createdAt':new Date(),'authorId':_0x3b22a3,'attributes':_0x331ee2});return this['_addSuggestionMarker'](_0x2202a5,_0x571035,_0x3b22a3,_0x468114),_0x1dd3b2;}['markMultiRangeInsertion'](_0x4c3d3f,_0x4329ed='multi',_0x5d4aaf={}){const _0x32f0f7=this['editor']['plugins']['get']('Users')['me'],_0x4bc578=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x4329ed,'join');this['_trackingSessionId']&&(_0x5d4aaf['trackingSessionId']=this['_trackingSessionId']);for(const _0x4088af of this['getSuggestions']())if(_0x4088af['author']['id']==_0x32f0f7['id']&&'insertion'==_0x4088af['type']&&_0x4088af['subType']==_0x4329ed&&Xt(_0x4088af,_0x5d4aaf)&&(_0x4bc578(_0x4088af['getRanges'](),_0x4c3d3f)||_0x4bc578(_0x4c3d3f,_0x4088af['getRanges']()))){for(const _0x3b2922 of _0x4c3d3f)_0x4088af['addRange'](_0x3b2922);return _0x4088af;}for(const {suggestion:_0x358697,meta:_0xeb2716}of this['_findSuggestions'](_0x4c3d3f,'insertion')){if(!_0xeb2716['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0xeb2716['containsRangeInObject'])continue;if(!Xt(_0x358697,_0x5d4aaf))continue;let _0x556396=!0x0;for(const _0x289b52 of _0x358697['getRanges']())for(const _0x4edb97 of _0x4c3d3f)if(!_0x289b52['containsRange'](_0x4edb97)){_0x556396=!0x1;break;}if(_0x556396)return _0x358697;}const _0x3bb5fb=_0x12ee37(),_0x4ddb34=_0x32f0f7['id'],_0x4405f8='insertion:'+_0x4329ed,_0xb6f3f1=this['_setSuggestionData']({'id':_0x3bb5fb,'type':_0x4405f8,'createdAt':new Date(),'authorId':_0x4ddb34,'attributes':_0x5d4aaf});for(const _0x171689 of _0x4c3d3f)this['_addSuggestionMarker'](_0x4405f8,_0x3bb5fb,_0x4ddb34,_0x171689,o['getMultiRangeId']());return _0xb6f3f1;}['markInlineFormat'](_0x1fd526,_0x1ecbd1,_0x26b86f=null,_0x145067={}){if(_0x26b86f=_0x26b86f||Kt(_0x1ecbd1),_0x1fd526['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x145067['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x509013=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x26b86f,'accept');return this['forceDefaultExecution'](()=>_0x509013([_0x1fd526],_0x1ecbd1,_0x145067)),null;}const _0x161ede=this['editor']['plugins']['get']('Users')['me'],_0x2f7474=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x1f906a,meta:_0x394551}of this['_findSuggestions'](_0x1fd526,'insertion'))_0x394551['isOwn']&&!_0x394551['isInsideObject']&&_0x2f7474['push'](..._0x1f906a['getRanges']());}const _0x310dde=function(_0x910a72,_0x4bf251){const _0x455f4f=[];for(const _0xe62fa2 of _0x4bf251){const _0x4f143a=_0x910a72['getIntersection'](_0xe62fa2);_0x4f143a&&_0x455f4f['push'](_0x4f143a);}return _0x455f4f;}(_0x1fd526,_0x2f7474),_0x169f7f=function(_0x2f3df1,_0x4456ae){const _0x14809f=[_0x2f3df1];for(const _0x2b798c of _0x4456ae){let _0x410017=0x0;for(;_0x410017<_0x14809f['length'];){const _0x7138aa=_0x14809f[_0x410017]['getDifference'](_0x2b798c);_0x14809f['splice'](_0x410017,0x1,..._0x7138aa),_0x410017+=_0x7138aa['length'];}}return _0x14809f;}(_0x1fd526,_0x2f7474);_0x310dde['length']&&this['_model']['change'](()=>{for(const _0x2eb75a of _0x310dde){const _0x2af6af=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x26b86f,'accept');this['forceDefaultExecution'](()=>_0x2af6af([_0x2eb75a],_0x1ecbd1,_0x145067));}});for(const _0x404792 of _0x169f7f){let _0x37dcd6=null,_0x6da89=_0x404792['start'],_0x2160d1=_0x404792['end'];for(const {suggestion:_0xef52fb,meta:_0x49401b}of this['_findSuggestions'](_0x404792,'formatInline')){if(!_0x49401b['isOwn'])continue;if(_0xef52fb['subType']!=_0x26b86f)continue;if(!Xt(_0xef52fb,_0x145067))continue;const _0x3a1077=_0xef52fb['getFirstRange']();if(_0x3a1077['containsRange'](_0x404792,!0x0))return null;_0x6da89=_0x6da89['isBefore'](_0x3a1077['start'])?_0x6da89:_0x3a1077['start'],_0x2160d1=_0x2160d1['isAfter'](_0x3a1077['end'])?_0x2160d1:_0x3a1077['end'],_0x37dcd6?_0x3a1077['start']['isBefore'](_0x37dcd6['getFirstRange']()['start'])?(_0x37dcd6['removeMarkers'](),_0x37dcd6=_0xef52fb):_0xef52fb['removeMarkers']():_0x37dcd6=_0xef52fb;}const _0x28ddf1=this['_model']['createRange'](_0x6da89,_0x2160d1);if(_0x37dcd6)this['_setSuggestionRange'](_0x37dcd6,_0x28ddf1);else{const _0x462fbc=_0x12ee37(),_0x309388=_0x161ede['id'];this['_setSuggestionData']({'id':_0x462fbc,'type':'formatInline:'+_0x26b86f,'data':_0x1ecbd1,'createdAt':new Date(),'authorId':_0x309388,'attributes':_0x145067}),this['_addSuggestionMarker']('formatInline:'+_0x26b86f,_0x462fbc,_0x309388,_0x28ddf1);}}return null;}['markBlockFormat'](_0x46f199,_0x72ba94,_0x47289f=[],_0x5914f5=null,_0x17c7cd={}){_0x72ba94['formatGroupId']||(_0x72ba94['formatGroupId']=_0x72ba94['commandName']),_0x72ba94['multipleBlocks']=_0x46f199['is']('range'),_0x5914f5=_0x5914f5||Kt(_0x72ba94);const _0xd57e72=_0x47289f['map'](_0x2198ef=>zt(_0x2198ef,this['_model'])),_0x4b633d=_0x46f199['is']('range')?_0x46f199:zt(_0x46f199,this['_model']);if(this['_trackingSessionId']&&(_0x17c7cd['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4783da=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5914f5,'accept');return this['forceDefaultExecution'](()=>_0x4783da([_0x4b633d],_0x72ba94,_0x17c7cd)),null;}_0xd57e72['push'](_0x4b633d);let _0x54490c=!0x0;for(const _0x58fdd8 of _0xd57e72)if(!this['_rangeIsInLocalUserInsertion'](_0x58fdd8)){_0x54490c=!0x1;break;}if(_0x54490c&&'always'!==this['_trackFormatChanges']){const _0x1665c9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5914f5,'accept');return this['forceDefaultExecution'](()=>_0x1665c9([_0x4b633d],_0x72ba94,_0x17c7cd)),null;}let _0x2dab34=null,_0x54926f=_0x4b633d['start'],_0x2ec52a=_0x4b633d['end'];for(const {suggestion:_0x4a4083,meta:_0x40c752}of this['_findSuggestions'](_0x4b633d,'formatBlock')){if(!_0x40c752['isOwn'])continue;if(_0x40c752['isNextTo']||_0x40c752['containsRangeInObject']||_0x40c752['isInsideObject'])continue;if(_0x4a4083['data']['formatGroupId']!=_0x72ba94['formatGroupId'])continue;if(!Xt(_0x4a4083,_0x17c7cd))continue;const _0x4ecd6f=_0x4a4083['getFirstRange']();if(_0x4a4083['subType']==_0x5914f5){if(_0x4ecd6f['containsRange'](_0x4b633d,!0x0))return null;_0x54926f=_0x54926f['isBefore'](_0x4ecd6f['start'])?_0x54926f:_0x4ecd6f['start'],_0x2ec52a=_0x2ec52a['isAfter'](_0x4ecd6f['end'])?_0x2ec52a:_0x4ecd6f['end'],_0x2dab34?_0x4ecd6f['start']['isBefore'](_0x2dab34['getFirstRange']()['start'])?(_0x2dab34['removeMarkers'](),_0x2dab34=_0x4a4083):_0x4a4083['removeMarkers']():_0x2dab34=_0x4a4083;}else{const _0x574d3a=_0x4b633d['getIntersection'](_0x4ecd6f);this['_cutOutSuggestionMarker'](_0x4a4083,_0x574d3a);}}const _0xdda85d=this['editor']['plugins']['get']('Users')['me'],_0x589399=_0x12ee37(),_0x368066=_0xdda85d['id'];if(_0x2dab34)return this['_setSuggestionRange'](_0x2dab34,this['_model']['createRange'](_0x54926f,_0x2ec52a)),_0x2dab34;{const _0x29ad3a=this['_setSuggestionData']({'id':_0x589399,'type':'formatBlock:'+_0x5914f5,'data':_0x72ba94,'createdAt':new Date(),'authorId':_0x368066,'attributes':_0x17c7cd});return this['_addSuggestionMarker']('formatBlock:'+_0x5914f5,_0x589399,_0x368066,this['_model']['createRange'](_0x54926f,_0x2ec52a)),_0x29ad3a;}}['markMultiRangeBlockFormat'](_0x482a05,_0x439127,_0x3f9e16=[],_0xae857=null,_0x4ba5ab={}){_0x439127['formatGroupId']||(_0x439127['formatGroupId']=_0x439127['commandName']);const _0x172221=_0x482a05[0x0];_0x439127['multipleBlocks']=_0x172221['is']('range'),_0xae857=_0xae857||Kt(_0x439127);const _0x3e5927=_0x3f9e16['map'](_0x23aa11=>zt(_0x23aa11,this['_model'])),_0xaa19d=_0x172221['is']('range')?_0x482a05:_0x482a05['map'](_0x53c3f5=>zt(_0x53c3f5,this['_model']));if(this['_trackingSessionId']&&(_0x4ba5ab['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4d9067=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xae857,'accept');return this['forceDefaultExecution'](()=>_0x4d9067(_0xaa19d,_0x439127,_0x4ba5ab)),null;}_0x3e5927['push'](..._0xaa19d);let _0x4e13d5=!0x0;for(const _0x374d17 of _0x3e5927)if(!this['_rangeIsInLocalUserInsertion'](_0x374d17)){_0x4e13d5=!0x1;break;}if(_0x4e13d5&&'always'!==this['_trackFormatChanges']){const _0x103476=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xae857,'accept');return this['forceDefaultExecution'](()=>_0x103476(_0xaa19d,_0x439127,_0x4ba5ab)),null;}const _0x5d3422=this['editor']['plugins']['get']('Users')['me'];for(const _0x24ed1f of this['getSuggestions']()){if(_0x24ed1f['author']['id']!=_0x5d3422['id'])continue;if('formatBlock'!=_0x24ed1f['type']||_0x24ed1f['data']['formatGroupId']!=_0x439127['formatGroupId'])continue;if(!Xt(_0x24ed1f,_0x4ba5ab))continue;const _0x10df83=_0x24ed1f['subType']==_0xae857;for(let _0x1ee7a4=0x0;_0x1ee7a4<_0xaa19d['length'];_0x1ee7a4++){const _0x464aad=_0xaa19d[_0x1ee7a4];for(const _0x469046 of _0x24ed1f['getMarkers']()){const _0x528d32=_0x469046['getRange']();if(_0x464aad['isEqual'](_0x528d32)){_0x10df83?(_0xaa19d['splice'](_0x1ee7a4,0x1),_0x1ee7a4--):_0x24ed1f['removeMarker'](_0x469046['name']);break;}}}}if(0x0==_0xaa19d['length'])return null;const _0x8b24ec=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xae857,'join');for(const _0x380dbf of this['getSuggestions']())if(_0x380dbf['author']['id']==_0x5d3422['id']&&'formatBlock'==_0x380dbf['type']&&_0x380dbf['data']['formatGroupId']==_0x439127['formatGroupId']&&_0x380dbf['subType']==_0xae857&&Xt(_0x380dbf,_0x4ba5ab)&&(_0x8b24ec(_0x380dbf['getRanges'](),_0xaa19d)||_0x8b24ec(_0xaa19d,_0x380dbf['getRanges']()))){for(const _0x37c1b4 of _0xaa19d)_0x380dbf['addRange'](_0x37c1b4);return _0x380dbf;}const _0xbc86e0=_0x12ee37(),_0x33945a=_0x5d3422['id'],_0x3f2c78='formatBlock:'+_0xae857,_0x40218c=this['_setSuggestionData']({'id':_0xbc86e0,'type':_0x3f2c78,'data':_0x439127,'createdAt':new Date(),'authorId':_0x33945a,'attributes':_0x4ba5ab});for(const _0x5d12ec of _0xaa19d)this['_addSuggestionMarker'](_0x3f2c78,_0xbc86e0,_0x33945a,_0x5d12ec,o['getMultiRangeId']());return _0x40218c;}['markDeletion'](_0x3427b5,_0x2173ac=null,_0x1a8dc1={}){if(_0x3427b5['isCollapsed'])return null;const _0x2be238=this['editor']['plugins']['get']('Users')['me'],_0x275c89=new _0x53edc8(_0x3427b5['start'],_0x3427b5['end']);this['_trackingSessionId']&&(_0x1a8dc1['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xf35b95,meta:_0x183e37}of this['_findSuggestions'](_0x275c89,'insertion'))if(_0x183e37['isOwn']&&!_0x183e37['isNextTo']){if(_0xf35b95['isMultiRange']){const _0xc60d89=_0xf35b95['getRanges']()['filter'](_0x2c9fb3=>'$graveyard'!=_0x2c9fb3['root']['rootName']);_0xc60d89['every'](_0x1a171c=>_0x275c89['containsRange'](_0x1a171c,!0x0))&&_0xf35b95['discard']();if(_0xc60d89['some'](_0x1cddc3=>_0x1cddc3['containsRange'](_0x275c89,!0x0))){const _0x539307=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2173ac,'accept');return this['forceDefaultExecution'](()=>_0x539307([_0x275c89],null,_0x1a8dc1)),null;}}else{const _0x272436=_0x275c89['getIntersection'](_0xf35b95['getFirstRange']());null!==_0x272436&&_0xf35b95['_onDiscard']([_0x272436],null,_0x1a8dc1);}}if(_0x275c89['detach'](),_0x275c89['isCollapsed']||'$graveyard'==_0x275c89['root']['rootName'])return null;let _0x555618=null,_0x5580d7=_0x275c89['start'],_0xddcc18=_0x275c89['end'];const _0x449a9a=this['_findSuggestions'](_0x275c89,'deletion');for(const {suggestion:_0x5028f6,meta:_0x325d8b}of _0x449a9a){const _0x278c50=this['_model']['createRange'](_0x5580d7,_0xddcc18);if(_0x325d8b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x325d8b['containsRangeInObject']&&!_0x325d8b['isInsideObject'])){if(_0x5028f6['isMultiRange']){if(!Xt(_0x5028f6,_0x1a8dc1))continue;let _0x4a9bc3=!0x0;for(const _0x46fe75 of _0x5028f6['getRanges']()){if(_0x46fe75['containsRange'](_0x278c50,!0x0))return _0x5028f6;_0x278c50['containsRange'](_0x46fe75)||(_0x4a9bc3=!0x1);}_0x4a9bc3&&_0x5028f6['discard']();}else{const _0x400be4=_0x5028f6['getFirstRange']();if(_0x400be4['containsRange'](_0x278c50,!0x0))return _0x5028f6;if(!Xt(_0x5028f6,_0x1a8dc1)){_0x278c50['containsRange'](_0x400be4)?_0x5028f6['removeMarkers']():_0x400be4['containsPosition'](_0x5580d7)?_0x5580d7=_0x400be4['end']:_0x400be4['containsPosition'](_0xddcc18)&&(_0xddcc18=_0x400be4['start']);continue;}_0x5580d7=_0x5580d7['isBefore'](_0x400be4['start'])?_0x5580d7:_0x400be4['start'],_0xddcc18=_0xddcc18['isAfter'](_0x400be4['end'])?_0xddcc18:_0x400be4['end'],_0x1a8dc1=Object['assign']({},_0x5028f6['attributes']),_0x555618?_0x400be4['start']['isBefore'](_0x555618['getFirstRange']()['start'])?(_0x555618['removeMarkers'](),_0x555618=_0x5028f6):_0x5028f6['removeMarkers']():_0x555618=_0x5028f6;}}}if(_0x555618)return this['_setSuggestionRange'](_0x555618,this['_model']['createRange'](_0x5580d7,_0xddcc18)),_0x555618;{const _0x3f84c0=_0x12ee37(),_0x48f805=this['_model']['createRange'](_0x5580d7,_0xddcc18),_0x12d562=_0x2be238['id'],_0x2c7621=_0x2173ac?'deletion:'+_0x2173ac:'deletion',_0x27382b=this['_setSuggestionData']({'id':_0x3f84c0,'type':_0x2c7621,'createdAt':new Date(),'authorId':_0x12d562,'attributes':_0x1a8dc1});return this['_addSuggestionMarker'](_0x2c7621,_0x3f84c0,_0x12d562,_0x48f805),_0x27382b;}}['markMultiRangeDeletion'](_0x414a1d,_0x35d815='multi',_0x2e459f={}){const _0x4e52a9=this['editor']['plugins']['get']('Users')['me'],_0x9bc59f=_0x414a1d['map'](_0x2dd0af=>new _0x53edc8(_0x2dd0af['start'],_0x2dd0af['end'])),_0x2b3f69=new Set();this['_trackingSessionId']&&(_0x2e459f['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x31a80b,meta:_0xe4d079}of this['_findSuggestions'](_0x9bc59f,'insertion'))_0xe4d079['isOwn']&&!_0xe4d079['isNextTo']&&_0x2b3f69['add'](_0x31a80b);for(const _0x446fd9 of _0x2b3f69)if(_0x446fd9['isMultiRange']){const _0x137e7a=_0x446fd9['getRanges']();(!_0x446fd9['attributes']||!_0x446fd9['attributes']['skipNestingCheck'])&&(_0x137e7a['every'](_0x5036a6=>_0x9bc59f['some'](_0x52e343=>_0x52e343['containsRange'](_0x5036a6,!0x0)))&&_0x446fd9['discard']());if(_0x9bc59f['every'](_0x36d3dc=>_0x137e7a['some'](_0xbb0861=>_0xbb0861['containsRange'](_0x36d3dc,!0x0)))){const _0x10966b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x35d815,'accept');return this['forceDefaultExecution'](()=>_0x10966b(_0x414a1d,null,_0x2e459f)),null;}}else{const _0x335301=_0x446fd9['getFirstRange']();_0x9bc59f['some'](_0x496d98=>_0x496d98['containsRange'](_0x335301,!0x0))&&_0x446fd9['discard']();if(_0x9bc59f['every'](_0x30be8a=>_0x335301['containsRange'](_0x30be8a,!0x0))){const _0x4e1f75=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x35d815,'accept');return this['forceDefaultExecution'](()=>_0x4e1f75(_0x9bc59f,null,_0x2e459f)),null;}}const _0x3db2a5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x35d815,'join');let _0x4910c1=null;for(const _0x4640ef of this['getSuggestions']())if(_0x4640ef['author']['id']==_0x4e52a9['id']&&_0x4640ef['isInContent']&&'deletion'==_0x4640ef['type']&&_0x4640ef['subType']==_0x35d815&&Xt(_0x4640ef,_0x2e459f)&&(_0x3db2a5(_0x4640ef['getRanges'](),_0x9bc59f)||_0x3db2a5(_0x9bc59f,_0x4640ef['getRanges']()))){if(_0x4910c1){if(_0x4640ef['commentThread']&&_0x4640ef['commentThread']['length'])continue;for(const _0x2ed430 of _0x4640ef['getRanges']())_0x4910c1['isIntersectingWithRange'](_0x2ed430)||_0x4910c1['addRange'](_0x2ed430);_0x4640ef['removeMarkers']();}else{_0x4910c1=_0x4640ef;for(const _0x45f73c of _0x9bc59f)_0x4640ef['isIntersectingWithRange'](_0x45f73c)||_0x4640ef['addRange'](_0x45f73c);}}if(_0x4910c1)return _0x4910c1;_0x2b3f69['clear']();for(const {suggestion:_0x39a5fc,meta:_0x46b84f}of this['_findSuggestions'](_0x9bc59f,'deletion'))_0x46b84f['isOwn']&&(this['_mergeNestedSuggestions']||!_0x46b84f['containsRangeInObject']&&!_0x46b84f['isInsideObject'])&&Xt(_0x39a5fc,_0x2e459f)&&_0x2b3f69['add'](_0x39a5fc);for(const _0x46fb2c of _0x2b3f69){const _0x3838d4=_0x46fb2c['getRanges']();if(!_0x2e459f||!_0x2e459f['skipNestingCheck']){if(_0x9bc59f['every'](_0x3c0c6d=>_0x3838d4['some'](_0x5098b4=>_0x5098b4['containsRange'](_0x3c0c6d,!0x0))))return _0x46fb2c;}(!_0x46fb2c['attributes']||!_0x46fb2c['attributes']['skipNestingCheck'])&&(_0x3838d4['every'](_0x1b912e=>_0x9bc59f['some'](_0x2a64ba=>_0x2a64ba['containsRange'](_0x1b912e,!0x0)))&&_0x46fb2c['discard']());}const _0x17b716=_0x12ee37(),_0x351277=_0x4e52a9['id'],_0x223d6f='deletion:'+_0x35d815,_0x5acb99=this['_setSuggestionData']({'id':_0x17b716,'type':_0x223d6f,'createdAt':new Date(),'authorId':_0x351277,'attributes':_0x2e459f});for(const _0x1dc6c7 of _0x9bc59f)_0x1dc6c7['detach'](),_0x1dc6c7['isCollapsed']||'$graveyard'==_0x1dc6c7['root']['rootName']||this['_addSuggestionMarker'](_0x223d6f,_0x17b716,_0x351277,_0x1dc6c7,o['getMultiRangeId']());return _0x5acb99;}['markAttributeChange'](_0x43660d,_0x7de9f5,_0xe9d9b9,_0x2a4972,_0x4cf341){if(_0x43660d['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2ee507=this['editor']['plugins']['get']('Users')['me']['id'],_0xf85d82=Array['from'](this['_suggestions']['values']())['filter'](_0x5144c3=>'attribute'==_0x5144c3['type']&&_0x5144c3['data']['key']==_0x7de9f5&&_0x5144c3['isIntersectingWithRange'](_0x43660d));if(this['_trackingSessionId']&&(_0x4cf341['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x29e3e2=this['_findSuggestions'](_0x43660d,'insertion')['filter'](({meta:_0x56de44})=>_0x56de44['isOwn']&&!_0x56de44['isInsideObject']&&!_0x56de44['isNextTo'])['map'](({suggestion:_0x598552})=>_0x598552);_0xf85d82['unshift'](..._0x29e3e2);}const _0x59cf54=new Map([[_0x43660d,_0xe9d9b9]]);for(const _0x341684 of _0xf85d82){const _0x103c25='attribute'==_0x341684['type']?_0x341684['data']['oldValue']:void 0x0,_0x419fbf=_0x341684['getFirstRange'](),_0x1358f7=Array['from'](_0x59cf54['keys']())['find'](_0x1ea9d7=>_0x1ea9d7['isIntersecting'](_0x419fbf));if(!_0x1358f7)continue;const _0x5bac54=_0x1358f7['getDifference'](_0x419fbf);this['_isBlockAttribute'](_0x7de9f5)&&'insertion'==_0x341684['type']&&0x0!=_0x5bac54['length']||(_0x59cf54['delete'](_0x1358f7),_0x5bac54['forEach'](_0x2c5256=>{_0x59cf54['set'](_0x2c5256,_0xe9d9b9);}),'insertion'!=_0x341684['type']&&_0x103c25!=_0x2a4972&&_0x59cf54['set'](_0x1358f7['getIntersection'](_0x419fbf),_0x103c25));}const _0x1364e9=[];for(const [_0x25f1cd,_0x361e83]of _0x59cf54){const _0x12a9b0=_0x12ee37(),_0x1301a4={'key':_0x7de9f5,'oldValue':_0x361e83,'newValue':_0x2a4972};_0x7de9f5['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':_0x7de9f5});const _0x52c837=('attribute:'+(_0x7de9f5+'|'+Kt({'newValue':_0x2a4972})))['substring'](0x0,0x3c),_0x564b98=this['_setSuggestionData']({'id':_0x12a9b0,'type':_0x52c837,'data':_0x1301a4,'createdAt':new Date(),'authorId':_0x2ee507,'attributes':_0x4cf341});_0x1364e9['push'](_0x564b98),this['_addSuggestionMarker'](_0x52c837,_0x12a9b0,_0x2ee507,_0x25f1cd);}return _0x1364e9;}['enableDefaultAttributesIntegration'](_0x12de72){this['enableCommand'](_0x12de72,(_0x40d19d,..._0x3de4b9)=>{this['_recordAttributeChanges'](()=>{_0x40d19d(..._0x3de4b9);});});}['registerBlockAttribute'](_0x1cdc8f){this['_blockAttributeKeys']['add'](_0x1cdc8f);}['registerInlineAttribute'](_0x5dd14c){this['_inlineAttributeKeys']['add'](_0x5dd14c);}['startTrackingSession'](_0x8bda55){return this['_trackingSessionId']=void 0x0!==_0x8bda55?_0x8bda55:_0x12ee37(),this['_trackingSessionId'];}['_getAttributeKey'](_0x33d4d4){return'attribute'==_0x33d4d4['type']?_0x33d4d4['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x1b325a,_0x538b10){const _0xdcf66e=_0x1b325a['getFirstMarker']();this['_model']['change'](_0x353376=>{_0x353376['updateMarker'](_0xdcf66e,{'range':_0x538b10});});}['_addThreadToSuggestion'](_0x1930d0){const _0x50571b=_0x1930d0['id'],_0x241b10=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x50571b)||this['_commentsRepository']['addCommentThread']({'channelId':_0x241b10,'threadId':_0x50571b,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x27152b=this['_commentsRepository']['getCommentThread'](_0x50571b);_0x27152b['unbind']('isRemovable'),_0x27152b['isRemovable']=!0x1,_0x1930d0['commentThread']=_0x27152b;}['_checkSuggestionCorrectness'](_0x118adf,_0x24cc8a,_0x5560fc,_0xe2dc25){if(_0x118adf['type']!=_0x24cc8a||_0x118adf['subType']!=_0x5560fc||_0x118adf['creator']['id']!=_0xe2dc25)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1cd3be('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3fbea4,_0xb06b5c){const _0x921606=_0x3fbea4['getFirstRange']();if(_0xb06b5c['isEqual'](_0x921606))_0x3fbea4['removeMarkers']();else{if(_0x921606['containsRange'](_0xb06b5c)){const _0x40405f=this['_model']['createPositionAt'](_0xb06b5c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3fbea4,this['_model']['createRange'](_0x921606['start'],_0x40405f));const _0x41cb22=_0x12ee37(),_0xe95df=_0x3fbea4['creator']['id'],_0xdff05c=_0x3fbea4['type']+':'+_0x3fbea4['subType'];this['_setSuggestionData']({'id':_0x41cb22,'type':_0xdff05c,'createdAt':new Date(),'authorId':_0xe95df,'data':_0x3fbea4['data'],'attributes':_0x3fbea4['attributes']});const _0x4b5758=this['_model']['createPositionAt'](_0xb06b5c['end']['parent'],'after'),_0xc797cc=this['_model']['createRange'](_0x4b5758,_0x921606['end']);this['_addSuggestionMarker'](_0xdff05c,_0x41cb22,_0xe95df,_0xc797cc);}else{if(_0x921606['containsPosition'](_0xb06b5c['start'])){const _0x5b0e20=this['_model']['createPositionAt'](_0xb06b5c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3fbea4,this['_model']['createRange'](_0x921606['start'],_0x5b0e20));}else{const _0x2d9f24=this['_model']['createPositionAt'](_0xb06b5c['end']['parent'],'after');this['_setSuggestionRange'](_0x3fbea4,this['_model']['createRange'](_0x2d9f24,_0x921606['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x5d6c48){for(const {suggestion:_0x41bf50,meta:_0x43f7d1}of this['_findSuggestions'](_0x5d6c48,'insertion')){if(!_0x43f7d1['isOwn'])continue;const _0x88f54e=_0x41bf50['getRanges']();for(const _0x1c271e of _0x88f54e)if(!_0x5d6c48['getDifference'](_0x1c271e)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x380cc8){const _0x5dfe72=this['editor']['plugins']['get']('Users')['getUser'](_0x380cc8);if(!_0x5dfe72)throw new _0x1cd3be('track-changes-user-not-found',this);return _0x5dfe72;}['_getExternalAuthor'](_0x5a7dd8){const _0x3b282b=this['editor']['plugins']['get']('Users'),_0x2e830c=_0x2bf3c4('external:'+_0x5a7dd8),_0x8a3a17=_0x3b282b['getUser'](_0x2e830c);return _0x8a3a17||_0x3b282b['addUser']({'id':_0x2e830c,'name':_0x5a7dd8});}['_createSuggestion'](_0x366d05,_0x3c01ac,_0x307c9e,_0x10852a,_0x5dd3a6,_0x54ba7c){const _0x92fec2=this['_getAuthorFromId'](_0x10852a),_0x3aa61b=this['_suggestionFactory']['buildSuggestion'](_0x366d05,_0x3c01ac,_0x307c9e,_0x92fec2,_0x5dd3a6,_0x5e75dd=>{this['_updateSuggestionData'](_0x307c9e,{'attributes':_0x5e75dd});const _0xddc9ca=this['getSuggestion'](_0x307c9e);this['_joinWithAdjacentSuggestions'](new Set([_0xddc9ca])),this['_refreshSuggestionsChain'](new Set([_0xddc9ca]));},_0x54ba7c);return this['listenTo'](_0x3aa61b,'accept',()=>{this['_updateSuggestionData'](_0x307c9e,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3aa61b,'discard',()=>{this['_updateSuggestionData'](_0x307c9e,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x307c9e,_0x3aa61b),this['_suggestionState']['set'](_0x3aa61b,'notReady'),_0x3aa61b;}['_splitMarkerName'](_0x37fd48){const _0x217815=_0x37fd48['split'](':');return{'group':_0x217815[0x0],'type':_0x217815[0x1],'subType':_0x217815['length']>=0x5?_0x217815[0x2]:null,'id':_0x217815['length']<0x5?_0x217815[0x2]:_0x217815[0x3],'authorId':_0x217815['length']<0x5?_0x217815[0x3]:_0x217815[0x4],'markerCount':0x6==_0x217815['length']?_0x217815[0x5]:null};}['_breakSuggestionMarker'](_0x69602b,_0x3209e4,_0x337e8b){const _0x548eb3=_0x69602b['getFirstRange'](),_0x527aa3=_0x548eb3['start'],_0x414ec6=_0x548eb3['end'];this['_setSuggestionRange'](_0x69602b,this['_model']['createRange'](_0x527aa3,_0x3209e4));const _0x2d000d=_0x12ee37(),_0x49c218=_0x69602b['creator']['id'],_0x3a7875=_0x69602b['type']+(_0x69602b['subType']?':'+_0x69602b['subType']:'');this['_setSuggestionData']({'id':_0x2d000d,'type':_0x3a7875,'createdAt':new Date(),'authorId':_0x49c218,'originalSuggestionId':_0x69602b['_originalSuggestionId']||_0x69602b['id'],'attributes':_0x69602b['attributes'],'data':_0x69602b['data']});const _0x2217b4=this['_getAttributeKey'](_0x69602b);('formatBlock'==_0x69602b['type']||_0x2217b4&&this['_isBlockAttribute'](_0x2217b4))&&(_0x337e8b=this['_model']['createPositionBefore'](_0x337e8b['parent'])),this['_addSuggestionMarker'](_0x3a7875,_0x2d000d,_0x49c218,this['_model']['createRange'](_0x337e8b,_0x414ec6));}['_findSuggestions'](_0x4e267e,_0x2fefd7=null){const _0x30da1f=[],_0x3c7f12=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x4e267e)||(_0x4e267e=[_0x4e267e]);for(const _0x5a4464 of this['getSuggestions']()){if(!_0x5a4464['isInContent'])continue;if(_0x2fefd7&&_0x5a4464['type']!=_0x2fefd7)continue;let _0x3b110f=!0x1;for(const _0x2401ff of _0x5a4464['getRanges']()){for(const _0x23379a of _0x4e267e){const _0x303c02=_0x23379a['start']['isEqual'](_0x2401ff['end'])||_0x23379a['end']['isEqual'](_0x2401ff['start']);if(_0x303c02||_0x23379a['getIntersection'](_0x2401ff)){const _0x505b34=_0x23379a['containsRange'](_0x2401ff)&&Gt(this['_model']['schema'],_0x2401ff['start'],_0x23379a),_0x570344=_0x2401ff['containsRange'](_0x23379a)&&Gt(this['_model']['schema'],_0x23379a['start'],_0x2401ff);_0x30da1f['push']({'suggestion':_0x5a4464,'meta':{'isOwn':_0x3c7f12==_0x5a4464['author'],'isNextTo':_0x303c02,'isInsideObject':_0x505b34,'containsRangeInObject':_0x570344}}),_0x3b110f=!0x0;break;}}if(_0x3b110f)break;}}return _0x30da1f;}['_addSuggestionMarker'](_0x8b0f82,_0x3f263d,_0x2c6f7d,_0x12d2b1,_0x5b0efc){this['_model']['change'](_0x51c405=>{let _0x18c1c4='suggestion:'+_0x8b0f82+':'+_0x3f263d+':'+_0x2c6f7d;_0x5b0efc&&(_0x18c1c4=_0x18c1c4+':'+_0x5b0efc),_0x51c405['addMarker'](_0x18c1c4,{'range':_0x12d2b1,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0xd0fd37){const _0x5af264=_0xd0fd37['previous'],_0x79e6d1=_0xd0fd37['next'];_0xd0fd37['previous']=null,_0xd0fd37['next']=null,null!=_0x5af264&&_0x5af264['next']==_0xd0fd37&&(_0x5af264['next']=_0x79e6d1),null!=_0x79e6d1&&_0x79e6d1['previous']==_0xd0fd37&&(_0x79e6d1['previous']=_0x5af264),'ready'==this['_suggestionState']['get'](_0xd0fd37)&&(this['_suggestionState']['set'](_0xd0fd37,'removed'),this['fire']('suggestionUnloaded',_0xd0fd37,_0x5af264,_0x79e6d1));}['_setSuggestionData'](_0x659b28){const _0x70849=_0x659b28['id'],_0x26207f=this['addSuggestionData'](_0x659b28);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x7062b6=this['editor']['plugins']['get']('PendingActions'),_0xd8e72=_0x26207f['hasComments'],_0x1aafae=_0x26207f['subType']?_0x26207f['type']+':'+_0x26207f['subType']:_0x26207f['type'],_0x1e6680=this['editor']['locale'],_0x1556db=_0x7062b6['add'](c(_0x1e6680,'PENDING_ACTION_SUGGESTION')),_0x55c43b={'id':_0x70849,'type':_0x1aafae,'hasComments':_0xd8e72,'data':_0x659b28['data']||null,'originalSuggestionId':_0x659b28['originalSuggestionId']||null,'attributes':_0x26207f['attributes']};this['_adapter']['addSuggestion'](_0x55c43b)['then'](_0x3330fd=>{_0x26207f['_saved']=!0x0,_0x7062b6['remove'](_0x1556db),_0x3330fd&&_0x3330fd['createdAt']&&(this['_suggestions']['get'](_0x70849)['createdAt']=_0x3330fd['createdAt']);})['catch'](_0x5cd763=>{throw _0x5dfb16('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x26207f['discard']();}),_0x26207f['stopListening'](),this['_suggestions']['delete'](_0x26207f['id']),this['_suggestionState']['delete'](_0x26207f),_0x5cd763;});}return _0x26207f;}['_isBlockAttribute'](_0x2a56be){return this['_blockAttributeKeys']['has'](_0x2a56be);}['_updateSuggestionData'](_0x2e66c4,_0x43095b){const _0x41be89=this['editor']['plugins']['get']('PendingActions'),_0x58f59b=this['getSuggestion'](_0x2e66c4);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x58f59b['_saved']){const _0x5520e2=_0x41be89['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2e66c4,_0x43095b)['then'](()=>{_0x41be89['remove'](_0x5520e2);});}else _0x58f59b['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2e66c4,_0x43095b);});}}['_getSuggestionData'](_0x487536){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1cd3be('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x487536);}['_handleNewSuggestionMarker'](_0x46a1e5){const {id:_0x193396,type:_0x3dc369,subType:_0x6d617a,authorId:_0x4e1cf8}=this['_splitMarkerName'](_0x46a1e5),_0x3a1062=this['_suggestions']['get'](_0x193396)||this['_createSuggestion'](_0x3dc369,_0x6d617a,_0x193396,_0x4e1cf8,{});switch(this['_checkSuggestionCorrectness'](_0x3a1062,_0x3dc369,_0x6d617a,_0x4e1cf8),this['_suggestionState']['get'](_0x3a1062)){case'notReady':this['_getSuggestionData'](_0x193396)['then'](_0x461a4b=>{let _0x4b02e1=Promise['resolve']();_0x461a4b['hasComments']&&(_0x4b02e1=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x193396})),_0x4b02e1['then'](()=>{this['addSuggestionData'](_0x461a4b)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3a1062,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x193396,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3a1062,'ready'),this['fire']('suggestionLoaded',_0x3a1062);break;case'ready':this['fire']('suggestionChanged',_0x3a1062);}return _0x3a1062['addMarkerName'](_0x46a1e5),_0x3a1062;}['_refreshSuggestionsChain'](_0x4d40e6){const _0x33fa1c=Array['from'](_0x4d40e6),_0x20d213=_0x33fa1c['filter'](_0x3e6870=>'attribute'==_0x3e6870['type']);this['_refreshAttributeSuggestionsChain'](_0x20d213);const _0x43bb87=_0x33fa1c['filter'](_0x4f02b4=>!_0x4f02b4['isMultiRange']&&'attribute'!=_0x4f02b4['type']),_0x2b6753=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x304fca=>!_0x304fca['isMultiRange']&&'attribute'!=_0x304fca['type']),_0x49582c=_0x2b6753['filter'](_0x905f24=>!_0x4d40e6['has'](_0x905f24)),_0x524c41=new Map(_0x2b6753['map'](_0x213e53=>[_0x213e53,this['_suggestionFactory']['getSuggestionCallback'](_0x213e53['type'],_0x213e53['subType'],'chain')])),_0x5e028d=new Map(_0x2b6753['map'](_0x586141=>[_0x586141,_0x586141['getFirstRange']()])),_0x438ff7=new Set(),_0x468e9f=new Set();for(let _0x4001d3=0x0;_0x4001d3<_0x43bb87['length'];_0x4001d3++)_0x2c9178(_0x43bb87[_0x4001d3],_0x43bb87,_0x4001d3+0x1);for(let _0x52310e=0x0;_0x52310e<_0x43bb87['length'];_0x52310e++)_0x2c9178(_0x43bb87[_0x52310e],_0x49582c,0x0);const _0x3a0a8d=new Set();for(let _0x407190=0x0;_0x407190<_0x43bb87['length'];_0x407190++){const _0x401205=_0x43bb87[_0x407190];!_0x468e9f['has'](_0x401205)&&_0x401205['previous']&&(_0x3a0a8d['add'](_0x401205['previous']),_0x401205['previous']['next']===_0x401205&&(_0x401205['previous']['next']=null),_0x401205['previous']=null),!_0x438ff7['has'](_0x401205)&&_0x401205['next']&&(_0x3a0a8d['add'](_0x401205['next']),_0x401205['next']['previous']===_0x401205&&(_0x401205['next']['previous']=null),_0x401205['next']=null);}function _0x2c9178(_0x4526e9,_0x476530,_0x3ecb0f){for(let _0x3ca693=_0x3ecb0f;_0x3ca693<_0x476530['length'];_0x3ca693++){const _0x591ffe=_0x57e994(_0x4526e9,_0x476530[_0x3ca693]);_0x591ffe&&(_0x591ffe[0x0]['next']=_0x591ffe[0x1],_0x591ffe[0x1]['previous']=_0x591ffe[0x0],_0x438ff7['add'](_0x591ffe[0x0]),_0x468e9f['add'](_0x591ffe[0x1]));}}function _0x57e994(_0x3e0f0e,_0x2b02b1){if(_0x3e0f0e['author']['id']!==_0x2b02b1['author']['id'])return null;const _0xdb6d5f=_0x524c41['get'](_0x3e0f0e)(_0x3e0f0e,_0x2b02b1,_0x5e028d['get'](_0x3e0f0e),_0x5e028d['get'](_0x2b02b1));if(!_0xdb6d5f)return null;return _0x524c41['get'](_0x2b02b1)(_0x3e0f0e,_0x2b02b1,_0x5e028d['get'](_0x3e0f0e),_0x5e028d['get'](_0x2b02b1))?_0xdb6d5f[0x1]['commentThread']&&_0xdb6d5f[0x1]['commentThread']['length']?null:_0xdb6d5f:null;}_0x3a0a8d['size']&&this['_refreshSuggestionsChain'](_0x3a0a8d);}['_refreshAttributeSuggestionsChain'](_0x4340b1){if(0x0==_0x4340b1['length'])return;const _0x11fca2=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xc8d4c0=>'attribute'==_0xc8d4c0['type']&&_0xc8d4c0['_isDataLoaded']),_0x194250=[],_0x7395d2=new Map();for(const _0x4aa27b of _0x11fca2){const _0x36584b=_0x2bf3c4(_0x4aa27b['attributes']);_0x7395d2['has'](_0x36584b)||(_0x7395d2['set'](_0x36584b,_0x194250['length']),_0x194250['push']([]));const _0x1387b4=_0x7395d2['get'](_0x36584b);_0x194250[_0x1387b4]['push'](_0x4aa27b);}!(function(){_0x194250['sort']((_0x45a218,_0x2dfaef)=>{const _0x169fca=_0x45a218[0x0]['createdAt'],_0x604269=_0x2dfaef[0x0]['createdAt'];return _0x169fca==_0x604269?_0x45a218[0x0]['attributes']['groupId']<_0x2dfaef[0x0]['attributes']['groupId']?-0x1:0x1:_0x169fca<_0x604269?-0x1:0x1;});for(const _0xab1c7a of _0x194250)_0xab1c7a['sort']((_0x356e59,_0x73f677)=>_0x356e59['id']<_0x73f677['id']?-0x1:0x1);}());for(let _0x2413b8=0x0;_0x2413b8<_0x194250['length'];_0x2413b8++){if(0x0==_0x194250[_0x2413b8]['length'])continue;const _0x4d7af8=[];for(let _0xd67252=_0x2413b8+0x1;_0xd67252<_0x194250['length'];_0xd67252++)0x0!=_0x194250[_0xd67252]['length']&&_0x2465f5(_0x194250[_0x2413b8],_0x194250[_0xd67252])&&_0x4d7af8['push'](_0xd67252);for(const _0x474962 of _0x4d7af8)_0x194250[_0x2413b8]=_0x194250[_0x2413b8]['concat'](_0x194250[_0x474962]),_0x194250[_0x474962]=[];}for(const _0x40ca1c of _0x194250)for(let _0x4383dc=0x0;_0x4383dc<_0x40ca1c['length'];_0x4383dc++){const _0xa62234=_0x40ca1c[_0x4383dc+0x1]||null;_0x40ca1c[_0x4383dc]['next']!==_0xa62234&&(_0x40ca1c[_0x4383dc]['next']=_0xa62234);}for(const _0x46282e of _0x194250)for(let _0x29e1fb=0x0;_0x29e1fb<_0x46282e['length'];_0x29e1fb++){const _0x8e5a90=_0x46282e[_0x29e1fb-0x1]||null;_0x46282e[_0x29e1fb]['previous']!==_0x8e5a90&&(_0x46282e[_0x29e1fb]['previous']=_0x8e5a90);}function _0x2465f5(_0x2aa29d,_0x3b2404){if(_0x2aa29d[0x0]['attributes']['groupId']!==_0x3b2404[0x0]['attributes']['groupId']&&_0x2aa29d[0x0]['author']!==_0x3b2404[0x0]['author'])return!0x1;if(!function(_0x368cb8,_0x3c6d1e){if(!_0x368cb8['hasComments']&&!_0x3c6d1e['hasComments'])return!0x0;if(_0x368cb8['hasComments']&&_0x3c6d1e['hasComments'])return!0x1;if(_0x368cb8['hasComments']&&_0x3c6d1e['createdAt']<_0x368cb8['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x3c6d1e['hasComments']&&_0x368cb8['createdAt']<_0x3c6d1e['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2aa29d[0x0],_0x3b2404[0x0]))return!0x1;const _0x469a36=Ft(_0x2aa29d[0x0]['attributes'],['groupId','trackingSessionId']),_0x4f219d=Ft(_0x3b2404[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x2aed50(_0x469a36,_0x4f219d))return!0x1;if(_0x2aa29d[0x0]['attributes']['groupId']==_0x3b2404[0x0]['attributes']['groupId'])return!0x0;if(_0x2aa29d[0x0]['attributes']['trackingSessionId']!==_0x3b2404[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x2aa29d['every'](_0x40b424=>_0x3b2404['some'](_0x4bbc61=>_0x40b424['getFirstRange']()['isEqual'](_0x4bbc61['getFirstRange']())))&&_0x3b2404['every'](_0x333597=>_0x2aa29d['some'](_0x4ec6fd=>_0x333597['getFirstRange']()['isEqual'](_0x4ec6fd['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x3a1a88){const _0x55e73e=Array['from'](_0x3a1a88),_0x24a1b4=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4b31e9=_0x24a1b4['filter'](_0x532b92=>!_0x3a1a88['has'](_0x532b92)),_0x1d882d=new Map(_0x55e73e['map'](_0x44b761=>[_0x44b761,this['_suggestionFactory']['getSuggestionCallback'](_0x44b761['type'],_0x44b761['subType'],'join')])),_0x47b879=new Map(_0x24a1b4['map'](_0xb4b08b=>[_0xb4b08b,_0xb4b08b['getRanges']()]));for(let _0x5887ec=0x0;_0x5887ec<_0x55e73e['length'];_0x5887ec++){if(_0x1fedb5(this,_0x55e73e[_0x5887ec],_0x55e73e,_0x5887ec+0x1))return!0x0;}for(let _0x3fca91=0x0;_0x3fca91<_0x55e73e['length'];_0x3fca91++){if(_0x1fedb5(this,_0x55e73e[_0x3fca91],_0x4b31e9,0x0))return!0x0;}return!0x1;function _0x1fedb5(_0x14f5c2,_0x14f088,_0x2b0a67,_0x5cf1f1){for(let _0x3685f1=_0x5cf1f1;_0x3685f1<_0x2b0a67['length'];_0x3685f1++){const _0x260a4c=_0x2b0a67[_0x3685f1];if(_0x260a4c['type']!==_0x14f088['type']||_0x260a4c['author']['id']!==_0x14f088['author']['id']||_0x260a4c['subType']!==_0x14f088['subType'])continue;if(!Qt(_0x14f088,_0x260a4c))continue;if('attribute'==_0x14f088['type']&&_0x14f088['data']['oldValue']!=_0x260a4c['data']['oldValue'])continue;if('attribute'==_0x14f088['type']&&_0x14f5c2['_isBlockAttribute'](_0x14f088['data']['key']))continue;if('formatBlock'==_0x14f088['type']){const _0x54179a=_0x14f5c2['editor']['model'],_0x41022b=_0x14f088['getContainedElement']();if(_0x41022b&&(_0x54179a['schema']['isObject'](_0x41022b)||_0x54179a['schema']['isLimit'](_0x41022b)))continue;}const _0x52dc70=_0x1d882d['get'](_0x14f088),_0x4d8b59=_0x47b879['get'](_0x14f088),_0x43acdd=_0x47b879['get'](_0x260a4c),_0x37a0d8=_0x14f088['commentThread']&&_0x14f088['commentThread']['length'],_0x4772b0=_0x260a4c['commentThread']&&_0x260a4c['commentThread']['length'];if(!_0x37a0d8&&_0x52dc70(_0x43acdd,_0x4d8b59))return _0x14f5c2['_joinSuggestions'](_0x260a4c,_0x14f088),_0x47b879['delete'](_0x14f088),!0x0;if(!_0x4772b0&&_0x52dc70(_0x4d8b59,_0x43acdd))return _0x14f5c2['_joinSuggestions'](_0x14f088,_0x260a4c),_0x47b879['delete'](_0x260a4c),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5f5d86,_0x5ee740){if(_0x5f5d86['isMultiRange']){for(const _0x2660fd of _0x5ee740['getRanges']())_0x5f5d86['addRange'](_0x2660fd);}else{const _0x291e8d=_0x5ee740['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5f5d86,this['_model']['createRange'](_0x5f5d86['getFirstRange']()['start'],_0x291e8d));}_0x5ee740['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3ef890,_0x4d4fcd,_0x1acbdb){const _0x1fc060=_0x3ef890['startsWith']('format')||_0x3ef890['startsWith']('attribute')?'FORMATTING':_0x3ef890['toUpperCase']();return c(this['editor']['locale'],_0x4d4fcd+'_'+_0x1fc060+'_SUGGESTION_ANNOUNCEMENT',_0x1acbdb);}['_initAriaMarkerChangeAnnouncements'](){const _0x5957b9=this['editor'];if(!_0x5957b9['ui'])return;const {ariaLiveAnnouncer:_0x16a26e}=_0x5957b9['ui'];_0x55f8e2(this['_model'],({left:_0x3f9c79,entered:_0x1c1ab4})=>{for(const _0x20317f of _0x3f9c79){const {group:_0x2376b7,type:_0x55af52}=this['_splitMarkerName'](_0x20317f['name']);if('suggestion'===_0x2376b7){_0x16a26e['announce'](this['_getMarkerAnnouncementText'](_0x55af52,'LEAVE'));break;}}for(const _0x17886b of _0x1c1ab4){const {group:_0x24ccd6,type:_0x1e8d15}=this['_splitMarkerName'](_0x17886b['name']);if('suggestion'===_0x24ccd6){_0x16a26e['announce'](this['_getMarkerAnnouncementText'](_0x1e8d15,'ENTER',_0x31ad4f(_0x55609f)));break;}}});}['_processAttributeChanges'](_0x2e286d){if(this['_recordAttributeSuggestions'])return!0x1;const _0x8b46e9=this['editor'],_0x37ab06=_0x8b46e9['model']['document']['differ']['getChanges']();if(0x0==_0x37ab06['length'])return!0x1;const _0x4b75d3=[],_0x5d6ba4=_0x37ab06['filter'](_0x4b6238=>'attribute'==_0x4b6238['type']),_0x225cd9=_0x37ab06['filter'](_0x1df5e4=>'insert'==_0x1df5e4['type']&&'$text'!=_0x1df5e4['name']),_0x554146=_0x37ab06['filter'](_0x196117=>'remove'==_0x196117['type']&&'$text'!=_0x196117['name']);for(const _0x23d44b of _0x5d6ba4)_0x4b75d3['push']({'key':_0x23d44b['attributeKey'],'newValue':_0x23d44b['attributeNewValue'],'oldValue':_0x23d44b['attributeOldValue'],'range':qt(_0x23d44b['range'],_0x8b46e9['model'])});for(const _0x31fd8e of _0x225cd9){const _0x43fb94=_0x554146['find'](_0x578d35=>_0x578d35['position']['isEqual'](_0x31fd8e['position']));_0x43fb94&&_0x4b75d3['push']({'key':u,'newValue':_0x31fd8e['name'],'oldValue':_0x43fb94['name'],'range':_0x8b46e9['model']['createRangeOn'](_0x31fd8e['position']['nodeAfter'])});}return 0x0!=_0x4b75d3['length']&&this['_reduceExistingSuggestions'](_0x2e286d,_0x4b75d3);}['_processAttributeSuggestions'](_0x3c8018){let _0x1de3b2=!0x1;const _0x134c94=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xdb55af=>_0xdb55af['data']['newRange']&&_0xdb55af['name']['startsWith']('suggestion:attribute:'));for(const _0x3fedd0 of _0x134c94){const {subType:_0x511c4c,id:_0x2a19b2}=this['_splitMarkerName'](_0x3fedd0['name']),_0x2ba58f=_0x511c4c['split']('|')[0x0];for(const _0x38713a of this['getSuggestions']({'skipNotAttached':!0x0}))_0x38713a['id']!=_0x2a19b2&&'attribute'==_0x38713a['type']&&_0x38713a['data']&&_0x38713a['data']['key']==_0x2ba58f&&_0x38713a['getFirstRange']()['isIntersecting'](_0x3fedd0['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x38713a,_0x3fedd0['data']['newRange'],_0x3c8018),_0x1de3b2=!0x0);}return _0x1de3b2;}['_recordAttributeChanges'](_0x57452a){this['_recordAttributeSuggestions']=!0x0,_0x57452a();}['_isRegisteredAttribute'](_0x54e718){const _0x2980e2=this['_isBlockAttribute'](_0x54e718),_0x1c7d5c=this['_inlineAttributeKeys']['has'](_0x54e718);return _0x2980e2||_0x1c7d5c;}['_reduceExistingSuggestions'](_0x3cde5c,_0x470ef8){if(0x0==_0x470ef8['length'])return!0x1;let _0x2013e8=!0x1;for(const _0x43d878 of _0x470ef8){const _0x50d085=this['_findSuggestions'](_0x43d878['range'],'attribute')['filter'](_0x48e8e0=>!_0x48e8e0['meta']['isNextTo'])['map'](_0x3ce4f3=>_0x3ce4f3['suggestion']),_0x5a457b=_0x2bf3c4({'newValue':_0x43d878['newValue']});_0x50d085['filter'](_0x5cea4b=>{const [_0x423530,_0x5834ed]=_0x5cea4b['subType']['split']('|');return _0x423530==_0x43d878['key']&&_0x5834ed!=_0x5a457b;})['forEach'](_0x5d19f7=>{this['_reduceSuggestionAttributeRange'](_0x5d19f7,_0x43d878['range'],_0x3cde5c),_0x2013e8=!0x0;});}return _0x2013e8;}['_reduceSuggestionAttributeRange'](_0x2cd7e4,_0x297d6b,_0x24f7f1){const _0x3fb180=_0x2cd7e4['getFirstRange']()['getDifference'](_0x297d6b);0x0!==_0x3fb180['length']?0x1!==_0x3fb180['length']?this['_breakSuggestionMarker'](_0x2cd7e4,_0x297d6b['start'],_0x297d6b['end']):this['_setSuggestionRange'](_0x2cd7e4,_0x3fb180[0x0]):_0x24f7f1['removeMarker'](_0x2cd7e4['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x237b03){this['_editor']=_0x237b03,this['_model']=_0x237b03['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2f3d97,_0x38aa43,_0x401981,_0x422eff,_0x262d91,_0x5adaa5,_0x3738e6){return new o(this['_model'],{'type':_0x2f3d97,'subType':_0x38aa43,'id':_0x401981,'originalSuggestionId':_0x3738e6,'author':_0x422eff,'creator':_0x422eff,'attributes':_0x262d91,'onAttributesChange':_0x5adaa5,'onAccept':(..._0x26087c)=>this['getSuggestionCallback'](_0x2f3d97,_0x38aa43,'accept')(..._0x26087c),'onDiscard':(..._0x294eb9)=>this['getSuggestionCallback'](_0x2f3d97,_0x38aa43,'discard')(..._0x294eb9)});}['registerCustomCallback'](_0x274b92,_0x167b77,_0x53a2fd,_0x5582ef){const _0x57e2f4=_0x274b92+':'+_0x167b77+':'+_0x53a2fd;this['_customCallbacks']['set'](_0x57e2f4,_0x5582ef);}['getSuggestionCallback'](_0x4f7df8,_0x215c36,_0x22fdfd){const _0x104ea0=_0x4f7df8+':'+_0x215c36+':'+_0x22fdfd;return this['_customCallbacks']['get'](_0x104ea0)||this['_defaultCallbacks']['get'](_0x4f7df8+':'+_0x22fdfd);}['_registerDefaultCallbacks'](){const _0x290e93=()=>!0x1,_0x34d115=_0x45abd2=>{_0x45abd2['sort']((_0x234ce9,_0x26add9)=>_0x234ce9['start']['isBefore'](_0x26add9['start'])?0x1:-0x1),this['_model']['change'](_0xa71b1a=>{for(const _0x170c1a of _0x45abd2){let _0x4d819c;_0x4d819c=_0x170c1a['end']['isAtEnd']&&_0x170c1a['end']['parent']==_0x170c1a['start']['nodeAfter']?_0xa71b1a['createSelection'](_0x170c1a['start']['nodeAfter'],'on'):_0xa71b1a['createSelection'](_0x170c1a),this['_model']['deleteContent'](_0x4d819c,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x5aa881=(_0x548f65,_0x4b7fd7)=>{_0x4b7fd7&&this['_model']['change'](_0x128279=>{const {commandName:_0x5c8225,commandParams:_0x5abf35=[]}=_0x4b7fd7,_0x13048c=_0x548f65['map'](_0x3262c7=>(Lt(_0x3262c7)&&(_0x3262c7=this['_model']['createRange'](_0x3262c7['end'])),_0x3262c7))['filter'](_0x2bbaaa=>'$graveyard'!==_0x2bbaaa['root']['rootName']);if(_0x13048c['length']<0x1)return;const _0x315847=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3d7008=>_0x53edc8['fromRange'](_0x3d7008));_0x128279['setSelection'](_0x13048c);for(const _0x322dc5 of this['_editor']['commands']['commands']())_0x322dc5['refresh']();_0x5abf35['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x5c8225,..._0x5abf35);const _0x476b82=_0x315847['filter'](_0x40a3a7=>'$graveyard'!=_0x40a3a7['root']['rootName']);_0x476b82['length']>0x0&&_0x128279['setSelection'](_0x476b82);for(const _0x277070 of _0x315847)_0x277070['detach']();});},_0x1d61f8=(_0x16a00c,_0x4ee61d)=>0x1==_0x16a00c['length']&&0x1==_0x4ee61d['length']&&_0x16a00c[0x0]['end']['isEqual'](_0x4ee61d[0x0]['start']),_0x422d4b=(_0xd98f8b,_0x51f5d1,_0x13738e,_0x527bec)=>Wt(_0xd98f8b,_0x51f5d1,_0x13738e,_0x527bec)?[_0xd98f8b,_0x51f5d1]:Wt(_0x51f5d1,_0xd98f8b,_0x527bec,_0x13738e)?[_0x51f5d1,_0xd98f8b]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x290e93),this['_defaultCallbacks']['set']('insertion:discard',_0x34d115),this['_defaultCallbacks']['set']('insertion:join',_0x1d61f8),this['_defaultCallbacks']['set']('insertion:chain',_0x422d4b),this['_defaultCallbacks']['set']('deletion:accept',_0x34d115),this['_defaultCallbacks']['set']('deletion:discard',_0x290e93),this['_defaultCallbacks']['set']('deletion:join',_0x1d61f8),this['_defaultCallbacks']['set']('deletion:chain',_0x422d4b),this['_defaultCallbacks']['set']('formatInline:accept',_0x5aa881),this['_defaultCallbacks']['set']('formatInline:discard',_0x290e93),this['_defaultCallbacks']['set']('formatInline:join',_0x1d61f8),this['_defaultCallbacks']['set']('formatInline:chain',_0x290e93),this['_defaultCallbacks']['set']('formatBlock:accept',_0x5aa881),this['_defaultCallbacks']['set']('formatBlock:discard',_0x290e93),this['_defaultCallbacks']['set']('formatBlock:join',_0x1d61f8),this['_defaultCallbacks']['set']('formatBlock:chain',_0x290e93),this['_defaultCallbacks']['set']('attribute:accept',_0x290e93),this['_defaultCallbacks']['set']('attribute:discard',(_0x48b955,_0x2e210d)=>{if(!_0x2e210d)return;const _0x3f4a12=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x3cb766=>{if(_0x2e210d['key']==u)for(const _0x1117e3 of _0x48b955){const _0x5e9c78=_0x1117e3['start']['nodeAfter'],_0x214211=_0x2e210d['oldValue'];_0x3cb766['rename'](_0x5e9c78,_0x214211);}else{if(_0x3f4a12['_isBlockAttribute'](_0x2e210d['key'])){for(const _0xe8e61e of _0x48b955)void 0x0!==_0x2e210d['oldValue']?_0x3cb766['setAttribute'](_0x2e210d['key'],_0x2e210d['oldValue'],_0xe8e61e['start']['nodeAfter']):_0x3cb766['removeAttribute'](_0x2e210d['key'],_0xe8e61e['start']['nodeAfter']);}else{for(const _0x270a74 of _0x48b955)_0x2e210d['oldValue']?_0x3cb766['setAttribute'](_0x2e210d['key'],_0x2e210d['oldValue'],_0x270a74):_0x3cb766['removeAttribute'](_0x2e210d['key'],_0x270a74);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1d61f8);}}function Gt(_0x4b6eec,_0x30584d,_0xa3dfbf){for(const _0x2e0451 of _0x30584d['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2e0451['root']==_0x2e0451)return!0x1;if(!_0xa3dfbf['containsItem'](_0x2e0451))return!0x1;if(_0x4b6eec['isObject'](_0x2e0451)||_0x4b6eec['isLimit'](_0x2e0451))return!0x0;}return!0x1;}function Lt(_0x4f6c1c){return _0x4f6c1c['end']['parent']==_0x4f6c1c['start']['nodeAfter']&&_0x4f6c1c['end']['isAtStart'];}function Jt(_0x508e77,_0x23ad65,_0x3fef23,_0x323e67){const _0x5d909b=_0x3c29b3=>!_0x3c29b3['item']['is']('$textProxy')&&!_0x323e67['isObject'](_0x3c29b3['item']),_0x54ad0a=_0x508e77['start']['getLastMatchingPosition'](_0x5d909b),_0x39f87b=_0x508e77['end']['getLastMatchingPosition'](_0x5d909b,{'direction':'backward'});return(!_0x508e77['start']['isEqual'](_0x54ad0a)||!_0x508e77['end']['isEqual'](_0x39f87b))&&(_0x54ad0a['isBefore'](_0x39f87b)?_0x3fef23['updateMarker'](_0x23ad65,{'range':_0x3fef23['createRange'](_0x54ad0a,_0x39f87b)}):_0x3fef23['removeMarker'](_0x23ad65),!0x0);}function Kt(_0x1742f7){return _0x2bf3c4(_0x1742f7);}function Ht(_0xc6dd7a){const _0x3f2d93=_0xc6dd7a['start']['nodeAfter'];return _0x3f2d93&&_0x3f2d93['is']('element');}function qt(_0x17d2bf,_0x3803c7){return null==_0x17d2bf['end']['nodeBefore']&&_0x17d2bf['end']['parent']==_0x17d2bf['start']['nodeAfter']?zt(_0x17d2bf['start']['nodeAfter'],_0x3803c7):_0x17d2bf;}function zt(_0x8c8dac,_0x2c4d39){const _0x4bb23c=_0x2c4d39['schema']['isObject'](_0x8c8dac)||_0x2c4d39['schema']['isSelectable'](_0x8c8dac);return _0x2c4d39['createRange'](_0x2c4d39['createPositionAt'](_0x8c8dac,'before'),_0x4bb23c?_0x2c4d39['createPositionAfter'](_0x8c8dac):_0x2c4d39['createPositionAt'](_0x8c8dac,'end'));}function Wt(_0x5750a6,_0x301a73,_0x43e659,_0x53087b){return!!Qt(_0x5750a6,_0x301a73)&&_0x43e659['end']['isEqual'](_0x53087b['start']);}function Qt(_0x48e10c,_0x96b419){if(!_0x48e10c['_isDataLoaded']||!_0x96b419['_isDataLoaded'])return!0x1;const _0x2d7b56=new Set(Object['keys'](_0x48e10c['attributes'])),_0x164de9=new Set(Object['keys'](_0x96b419['attributes']));if(_0x2d7b56['delete']('groupId'),_0x164de9['delete']('groupId'),0x0==_0x2d7b56['size']&&0x0==_0x164de9['size'])return!0x0;if(_0x2d7b56['size']!=_0x164de9['size'])return!0x1;const _0x23f65c={..._0x48e10c['attributes']},_0x498f3e={..._0x96b419['attributes']};return delete _0x23f65c['groupId'],delete _0x498f3e['groupId'],JSON['stringify'](_0x23f65c)==JSON['stringify'](_0x498f3e);}function Xt(_0x5e1e60,_0x3edf03){const _0x35b5ec=Yt(_0x5e1e60['attributes']),_0x2d7445=Yt(_0x3edf03);if(!_0x5e1e60['_isDataLoaded'])return!0x1;for(const _0x2a1560 of Object['keys'](_0x2d7445))if(!_0x2aed50(_0x35b5ec[_0x2a1560],_0x2d7445[_0x2a1560]))return!0x1;return!0x0;}function Yt(_0x10ed61){const _0x3c3262=Object['assign']({},_0x10ed61);return delete _0x3c3262['skipNestingCheck'],delete _0x3c3262['tablePasteChainId'],_0x3c3262;}class pe extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x18406a(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x5b5035,_0x529e54,_0xfd6122,_0x5a8d39){super(),this['model']=_0x529e54,this['view']=_0xfd6122,this['commentThreadController']=_0x5a8d39,this['_editor']=_0x5b5035,this['_acceptCommand']=_0x5b5035['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x5b5035['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x19140e,_0x2015a2)=>_0x19140e||_0x2015a2),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4f2a53=>_0x4f2a53&&this['_editor']['model']['canEditAt'](_0x529e54['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x2ebe9d=>_0x2ebe9d&&this['_editor']['model']['canEditAt'](_0x529e54['getRanges']())),this['_pendingAction']=null,_0xfd6122['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0xfd6122,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0xfd6122,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0xfd6122,'change:isDirty',()=>{_0xfd6122['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 _0x4434ff=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4434ff);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x2ae501{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x14672e,_0x225d71,_0x538f18,_0x5e2905){super(_0x14672e),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0xffefc0(_0x14672e,c(_0x14672e,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x225d71['authoredAt']),this['bind']('authoredAt')['to'](_0x225d71),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',_0x225d71,'authoredAt',this,'descriptionParts',(_0x5bc58d,_0xf136b2,_0x3f13f9)=>{const _0x556e45=_0x3f13f9['map'](_0x48325f=>ls(_0x48325f['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x5bc58d-0x1,_0x225d71['author']['name'],_0xf136b2?_0x5e2905['formatDateTime'](_0xf136b2):'',new DOMParser()['parseFromString'](_0x556e45,'text/html')['body']['textContent']]);}),this['focusables']=new _0x5357b9(),this['focusTracker']=new _0x596630(),this['keystrokes']=new _0x5bb128(),this['focusCycler']=new _0x455afc({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3bfe5a=>_0x3bfe5a['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x225d71,this['_localUser']=_0x538f18,this['_config']=_0x5e2905,_0x5e2905['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0xd9160f(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x4ba694}=this['_config'];this['commentsListView']=new _0x4ba694(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',_0x1574ea=>_0x1574ea+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x9a89c1,_0x84fe24)=>_0x9a89c1||!!_0x84fe24);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x1c79fe}=this['_config'],_0x14b564=new _0x1c79fe(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x32b22b=_0x14b564['commentInputView'];return _0x14b564['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x32b22b,'value',(_0x5ba69e,_0x372937,_0x112fa1)=>!!_0x112fa1||_0x5ba69e&&!_0x372937),_0x32b22b['on']('submit',(_0x39f5fb,_0x5f22b6)=>{this['fire']('addComment',_0x5f22b6),_0x32b22b['editor']['setData']('');}),_0x32b22b['on']('cancel',()=>this['focus']()),_0x32b22b['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x14b564;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x206a92,_0x439068,_0x4a9aba,_0xa2376){super(_0x206a92,_0x439068,_0x4a9aba,_0xa2376),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3b051e=>_0x3b051e&&_0x3b051e[0x0]?_0x3b051e[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x321d16,_0x524532)=>{let _0x3c3423='';for(const _0x1195b9 of _0x321d16)_0x3c3423+='<p>'+ls(_0x1195b9['content'],_0x1195b9['color'])+'</p>';return _0x524532?_0x3c3423:ti(_0x3c3423,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0xa2376['SuggestionView'](_0x206a92,_0x439068,{'formatDateTime':_0xa2376['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 _0x578839=this['bindTemplate'],_0x12b48c=[this['suggestionView']];return this['commentsListView']&&_0x12b48c['push'](this['commentsListView']),this['commentThreadInputView']&&_0x12b48c['push'](this['commentThreadInputView']),_0x12b48c['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x578839['if']('isActive','ck-suggestion-wrapper--active'),_0x578839['to']('type',_0x902bb2=>'ck-suggestion-'+_0x902bb2),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':_0x578839['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x12b48c};}['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 _0x2ae501{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x17dc50,_0x3c28ff,_0x402242){super(_0x17dc50),this['_model']=_0x3c28ff,this['_config']=_0x402242,this['set']('description',''),this['bind']('authoredAt')['to'](_0x3c28ff),this['acceptButton']=this['_createButton'](c(_0x17dc50,'Accept\x20suggestion'),_0x2dc50c,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x17dc50,'Discard\x20suggestion'),_0x359719,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x4a2fec(_0x17dc50,_0x3c28ff['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x5357b9([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x596630(),this['keystrokes']=new _0x5bb128(),this['focusCycler']=new _0x455afc({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x49ae24=>_0x49ae24['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x2a7103=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x2a7103['innerHTML']=this['description'],this['on']('change:description',(_0x5045d2,_0x2e4047,_0x40d8da)=>{_0x2a7103['innerHTML']=_0x40d8da;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x3eb201=this['bindTemplate'],_0x178062=[{'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':_0x3eb201['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3eb201['to']('authoredAt',_0x225d4c=>this['_config']['formatDateTime'](_0x225d4c))}]}]},{'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']&&_0x178062['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':_0x178062}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x575d98,_0x531ede,_0x162356,_0x4fb60e,_0x289ddc){const _0x555087=new _0xbaa962(this['locale']);return _0x555087['set']({'label':_0x575d98,'icon':_0x531ede,'tooltip':!0x0,'tooltipPosition':_0x289ddc}),_0x555087['extendTemplate']({'attributes':{'class':_0x162356}}),_0x555087['on']('execute',()=>{this['fire'](_0x4fb60e,this['_model']['id']);}),_0x555087;}['_setupKeyboardNavigation'](){const _0x21b216=this['element'];this['keystrokes']['listenTo'](_0x21b216);for(const _0x3087d7 of this['focusables'])this['focusTracker']['add'](_0x3087d7['element']),this['keystrokes']['listenTo'](_0x3087d7['element']);this['keystrokes']['set']('enter',(_0x4cf937,_0x2caf23)=>{_0x21b216===_0x4cf937['target']&&(this['focusCycler']['focusFirst'](),_0x2caf23());}),this['keystrokes']['set']('esc',(_0x322875,_0x5a92df)=>{_0x21b216!==_0x322875['target']&&(this['focus'](),_0x5a92df());});}}class d extends _0x11ea7f{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x19fdf5,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x162ab6){super(_0x162ab6),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x5d0987=this['editor']['config'];_0x5d0987['define']('trackChanges.SuggestionThreadView',fe),_0x5d0987['define']('trackChanges.SuggestionView',we),_0x5d0987['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x5d0987['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x8fb19a,_0x1c3ac1){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0xdd2ca,_0x1f1973]of this['_handleControllerBuffer']){const _0x401436=this['_suggestionToController']['has'](_0xdd2ca);_0x401436||_0x1f1973?_0x401436&&_0x1f1973&&this['_destroyController'](_0xdd2ca):this['_initializeController'](_0xdd2ca);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x8fb19a,_0x1c3ac1);}['init'](){const _0x4785d8=this['editor'],_0x3da9c7=_0x4785d8['plugins']['get']('TrackChangesEditing'),_0x323544=_0x4785d8['plugins']['get']('Annotations'),_0x12bf7a=_0x4785d8['plugins']['get']('EditorAnnotations'),_0x393284=_0x4785d8['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x12bf7a['addSourceCollector'](()=>{const _0x3f6868=[];for(const [_0x30881d,_0x4f512b]of Array['from'](this['_suggestionToController'])){const _0x40223e=_0x30881d['getAllAdjacentSuggestions'](),_0x470355=[];for(const _0x8bf924 of _0x40223e){if(!_0x8bf924['isInContent'])continue;if(_0x8bf924['isMultiRange']){_0x470355['push'](..._0x8bf924['getRanges']());continue;}const _0x1b4586=_0x8bf924['getFirstRange']();if(_0x470355['length']>0x0){const _0x5a6988=_0x470355[0x0]['getJoined'](_0x1b4586);if(_0x5a6988){_0x470355[0x0]=_0x5a6988;continue;}}_0x470355['push'](_0x1b4586);}_0x3f6868['push']([_0x4f512b['view'],_0x470355]);}return _0x3f6868;}),this['listenTo'](_0x3da9c7,'suggestionLoaded',(_0x188dae,_0x2bbf56)=>{this['listenTo'](_0x2bbf56,'change:previous',(_0x3d7a2b,_0x37f8b8,_0x5254ad,_0x457898)=>{_0x2bbf56['isInContent']&&(null==_0x5254ad?(this['_updateController'](_0x457898['head']),this['_handleSuggestionControllerDelayed'](_0x2bbf56,!0x1)):(this['_updateController'](_0x5254ad['head']),null==_0x457898&&this['_handleSuggestionControllerDelayed'](_0x2bbf56,!0x0)));}),null!==_0x2bbf56['previous']?this['_updateController'](_0x2bbf56['head']):this['_handleSuggestionControllerDelayed'](_0x2bbf56,!0x1);}),this['listenTo'](_0x3da9c7,'suggestionUnloaded',(_0xe712b4,_0x2f0568,_0x1a0b7e)=>{this['stopListening'](_0x2f0568,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2f0568),this['_suggestionToController']['has'](_0x2f0568)&&this['_destroyController'](_0x2f0568),_0x1a0b7e&&this['_updateController'](_0x1a0b7e['head']);}),this['listenTo'](_0x3da9c7,'suggestionChanged',(_0x3ba121,_0x1c61cc)=>{this['_updateController'](_0x1c61cc);}),this['listenTo'](_0x323544,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x393284,'addComment',(_0x2931c1,{threadId:_0x18e483,isFromAdapter:_0x7d37ac})=>{if(_0x7d37ac||!_0x3da9c7['hasSuggestion'](_0x18e483))return;const _0x3a3411=_0x3da9c7['getSuggestion'](_0x18e483);this['_suggestionToController']['get'](_0x3a3411)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xde509a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1311fd;for(const _0x2bf058 in _0xde509a){const _0x3406e9=_0x2bf058,_0x1cd0aa=_0xde509a[_0x3406e9];if('trackChangesLicenseKeyValid'==_0x1cd0aa||'trackChangesLicenseKeyInvalid'==_0x1cd0aa||'trackChangesLicenseKeyExpired'==_0x1cd0aa||'trackChangesLicenseKeyDomainLimit'==_0x1cd0aa||'trackChangesLicenseKeyNotAllowed'==_0x1cd0aa||'trackChangesLicenseKeyEvaluationLimit'==_0x1cd0aa||'trackChangesLicenseKeyTrialLimit'==_0x1cd0aa||'trackChangesLicenseKeyUsageLimit'==_0x1cd0aa){delete _0xde509a[_0x3406e9],_0x1311fd=_0x1cd0aa,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x1311fd&&_0xde509a['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x1311fd&&_0xde509a['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x1311fd&&_0xde509a['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x1311fd&&_0xde509a['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x1311fd&&_0xde509a['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x1311fd&&_0xde509a['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x1311fd&&_0xde509a['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x2a1db8=this['editor']['plugins']['get']('Annotations'),_0x5863cc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4b5f96=Array['from'](_0x2a1db8['activeAnnotations'],_0x1b6375=>_0x1b6375['innerView'])['filter'](_0x54254d=>this['_viewToController']['has'](_0x54254d)),_0x3af8a1=[];for(const _0x1afb40 of _0x4b5f96){const _0xaebe9=this['_viewToController']['get'](_0x1afb40)['model']['getAllAdjacentSuggestions']();_0x3af8a1['push'](..._0xaebe9['reduce']((_0x267031,_0x343095)=>[..._0x267031,..._0x343095['getMarkerNames']()],[]));}_0x5863cc['activeMarkers']=_0x3af8a1;}['_addUIComponentsToFactory'](){const _0x212d9f=this['editor'],_0x104221=_0x212d9f['locale'],_0x5f508d=c(_0x104221,'Track\x20changes'),_0x3c37a9=new _0x5e4040([{'type':'switchbutton','model':new _0x166277({'withText':!0x0,'isToggleable':!0x0,'label':_0x5f508d,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x166277({'withText':!0x0,'label':c(_0x104221,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x166277({'withText':!0x0,'label':c(_0x104221,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x166277({'withText':!0x0,'label':c(_0x104221,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x166277({'withText':!0x0,'label':c(_0x104221,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x212d9f['plugins']['has']('TrackChangesPreview')&&_0x3c37a9['addMany']([{'type':'separator'},{'type':'button','model':new _0x166277({'withText':!0x0,'label':c(_0x104221,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x5c119f of _0x3c37a9)if(ke(_0x5c119f)){const _0x3751ee=_0x212d9f['commands']['get'](_0x5c119f['model']['commandName']);_0x5c119f['model']['bind']('isOn','isEnabled')['to'](_0x3751ee,'value','isEnabled');}_0x212d9f['ui']['componentFactory']['add']('trackChanges',_0x599f73=>this['_createToolbarButton'](_0x599f73,_0x3c37a9,_0x5f508d)),_0x212d9f['ui']['componentFactory']['add']('menuBar:trackChanges',_0x5c667c=>this['_createMenuBarMenu'](_0x5c667c,_0x3c37a9,_0x5f508d));}['_createToolbarButton'](_0x28fc2c,_0xef0fb8,_0x2018f0){const _0x50fb0e=_0x46612d(_0x28fc2c,_0x214ce7),_0x411302=this['editor']['commands']['get']('trackChanges');_0x50fb0e['buttonView']['set']({'tooltip':_0x2018f0,'label':_0x2018f0,'icon':_0x46fdee}),_0x50fb0e['buttonView']['bind']('isOn')['to'](_0x411302,'value'),_0x50fb0e['buttonView']['on']('execute',()=>{_0x411302['execute'](),this['editor']['editing']['view']['focus']();}),_0x5cdae9(_0x50fb0e,_0xef0fb8,{'role':'menu'});const _0x2e6029=[];for(const _0x2b9abe of _0xef0fb8)ke(_0x2b9abe)&&_0x2e6029['push'](this['editor']['commands']['get'](_0x2b9abe['model']['commandName']));const _0x57105c=_0x50fb0e['buttonView'];return _0x57105c['actionView']['unbind']('isEnabled'),_0x57105c['arrowView']['unbind']('isEnabled'),_0x57105c['actionView']['bind']('isEnabled')['to'](_0x411302,'isEnabled'),_0x57105c['arrowView']['bind']('isEnabled')['toMany'](_0x2e6029,'isEnabled',(..._0x30c167)=>_0x30c167['some'](_0xe0b604=>_0xe0b604)),_0x50fb0e['on']('execute',_0x21fa01=>{this['editor']['execute'](_0x21fa01['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x50fb0e;}['_createMenuBarMenu'](_0x130810,_0x14ad75,_0x49f640){const _0x23d17d=new _0x292dc9(_0x130810),_0x31d1bb=this['editor']['commands']['get']('trackChanges');_0x23d17d['buttonView']['set']({'label':_0x49f640,'icon':_0x46fdee});const _0x4954c5=new _0x22298c(_0x130810);for(const _0x58b316 of _0x14ad75){if('separator'==_0x58b316['type']){_0x4954c5['items']['add'](new _0x4e76ca(_0x130810));continue;}const _0x13122a=new _0x20b265(_0x130810,_0x23d17d),_0x51d436=new _0x5a7002(_0x130810),_0x4a98d5=_0x58b316['model'];_0x51d436['bind'](...Object['keys'](_0x4a98d5))['to'](_0x4a98d5),_0x51d436['delegate']('execute')['to'](_0x23d17d),_0x51d436['on']('execute',()=>{this['editor']['execute'](_0x4a98d5['commandName']),this['editor']['editing']['view']['focus']();}),_0x13122a['children']['add'](_0x51d436),_0x4954c5['items']['add'](_0x13122a);}return _0x23d17d['bind']('isEnabled')['to'](_0x31d1bb,'isEnabled'),_0x23d17d['panelView']['children']['add'](_0x4954c5),_0x23d17d;}['_initializeController'](_0x3da678){const _0x285aa3=this['editor'],_0x4da8cc=_0x285aa3['config'],_0x2776a0=_0x285aa3['plugins']['get']('Annotations'),_0x341988=_0x285aa3['plugins']['get']('CommentsRepository'),_0x21b300=_0x285aa3['plugins']['get']('EditorAnnotations'),_0x590365=_0x285aa3['plugins']['get'](_0x19fdf5)['me'],_0x219119=_0x4da8cc['get']('trackChanges')['SuggestionThreadView'],_0x21d359=_0x4da8cc['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x5b380e,CommentThreadInputView:_0x35936d}=_0x285aa3['plugins']['get']('CommentsUI');let _0xb4f2d7,_0x194f67,_0x40fc28;this['_annotationViews']['has'](_0x3da678['id'])?(_0x194f67=this['_annotationViews']['get'](_0x3da678['id']),_0xb4f2d7=_0x194f67['mainView']):(_0xb4f2d7=new _0x219119(_0x285aa3['locale'],_0x3da678,_0x590365,{'disableComments':this['_disableComments'],'editorConfig':{..._0x4da8cc['get']('comments.editorConfig'),'licenseKey':_0x4da8cc['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x4da8cc['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4da8cc['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4da8cc['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x33eb5c(_0x4da8cc['get']('locale'),_0x285aa3['locale']),'CommentView':_0x4da8cc['get']('comments')['CommentView'],'CommentsListView':_0x5b380e,'CommentThreadInputView':_0x35936d,'SuggestionView':_0x21d359}),_0xb4f2d7['suggestionView']['acceptButton']['on']('execute',()=>{_0x285aa3['editing']['view']['focus']();}),_0xb4f2d7['suggestionView']['discardButton']['on']('execute',()=>{_0x285aa3['editing']['view']['focus']();}),_0x194f67=_0x2776a0['createAnnotationView'](this['editor']['locale'],_0xb4f2d7),_0x194f67['bind']('isDirty')['to'](_0xb4f2d7,'isDirty'),_0x194f67['bind']('length')['to'](_0xb4f2d7),_0x194f67['bind']('type')['to'](_0xb4f2d7,'type',_0x26ea4b=>'suggestion-'+_0x26ea4b),_0xb4f2d7['on']('escape',()=>{_0x40fc28['fire']('escape');}),this['_annotationViews']['set'](_0x3da678['id'],_0x194f67));const _0x1db52b=_0x341988['createCommentThreadController'](_0x3da678['commentThread'],_0xb4f2d7),_0x3c68ad=new pe(_0x285aa3,_0x3da678,_0xb4f2d7,_0x1db52b),_0x5555ac=_0x3da678['getAllAdjacentSuggestions']()['filter'](_0x5dd2c8=>_0x5dd2c8['isInContent']);_0xb4f2d7['descriptionParts']=_0x285aa3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x5555ac),this['_suggestionToController']['set'](_0x3da678,_0x3c68ad),this['_viewToController']['set'](_0xb4f2d7,_0x3c68ad),_0x40fc28=_0x2776a0['createAnnotation']({'view':_0x194f67,'target':()=>{const _0x3eb164=[],_0x2a6673=_0x3da678['getAllAdjacentSuggestions']()['filter'](_0x104069=>_0x104069['isInContent']);for(const _0x46d8b8 of _0x2a6673)_0x3eb164['push'](..._0x46d8b8['getMarkers']());return _0x123e60(_0x285aa3['editing'],_0x3eb164);},'type':()=>'suggestion-'+_0x3c68ad['view']['type']}),_0x341988['_bindAnnotationToEditors'](_0xb4f2d7,_0x40fc28),_0x2776a0['add'](_0x40fc28),_0x21b300['registerAnnotation'](_0x40fc28);}['_destroyController'](_0x21ca26){const _0x5c79ee=this['editor']['plugins']['get']('CommentsRepository'),_0x48cfb7=this['editor']['plugins']['get']('Annotations'),_0x4811f5=this['_suggestionToController']['get'](_0x21ca26),_0x4e0467=_0x4811f5['view'],_0x465f38=_0x48cfb7['getByInnerView'](_0x4e0467);_0x5c79ee['_unbindEditors'](_0x4e0467),_0x465f38&&_0x48cfb7['remove'](_0x465f38),this['_suggestionToController']['delete'](_0x21ca26),this['_viewToController']['delete'](_0x4e0467),_0x4811f5['destroy']();}['_updateController'](_0x5856fe){if(!_0x5856fe['isInContent']||!this['_suggestionToController']['has'](_0x5856fe))return;const _0x349fd0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x28ce6e=this['_suggestionToController']['get'](_0x5856fe),_0x21bb29=_0x5856fe['getAllAdjacentSuggestions']();_0x28ce6e['view']['descriptionParts']=_0x349fd0['descriptionFactory']['getDescriptions'](_0x21bb29);}['destroy'](){for(const _0xb16d08 of this['_suggestionToController']['keys']())this['_destroyController'](_0xb16d08);for(const _0x12fca8 of this['_annotationViews']['values']())_0x12fca8['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x16ce10){return'model'in _0x16ce10;}class k extends _0x11ea7f{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x520c76){this['editor']['plugins']['get'](p)['adapter']=_0x520c76;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x4835f3){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x4835f3);}['getSuggestions']({skipNotAttached:_0x7e98b=!0x1,toJSON:_0x1a0db8=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x7e98b,'toJSON':_0x1a0db8});}['getSuggestion'](_0x4200ce){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x4200ce);}}const w=['Pagination'];class T extends _0x11ea7f{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x481e25=this['editor'];if(_0x481e25['config']['define']('trackChangesData.editorCreator',_0xbbed96=>{const _0x5d75c9=_0x481e25['model']['document']['getRootNames']()['reduce']((_0x134f7d,_0x14803e)=>(_0x134f7d[_0x14803e]='',_0x134f7d),{});return _0x481e25['constructor']['create'](_0x5d75c9,_0xbbed96);}),'function'!=typeof _0x481e25['config']['get']('trackChangesData')['editorCreator'])throw new _0x1cd3be('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2b8d56){return N(this['editor'],!0x0,_0x2b8d56);}['getDataWithDiscardedSuggestions'](_0x4fd7ac){return N(this['editor'],!0x1,_0x4fd7ac);}}class D extends _0x11ea7f{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x34bfcc){function _0x250f06(_0x45c457){return _0x45c457['map'](_0x4962c7=>String['fromCharCode'](_0x4962c7))['join']('');}super(_0x34bfcc),this['result']='end',_0x34bfcc[_0x250f06([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x250f06([0x76,0x69,0x65,0x77])][_0x250f06([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x250f06([0x61,0x75,0x74,0x6f]),_0x34bfcc[_0x250f06([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x250f06([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x250f06([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x250f06([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x250f06([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 Ge(_0x40cae4){return void 0x0!==_0x40cae4['getRootsAttributes'];}async function N(_0x1a549c,_0x4086b2,_0x3af22a){const _0x1e80d3=_0x481b18(_0x1a549c,w);_0x1e80d3['plugins']['push'](p,D),_0x1e80d3['rootsAttributes']=Ge(_0x1a549c)?_0x1a549c['getRootsAttributes']():void 0x0;const _0x18368a=document['createDocumentFragment'](),_0x1f48a1=_0x1a549c['config']['get']('trackChangesData')['editorCreator'],_0x234ad0=await _0x1f48a1(_0x1e80d3,()=>function(_0x1fd882){const _0x2c03f6=document['createElement']('div');return _0x1fd882['appendChild'](_0x2c03f6),_0x2c03f6;}(_0x18368a));!function(_0x47c7c6,_0x44edbd){const _0xd95689=_0x47c7c6['model']['document']['getRootNames']()['reduce']((_0x2fe1f1,_0x148f57)=>(_0x2fe1f1[_0x148f57]=_0x47c7c6['data']['get']({'rootName':_0x148f57}),_0x2fe1f1),{}),_0x43be96=_0x47c7c6['plugins']['get']('Users')['users']['map'](_0x112be5=>({'id':_0x112be5['id'],'name':_0x112be5['name']})),_0x7944c9=_0x47c7c6['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x344326=_0x47c7c6['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x15c310=_0x44edbd['plugins']['get']('Users'),_0x5e80dd=_0x44edbd['plugins']['get']('TrackChangesEditing'),_0x5d121b=_0x44edbd['plugins']['get']('CommentsRepository');for(const _0x320116 of _0x5d121b['getCommentThreads']())_0x320116['remove']();for(const _0x1ea055 of _0x43be96)_0x15c310['getUser'](_0x1ea055['id'])||_0x15c310['addUser'](_0x1ea055);_0x15c310['me']||_0x15c310['useAnonymousUser']();for(const _0x540d43 of _0x344326)_0x5d121b['addCommentThread'](_0x540d43);for(const _0x18b1ba of _0x7944c9)_0x5e80dd['addSuggestionData'](_0x18b1ba);_0x44edbd['data']['set'](_0xd95689);}(_0x1a549c,_0x234ad0),_0x234ad0['execute'](_0x4086b2?'acceptAllSuggestions':'discardAllSuggestions');const _0x5ba4a2=Ge(_0x234ad0)?_0x234ad0['getFullData'](_0x3af22a):_0x234ad0['data']['get'](_0x3af22a);return await _0x234ad0['destroy'](),_0x5ba4a2;}class Me extends _0x2ae501{['options'];constructor(_0xfd16a9,_0x1b8e89){super(_0xfd16a9),this['options']=_0x1b8e89,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'](_0x5240a8,_0xacd5ca){if(!this['element'])return;const _0x25fd34=[];for(const [_0x21784a,_0x1bec30]of _0x5240a8){const _0x17f8e7=document['createElement']('div');_0x17f8e7['setAttribute']('data-ck-root-name',_0x21784a),_0x17f8e7['className']=_0x1bec30['classes']+'\x20ck-track-changes-preview__root-container',_0x17f8e7['innerHTML']=_0x1bec30['content'],_0x25fd34['push'](_0x17f8e7);}_0xacd5ca(this['element'],_0x25fd34),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x56553e{constructor(_0x16b332){super(_0x16b332),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x43b0d1=this['editor'],_0x161739=_0x43b0d1['locale'],_0x372d99=_0x43b0d1['plugins']['get']('Dialog');let _0x322474;const _0x469120=function(_0x13ed6c){const _0x3151d0={};if('editables'in _0x13ed6c['ui']['view']){for(const [_0x5f58bc,_0x5788ac]of Object['entries'](_0x13ed6c['ui']['view']['editables']))_0x3151d0[_0x5f58bc]=_0x5788ac['element'];}else _0x3151d0[_0x13ed6c['model']['document']['getRootNames']()[0x0]]=_0x13ed6c['ui']['view']['editable']['element'];return _0x3151d0;}(_0x43b0d1),_0x4c4f1e=function(_0x2e28ca){let _0x2fb2f9=0x0;for(const _0xd66887 of Object['values'](_0x2e28ca))_0x2fb2f9=Math['max'](_0x2fb2f9,_0xd66887['getBoundingClientRect']()['width']);let _0x3ad84e=0x0;for(const _0x1ffe57 of Object['values'](_0x2e28ca))_0x3ad84e+=_0x1ffe57['getBoundingClientRect']()['height'];const _0x2f7b4b=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x5ad83a=Math['min'](_0x3ad84e,_0x2f7b4b);return{'width':_0x2fb2f9,'height':_0x5ad83a};}(_0x469120);_0x372d99['show']({'id':'finalContentPreview','title':c(_0x161739,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x161739,{'dialogRects':_0x4c4f1e}),'onHide':()=>{_0x322474['detachFromDom']();},'onShow':()=>{_0x43b0d1['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x379c07=>{const _0x31407a=this['_standarizeRootsData'](_0x379c07,_0x43b0d1,_0x469120);_0x372d99['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x31407a,_0x43b0d1['config']['get']('trackChanges.preview.renderFunction'));}),_0x322474=new _0x369a10(_0x161739,[_0x372d99['view']]),_0x322474['attachToDom'](),_0x322474['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x43b0d1['once']('destroy',()=>{_0x322474['detachFromDom']();});const _0x584d98=_0x372d99['view']['headerView']['class'];_0x372d99['view']['headerView']['class']=_0x584d98?_0x584d98+'\x20ck-reset_all':'ck-reset_all',_0x372d99['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x372d99['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x5ae26e=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x10cf45=_0x5ae26e['previewMode'],_0x5145b3={};if('$labels'===_0x10cf45){for(const _0x4e4cee of _0x5ae26e['getMergeFieldsIds']())_0x5145b3[_0x4e4cee]=_0x5ae26e['getLabel'](_0x4e4cee)||_0x4e4cee;}else{const _0x87dee8='$defaultValues'===_0x10cf45?_0x5ae26e['getDefaultValues']():_0x5ae26e['getDataSetValues'](_0x10cf45,!0x0);for(const _0x30cbbf of Object['entries'](_0x87dee8)){const [_0x3dd726,_0x43fb8b]=_0x30cbbf;_0x5145b3[_0x3dd726]=null!==_0x43fb8b?_0x43fb8b:_0x5ae26e['getLabel'](_0x3dd726)||_0x3dd726;}}return{'mergeFieldsData':_0x5145b3};}['_standarizeRootsData'](_0x388e5a,_0x3bf585,_0x2cb5ac){let _0xd07637;if('string'==typeof _0x388e5a){const _0x2a1216=_0x3bf585['model']['document']['getRootNames']()[0x0];_0xd07637={[_0x2a1216]:_0x388e5a};}else _0xd07637=_0x388e5a;const _0x340799=this['_fixMediaEmbeds'](_0xd07637,_0x3bf585),_0x59fdff=function(_0x1c48b1,_0x132df7){for(const [_0x59544b,_0x32590e]of _0x1c48b1)_0x32590e['classes']=_0x132df7[_0x59544b]['classList']['value']['replace']('ck-focused','');return _0x1c48b1;}(this['_sortRoots'](_0x3bf585)['reduce']((_0x5e64c0,_0x1d7892)=>(_0x5e64c0['push']([_0x1d7892,{'content':_0x340799[_0x1d7892],'classes':''}]),_0x5e64c0),[]),_0x2cb5ac);return _0x59fdff;}['_fixMediaEmbeds'](_0x55dea0,_0x5a79a7){if(!_0x5a79a7['plugins']['has']('MediaEmbedEditing'))return _0x55dea0;const _0x3d08f2=_0x5a79a7['plugins']['get']('MediaEmbedEditing');for(const [_0x4db3d9,_0x175acb]of Object['entries'](_0x55dea0)){const _0x37b5a6=document['createElement']('div');_0x37b5a6['innerHTML']=_0x175acb,(_0x37b5a6['querySelectorAll']('figure.media')['forEach'](_0x48968c=>{const _0x1f301f=_0x48968c['querySelector']('oembed');if(_0x1f301f){const _0x1ced47=_0x1f301f['getAttribute']('url');if(_0x1ced47){const _0x329663=_0x3d08f2['registry']['getMediaViewElement'](new _0x3d3be1(_0x5a79a7['editing']['view']['document']),_0x1ced47,{'elementName':'','renderForEditingView':!0x0}),_0x5209dd=document['createElement']('div');_0x5209dd['classList']['add']('ck-media__wrapper'),_0x329663['render'](_0x5209dd,_0x5a79a7['editing']['view']['domConverter']),_0x1f301f['replaceWith'](_0x5209dd);}}}),_0x55dea0[_0x4db3d9]=_0x37b5a6['innerHTML']);}return _0x55dea0;}['_sortRoots'](_0x128631){if(!function(_0x25f1fb){return void 0x0!==_0x25f1fb['getRootsAttributes'];}(_0x128631))return _0x128631['model']['document']['getRootNames']();const _0x3edd5d=[],_0x224283=new Map();for(const _0x55092e of _0x128631['model']['document']['getRootNames']()){const _0x2cde53=_0x128631['editing']['view']['getDomRoot'](_0x55092e)['getClientRects']()['item'](0x0);_0x3edd5d['push'](_0x55092e),_0x224283['set'](_0x55092e,_0x2cde53);}return _0x3edd5d['sort']((_0x4f6bdd,_0x2d552a)=>{const _0x4b533e=_0x224283['get'](_0x4f6bdd),_0x39ba12=_0x224283['get'](_0x2d552a);return _0x4b533e['y']-_0x39ba12['y']||_0x4b533e['x']-_0x39ba12['x'];}),_0x3edd5d;}}class te extends _0x11ea7f{static get['requires'](){return[T,_0x4de383];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x54249b){super(_0x54249b),_0x54249b['commands']['add']('previewFinalContent',new re(this['editor'])),_0x54249b['config']['define']('trackChanges.preview.renderFunction',(_0x490506,_0xeb4692)=>{for(const _0x27e5bb of _0xeb4692)_0x490506['appendChild'](_0x27e5bb);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
|
|
23
|
+
import{Command as _0x18dae3,Plugin as _0x3b35c4,PendingActions as _0x3fbc39}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0xc7eb95,ObservableMixin as _0x39e58d,uid as _0x281607,priorities as _0x4512e8,insertToPriorityArray as _0x1fd667,toArray as _0x3a9362,logWarning as _0xd2389d,getEnvKeystrokeText as _0x26c402,FocusTracker as _0x2e8585,KeystrokeHandler as _0x1cdd14,Collection as _0x28345c}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x2d481a,IconCancel as _0x35c47,IconTrackChanges as _0x328e47}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x34724a,View as _0x227acf,ViewCollection as _0x49b3dd,FocusCycler as _0x4b6c41,ViewModel as _0x4eb3cd,createDropdown as _0x3f6a89,SplitButtonView as _0xc75dec,addListToDropdown as _0x4ae9e0,MenuBarMenuView as _0x1a7567,MenuBarMenuListView as _0x4d5f26,ListSeparatorView as _0xd2db54,MenuBarMenuListItemView as _0x52ff2f,MenuBarMenuListItemButtonView as _0x87f93d,BodyCollection as _0x36988f,Dialog as _0x846e2a}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x30d22a,hashObject as _0x3ed617,surroundingMarkersDetector as _0x619df9,FOCUS_ANNOTATION_KEYSTROKE as _0x2ddebb,AriaDescriptionView as _0x784425,setupThreadKeyboardNavigation as _0x24eb33,trimHtml as ti,UserView as _0xb2de16,LateFocusButtonView as _0x44c3f4,getDateTimeFormatter as _0x3e5c82,getAllMarkersDomElementsSorted as _0x5a8a50,sanitizeEditorConfig as _0x9c03b3}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x391178,LiveRange as _0x268add,LivePosition as _0x1a83d5,DowncastWriter as _0x5356e3}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x30dddd,toWidget as _0x4010d0}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x53a7f5,set as _0x49cd5f,isEqual as _0x4c5c2a,unset as _0x589aff,omit as Ft}from'es-toolkit/compat';import{Delete as _0x4d99a2,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x1af609}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x3e542b}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x18dae3{['_enabledCommands'];constructor(_0xf64018,_0x2a14dd){super(_0xf64018),this['_enabledCommands']=_0x2a14dd,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 _0x283f95 of this['editor']['commands']['commands']())_0x283f95['affectsData']&&!this['_enabledCommands']['has'](_0x283f95)&&_0x283f95['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0xe14fb1 of this['editor']['commands']['commands']())_0xe14fb1['affectsData']&&!this['_enabledCommands']['has'](_0xe14fb1)&&_0xe14fb1['clearForceDisabled']('TrackChangesCommand');}}class x extends _0x18dae3{['_suggestions'];constructor(_0x4bec67,_0x516c98){super(_0x4bec67),this['_suggestions']=_0x516c98,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x484c0b){const _0x3cc1aa=this['_suggestions']['get'](_0x484c0b);if(!_0x3cc1aa)throw new _0xc7eb95('track-changes-accept-suggestion-not-found',this);const _0xd08bf1=_0x3cc1aa['getRanges']();this['editor']['model']['canEditAt'](_0xd08bf1)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x3cc1aa);}}class O extends _0x18dae3{['_suggestions'];constructor(_0x728812,_0x2f167b){super(_0x728812),this['_suggestions']=_0x2f167b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5ccee7){const _0x549738=this['_suggestions']['get'](_0x5ccee7);if(!_0x549738)throw new _0xc7eb95('track-changes-discard-suggestion-not-found',this);const _0x4a2ae5=_0x549738['getRanges']();this['editor']['model']['canEditAt'](_0x4a2ae5)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x549738);}}function ls(_0x33e37d,_0x456be4){let _0x49852d='';return _0x49852d+=_0x33e37d['split']('*')['map']((_0x4ddc64,_0x175f32)=>_0x175f32%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x4ddc64)+'</span>':nn(_0x4ddc64))['join'](''),_0x456be4&&(_0x49852d+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x456be4['value']+'\x22\x20title=\x22'+_0x456be4['title']+'\x22></span>'),_0x49852d;}function nn(_0x78f4cf){const _0x3d73bf=document['createElement']('span');return _0x3d73bf['innerText']=_0x78f4cf,_0x3d73bf['innerHTML'];}function ts(_0x5b6e99){return _0x5b6e99['sort']((_0xe2fc5f,_0x1ba5d0)=>'deletion'==_0xe2fc5f['type']&&'deletion'!=_0x1ba5d0['type']?-0x1:'deletion'!=_0xe2fc5f['type']&&'deletion'==_0x1ba5d0['type']?0x1:0x0);}function to(_0x5337ae,_0x4d3eaf){let _0x2fac8d,_0x590839=0x0;const _0x2e1b75=[],_0x17d00a=_0x4d3eaf['schema'];for(;_0x590839<_0x5337ae['length'];){const _0x5daaac=_0x5337ae[_0x590839],_0x4af3d1=_0x5337ae[_0x590839+0x1];_0x2fac8d||(_0x2fac8d=_0x4d3eaf['createPositionBefore'](_0x5daaac)),on(_0x4d3eaf,_0x5daaac,_0x4af3d1)||(_0x2e1b75['push'](_0x4d3eaf['createRange'](_0x2fac8d,_0x17d00a['isObject'](_0x5daaac)?_0x4d3eaf['createPositionAfter'](_0x5daaac):_0x4d3eaf['createPositionAt'](_0x5daaac,'end'))),_0x2fac8d=null),_0x590839++;}return _0x2e1b75;}function on(_0xd51af0,_0x48b824,_0x2929c9){if(!_0x2929c9)return!0x1;const _0x5648e0=_0xd51af0['createPositionAfter'](_0x48b824),_0x2647f0=_0xd51af0['createPositionBefore'](_0x2929c9);return _0x5648e0['isTouching'](_0x2647f0);}function rs(_0xd1e603,_0x529330,_0x29c997){for(;_0x29c997['length'];){const _0x4d70cf=_0x29c997['splice'](0x0,0x64);_0xd1e603['change'](()=>{for(const _0x41cf5e of _0x4d70cf)_0x41cf5e['isInContent']&&_0x529330['execute'](_0x41cf5e['id']);});}}class R extends _0x18dae3{['_command'];['_suggestions'];constructor(_0x3854ce,_0x1bc950,_0x20aefa){super(_0x3854ce),this['_command']=_0x1bc950,this['_suggestions']=_0x20aefa,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x21449b=Array['from'](this['_suggestions']['values']())['some'](_0x1880e4=>_0x1880e4['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x21449b;}['execute'](){const _0x3b063f=ts(Array['from'](this['_suggestions']['values']()));for(const _0x3b5334 of _0x3b063f){const _0x28fdd7=_0x3b5334['getRanges']();if(!this['editor']['model']['canEditAt'](_0x28fdd7))return;}rs(this['editor']['model'],this['_command'],_0x3b063f);}}class E extends _0x18dae3{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x306f2e,_0x3fae93,_0x5d395f){super(_0x306f2e),this['_command']=_0x3fae93,this['_suggestions']=_0x5d395f,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x126018=this['editor']['model']['document']['selection'],_0x2c0621=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0xcb2b20,_0x40b2bb){const _0x5eca0a=Array['from'](_0xcb2b20['getRanges']()),_0x8aa413=new Set();for(const _0x743f35 of _0x40b2bb)if(_0x743f35['isInContent']){for(const _0x16614c of _0x5eca0a)for(const _0x4b2c56 of _0x743f35['getRanges']())(_0x16614c['isIntersecting'](_0x4b2c56)||_0xcb2b20['isCollapsed']&&!_0x743f35['isMultiRange']&&_0x743f35['next']&&_0x4b2c56['end']['isTouching'](_0x16614c['start']))&&_0x8aa413['add'](_0x743f35);}return _0x8aa413;}(_0x126018,_0x2c0621),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x60457=ts(Array['from'](this['_selectedSuggestions']));for(const _0x49787c of _0x60457){const _0xb3787a=_0x49787c['getRanges']();if(!this['editor']['model']['canEditAt'](_0xb3787a))return;}rs(this['editor']['model'],this['_command'],_0x60457);}}class o extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x39e58d(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x22d962,_0x5d7fbf){super(),this['id']=_0x5d7fbf['id'],this['type']=_0x5d7fbf['type'],this['subType']=_0x5d7fbf['subType']||null,this['author']=_0x5d7fbf['author'],this['creator']=_0x5d7fbf['creator']||_0x5d7fbf['author'],this['isExternal']=Boolean(_0x5d7fbf['attributes']&&_0x5d7fbf['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x5d7fbf['originalSuggestionId']||null,this['_model']=_0x22d962,this['_onAccept']=_0x5d7fbf['onAccept'],this['_onDiscard']=_0x5d7fbf['onDiscard'],this['_onAttributesChange']=_0x5d7fbf['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5d7fbf['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 _0x35cde2=this;for(;_0x35cde2['previous'];)_0x35cde2=_0x35cde2['previous'];return _0x35cde2;}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'](_0x16e55a){this['_markerNames']['add'](_0x16e55a);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x6bf42c=>this['_model']['markers']['get'](_0x6bf42c))['filter'](_0x554b23=>_0x554b23);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x33842c=>{for(const _0x37b8da of this['getMarkers']())_0x33842c['removeMarker'](_0x37b8da);}),this['_markerNames']['clear']();}['removeMarker'](_0x41cedf){this['_model']['change'](_0xa7b404=>{_0xa7b404['removeMarker'](_0x41cedf);}),this['_markerNames']['delete'](_0x41cedf);}['addRange'](_0x3044ee){const _0x1c38d8='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x1c38d8),this['_model']['change'](_0x400de9=>{_0x400de9['addMarker'](_0x1c38d8,{'range':_0x3044ee,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0xab0ac2){for(const _0x1f3784 of this['getRanges']())if(_0x1f3784['isIntersecting'](_0xab0ac2))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x47ec5c=>_0x47ec5c['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x57900d,_0x8b12ee)=>[..._0x57900d,..._0x8b12ee['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x496d0d=this['getRanges']();if(0x1!=_0x496d0d['length'])return null;const _0x1abdd2=_0x496d0d[0x0],_0x52ba0b=_0x1abdd2['start']['nodeAfter'],_0x465221=_0x1abdd2['end']['nodeBefore'];return _0x52ba0b instanceof _0x391178?_0x52ba0b!=_0x465221?null:_0x52ba0b: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 _0x5e441c=[];let _0x2c959a=this['head'];for(;_0x2c959a;)_0x5e441c['push'](_0x2c959a),_0x2c959a=_0x2c959a['next'];return _0x5e441c;}['setAttribute'](_0x11101a,_0x427a8d){const _0x480741=_0x53a7f5(this['attributes']);_0x49cd5f(_0x480741,_0x11101a,_0x427a8d),_0x4c5c2a(_0x480741,this['attributes'])||(this['attributes']=_0x480741,this['_onAttributesChange'](_0x480741));}['removeAttribute'](_0x28168e){const _0x26dc75=_0x53a7f5(this['attributes']);_0x589aff(_0x26dc75,_0x28168e),_0x4c5c2a(_0x26dc75,this['attributes'])||(this['attributes']=_0x26dc75,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 _0x281607()['substr'](0x1,0x5);}}function c(_0x5200b5,_0x70c588,_0x369ff2){const _0x3951a5=_0x5200b5['t'],t=_0x5200b5['t'];switch(_0x70c588){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',_0x369ff2);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x369ff2);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x369ff2);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x369ff2);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x369ff2);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',_0x369ff2);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x369ff2);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',_0x369ff2);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x369ff2);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x369ff2);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x369ff2);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x369ff2);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x369ff2);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x369ff2);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x369ff2);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x369ff2);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x369ff2);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x369ff2);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x369ff2);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x369ff2);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x369ff2);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x369ff2);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x369ff2);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x369ff2);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x369ff2);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'},_0x369ff2);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x369ff2);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x369ff2);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x369ff2);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x369ff2);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x369ff2);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x369ff2);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x369ff2);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'},_0x369ff2);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x369ff2);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x369ff2);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x369ff2);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x369ff2);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'},_0x369ff2);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x369ff2);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'},_0x369ff2);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x369ff2);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x369ff2);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'},_0x369ff2);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x369ff2);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'},_0x369ff2);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x369ff2);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x369ff2);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'},_0x369ff2);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x369ff2);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 _0x3951a5({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x369ff2);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x3951a5({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x369ff2);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x369ff2);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'},_0x369ff2);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'},_0x369ff2);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'},_0x369ff2);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x70c588;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x1f6a0c,_0x227141){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x1f6a0c,this['_locale']=_0x227141;}['getDescriptions'](_0x4c8a2d){const _0x132057=[],_0x1da77c=new Set(),_0x3e2802=new Set();for(let _0x481870=0x0;_0x481870<_0x4c8a2d['length'];_0x481870++){const _0x455938=_0x4c8a2d[_0x481870];if(!_0x455938['isInContent'])continue;const _0x2ef79c=this['_handleCustomCallbackDescription'](_0x455938);if(_0x2ef79c){if(null!=_0x455938['subType']){if(_0x1da77c['has'](_0x455938['subType']))continue;_0x1da77c['add'](_0x455938['subType']);}_0x132057['push'](_0x2ef79c);}else{if('attribute'!=_0x455938['type'])'insertion'!=_0x455938['type']&&'deletion'!=_0x455938['type']||this['_handleInsertRemoveSuggestionDescription'](_0x132057,_0x455938,_0x4c8a2d[_0x481870+0x1]);else{const _0x1588e1=_0x455938['data']['key'];if(_0x3e2802['has'](_0x1588e1))continue;_0x3e2802['add'](_0x455938['data']['key']),_0x1588e1==u?this['_handleRenameSuggestionDescription'](_0x132057,_0x455938):this['_handleAttributeSuggestionDescription'](_0x132057,_0x455938);}}}return this['_resolveDescriptionItems'](_0x132057);}['registerDescriptionCallback'](_0x16b786){this['_customCallbacks']['push'](_0x16b786);}['registerElementLabel'](_0x4754a3,_0x5eb874,_0x5520ea=_0x4512e8['normal']){'function'==typeof _0x4754a3?_0x1fd667(this['_itemLabelsCallbacks'],{'matchingCallback':_0x4754a3,'label':_0x5eb874,'priority':_0x5520ea}):this['_itemLabels']['set'](_0x4754a3,_0x5eb874);}['registerAttributeLabel'](_0x4fc8b4,_0x6a03f2){this['_attributeLabels']['set'](_0x4fc8b4,_0x6a03f2);}['getItemLabel'](_0x1ff5d1,_0x22b0a5=0x1){let _0x13793a;for(const _0x306dba of this['_itemLabelsCallbacks'])if(_0x306dba['matchingCallback'](_0x1ff5d1)){_0x13793a=_0x306dba['label'];break;}return _0x13793a||(_0x13793a=this['_itemLabels']['get'](_0x1ff5d1['name'])),_0x13793a?_0x13793a(_0x22b0a5):0x1!==_0x22b0a5?_0x22b0a5+'\x20'+_0x1ff5d1['name']+'s':''+_0x1ff5d1['name'];}['_addDescriptionItems'](_0x37b746,_0x245f07){const _0x520711=_0x245f07['getFirstRange']()['getWalker'](),_0x1ebadb='insertion'==_0x245f07['type']?'add':'remove';for(const _0x5d6086 of _0x520711){const _0x19db8e=_0x5d6086['item'],_0x3c97ea=_0x37b746[_0x37b746['length']-0x1];if(_0x19db8e['is']('$textProxy'))_0x3c97ea&&_0x3c97ea['type']['indexOf']('Container')>-0x1&&_0x37b746['pop'](),_0x3c97ea&&'text'==_0x3c97ea['type']?_0x3c97ea[_0x1ebadb]+=_0x19db8e['data']:_0x37b746['push']({'type':'text','add':'add'==_0x1ebadb?_0x19db8e['data']:'','remove':'remove'==_0x1ebadb?_0x19db8e['data']:''});else{if(this['_schema']['isObject'](_0x19db8e)){const _0x5154c0=_0x19db8e;if(_0x3c97ea&&_0x3c97ea['type']['indexOf']('Container')>-0x1&&_0x37b746['pop'](),'elementEnd'==_0x5d6086['type'])continue;_0x3c97ea&&_0x3c97ea['type']==_0x1ebadb+'Object'&&_0x3c97ea['element']['name']==_0x5154c0['name']?_0x3c97ea['quantity']++:_0x37b746['push']({'type':_0x1ebadb+'Object','element':_0x5154c0,'quantity':0x1}),_0x520711['skip'](_0x488306=>!('elementEnd'==_0x488306['type']&&_0x488306['item']==_0x19db8e));}else{if(this['_schema']['checkChild'](_0x19db8e,'$text')||_0x19db8e['is']('element','softBreak')){const _0x5cfeb7=_0x19db8e;if('add'==_0x1ebadb&&'elementStart'==_0x5d6086['type']||'remove'==_0x1ebadb&&'elementEnd'==_0x5d6086['type'])continue;if(_0x3c97ea&&-0x1==_0x3c97ea['type']['indexOf']('Container')){'text'==_0x3c97ea['type']&&(_0x3c97ea[_0x1ebadb]+='\x0a');continue;}let _0x82fe89;if(_0x82fe89='add'==_0x1ebadb?_0x5cfeb7['nextSibling']&&!this['_schema']['isObject'](_0x5cfeb7['nextSibling'])?_0x5cfeb7['nextSibling']:null:_0x5cfeb7['previousSibling']&&!this['_schema']['isObject'](_0x5cfeb7['previousSibling'])?_0x5cfeb7['previousSibling']:null,_0x5cfeb7['isEmpty']||_0x82fe89&&_0x82fe89['isEmpty']){const _0x8d064c=_0x82fe89&&_0x82fe89['isEmpty']?_0x82fe89:_0x5cfeb7;_0x3c97ea&&_0x3c97ea['type']==_0x1ebadb+'EmptyContainer'&&_0x3c97ea['element']['name']==_0x8d064c['name']?_0x3c97ea['quantity']++:_0x37b746['push']({'type':_0x1ebadb+'EmptyContainer','element':_0x8d064c,'quantity':0x1});}else _0x37b746['push']({'type':_0x1ebadb+'Container','element':_0x5cfeb7});}}}}}['_resolveDescriptionItems'](_0x47823f){const _0x1f7d8f=this['_locale'],_0xc8b875=[],_0xb0d15e=[],_0x7af76f=[];for(const _0x47c022 of _0x47823f)switch(_0x47c022['type']){case'text':if(_0x47c022['add']=_0x47c022['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x47c022['remove']=_0x47c022['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x47c022['add']&&''!=_0x47c022['remove']){_0xc8b875['push']({'type':'replace','content':c(_0x1f7d8f,'REPLACE_TEXT',['\x22'+_0x47c022['remove']+'\x22','\x22'+_0x47c022['add']+'\x22'])});continue;}if(null!=_0x47c022['add']['match'](/^ +$/)){_0xc8b875['push']({'type':'insertion','content':c(_0x1f7d8f,'*Insert:*\x20%0',c(_0x1f7d8f,'ELEMENT_SPACE',_0x47c022['add']['length']))});continue;}if(null!=_0x47c022['remove']['match'](/^ +$/)){_0xc8b875['push']({'type':'deletion','content':c(_0x1f7d8f,'*Remove:*\x20%0',c(_0x1f7d8f,'ELEMENT_SPACE',_0x47c022['remove']['length']))});continue;}if(''!=_0x47c022['add']){_0xc8b875['push']({'type':'insertion','content':c(_0x1f7d8f,'*Insert:*\x20%0','\x22'+_0x47c022['add']+'\x22')});continue;}_0xc8b875['push']({'type':'deletion','content':c(_0x1f7d8f,'*Remove:*\x20%0','\x22'+_0x47c022['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0xc8b875['push']({'type':'insertion','content':c(_0x1f7d8f,'*Insert:*\x20%0',this['getItemLabel'](_0x47c022['element'],_0x47c022['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0xc8b875['push']({'type':'deletion','content':c(_0x1f7d8f,'*Remove:*\x20%0',this['getItemLabel'](_0x47c022['element'],_0x47c022['quantity']))});continue;case'addContainer':_0xc8b875['push']({'type':'insertion','content':c(_0x1f7d8f,'*Split:*\x20%0',this['getItemLabel'](_0x47c022['element'],_0x47c022['quantity']))});continue;case'removeContainer':_0xc8b875['push']({'type':'deletion','content':c(_0x1f7d8f,'*Merge:*\x20%0',this['getItemLabel'](_0x47c022['element'],_0x47c022['quantity']))});continue;case'addFormat':_0xb0d15e['push'](_0x47c022['key']);continue;case'removeFormat':_0x7af76f['push'](_0x47c022['key']);continue;default:_0xc8b875['push'](_0x47c022);}if(_0xb0d15e['length']){const _0x15d09b=_0xb0d15e['map'](_0x5d5479=>this['_attributeLabels']['has'](_0x5d5479)?this['_attributeLabels']['get'](_0x5d5479):_0x5d5479)['join'](',\x20');_0xc8b875['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x15d09b)});}if(_0x7af76f['length']){const _0x3c0051=_0x7af76f['map'](_0x334051=>this['_attributeLabels']['has'](_0x334051)?this['_attributeLabels']['get'](_0x334051):_0x334051)['join'](',\x20');_0xc8b875['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x3c0051)});}return _0xc8b875;}['_handleCustomCallbackDescription'](_0x20ff81){for(const _0x102ac0 of this['_customCallbacks']){const _0x14c13e=_0x102ac0(_0x20ff81);if(_0x14c13e&&'type'in _0x14c13e)return _0x14c13e;}}['_handleAttributeSuggestionDescription'](_0x242d0f,_0x3c77e6){const _0x2c193f=_0x3c77e6['data'],_0x1d1df2=void 0x0===_0x2c193f['newValue']?'removeFormat':'addFormat';_0x242d0f['push']({'type':_0x1d1df2,'key':_0x2c193f['key']});}['_handleRenameSuggestionDescription'](_0x37793b,_0x4b8ead){_0x37793b['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x4b8ead['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x50f90c,_0x5c826c,_0x121f29){if(this['_addDescriptionItems'](_0x50f90c,_0x5c826c),_0x121f29&&_0x121f29['getFirstRange']()&&!_0x5c826c['getFirstRange']()['end']['isEqual'](_0x121f29['getFirstRange']()['start'])){const _0x32e035=_0x50f90c[_0x50f90c['length']-0x1],_0x165f0b='insertion'==_0x5c826c['type']?'add':'remove';_0x32e035&&'text'==_0x32e035['type']&&(_0x32e035[_0x165f0b]+='\x0a');}}}class U extends _0x3b35c4{['afterInit'](){const _0x3ba846=this['editor'],_0x13ffdf=_0x3ba846['plugins']['get']('TrackChangesEditing');_0x3ba846['commands']['get']('showAIAssistant')&&_0x13ffdf['enableCommand']('showAIAssistant');}}class V extends _0x3b35c4{['afterInit'](){const _0x552374=this['editor'],_0xc6653e=_0x552374['locale'];if(!_0x552374['plugins']['has']('AlignmentEditing'))return;const _0x289721=_0x552374['plugins']['get']('TrackChangesEditing');_0x289721['enableDefaultAttributesIntegration']('alignment'),_0x289721['registerBlockAttribute']('alignment'),_0x289721['descriptionFactory']['registerAttributeLabel']('alignment',c(_0xc6653e,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x43254e=this['editor'],_0x2f9cdc=_0x43254e['locale'];_0x43254e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f7323=>{if('formatBlock'!=_0x3f7323['type'])return;const {data:_0x364a21}=_0x3f7323;if(_0x364a21&&'alignment'==_0x364a21['commandName']){const _0x4416a7=_0x364a21['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x2f9cdc,'*Format:*\x20%0',function(_0x5b59c7){switch(_0x5b59c7){case'left':return c(_0x2f9cdc,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x2f9cdc,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x2f9cdc,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x2f9cdc,'FORMAT_JUSTIFY_TEXT');}}(_0x4416a7))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x3b35c4{['afterInit'](){const _0x3f4ff2=this['editor'],_0x270bac=_0x3f4ff2['plugins']['get']('TrackChangesEditing'),_0x10292e=_0x3f4ff2['locale'];for(const _0x2be8fa of Zt){if(!_0x3f4ff2['plugins']['has'](_0x2be8fa))continue;const _0x236b77=_0x2be8fa['slice'](0x0,-0x7)['toLowerCase'](),_0x104946='FORMAT_'+_0x236b77['toUpperCase']();_0x270bac['enableDefaultAttributesIntegration'](_0x236b77),_0x270bac['registerInlineAttribute'](_0x236b77),_0x270bac['descriptionFactory']['registerAttributeLabel'](_0x236b77,c(_0x10292e,_0x104946));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x349e6a=this['editor'],_0x19c901=_0x349e6a['locale'],_0x261217=_0x349e6a['plugins']['get']('TrackChangesEditing');function _0xa0337c(_0x44bb13,_0x37a3b9){_0x261217['descriptionFactory']['registerDescriptionCallback'](_0x766003=>{if('formatInline'!=_0x766003['type'])return;const {data:_0x6f194e}=_0x766003;return _0x6f194e&&_0x6f194e['commandName']===_0x44bb13?_0x6f194e['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x19c901,'*Format:*\x20%0',_0x37a3b9)}:{'type':'format','content':c(_0x19c901,'*Remove\x20format:*\x20%0',_0x37a3b9)}:void 0x0;});}_0xa0337c('bold',c(_0x19c901,'FORMAT_BOLD')),_0xa0337c('italic',c(_0x19c901,'FORMAT_ITALIC')),_0xa0337c('underline',c(_0x19c901,'FORMAT_UNDERLINE')),_0xa0337c('code',c(_0x19c901,'FORMAT_CODE')),_0xa0337c('strikethrough',c(_0x19c901,'FORMAT_STRIKETHROUGH')),_0xa0337c('subscript',c(_0x19c901,'FORMAT_SUBSCRIPT')),_0xa0337c('superscript',c(_0x19c901,'FORMAT_SUPERSCRIPT'));}}class G extends _0x3b35c4{['afterInit'](){const _0x130a04=this['editor'],_0x153093=_0x130a04['locale'];if(!_0x130a04['plugins']['has']('BlockQuoteEditing'))return;const _0x43aaa3=_0x130a04['plugins']['get']('TrackChangesEditing'),_0x52f762=this['editor']['commands']['get']('blockQuote');_0x43aaa3['enableCommand']('blockQuote',(_0x3ac311,_0x1b32d2={})=>{const _0x30b3ea=this['editor']['model']['document']['selection'],_0x5c6e39=_0x1b32d2&&void 0x0!==_0x1b32d2['forceValue']?_0x1b32d2['forceValue']:!_0x52f762['value'];let _0x18785e=[];if(_0x5c6e39){const _0x2a2f12=Array['from'](_0x30b3ea['getSelectedBlocks']())['filter'](_0x9ebaa=>oo(_0x9ebaa)||function(_0x520c0e,_0x1a0f8c){const _0x5ce209=_0x1a0f8c['checkChild'](_0x520c0e['parent'],'blockQuote'),_0x3c8db1=_0x1a0f8c['checkChild'](['$root','blockQuote'],_0x520c0e);return _0x5ce209&&_0x3c8db1;}(_0x9ebaa,this['editor']['model']['schema']));_0x18785e=to(_0x2a2f12,_0x130a04['model']);}else{const _0x22bff8=Array['from'](_0x30b3ea['getSelectedBlocks']())['filter'](_0x475f7c=>oo(_0x475f7c));_0x18785e=to(_0x22bff8,_0x130a04['model']);}_0x130a04['model']['change'](()=>{for(const _0x11b743 of _0x18785e)_0x43aaa3['markBlockFormat'](_0x11b743,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5c6e39}]});});}),_0x43aaa3['descriptionFactory']['registerDescriptionCallback'](_0x47894b=>{const {data:_0x3f3901}=_0x47894b;if(_0x3f3901&&'blockQuote'==_0x3f3901['commandName']){const _0x4ba1d7=c(_0x153093,'ELEMENT_BLOCK_QUOTE');return _0x3f3901['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x153093,'*Set\x20format:*\x20%0',_0x4ba1d7)}:{'type':'format','content':c(_0x153093,'*Remove\x20format:*\x20%0',_0x4ba1d7)};}});}}function oo(_0x496c36){return'blockQuote'==_0x496c36['parent']['name'];}class L extends _0x3b35c4{['afterInit'](){const _0x407559=this['editor'],_0x1dd698=_0x407559['locale'],_0x471956=_0x407559['plugins']['get']('TrackChangesEditing');_0x407559['plugins']['has']('BookmarkEditing')&&(_0x471956['enableCommand']('insertBookmark'),_0x471956['enableDefaultAttributesIntegration']('updateBookmark'),_0x471956['registerBlockAttribute']('bookmarkId'),_0x471956['descriptionFactory']['registerDescriptionCallback'](_0x2c4329=>{if('insertion'!=_0x2c4329['type']&&'deletion'!=_0x2c4329['type']&&'attribute'!=_0x2c4329['type'])return;const _0x5b98e3=_0x2c4329['getContainedElement']();if(null==_0x5b98e3)return;if(!_0x5b98e3['is']('element','bookmark'))return;const _0x5f027c=_0x5b98e3['getAttribute']('bookmarkId');if('insertion'==_0x2c4329['type'])return{'type':'insertion','content':c(_0x1dd698,'*Insert:*\x20%0','\x22'+_0x5f027c+'\x22\x20'+c(_0x1dd698,'ELEMENT_BOOKMARK'))};if('deletion'==_0x2c4329['type'])return{'type':'deletion','content':c(_0x1dd698,'*Remove:*\x20%0','\x22'+_0x5f027c+'\x22\x20'+c(_0x1dd698,'ELEMENT_BOOKMARK'))};const {data:_0x277624}=_0x2c4329;if(!_0x277624||'bookmarkId'!=_0x277624['key'])return;return{'type':'format','content':c(_0x1dd698,'*Set\x20bookmark:*\x20%0','\x22'+_0x277624['newValue']+'\x22')};}));}}class J extends _0x3b35c4{['afterInit'](){const _0x454358=this['editor'];_0x454358['plugins']['has']('CaseChange')&&(_0x454358['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x454358['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x454358['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x3b35c4{['afterInit'](){const _0x49fb58=this['editor'];_0x49fb58['commands']['get']('ckbox')&&_0x49fb58['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x3b35c4{['afterInit'](){const _0x819867=this['editor'];if(!_0x819867['plugins']['has']('CodeBlock'))return;const _0x255939=_0x819867['plugins']['get']('TrackChangesEditing'),_0x1778cb=_0x819867['locale'],_0x56509a=_0x819867['config']['get']('codeBlock')['languages'],_0x45cbcf=_0x819867['commands']['get']('codeBlock');_0x255939['enableCommand']('indentCodeBlock'),_0x255939['enableCommand']('outdentCodeBlock'),_0x255939['enableCommand']('codeBlock',(_0x4277aa,_0x28fb95={})=>{const _0x5887c7=_0x819867['model'],_0x20a95f=_0x819867['model']['document']['selection'],_0xa68581=_0x28fb95&&void 0x0!==_0x28fb95['forceValue']?_0x28fb95['forceValue']:!_0x45cbcf['value'];let _0x4e348c;_0x28fb95['language']||(_0x28fb95['language']=_0x56509a[0x0]['language']),_0x4e348c=_0xa68581?Array['from'](_0x20a95f['getSelectedBlocks']())['filter'](_0x5a8a1f=>eo(_0x5a8a1f)||function(_0x2fd3d7,_0x126d42){if(_0x2fd3d7['is']('rootElement')||_0x126d42['isLimit'](_0x2fd3d7))return!0x1;return _0x126d42['checkChild'](_0x2fd3d7['parent'],'codeBlock');}(_0x5a8a1f,_0x5887c7['schema'])):Array['from'](_0x20a95f['getSelectedBlocks']())['filter'](_0xcc879c=>eo(_0xcc879c));const _0x3e61d6=to(_0x4e348c,_0x5887c7);_0x5887c7['change'](()=>{for(const _0x4a3998 of _0x3e61d6)_0x255939['markBlockFormat'](_0x4a3998,{'commandName':'codeBlock','commandParams':[{..._0x28fb95,'forceValue':_0xa68581}],'formatGroupId':'blockName'});});}),(_0x255939['descriptionFactory']['registerElementLabel']('codeBlock',_0x4e7ed9=>c(_0x1778cb,'ELEMENT_CODE_BLOCK',_0x4e7ed9)),_0x255939['descriptionFactory']['registerDescriptionCallback'](_0x1323fb=>{if('formatBlock'!=_0x1323fb['type'])return;const _0x46fec5=_0x1778cb['t'],{data:_0xd9ecc4}=_0x1323fb;if(!_0xd9ecc4||'codeBlock'!=_0xd9ecc4['commandName'])return;const _0x49d68a=_0xd9ecc4['commandParams'][0x0]['language'],_0xbe7e2c=_0x46fec5(_0x56509a['find'](_0xf515a6=>_0xf515a6['language']===_0x49d68a)['label'])['toLowerCase']();return _0xd9ecc4['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x1778cb,'*Set\x20format:*\x20%0',c(_0x1778cb,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0xbe7e2c+')')}:{'type':'format','content':c(_0x1778cb,'*Remove\x20format:*\x20%0',c(_0x1778cb,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x2a2b30){return'codeBlock'==_0x2a2b30['name'];}class q extends _0x3b35c4{['afterInit'](){const _0x55ce64=this['editor'];if(!_0x55ce64['plugins']['has']('CommentsEditing'))return;_0x55ce64['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x2f048b,_0x408e9f,_0x33e0d5){const _0x129f53=[];for(const _0x54779e of _0x408e9f['getItems']())_0x54779e['hasAttribute'](_0x2f048b)&&_0x129f53['push'](_0x33e0d5['createRangeOn'](_0x54779e));return _0x129f53;}function Fe(_0x3cb16a,_0x25f588,{showActiveMarker:_0xe3a831=!0x0}={}){const _0x19282f=_0x3cb16a['plugins']['get']('TrackChangesEditing');return(_0x55cb9b,_0x1abc52,_0x27cc92)=>{if(!_0x27cc92['consumable']['test'](_0x1abc52['markerRange'],_0x55cb9b['name']))return;const _0x2ebce6=_0x1abc52['markerRange']['getWalker'](),_0x41b1bc=_0x1abc52['markerRange']['start'],_0x161a38=_0x3cb16a['model']['schema'];let _0x114a64=null,_0x186332=null,_0x300b5d=!0x1,_0x3de5b9=!0x1;for(const _0x77ff9a of _0x2ebce6){const _0x568c14=_0x77ff9a['item'];_0x300b5d=_0x300b5d||_0x161a38['isContent'](_0x568c14);const _0x198124=_0x27cc92['mapper']['toViewElement'](_0x568c14);if(_0x198124&&_0x198124['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x77ff9a['type']&&(_0x161a38['isBlock'](_0x568c14)&&!_0x161a38['isLimit'](_0x568c14)&&(_0x568c14['nextSibling']||_0x41b1bc['isAtEnd']?_0x114a64&&_0x114a64['parent']==_0x568c14||(_0x114a64=_0x568c14,_0x473c56(_0x77ff9a['previousPosition']),_0x3de5b9=!0x0):_0x186332=_0x186332||_0x77ff9a['previousPosition']));}function _0x473c56(_0x3e20af){const {id:_0x5791ea,authorId:_0x16dbfa}=_0x19282f['_splitMarkerName'](_0x1abc52['markerName']),_0x121c3d=_0x27cc92['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x25f588,'data-suggestion':_0x5791ea,'data-author-id':_0x16dbfa}),_0x5b639c=_0x27cc92['mapper']['toViewPosition'](_0x3e20af);_0xe3a831&&_0x19282f['activeMarkers']['includes'](_0x1abc52['markerName'])&&_0x27cc92['writer']['addClass']('ck-suggestion-marker--active',_0x121c3d),_0x27cc92['writer']['insert'](_0x5b639c,_0x121c3d),_0x27cc92['mapper']['bindElementToMarker'](_0x121c3d,_0x1abc52['markerName']);}_0x300b5d||_0x3de5b9||!_0x186332||_0x473c56(_0x186332);};}class z extends _0x3b35c4{static get['requires'](){return[_0x4d99a2];}['init'](){const _0x593bd9=this['editor'],_0x2a8d4d=_0x593bd9['plugins']['get']('TrackChangesEditing');_0x2a8d4d['enableCommand']('delete');const _0x33509a=_0x593bd9['commands']['get']('deleteForward');_0x2a8d4d['enableCommand']('deleteForward',(_0x2eb172,_0x4b25f5={})=>{const _0x4bc4e3=_0x593bd9['model']['createSelection'](_0x593bd9['model']['document']['selection']);_0x4bc4e3['isCollapsed']&&_0x593bd9['model']['modifySelection'](_0x4bc4e3,{'direction':'forward','unit':_0x4b25f5['unit']});const _0x295ae2=_0x4bc4e3['getFirstRange'](),_0xab38ad=_0x268add['fromRange'](_0x295ae2);let _0x14a2ee;_0x2eb172(_0x4b25f5),_0x14a2ee='$graveyard'==_0xab38ad['root']['rootName']?_0x593bd9['model']['createRange'](_0x295ae2['start']):_0x593bd9['model']['createRange'](_0xab38ad['start'],_0xab38ad['end']),_0xab38ad['detach'](),_0x593bd9['model']['enqueueChange'](_0x33509a['buffer']['batch'],_0x3dd417=>{_0x33509a['buffer']['lock'](),_0x3dd417['setSelection'](_0x3dd417['createRange'](_0x14a2ee['end'])),_0x33509a['buffer']['unlock']();});}),_0x593bd9['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x593bd9,'merge'),{'priority':'high'}),_0x593bd9['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x24f660,_0x385d1f,_0x146549)=>{_0x146549['options']['showSuggestionHighlights']&&Fe(_0x593bd9,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x24f660,_0x385d1f,_0x146549);},{'priority':'high'}),_0x593bd9['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x3f25f9,_0x4b94cd,_0x387497)=>{const _0x37168e=_0x387497['mapper']['markerNameToElements'](_0x4b94cd['markerName']);if(_0x37168e){for(const _0x222c2e of _0x37168e)_0x222c2e['is']('uiElement')&&(_0x387497['mapper']['unbindElementFromMarkerName'](_0x222c2e,_0x4b94cd['markerName']),_0x387497['writer']['remove'](_0x222c2e));}},{'priority':'high'});}}class W extends _0x3b35c4{['afterInit'](){const _0x6420f0=this['editor'];if(!_0x6420f0['plugins']['has']('ListEditing'))return;const _0xc0bcb7=_0x6420f0['locale'],_0x265e7d=_0x6420f0['plugins']['get']('TrackChangesEditing'),_0x62af97=_0x6420f0['plugins']['has']('TodoListEditing'),_0x2e805b=!!_0x6420f0['config']['get']('list.multiBlock');function _0x1a59ab(_0x45b4e4){return{'type':'format','content':''+c(_0xc0bcb7,'*Set\x20format:*\x20%0',_0x45b4e4)};}function _0x1abc00(_0x146bd3){return{'type':'format','content':''+c(_0xc0bcb7,'*Remove\x20format:*\x20%0',_0x146bd3)};}_0x265e7d['enableDefaultAttributesIntegration']('numberedList'),_0x265e7d['enableDefaultAttributesIntegration']('bulletedList'),_0x265e7d['enableDefaultAttributesIntegration']('customNumberedList'),_0x265e7d['enableDefaultAttributesIntegration']('customBulletedList'),_0x265e7d['enableDefaultAttributesIntegration']('indentList'),_0x265e7d['enableDefaultAttributesIntegration']('outdentList'),_0x265e7d['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x265e7d['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x265e7d['registerBlockAttribute']('listItemId'),_0x265e7d['registerBlockAttribute']('listType'),_0x265e7d['registerBlockAttribute']('listIndent'),_0x2e805b&&(_0x265e7d['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x265e7d['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x62af97&&(_0x265e7d['enableDefaultAttributesIntegration']('todoList'),_0x265e7d['enableDefaultAttributesIntegration']('checkTodoList'),_0x265e7d['registerBlockAttribute']('todoListChecked'),_0x265e7d['descriptionFactory']['registerDescriptionCallback'](_0x2be46e=>{const {data:_0xfc826c}=_0x2be46e;if(_0xfc826c&&'todoListChecked'==_0xfc826c['key'])return{'type':'format','content':_0xfc826c['newValue']?c(_0xc0bcb7,'*Check\x20item*'):c(_0xc0bcb7,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x8e4420=>{if(_0x8e4420['batch']['isUndo'])return!0x1;let _0x21e57b=!0x1;const _0x127bed=_0x265e7d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x7e0b12=>'todoListChecked'===_0x265e7d['_getAttributeKey'](_0x7e0b12));for(const _0x3e82a7 of _0x127bed){'todo'!=_0x3e82a7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x265e7d['_findSuggestions'](_0x3e82a7['getFirstRange'](),'attribute')['find'](_0x583446=>'listType'===_0x265e7d['_getAttributeKey'](_0x583446['suggestion']))||(_0x8e4420['removeMarker'](_0x3e82a7['getFirstMarker']()),_0x21e57b=!0x0));}return _0x21e57b;})),_0x265e7d['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0xc0bcb7,'FORMAT_INDENT'));const _0x58ba7f={'type':'format','content':''};_0x265e7d['descriptionFactory']['registerDescriptionCallback'](_0x1d33c3=>{const {data:_0x430d36}=_0x1d33c3;if(!_0x430d36||'listType'!=_0x430d36['key'])return;let _0x31dec8=_0x1d33c3['head'];for(;_0x31dec8;){if(_0x31dec8['data']&&(('listStyle'==_0x31dec8['data']['key']||'listMarkerStyle'==_0x31dec8['data']['key'])&&(_0x31dec8['data']['newValue']&&'default'!=_0x31dec8['data']['newValue']||'default'!=_0x31dec8['data']['oldValue']&&!_0x430d36['newValue'])||!_0x2e805b&&_0x31dec8['data']['key']==u))return _0x58ba7f;_0x31dec8=_0x31dec8['next'];}if(null==_0x430d36['newValue'])switch(_0x430d36['oldValue']){case'bulleted':return _0x1abc00(c(_0xc0bcb7,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1abc00(c(_0xc0bcb7,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1abc00(c(_0xc0bcb7,'ELEMENT_TODO_LIST'));}switch(_0x430d36['newValue']){case'bulleted':return _0x1a59ab(c(_0xc0bcb7,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1a59ab(c(_0xc0bcb7,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1a59ab(c(_0xc0bcb7,'ELEMENT_TODO_LIST'));}}),_0x265e7d['descriptionFactory']['registerDescriptionCallback'](_0x1adb85=>{const {data:_0x30c76c}=_0x1adb85;if(_0x30c76c&&'listIndent'==_0x30c76c['key'])return null==_0x30c76c['newValue']||null==_0x30c76c['oldValue']&&0x0==_0x30c76c['newValue']?_0x58ba7f:void 0x0;}),_0x265e7d['descriptionFactory']['registerDescriptionCallback'](_0x38e0bc=>{if('attribute'!=_0x38e0bc['type'])return;const {data:_0x2abb58}=_0x38e0bc;if(!_0x2abb58||'listItemId'!=_0x2abb58['key'])return;const _0x2a0659=Te(_0x38e0bc);return'newValue'==_0x2a0659?{'type':'format','content':c(_0xc0bcb7,'*Merge:*\x20list\x20item')}:'oldValue'==_0x2a0659?{'type':'format','content':c(_0xc0bcb7,'*Split:*\x20list\x20item')}:_0x58ba7f;}),_0x6420f0['model']['document']['registerPostFixer'](_0x330061=>this['listItemIdFixer'](_0x330061)),_0x6420f0['model']['document']['registerPostFixer'](_0x267303=>this['noTrackChangesFixer'](_0x267303)),_0x6420f0['model']['document']['on']('change:data',(_0x17ee33,_0x380a98)=>{if(_0x380a98['isUndo']||!_0x380a98['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x322ea6){if(_0x322ea6['batch']['isUndo']||!_0x322ea6['batch']['isLocal'])return!0x1;let _0x34abbe=!0x1;const _0x5825d8=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x596c7a=>_0x596c7a['data']&&'listItemId'==_0x596c7a['data']['key'])['filter'](_0x3e39eb=>_0x3e39eb['data']['newValue']&&_0x3e39eb['data']['oldValue']);for(const _0x307ecf of _0x5825d8)Te(_0x307ecf)||(_0x322ea6['removeMarker'](_0x307ecf['getFirstMarker']()),_0x34abbe=!0x0);return _0x34abbe;}['noTrackChangesFixer'](_0x5f028d){if(_0x5f028d['batch']['isUndo']||!_0x5f028d['batch']['isLocal'])return!0x1;const _0x56940b=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x56940b['trackChangesCommand']['value'])return!0x1;let _0x5b1b11=!0x1;const _0x19600e=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x309e5d=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x277563=>'attribute'==_0x277563['type'])['filter'](_0x166cf7=>_0x19600e['includes'](_0x166cf7['attributeKey']));if(0x0==_0x309e5d['length'])return _0x5b1b11;for(const _0x2d0f44 of _0x309e5d){const _0x501069=_0x56940b['_findSuggestions'](_0x2d0f44['range'],'attribute')['filter'](_0x5543b8=>!_0x5543b8['meta']['isNextTo'])['map'](_0x3135bf=>_0x3135bf['suggestion'])['filter'](_0x4d0139=>{const _0x6a84c5=_0x56940b['_getAttributeKey'](_0x4d0139);return _0x19600e['includes'](_0x6a84c5);});if(_0x501069['length']){for(const _0x4ef973 of _0x501069)_0x5f028d['removeMarker'](_0x4ef973['getFirstMarker']());_0x5b1b11=!0x0;}}return _0x5b1b11;}['assureChains'](){const _0x2ef3fd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x42a9aa=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0xd830e;const _0x3f63f6=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5f55d1=>{if(_0x5f55d1['data']['oldRange']||!_0x5f55d1['data']['newRange'])return null;if(!_0x5f55d1['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x5489eb}=_0x2ef3fd['_splitMarkerName'](_0x5f55d1['name']);if(!_0x2ef3fd['hasSuggestion'](_0x5489eb))return null;const _0x3b1307=_0x2ef3fd['getSuggestion'](_0x5489eb);return _0x42a9aa['includes'](_0x3b1307['data']['key']);})['map'](_0x2a99fb=>{const {id:_0x168a06}=_0x2ef3fd['_splitMarkerName'](_0x2a99fb['name']),_0x5a0b90=_0x2ef3fd['getSuggestion'](_0x168a06);return _0xd830e=_0x5a0b90['attributes']['groupId'],_0x5a0b90['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3f63f6['size'])return;const _0x1b368a=_0x2ef3fd['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x26a096=>'attribute'==_0x26a096['type']&&_0x26a096['data']&&_0x42a9aa['includes'](_0x26a096['data']['key'])&&_0x26a096['attributes']['groupId']!=_0xd830e)['map'](_0x188ecc=>({'listItem':_0x188ecc['getFirstRange']()['start']['nodeAfter'],'groupId':_0x188ecc['attributes']['groupId']})),_0x4bf410=new Set();for(const {groupId:_0x2bbb28,listItem:_0x24f4ea}of _0x1b368a)_0x3f63f6['has'](_0x24f4ea)&&_0x4bf410['add'](_0x2bbb28);for(const _0x3b24e7 of _0x2ef3fd['getSuggestions']())_0x4bf410['has'](_0x3b24e7['attributes']['groupId'])&&_0x3b24e7['setAttribute']('groupId',_0xd830e);}['_supportLegacySuggestions'](){const _0x8d614d=this['editor'],_0x13cf95=_0x8d614d['locale'],_0x2707ec=_0x8d614d['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x2707ec['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x516a96,_0x1c7dfe){const _0x5333ae=[];for(let _0x32e5ae of _0x516a96)_0x32e5ae['start']['nodeAfter']===_0x32e5ae['end']['parent']&&(_0x32e5ae=_0x8d614d['model']['createRange'](_0x8d614d['model']['createPositionAt'](_0x32e5ae['start']['nodeAfter'],0x0))),_0x5333ae['push'](_0x32e5ae);_0x8d614d['model']['change'](_0x1a7708=>{const _0x41cecd=_0x8d614d['model']['document']['selection'],_0x195e66=Array['from'](_0x41cecd['getRanges']())['map'](_0x4e573d=>_0x268add['fromRange'](_0x4e573d));_0x1a7708['setSelection'](_0x5333ae),_0x8d614d['commands']['get'](_0x1c7dfe['commandName'])['refresh'](),_0x1c7dfe['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x8d614d['execute'](_0x1c7dfe['commandName'],..._0x1c7dfe['commandParams']),_0x1a7708['setSelection'](_0x195e66);for(const _0xebec25 of _0x195e66)_0xebec25['detach']();});}),_0x2707ec['descriptionFactory']['registerElementLabel'](function(_0x353619){const _0xc25e81=!_0x8d614d['model']['schema']['isObject'](_0x353619),_0x296527=_0x353619['previousSibling'],_0x17a9ac=_0x353619['nextSibling'],_0x127b73=_0x353619['getAttribute']('listItemId'),_0x5510a7=!_0x296527||_0x296527['getAttribute']('listItemId')!==_0x127b73,_0x53ae95=!_0x17a9ac||_0x17a9ac['getAttribute']('listItemId')!==_0x127b73;return _0xc25e81&&Boolean(_0x127b73)&&_0x5510a7&&_0x53ae95;},_0xf1ff09=>c(_0x13cf95,'ELEMENT_LIST_ITEM',_0xf1ff09));}['_registerLegacyDescription'](){const _0x45f487=this['editor'],_0x39fd83=_0x45f487['locale'];function _0x6ca9c7(_0x38df95){const _0x3dd35e=_0x45f487['commands']['get']('bulletedList')['value'],_0x4b68dd=_0x45f487['commands']['get']('numberedList')['value'];return'numberedList'===_0x38df95?_0x3dd35e:_0x4b68dd;}_0x45f487['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x6bb83c){if('formatBlock'!=_0x6bb83c['type'])return;const {data:_0x35dd43}=_0x6bb83c;if(!_0x35dd43)return;let _0x204c0e,_0xa38538,_0x2ebd94,_0x4b5e23;switch(_0x35dd43['commandName']){case'bulletedList':_0x2ebd94=_0x35dd43['commandParams'][0x0]['forceValue'],_0x4b5e23=_0x6ca9c7(_0x35dd43['commandName']),_0x204c0e=_0x2ebd94?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4b5e23&&_0x45f487['config']['get']('list.multiBlock')||(_0x204c0e='*Change\x20to:*\x20%0'),_0xa38538={'type':'format','content':c(_0x39fd83,_0x204c0e,c(_0x39fd83,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x2ebd94=_0x35dd43['commandParams'][0x0]['forceValue'],_0x4b5e23=_0x6ca9c7(_0x35dd43['commandName']),_0x204c0e=_0x2ebd94?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4b5e23&&_0x45f487['config']['get']('list.multiBlock')||(_0x204c0e='*Change\x20to:*\x20%0'),_0xa38538={'type':'format','content':c(_0x39fd83,_0x204c0e,c(_0x39fd83,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x204c0e='*Indent:*\x20%0',_0xa38538={'type':'format','content':c(_0x39fd83,_0x204c0e,c(_0x39fd83,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x204c0e=function(_0x282c6d){const _0x3e1625=_0x282c6d['getFirstRange']();let _0x4b63d2=_0x3e1625['start']['nodeAfter'];for(;_0x4b63d2&&_0x3e1625['containsItem'](_0x4b63d2);){if(_0x4b63d2['getAttribute']('listIndent')>0x0)return!0x1;_0x4b63d2=_0x4b63d2['nextSibling'];}return!0x0;}(_0x6bb83c)?c(_0x39fd83,'*Format:*\x20remove\x20from\x20%0',c(_0x39fd83,function(_0xd0fafb){return'ELEMENT_'+_0xd0fafb['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x6bb83c))):c(_0x39fd83,'*Outdent:*\x20%0',c(_0x39fd83,'ELEMENT_LIST_ITEM')),_0xa38538={'type':'format','content':_0x204c0e};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x35dd43['multipleBlocks']&&(_0x204c0e='*Merge:*\x20%0',_0xa38538={'type':'deletion','content':c(_0x39fd83,_0x204c0e,c(_0x39fd83,'ELEMENT_LIST_ITEM'))});}return _0xa38538;});}}function Te(_0x3eeb7d){let _0x3e3243=_0x3eeb7d['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3e3243;){const _0x4e5c3b=_0x3e3243['getAttribute']('listItemId');if(!_0x4e5c3b)return!0x1;if(_0x4e5c3b==_0x3eeb7d['data']['newValue'])return'newValue';if(_0x4e5c3b==_0x3eeb7d['data']['oldValue'])return'oldValue';_0x3e3243=_0x3e3243['previousSibling'];}return!0x1;}class Se extends _0x3b35c4{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x293da7=this['editor']['config']['get']('list.properties'),_0x4cba7d=this['editor']['plugins']['get']('TrackChangesEditing');_0x293da7['styles']&&(_0x4cba7d['enableDefaultAttributesIntegration']('listStyle'),_0x4cba7d['registerBlockAttribute']('listStyle')),_0x293da7['reversed']&&(_0x4cba7d['enableDefaultAttributesIntegration']('listReversed'),_0x4cba7d['registerBlockAttribute']('listReversed')),_0x293da7['startIndex']&&(_0x4cba7d['enableDefaultAttributesIntegration']('listStart'),_0x4cba7d['registerBlockAttribute']('listStart'));const _0x1e3066={'type':'format','content':''};_0x4cba7d['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2e3caf=this['editor']['locale'];_0x4cba7d['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x2e3caf,'FORMAT_LIST_REVERSED')),_0x4cba7d['descriptionFactory']['registerDescriptionCallback'](_0x1f14f0=>{const {data:_0x2b5008}=_0x1f14f0;if(_0x2b5008&&'listReversed'==_0x2b5008['key'])return null==_0x2b5008['newValue']||0x0==_0x2b5008['newValue']&&null==_0x2b5008['oldValue']?_0x1e3066:void 0x0;}),_0x4cba7d['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x2e3caf,'FORMAT_LIST_START')),_0x4cba7d['descriptionFactory']['registerDescriptionCallback'](_0x4cf9ad=>{const {data:_0xffcf57}=_0x4cf9ad;if(_0xffcf57&&'listStart'==_0xffcf57['key'])return null==_0xffcf57['newValue']||0x1==_0xffcf57['newValue']&&null==_0xffcf57['oldValue']?_0x1e3066:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x35634e=>{if(_0x35634e['batch']['isUndo'])return!0x1;let _0x26a2d5=!0x1;const _0x3877c=_0x4cba7d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x41effd=>{const _0x13d944=_0x4cba7d['_getAttributeKey'](_0x41effd);return'listStart'==_0x13d944||'listReversed'==_0x13d944;});for(const _0xfe7c7b of _0x3877c){const _0x45e84d=_0xfe7c7b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x45e84d||'customNumbered'==_0x45e84d)continue;_0x4cba7d['_findSuggestions'](_0xfe7c7b['getFirstRange'](),'attribute')['find'](_0xc20c93=>'listType'==_0x4cba7d['_getAttributeKey'](_0xc20c93['suggestion']))||(_0x35634e['removeMarker'](_0xfe7c7b['getFirstMarker']()),_0x26a2d5=!0x0);}return _0x26a2d5;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0xfedfd2){const _0x4f5757=this['editor']['locale'],{data:_0xb7b127}=_0xfedfd2,_0xb7c001={'type':'format','content':''};if(!_0xb7b127||'listStyle'!=_0xb7b127['key'])return;if(!_0xb7b127['oldValue'])return'default'==_0xb7b127['newValue']?_0xb7c001:{'type':'format','content':''+c(_0x4f5757,'*Set\x20format:*\x20%0',c(_0x4f5757,this['_getTranslationKeyForListStyle'](_0xb7b127['newValue'])))};if(!_0xb7b127['newValue']){if('default'==_0xb7b127['oldValue'])return _0xb7c001;let _0x5a36c8=_0xfedfd2['head'];for(;_0x5a36c8;){if(_0x5a36c8['data']&&'listType'==_0x5a36c8['data']['key']&&_0x5a36c8['data']['newValue'])return _0xb7c001;_0x5a36c8=_0x5a36c8['next'];}return{'type':'format','content':''+c(_0x4f5757,'*Remove\x20format:*\x20%0',c(_0x4f5757,this['_getTranslationKeyForListStyle'](_0xb7b127['oldValue'])))};}if('default'!=_0xb7b127['newValue'])return{'type':'format','content':''+c(_0x4f5757,'*Set\x20format:*\x20%0',c(_0x4f5757,this['_getTranslationKeyForListStyle'](_0xb7b127['newValue'])))};let _0x3373d0=_0xfedfd2['head'];for(;_0x3373d0;){if(_0x3373d0['data']&&'listType'==_0x3373d0['data']['key']&&_0x3373d0['data']['newValue']&&_0x3373d0['data']['oldValue'])return _0xb7c001;_0x3373d0=_0x3373d0['next'];}return{'type':'format','content':c(_0x4f5757,'*Set\x20format:*\x20%0',c(_0x4f5757,'ELEMENT_'+_0xfedfd2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1144e3=this['editor'],_0x14a211=_0x1144e3['locale'];_0x1144e3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd65345=>{if('formatBlock'!=_0xd65345['type'])return;const {data:_0x18098b}=_0xd65345;if(!_0x18098b)return;let _0x436f6c,_0x52c39b;switch(_0x18098b['commandName']){case'listStyle':_0x436f6c='*Change\x20to:*\x20%0',_0x52c39b={'type':'format','content':c(_0x14a211,_0x436f6c,c(_0x14a211,this['_getTranslationKeyForListStyle'](_0x18098b['commandParams'][0x0]['type'])))};break;case'listReversed':_0x436f6c=_0x18098b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x52c39b={'type':'format','content':c(_0x14a211,_0x436f6c)};break;case'listStart':_0x436f6c='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x52c39b={'type':'format','content':c(_0x14a211,_0x436f6c,_0x18098b['commandParams'][0x0]['startIndex'])};}return _0x52c39b;});}['_getTranslationKeyForListStyle'](_0x424a77){return'ELEMENT_'+function(_0x3fa799){if(_e['includes'](_0x3fa799))return'bulleted';if(Re['includes'](_0x3fa799))return'numbered';return null;}(_0x424a77)['toUpperCase']()+'_LIST_'+_0x424a77['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x3b35c4{['afterInit'](){const _0x48af4b=this['editor'];_0x48af4b['commands']['get']('emoji')&&_0x48af4b['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x3b35c4{static get['requires'](){return[_0x1af609];}['init'](){const _0x827c70=this['editor'],_0x79f548=_0x827c70['plugins']['get']('TrackChangesEditing'),_0x38bd4f=_0x827c70['commands']['get']('enter');_0x79f548['enableCommand']('enter',()=>{_0x827c70['model']['change'](_0x43a595=>{const _0x282ecb=_0x827c70['model']['document']['selection'],_0x8e7a1b=_0x282ecb['getFirstPosition'](),_0x584198=_0x268add['fromRange'](_0x282ecb['getFirstRange']());if(_0x38bd4f['enterBlock'](_0x43a595)){const _0x446eca=_0x827c70['model']['createPositionAt'](_0x8e7a1b['parent']['nextSibling'],0x0),_0x36af36=_0x43a595['createRange'](_0x8e7a1b,_0x446eca);_0x79f548['markInsertion'](_0x36af36);}else _0x43a595['setSelection'](_0x43a595['createRange'](_0x584198['end']));_0x584198['detach'](),_0x38bd4f['fire']('afterExecute',{'writer':_0x43a595});});}),_0x827c70['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x827c70,'split'),{'priority':'high'}),_0x827c70['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0xb5c121,_0x10cc57,_0x217a0b)=>{const _0x1098fb=_0x217a0b['mapper']['markerNameToElements'](_0x10cc57['markerName']);if(_0x1098fb){for(const _0x2e7f4a of _0x1098fb)_0x2e7f4a['hasClass']('ck-suggestion-marker-split')&&(_0x217a0b['mapper']['unbindElementFromMarkerName'](_0x2e7f4a,_0x10cc57['markerName']),_0x217a0b['writer']['remove'](_0x2e7f4a));}},{'priority':'high'}),_0x827c70['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2ffd58,_0x2f349a,_0x4013c3)=>{_0x4013c3['options']['showSuggestionHighlights']&&Fe(_0x827c70,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x2ffd58,_0x2f349a,_0x4013c3);},{'priority':'high'});}}class Z extends _0x3b35c4{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x24ae32=this['editor']['plugins']['get']('TrackChangesEditing');_0x24ae32['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x24ae32['enableCommand']('findNext'),_0x24ae32['enableCommand']('findPrevious'),_0x24ae32['enableCommand']('replace'),_0x24ae32['enableCommand']('replaceAll');}['handleFindCommand'](_0x4fc4ea,_0x5ac4a3,_0x23a5d9={}){const _0x3ed75c=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x4fc4ea(_0x2bcbe2=>{let _0x20cfec=('string'==typeof _0x5ac4a3?_0x3ed75c['findByTextCallback'](_0x5ac4a3,_0x23a5d9):_0x5ac4a3)(_0x2bcbe2);Array['isArray'](_0x20cfec)&&(_0x20cfec={'results':_0x20cfec,'searchText':'string'==typeof _0x5ac4a3?_0x5ac4a3:''});const _0x5f15d1=_0x20cfec['results']['filter'](_0x1badc5=>!0x1===this['_isInDeletionRange'](_0x1badc5,_0x2bcbe2['item']));return{..._0x20cfec,'results':_0x5f15d1};},_0x23a5d9);}['_isInDeletionRange'](_0x46c44d,_0x5a5db4){const _0x408817=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5a5db4,_0x46c44d['start']),this['editor']['model']['createPositionAt'](_0x5a5db4,_0x46c44d['end']));for(const _0x25f197 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x408817['getIntersection'](_0x25f197['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x3b35c4{['afterInit'](){const _0x340513=this['editor']['locale'],_0x2722c6=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1b6223,commandName:_0x28267a}of ro)this['editor']['plugins']['has'](_0x1b6223)&&(_0x2722c6['enableDefaultAttributesIntegration'](_0x28267a),_0x2722c6['registerInlineAttribute'](_0x28267a));_0x2722c6['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x340513,'FORMAT_FONT_SIZE')),_0x2722c6['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x340513,'FORMAT_FONT_FAMILY')),_0x2722c6['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x340513,'FORMAT_FONT_COLOR')),_0x2722c6['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x340513,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c6782=this['editor'],_0x584707=_0x2c6782['locale'];_0x2c6782['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b8555=>{const _0x3bd054=_0x584707['t'];if('formatInline'!=_0x4b8555['type'])return;const {data:_0x573648}=_0x4b8555;if(null!=_0x573648){if('fontSize'==_0x573648['commandName']){const _0x17e5ca=_0x573648['commandParams'][0x0]['value'];if(_0x17e5ca){const _0x5dbc53=_0x3bd054(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x35828a=>_0x35828a['model']==_0x17e5ca)['title'])['toLowerCase']();return{'type':'format','content':c(_0x584707,'*Set\x20font\x20size:*\x20%0',_0x5dbc53)};}return{'type':'format','content':c(_0x584707,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x573648['commandName']){const _0x354245=_0x573648['commandParams'][0x0]['value'];return _0x354245?{'type':'format','content':c(_0x584707,'*Set\x20font\x20family:*\x20%0',_0x354245)}:{'type':'format','content':c(_0x584707,'*Reset\x20font\x20family*')};}if('fontColor'==_0x573648['commandName']){const _0x1bc2e=_0x573648['commandParams'][0x0]['value'];if(_0x1bc2e){const _0x2ae4bc=_0x34724a(this['editor']['config']['get']('fontColor.colors'))['find'](_0x40f021=>_0x40f021['model']==_0x1bc2e);let _0x42ce6b=_0x1bc2e,_0x111816='';return _0x2ae4bc&&(_0x42ce6b=_0x2ae4bc['label'],_0x111816=_0x3bd054(_0x42ce6b)['toLowerCase']()),{'type':'format','content':c(_0x584707,'*Set\x20font\x20color:*\x20%0',_0x111816)['trim'](),'color':{'value':_0x1bc2e,'title':_0x111816||_0x42ce6b}};}return{'type':'format','content':c(_0x584707,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x573648['commandName']){const _0x59b0bb=_0x573648['commandParams'][0x0]['value'];if(_0x59b0bb){const _0x232a04=_0x34724a(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x1e3494=>_0x1e3494['model']==_0x59b0bb);let _0x221835=_0x59b0bb,_0x540439='';return _0x232a04&&(_0x221835=_0x232a04['label'],_0x540439=_0x3bd054(_0x221835)['toLowerCase']()),{'type':'format','content':c(_0x584707,'*Set\x20font\x20background\x20color:*\x20%0',_0x540439)['trim'](),'color':{'value':_0x59b0bb,'title':_0x540439||_0x221835}};}return{'type':'format','content':c(_0x584707,'*Reset\x20font\x20background\x20color*')};}}});}}class it extends _0x3b35c4{['afterInit'](){const _0x47379c=this['editor'],_0x53edea=_0x47379c['plugins']['get']('TrackChangesEditing'),_0x9ed1e0=_0x47379c['commands']['get']('copyFormat'),_0x12a1c7=_0x47379c['commands']['get']('pasteFormat');_0x9ed1e0&&_0x12a1c7&&(_0x53edea['enableDefaultAttributesIntegration']('pasteFormat'),_0x53edea['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0xe08fd8=this['editor'],_0x3c64a6=_0xe08fd8['locale'];_0xe08fd8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5887ea=>{if('formatBlock'!=_0x5887ea['type']&&'formatInline'!=_0x5887ea['type'])return;const {data:_0x464d82}=_0x5887ea;if(_0x464d82&&'pasteFormat'===_0x464d82['commandName']){const _0x5bbfd2=[],_0x21d669=_0x464d82['commandParams'][0x0];for(const [_0x20497f,_0x2c39df]of Object['entries'](_0x21d669))_0x5bbfd2['push'](so(_0xe08fd8,_0x20497f,_0x2c39df));return _0x5bbfd2['length']?{'type':'format','content':c(_0x3c64a6,'*Set\x20format\x20to:*\x20%0',_0x5bbfd2['join'](',\x20'))}:{'type':'format','content':c(_0x3c64a6,'*Remove\x20all\x20formatting*')};}});}}function so(_0x176b1c,_0x286061,_0x1caa01){const _0x54f181=_0x176b1c['locale']['t'],_0x4e5998=_0x286061['split'](/(?=[A-Z])/)['join']('\x20'),_0x541df5=_0x54f181(_0x4e5998['charAt'](0x0)['toUpperCase']()+_0x4e5998['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x1caa01)return _0x541df5;if('fontColor'===_0x286061||'fontBackgroundColor'===_0x286061){const _0x1802e9=_0x34724a(_0x176b1c['config']['get']('fontColor.colors'))['find'](_0x5c304a=>_0x5c304a['model']==_0x1caa01);return _0x541df5+'\x20('+(_0x1802e9?_0x54f181(_0x1802e9['label'])['toLowerCase']():_0x1caa01)+')';}if('fontSize'===_0x286061&&isNaN(parseFloat(_0x1caa01))){const _0x56264c=_0x176b1c['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x176b1c['config']['get']('fontSize.options'))['find'](_0x550cbe=>_0x550cbe['model']==_0x1caa01);return _0x541df5+'\x20('+(_0x56264c?_0x54f181(_0x56264c['title'])['toLowerCase']():_0x1caa01)+')';}return _0x541df5+'\x20('+_0x1caa01+')';}class et extends _0x3b35c4{['_headingOptions'];['afterInit'](){const _0x3254dc=this['editor'];if(!_0x3254dc['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x3254dc['config']['get']('heading.options');const _0xac8522=_0x3254dc['locale'],_0x57500d=_0x3254dc['plugins']['get']('TrackChangesEditing');_0x57500d['enableDefaultAttributesIntegration']('heading');for(const _0x43f155 of this['_headingOptions'])'paragraph'!=_0x43f155['model']&&_0x57500d['descriptionFactory']['registerElementLabel'](_0x43f155['model'],_0x1f7d00=>{const _0x583f63=this['_getHeadingLevel'](_0x43f155['model']);return null!==_0x583f63?_0x2404a8(_0x1f7d00,_0x583f63):_0x204a52(_0x1f7d00,_0x43f155['title']);});function _0x2404a8(_0x370655,_0x3615c3){return c(_0xac8522,'ELEMENT_HEADING',[_0x370655,_0x3615c3]);}function _0x204a52(_0x92e932,_0x3e0f0a){return c(_0xac8522,'ELEMENT_HEADING_CUSTOM',[_0x92e932,_0x3e0f0a]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13a8ae=this['editor'],_0x1eba3e=_0x13a8ae['locale'];function _0x466b33(_0x9045bf,_0x11138e){return c(_0x1eba3e,'ELEMENT_HEADING_CUSTOM',[_0x9045bf,_0x11138e]);}_0x13a8ae['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x576dab=>{if('formatBlock'!=_0x576dab['type'])return;const {data:_0x40f3f0}=_0x576dab;if(_0x40f3f0&&'heading'==_0x40f3f0['commandName']){const _0x5b9e17=_0x40f3f0['commandParams'][0x0]['value'],_0xbbf215=this['_getHeadingLevel'](_0x5b9e17);if(null!==_0xbbf215)return{'type':'format','content':c(_0x1eba3e,'*Change\x20to:*\x20%0',(_0x534df5=0x1,_0x1a1d0c=_0xbbf215,c(_0x1eba3e,'ELEMENT_HEADING',[_0x534df5,_0x1a1d0c])))};const _0x3127df=this['_headingOptions']['find'](_0x521cab=>_0x521cab['model']===_0x5b9e17)['title'];return{'type':'format','content':c(_0x1eba3e,'*Change\x20to:*\x20%0',_0x466b33(0x1,_0x3127df))};}var _0x534df5,_0x1a1d0c;});}['_getHeadingLevel'](_0x540a83){const _0x3d8114=_0x540a83['match'](/^heading(\d+)/);if(_0x3d8114)return _0x3d8114[0x1];const _0x2a83ca=this['_headingOptions']?.['find'](_0x1389bd=>_0x1389bd['model']==_0x540a83);if(_0x2a83ca&&_0x2a83ca['view']){const _0x4ee92b=_0x2a83ca['view'],_0x2c6d3f=(_0x4ee92b['name']??_0x4ee92b)['match'](/^h(\d+)/);if(_0x2c6d3f)return _0x2c6d3f[0x1];}return null;}}class nt extends _0x3b35c4{['afterInit'](){const _0x578927=this['editor'];if(!_0x578927['plugins']['has']('HighlightEditing'))return;const _0x3394d2=_0x578927['plugins']['get']('TrackChangesEditing'),_0x159cbb=_0x578927['locale'];_0x3394d2['enableDefaultAttributesIntegration']('highlight'),_0x3394d2['registerInlineAttribute']('highlight'),_0x3394d2['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x159cbb,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x589748=this['editor'],_0x409bc4=_0x589748['locale'];_0x589748['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xdf388=>{if('formatInline'!=_0xdf388['type'])return;const {data:_0x4422f2}=_0xdf388;if(_0x4422f2&&'highlight'==_0x4422f2['commandName']){const _0x3fd605=_0x409bc4['t'],_0x33b00f=_0x4422f2['commandParams'][0x0]['value'];if(_0x33b00f){const _0x145c1d=_0x589748['config']['get']('highlight.options')['find'](_0x4948dd=>_0x4948dd['model']==_0x33b00f),_0x6755d8=_0x3fd605(_0x145c1d['title'])['toLowerCase']();return{'type':'format','content':c(_0x409bc4,'*Set\x20highlight:*\x20%0',_0x6755d8),'color':{'value':_0x145c1d['color'],'title':_0x145c1d['title']}};}return{'type':'format','content':c(_0x409bc4,'*Remove\x20highlight*',c(_0x409bc4,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x3b35c4{['afterInit'](){const _0x30c60f=this['editor'];if(!_0x30c60f['plugins']['has']('HorizontalLineEditing'))return;_0x30c60f['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x16c9b5=_0x30c60f['plugins']['get']('TrackChangesEditing'),_0x352754=_0x30c60f['locale'];_0x16c9b5['descriptionFactory']['registerElementLabel']('horizontalLine',_0x46a422=>c(_0x352754,'ELEMENT_HORIZONTAL_LINE',_0x46a422)),_0x30c60f['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x4cac01,{writer:_0x20781d,options:_0x41a47a})=>{if(!_0x41a47a['showSuggestionHighlights'])return null;const _0x10ae87=_0x20781d['createContainerElement']('div'),_0x3af1e0=_0x20781d['createEmptyElement']('hr');return _0x20781d['addClass']('ck-horizontal-line',_0x10ae87),_0x20781d['insert'](_0x20781d['createPositionAt'](_0x10ae87,0x0),_0x3af1e0),_0x10ae87;},'converterPriority':'high'});}}class ot extends _0x3b35c4{['afterInit'](){const _0x303274=this['editor'];if(!_0x303274['plugins']['has']('HtmlEmbed'))return;const _0x390b8b=_0x303274['plugins']['get']('TrackChangesEditing'),_0x234708=_0x303274['locale'];_0x390b8b['descriptionFactory']['registerElementLabel']('rawHtml',_0x3fa52b=>c(_0x234708,'ELEMENT_HTML_EMBED',_0x3fa52b)),_0x390b8b['enableDefaultAttributesIntegration']('htmlEmbed'),_0x390b8b['registerBlockAttribute']('value'),_0x390b8b['descriptionFactory']['registerDescriptionCallback'](_0x4874f8=>{if('attribute'!=_0x4874f8['type'])return;const {data:_0x36c33f}=_0x4874f8;if(_0x36c33f&&'value'==_0x36c33f['key']&&_0x4874f8['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x393a64=c(_0x234708,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x234708,'*Change\x20%0\x20content*',_0x393a64)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f9f0b=this['editor'],_0x280f54=_0x1f9f0b['locale'];_0x1f9f0b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd47dee=>{if('formatBlock'!=_0xd47dee['type'])return;const {data:_0x42d0e5}=_0xd47dee;if(_0x42d0e5&&'htmlEmbed'==_0x42d0e5['commandName']){const _0x46f0bd=c(_0x280f54,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x280f54,'*Change\x20%0\x20content*',_0x46f0bd)};}});}}class rt extends _0x3b35c4{['afterInit'](){const _0x253077=this['editor'];if(!_0x253077['plugins']['has']('ImageEditing'))return;const _0x2473d9=_0x253077['plugins']['get']('TrackChangesEditing'),_0x5f46da=_0x253077['plugins']['get']('ImageUtils'),_0x3dbce9=_0x253077['locale'];_0x2473d9['enableCommand']('insertImage'),_0x2473d9['descriptionFactory']['registerElementLabel']('imageBlock',_0x363bdd=>c(_0x3dbce9,'ELEMENT_IMAGE',_0x363bdd)),_0x2473d9['descriptionFactory']['registerElementLabel']('imageInline',_0x470f95=>c(_0x3dbce9,'ELEMENT_INLINE_IMAGE',_0x470f95)),_0x2473d9['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x3dbce9,'ELEMENT_CAPTION')),_0x253077['plugins']['has']('ImageUploadEditing')&&_0x2473d9['enableCommand']('uploadImage'),_0x253077['plugins']['has']('ImageBlockEditing')&&_0x253077['plugins']['has']('ImageInlineEditing')&&(_0x2473d9['enableCommand']('imageTypeInline',(_0x13f9d4,_0x3178be)=>{const _0x25d497=_0x5f46da['getClosestSelectedImageElement'](_0x253077['model']['document']['selection']);_0x253077['model']['change'](()=>{_0x2473d9['markBlockFormat'](_0x25d497,{'commandName':'imageTypeInline','commandParams':[_0x3178be]},[],'convertBlockImageToInline');});}),_0x2473d9['enableCommand']('imageTypeBlock',(_0x124e9e,_0x4005a1)=>{_0x253077['model']['change'](_0x5cc7dc=>{let _0x3ea1f4=_0x5f46da['getClosestSelectedImageElement'](_0x253077['model']['document']['selection']),_0x119a9f=_0x5cc7dc['createRangeOn'](_0x3ea1f4);const _0x39ff67=_0x1a83d5['fromPosition'](_0x119a9f['start'],'toPrevious'),_0x96ee19=_0x1a83d5['fromPosition'](_0x119a9f['end'],'toNext');_0x2473d9['forceDefaultExecution'](()=>_0x124e9e(_0x4005a1)),_0x3ea1f4=_0x5f46da['getClosestSelectedImageElement'](_0x253077['model']['document']['selection']),_0x119a9f=_0x5cc7dc['createRangeOn'](_0x3ea1f4);const _0x131c5d=_0x5cc7dc['createRange'](_0x39ff67,_0x96ee19);_0x39ff67['detach'](),_0x96ee19['detach'](),_0x2473d9['markBlockFormat'](_0x3ea1f4,{'commandName':'imageTypeInline','commandParams':[_0x4005a1]},[],'convertInlineImageToBlock'),_0x131c5d['start']['isBefore'](_0x119a9f['start'])&&_0x2473d9['markInsertion'](_0x5cc7dc['createRange'](_0x131c5d['start'],_0x119a9f['start']),'convertInlineImageToBlock'),_0x119a9f['end']['isBefore'](_0x131c5d['end'])&&_0x2473d9['markInsertion'](_0x5cc7dc['createRange'](_0x119a9f['end'],_0x131c5d['end']),'convertInlineImageToBlock');});}),_0x2473d9['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x2473d9['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x2473d9['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x2473d9['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x2473d9['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x2473d9['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x1282ac])=>{const _0x1e2c0e=_0x2473d9['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x5d9385=_0x1282ac['start'],_0x2a6e5a=_0x1282ac['end'];const _0x58bedc=_0x253077['model']['schema']['getNearestSelectionRange'](_0x5d9385,'backward'),_0x618094=_0x253077['model']['schema']['getNearestSelectionRange'](_0x2a6e5a,'forward');_0x58bedc['isCollapsed']&&(_0x5d9385=_0x58bedc['start']),_0x618094['isCollapsed']&&(_0x2a6e5a=_0x618094['end']),_0x1e2c0e([_0x253077['model']['createRange'](_0x5d9385,_0x2a6e5a)]);}),_0x2473d9['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2c11ad),_0x2473d9['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2c11ad)),_0x253077['plugins']['has']('ImageCaptionEditing')&&(_0x2473d9['enableCommand']('toggleImageCaption',(_0x214a08,_0x498c61)=>{const _0x5746c9=_0x253077['plugins']['get']('ImageCaptionUtils');let _0x4dd958=_0x5f46da['getClosestSelectedImageElement'](_0x253077['model']['document']['selection']),_0x281dc7=_0x5746c9['getCaptionFromImageModelElement'](_0x4dd958);_0x253077['model']['change'](()=>{if(_0x281dc7)return void _0x2473d9['markDeletion'](_0x253077['model']['createRangeOn'](_0x281dc7));const _0x330c56=_0x5f46da['isBlockImage'](_0x4dd958);_0x214a08(_0x498c61),_0x4dd958=_0x5f46da['getClosestSelectedImageElement'](_0x253077['model']['document']['selection']),_0x281dc7=_0x5746c9['getCaptionFromImageModelElement'](_0x4dd958),_0x2473d9['markInsertion'](_0x253077['model']['createRangeOn'](_0x281dc7),_0x330c56?null:'imageCaption');});}),_0x2473d9['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2c11ad));const _0x3f9452=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3847cd(_0x5a3be3,_0x449f4e){const _0x2ba86a=_0x3f9452['findIndex'](({type:_0x7720d,subType:_0x39d6a3})=>_0x5a3be3['type']==_0x7720d&&_0x5a3be3['subType']==_0x39d6a3),_0x1cdb8a=_0x3f9452['findIndex'](({type:_0x4e853f,subType:_0x4e01c6})=>_0x449f4e['type']==_0x4e853f&&_0x449f4e['subType']==_0x4e01c6);if(_0x2ba86a<0x0||_0x1cdb8a<0x0)return!0x1;const _0x374c45=_0x5a3be3['getFirstRange'](),_0x570b54=_0x449f4e['getFirstRange']();if((0x0==_0x2ba86a||0x1==_0x2ba86a)&&0x2==_0x1cdb8a&&_0x374c45['isIntersecting'](_0x570b54))return!0x0;if(0x2==_0x2ba86a&&0x3==_0x1cdb8a){const _0x3a2430=_0x2473d9['_findSuggestions'](_0x374c45,'insertion')['filter'](({suggestion:_0xcc24f5,meta:_0x16d4c3})=>_0x16d4c3['isOwn']&&'convertInlineImageToBlock'==_0xcc24f5['subType']);if(_0x3a2430['length']>0x1&&_0x570b54['end']['isEqual'](_0x374c45['start']))return!0x0;if(0x1==_0x3a2430['length']&&(_0x374c45['start']['isEqual'](_0x570b54['end'])||_0x374c45['end']['isEqual'](_0x570b54['start'])))return!0x0;}if(0x3==_0x2ba86a&&0x3==_0x1cdb8a&&_0x374c45['start']['isBefore'](_0x570b54['start'])){const _0x42e1d1=_0x374c45['end']['nodeAfter'],_0x425a12=_0x570b54['start']['nodeBefore'];return _0x5f46da['isBlockImage'](_0x42e1d1)&&_0x42e1d1===_0x425a12;}return!0x1;}function _0x2c11ad(_0x858a42,_0x215273){return _0x3847cd(_0x858a42,_0x215273)?[_0x858a42,_0x215273]:_0x3847cd(_0x215273,_0x858a42)?[_0x215273,_0x858a42]:null;}_0x253077['plugins']['has']('ImageResize')&&(_0x2473d9['enableDefaultAttributesIntegration']('resizeImage'),_0x2473d9['registerBlockAttribute']('resizedWidth'),_0x2473d9['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x3dbce9,'FORMAT_IMAGE_SIZE'))),_0x253077['plugins']['has']('ImageTextAlternativeEditing')&&(_0x2473d9['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x2473d9['registerBlockAttribute']('alt')),_0x253077['plugins']['has']('PictureEditing')&&(_0x2473d9['registerBlockAttribute']('sources'),_0x2473d9['descriptionFactory']['registerDescriptionCallback'](_0x1adc2f=>{if('attribute'!=_0x1adc2f['type'])return;const {data:_0x7d7253}=_0x1adc2f;return _0x7d7253&&'sources'==_0x7d7253['key']?{'type':'format','content':''}:void 0x0;})),_0x253077['plugins']['has']('ImageSizeAttributes')&&(_0x2473d9['registerBlockAttribute']('width'),_0x2473d9['registerBlockAttribute']('height'),_0x2473d9['descriptionFactory']['registerDescriptionCallback'](_0x4ca92f=>{if('attribute'!=_0x4ca92f['type'])return;const {data:_0x4caaff}=_0x4ca92f;return!_0x4caaff||'width'!=_0x4caaff['key']&&'height'!=_0x4caaff['key']?void 0x0:{'type':'format','content':''};})),_0x2473d9['descriptionFactory']['registerDescriptionCallback'](_0x558cdd=>{if(!!_0x3f9452['find'](({type:_0x1b7f4b,subType:_0x2c029f})=>_0x558cdd['type']==_0x1b7f4b&&_0x558cdd['subType']==_0x2c029f))return _0x558cdd['previous']?{}:void 0x0;}),_0x2473d9['descriptionFactory']['registerDescriptionCallback'](_0x7d3f0d=>{if('insertion'==_0x7d3f0d['type']||'deletion'==_0x7d3f0d['type']){const _0x80297e=_0x7d3f0d['getContainedElement']();if(_0x80297e&&_0x80297e['is']('element','caption'))return{'type':'insertion'==_0x7d3f0d['type']?'addObject':'removeObject','element':_0x80297e,'quantity':0x1};}}),_0x2473d9['descriptionFactory']['registerDescriptionCallback'](_0x1fd7c0=>'formatBlock'==_0x1fd7c0['type']&&'convertInlineImageToBlock'==_0x1fd7c0['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x1fd7c0['type']&&'convertBlockImageToInline'==_0x1fd7c0['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x2473d9['descriptionFactory']['registerDescriptionCallback'](_0x5d566b=>{if('attribute'!=_0x5d566b['type'])return;const {data:_0xac8f0d}=_0x5d566b;if(!_0xac8f0d||'alt'!=_0xac8f0d['key'])return;const _0x5e477d=_0xac8f0d['newValue'];return _0x5e477d?{'type':'format','content':c(_0x3dbce9,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5e477d+'\x22')}:{'type':'format','content':c(_0x3dbce9,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1844b7=this['editor'],_0x433b60=_0x1844b7['locale'];_0x1844b7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b93c0=>{if('formatBlock'!=_0x5b93c0['type']&&'formatInline'!=_0x5b93c0['type'])return;const {data:_0x594230}=_0x5b93c0;if(_0x594230){if('imageTextAlternative'==_0x594230['commandName']){const _0x5a241f=_0x594230['commandParams'][0x0]['newValue'];return _0x5a241f?{'type':'format','content':c(_0x433b60,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5a241f+'\x22')}:{'type':'format','content':c(_0x433b60,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x594230['commandName']){const _0x5bcf7d=_0x594230['commandParams'][0x0]['width'];return _0x5bcf7d?{'type':'format','content':c(_0x433b60,'*Set\x20image\x20width:*\x20%0',_0x5bcf7d)}:{'type':'format','content':c(_0x433b60,'*Reset\x20image\x20width*')};}}});}}class at extends _0x3b35c4{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x5d0150=this['editor']['locale'],_0x58ee0f=this['editor']['plugins']['get']('TrackChangesEditing');_0x58ee0f['enableDefaultAttributesIntegration']('replaceImageSource'),_0x58ee0f['registerBlockAttribute']('src'),_0x58ee0f['descriptionFactory']['registerDescriptionCallback'](_0x5ba08f=>{if('attribute'!=_0x5ba08f['type'])return;const {data:_0x28f24c}=_0x5ba08f;return _0x28f24c&&'src'==_0x28f24c['key']?_0x28f24c['newValue']&&_0x28f24c['oldValue']?{'type':'format','content':c(_0x5d0150,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x599d15=this['editor']['plugins']['get']('TrackChangesEditing');_0x599d15['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x599d15['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x599d15['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x599d15['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x35fe4b=this['editor'],_0x59d6be=_0x35fe4b['locale'];_0x35fe4b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2542fa=>{if('formatBlock'!=_0x2542fa['type']&&'formatInline'!=_0x2542fa['type'])return;const {data:_0x306747}=_0x2542fa;if(!_0x306747||'replaceImageSource'!=_0x306747['commandName'])return;return{'type':'format','content':c(_0x59d6be,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x3b35c4{['afterInit'](){const _0x107a1f=this['editor'];if(!_0x107a1f['plugins']['has']('ImageStyleEditing'))return;const _0x625ab4=_0x107a1f['plugins']['get']('TrackChangesEditing'),_0xff5c6c=_0x107a1f['plugins']['get']('ImageUtils'),_0x1a91ed={};_0x625ab4['enableCommand']('imageStyle',(_0x26635f,_0x34a808)=>{const _0x27c225=_0x107a1f['plugins']['get']('Users')['me'],_0x38db74=_0x107a1f['commands']['get']('imageStyle');let _0x4dbf60=_0xff5c6c['getClosestSelectedImageElement'](_0x107a1f['model']['document']['selection']),_0x4284e2=_0x107a1f['model']['createRangeOn'](_0x4dbf60),_0x5eaa23=_0x38db74['value'];if(_0x5eaa23==_0x34a808['value'])return;const _0x42861c={'commandName':'imageStyle','commandParams':[_0x34a808],'formatGroupId':_0x281607()};_0x107a1f['model']['change'](()=>{if(_0x625ab4['getSuggestions']()['filter'](_0x59692d=>_0x59692d['isInContent']&&_0x27c225==_0x59692d['author']&&('formatBlock'==_0x59692d['type']||'formatInline'==_0x59692d['type'])&&('imageStylePreApply'==_0x59692d['subType']||'imageStylePostApply'==_0x59692d['subType'])&&_0x59692d['getFirstRange']()['isEqual'](_0x4284e2))['forEach'](_0x31492f=>_0x625ab4['discardSuggestion'](_0x31492f['head'])),_0x4dbf60=_0xff5c6c['getClosestSelectedImageElement'](_0x107a1f['model']['document']['selection']),_0x4284e2=_0x107a1f['model']['createRangeOn'](_0x4dbf60),_0x38db74['refresh'](),_0x107a1f['commands']['get']('imageTypeInline')['refresh'](),_0x107a1f['commands']['get']('imageTypeBlock')['refresh'](),_0x5eaa23=_0x38db74['value'],_0x5eaa23!=_0x34a808['value'])return _0xff5c6c['isInlineImage'](_0x4dbf60)&&_0x38db74['shouldConvertImageType'](_0x34a808['value'],_0x4dbf60)?(_0x26635f({..._0x34a808,'setImageSizes':!0x1}),_0x4dbf60=_0xff5c6c['getClosestSelectedImageElement'](_0x107a1f['model']['document']['selection']),void _0x625ab4['markBlockFormat'](_0x4dbf60,{..._0x42861c,'commandReversedParams':[{'value':_0x5eaa23||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0xff5c6c['isBlockImage'](_0x4dbf60)?_0x625ab4['markBlockFormat'](_0x4dbf60,_0x42861c,[],'imageStylePostApply'):_0x625ab4['markInlineFormat'](_0x4284e2,_0x42861c,'imageStylePostApply'));});});for(const _0x40b454 of _0x107a1f['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1a91ed[_0x40b454['name']]=_0x40b454['title']['toLowerCase']();_0x625ab4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x625ab4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x625ab4['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x625ab4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x48dce8])=>{_0xff5c6c['setImageNaturalSizeAttributes'](_0x48dce8['getContainedElement']());}),_0x625ab4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x5d6c73,_0x3c59ae)=>{_0x625ab4['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5d6c73,{'commandName':_0x3c59ae['commandName'],'commandParams':_0x3c59ae['commandReversedParams']});}),_0x625ab4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x444670,_0x4946d5){if(_0x5b893a(_0x444670,_0x4946d5))return[_0x444670,_0x4946d5];if(_0x5b893a(_0x4946d5,_0x444670))return[_0x4946d5,_0x444670];return null;});const _0x364c02=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5b893a(_0x380766,_0x3b49a6){const _0x5cff3f=_0x364c02['findIndex'](({type:_0x113fce,subType:_0x12d2f5})=>_0x380766['type']==_0x113fce&&_0x380766['subType']==_0x12d2f5),_0x18d3f1=_0x364c02['findIndex'](({type:_0x343fb4,subType:_0x3e9002})=>_0x3b49a6['type']==_0x343fb4&&_0x3b49a6['subType']==_0x3e9002);if(_0x5cff3f<0x0||_0x18d3f1<0x0)return!0x1;const _0x27b311=_0x380766['getFirstRange'](),_0x214ffa=_0x3b49a6['getFirstRange']();if((0x0==_0x5cff3f||0x1==_0x5cff3f)&&0x2==_0x18d3f1&&_0x27b311['isIntersecting'](_0x214ffa))return!0x0;if(0x2==_0x5cff3f&&0x3==_0x18d3f1){const _0x169fcf=_0x625ab4['_findSuggestions'](_0x27b311,'insertion')['filter'](({suggestion:_0x3a0c18,meta:_0x29c762})=>_0x29c762['isOwn']&&'convertInlineImageToBlock'==_0x3a0c18['subType']);if(_0x169fcf['length']>0x1&&_0x214ffa['end']['isEqual'](_0x27b311['start']))return!0x0;if(0x1==_0x169fcf['length']&&(_0x27b311['start']['isEqual'](_0x214ffa['end'])||_0x27b311['end']['isEqual'](_0x214ffa['start'])))return!0x0;}if(0x3==_0x5cff3f&&0x3==_0x18d3f1&&_0x27b311['start']['isBefore'](_0x214ffa['start'])){const _0x49b051=_0x27b311['end']['nodeAfter'],_0x21682=_0x214ffa['start']['nodeBefore'];return _0xff5c6c['isBlockImage'](_0x49b051)&&_0x49b051===_0x21682;}return!0x1;}_0x107a1f['model']['document']['registerPostFixer'](()=>{let _0x327688=!0x1;const _0x54bc61=Array['from'](_0x107a1f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x788d37,data:_0x274d8e}of _0x54bc61){const {group:_0xf1218,type:_0x3b0cc1,subType:_0x576220,id:_0x41114}=_0x625ab4['_splitMarkerName'](_0x788d37);if('suggestion'==_0xf1218&&_0x625ab4['hasSuggestion'](_0x41114)){if('formatBlock'==_0x3b0cc1&&('imageStylePreApply'==_0x576220||'imageStylePostApply'==_0x576220)){const _0x45aef4=_0x625ab4['getSuggestion'](_0x41114);if(_0x274d8e['newRange']){const _0x580980=_0x45aef4['getFirstRange']()['getContainedElement']();if(_0xff5c6c['isBlockImage'](_0x580980))continue;_0x625ab4['discardSuggestion'](_0x45aef4),_0x327688=!0x0;}}if('insertion'==_0x3b0cc1&&'imageCaption'==_0x576220&&!_0x274d8e['newRange']){const _0x32e435=_0x625ab4['getSuggestion'](_0x41114);_0x32e435['next']&&_0x32e435['next']['isInContent']&&(_0x625ab4['discardSuggestion'](_0x32e435['next']),_0x327688=!0x0);}}}return _0x327688;}),this['_registerLegacyDescription'](_0x1a91ed);}['_registerLegacyDescription'](_0x28d0f9){const _0x363de7=this['editor'],_0x143887=_0x363de7['locale'];_0x363de7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x544ebd=>{if('formatBlock'!=_0x544ebd['type']&&'formatInline'!=_0x544ebd['type'])return;const {data:_0x3cf634}=_0x544ebd;if(!_0x3cf634||'imageStyle'!=_0x3cf634['commandName'])return;const _0x45aa54=_0x3cf634['commandParams'][0x0]['value'];return _0x98142a('side'===_0x45aa54?c(_0x143887,'FORMAT_SIDE_IMAGE'):_0x28d0f9[_0x45aa54]||_0x45aa54);function _0x98142a(_0x56f60f){return{'type':'format','content':c(_0x143887,'*Format:*\x20%0',_0x56f60f)};}});}}class ut extends _0x3b35c4{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x3de720){super(_0x3de720),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x553ea4=this['editor'],_0x36b3ad=_0x553ea4['commands']['get']('importWord'),_0x2485a1=_0x553ea4['commands']['get']('trackChanges');_0x36b3ad&&(_0x36b3ad['on']('execute',(_0x17cf8e,[,_0x364b65])=>{this['_trackChangesValueDuringImport']=_0x2485a1['value'],_0x364b65['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x36b3ad,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x36b3ad,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2485a1['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x553ea4['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x181430,_0x817272){const {suggestions:_0x4f0f4b}=_0x817272,_0x4187d8=this['editor']['commands']['get']('trackChanges'),_0x2c00a1=_0x4187d8['value'];this['_trackChangesValueDuringImport']!==_0x2c00a1&&(_0x4187d8['execute'](),this['_trackChangesExecuted']=!0x0),_0x4f0f4b&&_0x4f0f4b['forEach'](({id:_0x3ed94f,type:_0x30b836,author:_0x57d028,created_at:_0x412985})=>{const _0x4e1c1a={'id':_0x3ed94f,'type':_0x30b836,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x57d028,'createdAt':_0x412985?new Date(_0x412985):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4e1c1a);});}}class ft extends _0x3b35c4{['afterInit'](){const _0x44a950=this['editor'],_0x5ebf6c=_0x44a950['plugins']['get']('TrackChangesEditing');if(_0x44a950['plugins']['has']('IndentEditing')&&(_0x5ebf6c['enableCommand']('indent'),_0x5ebf6c['enableCommand']('outdent')),_0x44a950['plugins']['has']('IndentBlock')){for(const _0x3ac93a of['indentBlock','outdentBlock'])_0x5ebf6c['enableDefaultAttributesIntegration'](_0x3ac93a);}const _0x42062d=_0x44a950['locale'];_0x5ebf6c['registerBlockAttribute']('blockIndent'),_0x5ebf6c['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x42062d,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf2e73d=this['editor'],_0x6e650b=_0xf2e73d['locale'],_0x28d430=_0xf2e73d['plugins']['get']('TrackChangesEditing');_0x28d430['descriptionFactory']['registerDescriptionCallback'](_0x4cfabe=>{if('formatBlock'!=_0x4cfabe['type'])return;const {data:_0x4cc84d}=_0x4cfabe;if(!_0x4cc84d)return;if('indentBlock'!=_0x4cc84d['commandName']&&'outdentBlock'!=_0x4cc84d['commandName'])return;const _0x5951eb=_0x4cfabe['getItems']()[0x0],_0x1e6630=_0x28d430['descriptionFactory']['getItemLabel'](_0x5951eb);return'indentBlock'==_0x4cc84d['commandName']?{'type':'format','content':c(_0x6e650b,'*Indent:*\x20%0',_0x1e6630)}:'outdentBlock'==_0x4cc84d['commandName']?{'type':'format','content':c(_0x6e650b,'*Outdent:*\x20%0',_0x1e6630)}:void 0x0;});}}class ht extends _0x3b35c4{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class gt extends _0x3b35c4{['afterInit'](){const _0x5d7fe7=this['editor'];if(!_0x5d7fe7['plugins']['has']('LinkEditing'))return;const _0x2e4cdc=_0x5d7fe7['plugins']['get']('TrackChangesEditing'),_0x371ab6=_0x5d7fe7['commands']['get']('link');_0x2e4cdc['enableDefaultAttributesIntegration']('link'),_0x2e4cdc['enableDefaultAttributesIntegration']('unlink'),_0x2e4cdc['registerInlineAttribute']('linkHref');for(const _0x1a77d8 of _0x371ab6['manualDecorators'])_0x2e4cdc['registerInlineAttribute'](_0x1a77d8['id']),_0x2e4cdc['descriptionFactory']['registerAttributeLabel'](_0x1a77d8['id'],'link\x20('+_0x1a77d8['label']['toLowerCase']()+')');_0x2e4cdc['descriptionFactory']['registerDescriptionCallback'](_0x1b54ca=>{if('attribute'!=_0x1b54ca['type'])return;const {data:_0x5a0b4a}=_0x1b54ca;if(!_0x5a0b4a||'linkHref'!=_0x5a0b4a['key'])return;const _0x3c03f2=_0x5a0b4a['newValue'],_0x11ecc7=_0x5d7fe7['locale'];return{'type':'format','content':null==_0x3c03f2?c(_0x11ecc7,'*Remove\x20link*'):c(_0x11ecc7,'*Set\x20link:*\x20%0','\x22'+_0x3c03f2+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56844c=this['editor'],_0x527e19=_0x56844c['locale'];_0x56844c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40f07d=>{if('formatInline'!=_0x40f07d['type'])return;const {data:_0x128244}=_0x40f07d;if(_0x128244){if('link'==_0x128244['commandName']){const _0x2c3ac9=_0x128244['commandParams'][0x0];return{'type':'format','content':c(_0x527e19,'*Set\x20link:*\x20%0','\x22'+_0x2c3ac9+'\x22')};}return'unlink'==_0x128244['commandName']?{'type':'format','content':c(_0x527e19,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x3b35c4{['afterInit'](){const _0x33f504=this['editor'],_0x29e569=_0x33f504['locale'];if(!_0x33f504['plugins']['has']('LegacyListEditing'))return;const _0x3ee231=_0x33f504['plugins']['get']('TrackChangesEditing'),_0x11a172=_0x33f504['plugins']['has']('LegacyTodoListEditing');function _0x5f12ed(_0x2b4c63){return()=>{const _0x4e18cb=_0x33f504['model']['document']['selection'],_0x359339=_0x33f504['commands']['get'](_0x2b4c63);if(_0x359339['value'])return void _0x33f504['execute']('paragraph',{});const _0x26c16e=_0x2b4c63['slice'](0x0,-0x4),_0x1c22c2=function(_0x41e1c0,_0xf2e319,_0x5dbc88){let _0x579ae5=Array['from'](_0x41e1c0)['filter'](_0x5f177f=>function(_0x59b870,_0x183d8c){return _0x183d8c['checkChild'](_0x59b870['parent'],'listItem')&&!_0x183d8c['isObject'](_0x59b870);}(_0x5f177f,_0x5dbc88));_0x579ae5=_0x579ae5['filter'](_0x49f258=>!_0x49f258['is']('element','listItem')||_0x49f258['getAttribute']('listType')!=_0xf2e319);const _0x367cdb=new Set();for(const _0x4913ae of _0x579ae5)_0x4913ae['is']('element','listItem')?_0x367cdb['add'](Le(_0x4913ae)):_0x367cdb['add'](_0x4913ae);return Array['from'](_0x367cdb);}(_0x4e18cb['getSelectedBlocks'](),_0x26c16e,_0x33f504['model']['schema']);_0x33f504['model']['change'](()=>{for(const _0x2ed9bf of _0x1c22c2)_0x3ee231['markBlockFormat'](_0x2ed9bf,{'commandName':_0x2b4c63,'commandParams':[{'forceValue':!_0x359339['value']}],'formatGroupId':'blockName'},Ee(_0x2ed9bf));});};}function _0x588b60(_0x3c1956){return()=>{const _0x1ef75c=function(_0x46afa2){let _0x521f21=Array['from'](_0x46afa2);const _0x1b024e=_0x521f21['findIndex'](_0xa41cf1=>'listItem'!=_0xa41cf1['name']);return _0x1b024e>-0x1&&(_0x521f21=_0x521f21['slice'](0x0,_0x1b024e)),_0x521f21;}(_0x33f504['model']['document']['selection']['getSelectedBlocks']()),_0x5b5c08=_0x33f504['model']['createRange'](_0x33f504['model']['createPositionAt'](_0x1ef75c[0x0],'before'),_0x33f504['model']['createPositionAt'](_0x1ef75c[_0x1ef75c['length']-0x1],'end'));_0x33f504['model']['change'](()=>{_0x3ee231['markBlockFormat'](_0x5b5c08,{'commandName':_0x3c1956,'commandParams':[],'formatGroupId':'listIndent'},function(_0x3ce633){const _0x1a78f0=new Set();for(const _0x5ccbb0 of _0x3ce633){let _0x43660b=_0x5ccbb0['nextSibling'];for(;_0x43660b&&_0x43660b['getAttribute']('listIndent')>_0x5ccbb0['getAttribute']('listIndent');)_0x1a78f0['add'](_0x43660b),_0x43660b=_0x43660b['nextSibling'];}return Array['from'](_0x1a78f0);}(_0x1ef75c));});};}_0x3ee231['enableCommand']('numberedList',_0x5f12ed('numberedList')),_0x3ee231['enableCommand']('bulletedList',_0x5f12ed('bulletedList')),_0x11a172&&_0x3ee231['enableCommand']('todoList',_0x5f12ed('todoList')),_0x3ee231['enableCommand']('indentList',_0x588b60('indentList')),_0x3ee231['enableCommand']('outdentList',_0x588b60('outdentList')),_0x11a172&&_0x3ee231['enableCommand']('checkTodoList',()=>{const _0x474aa1=_0x33f504['commands']['get']('checkTodoList'),_0x1cc26b=Array['from'](_0x474aa1['_selectedElements']);_0x1cc26b['filter'](_0x42450a=>_0x42450a['getAttribute']('todoListChecked')!=_0x474aa1['value']),_0x33f504['model']['change'](()=>{for(const _0xc6dfbf of _0x1cc26b)_0x3ee231['markBlockFormat'](_0xc6dfbf,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x474aa1['value']}]});});}),_0x3ee231['descriptionFactory']['registerElementLabel']('listItem',_0x2938c0=>c(_0x29e569,'ELEMENT_LIST_ITEM',_0x2938c0)),_0x3ee231['descriptionFactory']['registerDescriptionCallback'](_0x2af865=>{if('formatBlock'!=_0x2af865['type']&&'formatInline'!=_0x2af865['type'])return;const {data:_0x1a52ae}=_0x2af865;if(_0x1a52ae){if('numberedList'==_0x1a52ae['commandName']||'bulletedList'==_0x1a52ae['commandName']||'todoList'==_0x1a52ae['commandName'])switch(_0x1a52ae['commandName']['replace']('List','')){case'bulleted':return _0x4f7431(c(_0x29e569,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4f7431(c(_0x29e569,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4f7431(c(_0x29e569,'ELEMENT_TODO_LIST'));}if('indentList'==_0x1a52ae['commandName'])return{'type':'format','content':c(_0x29e569,'*Indent:*\x20%0',c(_0x29e569,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x1a52ae['commandName'])return{'type':'format','content':c(_0x29e569,'*Outdent:*\x20%0',c(_0x29e569,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x1a52ae['commandName'])return _0x1a52ae['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x29e569,'*Check\x20item*')}:{'type':'format','content':c(_0x29e569,'*Uncheck\x20item*')};}function _0x4f7431(_0x28c06a){return{'type':'format','content':c(_0x29e569,'*Change\x20to:*\x20%0',_0x28c06a)};}});}}function Le(_0x22b641){const _0x1f6f33=_0x22b641['getAttribute']('listIndent');if(0x0==_0x1f6f33)return _0x22b641;let _0x470c33=_0x22b641;for(;_0x22b641['previousSibling']&&_0x22b641['previousSibling']['is']('element','listItem');){const _0x4410cd=_0x22b641['previousSibling']['getAttribute']('listIndent');if(_0x4410cd==_0x1f6f33)_0x470c33=_0x22b641['previousSibling'];else{if(_0x4410cd<_0x1f6f33)break;}_0x22b641=_0x22b641['previousSibling'];}return _0x470c33;}function Ee(_0x446bfc){const _0x280ec9=[];if(_0x446bfc['is']('element','listItem')&&_0x446bfc['getAttribute']('listIndent')>0x0){let _0x158593=_0x446bfc['nextSibling'];for(;_0x158593&&'listItem'==_0x158593['name']&&_0x158593['getAttribute']('listIndent')==_0x446bfc['getAttribute']('listIndent');)_0x280ec9['push'](_0x158593),_0x158593=_0x158593['nextSibling'];}return _0x280ec9;}class Q extends _0x3b35c4{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x2b9544=this['editor']['config']['get']('list.properties'),_0x281755=this['editor']['plugins']['get']('TrackChangesEditing');_0x2b9544['styles']&&_0x281755['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x2b9544['reversed']&&_0x281755['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x2b9544['startIndex']&&_0x281755['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x281755['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x3b76b9,_0x1b1496={}){const _0x517262=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2b1923=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x517262['markMultiRangeBlockFormat'](_0x2b1923,{'commandName':'listStyle','commandParams':[{'type':_0x1b1496['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x2ea2c0,_0x38ae1f={}){const _0x2cb2bb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x28ecb2=this['_getSuggestionBlocks'](_0x553731=>_0x553731['is']('element','listItem')&&'numbered'===_0x553731['getAttribute']('listType'));if(_0x28ecb2['length']<0x1)return;const _0x519ca5=_0x28ecb2['map'](_0x31995f=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x31995f,'before'),this['editor']['model']['createPositionAt'](_0x31995f,0x0)));this['editor']['model']['change'](()=>{_0x2cb2bb['markMultiRangeBlockFormat'](_0x519ca5,{'commandName':'listReversed','commandParams':[{'reversed':_0x38ae1f['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0xbeacdf,_0x10cb35={}){const _0x33cff7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x34d58a=this['_getSuggestionBlocks'](_0x14238e=>_0x14238e['is']('element','listItem')&&'numbered'===_0x14238e['getAttribute']('listType'));if(_0x34d58a['length']<0x1)return;const _0x5ae15c=_0x34d58a['map'](_0x472f23=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x472f23,'before'),this['editor']['model']['createPositionAt'](_0x472f23,0x0)));this['editor']['model']['change'](()=>{_0x33cff7['markMultiRangeBlockFormat'](_0x5ae15c,{'commandName':'listStart','commandParams':[{'startIndex':_0x10cb35['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x29b792){if('formatBlock'!=_0x29b792['type']&&'formatInline'!=_0x29b792['type'])return;const _0x58310b=this['editor']['locale'],{data:_0x10ae37}=_0x29b792;if(!_0x10ae37)return;let _0x1c2c63,_0x516766;switch(_0x10ae37['commandName']){case'listStyle':_0x1c2c63='*Change\x20to:*\x20%0',_0x516766={'type':'format','content':c(_0x58310b,_0x1c2c63,c(_0x58310b,this['_getTranslationKeyForListStyle'](_0x10ae37['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1c2c63=_0x10ae37['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x516766={'type':'format','content':c(_0x58310b,_0x1c2c63)};break;case'listStart':_0x1c2c63='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x516766={'type':'format','content':c(_0x58310b,_0x1c2c63,_0x10ae37['commandParams'][0x0]['startIndex'])};}return _0x516766;}['_getSuggestionBlocksForListStyle'](){const _0x2cb492=this['editor']['plugins']['get']('LegacyListUtils');let _0x4770c5=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x4770c5[0x0]?.['is']('element','listItem')&&_0x4770c5['unshift'](..._0x2cb492['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x4770c5[_0x4770c5['length']-0x1]?.['is']('element','listItem')&&_0x4770c5['push'](..._0x2cb492['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x4770c5=[...new Set(_0x4770c5)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x4770c5=_0x4770c5['filter'](_0x16f66c=>_0x16f66c['is']('element','listItem'))),_0x4770c5;}['_getSuggestionBlocks'](_0x4528d9){const _0x35acfe=this['editor']['plugins']['get']('LegacyListUtils');let _0x40a626=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4528d9)['map'](_0x5f0164=>{const _0x4df2b2=this['editor']['model']['createPositionAt'](_0x5f0164,0x0);return[..._0x35acfe['getSiblingNodes'](_0x4df2b2,'backward'),..._0x35acfe['getSiblingNodes'](_0x4df2b2,'forward')];})['flat']();return _0x40a626=[...new Set(_0x40a626)],_0x40a626;}['_getTranslationKeyForListStyle'](_0x4979e5){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4979e5)||'default')['toUpperCase']()+'_LIST_'+_0x4979e5['toUpperCase']()['replace'](/-/g,'_');}}class mt extends _0x3b35c4{['afterInit'](){const _0x4d743c=this['editor'];if(!_0x4d743c['plugins']['has']('MediaEmbedEditing'))return;const _0x17fe19=_0x4d743c['plugins']['get']('TrackChangesEditing'),_0x5e19a5=_0x4d743c['locale'];_0x17fe19['enableCommand']('mediaEmbed'),_0x17fe19['descriptionFactory']['registerElementLabel']('media',_0x4e0cd7=>c(_0x5e19a5,'ELEMENT_MEDIA',_0x4e0cd7)),_0x4d743c['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4bea79,{writer:_0x861ee5,options:_0x8dba70})=>{if(_0x8dba70['showSuggestionHighlights'])return _0x861ee5['createEmptyElement']('div');},'converterPriority':'high'}),_0x4d743c['data']['downcastDispatcher']['on']('attribute:url:media',(_0x188e3d,_0x4a3ab8,_0xc027f5)=>{_0xc027f5['options']['showSuggestionHighlights']&&_0x188e3d['stop']();},{'priority':'high'});}}class pt extends _0x3b35c4{['afterInit'](){const _0x2f2ec4=this['editor'];_0x2f2ec4['plugins']['has']('MentionEditing')&&_0x2f2ec4['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class kt extends _0x3b35c4{['afterInit'](){const _0x35b382=this['editor'];if(!_0x35b382['plugins']['has']('MergeFieldsEditing'))return;const _0x210e13=_0x35b382['plugins']['get']('TrackChangesEditing'),_0x481deb=_0x35b382['locale'];_0x210e13['enableCommand']('insertMergeField'),_0x210e13['enableCommand']('insertMergeFieldBlock'),_0x210e13['enableCommand']('insertMergeFieldImage'),_0x210e13['descriptionFactory']['registerElementLabel']('mergeField',_0x4ddfcc=>c(_0x481deb,'ELEMENT_MERGE_FIELD',_0x4ddfcc)),_0x210e13['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x19d52d=>c(_0x481deb,'ELEMENT_MERGE_FIELD',_0x19d52d)),_0x210e13['descriptionFactory']['registerDescriptionCallback'](_0x2279d2=>{if('insertion'!=_0x2279d2['type']&&'deletion'!=_0x2279d2['type'])return;const _0x292237=_0x2279d2['getContainedElement']();if(null==_0x292237)return;const _0x1e69a5=_0x35b382['plugins']['get']('MergeFieldsEditing');let _0x12e4b5;switch(_0x1e69a5['getMergeFieldType'](_0x292237)){case null:return;case'image':{const _0x2978d5=_0x1e69a5['unwrapAffixes'](_0x292237['getAttribute']('src'));_0x12e4b5=_0x1e69a5['getLabel'](_0x2978d5)||_0x2978d5;break;}default:{const _0x415277=_0x292237['getAttribute']('id');_0x12e4b5=_0x1e69a5['getLabel'](_0x415277)||_0x415277;break;}}return'insertion'==_0x2279d2['type']?{'type':'insertion','content':c(_0x481deb,'*Insert:*\x20%0','\x22'+_0x12e4b5+'\x22\x20'+c(_0x481deb,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x481deb,'*Remove:*\x20%0','\x22'+_0x12e4b5+'\x22\x20'+c(_0x481deb,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x3b35c4{['afterInit'](){const _0x405e59=this['editor'],_0x569fa7=_0x405e59['plugins']['get']('TrackChangesEditing');_0x405e59['plugins']['has']('MultiLevelList')&&(_0x569fa7['enableDefaultAttributesIntegration']('multiLevelList'),_0x569fa7['registerBlockAttribute']('listMarkerStyle'),_0x569fa7['descriptionFactory']['registerDescriptionCallback'](_0x9d71db=>this['handleDescriptions'](_0x9d71db)));}['handleDescriptions'](_0x4c63eb){const _0x4b6fb5=this['editor']['locale'],{data:_0x3f62c2}=_0x4c63eb,_0x1c117a={'type':'format','content':''};if(_0x3f62c2&&'listMarkerStyle'==_0x3f62c2['key']){if(!_0x3f62c2['oldValue'])return{'type':'format','content':c(_0x4b6fb5,'*Set\x20format:*\x20%0',c(_0x4b6fb5,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3f62c2['newValue']+')'};if(!_0x3f62c2['newValue']){let _0x61630b=_0x4c63eb['head'];for(;_0x61630b;){if(_0x61630b['data']&&'listType'==_0x61630b['data']['key']&&_0x61630b['data']['newValue'])return _0x1c117a;_0x61630b=_0x61630b['next'];}return{'type':'format','content':c(_0x4b6fb5,'*Remove\x20format:*\x20%0',c(_0x4b6fb5,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3f62c2['oldValue']+')'};}}}}class bt extends _0x3b35c4{['afterInit'](){const _0x312e21=this['editor'];if(!_0x312e21['plugins']['has']('PageBreakEditing'))return;_0x312e21['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0xc2261a=_0x312e21['plugins']['get']('TrackChangesEditing'),_0x3720ae=_0x312e21['locale'];_0xc2261a['descriptionFactory']['registerElementLabel']('pageBreak',_0xd74a9d=>c(_0x3720ae,'ELEMENT_PAGE_BREAK',_0xd74a9d));}}class yt extends _0x3b35c4{['afterInit'](){const _0x3eb7e7=this['editor'];if(!_0x3eb7e7['plugins']['has']('Paragraph'))return;const _0x23b12a=_0x3eb7e7['locale'],_0x4eae17=_0x3eb7e7['plugins']['get']('TrackChangesEditing');_0x4eae17['descriptionFactory']['registerElementLabel']('paragraph',_0x1afa8f=>c(_0x23b12a,'ELEMENT_PARAGRAPH',_0x1afa8f)),_0x4eae17['enableDefaultAttributesIntegration']('paragraph'),_0x4eae17['enableCommand']('insertParagraph'),_0x3eb7e7['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x3eb7e7),{'priority':'highest'}),_0x3eb7e7['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3bc2fb,_0x3df55a,_0x3a053a)=>{_0x3a053a['options']['showSuggestionHighlights']&&nr(_0x3eb7e7,{'showActiveMarker':!0x1})(_0x3bc2fb,_0x3df55a,_0x3a053a);},{'priority':'highest'});const _0x573372=_0x4eae17['descriptionFactory'];_0x573372['registerDescriptionCallback'](_0x5e9229=>{if('insertion'!==_0x5e9229['type'])return;const {start:_0x31e709,end:_0xdcdf85}=_0x5e9229['getFirstRange']();if(!_0x31e709['isTouching'](_0xdcdf85)||!_0x31e709['nodeAfter'])return;const _0x469eff=_0x3eb7e7['model']['schema'],_0xec9b27=_0x31e709['nodeAfter'];return _0x469eff['isBlock'](_0xec9b27)&&!_0x469eff['isLimit'](_0xec9b27)&&_0x469eff['checkChild'](_0xec9b27,'$text')?{'type':'insertion','content':c(_0x23b12a,'*Insert:*\x20%0',_0x573372['getItemLabel'](_0xec9b27,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a7bb1=this['editor'],_0x54ac6a=_0x3a7bb1['locale'];_0x3a7bb1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b719d=>{if('formatBlock'!=_0x5b719d['type'])return;const {data:_0x39bd53}=_0x5b719d;return _0x39bd53&&'paragraph'==_0x39bd53['commandName']?{'type':'format','content':c(_0x54ac6a,'*Change\x20to:*\x20%0',c(_0x54ac6a,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x9a59b1,{showActiveMarker:_0x444491=!0x0}={}){return(_0x3c1131,_0x4dce7c,_0x2c7fa1)=>{const _0x1b7715=_0x9a59b1['plugins']['get']('TrackChangesEditing'),_0x5490ef=_0x4dce7c['markerRange']['start'],_0x1d0554=_0x4dce7c['markerRange']['end'],_0x4f4610=_0x9a59b1['model']['schema'];if(!_0x5490ef['isTouching'](_0x1d0554)||!_0x5490ef['nodeAfter'])return;const _0x4a498d=_0x5490ef['nodeAfter'];if(_0x4f4610['isBlock'](_0x4a498d)&&!_0x4f4610['isLimit'](_0x4a498d)&&_0x4f4610['checkChild'](_0x4a498d,'$text')){if(!_0x2c7fa1['consumable']['consume'](_0x4dce7c['markerRange'],_0x3c1131['name']))return;const {id:_0x380fb2,authorId:_0x3eb877}=_0x1b7715['_splitMarkerName'](_0x4dce7c['markerName']),_0x1982e1=_0x2c7fa1['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x380fb2,'data-author-id':_0x3eb877}),_0x1d9557=_0x2c7fa1['mapper']['toViewPosition'](_0x1d0554);_0x444491&&_0x1b7715['activeMarkers']['includes'](_0x4dce7c['markerName'])&&_0x2c7fa1['writer']['addClass']('ck-suggestion-marker--active',_0x1982e1),_0x2c7fa1['writer']['insert'](_0x1d9557,_0x1982e1),_0x2c7fa1['mapper']['bindElementToMarker'](_0x1982e1,_0x4dce7c['markerName']);}};}class St extends _0x3b35c4{['afterInit'](){const _0x3bf53d=this['editor'];_0x3bf53d['commands']['get']('replaceSource')&&_0x3bf53d['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class jt extends _0x3b35c4{['afterInit'](){const _0xd69761=this['editor'];if(!_0xd69761['plugins']['has']('RemoveFormatEditing'))return;_0xd69761['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x7edf9a=this['editor'];_0x7edf9a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4d7916=>{if('formatBlock'!=_0x4d7916['type']&&'formatInline'!=_0x4d7916['type'])return;const {data:_0x944d17}=_0x4d7916;return _0x944d17&&'removeFormat'==_0x944d17['commandName']?{'type':'format','content':c(_0x7edf9a['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x3b35c4{['afterInit'](){const _0x19104e=this['editor'];if(!_0x19104e['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x2ffe8f=_0x19104e['plugins']['get']('TrackChangesEditing');_0x2ffe8f['enableCommand']('goToPreviousRestrictedEditingException'),_0x2ffe8f['enableCommand']('goToNextRestrictedEditingException');const _0x228cfe=_0x19104e['plugins']['get']('RestrictedEditingModeEditing');_0x228cfe['enableCommand']('trackChanges'),_0x228cfe['enableCommand']('acceptSuggestion'),_0x228cfe['enableCommand']('discardSuggestion'),_0x228cfe['enableCommand']('acceptAllSuggestions'),_0x228cfe['enableCommand']('discardAllSuggestions'),_0x228cfe['enableCommand']('acceptSelectedSuggestions'),_0x228cfe['enableCommand']('discardSelectedSuggestions');}}class At extends _0x3b35c4{['afterInit'](){const _0x223351=this['editor'];if(!_0x223351['plugins']['has']('ShiftEnter'))return;const _0x4e8842=_0x223351['plugins']['get']('TrackChangesEditing');_0x4e8842['enableCommand']('shiftEnter'),_0x223351['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x223351),{'priority':'high'}),_0x223351['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x223351),{'priority':'high'}),_0x223351['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x32fab3,_0x175c9c,_0x1a3e5d)=>{_0x1a3e5d['options']['showSuggestionHighlights']&&je(_0x223351,{'showActiveMarker':!0x1})(_0x32fab3,_0x175c9c,_0x1a3e5d);}),_0x4e8842['descriptionFactory']['registerElementLabel']('softBreak',_0xf76745=>c(_0x223351['locale'],'ELEMENT_LINE_BREAK',_0xf76745));}}function je(_0xc4dbd,{showActiveMarker:_0xcbf24f=!0x0}={}){return(_0x39e33a,_0x558d54,_0x4e055b)=>{const _0x34c3b5=_0xc4dbd['plugins']['get']('TrackChangesEditing');if(!_0x4e055b['consumable']['test'](_0x558d54['markerRange'],_0x39e33a['name']))return;const _0x19fcc2=_0xc4dbd['model'];for(const _0xdd7f6b of _0x558d54['markerRange']['getItems']()){if(!_0xdd7f6b['is']('element','softBreak'))continue;const _0x1537da='deletion'==_0x558d54['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x2ab0e7,authorId:_0x4ebd53}=_0x34c3b5['_splitMarkerName'](_0x558d54['markerName']),_0x150d18=_0x4e055b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1537da,'data-suggestion':_0x2ab0e7,'data-author-id':_0x4ebd53}),_0x348fa9=_0x4e055b['mapper']['toViewPosition'](_0x19fcc2['createPositionBefore'](_0xdd7f6b));_0xcbf24f&&_0x34c3b5['activeMarkers']['includes'](_0x558d54['markerName'])&&_0x4e055b['writer']['addClass']('ck-suggestion-marker--active',_0x150d18),_0x4e055b['writer']['insert'](_0x348fa9,_0x150d18),_0x4e055b['mapper']['bindElementToMarker'](_0x150d18,_0x558d54['markerName']);}};}class _t extends _0x3b35c4{['afterInit'](){const _0x2643bf=this['editor'],_0x5f2167=_0x2643bf['model'],_0x2b741f=_0x2643bf['locale'];if(!_0x2643bf['plugins']['has']('StandardEditingModeEditing'))return;const _0x197476=_0x2643bf['plugins']['get']('TrackChangesEditing'),_0x2ee02c='restrictedEditingException',_0x283335=_0x2643bf['commands']['get'](_0x2ee02c);_0x197476['enableCommand'](_0x2ee02c,(_0x48f457,_0x4ed909={})=>{const _0x438ab8=_0x5f2167['document']['selection'];if(_0x438ab8['isCollapsed'])return void _0x48f457(_0x4ed909);const _0x1d9250=void 0x0!==_0x4ed909['forceValue']?_0x4ed909['forceValue']:!_0x283335['value'];_0x5f2167['change'](()=>{const _0x55bce4=Array['from'](_0x438ab8['getRanges']());for(const _0x5dda88 of _0x55bce4){const _0x136d0=_0x1d9250?[_0x5dda88]:io(_0x2ee02c,_0x5dda88,_0x5f2167);for(const _0x444c52 of _0x136d0)_0x197476['markInlineFormat'](_0x444c52,{'commandName':_0x2ee02c,'commandParams':[{'forceValue':_0x1d9250}]});}});}),_0x197476['descriptionFactory']['registerDescriptionCallback'](_0x3f492e=>{if('formatBlock'!=_0x3f492e['type']&&'formatInline'!=_0x3f492e['type'])return;const {data:_0x17491b}=_0x3f492e;return _0x17491b&&_0x17491b['commandName']==_0x2ee02c?_0x17491b['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x2b741f,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x2b741f,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x3b35c4{['afterInit'](){const _0x132755=this['editor'];if(!_0x132755['plugins']['has']('Style')||!_0x132755['plugins']['has']('DataSchema'))return;const _0x4f48ae=_0x132755['plugins']['get']('TrackChangesEditing'),_0x3316a1=_0x132755['locale'],_0x25e529=_0x132755['config']['get']('style')||{},_0x325418=_0x132755['plugins']['get']('GeneralHtmlSupport'),_0x11fe9d=_0x132755['plugins']['get']('StyleUtils')['normalizeConfig'](_0x132755['plugins']['get']('DataSchema'),_0x25e529['definitions']);_0x4f48ae['enableDefaultAttributesIntegration']('style');const _0x2ad794=new Set();for(const _0x4df11b of _0x11fe9d['block']){const _0x4285e8=_0x325418['getGhsAttributeNameForElement'](_0x4df11b['element']);_0x2ad794['add'](_0x4285e8);}const _0x26bbd4=new Set();for(const _0x4cd40b of _0x11fe9d['inline']){const _0x32b527=_0x325418['getGhsAttributeNameForElement'](_0x4cd40b['element']);_0x26bbd4['add'](_0x32b527);for(const _0x511ec3 of _0x4cd40b['ghsAttributes'])_0x26bbd4['add'](_0x511ec3);}for(const _0x43c411 of _0x2ad794)_0x4f48ae['registerBlockAttribute'](_0x43c411),_0x4f48ae['descriptionFactory']['registerAttributeLabel'](_0x43c411,c(_0x3316a1,'FORMAT_STYLE'));for(const _0x5099e5 of _0x26bbd4)_0x4f48ae['registerInlineAttribute'](_0x5099e5),_0x4f48ae['descriptionFactory']['registerAttributeLabel'](_0x5099e5,c(_0x3316a1,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x35877a=this['editor'],_0x5dc47f=_0x35877a['locale'];_0x35877a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2680e7=>{if('formatBlock'!=_0x2680e7['type']&&'formatInline'!=_0x2680e7['type'])return;const {data:_0x224c75}=_0x2680e7;return _0x224c75&&'style'===_0x224c75['commandName']?_0x224c75['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x5dc47f,'*Set\x20format:*\x20%0',_0x224c75['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x5dc47f,'*Remove\x20format:*\x20%0',_0x224c75['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x3b35c4{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x366530){super(_0x366530),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x23875d=this['editor'],_0x53a201=_0x23875d['model']['document']['selection'];if(!_0x23875d['plugins']['has']('TableEditing'))return;const _0x1765cb=_0x23875d['locale'],_0x287cea=_0x23875d['plugins']['get']('TrackChangesEditing'),_0x104bb0=_0x23875d['plugins']['get']('TableUtils');_0x287cea['descriptionFactory']['registerElementLabel']('table',_0x1fca2d=>c(_0x1765cb,'ELEMENT_TABLE',_0x1fca2d)),this['_setupColumnsRowsFixing'](),_0x287cea['enableCommand']('insertTable'),_0x287cea['enableCommand']('selectTableRow'),_0x287cea['enableCommand']('selectTableColumn');for(const _0x32952b of['insertTableRowAbove','insertTableRowBelow']){const _0x351cdc=_0x23875d['commands']['get'](_0x32952b);_0x287cea['enableCommand'](_0x32952b,_0x1c7111=>{_0x23875d['model']['change'](_0x42728f=>{_0x1c7111();const _0x25d3ca='above'===_0x351cdc['order'],_0x170161=_0x104bb0['getSelectionAffectedTableCells'](_0x53a201),_0xdeaa9d=_0x104bb0['getRowIndexes'](_0x170161),_0xef48e8=_0x25d3ca?_0xdeaa9d['first']-0x1:_0xdeaa9d['last']+0x1,_0x3c484e=_0x170161[0x0]['findAncestor']('table'),_0x43e40c=_0x104bb0['createTableWalker'](_0x3c484e,{'startRow':_0xef48e8,'endRow':_0xef48e8}),_0x5e9b93=Array['from'](_0x43e40c)['map'](_0x2cea72=>_0x42728f['createRangeOn'](_0x2cea72['cell']));_0x287cea['markMultiRangeInsertion'](_0x5e9b93,'tableRow');});});}for(const _0x56ab6f of['insertTableColumnLeft','insertTableColumnRight']){const _0x43cb37=_0x23875d['commands']['get'](_0x56ab6f);_0x287cea['enableCommand'](_0x56ab6f,_0x368b37=>{_0x23875d['model']['change'](_0x1c1b6d=>{_0x368b37();const _0x31bd70='left'===_0x43cb37['order'],_0x209b0e=_0x104bb0['getSelectionAffectedTableCells'](_0x53a201),_0x2c3394=_0x104bb0['getColumnIndexes'](_0x209b0e),_0x4ecc1e=_0x31bd70?_0x2c3394['first']-0x1:_0x2c3394['last']+0x1,_0x5a61bf=_0x209b0e[0x0]['findAncestor']('table'),_0x5855f6=_0x104bb0['createTableWalker'](_0x5a61bf,{'startRow':0x0,'column':_0x4ecc1e,'includeAllSlots':!0x1}),_0x37f3c2=Array['from'](_0x5855f6)['map'](_0x56566f=>_0x1c1b6d['createRangeOn'](_0x56566f['cell']));_0x287cea['markMultiRangeInsertion'](_0x37f3c2,'tableColumn');});});}for(const _0x399c32 of['removeTableRow','removeTableColumn']){const _0x13c775=_0x399c32['substr'](0xb),_0xf24512=_0x13c775['toLowerCase'](),_0x54a928=_0xf24512['substr'](0x0,0x3)+'span',_0x25c5c5='table'+_0x13c775,_0x44d9b3='min'+_0x13c775,_0x591efb='max'+_0x13c775;_0x287cea['enableCommand'](_0x399c32,()=>{_0x23875d['model']['change'](_0x167af9=>{const _0x3bff07=_0x104bb0['getSelectionAffectedTableCells'](_0x53a201),_0xd6420d=_0x3bff07[0x0]['findAncestor']('table');let _0x4ce870;if('removeTableRow'==_0x399c32){const _0x4df297=_0x104bb0['getRowIndexes'](_0x3bff07);_0x4ce870={'startRow':_0x4df297['first'],'endRow':_0x4df297['last'],'includeAllSlots':!0x0};}else{const _0x10435c=_0x104bb0['getColumnIndexes'](_0x3bff07);_0x4ce870={'startColumn':_0x10435c['first'],'endColumn':_0x10435c['last'],'includeAllSlots':!0x0};}const _0x365329=_0x104bb0['createTableWalker'](_0xd6420d,_0x4ce870),_0x4453cc=Array['from'](_0x365329)['map'](({cell:_0x50c7f9})=>_0x50c7f9),_0x51e788=xe(_0x4453cc['filter'](_0x23aaa4=>_0x23aaa4['hasAttribute'](_0x54a928))),_0x2031a9=xe(_0x4453cc['filter'](_0x2b6729=>!_0x2b6729['hasAttribute'](_0x54a928)))['map'](_0x17cadd=>_0x167af9['createRangeOn'](_0x17cadd)),_0x174b7d=_0x287cea['markMultiRangeDeletion'](_0x2031a9,_0x25c5c5);if(_0x174b7d&&('tableRow'==_0x174b7d['subType']||'tableColumn'==_0x174b7d['subType'])){const _0x1aeeb0=this['_getSuggestionCoords'](_0x174b7d);for(const _0xf4cc74 of _0x51e788){const _0x38e673=_0x167af9['createRangeOn'](_0xf4cc74),_0x371fcc=_0x104bb0['getCellLocation'](_0xf4cc74),_0x370fb0=_0xf4cc74['getAttribute'](_0x54a928)-0x1,_0xb1a24f=_0x1aeeb0[_0x44d9b3],_0x2986d0=_0x1aeeb0[_0x591efb];_0xb1a24f<=_0x371fcc[_0xf24512]&&_0x371fcc[_0xf24512]+_0x370fb0<=_0x2986d0&&_0x174b7d['addRange'](_0x38e673);}}});});}function _0x162c1c(_0x34d9d7){const _0x33f6d9=Array['from'](_0x53a201['getRanges']())['map'](_0x252486=>_0x268add['fromRange'](_0x252486));_0x23875d['model']['change'](_0x1d4217=>{const _0x53e76c=_0x1d4217['batch'];_0x34d9d7=_0x34d9d7['filter'](_0x449cc5=>'$graveyard'!=_0x449cc5['root']['rootName']),_0x1d4217['setSelection'](_0x34d9d7),_0x23875d['commands']['get']('removeTableRow')['refresh'](),_0x23875d['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x23875d['model']['enqueueChange'](()=>{_0x23875d['model']['enqueueChange'](_0x53e76c,_0xf664c2=>{const _0x133e7a=_0x33f6d9['filter'](_0x5000dc=>'$graveyard'!=_0x5000dc['root']['rootName']);_0x133e7a['length']>0x0&&_0xf664c2['setSelection'](_0x133e7a);for(const _0x23d9b2 of _0x33f6d9)_0x23d9b2['detach']();});});});}function _0x4be281(_0x21466d){_0x23875d['model']['change'](_0x208dc9=>{const _0xe8bb80=Array['from'](_0x53a201['getRanges']())['map'](_0x1b08d8=>_0x268add['fromRange'](_0x1b08d8)),_0x467aa5=[];for(const _0xc10b9d of _0x21466d)for(const _0x4fb9bb of _0xc10b9d['getItems']({'shallow':!0x0}))_0x467aa5['push'](_0x4fb9bb);for(const _0x8d3cb2 of _0x467aa5)'$graveyard'!=_0x8d3cb2['root']['rootName']&&(_0x208dc9['setSelection'](_0x208dc9['createPositionAt'](_0x8d3cb2,0x0)),_0x23875d['commands']['get']('removeTableColumn')['refresh'](),_0x23875d['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x162b47=_0xe8bb80['filter'](_0x5ee108=>'$graveyard'!=_0x5ee108['root']['rootName']);_0x162b47['length']>0x0&&_0x208dc9['setSelection'](_0x162b47);for(const _0x4c7190 of _0xe8bb80)_0x4c7190['detach']();});}function _0x1fe18a(_0x2552f8,_0x5189d6){return _0x5189d6['every'](_0x1e9127=>_0x2552f8['some'](_0x10d267=>_0x10d267['end']['isEqual'](_0x1e9127['start'])||_0x1e9127['end']['isEqual'](_0x10d267['start'])));}function _0x177abb(_0x2babb4,_0x370571){return!_0x2babb4['some'](_0x4a6c8a=>_0x370571['some'](_0x420cf2=>_0x4a6c8a['isIntersecting'](_0x420cf2)))&&_0x2babb4['some'](_0x1c1091=>_0x370571['some'](_0x186eae=>_0x1c1091['end']['isTouching'](_0x186eae['start'])));}_0x23875d['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x39a7a8,_0xda8c71,_0x51c87e)=>{if(!_0x51c87e['options']['showSuggestionHighlights'])return;const _0x3351b3=_0xda8c71['item'];if(!_0x3351b3||!_0x3351b3['is']('element','tableCell'))return;const _0x4cf970=_0x51c87e['mapper']['toViewElement'](_0x3351b3);if(_0x4cf970){const {id:_0x476f70,authorId:_0x32aeaf}=_0x287cea['_splitMarkerName'](_0xda8c71['markerName']);_0x30dddd(_0x4cf970,_0x51c87e['writer'],(_0x27febd,_0x3b5559,_0x597b28)=>{_0x597b28['addClass'](_0x3a9362(_0x3b5559['classes']),_0x27febd),_0x597b28['setAttribute']('data-suggestion-id',_0x476f70,_0x27febd),_0x597b28['setAttribute']('data-author-id',_0x32aeaf,_0x27febd);},(_0x311bcb,_0x110c75,_0xd6e1b6)=>{_0xd6e1b6['removeClass'](_0x3a9362(_0x110c75['classes']),_0x311bcb),_0xd6e1b6['removeAttribute']('data-suggestion-id',_0x311bcb),_0xd6e1b6['removeAttribute']('data-author-id',_0x311bcb);});}},{'priority':'highest'}),_0x287cea['descriptionFactory']['registerDescriptionCallback'](_0xaf7d17=>{if('insertion'!=_0xaf7d17['type']&&'deletion'!=_0xaf7d17['type'])return;const _0x470ce3=_0xaf7d17['getContainedElement']();if(null!=_0x470ce3&&_0x470ce3['is']('element','table')){if('insertion'==_0xaf7d17['type']){const _0x29ef0e=_0xaf7d17['getItems']()['filter'](_0x52f3f5=>_0x52f3f5['is']('$textProxy'))['map'](_0x14267e=>_0x14267e['data']);if(_0x29ef0e['length'])return{'type':'insertion','content':c(_0x1765cb,'*Insert:*\x20%0',c(_0x1765cb,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x29ef0e['join']('\x20')+'\x22'))};}if('deletion'==_0xaf7d17['type']){const _0xa9921=_0xaf7d17['getItems']()['filter'](_0x351a4a=>_0x351a4a['is']('$textProxy'))['map'](_0x157f89=>_0x157f89['data']);if(_0xa9921['length'])return{'type':'deletion','content':c(_0x1765cb,'*Remove:*\x20%0',c(_0x1765cb,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xa9921['join']('\x20')+'\x22'))};}}}),_0x287cea['descriptionFactory']['registerDescriptionCallback'](_0x12fd60=>{if('tableRow'==_0x12fd60['subType']){const _0x5ee1ae=_0x12fd60['getItems']()['filter'](_0x2f45b6=>_0x2f45b6['is']('$textProxy'))['map'](_0x103c64=>_0x103c64['data']),_0x56f2a3=this['_getSuggestionCoords'](_0x12fd60),_0x20e165=_0x56f2a3['maxRow']-_0x56f2a3['minRow']+0x1;if('insertion'==_0x12fd60['type'])return _0x5ee1ae['length']?{'type':'insertion','content':c(_0x1765cb,'*Insert:*\x20%0',c(_0x1765cb,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x20e165,'\x22'+_0x5ee1ae['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x1765cb,'*Insert:*\x20%0',c(_0x1765cb,'ELEMENT_TABLE_ROW',_0x20e165))};if('deletion'==_0x12fd60['type'])return _0x5ee1ae['length']?{'type':'deletion','content':c(_0x1765cb,'*Remove:*\x20%0',c(_0x1765cb,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x20e165,'\x22'+_0x5ee1ae['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x1765cb,'*Remove:*\x20%0',c(_0x1765cb,'ELEMENT_TABLE_ROW',_0x20e165))};}if('tableColumn'==_0x12fd60['subType']){const _0x1070ef=_0x12fd60['getItems']()['filter'](_0x2b4c75=>_0x2b4c75['is']('$textProxy'))['map'](_0x4b281c=>_0x4b281c['data']),_0x476b92=this['_getSuggestionCoords'](_0x12fd60),_0x4b3987=_0x476b92['maxColumn']-_0x476b92['minColumn']+0x1;if('insertion'==_0x12fd60['type'])return _0x1070ef['length']?{'type':'insertion','content':c(_0x1765cb,'*Insert:*\x20%0',c(_0x1765cb,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4b3987,'\x22'+_0x1070ef['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x1765cb,'*Insert:*\x20%0',c(_0x1765cb,'ELEMENT_TABLE_COLUMN',_0x4b3987))};if('deletion'==_0x12fd60['type'])return _0x1070ef['length']?{'type':'deletion','content':c(_0x1765cb,'*Remove:*\x20%0',c(_0x1765cb,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4b3987,'\x22'+_0x1070ef['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x1765cb,'*Remove:*\x20%0',c(_0x1765cb,'ELEMENT_TABLE_COLUMN',_0x4b3987))};}}),_0x287cea['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x162c1c),_0x287cea['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x162c1c),_0x287cea['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x4be281),_0x287cea['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x4be281),_0x287cea['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1fe18a),_0x287cea['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1fe18a),_0x287cea['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x177abb),_0x287cea['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x177abb);}['_acceptFormatSuggestionCallbackFactory'](){const _0x88ac82=this['editor'],_0x508b0d=_0x88ac82['model']['document']['selection'];return(_0x49759b,_0x379d4a)=>{_0x88ac82['model']['change'](_0x6060d7=>{const {commandName:_0x5331d5,commandParams:_0x57da76}=_0x379d4a;let _0x2a45af=_0x49759b[0x0]['end']['nodeBefore'];_0x57da76&&_0x57da76[0x0]&&!0x1===_0x57da76[0x0]['forceValue']&&(_0x2a45af=_0x49759b[0x0]['start']['nodeAfter']);const _0x12f937=_0x6060d7['createRangeIn'](_0x2a45af);if('$graveyard'==_0x12f937['root']['rootName'])return;const _0x36ac18=Array['from'](_0x508b0d['getRanges']())['map'](_0x405bc0=>_0x268add['fromRange'](_0x405bc0));_0x6060d7['setSelection'](_0x12f937),_0x88ac82['commands']['get'](_0x5331d5)['refresh'](),_0x57da76['push']({'forceDefaultExecution':!0x0}),_0x88ac82['execute'](_0x5331d5,..._0x57da76);const _0x2e0ee6=_0x36ac18['filter'](_0x19a84f=>'$graveyard'!=_0x19a84f['root']['rootName']);_0x2e0ee6['length']>0x0&&_0x6060d7['setSelection'](_0x2e0ee6);for(const _0x2fd20c of _0x36ac18)_0x2fd20c['detach']();});};}['_getCoordsForCells'](_0x4fb89c){const _0x27c7e3=this['editor']['plugins']['get']('TableUtils');let _0x1a8250=Number['MAX_SAFE_INTEGER'],_0xcbeb86=Number['MIN_SAFE_INTEGER'],_0x186e71=Number['MAX_SAFE_INTEGER'],_0x1c03d9=Number['MIN_SAFE_INTEGER'];for(const _0x49bccd of _0x4fb89c){if('$graveyard'==_0x49bccd['root']['rootName'])continue;const {row:_0x4dcb03,column:_0x566b8e}=_0x27c7e3['getCellLocation'](_0x49bccd),_0x34e66d=_0x49bccd['hasAttribute']('rowspan')?_0x49bccd['getAttribute']('rowspan')-0x1:0x0,_0x84425a=_0x49bccd['hasAttribute']('colspan')?_0x49bccd['getAttribute']('colspan')-0x1:0x0;_0x1a8250=_0x4dcb03<_0x1a8250?_0x4dcb03:_0x1a8250,_0xcbeb86=_0x4dcb03+_0x34e66d>_0xcbeb86?_0x4dcb03+_0x34e66d:_0xcbeb86,_0x186e71=_0x566b8e<_0x186e71?_0x566b8e:_0x186e71,_0x1c03d9=_0x566b8e+_0x84425a>_0x1c03d9?_0x566b8e+_0x84425a:_0x1c03d9;}return{'minRow':_0x1a8250,'maxRow':_0xcbeb86,'minColumn':_0x186e71,'maxColumn':_0x1c03d9};}['_setupColumnsRowsFixing'](){const _0x8971b4=this['editor'],_0x5444ff=_0x8971b4['plugins']['get']('TrackChangesEditing'),_0x1ac858=_0x8971b4['plugins']['get']('TableUtils');_0x8971b4['model']['document']['on']('change:data',()=>{const _0x64c0cf=Array['from'](_0x8971b4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x254a00,data:_0x1acfb8}of _0x64c0cf){const {group:_0x26274a,id:_0x3421c2,subType:_0x32d872}=_0x5444ff['_splitMarkerName'](_0x254a00);if('suggestion'!=_0x26274a)continue;if(null!=_0x1acfb8['oldRange'])continue;const _0x394cf8=_0x5444ff['getSuggestion'](_0x3421c2);this['_tablePostFixingSubtypes']['includes'](_0x32d872)&&this['_tableSuggestions']['add'](_0x394cf8);}},{'priority':'low'});const _0x1535f0=(_0x3fa4e3,_0xb3d712)=>{let _0xb02a98=!0x1;const _0x30a9e9=_0xb3d712['createRangeOn'](_0x3fa4e3),_0xbf54fc=_0x3fa4e3['findAncestor']('table'),_0x32c74d=_0x1ac858['getCellLocation'](_0x3fa4e3);for(const _0x15c1e1 of this['_tableSuggestions']){const _0x3000dc=_0x15c1e1['subType'],_0x436cf4=_0x3000dc['startsWith']('tablePaste'),_0xed9b85=_0x3000dc['substr'](_0x436cf4?0xa:0x5),_0x34483b=_0xed9b85['toLowerCase'](),_0x27ee3c=_0x34483b['substr'](0x0,0x3)+'span',_0x452090='min'+_0xed9b85,_0x1c79fe='max'+_0xed9b85;if(!_0x15c1e1['isInContent'])continue;if(_0xbf54fc!=_0x15c1e1['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x15c1e1['isIntersectingWithRange'](_0x30a9e9))continue;const _0x118959=_0x3fa4e3['hasAttribute'](_0x27ee3c)?_0x3fa4e3['getAttribute'](_0x27ee3c)-0x1:0x0,_0x18bb30=this['_getSuggestionCoords'](_0x15c1e1),_0x5ddb83=_0x18bb30[_0x452090],_0x33bd8d=_0x18bb30[_0x1c79fe];_0x5ddb83<=_0x32c74d[_0x34483b]&&_0x32c74d[_0x34483b]+_0x118959<=_0x33bd8d&&(_0x15c1e1['addRange'](_0x30a9e9),_0xb02a98=!0x0);}return _0xb02a98;};_0x8971b4['model']['document']['registerPostFixer'](_0x111be4=>{let _0x5ee211=!0x1;for(const _0x544faf of _0x8971b4['model']['document']['differ']['getChanges']())if('insert'==_0x544faf['type']){if('tableRow'==_0x544faf['name']){for(const _0x18cc32 of _0x544faf['position']['nodeAfter']['getChildren']())_0x5ee211=_0x5ee211||_0x1535f0(_0x18cc32,_0x111be4);}else'tableCell'==_0x544faf['name']&&(_0x5ee211=_0x5ee211||_0x1535f0(_0x544faf['position']['nodeAfter'],_0x111be4));}return _0x5ee211;});}['_getSuggestionCoords'](_0x564505){return this['_getCoordsForCells'](_0x564505['getRanges']()['map'](_0x140a58=>_0x140a58['start']['nodeAfter']));}}function xe(_0x176279){return Array['from'](new Set(_0x176279)['values']());}class Nt extends _0x3b35c4{static get['requires'](){return[Ct];}['afterInit'](){const _0x2bcd1e=this['editor'],_0x56225c=_0x2bcd1e['model']['document']['selection'],_0x589bbf=_0x2bcd1e['locale'];if(!_0x2bcd1e['plugins']['has']('TableEditing'))return;const _0x3bb212=_0x2bcd1e['plugins']['get']('TrackChangesEditing'),_0x55ffb8=_0x2bcd1e['plugins']['get']('TableUtils'),_0x206914=_0x2bcd1e['plugins']['get'](Ct);_0x206914['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3bb212['enableCommand']('mergeTableCells',()=>{const _0x1d7ac6=_0x55ffb8['getSelectionAffectedTableCells'](_0x2bcd1e['model']['document']['selection']);_0x2bcd1e['model']['change'](()=>{_0x3bb212['markMultiRangeBlockFormat'](_0x1d7ac6,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2bcd1e['commands']['get']('mergeTableCells')['on']('execute',(_0x3de576,_0x6f5da2)=>{_0x2bcd1e['commands']['get']('trackChanges')['value']&&(_0x6f5da2['length']>0x0&&_0x6f5da2[_0x6f5da2['length']-0x1]&&_0x6f5da2[_0x6f5da2['length']-0x1]['forceDefaultExecution']||_0x3bb212['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x3de576['stop']());},{'priority':'highest'});for(const _0x1272b4 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x557eae=_0x2bcd1e['commands']['get'](_0x1272b4);_0x3bb212['enableCommand'](_0x1272b4,()=>{const _0x3a6669=_0x2bcd1e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2bb5cb=>_0x2bb5cb['is']('element','tableCell')),_0x41ad0e=_0x557eae['value'];_0x2bcd1e['model']['change'](()=>{_0x3bb212['markMultiRangeBlockFormat']([_0x3a6669,_0x41ad0e],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x29a836 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x4e2469=_0x2bcd1e['commands']['get'](_0x29a836);_0x3bb212['enableCommand'](_0x29a836,()=>{const _0x1573d1=_0x55ffb8['getSelectionAffectedTableCells'](_0x2bcd1e['model']['document']['selection'])[0x0],_0x3cebf8=_0x1573d1['findAncestor']('table'),{column:_0x3a5002,row:_0x4770a7}=_0x55ffb8['getCellLocation'](_0x1573d1);let _0x1b2f89=[];if('horizontally'==_0x4e2469['direction']){const _0x3505a1=_0x55ffb8['createTableWalker'](_0x3cebf8,{'startRow':_0x4770a7,'endRow':_0x4770a7,'includeAllSlots':!0x0});_0x1b2f89=Array['from'](_0x3505a1)['map'](_0x14e25e=>_0x14e25e['cell']);}else{const _0x172067=_0x55ffb8['createTableWalker'](_0x3cebf8,{'column':_0x3a5002,'includeAllSlots':!0x0});_0x1b2f89=Array['from'](_0x172067)['map'](_0x4d73f4=>_0x4d73f4['cell']);}_0x2bcd1e['model']['change'](_0x54495e=>{_0x3bb212['markBlockFormat'](_0x54495e['createRangeOn'](_0x1573d1),{'commandName':_0x29a836,'commandParams':[]},_0x1b2f89,_0x29a836);});});}_0x3bb212['descriptionFactory']['registerDescriptionCallback'](_0x590758=>{if('formatBlock'!=_0x590758['type']&&'formatInline'!=_0x590758['type'])return;const {data:_0x5a76ef}=_0x590758;return _0x5a76ef&&'mergeTableCells'==_0x5a76ef['commandName']?{'type':'format','content':c(_0x589bbf,'*Merge\x20cells*')}:void 0x0;}),_0x3bb212['descriptionFactory']['registerDescriptionCallback'](_0x22ad7c=>{if('formatBlock'!=_0x22ad7c['type']&&'formatInline'!=_0x22ad7c['type'])return;const {data:_0xd5918f}=_0x22ad7c;return _0xd5918f?'splitTableCellVertically'==_0xd5918f['commandName']?{'type':'format','content':c(_0x589bbf,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xd5918f['commandName']?{'type':'format','content':c(_0x589bbf,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0xfe84e1=_0x206914['_acceptFormatSuggestionCallbackFactory']();for(const _0x50e72b of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3bb212['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x50e72b,'accept',_0xfe84e1);for(const _0x512baa of['splitTableCellVertically','splitTableCellHorizontally'])_0x3bb212['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x512baa,'accept',_0xfe84e1);_0x3bb212['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3401ef=>{_0x2bcd1e['model']['change'](_0x3b8310=>{const _0x1602e2=Array['from'](_0x56225c['getRanges']())['map'](_0x2f8697=>_0x268add['fromRange'](_0x2f8697));_0x3b8310['setSelection'](_0x3401ef),_0x2bcd1e['commands']['get']('mergeTableCells')['refresh'](),_0x2bcd1e['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3c3926=_0x1602e2['filter'](_0x5c113d=>'$graveyard'!=_0x5c113d['root']['rootName']);_0x3c3926['length']>0x0&&_0x3b8310['setSelection'](_0x3c3926);for(const _0x1f0e1a of _0x1602e2)_0x1f0e1a['detach']();});});for(const _0x5bc722 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5c2af8=_0x2bcd1e['commands']['get'](_0x5bc722);_0x5c2af8['on']('set:isEnabled',(_0x5a5167,_0x57fda5,_0x2fcc29)=>{if(_0x2fcc29){const _0x37a9e2=_0x2bcd1e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x35abbe=>_0x35abbe['is']('element','tableCell'));this['_areMergableCells'](_0x5c2af8['value'],_0x37a9e2)||(_0x5a5167['return']=!0x1,_0x5a5167['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x2db0cd=this['editor']['commands']['get']('mergeTableCells'),_0x67adf5=this['editor']['plugins']['get']('TableUtils');if(!_0x2db0cd['isEnabled'])return!0x1;const _0x593e61=_0x67adf5['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x14a8b8 of _0x593e61)for(const _0x587ba4 of _0x593e61)if(_0x14a8b8!=_0x587ba4&&!this['_areMergableCells'](_0x14a8b8,_0x587ba4))return!0x1;return!0x0;}['_areMergableCells'](_0x243a36,_0x7d9129){const _0x85fa84=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1ac0bc=this['editor']['model']['createRangeOn'](_0x243a36),_0x32bb8f=this['editor']['model']['createRangeOn'](_0x7d9129),_0x492bba=new Set(),_0x442ead=new Set();for(const _0x5aeac9 of _0x85fa84['getSuggestions']())if(('insertion'==_0x5aeac9['type']||'deletion'==_0x5aeac9['type']||'mergeTableCells'==_0x5aeac9['subType'])&&_0x5aeac9['isInContent']){for(const _0x495436 of _0x5aeac9['getRanges']())_0x495436['containsRange'](_0x1ac0bc,!0x0)&&_0x492bba['add'](_0x5aeac9['type']+':'+_0x5aeac9['author']['id']),_0x495436['containsRange'](_0x32bb8f,!0x0)&&_0x442ead['add'](_0x5aeac9['type']+':'+_0x5aeac9['author']['id']);}if(_0x492bba['size']!=_0x442ead['size'])return!0x1;for(const _0x90f93 of _0x492bba)if(!_0x442ead['has'](_0x90f93))return!0x1;return!0x0;}}class Dt extends _0x3b35c4{static get['requires'](){return[Ct];}['afterInit'](){const _0x134496=this['editor'];if(!_0x134496['plugins']['has']('TableEditing'))return;const _0x27ea46=_0x134496['locale'],_0x1acd4a=_0x134496['plugins']['get']('TrackChangesEditing');_0x1acd4a['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1acd4a['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1acd4a['registerBlockAttribute']('headingRows'),_0x1acd4a['registerBlockAttribute']('headingColumns'),_0x1acd4a['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x27ea46,'FORMAT_HEADER_ROW')),_0x1acd4a['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x27ea46,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3b4d42=this['editor']['plugins']['get']('TrackChangesEditing'),_0x554fde=this['editor']['plugins']['get']('TableUtils'),_0x18c599=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x11ffd0({showActiveMarker:_0x3ee6d9=!0x0,setDataAttribute:_0x2b6177=!0x0}={}){return(_0x44c01e,_0x246fdd,_0xade7cc)=>{const {type:_0x52921c,id:_0x2e5e57}=_0x3b4d42['_splitMarkerName'](_0x246fdd['markerName']),_0x45852b=_0x3b4d42['getSuggestion'](_0x2e5e57),_0x26fcb3=_0x45852b['data'];if('formatBlock'!=_0x45852b['type']||!_0x26fcb3||'setTableColumnHeader'!=_0x26fcb3['commandName'])return;if(_0x246fdd['item'])return void _0x44c01e['stop']();if(!_0xade7cc['consumable']['consume'](_0x246fdd['markerRange'],_0x44c01e['name']))return;const _0x4646e6=_0x246fdd['markerRange']['start']['nodeAfter'],_0x56169a=_0x246fdd['markerRange']['end']['nodeBefore'],_0x801521=_0x4646e6['parent']['parent'],{column:_0xe4dde3}=_0x554fde['getCellLocation'](_0x4646e6),{column:_0xe37240}=_0x554fde['getCellLocation'](_0x56169a);for(let _0x51d39c=_0xe4dde3;_0x51d39c<=_0xe37240;_0x51d39c++){const _0x5a056b=_0x554fde['createTableWalker'](_0x801521,{'column':_0x51d39c,'includeAllSlots':!0x1});for(const _0x51a6c2 of _0x5a056b){const _0x5cd84f=_0x51a6c2['cell'],_0x42c628=_0xade7cc['mapper']['toViewElement'](_0x5cd84f);_0xade7cc['writer']['addClass']('ck-suggestion-marker-'+_0x52921c,_0x42c628),_0x2b6177&&_0xade7cc['writer']['setAttribute']('data-suggestion',_0x2e5e57,_0x42c628),_0xade7cc['mapper']['bindElementToMarker'](_0x42c628,_0x246fdd['markerName']),_0x3ee6d9&&(_0x3b4d42['activeMarkers']['includes'](_0x246fdd['markerName'])?_0xade7cc['writer']['addClass']('ck-suggestion-marker--active',_0x42c628):_0xade7cc['writer']['removeClass']('ck-suggestion-marker--active',_0x42c628));}}};}_0x3b4d42['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x18c599),_0x3b4d42['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x18c599),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x11ffd0(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3a1efd,_0x43707f,_0xcca9e5)=>{_0xcca9e5['options']['showSuggestionHighlights']&&_0x11ffd0({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x3a1efd,_0x43707f,_0xcca9e5);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0xa542fb,_0x49da22,_0xb56f31)=>{const {type:_0x2083c8,id:_0x3dc0aa}=_0x3b4d42['_splitMarkerName'](_0x49da22['markerName']),_0x4adcb7=_0x3b4d42['getSuggestion'](_0x3dc0aa),_0x5bea65=_0x4adcb7['data'];if('formatBlock'!=_0x4adcb7['type']||!_0x5bea65||'setTableColumnHeader'!=_0x5bea65['commandName'])return;const _0x19ab05=_0xb56f31['mapper']['markerNameToElements'](_0x49da22['markerName']);if(_0x19ab05){for(const _0x1ea2f0 of _0x19ab05)_0xb56f31['writer']['removeClass']('ck-suggestion-marker-'+_0x2083c8,_0x1ea2f0),_0xb56f31['writer']['removeClass']('ck-suggestion-marker--active',_0x1ea2f0),_0xb56f31['writer']['removeAttribute']('data-suggestion',_0x1ea2f0),_0xb56f31['mapper']['unbindElementFromMarkerName'](_0x1ea2f0,_0x49da22['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf1da93=this['editor'],_0x128432=_0xf1da93['locale'];function _0x3c5645(_0x48e812){return{'type':'format','content':c(_0x128432,'*Format:*\x20%0',_0x48e812)};}_0xf1da93['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x60002a=>{if('formatBlock'!=_0x60002a['type'])return;const {data:_0x4df33c}=_0x60002a;if(_0x4df33c){if('setTableRowHeader'==_0x4df33c['commandName']){const _0x2ee4eb=_0x4df33c['commandParams'][0x0]['forceValue'];return _0x3c5645(c(_0x128432,_0x2ee4eb?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x4df33c['commandName']){const _0x4071f9=_0x4df33c['commandParams'][0x0]['forceValue'];return _0x3c5645(c(_0x128432,_0x4071f9?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x3b35c4{['afterInit'](){const _0x329ada=this['editor'],_0x3a3f15=_0x329ada['locale'],_0x6467fe=_0x329ada['plugins']['get']('TrackChangesEditing');function _0x467b5f(_0x3e596e){return{'type':'format','content':''+c(_0x3a3f15,'*Set\x20table\x20type:*\x20%0',_0x3e596e)};}_0x329ada['plugins']['has']('TableLayout')&&(_0x6467fe['enableCommand']('insertTableLayout'),_0x6467fe['enableDefaultAttributesIntegration']('tableType'),_0x6467fe['registerBlockAttribute']('tableType'),_0x6467fe['descriptionFactory']['registerElementLabel'](_0x15a3cb=>_0x15a3cb['is']('element','table')&&'layout'===_0x15a3cb['getAttribute']('tableType'),_0x27dce5=>c(_0x3a3f15,'ELEMENT_LAYOUT_TABLE',_0x27dce5)),_0x6467fe['descriptionFactory']['registerDescriptionCallback'](_0x5d2809=>{const {data:_0x4449f1}=_0x5d2809;if(_0x4449f1&&'tableType'==_0x4449f1['key'])switch(_0x4449f1['newValue']){case'layout':return _0x467b5f(c(_0x3a3f15,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x467b5f(c(_0x3a3f15,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=Object['fromEntries'](Oe['map'](_0x3a87ca=>[_0x3a87ca,null]));class $t extends _0x3b35c4{static get['requires'](){return[Ct];}['afterInit'](){const _0x37203e=this['editor'];if(!_0x37203e['plugins']['has']('TableClipboard'))return;const _0x8faaaf=_0x37203e['plugins']['get']('TrackChangesEditing'),_0x330b4c=_0x37203e['plugins']['get']('TableUtils'),_0x57aa62=_0x37203e['plugins']['get'](Ct),_0x5284bf=_0x37203e['plugins']['get']('TableClipboard'),_0x5be424=_0x37203e['plugins']['get']('TableSelection'),_0x38982d=_0x37203e['plugins']['get'](_0x3e542b);_0x57aa62['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x37203e['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x37203e['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1d8cad=null,_0x5eb5e7=!0x1;_0x38982d['on']('contentInsertion',(_0x32fea5,_0x559ded)=>{_0x5eb5e7='paste'===_0x559ded['method'];}),_0x37203e['model']['on']('insertContent',(_0x5648e6,_0x439590)=>{if(!_0x5eb5e7&&null===_0x5be424['getSelectedTableCells']())return;const [_0x593984,_0xbe834b]=_0x439590,_0x239285=_0x439590[_0x439590['length']-0x1];_0x239285&&_0x239285['forceDefaultExecution']||_0x8faaaf['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x10116a,_0x1672a4,_0x7da2c3,_0x150ad0,_0x390a55){if(_0x1672a4&&!_0x1672a4['is']('documentSelection'))return!0x1;const _0x4e9332=_0x390a55['getTableIfOnlyTableInContent'](_0x10116a,_0x7da2c3);if(!_0x4e9332||!He(_0x4e9332,void 0x0,_0x150ad0))return!0x1;const _0x5a7923=_0x150ad0['getSelectionAffectedTableCells'](_0x7da2c3['document']['selection']);if(!_0x5a7923['length'])return!0x1;const _0xb18691=_0x5a7923[0x0]['findAncestor']('table'),_0x47bffc=_0x150ad0['getRowIndexes'](_0x5a7923),_0x2e4319=_0x150ad0['getColumnIndexes'](_0x5a7923),_0x20ec58={'startRow':_0x47bffc['first'],'endRow':_0x47bffc['last'],'startColumn':_0x2e4319['first'],'endColumn':_0x2e4319['last']};return 0x1==_0x5a7923['length']&&(_0x20ec58['endRow']+=_0x150ad0['getRows'](_0x4e9332)-0x1,_0x20ec58['endColumn']+=_0x150ad0['getColumns'](_0x4e9332)-0x1),He(_0xb18691,_0x20ec58,_0x150ad0);}(_0x593984,_0xbe834b,_0x37203e['model'],_0x330b4c,_0x5284bf)&&(_0x5648e6['stop'](),_0x1d8cad={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x37203e['model']['change'](()=>{_0x37203e['model']['insertContent'](_0x439590[0x0],_0x439590[0x1],_0x439590[0x2],{'forceDefaultExecution':!0x0});const _0x26106b=_0x281607(),{rowInsertionRanges:_0x92f554,columnInsertionRanges:_0x39f4a9,insertionRanges:_0x3f6f6a,deletionRanges:_0x56806f,cells:_0x356c02}=_0x1d8cad;_0x92f554['length']&&_0x8faaaf['markMultiRangeInsertion'](_0x92f554,'tablePasteRow',{'tablePasteChainId':_0x26106b}),_0x39f4a9['length']&&_0x8faaaf['markMultiRangeInsertion'](_0x39f4a9,'tablePasteColumn',{'tablePasteChainId':_0x26106b}),_0x3f6f6a['length']&&(_0x8faaaf['markMultiRangeInsertion'](_0x3f6f6a,'tablePaste',{'tablePasteChainId':_0x26106b,'skipNestingCheck':!0x0}),_0x3f6f6a['forEach'](_0x68363f=>_0x68363f['detach']?.())),_0x56806f['length']&&(_0x8faaaf['markMultiRangeDeletion'](_0x56806f,'tablePaste',{'tablePasteChainId':_0x26106b,'skipNestingCheck':!0x0}),_0x56806f['forEach'](_0x2e30ea=>_0x2e30ea['detach']?.()));const _0x52af61=_0x8faaaf['markMultiRangeBlockFormat'](_0x356c02['map'](({element:_0x1bab5e})=>_0x1bab5e),{'formatGroupId':_0x281607()},[],'tablePasteCell',{'tablePasteChainId':_0x26106b});if(_0x52af61){const _0x207dce=_0x52af61['getMarkers'](),_0x98efd=[];for(const {element:_0x1d9410,attributes:_0xef91ba}of _0x356c02){if(!_0xef91ba)continue;const _0x3f6572=_0x37203e['model']['createRangeOn'](_0x1d9410),_0x5de3fd=_0x207dce['find'](_0x46d443=>_0x46d443['getRange']()['isEqual'](_0x3f6572));_0x5de3fd&&_0x98efd['push']([_0x5de3fd['name'],_0xef91ba]);}_0x98efd['length']&&_0x52af61['setAttribute']('markerAttributes',Object['fromEntries'](_0x98efd));}_0x1d8cad=null;}));},{'priority':_0x4512e8['high']+0xa}),_0x38982d['on']('contentInsertion',()=>{_0x5eb5e7=!0x1;},{'priority':'lowest'}),_0x37203e['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x1b9cb7,_0x500d0f)=>{const [_0xd1f559,_0x475c9f,,_0xa60beb]=_0x500d0f;if(!_0x1d8cad)return;_0x1b9cb7['stop']();const _0xd60789=_0xd1f559['cell'],_0x40ef4c=_0x475c9f,_0x203104=De(_0xd60789),_0x479ae5=De(_0x40ef4c);_0x1b9cb7['return']=_0xd60789;let _0x4a5809=null,_0x54cbe1=null;if(_0x479ae5||_0x203104){if(_0x203104&&!_0x479ae5){_0xa60beb['remove'](_0xd60789['getChild'](0x0));for(const _0x91dba8 of Array['from'](_0x40ef4c['getChildren']()))_0xa60beb['insert'](_0x91dba8,_0xd60789,'end');const _0x1c090f=_0x1d8cad['rowInsertionIndexes']['includes'](_0xd1f559['row']),_0x2c4a8e=_0x1d8cad['columnInsertionIndexes']['includes'](_0xd1f559['column']);_0x1c090f||_0x2c4a8e||(_0x4a5809=_0x268add['fromRange'](_0xa60beb['createRangeIn'](_0xd60789)));}else _0x479ae5&&!_0x203104&&(_0x54cbe1=_0xa60beb['createRangeIn'](_0xd60789));}else{const _0x276a23=_0xa60beb['createElement']('tableCellSuggestion'),_0x5e510b=_0xa60beb['createElement']('tableCellSuggestion');_0xa60beb['wrap'](_0xa60beb['createRangeIn'](_0xd60789),_0x5e510b),_0xa60beb['insert'](_0x276a23,_0xd60789,0x0);for(const _0x133d51 of Array['from'](_0x40ef4c['getChildren']()))_0xa60beb['insert'](_0x133d51,_0x276a23,'end');_0x4a5809=_0x268add['fromRange'](_0xa60beb['createRangeOn'](_0x276a23)),_0x54cbe1=_0x268add['fromRange'](_0xa60beb['createRangeOn'](_0x5e510b));}const _0x2e3c0e=Array['from'](_0x40ef4c['getAttributes']())['filter'](([_0xfe6f9b])=>Oe['includes'](_0xfe6f9b));_0x1d8cad['cells']['push']({'element':_0xd60789,'attributes':_0x2e3c0e['length']?Object['fromEntries'](_0x2e3c0e):null}),_0x4a5809&&_0x1d8cad['insertionRanges']['push'](_0x4a5809),_0x54cbe1&&_0x1d8cad['deletionRanges']['push'](_0x54cbe1);},{'priority':'high'}),_0x330b4c['on']('insertColumns',(_0x439203,_0x232f6c)=>{const [_0x80f7d9,_0x1a5e5a={}]=_0x232f6c;if(!_0x1d8cad)return;const _0x4f3df8=_0x1a5e5a['at']||0x0,_0x532e49=_0x1a5e5a['columns']||0x1;_0x1d8cad['columnInsertionIndexes']=new Array(_0x532e49)['fill'](_0x4f3df8)['map']((_0x4a9201,_0x236b5b)=>_0x4a9201+_0x236b5b);for(const {cell:_0x56f41b}of _0x330b4c['createTableWalker'](_0x80f7d9,{'startColumn':_0x4f3df8,'endColumn':_0x4f3df8+_0x532e49-0x1}))_0x1d8cad['columnInsertionRanges']['push'](_0x37203e['model']['createRangeOn'](_0x56f41b));},{'priority':'low'}),_0x330b4c['on']('insertRows',(_0x1cc945,_0x6086e6)=>{const [_0x405dc0,_0x7c9b38={}]=_0x6086e6;if(!_0x1d8cad)return;const _0x49f79b=_0x7c9b38['at']||0x0,_0x379941=_0x7c9b38['rows']||0x1;_0x1d8cad['rowInsertionIndexes']=new Array(_0x379941)['fill'](_0x49f79b)['map']((_0x17e61d,_0x5e3440)=>_0x17e61d+_0x5e3440);for(const {cell:_0xdf2ecd}of _0x330b4c['createTableWalker'](_0x405dc0,{'startRow':_0x49f79b,'endRow':_0x49f79b+_0x379941-0x1}))_0x1d8cad['rowInsertionRanges']['push'](_0x37203e['model']['createRangeOn'](_0xdf2ecd));},{'priority':'low'}),_0x8faaaf['descriptionFactory']['registerDescriptionCallback'](_0x746602=>{if(_0x746602['subType']&&_0x746602['subType']['startsWith']('tablePaste'))return _0x746602['previous']?{}:{'type':'insertion','content':c(_0x37203e['locale'],'*Replace\x20table\x20cells*')};});const _0x3f0d89=()=>!0x1;for(const _0x4252bd of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x8faaaf['_suggestionFactory']['registerCustomCallback']('insertion',_0x4252bd,'join',_0x3f0d89),_0x8faaaf['_suggestionFactory']['registerCustomCallback']('deletion',_0x4252bd,'join',_0x3f0d89),_0x8faaaf['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4252bd,'join',_0x3f0d89);_0x8faaaf['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3f0d89),_0x8faaaf['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x46b291,_0x303b78,_0x43387e)=>{const _0x5bf5d2=_0x46b291['map'](_0x43d2dd=>_0x43d2dd['getContainedElement']())['filter'](_0x1a13fb=>_0x1a13fb),_0x4db24f=new Map(_0x5bf5d2['map'](_0x472383=>[_0x472383,null]));if(_0x1d8cad){for(const {element:_0x2c4188,attributes:_0x46f27e}of _0x1d8cad['cells'])_0x46f27e&&_0x4db24f['set'](_0x2c4188,_0x46f27e);}else{if(_0x43387e&&_0x43387e['markerAttributes'])for(const [_0x2384a2,_0x2552cc]of Object['entries'](_0x43387e['markerAttributes'])){const _0x119eca=_0x37203e['model']['markers']['get'](_0x2384a2),_0x36d8eb=_0x119eca?_0x119eca['getRange']()['getContainedElement']():null;_0x36d8eb&&_0x4db24f['set'](_0x36d8eb,_0x2552cc);}}_0x37203e['model']['change'](_0xf375d9=>{for(const [_0xa9e12b,_0x43e032]of _0x4db24f)_0xf375d9['setAttributes']({...Ue,..._0x43e032},_0xa9e12b);});});const _0x24ba2c=(_0x35e22e,_0x294d50)=>{_0x8faaaf['_suggestionFactory']['registerCustomCallback'](_0x35e22e,'tablePaste',_0x294d50,(_0x547768,_0x392dc5,_0x4f9495)=>{_0x37203e['model']['change'](_0x38a738=>{const _0x5d2ba1=[];for(const _0x1030dd of _0x547768){const _0x2c3d6b=_0x1030dd['start']['nodeAfter'];_0x2c3d6b['is']('element','tableCellSuggestion')&&_0x5d2ba1['push'](_0x2c3d6b);}_0x8faaaf['_suggestionFactory']['getSuggestionCallback'](_0x35e22e,null,_0x294d50)(_0x547768,_0x392dc5,_0x4f9495);for(const _0x1086a6 of _0x5d2ba1)'$graveyard'!=_0x1086a6['root']['rootName']&&_0x38a738['unwrap'](_0x1086a6);});});};_0x24ba2c('insertion','accept'),_0x24ba2c('insertion','discard'),_0x24ba2c('deletion','accept'),_0x24ba2c('deletion','discard'),_0x8faaaf['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x457c46=>{const _0x2239fd=_0x457c46['map'](_0x421a26=>_0x421a26['getContainedElement']()),_0x59a657=_0x2239fd[0x0]['findAncestor']('table'),{minRow:_0x44dad7,maxRow:_0x3af6dd}=_0x57aa62['_getCoordsForCells'](_0x2239fd);_0x330b4c['removeRows'](_0x59a657,{'at':_0x44dad7,'rows':_0x3af6dd-_0x44dad7+0x1});}),_0x8faaaf['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x2efe48=>{const _0x39dd1b=_0x2efe48['map'](_0x2e601f=>_0x2e601f['getContainedElement']()),_0x5b07a3=_0x39dd1b[0x0]['findAncestor']('table'),{minColumn:_0x4f9f53,maxColumn:_0x6bc365}=_0x57aa62['_getCoordsForCells'](_0x39dd1b);_0x330b4c['removeColumns'](_0x5b07a3,{'at':_0x4f9f53,'columns':_0x6bc365-_0x4f9f53+0x1});});const _0x53e176=(_0xa48232,_0x32a254)=>{if(!_0x32a254['subType']||!_0x32a254['subType']['startsWith']('tablePaste'))return;const _0x5b2cc2=_0x32a254['attributes']['tablePasteChainId'],_0x3165e1=_0x8faaaf['getSuggestions']()['filter'](_0x2bcb1c=>_0x2bcb1c['isInContent']&&_0x2bcb1c['attributes']&&_0x2bcb1c['attributes']['tablePasteChainId']==_0x5b2cc2);_0x3165e1['length']&&_0x32a254['getAllAdjacentSuggestions']()['length']!=_0x3165e1['length']&&_0x3165e1['reduce']((_0x5a5f9a,_0x330ba8)=>(_0x5a5f9a['next']=_0x330ba8,_0x330ba8['previous']=_0x5a5f9a,_0x330ba8));};function _0x2d812b(_0x236218,_0x5cd4c5=!0x0){const {id:_0x352caf,authorId:_0x338d6d}=_0x8faaaf['_splitMarkerName'](_0x236218['markerName']),_0x396f76=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x2a707=_0x8faaaf['activeMarkers']['includes'](_0x236218['markerName']);return _0x2a707&&_0x396f76['push']('ck-suggestion-marker--active'),{'classes':_0x396f76,'attributes':{'data-suggestion':_0x352caf,'data-author-id':_0x338d6d},'priority':_0x2a707&&_0x5cd4c5?0xbc2:0xbb8};}_0x8faaaf['on']('suggestionLoaded',_0x53e176,{'priority':'high'}),_0x8faaaf['on']('suggestionUnloaded',_0x53e176,{'priority':'high'}),_0x37203e['model']['document']['registerPostFixer'](()=>{let _0x2240fb=!0x1;const _0x2f36fc=Array['from'](_0x37203e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x8b52c4,data:_0x2e2533}of _0x2f36fc){const {group:_0x206848,type:_0x2a1206,id:_0xd45cec}=_0x8faaaf['_splitMarkerName'](_0x8b52c4);if('suggestion'!=_0x206848||'deletion'!=_0x2a1206||_0x2e2533['oldRange'])continue;if(!_0x8faaaf['hasSuggestion'](_0xd45cec))continue;const _0x2afc3d=_0x8faaaf['getSuggestion'](_0xd45cec)['getRanges'](),_0x5848d5=_0x37203e['plugins']['get']('Users')['me'];for(const _0xf33e68 of _0x8faaaf['getSuggestions']()){if(!_0xf33e68['isInContent']||_0xf33e68['author']!=_0x5848d5)continue;if('formatBlock'!=_0xf33e68['type']||'tablePasteCell'!=_0xf33e68['subType'])continue;if(_0xf33e68['getRanges']()['every'](_0x51d3b6=>_0x2afc3d['some'](_0x1c2356=>_0x1c2356['containsRange'](_0x51d3b6,!0x0)))){for(const _0x3cfcb7 of _0xf33e68['getAllAdjacentSuggestions']())_0x3cfcb7['isInContent']&&(_0x3cfcb7['discard'](),_0x2240fb=!0x0);}}}return _0x2240fb;}),_0x37203e['model']['document']['registerPostFixer'](_0xd97e9a=>{const _0x2f00c4=_0x37203e['commands']['get']('redo');if(!_0x2f00c4||!_0x2f00c4['_createdBatches']['has'](_0xd97e9a['batch']))return!0x1;let _0xeeb57a=!0x1;const _0x32da30=_0x37203e['plugins']['get']('Users')['me'],_0x53f5fd=_0x37203e['model']['document']['differ']['getChanges'](),_0x153b20=Array['from'](_0x37203e['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x285524,data:_0x39e1b8})=>{const {group:_0xb01f95,subType:_0x42bdee,authorId:_0x185864}=_0x8faaaf['_splitMarkerName'](_0x285524);return'suggestion'==_0xb01f95&&'tablePaste'==_0x42bdee&&_0x185864==_0x32da30['id']&&!_0x39e1b8['oldRange'];});for(const _0x205141 of _0x53f5fd){if('insert'!=_0x205141['type']||'tableCellSuggestion'!=_0x205141['name']||0x1!=_0x205141['length'])continue;const _0x1f0a7b=_0xd97e9a['createRange'](_0x205141['position'],_0x205141['position']['getShiftedBy'](0x1));if(!_0x153b20['find'](({data:_0x826e45})=>_0x826e45['newRange']['isEqual'](_0x1f0a7b))){for(const {name:_0x211f4a,data:_0x39f16b}of _0x153b20)if(_0x1f0a7b['containsRange'](_0x39f16b['newRange'])){_0xd97e9a['updateMarker'](_0x211f4a,{'range':_0x1f0a7b}),_0xeeb57a=!0x0;break;}}}return _0xeeb57a;}),_0x37203e['model']['document']['registerPostFixer'](_0x1a934d=>{let _0x393197=!0x1;const _0x2d91c9=_0x37203e['plugins']['get']('Users')['me'],_0x2d73ec=_0x8faaaf['getSuggestions']()['filter'](_0x5677c9=>_0x5677c9['isInContent']&&_0x5677c9['author']==_0x2d91c9),_0x387456=new Set(),_0x4f2c06=new Set();for(const _0x486d8e of _0x2d73ec)if('tablePaste'==_0x486d8e['subType'])for(const _0x2b19ef of _0x486d8e['getMarkers']()){const _0x2fd4b=_0x2b19ef['getRange']()['getContainedElement']();if(_0x2fd4b){if(_0x2fd4b['is']('element','tableCellSuggestion')&&De(_0x2fd4b)){_0x486d8e['removeMarker'](_0x2b19ef['name']),_0x387456['add'](_0x2fd4b),_0x393197=!0x0;const _0x495bab=_0x2fd4b['nextSibling'],_0x37d3a9=_0x2fd4b['previousSibling'],_0x44974b=_0x495bab&&_0x495bab['is']('element','tableCellSuggestion'),_0x523c57=_0x37d3a9&&_0x37d3a9['is']('element','tableCellSuggestion');_0x44974b&&!_0x387456['has'](_0x495bab)&&_0x4f2c06['add'](_0x495bab),_0x523c57&&!_0x387456['has'](_0x37d3a9)&&_0x4f2c06['add'](_0x37d3a9);}else _0x2fd4b['is']('element','paragraph')&&_0x2fd4b['isEmpty']&&(_0x486d8e['removeMarker'](_0x2b19ef['name']),_0x393197=!0x0);}}else{if('tablePasteCell'==_0x486d8e['subType']){if(!_0x486d8e['attributes']||!_0x486d8e['attributes']['tablePasteChainId'])continue;const _0x4db650=_0x486d8e['attributes']['markerAttributes'];if(_0x4db650&&Object['keys'](_0x4db650)['length'])continue;const _0x1aabe2=_0x486d8e['attributes']['tablePasteChainId'];let _0x3b93c6=!0x0,_0x487bef=!0x0;for(const _0x6c98b1 of _0x2d73ec)if(_0x6c98b1['subType']&&_0x6c98b1['subType']['startsWith']('tablePaste')){if(!_0x6c98b1['attributes']['tablePasteChainId']){_0x487bef=!0x1;break;}if(_0x6c98b1['id']!=_0x486d8e['id']&&_0x6c98b1['attributes']['tablePasteChainId']==_0x1aabe2){_0x3b93c6=!0x1;break;}}_0x487bef&&_0x3b93c6&&(_0x486d8e['removeMarkers'](),_0x393197=!0x0);}}for(const _0x3c09c9 of _0x387456)_0x1a934d['remove'](_0x3c09c9);for(const _0x700e8b of _0x4f2c06)_0x1a934d['unwrap'](_0x700e8b);return _0x393197;}),_0x37203e['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x47e9ce=>_0x2d812b(_0x47e9ce),'converterPriority':'high'}),_0x37203e['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x216e01,_0xd2eec6)=>_0xd2eec6['options']['showSuggestionHighlights']?_0x2d812b(_0x216e01,!0x1):null,'converterPriority':'high'});const _0x582cd1=_0x37203e['editing']['view'];this['listenTo'](_0x582cd1['document'],'clipboardOutput',(_0x426d95,_0x5c4091)=>{const _0x590a32=[];for(const _0x2f58a5 of _0x582cd1['createRangeIn'](_0x5c4091['content'])['getItems']())_0x2f58a5['is']('element','suggestion-td')&&_0x590a32['push'](_0x2f58a5);_0x582cd1['change'](_0x1156df=>{for(const _0x158e1b of _0x590a32)_0x1156df['move'](_0x1156df['createRangeIn'](_0x158e1b),_0x1156df['createPositionBefore'](_0x158e1b)),_0x1156df['remove'](_0x158e1b);});});}}function De(_0x54bf21){if(_0x54bf21['isEmpty'])return!0x0;const _0x5b234a=_0x54bf21['getChild'](0x0);return _0x5b234a['is']('element','paragraph')&&_0x5b234a['isEmpty'];}function He(_0x2e4753,_0x8d7c4d={},_0x51fd09){for(const {isAnchor:_0x36c1c9,cellHeight:_0x2b2354,cellWidth:_0x1de758}of _0x51fd09['createTableWalker'](_0x2e4753,{'includeAllSlots':!0x0,..._0x8d7c4d}))if(!_0x36c1c9||0x1!=_0x2b2354||0x1!=_0x1de758)return!0x1;return!0x0;}class Bt extends _0x3b35c4{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x33a943=this['editor']['plugins']['get']('TrackChangesEditing');_0x33a943['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x33a943['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x33a943['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x33a943['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x33a943['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x33a943['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x40d1fe,_0x1bc947){const _0x19dee1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x39ff50=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x2cf1d8=_0x1bc947['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x455ce2=_0x39ff50['getColumnGroupElement'](_0x2cf1d8);let _0x3be535=_0x455ce2?_0x39ff50['getTableColumnsWidths'](_0x455ce2):null,_0x3675e5=_0x2cf1d8['getAttribute']('tableWidth')||null;const _0x3f690c=_0x1bc947['tableWidth']||_0x3675e5,_0x399191=_0x1bc947['columnWidths']||_0x3be535,_0x4d7844=this['editor']['plugins']['get']('Users')['me'];for(const _0x21f3d4 of _0x19dee1['getSuggestions']()){const _0x2d0a63=_0x21f3d4['getContainedElement']();if('resizeTable'===_0x21f3d4['subType']&&_0x2d0a63===_0x2cf1d8){_0x21f3d4['author']!==_0x4d7844&&_0x21f3d4['discard']();const _0x327e2e=_0x21f3d4['data']['commandParams'];_0x3675e5=_0x327e2e[0x0]['tableWidth'],_0x3be535=_0x327e2e[0x0]['columnWidths'];break;}}_0x40d1fe({'table':_0x2cf1d8,'tableWidth':_0x3f690c,'columnWidths':_0x399191}),_0x19dee1['markBlockFormat'](_0x2cf1d8,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3675e5,'columnWidths':_0x3be535}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x16147f){if('formatBlock'!=_0x16147f['type']&&'formatInline'!=_0x16147f['type'])return;const {data:_0x20849e}=_0x16147f;if(_0x20849e&&'resizeTable'===_0x20849e['formatGroupId']){const _0x378c54='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x378c54)};}}}class xt extends _0x3b35c4{['afterInit'](){const _0x4a44ab=this['editor'];_0x4a44ab['plugins']['has']('Template')&&_0x4a44ab['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x3b35c4{['afterInit'](){const _0x5e925e=this['editor'];if(!_0x5e925e['commands']['get']('insertTableOfContents'))return;_0x5e925e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0xc8ad85=_0x5e925e['plugins']['get']('TrackChangesEditing'),_0x3730d8=_0x5e925e['locale'];_0xc8ad85['descriptionFactory']['registerElementLabel']('tableOfContents',_0x33bf97=>c(_0x3730d8,'ELEMENT_TABLE_OF_CONTENTS',_0x33bf97));}}class Rt extends _0x3b35c4{['afterInit'](){const _0x2d87c4=this['editor'];if(!_0x2d87c4['plugins']['has']('Title'))return;const _0x2fe38e=_0x2d87c4['plugins']['get']('TrackChangesEditing');_0x2fe38e['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x2d87c4['locale'],'ELEMENT_TITLE')),_0x2d87c4['model']['document']['registerPostFixer'](_0x554c38=>{let _0x124223=!0x1;const _0x2f2717=Array['from'](_0x2d87c4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x42bad9,data:_0x2a020b}of _0x2f2717){const {group:_0x139a97}=_0x2fe38e['_splitMarkerName'](_0x42bad9);if('suggestion'!==_0x139a97||!_0x2a020b['newRange'])continue;const _0x320121=_0x2a020b['newRange'],_0x4bdf17=_0x320121['end']['nodeBefore'];if(!_0x4bdf17||!_0x4bdf17['is']('element','title-content'))continue;if(!_0x320121['start']['isTouching'](_0x320121['end']))continue;const _0x12e48f=_0x2d87c4['model']['schema']['getNearestSelectionRange'](_0x320121['end'],'forward');if(_0x12e48f&&_0x12e48f['isCollapsed']){const _0x45a3fe=_0x554c38['createRange'](_0x320121['start'],_0x12e48f['start']);_0x45a3fe['isEqual'](_0x320121)||(_0x554c38['updateMarker'](_0x42bad9,{'range':_0x45a3fe}),_0x124223=!0x0);}_0x124223||(_0x554c38['removeMarker'](_0x42bad9),_0x124223=!0x0);}return _0x124223;});}}class Tt extends _0x3b35c4{['afterInit'](){const _0x75606d=this['editor'],_0x3120b6=_0x75606d['plugins']['get']('TrackChangesEditing');_0x75606d['plugins']['has']('Uploadcare')&&(_0x3120b6['enableCommand']('uploadcare'),_0x75606d['plugins']['has']('UploadcareImageEdit')&&(_0x3120b6['enableCommand']('uploadcareImageEdit'),_0x3120b6['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x3120b6['registerBlockAttribute']('uploadcareImageId'),_0x3120b6['descriptionFactory']['registerDescriptionCallback'](_0x5bc650=>{if('attribute'!=_0x5bc650['type'])return;const {data:_0x4c939c}=_0x5bc650;return _0x4c939c&&'uploadcareImageId'==_0x4c939c['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x3b35c4{['afterInit'](){const _0x27ee17=this['editor'],_0x47bce0=_0x27ee17['plugins']['get']('TrackChangesEditing');_0x27ee17['plugins']['has']('UndoEditing')&&(_0x47bce0['enableCommand']('undo'),_0x47bce0['enableCommand']('redo'));}}class Ut extends _0x3b35c4{static get['requires'](){return[Ct];}['afterInit'](){const _0xd57cfb=this['editor'];if(!_0xd57cfb['plugins']['has']('TableCaptionEditing'))return;_0xd57cfb['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x3b35c4{['tableProperties'];['tableCellProperties'];constructor(_0x2455fe){super(_0x2455fe),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 _0x1f4be2=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x4132ad of this['tableProperties'])_0x1f4be2['enableCommand'](_0x4132ad,(_0x317d47,_0x48b8c2)=>{const _0x17ec4b=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x4132ad,[_0x17ec4b],this['tableProperties'],'tableProperties',_0x317d47,_0x48b8c2);});_0x1f4be2['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1f4be2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1f4be2['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x4b0254,_0x38894b)=>this['handleDiscardAction'](this['tableProperties'],_0x4b0254,_0x38894b)),_0x1f4be2['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x19f2c9 of this['tableCellProperties'])_0x1f4be2['enableCommand'](_0x19f2c9,(_0x34df5e,_0x575bd3)=>{const _0x5d647b=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x19f2c9,_0x5d647b,this['tableCellProperties'],'tableCellProperties',_0x34df5e,_0x575bd3);});_0x1f4be2['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1f4be2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1f4be2['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x55c2e4,_0x4930d9)=>this['handleDiscardAction'](this['tableCellProperties'],_0x55c2e4,_0x4930d9)),_0x1f4be2['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x1f4be2['descriptionFactory']['registerDescriptionCallback'](_0x24e6eb=>this['handleSuggestionDescription'](_0x24e6eb));}['_handlePropertyChange'](_0x11ddf6,_0x402d3e,_0x15fa24,_0x599d5c,_0x5491dd,_0x41aa48){const _0x35d6bd=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x41aa48['batch'],()=>{for(const _0x3dc25b of _0x402d3e){if(this['_getSuggestion'](_0x3dc25b,_0x599d5c))_0x5491dd(_0x41aa48);else{const _0x119bfb={};for(const _0x1add9e of _0x15fa24){const _0x43af2e=_0x3dc25b['getAttribute'](_0x1add9e);void 0x0!==_0x43af2e&&(_0x119bfb[_0x1add9e]=_0x43af2e);}_0x5491dd(_0x41aa48),_0x35d6bd['markBlockFormat'](_0x3dc25b,{'commandParams':[_0x119bfb]},[],_0x599d5c);}}});}['handleDiscardAction'](_0x360efd,_0x23cff6,_0x337fe9){const _0x1f0815=_0x23cff6[0x0]['start']['nodeAfter'],_0x324061=_0x337fe9['commandParams'][0x0];this['editor']['model']['change'](_0x40f7d2=>{for(const _0x31c10b of _0x360efd)void 0x0!==_0x324061[_0x31c10b]?_0x40f7d2['setAttribute'](_0x31c10b,_0x324061[_0x31c10b],_0x1f0815):_0x40f7d2['removeAttribute'](_0x31c10b,_0x1f0815);});}['handleSuggestionDescription'](_0x29967d){if(_0x29967d['data'])switch(_0x29967d['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x3c6200,_0x1886da){const _0x14854d=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x1be765 of _0x14854d['getSuggestions']({'skipNotAttached':!0x0})){const _0x1f854b=_0x1be765['getContainedElement']();if(_0x1be765['subType']===_0x1886da&&_0x1f854b===_0x3c6200)return _0x1be765;}return null;}}const u='$elementName';class p extends _0x3b35c4{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x30d22a,_0x3fbc39,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,it,et,nt,st,ot,rt,ct,at,ut,ft,ht,lt,Q,wt,gt,W,Se,mt,pt,kt,bt,yt,St,jt,It,At,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Ot,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x357113){super(_0x357113),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x3b9cac,_0x2807d9,_0x578011,_0x343d70)=>{this['_model']['change'](()=>{for(const _0x4ee1b7 of[..._0x343d70,..._0x578011])this['_model']['markers']['has'](_0x4ee1b7)&&_0x357113['editing']['reconvertMarker'](_0x4ee1b7);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x357113['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x357113['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x357113['config']['get']('trackChanges.trackFormatChanges'),_0x357113['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x357113['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x357113,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x1bffda=this['editor'],_0xedbbb6=(_0x5c0df6,_0x22346b)=>{if('attribute'!=_0x5c0df6)return'ck-suggestion-marker-'+_0x5c0df6;const _0x463593=_0x22346b['split']('|')[0x0];return this['_isBlockAttribute'](_0x463593)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x1bffda['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x5b42df=>{const {id:_0x43db9e,authorId:_0x1b8c19,type:_0x1c1065,subType:_0x258e09}=this['_splitMarkerName'](_0x5b42df['markerName']),_0x492991=['ck-suggestion-marker',_0xedbbb6(_0x1c1065,_0x258e09)];let _0x19688a=0xbb8;return this['activeMarkers']['includes'](_0x5b42df['markerName'])&&(_0x492991['push']('ck-suggestion-marker--active'),_0x19688a=0xbc2),'deletion'==_0x1c1065&&(_0x19688a+=0x5),{'classes':_0x492991,'attributes':{'data-suggestion':_0x43db9e,'data-author-id':_0x1b8c19},'priority':_0x19688a};}}),_0x1bffda['conversion']['for']('dataDowncast')['add'](_0x458907=>{_0x458907['on']('addMarker:suggestion',(_0x214759,_0x2111d5,_0x31ed5d)=>{if(!_0x31ed5d['options']['showSuggestionHighlights'])return;const _0x1d51f5=_0x2111d5['item'];if(!_0x1d51f5)return;const _0x4e2751=_0x31ed5d['mapper']['toViewElement'](_0x1d51f5);_0x1bffda['model']['schema']['isObject'](_0x1d51f5)&&_0x4e2751&&!_0x4e2751['getCustomProperty']('widget')&&_0x4e2751['is']('containerElement')&&_0x4010d0(_0x4e2751,_0x31ed5d['writer']);},{'priority':'high'});}),_0x1bffda['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5da525,_0x856420)=>{if(!_0x856420['options']['showSuggestionHighlights'])return null;const {id:_0x544da6,authorId:_0x243e31,type:_0x52fe67,subType:_0x19643f}=this['_splitMarkerName'](_0x5da525['markerName']);return{'classes':['ck-suggestion-marker',_0xedbbb6(_0x52fe67,_0x19643f)],'priority':0xbb8,'attributes':{'data-suggestion':_0x544da6,'data-author-id':_0x243e31}};}});const _0x16ecbd=({showActiveMarkers:_0x1f803f=!0x0,isAttributeSuggestion:_0x1f97dd=!0x1}={})=>(_0x2a94ff,_0x529fbf,_0x2d9499)=>{if(!_0x529fbf['item'])return;const {id:_0x13e744,authorId:_0x230af9}=this['_splitMarkerName'](_0x529fbf['markerName']);if(_0x1f97dd){const _0x4df9d5=this['_suggestions']['get'](_0x13e744),_0x21d709=this['_getAttributeKey'](_0x4df9d5);if(!this['_isBlockAttribute'](_0x21d709))return;}if(_0x529fbf['item']['is']('selection'))return void _0x2d9499['consumable']['consume'](_0x529fbf['item'],_0x2a94ff['name']);const _0x2c0a9a=_0x2d9499['mapper']['toViewElement'](_0x529fbf['item']);if(_0x529fbf['item']['is']('element')&&_0x1bffda['model']['schema']['isBlock'](_0x529fbf['item'])&&!_0x2c0a9a['getCustomProperty']('addHighlight')){_0x2d9499['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x2c0a9a),_0x2d9499['writer']['setAttribute']('data-suggestion',_0x13e744,_0x2c0a9a),_0x2d9499['writer']['setAttribute']('data-author-id',_0x230af9,_0x2c0a9a),_0x2d9499['mapper']['bindElementToMarker'](_0x2c0a9a,_0x529fbf['markerName']),_0x1f803f&&(this['activeMarkers']['includes'](_0x529fbf['markerName'])?_0x2d9499['writer']['addClass']('ck-suggestion-marker--active',_0x2c0a9a):_0x2d9499['writer']['removeClass']('ck-suggestion-marker--active',_0x2c0a9a));for(const _0x105df4 of _0x1bffda['model']['createRangeIn'](_0x529fbf['item'])['getItems']())_0x2d9499['consumable']['consume'](_0x105df4,_0x2a94ff['name']);_0x2d9499['consumable']['consume'](_0x529fbf['item'],_0x2a94ff['name']);}};_0x1bffda['conversion']['for']('dataDowncast')['add'](_0xd7094=>{_0xd7094['on']('addMarker:suggestion:formatBlock',(_0x447d84,_0x36cfa7,_0x5bd1b0)=>{_0x5bd1b0['options']['showSuggestionHighlights']&&_0x16ecbd({'showActiveMarkers':!0x1})(_0x447d84,_0x36cfa7,_0x5bd1b0);},{'priority':'highest'});}),_0x1bffda['conversion']['for']('dataDowncast')['add'](_0x26aa5b=>{_0x26aa5b['on']('addMarker:suggestion:attribute',(_0x19bfed,_0xd1e928,_0xfc9906)=>{_0xfc9906['options']['showSuggestionHighlights']&&_0x16ecbd({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x19bfed,_0xd1e928,_0xfc9906);},{'priority':'highest'});}),_0x1bffda['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x523996,_0x1448a7)=>{if(_0x1448a7['options']['showSuggestionHighlights']){const {id:_0x5e9916,authorId:_0x86662a}=this['_splitMarkerName'](_0x523996);return _0x523996['includes'](':split')||_0x523996['includes'](':merge')?{'group':'suggestion','name':_0x523996['substr'](0xb),'attributes':{'data-suggestion':_0x5e9916,'data-author-id':_0x86662a}}:null;}return{'group':'suggestion','name':_0x523996['substr'](0xb)};}}),_0x1bffda['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xd72d24,{writer:_0x299ac2})=>{let _0x2eda77='suggestion:'+_0xd72d24['getAttribute']('suggestion-type')+':'+_0xd72d24['getAttribute']('id');return _0xd72d24['getAttribute']('marker-count')&&(_0x2eda77+=':'+_0xd72d24['getAttribute']('marker-count')),_0x299ac2['createElement']('$marker',{'data-name':_0x2eda77});}}),_0x1bffda['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1bffda['conversion']['for']('editingDowncast')['add'](_0x12b823=>{_0x12b823['on']('addMarker:suggestion:formatBlock',_0x16ecbd(),{'priority':'high'});}),_0x1bffda['conversion']['for']('editingDowncast')['add'](_0x5dd819=>{_0x5dd819['on']('addMarker:suggestion:attribute',_0x16ecbd({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x1bffda['conversion']['for']('editingDowncast')['add'](_0x293496=>{_0x293496['on']('removeMarker:suggestion:formatBlock',(_0x323d9f,_0x157690,_0x3c209c)=>{const _0x5dad9c=_0x3c209c['mapper']['markerNameToElements'](_0x157690['markerName']);if(_0x5dad9c){for(const _0x903d36 of _0x5dad9c)_0x903d36['getCustomProperty']('addHighlight')||(_0x3c209c['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x903d36),_0x3c209c['writer']['removeAttribute']('data-suggestion',_0x903d36),_0x3c209c['writer']['removeAttribute']('data-author-id',_0x903d36),_0x3c209c['mapper']['unbindElementFromMarkerName'](_0x903d36,_0x157690['markerName']));}},{'priority':'high'});}),_0x1bffda['conversion']['for']('editingDowncast')['add'](_0x14d6f6=>{_0x14d6f6['on']('removeMarker:suggestion:attribute',(_0x1d3a83,_0x4a0fde,_0x3d0259)=>{const _0x2223ab=_0x3d0259['mapper']['markerNameToElements'](_0x4a0fde['markerName']);if(!_0x2223ab)return;const {id:_0x46da5a}=this['_splitMarkerName'](_0x4a0fde['markerName']),_0x2b930f=this['_suggestions']['get'](_0x46da5a),_0x2e9c27=this['_getAttributeKey'](_0x2b930f);if(this['_isBlockAttribute'](_0x2e9c27)){for(const _0x4c121e of _0x2223ab)_0x4c121e['getCustomProperty']('addHighlight')||(_0x3d0259['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4c121e),_0x3d0259['writer']['removeAttribute']('data-suggestion',_0x4c121e),_0x3d0259['writer']['removeAttribute']('data-author-id',_0x4c121e),_0x3d0259['mapper']['unbindElementFromMarkerName'](_0x4c121e,_0x4a0fde['markerName']));}},{'priority':'high'});}),_0x1bffda['model']['document']['registerPostFixer'](_0xda36be=>{let _0x9e6196=!0x1;const _0x41929b=Array['from'](_0x1bffda['model']['document']['differ']['getChangedMarkers']()),_0x1a252e=new Set();for(const {name:_0x476312,data:_0x172f89}of _0x41929b){const {group:_0x1bd429,type:_0x5075fd,subType:_0x27d370,id:_0x2863fa}=this['_splitMarkerName'](_0x476312);if('suggestion'!==_0x1bd429)continue;const _0xc880b=this['_suggestions']['get'](_0x2863fa);if(null!=_0x172f89['newRange']){'formatInline'==_0x5075fd&&(_0x9e6196=_0x9e6196||Jt(_0x172f89['newRange'],_0x476312,_0xda36be,_0x1bffda['model']['schema']));const _0x4b1887='attribute'==_0x5075fd&&this['_isBlockAttribute'](_0x27d370['split']('|')[0x0]);if(_0x172f89['newRange']['isCollapsed']||'$graveyard'==_0x172f89['newRange']['root']['rootName']||'formatBlock'==_0x5075fd&&!Ht(_0x172f89['newRange'])||_0x4b1887&&!Ht(_0x172f89['newRange'])||'deletion'==_0x5075fd&&!(!Lt(_0x400717=_0x172f89['newRange'])&&!function(_0x2b7539){return _0x2b7539['start']['parent']==_0x2b7539['end']['nodeBefore']&&_0x2b7539['start']['isAtEnd'];}(_0x400717)))_0xda36be['removeMarker'](_0x476312),_0x9e6196=!0x0;else{if(!_0xc880b||!_0xc880b['isInContent'])continue;if(_0x172f89['newRange']&&_0x172f89['oldRange']&&_0x172f89['newRange']['isEqual'](_0x172f89['oldRange']))continue;_0x1a252e['add'](_0xc880b);}}}var _0x400717;return _0x1a252e['size']>0x0&&(_0x9e6196=!!this['_joinWithAdjacentSuggestions'](_0x1a252e)||_0x9e6196),_0x9e6196;}),_0x1bffda['model']['document']['registerPostFixer'](_0x5dae9d=>{let _0x1343c1=!0x1;for(const _0x26dae6 of _0x1bffda['model']['document']['differ']['getChanges']())if('insert'==_0x26dae6['type'])for(const _0x42b0dc of this['_suggestions']['values']()){if(_0x42b0dc['isMultiRange']||!_0x42b0dc['isInContent'])continue;const _0x8d069d='formatBlock'==_0x42b0dc['type'],_0x5a33ca=this['_getAttributeKey'](_0x42b0dc),_0x1e7b79=_0x5a33ca&&this['_isBlockAttribute'](_0x5a33ca);if(!_0x8d069d&&!_0x1e7b79)continue;const _0x16de7a=_0x42b0dc['getFirstRange']();if(_0x16de7a['start']['parent']!=_0x16de7a['end']['parent']&&!_0x16de7a['end']['isAtEnd']){const _0x5d80c8=_0x1bffda['model']['createPositionAt'](_0x16de7a['start']['nodeAfter'],'end'),_0x28070b=_0x1bffda['model']['createRange'](_0x16de7a['start'],_0x5d80c8);_0x5dae9d['updateMarker'](_0x42b0dc['getFirstMarker'](),{'range':_0x28070b}),_0x1343c1=!0x0;}}return _0x1343c1;}),_0x1bffda['model']['document']['registerPostFixer'](_0x5bce18=>this['_processAttributeChanges'](_0x5bce18)),_0x1bffda['model']['document']['registerPostFixer'](_0x3ba7ac=>!_0x3ba7ac['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x3ba7ac)),_0x1bffda['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1bffda['model']['document']['on']('change:data',(_0x38452d,_0xafbc1c)=>{if(!_0xafbc1c['isLocal']||_0xafbc1c['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x34b460=_0x1bffda['model']['document']['differ']['getChanges']();if(0x0==_0x34b460['length'])return;const _0x22d6fc=[],_0x4b2fdc=_0x34b460['filter'](_0x4cb552=>'attribute'==_0x4cb552['type']),_0x7bfa25=_0x34b460['filter'](_0x1e27e4=>'insert'==_0x1e27e4['type']&&'$text'!=_0x1e27e4['name']);for(const _0x2afe68 of _0x4b2fdc)this['_isRegisteredAttribute'](_0x2afe68['attributeKey'])&&_0x22d6fc['push']({'key':_0x2afe68['attributeKey'],'newValue':_0x2afe68['attributeNewValue'],'oldValue':_0x2afe68['attributeOldValue'],'range':qt(_0x2afe68['range'],_0x1bffda['model'])});for(const _0x53f034 of _0x7bfa25){if('rename'!=_0x53f034['action']&&'refresh'!=_0x53f034['action'])continue;const _0x46c542=zt(_0x53f034['position']['nodeAfter'],_0x1bffda['model']),_0xf6e559=_0x53f034['before'];'rename'==_0x53f034['action']&&_0x22d6fc['push']({'key':u,'newValue':_0x53f034['name'],'oldValue':_0xf6e559['name'],'range':_0x46c542});for(const [_0xcaf232,_0x392fa2]of _0xf6e559['attributes']){if(!this['_isRegisteredAttribute'](_0xcaf232))continue;const _0x410d5a=_0x53f034['attributes']['get'](_0xcaf232);_0x392fa2!==_0x410d5a&&_0x22d6fc['push']({'key':_0xcaf232,'newValue':_0x410d5a,'oldValue':_0x392fa2,'range':_0x46c542});}for(const [_0x57f2c8,_0x24be3c]of _0x53f034['attributes'])this['_isRegisteredAttribute'](_0x57f2c8)&&(_0xf6e559['attributes']['has'](_0x57f2c8)||_0x22d6fc['push']({'key':_0x57f2c8,'newValue':_0x24be3c,'oldValue':null,'range':_0x46c542}));}0x0!=_0x22d6fc['length']&&_0x1bffda['model']['enqueueChange'](_0xafbc1c,_0x4792e8=>{const _0x508379=_0x281607();for(const {range:_0x42459,key:_0x254d64,oldValue:_0xc44577,newValue:_0xf09bc1}of _0x22d6fc)this['markAttributeChange'](_0x42459,_0x254d64,_0xc44577,_0xf09bc1,{'groupId':_0x508379});this['_reduceExistingSuggestions'](_0x4792e8,_0x22d6fc);});},{'priority':'lowest'}),_0x1bffda['model']['markers']['on']('update:suggestion',(_0x4bc9c4,_0xe0b7f8,_0x4e8247)=>{if(null==_0x4e8247){const {id:_0x15443b}=this['_splitMarkerName'](_0xe0b7f8['name']),_0x5c9afe=this['_suggestions']['get'](_0x15443b);_0x5c9afe&&_0x5c9afe['addMarkerName'](_0xe0b7f8['name']);}}),_0x1bffda['model']['document']['on']('change:data',()=>{const _0x25ab33=Array['from'](_0x1bffda['model']['document']['differ']['getChangedMarkers']())['filter'](_0x422bdb=>'suggestion'===this['_splitMarkerName'](_0x422bdb['name'])['group']);if(0x0===_0x25ab33['length'])return;_0x25ab33['sort']((_0x13c7d2,_0x2a8805)=>{const _0x3f8ac1=_0x13c7d2['data']['oldRange'],_0x9a92fb=_0x2a8805['data']['oldRange'];return null===_0x3f8ac1&&null===_0x9a92fb?0x0:null===_0x3f8ac1&&null!==_0x9a92fb?-0x1:null!==_0x3f8ac1&&null===_0x9a92fb?0x1:_0x3f8ac1['start']['isBefore'](_0x9a92fb['start'])?-0x1:0x1;});const _0x889023=new Set(),_0x21ffa2=new Set();for(const {name:_0x34232b,data:_0x491634}of _0x25ab33){const {id:_0x2f2dd8}=this['_splitMarkerName'](_0x34232b);if(null===_0x491634['oldRange']){const _0x42aa50=this['_handleNewSuggestionMarker'](_0x34232b);_0x21ffa2['add'](_0x42aa50);}else{const _0x81775e=this['_suggestions']['get'](_0x2f2dd8);null!==_0x491634['newRange']||_0x81775e['isInContent']?(_0x889023['add'](_0x81775e['head']),_0x21ffa2['add'](_0x81775e)):this['_removeSuggestion'](_0x81775e);}}_0x21ffa2['size']>0x0&&this['_refreshSuggestionsChain'](_0x21ffa2);for(const _0x391a2e of _0x889023)this['fire']('suggestionChanged',_0x391a2e);}),_0x1bffda['model']['on']('applyOperation',(_0x28ea97,_0xf4047d)=>{const _0x3096bf=_0xf4047d[0x0];if(!this['_suggestions']['size'])return;if(!_0x3096bf['isDocumentOperation'])return;if(_0x3096bf['batch']['isUndo']||!_0x3096bf['batch']['isLocal'])return;let _0x213a0c,_0x35f5da;switch(_0x3096bf['type']){case'insert':_0x213a0c=_0x1bffda['model']['createPositionAt'](_0x3096bf['position']),_0x35f5da=_0x213a0c['getShiftedBy'](_0x3096bf['howMany']);break;case'split':_0x213a0c=_0x1bffda['model']['createPositionAt'](_0x3096bf['splitPosition']),_0x35f5da=_0x1bffda['model']['createPositionAt'](_0x3096bf['moveTargetPosition']);break;case'move':_0x213a0c=_0x1bffda['model']['createPositionAt'](_0x3096bf['targetPosition']),_0x35f5da=_0x213a0c['getShiftedBy'](_0x3096bf['howMany']);break;default:return;}const _0x59f33d=_0x1bffda['model']['createRange'](_0x213a0c,_0x35f5da);_0x1bffda['model']['change'](()=>{for(const {suggestion:_0x5907dd,meta:_0x27c52d}of this['_findSuggestions'](_0x59f33d)){if(_0x5907dd['isMultiRange'])continue;if('formatInline'==_0x5907dd['type'])continue;const _0xbe70ec=this['_getAttributeKey'](_0x5907dd);if(_0xbe70ec&&this['_isBlockAttribute'](_0xbe70ec)&&'split'!=_0x3096bf['type'])continue;const _0x320e6e=_0x5907dd['data']&&_0x5907dd['data']['multipleBlocks'];('formatBlock'!=_0x5907dd['type']||'split'==_0x3096bf['type']&&!_0x320e6e)&&(_0x27c52d['containsRangeInObject']||'insertion'==_0x5907dd['type']&&_0x27c52d['isOwn']||_0x5907dd['getFirstRange']()['containsRange'](_0x59f33d)&&this['_breakSuggestionMarker'](_0x5907dd,_0x213a0c,_0x35f5da));}});},{'priority':'lowest'}),_0x1bffda['model']['on']('deleteContent',(_0x4b6024,_0x36f799)=>{const _0x2eada6=_0x36f799[0x0],_0x4e6037=_0x36f799[0x1];if(_0x4e6037&&_0x4e6037['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2eada6['isCollapsed'])return;const _0xf82108=_0x1bffda['model']['schema'],{start:_0x516020,end:_0x4ce38e}=_0x2eada6['getFirstRange'](),_0x13ce46=_0x516020['nodeAfter']&&_0xf82108['isLimit'](_0x516020['nodeAfter'])?null:_0xf82108['getNearestSelectionRange'](_0x516020,'forward'),_0x1b8886=_0x4ce38e['nodeBefore']&&_0xf82108['isLimit'](_0x4ce38e['nodeBefore'])?null:_0xf82108['getNearestSelectionRange'](_0x4ce38e,'backward'),_0x5407a6=_0x1bffda['model']['createRange'](_0x13ce46?_0x13ce46['start']:_0x516020,_0x1b8886?_0x1b8886['end']:_0x4ce38e);_0x1bffda['model']['change'](_0x1c4cd3=>{this['markDeletion'](_0x5407a6);const _0x42dd19=_0x1bffda['model']['schema']['getNearestSelectionRange'](_0x5407a6['start']);_0x2eada6['is']('documentSelection')?_0x1c4cd3['setSelection'](_0x42dd19):_0x2eada6['setTo'](_0x42dd19);}),_0x4b6024['stop']();},{'priority':_0x4512e8['normal']+0xa}),_0x1bffda['model']['on']('insertContent',(_0x1b1379,_0xb285ff)=>{const _0x1c4fb3=_0xb285ff[_0xb285ff['length']-0x1];_0x1c4fb3&&_0x1c4fb3['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1bffda['model']['change'](()=>{let _0x30b889=_0x1bffda['model']['insertContent'](_0xb285ff[0x0],_0xb285ff[0x1],_0xb285ff[0x2],{'forceDefaultExecution':!0x0});if(!_0x30b889)return;_0x1b1379['return']=_0x30b889['clone']();const _0xf4f459=_0x30b889['end']['nodeBefore'],_0x3845c1=_0x1bffda['model']['schema'];_0xf4f459&&_0x3845c1['isBlock'](_0xf4f459)&&!_0x3845c1['isObject'](_0xf4f459)&&(_0x30b889=_0x1bffda['model']['createRange'](_0x30b889['start'],_0x1bffda['model']['createPositionAt'](_0xf4f459,'end'))),this['markInsertion'](_0x30b889);}),_0x1b1379['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x341a2c=new x(_0x1bffda,this['_suggestions']);_0x1bffda['commands']['add']('acceptSuggestion',_0x341a2c),this['enableCommand']('acceptSuggestion');const _0x177215=new O(_0x1bffda,this['_suggestions']);_0x1bffda['commands']['add']('discardSuggestion',_0x177215),this['enableCommand']('discardSuggestion'),_0x1bffda['commands']['add']('acceptAllSuggestions',new R(_0x1bffda,_0x341a2c,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1bffda['commands']['add']('discardAllSuggestions',new R(_0x1bffda,_0x177215,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1bffda['commands']['add']('acceptSelectedSuggestions',new E(_0x1bffda,_0x341a2c,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1bffda['commands']['add']('discardSelectedSuggestions',new E(_0x1bffda,_0x177215,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x27f02c=_0x1bffda['plugins']['get']('CommentsRepository');this['listenTo'](_0x27f02c,'addComment',(_0x4e0793,{threadId:_0x561f96})=>{const _0x19bda4=this['_suggestions']['get'](_0x561f96);_0x19bda4&&_0x19bda4['commentThread']&&0x1===_0x19bda4['commentThread']['length']&&this['_updateSuggestionData'](_0x561f96,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x27f02c,'removeComment',(_0x149bbe,{threadId:_0x569df2})=>{const _0x429655=this['_suggestions']['get'](_0x569df2);_0x429655&&_0x429655['commentThread']&&!_0x429655['commentThread']['length']&&this['_updateSuggestionData'](_0x569df2,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x56c11d){const _0x4ebb59=_0x59c5d8([0x57,0x4f,0x76,0x53,0x73,0x70,0x78,0x52,0x41,0x55,0x59,0x6b,0x46,0x67,0x4d,0x69,0x71,0x4b,0x61,0x36,0x6a,0x62,0x79,0x6f,0x65,0x7a,0x35,0x39,0x5a,0x4a,0x6e,0x33,0x43,0x49,0x58,0x4c,0x45,0x74,0x75,0x64,0x44,0x68,0x6d,0x38,0x50,0x54,0x51,0x48,0x32,0x56,0x30,0x63,0x72,0x31,0x77,0x6c,0x37,0x34,0x42,0x66,0x4e,0x47]),_0x3c9805=0x6f51f477,_0x2c0bdb=0x6f569e9f^_0x3c9805,_0x14ac42=window[_0x59c5d8([0x44,0x61,0x74,0x65])][_0x59c5d8([0x6e,0x6f,0x77])](),_0x1ce7e7=_0x56c11d[_0x59c5d8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2b30d5=new window[(_0x59c5d8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21c9db=>{_0x1ce7e7[_0x59c5d8([0x6f,0x6e,0x63,0x65])](_0x59c5d8([0x72,0x65,0x61,0x64,0x79]),_0x21c9db);}),_0x469c9f={[_0x59c5d8([0x6b,0x74,0x79])]:_0x59c5d8([0x45,0x43]),[_0x59c5d8([0x75,0x73,0x65])]:_0x59c5d8([0x73,0x69,0x67]),[_0x59c5d8([0x63,0x72,0x76])]:_0x59c5d8([0x50,0x2d,0x32,0x35,0x36]),[_0x59c5d8([0x78])]:_0x59c5d8([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]),[_0x59c5d8([0x79])]:_0x59c5d8([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]),[_0x59c5d8([0x61,0x6c,0x67])]:_0x59c5d8([0x45,0x53,0x32,0x35,0x36])},_0x2a80f1=_0x1ce7e7[_0x59c5d8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x59c5d8([0x67,0x65,0x74])](_0x59c5d8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xbcf59b(){let _0x2a6ce5,_0x10c2d6=null,_0x9b670b=null;try{if(_0x2a80f1==_0x59c5d8([0x47,0x50,0x4c]))return _0x59c5d8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2a6ce5=_0x73e850(),!_0x2a6ce5)return _0x59c5d8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2a6ce5[_0x59c5d8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x9b670b=_0x4b2296(_0x2a6ce5[_0x59c5d8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2a6ce5[_0x59c5d8([0x6a,0x74,0x69])])),await _0x4bb856()?_0x6312b1()?_0x2356b2()?_0x59c5d8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x34566f()?(_0x2a6ce5[_0x59c5d8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x59c5d8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x10c2d6=_0x5e7ff9(_0x59c5d8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2a6ce5[_0x59c5d8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x59c5d8([0x74,0x72,0x69,0x61,0x6c])&&(_0x10c2d6=_0x5e7ff9(_0x59c5d8([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4b5f83()):_0x59c5d8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x59c5d8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x59c5d8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x59c5d8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2356b2(){const _0x5168f0=[_0x59c5d8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x59c5d8([0x74,0x72,0x69,0x61,0x6c])][_0x59c5d8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2a6ce5[_0x59c5d8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x14ac42/0x3e8:0xe10*_0x2c0bdb;return _0x2a6ce5[_0x59c5d8([0x65,0x78,0x70])]<_0x5168f0;}function _0x6312b1(){const _0x7a456=_0x2a6ce5[_0x59c5d8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x7a456)return!0x1;if(_0x7a456[_0x59c5d8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59c5d8([0x2a])))return!0x0;if(_0x7a456[_0x59c5d8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59c5d8([0x54,0x43])))return!0x0;if(_0x7a456[_0x59c5d8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59c5d8([0x52,0x54,0x43]))){if(_0x34606c())return!0x0;if(_0x36bb4c()||_0x5d4d52())return!0x0;}return!0x1;}function _0x34566f(){const _0x5946f1=_0x2a6ce5[_0x59c5d8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5946f1||0x0==_0x5946f1[_0x59c5d8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xc090c}=new URL(window[_0x59c5d8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5946f1[_0x59c5d8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc090c))return!0x0;const _0x45e3a8=_0xc090c[_0x59c5d8([0x73,0x70,0x6c,0x69,0x74])](_0x59c5d8([0x2e]));return _0x5946f1[_0x59c5d8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x104249=>_0x104249[_0x59c5d8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59c5d8([0x2a])))[_0x59c5d8([0x6d,0x61,0x70])](_0x4e9600=>_0x4e9600[_0x59c5d8([0x73,0x70,0x6c,0x69,0x74])](_0x59c5d8([0x2e])))[_0x59c5d8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5032ce=>_0x5032ce[_0x59c5d8([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x45e3a8[_0x59c5d8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x59c5d8([0x6d,0x61,0x70])](_0x53720c=>Array(_0x45e3a8[_0x59c5d8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x53720c[_0x59c5d8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x59c5d8([0x66,0x69,0x6c,0x6c])](_0x53720c[0x0]===_0x59c5d8([0x2a])?_0x59c5d8([0x2a]):'')[_0x59c5d8([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x53720c))[_0x59c5d8([0x73,0x6f,0x6d,0x65])](_0x3d1383=>_0x45e3a8[_0x59c5d8([0x65,0x76,0x65,0x72,0x79])]((_0x5c308c,_0x8eb92f)=>_0x3d1383[_0x8eb92f]===_0x5c308c||_0x3d1383[_0x8eb92f]===_0x59c5d8([0x2a])));}function _0x4b5f83(){return _0x10c2d6&&_0x9b670b?new window[(_0x59c5d8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3380d9,_0x4be50a)=>{_0x10c2d6[_0x59c5d8([0x74,0x68,0x65,0x6e])](_0x3380d9,_0x4be50a),_0x9b670b[_0x59c5d8([0x74,0x68,0x65,0x6e])](_0x52ef1b=>{_0x52ef1b!=_0x59c5d8([0x56,0x61,0x6c,0x69,0x64])&&_0x3380d9(_0x52ef1b);},_0x4be50a);}):_0x10c2d6||_0x9b670b||_0x59c5d8([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4b2296(_0x44ef1b,_0x2918de){return new window[(_0x59c5d8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x6114ee=>{if(_0x499683())return _0x6114ee(_0x59c5d8([0x56,0x61,0x6c,0x69,0x64]));_0x23102f(),_0x1ce7e7[_0x59c5d8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x59c5d8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x50c811=!0x1;const _0x1fffcd=_0x281607();function _0x24b746(_0x10192e){return!!_0x10192e&&(typeof _0x10192e===_0x59c5d8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x10192e===_0x59c5d8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x10192e[_0x59c5d8([0x74,0x68,0x65,0x6e])]===_0x59c5d8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x10192e[_0x59c5d8([0x63,0x61,0x74,0x63,0x68])]===_0x59c5d8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3651c8(_0x4d44a2){_0x367d55(_0x4d44a2)[_0x59c5d8([0x74,0x68,0x65,0x6e])](_0x309fa3=>{if(!_0x309fa3||_0x309fa3[_0x59c5d8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x59c5d8([0x6f,0x6b]))return _0x59c5d8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xc8fda8(_0x479bb0(_0x1fffcd+_0x2918de))!=_0x309fa3[_0x59c5d8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x59c5d8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x59c5d8([0x56,0x61,0x6c,0x69,0x64]);})[_0x59c5d8([0x74,0x68,0x65,0x6e])](_0x5bed8e=>(_0x478f7c(),_0x5bed8e),()=>{const _0x1e28c6=_0x48b2b9();return null==_0x1e28c6?(_0x478f7c(),_0x59c5d8([0x56,0x61,0x6c,0x69,0x64])):_0x59c5d8(_0x14ac42-_0x1e28c6>(0x4b5d7077^_0x3c9805)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x59c5d8([0x74,0x68,0x65,0x6e])](_0x6114ee)[_0x59c5d8([0x63,0x61,0x74,0x63,0x68])](()=>{_0x6114ee(_0x59c5d8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xcc742b=0x6f671af7^_0x3c9805;function _0x478f7c(){const _0x5c30ab=_0x59c5d8([0x6c,0x6c,0x63,0x74,0x2d])+_0xc8fda8(_0x479bb0(_0x44ef1b)),_0x4438c3=_0x2dba27(_0xc8fda8(window[_0x59c5d8([0x4d,0x61,0x74,0x68])][_0x59c5d8([0x63,0x65,0x69,0x6c])](_0x14ac42/_0xcc742b)));window[_0x59c5d8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x59c5d8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5c30ab,_0x4438c3);}function _0x48b2b9(){const _0x51198b=_0x59c5d8([0x6c,0x6c,0x63,0x74,0x2d])+_0xc8fda8(_0x479bb0(_0x44ef1b)),_0x9e047a=window[_0x59c5d8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x59c5d8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x51198b);return _0x9e047a?window[_0x59c5d8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2dba27(_0x9e047a),0x10)*_0xcc742b:null;}function _0x367d55(_0x504d6d){return new window[(_0x59c5d8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x37eeb6,_0x14e6fc)=>{_0x504d6d[_0x59c5d8([0x74,0x68,0x65,0x6e])](_0x37eeb6,_0x14e6fc),window[_0x59c5d8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x14e6fc,0x6f5020b7^_0x3c9805);});}}_0x1ce7e7[_0x59c5d8([0x6f,0x6e])](_0x59c5d8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1222a3,_0x26f4a9)=>{if(_0x26f4a9[0x0]!=_0x44ef1b)return _0x6114ee(_0x59c5d8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x26f4a9[0x1]={..._0x26f4a9[0x1],[_0x59c5d8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1fffcd};},{[_0x59c5d8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x59c5d8([0x68,0x69,0x67,0x68])}),_0x1ce7e7[_0x59c5d8([0x6f,0x6e])](_0x59c5d8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x35eda6=>{_0x24b746(_0x35eda6[_0x59c5d8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x50c811=!0x0,_0x3651c8(_0x35eda6[_0x59c5d8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x59c5d8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x59c5d8([0x6c,0x6f,0x77])}),_0x2b30d5[_0x59c5d8([0x74,0x68,0x65,0x6e])](()=>{_0x50c811||_0x6114ee(_0x59c5d8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x499683(){return _0x1ce7e7[_0x59c5d8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x59c5d8([0x76,0x69,0x65,0x77])][_0x59c5d8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x59c5d8([0x61,0x75,0x74,0x6f]);}function _0x23102f(){_0x1ce7e7[_0x59c5d8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x59c5d8([0x76,0x69,0x65,0x77])][_0x59c5d8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x59c5d8([0x61,0x75,0x74,0x6f]);}}function _0x5e7ff9(_0xef0af1){const _0xb0958c=[new window[(_0x59c5d8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x123fcf=>setTimeout(_0x123fcf,0x6f58cabb^_0x3c9805)),_0x2b30d5[_0x59c5d8([0x74,0x68,0x65,0x6e])](()=>new window[(_0x59c5d8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x42a3a2=>{let _0x24cc2e=0x0;_0x1ce7e7[_0x59c5d8([0x6d,0x6f,0x64,0x65,0x6c])][_0x59c5d8([0x6f,0x6e])](_0x59c5d8([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x56eba2,_0x25b6ff)=>{_0x25b6ff[0x0][_0x59c5d8([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x24cc2e++,_0x24cc2e==(0x6f51f58f^_0x3c9805)&&(_0x42a3a2(),_0x56eba2[_0x59c5d8([0x6f,0x66,0x66])]());});}))];return window[_0x59c5d8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x59c5d8([0x72,0x61,0x63,0x65])](_0xb0958c)[_0x59c5d8([0x74,0x68,0x65,0x6e])](()=>_0xef0af1);}async function _0x5b43f6(){await _0x2b30d5,_0x1ce7e7[_0x59c5d8([0x6d,0x6f,0x64,0x65,0x6c])][_0x59c5d8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3d03f7,_0x1ce7e7[_0x59c5d8([0x6d,0x6f,0x64,0x65,0x6c])][_0x59c5d8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3d03f7,_0x1ce7e7[_0x59c5d8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x59c5d8([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x34606c(){return _0x5589a7(_0x59c5d8([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x465431(_0x59c5d8([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x59c5d8([0x73,0x74,0x61,0x74,0x65])]==_0x59c5d8([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x36bb4c(){return _0x5589a7(_0x59c5d8([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 _0x5d4d52(){return _0x5589a7(_0x59c5d8([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x14db32(_0x2dab45){const _0x54590f=_0x4ac8ab();_0x1ce7e7[_0x54590f]=_0x59c5d8([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2dab45,_0x2dab45!=_0x59c5d8([0x56,0x61,0x6c,0x69,0x64])&&_0x5b43f6();}function _0x4ac8ab(){const _0xbe5555=window[_0x59c5d8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x59c5d8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x59c5d8([0x6e,0x6f,0x77])]())[_0x59c5d8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x59c5d8([0x2e]),'');let _0x272435=_0x59c5d8([0x57]);for(let _0x417569=0x0;_0x417569<_0xbe5555[_0x59c5d8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x417569+=0x2){let _0x246ddc=window[_0x59c5d8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xbe5555[_0x59c5d8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x417569,_0x417569+0x2));_0x246ddc>=_0x4ebb59[_0x59c5d8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x246ddc-=_0x4ebb59[_0x59c5d8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x272435+=_0x4ebb59[_0x246ddc];}return _0x272435;}function _0x73e850(){const _0x4b94c2=_0x2a80f1[_0x59c5d8([0x73,0x70,0x6c,0x69,0x74])](_0x59c5d8([0x2e]));if(0x3!=_0x4b94c2[_0x59c5d8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xc66e39(_0x4b94c2[0x1]);function _0xc66e39(_0x11be67){const _0x69ed94=_0x6ef116(_0x11be67);return _0x69ed94&&_0x5e252c()?_0x69ed94:null;function _0x5e252c(){const _0x669b79=_0x69ed94[_0x59c5d8([0x6a,0x74,0x69])],_0x3fb20b=window[_0x59c5d8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x669b79[_0x59c5d8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x669b79[_0x59c5d8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x306bde={..._0x69ed94,[_0x59c5d8([0x6a,0x74,0x69])]:_0x669b79[_0x59c5d8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x669b79[_0x59c5d8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x306bde[_0x59c5d8([0x76,0x63])],_0x479bb0(_0x306bde)==_0x3fb20b;}}}async function _0x4bb856(){let _0x2fff0c=!0x0;try{const _0x3a1804=_0x2a80f1[_0x59c5d8([0x73,0x70,0x6c,0x69,0x74])](_0x59c5d8([0x2e])),[_0x4773ee,_0x180ed6,_0x3e6881]=_0x3a1804;return _0x3dcbf4(_0x4773ee),await _0x346135(_0x4773ee,_0x180ed6,_0x3e6881),_0x2fff0c;}catch{return!0x1;}function _0x3dcbf4(_0x43d69c){const _0x23d982=_0x6ef116(_0x43d69c);_0x23d982&&_0x23d982[_0x59c5d8([0x61,0x6c,0x67])]==_0x59c5d8([0x45,0x53,0x32,0x35,0x36])||(_0x2fff0c=!0x1);}async function _0x346135(_0x3d57f3,_0x17e319,_0x3992e3){const _0x1c338a=window[_0x59c5d8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x59c5d8([0x66,0x72,0x6f,0x6d])](_0x141ddc(_0x3992e3),_0x3a2ce0=>_0x3a2ce0[_0x59c5d8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3355a0=new window[(_0x59c5d8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x59c5d8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3d57f3+_0x59c5d8([0x2e])+_0x17e319),_0x2657bc=window[_0x59c5d8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x59c5d8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2657bc)return;const _0x328df5=await _0x2657bc[_0x59c5d8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x59c5d8([0x6a,0x77,0x6b]),_0x469c9f,{[_0x59c5d8([0x6e,0x61,0x6d,0x65])]:_0x59c5d8([0x45,0x43,0x44,0x53,0x41]),[_0x59c5d8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x59c5d8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x59c5d8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2657bc[_0x59c5d8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x59c5d8([0x6e,0x61,0x6d,0x65])]:_0x59c5d8([0x45,0x43,0x44,0x53,0x41]),[_0x59c5d8([0x68,0x61,0x73,0x68])]:{[_0x59c5d8([0x6e,0x61,0x6d,0x65])]:_0x59c5d8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x328df5,_0x1c338a,_0x3355a0)||(_0x2fff0c=!0x1);}}function _0x6ef116(_0x3bb321){return _0x3bb321[_0x59c5d8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x59c5d8([0x65,0x79]))?JSON[_0x59c5d8([0x70,0x61,0x72,0x73,0x65])](_0x141ddc(_0x3bb321)):null;}function _0x141ddc(_0x273767){return window[_0x59c5d8([0x61,0x74,0x6f,0x62])](_0x273767[_0x59c5d8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x59c5d8([0x2b]))[_0x59c5d8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x59c5d8([0x2f])));}function _0x479bb0(_0x4a0407){let _0x38fb51=0x1505;function _0x54f7de(_0x339a9c){for(let _0x284e85=0x0;_0x284e85<_0x339a9c[_0x59c5d8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x284e85++){const _0x5a1364=_0x339a9c[_0x59c5d8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x284e85);_0x38fb51=(_0x38fb51<<0x5)+_0x38fb51+_0x5a1364,_0x38fb51&=_0x38fb51;}}function _0x676927(_0x5a715f){Array[_0x59c5d8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5a715f)?_0x5a715f[_0x59c5d8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x676927):_0x5a715f&&typeof _0x5a715f==_0x59c5d8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x59c5d8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5a715f)[_0x59c5d8([0x73,0x6f,0x72,0x74])]()[_0x59c5d8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x414993,_0x53462d])=>{_0x54f7de(_0x414993),_0x676927(_0x53462d);}):_0x54f7de(window[_0x59c5d8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5a715f));}return _0x676927(_0x4a0407),_0x38fb51>>>0x0;}function _0xc8fda8(_0x365e42){return _0x365e42[_0x59c5d8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x59c5d8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x59c5d8([0x30]));}function _0x2dba27(_0x577847){return _0x577847[_0x59c5d8([0x73,0x70,0x6c,0x69,0x74])]('')[_0x59c5d8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x59c5d8([0x6a,0x6f,0x69,0x6e])]('');}function _0x5589a7(_0x325b79){return _0x1ce7e7[_0x59c5d8([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x59c5d8([0x68,0x61,0x73])](_0x325b79);}function _0x465431(_0xcb20cd){return _0x1ce7e7[_0x59c5d8([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x59c5d8([0x67,0x65,0x74])](_0xcb20cd);}function _0x3d03f7(){}function _0x59c5d8(_0x24e541){return _0x24e541['map'](_0x40cb3d=>String['fromCharCode'](_0x40cb3d))['join']('');}_0x14db32(await _0xbcf59b());}(this);}set['adapter'](_0x379b87){if(this['_adapter'])throw new _0xc7eb95('track-changes-adapter-already-set',this);this['_adapter']=_0x379b87;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x373d03=!0x1,toJSON:_0x1ab05a=!0x1}={}){const _0x1b0ae4=[];for(const _0x214262 of this['_suggestions']['values']())_0x373d03&&!_0x214262['isInContent']||_0x1b0ae4['push'](_0x214262);return _0x1ab05a?_0x1b0ae4['map'](_0x2ead48=>_0x2ead48['toJSON']()):_0x1b0ae4;}['getSuggestion'](_0x304779){const _0x5ef7c6=this['_suggestions']['get'](_0x304779);if(!_0x5ef7c6)throw new _0xc7eb95('track-changes-suggestion-not-found',this);return _0x5ef7c6;}['hasSuggestion'](_0x30956a){return this['_suggestions']['has'](_0x30956a);}['addSuggestionData'](_0x54f727){const {authorId:_0x147ade,id:_0x365e4b,originalSuggestionId:_0x13a644,attributes:_0x2a6106}=_0x54f727,[_0x2d48ac,_0x39a458]=_0x54f727['type']['split'](':'),_0x1c15c9=this['_suggestions']['get'](_0x365e4b)||this['_createSuggestion'](_0x2d48ac,_0x39a458,_0x365e4b,_0x147ade,_0x2a6106,_0x13a644);if(this['_addThreadToSuggestion'](_0x1c15c9),this['_checkSuggestionCorrectness'](_0x1c15c9,_0x2d48ac,_0x39a458||null,_0x147ade),_0x1c15c9['createdAt']=_0x54f727['createdAt'],_0x1c15c9['_isDataLoaded']=!0x0,_0x2a6106&&_0x2a6106['@external']){const _0x8e7ae0=_0x2a6106['@external'],_0x118f23=this['_getExternalAuthor'](_0x8e7ae0['authorName']);_0x1c15c9['authoredAt']=_0x8e7ae0['createdAt'],_0x1c15c9['author']=_0x118f23,_0x1c15c9['isExternal']=!0x0;}else _0x1c15c9['authoredAt']=_0x54f727['createdAt'];switch(_0x54f727['data']&&(_0x1c15c9['data']=_0x54f727['data']),_0x54f727['attributes']&&(_0x1c15c9['attributes']=_0x54f727['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1c15c9['_saved']=!0x0),this['_suggestionState']['get'](_0x1c15c9)){case'notReady':this['_suggestionState']['set'](_0x1c15c9,'dataReady');break;case'markerReady':_0x1c15c9['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1c15c9])),this['_refreshSuggestionsChain'](new Set([_0x1c15c9])),this['_suggestionState']['set'](_0x1c15c9,'ready'),this['fire']('suggestionLoaded',_0x1c15c9)):this['_suggestionState']['set'](_0x1c15c9,'removed');}return _0x1c15c9;}['acceptSuggestion'](_0x5cb29c){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xc9a70d of _0x5cb29c['getAllAdjacentSuggestions']())_0xc9a70d['accept']();});});}['discardSuggestion'](_0x70ca0c){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4b37de of _0x70ca0c['getAllAdjacentSuggestions']())_0x4b37de['discard']();});});}['enableCommand'](_0x51eefa,_0x23caec){const _0x5bcf30=this['editor']['commands']['get'](_0x51eefa);if(!_0x5bcf30)throw new _0xc7eb95('track-changes-command-not-found',this,{'commandName':_0x51eefa});if(this['_enabledCommands']['has'](_0x5bcf30))throw new _0xc7eb95('track-changes-enable-command-twice',this,{'commandName':_0x51eefa});this['_enabledCommands']['add'](_0x5bcf30),_0x23caec&&_0x5bcf30['on']('execute',(_0x4e43cd,_0x3274ef)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x3274ef['length']>0x0&&_0x3274ef[_0x3274ef['length']-0x1]&&_0x3274ef[_0x3274ef['length']-0x1]['forceDefaultExecution']?_0x3274ef['pop']():(_0x4e43cd['return']=_0x23caec((..._0x34974a)=>_0x5bcf30['execute'](..._0x34974a,{'forceDefaultExecution':!0x0}),..._0x3274ef),_0x4e43cd['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x24b559){let _0x344055,_0x53ee4c;const _0x5c92b2=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x344055=_0x24b559();}catch(_0x593097){_0x53ee4c=_0x593097;}return _0x5c92b2||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x53ee4c&&_0xc7eb95['rethrowUnexpectedError'](_0x53ee4c,this),_0x344055;}['markInsertion'](_0x314e67,_0x5696c9=null,_0x44605d={}){if(_0x314e67['isCollapsed'])return null;const _0x4146e9=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x44605d['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xb12e28,meta:_0x2ca825}of this['_findSuggestions'](_0x314e67,'insertion'))if(_0x2ca825['isOwn']){if(!_0x2ca825['isNextTo']){if(_0x2ca825['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0xb12e28,_0x44605d))continue;return _0xb12e28;}if(Xt(_0xb12e28,_0x44605d))return _0xb12e28;this['_breakSuggestionMarker'](_0xb12e28,_0x314e67['start'],_0x314e67['end']);break;}if(_0x5696c9==_0xb12e28['subType']&&Xt(_0xb12e28,_0x44605d)){const _0x1321ef=_0xb12e28['getFirstRange']();return _0x1321ef['start']['isEqual'](_0x314e67['end'])?this['_setSuggestionRange'](_0xb12e28,this['_model']['createRange'](_0x314e67['start'],_0x1321ef['end'])):this['_setSuggestionRange'](_0xb12e28,this['_model']['createRange'](_0x1321ef['start'],_0x314e67['end'])),_0xb12e28;}}const _0x2eb6e8=_0x281607(),_0x59654b=_0x4146e9['id'],_0x459b09=_0x5696c9?'insertion:'+_0x5696c9:'insertion',_0x4db0cf=this['_setSuggestionData']({'id':_0x2eb6e8,'type':_0x459b09,'createdAt':new Date(),'authorId':_0x59654b,'attributes':_0x44605d});return this['_addSuggestionMarker'](_0x459b09,_0x2eb6e8,_0x59654b,_0x314e67),_0x4db0cf;}['markMultiRangeInsertion'](_0x14aa3d,_0x532cf6='multi',_0x135eda={}){const _0x1cb1fe=this['editor']['plugins']['get']('Users')['me'],_0x182367=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x532cf6,'join');this['_trackingSessionId']&&(_0x135eda['trackingSessionId']=this['_trackingSessionId']);for(const _0xb2f1ed of this['getSuggestions']())if(_0xb2f1ed['author']['id']==_0x1cb1fe['id']&&'insertion'==_0xb2f1ed['type']&&_0xb2f1ed['subType']==_0x532cf6&&Xt(_0xb2f1ed,_0x135eda)&&(_0x182367(_0xb2f1ed['getRanges'](),_0x14aa3d)||_0x182367(_0x14aa3d,_0xb2f1ed['getRanges']()))){for(const _0x378473 of _0x14aa3d)_0xb2f1ed['addRange'](_0x378473);return _0xb2f1ed;}for(const {suggestion:_0x1e4a27,meta:_0x3ab482}of this['_findSuggestions'](_0x14aa3d,'insertion')){if(!_0x3ab482['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x3ab482['containsRangeInObject'])continue;if(!Xt(_0x1e4a27,_0x135eda))continue;let _0x195ecd=!0x0;for(const _0x371665 of _0x1e4a27['getRanges']())for(const _0x2f5234 of _0x14aa3d)if(!_0x371665['containsRange'](_0x2f5234)){_0x195ecd=!0x1;break;}if(_0x195ecd)return _0x1e4a27;}const _0x33e37e=_0x281607(),_0x71fabd=_0x1cb1fe['id'],_0x10dd43='insertion:'+_0x532cf6,_0x393c53=this['_setSuggestionData']({'id':_0x33e37e,'type':_0x10dd43,'createdAt':new Date(),'authorId':_0x71fabd,'attributes':_0x135eda});for(const _0x2eb12a of _0x14aa3d)this['_addSuggestionMarker'](_0x10dd43,_0x33e37e,_0x71fabd,_0x2eb12a,o['getMultiRangeId']());return _0x393c53;}['markInlineFormat'](_0x103254,_0x26537b,_0x2ac9b3=null,_0x993e9={}){if(_0x2ac9b3=_0x2ac9b3||Kt(_0x26537b),_0x103254['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x993e9['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xc5d15e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2ac9b3,'accept');return this['forceDefaultExecution'](()=>_0xc5d15e([_0x103254],_0x26537b,_0x993e9)),null;}const _0x385d98=this['editor']['plugins']['get']('Users')['me'],_0x4e1adc=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x4561b5,meta:_0x24e774}of this['_findSuggestions'](_0x103254,'insertion'))_0x24e774['isOwn']&&!_0x24e774['isInsideObject']&&_0x4e1adc['push'](..._0x4561b5['getRanges']());}const _0x284c4f=function(_0x3be0f2,_0x19ee93){const _0x43f96f=[];for(const _0x526ba8 of _0x19ee93){const _0x1bd247=_0x3be0f2['getIntersection'](_0x526ba8);_0x1bd247&&_0x43f96f['push'](_0x1bd247);}return _0x43f96f;}(_0x103254,_0x4e1adc),_0xbe600c=function(_0x2d7aff,_0x24747c){const _0x54fa31=[_0x2d7aff];for(const _0x58d261 of _0x24747c){let _0x13b0d9=0x0;for(;_0x13b0d9<_0x54fa31['length'];){const _0x11dffd=_0x54fa31[_0x13b0d9]['getDifference'](_0x58d261);_0x54fa31['splice'](_0x13b0d9,0x1,..._0x11dffd),_0x13b0d9+=_0x11dffd['length'];}}return _0x54fa31;}(_0x103254,_0x4e1adc);_0x284c4f['length']&&this['_model']['change'](()=>{for(const _0x32b491 of _0x284c4f){const _0x36788d=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2ac9b3,'accept');this['forceDefaultExecution'](()=>_0x36788d([_0x32b491],_0x26537b,_0x993e9));}});for(const _0x3ca7b8 of _0xbe600c){let _0x48df67=null,_0x230c1c=_0x3ca7b8['start'],_0x3a5027=_0x3ca7b8['end'];for(const {suggestion:_0x5bcc60,meta:_0x497247}of this['_findSuggestions'](_0x3ca7b8,'formatInline')){if(!_0x497247['isOwn'])continue;if(_0x5bcc60['subType']!=_0x2ac9b3)continue;if(!Xt(_0x5bcc60,_0x993e9))continue;const _0x229929=_0x5bcc60['getFirstRange']();if(_0x229929['containsRange'](_0x3ca7b8,!0x0))return null;_0x230c1c=_0x230c1c['isBefore'](_0x229929['start'])?_0x230c1c:_0x229929['start'],_0x3a5027=_0x3a5027['isAfter'](_0x229929['end'])?_0x3a5027:_0x229929['end'],_0x48df67?_0x229929['start']['isBefore'](_0x48df67['getFirstRange']()['start'])?(_0x48df67['removeMarkers'](),_0x48df67=_0x5bcc60):_0x5bcc60['removeMarkers']():_0x48df67=_0x5bcc60;}const _0x50c89f=this['_model']['createRange'](_0x230c1c,_0x3a5027);if(_0x48df67)this['_setSuggestionRange'](_0x48df67,_0x50c89f);else{const _0x368aa7=_0x281607(),_0x275f8a=_0x385d98['id'];this['_setSuggestionData']({'id':_0x368aa7,'type':'formatInline:'+_0x2ac9b3,'data':_0x26537b,'createdAt':new Date(),'authorId':_0x275f8a,'attributes':_0x993e9}),this['_addSuggestionMarker']('formatInline:'+_0x2ac9b3,_0x368aa7,_0x275f8a,_0x50c89f);}}return null;}['markBlockFormat'](_0x14f583,_0x37b4ad,_0x362cce=[],_0x3eb6b5=null,_0x331bc6={}){_0x37b4ad['formatGroupId']||(_0x37b4ad['formatGroupId']=_0x37b4ad['commandName']),_0x37b4ad['multipleBlocks']=_0x14f583['is']('range'),_0x3eb6b5=_0x3eb6b5||Kt(_0x37b4ad);const _0x31994c=_0x362cce['map'](_0x29cc1c=>zt(_0x29cc1c,this['_model'])),_0x3d8ec9=_0x14f583['is']('range')?_0x14f583:zt(_0x14f583,this['_model']);if(this['_trackingSessionId']&&(_0x331bc6['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3ae6f0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3eb6b5,'accept');return this['forceDefaultExecution'](()=>_0x3ae6f0([_0x3d8ec9],_0x37b4ad,_0x331bc6)),null;}_0x31994c['push'](_0x3d8ec9);let _0x3395b3=!0x0;for(const _0x5e8528 of _0x31994c)if(!this['_rangeIsInLocalUserInsertion'](_0x5e8528)){_0x3395b3=!0x1;break;}if(_0x3395b3&&'always'!==this['_trackFormatChanges']){const _0x353174=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3eb6b5,'accept');return this['forceDefaultExecution'](()=>_0x353174([_0x3d8ec9],_0x37b4ad,_0x331bc6)),null;}let _0x503392=null,_0x5b9b3c=_0x3d8ec9['start'],_0x48c946=_0x3d8ec9['end'];for(const {suggestion:_0x24ea46,meta:_0x561744}of this['_findSuggestions'](_0x3d8ec9,'formatBlock')){if(!_0x561744['isOwn'])continue;if(_0x561744['isNextTo']||_0x561744['containsRangeInObject']||_0x561744['isInsideObject'])continue;if(_0x24ea46['data']['formatGroupId']!=_0x37b4ad['formatGroupId'])continue;if(!Xt(_0x24ea46,_0x331bc6))continue;const _0x4035d4=_0x24ea46['getFirstRange']();if(_0x24ea46['subType']==_0x3eb6b5){if(_0x4035d4['containsRange'](_0x3d8ec9,!0x0))return null;_0x5b9b3c=_0x5b9b3c['isBefore'](_0x4035d4['start'])?_0x5b9b3c:_0x4035d4['start'],_0x48c946=_0x48c946['isAfter'](_0x4035d4['end'])?_0x48c946:_0x4035d4['end'],_0x503392?_0x4035d4['start']['isBefore'](_0x503392['getFirstRange']()['start'])?(_0x503392['removeMarkers'](),_0x503392=_0x24ea46):_0x24ea46['removeMarkers']():_0x503392=_0x24ea46;}else{const _0x301c6c=_0x3d8ec9['getIntersection'](_0x4035d4);this['_cutOutSuggestionMarker'](_0x24ea46,_0x301c6c);}}const _0x47b67b=this['editor']['plugins']['get']('Users')['me'],_0x192b02=_0x281607(),_0x2966ba=_0x47b67b['id'];if(_0x503392)return this['_setSuggestionRange'](_0x503392,this['_model']['createRange'](_0x5b9b3c,_0x48c946)),_0x503392;{const _0x120a12=this['_setSuggestionData']({'id':_0x192b02,'type':'formatBlock:'+_0x3eb6b5,'data':_0x37b4ad,'createdAt':new Date(),'authorId':_0x2966ba,'attributes':_0x331bc6});return this['_addSuggestionMarker']('formatBlock:'+_0x3eb6b5,_0x192b02,_0x2966ba,this['_model']['createRange'](_0x5b9b3c,_0x48c946)),_0x120a12;}}['markMultiRangeBlockFormat'](_0x5e3f0c,_0x25ffce,_0x10fa3a=[],_0x2b5d3b=null,_0x103ea0={}){_0x25ffce['formatGroupId']||(_0x25ffce['formatGroupId']=_0x25ffce['commandName']);const _0x3200ed=_0x5e3f0c[0x0];_0x25ffce['multipleBlocks']=_0x3200ed['is']('range'),_0x2b5d3b=_0x2b5d3b||Kt(_0x25ffce);const _0x442aea=_0x10fa3a['map'](_0x4a4f11=>zt(_0x4a4f11,this['_model'])),_0x521803=_0x3200ed['is']('range')?_0x5e3f0c:_0x5e3f0c['map'](_0x4b15a0=>zt(_0x4b15a0,this['_model']));if(this['_trackingSessionId']&&(_0x103ea0['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x37a9e6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2b5d3b,'accept');return this['forceDefaultExecution'](()=>_0x37a9e6(_0x521803,_0x25ffce,_0x103ea0)),null;}_0x442aea['push'](..._0x521803);let _0x3d4854=!0x0;for(const _0x3ea5b6 of _0x442aea)if(!this['_rangeIsInLocalUserInsertion'](_0x3ea5b6)){_0x3d4854=!0x1;break;}if(_0x3d4854&&'always'!==this['_trackFormatChanges']){const _0x37590e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2b5d3b,'accept');return this['forceDefaultExecution'](()=>_0x37590e(_0x521803,_0x25ffce,_0x103ea0)),null;}const _0x3c9477=this['editor']['plugins']['get']('Users')['me'];for(const _0x54d60c of this['getSuggestions']()){if(_0x54d60c['author']['id']!=_0x3c9477['id'])continue;if('formatBlock'!=_0x54d60c['type']||_0x54d60c['data']['formatGroupId']!=_0x25ffce['formatGroupId'])continue;if(!Xt(_0x54d60c,_0x103ea0))continue;const _0x3e7a74=_0x54d60c['subType']==_0x2b5d3b;for(let _0x152b71=0x0;_0x152b71<_0x521803['length'];_0x152b71++){const _0x30a782=_0x521803[_0x152b71];for(const _0x2f54e7 of _0x54d60c['getMarkers']()){const _0x46df3b=_0x2f54e7['getRange']();if(_0x30a782['isEqual'](_0x46df3b)){_0x3e7a74?(_0x521803['splice'](_0x152b71,0x1),_0x152b71--):_0x54d60c['removeMarker'](_0x2f54e7['name']);break;}}}}if(0x0==_0x521803['length'])return null;const _0x169aae=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2b5d3b,'join');for(const _0x1d8190 of this['getSuggestions']())if(_0x1d8190['author']['id']==_0x3c9477['id']&&'formatBlock'==_0x1d8190['type']&&_0x1d8190['data']['formatGroupId']==_0x25ffce['formatGroupId']&&_0x1d8190['subType']==_0x2b5d3b&&Xt(_0x1d8190,_0x103ea0)&&(_0x169aae(_0x1d8190['getRanges'](),_0x521803)||_0x169aae(_0x521803,_0x1d8190['getRanges']()))){for(const _0x447021 of _0x521803)_0x1d8190['addRange'](_0x447021);return _0x1d8190;}const _0x1ff9ed=_0x281607(),_0x387697=_0x3c9477['id'],_0x91a402='formatBlock:'+_0x2b5d3b,_0xe10cc2=this['_setSuggestionData']({'id':_0x1ff9ed,'type':_0x91a402,'data':_0x25ffce,'createdAt':new Date(),'authorId':_0x387697,'attributes':_0x103ea0});for(const _0x2a0be5 of _0x521803)this['_addSuggestionMarker'](_0x91a402,_0x1ff9ed,_0x387697,_0x2a0be5,o['getMultiRangeId']());return _0xe10cc2;}['markDeletion'](_0x3892c1,_0x2b216c=null,_0x553033={}){if(_0x3892c1['isCollapsed'])return null;const _0x50f325=this['editor']['plugins']['get']('Users')['me'],_0x5c81db=new _0x268add(_0x3892c1['start'],_0x3892c1['end']);this['_trackingSessionId']&&(_0x553033['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x571c5f,meta:_0x172368}of this['_findSuggestions'](_0x5c81db,'insertion'))if(_0x172368['isOwn']&&!_0x172368['isNextTo']){if(_0x571c5f['isMultiRange']){const _0x55ae04=_0x571c5f['getRanges']()['filter'](_0x378c9d=>'$graveyard'!=_0x378c9d['root']['rootName']);_0x55ae04['every'](_0x153614=>_0x5c81db['containsRange'](_0x153614,!0x0))&&_0x571c5f['discard']();if(_0x55ae04['some'](_0x52647e=>_0x52647e['containsRange'](_0x5c81db,!0x0))){const _0x1b6ea8=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2b216c,'accept');return this['forceDefaultExecution'](()=>_0x1b6ea8([_0x5c81db],null,_0x553033)),null;}}else{const _0x3420b6=_0x5c81db['getIntersection'](_0x571c5f['getFirstRange']());null!==_0x3420b6&&_0x571c5f['_onDiscard']([_0x3420b6],null,_0x553033);}}if(_0x5c81db['detach'](),_0x5c81db['isCollapsed']||'$graveyard'==_0x5c81db['root']['rootName'])return null;let _0x58d8f8=null,_0x3a5bbd=_0x5c81db['start'],_0x2b83d5=_0x5c81db['end'];const _0x14d434=this['_findSuggestions'](_0x5c81db,'deletion');for(const {suggestion:_0x4bf914,meta:_0x254786}of _0x14d434){const _0x2ccdc7=this['_model']['createRange'](_0x3a5bbd,_0x2b83d5);if(_0x254786['isOwn']&&(this['_mergeNestedSuggestions']||!_0x254786['containsRangeInObject']&&!_0x254786['isInsideObject'])){if(_0x4bf914['isMultiRange']){if(!Xt(_0x4bf914,_0x553033))continue;let _0x189a31=!0x0;for(const _0x2d1ab6 of _0x4bf914['getRanges']()){if(_0x2d1ab6['containsRange'](_0x2ccdc7,!0x0))return _0x4bf914;_0x2ccdc7['containsRange'](_0x2d1ab6)||(_0x189a31=!0x1);}_0x189a31&&_0x4bf914['discard']();}else{const _0xcd3ad=_0x4bf914['getFirstRange']();if(_0xcd3ad['containsRange'](_0x2ccdc7,!0x0))return _0x4bf914;if(!Xt(_0x4bf914,_0x553033)){_0x2ccdc7['containsRange'](_0xcd3ad)?_0x4bf914['removeMarkers']():_0xcd3ad['containsPosition'](_0x3a5bbd)?_0x3a5bbd=_0xcd3ad['end']:_0xcd3ad['containsPosition'](_0x2b83d5)&&(_0x2b83d5=_0xcd3ad['start']);continue;}_0x3a5bbd=_0x3a5bbd['isBefore'](_0xcd3ad['start'])?_0x3a5bbd:_0xcd3ad['start'],_0x2b83d5=_0x2b83d5['isAfter'](_0xcd3ad['end'])?_0x2b83d5:_0xcd3ad['end'],_0x553033=Object['assign']({},_0x4bf914['attributes']),_0x58d8f8?_0xcd3ad['start']['isBefore'](_0x58d8f8['getFirstRange']()['start'])?(_0x58d8f8['removeMarkers'](),_0x58d8f8=_0x4bf914):_0x4bf914['removeMarkers']():_0x58d8f8=_0x4bf914;}}}if(_0x58d8f8)return this['_setSuggestionRange'](_0x58d8f8,this['_model']['createRange'](_0x3a5bbd,_0x2b83d5)),_0x58d8f8;{const _0x274c09=_0x281607(),_0x4d13ca=this['_model']['createRange'](_0x3a5bbd,_0x2b83d5),_0x2de0c3=_0x50f325['id'],_0x55ccc3=_0x2b216c?'deletion:'+_0x2b216c:'deletion',_0x4b8ceb=this['_setSuggestionData']({'id':_0x274c09,'type':_0x55ccc3,'createdAt':new Date(),'authorId':_0x2de0c3,'attributes':_0x553033});return this['_addSuggestionMarker'](_0x55ccc3,_0x274c09,_0x2de0c3,_0x4d13ca),_0x4b8ceb;}}['markMultiRangeDeletion'](_0x28fe7d,_0x449a6f='multi',_0x47a290={}){const _0x323ee2=this['editor']['plugins']['get']('Users')['me'],_0x28ab46=_0x28fe7d['map'](_0x483b2d=>new _0x268add(_0x483b2d['start'],_0x483b2d['end'])),_0x11d0a4=new Set();this['_trackingSessionId']&&(_0x47a290['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xd2b841,meta:_0x5a14bc}of this['_findSuggestions'](_0x28ab46,'insertion'))_0x5a14bc['isOwn']&&!_0x5a14bc['isNextTo']&&_0x11d0a4['add'](_0xd2b841);for(const _0x8b9c7d of _0x11d0a4)if(_0x8b9c7d['isMultiRange']){const _0x1c7242=_0x8b9c7d['getRanges']();(!_0x8b9c7d['attributes']||!_0x8b9c7d['attributes']['skipNestingCheck'])&&(_0x1c7242['every'](_0x11d8bd=>_0x28ab46['some'](_0x392b16=>_0x392b16['containsRange'](_0x11d8bd,!0x0)))&&_0x8b9c7d['discard']());if(_0x28ab46['every'](_0x22cd4b=>_0x1c7242['some'](_0x1087d0=>_0x1087d0['containsRange'](_0x22cd4b,!0x0)))){const _0x29fb03=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x449a6f,'accept');return this['forceDefaultExecution'](()=>_0x29fb03(_0x28fe7d,null,_0x47a290)),null;}}else{const _0x5b9e06=_0x8b9c7d['getFirstRange']();_0x28ab46['some'](_0x156945=>_0x156945['containsRange'](_0x5b9e06,!0x0))&&_0x8b9c7d['discard']();if(_0x28ab46['every'](_0x504385=>_0x5b9e06['containsRange'](_0x504385,!0x0))){const _0x111e4f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x449a6f,'accept');return this['forceDefaultExecution'](()=>_0x111e4f(_0x28ab46,null,_0x47a290)),null;}}const _0x38b047=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x449a6f,'join');let _0x50515e=null;for(const _0x299638 of this['getSuggestions']())if(_0x299638['author']['id']==_0x323ee2['id']&&_0x299638['isInContent']&&'deletion'==_0x299638['type']&&_0x299638['subType']==_0x449a6f&&Xt(_0x299638,_0x47a290)&&(_0x38b047(_0x299638['getRanges'](),_0x28ab46)||_0x38b047(_0x28ab46,_0x299638['getRanges']()))){if(_0x50515e){if(_0x299638['commentThread']&&_0x299638['commentThread']['length'])continue;for(const _0x41d5e8 of _0x299638['getRanges']())_0x50515e['isIntersectingWithRange'](_0x41d5e8)||_0x50515e['addRange'](_0x41d5e8);_0x299638['removeMarkers']();}else{_0x50515e=_0x299638;for(const _0x18c76f of _0x28ab46)_0x299638['isIntersectingWithRange'](_0x18c76f)||_0x299638['addRange'](_0x18c76f);}}if(_0x50515e)return _0x50515e;_0x11d0a4['clear']();for(const {suggestion:_0x3829e1,meta:_0x79c419}of this['_findSuggestions'](_0x28ab46,'deletion'))_0x79c419['isOwn']&&(this['_mergeNestedSuggestions']||!_0x79c419['containsRangeInObject']&&!_0x79c419['isInsideObject'])&&Xt(_0x3829e1,_0x47a290)&&_0x11d0a4['add'](_0x3829e1);for(const _0xd41b5a of _0x11d0a4){const _0xf5a884=_0xd41b5a['getRanges']();if(!_0x47a290||!_0x47a290['skipNestingCheck']){if(_0x28ab46['every'](_0x47274d=>_0xf5a884['some'](_0xbd19a2=>_0xbd19a2['containsRange'](_0x47274d,!0x0))))return _0xd41b5a;}(!_0xd41b5a['attributes']||!_0xd41b5a['attributes']['skipNestingCheck'])&&(_0xf5a884['every'](_0x199a27=>_0x28ab46['some'](_0x113215=>_0x113215['containsRange'](_0x199a27,!0x0)))&&_0xd41b5a['discard']());}const _0x391598=_0x281607(),_0x55ec5a=_0x323ee2['id'],_0x4fb6a8='deletion:'+_0x449a6f,_0x3d2154=this['_setSuggestionData']({'id':_0x391598,'type':_0x4fb6a8,'createdAt':new Date(),'authorId':_0x55ec5a,'attributes':_0x47a290});for(const _0x208229 of _0x28ab46)_0x208229['detach'](),_0x208229['isCollapsed']||'$graveyard'==_0x208229['root']['rootName']||this['_addSuggestionMarker'](_0x4fb6a8,_0x391598,_0x55ec5a,_0x208229,o['getMultiRangeId']());return _0x3d2154;}['markAttributeChange'](_0x43fd5a,_0x4582ed,_0x2af91e,_0x12a57b,_0x525b8f){if(_0x43fd5a['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x41d8b8=this['editor']['plugins']['get']('Users')['me']['id'],_0x314336=Array['from'](this['_suggestions']['values']())['filter'](_0x5a2603=>'attribute'==_0x5a2603['type']&&_0x5a2603['data']['key']==_0x4582ed&&_0x5a2603['isIntersectingWithRange'](_0x43fd5a));if(this['_trackingSessionId']&&(_0x525b8f['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0xe2a2ff=this['_findSuggestions'](_0x43fd5a,'insertion')['filter'](({meta:_0x3d0b23})=>_0x3d0b23['isOwn']&&!_0x3d0b23['isInsideObject']&&!_0x3d0b23['isNextTo'])['map'](({suggestion:_0x1565f9})=>_0x1565f9);_0x314336['unshift'](..._0xe2a2ff);}const _0x5ab2dc=new Map([[_0x43fd5a,_0x2af91e]]);for(const _0x390c09 of _0x314336){const _0x2d4220='attribute'==_0x390c09['type']?_0x390c09['data']['oldValue']:void 0x0,_0x37de08=_0x390c09['getFirstRange'](),_0x333b7a=Array['from'](_0x5ab2dc['keys']())['find'](_0x2a2989=>_0x2a2989['isIntersecting'](_0x37de08));if(!_0x333b7a)continue;const _0x50038f=_0x333b7a['getDifference'](_0x37de08);this['_isBlockAttribute'](_0x4582ed)&&'insertion'==_0x390c09['type']&&0x0!=_0x50038f['length']||(_0x5ab2dc['delete'](_0x333b7a),_0x50038f['forEach'](_0x3cd15c=>{_0x5ab2dc['set'](_0x3cd15c,_0x2af91e);}),'insertion'!=_0x390c09['type']&&_0x2d4220!=_0x12a57b&&_0x5ab2dc['set'](_0x333b7a['getIntersection'](_0x37de08),_0x2d4220));}const _0x1b4680=[];for(const [_0x5e46d7,_0xc2f3b9]of _0x5ab2dc){const _0x29bacd=_0x281607(),_0x40be4d={'key':_0x4582ed,'oldValue':_0xc2f3b9,'newValue':_0x12a57b};_0x4582ed['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':_0x4582ed});const _0x47ae8e=('attribute:'+(_0x4582ed+'|'+Kt({'newValue':_0x12a57b})))['substring'](0x0,0x3c),_0xb3c6e3=this['_setSuggestionData']({'id':_0x29bacd,'type':_0x47ae8e,'data':_0x40be4d,'createdAt':new Date(),'authorId':_0x41d8b8,'attributes':_0x525b8f});_0x1b4680['push'](_0xb3c6e3),this['_addSuggestionMarker'](_0x47ae8e,_0x29bacd,_0x41d8b8,_0x5e46d7);}return _0x1b4680;}['enableDefaultAttributesIntegration'](_0x1fd01b){this['enableCommand'](_0x1fd01b,(_0x51747f,..._0x4e4d53)=>{this['_recordAttributeChanges'](()=>{_0x51747f(..._0x4e4d53);});});}['registerBlockAttribute'](_0x223fe8){this['_blockAttributeKeys']['add'](_0x223fe8);}['registerInlineAttribute'](_0x122863){this['_inlineAttributeKeys']['add'](_0x122863);}['startTrackingSession'](_0x21a2ec){return this['_trackingSessionId']=void 0x0!==_0x21a2ec?_0x21a2ec:_0x281607(),this['_trackingSessionId'];}['_getAttributeKey'](_0x316c53){return'attribute'==_0x316c53['type']?_0x316c53['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x462db8,_0x59eb13){const _0x5183dc=_0x462db8['getFirstMarker']();this['_model']['change'](_0x50c43f=>{_0x50c43f['updateMarker'](_0x5183dc,{'range':_0x59eb13});});}['_addThreadToSuggestion'](_0x3a5b7b){const _0x2c23cb=_0x3a5b7b['id'],_0x3d0982=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2c23cb)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3d0982,'threadId':_0x2c23cb,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1535ce=this['_commentsRepository']['getCommentThread'](_0x2c23cb);_0x1535ce['unbind']('isRemovable'),_0x1535ce['isRemovable']=!0x1,_0x3a5b7b['commentThread']=_0x1535ce;}['_checkSuggestionCorrectness'](_0x4b6617,_0x22b5c6,_0x4f0951,_0x17698f){if(_0x4b6617['type']!=_0x22b5c6||_0x4b6617['subType']!=_0x4f0951||_0x4b6617['creator']['id']!=_0x17698f)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0xc7eb95('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x365987,_0x3242e9){const _0xa00308=_0x365987['getFirstRange']();if(_0x3242e9['isEqual'](_0xa00308))_0x365987['removeMarkers']();else{if(_0xa00308['containsRange'](_0x3242e9)){const _0x6b8771=this['_model']['createPositionAt'](_0x3242e9['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x365987,this['_model']['createRange'](_0xa00308['start'],_0x6b8771));const _0x45e603=_0x281607(),_0x24f41d=_0x365987['creator']['id'],_0x1200a3=_0x365987['type']+':'+_0x365987['subType'];this['_setSuggestionData']({'id':_0x45e603,'type':_0x1200a3,'createdAt':new Date(),'authorId':_0x24f41d,'data':_0x365987['data'],'attributes':_0x365987['attributes']});const _0x406559=this['_model']['createPositionAt'](_0x3242e9['end']['parent'],'after'),_0x35d779=this['_model']['createRange'](_0x406559,_0xa00308['end']);this['_addSuggestionMarker'](_0x1200a3,_0x45e603,_0x24f41d,_0x35d779);}else{if(_0xa00308['containsPosition'](_0x3242e9['start'])){const _0x23a090=this['_model']['createPositionAt'](_0x3242e9['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x365987,this['_model']['createRange'](_0xa00308['start'],_0x23a090));}else{const _0x24703f=this['_model']['createPositionAt'](_0x3242e9['end']['parent'],'after');this['_setSuggestionRange'](_0x365987,this['_model']['createRange'](_0x24703f,_0xa00308['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x3f1e66){for(const {suggestion:_0x537420,meta:_0x130a11}of this['_findSuggestions'](_0x3f1e66,'insertion')){if(!_0x130a11['isOwn'])continue;const _0x5c5f24=_0x537420['getRanges']();for(const _0x418aec of _0x5c5f24)if(!_0x3f1e66['getDifference'](_0x418aec)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x5e15b9){const _0x273eaa=this['editor']['plugins']['get']('Users')['getUser'](_0x5e15b9);if(!_0x273eaa)throw new _0xc7eb95('track-changes-user-not-found',this);return _0x273eaa;}['_getExternalAuthor'](_0x509fd8){const _0x436fdf=this['editor']['plugins']['get']('Users'),_0x2110d4=_0x3ed617('external:'+_0x509fd8),_0x4bb7d2=_0x436fdf['getUser'](_0x2110d4);return _0x4bb7d2||_0x436fdf['addUser']({'id':_0x2110d4,'name':_0x509fd8});}['_createSuggestion'](_0x9a708f,_0x13fbf7,_0x24c6cc,_0x40889e,_0x5dbdfa,_0x4593dc){const _0x4fd08d=this['_getAuthorFromId'](_0x40889e),_0x45fc63=this['_suggestionFactory']['buildSuggestion'](_0x9a708f,_0x13fbf7,_0x24c6cc,_0x4fd08d,_0x5dbdfa,_0x2a3052=>{this['_updateSuggestionData'](_0x24c6cc,{'attributes':_0x2a3052});const _0xd2c4f9=this['getSuggestion'](_0x24c6cc);this['_joinWithAdjacentSuggestions'](new Set([_0xd2c4f9])),this['_refreshSuggestionsChain'](new Set([_0xd2c4f9]));},_0x4593dc);return this['listenTo'](_0x45fc63,'accept',()=>{this['_updateSuggestionData'](_0x24c6cc,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x45fc63,'discard',()=>{this['_updateSuggestionData'](_0x24c6cc,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x24c6cc,_0x45fc63),this['_suggestionState']['set'](_0x45fc63,'notReady'),_0x45fc63;}['_splitMarkerName'](_0x4be410){const _0x12e340=_0x4be410['split'](':');return{'group':_0x12e340[0x0],'type':_0x12e340[0x1],'subType':_0x12e340['length']>=0x5?_0x12e340[0x2]:null,'id':_0x12e340['length']<0x5?_0x12e340[0x2]:_0x12e340[0x3],'authorId':_0x12e340['length']<0x5?_0x12e340[0x3]:_0x12e340[0x4],'markerCount':0x6==_0x12e340['length']?_0x12e340[0x5]:null};}['_breakSuggestionMarker'](_0x19be95,_0x1095c6,_0x26196a){const _0x52a6f3=_0x19be95['getFirstRange'](),_0x356e16=_0x52a6f3['start'],_0x1412f5=_0x52a6f3['end'];this['_setSuggestionRange'](_0x19be95,this['_model']['createRange'](_0x356e16,_0x1095c6));const _0x3e6326=_0x281607(),_0x3e5ebc=_0x19be95['creator']['id'],_0x59b33a=_0x19be95['type']+(_0x19be95['subType']?':'+_0x19be95['subType']:'');this['_setSuggestionData']({'id':_0x3e6326,'type':_0x59b33a,'createdAt':new Date(),'authorId':_0x3e5ebc,'originalSuggestionId':_0x19be95['_originalSuggestionId']||_0x19be95['id'],'attributes':_0x19be95['attributes'],'data':_0x19be95['data']});const _0xef0b06=this['_getAttributeKey'](_0x19be95);('formatBlock'==_0x19be95['type']||_0xef0b06&&this['_isBlockAttribute'](_0xef0b06))&&(_0x26196a=this['_model']['createPositionBefore'](_0x26196a['parent'])),this['_addSuggestionMarker'](_0x59b33a,_0x3e6326,_0x3e5ebc,this['_model']['createRange'](_0x26196a,_0x1412f5));}['_findSuggestions'](_0x21bd7f,_0x1ef537=null){const _0x3990ed=[],_0x3e2fd9=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x21bd7f)||(_0x21bd7f=[_0x21bd7f]);for(const _0x20ab00 of this['getSuggestions']()){if(!_0x20ab00['isInContent'])continue;if(_0x1ef537&&_0x20ab00['type']!=_0x1ef537)continue;let _0x142f0f=!0x1;for(const _0x1c9f57 of _0x20ab00['getRanges']()){for(const _0x2528e7 of _0x21bd7f){const _0x3f21ca=_0x2528e7['start']['isEqual'](_0x1c9f57['end'])||_0x2528e7['end']['isEqual'](_0x1c9f57['start']);if(_0x3f21ca||_0x2528e7['getIntersection'](_0x1c9f57)){const _0x5b774b=_0x2528e7['containsRange'](_0x1c9f57)&&Gt(this['_model']['schema'],_0x1c9f57['start'],_0x2528e7),_0x3e2dbc=_0x1c9f57['containsRange'](_0x2528e7)&&Gt(this['_model']['schema'],_0x2528e7['start'],_0x1c9f57);_0x3990ed['push']({'suggestion':_0x20ab00,'meta':{'isOwn':_0x3e2fd9==_0x20ab00['author'],'isNextTo':_0x3f21ca,'isInsideObject':_0x5b774b,'containsRangeInObject':_0x3e2dbc}}),_0x142f0f=!0x0;break;}}if(_0x142f0f)break;}}return _0x3990ed;}['_addSuggestionMarker'](_0x5e430c,_0x595197,_0x39eb77,_0x19366b,_0x1eb5e3){this['_model']['change'](_0x4d446e=>{let _0x2cc012='suggestion:'+_0x5e430c+':'+_0x595197+':'+_0x39eb77;_0x1eb5e3&&(_0x2cc012=_0x2cc012+':'+_0x1eb5e3),_0x4d446e['addMarker'](_0x2cc012,{'range':_0x19366b,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x15d83f){const _0x342d6b=_0x15d83f['previous'],_0x2b40af=_0x15d83f['next'];_0x15d83f['previous']=null,_0x15d83f['next']=null,null!=_0x342d6b&&_0x342d6b['next']==_0x15d83f&&(_0x342d6b['next']=_0x2b40af),null!=_0x2b40af&&_0x2b40af['previous']==_0x15d83f&&(_0x2b40af['previous']=_0x342d6b),'ready'==this['_suggestionState']['get'](_0x15d83f)&&(this['_suggestionState']['set'](_0x15d83f,'removed'),this['fire']('suggestionUnloaded',_0x15d83f,_0x342d6b,_0x2b40af));}['_setSuggestionData'](_0x59615b){const _0x4f0d39=_0x59615b['id'],_0x257921=this['addSuggestionData'](_0x59615b);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x54cf86=this['editor']['plugins']['get']('PendingActions'),_0x55fcc6=_0x257921['hasComments'],_0x7d49ce=_0x257921['subType']?_0x257921['type']+':'+_0x257921['subType']:_0x257921['type'],_0x446390=this['editor']['locale'],_0x4507f6=_0x54cf86['add'](c(_0x446390,'PENDING_ACTION_SUGGESTION')),_0x544836={'id':_0x4f0d39,'type':_0x7d49ce,'hasComments':_0x55fcc6,'data':_0x59615b['data']||null,'originalSuggestionId':_0x59615b['originalSuggestionId']||null,'attributes':_0x257921['attributes']};this['_adapter']['addSuggestion'](_0x544836)['then'](_0x323423=>{_0x257921['_saved']=!0x0,_0x54cf86['remove'](_0x4507f6),_0x323423&&_0x323423['createdAt']&&(this['_suggestions']['get'](_0x4f0d39)['createdAt']=_0x323423['createdAt']);})['catch'](_0x3c320a=>{throw _0xd2389d('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x257921['discard']();}),_0x257921['stopListening'](),this['_suggestions']['delete'](_0x257921['id']),this['_suggestionState']['delete'](_0x257921),_0x3c320a;});}return _0x257921;}['_isBlockAttribute'](_0x1bdfe9){return this['_blockAttributeKeys']['has'](_0x1bdfe9);}['_updateSuggestionData'](_0x322044,_0x405c15){const _0x511fe5=this['editor']['plugins']['get']('PendingActions'),_0x373e5d=this['getSuggestion'](_0x322044);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x373e5d['_saved']){const _0x4a5460=_0x511fe5['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x322044,_0x405c15)['then'](()=>{_0x511fe5['remove'](_0x4a5460);});}else _0x373e5d['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x322044,_0x405c15);});}}['_getSuggestionData'](_0x176a01){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0xc7eb95('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x176a01);}['_handleNewSuggestionMarker'](_0x3cf23e){const {id:_0xc09ea0,type:_0x23393f,subType:_0x27b5b6,authorId:_0x559b79}=this['_splitMarkerName'](_0x3cf23e),_0x491777=this['_suggestions']['get'](_0xc09ea0)||this['_createSuggestion'](_0x23393f,_0x27b5b6,_0xc09ea0,_0x559b79,{});switch(this['_checkSuggestionCorrectness'](_0x491777,_0x23393f,_0x27b5b6,_0x559b79),this['_suggestionState']['get'](_0x491777)){case'notReady':this['_getSuggestionData'](_0xc09ea0)['then'](_0x214199=>{let _0x34b641=Promise['resolve']();_0x214199['hasComments']&&(_0x34b641=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0xc09ea0})),_0x34b641['then'](()=>{this['addSuggestionData'](_0x214199)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x491777,'markerReady');break;case'removed':this['_updateSuggestionData'](_0xc09ea0,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x491777,'ready'),this['fire']('suggestionLoaded',_0x491777);break;case'ready':this['fire']('suggestionChanged',_0x491777);}return _0x491777['addMarkerName'](_0x3cf23e),_0x491777;}['_refreshSuggestionsChain'](_0x2be70e){const _0x27a3fd=Array['from'](_0x2be70e),_0xa6d5aa=_0x27a3fd['filter'](_0x530fb1=>'attribute'==_0x530fb1['type']);this['_refreshAttributeSuggestionsChain'](_0xa6d5aa);const _0x1ed1e7=_0x27a3fd['filter'](_0x51f784=>!_0x51f784['isMultiRange']&&'attribute'!=_0x51f784['type']),_0x46d58f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x75a180=>!_0x75a180['isMultiRange']&&'attribute'!=_0x75a180['type']),_0x4a8c37=_0x46d58f['filter'](_0x59df0c=>!_0x2be70e['has'](_0x59df0c)),_0x538a03=new Map(_0x46d58f['map'](_0x531e22=>[_0x531e22,this['_suggestionFactory']['getSuggestionCallback'](_0x531e22['type'],_0x531e22['subType'],'chain')])),_0x5d42ce=new Map(_0x46d58f['map'](_0x5a2e78=>[_0x5a2e78,_0x5a2e78['getFirstRange']()])),_0x357815=new Set(),_0x138af1=new Set();for(let _0x31681=0x0;_0x31681<_0x1ed1e7['length'];_0x31681++)_0x3668d3(_0x1ed1e7[_0x31681],_0x1ed1e7,_0x31681+0x1);for(let _0x3ccff5=0x0;_0x3ccff5<_0x1ed1e7['length'];_0x3ccff5++)_0x3668d3(_0x1ed1e7[_0x3ccff5],_0x4a8c37,0x0);const _0x24babd=new Set();for(let _0x31b8ee=0x0;_0x31b8ee<_0x1ed1e7['length'];_0x31b8ee++){const _0x2fb428=_0x1ed1e7[_0x31b8ee];!_0x138af1['has'](_0x2fb428)&&_0x2fb428['previous']&&(_0x24babd['add'](_0x2fb428['previous']),_0x2fb428['previous']['next']===_0x2fb428&&(_0x2fb428['previous']['next']=null),_0x2fb428['previous']=null),!_0x357815['has'](_0x2fb428)&&_0x2fb428['next']&&(_0x24babd['add'](_0x2fb428['next']),_0x2fb428['next']['previous']===_0x2fb428&&(_0x2fb428['next']['previous']=null),_0x2fb428['next']=null);}function _0x3668d3(_0x109a9b,_0x1ee777,_0x443e35){for(let _0x135d6c=_0x443e35;_0x135d6c<_0x1ee777['length'];_0x135d6c++){const _0x12f2b8=_0x19f667(_0x109a9b,_0x1ee777[_0x135d6c]);_0x12f2b8&&(_0x12f2b8[0x0]['next']=_0x12f2b8[0x1],_0x12f2b8[0x1]['previous']=_0x12f2b8[0x0],_0x357815['add'](_0x12f2b8[0x0]),_0x138af1['add'](_0x12f2b8[0x1]));}}function _0x19f667(_0x405010,_0x408cc2){if(_0x405010['author']['id']!==_0x408cc2['author']['id'])return null;const _0xcb945c=_0x538a03['get'](_0x405010)(_0x405010,_0x408cc2,_0x5d42ce['get'](_0x405010),_0x5d42ce['get'](_0x408cc2));if(!_0xcb945c)return null;return _0x538a03['get'](_0x408cc2)(_0x405010,_0x408cc2,_0x5d42ce['get'](_0x405010),_0x5d42ce['get'](_0x408cc2))?_0xcb945c[0x1]['commentThread']&&_0xcb945c[0x1]['commentThread']['length']?null:_0xcb945c:null;}_0x24babd['size']&&this['_refreshSuggestionsChain'](_0x24babd);}['_refreshAttributeSuggestionsChain'](_0x1c6b97){if(0x0==_0x1c6b97['length'])return;const _0x39e8cb=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x315faa=>'attribute'==_0x315faa['type']&&_0x315faa['_isDataLoaded']),_0x3550cd=[],_0x326c08=new Map();for(const _0x4c3809 of _0x39e8cb){const _0x26c029=_0x3ed617(_0x4c3809['attributes']);_0x326c08['has'](_0x26c029)||(_0x326c08['set'](_0x26c029,_0x3550cd['length']),_0x3550cd['push']([]));const _0x598484=_0x326c08['get'](_0x26c029);_0x3550cd[_0x598484]['push'](_0x4c3809);}!(function(){_0x3550cd['sort']((_0x1a1a33,_0xeaa3c)=>{const _0x3d6806=_0x1a1a33[0x0]['createdAt'],_0x5a77d4=_0xeaa3c[0x0]['createdAt'];return _0x3d6806==_0x5a77d4?_0x1a1a33[0x0]['attributes']['groupId']<_0xeaa3c[0x0]['attributes']['groupId']?-0x1:0x1:_0x3d6806<_0x5a77d4?-0x1:0x1;});for(const _0x4ca004 of _0x3550cd)_0x4ca004['sort']((_0x2e5a80,_0x11b6e6)=>_0x2e5a80['id']<_0x11b6e6['id']?-0x1:0x1);}());for(let _0x110c10=0x0;_0x110c10<_0x3550cd['length'];_0x110c10++){if(0x0==_0x3550cd[_0x110c10]['length'])continue;const _0x517b26=[];for(let _0x3ce26d=_0x110c10+0x1;_0x3ce26d<_0x3550cd['length'];_0x3ce26d++)0x0!=_0x3550cd[_0x3ce26d]['length']&&_0x53061e(_0x3550cd[_0x110c10],_0x3550cd[_0x3ce26d])&&_0x517b26['push'](_0x3ce26d);for(const _0x54406f of _0x517b26)_0x3550cd[_0x110c10]=_0x3550cd[_0x110c10]['concat'](_0x3550cd[_0x54406f]),_0x3550cd[_0x54406f]=[];}for(const _0x4a5a35 of _0x3550cd)for(let _0x3affeb=0x0;_0x3affeb<_0x4a5a35['length'];_0x3affeb++){const _0x441f97=_0x4a5a35[_0x3affeb+0x1]||null;_0x4a5a35[_0x3affeb]['next']!==_0x441f97&&(_0x4a5a35[_0x3affeb]['next']=_0x441f97);}for(const _0x58ae8c of _0x3550cd)for(let _0x398918=0x0;_0x398918<_0x58ae8c['length'];_0x398918++){const _0x50157a=_0x58ae8c[_0x398918-0x1]||null;_0x58ae8c[_0x398918]['previous']!==_0x50157a&&(_0x58ae8c[_0x398918]['previous']=_0x50157a);}function _0x53061e(_0x421a50,_0x32a0ce){if(_0x421a50[0x0]['attributes']['groupId']!==_0x32a0ce[0x0]['attributes']['groupId']&&_0x421a50[0x0]['author']!==_0x32a0ce[0x0]['author'])return!0x1;if(!function(_0x41b13b,_0x1cdecf){if(!_0x41b13b['hasComments']&&!_0x1cdecf['hasComments'])return!0x0;if(_0x41b13b['hasComments']&&_0x1cdecf['hasComments'])return!0x1;if(_0x41b13b['hasComments']&&_0x1cdecf['createdAt']<_0x41b13b['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x1cdecf['hasComments']&&_0x41b13b['createdAt']<_0x1cdecf['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x421a50[0x0],_0x32a0ce[0x0]))return!0x1;const _0x2e8fc8=Ft(_0x421a50[0x0]['attributes'],['groupId','trackingSessionId']),_0x36cd22=Ft(_0x32a0ce[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x4c5c2a(_0x2e8fc8,_0x36cd22))return!0x1;if(_0x421a50[0x0]['attributes']['groupId']==_0x32a0ce[0x0]['attributes']['groupId'])return!0x0;if(_0x421a50[0x0]['attributes']['trackingSessionId']!==_0x32a0ce[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x421a50['every'](_0x45f740=>_0x32a0ce['some'](_0x347a52=>_0x45f740['getFirstRange']()['isEqual'](_0x347a52['getFirstRange']())))&&_0x32a0ce['every'](_0x5d23e7=>_0x421a50['some'](_0x565fa1=>_0x5d23e7['getFirstRange']()['isEqual'](_0x565fa1['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x123474){const _0x138c3f=Array['from'](_0x123474),_0x44e3a0=this['getSuggestions']({'skipNotAttached':!0x0}),_0xcb60f=_0x44e3a0['filter'](_0x449ffe=>!_0x123474['has'](_0x449ffe)),_0x2a5124=new Map(_0x138c3f['map'](_0x1926a3=>[_0x1926a3,this['_suggestionFactory']['getSuggestionCallback'](_0x1926a3['type'],_0x1926a3['subType'],'join')])),_0x49c39e=new Map(_0x44e3a0['map'](_0x146a76=>[_0x146a76,_0x146a76['getRanges']()]));for(let _0x16a589=0x0;_0x16a589<_0x138c3f['length'];_0x16a589++){if(_0x3b8872(this,_0x138c3f[_0x16a589],_0x138c3f,_0x16a589+0x1))return!0x0;}for(let _0x5363c7=0x0;_0x5363c7<_0x138c3f['length'];_0x5363c7++){if(_0x3b8872(this,_0x138c3f[_0x5363c7],_0xcb60f,0x0))return!0x0;}return!0x1;function _0x3b8872(_0x4b10c4,_0x27ed2e,_0x6472c1,_0x37234a){for(let _0xd4e023=_0x37234a;_0xd4e023<_0x6472c1['length'];_0xd4e023++){const _0x2f90e0=_0x6472c1[_0xd4e023];if(_0x2f90e0['type']!==_0x27ed2e['type']||_0x2f90e0['author']['id']!==_0x27ed2e['author']['id']||_0x2f90e0['subType']!==_0x27ed2e['subType'])continue;if(!Qt(_0x27ed2e,_0x2f90e0))continue;if('attribute'==_0x27ed2e['type']&&_0x27ed2e['data']['oldValue']!=_0x2f90e0['data']['oldValue'])continue;if('attribute'==_0x27ed2e['type']&&_0x4b10c4['_isBlockAttribute'](_0x27ed2e['data']['key']))continue;if('formatBlock'==_0x27ed2e['type']){const _0x2b88a6=_0x4b10c4['editor']['model'],_0x34b1db=_0x27ed2e['getContainedElement']();if(_0x34b1db&&(_0x2b88a6['schema']['isObject'](_0x34b1db)||_0x2b88a6['schema']['isLimit'](_0x34b1db)))continue;}const _0x185869=_0x2a5124['get'](_0x27ed2e),_0x2c15cd=_0x49c39e['get'](_0x27ed2e),_0x5bc238=_0x49c39e['get'](_0x2f90e0),_0x2b16d6=_0x27ed2e['commentThread']&&_0x27ed2e['commentThread']['length'],_0xb2ea07=_0x2f90e0['commentThread']&&_0x2f90e0['commentThread']['length'];if(!_0x2b16d6&&_0x185869(_0x5bc238,_0x2c15cd))return _0x4b10c4['_joinSuggestions'](_0x2f90e0,_0x27ed2e),_0x49c39e['delete'](_0x27ed2e),!0x0;if(!_0xb2ea07&&_0x185869(_0x2c15cd,_0x5bc238))return _0x4b10c4['_joinSuggestions'](_0x27ed2e,_0x2f90e0),_0x49c39e['delete'](_0x2f90e0),!0x0;}return!0x1;}}['_joinSuggestions'](_0x45708f,_0x27e444){if(_0x45708f['isMultiRange']){for(const _0x4b520d of _0x27e444['getRanges']())_0x45708f['addRange'](_0x4b520d);}else{const _0x980a2c=_0x27e444['getFirstRange']()['end'];this['_setSuggestionRange'](_0x45708f,this['_model']['createRange'](_0x45708f['getFirstRange']()['start'],_0x980a2c));}_0x27e444['removeMarkers']();}['_getMarkerAnnouncementText'](_0x5f178d,_0x40ac26,_0x185da7){const _0x241fe8=_0x5f178d['startsWith']('format')||_0x5f178d['startsWith']('attribute')?'FORMATTING':_0x5f178d['toUpperCase']();return c(this['editor']['locale'],_0x40ac26+'_'+_0x241fe8+'_SUGGESTION_ANNOUNCEMENT',_0x185da7);}['_initAriaMarkerChangeAnnouncements'](){const _0x1eccb7=this['editor'];if(!_0x1eccb7['ui'])return;const {ariaLiveAnnouncer:_0x88b76c}=_0x1eccb7['ui'];_0x619df9(this['_model'],({left:_0x59a213,entered:_0x4b3cc8})=>{for(const _0x147b56 of _0x59a213){const {group:_0x5c46b9,type:_0x277561}=this['_splitMarkerName'](_0x147b56['name']);if('suggestion'===_0x5c46b9){_0x88b76c['announce'](this['_getMarkerAnnouncementText'](_0x277561,'LEAVE'));break;}}for(const _0x3720d7 of _0x4b3cc8){const {group:_0x47c829,type:_0x56a4b9}=this['_splitMarkerName'](_0x3720d7['name']);if('suggestion'===_0x47c829){_0x88b76c['announce'](this['_getMarkerAnnouncementText'](_0x56a4b9,'ENTER',_0x26c402(_0x2ddebb)));break;}}});}['_processAttributeChanges'](_0x9bb6d9){if(this['_recordAttributeSuggestions'])return!0x1;const _0xd435d7=this['editor'],_0x35b818=_0xd435d7['model']['document']['differ']['getChanges']();if(0x0==_0x35b818['length'])return!0x1;const _0x17aa2a=[],_0x2501a0=_0x35b818['filter'](_0x48af1a=>'attribute'==_0x48af1a['type']),_0x370c21=_0x35b818['filter'](_0x138b63=>'insert'==_0x138b63['type']&&'$text'!=_0x138b63['name']),_0x2e9ee0=_0x35b818['filter'](_0x1f40c1=>'remove'==_0x1f40c1['type']&&'$text'!=_0x1f40c1['name']);for(const _0x2c5f0d of _0x2501a0)_0x17aa2a['push']({'key':_0x2c5f0d['attributeKey'],'newValue':_0x2c5f0d['attributeNewValue'],'oldValue':_0x2c5f0d['attributeOldValue'],'range':qt(_0x2c5f0d['range'],_0xd435d7['model'])});for(const _0x381146 of _0x370c21){const _0x32d07e=_0x2e9ee0['find'](_0x19ac0e=>_0x19ac0e['position']['isEqual'](_0x381146['position']));_0x32d07e&&_0x17aa2a['push']({'key':u,'newValue':_0x381146['name'],'oldValue':_0x32d07e['name'],'range':_0xd435d7['model']['createRangeOn'](_0x381146['position']['nodeAfter'])});}return 0x0!=_0x17aa2a['length']&&this['_reduceExistingSuggestions'](_0x9bb6d9,_0x17aa2a);}['_processAttributeSuggestions'](_0x126d44){let _0x3166ed=!0x1;const _0x568e01=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x27f7a1=>_0x27f7a1['data']['newRange']&&_0x27f7a1['name']['startsWith']('suggestion:attribute:'));for(const _0x37d611 of _0x568e01){const {subType:_0x5a403f,id:_0x246653}=this['_splitMarkerName'](_0x37d611['name']),_0x269b62=_0x5a403f['split']('|')[0x0];for(const _0x110e2d of this['getSuggestions']({'skipNotAttached':!0x0}))_0x110e2d['id']!=_0x246653&&'attribute'==_0x110e2d['type']&&_0x110e2d['data']&&_0x110e2d['data']['key']==_0x269b62&&_0x110e2d['getFirstRange']()['isIntersecting'](_0x37d611['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x110e2d,_0x37d611['data']['newRange'],_0x126d44),_0x3166ed=!0x0);}return _0x3166ed;}['_recordAttributeChanges'](_0x2fd5be){this['_recordAttributeSuggestions']=!0x0,_0x2fd5be();}['_isRegisteredAttribute'](_0x106356){const _0x1f130d=this['_isBlockAttribute'](_0x106356),_0x4bec86=this['_inlineAttributeKeys']['has'](_0x106356);return _0x1f130d||_0x4bec86;}['_reduceExistingSuggestions'](_0x4cb3e3,_0x19b23b){if(0x0==_0x19b23b['length'])return!0x1;let _0x447267=!0x1;for(const _0x3444d8 of _0x19b23b){const _0xe378da=this['_findSuggestions'](_0x3444d8['range'],'attribute')['filter'](_0x4b54de=>!_0x4b54de['meta']['isNextTo'])['map'](_0x30f008=>_0x30f008['suggestion']),_0x1062b9=_0x3ed617({'newValue':_0x3444d8['newValue']});_0xe378da['filter'](_0x411612=>{const [_0xd95617,_0x1c9d1d]=_0x411612['subType']['split']('|');return _0xd95617==_0x3444d8['key']&&_0x1c9d1d!=_0x1062b9;})['forEach'](_0xf0ee41=>{this['_reduceSuggestionAttributeRange'](_0xf0ee41,_0x3444d8['range'],_0x4cb3e3),_0x447267=!0x0;});}return _0x447267;}['_reduceSuggestionAttributeRange'](_0x560cee,_0x4539c4,_0x3b064f){const _0x12f54b=_0x560cee['getFirstRange']()['getDifference'](_0x4539c4);0x0!==_0x12f54b['length']?0x1!==_0x12f54b['length']?this['_breakSuggestionMarker'](_0x560cee,_0x4539c4['start'],_0x4539c4['end']):this['_setSuggestionRange'](_0x560cee,_0x12f54b[0x0]):_0x3b064f['removeMarker'](_0x560cee['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5eaaa9){this['_editor']=_0x5eaaa9,this['_model']=_0x5eaaa9['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x5be3ca,_0x1cedc5,_0x53a6f3,_0x505ed9,_0x350083,_0x37ec58,_0x1c7f8b){return new o(this['_model'],{'type':_0x5be3ca,'subType':_0x1cedc5,'id':_0x53a6f3,'originalSuggestionId':_0x1c7f8b,'author':_0x505ed9,'creator':_0x505ed9,'attributes':_0x350083,'onAttributesChange':_0x37ec58,'onAccept':(..._0xf845e1)=>this['getSuggestionCallback'](_0x5be3ca,_0x1cedc5,'accept')(..._0xf845e1),'onDiscard':(..._0x30ea3d)=>this['getSuggestionCallback'](_0x5be3ca,_0x1cedc5,'discard')(..._0x30ea3d)});}['registerCustomCallback'](_0x150442,_0x266cee,_0x2787b0,_0x1d0eea){const _0x253442=_0x150442+':'+_0x266cee+':'+_0x2787b0;this['_customCallbacks']['set'](_0x253442,_0x1d0eea);}['getSuggestionCallback'](_0x210244,_0x114764,_0x1c245a){const _0x415cb3=_0x210244+':'+_0x114764+':'+_0x1c245a;return this['_customCallbacks']['get'](_0x415cb3)||this['_defaultCallbacks']['get'](_0x210244+':'+_0x1c245a);}['_registerDefaultCallbacks'](){const _0x19ffa2=()=>!0x1,_0x3f52f1=_0xa4ad4b=>{_0xa4ad4b['sort']((_0x172d2f,_0x32c9ff)=>_0x172d2f['start']['isBefore'](_0x32c9ff['start'])?0x1:-0x1),this['_model']['change'](_0x6050a5=>{for(const _0x11fc20 of _0xa4ad4b){let _0x86721;_0x86721=_0x11fc20['end']['isAtEnd']&&_0x11fc20['end']['parent']==_0x11fc20['start']['nodeAfter']?_0x6050a5['createSelection'](_0x11fc20['start']['nodeAfter'],'on'):_0x6050a5['createSelection'](_0x11fc20),this['_model']['deleteContent'](_0x86721,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x160144=(_0x259952,_0x2b134c)=>{_0x2b134c&&this['_model']['change'](_0x6e6fab=>{const {commandName:_0xc99a83,commandParams:_0x52d2a7=[]}=_0x2b134c,_0x4fe570=_0x259952['map'](_0x48b825=>(Lt(_0x48b825)&&(_0x48b825=this['_model']['createRange'](_0x48b825['end'])),_0x48b825))['filter'](_0x6a60de=>'$graveyard'!==_0x6a60de['root']['rootName']);if(_0x4fe570['length']<0x1)return;const _0x5c0864=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3e3a1f=>_0x268add['fromRange'](_0x3e3a1f));_0x6e6fab['setSelection'](_0x4fe570);for(const _0x4aa2ab of this['_editor']['commands']['commands']())_0x4aa2ab['refresh']();_0x52d2a7['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0xc99a83,..._0x52d2a7);const _0x10b9bd=_0x5c0864['filter'](_0x2e1f74=>'$graveyard'!=_0x2e1f74['root']['rootName']);_0x10b9bd['length']>0x0&&_0x6e6fab['setSelection'](_0x10b9bd);for(const _0xb6bfef of _0x5c0864)_0xb6bfef['detach']();});},_0x4bde33=(_0x51840e,_0x304530)=>0x1==_0x51840e['length']&&0x1==_0x304530['length']&&_0x51840e[0x0]['end']['isEqual'](_0x304530[0x0]['start']),_0xec26b1=(_0xe8241,_0x54e75a,_0x3bd1a1,_0x124d94)=>Wt(_0xe8241,_0x54e75a,_0x3bd1a1,_0x124d94)?[_0xe8241,_0x54e75a]:Wt(_0x54e75a,_0xe8241,_0x124d94,_0x3bd1a1)?[_0x54e75a,_0xe8241]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x19ffa2),this['_defaultCallbacks']['set']('insertion:discard',_0x3f52f1),this['_defaultCallbacks']['set']('insertion:join',_0x4bde33),this['_defaultCallbacks']['set']('insertion:chain',_0xec26b1),this['_defaultCallbacks']['set']('deletion:accept',_0x3f52f1),this['_defaultCallbacks']['set']('deletion:discard',_0x19ffa2),this['_defaultCallbacks']['set']('deletion:join',_0x4bde33),this['_defaultCallbacks']['set']('deletion:chain',_0xec26b1),this['_defaultCallbacks']['set']('formatInline:accept',_0x160144),this['_defaultCallbacks']['set']('formatInline:discard',_0x19ffa2),this['_defaultCallbacks']['set']('formatInline:join',_0x4bde33),this['_defaultCallbacks']['set']('formatInline:chain',_0x19ffa2),this['_defaultCallbacks']['set']('formatBlock:accept',_0x160144),this['_defaultCallbacks']['set']('formatBlock:discard',_0x19ffa2),this['_defaultCallbacks']['set']('formatBlock:join',_0x4bde33),this['_defaultCallbacks']['set']('formatBlock:chain',_0x19ffa2),this['_defaultCallbacks']['set']('attribute:accept',_0x19ffa2),this['_defaultCallbacks']['set']('attribute:discard',(_0x2cfd3c,_0x4887e2)=>{if(!_0x4887e2)return;const _0x100766=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x4af0da=>{if(_0x4887e2['key']==u)for(const _0x96643 of _0x2cfd3c){const _0xff626=_0x96643['start']['nodeAfter'],_0x247956=_0x4887e2['oldValue'];_0x4af0da['rename'](_0xff626,_0x247956);}else{if(_0x100766['_isBlockAttribute'](_0x4887e2['key'])){for(const _0x30feb7 of _0x2cfd3c)void 0x0!==_0x4887e2['oldValue']?_0x4af0da['setAttribute'](_0x4887e2['key'],_0x4887e2['oldValue'],_0x30feb7['start']['nodeAfter']):_0x4af0da['removeAttribute'](_0x4887e2['key'],_0x30feb7['start']['nodeAfter']);}else{for(const _0x14af77 of _0x2cfd3c)_0x4887e2['oldValue']?_0x4af0da['setAttribute'](_0x4887e2['key'],_0x4887e2['oldValue'],_0x14af77):_0x4af0da['removeAttribute'](_0x4887e2['key'],_0x14af77);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4bde33);}}function Gt(_0x4e5d76,_0x4f1490,_0x5f2605){for(const _0xda67a3 of _0x4f1490['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xda67a3['root']==_0xda67a3)return!0x1;if(!_0x5f2605['containsItem'](_0xda67a3))return!0x1;if(_0x4e5d76['isObject'](_0xda67a3)||_0x4e5d76['isLimit'](_0xda67a3))return!0x0;}return!0x1;}function Lt(_0x4792df){return _0x4792df['end']['parent']==_0x4792df['start']['nodeAfter']&&_0x4792df['end']['isAtStart'];}function Jt(_0x325cfc,_0x2ed4e2,_0x2777e0,_0x3ae60e){const _0x3bb7a2=_0x46431e=>!_0x46431e['item']['is']('$textProxy')&&!_0x3ae60e['isObject'](_0x46431e['item']),_0x18d1bf=_0x325cfc['start']['getLastMatchingPosition'](_0x3bb7a2),_0x11f4b7=_0x325cfc['end']['getLastMatchingPosition'](_0x3bb7a2,{'direction':'backward'});return(!_0x325cfc['start']['isEqual'](_0x18d1bf)||!_0x325cfc['end']['isEqual'](_0x11f4b7))&&(_0x18d1bf['isBefore'](_0x11f4b7)?_0x2777e0['updateMarker'](_0x2ed4e2,{'range':_0x2777e0['createRange'](_0x18d1bf,_0x11f4b7)}):_0x2777e0['removeMarker'](_0x2ed4e2),!0x0);}function Kt(_0x2fb5cf){return _0x3ed617(_0x2fb5cf);}function Ht(_0x3d5b4a){const _0x4b980f=_0x3d5b4a['start']['nodeAfter'];return _0x4b980f&&_0x4b980f['is']('element');}function qt(_0x401fed,_0x1a3f48){return null==_0x401fed['end']['nodeBefore']&&_0x401fed['end']['parent']==_0x401fed['start']['nodeAfter']?zt(_0x401fed['start']['nodeAfter'],_0x1a3f48):_0x401fed;}function zt(_0x5ecc4b,_0x5a547e){const _0x229f28=_0x5a547e['schema']['isObject'](_0x5ecc4b)||_0x5a547e['schema']['isSelectable'](_0x5ecc4b);return _0x5a547e['createRange'](_0x5a547e['createPositionAt'](_0x5ecc4b,'before'),_0x229f28?_0x5a547e['createPositionAfter'](_0x5ecc4b):_0x5a547e['createPositionAt'](_0x5ecc4b,'end'));}function Wt(_0x3087f6,_0x40f330,_0x35b51f,_0x1b4080){return!!Qt(_0x3087f6,_0x40f330)&&_0x35b51f['end']['isEqual'](_0x1b4080['start']);}function Qt(_0x35f0d9,_0x54ce6e){if(!_0x35f0d9['_isDataLoaded']||!_0x54ce6e['_isDataLoaded'])return!0x1;const _0x4615ed=new Set(Object['keys'](_0x35f0d9['attributes'])),_0x49112b=new Set(Object['keys'](_0x54ce6e['attributes']));if(_0x4615ed['delete']('groupId'),_0x49112b['delete']('groupId'),0x0==_0x4615ed['size']&&0x0==_0x49112b['size'])return!0x0;if(_0x4615ed['size']!=_0x49112b['size'])return!0x1;const _0x4a2f47={..._0x35f0d9['attributes']},_0x5164d7={..._0x54ce6e['attributes']};return delete _0x4a2f47['groupId'],delete _0x5164d7['groupId'],JSON['stringify'](_0x4a2f47)==JSON['stringify'](_0x5164d7);}function Xt(_0x1a0dd6,_0x341dad){const _0x3cf0a2=Yt(_0x1a0dd6['attributes']),_0x31f207=Yt(_0x341dad);if(!_0x1a0dd6['_isDataLoaded'])return!0x1;for(const _0x1bc14e of Object['keys'](_0x31f207))if(!_0x4c5c2a(_0x3cf0a2[_0x1bc14e],_0x31f207[_0x1bc14e]))return!0x1;return!0x0;}function Yt(_0x2b2187){const _0x58d2fd=Object['assign']({},_0x2b2187);return delete _0x58d2fd['skipNestingCheck'],delete _0x58d2fd['tablePasteChainId'],_0x58d2fd;}class pe extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x39e58d(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x50d361,_0x5eee44,_0x2311b7,_0x30c054){super(),this['model']=_0x5eee44,this['view']=_0x2311b7,this['commentThreadController']=_0x30c054,this['_editor']=_0x50d361,this['_acceptCommand']=_0x50d361['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x50d361['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x405f88,_0x146fd3)=>_0x405f88||_0x146fd3),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x186f58=>_0x186f58&&this['_editor']['model']['canEditAt'](_0x5eee44['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x56b8a8=>_0x56b8a8&&this['_editor']['model']['canEditAt'](_0x5eee44['getRanges']())),this['_pendingAction']=null,_0x2311b7['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2311b7,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2311b7,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2311b7,'change:isDirty',()=>{_0x2311b7['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 _0x49ef66=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x49ef66);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x227acf{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x44e0fe,_0x63984e,_0x5e21a2,_0x4806c0){super(_0x44e0fe),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x784425(_0x44e0fe,c(_0x44e0fe,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x63984e['authoredAt']),this['bind']('authoredAt')['to'](_0x63984e),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',_0x63984e,'authoredAt',this,'descriptionParts',(_0x2badac,_0x4fc15b,_0x3b4526)=>{const _0x5be81f=_0x3b4526['map'](_0x34b669=>ls(_0x34b669['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x2badac-0x1,_0x63984e['author']['name'],_0x4fc15b?_0x4806c0['formatDateTime'](_0x4fc15b):'',new DOMParser()['parseFromString'](_0x5be81f,'text/html')['body']['textContent']]);}),this['focusables']=new _0x49b3dd(),this['focusTracker']=new _0x2e8585(),this['keystrokes']=new _0x1cdd14(),this['focusCycler']=new _0x4b6c41({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4871d9=>_0x4871d9['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x63984e,this['_localUser']=_0x5e21a2,this['_config']=_0x4806c0,_0x4806c0['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x24eb33(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x52ad62}=this['_config'];this['commentsListView']=new _0x52ad62(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',_0x382432=>_0x382432+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x43ef9a,_0x23efc1)=>_0x43ef9a||!!_0x23efc1);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x16ae25}=this['_config'],_0x57046c=new _0x16ae25(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5eac11=_0x57046c['commentInputView'];return _0x57046c['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5eac11,'value',(_0x30293a,_0x23916d,_0x1bbc81)=>!!_0x1bbc81||_0x30293a&&!_0x23916d),_0x5eac11['on']('submit',(_0x766c99,_0x433b5f)=>{this['fire']('addComment',_0x433b5f),_0x5eac11['editor']['setData']('');}),_0x5eac11['on']('cancel',()=>this['focus']()),_0x5eac11['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x57046c;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x4bda8d,_0x3ab004,_0x2ecfa9,_0xd13cb0){super(_0x4bda8d,_0x3ab004,_0x2ecfa9,_0xd13cb0),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3201ae=>_0x3201ae&&_0x3201ae[0x0]?_0x3201ae[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x20a62b,_0x266f8b)=>{let _0x37d206='';for(const _0x59b100 of _0x20a62b)_0x37d206+='<p>'+ls(_0x59b100['content'],_0x59b100['color'])+'</p>';return _0x266f8b?_0x37d206:ti(_0x37d206,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0xd13cb0['SuggestionView'](_0x4bda8d,_0x3ab004,{'formatDateTime':_0xd13cb0['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 _0x146a44=this['bindTemplate'],_0x57b037=[this['suggestionView']];return this['commentsListView']&&_0x57b037['push'](this['commentsListView']),this['commentThreadInputView']&&_0x57b037['push'](this['commentThreadInputView']),_0x57b037['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x146a44['if']('isActive','ck-suggestion-wrapper--active'),_0x146a44['to']('type',_0x201c58=>'ck-suggestion-'+_0x201c58),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':_0x146a44['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x57b037};}['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 _0x227acf{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x1624c4,_0x288e25,_0x169fce){super(_0x1624c4),this['_model']=_0x288e25,this['_config']=_0x169fce,this['set']('description',''),this['bind']('authoredAt')['to'](_0x288e25),this['acceptButton']=this['_createButton'](c(_0x1624c4,'Accept\x20suggestion'),_0x2d481a,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x1624c4,'Discard\x20suggestion'),_0x35c47,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0xb2de16(_0x1624c4,_0x288e25['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x49b3dd([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x2e8585(),this['keystrokes']=new _0x1cdd14(),this['focusCycler']=new _0x4b6c41({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x20fc93=>_0x20fc93['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x1ee10f=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x1ee10f['innerHTML']=this['description'],this['on']('change:description',(_0x43ed89,_0x2168e2,_0x2db7b5)=>{_0x1ee10f['innerHTML']=_0x2db7b5;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x463da6=this['bindTemplate'],_0x38d492=[{'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':_0x463da6['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x463da6['to']('authoredAt',_0x4edded=>this['_config']['formatDateTime'](_0x4edded))}]}]},{'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']&&_0x38d492['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':_0x38d492}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x38cbeb,_0x2bafd5,_0xd559dc,_0x163035,_0x8b9b2f){const _0x32e748=new _0x44c3f4(this['locale']);return _0x32e748['set']({'label':_0x38cbeb,'icon':_0x2bafd5,'tooltip':!0x0,'tooltipPosition':_0x8b9b2f}),_0x32e748['extendTemplate']({'attributes':{'class':_0xd559dc}}),_0x32e748['on']('execute',()=>{this['fire'](_0x163035,this['_model']['id']);}),_0x32e748;}['_setupKeyboardNavigation'](){const _0x391946=this['element'];this['keystrokes']['listenTo'](_0x391946);for(const _0x2f8b78 of this['focusables'])this['focusTracker']['add'](_0x2f8b78['element']),this['keystrokes']['listenTo'](_0x2f8b78['element']);this['keystrokes']['set']('enter',(_0x4b78ac,_0x84f2e3)=>{_0x391946===_0x4b78ac['target']&&(this['focusCycler']['focusFirst'](),_0x84f2e3());}),this['keystrokes']['set']('esc',(_0x14fc1d,_0x41b954)=>{_0x391946!==_0x14fc1d['target']&&(this['focus'](),_0x41b954());});}}class d extends _0x3b35c4{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x30d22a,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2de1df){super(_0x2de1df),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4a1abb=this['editor']['config'];_0x4a1abb['define']('trackChanges.SuggestionThreadView',fe),_0x4a1abb['define']('trackChanges.SuggestionView',we),_0x4a1abb['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4a1abb['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x2e5210,_0x5334b0){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x4cf4b9,_0x43a6bb]of this['_handleControllerBuffer']){const _0x2dd9bd=this['_suggestionToController']['has'](_0x4cf4b9);_0x2dd9bd||_0x43a6bb?_0x2dd9bd&&_0x43a6bb&&this['_destroyController'](_0x4cf4b9):this['_initializeController'](_0x4cf4b9);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x2e5210,_0x5334b0);}['init'](){const _0x2a0708=this['editor'],_0x466c59=_0x2a0708['plugins']['get']('TrackChangesEditing'),_0x13c81c=_0x2a0708['plugins']['get']('Annotations'),_0x2b0d5b=_0x2a0708['plugins']['get']('EditorAnnotations'),_0x2f49ea=_0x2a0708['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x2b0d5b['addSourceCollector'](()=>{const _0x544028=[];for(const [_0x5169c7,_0x1a7926]of Array['from'](this['_suggestionToController'])){const _0x376f51=_0x5169c7['getAllAdjacentSuggestions'](),_0x28bfc0=[];for(const _0x406812 of _0x376f51){if(!_0x406812['isInContent'])continue;if(_0x406812['isMultiRange']){_0x28bfc0['push'](..._0x406812['getRanges']());continue;}const _0xced20d=_0x406812['getFirstRange']();if(_0x28bfc0['length']>0x0){const _0x4746df=_0x28bfc0[0x0]['getJoined'](_0xced20d);if(_0x4746df){_0x28bfc0[0x0]=_0x4746df;continue;}}_0x28bfc0['push'](_0xced20d);}_0x544028['push']([_0x1a7926['view'],_0x28bfc0]);}return _0x544028;}),this['listenTo'](_0x466c59,'suggestionLoaded',(_0x1a1465,_0x4fe353)=>{this['listenTo'](_0x4fe353,'change:previous',(_0x5f040b,_0x5cc6b3,_0x161b57,_0x26716a)=>{_0x4fe353['isInContent']&&(null==_0x161b57?(this['_updateController'](_0x26716a['head']),this['_handleSuggestionControllerDelayed'](_0x4fe353,!0x1)):(this['_updateController'](_0x161b57['head']),null==_0x26716a&&this['_handleSuggestionControllerDelayed'](_0x4fe353,!0x0)));}),null!==_0x4fe353['previous']?this['_updateController'](_0x4fe353['head']):this['_handleSuggestionControllerDelayed'](_0x4fe353,!0x1);}),this['listenTo'](_0x466c59,'suggestionUnloaded',(_0x213849,_0x397ced,_0x22b095)=>{this['stopListening'](_0x397ced,'change:previous'),this['_handleControllerBuffer']['delete'](_0x397ced),this['_suggestionToController']['has'](_0x397ced)&&this['_destroyController'](_0x397ced),_0x22b095&&this['_updateController'](_0x22b095['head']);}),this['listenTo'](_0x466c59,'suggestionChanged',(_0x413b30,_0x40b501)=>{this['_updateController'](_0x40b501);}),this['listenTo'](_0x13c81c,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x2f49ea,'addComment',(_0x2d03da,{threadId:_0x88dee3,isFromAdapter:_0x456df4})=>{if(_0x456df4||!_0x466c59['hasSuggestion'](_0x88dee3))return;const _0x2ef1f3=_0x466c59['getSuggestion'](_0x88dee3);this['_suggestionToController']['get'](_0x2ef1f3)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3b404d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4bb5e3;for(const _0x9757f6 in _0x3b404d){const _0x861c68=_0x9757f6,_0x2bc03f=_0x3b404d[_0x861c68];if('trackChangesLicenseKeyValid'==_0x2bc03f||'trackChangesLicenseKeyInvalid'==_0x2bc03f||'trackChangesLicenseKeyExpired'==_0x2bc03f||'trackChangesLicenseKeyDomainLimit'==_0x2bc03f||'trackChangesLicenseKeyNotAllowed'==_0x2bc03f||'trackChangesLicenseKeyEvaluationLimit'==_0x2bc03f||'trackChangesLicenseKeyTrialLimit'==_0x2bc03f||'trackChangesLicenseKeyUsageLimit'==_0x2bc03f){delete _0x3b404d[_0x861c68],_0x4bb5e3=_0x2bc03f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x4bb5e3&&_0x3b404d['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x4bb5e3&&_0x3b404d['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x4bb5e3&&_0x3b404d['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x4bb5e3&&_0x3b404d['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x4bb5e3&&_0x3b404d['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x4bb5e3&&_0x3b404d['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x4bb5e3&&_0x3b404d['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x5cffbc=this['editor']['plugins']['get']('Annotations'),_0x434c0a=this['editor']['plugins']['get']('TrackChangesEditing'),_0xb5e649=Array['from'](_0x5cffbc['activeAnnotations'],_0xaa677f=>_0xaa677f['innerView'])['filter'](_0x523d94=>this['_viewToController']['has'](_0x523d94)),_0x79bc08=[];for(const _0x3bfb93 of _0xb5e649){const _0x1dea0f=this['_viewToController']['get'](_0x3bfb93)['model']['getAllAdjacentSuggestions']();_0x79bc08['push'](..._0x1dea0f['reduce']((_0x5b75b4,_0x4bce4f)=>[..._0x5b75b4,..._0x4bce4f['getMarkerNames']()],[]));}_0x434c0a['activeMarkers']=_0x79bc08;}['_addUIComponentsToFactory'](){const _0x3058ae=this['editor'],_0x458734=_0x3058ae['locale'],_0x2acd53=c(_0x458734,'Track\x20changes'),_0x44cc16=new _0x28345c([{'type':'switchbutton','model':new _0x4eb3cd({'withText':!0x0,'isToggleable':!0x0,'label':_0x2acd53,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x4eb3cd({'withText':!0x0,'label':c(_0x458734,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4eb3cd({'withText':!0x0,'label':c(_0x458734,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4eb3cd({'withText':!0x0,'label':c(_0x458734,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4eb3cd({'withText':!0x0,'label':c(_0x458734,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x3058ae['plugins']['has']('TrackChangesPreview')&&_0x44cc16['addMany']([{'type':'separator'},{'type':'button','model':new _0x4eb3cd({'withText':!0x0,'label':c(_0x458734,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x469752 of _0x44cc16)if(ke(_0x469752)){const _0x379c1c=_0x3058ae['commands']['get'](_0x469752['model']['commandName']);_0x469752['model']['bind']('isOn','isEnabled')['to'](_0x379c1c,'value','isEnabled');}_0x3058ae['ui']['componentFactory']['add']('trackChanges',_0xfba92=>this['_createToolbarButton'](_0xfba92,_0x44cc16,_0x2acd53)),_0x3058ae['ui']['componentFactory']['add']('menuBar:trackChanges',_0x5e3013=>this['_createMenuBarMenu'](_0x5e3013,_0x44cc16,_0x2acd53));}['_createToolbarButton'](_0x4e4e31,_0x438000,_0xb1d19c){const _0x2c5cb6=_0x3f6a89(_0x4e4e31,_0xc75dec),_0x426b0f=this['editor']['commands']['get']('trackChanges');_0x2c5cb6['buttonView']['set']({'tooltip':_0xb1d19c,'label':_0xb1d19c,'icon':_0x328e47}),_0x2c5cb6['buttonView']['bind']('isOn')['to'](_0x426b0f,'value'),_0x2c5cb6['buttonView']['on']('execute',()=>{_0x426b0f['execute'](),this['editor']['editing']['view']['focus']();}),_0x4ae9e0(_0x2c5cb6,_0x438000,{'role':'menu'});const _0x28c611=[];for(const _0x495b45 of _0x438000)ke(_0x495b45)&&_0x28c611['push'](this['editor']['commands']['get'](_0x495b45['model']['commandName']));const _0x3b424b=_0x2c5cb6['buttonView'];return _0x3b424b['actionView']['unbind']('isEnabled'),_0x3b424b['arrowView']['unbind']('isEnabled'),_0x3b424b['actionView']['bind']('isEnabled')['to'](_0x426b0f,'isEnabled'),_0x3b424b['arrowView']['bind']('isEnabled')['toMany'](_0x28c611,'isEnabled',(..._0x30fea9)=>_0x30fea9['some'](_0x5d90c0=>_0x5d90c0)),_0x2c5cb6['on']('execute',_0x4edf79=>{this['editor']['execute'](_0x4edf79['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2c5cb6;}['_createMenuBarMenu'](_0x51f7b2,_0x33d124,_0x4b4639){const _0x38a570=new _0x1a7567(_0x51f7b2),_0x1bd520=this['editor']['commands']['get']('trackChanges');_0x38a570['buttonView']['set']({'label':_0x4b4639,'icon':_0x328e47});const _0xcb8a9a=new _0x4d5f26(_0x51f7b2);for(const _0x586eb1 of _0x33d124){if('separator'==_0x586eb1['type']){_0xcb8a9a['items']['add'](new _0xd2db54(_0x51f7b2));continue;}const _0x10bd33=new _0x52ff2f(_0x51f7b2,_0x38a570),_0x34fc54=new _0x87f93d(_0x51f7b2),_0x554de1=_0x586eb1['model'];_0x34fc54['bind'](...Object['keys'](_0x554de1))['to'](_0x554de1),_0x34fc54['delegate']('execute')['to'](_0x38a570),_0x34fc54['on']('execute',()=>{this['editor']['execute'](_0x554de1['commandName']),this['editor']['editing']['view']['focus']();}),_0x10bd33['children']['add'](_0x34fc54),_0xcb8a9a['items']['add'](_0x10bd33);}return _0x38a570['bind']('isEnabled')['to'](_0x1bd520,'isEnabled'),_0x38a570['panelView']['children']['add'](_0xcb8a9a),_0x38a570;}['_initializeController'](_0x4a91a3){const _0x1f38d6=this['editor'],_0x1fd406=_0x1f38d6['config'],_0x49c74f=_0x1f38d6['plugins']['get']('Annotations'),_0x302d92=_0x1f38d6['plugins']['get']('CommentsRepository'),_0x165564=_0x1f38d6['plugins']['get']('EditorAnnotations'),_0x3b3e75=_0x1f38d6['plugins']['get'](_0x30d22a)['me'],_0x1766e4=_0x1fd406['get']('trackChanges')['SuggestionThreadView'],_0x9f190b=_0x1fd406['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x25efc4,CommentThreadInputView:_0x4c508c}=_0x1f38d6['plugins']['get']('CommentsUI');let _0x20f07b,_0x56e50f,_0x2d5925;this['_annotationViews']['has'](_0x4a91a3['id'])?(_0x56e50f=this['_annotationViews']['get'](_0x4a91a3['id']),_0x20f07b=_0x56e50f['mainView']):(_0x20f07b=new _0x1766e4(_0x1f38d6['locale'],_0x4a91a3,_0x3b3e75,{'disableComments':this['_disableComments'],'editorConfig':{..._0x1fd406['get']('comments.editorConfig'),'licenseKey':_0x1fd406['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x1fd406['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x1fd406['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x1fd406['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3e5c82(_0x1fd406['get']('locale'),_0x1f38d6['locale']),'CommentView':_0x1fd406['get']('comments')['CommentView'],'CommentsListView':_0x25efc4,'CommentThreadInputView':_0x4c508c,'SuggestionView':_0x9f190b}),_0x20f07b['suggestionView']['acceptButton']['on']('execute',()=>{_0x1f38d6['editing']['view']['focus']();}),_0x20f07b['suggestionView']['discardButton']['on']('execute',()=>{_0x1f38d6['editing']['view']['focus']();}),_0x56e50f=_0x49c74f['createAnnotationView'](this['editor']['locale'],_0x20f07b),_0x56e50f['bind']('isDirty')['to'](_0x20f07b,'isDirty'),_0x56e50f['bind']('length')['to'](_0x20f07b),_0x56e50f['bind']('type')['to'](_0x20f07b,'type',_0x47861a=>'suggestion-'+_0x47861a),_0x20f07b['on']('escape',()=>{_0x2d5925['fire']('escape');}),this['_annotationViews']['set'](_0x4a91a3['id'],_0x56e50f));const _0x2b70d1=_0x302d92['createCommentThreadController'](_0x4a91a3['commentThread'],_0x20f07b),_0x5549af=new pe(_0x1f38d6,_0x4a91a3,_0x20f07b,_0x2b70d1),_0x364b6e=_0x4a91a3['getAllAdjacentSuggestions']()['filter'](_0x2233da=>_0x2233da['isInContent']);_0x20f07b['descriptionParts']=_0x1f38d6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x364b6e),this['_suggestionToController']['set'](_0x4a91a3,_0x5549af),this['_viewToController']['set'](_0x20f07b,_0x5549af),_0x2d5925=_0x49c74f['createAnnotation']({'view':_0x56e50f,'target':()=>{const _0x55a673=[],_0xaf126c=_0x4a91a3['getAllAdjacentSuggestions']()['filter'](_0x3f4e06=>_0x3f4e06['isInContent']);for(const _0x21e4dc of _0xaf126c)_0x55a673['push'](..._0x21e4dc['getMarkers']());return _0x5a8a50(_0x1f38d6['editing'],_0x55a673);},'type':()=>'suggestion-'+_0x5549af['view']['type']}),_0x302d92['_bindAnnotationToEditors'](_0x20f07b,_0x2d5925),_0x49c74f['add'](_0x2d5925),_0x165564['registerAnnotation'](_0x2d5925);}['_destroyController'](_0x56de6d){const _0x429037=this['editor']['plugins']['get']('CommentsRepository'),_0x4b322e=this['editor']['plugins']['get']('Annotations'),_0x92e513=this['_suggestionToController']['get'](_0x56de6d),_0xabc007=_0x92e513['view'],_0x25033e=_0x4b322e['getByInnerView'](_0xabc007);_0x429037['_unbindEditors'](_0xabc007),_0x25033e&&_0x4b322e['remove'](_0x25033e),this['_suggestionToController']['delete'](_0x56de6d),this['_viewToController']['delete'](_0xabc007),_0x92e513['destroy']();}['_updateController'](_0x1d9507){if(!_0x1d9507['isInContent']||!this['_suggestionToController']['has'](_0x1d9507))return;const _0x21aee4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x15fcd3=this['_suggestionToController']['get'](_0x1d9507),_0x3256d7=_0x1d9507['getAllAdjacentSuggestions']();_0x15fcd3['view']['descriptionParts']=_0x21aee4['descriptionFactory']['getDescriptions'](_0x3256d7);}['destroy'](){for(const _0x110768 of this['_suggestionToController']['keys']())this['_destroyController'](_0x110768);for(const _0x1d4cc0 of this['_annotationViews']['values']())_0x1d4cc0['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x2029c9){return'model'in _0x2029c9;}class k extends _0x3b35c4{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x111372){this['editor']['plugins']['get'](p)['adapter']=_0x111372;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0xdf92eb){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0xdf92eb);}['getSuggestions']({skipNotAttached:_0x565380=!0x1,toJSON:_0x5b5f31=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x565380,'toJSON':_0x5b5f31});}['getSuggestion'](_0x4b5bd4){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x4b5bd4);}}const w=['Pagination'];class T extends _0x3b35c4{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x84c45f=this['editor'];if(_0x84c45f['config']['define']('trackChangesData.editorCreator',_0x4a4af8=>{const _0x2e6afb=_0x84c45f['model']['document']['getRootNames']()['reduce']((_0x12f85e,_0x3f89ea)=>(_0x12f85e[_0x3f89ea]='',_0x12f85e),{});return _0x84c45f['constructor']['create'](_0x2e6afb,_0x4a4af8);}),'function'!=typeof _0x84c45f['config']['get']('trackChangesData')['editorCreator'])throw new _0xc7eb95('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x250ad1){return N(this['editor'],!0x0,_0x250ad1);}['getDataWithDiscardedSuggestions'](_0x2bb25e){return N(this['editor'],!0x1,_0x2bb25e);}}class D extends _0x3b35c4{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x756461){function _0x5ee1a8(_0x331f7b){return _0x331f7b['map'](_0x379442=>String['fromCharCode'](_0x379442))['join']('');}super(_0x756461),this['result']='end',_0x756461[_0x5ee1a8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5ee1a8([0x76,0x69,0x65,0x77])][_0x5ee1a8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5ee1a8([0x61,0x75,0x74,0x6f]),_0x756461[_0x5ee1a8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5ee1a8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5ee1a8([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5ee1a8([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5ee1a8([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 Ge(_0x3e0471){return void 0x0!==_0x3e0471['getRootsAttributes'];}async function N(_0x5875c7,_0xc3610f,_0x2fc6bc){const _0x23e900=_0x9c03b3(_0x5875c7,w);_0x23e900['plugins']['push'](p,D),_0x23e900['rootsAttributes']=Ge(_0x5875c7)?_0x5875c7['getRootsAttributes']():void 0x0;const _0x1aaa1b=document['createDocumentFragment'](),_0x5298de=_0x5875c7['config']['get']('trackChangesData')['editorCreator'],_0x41a382=await _0x5298de(_0x23e900,()=>function(_0x18b5c4){const _0x35bad1=document['createElement']('div');return _0x18b5c4['appendChild'](_0x35bad1),_0x35bad1;}(_0x1aaa1b));!function(_0x47f232,_0x25eaed){const _0x16be05=_0x47f232['model']['document']['getRootNames']()['reduce']((_0x4447cd,_0x331395)=>(_0x4447cd[_0x331395]=_0x47f232['data']['get']({'rootName':_0x331395}),_0x4447cd),{}),_0x18d510=_0x47f232['plugins']['get']('Users')['users']['map'](_0x4de806=>({'id':_0x4de806['id'],'name':_0x4de806['name']})),_0x2ee8cb=_0x47f232['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x30f197=_0x47f232['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x228646=_0x25eaed['plugins']['get']('Users'),_0x5ab5df=_0x25eaed['plugins']['get']('TrackChangesEditing'),_0x2eb4b6=_0x25eaed['plugins']['get']('CommentsRepository');for(const _0x4dd1ad of _0x2eb4b6['getCommentThreads']())_0x4dd1ad['remove']();for(const _0x1c945f of _0x18d510)_0x228646['getUser'](_0x1c945f['id'])||_0x228646['addUser'](_0x1c945f);_0x228646['me']||_0x228646['useAnonymousUser']();for(const _0x23e6b1 of _0x30f197)_0x2eb4b6['addCommentThread'](_0x23e6b1);for(const _0x348a09 of _0x2ee8cb)_0x5ab5df['addSuggestionData'](_0x348a09);_0x25eaed['data']['set'](_0x16be05);}(_0x5875c7,_0x41a382),_0x41a382['execute'](_0xc3610f?'acceptAllSuggestions':'discardAllSuggestions');const _0x1f75cd=Ge(_0x41a382)?_0x41a382['getFullData'](_0x2fc6bc):_0x41a382['data']['get'](_0x2fc6bc);return await _0x41a382['destroy'](),_0x1f75cd;}class Me extends _0x227acf{['options'];constructor(_0x206d0b,_0x5d49e5){super(_0x206d0b),this['options']=_0x5d49e5,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'](_0x32d9c0,_0x335f93){if(!this['element'])return;const _0x20e1ec=[];for(const [_0x495cd1,_0x1a7ccd]of _0x32d9c0){const _0x25a184=document['createElement']('div');_0x25a184['setAttribute']('data-ck-root-name',_0x495cd1),_0x25a184['className']=_0x1a7ccd['classes']+'\x20ck-track-changes-preview__root-container',_0x25a184['innerHTML']=_0x1a7ccd['content'],_0x20e1ec['push'](_0x25a184);}_0x335f93(this['element'],_0x20e1ec),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x18dae3{constructor(_0xda1c8c){super(_0xda1c8c),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x447aeb=this['editor'],_0x25af28=_0x447aeb['locale'],_0x43b95a=_0x447aeb['plugins']['get']('Dialog');let _0x39849d;const _0x287031=function(_0x5c2f75){const _0x5e6347={};if('editables'in _0x5c2f75['ui']['view']){for(const [_0x178be8,_0x14c896]of Object['entries'](_0x5c2f75['ui']['view']['editables']))_0x5e6347[_0x178be8]=_0x14c896['element'];}else _0x5e6347[_0x5c2f75['model']['document']['getRootNames']()[0x0]]=_0x5c2f75['ui']['view']['editable']['element'];return _0x5e6347;}(_0x447aeb),_0x35300d=function(_0x414155){let _0x35c9a7=0x0;for(const _0x2bfd85 of Object['values'](_0x414155))_0x35c9a7=Math['max'](_0x35c9a7,_0x2bfd85['getBoundingClientRect']()['width']);let _0x5d642b=0x0;for(const _0x42ac9b of Object['values'](_0x414155))_0x5d642b+=_0x42ac9b['getBoundingClientRect']()['height'];const _0x2fc776=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x2653af=Math['min'](_0x5d642b,_0x2fc776);return{'width':_0x35c9a7,'height':_0x2653af};}(_0x287031);_0x43b95a['show']({'id':'finalContentPreview','title':c(_0x25af28,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x25af28,{'dialogRects':_0x35300d}),'onHide':()=>{_0x39849d['detachFromDom']();},'onShow':()=>{_0x447aeb['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x4e80ae=>{const _0x2fe339=this['_standarizeRootsData'](_0x4e80ae,_0x447aeb,_0x287031);_0x43b95a['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x2fe339,_0x447aeb['config']['get']('trackChanges.preview.renderFunction'));}),_0x39849d=new _0x36988f(_0x25af28,[_0x43b95a['view']]),_0x39849d['attachToDom'](),_0x39849d['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x447aeb['once']('destroy',()=>{_0x39849d['detachFromDom']();});const _0x40c96e=_0x43b95a['view']['headerView']['class'];_0x43b95a['view']['headerView']['class']=_0x40c96e?_0x40c96e+'\x20ck-reset_all':'ck-reset_all',_0x43b95a['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x43b95a['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x2cac62=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x14b3d6=_0x2cac62['previewMode'],_0x3fadf3={};if('$labels'===_0x14b3d6){for(const _0x2be8d0 of _0x2cac62['getMergeFieldsIds']())_0x3fadf3[_0x2be8d0]=_0x2cac62['getLabel'](_0x2be8d0)||_0x2be8d0;}else{const _0x407cc0='$defaultValues'===_0x14b3d6?_0x2cac62['getDefaultValues']():_0x2cac62['getDataSetValues'](_0x14b3d6,!0x0);for(const _0x246945 of Object['entries'](_0x407cc0)){const [_0x2c28aa,_0xad5afe]=_0x246945;_0x3fadf3[_0x2c28aa]=null!==_0xad5afe?_0xad5afe:_0x2cac62['getLabel'](_0x2c28aa)||_0x2c28aa;}}return{'mergeFieldsData':_0x3fadf3};}['_standarizeRootsData'](_0x373306,_0x316110,_0x5499c6){let _0x1639f5;if('string'==typeof _0x373306){const _0x25c373=_0x316110['model']['document']['getRootNames']()[0x0];_0x1639f5={[_0x25c373]:_0x373306};}else _0x1639f5=_0x373306;const _0x3c158d=this['_fixMediaEmbeds'](_0x1639f5,_0x316110),_0xd4b65f=function(_0x3b3846,_0x4e0c6a){for(const [_0x49bdc9,_0x26bc28]of _0x3b3846)_0x26bc28['classes']=_0x4e0c6a[_0x49bdc9]['classList']['value']['replace']('ck-focused','');return _0x3b3846;}(this['_sortRoots'](_0x316110)['reduce']((_0x1cb1fa,_0x1823ef)=>(_0x1cb1fa['push']([_0x1823ef,{'content':_0x3c158d[_0x1823ef],'classes':''}]),_0x1cb1fa),[]),_0x5499c6);return _0xd4b65f;}['_fixMediaEmbeds'](_0xcc250f,_0x4dad47){if(!_0x4dad47['plugins']['has']('MediaEmbedEditing'))return _0xcc250f;const _0xa5145=_0x4dad47['plugins']['get']('MediaEmbedEditing');for(const [_0x6ffb92,_0xef53e2]of Object['entries'](_0xcc250f)){const _0x4401df=document['createElement']('div');_0x4401df['innerHTML']=_0xef53e2,(_0x4401df['querySelectorAll']('figure.media')['forEach'](_0x390ee0=>{const _0x52022f=_0x390ee0['querySelector']('oembed');if(_0x52022f){const _0x194010=_0x52022f['getAttribute']('url');if(_0x194010){const _0x36537e=_0xa5145['registry']['getMediaViewElement'](new _0x5356e3(_0x4dad47['editing']['view']['document']),_0x194010,{'elementName':'','renderForEditingView':!0x0}),_0x56eeb1=document['createElement']('div');_0x56eeb1['classList']['add']('ck-media__wrapper'),_0x36537e['render'](_0x56eeb1,_0x4dad47['editing']['view']['domConverter']),_0x52022f['replaceWith'](_0x56eeb1);}}}),_0xcc250f[_0x6ffb92]=_0x4401df['innerHTML']);}return _0xcc250f;}['_sortRoots'](_0x565482){if(!function(_0x175854){return void 0x0!==_0x175854['getRootsAttributes'];}(_0x565482))return _0x565482['model']['document']['getRootNames']();const _0x38b11f=[],_0x22b15c=new Map();for(const _0x243f29 of _0x565482['model']['document']['getRootNames']()){const _0x2b936d=_0x565482['editing']['view']['getDomRoot'](_0x243f29)['getClientRects']()['item'](0x0);_0x38b11f['push'](_0x243f29),_0x22b15c['set'](_0x243f29,_0x2b936d);}return _0x38b11f['sort']((_0x147099,_0x209953)=>{const _0x2c3590=_0x22b15c['get'](_0x147099),_0x47004f=_0x22b15c['get'](_0x209953);return _0x2c3590['y']-_0x47004f['y']||_0x2c3590['x']-_0x47004f['x'];}),_0x38b11f;}}class te extends _0x3b35c4{static get['requires'](){return[T,_0x846e2a];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x431118){super(_0x431118),_0x431118['commands']['add']('previewFinalContent',new re(this['editor'])),_0x431118['config']['define']('trackChanges.preview.renderFunction',(_0x2fc5b4,_0x538348)=>{for(const _0x539c96 of _0x538348)_0x2fc5b4['appendChild'](_0x539c96);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
|