@ckeditor/ckeditor5-track-changes 45.2.0-alpha.6 → 45.2.0-alpha.7
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
|
-
_0x3e790a(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x447537,_0x257a8e){super(),this['id']=_0x257a8e['id'],this['type']=_0x257a8e['type'],this['subType']=_0x257a8e['subType']||null,this['author']=_0x257a8e['author'],this['creator']=_0x257a8e['creator']||_0x257a8e['author'],this['isExternal']=Boolean(_0x257a8e['attributes']&&_0x257a8e['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x257a8e['originalSuggestionId']||null,this['_model']=_0x447537,this['_onAccept']=_0x257a8e['onAccept'],this['_onDiscard']=_0x257a8e['onDiscard'],this['_onAttributesChange']=_0x257a8e['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x257a8e['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 _0x31f2f8=this;for(;_0x31f2f8['previous'];)_0x31f2f8=_0x31f2f8['previous'];return _0x31f2f8;}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'](_0x348106){this['_markerNames']['add'](_0x348106);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x5676a3=>this['_model']['markers']['get'](_0x5676a3))['filter'](_0x115f3c=>_0x115f3c);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2f066a=>{for(const _0x5e6768 of this['getMarkers']())_0x2f066a['removeMarker'](_0x5e6768);}),this['_markerNames']['clear']();}['removeMarker'](_0x13b009){this['_model']['change'](_0x27f6c2=>{_0x27f6c2['removeMarker'](_0x13b009);}),this['_markerNames']['delete'](_0x13b009);}['addRange'](_0xe6443){const _0x410cf6='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x410cf6),this['_model']['change'](_0x4abeee=>{_0x4abeee['addMarker'](_0x410cf6,{'range':_0xe6443,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x5c63dc){for(const _0x2d7ad8 of this['getRanges']())if(_0x2d7ad8['isIntersecting'](_0x5c63dc))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x177c39=>_0x177c39['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x36ff83,_0x4b49dc)=>[..._0x36ff83,..._0x4b49dc['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2f2038=this['getRanges']();if(0x1!=_0x2f2038['length'])return null;const _0x214e5e=_0x2f2038[0x0],_0xb36962=_0x214e5e['start']['nodeAfter'],_0xb93498=_0x214e5e['end']['nodeBefore'];return _0xb36962 instanceof _0x148d33?_0xb36962!=_0xb93498?null:_0xb36962: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 _0x57aa6b=[];let _0x3ccfcf=this['head'];for(;_0x3ccfcf;)_0x57aa6b['push'](_0x3ccfcf),_0x3ccfcf=_0x3ccfcf['next'];return _0x57aa6b;}['setAttribute'](_0x5d5485,_0xb03585){const _0x4f2c43=_0x45dc80(this['attributes']);_0x5bbb5e(_0x4f2c43,_0x5d5485,_0xb03585),_0x8ce2d0(_0x4f2c43,this['attributes'])||(this['attributes']=_0x4f2c43,this['_onAttributesChange'](_0x4f2c43));}['removeAttribute'](_0x55fb69){const _0x4cb0c3=_0x45dc80(this['attributes']);_0x110115(_0x4cb0c3,_0x55fb69),_0x8ce2d0(_0x4cb0c3,this['attributes'])||(this['attributes']=_0x4cb0c3,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 _0x524fb1()['substr'](0x1,0x5);}}function c(_0x3341c1,_0x3c13ca,_0x41a5d3){const _0x33f020=_0x3341c1['t'],t=_0x3341c1['t'];switch(_0x3c13ca){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',_0x41a5d3);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x41a5d3);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x41a5d3);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x41a5d3);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x41a5d3);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',_0x41a5d3);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x41a5d3);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',_0x41a5d3);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x41a5d3);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x41a5d3);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x41a5d3);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x41a5d3);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x41a5d3);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x41a5d3);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x41a5d3);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x41a5d3);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x41a5d3);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x41a5d3);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x41a5d3);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x41a5d3);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x41a5d3);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x41a5d3);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x41a5d3);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x41a5d3);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x41a5d3);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'},_0x41a5d3);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x41a5d3);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x41a5d3);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x41a5d3);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x41a5d3);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x41a5d3);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x41a5d3);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x41a5d3);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'},_0x41a5d3);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x41a5d3);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x41a5d3);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x41a5d3);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x41a5d3);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'},_0x41a5d3);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x41a5d3);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'},_0x41a5d3);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'},_0x41a5d3);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x41a5d3);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'},_0x41a5d3);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x41a5d3);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'},_0x41a5d3);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x41a5d3);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x41a5d3);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'},_0x41a5d3);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x41a5d3);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 _0x33f020({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x41a5d3);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x33f020({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x41a5d3);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x41a5d3);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'},_0x41a5d3);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'},_0x41a5d3);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'},_0x41a5d3);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x3c13ca;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x32e894,_0x211b92){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x32e894,this['_locale']=_0x211b92;}['getDescriptions'](_0x573a27){const _0x333c29=[],_0x470f59=new Set(),_0x299487=new Set();for(let _0x566349=0x0;_0x566349<_0x573a27['length'];_0x566349++){const _0x42aac1=_0x573a27[_0x566349];if(!_0x42aac1['isInContent'])continue;const _0x3ed56d=this['_handleCustomCallbackDescription'](_0x42aac1);if(_0x3ed56d){if(null!=_0x42aac1['subType']){if(_0x470f59['has'](_0x42aac1['subType']))continue;_0x470f59['add'](_0x42aac1['subType']);}_0x333c29['push'](_0x3ed56d);}else{if('attribute'!=_0x42aac1['type'])'insertion'!=_0x42aac1['type']&&'deletion'!=_0x42aac1['type']||this['_handleInsertRemoveSuggestionDescription'](_0x333c29,_0x42aac1,_0x573a27[_0x566349+0x1]);else{const _0x44f5f4=_0x42aac1['data']['key'];if(_0x299487['has'](_0x44f5f4))continue;_0x299487['add'](_0x42aac1['data']['key']),_0x44f5f4==u?this['_handleRenameSuggestionDescription'](_0x333c29,_0x42aac1):this['_handleAttributeSuggestionDescription'](_0x333c29,_0x42aac1);}}}return this['_resolveDescriptionItems'](_0x333c29);}['registerDescriptionCallback'](_0x3d5cdd){this['_customCallbacks']['push'](_0x3d5cdd);}['registerElementLabel'](_0x474fa9,_0x1235e4,_0x1e57b8=_0x2ab9b9['normal']){'function'==typeof _0x474fa9?_0x50c834(this['_itemLabelsCallbacks'],{'matchingCallback':_0x474fa9,'label':_0x1235e4,'priority':_0x1e57b8}):this['_itemLabels']['set'](_0x474fa9,_0x1235e4);}['registerAttributeLabel'](_0x16ec3b,_0x39be45){this['_attributeLabels']['set'](_0x16ec3b,_0x39be45);}['getItemLabel'](_0x5d6f70,_0x355bc0=0x1){let _0x565eed;for(const _0x209113 of this['_itemLabelsCallbacks'])if(_0x209113['matchingCallback'](_0x5d6f70)){_0x565eed=_0x209113['label'];break;}return _0x565eed||(_0x565eed=this['_itemLabels']['get'](_0x5d6f70['name'])),_0x565eed?_0x565eed(_0x355bc0):0x1!==_0x355bc0?_0x355bc0+'\x20'+_0x5d6f70['name']+'s':''+_0x5d6f70['name'];}['_addDescriptionItems'](_0x146909,_0x4ae1d1){const _0x4768ff=_0x4ae1d1['getFirstRange']()['getWalker'](),_0x1f394a='insertion'==_0x4ae1d1['type']?'add':'remove';for(const _0x56b906 of _0x4768ff){const _0x447538=_0x56b906['item'],_0x93ec1d=_0x146909[_0x146909['length']-0x1];if(_0x447538['is']('$textProxy'))_0x93ec1d&&_0x93ec1d['type']['indexOf']('Container')>-0x1&&_0x146909['pop'](),_0x93ec1d&&'text'==_0x93ec1d['type']?_0x93ec1d[_0x1f394a]+=_0x447538['data']:_0x146909['push']({'type':'text','add':'add'==_0x1f394a?_0x447538['data']:'','remove':'remove'==_0x1f394a?_0x447538['data']:''});else{if(this['_schema']['isObject'](_0x447538)){const _0x5d4299=_0x447538;if(_0x93ec1d&&_0x93ec1d['type']['indexOf']('Container')>-0x1&&_0x146909['pop'](),'elementEnd'==_0x56b906['type'])continue;_0x93ec1d&&_0x93ec1d['type']==_0x1f394a+'Object'&&_0x93ec1d['element']['name']==_0x5d4299['name']?_0x93ec1d['quantity']++:_0x146909['push']({'type':_0x1f394a+'Object','element':_0x5d4299,'quantity':0x1}),_0x4768ff['skip'](_0x53f742=>!('elementEnd'==_0x53f742['type']&&_0x53f742['item']==_0x447538));}else{if(this['_schema']['checkChild'](_0x447538,'$text')||_0x447538['is']('element','softBreak')){const _0x50de9d=_0x447538;if('add'==_0x1f394a&&'elementStart'==_0x56b906['type']||'remove'==_0x1f394a&&'elementEnd'==_0x56b906['type'])continue;if(_0x93ec1d&&-0x1==_0x93ec1d['type']['indexOf']('Container')){'text'==_0x93ec1d['type']&&(_0x93ec1d[_0x1f394a]+='\x0a');continue;}let _0x3a9b2e;if(_0x3a9b2e='add'==_0x1f394a?_0x50de9d['nextSibling']&&!this['_schema']['isObject'](_0x50de9d['nextSibling'])?_0x50de9d['nextSibling']:null:_0x50de9d['previousSibling']&&!this['_schema']['isObject'](_0x50de9d['previousSibling'])?_0x50de9d['previousSibling']:null,_0x50de9d['isEmpty']||_0x3a9b2e&&_0x3a9b2e['isEmpty']){const _0x362dcb=_0x3a9b2e&&_0x3a9b2e['isEmpty']?_0x3a9b2e:_0x50de9d;_0x93ec1d&&_0x93ec1d['type']==_0x1f394a+'EmptyContainer'&&_0x93ec1d['element']['name']==_0x362dcb['name']?_0x93ec1d['quantity']++:_0x146909['push']({'type':_0x1f394a+'EmptyContainer','element':_0x362dcb,'quantity':0x1});}else _0x146909['push']({'type':_0x1f394a+'Container','element':_0x50de9d});}}}}}['_resolveDescriptionItems'](_0x3b95a8){const _0xf93cad=this['_locale'],_0x5407fb=[],_0x4d7155=[],_0x1e05b3=[];for(const _0x1f170b of _0x3b95a8)switch(_0x1f170b['type']){case'text':if(_0x1f170b['add']=_0x1f170b['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x1f170b['remove']=_0x1f170b['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x1f170b['add']&&''!=_0x1f170b['remove']){_0x5407fb['push']({'type':'replace','content':c(_0xf93cad,'REPLACE_TEXT',['\x22'+_0x1f170b['remove']+'\x22','\x22'+_0x1f170b['add']+'\x22'])});continue;}if(null!=_0x1f170b['add']['match'](/^ +$/)){_0x5407fb['push']({'type':'insertion','content':c(_0xf93cad,'*Insert:*\x20%0',c(_0xf93cad,'ELEMENT_SPACE',_0x1f170b['add']['length']))});continue;}if(null!=_0x1f170b['remove']['match'](/^ +$/)){_0x5407fb['push']({'type':'deletion','content':c(_0xf93cad,'*Remove:*\x20%0',c(_0xf93cad,'ELEMENT_SPACE',_0x1f170b['remove']['length']))});continue;}if(''!=_0x1f170b['add']){_0x5407fb['push']({'type':'insertion','content':c(_0xf93cad,'*Insert:*\x20%0','\x22'+_0x1f170b['add']+'\x22')});continue;}_0x5407fb['push']({'type':'deletion','content':c(_0xf93cad,'*Remove:*\x20%0','\x22'+_0x1f170b['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x5407fb['push']({'type':'insertion','content':c(_0xf93cad,'*Insert:*\x20%0',this['getItemLabel'](_0x1f170b['element'],_0x1f170b['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x5407fb['push']({'type':'deletion','content':c(_0xf93cad,'*Remove:*\x20%0',this['getItemLabel'](_0x1f170b['element'],_0x1f170b['quantity']))});continue;case'addContainer':_0x5407fb['push']({'type':'insertion','content':c(_0xf93cad,'*Split:*\x20%0',this['getItemLabel'](_0x1f170b['element'],_0x1f170b['quantity']))});continue;case'removeContainer':_0x5407fb['push']({'type':'deletion','content':c(_0xf93cad,'*Merge:*\x20%0',this['getItemLabel'](_0x1f170b['element'],_0x1f170b['quantity']))});continue;case'addFormat':_0x4d7155['push'](_0x1f170b['key']);continue;case'removeFormat':_0x1e05b3['push'](_0x1f170b['key']);continue;default:_0x5407fb['push'](_0x1f170b);}if(_0x4d7155['length']){const _0x3ebe3e=_0x4d7155['map'](_0x1576e4=>this['_attributeLabels']['has'](_0x1576e4)?this['_attributeLabels']['get'](_0x1576e4):_0x1576e4)['join'](',\x20');_0x5407fb['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x3ebe3e)});}if(_0x1e05b3['length']){const _0x18aebc=_0x1e05b3['map'](_0x2eb850=>this['_attributeLabels']['has'](_0x2eb850)?this['_attributeLabels']['get'](_0x2eb850):_0x2eb850)['join'](',\x20');_0x5407fb['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x18aebc)});}return _0x5407fb;}['_handleCustomCallbackDescription'](_0x5493d3){for(const _0x555e5c of this['_customCallbacks']){const _0x2d69d0=_0x555e5c(_0x5493d3);if(_0x2d69d0&&'type'in _0x2d69d0)return _0x2d69d0;}}['_handleAttributeSuggestionDescription'](_0x299a1d,_0x40dd3d){const _0x2e60da=_0x40dd3d['data'],_0x5b5360=void 0x0===_0x2e60da['newValue']?'removeFormat':'addFormat';_0x299a1d['push']({'type':_0x5b5360,'key':_0x2e60da['key']});}['_handleRenameSuggestionDescription'](_0x198f52,_0x160fc5){_0x198f52['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x160fc5['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x5ea04b,_0x3f8900,_0xebd642){if(this['_addDescriptionItems'](_0x5ea04b,_0x3f8900),_0xebd642&&_0xebd642['getFirstRange']()&&!_0x3f8900['getFirstRange']()['end']['isEqual'](_0xebd642['getFirstRange']()['start'])){const _0x2c36df=_0x5ea04b[_0x5ea04b['length']-0x1],_0x3db6f7='insertion'==_0x3f8900['type']?'add':'remove';_0x2c36df&&'text'==_0x2c36df['type']&&(_0x2c36df[_0x3db6f7]+='\x0a');}}}class U extends _0x3953b7{['afterInit'](){const _0x22d8b3=this['editor'],_0x11ea3f=_0x22d8b3['plugins']['get']('TrackChangesEditing');_0x22d8b3['commands']['get']('showAIAssistant')&&_0x11ea3f['enableCommand']('showAIAssistant');}}class V extends _0x3953b7{['afterInit'](){const _0x34c7df=this['editor'],_0x39cf6=_0x34c7df['locale'];if(!_0x34c7df['plugins']['has']('AlignmentEditing'))return;const _0xc0d346=_0x34c7df['plugins']['get']('TrackChangesEditing');_0xc0d346['enableDefaultAttributesIntegration']('alignment'),_0xc0d346['registerBlockAttribute']('alignment'),_0xc0d346['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x39cf6,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x45227c=this['editor'],_0x2f6922=_0x45227c['locale'];_0x45227c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e5cca=>{if('formatBlock'!=_0x2e5cca['type'])return;const {data:_0x53be3f}=_0x2e5cca;if(_0x53be3f&&'alignment'==_0x53be3f['commandName']){const _0x16638a=_0x53be3f['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x2f6922,'*Format:*\x20%0',function(_0x336f48){switch(_0x336f48){case'left':return c(_0x2f6922,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x2f6922,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x2f6922,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x2f6922,'FORMAT_JUSTIFY_TEXT');}}(_0x16638a))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x3953b7{['afterInit'](){const _0x1c6119=this['editor'],_0x5712ad=_0x1c6119['plugins']['get']('TrackChangesEditing'),_0x4fcfcb=_0x1c6119['locale'];for(const _0x417b2f of Zt){if(!_0x1c6119['plugins']['has'](_0x417b2f))continue;const _0x37c3ce=_0x417b2f['slice'](0x0,-0x7)['toLowerCase'](),_0x5afa86='FORMAT_'+_0x37c3ce['toUpperCase']();_0x5712ad['enableDefaultAttributesIntegration'](_0x37c3ce),_0x5712ad['registerInlineAttribute'](_0x37c3ce),_0x5712ad['descriptionFactory']['registerAttributeLabel'](_0x37c3ce,c(_0x4fcfcb,_0x5afa86));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x185981=this['editor'],_0x5f522f=_0x185981['locale'],_0x239bf5=_0x185981['plugins']['get']('TrackChangesEditing');function _0x2c2917(_0x1b7a21,_0x39e600){_0x239bf5['descriptionFactory']['registerDescriptionCallback'](_0x530344=>{if('formatInline'!=_0x530344['type'])return;const {data:_0x56cff0}=_0x530344;return _0x56cff0&&_0x56cff0['commandName']===_0x1b7a21?_0x56cff0['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x5f522f,'*Format:*\x20%0',_0x39e600)}:{'type':'format','content':c(_0x5f522f,'*Remove\x20format:*\x20%0',_0x39e600)}:void 0x0;});}_0x2c2917('bold',c(_0x5f522f,'FORMAT_BOLD')),_0x2c2917('italic',c(_0x5f522f,'FORMAT_ITALIC')),_0x2c2917('underline',c(_0x5f522f,'FORMAT_UNDERLINE')),_0x2c2917('code',c(_0x5f522f,'FORMAT_CODE')),_0x2c2917('strikethrough',c(_0x5f522f,'FORMAT_STRIKETHROUGH')),_0x2c2917('subscript',c(_0x5f522f,'FORMAT_SUBSCRIPT')),_0x2c2917('superscript',c(_0x5f522f,'FORMAT_SUPERSCRIPT'));}}class G extends _0x3953b7{['afterInit'](){const _0x16a265=this['editor'],_0x59e9e9=_0x16a265['locale'];if(!_0x16a265['plugins']['has']('BlockQuoteEditing'))return;const _0x553262=_0x16a265['plugins']['get']('TrackChangesEditing'),_0x64d004=this['editor']['commands']['get']('blockQuote');_0x553262['enableCommand']('blockQuote',(_0x5cc2f0,_0x5af59b={})=>{const _0x5a3d12=this['editor']['model']['document']['selection'],_0x95418a=_0x5af59b&&void 0x0!==_0x5af59b['forceValue']?_0x5af59b['forceValue']:!_0x64d004['value'];let _0x561da9=[];if(_0x95418a){const _0x1d5b49=Array['from'](_0x5a3d12['getSelectedBlocks']())['filter'](_0x351cab=>oo(_0x351cab)||function(_0x346bee,_0x1219d8){const _0x5b23ea=_0x1219d8['checkChild'](_0x346bee['parent'],'blockQuote'),_0x8aeae1=_0x1219d8['checkChild'](['$root','blockQuote'],_0x346bee);return _0x5b23ea&&_0x8aeae1;}(_0x351cab,this['editor']['model']['schema']));_0x561da9=to(_0x1d5b49,_0x16a265['model']);}else{const _0x12f6ba=Array['from'](_0x5a3d12['getSelectedBlocks']())['filter'](_0x56cb79=>oo(_0x56cb79));_0x561da9=to(_0x12f6ba,_0x16a265['model']);}_0x16a265['model']['change'](()=>{for(const _0x1ad4ed of _0x561da9)_0x553262['markBlockFormat'](_0x1ad4ed,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x95418a}]});});}),_0x553262['descriptionFactory']['registerDescriptionCallback'](_0x20bdd1=>{const {data:_0x4a4d71}=_0x20bdd1;if(_0x4a4d71&&'blockQuote'==_0x4a4d71['commandName']){const _0xd4471a=c(_0x59e9e9,'ELEMENT_BLOCK_QUOTE');return _0x4a4d71['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x59e9e9,'*Set\x20format:*\x20%0',_0xd4471a)}:{'type':'format','content':c(_0x59e9e9,'*Remove\x20format:*\x20%0',_0xd4471a)};}});}}function oo(_0x41298c){return'blockQuote'==_0x41298c['parent']['name'];}class L extends _0x3953b7{['afterInit'](){const _0x1f76c4=this['editor'],_0x208507=_0x1f76c4['locale'],_0x35b7c1=_0x1f76c4['plugins']['get']('TrackChangesEditing');_0x1f76c4['plugins']['has']('BookmarkEditing')&&(_0x35b7c1['enableCommand']('insertBookmark'),_0x35b7c1['enableDefaultAttributesIntegration']('updateBookmark'),_0x35b7c1['registerBlockAttribute']('bookmarkId'),_0x35b7c1['descriptionFactory']['registerDescriptionCallback'](_0x485a53=>{if('insertion'!=_0x485a53['type']&&'deletion'!=_0x485a53['type']&&'attribute'!=_0x485a53['type'])return;const _0x5ad1f1=_0x485a53['getContainedElement']();if(null==_0x5ad1f1)return;if(!_0x5ad1f1['is']('element','bookmark'))return;const _0x29a23b=_0x5ad1f1['getAttribute']('bookmarkId');if('insertion'==_0x485a53['type'])return{'type':'insertion','content':c(_0x208507,'*Insert:*\x20%0','\x22'+_0x29a23b+'\x22\x20'+c(_0x208507,'ELEMENT_BOOKMARK'))};if('deletion'==_0x485a53['type'])return{'type':'deletion','content':c(_0x208507,'*Remove:*\x20%0','\x22'+_0x29a23b+'\x22\x20'+c(_0x208507,'ELEMENT_BOOKMARK'))};const {data:_0x24dea6}=_0x485a53;if(!_0x24dea6||'bookmarkId'!=_0x24dea6['key'])return;return{'type':'format','content':c(_0x208507,'*Set\x20bookmark:*\x20%0','\x22'+_0x24dea6['newValue']+'\x22')};}));}}class J extends _0x3953b7{['afterInit'](){const _0x18a203=this['editor'];_0x18a203['plugins']['has']('CaseChange')&&(_0x18a203['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x18a203['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x18a203['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x3953b7{['afterInit'](){const _0xaf9eab=this['editor'];_0xaf9eab['commands']['get']('ckbox')&&_0xaf9eab['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x3953b7{['afterInit'](){const _0x573558=this['editor'];if(!_0x573558['plugins']['has']('CodeBlock'))return;const _0x48d39a=_0x573558['plugins']['get']('TrackChangesEditing'),_0x3291ab=_0x573558['locale'],_0x57c2b1=_0x573558['config']['get']('codeBlock')['languages'],_0x252932=_0x573558['commands']['get']('codeBlock');_0x48d39a['enableCommand']('indentCodeBlock'),_0x48d39a['enableCommand']('outdentCodeBlock'),_0x48d39a['enableCommand']('codeBlock',(_0x2c50b7,_0x3f98c9={})=>{const _0x4a0c3d=_0x573558['model'],_0x1b37a3=_0x573558['model']['document']['selection'],_0x11049e=_0x3f98c9&&void 0x0!==_0x3f98c9['forceValue']?_0x3f98c9['forceValue']:!_0x252932['value'];let _0x235a2e;_0x3f98c9['language']||(_0x3f98c9['language']=_0x57c2b1[0x0]['language']),_0x235a2e=_0x11049e?Array['from'](_0x1b37a3['getSelectedBlocks']())['filter'](_0x34b0ea=>eo(_0x34b0ea)||function(_0xa18a6b,_0x43e268){if(_0xa18a6b['is']('rootElement')||_0x43e268['isLimit'](_0xa18a6b))return!0x1;return _0x43e268['checkChild'](_0xa18a6b['parent'],'codeBlock');}(_0x34b0ea,_0x4a0c3d['schema'])):Array['from'](_0x1b37a3['getSelectedBlocks']())['filter'](_0x54f8d6=>eo(_0x54f8d6));const _0x20394a=to(_0x235a2e,_0x4a0c3d);_0x4a0c3d['change'](()=>{for(const _0x24680d of _0x20394a)_0x48d39a['markBlockFormat'](_0x24680d,{'commandName':'codeBlock','commandParams':[{..._0x3f98c9,'forceValue':_0x11049e}],'formatGroupId':'blockName'});});}),(_0x48d39a['descriptionFactory']['registerElementLabel']('codeBlock',_0x501a42=>c(_0x3291ab,'ELEMENT_CODE_BLOCK',_0x501a42)),_0x48d39a['descriptionFactory']['registerDescriptionCallback'](_0xb7874c=>{if('formatBlock'!=_0xb7874c['type'])return;const _0xd6a5c9=_0x3291ab['t'],{data:_0x2bf80e}=_0xb7874c;if(!_0x2bf80e||'codeBlock'!=_0x2bf80e['commandName'])return;const _0x533ea5=_0x2bf80e['commandParams'][0x0]['language'],_0x5e1777=_0xd6a5c9(_0x57c2b1['find'](_0x51447c=>_0x51447c['language']===_0x533ea5)['label'])['toLowerCase']();return _0x2bf80e['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3291ab,'*Set\x20format:*\x20%0',c(_0x3291ab,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5e1777+')')}:{'type':'format','content':c(_0x3291ab,'*Remove\x20format:*\x20%0',c(_0x3291ab,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x29491d){return'codeBlock'==_0x29491d['name'];}class q extends _0x3953b7{['afterInit'](){const _0x4be3e3=this['editor'];if(!_0x4be3e3['plugins']['has']('CommentsEditing'))return;_0x4be3e3['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x48547e,_0x2fa16e,_0x1177dc){const _0xccb16=[];for(const _0x36cf24 of _0x2fa16e['getItems']())_0x36cf24['hasAttribute'](_0x48547e)&&_0xccb16['push'](_0x1177dc['createRangeOn'](_0x36cf24));return _0xccb16;}function Fe(_0x52a845,_0x3455da,{showActiveMarker:_0x186762=!0x0}={}){const _0xc42dd3=_0x52a845['plugins']['get']('TrackChangesEditing');return(_0x48ae6a,_0x581ad8,_0x66c4e)=>{if(!_0x66c4e['consumable']['test'](_0x581ad8['markerRange'],_0x48ae6a['name']))return;const _0x3ca31c=_0x581ad8['markerRange']['getWalker'](),_0x130bff=_0x581ad8['markerRange']['start'],_0x37f363=_0x52a845['model']['schema'];let _0x1b53f5=null,_0x15970d=null,_0x1cb576=!0x1,_0xebf4=!0x1;for(const _0x404212 of _0x3ca31c){const _0x2a8a5b=_0x404212['item'];_0x1cb576=_0x1cb576||_0x37f363['isContent'](_0x2a8a5b);const _0x59815f=_0x66c4e['mapper']['toViewElement'](_0x2a8a5b);if(_0x59815f&&_0x59815f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x404212['type']&&(_0x37f363['isBlock'](_0x2a8a5b)&&!_0x37f363['isLimit'](_0x2a8a5b)&&(_0x2a8a5b['nextSibling']||_0x130bff['isAtEnd']?_0x1b53f5&&_0x1b53f5['parent']==_0x2a8a5b||(_0x1b53f5=_0x2a8a5b,_0x4994b4(_0x404212['previousPosition']),_0xebf4=!0x0):_0x15970d=_0x15970d||_0x404212['previousPosition']));}function _0x4994b4(_0x45126c){const {id:_0x5c5e7f,authorId:_0x5587d4}=_0xc42dd3['_splitMarkerName'](_0x581ad8['markerName']),_0x1707d6=_0x66c4e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3455da,'data-suggestion':_0x5c5e7f,'data-author-id':_0x5587d4}),_0x41fceb=_0x66c4e['mapper']['toViewPosition'](_0x45126c);_0x186762&&_0xc42dd3['activeMarkers']['includes'](_0x581ad8['markerName'])&&_0x66c4e['writer']['addClass']('ck-suggestion-marker--active',_0x1707d6),_0x66c4e['writer']['insert'](_0x41fceb,_0x1707d6),_0x66c4e['mapper']['bindElementToMarker'](_0x1707d6,_0x581ad8['markerName']);}_0x1cb576||_0xebf4||!_0x15970d||_0x4994b4(_0x15970d);};}class z extends _0x3953b7{static get['requires'](){return[_0x3e9cd0];}['init'](){const _0x229a4e=this['editor'],_0x11e9e4=_0x229a4e['plugins']['get']('TrackChangesEditing');_0x11e9e4['enableCommand']('delete');const _0x5e98a5=_0x229a4e['commands']['get']('deleteForward');_0x11e9e4['enableCommand']('deleteForward',(_0x1b6441,_0x1a277b={})=>{const _0x347e3e=_0x229a4e['model']['createSelection'](_0x229a4e['model']['document']['selection']);_0x347e3e['isCollapsed']&&_0x229a4e['model']['modifySelection'](_0x347e3e,{'direction':'forward','unit':_0x1a277b['unit']});const _0x1514c1=_0x347e3e['getFirstRange'](),_0x48fdce=_0x34ca76['fromRange'](_0x1514c1);let _0x6dada3;_0x1b6441(_0x1a277b),_0x6dada3='$graveyard'==_0x48fdce['root']['rootName']?_0x229a4e['model']['createRange'](_0x1514c1['start']):_0x229a4e['model']['createRange'](_0x48fdce['start'],_0x48fdce['end']),_0x48fdce['detach'](),_0x229a4e['model']['enqueueChange'](_0x5e98a5['buffer']['batch'],_0x280b97=>{_0x5e98a5['buffer']['lock'](),_0x280b97['setSelection'](_0x280b97['createRange'](_0x6dada3['end'])),_0x5e98a5['buffer']['unlock']();});}),_0x229a4e['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x229a4e,'merge'),{'priority':'high'}),_0x229a4e['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x33938c,_0x203cf2,_0xcfce60)=>{_0xcfce60['options']['showSuggestionHighlights']&&Fe(_0x229a4e,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x33938c,_0x203cf2,_0xcfce60);},{'priority':'high'}),_0x229a4e['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4da7e1,_0xddf7e0,_0x5d3e44)=>{const _0x1ce21d=_0x5d3e44['mapper']['markerNameToElements'](_0xddf7e0['markerName']);if(_0x1ce21d){for(const _0x57d23 of _0x1ce21d)_0x57d23['is']('uiElement')&&(_0x5d3e44['mapper']['unbindElementFromMarkerName'](_0x57d23,_0xddf7e0['markerName']),_0x5d3e44['writer']['remove'](_0x57d23));}},{'priority':'high'});}}class W extends _0x3953b7{['afterInit'](){const _0x13daaf=this['editor'];if(!_0x13daaf['plugins']['has']('ListEditing'))return;const _0xe1f257=_0x13daaf['locale'],_0xd315b6=_0x13daaf['plugins']['get']('TrackChangesEditing'),_0x396cb3=_0x13daaf['plugins']['has']('TodoListEditing'),_0xaa203c=!!_0x13daaf['config']['get']('list.multiBlock');function _0x3073e5(_0x5bbbca){return{'type':'format','content':''+c(_0xe1f257,'*Set\x20format:*\x20%0',_0x5bbbca)};}function _0x31f5ba(_0x87f592){return{'type':'format','content':''+c(_0xe1f257,'*Remove\x20format:*\x20%0',_0x87f592)};}_0xd315b6['enableDefaultAttributesIntegration']('numberedList'),_0xd315b6['enableDefaultAttributesIntegration']('bulletedList'),_0xd315b6['enableDefaultAttributesIntegration']('customNumberedList'),_0xd315b6['enableDefaultAttributesIntegration']('customBulletedList'),_0xd315b6['enableDefaultAttributesIntegration']('indentList'),_0xd315b6['enableDefaultAttributesIntegration']('outdentList'),_0xd315b6['enableDefaultAttributesIntegration']('splitListItemAfter'),_0xd315b6['enableDefaultAttributesIntegration']('splitListItemBefore'),_0xd315b6['registerBlockAttribute']('listItemId'),_0xd315b6['registerBlockAttribute']('listType'),_0xd315b6['registerBlockAttribute']('listIndent'),_0xaa203c&&(_0xd315b6['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0xd315b6['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x396cb3&&(_0xd315b6['enableDefaultAttributesIntegration']('todoList'),_0xd315b6['enableDefaultAttributesIntegration']('checkTodoList'),_0xd315b6['registerBlockAttribute']('todoListChecked'),_0xd315b6['descriptionFactory']['registerDescriptionCallback'](_0x428844=>{const {data:_0x13ddd9}=_0x428844;if(_0x13ddd9&&'todoListChecked'==_0x13ddd9['key'])return{'type':'format','content':_0x13ddd9['newValue']?c(_0xe1f257,'*Check\x20item*'):c(_0xe1f257,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x3b6aff=>{if(_0x3b6aff['batch']['isUndo'])return!0x1;let _0x74e3fc=!0x1;const _0x2624a8=_0xd315b6['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2faffe=>'todoListChecked'===_0xd315b6['_getAttributeKey'](_0x2faffe));for(const _0x73d99d of _0x2624a8){'todo'!=_0x73d99d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0xd315b6['_findSuggestions'](_0x73d99d['getFirstRange'](),'attribute')['find'](_0x124853=>'listType'===_0xd315b6['_getAttributeKey'](_0x124853['suggestion']))||(_0x3b6aff['removeMarker'](_0x73d99d['getFirstMarker']()),_0x74e3fc=!0x0));}return _0x74e3fc;})),_0xd315b6['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0xe1f257,'FORMAT_INDENT'));const _0x31677b={'type':'format','content':''};_0xd315b6['descriptionFactory']['registerDescriptionCallback'](_0x490591=>{const {data:_0x1a88f6}=_0x490591;if(!_0x1a88f6||'listType'!=_0x1a88f6['key'])return;let _0x3ef2f6=_0x490591['head'];for(;_0x3ef2f6;){if(_0x3ef2f6['data']&&(('listStyle'==_0x3ef2f6['data']['key']||'listMarkerStyle'==_0x3ef2f6['data']['key'])&&(_0x3ef2f6['data']['newValue']&&'default'!=_0x3ef2f6['data']['newValue']||'default'!=_0x3ef2f6['data']['oldValue']&&!_0x1a88f6['newValue'])||!_0xaa203c&&_0x3ef2f6['data']['key']==u))return _0x31677b;_0x3ef2f6=_0x3ef2f6['next'];}if(null==_0x1a88f6['newValue'])switch(_0x1a88f6['oldValue']){case'bulleted':return _0x31f5ba(c(_0xe1f257,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x31f5ba(c(_0xe1f257,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x31f5ba(c(_0xe1f257,'ELEMENT_TODO_LIST'));}switch(_0x1a88f6['newValue']){case'bulleted':return _0x3073e5(c(_0xe1f257,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3073e5(c(_0xe1f257,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3073e5(c(_0xe1f257,'ELEMENT_TODO_LIST'));}}),_0xd315b6['descriptionFactory']['registerDescriptionCallback'](_0x59dd3a=>{const {data:_0x336e3e}=_0x59dd3a;if(_0x336e3e&&'listIndent'==_0x336e3e['key'])return null==_0x336e3e['newValue']||null==_0x336e3e['oldValue']&&0x0==_0x336e3e['newValue']?_0x31677b:void 0x0;}),_0xd315b6['descriptionFactory']['registerDescriptionCallback'](_0x4cad1b=>{if('attribute'!=_0x4cad1b['type'])return;const {data:_0x447a7f}=_0x4cad1b;if(!_0x447a7f||'listItemId'!=_0x447a7f['key'])return;const _0x2b98ad=Te(_0x4cad1b);return'newValue'==_0x2b98ad?{'type':'format','content':c(_0xe1f257,'*Merge:*\x20list\x20item')}:'oldValue'==_0x2b98ad?{'type':'format','content':c(_0xe1f257,'*Split:*\x20list\x20item')}:_0x31677b;}),_0x13daaf['model']['document']['registerPostFixer'](_0x1ad639=>this['listItemIdFixer'](_0x1ad639)),_0x13daaf['model']['document']['registerPostFixer'](_0x228055=>this['noTrackChangesFixer'](_0x228055)),_0x13daaf['model']['document']['on']('change:data',(_0x9ecb49,_0x59b47c)=>{if(_0x59b47c['isUndo']||!_0x59b47c['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x3db5b0){if(_0x3db5b0['batch']['isUndo']||!_0x3db5b0['batch']['isLocal'])return!0x1;let _0x2c8b18=!0x1;const _0x3b1f1b=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x110ade=>_0x110ade['data']&&'listItemId'==_0x110ade['data']['key'])['filter'](_0x544367=>_0x544367['data']['newValue']&&_0x544367['data']['oldValue']);for(const _0x4e276d of _0x3b1f1b)Te(_0x4e276d)||(_0x3db5b0['removeMarker'](_0x4e276d['getFirstMarker']()),_0x2c8b18=!0x0);return _0x2c8b18;}['noTrackChangesFixer'](_0xe37521){if(_0xe37521['batch']['isUndo']||!_0xe37521['batch']['isLocal'])return!0x1;const _0x15ad01=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x15ad01['trackChangesCommand']['value'])return!0x1;let _0x4986fb=!0x1;const _0x2d1a66=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x569011=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x301781=>'attribute'==_0x301781['type'])['filter'](_0x199173=>_0x2d1a66['includes'](_0x199173['attributeKey']));if(0x0==_0x569011['length'])return _0x4986fb;for(const _0x4477c1 of _0x569011){const _0x3accda=_0x15ad01['_findSuggestions'](_0x4477c1['range'],'attribute')['filter'](_0x22ebd0=>!_0x22ebd0['meta']['isNextTo'])['map'](_0x179e09=>_0x179e09['suggestion'])['filter'](_0x3ebd36=>{const _0x396930=_0x15ad01['_getAttributeKey'](_0x3ebd36);return _0x2d1a66['includes'](_0x396930);});if(_0x3accda['length']){for(const _0x1110fd of _0x3accda)_0xe37521['removeMarker'](_0x1110fd['getFirstMarker']());_0x4986fb=!0x0;}}return _0x4986fb;}['assureChains'](){const _0x3537b5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x498a79=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x173536;const _0x255740=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x40bff6=>{if(_0x40bff6['data']['oldRange']||!_0x40bff6['data']['newRange'])return null;if(!_0x40bff6['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x10c5de}=_0x3537b5['_splitMarkerName'](_0x40bff6['name']);if(!_0x3537b5['hasSuggestion'](_0x10c5de))return null;const _0x54655b=_0x3537b5['getSuggestion'](_0x10c5de);return _0x498a79['includes'](_0x54655b['data']['key']);})['map'](_0x2b43fe=>{const {id:_0x3032bd}=_0x3537b5['_splitMarkerName'](_0x2b43fe['name']),_0x3d894c=_0x3537b5['getSuggestion'](_0x3032bd);return _0x173536=_0x3d894c['attributes']['groupId'],_0x3d894c['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x255740['size'])return;const _0x3d5b71=_0x3537b5['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x42ddf2=>'attribute'==_0x42ddf2['type']&&_0x42ddf2['data']&&_0x498a79['includes'](_0x42ddf2['data']['key'])&&_0x42ddf2['attributes']['groupId']!=_0x173536)['map'](_0x7d53d=>({'listItem':_0x7d53d['getFirstRange']()['start']['nodeAfter'],'groupId':_0x7d53d['attributes']['groupId']})),_0x339fc0=new Set();for(const {groupId:_0x5a7e04,listItem:_0x33ff98}of _0x3d5b71)_0x255740['has'](_0x33ff98)&&_0x339fc0['add'](_0x5a7e04);for(const _0x591f54 of _0x3537b5['getSuggestions']())_0x339fc0['has'](_0x591f54['attributes']['groupId'])&&_0x591f54['setAttribute']('groupId',_0x173536);}['_supportLegacySuggestions'](){const _0x2573a9=this['editor'],_0x1d0698=_0x2573a9['locale'],_0x435761=_0x2573a9['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x435761['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x260be4,_0x3d0bca){const _0x4c1b2e=[];for(let _0x334278 of _0x260be4)_0x334278['start']['nodeAfter']===_0x334278['end']['parent']&&(_0x334278=_0x2573a9['model']['createRange'](_0x2573a9['model']['createPositionAt'](_0x334278['start']['nodeAfter'],0x0))),_0x4c1b2e['push'](_0x334278);_0x2573a9['model']['change'](_0x15c8f9=>{const _0xb4341f=_0x2573a9['model']['document']['selection'],_0x4eaa30=Array['from'](_0xb4341f['getRanges']())['map'](_0x5cf485=>_0x34ca76['fromRange'](_0x5cf485));_0x15c8f9['setSelection'](_0x4c1b2e),_0x2573a9['commands']['get'](_0x3d0bca['commandName'])['refresh'](),_0x3d0bca['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2573a9['execute'](_0x3d0bca['commandName'],..._0x3d0bca['commandParams']),_0x15c8f9['setSelection'](_0x4eaa30);for(const _0x79dbb0 of _0x4eaa30)_0x79dbb0['detach']();});}),_0x435761['descriptionFactory']['registerElementLabel'](function(_0x318fa7){const _0x54eae9=!_0x2573a9['model']['schema']['isObject'](_0x318fa7),_0x2aaf73=_0x318fa7['previousSibling'],_0x3e6b5f=_0x318fa7['nextSibling'],_0x7b49ea=_0x318fa7['getAttribute']('listItemId'),_0x54079d=!_0x2aaf73||_0x2aaf73['getAttribute']('listItemId')!==_0x7b49ea,_0x2b0645=!_0x3e6b5f||_0x3e6b5f['getAttribute']('listItemId')!==_0x7b49ea;return _0x54eae9&&Boolean(_0x7b49ea)&&_0x54079d&&_0x2b0645;},_0x5a8c05=>c(_0x1d0698,'ELEMENT_LIST_ITEM',_0x5a8c05));}['_registerLegacyDescription'](){const _0x6543d9=this['editor'],_0x4708e7=_0x6543d9['locale'];function _0x3569ee(_0x3648af){const _0x3e6cf6=_0x6543d9['commands']['get']('bulletedList')['value'],_0x30c4c8=_0x6543d9['commands']['get']('numberedList')['value'];return'numberedList'===_0x3648af?_0x3e6cf6:_0x30c4c8;}_0x6543d9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x1e308c){if('formatBlock'!=_0x1e308c['type'])return;const {data:_0x1a2e1c}=_0x1e308c;if(!_0x1a2e1c)return;let _0x464e61,_0x868b65,_0x5d7f85,_0x3a7a79;switch(_0x1a2e1c['commandName']){case'bulletedList':_0x5d7f85=_0x1a2e1c['commandParams'][0x0]['forceValue'],_0x3a7a79=_0x3569ee(_0x1a2e1c['commandName']),_0x464e61=_0x5d7f85?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3a7a79&&_0x6543d9['config']['get']('list.multiBlock')||(_0x464e61='*Change\x20to:*\x20%0'),_0x868b65={'type':'format','content':c(_0x4708e7,_0x464e61,c(_0x4708e7,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5d7f85=_0x1a2e1c['commandParams'][0x0]['forceValue'],_0x3a7a79=_0x3569ee(_0x1a2e1c['commandName']),_0x464e61=_0x5d7f85?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3a7a79&&_0x6543d9['config']['get']('list.multiBlock')||(_0x464e61='*Change\x20to:*\x20%0'),_0x868b65={'type':'format','content':c(_0x4708e7,_0x464e61,c(_0x4708e7,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x464e61='*Indent:*\x20%0',_0x868b65={'type':'format','content':c(_0x4708e7,_0x464e61,c(_0x4708e7,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x464e61=function(_0x1ed92e){const _0x4fd0df=_0x1ed92e['getFirstRange']();let _0x5059a0=_0x4fd0df['start']['nodeAfter'];for(;_0x5059a0&&_0x4fd0df['containsItem'](_0x5059a0);){if(_0x5059a0['getAttribute']('listIndent')>0x0)return!0x1;_0x5059a0=_0x5059a0['nextSibling'];}return!0x0;}(_0x1e308c)?c(_0x4708e7,'*Format:*\x20remove\x20from\x20%0',c(_0x4708e7,function(_0x5453c2){return'ELEMENT_'+_0x5453c2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x1e308c))):c(_0x4708e7,'*Outdent:*\x20%0',c(_0x4708e7,'ELEMENT_LIST_ITEM')),_0x868b65={'type':'format','content':_0x464e61};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x1a2e1c['multipleBlocks']&&(_0x464e61='*Merge:*\x20%0',_0x868b65={'type':'deletion','content':c(_0x4708e7,_0x464e61,c(_0x4708e7,'ELEMENT_LIST_ITEM'))});}return _0x868b65;});}}function Te(_0x3ef2f1){let _0x53d69b=_0x3ef2f1['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x53d69b;){const _0x2476c7=_0x53d69b['getAttribute']('listItemId');if(!_0x2476c7)return!0x1;if(_0x2476c7==_0x3ef2f1['data']['newValue'])return'newValue';if(_0x2476c7==_0x3ef2f1['data']['oldValue'])return'oldValue';_0x53d69b=_0x53d69b['previousSibling'];}return!0x1;}class Se extends _0x3953b7{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x39b053=this['editor']['config']['get']('list.properties'),_0x1f7cf6=this['editor']['plugins']['get']('TrackChangesEditing');_0x39b053['styles']&&(_0x1f7cf6['enableDefaultAttributesIntegration']('listStyle'),_0x1f7cf6['registerBlockAttribute']('listStyle')),_0x39b053['reversed']&&(_0x1f7cf6['enableDefaultAttributesIntegration']('listReversed'),_0x1f7cf6['registerBlockAttribute']('listReversed')),_0x39b053['startIndex']&&(_0x1f7cf6['enableDefaultAttributesIntegration']('listStart'),_0x1f7cf6['registerBlockAttribute']('listStart'));const _0x342134={'type':'format','content':''};_0x1f7cf6['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x5e3264=this['editor']['locale'];_0x1f7cf6['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x5e3264,'FORMAT_LIST_REVERSED')),_0x1f7cf6['descriptionFactory']['registerDescriptionCallback'](_0xb88041=>{const {data:_0x2aa6ae}=_0xb88041;if(_0x2aa6ae&&'listReversed'==_0x2aa6ae['key'])return null==_0x2aa6ae['newValue']||0x0==_0x2aa6ae['newValue']&&null==_0x2aa6ae['oldValue']?_0x342134:void 0x0;}),_0x1f7cf6['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x5e3264,'FORMAT_LIST_START')),_0x1f7cf6['descriptionFactory']['registerDescriptionCallback'](_0x2222ea=>{const {data:_0x1a8dce}=_0x2222ea;if(_0x1a8dce&&'listStart'==_0x1a8dce['key'])return null==_0x1a8dce['newValue']||0x1==_0x1a8dce['newValue']&&null==_0x1a8dce['oldValue']?_0x342134:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x29077f=>{if(_0x29077f['batch']['isUndo'])return!0x1;let _0x240a81=!0x1;const _0x17dd0d=_0x1f7cf6['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4eb10e=>{const _0x4cd39e=_0x1f7cf6['_getAttributeKey'](_0x4eb10e);return'listStart'==_0x4cd39e||'listReversed'==_0x4cd39e;});for(const _0x2d1c01 of _0x17dd0d){const _0x470719=_0x2d1c01['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x470719||'customNumbered'==_0x470719)continue;_0x1f7cf6['_findSuggestions'](_0x2d1c01['getFirstRange'](),'attribute')['find'](_0x6b9947=>'listType'==_0x1f7cf6['_getAttributeKey'](_0x6b9947['suggestion']))||(_0x29077f['removeMarker'](_0x2d1c01['getFirstMarker']()),_0x240a81=!0x0);}return _0x240a81;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2fd994){const _0x314c45=this['editor']['locale'],{data:_0x41eafc}=_0x2fd994,_0x5ce104={'type':'format','content':''};if(!_0x41eafc||'listStyle'!=_0x41eafc['key'])return;if(!_0x41eafc['oldValue'])return'default'==_0x41eafc['newValue']?_0x5ce104:{'type':'format','content':''+c(_0x314c45,'*Set\x20format:*\x20%0',c(_0x314c45,this['_getTranslationKeyForListStyle'](_0x41eafc['newValue'])))};if(!_0x41eafc['newValue']){if('default'==_0x41eafc['oldValue'])return _0x5ce104;let _0x43233e=_0x2fd994['head'];for(;_0x43233e;){if(_0x43233e['data']&&'listType'==_0x43233e['data']['key']&&_0x43233e['data']['newValue'])return _0x5ce104;_0x43233e=_0x43233e['next'];}return{'type':'format','content':''+c(_0x314c45,'*Remove\x20format:*\x20%0',c(_0x314c45,this['_getTranslationKeyForListStyle'](_0x41eafc['oldValue'])))};}if('default'!=_0x41eafc['newValue'])return{'type':'format','content':''+c(_0x314c45,'*Set\x20format:*\x20%0',c(_0x314c45,this['_getTranslationKeyForListStyle'](_0x41eafc['newValue'])))};let _0x264eae=_0x2fd994['head'];for(;_0x264eae;){if(_0x264eae['data']&&'listType'==_0x264eae['data']['key']&&_0x264eae['data']['newValue']&&_0x264eae['data']['oldValue'])return _0x5ce104;_0x264eae=_0x264eae['next'];}return{'type':'format','content':c(_0x314c45,'*Set\x20format:*\x20%0',c(_0x314c45,'ELEMENT_'+_0x2fd994['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1fcd47=this['editor'],_0x5e824b=_0x1fcd47['locale'];_0x1fcd47['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x352a5c=>{if('formatBlock'!=_0x352a5c['type'])return;const {data:_0x2d2667}=_0x352a5c;if(!_0x2d2667)return;let _0x2d4b1f,_0x35a246;switch(_0x2d2667['commandName']){case'listStyle':_0x2d4b1f='*Change\x20to:*\x20%0',_0x35a246={'type':'format','content':c(_0x5e824b,_0x2d4b1f,c(_0x5e824b,this['_getTranslationKeyForListStyle'](_0x2d2667['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2d4b1f=_0x2d2667['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x35a246={'type':'format','content':c(_0x5e824b,_0x2d4b1f)};break;case'listStart':_0x2d4b1f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x35a246={'type':'format','content':c(_0x5e824b,_0x2d4b1f,_0x2d2667['commandParams'][0x0]['startIndex'])};}return _0x35a246;});}['_getTranslationKeyForListStyle'](_0x3db420){return'ELEMENT_'+function(_0x5163d3){if(_e['includes'](_0x5163d3))return'bulleted';if(Re['includes'](_0x5163d3))return'numbered';return null;}(_0x3db420)['toUpperCase']()+'_LIST_'+_0x3db420['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x3953b7{['afterInit'](){const _0x48dedc=this['editor'];_0x48dedc['commands']['get']('emoji')&&_0x48dedc['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x3953b7{static get['requires'](){return[_0x34f239];}['init'](){const _0x21a1a4=this['editor'],_0x1ed3f2=_0x21a1a4['plugins']['get']('TrackChangesEditing'),_0x463eef=_0x21a1a4['commands']['get']('enter');_0x1ed3f2['enableCommand']('enter',()=>{_0x21a1a4['model']['change'](_0x2b771d=>{const _0x462582=_0x21a1a4['model']['document']['selection'],_0x4f3f04=_0x462582['getFirstPosition'](),_0x14874d=_0x34ca76['fromRange'](_0x462582['getFirstRange']());if(_0x463eef['enterBlock'](_0x2b771d)){const _0x135e3e=_0x21a1a4['model']['createPositionAt'](_0x4f3f04['parent']['nextSibling'],0x0),_0x5a51e=_0x2b771d['createRange'](_0x4f3f04,_0x135e3e);_0x1ed3f2['markInsertion'](_0x5a51e);}else _0x2b771d['setSelection'](_0x2b771d['createRange'](_0x14874d['end']));_0x14874d['detach'](),_0x463eef['fire']('afterExecute',{'writer':_0x2b771d});});}),_0x21a1a4['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x21a1a4,'split'),{'priority':'high'}),_0x21a1a4['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x5e41d8,_0xe2edea,_0x2834b6)=>{const _0xa05977=_0x2834b6['mapper']['markerNameToElements'](_0xe2edea['markerName']);if(_0xa05977){for(const _0x219e54 of _0xa05977)_0x219e54['hasClass']('ck-suggestion-marker-split')&&(_0x2834b6['mapper']['unbindElementFromMarkerName'](_0x219e54,_0xe2edea['markerName']),_0x2834b6['writer']['remove'](_0x219e54));}},{'priority':'high'}),_0x21a1a4['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x15f7ea,_0xaa7512,_0x4d7324)=>{_0x4d7324['options']['showSuggestionHighlights']&&Fe(_0x21a1a4,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x15f7ea,_0xaa7512,_0x4d7324);},{'priority':'high'});}}class Z extends _0x3953b7{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x48ea79=this['editor']['plugins']['get']('TrackChangesEditing');_0x48ea79['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x48ea79['enableCommand']('findNext'),_0x48ea79['enableCommand']('findPrevious'),_0x48ea79['enableCommand']('replace'),_0x48ea79['enableCommand']('replaceAll');}['handleFindCommand'](_0x50d70e,_0x39065f,_0x526d84={}){const _0x68da15=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x50d70e(_0x484be1=>{let _0x1a0fbf=('string'==typeof _0x39065f?_0x68da15['findByTextCallback'](_0x39065f,_0x526d84):_0x39065f)(_0x484be1);Array['isArray'](_0x1a0fbf)&&(_0x1a0fbf={'results':_0x1a0fbf,'searchText':'string'==typeof _0x39065f?_0x39065f:''});const _0x48d55d=_0x1a0fbf['results']['filter'](_0xd47bad=>!0x1===this['_isInDeletionRange'](_0xd47bad,_0x484be1['item']));return{..._0x1a0fbf,'results':_0x48d55d};},_0x526d84);}['_isInDeletionRange'](_0x1bceeb,_0x53c222){const _0x9cbd85=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x53c222,_0x1bceeb['start']),this['editor']['model']['createPositionAt'](_0x53c222,_0x1bceeb['end']));for(const _0x59e64e of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x9cbd85['getIntersection'](_0x59e64e['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 _0x3953b7{['afterInit'](){const _0x462b5a=this['editor']['locale'],_0x43c630=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x41b350,commandName:_0xd22c08}of ro)this['editor']['plugins']['has'](_0x41b350)&&(_0x43c630['enableDefaultAttributesIntegration'](_0xd22c08),_0x43c630['registerInlineAttribute'](_0xd22c08));_0x43c630['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x462b5a,'FORMAT_FONT_SIZE')),_0x43c630['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x462b5a,'FORMAT_FONT_FAMILY')),_0x43c630['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x462b5a,'FORMAT_FONT_COLOR')),_0x43c630['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x462b5a,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3aa6c5=this['editor'],_0x2fe457=_0x3aa6c5['locale'];_0x3aa6c5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x14cb5b=>{const _0x502bb1=_0x2fe457['t'];if('formatInline'!=_0x14cb5b['type'])return;const {data:_0x15610e}=_0x14cb5b;if(null!=_0x15610e){if('fontSize'==_0x15610e['commandName']){const _0x29aa72=_0x15610e['commandParams'][0x0]['value'];if(_0x29aa72){const _0x58cd4a=_0x502bb1(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x43dc59=>_0x43dc59['model']==_0x29aa72)['title'])['toLowerCase']();return{'type':'format','content':c(_0x2fe457,'*Set\x20font\x20size:*\x20%0',_0x58cd4a)};}return{'type':'format','content':c(_0x2fe457,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x15610e['commandName']){const _0x33b0b8=_0x15610e['commandParams'][0x0]['value'];return _0x33b0b8?{'type':'format','content':c(_0x2fe457,'*Set\x20font\x20family:*\x20%0',_0x33b0b8)}:{'type':'format','content':c(_0x2fe457,'*Reset\x20font\x20family*')};}if('fontColor'==_0x15610e['commandName']){const _0x5b59c3=_0x15610e['commandParams'][0x0]['value'];if(_0x5b59c3){const _0x75f764=_0x60b02b(this['editor']['config']['get']('fontColor.colors'))['find'](_0x2ca463=>_0x2ca463['model']==_0x5b59c3);let _0x462e62=_0x5b59c3,_0x5340ce='';return _0x75f764&&(_0x462e62=_0x75f764['label'],_0x5340ce=_0x502bb1(_0x462e62)['toLowerCase']()),{'type':'format','content':c(_0x2fe457,'*Set\x20font\x20color:*\x20%0',_0x5340ce)['trim'](),'color':{'value':_0x5b59c3,'title':_0x5340ce||_0x462e62}};}return{'type':'format','content':c(_0x2fe457,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x15610e['commandName']){const _0x537065=_0x15610e['commandParams'][0x0]['value'];if(_0x537065){const _0x407969=_0x60b02b(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2ead88=>_0x2ead88['model']==_0x537065);let _0x1793bf=_0x537065,_0x3de2ee='';return _0x407969&&(_0x1793bf=_0x407969['label'],_0x3de2ee=_0x502bb1(_0x1793bf)['toLowerCase']()),{'type':'format','content':c(_0x2fe457,'*Set\x20font\x20background\x20color:*\x20%0',_0x3de2ee)['trim'](),'color':{'value':_0x537065,'title':_0x3de2ee||_0x1793bf}};}return{'type':'format','content':c(_0x2fe457,'*Reset\x20font\x20background\x20color*')};}}});}}class it extends _0x3953b7{['afterInit'](){const _0xb0491a=this['editor'],_0x804b1=_0xb0491a['plugins']['get']('TrackChangesEditing'),_0x5a29e3=_0xb0491a['commands']['get']('copyFormat'),_0x23e135=_0xb0491a['commands']['get']('pasteFormat');_0x5a29e3&&_0x23e135&&(_0x804b1['enableDefaultAttributesIntegration']('pasteFormat'),_0x804b1['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x20be50=this['editor'],_0x561a70=_0x20be50['locale'];_0x20be50['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x58bfe2=>{if('formatBlock'!=_0x58bfe2['type']&&'formatInline'!=_0x58bfe2['type'])return;const {data:_0xf1ad1f}=_0x58bfe2;if(_0xf1ad1f&&'pasteFormat'===_0xf1ad1f['commandName']){const _0x50043c=[],_0x564215=_0xf1ad1f['commandParams'][0x0];for(const [_0x38e0fb,_0x363b0b]of Object['entries'](_0x564215))_0x50043c['push'](so(_0x20be50,_0x38e0fb,_0x363b0b));return _0x50043c['length']?{'type':'format','content':c(_0x561a70,'*Set\x20format\x20to:*\x20%0',_0x50043c['join'](',\x20'))}:{'type':'format','content':c(_0x561a70,'*Remove\x20all\x20formatting*')};}});}}function so(_0x4d82fe,_0x1f0b32,_0x551112){const _0x155e6b=_0x4d82fe['locale']['t'],_0x2b530a=_0x1f0b32['split'](/(?=[A-Z])/)['join']('\x20'),_0x1b8560=_0x155e6b(_0x2b530a['charAt'](0x0)['toUpperCase']()+_0x2b530a['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x551112)return _0x1b8560;if('fontColor'===_0x1f0b32||'fontBackgroundColor'===_0x1f0b32){const _0xda3dd9=_0x60b02b(_0x4d82fe['config']['get']('fontColor.colors'))['find'](_0x23f43d=>_0x23f43d['model']==_0x551112);return _0x1b8560+'\x20('+(_0xda3dd9?_0x155e6b(_0xda3dd9['label'])['toLowerCase']():_0x551112)+')';}if('fontSize'===_0x1f0b32&&isNaN(parseFloat(_0x551112))){const _0x4dd1c0=_0x4d82fe['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x4d82fe['config']['get']('fontSize.options'))['find'](_0xa68d1d=>_0xa68d1d['model']==_0x551112);return _0x1b8560+'\x20('+(_0x4dd1c0?_0x155e6b(_0x4dd1c0['title'])['toLowerCase']():_0x551112)+')';}return _0x1b8560+'\x20('+_0x551112+')';}class et extends _0x3953b7{['_headingOptions'];['afterInit'](){const _0x24786d=this['editor'];if(!_0x24786d['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x24786d['config']['get']('heading.options');const _0x2755bc=_0x24786d['locale'],_0xee80f6=_0x24786d['plugins']['get']('TrackChangesEditing');_0xee80f6['enableDefaultAttributesIntegration']('heading');for(const _0xbeb9c1 of this['_headingOptions'])'paragraph'!=_0xbeb9c1['model']&&_0xee80f6['descriptionFactory']['registerElementLabel'](_0xbeb9c1['model'],_0x321222=>{const _0x6ad84a=this['_getHeadingLevel'](_0xbeb9c1['model']);return null!==_0x6ad84a?_0x502436(_0x321222,_0x6ad84a):_0x32a492(_0x321222,_0xbeb9c1['title']);});function _0x502436(_0x22f509,_0x269e7f){return c(_0x2755bc,'ELEMENT_HEADING',[_0x22f509,_0x269e7f]);}function _0x32a492(_0x4a0884,_0x24bfb4){return c(_0x2755bc,'ELEMENT_HEADING_CUSTOM',[_0x4a0884,_0x24bfb4]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4cb42a=this['editor'],_0x5dddc6=_0x4cb42a['locale'];function _0xef2970(_0x54fbd9,_0x355f43){return c(_0x5dddc6,'ELEMENT_HEADING_CUSTOM',[_0x54fbd9,_0x355f43]);}_0x4cb42a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3fe6c7=>{if('formatBlock'!=_0x3fe6c7['type'])return;const {data:_0x15a7d9}=_0x3fe6c7;if(_0x15a7d9&&'heading'==_0x15a7d9['commandName']){const _0x5b423e=_0x15a7d9['commandParams'][0x0]['value'],_0x491af0=this['_getHeadingLevel'](_0x5b423e);if(null!==_0x491af0)return{'type':'format','content':c(_0x5dddc6,'*Change\x20to:*\x20%0',(_0xa23eb3=0x1,_0x3d53dd=_0x491af0,c(_0x5dddc6,'ELEMENT_HEADING',[_0xa23eb3,_0x3d53dd])))};const _0x37b1c1=this['_headingOptions']['find'](_0x33ee74=>_0x33ee74['model']===_0x5b423e)['title'];return{'type':'format','content':c(_0x5dddc6,'*Change\x20to:*\x20%0',_0xef2970(0x1,_0x37b1c1))};}var _0xa23eb3,_0x3d53dd;});}['_getHeadingLevel'](_0x23c915){const _0x535bcb=_0x23c915['match'](/^heading(\d+)/);if(_0x535bcb)return _0x535bcb[0x1];const _0x2acef9=this['_headingOptions']?.['find'](_0x156ec4=>_0x156ec4['model']==_0x23c915);if(_0x2acef9&&_0x2acef9['view']){const _0x191be2=_0x2acef9['view'],_0x344eb5=(_0x191be2['name']??_0x191be2)['match'](/^h(\d+)/);if(_0x344eb5)return _0x344eb5[0x1];}return null;}}class nt extends _0x3953b7{['afterInit'](){const _0x51d347=this['editor'];if(!_0x51d347['plugins']['has']('HighlightEditing'))return;const _0x40ca59=_0x51d347['plugins']['get']('TrackChangesEditing'),_0x9cb591=_0x51d347['locale'];_0x40ca59['enableDefaultAttributesIntegration']('highlight'),_0x40ca59['registerInlineAttribute']('highlight'),_0x40ca59['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x9cb591,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9b486d=this['editor'],_0x28735b=_0x9b486d['locale'];_0x9b486d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1cd5d1=>{if('formatInline'!=_0x1cd5d1['type'])return;const {data:_0x5dba2c}=_0x1cd5d1;if(_0x5dba2c&&'highlight'==_0x5dba2c['commandName']){const _0x164677=_0x28735b['t'],_0x1f97c1=_0x5dba2c['commandParams'][0x0]['value'];if(_0x1f97c1){const _0x5d7daa=_0x9b486d['config']['get']('highlight.options')['find'](_0x4e91f3=>_0x4e91f3['model']==_0x1f97c1),_0x2699a6=_0x164677(_0x5d7daa['title'])['toLowerCase']();return{'type':'format','content':c(_0x28735b,'*Set\x20highlight:*\x20%0',_0x2699a6),'color':{'value':_0x5d7daa['color'],'title':_0x5d7daa['title']}};}return{'type':'format','content':c(_0x28735b,'*Remove\x20highlight*',c(_0x28735b,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x3953b7{['afterInit'](){const _0x1b5f5f=this['editor'];if(!_0x1b5f5f['plugins']['has']('HorizontalLineEditing'))return;_0x1b5f5f['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x421348=_0x1b5f5f['plugins']['get']('TrackChangesEditing'),_0x3fdbfc=_0x1b5f5f['locale'];_0x421348['descriptionFactory']['registerElementLabel']('horizontalLine',_0x398210=>c(_0x3fdbfc,'ELEMENT_HORIZONTAL_LINE',_0x398210)),_0x1b5f5f['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x24fe7f,{writer:_0x18ccdd,options:_0x8ca225})=>{if(!_0x8ca225['showSuggestionHighlights'])return null;const _0x120baf=_0x18ccdd['createContainerElement']('div'),_0x4840ae=_0x18ccdd['createEmptyElement']('hr');return _0x18ccdd['addClass']('ck-horizontal-line',_0x120baf),_0x18ccdd['insert'](_0x18ccdd['createPositionAt'](_0x120baf,0x0),_0x4840ae),_0x120baf;},'converterPriority':'high'});}}class ot extends _0x3953b7{['afterInit'](){const _0x29c5bc=this['editor'];if(!_0x29c5bc['plugins']['has']('HtmlEmbed'))return;const _0xbae537=_0x29c5bc['plugins']['get']('TrackChangesEditing'),_0x2f65d0=_0x29c5bc['locale'];_0xbae537['descriptionFactory']['registerElementLabel']('rawHtml',_0x51111c=>c(_0x2f65d0,'ELEMENT_HTML_EMBED',_0x51111c)),_0xbae537['enableDefaultAttributesIntegration']('htmlEmbed'),_0xbae537['registerBlockAttribute']('value'),_0xbae537['descriptionFactory']['registerDescriptionCallback'](_0x3f9bf1=>{if('attribute'!=_0x3f9bf1['type'])return;const {data:_0x141a75}=_0x3f9bf1;if(_0x141a75&&'value'==_0x141a75['key']&&_0x3f9bf1['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x166257=c(_0x2f65d0,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x2f65d0,'*Change\x20%0\x20content*',_0x166257)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x30837f=this['editor'],_0x7c30c4=_0x30837f['locale'];_0x30837f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x314307=>{if('formatBlock'!=_0x314307['type'])return;const {data:_0x23b24d}=_0x314307;if(_0x23b24d&&'htmlEmbed'==_0x23b24d['commandName']){const _0x5f2bab=c(_0x7c30c4,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x7c30c4,'*Change\x20%0\x20content*',_0x5f2bab)};}});}}class rt extends _0x3953b7{['afterInit'](){const _0x4ff951=this['editor'];if(!_0x4ff951['plugins']['has']('ImageEditing'))return;const _0x42e22c=_0x4ff951['plugins']['get']('TrackChangesEditing'),_0x1e3f17=_0x4ff951['plugins']['get']('ImageUtils'),_0xe3793b=_0x4ff951['locale'];_0x42e22c['enableCommand']('insertImage'),_0x42e22c['descriptionFactory']['registerElementLabel']('imageBlock',_0x5edfff=>c(_0xe3793b,'ELEMENT_IMAGE',_0x5edfff)),_0x42e22c['descriptionFactory']['registerElementLabel']('imageInline',_0x45ab5d=>c(_0xe3793b,'ELEMENT_INLINE_IMAGE',_0x45ab5d)),_0x42e22c['descriptionFactory']['registerElementLabel']('caption',()=>c(_0xe3793b,'ELEMENT_CAPTION')),_0x4ff951['plugins']['has']('ImageUploadEditing')&&_0x42e22c['enableCommand']('uploadImage'),_0x4ff951['plugins']['has']('ImageBlockEditing')&&_0x4ff951['plugins']['has']('ImageInlineEditing')&&(_0x42e22c['enableCommand']('imageTypeInline',(_0x33c38b,_0x54926b)=>{const _0x38283b=_0x1e3f17['getClosestSelectedImageElement'](_0x4ff951['model']['document']['selection']);_0x4ff951['model']['change'](()=>{_0x42e22c['markBlockFormat'](_0x38283b,{'commandName':'imageTypeInline','commandParams':[_0x54926b]},[],'convertBlockImageToInline');});}),_0x42e22c['enableCommand']('imageTypeBlock',(_0x52a9c2,_0x1cfa92)=>{_0x4ff951['model']['change'](_0x1a8a62=>{let _0x527e64=_0x1e3f17['getClosestSelectedImageElement'](_0x4ff951['model']['document']['selection']),_0x3020ad=_0x1a8a62['createRangeOn'](_0x527e64);const _0x57f49f=_0x15578e['fromPosition'](_0x3020ad['start'],'toPrevious'),_0x5e65eb=_0x15578e['fromPosition'](_0x3020ad['end'],'toNext');_0x42e22c['forceDefaultExecution'](()=>_0x52a9c2(_0x1cfa92)),_0x527e64=_0x1e3f17['getClosestSelectedImageElement'](_0x4ff951['model']['document']['selection']),_0x3020ad=_0x1a8a62['createRangeOn'](_0x527e64);const _0x249729=_0x1a8a62['createRange'](_0x57f49f,_0x5e65eb);_0x57f49f['detach'](),_0x5e65eb['detach'](),_0x42e22c['markBlockFormat'](_0x527e64,{'commandName':'imageTypeInline','commandParams':[_0x1cfa92]},[],'convertInlineImageToBlock'),_0x249729['start']['isBefore'](_0x3020ad['start'])&&_0x42e22c['markInsertion'](_0x1a8a62['createRange'](_0x249729['start'],_0x3020ad['start']),'convertInlineImageToBlock'),_0x3020ad['end']['isBefore'](_0x249729['end'])&&_0x42e22c['markInsertion'](_0x1a8a62['createRange'](_0x3020ad['end'],_0x249729['end']),'convertInlineImageToBlock');});}),_0x42e22c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x42e22c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x42e22c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x42e22c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x42e22c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x42e22c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4b4ee7])=>{const _0x3b1e54=_0x42e22c['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x5a672e=_0x4b4ee7['start'],_0x2dc0a4=_0x4b4ee7['end'];const _0x5b7607=_0x4ff951['model']['schema']['getNearestSelectionRange'](_0x5a672e,'backward'),_0x5ae850=_0x4ff951['model']['schema']['getNearestSelectionRange'](_0x2dc0a4,'forward');_0x5b7607['isCollapsed']&&(_0x5a672e=_0x5b7607['start']),_0x5ae850['isCollapsed']&&(_0x2dc0a4=_0x5ae850['end']),_0x3b1e54([_0x4ff951['model']['createRange'](_0x5a672e,_0x2dc0a4)]);}),_0x42e22c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x57838b),_0x42e22c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x57838b)),_0x4ff951['plugins']['has']('ImageCaptionEditing')&&(_0x42e22c['enableCommand']('toggleImageCaption',(_0x1efbb4,_0x5a278b)=>{const _0x14a64d=_0x4ff951['plugins']['get']('ImageCaptionUtils');let _0x4900e9=_0x1e3f17['getClosestSelectedImageElement'](_0x4ff951['model']['document']['selection']),_0x2fc832=_0x14a64d['getCaptionFromImageModelElement'](_0x4900e9);_0x4ff951['model']['change'](()=>{if(_0x2fc832)return void _0x42e22c['markDeletion'](_0x4ff951['model']['createRangeOn'](_0x2fc832));const _0x372498=_0x1e3f17['isBlockImage'](_0x4900e9);_0x1efbb4(_0x5a278b),_0x4900e9=_0x1e3f17['getClosestSelectedImageElement'](_0x4ff951['model']['document']['selection']),_0x2fc832=_0x14a64d['getCaptionFromImageModelElement'](_0x4900e9),_0x42e22c['markInsertion'](_0x4ff951['model']['createRangeOn'](_0x2fc832),_0x372498?null:'imageCaption');});}),_0x42e22c['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x57838b));const _0x5e57cc=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3e393d(_0x51a1c4,_0x953aab){const _0x2f3589=_0x5e57cc['findIndex'](({type:_0x410723,subType:_0x35b287})=>_0x51a1c4['type']==_0x410723&&_0x51a1c4['subType']==_0x35b287),_0x4f8e9d=_0x5e57cc['findIndex'](({type:_0x54eeea,subType:_0xf5d791})=>_0x953aab['type']==_0x54eeea&&_0x953aab['subType']==_0xf5d791);if(_0x2f3589<0x0||_0x4f8e9d<0x0)return!0x1;const _0x2dc6cb=_0x51a1c4['getFirstRange'](),_0x550131=_0x953aab['getFirstRange']();if((0x0==_0x2f3589||0x1==_0x2f3589)&&0x2==_0x4f8e9d&&_0x2dc6cb['isIntersecting'](_0x550131))return!0x0;if(0x2==_0x2f3589&&0x3==_0x4f8e9d){const _0x5458e0=_0x42e22c['_findSuggestions'](_0x2dc6cb,'insertion')['filter'](({suggestion:_0x48fa32,meta:_0xeb87bc})=>_0xeb87bc['isOwn']&&'convertInlineImageToBlock'==_0x48fa32['subType']);if(_0x5458e0['length']>0x1&&_0x550131['end']['isEqual'](_0x2dc6cb['start']))return!0x0;if(0x1==_0x5458e0['length']&&(_0x2dc6cb['start']['isEqual'](_0x550131['end'])||_0x2dc6cb['end']['isEqual'](_0x550131['start'])))return!0x0;}if(0x3==_0x2f3589&&0x3==_0x4f8e9d&&_0x2dc6cb['start']['isBefore'](_0x550131['start'])){const _0x416f8d=_0x2dc6cb['end']['nodeAfter'],_0x345144=_0x550131['start']['nodeBefore'];return _0x1e3f17['isBlockImage'](_0x416f8d)&&_0x416f8d===_0x345144;}return!0x1;}function _0x57838b(_0x4e1efd,_0x45c35a){return _0x3e393d(_0x4e1efd,_0x45c35a)?[_0x4e1efd,_0x45c35a]:_0x3e393d(_0x45c35a,_0x4e1efd)?[_0x45c35a,_0x4e1efd]:null;}_0x4ff951['plugins']['has']('ImageResize')&&(_0x42e22c['enableDefaultAttributesIntegration']('resizeImage'),_0x42e22c['registerBlockAttribute']('resizedWidth'),_0x42e22c['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0xe3793b,'FORMAT_IMAGE_SIZE'))),_0x4ff951['plugins']['has']('ImageTextAlternativeEditing')&&(_0x42e22c['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x42e22c['registerBlockAttribute']('alt')),_0x4ff951['plugins']['has']('PictureEditing')&&(_0x42e22c['registerBlockAttribute']('sources'),_0x42e22c['descriptionFactory']['registerDescriptionCallback'](_0x1f8519=>{if('attribute'!=_0x1f8519['type'])return;const {data:_0x5e874e}=_0x1f8519;return _0x5e874e&&'sources'==_0x5e874e['key']?{'type':'format','content':''}:void 0x0;})),_0x4ff951['plugins']['has']('ImageSizeAttributes')&&(_0x42e22c['registerBlockAttribute']('width'),_0x42e22c['registerBlockAttribute']('height'),_0x42e22c['descriptionFactory']['registerDescriptionCallback'](_0x571ce9=>{if('attribute'!=_0x571ce9['type'])return;const {data:_0x1a0182}=_0x571ce9;return!_0x1a0182||'width'!=_0x1a0182['key']&&'height'!=_0x1a0182['key']?void 0x0:{'type':'format','content':''};})),_0x42e22c['descriptionFactory']['registerDescriptionCallback'](_0x4f63db=>{if(!!_0x5e57cc['find'](({type:_0x22f40a,subType:_0x3bc908})=>_0x4f63db['type']==_0x22f40a&&_0x4f63db['subType']==_0x3bc908))return _0x4f63db['previous']?{}:void 0x0;}),_0x42e22c['descriptionFactory']['registerDescriptionCallback'](_0x24da56=>{if('insertion'==_0x24da56['type']||'deletion'==_0x24da56['type']){const _0x5497f6=_0x24da56['getContainedElement']();if(_0x5497f6&&_0x5497f6['is']('element','caption'))return{'type':'insertion'==_0x24da56['type']?'addObject':'removeObject','element':_0x5497f6,'quantity':0x1};}}),_0x42e22c['descriptionFactory']['registerDescriptionCallback'](_0x169ba8=>'formatBlock'==_0x169ba8['type']&&'convertInlineImageToBlock'==_0x169ba8['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x169ba8['type']&&'convertBlockImageToInline'==_0x169ba8['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x42e22c['descriptionFactory']['registerDescriptionCallback'](_0x4fdead=>{if('attribute'!=_0x4fdead['type'])return;const {data:_0x4e5761}=_0x4fdead;if(!_0x4e5761||'alt'!=_0x4e5761['key'])return;const _0x5cf346=_0x4e5761['newValue'];return _0x5cf346?{'type':'format','content':c(_0xe3793b,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5cf346+'\x22')}:{'type':'format','content':c(_0xe3793b,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56f371=this['editor'],_0x251b19=_0x56f371['locale'];_0x56f371['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d934c=>{if('formatBlock'!=_0x3d934c['type']&&'formatInline'!=_0x3d934c['type'])return;const {data:_0x21024c}=_0x3d934c;if(_0x21024c){if('imageTextAlternative'==_0x21024c['commandName']){const _0x4e65fd=_0x21024c['commandParams'][0x0]['newValue'];return _0x4e65fd?{'type':'format','content':c(_0x251b19,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4e65fd+'\x22')}:{'type':'format','content':c(_0x251b19,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x21024c['commandName']){const _0x4e9f41=_0x21024c['commandParams'][0x0]['width'];return _0x4e9f41?{'type':'format','content':c(_0x251b19,'*Set\x20image\x20width:*\x20%0',_0x4e9f41)}:{'type':'format','content':c(_0x251b19,'*Reset\x20image\x20width*')};}}});}}class at extends _0x3953b7{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x4aa5bc=this['editor']['locale'],_0x496e85=this['editor']['plugins']['get']('TrackChangesEditing');_0x496e85['enableDefaultAttributesIntegration']('replaceImageSource'),_0x496e85['registerBlockAttribute']('src'),_0x496e85['descriptionFactory']['registerDescriptionCallback'](_0x10fe36=>{if('attribute'!=_0x10fe36['type'])return;const {data:_0x5f37a6}=_0x10fe36;return _0x5f37a6&&'src'==_0x5f37a6['key']?_0x5f37a6['newValue']&&_0x5f37a6['oldValue']?{'type':'format','content':c(_0x4aa5bc,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5c782d=this['editor']['plugins']['get']('TrackChangesEditing');_0x5c782d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5c782d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5c782d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5c782d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x12272e=this['editor'],_0x1d136b=_0x12272e['locale'];_0x12272e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5cedb3=>{if('formatBlock'!=_0x5cedb3['type']&&'formatInline'!=_0x5cedb3['type'])return;const {data:_0x4eedd6}=_0x5cedb3;if(!_0x4eedd6||'replaceImageSource'!=_0x4eedd6['commandName'])return;return{'type':'format','content':c(_0x1d136b,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x3953b7{['afterInit'](){const _0xb6299a=this['editor'];if(!_0xb6299a['plugins']['has']('ImageStyleEditing'))return;const _0x129110=_0xb6299a['plugins']['get']('TrackChangesEditing'),_0x309b86=_0xb6299a['plugins']['get']('ImageUtils'),_0x248105={};_0x129110['enableCommand']('imageStyle',(_0x3b6143,_0x24d9b0)=>{const _0x2a5921=_0xb6299a['plugins']['get']('Users')['me'],_0x2c4fde=_0xb6299a['commands']['get']('imageStyle');let _0x287dba=_0x309b86['getClosestSelectedImageElement'](_0xb6299a['model']['document']['selection']),_0x170e1a=_0xb6299a['model']['createRangeOn'](_0x287dba),_0x41348d=_0x2c4fde['value'];if(_0x41348d==_0x24d9b0['value'])return;const _0x1037ee={'commandName':'imageStyle','commandParams':[_0x24d9b0],'formatGroupId':_0x524fb1()};_0xb6299a['model']['change'](()=>{if(_0x129110['getSuggestions']()['filter'](_0x412793=>_0x412793['isInContent']&&_0x2a5921==_0x412793['author']&&('formatBlock'==_0x412793['type']||'formatInline'==_0x412793['type'])&&('imageStylePreApply'==_0x412793['subType']||'imageStylePostApply'==_0x412793['subType'])&&_0x412793['getFirstRange']()['isEqual'](_0x170e1a))['forEach'](_0x59066f=>_0x129110['discardSuggestion'](_0x59066f['head'])),_0x287dba=_0x309b86['getClosestSelectedImageElement'](_0xb6299a['model']['document']['selection']),_0x170e1a=_0xb6299a['model']['createRangeOn'](_0x287dba),_0x2c4fde['refresh'](),_0xb6299a['commands']['get']('imageTypeInline')['refresh'](),_0xb6299a['commands']['get']('imageTypeBlock')['refresh'](),_0x41348d=_0x2c4fde['value'],_0x41348d!=_0x24d9b0['value'])return _0x309b86['isInlineImage'](_0x287dba)&&_0x2c4fde['shouldConvertImageType'](_0x24d9b0['value'],_0x287dba)?(_0x3b6143({..._0x24d9b0,'setImageSizes':!0x1}),_0x287dba=_0x309b86['getClosestSelectedImageElement'](_0xb6299a['model']['document']['selection']),void _0x129110['markBlockFormat'](_0x287dba,{..._0x1037ee,'commandReversedParams':[{'value':_0x41348d||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x309b86['isBlockImage'](_0x287dba)?_0x129110['markBlockFormat'](_0x287dba,_0x1037ee,[],'imageStylePostApply'):_0x129110['markInlineFormat'](_0x170e1a,_0x1037ee,'imageStylePostApply'));});});for(const _0x5e35f4 of _0xb6299a['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x248105[_0x5e35f4['name']]=_0x5e35f4['title']['toLowerCase']();_0x129110['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x129110['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x129110['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x129110['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x362157])=>{_0x309b86['setImageNaturalSizeAttributes'](_0x362157['getContainedElement']());}),_0x129110['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2fcd2e,_0x54ccfb)=>{_0x129110['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2fcd2e,{'commandName':_0x54ccfb['commandName'],'commandParams':_0x54ccfb['commandReversedParams']});}),_0x129110['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x26b034,_0x22ef52){if(_0x218bb1(_0x26b034,_0x22ef52))return[_0x26b034,_0x22ef52];if(_0x218bb1(_0x22ef52,_0x26b034))return[_0x22ef52,_0x26b034];return null;});const _0x593cca=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x218bb1(_0x135cea,_0x5d567c){const _0x161112=_0x593cca['findIndex'](({type:_0x1c7b00,subType:_0x1c8d98})=>_0x135cea['type']==_0x1c7b00&&_0x135cea['subType']==_0x1c8d98),_0x2fd31c=_0x593cca['findIndex'](({type:_0x139536,subType:_0x420bc9})=>_0x5d567c['type']==_0x139536&&_0x5d567c['subType']==_0x420bc9);if(_0x161112<0x0||_0x2fd31c<0x0)return!0x1;const _0x51ec98=_0x135cea['getFirstRange'](),_0xbc99cc=_0x5d567c['getFirstRange']();if((0x0==_0x161112||0x1==_0x161112)&&0x2==_0x2fd31c&&_0x51ec98['isIntersecting'](_0xbc99cc))return!0x0;if(0x2==_0x161112&&0x3==_0x2fd31c){const _0x53d326=_0x129110['_findSuggestions'](_0x51ec98,'insertion')['filter'](({suggestion:_0x3d24f8,meta:_0x3141c5})=>_0x3141c5['isOwn']&&'convertInlineImageToBlock'==_0x3d24f8['subType']);if(_0x53d326['length']>0x1&&_0xbc99cc['end']['isEqual'](_0x51ec98['start']))return!0x0;if(0x1==_0x53d326['length']&&(_0x51ec98['start']['isEqual'](_0xbc99cc['end'])||_0x51ec98['end']['isEqual'](_0xbc99cc['start'])))return!0x0;}if(0x3==_0x161112&&0x3==_0x2fd31c&&_0x51ec98['start']['isBefore'](_0xbc99cc['start'])){const _0x1d9104=_0x51ec98['end']['nodeAfter'],_0x21865d=_0xbc99cc['start']['nodeBefore'];return _0x309b86['isBlockImage'](_0x1d9104)&&_0x1d9104===_0x21865d;}return!0x1;}_0xb6299a['model']['document']['registerPostFixer'](()=>{let _0x3caa8a=!0x1;const _0x393337=Array['from'](_0xb6299a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x292117,data:_0x5b5d7a}of _0x393337){const {group:_0xb09eab,type:_0x2a039d,subType:_0x2d2537,id:_0x4570e2}=_0x129110['_splitMarkerName'](_0x292117);if('suggestion'==_0xb09eab&&_0x129110['hasSuggestion'](_0x4570e2)){if('formatBlock'==_0x2a039d&&('imageStylePreApply'==_0x2d2537||'imageStylePostApply'==_0x2d2537)){const _0x2dd726=_0x129110['getSuggestion'](_0x4570e2);if(_0x5b5d7a['newRange']){const _0x57a6b1=_0x2dd726['getFirstRange']()['getContainedElement']();if(_0x309b86['isBlockImage'](_0x57a6b1))continue;_0x129110['discardSuggestion'](_0x2dd726),_0x3caa8a=!0x0;}}if('insertion'==_0x2a039d&&'imageCaption'==_0x2d2537&&!_0x5b5d7a['newRange']){const _0xe27769=_0x129110['getSuggestion'](_0x4570e2);_0xe27769['next']&&_0xe27769['next']['isInContent']&&(_0x129110['discardSuggestion'](_0xe27769['next']),_0x3caa8a=!0x0);}}}return _0x3caa8a;}),this['_registerLegacyDescription'](_0x248105);}['_registerLegacyDescription'](_0x551ae8){const _0x4879e4=this['editor'],_0x69d769=_0x4879e4['locale'];_0x4879e4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x28d765=>{if('formatBlock'!=_0x28d765['type']&&'formatInline'!=_0x28d765['type'])return;const {data:_0x3bd2f5}=_0x28d765;if(!_0x3bd2f5||'imageStyle'!=_0x3bd2f5['commandName'])return;const _0x57d3e6=_0x3bd2f5['commandParams'][0x0]['value'];return _0x18d994('side'===_0x57d3e6?c(_0x69d769,'FORMAT_SIDE_IMAGE'):_0x551ae8[_0x57d3e6]||_0x57d3e6);function _0x18d994(_0x2db2b9){return{'type':'format','content':c(_0x69d769,'*Format:*\x20%0',_0x2db2b9)};}});}}class ut extends _0x3953b7{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x3e0bb5){super(_0x3e0bb5),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x53f0ed=this['editor'],_0x1dcb95=_0x53f0ed['commands']['get']('importWord'),_0x5bb57c=_0x53f0ed['commands']['get']('trackChanges');_0x1dcb95&&(_0x1dcb95['on']('execute',(_0x27da4f,[,_0xed00b9])=>{this['_trackChangesValueDuringImport']=_0x5bb57c['value'],_0xed00b9['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x1dcb95,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x1dcb95,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5bb57c['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x53f0ed['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x114bc9,_0x2d807f){const {suggestions:_0x3d6ec7}=_0x2d807f,_0x160af3=this['editor']['commands']['get']('trackChanges'),_0x2c7cd3=_0x160af3['value'];this['_trackChangesValueDuringImport']!==_0x2c7cd3&&(_0x160af3['execute'](),this['_trackChangesExecuted']=!0x0),_0x3d6ec7&&_0x3d6ec7['forEach'](({id:_0x322cfd,type:_0x1f24a3,author:_0x902ea6,created_at:_0x545430})=>{const _0x1bfeb7={'id':_0x322cfd,'type':_0x1f24a3,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x902ea6,'createdAt':_0x545430?new Date(_0x545430):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1bfeb7);});}}class ft extends _0x3953b7{['afterInit'](){const _0x1c60d8=this['editor'],_0x33ad79=_0x1c60d8['plugins']['get']('TrackChangesEditing');if(_0x1c60d8['plugins']['has']('IndentEditing')&&(_0x33ad79['enableCommand']('indent'),_0x33ad79['enableCommand']('outdent')),_0x1c60d8['plugins']['has']('IndentBlock')){for(const _0x64dec5 of['indentBlock','outdentBlock'])_0x33ad79['enableDefaultAttributesIntegration'](_0x64dec5);}const _0x2704cd=_0x1c60d8['locale'];_0x33ad79['registerBlockAttribute']('blockIndent'),_0x33ad79['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x2704cd,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e952a=this['editor'],_0x39006b=_0x3e952a['locale'],_0x358f6b=_0x3e952a['plugins']['get']('TrackChangesEditing');_0x358f6b['descriptionFactory']['registerDescriptionCallback'](_0x4db59c=>{if('formatBlock'!=_0x4db59c['type'])return;const {data:_0x4d981b}=_0x4db59c;if(!_0x4d981b)return;if('indentBlock'!=_0x4d981b['commandName']&&'outdentBlock'!=_0x4d981b['commandName'])return;const _0x3d722c=_0x4db59c['getItems']()[0x0],_0x3b4351=_0x358f6b['descriptionFactory']['getItemLabel'](_0x3d722c);return'indentBlock'==_0x4d981b['commandName']?{'type':'format','content':c(_0x39006b,'*Indent:*\x20%0',_0x3b4351)}:'outdentBlock'==_0x4d981b['commandName']?{'type':'format','content':c(_0x39006b,'*Outdent:*\x20%0',_0x3b4351)}:void 0x0;});}}class ht extends _0x3953b7{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class gt extends _0x3953b7{['afterInit'](){const _0x47bb36=this['editor'];if(!_0x47bb36['plugins']['has']('LinkEditing'))return;const _0x138e1e=_0x47bb36['plugins']['get']('TrackChangesEditing'),_0xc3de38=_0x47bb36['commands']['get']('link');_0x138e1e['enableDefaultAttributesIntegration']('link'),_0x138e1e['enableDefaultAttributesIntegration']('unlink'),_0x138e1e['registerInlineAttribute']('linkHref');for(const _0x181fbe of _0xc3de38['manualDecorators'])_0x138e1e['registerInlineAttribute'](_0x181fbe['id']),_0x138e1e['descriptionFactory']['registerAttributeLabel'](_0x181fbe['id'],'link\x20('+_0x181fbe['label']['toLowerCase']()+')');_0x138e1e['descriptionFactory']['registerDescriptionCallback'](_0x32308e=>{if('attribute'!=_0x32308e['type'])return;const {data:_0x2a8f06}=_0x32308e;if(!_0x2a8f06||'linkHref'!=_0x2a8f06['key'])return;const _0x4bcfc8=_0x2a8f06['newValue'],_0x5f57a2=_0x47bb36['locale'];return{'type':'format','content':null==_0x4bcfc8?c(_0x5f57a2,'*Remove\x20link*'):c(_0x5f57a2,'*Set\x20link:*\x20%0','\x22'+_0x4bcfc8+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x23d2aa=this['editor'],_0x3eb318=_0x23d2aa['locale'];_0x23d2aa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x543634=>{if('formatInline'!=_0x543634['type'])return;const {data:_0x9a8f6e}=_0x543634;if(_0x9a8f6e){if('link'==_0x9a8f6e['commandName']){const _0x1f3a69=_0x9a8f6e['commandParams'][0x0];return{'type':'format','content':c(_0x3eb318,'*Set\x20link:*\x20%0','\x22'+_0x1f3a69+'\x22')};}return'unlink'==_0x9a8f6e['commandName']?{'type':'format','content':c(_0x3eb318,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x3953b7{['afterInit'](){const _0x2541fd=this['editor'],_0x476f00=_0x2541fd['locale'];if(!_0x2541fd['plugins']['has']('LegacyListEditing'))return;const _0x5dd766=_0x2541fd['plugins']['get']('TrackChangesEditing'),_0xa55af9=_0x2541fd['plugins']['has']('LegacyTodoListEditing');function _0xda926c(_0x317109){return()=>{const _0xad1b5=_0x2541fd['model']['document']['selection'],_0x4eef75=_0x2541fd['commands']['get'](_0x317109);if(_0x4eef75['value'])return void _0x2541fd['execute']('paragraph',{});const _0x3e6689=_0x317109['slice'](0x0,-0x4),_0x1cf122=function(_0x336e42,_0x55a722,_0x51e2b0){let _0x1d23fe=Array['from'](_0x336e42)['filter'](_0x36543f=>function(_0x11e05c,_0xf02293){return _0xf02293['checkChild'](_0x11e05c['parent'],'listItem')&&!_0xf02293['isObject'](_0x11e05c);}(_0x36543f,_0x51e2b0));_0x1d23fe=_0x1d23fe['filter'](_0x5eb3ed=>!_0x5eb3ed['is']('element','listItem')||_0x5eb3ed['getAttribute']('listType')!=_0x55a722);const _0x4ede8a=new Set();for(const _0x226d4e of _0x1d23fe)_0x226d4e['is']('element','listItem')?_0x4ede8a['add'](Le(_0x226d4e)):_0x4ede8a['add'](_0x226d4e);return Array['from'](_0x4ede8a);}(_0xad1b5['getSelectedBlocks'](),_0x3e6689,_0x2541fd['model']['schema']);_0x2541fd['model']['change'](()=>{for(const _0x12abf1 of _0x1cf122)_0x5dd766['markBlockFormat'](_0x12abf1,{'commandName':_0x317109,'commandParams':[{'forceValue':!_0x4eef75['value']}],'formatGroupId':'blockName'},Ee(_0x12abf1));});};}function _0x4adb6b(_0x17b3e6){return()=>{const _0x514a45=function(_0x599e01){let _0x4b4d1f=Array['from'](_0x599e01);const _0x4457aa=_0x4b4d1f['findIndex'](_0x26f99f=>'listItem'!=_0x26f99f['name']);return _0x4457aa>-0x1&&(_0x4b4d1f=_0x4b4d1f['slice'](0x0,_0x4457aa)),_0x4b4d1f;}(_0x2541fd['model']['document']['selection']['getSelectedBlocks']()),_0x243754=_0x2541fd['model']['createRange'](_0x2541fd['model']['createPositionAt'](_0x514a45[0x0],'before'),_0x2541fd['model']['createPositionAt'](_0x514a45[_0x514a45['length']-0x1],'end'));_0x2541fd['model']['change'](()=>{_0x5dd766['markBlockFormat'](_0x243754,{'commandName':_0x17b3e6,'commandParams':[],'formatGroupId':'listIndent'},function(_0x437b39){const _0x3a1794=new Set();for(const _0x44709e of _0x437b39){let _0x4ee7c3=_0x44709e['nextSibling'];for(;_0x4ee7c3&&_0x4ee7c3['getAttribute']('listIndent')>_0x44709e['getAttribute']('listIndent');)_0x3a1794['add'](_0x4ee7c3),_0x4ee7c3=_0x4ee7c3['nextSibling'];}return Array['from'](_0x3a1794);}(_0x514a45));});};}_0x5dd766['enableCommand']('numberedList',_0xda926c('numberedList')),_0x5dd766['enableCommand']('bulletedList',_0xda926c('bulletedList')),_0xa55af9&&_0x5dd766['enableCommand']('todoList',_0xda926c('todoList')),_0x5dd766['enableCommand']('indentList',_0x4adb6b('indentList')),_0x5dd766['enableCommand']('outdentList',_0x4adb6b('outdentList')),_0xa55af9&&_0x5dd766['enableCommand']('checkTodoList',()=>{const _0x1f8c7f=_0x2541fd['commands']['get']('checkTodoList'),_0x45d851=Array['from'](_0x1f8c7f['_selectedElements']);_0x45d851['filter'](_0x1f4ed7=>_0x1f4ed7['getAttribute']('todoListChecked')!=_0x1f8c7f['value']),_0x2541fd['model']['change'](()=>{for(const _0x419b19 of _0x45d851)_0x5dd766['markBlockFormat'](_0x419b19,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x1f8c7f['value']}]});});}),_0x5dd766['descriptionFactory']['registerElementLabel']('listItem',_0x198456=>c(_0x476f00,'ELEMENT_LIST_ITEM',_0x198456)),_0x5dd766['descriptionFactory']['registerDescriptionCallback'](_0x267497=>{if('formatBlock'!=_0x267497['type']&&'formatInline'!=_0x267497['type'])return;const {data:_0x230380}=_0x267497;if(_0x230380){if('numberedList'==_0x230380['commandName']||'bulletedList'==_0x230380['commandName']||'todoList'==_0x230380['commandName'])switch(_0x230380['commandName']['replace']('List','')){case'bulleted':return _0x3027da(c(_0x476f00,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3027da(c(_0x476f00,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3027da(c(_0x476f00,'ELEMENT_TODO_LIST'));}if('indentList'==_0x230380['commandName'])return{'type':'format','content':c(_0x476f00,'*Indent:*\x20%0',c(_0x476f00,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x230380['commandName'])return{'type':'format','content':c(_0x476f00,'*Outdent:*\x20%0',c(_0x476f00,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x230380['commandName'])return _0x230380['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x476f00,'*Check\x20item*')}:{'type':'format','content':c(_0x476f00,'*Uncheck\x20item*')};}function _0x3027da(_0x56a54c){return{'type':'format','content':c(_0x476f00,'*Change\x20to:*\x20%0',_0x56a54c)};}});}}function Le(_0x45c58d){const _0x137ece=_0x45c58d['getAttribute']('listIndent');if(0x0==_0x137ece)return _0x45c58d;let _0x8c603c=_0x45c58d;for(;_0x45c58d['previousSibling']&&_0x45c58d['previousSibling']['is']('element','listItem');){const _0x38c5ff=_0x45c58d['previousSibling']['getAttribute']('listIndent');if(_0x38c5ff==_0x137ece)_0x8c603c=_0x45c58d['previousSibling'];else{if(_0x38c5ff<_0x137ece)break;}_0x45c58d=_0x45c58d['previousSibling'];}return _0x8c603c;}function Ee(_0x3d0d84){const _0x402d46=[];if(_0x3d0d84['is']('element','listItem')&&_0x3d0d84['getAttribute']('listIndent')>0x0){let _0x27049d=_0x3d0d84['nextSibling'];for(;_0x27049d&&'listItem'==_0x27049d['name']&&_0x27049d['getAttribute']('listIndent')==_0x3d0d84['getAttribute']('listIndent');)_0x402d46['push'](_0x27049d),_0x27049d=_0x27049d['nextSibling'];}return _0x402d46;}class Q extends _0x3953b7{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x588cd3=this['editor']['config']['get']('list.properties'),_0x2efb47=this['editor']['plugins']['get']('TrackChangesEditing');_0x588cd3['styles']&&_0x2efb47['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x588cd3['reversed']&&_0x2efb47['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x588cd3['startIndex']&&_0x2efb47['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x2efb47['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x209ee1,_0x251f62={}){const _0x338b49=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3d5017=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x338b49['markMultiRangeBlockFormat'](_0x3d5017,{'commandName':'listStyle','commandParams':[{'type':_0x251f62['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4a66f9,_0x3e1467={}){const _0x505223=this['editor']['plugins']['get']('TrackChangesEditing'),_0x35b9b9=this['_getSuggestionBlocks'](_0x329dd1=>_0x329dd1['is']('element','listItem')&&'numbered'===_0x329dd1['getAttribute']('listType'));if(_0x35b9b9['length']<0x1)return;const _0x1cf24a=_0x35b9b9['map'](_0x32e9f4=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x32e9f4,'before'),this['editor']['model']['createPositionAt'](_0x32e9f4,0x0)));this['editor']['model']['change'](()=>{_0x505223['markMultiRangeBlockFormat'](_0x1cf24a,{'commandName':'listReversed','commandParams':[{'reversed':_0x3e1467['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x30334b,_0x155a1d={}){const _0x5bce00=this['editor']['plugins']['get']('TrackChangesEditing'),_0xfaf30b=this['_getSuggestionBlocks'](_0x1b63ea=>_0x1b63ea['is']('element','listItem')&&'numbered'===_0x1b63ea['getAttribute']('listType'));if(_0xfaf30b['length']<0x1)return;const _0x127d72=_0xfaf30b['map'](_0x428415=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x428415,'before'),this['editor']['model']['createPositionAt'](_0x428415,0x0)));this['editor']['model']['change'](()=>{_0x5bce00['markMultiRangeBlockFormat'](_0x127d72,{'commandName':'listStart','commandParams':[{'startIndex':_0x155a1d['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x172a96){if('formatBlock'!=_0x172a96['type']&&'formatInline'!=_0x172a96['type'])return;const _0x44fab1=this['editor']['locale'],{data:_0x4fb62b}=_0x172a96;if(!_0x4fb62b)return;let _0x952770,_0x535265;switch(_0x4fb62b['commandName']){case'listStyle':_0x952770='*Change\x20to:*\x20%0',_0x535265={'type':'format','content':c(_0x44fab1,_0x952770,c(_0x44fab1,this['_getTranslationKeyForListStyle'](_0x4fb62b['commandParams'][0x0]['type'])))};break;case'listReversed':_0x952770=_0x4fb62b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x535265={'type':'format','content':c(_0x44fab1,_0x952770)};break;case'listStart':_0x952770='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x535265={'type':'format','content':c(_0x44fab1,_0x952770,_0x4fb62b['commandParams'][0x0]['startIndex'])};}return _0x535265;}['_getSuggestionBlocksForListStyle'](){const _0x16c25c=this['editor']['plugins']['get']('LegacyListUtils');let _0x436c7f=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x436c7f[0x0]?.['is']('element','listItem')&&_0x436c7f['unshift'](..._0x16c25c['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x436c7f[_0x436c7f['length']-0x1]?.['is']('element','listItem')&&_0x436c7f['push'](..._0x16c25c['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x436c7f=[...new Set(_0x436c7f)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x436c7f=_0x436c7f['filter'](_0x166c02=>_0x166c02['is']('element','listItem'))),_0x436c7f;}['_getSuggestionBlocks'](_0x37f628){const _0x2cea7a=this['editor']['plugins']['get']('LegacyListUtils');let _0x2aee28=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x37f628)['map'](_0x2428d9=>{const _0x343bf2=this['editor']['model']['createPositionAt'](_0x2428d9,0x0);return[..._0x2cea7a['getSiblingNodes'](_0x343bf2,'backward'),..._0x2cea7a['getSiblingNodes'](_0x343bf2,'forward')];})['flat']();return _0x2aee28=[...new Set(_0x2aee28)],_0x2aee28;}['_getTranslationKeyForListStyle'](_0xa3a13c){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0xa3a13c)||'default')['toUpperCase']()+'_LIST_'+_0xa3a13c['toUpperCase']()['replace'](/-/g,'_');}}class mt extends _0x3953b7{['afterInit'](){const _0x30046e=this['editor'];if(!_0x30046e['plugins']['has']('MediaEmbedEditing'))return;const _0x24c87b=_0x30046e['plugins']['get']('TrackChangesEditing'),_0x40a231=_0x30046e['locale'];_0x24c87b['enableCommand']('mediaEmbed'),_0x24c87b['descriptionFactory']['registerElementLabel']('media',_0x4a7101=>c(_0x40a231,'ELEMENT_MEDIA',_0x4a7101)),_0x30046e['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x5d33bf,{writer:_0x410a55,options:_0x3f8edc})=>{if(_0x3f8edc['showSuggestionHighlights'])return _0x410a55['createEmptyElement']('div');},'converterPriority':'high'}),_0x30046e['data']['downcastDispatcher']['on']('attribute:url:media',(_0x138f6a,_0x4ff56e,_0x2f98d9)=>{_0x2f98d9['options']['showSuggestionHighlights']&&_0x138f6a['stop']();},{'priority':'high'});}}class pt extends _0x3953b7{['afterInit'](){const _0x2d1c36=this['editor'];_0x2d1c36['plugins']['has']('MentionEditing')&&_0x2d1c36['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class kt extends _0x3953b7{['afterInit'](){const _0x763880=this['editor'];if(!_0x763880['plugins']['has']('MergeFieldsEditing'))return;const _0x24bc63=_0x763880['plugins']['get']('TrackChangesEditing'),_0x2ca272=_0x763880['locale'];_0x24bc63['enableCommand']('insertMergeField'),_0x24bc63['enableCommand']('insertMergeFieldBlock'),_0x24bc63['enableCommand']('insertMergeFieldImage'),_0x24bc63['descriptionFactory']['registerElementLabel']('mergeField',_0x1fad2f=>c(_0x2ca272,'ELEMENT_MERGE_FIELD',_0x1fad2f)),_0x24bc63['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x59b392=>c(_0x2ca272,'ELEMENT_MERGE_FIELD',_0x59b392)),_0x24bc63['descriptionFactory']['registerDescriptionCallback'](_0x1a5251=>{if('insertion'!=_0x1a5251['type']&&'deletion'!=_0x1a5251['type'])return;const _0x51d65e=_0x1a5251['getContainedElement']();if(null==_0x51d65e)return;const _0x429f49=_0x763880['plugins']['get']('MergeFieldsEditing');let _0x2873ba;switch(_0x429f49['getMergeFieldType'](_0x51d65e)){case null:return;case'image':{const _0x2dfe9a=_0x429f49['unwrapAffixes'](_0x51d65e['getAttribute']('src'));_0x2873ba=_0x429f49['getLabel'](_0x2dfe9a)||_0x2dfe9a;break;}default:{const _0x419ee1=_0x51d65e['getAttribute']('id');_0x2873ba=_0x429f49['getLabel'](_0x419ee1)||_0x419ee1;break;}}return'insertion'==_0x1a5251['type']?{'type':'insertion','content':c(_0x2ca272,'*Insert:*\x20%0','\x22'+_0x2873ba+'\x22\x20'+c(_0x2ca272,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x2ca272,'*Remove:*\x20%0','\x22'+_0x2873ba+'\x22\x20'+c(_0x2ca272,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x3953b7{['afterInit'](){const _0x4374cf=this['editor'],_0x3ce089=_0x4374cf['plugins']['get']('TrackChangesEditing');_0x4374cf['plugins']['has']('MultiLevelList')&&(_0x3ce089['enableDefaultAttributesIntegration']('multiLevelList'),_0x3ce089['registerBlockAttribute']('listMarkerStyle'),_0x3ce089['descriptionFactory']['registerDescriptionCallback'](_0x5f404d=>this['handleDescriptions'](_0x5f404d)));}['handleDescriptions'](_0x294de1){const _0x52886e=this['editor']['locale'],{data:_0xf9dd11}=_0x294de1,_0x552317={'type':'format','content':''};if(_0xf9dd11&&'listMarkerStyle'==_0xf9dd11['key']){if(!_0xf9dd11['oldValue'])return{'type':'format','content':c(_0x52886e,'*Set\x20format:*\x20%0',c(_0x52886e,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xf9dd11['newValue']+')'};if(!_0xf9dd11['newValue']){let _0x558662=_0x294de1['head'];for(;_0x558662;){if(_0x558662['data']&&'listType'==_0x558662['data']['key']&&_0x558662['data']['newValue'])return _0x552317;_0x558662=_0x558662['next'];}return{'type':'format','content':c(_0x52886e,'*Remove\x20format:*\x20%0',c(_0x52886e,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xf9dd11['oldValue']+')'};}}}}class bt extends _0x3953b7{['afterInit'](){const _0xe8fdcd=this['editor'];if(!_0xe8fdcd['plugins']['has']('PageBreakEditing'))return;_0xe8fdcd['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2b327e=_0xe8fdcd['plugins']['get']('TrackChangesEditing'),_0x1f4043=_0xe8fdcd['locale'];_0x2b327e['descriptionFactory']['registerElementLabel']('pageBreak',_0x18880f=>c(_0x1f4043,'ELEMENT_PAGE_BREAK',_0x18880f));}}class yt extends _0x3953b7{['afterInit'](){const _0x374d22=this['editor'];if(!_0x374d22['plugins']['has']('Paragraph'))return;const _0x439bef=_0x374d22['locale'],_0x18ce7f=_0x374d22['plugins']['get']('TrackChangesEditing');_0x18ce7f['descriptionFactory']['registerElementLabel']('paragraph',_0x514dd0=>c(_0x439bef,'ELEMENT_PARAGRAPH',_0x514dd0)),_0x18ce7f['enableDefaultAttributesIntegration']('paragraph'),_0x18ce7f['enableCommand']('insertParagraph'),_0x374d22['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x374d22),{'priority':'highest'}),_0x374d22['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xff0ebf,_0x3677ef,_0x34d4b8)=>{_0x34d4b8['options']['showSuggestionHighlights']&&nr(_0x374d22,{'showActiveMarker':!0x1})(_0xff0ebf,_0x3677ef,_0x34d4b8);},{'priority':'highest'});const _0x71c6f6=_0x18ce7f['descriptionFactory'];_0x71c6f6['registerDescriptionCallback'](_0x26e3b4=>{if('insertion'!==_0x26e3b4['type'])return;const {start:_0x130657,end:_0x2fc15b}=_0x26e3b4['getFirstRange']();if(!_0x130657['isTouching'](_0x2fc15b)||!_0x130657['nodeAfter'])return;const _0x2c7323=_0x374d22['model']['schema'],_0x2a6c76=_0x130657['nodeAfter'];return _0x2c7323['isBlock'](_0x2a6c76)&&!_0x2c7323['isLimit'](_0x2a6c76)&&_0x2c7323['checkChild'](_0x2a6c76,'$text')?{'type':'insertion','content':c(_0x439bef,'*Insert:*\x20%0',_0x71c6f6['getItemLabel'](_0x2a6c76,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x19a933=this['editor'],_0x1e3420=_0x19a933['locale'];_0x19a933['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x372799=>{if('formatBlock'!=_0x372799['type'])return;const {data:_0x49e4df}=_0x372799;return _0x49e4df&&'paragraph'==_0x49e4df['commandName']?{'type':'format','content':c(_0x1e3420,'*Change\x20to:*\x20%0',c(_0x1e3420,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x59e9b2,{showActiveMarker:_0x1d695d=!0x0}={}){return(_0x3029be,_0x3696fc,_0x401184)=>{const _0xa32b21=_0x59e9b2['plugins']['get']('TrackChangesEditing'),_0x4ab57c=_0x3696fc['markerRange']['start'],_0x410ff5=_0x3696fc['markerRange']['end'],_0x5c2d59=_0x59e9b2['model']['schema'];if(!_0x4ab57c['isTouching'](_0x410ff5)||!_0x4ab57c['nodeAfter'])return;const _0x95e977=_0x4ab57c['nodeAfter'];if(_0x5c2d59['isBlock'](_0x95e977)&&!_0x5c2d59['isLimit'](_0x95e977)&&_0x5c2d59['checkChild'](_0x95e977,'$text')){if(!_0x401184['consumable']['consume'](_0x3696fc['markerRange'],_0x3029be['name']))return;const {id:_0x2dc490,authorId:_0x2aa979}=_0xa32b21['_splitMarkerName'](_0x3696fc['markerName']),_0x4751fa=_0x401184['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x2dc490,'data-author-id':_0x2aa979}),_0x481c4e=_0x401184['mapper']['toViewPosition'](_0x410ff5);_0x1d695d&&_0xa32b21['activeMarkers']['includes'](_0x3696fc['markerName'])&&_0x401184['writer']['addClass']('ck-suggestion-marker--active',_0x4751fa),_0x401184['writer']['insert'](_0x481c4e,_0x4751fa),_0x401184['mapper']['bindElementToMarker'](_0x4751fa,_0x3696fc['markerName']);}};}class St extends _0x3953b7{['afterInit'](){const _0x488584=this['editor'];_0x488584['commands']['get']('replaceSource')&&_0x488584['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class jt extends _0x3953b7{['afterInit'](){const _0x328877=this['editor'];if(!_0x328877['plugins']['has']('RemoveFormatEditing'))return;_0x328877['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x313d8a=this['editor'];_0x313d8a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x12e012=>{if('formatBlock'!=_0x12e012['type']&&'formatInline'!=_0x12e012['type'])return;const {data:_0x3527c4}=_0x12e012;return _0x3527c4&&'removeFormat'==_0x3527c4['commandName']?{'type':'format','content':c(_0x313d8a['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x3953b7{['afterInit'](){const _0x5030e9=this['editor'];if(!_0x5030e9['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3d43ec=_0x5030e9['plugins']['get']('TrackChangesEditing');_0x3d43ec['enableCommand']('goToPreviousRestrictedEditingException'),_0x3d43ec['enableCommand']('goToNextRestrictedEditingException');const _0xa93aad=_0x5030e9['plugins']['get']('RestrictedEditingModeEditing');_0xa93aad['enableCommand']('trackChanges'),_0xa93aad['enableCommand']('acceptSuggestion'),_0xa93aad['enableCommand']('discardSuggestion'),_0xa93aad['enableCommand']('acceptAllSuggestions'),_0xa93aad['enableCommand']('discardAllSuggestions'),_0xa93aad['enableCommand']('acceptSelectedSuggestions'),_0xa93aad['enableCommand']('discardSelectedSuggestions');}}class At extends _0x3953b7{['afterInit'](){const _0x4b9a55=this['editor'];if(!_0x4b9a55['plugins']['has']('ShiftEnter'))return;const _0x4665de=_0x4b9a55['plugins']['get']('TrackChangesEditing');_0x4665de['enableCommand']('shiftEnter'),_0x4b9a55['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x4b9a55),{'priority':'high'}),_0x4b9a55['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x4b9a55),{'priority':'high'}),_0x4b9a55['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4d7ff6,_0x3e51cf,_0x2b5ab5)=>{_0x2b5ab5['options']['showSuggestionHighlights']&&je(_0x4b9a55,{'showActiveMarker':!0x1})(_0x4d7ff6,_0x3e51cf,_0x2b5ab5);}),_0x4665de['descriptionFactory']['registerElementLabel']('softBreak',_0x2a3585=>c(_0x4b9a55['locale'],'ELEMENT_LINE_BREAK',_0x2a3585));}}function je(_0x1eacb3,{showActiveMarker:_0x48de0a=!0x0}={}){return(_0x3f8356,_0x2f67c6,_0x4df324)=>{const _0xfeda1c=_0x1eacb3['plugins']['get']('TrackChangesEditing');if(!_0x4df324['consumable']['test'](_0x2f67c6['markerRange'],_0x3f8356['name']))return;const _0xc1c1f=_0x1eacb3['model'];for(const _0x3c97e0 of _0x2f67c6['markerRange']['getItems']()){if(!_0x3c97e0['is']('element','softBreak'))continue;const _0xde57d4='deletion'==_0x2f67c6['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x2b8785,authorId:_0x43a9bb}=_0xfeda1c['_splitMarkerName'](_0x2f67c6['markerName']),_0x5889c0=_0x4df324['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xde57d4,'data-suggestion':_0x2b8785,'data-author-id':_0x43a9bb}),_0x13311a=_0x4df324['mapper']['toViewPosition'](_0xc1c1f['createPositionBefore'](_0x3c97e0));_0x48de0a&&_0xfeda1c['activeMarkers']['includes'](_0x2f67c6['markerName'])&&_0x4df324['writer']['addClass']('ck-suggestion-marker--active',_0x5889c0),_0x4df324['writer']['insert'](_0x13311a,_0x5889c0),_0x4df324['mapper']['bindElementToMarker'](_0x5889c0,_0x2f67c6['markerName']);}};}class _t extends _0x3953b7{['afterInit'](){const _0x17cd8b=this['editor'],_0x4b5cb1=_0x17cd8b['model'],_0x418c5d=_0x17cd8b['locale'];if(!_0x17cd8b['plugins']['has']('StandardEditingModeEditing'))return;const _0x314b95=_0x17cd8b['plugins']['get']('TrackChangesEditing'),_0x5ebca4='restrictedEditingException',_0x56dfcf=_0x17cd8b['commands']['get'](_0x5ebca4);_0x314b95['enableCommand'](_0x5ebca4,(_0x4ad6eb,_0x254104={})=>{const _0xc8b633=_0x4b5cb1['document']['selection'];if(_0xc8b633['isCollapsed'])return void _0x4ad6eb(_0x254104);const _0x5defac=void 0x0!==_0x254104['forceValue']?_0x254104['forceValue']:!_0x56dfcf['value'];_0x4b5cb1['change'](()=>{const _0x4d85c1=Array['from'](_0xc8b633['getRanges']());for(const _0x4925b8 of _0x4d85c1){const _0x232a8b=_0x5defac?[_0x4925b8]:io(_0x5ebca4,_0x4925b8,_0x4b5cb1);for(const _0x152c39 of _0x232a8b)_0x314b95['markInlineFormat'](_0x152c39,{'commandName':_0x5ebca4,'commandParams':[{'forceValue':_0x5defac}]});}});}),_0x314b95['descriptionFactory']['registerDescriptionCallback'](_0x23746b=>{if('formatBlock'!=_0x23746b['type']&&'formatInline'!=_0x23746b['type'])return;const {data:_0x41e326}=_0x23746b;return _0x41e326&&_0x41e326['commandName']==_0x5ebca4?_0x41e326['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x418c5d,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x418c5d,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x3953b7{['afterInit'](){const _0x532060=this['editor'];if(!_0x532060['plugins']['has']('Style')||!_0x532060['plugins']['has']('DataSchema'))return;const _0x49e169=_0x532060['plugins']['get']('TrackChangesEditing'),_0x46de92=_0x532060['locale'],_0x59f34d=_0x532060['config']['get']('style')||{},_0x293cef=_0x532060['plugins']['get']('GeneralHtmlSupport'),_0x3846fa=_0x532060['plugins']['get']('StyleUtils')['normalizeConfig'](_0x532060['plugins']['get']('DataSchema'),_0x59f34d['definitions']);_0x49e169['enableDefaultAttributesIntegration']('style');const _0x5735ad=new Set();for(const _0x427ddb of _0x3846fa['block']){const _0x550470=_0x293cef['getGhsAttributeNameForElement'](_0x427ddb['element']);_0x5735ad['add'](_0x550470);}const _0x5bb839=new Set();for(const _0x1c5bb2 of _0x3846fa['inline']){const _0x4a6d41=_0x293cef['getGhsAttributeNameForElement'](_0x1c5bb2['element']);_0x5bb839['add'](_0x4a6d41);for(const _0x2e502a of _0x1c5bb2['ghsAttributes'])_0x5bb839['add'](_0x2e502a);}for(const _0x52b2cb of _0x5735ad)_0x49e169['registerBlockAttribute'](_0x52b2cb),_0x49e169['descriptionFactory']['registerAttributeLabel'](_0x52b2cb,c(_0x46de92,'FORMAT_STYLE'));for(const _0x548fea of _0x5bb839)_0x49e169['registerInlineAttribute'](_0x548fea),_0x49e169['descriptionFactory']['registerAttributeLabel'](_0x548fea,c(_0x46de92,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xc4b40e=this['editor'],_0x171098=_0xc4b40e['locale'];_0xc4b40e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f457c=>{if('formatBlock'!=_0x2f457c['type']&&'formatInline'!=_0x2f457c['type'])return;const {data:_0x5ab4c9}=_0x2f457c;return _0x5ab4c9&&'style'===_0x5ab4c9['commandName']?_0x5ab4c9['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x171098,'*Set\x20format:*\x20%0',_0x5ab4c9['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x171098,'*Remove\x20format:*\x20%0',_0x5ab4c9['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x3953b7{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4bf097){super(_0x4bf097),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x2ebc38=this['editor'],_0x4940f7=_0x2ebc38['model']['document']['selection'];if(!_0x2ebc38['plugins']['has']('TableEditing'))return;const _0x2c2242=_0x2ebc38['locale'],_0x3cffbc=_0x2ebc38['plugins']['get']('TrackChangesEditing'),_0x432d67=_0x2ebc38['plugins']['get']('TableUtils');_0x3cffbc['descriptionFactory']['registerElementLabel']('table',_0x2887dd=>c(_0x2c2242,'ELEMENT_TABLE',_0x2887dd)),this['_setupColumnsRowsFixing'](),_0x3cffbc['enableCommand']('insertTable'),_0x3cffbc['enableCommand']('selectTableRow'),_0x3cffbc['enableCommand']('selectTableColumn');for(const _0x1933f8 of['insertTableRowAbove','insertTableRowBelow']){const _0x596b3e=_0x2ebc38['commands']['get'](_0x1933f8);_0x3cffbc['enableCommand'](_0x1933f8,_0x550fb1=>{_0x2ebc38['model']['change'](_0x2b98f1=>{_0x550fb1();const _0x1be6f7='above'===_0x596b3e['order'],_0x1cc09a=_0x432d67['getSelectionAffectedTableCells'](_0x4940f7),_0x346fd1=_0x432d67['getRowIndexes'](_0x1cc09a),_0x34199b=_0x1be6f7?_0x346fd1['first']-0x1:_0x346fd1['last']+0x1,_0x9d19e0=_0x1cc09a[0x0]['findAncestor']('table'),_0x4e4f55=_0x432d67['createTableWalker'](_0x9d19e0,{'startRow':_0x34199b,'endRow':_0x34199b}),_0x37d2fd=Array['from'](_0x4e4f55)['map'](_0x296c99=>_0x2b98f1['createRangeOn'](_0x296c99['cell']));_0x3cffbc['markMultiRangeInsertion'](_0x37d2fd,'tableRow');});});}for(const _0x424311 of['insertTableColumnLeft','insertTableColumnRight']){const _0x7ea6fc=_0x2ebc38['commands']['get'](_0x424311);_0x3cffbc['enableCommand'](_0x424311,_0x472636=>{_0x2ebc38['model']['change'](_0x3c19ee=>{_0x472636();const _0x217cba='left'===_0x7ea6fc['order'],_0x14f5b6=_0x432d67['getSelectionAffectedTableCells'](_0x4940f7),_0x28b4b4=_0x432d67['getColumnIndexes'](_0x14f5b6),_0xab4823=_0x217cba?_0x28b4b4['first']-0x1:_0x28b4b4['last']+0x1,_0x1b0514=_0x14f5b6[0x0]['findAncestor']('table'),_0x201d3c=_0x432d67['createTableWalker'](_0x1b0514,{'startRow':0x0,'column':_0xab4823,'includeAllSlots':!0x1}),_0x36a229=Array['from'](_0x201d3c)['map'](_0x27e6c8=>_0x3c19ee['createRangeOn'](_0x27e6c8['cell']));_0x3cffbc['markMultiRangeInsertion'](_0x36a229,'tableColumn');});});}for(const _0x59121b of['removeTableRow','removeTableColumn']){const _0x2f88d5=_0x59121b['substr'](0xb),_0x5e02c1=_0x2f88d5['toLowerCase'](),_0x258f38=_0x5e02c1['substr'](0x0,0x3)+'span',_0xa9c92e='table'+_0x2f88d5,_0x44701a='min'+_0x2f88d5,_0x3c00b9='max'+_0x2f88d5;_0x3cffbc['enableCommand'](_0x59121b,()=>{_0x2ebc38['model']['change'](_0x2937e6=>{const _0x3178b2=_0x432d67['getSelectionAffectedTableCells'](_0x4940f7),_0x2252cf=_0x3178b2[0x0]['findAncestor']('table');let _0x10db0d;if('removeTableRow'==_0x59121b){const _0x90ddf0=_0x432d67['getRowIndexes'](_0x3178b2);_0x10db0d={'startRow':_0x90ddf0['first'],'endRow':_0x90ddf0['last'],'includeAllSlots':!0x0};}else{const _0x2d67dd=_0x432d67['getColumnIndexes'](_0x3178b2);_0x10db0d={'startColumn':_0x2d67dd['first'],'endColumn':_0x2d67dd['last'],'includeAllSlots':!0x0};}const _0x4476a4=_0x432d67['createTableWalker'](_0x2252cf,_0x10db0d),_0x5c1c8d=Array['from'](_0x4476a4)['map'](({cell:_0x24cd47})=>_0x24cd47),_0x2748bc=xe(_0x5c1c8d['filter'](_0x20d79f=>_0x20d79f['hasAttribute'](_0x258f38))),_0x5b253c=xe(_0x5c1c8d['filter'](_0x10072f=>!_0x10072f['hasAttribute'](_0x258f38)))['map'](_0x19dc25=>_0x2937e6['createRangeOn'](_0x19dc25)),_0x295dbb=_0x3cffbc['markMultiRangeDeletion'](_0x5b253c,_0xa9c92e);if(_0x295dbb&&('tableRow'==_0x295dbb['subType']||'tableColumn'==_0x295dbb['subType'])){const _0x1ccc33=this['_getSuggestionCoords'](_0x295dbb);for(const _0x3b4d6e of _0x2748bc){const _0x18c8df=_0x2937e6['createRangeOn'](_0x3b4d6e),_0x3dd36d=_0x432d67['getCellLocation'](_0x3b4d6e),_0x33dc1b=_0x3b4d6e['getAttribute'](_0x258f38)-0x1,_0x12d39b=_0x1ccc33[_0x44701a],_0xaee1ba=_0x1ccc33[_0x3c00b9];_0x12d39b<=_0x3dd36d[_0x5e02c1]&&_0x3dd36d[_0x5e02c1]+_0x33dc1b<=_0xaee1ba&&_0x295dbb['addRange'](_0x18c8df);}}});});}function _0x2ecb45(_0x4fe8ad){const _0xa384bd=Array['from'](_0x4940f7['getRanges']())['map'](_0x8c8d5b=>_0x34ca76['fromRange'](_0x8c8d5b));_0x2ebc38['model']['change'](_0x2bd521=>{const _0x42ab34=_0x2bd521['batch'];_0x4fe8ad=_0x4fe8ad['filter'](_0x4d20b4=>'$graveyard'!=_0x4d20b4['root']['rootName']),_0x2bd521['setSelection'](_0x4fe8ad),_0x2ebc38['commands']['get']('removeTableRow')['refresh'](),_0x2ebc38['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x2ebc38['model']['enqueueChange'](()=>{_0x2ebc38['model']['enqueueChange'](_0x42ab34,_0x1e4565=>{const _0x5b10d9=_0xa384bd['filter'](_0x2baa5f=>'$graveyard'!=_0x2baa5f['root']['rootName']);_0x5b10d9['length']>0x0&&_0x1e4565['setSelection'](_0x5b10d9);for(const _0x266883 of _0xa384bd)_0x266883['detach']();});});});}function _0x53f18d(_0x6be0a){_0x2ebc38['model']['change'](_0x464931=>{const _0xdc35be=Array['from'](_0x4940f7['getRanges']())['map'](_0x21d627=>_0x34ca76['fromRange'](_0x21d627)),_0x397c2d=[];for(const _0x28eaa9 of _0x6be0a)for(const _0x3a6255 of _0x28eaa9['getItems']({'shallow':!0x0}))_0x397c2d['push'](_0x3a6255);for(const _0x3a5b57 of _0x397c2d)'$graveyard'!=_0x3a5b57['root']['rootName']&&(_0x464931['setSelection'](_0x464931['createPositionAt'](_0x3a5b57,0x0)),_0x2ebc38['commands']['get']('removeTableColumn')['refresh'](),_0x2ebc38['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x37dc13=_0xdc35be['filter'](_0x2fc980=>'$graveyard'!=_0x2fc980['root']['rootName']);_0x37dc13['length']>0x0&&_0x464931['setSelection'](_0x37dc13);for(const _0x208e73 of _0xdc35be)_0x208e73['detach']();});}function _0x24693e(_0x269b0b,_0x18914){return _0x18914['every'](_0x3ea327=>_0x269b0b['some'](_0x5e211a=>_0x5e211a['end']['isEqual'](_0x3ea327['start'])||_0x3ea327['end']['isEqual'](_0x5e211a['start'])));}function _0x316b16(_0x5f06a9,_0x4a35b2){return!_0x5f06a9['some'](_0x57f0c7=>_0x4a35b2['some'](_0x592fab=>_0x57f0c7['isIntersecting'](_0x592fab)))&&_0x5f06a9['some'](_0x5211f2=>_0x4a35b2['some'](_0xfe37c6=>_0x5211f2['end']['isTouching'](_0xfe37c6['start'])));}_0x2ebc38['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2bac83,_0x58865a,_0x1b3e4b)=>{if(!_0x1b3e4b['options']['showSuggestionHighlights'])return;const _0x442b36=_0x58865a['item'];if(!_0x442b36||!_0x442b36['is']('element','tableCell'))return;const _0x59d763=_0x1b3e4b['mapper']['toViewElement'](_0x442b36);if(_0x59d763){const {id:_0x561fa1,authorId:_0x5cbc53}=_0x3cffbc['_splitMarkerName'](_0x58865a['markerName']);_0x16b302(_0x59d763,_0x1b3e4b['writer'],(_0xc715a1,_0x8118f2,_0x11c402)=>{_0x11c402['addClass'](_0x4e0548(_0x8118f2['classes']),_0xc715a1),_0x11c402['setAttribute']('data-suggestion-id',_0x561fa1,_0xc715a1),_0x11c402['setAttribute']('data-author-id',_0x5cbc53,_0xc715a1);},(_0x543071,_0x4c69a2,_0x441d20)=>{_0x441d20['removeClass'](_0x4e0548(_0x4c69a2['classes']),_0x543071),_0x441d20['removeAttribute']('data-suggestion-id',_0x543071),_0x441d20['removeAttribute']('data-author-id',_0x543071);});}},{'priority':'highest'}),_0x3cffbc['descriptionFactory']['registerDescriptionCallback'](_0x3755ee=>{if('insertion'!=_0x3755ee['type']&&'deletion'!=_0x3755ee['type'])return;const _0x5d7872=_0x3755ee['getContainedElement']();if(null!=_0x5d7872&&_0x5d7872['is']('element','table')){if('insertion'==_0x3755ee['type']){const _0x43894f=_0x3755ee['getItems']()['filter'](_0xad4deb=>_0xad4deb['is']('$textProxy'))['map'](_0x4824f5=>_0x4824f5['data']);if(_0x43894f['length'])return{'type':'insertion','content':c(_0x2c2242,'*Insert:*\x20%0',c(_0x2c2242,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x43894f['join']('\x20')+'\x22'))};}if('deletion'==_0x3755ee['type']){const _0x579d67=_0x3755ee['getItems']()['filter'](_0x16d215=>_0x16d215['is']('$textProxy'))['map'](_0x383b81=>_0x383b81['data']);if(_0x579d67['length'])return{'type':'deletion','content':c(_0x2c2242,'*Remove:*\x20%0',c(_0x2c2242,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x579d67['join']('\x20')+'\x22'))};}}}),_0x3cffbc['descriptionFactory']['registerDescriptionCallback'](_0x32cbd5=>{if('tableRow'==_0x32cbd5['subType']){const _0x5c1004=_0x32cbd5['getItems']()['filter'](_0x10a8b8=>_0x10a8b8['is']('$textProxy'))['map'](_0x3f7551=>_0x3f7551['data']),_0x384c23=this['_getSuggestionCoords'](_0x32cbd5),_0x48a853=_0x384c23['maxRow']-_0x384c23['minRow']+0x1;if('insertion'==_0x32cbd5['type'])return _0x5c1004['length']?{'type':'insertion','content':c(_0x2c2242,'*Insert:*\x20%0',c(_0x2c2242,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x48a853,'\x22'+_0x5c1004['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x2c2242,'*Insert:*\x20%0',c(_0x2c2242,'ELEMENT_TABLE_ROW',_0x48a853))};if('deletion'==_0x32cbd5['type'])return _0x5c1004['length']?{'type':'deletion','content':c(_0x2c2242,'*Remove:*\x20%0',c(_0x2c2242,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x48a853,'\x22'+_0x5c1004['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x2c2242,'*Remove:*\x20%0',c(_0x2c2242,'ELEMENT_TABLE_ROW',_0x48a853))};}if('tableColumn'==_0x32cbd5['subType']){const _0x54c1e1=_0x32cbd5['getItems']()['filter'](_0x388aac=>_0x388aac['is']('$textProxy'))['map'](_0x49ed21=>_0x49ed21['data']),_0x336a7a=this['_getSuggestionCoords'](_0x32cbd5),_0x4ad386=_0x336a7a['maxColumn']-_0x336a7a['minColumn']+0x1;if('insertion'==_0x32cbd5['type'])return _0x54c1e1['length']?{'type':'insertion','content':c(_0x2c2242,'*Insert:*\x20%0',c(_0x2c2242,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4ad386,'\x22'+_0x54c1e1['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x2c2242,'*Insert:*\x20%0',c(_0x2c2242,'ELEMENT_TABLE_COLUMN',_0x4ad386))};if('deletion'==_0x32cbd5['type'])return _0x54c1e1['length']?{'type':'deletion','content':c(_0x2c2242,'*Remove:*\x20%0',c(_0x2c2242,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4ad386,'\x22'+_0x54c1e1['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x2c2242,'*Remove:*\x20%0',c(_0x2c2242,'ELEMENT_TABLE_COLUMN',_0x4ad386))};}}),_0x3cffbc['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2ecb45),_0x3cffbc['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2ecb45),_0x3cffbc['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x53f18d),_0x3cffbc['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x53f18d),_0x3cffbc['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x24693e),_0x3cffbc['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x24693e),_0x3cffbc['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x316b16),_0x3cffbc['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x316b16);}['_acceptFormatSuggestionCallbackFactory'](){const _0x1e225e=this['editor'],_0x5e3523=_0x1e225e['model']['document']['selection'];return(_0x16e3b3,_0x473fae)=>{_0x1e225e['model']['change'](_0x1251ae=>{const {commandName:_0x40f110,commandParams:_0x498893}=_0x473fae;let _0x334a61=_0x16e3b3[0x0]['end']['nodeBefore'];_0x498893&&_0x498893[0x0]&&!0x1===_0x498893[0x0]['forceValue']&&(_0x334a61=_0x16e3b3[0x0]['start']['nodeAfter']);const _0x3ce29e=_0x1251ae['createRangeIn'](_0x334a61);if('$graveyard'==_0x3ce29e['root']['rootName'])return;const _0x336ae7=Array['from'](_0x5e3523['getRanges']())['map'](_0x1060ea=>_0x34ca76['fromRange'](_0x1060ea));_0x1251ae['setSelection'](_0x3ce29e),_0x1e225e['commands']['get'](_0x40f110)['refresh'](),_0x498893['push']({'forceDefaultExecution':!0x0}),_0x1e225e['execute'](_0x40f110,..._0x498893);const _0x1db4ff=_0x336ae7['filter'](_0x5ec0c7=>'$graveyard'!=_0x5ec0c7['root']['rootName']);_0x1db4ff['length']>0x0&&_0x1251ae['setSelection'](_0x1db4ff);for(const _0x46fe02 of _0x336ae7)_0x46fe02['detach']();});};}['_getCoordsForCells'](_0xe6147f){const _0x1fe6d3=this['editor']['plugins']['get']('TableUtils');let _0x3d6609=Number['MAX_SAFE_INTEGER'],_0x1710dd=Number['MIN_SAFE_INTEGER'],_0x1d5f59=Number['MAX_SAFE_INTEGER'],_0x2107e4=Number['MIN_SAFE_INTEGER'];for(const _0x3d3c1d of _0xe6147f){if('$graveyard'==_0x3d3c1d['root']['rootName'])continue;const {row:_0x1cd6ff,column:_0x4ad503}=_0x1fe6d3['getCellLocation'](_0x3d3c1d),_0x234b0d=_0x3d3c1d['hasAttribute']('rowspan')?_0x3d3c1d['getAttribute']('rowspan')-0x1:0x0,_0x53862a=_0x3d3c1d['hasAttribute']('colspan')?_0x3d3c1d['getAttribute']('colspan')-0x1:0x0;_0x3d6609=_0x1cd6ff<_0x3d6609?_0x1cd6ff:_0x3d6609,_0x1710dd=_0x1cd6ff+_0x234b0d>_0x1710dd?_0x1cd6ff+_0x234b0d:_0x1710dd,_0x1d5f59=_0x4ad503<_0x1d5f59?_0x4ad503:_0x1d5f59,_0x2107e4=_0x4ad503+_0x53862a>_0x2107e4?_0x4ad503+_0x53862a:_0x2107e4;}return{'minRow':_0x3d6609,'maxRow':_0x1710dd,'minColumn':_0x1d5f59,'maxColumn':_0x2107e4};}['_setupColumnsRowsFixing'](){const _0x36f420=this['editor'],_0x553d06=_0x36f420['plugins']['get']('TrackChangesEditing'),_0x34248f=_0x36f420['plugins']['get']('TableUtils');_0x36f420['model']['document']['on']('change:data',()=>{const _0x58ee71=Array['from'](_0x36f420['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2efaae,data:_0x200de9}of _0x58ee71){const {group:_0x37ac47,id:_0x3f76a4,subType:_0x48368c}=_0x553d06['_splitMarkerName'](_0x2efaae);if('suggestion'!=_0x37ac47)continue;if(null!=_0x200de9['oldRange'])continue;const _0x2da423=_0x553d06['getSuggestion'](_0x3f76a4);this['_tablePostFixingSubtypes']['includes'](_0x48368c)&&this['_tableSuggestions']['add'](_0x2da423);}},{'priority':'low'});const _0x1c784e=(_0x5c33f7,_0x50b914)=>{let _0x96fc96=!0x1;const _0x576c20=_0x50b914['createRangeOn'](_0x5c33f7),_0x2a2062=_0x5c33f7['findAncestor']('table'),_0xedcd0c=_0x34248f['getCellLocation'](_0x5c33f7);for(const _0x4e4eac of this['_tableSuggestions']){const _0x1b800c=_0x4e4eac['subType'],_0x3a2afd=_0x1b800c['startsWith']('tablePaste'),_0x2cbad1=_0x1b800c['substr'](_0x3a2afd?0xa:0x5),_0xc71d26=_0x2cbad1['toLowerCase'](),_0x258eec=_0xc71d26['substr'](0x0,0x3)+'span',_0x52a0a1='min'+_0x2cbad1,_0x56925e='max'+_0x2cbad1;if(!_0x4e4eac['isInContent'])continue;if(_0x2a2062!=_0x4e4eac['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4e4eac['isIntersectingWithRange'](_0x576c20))continue;const _0x20f5ec=_0x5c33f7['hasAttribute'](_0x258eec)?_0x5c33f7['getAttribute'](_0x258eec)-0x1:0x0,_0x223a9d=this['_getSuggestionCoords'](_0x4e4eac),_0x3d57ed=_0x223a9d[_0x52a0a1],_0xa5732=_0x223a9d[_0x56925e];_0x3d57ed<=_0xedcd0c[_0xc71d26]&&_0xedcd0c[_0xc71d26]+_0x20f5ec<=_0xa5732&&(_0x4e4eac['addRange'](_0x576c20),_0x96fc96=!0x0);}return _0x96fc96;};_0x36f420['model']['document']['registerPostFixer'](_0xbf83bc=>{let _0x32e483=!0x1;for(const _0x3a105e of _0x36f420['model']['document']['differ']['getChanges']())if('insert'==_0x3a105e['type']){if('tableRow'==_0x3a105e['name']){for(const _0x3053f2 of _0x3a105e['position']['nodeAfter']['getChildren']())_0x32e483=_0x32e483||_0x1c784e(_0x3053f2,_0xbf83bc);}else'tableCell'==_0x3a105e['name']&&(_0x32e483=_0x32e483||_0x1c784e(_0x3a105e['position']['nodeAfter'],_0xbf83bc));}return _0x32e483;});}['_getSuggestionCoords'](_0x49d866){return this['_getCoordsForCells'](_0x49d866['getRanges']()['map'](_0x4c2e3a=>_0x4c2e3a['start']['nodeAfter']));}}function xe(_0xde480d){return Array['from'](new Set(_0xde480d)['values']());}class Nt extends _0x3953b7{static get['requires'](){return[Ct];}['afterInit'](){const _0xce40a7=this['editor'],_0x3200f7=_0xce40a7['model']['document']['selection'],_0x552419=_0xce40a7['locale'];if(!_0xce40a7['plugins']['has']('TableEditing'))return;const _0xdfb73d=_0xce40a7['plugins']['get']('TrackChangesEditing'),_0x41ac90=_0xce40a7['plugins']['get']('TableUtils'),_0x1a8eb8=_0xce40a7['plugins']['get'](Ct);_0x1a8eb8['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0xdfb73d['enableCommand']('mergeTableCells',()=>{const _0x3d633e=_0x41ac90['getSelectionAffectedTableCells'](_0xce40a7['model']['document']['selection']);_0xce40a7['model']['change'](()=>{_0xdfb73d['markMultiRangeBlockFormat'](_0x3d633e,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0xce40a7['commands']['get']('mergeTableCells')['on']('execute',(_0x3bac3d,_0x24b9ed)=>{_0xce40a7['commands']['get']('trackChanges')['value']&&(_0x24b9ed['length']>0x0&&_0x24b9ed[_0x24b9ed['length']-0x1]&&_0x24b9ed[_0x24b9ed['length']-0x1]['forceDefaultExecution']||_0xdfb73d['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x3bac3d['stop']());},{'priority':'highest'});for(const _0x383f8a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2b633b=_0xce40a7['commands']['get'](_0x383f8a);_0xdfb73d['enableCommand'](_0x383f8a,()=>{const _0x470e97=_0xce40a7['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x216f74=>_0x216f74['is']('element','tableCell')),_0x5a6e23=_0x2b633b['value'];_0xce40a7['model']['change'](()=>{_0xdfb73d['markMultiRangeBlockFormat']([_0x470e97,_0x5a6e23],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x4a4201 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x5220ee=_0xce40a7['commands']['get'](_0x4a4201);_0xdfb73d['enableCommand'](_0x4a4201,()=>{const _0x72fb92=_0x41ac90['getSelectionAffectedTableCells'](_0xce40a7['model']['document']['selection'])[0x0],_0x55a6ed=_0x72fb92['findAncestor']('table'),{column:_0x11320c,row:_0x11fb7d}=_0x41ac90['getCellLocation'](_0x72fb92);let _0xd5dacf=[];if('horizontally'==_0x5220ee['direction']){const _0x29b3c6=_0x41ac90['createTableWalker'](_0x55a6ed,{'startRow':_0x11fb7d,'endRow':_0x11fb7d,'includeAllSlots':!0x0});_0xd5dacf=Array['from'](_0x29b3c6)['map'](_0x3427fb=>_0x3427fb['cell']);}else{const _0x39d079=_0x41ac90['createTableWalker'](_0x55a6ed,{'column':_0x11320c,'includeAllSlots':!0x0});_0xd5dacf=Array['from'](_0x39d079)['map'](_0x49d17f=>_0x49d17f['cell']);}_0xce40a7['model']['change'](_0x3252e1=>{_0xdfb73d['markBlockFormat'](_0x3252e1['createRangeOn'](_0x72fb92),{'commandName':_0x4a4201,'commandParams':[]},_0xd5dacf,_0x4a4201);});});}_0xdfb73d['descriptionFactory']['registerDescriptionCallback'](_0x4eb71d=>{if('formatBlock'!=_0x4eb71d['type']&&'formatInline'!=_0x4eb71d['type'])return;const {data:_0x81c5a8}=_0x4eb71d;return _0x81c5a8&&'mergeTableCells'==_0x81c5a8['commandName']?{'type':'format','content':c(_0x552419,'*Merge\x20cells*')}:void 0x0;}),_0xdfb73d['descriptionFactory']['registerDescriptionCallback'](_0x5821eb=>{if('formatBlock'!=_0x5821eb['type']&&'formatInline'!=_0x5821eb['type'])return;const {data:_0x5c42d5}=_0x5821eb;return _0x5c42d5?'splitTableCellVertically'==_0x5c42d5['commandName']?{'type':'format','content':c(_0x552419,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x5c42d5['commandName']?{'type':'format','content':c(_0x552419,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x41db90=_0x1a8eb8['_acceptFormatSuggestionCallbackFactory']();for(const _0x16f720 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0xdfb73d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x16f720,'accept',_0x41db90);for(const _0x27291c of['splitTableCellVertically','splitTableCellHorizontally'])_0xdfb73d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x27291c,'accept',_0x41db90);_0xdfb73d['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x42f712=>{_0xce40a7['model']['change'](_0x37fa22=>{const _0x4fd0e5=Array['from'](_0x3200f7['getRanges']())['map'](_0x525a63=>_0x34ca76['fromRange'](_0x525a63));_0x37fa22['setSelection'](_0x42f712),_0xce40a7['commands']['get']('mergeTableCells')['refresh'](),_0xce40a7['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5706c8=_0x4fd0e5['filter'](_0x406620=>'$graveyard'!=_0x406620['root']['rootName']);_0x5706c8['length']>0x0&&_0x37fa22['setSelection'](_0x5706c8);for(const _0x413e9a of _0x4fd0e5)_0x413e9a['detach']();});});for(const _0x4aea6b of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x4bfb5d=_0xce40a7['commands']['get'](_0x4aea6b);_0x4bfb5d['on']('set:isEnabled',(_0x2e6d90,_0x5233d7,_0x3d4460)=>{if(_0x3d4460){const _0x15bd1b=_0xce40a7['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x363d15=>_0x363d15['is']('element','tableCell'));this['_areMergableCells'](_0x4bfb5d['value'],_0x15bd1b)||(_0x2e6d90['return']=!0x1,_0x2e6d90['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x22a66a=this['editor']['commands']['get']('mergeTableCells'),_0x20750d=this['editor']['plugins']['get']('TableUtils');if(!_0x22a66a['isEnabled'])return!0x1;const _0x434547=_0x20750d['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4429c6 of _0x434547)for(const _0x1768d4 of _0x434547)if(_0x4429c6!=_0x1768d4&&!this['_areMergableCells'](_0x4429c6,_0x1768d4))return!0x1;return!0x0;}['_areMergableCells'](_0x15046d,_0x197e81){const _0x1ab098=this['editor']['plugins']['get']('TrackChangesEditing'),_0x37dd11=this['editor']['model']['createRangeOn'](_0x15046d),_0x2329a4=this['editor']['model']['createRangeOn'](_0x197e81),_0x5b1342=new Set(),_0x3923f8=new Set();for(const _0x1db2b4 of _0x1ab098['getSuggestions']())if(('insertion'==_0x1db2b4['type']||'deletion'==_0x1db2b4['type']||'mergeTableCells'==_0x1db2b4['subType'])&&_0x1db2b4['isInContent']){for(const _0x4a67fc of _0x1db2b4['getRanges']())_0x4a67fc['containsRange'](_0x37dd11,!0x0)&&_0x5b1342['add'](_0x1db2b4['type']+':'+_0x1db2b4['author']['id']),_0x4a67fc['containsRange'](_0x2329a4,!0x0)&&_0x3923f8['add'](_0x1db2b4['type']+':'+_0x1db2b4['author']['id']);}if(_0x5b1342['size']!=_0x3923f8['size'])return!0x1;for(const _0x3adcbe of _0x5b1342)if(!_0x3923f8['has'](_0x3adcbe))return!0x1;return!0x0;}}class Dt extends _0x3953b7{static get['requires'](){return[Ct];}['afterInit'](){const _0x540027=this['editor'];if(!_0x540027['plugins']['has']('TableEditing'))return;const _0x5da675=_0x540027['locale'],_0x268271=_0x540027['plugins']['get']('TrackChangesEditing');_0x268271['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x268271['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x268271['registerBlockAttribute']('headingRows'),_0x268271['registerBlockAttribute']('headingColumns'),_0x268271['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x5da675,'FORMAT_HEADER_ROW')),_0x268271['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x5da675,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1a6c4b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4d0928=this['editor']['plugins']['get']('TableUtils'),_0x4c8290=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x8d224a({showActiveMarker:_0x34d4bb=!0x0,setDataAttribute:_0x22fc15=!0x0}={}){return(_0x503f14,_0xfbfb67,_0x38af61)=>{const {type:_0x579a04,id:_0x179131}=_0x1a6c4b['_splitMarkerName'](_0xfbfb67['markerName']),_0x521248=_0x1a6c4b['getSuggestion'](_0x179131),_0x1a84dd=_0x521248['data'];if('formatBlock'!=_0x521248['type']||!_0x1a84dd||'setTableColumnHeader'!=_0x1a84dd['commandName'])return;if(_0xfbfb67['item'])return void _0x503f14['stop']();if(!_0x38af61['consumable']['consume'](_0xfbfb67['markerRange'],_0x503f14['name']))return;const _0x2bccb5=_0xfbfb67['markerRange']['start']['nodeAfter'],_0x3ec357=_0xfbfb67['markerRange']['end']['nodeBefore'],_0x17a124=_0x2bccb5['parent']['parent'],{column:_0x4aa25e}=_0x4d0928['getCellLocation'](_0x2bccb5),{column:_0x15086c}=_0x4d0928['getCellLocation'](_0x3ec357);for(let _0x35692b=_0x4aa25e;_0x35692b<=_0x15086c;_0x35692b++){const _0x546eb7=_0x4d0928['createTableWalker'](_0x17a124,{'column':_0x35692b,'includeAllSlots':!0x1});for(const _0x21a242 of _0x546eb7){const _0x4be507=_0x21a242['cell'],_0x6ad4f5=_0x38af61['mapper']['toViewElement'](_0x4be507);_0x38af61['writer']['addClass']('ck-suggestion-marker-'+_0x579a04,_0x6ad4f5),_0x22fc15&&_0x38af61['writer']['setAttribute']('data-suggestion',_0x179131,_0x6ad4f5),_0x38af61['mapper']['bindElementToMarker'](_0x6ad4f5,_0xfbfb67['markerName']),_0x34d4bb&&(_0x1a6c4b['activeMarkers']['includes'](_0xfbfb67['markerName'])?_0x38af61['writer']['addClass']('ck-suggestion-marker--active',_0x6ad4f5):_0x38af61['writer']['removeClass']('ck-suggestion-marker--active',_0x6ad4f5));}}};}_0x1a6c4b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4c8290),_0x1a6c4b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4c8290),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x8d224a(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5adea2,_0x5b944e,_0x1ba193)=>{_0x1ba193['options']['showSuggestionHighlights']&&_0x8d224a({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5adea2,_0x5b944e,_0x1ba193);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x58718d,_0x33b9d5,_0x4555c8)=>{const {type:_0x5b76ef,id:_0x1516bb}=_0x1a6c4b['_splitMarkerName'](_0x33b9d5['markerName']),_0x128be5=_0x1a6c4b['getSuggestion'](_0x1516bb),_0x31d44c=_0x128be5['data'];if('formatBlock'!=_0x128be5['type']||!_0x31d44c||'setTableColumnHeader'!=_0x31d44c['commandName'])return;const _0x5b11d5=_0x4555c8['mapper']['markerNameToElements'](_0x33b9d5['markerName']);if(_0x5b11d5){for(const _0x1c53e2 of _0x5b11d5)_0x4555c8['writer']['removeClass']('ck-suggestion-marker-'+_0x5b76ef,_0x1c53e2),_0x4555c8['writer']['removeClass']('ck-suggestion-marker--active',_0x1c53e2),_0x4555c8['writer']['removeAttribute']('data-suggestion',_0x1c53e2),_0x4555c8['mapper']['unbindElementFromMarkerName'](_0x1c53e2,_0x33b9d5['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x484dcf=this['editor'],_0x1fe843=_0x484dcf['locale'];function _0x1ed380(_0x406715){return{'type':'format','content':c(_0x1fe843,'*Format:*\x20%0',_0x406715)};}_0x484dcf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b7b87=>{if('formatBlock'!=_0x1b7b87['type'])return;const {data:_0x5ab0f1}=_0x1b7b87;if(_0x5ab0f1){if('setTableRowHeader'==_0x5ab0f1['commandName']){const _0x320dc4=_0x5ab0f1['commandParams'][0x0]['forceValue'];return _0x1ed380(c(_0x1fe843,_0x320dc4?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x5ab0f1['commandName']){const _0xe05354=_0x5ab0f1['commandParams'][0x0]['forceValue'];return _0x1ed380(c(_0x1fe843,_0xe05354?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x3953b7{['afterInit'](){const _0x36a993=this['editor'],_0x35e178=_0x36a993['locale'],_0x16a8fb=_0x36a993['plugins']['get']('TrackChangesEditing');function _0x5e6a09(_0x219352){return{'type':'format','content':''+c(_0x35e178,'*Set\x20table\x20type:*\x20%0',_0x219352)};}_0x36a993['plugins']['has']('TableLayout')&&(_0x16a8fb['enableCommand']('insertTableLayout'),_0x16a8fb['enableDefaultAttributesIntegration']('tableType'),_0x16a8fb['registerBlockAttribute']('tableType'),_0x16a8fb['descriptionFactory']['registerElementLabel'](_0x41e892=>_0x41e892['is']('element','table')&&'layout'===_0x41e892['getAttribute']('tableType'),_0x4c1d83=>c(_0x35e178,'ELEMENT_LAYOUT_TABLE',_0x4c1d83)),_0x16a8fb['descriptionFactory']['registerDescriptionCallback'](_0x4528e3=>{const {data:_0x2d03f2}=_0x4528e3;if(_0x2d03f2&&'tableType'==_0x2d03f2['key'])switch(_0x2d03f2['newValue']){case'layout':return _0x5e6a09(c(_0x35e178,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x5e6a09(c(_0x35e178,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=Object['fromEntries'](Oe['map'](_0x3cea32=>[_0x3cea32,null]));class $t extends _0x3953b7{static get['requires'](){return[Ct];}['afterInit'](){const _0x42e92b=this['editor'];if(!_0x42e92b['plugins']['has']('TableClipboard'))return;const _0x59f9cb=_0x42e92b['plugins']['get']('TrackChangesEditing'),_0x3993d2=_0x42e92b['plugins']['get']('TableUtils'),_0x313e3=_0x42e92b['plugins']['get'](Ct),_0x1c36ec=_0x42e92b['plugins']['get']('TableClipboard'),_0x397705=_0x42e92b['plugins']['get']('TableSelection'),_0x8753d9=_0x42e92b['plugins']['get'](_0x2a45ef);_0x313e3['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x42e92b['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x42e92b['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x458a04=null,_0x5dbf8e=!0x1;_0x8753d9['on']('contentInsertion',(_0x49a5d5,_0x3e93de)=>{_0x5dbf8e='paste'===_0x3e93de['method'];}),_0x42e92b['model']['on']('insertContent',(_0x23b193,_0x441df7)=>{if(!_0x5dbf8e&&null===_0x397705['getSelectedTableCells']())return;const [_0x45c9a3,_0x4546ae]=_0x441df7,_0x850a25=_0x441df7[_0x441df7['length']-0x1];_0x850a25&&_0x850a25['forceDefaultExecution']||_0x59f9cb['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x41407b,_0x51b385,_0x50ccd0,_0x542865,_0x8a6d2d){if(_0x51b385&&!_0x51b385['is']('documentSelection'))return!0x1;const _0x35811f=_0x8a6d2d['getTableIfOnlyTableInContent'](_0x41407b,_0x50ccd0);if(!_0x35811f||!He(_0x35811f,void 0x0,_0x542865))return!0x1;const _0x36b909=_0x542865['getSelectionAffectedTableCells'](_0x50ccd0['document']['selection']);if(!_0x36b909['length'])return!0x1;const _0x17fbe9=_0x36b909[0x0]['findAncestor']('table'),_0x462227=_0x542865['getRowIndexes'](_0x36b909),_0x25f22c=_0x542865['getColumnIndexes'](_0x36b909),_0x204568={'startRow':_0x462227['first'],'endRow':_0x462227['last'],'startColumn':_0x25f22c['first'],'endColumn':_0x25f22c['last']};return 0x1==_0x36b909['length']&&(_0x204568['endRow']+=_0x542865['getRows'](_0x35811f)-0x1,_0x204568['endColumn']+=_0x542865['getColumns'](_0x35811f)-0x1),He(_0x17fbe9,_0x204568,_0x542865);}(_0x45c9a3,_0x4546ae,_0x42e92b['model'],_0x3993d2,_0x1c36ec)&&(_0x23b193['stop'](),_0x458a04={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x42e92b['model']['change'](()=>{_0x42e92b['model']['insertContent'](_0x441df7[0x0],_0x441df7[0x1],_0x441df7[0x2],{'forceDefaultExecution':!0x0});const _0x5eb903=_0x524fb1(),{rowInsertionRanges:_0x27001e,columnInsertionRanges:_0x577ba5,insertionRanges:_0x1945c9,deletionRanges:_0x209a13,cells:_0x2c88f3}=_0x458a04;_0x27001e['length']&&_0x59f9cb['markMultiRangeInsertion'](_0x27001e,'tablePasteRow',{'tablePasteChainId':_0x5eb903}),_0x577ba5['length']&&_0x59f9cb['markMultiRangeInsertion'](_0x577ba5,'tablePasteColumn',{'tablePasteChainId':_0x5eb903}),_0x1945c9['length']&&(_0x59f9cb['markMultiRangeInsertion'](_0x1945c9,'tablePaste',{'tablePasteChainId':_0x5eb903,'skipNestingCheck':!0x0}),_0x1945c9['forEach'](_0x550bda=>_0x550bda['detach']?.())),_0x209a13['length']&&(_0x59f9cb['markMultiRangeDeletion'](_0x209a13,'tablePaste',{'tablePasteChainId':_0x5eb903,'skipNestingCheck':!0x0}),_0x209a13['forEach'](_0x2b2416=>_0x2b2416['detach']?.()));const _0x224f74=_0x59f9cb['markMultiRangeBlockFormat'](_0x2c88f3['map'](({element:_0x50f279})=>_0x50f279),{'formatGroupId':_0x524fb1()},[],'tablePasteCell',{'tablePasteChainId':_0x5eb903});if(_0x224f74){const _0x3ae3b4=_0x224f74['getMarkers'](),_0x2c4009=[];for(const {element:_0x1b98da,attributes:_0x327f90}of _0x2c88f3){if(!_0x327f90)continue;const _0x2e0db4=_0x42e92b['model']['createRangeOn'](_0x1b98da),_0x2c69db=_0x3ae3b4['find'](_0x176333=>_0x176333['getRange']()['isEqual'](_0x2e0db4));_0x2c69db&&_0x2c4009['push']([_0x2c69db['name'],_0x327f90]);}_0x2c4009['length']&&_0x224f74['setAttribute']('markerAttributes',Object['fromEntries'](_0x2c4009));}_0x458a04=null;}));},{'priority':_0x2ab9b9['high']+0xa}),_0x8753d9['on']('contentInsertion',()=>{_0x5dbf8e=!0x1;},{'priority':'lowest'}),_0x42e92b['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x41144e,_0x537246)=>{const [_0x1d0e57,_0x1998e1,,_0x3e1665]=_0x537246;if(!_0x458a04)return;_0x41144e['stop']();const _0x2af41f=_0x1d0e57['cell'],_0x5ded86=_0x1998e1,_0x72ecf1=De(_0x2af41f),_0x4b4af5=De(_0x5ded86);_0x41144e['return']=_0x2af41f;let _0x562b8c=null,_0xe67601=null;if(_0x4b4af5||_0x72ecf1){if(_0x72ecf1&&!_0x4b4af5){_0x3e1665['remove'](_0x2af41f['getChild'](0x0));for(const _0x37734e of Array['from'](_0x5ded86['getChildren']()))_0x3e1665['insert'](_0x37734e,_0x2af41f,'end');const _0x53ee7a=_0x458a04['rowInsertionIndexes']['includes'](_0x1d0e57['row']),_0x3ad07e=_0x458a04['columnInsertionIndexes']['includes'](_0x1d0e57['column']);_0x53ee7a||_0x3ad07e||(_0x562b8c=_0x34ca76['fromRange'](_0x3e1665['createRangeIn'](_0x2af41f)));}else _0x4b4af5&&!_0x72ecf1&&(_0xe67601=_0x3e1665['createRangeIn'](_0x2af41f));}else{const _0x371562=_0x3e1665['createElement']('tableCellSuggestion'),_0x5d7952=_0x3e1665['createElement']('tableCellSuggestion');_0x3e1665['wrap'](_0x3e1665['createRangeIn'](_0x2af41f),_0x5d7952),_0x3e1665['insert'](_0x371562,_0x2af41f,0x0);for(const _0x4fa452 of Array['from'](_0x5ded86['getChildren']()))_0x3e1665['insert'](_0x4fa452,_0x371562,'end');_0x562b8c=_0x34ca76['fromRange'](_0x3e1665['createRangeOn'](_0x371562)),_0xe67601=_0x34ca76['fromRange'](_0x3e1665['createRangeOn'](_0x5d7952));}const _0x2e92e4=Array['from'](_0x5ded86['getAttributes']())['filter'](([_0x2d1793])=>Oe['includes'](_0x2d1793));_0x458a04['cells']['push']({'element':_0x2af41f,'attributes':_0x2e92e4['length']?Object['fromEntries'](_0x2e92e4):null}),_0x562b8c&&_0x458a04['insertionRanges']['push'](_0x562b8c),_0xe67601&&_0x458a04['deletionRanges']['push'](_0xe67601);},{'priority':'high'}),_0x3993d2['on']('insertColumns',(_0x42af83,_0x5c546a)=>{const [_0x329a85,_0x4a5595={}]=_0x5c546a;if(!_0x458a04)return;const _0x2c1d7c=_0x4a5595['at']||0x0,_0x36e808=_0x4a5595['columns']||0x1;_0x458a04['columnInsertionIndexes']=new Array(_0x36e808)['fill'](_0x2c1d7c)['map']((_0x503429,_0x1c8253)=>_0x503429+_0x1c8253);for(const {cell:_0x428c48}of _0x3993d2['createTableWalker'](_0x329a85,{'startColumn':_0x2c1d7c,'endColumn':_0x2c1d7c+_0x36e808-0x1}))_0x458a04['columnInsertionRanges']['push'](_0x42e92b['model']['createRangeOn'](_0x428c48));},{'priority':'low'}),_0x3993d2['on']('insertRows',(_0x21b875,_0x3a70f6)=>{const [_0x4fdd06,_0x32cdf8={}]=_0x3a70f6;if(!_0x458a04)return;const _0x5909ce=_0x32cdf8['at']||0x0,_0x2436e8=_0x32cdf8['rows']||0x1;_0x458a04['rowInsertionIndexes']=new Array(_0x2436e8)['fill'](_0x5909ce)['map']((_0x725f6a,_0x1e827f)=>_0x725f6a+_0x1e827f);for(const {cell:_0x196bd9}of _0x3993d2['createTableWalker'](_0x4fdd06,{'startRow':_0x5909ce,'endRow':_0x5909ce+_0x2436e8-0x1}))_0x458a04['rowInsertionRanges']['push'](_0x42e92b['model']['createRangeOn'](_0x196bd9));},{'priority':'low'}),_0x59f9cb['descriptionFactory']['registerDescriptionCallback'](_0x2443d9=>{if(_0x2443d9['subType']&&_0x2443d9['subType']['startsWith']('tablePaste'))return _0x2443d9['previous']?{}:{'type':'insertion','content':c(_0x42e92b['locale'],'*Replace\x20table\x20cells*')};});const _0x4217ec=()=>!0x1;for(const _0x3f950f of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x59f9cb['_suggestionFactory']['registerCustomCallback']('insertion',_0x3f950f,'join',_0x4217ec),_0x59f9cb['_suggestionFactory']['registerCustomCallback']('deletion',_0x3f950f,'join',_0x4217ec),_0x59f9cb['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3f950f,'join',_0x4217ec);_0x59f9cb['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x4217ec),_0x59f9cb['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3a1c2,_0x4d6339,_0x2b57a2)=>{const _0x1e9665=_0x3a1c2['map'](_0x4a3b81=>_0x4a3b81['getContainedElement']())['filter'](_0x378991=>_0x378991),_0x5e7475=new Map(_0x1e9665['map'](_0x180f1a=>[_0x180f1a,null]));if(_0x458a04){for(const {element:_0x5c753b,attributes:_0x15f72e}of _0x458a04['cells'])_0x15f72e&&_0x5e7475['set'](_0x5c753b,_0x15f72e);}else{if(_0x2b57a2&&_0x2b57a2['markerAttributes'])for(const [_0x1c9d61,_0x59896a]of Object['entries'](_0x2b57a2['markerAttributes'])){const _0xa2e086=_0x42e92b['model']['markers']['get'](_0x1c9d61),_0x221ea1=_0xa2e086?_0xa2e086['getRange']()['getContainedElement']():null;_0x221ea1&&_0x5e7475['set'](_0x221ea1,_0x59896a);}}_0x42e92b['model']['change'](_0x2e106e=>{for(const [_0x37ea49,_0x3ad380]of _0x5e7475)_0x2e106e['setAttributes']({...Ue,..._0x3ad380},_0x37ea49);});});const _0x4f4369=(_0x1e558b,_0x590ad8)=>{_0x59f9cb['_suggestionFactory']['registerCustomCallback'](_0x1e558b,'tablePaste',_0x590ad8,(_0x21ec48,_0x4b4d39,_0x191232)=>{_0x42e92b['model']['change'](_0x5c9d6c=>{const _0x50aaf2=[];for(const _0x2f6d45 of _0x21ec48){const _0x10f8a2=_0x2f6d45['start']['nodeAfter'];_0x10f8a2['is']('element','tableCellSuggestion')&&_0x50aaf2['push'](_0x10f8a2);}_0x59f9cb['_suggestionFactory']['getSuggestionCallback'](_0x1e558b,null,_0x590ad8)(_0x21ec48,_0x4b4d39,_0x191232);for(const _0x275dce of _0x50aaf2)'$graveyard'!=_0x275dce['root']['rootName']&&_0x5c9d6c['unwrap'](_0x275dce);});});};_0x4f4369('insertion','accept'),_0x4f4369('insertion','discard'),_0x4f4369('deletion','accept'),_0x4f4369('deletion','discard'),_0x59f9cb['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x34eba6=>{const _0x353daf=_0x34eba6['map'](_0x175931=>_0x175931['getContainedElement']()),_0x1e63af=_0x353daf[0x0]['findAncestor']('table'),{minRow:_0x42df53,maxRow:_0x109ff3}=_0x313e3['_getCoordsForCells'](_0x353daf);_0x3993d2['removeRows'](_0x1e63af,{'at':_0x42df53,'rows':_0x109ff3-_0x42df53+0x1});}),_0x59f9cb['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x848aac=>{const _0x327828=_0x848aac['map'](_0xb05b1b=>_0xb05b1b['getContainedElement']()),_0x52778c=_0x327828[0x0]['findAncestor']('table'),{minColumn:_0x3967f3,maxColumn:_0x33595c}=_0x313e3['_getCoordsForCells'](_0x327828);_0x3993d2['removeColumns'](_0x52778c,{'at':_0x3967f3,'columns':_0x33595c-_0x3967f3+0x1});});const _0x446140=(_0xe915dc,_0x599484)=>{if(!_0x599484['subType']||!_0x599484['subType']['startsWith']('tablePaste'))return;const _0x3ce88a=_0x599484['attributes']['tablePasteChainId'],_0x4d6de7=_0x59f9cb['getSuggestions']()['filter'](_0xfa06e7=>_0xfa06e7['isInContent']&&_0xfa06e7['attributes']&&_0xfa06e7['attributes']['tablePasteChainId']==_0x3ce88a);_0x4d6de7['length']&&_0x599484['getAllAdjacentSuggestions']()['length']!=_0x4d6de7['length']&&_0x4d6de7['reduce']((_0x292102,_0x114a05)=>(_0x292102['next']=_0x114a05,_0x114a05['previous']=_0x292102,_0x114a05));};function _0x3e81bd(_0x5134f5,_0x1eaba8=!0x0){const {id:_0x42fa0a,authorId:_0x45419c}=_0x59f9cb['_splitMarkerName'](_0x5134f5['markerName']),_0x5a74e1=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x190c83=_0x59f9cb['activeMarkers']['includes'](_0x5134f5['markerName']);return _0x190c83&&_0x5a74e1['push']('ck-suggestion-marker--active'),{'classes':_0x5a74e1,'attributes':{'data-suggestion':_0x42fa0a,'data-author-id':_0x45419c},'priority':_0x190c83&&_0x1eaba8?0xbc2:0xbb8};}_0x59f9cb['on']('suggestionLoaded',_0x446140,{'priority':'high'}),_0x59f9cb['on']('suggestionUnloaded',_0x446140,{'priority':'high'}),_0x42e92b['model']['document']['registerPostFixer'](()=>{let _0x42c6f9=!0x1;const _0x31aa6f=Array['from'](_0x42e92b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5bf6c4,data:_0x3d7b72}of _0x31aa6f){const {group:_0x46288b,type:_0x26264e,id:_0x4ae4b0}=_0x59f9cb['_splitMarkerName'](_0x5bf6c4);if('suggestion'!=_0x46288b||'deletion'!=_0x26264e||_0x3d7b72['oldRange'])continue;if(!_0x59f9cb['hasSuggestion'](_0x4ae4b0))continue;const _0x49a3bc=_0x59f9cb['getSuggestion'](_0x4ae4b0)['getRanges'](),_0x1d72d2=_0x42e92b['plugins']['get']('Users')['me'];for(const _0x5a1843 of _0x59f9cb['getSuggestions']()){if(!_0x5a1843['isInContent']||_0x5a1843['author']!=_0x1d72d2)continue;if('formatBlock'!=_0x5a1843['type']||'tablePasteCell'!=_0x5a1843['subType'])continue;if(_0x5a1843['getRanges']()['every'](_0x4cdb2e=>_0x49a3bc['some'](_0x46370d=>_0x46370d['containsRange'](_0x4cdb2e,!0x0)))){for(const _0x4576da of _0x5a1843['getAllAdjacentSuggestions']())_0x4576da['isInContent']&&(_0x4576da['discard'](),_0x42c6f9=!0x0);}}}return _0x42c6f9;}),_0x42e92b['model']['document']['registerPostFixer'](_0xcfdf09=>{const _0x1f321d=_0x42e92b['commands']['get']('redo');if(!_0x1f321d||!_0x1f321d['_createdBatches']['has'](_0xcfdf09['batch']))return!0x1;let _0x4b12b3=!0x1;const _0x377e58=_0x42e92b['plugins']['get']('Users')['me'],_0x1053ff=_0x42e92b['model']['document']['differ']['getChanges'](),_0x586a66=Array['from'](_0x42e92b['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x5f1acc,data:_0x30ed95})=>{const {group:_0x41c3cc,subType:_0x17a11c,authorId:_0x85233b}=_0x59f9cb['_splitMarkerName'](_0x5f1acc);return'suggestion'==_0x41c3cc&&'tablePaste'==_0x17a11c&&_0x85233b==_0x377e58['id']&&!_0x30ed95['oldRange'];});for(const _0x1733b0 of _0x1053ff){if('insert'!=_0x1733b0['type']||'tableCellSuggestion'!=_0x1733b0['name']||0x1!=_0x1733b0['length'])continue;const _0x22ff7d=_0xcfdf09['createRange'](_0x1733b0['position'],_0x1733b0['position']['getShiftedBy'](0x1));if(!_0x586a66['find'](({data:_0x89df9})=>_0x89df9['newRange']['isEqual'](_0x22ff7d))){for(const {name:_0x86d576,data:_0x4d2af5}of _0x586a66)if(_0x22ff7d['containsRange'](_0x4d2af5['newRange'])){_0xcfdf09['updateMarker'](_0x86d576,{'range':_0x22ff7d}),_0x4b12b3=!0x0;break;}}}return _0x4b12b3;}),_0x42e92b['model']['document']['registerPostFixer'](_0x19388a=>{let _0x576bbd=!0x1;const _0x3446b1=_0x42e92b['plugins']['get']('Users')['me'],_0x12f164=_0x59f9cb['getSuggestions']()['filter'](_0x39d5a2=>_0x39d5a2['isInContent']&&_0x39d5a2['author']==_0x3446b1),_0x595d1d=new Set(),_0x476382=new Set();for(const _0x1ab586 of _0x12f164)if('tablePaste'==_0x1ab586['subType'])for(const _0x5e8ebc of _0x1ab586['getMarkers']()){const _0x43d4c2=_0x5e8ebc['getRange']()['getContainedElement']();if(_0x43d4c2){if(_0x43d4c2['is']('element','tableCellSuggestion')&&De(_0x43d4c2)){_0x1ab586['removeMarker'](_0x5e8ebc['name']),_0x595d1d['add'](_0x43d4c2),_0x576bbd=!0x0;const _0x26426a=_0x43d4c2['nextSibling'],_0x28207b=_0x43d4c2['previousSibling'],_0x40c55d=_0x26426a&&_0x26426a['is']('element','tableCellSuggestion'),_0x5d75b3=_0x28207b&&_0x28207b['is']('element','tableCellSuggestion');_0x40c55d&&!_0x595d1d['has'](_0x26426a)&&_0x476382['add'](_0x26426a),_0x5d75b3&&!_0x595d1d['has'](_0x28207b)&&_0x476382['add'](_0x28207b);}else _0x43d4c2['is']('element','paragraph')&&_0x43d4c2['isEmpty']&&(_0x1ab586['removeMarker'](_0x5e8ebc['name']),_0x576bbd=!0x0);}}else{if('tablePasteCell'==_0x1ab586['subType']){if(!_0x1ab586['attributes']||!_0x1ab586['attributes']['tablePasteChainId'])continue;const _0x518ced=_0x1ab586['attributes']['markerAttributes'];if(_0x518ced&&Object['keys'](_0x518ced)['length'])continue;const _0x4266af=_0x1ab586['attributes']['tablePasteChainId'];let _0x4c7fdc=!0x0,_0x1b80cf=!0x0;for(const _0x875bca of _0x12f164)if(_0x875bca['subType']&&_0x875bca['subType']['startsWith']('tablePaste')){if(!_0x875bca['attributes']['tablePasteChainId']){_0x1b80cf=!0x1;break;}if(_0x875bca['id']!=_0x1ab586['id']&&_0x875bca['attributes']['tablePasteChainId']==_0x4266af){_0x4c7fdc=!0x1;break;}}_0x1b80cf&&_0x4c7fdc&&(_0x1ab586['removeMarkers'](),_0x576bbd=!0x0);}}for(const _0x2884dd of _0x595d1d)_0x19388a['remove'](_0x2884dd);for(const _0x4852f5 of _0x476382)_0x19388a['unwrap'](_0x4852f5);return _0x576bbd;}),_0x42e92b['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x3b88c8=>_0x3e81bd(_0x3b88c8),'converterPriority':'high'}),_0x42e92b['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xd1ebd6,_0x4b0ec8)=>_0x4b0ec8['options']['showSuggestionHighlights']?_0x3e81bd(_0xd1ebd6,!0x1):null,'converterPriority':'high'});const _0x286b7e=_0x42e92b['editing']['view'];this['listenTo'](_0x286b7e['document'],'clipboardOutput',(_0x45ae87,_0xc13dc6)=>{const _0x237cf0=[];for(const _0x3739c7 of _0x286b7e['createRangeIn'](_0xc13dc6['content'])['getItems']())_0x3739c7['is']('element','suggestion-td')&&_0x237cf0['push'](_0x3739c7);_0x286b7e['change'](_0x383fd4=>{for(const _0x50109f of _0x237cf0)_0x383fd4['move'](_0x383fd4['createRangeIn'](_0x50109f),_0x383fd4['createPositionBefore'](_0x50109f)),_0x383fd4['remove'](_0x50109f);});});}}function De(_0x525f65){if(_0x525f65['isEmpty'])return!0x0;const _0xd19a1b=_0x525f65['getChild'](0x0);return _0xd19a1b['is']('element','paragraph')&&_0xd19a1b['isEmpty'];}function He(_0x188d01,_0x5aa785={},_0x509e91){for(const {isAnchor:_0x3ad162,cellHeight:_0x598372,cellWidth:_0x4283b6}of _0x509e91['createTableWalker'](_0x188d01,{'includeAllSlots':!0x0,..._0x5aa785}))if(!_0x3ad162||0x1!=_0x598372||0x1!=_0x4283b6)return!0x1;return!0x0;}class Bt extends _0x3953b7{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x310af5=this['editor']['plugins']['get']('TrackChangesEditing');_0x310af5['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x310af5['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x310af5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x310af5['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x310af5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x310af5['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x8c3115,_0x1f6e58){const _0x42985d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x395109=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x126766=_0x1f6e58['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x2ef990=_0x395109['getColumnGroupElement'](_0x126766);let _0x5df962=_0x2ef990?_0x395109['getTableColumnsWidths'](_0x2ef990):null,_0x5d0cb6=_0x126766['getAttribute']('tableWidth')||null;const _0x46d89f=_0x1f6e58['tableWidth']||_0x5d0cb6,_0x59494b=_0x1f6e58['columnWidths']||_0x5df962,_0x1c1dd9=this['editor']['plugins']['get']('Users')['me'];for(const _0xf41ef7 of _0x42985d['getSuggestions']()){const _0x4490c1=_0xf41ef7['getContainedElement']();if('resizeTable'===_0xf41ef7['subType']&&_0x4490c1===_0x126766){_0xf41ef7['author']!==_0x1c1dd9&&_0xf41ef7['discard']();const _0x108911=_0xf41ef7['data']['commandParams'];_0x5d0cb6=_0x108911[0x0]['tableWidth'],_0x5df962=_0x108911[0x0]['columnWidths'];break;}}_0x8c3115({'table':_0x126766,'tableWidth':_0x46d89f,'columnWidths':_0x59494b}),_0x42985d['markBlockFormat'](_0x126766,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5d0cb6,'columnWidths':_0x5df962}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0xc01d7b){if('formatBlock'!=_0xc01d7b['type']&&'formatInline'!=_0xc01d7b['type'])return;const {data:_0xb52e42}=_0xc01d7b;if(_0xb52e42&&'resizeTable'===_0xb52e42['formatGroupId']){const _0x58f1a0='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x58f1a0)};}}}class xt extends _0x3953b7{['afterInit'](){const _0x4aff4c=this['editor'];_0x4aff4c['plugins']['has']('Template')&&_0x4aff4c['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x3953b7{['afterInit'](){const _0x55a871=this['editor'];if(!_0x55a871['commands']['get']('insertTableOfContents'))return;_0x55a871['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x5e55cb=_0x55a871['plugins']['get']('TrackChangesEditing'),_0x2be939=_0x55a871['locale'];_0x5e55cb['descriptionFactory']['registerElementLabel']('tableOfContents',_0x5817a2=>c(_0x2be939,'ELEMENT_TABLE_OF_CONTENTS',_0x5817a2));}}class Rt extends _0x3953b7{['afterInit'](){const _0x47c0ae=this['editor'];if(!_0x47c0ae['plugins']['has']('Title'))return;const _0x33d2b3=_0x47c0ae['plugins']['get']('TrackChangesEditing');_0x33d2b3['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x47c0ae['locale'],'ELEMENT_TITLE')),_0x47c0ae['model']['document']['registerPostFixer'](_0x57b577=>{let _0x2d662a=!0x1;const _0x1df106=Array['from'](_0x47c0ae['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x289e45,data:_0x20c034}of _0x1df106){const {group:_0x33ed4d}=_0x33d2b3['_splitMarkerName'](_0x289e45);if('suggestion'!==_0x33ed4d||!_0x20c034['newRange'])continue;const _0x5e9883=_0x20c034['newRange'],_0x1a970e=_0x5e9883['end']['nodeBefore'];if(!_0x1a970e||!_0x1a970e['is']('element','title-content'))continue;if(!_0x5e9883['start']['isTouching'](_0x5e9883['end']))continue;const _0x4902f7=_0x47c0ae['model']['schema']['getNearestSelectionRange'](_0x5e9883['end'],'forward');if(_0x4902f7&&_0x4902f7['isCollapsed']){const _0x146d58=_0x57b577['createRange'](_0x5e9883['start'],_0x4902f7['start']);_0x146d58['isEqual'](_0x5e9883)||(_0x57b577['updateMarker'](_0x289e45,{'range':_0x146d58}),_0x2d662a=!0x0);}_0x2d662a||(_0x57b577['removeMarker'](_0x289e45),_0x2d662a=!0x0);}return _0x2d662a;});}}class Tt extends _0x3953b7{['afterInit'](){const _0x5248ac=this['editor'],_0x2c2ae8=_0x5248ac['plugins']['get']('TrackChangesEditing');_0x5248ac['plugins']['has']('Uploadcare')&&(_0x2c2ae8['enableCommand']('uploadcare'),_0x5248ac['plugins']['has']('UploadcareImageEdit')&&(_0x2c2ae8['enableCommand']('uploadcareImageEdit'),_0x2c2ae8['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x2c2ae8['registerBlockAttribute']('uploadcareImageId'),_0x2c2ae8['descriptionFactory']['registerDescriptionCallback'](_0xc9d453=>{if('attribute'!=_0xc9d453['type'])return;const {data:_0x13faab}=_0xc9d453;return _0x13faab&&'uploadcareImageId'==_0x13faab['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x3953b7{['afterInit'](){const _0x12a1b0=this['editor'],_0xc0ee1b=_0x12a1b0['plugins']['get']('TrackChangesEditing');_0x12a1b0['plugins']['has']('UndoEditing')&&(_0xc0ee1b['enableCommand']('undo'),_0xc0ee1b['enableCommand']('redo'));}}class Ut extends _0x3953b7{static get['requires'](){return[Ct];}['afterInit'](){const _0x410393=this['editor'];if(!_0x410393['plugins']['has']('TableCaptionEditing'))return;_0x410393['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x3953b7{['tableProperties'];['tableCellProperties'];constructor(_0x35e88f){super(_0x35e88f),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 _0xda7f98=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x35a7b7 of this['tableProperties'])_0xda7f98['enableCommand'](_0x35a7b7,(_0x3527b5,_0x1e4cd1)=>{const _0x2abbb5=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x35a7b7,[_0x2abbb5],this['tableProperties'],'tableProperties',_0x3527b5,_0x1e4cd1);});_0xda7f98['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0xda7f98['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xda7f98['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x41d165,_0x42d257)=>this['handleDiscardAction'](this['tableProperties'],_0x41d165,_0x42d257)),_0xda7f98['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x39cb25 of this['tableCellProperties'])_0xda7f98['enableCommand'](_0x39cb25,(_0x322fb7,_0x812ff2)=>{const _0x458785=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x39cb25,_0x458785,this['tableCellProperties'],'tableCellProperties',_0x322fb7,_0x812ff2);});_0xda7f98['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0xda7f98['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xda7f98['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x319a94,_0x39c07c)=>this['handleDiscardAction'](this['tableCellProperties'],_0x319a94,_0x39c07c)),_0xda7f98['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0xda7f98['descriptionFactory']['registerDescriptionCallback'](_0x3700cf=>this['handleSuggestionDescription'](_0x3700cf));}['_handlePropertyChange'](_0x42347a,_0x5e079c,_0x162056,_0x2c9f97,_0x3b9c98,_0x9d6864){const _0x54294b=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x9d6864['batch'],()=>{for(const _0x3dae9a of _0x5e079c){if(this['_getSuggestion'](_0x3dae9a,_0x2c9f97))_0x3b9c98(_0x9d6864);else{const _0x11c28f={};for(const _0x491fc3 of _0x162056){const _0xe6d56b=_0x3dae9a['getAttribute'](_0x491fc3);void 0x0!==_0xe6d56b&&(_0x11c28f[_0x491fc3]=_0xe6d56b);}_0x3b9c98(_0x9d6864),_0x54294b['markBlockFormat'](_0x3dae9a,{'commandParams':[_0x11c28f]},[],_0x2c9f97);}}});}['handleDiscardAction'](_0x46c759,_0x2af9ba,_0xdc87f){const _0xe2023c=_0x2af9ba[0x0]['start']['nodeAfter'],_0x4cdfc1=_0xdc87f['commandParams'][0x0];this['editor']['model']['change'](_0x336616=>{for(const _0x3f7e0f of _0x46c759)void 0x0!==_0x4cdfc1[_0x3f7e0f]?_0x336616['setAttribute'](_0x3f7e0f,_0x4cdfc1[_0x3f7e0f],_0xe2023c):_0x336616['removeAttribute'](_0x3f7e0f,_0xe2023c);});}['handleSuggestionDescription'](_0x50dd98){if(_0x50dd98['data'])switch(_0x50dd98['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'](_0x57905f,_0x494917){const _0x11ffa3=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3e6ab4 of _0x11ffa3['getSuggestions']({'skipNotAttached':!0x0})){const _0x1d1aa8=_0x3e6ab4['getContainedElement']();if(_0x3e6ab4['subType']===_0x494917&&_0x1d1aa8===_0x57905f)return _0x3e6ab4;}return null;}}const u='$elementName';class p extends _0x3953b7{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x58f2c4,_0x5a4bb9,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(_0x5c6548){super(_0x5c6548),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x5680dd,_0x502132,_0xfff8b8,_0x334064)=>{this['_model']['change'](()=>{for(const _0x144fd9 of[..._0x334064,..._0xfff8b8])this['_model']['markers']['has'](_0x144fd9)&&_0x5c6548['editing']['reconvertMarker'](_0x144fd9);});}),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']=_0x5c6548['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(),_0x5c6548['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x5c6548['config']['get']('trackChanges.trackFormatChanges'),_0x5c6548['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5c6548['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x5c6548,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x49ef70=this['editor'],_0x12a39e=(_0x30a1ad,_0x433042)=>{if('attribute'!=_0x30a1ad)return'ck-suggestion-marker-'+_0x30a1ad;const _0x4e96eb=_0x433042['split']('|')[0x0];return this['_isBlockAttribute'](_0x4e96eb)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x49ef70['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x542e61=>{const {id:_0x34c9ab,authorId:_0x59eb6b,type:_0x123df3,subType:_0x1ae858}=this['_splitMarkerName'](_0x542e61['markerName']),_0x5ac56a=['ck-suggestion-marker',_0x12a39e(_0x123df3,_0x1ae858)];let _0x48598f=0xbb8;return this['activeMarkers']['includes'](_0x542e61['markerName'])&&(_0x5ac56a['push']('ck-suggestion-marker--active'),_0x48598f=0xbc2),'deletion'==_0x123df3&&(_0x48598f+=0x5),{'classes':_0x5ac56a,'attributes':{'data-suggestion':_0x34c9ab,'data-author-id':_0x59eb6b},'priority':_0x48598f};}}),_0x49ef70['conversion']['for']('dataDowncast')['add'](_0x231837=>{_0x231837['on']('addMarker:suggestion',(_0x318b2c,_0x51c1be,_0x5f5488)=>{if(!_0x5f5488['options']['showSuggestionHighlights'])return;const _0x428105=_0x51c1be['item'];if(!_0x428105)return;const _0x359818=_0x5f5488['mapper']['toViewElement'](_0x428105);_0x49ef70['model']['schema']['isObject'](_0x428105)&&_0x359818&&!_0x359818['getCustomProperty']('widget')&&_0x359818['is']('containerElement')&&_0x2cd5b7(_0x359818,_0x5f5488['writer']);},{'priority':'high'});}),_0x49ef70['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x1cf8b6,_0x3f0106)=>{if(!_0x3f0106['options']['showSuggestionHighlights'])return null;const {id:_0x637e56,authorId:_0x5a0ee4,type:_0x338171,subType:_0x4fe53d}=this['_splitMarkerName'](_0x1cf8b6['markerName']);return{'classes':['ck-suggestion-marker',_0x12a39e(_0x338171,_0x4fe53d)],'priority':0xbb8,'attributes':{'data-suggestion':_0x637e56,'data-author-id':_0x5a0ee4}};}});const _0x3c46ef=({showActiveMarkers:_0x522188=!0x0,isAttributeSuggestion:_0x1ed241=!0x1}={})=>(_0x34fa41,_0x3749a1,_0x53a611)=>{if(!_0x3749a1['item'])return;const {id:_0x1321ae,authorId:_0x32bfa1}=this['_splitMarkerName'](_0x3749a1['markerName']);if(_0x1ed241){const _0x4f29fb=this['_suggestions']['get'](_0x1321ae),_0x4849fe=this['_getAttributeKey'](_0x4f29fb);if(!this['_isBlockAttribute'](_0x4849fe))return;}if(_0x3749a1['item']['is']('selection'))return void _0x53a611['consumable']['consume'](_0x3749a1['item'],_0x34fa41['name']);const _0x4f9dbf=_0x53a611['mapper']['toViewElement'](_0x3749a1['item']);if(_0x3749a1['item']['is']('element')&&_0x49ef70['model']['schema']['isBlock'](_0x3749a1['item'])&&!_0x4f9dbf['getCustomProperty']('addHighlight')){_0x53a611['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4f9dbf),_0x53a611['writer']['setAttribute']('data-suggestion',_0x1321ae,_0x4f9dbf),_0x53a611['writer']['setAttribute']('data-author-id',_0x32bfa1,_0x4f9dbf),_0x53a611['mapper']['bindElementToMarker'](_0x4f9dbf,_0x3749a1['markerName']),_0x522188&&(this['activeMarkers']['includes'](_0x3749a1['markerName'])?_0x53a611['writer']['addClass']('ck-suggestion-marker--active',_0x4f9dbf):_0x53a611['writer']['removeClass']('ck-suggestion-marker--active',_0x4f9dbf));for(const _0x5d5df3 of _0x49ef70['model']['createRangeIn'](_0x3749a1['item'])['getItems']())_0x53a611['consumable']['consume'](_0x5d5df3,_0x34fa41['name']);_0x53a611['consumable']['consume'](_0x3749a1['item'],_0x34fa41['name']);}};_0x49ef70['conversion']['for']('dataDowncast')['add'](_0x23f80e=>{_0x23f80e['on']('addMarker:suggestion:formatBlock',(_0x403a5d,_0x583603,_0x165fd2)=>{_0x165fd2['options']['showSuggestionHighlights']&&_0x3c46ef({'showActiveMarkers':!0x1})(_0x403a5d,_0x583603,_0x165fd2);},{'priority':'highest'});}),_0x49ef70['conversion']['for']('dataDowncast')['add'](_0x54287c=>{_0x54287c['on']('addMarker:suggestion:attribute',(_0xc7c33a,_0x413641,_0x22f8cc)=>{_0x22f8cc['options']['showSuggestionHighlights']&&_0x3c46ef({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0xc7c33a,_0x413641,_0x22f8cc);},{'priority':'highest'});}),_0x49ef70['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1a2e82,_0x14f70c)=>{if(_0x14f70c['options']['showSuggestionHighlights']){const {id:_0x116c7b,authorId:_0x362f7f}=this['_splitMarkerName'](_0x1a2e82);return _0x1a2e82['includes'](':split')||_0x1a2e82['includes'](':merge')?{'group':'suggestion','name':_0x1a2e82['substr'](0xb),'attributes':{'data-suggestion':_0x116c7b,'data-author-id':_0x362f7f}}:null;}return{'group':'suggestion','name':_0x1a2e82['substr'](0xb)};}}),_0x49ef70['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x18e028,{writer:_0x396383})=>{let _0x286231='suggestion:'+_0x18e028['getAttribute']('suggestion-type')+':'+_0x18e028['getAttribute']('id');return _0x18e028['getAttribute']('marker-count')&&(_0x286231+=':'+_0x18e028['getAttribute']('marker-count')),_0x396383['createElement']('$marker',{'data-name':_0x286231});}}),_0x49ef70['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x49ef70['conversion']['for']('editingDowncast')['add'](_0x48734e=>{_0x48734e['on']('addMarker:suggestion:formatBlock',_0x3c46ef(),{'priority':'high'});}),_0x49ef70['conversion']['for']('editingDowncast')['add'](_0x5b801e=>{_0x5b801e['on']('addMarker:suggestion:attribute',_0x3c46ef({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x49ef70['conversion']['for']('editingDowncast')['add'](_0x19eecf=>{_0x19eecf['on']('removeMarker:suggestion:formatBlock',(_0x2b6d0f,_0x284227,_0xb15d67)=>{const _0x3102bd=_0xb15d67['mapper']['markerNameToElements'](_0x284227['markerName']);if(_0x3102bd){for(const _0x13dd83 of _0x3102bd)_0x13dd83['getCustomProperty']('addHighlight')||(_0xb15d67['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x13dd83),_0xb15d67['writer']['removeAttribute']('data-suggestion',_0x13dd83),_0xb15d67['writer']['removeAttribute']('data-author-id',_0x13dd83),_0xb15d67['mapper']['unbindElementFromMarkerName'](_0x13dd83,_0x284227['markerName']));}},{'priority':'high'});}),_0x49ef70['conversion']['for']('editingDowncast')['add'](_0x2d7c5e=>{_0x2d7c5e['on']('removeMarker:suggestion:attribute',(_0x3f72ea,_0x2cfa88,_0x4bd72a)=>{const _0xaba1fb=_0x4bd72a['mapper']['markerNameToElements'](_0x2cfa88['markerName']);if(!_0xaba1fb)return;const {id:_0x238039}=this['_splitMarkerName'](_0x2cfa88['markerName']),_0x4a5ef3=this['_suggestions']['get'](_0x238039),_0x548d18=this['_getAttributeKey'](_0x4a5ef3);if(this['_isBlockAttribute'](_0x548d18)){for(const _0x5a2fa5 of _0xaba1fb)_0x5a2fa5['getCustomProperty']('addHighlight')||(_0x4bd72a['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5a2fa5),_0x4bd72a['writer']['removeAttribute']('data-suggestion',_0x5a2fa5),_0x4bd72a['writer']['removeAttribute']('data-author-id',_0x5a2fa5),_0x4bd72a['mapper']['unbindElementFromMarkerName'](_0x5a2fa5,_0x2cfa88['markerName']));}},{'priority':'high'});}),_0x49ef70['model']['document']['registerPostFixer'](_0x270b02=>{let _0x352fde=!0x1;const _0x95c9cc=Array['from'](_0x49ef70['model']['document']['differ']['getChangedMarkers']()),_0x209377=new Set();for(const {name:_0x3b8d1d,data:_0xf8a10b}of _0x95c9cc){const {group:_0x102b32,type:_0x86192e,subType:_0x5d2d4b,id:_0x2abff2}=this['_splitMarkerName'](_0x3b8d1d);if('suggestion'!==_0x102b32)continue;const _0x595266=this['_suggestions']['get'](_0x2abff2);if(null!=_0xf8a10b['newRange']){'formatInline'==_0x86192e&&(_0x352fde=_0x352fde||Jt(_0xf8a10b['newRange'],_0x3b8d1d,_0x270b02,_0x49ef70['model']['schema']));const _0x261aae='attribute'==_0x86192e&&this['_isBlockAttribute'](_0x5d2d4b['split']('|')[0x0]);if(_0xf8a10b['newRange']['isCollapsed']||'$graveyard'==_0xf8a10b['newRange']['root']['rootName']||'formatBlock'==_0x86192e&&!Ht(_0xf8a10b['newRange'])||_0x261aae&&!Ht(_0xf8a10b['newRange'])||'deletion'==_0x86192e&&!(!Lt(_0x2b1bad=_0xf8a10b['newRange'])&&!function(_0x56c57e){return _0x56c57e['start']['parent']==_0x56c57e['end']['nodeBefore']&&_0x56c57e['start']['isAtEnd'];}(_0x2b1bad)))_0x270b02['removeMarker'](_0x3b8d1d),_0x352fde=!0x0;else{if(!_0x595266||!_0x595266['isInContent'])continue;if(_0xf8a10b['newRange']&&_0xf8a10b['oldRange']&&_0xf8a10b['newRange']['isEqual'](_0xf8a10b['oldRange']))continue;_0x209377['add'](_0x595266);}}}var _0x2b1bad;return _0x209377['size']>0x0&&(_0x352fde=!!this['_joinWithAdjacentSuggestions'](_0x209377)||_0x352fde),_0x352fde;}),_0x49ef70['model']['document']['registerPostFixer'](_0x2ac7e7=>{let _0x466a59=!0x1;for(const _0x1531b7 of _0x49ef70['model']['document']['differ']['getChanges']())if('insert'==_0x1531b7['type'])for(const _0x51e317 of this['_suggestions']['values']()){if(_0x51e317['isMultiRange']||!_0x51e317['isInContent'])continue;const _0x3fa8b9='formatBlock'==_0x51e317['type'],_0x3afdb7=this['_getAttributeKey'](_0x51e317),_0x2b7625=_0x3afdb7&&this['_isBlockAttribute'](_0x3afdb7);if(!_0x3fa8b9&&!_0x2b7625)continue;const _0x4eecf2=_0x51e317['getFirstRange']();if(_0x4eecf2['start']['parent']!=_0x4eecf2['end']['parent']&&!_0x4eecf2['end']['isAtEnd']){const _0x241842=_0x49ef70['model']['createPositionAt'](_0x4eecf2['start']['nodeAfter'],'end'),_0x3536bf=_0x49ef70['model']['createRange'](_0x4eecf2['start'],_0x241842);_0x2ac7e7['updateMarker'](_0x51e317['getFirstMarker'](),{'range':_0x3536bf}),_0x466a59=!0x0;}}return _0x466a59;}),_0x49ef70['model']['document']['registerPostFixer'](_0xab4539=>this['_processAttributeChanges'](_0xab4539)),_0x49ef70['model']['document']['registerPostFixer'](_0x341d90=>!_0x341d90['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x341d90)),_0x49ef70['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x49ef70['model']['document']['on']('change:data',(_0x329ee6,_0x4e4d9e)=>{if(!_0x4e4d9e['isLocal']||_0x4e4d9e['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x358e90=_0x49ef70['model']['document']['differ']['getChanges']();if(0x0==_0x358e90['length'])return;const _0x434728=[],_0x2c5490=_0x358e90['filter'](_0x295a5b=>'attribute'==_0x295a5b['type']),_0x3cd6f8=_0x358e90['filter'](_0x4db842=>'insert'==_0x4db842['type']&&'$text'!=_0x4db842['name']);for(const _0x431527 of _0x2c5490)this['_isRegisteredAttribute'](_0x431527['attributeKey'])&&_0x434728['push']({'key':_0x431527['attributeKey'],'newValue':_0x431527['attributeNewValue'],'oldValue':_0x431527['attributeOldValue'],'range':qt(_0x431527['range'],_0x49ef70['model'])});for(const _0x4b6baf of _0x3cd6f8){if('rename'!=_0x4b6baf['action']&&'refresh'!=_0x4b6baf['action'])continue;const _0x9b599f=zt(_0x4b6baf['position']['nodeAfter'],_0x49ef70['model']),_0x429db8=_0x4b6baf['before'];'rename'==_0x4b6baf['action']&&_0x434728['push']({'key':u,'newValue':_0x4b6baf['name'],'oldValue':_0x429db8['name'],'range':_0x9b599f});for(const [_0x783101,_0x21e798]of _0x429db8['attributes']){if(!this['_isRegisteredAttribute'](_0x783101))continue;const _0x2cef94=_0x4b6baf['attributes']['get'](_0x783101);_0x21e798!==_0x2cef94&&_0x434728['push']({'key':_0x783101,'newValue':_0x2cef94,'oldValue':_0x21e798,'range':_0x9b599f});}for(const [_0x4c945b,_0x3d763e]of _0x4b6baf['attributes'])this['_isRegisteredAttribute'](_0x4c945b)&&(_0x429db8['attributes']['has'](_0x4c945b)||_0x434728['push']({'key':_0x4c945b,'newValue':_0x3d763e,'oldValue':null,'range':_0x9b599f}));}0x0!=_0x434728['length']&&_0x49ef70['model']['enqueueChange'](_0x4e4d9e,_0x56bc1c=>{const _0x4a815a=_0x524fb1();for(const {range:_0x13ddea,key:_0x1e6b78,oldValue:_0xfb2c74,newValue:_0x30ec64}of _0x434728)this['markAttributeChange'](_0x13ddea,_0x1e6b78,_0xfb2c74,_0x30ec64,{'groupId':_0x4a815a});this['_reduceExistingSuggestions'](_0x56bc1c,_0x434728);});},{'priority':'lowest'}),_0x49ef70['model']['markers']['on']('update:suggestion',(_0x1e169f,_0x398493,_0xf488fb)=>{if(null==_0xf488fb){const {id:_0xab459b}=this['_splitMarkerName'](_0x398493['name']),_0x1c4fba=this['_suggestions']['get'](_0xab459b);_0x1c4fba&&_0x1c4fba['addMarkerName'](_0x398493['name']);}}),_0x49ef70['model']['document']['on']('change:data',()=>{const _0x3e5f2b=Array['from'](_0x49ef70['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5dbf79=>'suggestion'===this['_splitMarkerName'](_0x5dbf79['name'])['group']);if(0x0===_0x3e5f2b['length'])return;_0x3e5f2b['sort']((_0x2e3aa8,_0x28867a)=>{const _0x3898c2=_0x2e3aa8['data']['oldRange'],_0x2e284b=_0x28867a['data']['oldRange'];return null===_0x3898c2&&null===_0x2e284b?0x0:null===_0x3898c2&&null!==_0x2e284b?-0x1:null!==_0x3898c2&&null===_0x2e284b?0x1:_0x3898c2['start']['isBefore'](_0x2e284b['start'])?-0x1:0x1;});const _0x543cae=new Set(),_0x2daadf=new Set();for(const {name:_0x354ed5,data:_0x3775cd}of _0x3e5f2b){const {id:_0x32af42}=this['_splitMarkerName'](_0x354ed5);if(null===_0x3775cd['oldRange']){const _0x5f28de=this['_handleNewSuggestionMarker'](_0x354ed5);_0x2daadf['add'](_0x5f28de);}else{const _0x4cf726=this['_suggestions']['get'](_0x32af42);null!==_0x3775cd['newRange']||_0x4cf726['isInContent']?(_0x543cae['add'](_0x4cf726['head']),_0x2daadf['add'](_0x4cf726)):this['_removeSuggestion'](_0x4cf726);}}_0x2daadf['size']>0x0&&this['_refreshSuggestionsChain'](_0x2daadf);for(const _0x324820 of _0x543cae)this['fire']('suggestionChanged',_0x324820);}),_0x49ef70['model']['on']('applyOperation',(_0x52915d,_0xfcec6d)=>{const _0xf63952=_0xfcec6d[0x0];if(!this['_suggestions']['size'])return;if(!_0xf63952['isDocumentOperation'])return;if(_0xf63952['batch']['isUndo']||!_0xf63952['batch']['isLocal'])return;let _0x3c35e2,_0x4ecaad;switch(_0xf63952['type']){case'insert':_0x3c35e2=_0x49ef70['model']['createPositionAt'](_0xf63952['position']),_0x4ecaad=_0x3c35e2['getShiftedBy'](_0xf63952['howMany']);break;case'split':_0x3c35e2=_0x49ef70['model']['createPositionAt'](_0xf63952['splitPosition']),_0x4ecaad=_0x49ef70['model']['createPositionAt'](_0xf63952['moveTargetPosition']);break;case'move':_0x3c35e2=_0x49ef70['model']['createPositionAt'](_0xf63952['targetPosition']),_0x4ecaad=_0x3c35e2['getShiftedBy'](_0xf63952['howMany']);break;default:return;}const _0x4cd215=_0x49ef70['model']['createRange'](_0x3c35e2,_0x4ecaad);_0x49ef70['model']['change'](()=>{for(const {suggestion:_0x5dd3cb,meta:_0x33bf06}of this['_findSuggestions'](_0x4cd215)){if(_0x5dd3cb['isMultiRange'])continue;if('formatInline'==_0x5dd3cb['type'])continue;const _0x87cfae=this['_getAttributeKey'](_0x5dd3cb);if(_0x87cfae&&this['_isBlockAttribute'](_0x87cfae)&&'split'!=_0xf63952['type'])continue;const _0x5a5e65=_0x5dd3cb['data']&&_0x5dd3cb['data']['multipleBlocks'];('formatBlock'!=_0x5dd3cb['type']||'split'==_0xf63952['type']&&!_0x5a5e65)&&(_0x33bf06['containsRangeInObject']||'insertion'==_0x5dd3cb['type']&&_0x33bf06['isOwn']||_0x5dd3cb['getFirstRange']()['containsRange'](_0x4cd215)&&this['_breakSuggestionMarker'](_0x5dd3cb,_0x3c35e2,_0x4ecaad));}});},{'priority':'lowest'}),_0x49ef70['model']['on']('deleteContent',(_0x814f44,_0x5c8886)=>{const _0x545944=_0x5c8886[0x0],_0x2ae2ba=_0x5c8886[0x1];if(_0x2ae2ba&&_0x2ae2ba['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x545944['isCollapsed'])return;const _0x42cef7=_0x49ef70['model']['schema'],{start:_0x1f2622,end:_0x54a301}=_0x545944['getFirstRange'](),_0x4c0247=_0x1f2622['nodeAfter']&&_0x42cef7['isLimit'](_0x1f2622['nodeAfter'])?null:_0x42cef7['getNearestSelectionRange'](_0x1f2622,'forward'),_0x32b6d5=_0x54a301['nodeBefore']&&_0x42cef7['isLimit'](_0x54a301['nodeBefore'])?null:_0x42cef7['getNearestSelectionRange'](_0x54a301,'backward'),_0x2470d8=_0x49ef70['model']['createRange'](_0x4c0247?_0x4c0247['start']:_0x1f2622,_0x32b6d5?_0x32b6d5['end']:_0x54a301);_0x49ef70['model']['change'](_0x571334=>{this['markDeletion'](_0x2470d8);const _0x3d89df=_0x49ef70['model']['schema']['getNearestSelectionRange'](_0x2470d8['start']);_0x545944['is']('documentSelection')?_0x571334['setSelection'](_0x3d89df):_0x545944['setTo'](_0x3d89df);}),_0x814f44['stop']();},{'priority':_0x2ab9b9['normal']+0xa}),_0x49ef70['model']['on']('insertContent',(_0x1fbd23,_0x3d31f8)=>{const _0x5de7ad=_0x3d31f8[_0x3d31f8['length']-0x1];_0x5de7ad&&_0x5de7ad['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x49ef70['model']['change'](()=>{let _0x301b12=_0x49ef70['model']['insertContent'](_0x3d31f8[0x0],_0x3d31f8[0x1],_0x3d31f8[0x2],{'forceDefaultExecution':!0x0});if(!_0x301b12)return;_0x1fbd23['return']=_0x301b12['clone']();const _0x2a8e6f=_0x301b12['end']['nodeBefore'],_0x151cf3=_0x49ef70['model']['schema'];_0x2a8e6f&&_0x151cf3['isBlock'](_0x2a8e6f)&&!_0x151cf3['isObject'](_0x2a8e6f)&&(_0x301b12=_0x49ef70['model']['createRange'](_0x301b12['start'],_0x49ef70['model']['createPositionAt'](_0x2a8e6f,'end'))),this['markInsertion'](_0x301b12);}),_0x1fbd23['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5470bb=new x(_0x49ef70,this['_suggestions']);_0x49ef70['commands']['add']('acceptSuggestion',_0x5470bb),this['enableCommand']('acceptSuggestion');const _0x581fd3=new O(_0x49ef70,this['_suggestions']);_0x49ef70['commands']['add']('discardSuggestion',_0x581fd3),this['enableCommand']('discardSuggestion'),_0x49ef70['commands']['add']('acceptAllSuggestions',new R(_0x49ef70,_0x5470bb,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x49ef70['commands']['add']('discardAllSuggestions',new R(_0x49ef70,_0x581fd3,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x49ef70['commands']['add']('acceptSelectedSuggestions',new E(_0x49ef70,_0x5470bb,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x49ef70['commands']['add']('discardSelectedSuggestions',new E(_0x49ef70,_0x581fd3,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x15c406=_0x49ef70['plugins']['get']('CommentsRepository');this['listenTo'](_0x15c406,'addComment',(_0x379d5a,{threadId:_0x22cdcf})=>{const _0xf1a18e=this['_suggestions']['get'](_0x22cdcf);_0xf1a18e&&_0xf1a18e['commentThread']&&0x1===_0xf1a18e['commentThread']['length']&&this['_updateSuggestionData'](_0x22cdcf,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x15c406,'removeComment',(_0x38787c,{threadId:_0x513687})=>{const _0x1a5f9d=this['_suggestions']['get'](_0x513687);_0x1a5f9d&&_0x1a5f9d['commentThread']&&!_0x1a5f9d['commentThread']['length']&&this['_updateSuggestionData'](_0x513687,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x589e82){const _0x4ae7ac=_0x32360e([0x49,0x34,0x50,0x42,0x6d,0x66,0x4d,0x72,0x73,0x4a,0x33,0x4e,0x31,0x75,0x5a,0x37,0x35,0x58,0x51,0x30,0x61,0x54,0x65,0x53,0x6b,0x46,0x48,0x47,0x56,0x74,0x67,0x68,0x69,0x44,0x70,0x52,0x6a,0x6f,0x4f,0x45,0x32,0x62,0x76,0x39,0x36,0x7a,0x57,0x38,0x79,0x71,0x43,0x55,0x6c,0x78,0x59,0x41,0x63,0x6e,0x64,0x77,0x4b,0x4c]),_0x260317=0x4635f8c9,_0x3a0544=0x46329179^_0x260317,_0x2fe808=window[_0x32360e([0x44,0x61,0x74,0x65])][_0x32360e([0x6e,0x6f,0x77])](),_0xfe2df8=_0x589e82[_0x32360e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x297476=new window[(_0x32360e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x368c24=>{_0xfe2df8[_0x32360e([0x6f,0x6e,0x63,0x65])](_0x32360e([0x72,0x65,0x61,0x64,0x79]),_0x368c24);}),_0x53f2fc={[_0x32360e([0x6b,0x74,0x79])]:_0x32360e([0x45,0x43]),[_0x32360e([0x75,0x73,0x65])]:_0x32360e([0x73,0x69,0x67]),[_0x32360e([0x63,0x72,0x76])]:_0x32360e([0x50,0x2d,0x32,0x35,0x36]),[_0x32360e([0x78])]:_0x32360e([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]),[_0x32360e([0x79])]:_0x32360e([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]),[_0x32360e([0x61,0x6c,0x67])]:_0x32360e([0x45,0x53,0x32,0x35,0x36])},_0x23cbe0=_0xfe2df8[_0x32360e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x32360e([0x67,0x65,0x74])](_0x32360e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5bb33f(){let _0x7f9cd4,_0xc3ce03=null,_0x3599a0=null;try{if(_0x23cbe0==_0x32360e([0x47,0x50,0x4c]))return _0x32360e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x7f9cd4=_0x163cb1(),!_0x7f9cd4)return _0x32360e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x7f9cd4[_0x32360e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3599a0=_0xb65b3e(_0x7f9cd4[_0x32360e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x7f9cd4[_0x32360e([0x6a,0x74,0x69])])),await _0x5e5729()?_0x4e44db()?_0x376386()?_0x32360e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2b238e()?(_0x7f9cd4[_0x32360e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x32360e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xc3ce03=_0x551a74(_0x32360e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x7f9cd4[_0x32360e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x32360e([0x74,0x72,0x69,0x61,0x6c])&&(_0xc3ce03=_0x551a74(_0x32360e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5729dd()):_0x32360e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x32360e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x32360e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x32360e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x376386(){const _0x25f29b=[_0x32360e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x32360e([0x74,0x72,0x69,0x61,0x6c])][_0x32360e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7f9cd4[_0x32360e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2fe808/0x3e8:0xe10*_0x3a0544;return _0x7f9cd4[_0x32360e([0x65,0x78,0x70])]<_0x25f29b;}function _0x4e44db(){const _0x589ab8=_0x7f9cd4[_0x32360e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x589ab8)return!0x1;if(_0x589ab8[_0x32360e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32360e([0x2a])))return!0x0;if(_0x589ab8[_0x32360e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32360e([0x54,0x43])))return!0x0;if(_0x589ab8[_0x32360e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32360e([0x52,0x54,0x43]))){if(_0x28c369())return!0x0;if(_0x5ba489()||_0x7829c())return!0x0;}return!0x1;}function _0x2b238e(){const _0x5efa28=_0x7f9cd4[_0x32360e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5efa28||0x0==_0x5efa28[_0x32360e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3870ef}=new URL(window[_0x32360e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5efa28[_0x32360e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3870ef))return!0x0;const _0x369ce9=_0x3870ef[_0x32360e([0x73,0x70,0x6c,0x69,0x74])](_0x32360e([0x2e]));return _0x5efa28[_0x32360e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x26bca3=>_0x26bca3[_0x32360e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32360e([0x2a])))[_0x32360e([0x6d,0x61,0x70])](_0x578e1e=>_0x578e1e[_0x32360e([0x73,0x70,0x6c,0x69,0x74])](_0x32360e([0x2e])))[_0x32360e([0x73,0x6f,0x6d,0x65])](_0x442019=>_0x369ce9[_0x32360e([0x65,0x76,0x65,0x72,0x79])]((_0x21cb5c,_0x3827f2)=>_0x442019[_0x3827f2]===_0x21cb5c||_0x442019[_0x3827f2]===_0x32360e([0x2a])));}function _0x5729dd(){return _0xc3ce03&&_0x3599a0?new window[(_0x32360e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xc510b9,_0x68c9e1)=>{_0xc3ce03[_0x32360e([0x74,0x68,0x65,0x6e])](_0xc510b9,_0x68c9e1),_0x3599a0[_0x32360e([0x74,0x68,0x65,0x6e])](_0x5912d4=>{_0x5912d4!=_0x32360e([0x56,0x61,0x6c,0x69,0x64])&&_0xc510b9(_0x5912d4);},_0x68c9e1);}):_0xc3ce03||_0x3599a0||_0x32360e([0x56,0x61,0x6c,0x69,0x64]);}}function _0xb65b3e(_0x448d64,_0x9a12f1){return new window[(_0x32360e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xcc81d4=>{if(_0x5e21db())return _0xcc81d4(_0x32360e([0x56,0x61,0x6c,0x69,0x64]));_0x4a1581(),_0xfe2df8[_0x32360e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x32360e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x47273b=!0x1;const _0x58039e=_0x524fb1();function _0x39c1d4(_0x381431){return!!_0x381431&&(typeof _0x381431===_0x32360e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x381431===_0x32360e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x381431[_0x32360e([0x74,0x68,0x65,0x6e])]===_0x32360e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x381431[_0x32360e([0x63,0x61,0x74,0x63,0x68])]===_0x32360e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3f3190(_0x1f6797){_0x574e71(_0x1f6797)[_0x32360e([0x74,0x68,0x65,0x6e])](_0x2f7db4=>{if(!_0x2f7db4||_0x2f7db4[_0x32360e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x32360e([0x6f,0x6b]))return _0x32360e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2c43e3(_0x174560(_0x58039e+_0x9a12f1))!=_0x2f7db4[_0x32360e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x32360e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x32360e([0x56,0x61,0x6c,0x69,0x64]);})[_0x32360e([0x74,0x68,0x65,0x6e])](_0x3d80aa=>(_0x10f6a7(),_0x3d80aa),()=>{const _0x56d113=_0x42500e();return null==_0x56d113?(_0x10f6a7(),_0x32360e([0x56,0x61,0x6c,0x69,0x64])):_0x32360e(_0x2fe808-_0x56d113>(0x62397cc9^_0x260317)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x32360e([0x74,0x68,0x65,0x6e])](_0xcc81d4)[_0x32360e([0x63,0x61,0x74,0x63,0x68])](()=>{_0xcc81d4(_0x32360e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4289ef=0x46031649^_0x260317;function _0x10f6a7(){const _0x5423ab=_0x32360e([0x6c,0x6c,0x63,0x74,0x2d])+_0x2c43e3(_0x174560(_0x448d64)),_0x4cbf00=_0x2d333c(_0x2c43e3(window[_0x32360e([0x4d,0x61,0x74,0x68])][_0x32360e([0x63,0x65,0x69,0x6c])](_0x2fe808/_0x4289ef)));window[_0x32360e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x32360e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5423ab,_0x4cbf00);}function _0x42500e(){const _0x1e7404=_0x32360e([0x6c,0x6c,0x63,0x74,0x2d])+_0x2c43e3(_0x174560(_0x448d64)),_0x362f67=window[_0x32360e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x32360e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1e7404);return _0x362f67?window[_0x32360e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d333c(_0x362f67),0x10)*_0x4289ef:null;}function _0x574e71(_0x1380ec){return new window[(_0x32360e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x52beaf,_0x41c7ac)=>{_0x1380ec[_0x32360e([0x74,0x68,0x65,0x6e])](_0x52beaf,_0x41c7ac),window[_0x32360e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x41c7ac,0x46342c09^_0x260317);});}}_0xfe2df8[_0x32360e([0x6f,0x6e])](_0x32360e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x19776b,_0x4ab60a)=>{if(_0x4ab60a[0x0]!=_0x448d64)return _0xcc81d4(_0x32360e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4ab60a[0x1]={..._0x4ab60a[0x1],[_0x32360e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x58039e};},{[_0x32360e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x32360e([0x68,0x69,0x67,0x68])}),_0xfe2df8[_0x32360e([0x6f,0x6e])](_0x32360e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4f57f3=>{_0x39c1d4(_0x4f57f3[_0x32360e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x47273b=!0x0,_0x3f3190(_0x4f57f3[_0x32360e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x32360e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x32360e([0x6c,0x6f,0x77])}),_0x297476[_0x32360e([0x74,0x68,0x65,0x6e])](()=>{_0x47273b||_0xcc81d4(_0x32360e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5e21db(){return _0xfe2df8[_0x32360e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x32360e([0x76,0x69,0x65,0x77])][_0x32360e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x32360e([0x61,0x75,0x74,0x6f]);}function _0x4a1581(){_0xfe2df8[_0x32360e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x32360e([0x76,0x69,0x65,0x77])][_0x32360e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x32360e([0x61,0x75,0x74,0x6f]);}}function _0x551a74(_0x4d585c){const _0x4293c8=[new window[(_0x32360e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x25d2ca=>setTimeout(_0x25d2ca,0x463cc605^_0x260317)),_0x297476[_0x32360e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x32360e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x145632=>{let _0x5bc1a6=0x0;_0xfe2df8[_0x32360e([0x6d,0x6f,0x64,0x65,0x6c])][_0x32360e([0x6f,0x6e])](_0x32360e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2dcc89,_0x3f028f)=>{_0x3f028f[0x0][_0x32360e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5bc1a6++,_0x5bc1a6==(0x4635f931^_0x260317)&&(_0x145632(),_0x2dcc89[_0x32360e([0x6f,0x66,0x66])]());});}))];return window[_0x32360e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x32360e([0x72,0x61,0x63,0x65])](_0x4293c8)[_0x32360e([0x74,0x68,0x65,0x6e])](()=>_0x4d585c);}async function _0x17951d(){await _0x297476,_0xfe2df8[_0x32360e([0x6d,0x6f,0x64,0x65,0x6c])][_0x32360e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x356e41,_0xfe2df8[_0x32360e([0x6d,0x6f,0x64,0x65,0x6c])][_0x32360e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x356e41,_0xfe2df8[_0x32360e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x32360e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x28c369(){return _0x2f43d9(_0x32360e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5790ee(_0x32360e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x32360e([0x73,0x74,0x61,0x74,0x65])]==_0x32360e([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5ba489(){return _0x2f43d9(_0x32360e([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 _0x7829c(){return _0x2f43d9(_0x32360e([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3d8083(_0x2a3cc0){const _0x377300=_0x4c3105();_0xfe2df8[_0x377300]=_0x32360e([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2a3cc0,_0x2a3cc0!=_0x32360e([0x56,0x61,0x6c,0x69,0x64])&&_0x17951d();}function _0x4c3105(){const _0xb261f5=window[_0x32360e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x32360e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x32360e([0x6e,0x6f,0x77])]())[_0x32360e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x32360e([0x2e]),'');let _0x24c1f8=_0x32360e([0x49]);for(let _0x122e9a=0x0;_0x122e9a<_0xb261f5[_0x32360e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x122e9a+=0x2){let _0x3b7b3e=window[_0x32360e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xb261f5[_0x32360e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x122e9a,_0x122e9a+0x2));_0x3b7b3e>=_0x4ae7ac[_0x32360e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3b7b3e-=_0x4ae7ac[_0x32360e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x24c1f8+=_0x4ae7ac[_0x3b7b3e];}return _0x24c1f8;}function _0x163cb1(){const _0xd14761=_0x23cbe0[_0x32360e([0x73,0x70,0x6c,0x69,0x74])](_0x32360e([0x2e]));if(0x3!=_0xd14761[_0x32360e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x34bd11(_0xd14761[0x1]);function _0x34bd11(_0x1ed6c2){const _0x36e12b=_0x315e33(_0x1ed6c2);return _0x36e12b&&_0x2f381f()?_0x36e12b:null;function _0x2f381f(){const _0x190327=_0x36e12b[_0x32360e([0x6a,0x74,0x69])],_0x68440d=window[_0x32360e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x190327[_0x32360e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x190327[_0x32360e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x466f8c={..._0x36e12b,[_0x32360e([0x6a,0x74,0x69])]:_0x190327[_0x32360e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x190327[_0x32360e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x466f8c[_0x32360e([0x76,0x63])],_0x174560(_0x466f8c)==_0x68440d;}}}async function _0x5e5729(){let _0x58dae1=!0x0;try{const _0x40bb3f=_0x23cbe0[_0x32360e([0x73,0x70,0x6c,0x69,0x74])](_0x32360e([0x2e])),[_0x52ab96,_0x337bb9,_0x2d7f95]=_0x40bb3f;return _0x11efd4(_0x52ab96),await _0x4d2a0d(_0x52ab96,_0x337bb9,_0x2d7f95),_0x58dae1;}catch{return!0x1;}function _0x11efd4(_0x4c2238){const _0x5b1632=_0x315e33(_0x4c2238);_0x5b1632&&_0x5b1632[_0x32360e([0x61,0x6c,0x67])]==_0x32360e([0x45,0x53,0x32,0x35,0x36])||(_0x58dae1=!0x1);}async function _0x4d2a0d(_0x2ce0ea,_0x12d90f,_0x42a02c){const _0x25cb05=window[_0x32360e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x32360e([0x66,0x72,0x6f,0x6d])](_0x4c6a50(_0x42a02c),_0x50d29b=>_0x50d29b[_0x32360e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2143bb=new window[(_0x32360e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x32360e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2ce0ea+_0x32360e([0x2e])+_0x12d90f),_0x23d7da=window[_0x32360e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x32360e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x23d7da)return;const _0x3fbeee=await _0x23d7da[_0x32360e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x32360e([0x6a,0x77,0x6b]),_0x53f2fc,{[_0x32360e([0x6e,0x61,0x6d,0x65])]:_0x32360e([0x45,0x43,0x44,0x53,0x41]),[_0x32360e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x32360e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x32360e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x23d7da[_0x32360e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x32360e([0x6e,0x61,0x6d,0x65])]:_0x32360e([0x45,0x43,0x44,0x53,0x41]),[_0x32360e([0x68,0x61,0x73,0x68])]:{[_0x32360e([0x6e,0x61,0x6d,0x65])]:_0x32360e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3fbeee,_0x25cb05,_0x2143bb)||(_0x58dae1=!0x1);}}function _0x315e33(_0x42117a){return _0x42117a[_0x32360e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x32360e([0x65,0x79]))?JSON[_0x32360e([0x70,0x61,0x72,0x73,0x65])](_0x4c6a50(_0x42117a)):null;}function _0x4c6a50(_0x427125){return window[_0x32360e([0x61,0x74,0x6f,0x62])](_0x427125[_0x32360e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x32360e([0x2b]))[_0x32360e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x32360e([0x2f])));}function _0x174560(_0x5dea07){let _0x10211a=0x1505;function _0x5c9685(_0x3fd8cc){for(let _0x41853f=0x0;_0x41853f<_0x3fd8cc[_0x32360e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x41853f++){const _0x2d5b=_0x3fd8cc[_0x32360e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x41853f);_0x10211a=(_0x10211a<<0x5)+_0x10211a+_0x2d5b,_0x10211a&=_0x10211a;}}function _0x5bbc7e(_0x20ede8){Array[_0x32360e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x20ede8)?_0x20ede8[_0x32360e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5bbc7e):_0x20ede8&&typeof _0x20ede8==_0x32360e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x32360e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x20ede8)[_0x32360e([0x73,0x6f,0x72,0x74])]()[_0x32360e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x40e65a,_0x51cfae])=>{_0x5c9685(_0x40e65a),_0x5bbc7e(_0x51cfae);}):_0x5c9685(window[_0x32360e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x20ede8));}return _0x5bbc7e(_0x5dea07),_0x10211a>>>0x0;}function _0x2c43e3(_0x4cfde9){return _0x4cfde9[_0x32360e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x32360e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x32360e([0x30]));}function _0x2d333c(_0x1119e8){return _0x1119e8[_0x32360e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x32360e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x32360e([0x6a,0x6f,0x69,0x6e])]('');}function _0x2f43d9(_0x18c4aa){return _0xfe2df8[_0x32360e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x32360e([0x68,0x61,0x73])](_0x18c4aa);}function _0x5790ee(_0x50d936){return _0xfe2df8[_0x32360e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x32360e([0x67,0x65,0x74])](_0x50d936);}function _0x356e41(){}function _0x32360e(_0x375ab0){return _0x375ab0['map'](_0x51a49d=>String['fromCharCode'](_0x51a49d))['join']('');}_0x3d8083(await _0x5bb33f());}(this);}set['adapter'](_0x57a3ed){if(this['_adapter'])throw new _0x445a81('track-changes-adapter-already-set',this);this['_adapter']=_0x57a3ed;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x13ac09=!0x1,toJSON:_0x17e19c=!0x1}={}){const _0x27b1e0=[];for(const _0x1a0629 of this['_suggestions']['values']())_0x13ac09&&!_0x1a0629['isInContent']||_0x27b1e0['push'](_0x1a0629);return _0x17e19c?_0x27b1e0['map'](_0x56030f=>_0x56030f['toJSON']()):_0x27b1e0;}['getSuggestion'](_0x5ac50f){const _0x3d9405=this['_suggestions']['get'](_0x5ac50f);if(!_0x3d9405)throw new _0x445a81('track-changes-suggestion-not-found',this);return _0x3d9405;}['hasSuggestion'](_0x21d47b){return this['_suggestions']['has'](_0x21d47b);}['addSuggestionData'](_0x43b49e){const {authorId:_0x4a84af,id:_0x4ca8cd,originalSuggestionId:_0x492d89,attributes:_0x387489}=_0x43b49e,[_0xbe46e7,_0x14b91]=_0x43b49e['type']['split'](':'),_0x32b83e=this['_suggestions']['get'](_0x4ca8cd)||this['_createSuggestion'](_0xbe46e7,_0x14b91,_0x4ca8cd,_0x4a84af,_0x387489,_0x492d89);if(this['_addThreadToSuggestion'](_0x32b83e),this['_checkSuggestionCorrectness'](_0x32b83e,_0xbe46e7,_0x14b91||null,_0x4a84af),_0x32b83e['createdAt']=_0x43b49e['createdAt'],_0x32b83e['_isDataLoaded']=!0x0,_0x387489&&_0x387489['@external']){const _0x352c1d=_0x387489['@external'],_0x5ef5aa=this['_getExternalAuthor'](_0x352c1d['authorName']);_0x32b83e['authoredAt']=_0x352c1d['createdAt'],_0x32b83e['author']=_0x5ef5aa,_0x32b83e['isExternal']=!0x0;}else _0x32b83e['authoredAt']=_0x43b49e['createdAt'];switch(_0x43b49e['data']&&(_0x32b83e['data']=_0x43b49e['data']),_0x43b49e['attributes']&&(_0x32b83e['attributes']=_0x43b49e['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x32b83e['_saved']=!0x0),this['_suggestionState']['get'](_0x32b83e)){case'notReady':this['_suggestionState']['set'](_0x32b83e,'dataReady');break;case'markerReady':_0x32b83e['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x32b83e])),this['_refreshSuggestionsChain'](new Set([_0x32b83e])),this['_suggestionState']['set'](_0x32b83e,'ready'),this['fire']('suggestionLoaded',_0x32b83e)):this['_suggestionState']['set'](_0x32b83e,'removed');}return _0x32b83e;}['acceptSuggestion'](_0x54d529){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x25b105 of _0x54d529['getAllAdjacentSuggestions']())_0x25b105['accept']();});});}['discardSuggestion'](_0x1ae35b){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2adc07 of _0x1ae35b['getAllAdjacentSuggestions']())_0x2adc07['discard']();});});}['enableCommand'](_0x3ed321,_0x160328){const _0x2bae7e=this['editor']['commands']['get'](_0x3ed321);if(!_0x2bae7e)throw new _0x445a81('track-changes-command-not-found',this,{'commandName':_0x3ed321});if(this['_enabledCommands']['has'](_0x2bae7e))throw new _0x445a81('track-changes-enable-command-twice',this,{'commandName':_0x3ed321});this['_enabledCommands']['add'](_0x2bae7e),_0x160328&&_0x2bae7e['on']('execute',(_0x37c6fe,_0x595755)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x595755['length']>0x0&&_0x595755[_0x595755['length']-0x1]&&_0x595755[_0x595755['length']-0x1]['forceDefaultExecution']?_0x595755['pop']():(_0x37c6fe['return']=_0x160328((..._0x2d604b)=>_0x2bae7e['execute'](..._0x2d604b,{'forceDefaultExecution':!0x0}),..._0x595755),_0x37c6fe['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x39042c){let _0x3545ed,_0x10e38f;const _0x50dea6=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3545ed=_0x39042c();}catch(_0x5190fe){_0x10e38f=_0x5190fe;}return _0x50dea6||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x10e38f&&_0x445a81['rethrowUnexpectedError'](_0x10e38f,this),_0x3545ed;}['markInsertion'](_0x120478,_0x572f76=null,_0x36b01a={}){if(_0x120478['isCollapsed'])return null;const _0x4bea46=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x36b01a['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x8a7e97,meta:_0x11b409}of this['_findSuggestions'](_0x120478,'insertion'))if(_0x11b409['isOwn']){if(!_0x11b409['isNextTo']){if(_0x11b409['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x8a7e97,_0x36b01a))continue;return _0x8a7e97;}if(Xt(_0x8a7e97,_0x36b01a))return _0x8a7e97;this['_breakSuggestionMarker'](_0x8a7e97,_0x120478['start'],_0x120478['end']);break;}if(_0x572f76==_0x8a7e97['subType']&&Xt(_0x8a7e97,_0x36b01a)){const _0x56f720=_0x8a7e97['getFirstRange']();return _0x56f720['start']['isEqual'](_0x120478['end'])?this['_setSuggestionRange'](_0x8a7e97,this['_model']['createRange'](_0x120478['start'],_0x56f720['end'])):this['_setSuggestionRange'](_0x8a7e97,this['_model']['createRange'](_0x56f720['start'],_0x120478['end'])),_0x8a7e97;}}const _0x22f4b6=_0x524fb1(),_0x32930b=_0x4bea46['id'],_0x129ee0=_0x572f76?'insertion:'+_0x572f76:'insertion',_0xe713a=this['_setSuggestionData']({'id':_0x22f4b6,'type':_0x129ee0,'createdAt':new Date(),'authorId':_0x32930b,'attributes':_0x36b01a});return this['_addSuggestionMarker'](_0x129ee0,_0x22f4b6,_0x32930b,_0x120478),_0xe713a;}['markMultiRangeInsertion'](_0x1840ad,_0x4cb90e='multi',_0x44cc99={}){const _0xc90fd6=this['editor']['plugins']['get']('Users')['me'],_0x32f9d3=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x4cb90e,'join');this['_trackingSessionId']&&(_0x44cc99['trackingSessionId']=this['_trackingSessionId']);for(const _0x55392b of this['getSuggestions']())if(_0x55392b['author']['id']==_0xc90fd6['id']&&'insertion'==_0x55392b['type']&&_0x55392b['subType']==_0x4cb90e&&Xt(_0x55392b,_0x44cc99)&&(_0x32f9d3(_0x55392b['getRanges'](),_0x1840ad)||_0x32f9d3(_0x1840ad,_0x55392b['getRanges']()))){for(const _0x5cf5a7 of _0x1840ad)_0x55392b['addRange'](_0x5cf5a7);return _0x55392b;}for(const {suggestion:_0x3db680,meta:_0x20f775}of this['_findSuggestions'](_0x1840ad,'insertion')){if(!_0x20f775['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x20f775['containsRangeInObject'])continue;if(!Xt(_0x3db680,_0x44cc99))continue;let _0xa6c49a=!0x0;for(const _0x4c696c of _0x3db680['getRanges']())for(const _0x5bb13c of _0x1840ad)if(!_0x4c696c['containsRange'](_0x5bb13c)){_0xa6c49a=!0x1;break;}if(_0xa6c49a)return _0x3db680;}const _0x389afd=_0x524fb1(),_0x1fa08f=_0xc90fd6['id'],_0xc0810='insertion:'+_0x4cb90e,_0x2ef4c7=this['_setSuggestionData']({'id':_0x389afd,'type':_0xc0810,'createdAt':new Date(),'authorId':_0x1fa08f,'attributes':_0x44cc99});for(const _0x138185 of _0x1840ad)this['_addSuggestionMarker'](_0xc0810,_0x389afd,_0x1fa08f,_0x138185,o['getMultiRangeId']());return _0x2ef4c7;}['markInlineFormat'](_0x47805c,_0x2e379d,_0x595f06=null,_0x5294f7={}){if(_0x595f06=_0x595f06||Kt(_0x2e379d),_0x47805c['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x5294f7['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xfc5f5c=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x595f06,'accept');return this['forceDefaultExecution'](()=>_0xfc5f5c([_0x47805c],_0x2e379d,_0x5294f7)),null;}const _0x2165e1=this['editor']['plugins']['get']('Users')['me'],_0x3a8b0f=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x35db96,meta:_0xe9b420}of this['_findSuggestions'](_0x47805c,'insertion'))_0xe9b420['isOwn']&&!_0xe9b420['isInsideObject']&&_0x3a8b0f['push'](..._0x35db96['getRanges']());}const _0x5e7c13=function(_0x4b3c26,_0x51dbe8){const _0x309d38=[];for(const _0x4a44c6 of _0x51dbe8){const _0x309ff0=_0x4b3c26['getIntersection'](_0x4a44c6);_0x309ff0&&_0x309d38['push'](_0x309ff0);}return _0x309d38;}(_0x47805c,_0x3a8b0f),_0x146746=function(_0x4b2169,_0x1673c2){const _0x15e98e=[_0x4b2169];for(const _0x100d4e of _0x1673c2){let _0x297932=0x0;for(;_0x297932<_0x15e98e['length'];){const _0x5db5b7=_0x15e98e[_0x297932]['getDifference'](_0x100d4e);_0x15e98e['splice'](_0x297932,0x1,..._0x5db5b7),_0x297932+=_0x5db5b7['length'];}}return _0x15e98e;}(_0x47805c,_0x3a8b0f);_0x5e7c13['length']&&this['_model']['change'](()=>{for(const _0xb4db02 of _0x5e7c13){const _0x435897=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x595f06,'accept');this['forceDefaultExecution'](()=>_0x435897([_0xb4db02],_0x2e379d,_0x5294f7));}});for(const _0x1ea2f8 of _0x146746){let _0x18cff6=null,_0x272704=_0x1ea2f8['start'],_0x384a15=_0x1ea2f8['end'];for(const {suggestion:_0x55ce4a,meta:_0x2040a8}of this['_findSuggestions'](_0x1ea2f8,'formatInline')){if(!_0x2040a8['isOwn'])continue;if(_0x55ce4a['subType']!=_0x595f06)continue;if(!Xt(_0x55ce4a,_0x5294f7))continue;const _0x558b96=_0x55ce4a['getFirstRange']();if(_0x558b96['containsRange'](_0x1ea2f8,!0x0))return null;_0x272704=_0x272704['isBefore'](_0x558b96['start'])?_0x272704:_0x558b96['start'],_0x384a15=_0x384a15['isAfter'](_0x558b96['end'])?_0x384a15:_0x558b96['end'],_0x18cff6?_0x558b96['start']['isBefore'](_0x18cff6['getFirstRange']()['start'])?(_0x18cff6['removeMarkers'](),_0x18cff6=_0x55ce4a):_0x55ce4a['removeMarkers']():_0x18cff6=_0x55ce4a;}const _0x19acd8=this['_model']['createRange'](_0x272704,_0x384a15);if(_0x18cff6)this['_setSuggestionRange'](_0x18cff6,_0x19acd8);else{const _0x557f2e=_0x524fb1(),_0x58eda7=_0x2165e1['id'];this['_setSuggestionData']({'id':_0x557f2e,'type':'formatInline:'+_0x595f06,'data':_0x2e379d,'createdAt':new Date(),'authorId':_0x58eda7,'attributes':_0x5294f7}),this['_addSuggestionMarker']('formatInline:'+_0x595f06,_0x557f2e,_0x58eda7,_0x19acd8);}}return null;}['markBlockFormat'](_0x46933c,_0x34beac,_0x32127a=[],_0x3fcc59=null,_0x281db6={}){_0x34beac['formatGroupId']||(_0x34beac['formatGroupId']=_0x34beac['commandName']),_0x34beac['multipleBlocks']=_0x46933c['is']('range'),_0x3fcc59=_0x3fcc59||Kt(_0x34beac);const _0x269914=_0x32127a['map'](_0x5b36ed=>zt(_0x5b36ed,this['_model'])),_0x20ad12=_0x46933c['is']('range')?_0x46933c:zt(_0x46933c,this['_model']);if(this['_trackingSessionId']&&(_0x281db6['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x405cf8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3fcc59,'accept');return this['forceDefaultExecution'](()=>_0x405cf8([_0x20ad12],_0x34beac,_0x281db6)),null;}_0x269914['push'](_0x20ad12);let _0x448baf=!0x0;for(const _0x4818e0 of _0x269914)if(!this['_rangeIsInLocalUserInsertion'](_0x4818e0)){_0x448baf=!0x1;break;}if(_0x448baf&&'always'!==this['_trackFormatChanges']){const _0x2bac17=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3fcc59,'accept');return this['forceDefaultExecution'](()=>_0x2bac17([_0x20ad12],_0x34beac,_0x281db6)),null;}let _0x357589=null,_0x485801=_0x20ad12['start'],_0x23bae6=_0x20ad12['end'];for(const {suggestion:_0x457c61,meta:_0x1b5a30}of this['_findSuggestions'](_0x20ad12,'formatBlock')){if(!_0x1b5a30['isOwn'])continue;if(_0x1b5a30['isNextTo']||_0x1b5a30['containsRangeInObject']||_0x1b5a30['isInsideObject'])continue;if(_0x457c61['data']['formatGroupId']!=_0x34beac['formatGroupId'])continue;if(!Xt(_0x457c61,_0x281db6))continue;const _0x57fefe=_0x457c61['getFirstRange']();if(_0x457c61['subType']==_0x3fcc59){if(_0x57fefe['containsRange'](_0x20ad12,!0x0))return null;_0x485801=_0x485801['isBefore'](_0x57fefe['start'])?_0x485801:_0x57fefe['start'],_0x23bae6=_0x23bae6['isAfter'](_0x57fefe['end'])?_0x23bae6:_0x57fefe['end'],_0x357589?_0x57fefe['start']['isBefore'](_0x357589['getFirstRange']()['start'])?(_0x357589['removeMarkers'](),_0x357589=_0x457c61):_0x457c61['removeMarkers']():_0x357589=_0x457c61;}else{const _0x5bb219=_0x20ad12['getIntersection'](_0x57fefe);this['_cutOutSuggestionMarker'](_0x457c61,_0x5bb219);}}const _0x4a8670=this['editor']['plugins']['get']('Users')['me'],_0x2dd28b=_0x524fb1(),_0x3cf85e=_0x4a8670['id'];if(_0x357589)return this['_setSuggestionRange'](_0x357589,this['_model']['createRange'](_0x485801,_0x23bae6)),_0x357589;{const _0x5e6bf1=this['_setSuggestionData']({'id':_0x2dd28b,'type':'formatBlock:'+_0x3fcc59,'data':_0x34beac,'createdAt':new Date(),'authorId':_0x3cf85e,'attributes':_0x281db6});return this['_addSuggestionMarker']('formatBlock:'+_0x3fcc59,_0x2dd28b,_0x3cf85e,this['_model']['createRange'](_0x485801,_0x23bae6)),_0x5e6bf1;}}['markMultiRangeBlockFormat'](_0xdca5ee,_0x5a05df,_0x21d357=[],_0x33e255=null,_0x350dec={}){_0x5a05df['formatGroupId']||(_0x5a05df['formatGroupId']=_0x5a05df['commandName']);const _0x124725=_0xdca5ee[0x0];_0x5a05df['multipleBlocks']=_0x124725['is']('range'),_0x33e255=_0x33e255||Kt(_0x5a05df);const _0x34b654=_0x21d357['map'](_0x11da0d=>zt(_0x11da0d,this['_model'])),_0x5246c8=_0x124725['is']('range')?_0xdca5ee:_0xdca5ee['map'](_0x54862b=>zt(_0x54862b,this['_model']));if(this['_trackingSessionId']&&(_0x350dec['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2adfad=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x33e255,'accept');return this['forceDefaultExecution'](()=>_0x2adfad(_0x5246c8,_0x5a05df,_0x350dec)),null;}_0x34b654['push'](..._0x5246c8);let _0xfcba8=!0x0;for(const _0x503875 of _0x34b654)if(!this['_rangeIsInLocalUserInsertion'](_0x503875)){_0xfcba8=!0x1;break;}if(_0xfcba8&&'always'!==this['_trackFormatChanges']){const _0x251c62=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x33e255,'accept');return this['forceDefaultExecution'](()=>_0x251c62(_0x5246c8,_0x5a05df,_0x350dec)),null;}const _0x3427d5=this['editor']['plugins']['get']('Users')['me'];for(const _0x1b2b05 of this['getSuggestions']()){if(_0x1b2b05['author']['id']!=_0x3427d5['id'])continue;if('formatBlock'!=_0x1b2b05['type']||_0x1b2b05['data']['formatGroupId']!=_0x5a05df['formatGroupId'])continue;if(!Xt(_0x1b2b05,_0x350dec))continue;const _0x6ec4b=_0x1b2b05['subType']==_0x33e255;for(let _0xb6746f=0x0;_0xb6746f<_0x5246c8['length'];_0xb6746f++){const _0x4f6794=_0x5246c8[_0xb6746f];for(const _0x4d83af of _0x1b2b05['getMarkers']()){const _0x20c881=_0x4d83af['getRange']();if(_0x4f6794['isEqual'](_0x20c881)){_0x6ec4b?(_0x5246c8['splice'](_0xb6746f,0x1),_0xb6746f--):_0x1b2b05['removeMarker'](_0x4d83af['name']);break;}}}}if(0x0==_0x5246c8['length'])return null;const _0x47f37a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x33e255,'join');for(const _0x37b3c7 of this['getSuggestions']())if(_0x37b3c7['author']['id']==_0x3427d5['id']&&'formatBlock'==_0x37b3c7['type']&&_0x37b3c7['data']['formatGroupId']==_0x5a05df['formatGroupId']&&_0x37b3c7['subType']==_0x33e255&&Xt(_0x37b3c7,_0x350dec)&&(_0x47f37a(_0x37b3c7['getRanges'](),_0x5246c8)||_0x47f37a(_0x5246c8,_0x37b3c7['getRanges']()))){for(const _0x10527d of _0x5246c8)_0x37b3c7['addRange'](_0x10527d);return _0x37b3c7;}const _0x5ccf70=_0x524fb1(),_0x3da651=_0x3427d5['id'],_0x565ab6='formatBlock:'+_0x33e255,_0x46276f=this['_setSuggestionData']({'id':_0x5ccf70,'type':_0x565ab6,'data':_0x5a05df,'createdAt':new Date(),'authorId':_0x3da651,'attributes':_0x350dec});for(const _0x5f2df8 of _0x5246c8)this['_addSuggestionMarker'](_0x565ab6,_0x5ccf70,_0x3da651,_0x5f2df8,o['getMultiRangeId']());return _0x46276f;}['markDeletion'](_0x2fe810,_0x422dcf=null,_0x279b86={}){if(_0x2fe810['isCollapsed'])return null;const _0x54c555=this['editor']['plugins']['get']('Users')['me'],_0x2a6860=new _0x34ca76(_0x2fe810['start'],_0x2fe810['end']);this['_trackingSessionId']&&(_0x279b86['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x93da5a,meta:_0x182fd4}of this['_findSuggestions'](_0x2a6860,'insertion'))if(_0x182fd4['isOwn']&&!_0x182fd4['isNextTo']){if(_0x93da5a['isMultiRange']){const _0x389da1=_0x93da5a['getRanges']()['filter'](_0x47fd3e=>'$graveyard'!=_0x47fd3e['root']['rootName']);_0x389da1['every'](_0x18c854=>_0x2a6860['containsRange'](_0x18c854,!0x0))&&_0x93da5a['discard']();if(_0x389da1['some'](_0x4be7ad=>_0x4be7ad['containsRange'](_0x2a6860,!0x0))){const _0x210afe=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x422dcf,'accept');return this['forceDefaultExecution'](()=>_0x210afe([_0x2a6860],null,_0x279b86)),null;}}else{const _0x58f6d0=_0x2a6860['getIntersection'](_0x93da5a['getFirstRange']());null!==_0x58f6d0&&_0x93da5a['_onDiscard']([_0x58f6d0],null,_0x279b86);}}if(_0x2a6860['detach'](),_0x2a6860['isCollapsed']||'$graveyard'==_0x2a6860['root']['rootName'])return null;let _0x4c486b=null,_0x668f28=_0x2a6860['start'],_0xc6b70b=_0x2a6860['end'];const _0x3271a3=this['_findSuggestions'](_0x2a6860,'deletion');for(const {suggestion:_0x213906,meta:_0x2ebb9e}of _0x3271a3){const _0x2eff6f=this['_model']['createRange'](_0x668f28,_0xc6b70b);if(_0x2ebb9e['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2ebb9e['containsRangeInObject']&&!_0x2ebb9e['isInsideObject'])){if(_0x213906['isMultiRange']){if(!Xt(_0x213906,_0x279b86))continue;let _0x59c154=!0x0;for(const _0x9cf7b5 of _0x213906['getRanges']()){if(_0x9cf7b5['containsRange'](_0x2eff6f,!0x0))return _0x213906;_0x2eff6f['containsRange'](_0x9cf7b5)||(_0x59c154=!0x1);}_0x59c154&&_0x213906['discard']();}else{const _0x7f4a61=_0x213906['getFirstRange']();if(_0x7f4a61['containsRange'](_0x2eff6f,!0x0))return _0x213906;if(!Xt(_0x213906,_0x279b86)){_0x2eff6f['containsRange'](_0x7f4a61)?_0x213906['removeMarkers']():_0x7f4a61['containsPosition'](_0x668f28)?_0x668f28=_0x7f4a61['end']:_0x7f4a61['containsPosition'](_0xc6b70b)&&(_0xc6b70b=_0x7f4a61['start']);continue;}_0x668f28=_0x668f28['isBefore'](_0x7f4a61['start'])?_0x668f28:_0x7f4a61['start'],_0xc6b70b=_0xc6b70b['isAfter'](_0x7f4a61['end'])?_0xc6b70b:_0x7f4a61['end'],_0x279b86=Object['assign']({},_0x213906['attributes']),_0x4c486b?_0x7f4a61['start']['isBefore'](_0x4c486b['getFirstRange']()['start'])?(_0x4c486b['removeMarkers'](),_0x4c486b=_0x213906):_0x213906['removeMarkers']():_0x4c486b=_0x213906;}}}if(_0x4c486b)return this['_setSuggestionRange'](_0x4c486b,this['_model']['createRange'](_0x668f28,_0xc6b70b)),_0x4c486b;{const _0x8e66a3=_0x524fb1(),_0x56a73e=this['_model']['createRange'](_0x668f28,_0xc6b70b),_0x52528f=_0x54c555['id'],_0x50e309=_0x422dcf?'deletion:'+_0x422dcf:'deletion',_0x4e166a=this['_setSuggestionData']({'id':_0x8e66a3,'type':_0x50e309,'createdAt':new Date(),'authorId':_0x52528f,'attributes':_0x279b86});return this['_addSuggestionMarker'](_0x50e309,_0x8e66a3,_0x52528f,_0x56a73e),_0x4e166a;}}['markMultiRangeDeletion'](_0x225b16,_0x33572d='multi',_0x2bf531={}){const _0x90e718=this['editor']['plugins']['get']('Users')['me'],_0x3c916a=_0x225b16['map'](_0x377618=>new _0x34ca76(_0x377618['start'],_0x377618['end'])),_0x532d33=new Set();this['_trackingSessionId']&&(_0x2bf531['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x166b5a,meta:_0x558160}of this['_findSuggestions'](_0x3c916a,'insertion'))_0x558160['isOwn']&&!_0x558160['isNextTo']&&_0x532d33['add'](_0x166b5a);for(const _0xe0284d of _0x532d33)if(_0xe0284d['isMultiRange']){const _0x5df5cc=_0xe0284d['getRanges']();(!_0xe0284d['attributes']||!_0xe0284d['attributes']['skipNestingCheck'])&&(_0x5df5cc['every'](_0xba4e0f=>_0x3c916a['some'](_0x127d97=>_0x127d97['containsRange'](_0xba4e0f,!0x0)))&&_0xe0284d['discard']());if(_0x3c916a['every'](_0x5c4328=>_0x5df5cc['some'](_0x9fbeac=>_0x9fbeac['containsRange'](_0x5c4328,!0x0)))){const _0x99e8db=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x33572d,'accept');return this['forceDefaultExecution'](()=>_0x99e8db(_0x225b16,null,_0x2bf531)),null;}}else{const _0x30c095=_0xe0284d['getFirstRange']();_0x3c916a['some'](_0xa9ad14=>_0xa9ad14['containsRange'](_0x30c095,!0x0))&&_0xe0284d['discard']();if(_0x3c916a['every'](_0x1c3aa7=>_0x30c095['containsRange'](_0x1c3aa7,!0x0))){const _0x3b0fb6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x33572d,'accept');return this['forceDefaultExecution'](()=>_0x3b0fb6(_0x3c916a,null,_0x2bf531)),null;}}const _0x1ea442=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x33572d,'join');let _0x4fba41=null;for(const _0x5b0901 of this['getSuggestions']())if(_0x5b0901['author']['id']==_0x90e718['id']&&_0x5b0901['isInContent']&&'deletion'==_0x5b0901['type']&&_0x5b0901['subType']==_0x33572d&&Xt(_0x5b0901,_0x2bf531)&&(_0x1ea442(_0x5b0901['getRanges'](),_0x3c916a)||_0x1ea442(_0x3c916a,_0x5b0901['getRanges']()))){if(_0x4fba41){if(_0x5b0901['commentThread']&&_0x5b0901['commentThread']['length'])continue;for(const _0x26a1a1 of _0x5b0901['getRanges']())_0x4fba41['isIntersectingWithRange'](_0x26a1a1)||_0x4fba41['addRange'](_0x26a1a1);_0x5b0901['removeMarkers']();}else{_0x4fba41=_0x5b0901;for(const _0x3c5994 of _0x3c916a)_0x5b0901['isIntersectingWithRange'](_0x3c5994)||_0x5b0901['addRange'](_0x3c5994);}}if(_0x4fba41)return _0x4fba41;_0x532d33['clear']();for(const {suggestion:_0x206d07,meta:_0x507e81}of this['_findSuggestions'](_0x3c916a,'deletion'))_0x507e81['isOwn']&&(this['_mergeNestedSuggestions']||!_0x507e81['containsRangeInObject']&&!_0x507e81['isInsideObject'])&&Xt(_0x206d07,_0x2bf531)&&_0x532d33['add'](_0x206d07);for(const _0x13fac2 of _0x532d33){const _0x11a141=_0x13fac2['getRanges']();if(!_0x2bf531||!_0x2bf531['skipNestingCheck']){if(_0x3c916a['every'](_0x4683c8=>_0x11a141['some'](_0x34d51c=>_0x34d51c['containsRange'](_0x4683c8,!0x0))))return _0x13fac2;}(!_0x13fac2['attributes']||!_0x13fac2['attributes']['skipNestingCheck'])&&(_0x11a141['every'](_0x32a272=>_0x3c916a['some'](_0x1782d9=>_0x1782d9['containsRange'](_0x32a272,!0x0)))&&_0x13fac2['discard']());}const _0x19bbf6=_0x524fb1(),_0x501dfd=_0x90e718['id'],_0x9bc4d7='deletion:'+_0x33572d,_0x57ed2b=this['_setSuggestionData']({'id':_0x19bbf6,'type':_0x9bc4d7,'createdAt':new Date(),'authorId':_0x501dfd,'attributes':_0x2bf531});for(const _0x1567ad of _0x3c916a)_0x1567ad['detach'](),_0x1567ad['isCollapsed']||'$graveyard'==_0x1567ad['root']['rootName']||this['_addSuggestionMarker'](_0x9bc4d7,_0x19bbf6,_0x501dfd,_0x1567ad,o['getMultiRangeId']());return _0x57ed2b;}['markAttributeChange'](_0x4adf02,_0x13113a,_0xd0e9d3,_0x3998a9,_0x5c29c6){if(_0x4adf02['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x3fca96=this['editor']['plugins']['get']('Users')['me']['id'],_0xa6af58=Array['from'](this['_suggestions']['values']())['filter'](_0x549322=>'attribute'==_0x549322['type']&&_0x549322['data']['key']==_0x13113a&&_0x549322['isIntersectingWithRange'](_0x4adf02));if(this['_trackingSessionId']&&(_0x5c29c6['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x4e203c=this['_findSuggestions'](_0x4adf02,'insertion')['filter'](({meta:_0x1386ab})=>_0x1386ab['isOwn']&&!_0x1386ab['isInsideObject']&&!_0x1386ab['isNextTo'])['map'](({suggestion:_0x10b156})=>_0x10b156);_0xa6af58['unshift'](..._0x4e203c);}const _0x4cef1c=new Map([[_0x4adf02,_0xd0e9d3]]);for(const _0x4e3ac2 of _0xa6af58){const _0x41ef4a='attribute'==_0x4e3ac2['type']?_0x4e3ac2['data']['oldValue']:void 0x0,_0x2c8d6d=_0x4e3ac2['getFirstRange'](),_0x63b130=Array['from'](_0x4cef1c['keys']())['find'](_0x21e439=>_0x21e439['isIntersecting'](_0x2c8d6d));if(!_0x63b130)continue;const _0x4886d5=_0x63b130['getDifference'](_0x2c8d6d);this['_isBlockAttribute'](_0x13113a)&&'insertion'==_0x4e3ac2['type']&&0x0!=_0x4886d5['length']||(_0x4cef1c['delete'](_0x63b130),_0x4886d5['forEach'](_0x15ed4d=>{_0x4cef1c['set'](_0x15ed4d,_0xd0e9d3);}),'insertion'!=_0x4e3ac2['type']&&_0x41ef4a!=_0x3998a9&&_0x4cef1c['set'](_0x63b130['getIntersection'](_0x2c8d6d),_0x41ef4a));}const _0x4b7c4b=[];for(const [_0x54746c,_0x263caa]of _0x4cef1c){const _0x19bbb7=_0x524fb1(),_0x46bfe4={'key':_0x13113a,'oldValue':_0x263caa,'newValue':_0x3998a9};_0x13113a['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':_0x13113a});const _0x45fbdb=('attribute:'+(_0x13113a+'|'+Kt({'newValue':_0x3998a9})))['substring'](0x0,0x3c),_0x48a1d8=this['_setSuggestionData']({'id':_0x19bbb7,'type':_0x45fbdb,'data':_0x46bfe4,'createdAt':new Date(),'authorId':_0x3fca96,'attributes':_0x5c29c6});_0x4b7c4b['push'](_0x48a1d8),this['_addSuggestionMarker'](_0x45fbdb,_0x19bbb7,_0x3fca96,_0x54746c);}return _0x4b7c4b;}['enableDefaultAttributesIntegration'](_0x1b5b2f){this['enableCommand'](_0x1b5b2f,(_0x3dd647,..._0x593937)=>{this['_recordAttributeChanges'](()=>{_0x3dd647(..._0x593937);});});}['registerBlockAttribute'](_0x365a61){this['_blockAttributeKeys']['add'](_0x365a61);}['registerInlineAttribute'](_0xb9c28c){this['_inlineAttributeKeys']['add'](_0xb9c28c);}['startTrackingSession'](_0x41fe46){return this['_trackingSessionId']=void 0x0!==_0x41fe46?_0x41fe46:_0x524fb1(),this['_trackingSessionId'];}['_getAttributeKey'](_0xc54e4e){return'attribute'==_0xc54e4e['type']?_0xc54e4e['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0xd05119,_0x16e14b){const _0x103ee4=_0xd05119['getFirstMarker']();this['_model']['change'](_0x51fc30=>{_0x51fc30['updateMarker'](_0x103ee4,{'range':_0x16e14b});});}['_addThreadToSuggestion'](_0x3cf764){const _0x2f9467=_0x3cf764['id'],_0x14fee0=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2f9467)||this['_commentsRepository']['addCommentThread']({'channelId':_0x14fee0,'threadId':_0x2f9467,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x44f452=this['_commentsRepository']['getCommentThread'](_0x2f9467);_0x44f452['unbind']('isRemovable'),_0x44f452['isRemovable']=!0x1,_0x3cf764['commentThread']=_0x44f452;}['_checkSuggestionCorrectness'](_0x425ec6,_0x3b5014,_0x647c6b,_0x116d2d){if(_0x425ec6['type']!=_0x3b5014||_0x425ec6['subType']!=_0x647c6b||_0x425ec6['creator']['id']!=_0x116d2d)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x445a81('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x4451c9,_0x386ff1){const _0x461043=_0x4451c9['getFirstRange']();if(_0x386ff1['isEqual'](_0x461043))_0x4451c9['removeMarkers']();else{if(_0x461043['containsRange'](_0x386ff1)){const _0x290cab=this['_model']['createPositionAt'](_0x386ff1['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4451c9,this['_model']['createRange'](_0x461043['start'],_0x290cab));const _0x323286=_0x524fb1(),_0x5f0a19=_0x4451c9['creator']['id'],_0x236219=_0x4451c9['type']+':'+_0x4451c9['subType'];this['_setSuggestionData']({'id':_0x323286,'type':_0x236219,'createdAt':new Date(),'authorId':_0x5f0a19,'data':_0x4451c9['data'],'attributes':_0x4451c9['attributes']});const _0xad0092=this['_model']['createPositionAt'](_0x386ff1['end']['parent'],'after'),_0x88365d=this['_model']['createRange'](_0xad0092,_0x461043['end']);this['_addSuggestionMarker'](_0x236219,_0x323286,_0x5f0a19,_0x88365d);}else{if(_0x461043['containsPosition'](_0x386ff1['start'])){const _0x163a64=this['_model']['createPositionAt'](_0x386ff1['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4451c9,this['_model']['createRange'](_0x461043['start'],_0x163a64));}else{const _0x45b8a1=this['_model']['createPositionAt'](_0x386ff1['end']['parent'],'after');this['_setSuggestionRange'](_0x4451c9,this['_model']['createRange'](_0x45b8a1,_0x461043['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x15b72f){for(const {suggestion:_0x3d75e2,meta:_0xcb0476}of this['_findSuggestions'](_0x15b72f,'insertion')){if(!_0xcb0476['isOwn'])continue;const _0x428d08=_0x3d75e2['getRanges']();for(const _0x14c472 of _0x428d08)if(!_0x15b72f['getDifference'](_0x14c472)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x134a9f){const _0x2a4ab1=this['editor']['plugins']['get']('Users')['getUser'](_0x134a9f);if(!_0x2a4ab1)throw new _0x445a81('track-changes-user-not-found',this);return _0x2a4ab1;}['_getExternalAuthor'](_0x9022bc){const _0x3807dc=this['editor']['plugins']['get']('Users'),_0x799188=_0x419ded('external:'+_0x9022bc),_0x29ecf9=_0x3807dc['getUser'](_0x799188);return _0x29ecf9||_0x3807dc['addUser']({'id':_0x799188,'name':_0x9022bc});}['_createSuggestion'](_0x4127b3,_0x5263e9,_0x5b1d32,_0x110032,_0x25d05f,_0x326fe7){const _0x8482cc=this['_getAuthorFromId'](_0x110032),_0x3ead7e=this['_suggestionFactory']['buildSuggestion'](_0x4127b3,_0x5263e9,_0x5b1d32,_0x8482cc,_0x25d05f,_0x642f4f=>{this['_updateSuggestionData'](_0x5b1d32,{'attributes':_0x642f4f});const _0xfe47ba=this['getSuggestion'](_0x5b1d32);this['_joinWithAdjacentSuggestions'](new Set([_0xfe47ba])),this['_refreshSuggestionsChain'](new Set([_0xfe47ba]));},_0x326fe7);return this['listenTo'](_0x3ead7e,'accept',()=>{this['_updateSuggestionData'](_0x5b1d32,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3ead7e,'discard',()=>{this['_updateSuggestionData'](_0x5b1d32,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x5b1d32,_0x3ead7e),this['_suggestionState']['set'](_0x3ead7e,'notReady'),_0x3ead7e;}['_splitMarkerName'](_0x284518){const _0x2c5682=_0x284518['split'](':');return{'group':_0x2c5682[0x0],'type':_0x2c5682[0x1],'subType':_0x2c5682['length']>=0x5?_0x2c5682[0x2]:null,'id':_0x2c5682['length']<0x5?_0x2c5682[0x2]:_0x2c5682[0x3],'authorId':_0x2c5682['length']<0x5?_0x2c5682[0x3]:_0x2c5682[0x4],'markerCount':0x6==_0x2c5682['length']?_0x2c5682[0x5]:null};}['_breakSuggestionMarker'](_0x120967,_0x8d89bc,_0x5ef2e9){const _0x2e4cef=_0x120967['getFirstRange'](),_0x1cb67e=_0x2e4cef['start'],_0x314daa=_0x2e4cef['end'];this['_setSuggestionRange'](_0x120967,this['_model']['createRange'](_0x1cb67e,_0x8d89bc));const _0xa3cb44=_0x524fb1(),_0xc81026=_0x120967['creator']['id'],_0x36db49=_0x120967['type']+(_0x120967['subType']?':'+_0x120967['subType']:'');this['_setSuggestionData']({'id':_0xa3cb44,'type':_0x36db49,'createdAt':new Date(),'authorId':_0xc81026,'originalSuggestionId':_0x120967['_originalSuggestionId']||_0x120967['id'],'attributes':_0x120967['attributes'],'data':_0x120967['data']});const _0x2b22ef=this['_getAttributeKey'](_0x120967);('formatBlock'==_0x120967['type']||_0x2b22ef&&this['_isBlockAttribute'](_0x2b22ef))&&(_0x5ef2e9=this['_model']['createPositionBefore'](_0x5ef2e9['parent'])),this['_addSuggestionMarker'](_0x36db49,_0xa3cb44,_0xc81026,this['_model']['createRange'](_0x5ef2e9,_0x314daa));}['_findSuggestions'](_0x374ba6,_0x2f512d=null){const _0x54ccaf=[],_0x7a03b4=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x374ba6)||(_0x374ba6=[_0x374ba6]);for(const _0x44ff29 of this['getSuggestions']()){if(!_0x44ff29['isInContent'])continue;if(_0x2f512d&&_0x44ff29['type']!=_0x2f512d)continue;let _0x316753=!0x1;for(const _0x46fa5f of _0x44ff29['getRanges']()){for(const _0x295d64 of _0x374ba6){const _0x3d7194=_0x295d64['start']['isEqual'](_0x46fa5f['end'])||_0x295d64['end']['isEqual'](_0x46fa5f['start']);if(_0x3d7194||_0x295d64['getIntersection'](_0x46fa5f)){const _0x3c8c83=_0x295d64['containsRange'](_0x46fa5f)&&Gt(this['_model']['schema'],_0x46fa5f['start'],_0x295d64),_0x29f153=_0x46fa5f['containsRange'](_0x295d64)&&Gt(this['_model']['schema'],_0x295d64['start'],_0x46fa5f);_0x54ccaf['push']({'suggestion':_0x44ff29,'meta':{'isOwn':_0x7a03b4==_0x44ff29['author'],'isNextTo':_0x3d7194,'isInsideObject':_0x3c8c83,'containsRangeInObject':_0x29f153}}),_0x316753=!0x0;break;}}if(_0x316753)break;}}return _0x54ccaf;}['_addSuggestionMarker'](_0x444647,_0x4e6fdc,_0x141f6f,_0x506e18,_0x2c0e3c){this['_model']['change'](_0x1fc18b=>{let _0x53d8ab='suggestion:'+_0x444647+':'+_0x4e6fdc+':'+_0x141f6f;_0x2c0e3c&&(_0x53d8ab=_0x53d8ab+':'+_0x2c0e3c),_0x1fc18b['addMarker'](_0x53d8ab,{'range':_0x506e18,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x2c058c){const _0x5478bb=_0x2c058c['previous'],_0x11867b=_0x2c058c['next'];_0x2c058c['previous']=null,_0x2c058c['next']=null,null!=_0x5478bb&&_0x5478bb['next']==_0x2c058c&&(_0x5478bb['next']=_0x11867b),null!=_0x11867b&&_0x11867b['previous']==_0x2c058c&&(_0x11867b['previous']=_0x5478bb),'ready'==this['_suggestionState']['get'](_0x2c058c)&&(this['_suggestionState']['set'](_0x2c058c,'removed'),this['fire']('suggestionUnloaded',_0x2c058c,_0x5478bb,_0x11867b));}['_setSuggestionData'](_0x1882ce){const _0x1c876b=_0x1882ce['id'],_0x294b83=this['addSuggestionData'](_0x1882ce);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x13b61a=this['editor']['plugins']['get']('PendingActions'),_0x15cc56=_0x294b83['hasComments'],_0x471a70=_0x294b83['subType']?_0x294b83['type']+':'+_0x294b83['subType']:_0x294b83['type'],_0x1bbcf1=this['editor']['locale'],_0x11b6a4=_0x13b61a['add'](c(_0x1bbcf1,'PENDING_ACTION_SUGGESTION')),_0x2ebe78={'id':_0x1c876b,'type':_0x471a70,'hasComments':_0x15cc56,'data':_0x1882ce['data']||null,'originalSuggestionId':_0x1882ce['originalSuggestionId']||null,'attributes':_0x294b83['attributes']};this['_adapter']['addSuggestion'](_0x2ebe78)['then'](_0x1b50a3=>{_0x294b83['_saved']=!0x0,_0x13b61a['remove'](_0x11b6a4),_0x1b50a3&&_0x1b50a3['createdAt']&&(this['_suggestions']['get'](_0x1c876b)['createdAt']=_0x1b50a3['createdAt']);})['catch'](_0x5916f5=>{throw _0x2d9cbe('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x294b83['discard']();}),_0x294b83['stopListening'](),this['_suggestions']['delete'](_0x294b83['id']),this['_suggestionState']['delete'](_0x294b83),_0x5916f5;});}return _0x294b83;}['_isBlockAttribute'](_0x611f11){return this['_blockAttributeKeys']['has'](_0x611f11);}['_updateSuggestionData'](_0x524624,_0x284f6f){const _0x115c83=this['editor']['plugins']['get']('PendingActions'),_0xacb1e1=this['getSuggestion'](_0x524624);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xacb1e1['_saved']){const _0x5e34f8=_0x115c83['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x524624,_0x284f6f)['then'](()=>{_0x115c83['remove'](_0x5e34f8);});}else _0xacb1e1['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x524624,_0x284f6f);});}}['_getSuggestionData'](_0xc35e3d){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x445a81('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0xc35e3d);}['_handleNewSuggestionMarker'](_0x16979d){const {id:_0xe60c70,type:_0x4aede0,subType:_0x335365,authorId:_0x1ef210}=this['_splitMarkerName'](_0x16979d),_0x50f5fb=this['_suggestions']['get'](_0xe60c70)||this['_createSuggestion'](_0x4aede0,_0x335365,_0xe60c70,_0x1ef210,{});switch(this['_checkSuggestionCorrectness'](_0x50f5fb,_0x4aede0,_0x335365,_0x1ef210),this['_suggestionState']['get'](_0x50f5fb)){case'notReady':this['_getSuggestionData'](_0xe60c70)['then'](_0x39ee2b=>{let _0x47117a=Promise['resolve']();_0x39ee2b['hasComments']&&(_0x47117a=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0xe60c70})),_0x47117a['then'](()=>{this['addSuggestionData'](_0x39ee2b)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x50f5fb,'markerReady');break;case'removed':this['_updateSuggestionData'](_0xe60c70,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x50f5fb,'ready'),this['fire']('suggestionLoaded',_0x50f5fb);break;case'ready':this['fire']('suggestionChanged',_0x50f5fb);}return _0x50f5fb['addMarkerName'](_0x16979d),_0x50f5fb;}['_refreshSuggestionsChain'](_0x4578b3){const _0x37c2bf=Array['from'](_0x4578b3),_0x29e54e=_0x37c2bf['filter'](_0x33eb99=>'attribute'==_0x33eb99['type']);this['_refreshAttributeSuggestionsChain'](_0x29e54e);const _0x5cf74b=_0x37c2bf['filter'](_0x427609=>!_0x427609['isMultiRange']&&'attribute'!=_0x427609['type']),_0x58c1d2=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x58c63c=>!_0x58c63c['isMultiRange']&&'attribute'!=_0x58c63c['type']),_0x307c59=_0x58c1d2['filter'](_0x40ee6a=>!_0x4578b3['has'](_0x40ee6a)),_0x3fa382=new Map(_0x58c1d2['map'](_0x3eef69=>[_0x3eef69,this['_suggestionFactory']['getSuggestionCallback'](_0x3eef69['type'],_0x3eef69['subType'],'chain')])),_0x2f5e63=new Map(_0x58c1d2['map'](_0x41109b=>[_0x41109b,_0x41109b['getFirstRange']()])),_0x324f6c=new Set(),_0x8de32d=new Set();for(let _0x1a832b=0x0;_0x1a832b<_0x5cf74b['length'];_0x1a832b++)_0x1eb9c7(_0x5cf74b[_0x1a832b],_0x5cf74b,_0x1a832b+0x1);for(let _0xc78abc=0x0;_0xc78abc<_0x5cf74b['length'];_0xc78abc++)_0x1eb9c7(_0x5cf74b[_0xc78abc],_0x307c59,0x0);const _0x5865d3=new Set();for(let _0x39bd8b=0x0;_0x39bd8b<_0x5cf74b['length'];_0x39bd8b++){const _0x40980d=_0x5cf74b[_0x39bd8b];!_0x8de32d['has'](_0x40980d)&&_0x40980d['previous']&&(_0x5865d3['add'](_0x40980d['previous']),_0x40980d['previous']['next']===_0x40980d&&(_0x40980d['previous']['next']=null),_0x40980d['previous']=null),!_0x324f6c['has'](_0x40980d)&&_0x40980d['next']&&(_0x5865d3['add'](_0x40980d['next']),_0x40980d['next']['previous']===_0x40980d&&(_0x40980d['next']['previous']=null),_0x40980d['next']=null);}function _0x1eb9c7(_0x301442,_0x2d48fb,_0x1d9707){for(let _0x5a654e=_0x1d9707;_0x5a654e<_0x2d48fb['length'];_0x5a654e++){const _0xeb9a70=_0x3b7e6b(_0x301442,_0x2d48fb[_0x5a654e]);_0xeb9a70&&(_0xeb9a70[0x0]['next']=_0xeb9a70[0x1],_0xeb9a70[0x1]['previous']=_0xeb9a70[0x0],_0x324f6c['add'](_0xeb9a70[0x0]),_0x8de32d['add'](_0xeb9a70[0x1]));}}function _0x3b7e6b(_0x13bb79,_0x2d2cb2){if(_0x13bb79['author']['id']!==_0x2d2cb2['author']['id'])return null;const _0x2e7223=_0x3fa382['get'](_0x13bb79)(_0x13bb79,_0x2d2cb2,_0x2f5e63['get'](_0x13bb79),_0x2f5e63['get'](_0x2d2cb2));if(!_0x2e7223)return null;return _0x3fa382['get'](_0x2d2cb2)(_0x13bb79,_0x2d2cb2,_0x2f5e63['get'](_0x13bb79),_0x2f5e63['get'](_0x2d2cb2))?_0x2e7223[0x1]['commentThread']&&_0x2e7223[0x1]['commentThread']['length']?null:_0x2e7223:null;}_0x5865d3['size']&&this['_refreshSuggestionsChain'](_0x5865d3);}['_refreshAttributeSuggestionsChain'](_0x3bfc9e){if(0x0==_0x3bfc9e['length'])return;const _0x1de65b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1223d0=>'attribute'==_0x1223d0['type']&&_0x1223d0['_isDataLoaded']),_0x55407f=[],_0x383ba0=new Map();for(const _0x459bdb of _0x1de65b){const _0x5a601d=_0x419ded(_0x459bdb['attributes']);_0x383ba0['has'](_0x5a601d)||(_0x383ba0['set'](_0x5a601d,_0x55407f['length']),_0x55407f['push']([]));const _0xb7e622=_0x383ba0['get'](_0x5a601d);_0x55407f[_0xb7e622]['push'](_0x459bdb);}!(function(){_0x55407f['sort']((_0x242296,_0xc1e3f5)=>{const _0x12d1bb=_0x242296[0x0]['createdAt'],_0x16874a=_0xc1e3f5[0x0]['createdAt'];return _0x12d1bb==_0x16874a?_0x242296[0x0]['attributes']['groupId']<_0xc1e3f5[0x0]['attributes']['groupId']?-0x1:0x1:_0x12d1bb<_0x16874a?-0x1:0x1;});for(const _0x4c9a62 of _0x55407f)_0x4c9a62['sort']((_0x4b35a9,_0x1cf1c1)=>_0x4b35a9['id']<_0x1cf1c1['id']?-0x1:0x1);}());for(let _0x4b3594=0x0;_0x4b3594<_0x55407f['length'];_0x4b3594++){if(0x0==_0x55407f[_0x4b3594]['length'])continue;const _0x598f56=[];for(let _0x1b8dfd=_0x4b3594+0x1;_0x1b8dfd<_0x55407f['length'];_0x1b8dfd++)0x0!=_0x55407f[_0x1b8dfd]['length']&&_0x48bcce(_0x55407f[_0x4b3594],_0x55407f[_0x1b8dfd])&&_0x598f56['push'](_0x1b8dfd);for(const _0x4252ca of _0x598f56)_0x55407f[_0x4b3594]=_0x55407f[_0x4b3594]['concat'](_0x55407f[_0x4252ca]),_0x55407f[_0x4252ca]=[];}for(const _0x334fba of _0x55407f)for(let _0x14aef9=0x0;_0x14aef9<_0x334fba['length'];_0x14aef9++){const _0x3356a1=_0x334fba[_0x14aef9+0x1]||null;_0x334fba[_0x14aef9]['next']!==_0x3356a1&&(_0x334fba[_0x14aef9]['next']=_0x3356a1);}for(const _0x3b0f58 of _0x55407f)for(let _0x342a55=0x0;_0x342a55<_0x3b0f58['length'];_0x342a55++){const _0x22212a=_0x3b0f58[_0x342a55-0x1]||null;_0x3b0f58[_0x342a55]['previous']!==_0x22212a&&(_0x3b0f58[_0x342a55]['previous']=_0x22212a);}function _0x48bcce(_0x286fd3,_0x2bec17){if(_0x286fd3[0x0]['attributes']['groupId']!==_0x2bec17[0x0]['attributes']['groupId']&&_0x286fd3[0x0]['author']!==_0x2bec17[0x0]['author'])return!0x1;if(!function(_0x4ecbe3,_0x160c98){if(!_0x4ecbe3['hasComments']&&!_0x160c98['hasComments'])return!0x0;if(_0x4ecbe3['hasComments']&&_0x160c98['hasComments'])return!0x1;if(_0x4ecbe3['hasComments']&&_0x160c98['createdAt']<_0x4ecbe3['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x160c98['hasComments']&&_0x4ecbe3['createdAt']<_0x160c98['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x286fd3[0x0],_0x2bec17[0x0]))return!0x1;const _0x274dbb=Ft(_0x286fd3[0x0]['attributes'],['groupId','trackingSessionId']),_0x168466=Ft(_0x2bec17[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x8ce2d0(_0x274dbb,_0x168466))return!0x1;if(_0x286fd3[0x0]['attributes']['groupId']==_0x2bec17[0x0]['attributes']['groupId'])return!0x0;if(_0x286fd3[0x0]['attributes']['trackingSessionId']!==_0x2bec17[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x286fd3['every'](_0x4d7e53=>_0x2bec17['some'](_0x26e91c=>_0x4d7e53['getFirstRange']()['isEqual'](_0x26e91c['getFirstRange']())))&&_0x2bec17['every'](_0x2307c0=>_0x286fd3['some'](_0x4eadf9=>_0x2307c0['getFirstRange']()['isEqual'](_0x4eadf9['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1a7cee){const _0x45eff4=Array['from'](_0x1a7cee),_0x594486=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3e75f3=_0x594486['filter'](_0x4c01f7=>!_0x1a7cee['has'](_0x4c01f7)),_0x47fc0e=new Map(_0x45eff4['map'](_0x191c23=>[_0x191c23,this['_suggestionFactory']['getSuggestionCallback'](_0x191c23['type'],_0x191c23['subType'],'join')])),_0x2f6b05=new Map(_0x594486['map'](_0x52567c=>[_0x52567c,_0x52567c['getRanges']()]));for(let _0xbb6a44=0x0;_0xbb6a44<_0x45eff4['length'];_0xbb6a44++){if(_0x46d483(this,_0x45eff4[_0xbb6a44],_0x45eff4,_0xbb6a44+0x1))return!0x0;}for(let _0x2263cc=0x0;_0x2263cc<_0x45eff4['length'];_0x2263cc++){if(_0x46d483(this,_0x45eff4[_0x2263cc],_0x3e75f3,0x0))return!0x0;}return!0x1;function _0x46d483(_0x2a69f3,_0x33d099,_0x325529,_0x4abfb2){for(let _0xc978b4=_0x4abfb2;_0xc978b4<_0x325529['length'];_0xc978b4++){const _0x226397=_0x325529[_0xc978b4];if(_0x226397['type']!==_0x33d099['type']||_0x226397['author']['id']!==_0x33d099['author']['id']||_0x226397['subType']!==_0x33d099['subType'])continue;if(!Qt(_0x33d099,_0x226397))continue;if('attribute'==_0x33d099['type']&&_0x33d099['data']['oldValue']!=_0x226397['data']['oldValue'])continue;if('attribute'==_0x33d099['type']&&_0x2a69f3['_isBlockAttribute'](_0x33d099['data']['key']))continue;if('formatBlock'==_0x33d099['type']){const _0x4e25cd=_0x2a69f3['editor']['model'],_0x547896=_0x33d099['getContainedElement']();if(_0x547896&&(_0x4e25cd['schema']['isObject'](_0x547896)||_0x4e25cd['schema']['isLimit'](_0x547896)))continue;}const _0x18b719=_0x47fc0e['get'](_0x33d099),_0x1e8959=_0x2f6b05['get'](_0x33d099),_0x291325=_0x2f6b05['get'](_0x226397),_0x14ceca=_0x33d099['commentThread']&&_0x33d099['commentThread']['length'],_0x50e13a=_0x226397['commentThread']&&_0x226397['commentThread']['length'];if(!_0x14ceca&&_0x18b719(_0x291325,_0x1e8959))return _0x2a69f3['_joinSuggestions'](_0x226397,_0x33d099),_0x2f6b05['delete'](_0x33d099),!0x0;if(!_0x50e13a&&_0x18b719(_0x1e8959,_0x291325))return _0x2a69f3['_joinSuggestions'](_0x33d099,_0x226397),_0x2f6b05['delete'](_0x226397),!0x0;}return!0x1;}}['_joinSuggestions'](_0x329bbb,_0x5485dd){if(_0x329bbb['isMultiRange']){for(const _0x89a5a7 of _0x5485dd['getRanges']())_0x329bbb['addRange'](_0x89a5a7);}else{const _0x4b8a19=_0x5485dd['getFirstRange']()['end'];this['_setSuggestionRange'](_0x329bbb,this['_model']['createRange'](_0x329bbb['getFirstRange']()['start'],_0x4b8a19));}_0x5485dd['removeMarkers']();}['_getMarkerAnnouncementText'](_0x29f53f,_0x2d06b5,_0x49f87f){const _0x2b9ab2=_0x29f53f['startsWith']('format')||_0x29f53f['startsWith']('attribute')?'FORMATTING':_0x29f53f['toUpperCase']();return c(this['editor']['locale'],_0x2d06b5+'_'+_0x2b9ab2+'_SUGGESTION_ANNOUNCEMENT',_0x49f87f);}['_initAriaMarkerChangeAnnouncements'](){const _0x4807d0=this['editor'];if(!_0x4807d0['ui'])return;const {ariaLiveAnnouncer:_0x5557b0}=_0x4807d0['ui'];_0x4cacd4(this['_model'],({left:_0x35f7a8,entered:_0x13db3b})=>{for(const _0x39b487 of _0x35f7a8){const {group:_0x478d0f,type:_0x53d3d2}=this['_splitMarkerName'](_0x39b487['name']);if('suggestion'===_0x478d0f){_0x5557b0['announce'](this['_getMarkerAnnouncementText'](_0x53d3d2,'LEAVE'));break;}}for(const _0x2d3c4d of _0x13db3b){const {group:_0x5b97f7,type:_0x5f2837}=this['_splitMarkerName'](_0x2d3c4d['name']);if('suggestion'===_0x5b97f7){_0x5557b0['announce'](this['_getMarkerAnnouncementText'](_0x5f2837,'ENTER',_0x24010f(_0x1b8fee)));break;}}});}['_processAttributeChanges'](_0x3d5392){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3ec308=this['editor'],_0x3ecbdb=_0x3ec308['model']['document']['differ']['getChanges']();if(0x0==_0x3ecbdb['length'])return!0x1;const _0x1eadca=[],_0x5ac9eb=_0x3ecbdb['filter'](_0x200830=>'attribute'==_0x200830['type']),_0x113e15=_0x3ecbdb['filter'](_0x54fd45=>'insert'==_0x54fd45['type']&&'$text'!=_0x54fd45['name']),_0x1e46bc=_0x3ecbdb['filter'](_0x514a30=>'remove'==_0x514a30['type']&&'$text'!=_0x514a30['name']);for(const _0x3db637 of _0x5ac9eb)_0x1eadca['push']({'key':_0x3db637['attributeKey'],'newValue':_0x3db637['attributeNewValue'],'oldValue':_0x3db637['attributeOldValue'],'range':qt(_0x3db637['range'],_0x3ec308['model'])});for(const _0x168e48 of _0x113e15){const _0x221bfd=_0x1e46bc['find'](_0x4c7b75=>_0x4c7b75['position']['isEqual'](_0x168e48['position']));_0x221bfd&&_0x1eadca['push']({'key':u,'newValue':_0x168e48['name'],'oldValue':_0x221bfd['name'],'range':_0x3ec308['model']['createRangeOn'](_0x168e48['position']['nodeAfter'])});}return 0x0!=_0x1eadca['length']&&this['_reduceExistingSuggestions'](_0x3d5392,_0x1eadca);}['_processAttributeSuggestions'](_0xccf91d){let _0x3167d9=!0x1;const _0x2b9026=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1bf9f0=>_0x1bf9f0['data']['newRange']&&_0x1bf9f0['name']['startsWith']('suggestion:attribute:'));for(const _0x3cf1e3 of _0x2b9026){const {subType:_0x56119b,id:_0x5c1d71}=this['_splitMarkerName'](_0x3cf1e3['name']),_0xcee170=_0x56119b['split']('|')[0x0];for(const _0x176b39 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x176b39['id']!=_0x5c1d71&&'attribute'==_0x176b39['type']&&_0x176b39['data']&&_0x176b39['data']['key']==_0xcee170&&_0x176b39['getFirstRange']()['isIntersecting'](_0x3cf1e3['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x176b39,_0x3cf1e3['data']['newRange'],_0xccf91d),_0x3167d9=!0x0);}return _0x3167d9;}['_recordAttributeChanges'](_0x1c4496){this['_recordAttributeSuggestions']=!0x0,_0x1c4496();}['_isRegisteredAttribute'](_0x4628a1){const _0x4edbe9=this['_isBlockAttribute'](_0x4628a1),_0x20c85e=this['_inlineAttributeKeys']['has'](_0x4628a1);return _0x4edbe9||_0x20c85e;}['_reduceExistingSuggestions'](_0x5b0c5d,_0x924dc0){if(0x0==_0x924dc0['length'])return!0x1;let _0x3d46b2=!0x1;for(const _0x90c7da of _0x924dc0){const _0x265d83=this['_findSuggestions'](_0x90c7da['range'],'attribute')['filter'](_0x387cab=>!_0x387cab['meta']['isNextTo'])['map'](_0x53869f=>_0x53869f['suggestion']),_0x105c02=_0x419ded({'newValue':_0x90c7da['newValue']});_0x265d83['filter'](_0xa1d8df=>{const [_0x564261,_0x6183a7]=_0xa1d8df['subType']['split']('|');return _0x564261==_0x90c7da['key']&&_0x6183a7!=_0x105c02;})['forEach'](_0x345548=>{this['_reduceSuggestionAttributeRange'](_0x345548,_0x90c7da['range'],_0x5b0c5d),_0x3d46b2=!0x0;});}return _0x3d46b2;}['_reduceSuggestionAttributeRange'](_0x3ea06d,_0x459b0d,_0x1f086c){const _0x2910f5=_0x3ea06d['getFirstRange']()['getDifference'](_0x459b0d);0x0!==_0x2910f5['length']?0x1!==_0x2910f5['length']?this['_breakSuggestionMarker'](_0x3ea06d,_0x459b0d['start'],_0x459b0d['end']):this['_setSuggestionRange'](_0x3ea06d,_0x2910f5[0x0]):_0x1f086c['removeMarker'](_0x3ea06d['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x287462){this['_editor']=_0x287462,this['_model']=_0x287462['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0xf9463e,_0x22be91,_0x966dd0,_0x1b3303,_0x2ad033,_0x1bb1cc,_0x3bd869){return new o(this['_model'],{'type':_0xf9463e,'subType':_0x22be91,'id':_0x966dd0,'originalSuggestionId':_0x3bd869,'author':_0x1b3303,'creator':_0x1b3303,'attributes':_0x2ad033,'onAttributesChange':_0x1bb1cc,'onAccept':(..._0x3c8672)=>this['getSuggestionCallback'](_0xf9463e,_0x22be91,'accept')(..._0x3c8672),'onDiscard':(..._0x43456d)=>this['getSuggestionCallback'](_0xf9463e,_0x22be91,'discard')(..._0x43456d)});}['registerCustomCallback'](_0x3e6bae,_0x4c896f,_0x527764,_0x5ca2b7){const _0x52b8ad=_0x3e6bae+':'+_0x4c896f+':'+_0x527764;this['_customCallbacks']['set'](_0x52b8ad,_0x5ca2b7);}['getSuggestionCallback'](_0x2bcc40,_0x391947,_0x39df09){const _0xd9a276=_0x2bcc40+':'+_0x391947+':'+_0x39df09;return this['_customCallbacks']['get'](_0xd9a276)||this['_defaultCallbacks']['get'](_0x2bcc40+':'+_0x39df09);}['_registerDefaultCallbacks'](){const _0x11120b=()=>!0x1,_0x1b7f26=_0x2b3435=>{_0x2b3435['sort']((_0x30052b,_0x5c8552)=>_0x30052b['start']['isBefore'](_0x5c8552['start'])?0x1:-0x1),this['_model']['change'](_0x5b0371=>{for(const _0x52c44c of _0x2b3435){let _0x6a5abf;_0x6a5abf=_0x52c44c['end']['isAtEnd']&&_0x52c44c['end']['parent']==_0x52c44c['start']['nodeAfter']?_0x5b0371['createSelection'](_0x52c44c['start']['nodeAfter'],'on'):_0x5b0371['createSelection'](_0x52c44c),this['_model']['deleteContent'](_0x6a5abf,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x2ebc24=(_0x1eb342,_0x1abe2c)=>{_0x1abe2c&&this['_model']['change'](_0xd9ac72=>{const {commandName:_0x1bfe85,commandParams:_0x49b6d2=[]}=_0x1abe2c,_0x463229=_0x1eb342['map'](_0x1922af=>(Lt(_0x1922af)&&(_0x1922af=this['_model']['createRange'](_0x1922af['end'])),_0x1922af))['filter'](_0x68a3c6=>'$graveyard'!==_0x68a3c6['root']['rootName']);if(_0x463229['length']<0x1)return;const _0x24b8af=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x11d86a=>_0x34ca76['fromRange'](_0x11d86a));_0xd9ac72['setSelection'](_0x463229);for(const _0x40cf56 of this['_editor']['commands']['commands']())_0x40cf56['refresh']();_0x49b6d2['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1bfe85,..._0x49b6d2);const _0x44accd=_0x24b8af['filter'](_0x4d8321=>'$graveyard'!=_0x4d8321['root']['rootName']);_0x44accd['length']>0x0&&_0xd9ac72['setSelection'](_0x44accd);for(const _0x17676d of _0x24b8af)_0x17676d['detach']();});},_0x33884c=(_0x46d599,_0x3b1751)=>0x1==_0x46d599['length']&&0x1==_0x3b1751['length']&&_0x46d599[0x0]['end']['isEqual'](_0x3b1751[0x0]['start']),_0xd97133=(_0x405cd6,_0x1695c1,_0x2c9e18,_0x484d58)=>Wt(_0x405cd6,_0x1695c1,_0x2c9e18,_0x484d58)?[_0x405cd6,_0x1695c1]:Wt(_0x1695c1,_0x405cd6,_0x484d58,_0x2c9e18)?[_0x1695c1,_0x405cd6]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x11120b),this['_defaultCallbacks']['set']('insertion:discard',_0x1b7f26),this['_defaultCallbacks']['set']('insertion:join',_0x33884c),this['_defaultCallbacks']['set']('insertion:chain',_0xd97133),this['_defaultCallbacks']['set']('deletion:accept',_0x1b7f26),this['_defaultCallbacks']['set']('deletion:discard',_0x11120b),this['_defaultCallbacks']['set']('deletion:join',_0x33884c),this['_defaultCallbacks']['set']('deletion:chain',_0xd97133),this['_defaultCallbacks']['set']('formatInline:accept',_0x2ebc24),this['_defaultCallbacks']['set']('formatInline:discard',_0x11120b),this['_defaultCallbacks']['set']('formatInline:join',_0x33884c),this['_defaultCallbacks']['set']('formatInline:chain',_0x11120b),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2ebc24),this['_defaultCallbacks']['set']('formatBlock:discard',_0x11120b),this['_defaultCallbacks']['set']('formatBlock:join',_0x33884c),this['_defaultCallbacks']['set']('formatBlock:chain',_0x11120b),this['_defaultCallbacks']['set']('attribute:accept',_0x11120b),this['_defaultCallbacks']['set']('attribute:discard',(_0x313a6d,_0xa64c7)=>{if(!_0xa64c7)return;const _0x1b94ca=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x221648=>{if(_0xa64c7['key']==u)for(const _0x4ea033 of _0x313a6d){const _0x4e1750=_0x4ea033['start']['nodeAfter'],_0x3b6a06=_0xa64c7['oldValue'];_0x221648['rename'](_0x4e1750,_0x3b6a06);}else{if(_0x1b94ca['_isBlockAttribute'](_0xa64c7['key'])){for(const _0x3e6a44 of _0x313a6d)void 0x0!==_0xa64c7['oldValue']?_0x221648['setAttribute'](_0xa64c7['key'],_0xa64c7['oldValue'],_0x3e6a44['start']['nodeAfter']):_0x221648['removeAttribute'](_0xa64c7['key'],_0x3e6a44['start']['nodeAfter']);}else{for(const _0x33d81b of _0x313a6d)_0xa64c7['oldValue']?_0x221648['setAttribute'](_0xa64c7['key'],_0xa64c7['oldValue'],_0x33d81b):_0x221648['removeAttribute'](_0xa64c7['key'],_0x33d81b);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x33884c);}}function Gt(_0x4ef3df,_0x18b822,_0x1617cf){for(const _0x35e622 of _0x18b822['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x35e622['root']==_0x35e622)return!0x1;if(!_0x1617cf['containsItem'](_0x35e622))return!0x1;if(_0x4ef3df['isObject'](_0x35e622)||_0x4ef3df['isLimit'](_0x35e622))return!0x0;}return!0x1;}function Lt(_0x4bec7b){return _0x4bec7b['end']['parent']==_0x4bec7b['start']['nodeAfter']&&_0x4bec7b['end']['isAtStart'];}function Jt(_0x8e3681,_0x4b711c,_0x3c082f,_0x275520){const _0xa5a15e=_0x73ceb9=>!_0x73ceb9['item']['is']('$textProxy')&&!_0x275520['isObject'](_0x73ceb9['item']),_0x22fb48=_0x8e3681['start']['getLastMatchingPosition'](_0xa5a15e),_0x1bde16=_0x8e3681['end']['getLastMatchingPosition'](_0xa5a15e,{'direction':'backward'});return(!_0x8e3681['start']['isEqual'](_0x22fb48)||!_0x8e3681['end']['isEqual'](_0x1bde16))&&(_0x22fb48['isBefore'](_0x1bde16)?_0x3c082f['updateMarker'](_0x4b711c,{'range':_0x3c082f['createRange'](_0x22fb48,_0x1bde16)}):_0x3c082f['removeMarker'](_0x4b711c),!0x0);}function Kt(_0x2ec05b){return _0x419ded(_0x2ec05b);}function Ht(_0x12bd54){const _0x54db9f=_0x12bd54['start']['nodeAfter'];return _0x54db9f&&_0x54db9f['is']('element');}function qt(_0x1b5afc,_0x3e2479){return null==_0x1b5afc['end']['nodeBefore']&&_0x1b5afc['end']['parent']==_0x1b5afc['start']['nodeAfter']?zt(_0x1b5afc['start']['nodeAfter'],_0x3e2479):_0x1b5afc;}function zt(_0x59733d,_0x196dd9){const _0x568336=_0x196dd9['schema']['isObject'](_0x59733d)||_0x196dd9['schema']['isSelectable'](_0x59733d);return _0x196dd9['createRange'](_0x196dd9['createPositionAt'](_0x59733d,'before'),_0x568336?_0x196dd9['createPositionAfter'](_0x59733d):_0x196dd9['createPositionAt'](_0x59733d,'end'));}function Wt(_0x3acee5,_0x5b1712,_0x5dfdb7,_0x5aea5e){return!!Qt(_0x3acee5,_0x5b1712)&&_0x5dfdb7['end']['isEqual'](_0x5aea5e['start']);}function Qt(_0x3e87c8,_0x5901cc){if(!_0x3e87c8['_isDataLoaded']||!_0x5901cc['_isDataLoaded'])return!0x1;const _0x5e2ae8=new Set(Object['keys'](_0x3e87c8['attributes'])),_0x409263=new Set(Object['keys'](_0x5901cc['attributes']));if(_0x5e2ae8['delete']('groupId'),_0x409263['delete']('groupId'),0x0==_0x5e2ae8['size']&&0x0==_0x409263['size'])return!0x0;if(_0x5e2ae8['size']!=_0x409263['size'])return!0x1;const _0x6a122b={..._0x3e87c8['attributes']},_0x1d8b86={..._0x5901cc['attributes']};return delete _0x6a122b['groupId'],delete _0x1d8b86['groupId'],JSON['stringify'](_0x6a122b)==JSON['stringify'](_0x1d8b86);}function Xt(_0x55318c,_0x31ed71){const _0x4252e4=Yt(_0x55318c['attributes']),_0x39c5d0=Yt(_0x31ed71);if(!_0x55318c['_isDataLoaded'])return!0x1;for(const _0x38d0a3 of Object['keys'](_0x39c5d0))if(!_0x8ce2d0(_0x4252e4[_0x38d0a3],_0x39c5d0[_0x38d0a3]))return!0x1;return!0x0;}function Yt(_0x3fc531){const _0x115551=Object['assign']({},_0x3fc531);return delete _0x115551['skipNestingCheck'],delete _0x115551['tablePasteChainId'],_0x115551;}class pe extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x3e790a(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x476568,_0x386f36,_0x3457cd,_0x3c8323){super(),this['model']=_0x386f36,this['view']=_0x3457cd,this['commentThreadController']=_0x3c8323,this['_editor']=_0x476568,this['_acceptCommand']=_0x476568['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x476568['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x17c214,_0x5d8efb)=>_0x17c214||_0x5d8efb),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x1aa9b5=>_0x1aa9b5&&this['_editor']['model']['canEditAt'](_0x386f36['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4f0a54=>_0x4f0a54&&this['_editor']['model']['canEditAt'](_0x386f36['getRanges']())),this['_pendingAction']=null,_0x3457cd['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3457cd,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3457cd,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3457cd,'change:isDirty',()=>{_0x3457cd['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 _0x2274e1=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x2274e1);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x4eff8d{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x21e604,_0x4c2f2,_0x3dffea,_0xf1f871){super(_0x21e604),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x473e7c(_0x21e604,c(_0x21e604,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x4c2f2['authoredAt']),this['bind']('authoredAt')['to'](_0x4c2f2),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',_0x4c2f2,'authoredAt',this,'descriptionParts',(_0x13744b,_0x1aa486,_0x46ee00)=>{const _0x1422a0=_0x46ee00['map'](_0x1f3254=>ls(_0x1f3254['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x13744b-0x1,_0x4c2f2['author']['name'],_0x1aa486?_0xf1f871['formatDateTime'](_0x1aa486):'',new DOMParser()['parseFromString'](_0x1422a0,'text/html')['body']['textContent']]);}),this['focusables']=new _0x1c7024(),this['focusTracker']=new _0x54fb7e(),this['keystrokes']=new _0x242ec4(),this['focusCycler']=new _0x15fc30({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4531a2=>_0x4531a2['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x4c2f2,this['_localUser']=_0x3dffea,this['_config']=_0xf1f871,_0xf1f871['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x3a8cc9(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x28e077}=this['_config'];this['commentsListView']=new _0x28e077(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',_0x244041=>_0x244041+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x263fca,_0x52ad8d)=>_0x263fca||!!_0x52ad8d);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x45ca82}=this['_config'],_0xfaaebd=new _0x45ca82(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4251bb=_0xfaaebd['commentInputView'];return _0xfaaebd['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4251bb,'value',(_0xfd4cc8,_0x4892f4,_0x3bb1a0)=>!!_0x3bb1a0||_0xfd4cc8&&!_0x4892f4),_0x4251bb['on']('submit',(_0xb78896,_0x31a4b6)=>{this['fire']('addComment',_0x31a4b6),_0x4251bb['editor']['setData']('');}),_0x4251bb['on']('cancel',()=>this['focus']()),_0x4251bb['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0xfaaebd;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x2c137a,_0x2d212d,_0xac515c,_0x4d19f8){super(_0x2c137a,_0x2d212d,_0xac515c,_0x4d19f8),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x38bde1=>_0x38bde1&&_0x38bde1[0x0]?_0x38bde1[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x57a85b,_0x147cfe)=>{let _0x33da97='';for(const _0x539a85 of _0x57a85b)_0x33da97+='<p>'+ls(_0x539a85['content'],_0x539a85['color'])+'</p>';return _0x147cfe?_0x33da97:ti(_0x33da97,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x4d19f8['SuggestionView'](_0x2c137a,_0x2d212d,{'formatDateTime':_0x4d19f8['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 _0x12c552=this['bindTemplate'],_0x1bab89=[this['suggestionView']];return this['commentsListView']&&_0x1bab89['push'](this['commentsListView']),this['commentThreadInputView']&&_0x1bab89['push'](this['commentThreadInputView']),_0x1bab89['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x12c552['if']('isActive','ck-suggestion-wrapper--active'),_0x12c552['to']('type',_0x4526f1=>'ck-suggestion-'+_0x4526f1),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':_0x12c552['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x1bab89};}['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 _0x4eff8d{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0xf3923a,_0x2b91e7,_0x1a825b){super(_0xf3923a),this['_model']=_0x2b91e7,this['_config']=_0x1a825b,this['set']('description',''),this['bind']('authoredAt')['to'](_0x2b91e7),this['acceptButton']=this['_createButton'](c(_0xf3923a,'Accept\x20suggestion'),_0x13fbe8,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0xf3923a,'Discard\x20suggestion'),_0x4f5a20,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x5604b1(_0xf3923a,_0x2b91e7['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x1c7024([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x54fb7e(),this['keystrokes']=new _0x242ec4(),this['focusCycler']=new _0x15fc30({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x3c41dc=>_0x3c41dc['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x1f2d07=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x1f2d07['innerHTML']=this['description'],this['on']('change:description',(_0x16cb9f,_0x2686e0,_0x1d4409)=>{_0x1f2d07['innerHTML']=_0x1d4409;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0xb23cba=this['bindTemplate'],_0x40f52e=[{'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':_0xb23cba['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0xb23cba['to']('authoredAt',_0x522a79=>this['_config']['formatDateTime'](_0x522a79))}]}]},{'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']&&_0x40f52e['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':_0x40f52e}]};}['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'](_0x48b564,_0x2a9ab8,_0x5a276d,_0x9a2fe,_0x55d29c){const _0x89fd63=new _0x590555(this['locale']);return _0x89fd63['set']({'label':_0x48b564,'icon':_0x2a9ab8,'tooltip':!0x0,'tooltipPosition':_0x55d29c}),_0x89fd63['extendTemplate']({'attributes':{'class':_0x5a276d}}),_0x89fd63['on']('execute',()=>{this['fire'](_0x9a2fe,this['_model']['id']);}),_0x89fd63;}['_setupKeyboardNavigation'](){const _0x4a51b0=this['element'];this['keystrokes']['listenTo'](_0x4a51b0);for(const _0x36a647 of this['focusables'])this['focusTracker']['add'](_0x36a647['element']),this['keystrokes']['listenTo'](_0x36a647['element']);this['keystrokes']['set']('enter',(_0x45b566,_0x419442)=>{_0x4a51b0===_0x45b566['target']&&(this['focusCycler']['focusFirst'](),_0x419442());}),this['keystrokes']['set']('esc',(_0x52f785,_0x3ae4e6)=>{_0x4a51b0!==_0x52f785['target']&&(this['focus'](),_0x3ae4e6());});}}class d extends _0x3953b7{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x58f2c4,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x80302b){super(_0x80302b),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x912c52=this['editor']['config'];_0x912c52['define']('trackChanges.SuggestionThreadView',fe),_0x912c52['define']('trackChanges.SuggestionView',we),_0x912c52['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x912c52['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x2ee424,_0x4afb34){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x443c48,_0x230fa5]of this['_handleControllerBuffer']){const _0x4aae7b=this['_suggestionToController']['has'](_0x443c48);_0x4aae7b||_0x230fa5?_0x4aae7b&&_0x230fa5&&this['_destroyController'](_0x443c48):this['_initializeController'](_0x443c48);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x2ee424,_0x4afb34);}['init'](){const _0x1b91f4=this['editor'],_0x569d7e=_0x1b91f4['plugins']['get']('TrackChangesEditing'),_0x4bb404=_0x1b91f4['plugins']['get']('Annotations'),_0x5099c3=_0x1b91f4['plugins']['get']('EditorAnnotations'),_0x21d2a0=_0x1b91f4['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x5099c3['addSourceCollector'](()=>{const _0x3ab2a6=[];for(const [_0x9243ff,_0x104842]of Array['from'](this['_suggestionToController'])){const _0xee1431=_0x9243ff['getAllAdjacentSuggestions'](),_0x59b66f=[];for(const _0x4d25d0 of _0xee1431){if(!_0x4d25d0['isInContent'])continue;if(_0x4d25d0['isMultiRange']){_0x59b66f['push'](..._0x4d25d0['getRanges']());continue;}const _0x4e0706=_0x4d25d0['getFirstRange']();if(_0x59b66f['length']>0x0){const _0x1be15a=_0x59b66f[0x0]['getJoined'](_0x4e0706);if(_0x1be15a){_0x59b66f[0x0]=_0x1be15a;continue;}}_0x59b66f['push'](_0x4e0706);}_0x3ab2a6['push']([_0x104842['view'],_0x59b66f]);}return _0x3ab2a6;}),this['listenTo'](_0x569d7e,'suggestionLoaded',(_0x680d2b,_0x556801)=>{this['listenTo'](_0x556801,'change:previous',(_0x56b1aa,_0x1c5a5d,_0x194cc9,_0x3ff352)=>{_0x556801['isInContent']&&(null==_0x194cc9?(this['_updateController'](_0x3ff352['head']),this['_handleSuggestionControllerDelayed'](_0x556801,!0x1)):(this['_updateController'](_0x194cc9['head']),null==_0x3ff352&&this['_handleSuggestionControllerDelayed'](_0x556801,!0x0)));}),null!==_0x556801['previous']?this['_updateController'](_0x556801['head']):this['_handleSuggestionControllerDelayed'](_0x556801,!0x1);}),this['listenTo'](_0x569d7e,'suggestionUnloaded',(_0x31f009,_0x3c497d,_0xe35c3a)=>{this['stopListening'](_0x3c497d,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3c497d),this['_suggestionToController']['has'](_0x3c497d)&&this['_destroyController'](_0x3c497d),_0xe35c3a&&this['_updateController'](_0xe35c3a['head']);}),this['listenTo'](_0x569d7e,'suggestionChanged',(_0x2a0062,_0x4386b9)=>{this['_updateController'](_0x4386b9);}),this['listenTo'](_0x4bb404,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x21d2a0,'addComment',(_0x2fa284,{threadId:_0x595928,isFromAdapter:_0x2c63b6})=>{if(_0x2c63b6||!_0x569d7e['hasSuggestion'](_0x595928))return;const _0x1cf67f=_0x569d7e['getSuggestion'](_0x595928);this['_suggestionToController']['get'](_0x1cf67f)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x456be7=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5c3d59;for(const _0x17c2d5 in _0x456be7){const _0x19a56b=_0x17c2d5,_0x52da2d=_0x456be7[_0x19a56b];if('trackChangesLicenseKeyValid'==_0x52da2d||'trackChangesLicenseKeyInvalid'==_0x52da2d||'trackChangesLicenseKeyExpired'==_0x52da2d||'trackChangesLicenseKeyDomainLimit'==_0x52da2d||'trackChangesLicenseKeyNotAllowed'==_0x52da2d||'trackChangesLicenseKeyEvaluationLimit'==_0x52da2d||'trackChangesLicenseKeyTrialLimit'==_0x52da2d||'trackChangesLicenseKeyUsageLimit'==_0x52da2d){delete _0x456be7[_0x19a56b],_0x5c3d59=_0x52da2d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x5c3d59&&_0x456be7['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x5c3d59&&_0x456be7['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x5c3d59&&_0x456be7['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x5c3d59&&_0x456be7['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x5c3d59&&_0x456be7['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x5c3d59&&_0x456be7['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x5c3d59&&_0x456be7['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x3eff9a=this['editor']['plugins']['get']('Annotations'),_0x1cdbed=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e3930=Array['from'](_0x3eff9a['activeAnnotations'],_0x1d770f=>_0x1d770f['innerView'])['filter'](_0x36ee71=>this['_viewToController']['has'](_0x36ee71)),_0xde1bc=[];for(const _0x486dd9 of _0x3e3930){const _0x166d28=this['_viewToController']['get'](_0x486dd9)['model']['getAllAdjacentSuggestions']();_0xde1bc['push'](..._0x166d28['reduce']((_0x43fdae,_0x426a12)=>[..._0x43fdae,..._0x426a12['getMarkerNames']()],[]));}_0x1cdbed['activeMarkers']=_0xde1bc;}['_addUIComponentsToFactory'](){const _0x1ae4be=this['editor'],_0x78699e=_0x1ae4be['locale'],_0x4bd9ff=c(_0x78699e,'Track\x20changes'),_0xede360=new _0x39c9e2([{'type':'switchbutton','model':new _0xbf88d3({'withText':!0x0,'isToggleable':!0x0,'label':_0x4bd9ff,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0xbf88d3({'withText':!0x0,'label':c(_0x78699e,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xbf88d3({'withText':!0x0,'label':c(_0x78699e,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0xbf88d3({'withText':!0x0,'label':c(_0x78699e,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xbf88d3({'withText':!0x0,'label':c(_0x78699e,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x1ae4be['plugins']['has']('TrackChangesPreview')&&_0xede360['addMany']([{'type':'separator'},{'type':'button','model':new _0xbf88d3({'withText':!0x0,'label':c(_0x78699e,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x157272 of _0xede360)if(ke(_0x157272)){const _0x3229d2=_0x1ae4be['commands']['get'](_0x157272['model']['commandName']);_0x157272['model']['bind']('isOn','isEnabled')['to'](_0x3229d2,'value','isEnabled');}_0x1ae4be['ui']['componentFactory']['add']('trackChanges',_0x46d7ad=>this['_createToolbarButton'](_0x46d7ad,_0xede360,_0x4bd9ff)),_0x1ae4be['ui']['componentFactory']['add']('menuBar:trackChanges',_0x682c60=>this['_createMenuBarMenu'](_0x682c60,_0xede360,_0x4bd9ff));}['_createToolbarButton'](_0x34dc90,_0x3a2a34,_0x3d3ddc){const _0xf70599=_0x5e9696(_0x34dc90,_0x881f8),_0x40eb76=this['editor']['commands']['get']('trackChanges');_0xf70599['buttonView']['set']({'tooltip':_0x3d3ddc,'label':_0x3d3ddc,'icon':_0x149199}),_0xf70599['buttonView']['bind']('isOn')['to'](_0x40eb76,'value'),_0xf70599['buttonView']['on']('execute',()=>{_0x40eb76['execute'](),this['editor']['editing']['view']['focus']();}),_0x2e601e(_0xf70599,_0x3a2a34,{'role':'menu'});const _0x1be56d=[];for(const _0x487b2a of _0x3a2a34)ke(_0x487b2a)&&_0x1be56d['push'](this['editor']['commands']['get'](_0x487b2a['model']['commandName']));const _0x5d1329=_0xf70599['buttonView'];return _0x5d1329['actionView']['unbind']('isEnabled'),_0x5d1329['arrowView']['unbind']('isEnabled'),_0x5d1329['actionView']['bind']('isEnabled')['to'](_0x40eb76,'isEnabled'),_0x5d1329['arrowView']['bind']('isEnabled')['toMany'](_0x1be56d,'isEnabled',(..._0x550771)=>_0x550771['some'](_0x343798=>_0x343798)),_0xf70599['on']('execute',_0x4ea9fc=>{this['editor']['execute'](_0x4ea9fc['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0xf70599;}['_createMenuBarMenu'](_0x38431d,_0x14f721,_0x2654f8){const _0x45e546=new _0x262cec(_0x38431d),_0x2fc7cb=this['editor']['commands']['get']('trackChanges');_0x45e546['buttonView']['set']({'label':_0x2654f8,'icon':_0x149199});const _0x152420=new _0x54e796(_0x38431d);for(const _0x3c5eae of _0x14f721){if('separator'==_0x3c5eae['type']){_0x152420['items']['add'](new _0x8cf7a6(_0x38431d));continue;}const _0x656d25=new _0x289202(_0x38431d,_0x45e546),_0x50603d=new _0xcb61eb(_0x38431d),_0x2d0585=_0x3c5eae['model'];_0x50603d['bind'](...Object['keys'](_0x2d0585))['to'](_0x2d0585),_0x50603d['delegate']('execute')['to'](_0x45e546),_0x50603d['on']('execute',()=>{this['editor']['execute'](_0x2d0585['commandName']),this['editor']['editing']['view']['focus']();}),_0x656d25['children']['add'](_0x50603d),_0x152420['items']['add'](_0x656d25);}return _0x45e546['bind']('isEnabled')['to'](_0x2fc7cb,'isEnabled'),_0x45e546['panelView']['children']['add'](_0x152420),_0x45e546;}['_initializeController'](_0x4d474c){const _0x3130af=this['editor'],_0x3acaca=_0x3130af['config'],_0x1f52e6=_0x3130af['plugins']['get']('Annotations'),_0x408f56=_0x3130af['plugins']['get']('CommentsRepository'),_0x235246=_0x3130af['plugins']['get']('EditorAnnotations'),_0x104b71=_0x3130af['plugins']['get'](_0x58f2c4)['me'],_0x5e692d=_0x3acaca['get']('trackChanges')['SuggestionThreadView'],_0x15819c=_0x3acaca['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x598ccb,CommentThreadInputView:_0x1a81fe}=_0x3130af['plugins']['get']('CommentsUI');let _0xcf6d58,_0x382963,_0x435a6f;this['_annotationViews']['has'](_0x4d474c['id'])?(_0x382963=this['_annotationViews']['get'](_0x4d474c['id']),_0xcf6d58=_0x382963['mainView']):(_0xcf6d58=new _0x5e692d(_0x3130af['locale'],_0x4d474c,_0x104b71,{'disableComments':this['_disableComments'],'editorConfig':{..._0x3acaca['get']('comments.editorConfig'),'licenseKey':_0x3acaca['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x3acaca['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x3acaca['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x3acaca['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x25d804(_0x3acaca['get']('locale'),_0x3130af['locale']),'CommentView':_0x3acaca['get']('comments')['CommentView'],'CommentsListView':_0x598ccb,'CommentThreadInputView':_0x1a81fe,'SuggestionView':_0x15819c}),_0xcf6d58['suggestionView']['acceptButton']['on']('execute',()=>{_0x3130af['editing']['view']['focus']();}),_0xcf6d58['suggestionView']['discardButton']['on']('execute',()=>{_0x3130af['editing']['view']['focus']();}),_0x382963=_0x1f52e6['createAnnotationView'](this['editor']['locale'],_0xcf6d58),_0x382963['bind']('isDirty')['to'](_0xcf6d58,'isDirty'),_0x382963['bind']('length')['to'](_0xcf6d58),_0x382963['bind']('type')['to'](_0xcf6d58,'type',_0x5559f6=>'suggestion-'+_0x5559f6),_0xcf6d58['on']('escape',()=>{_0x435a6f['fire']('escape');}),this['_annotationViews']['set'](_0x4d474c['id'],_0x382963));const _0x5de0fd=_0x408f56['createCommentThreadController'](_0x4d474c['commentThread'],_0xcf6d58),_0x2194e3=new pe(_0x3130af,_0x4d474c,_0xcf6d58,_0x5de0fd),_0x20c371=_0x4d474c['getAllAdjacentSuggestions']()['filter'](_0x5affc0=>_0x5affc0['isInContent']);_0xcf6d58['descriptionParts']=_0x3130af['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x20c371),this['_suggestionToController']['set'](_0x4d474c,_0x2194e3),this['_viewToController']['set'](_0xcf6d58,_0x2194e3),_0x435a6f=_0x1f52e6['createAnnotation']({'view':_0x382963,'target':()=>{const _0x5750d4=[],_0x3bfa67=_0x4d474c['getAllAdjacentSuggestions']()['filter'](_0x529620=>_0x529620['isInContent']);for(const _0x5e65dd of _0x3bfa67)_0x5750d4['push'](..._0x5e65dd['getMarkers']());return _0x52d4fd(_0x3130af['editing'],_0x5750d4);},'type':()=>'suggestion-'+_0x2194e3['view']['type']}),_0x408f56['_bindAnnotationToEditors'](_0xcf6d58,_0x435a6f),_0x1f52e6['add'](_0x435a6f),_0x235246['registerAnnotation'](_0x435a6f);}['_destroyController'](_0x231841){const _0x4f1ac2=this['editor']['plugins']['get']('CommentsRepository'),_0x44ce04=this['editor']['plugins']['get']('Annotations'),_0x4e63cb=this['_suggestionToController']['get'](_0x231841),_0x4f89fb=_0x4e63cb['view'],_0x510144=_0x44ce04['getByInnerView'](_0x4f89fb);_0x4f1ac2['_unbindEditors'](_0x4f89fb),_0x510144&&_0x44ce04['remove'](_0x510144),this['_suggestionToController']['delete'](_0x231841),this['_viewToController']['delete'](_0x4f89fb),_0x4e63cb['destroy']();}['_updateController'](_0x1c06eb){if(!_0x1c06eb['isInContent']||!this['_suggestionToController']['has'](_0x1c06eb))return;const _0x354681=this['editor']['plugins']['get']('TrackChangesEditing'),_0x293a63=this['_suggestionToController']['get'](_0x1c06eb),_0x45d991=_0x1c06eb['getAllAdjacentSuggestions']();_0x293a63['view']['descriptionParts']=_0x354681['descriptionFactory']['getDescriptions'](_0x45d991);}['destroy'](){for(const _0x203885 of this['_suggestionToController']['keys']())this['_destroyController'](_0x203885);for(const _0xbe0d6f of this['_annotationViews']['values']())_0xbe0d6f['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x868b2f){return'model'in _0x868b2f;}class k extends _0x3953b7{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x213a6d){this['editor']['plugins']['get'](p)['adapter']=_0x213a6d;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x2cb2ef){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x2cb2ef);}['getSuggestions']({skipNotAttached:_0x3a14e3=!0x1,toJSON:_0x4f6b68=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x3a14e3,'toJSON':_0x4f6b68});}['getSuggestion'](_0x114f44){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x114f44);}}const w=['Pagination'];class T extends _0x3953b7{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x43138=this['editor'];if(_0x43138['config']['define']('trackChangesData.editorCreator',_0x21100a=>{const _0x54a068=_0x43138['model']['document']['getRootNames']()['reduce']((_0x5856d0,_0x330200)=>(_0x5856d0[_0x330200]='',_0x5856d0),{});return _0x43138['constructor']['create'](_0x54a068,_0x21100a);}),'function'!=typeof _0x43138['config']['get']('trackChangesData')['editorCreator'])throw new _0x445a81('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x4bb5a7){return N(this['editor'],!0x0,_0x4bb5a7);}['getDataWithDiscardedSuggestions'](_0x2a4371){return N(this['editor'],!0x1,_0x2a4371);}}class D extends _0x3953b7{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x10cf8a){function _0x4453aa(_0x2c727d){return _0x2c727d['map'](_0x697600=>String['fromCharCode'](_0x697600))['join']('');}super(_0x10cf8a),this['result']='end',_0x10cf8a[_0x4453aa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4453aa([0x76,0x69,0x65,0x77])][_0x4453aa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4453aa([0x61,0x75,0x74,0x6f]),_0x10cf8a[_0x4453aa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4453aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4453aa([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4453aa([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4453aa([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(_0x458440){return void 0x0!==_0x458440['getRootsAttributes'];}async function N(_0x5ca952,_0x1bdeff,_0x2ce29e){const _0x56b316=_0x3ba5cf(_0x5ca952,w);_0x56b316['plugins']['push'](p,D),_0x56b316['rootsAttributes']=Ge(_0x5ca952)?_0x5ca952['getRootsAttributes']():void 0x0;const _0x11c04f=document['createDocumentFragment'](),_0x4cc917=_0x5ca952['config']['get']('trackChangesData')['editorCreator'],_0x9ceb65=await _0x4cc917(_0x56b316,()=>function(_0x47973e){const _0x4ae9ca=document['createElement']('div');return _0x47973e['appendChild'](_0x4ae9ca),_0x4ae9ca;}(_0x11c04f));!function(_0x5cc72e,_0x2e582a){const _0x2ab9aa=_0x5cc72e['model']['document']['getRootNames']()['reduce']((_0x49739e,_0x34a1a3)=>(_0x49739e[_0x34a1a3]=_0x5cc72e['data']['get']({'rootName':_0x34a1a3}),_0x49739e),{}),_0x300d5c=_0x5cc72e['plugins']['get']('Users')['users']['map'](_0x4ff85e=>({'id':_0x4ff85e['id'],'name':_0x4ff85e['name']})),_0x3eac04=_0x5cc72e['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5c33c8=_0x5cc72e['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5b4d28=_0x2e582a['plugins']['get']('Users'),_0x34c020=_0x2e582a['plugins']['get']('TrackChangesEditing'),_0x4c2177=_0x2e582a['plugins']['get']('CommentsRepository');for(const _0xe354 of _0x4c2177['getCommentThreads']())_0xe354['remove']();for(const _0x11a8fb of _0x300d5c)_0x5b4d28['getUser'](_0x11a8fb['id'])||_0x5b4d28['addUser'](_0x11a8fb);_0x5b4d28['me']||_0x5b4d28['useAnonymousUser']();for(const _0x550944 of _0x5c33c8)_0x4c2177['addCommentThread'](_0x550944);for(const _0x4c3dc6 of _0x3eac04)_0x34c020['addSuggestionData'](_0x4c3dc6);_0x2e582a['data']['set'](_0x2ab9aa);}(_0x5ca952,_0x9ceb65),_0x9ceb65['execute'](_0x1bdeff?'acceptAllSuggestions':'discardAllSuggestions');const _0x1a547d=Ge(_0x9ceb65)?_0x9ceb65['getFullData'](_0x2ce29e):_0x9ceb65['data']['get'](_0x2ce29e);return await _0x9ceb65['destroy'](),_0x1a547d;}class Me extends _0x4eff8d{['options'];constructor(_0x5e0aee,_0x14b5aa){super(_0x5e0aee),this['options']=_0x14b5aa,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'](_0xf98a80,_0x4e0048){if(!this['element'])return;const _0x2b4125=[];for(const [_0x21c128,_0x33d097]of _0xf98a80){const _0xb201ce=document['createElement']('div');_0xb201ce['setAttribute']('data-ck-root-name',_0x21c128),_0xb201ce['className']=_0x33d097['classes']+'\x20ck-track-changes-preview__root-container',_0xb201ce['innerHTML']=_0x33d097['content'],_0x2b4125['push'](_0xb201ce);}_0x4e0048(this['element'],_0x2b4125),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0xb8ee90{constructor(_0x85f450){super(_0x85f450),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x3db9b7=this['editor'],_0x5394a2=_0x3db9b7['locale'],_0x3703e2=_0x3db9b7['plugins']['get']('Dialog');let _0x508b60;const _0xbb4dbc=function(_0x452363){const _0x3b0c8e={};if('editables'in _0x452363['ui']['view']){for(const [_0x4f0c9e,_0x1b6425]of Object['entries'](_0x452363['ui']['view']['editables']))_0x3b0c8e[_0x4f0c9e]=_0x1b6425['element'];}else _0x3b0c8e[_0x452363['model']['document']['getRootNames']()[0x0]]=_0x452363['ui']['view']['editable']['element'];return _0x3b0c8e;}(_0x3db9b7),_0x266164=function(_0x358b96){let _0x151bda=0x0;for(const _0x3a24aa of Object['values'](_0x358b96))_0x151bda=Math['max'](_0x151bda,_0x3a24aa['getBoundingClientRect']()['width']);let _0x390e61=0x0;for(const _0x243653 of Object['values'](_0x358b96))_0x390e61+=_0x243653['getBoundingClientRect']()['height'];const _0x2a1cb5=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x16d578=Math['min'](_0x390e61,_0x2a1cb5);return{'width':_0x151bda,'height':_0x16d578};}(_0xbb4dbc);_0x3703e2['show']({'id':'finalContentPreview','title':c(_0x5394a2,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x5394a2,{'dialogRects':_0x266164}),'onHide':()=>{_0x508b60['detachFromDom']();},'onShow':()=>{_0x3db9b7['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x31f003=>{const _0x44a40d=this['_standarizeRootsData'](_0x31f003,_0x3db9b7,_0xbb4dbc);_0x3703e2['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x44a40d,_0x3db9b7['config']['get']('trackChanges.preview.renderFunction'));}),_0x508b60=new _0x27f01f(_0x5394a2,[_0x3703e2['view']]),_0x508b60['attachToDom'](),_0x508b60['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x3db9b7['once']('destroy',()=>{_0x508b60['detachFromDom']();});const _0x5b863d=_0x3703e2['view']['headerView']['class'];_0x3703e2['view']['headerView']['class']=_0x5b863d?_0x5b863d+'\x20ck-reset_all':'ck-reset_all',_0x3703e2['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x3703e2['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x3335e7=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x7b259d=_0x3335e7['previewMode'],_0x14f7f9={};if('$labels'===_0x7b259d){for(const _0x239b73 of _0x3335e7['getMergeFieldsIds']())_0x14f7f9[_0x239b73]=_0x3335e7['getLabel'](_0x239b73)||_0x239b73;}else{const _0x590781='$defaultValues'===_0x7b259d?_0x3335e7['getDefaultValues']():_0x3335e7['getDataSetValues'](_0x7b259d,!0x0);for(const _0x1f113d of Object['entries'](_0x590781)){const [_0x555161,_0x270ab1]=_0x1f113d;_0x14f7f9[_0x555161]=null!==_0x270ab1?_0x270ab1:_0x3335e7['getLabel'](_0x555161)||_0x555161;}}return{'mergeFieldsData':_0x14f7f9};}['_standarizeRootsData'](_0x2d226f,_0x111b1f,_0xe14a75){let _0x5c9d82;if('string'==typeof _0x2d226f){const _0x56da54=_0x111b1f['model']['document']['getRootNames']()[0x0];_0x5c9d82={[_0x56da54]:_0x2d226f};}else _0x5c9d82=_0x2d226f;const _0x4a083e=this['_fixMediaEmbeds'](_0x5c9d82,_0x111b1f),_0x4f530=function(_0x6f944b,_0x2686d1){for(const [_0x4bb052,_0x7c08f4]of _0x6f944b)_0x7c08f4['classes']=_0x2686d1[_0x4bb052]['classList']['value']['replace']('ck-focused','');return _0x6f944b;}(this['_sortRoots'](_0x111b1f)['reduce']((_0x3165d5,_0x532c59)=>(_0x3165d5['push']([_0x532c59,{'content':_0x4a083e[_0x532c59],'classes':''}]),_0x3165d5),[]),_0xe14a75);return _0x4f530;}['_fixMediaEmbeds'](_0xeed717,_0x1a65a0){if(!_0x1a65a0['plugins']['has']('MediaEmbedEditing'))return _0xeed717;const _0x12299d=_0x1a65a0['plugins']['get']('MediaEmbedEditing');for(const [_0x12f9a6,_0x1de5c3]of Object['entries'](_0xeed717)){const _0x54b9d5=document['createElement']('div');_0x54b9d5['innerHTML']=_0x1de5c3,(_0x54b9d5['querySelectorAll']('figure.media')['forEach'](_0x32c139=>{const _0x1098de=_0x32c139['querySelector']('oembed');if(_0x1098de){const _0x1dac3b=_0x1098de['getAttribute']('url');if(_0x1dac3b){const _0x1090f6=_0x12299d['registry']['getMediaViewElement'](new _0x4481d1(_0x1a65a0['editing']['view']['document']),_0x1dac3b,{'elementName':'','renderForEditingView':!0x0}),_0x11bcd9=document['createElement']('div');_0x11bcd9['classList']['add']('ck-media__wrapper'),_0x1090f6['render'](_0x11bcd9,_0x1a65a0['editing']['view']['domConverter']),_0x1098de['replaceWith'](_0x11bcd9);}}}),_0xeed717[_0x12f9a6]=_0x54b9d5['innerHTML']);}return _0xeed717;}['_sortRoots'](_0x19c85b){if(!function(_0x3f1698){return void 0x0!==_0x3f1698['getRootsAttributes'];}(_0x19c85b))return _0x19c85b['model']['document']['getRootNames']();const _0x2fe04f=[],_0x2c3585=new Map();for(const _0x9ac097 of _0x19c85b['model']['document']['getRootNames']()){const _0x213f8d=_0x19c85b['editing']['view']['getDomRoot'](_0x9ac097)['getClientRects']()['item'](0x0);_0x2fe04f['push'](_0x9ac097),_0x2c3585['set'](_0x9ac097,_0x213f8d);}return _0x2fe04f['sort']((_0x1fc302,_0x115282)=>{const _0x5e5d1e=_0x2c3585['get'](_0x1fc302),_0x5665e8=_0x2c3585['get'](_0x115282);return _0x5e5d1e['y']-_0x5665e8['y']||_0x5e5d1e['x']-_0x5665e8['x'];}),_0x2fe04f;}}class te extends _0x3953b7{static get['requires'](){return[T,_0x14c57e];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2490af){super(_0x2490af),_0x2490af['commands']['add']('previewFinalContent',new re(this['editor'])),_0x2490af['config']['define']('trackChanges.preview.renderFunction',(_0x4e2353,_0x33f66d)=>{for(const _0x35f48e of _0x33f66d)_0x4e2353['appendChild'](_0x35f48e);});}}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 _0x4a4577,Plugin as _0x525fe,PendingActions as _0x296619}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x5c9fc8,ObservableMixin as _0x25de0e,uid as _0x4f1695,priorities as _0x268430,insertToPriorityArray as _0x26d5af,toArray as _0xb8e9d3,logWarning as _0x47fb93,getEnvKeystrokeText as _0x35f937,FocusTracker as _0x1db60c,KeystrokeHandler as _0x1409eb,Collection as _0x47b85b}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x2b32b6,IconCancel as _0x5b16ee,IconTrackChanges as _0x511f04}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x5bfd28,View as _0x3d79ae,ViewCollection as _0x1b616d,FocusCycler as _0x167772,ViewModel as _0x1f2321,createDropdown as _0x2057f4,SplitButtonView as _0x296de5,addListToDropdown as _0x107f48,MenuBarMenuView as _0x276ba6,MenuBarMenuListView as _0x42162a,ListSeparatorView as _0x30855d,MenuBarMenuListItemView as _0x145098,MenuBarMenuListItemButtonView as _0x16294a,BodyCollection as _0x102aa3,Dialog as _0x4be001}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x7bb796,hashObject as _0x3e9b0a,surroundingMarkersDetector as _0x3501c0,FOCUS_ANNOTATION_KEYSTROKE as _0x896300,AriaDescriptionView as _0x2cfde7,setupThreadKeyboardNavigation as _0x2f249e,trimHtml as ti,UserView as _0x286819,LateFocusButtonView as _0x5ad65,getDateTimeFormatter as _0x152e9b,getAllMarkersDomElementsSorted as _0x3b738f,sanitizeEditorConfig as _0x5cc7ef}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x5d9e9b,LiveRange as _0x106800,LivePosition as _0x2e903f,DowncastWriter as _0x3ea3e1}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x40075c,toWidget as _0x36876e}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x384237,set as _0xab33f0,isEqual as _0x2351b0,unset as _0x34c7e6,omit as Ft}from'es-toolkit/compat';import{Delete as _0x41ac73,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x31691b}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0xdc0a57}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x4a4577{['_enabledCommands'];constructor(_0xdcfc06,_0x398995){super(_0xdcfc06),this['_enabledCommands']=_0x398995,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 _0x3616f0 of this['editor']['commands']['commands']())_0x3616f0['affectsData']&&!this['_enabledCommands']['has'](_0x3616f0)&&_0x3616f0['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x281fb2 of this['editor']['commands']['commands']())_0x281fb2['affectsData']&&!this['_enabledCommands']['has'](_0x281fb2)&&_0x281fb2['clearForceDisabled']('TrackChangesCommand');}}class x extends _0x4a4577{['_suggestions'];constructor(_0x53c6b7,_0x34b5d6){super(_0x53c6b7),this['_suggestions']=_0x34b5d6,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3f366){const _0x2cf82e=this['_suggestions']['get'](_0x3f366);if(!_0x2cf82e)throw new _0x5c9fc8('track-changes-accept-suggestion-not-found',this);const _0x2d9484=_0x2cf82e['getRanges']();this['editor']['model']['canEditAt'](_0x2d9484)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x2cf82e);}}class O extends _0x4a4577{['_suggestions'];constructor(_0x1a55d4,_0xe5256f){super(_0x1a55d4),this['_suggestions']=_0xe5256f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x43c855){const _0x42cf74=this['_suggestions']['get'](_0x43c855);if(!_0x42cf74)throw new _0x5c9fc8('track-changes-discard-suggestion-not-found',this);const _0x466d39=_0x42cf74['getRanges']();this['editor']['model']['canEditAt'](_0x466d39)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x42cf74);}}function ls(_0x245b7b,_0x361f84){let _0x19343a='';return _0x19343a+=_0x245b7b['split']('*')['map']((_0x20e788,_0x1519b9)=>_0x1519b9%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x20e788)+'</span>':nn(_0x20e788))['join'](''),_0x361f84&&(_0x19343a+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x361f84['value']+'\x22\x20title=\x22'+_0x361f84['title']+'\x22></span>'),_0x19343a;}function nn(_0x2b1b17){const _0x66c8d4=document['createElement']('span');return _0x66c8d4['innerText']=_0x2b1b17,_0x66c8d4['innerHTML'];}function ts(_0x75a116){return _0x75a116['sort']((_0x5ae749,_0x17f164)=>'deletion'==_0x5ae749['type']&&'deletion'!=_0x17f164['type']?-0x1:'deletion'!=_0x5ae749['type']&&'deletion'==_0x17f164['type']?0x1:0x0);}function to(_0x447f1c,_0xc2d43a){let _0x3d4ec2,_0x37641a=0x0;const _0x1885aa=[],_0x42d33c=_0xc2d43a['schema'];for(;_0x37641a<_0x447f1c['length'];){const _0x1b7ebf=_0x447f1c[_0x37641a],_0x449880=_0x447f1c[_0x37641a+0x1];_0x3d4ec2||(_0x3d4ec2=_0xc2d43a['createPositionBefore'](_0x1b7ebf)),on(_0xc2d43a,_0x1b7ebf,_0x449880)||(_0x1885aa['push'](_0xc2d43a['createRange'](_0x3d4ec2,_0x42d33c['isObject'](_0x1b7ebf)?_0xc2d43a['createPositionAfter'](_0x1b7ebf):_0xc2d43a['createPositionAt'](_0x1b7ebf,'end'))),_0x3d4ec2=null),_0x37641a++;}return _0x1885aa;}function on(_0x7f0745,_0x41bc20,_0x4e95e5){if(!_0x4e95e5)return!0x1;const _0x152b76=_0x7f0745['createPositionAfter'](_0x41bc20),_0x5bbfb3=_0x7f0745['createPositionBefore'](_0x4e95e5);return _0x152b76['isTouching'](_0x5bbfb3);}function rs(_0x34beeb,_0x8ad533,_0x4c30bf){for(;_0x4c30bf['length'];){const _0x3662f4=_0x4c30bf['splice'](0x0,0x64);_0x34beeb['change'](()=>{for(const _0xa65a6e of _0x3662f4)_0xa65a6e['isInContent']&&_0x8ad533['execute'](_0xa65a6e['id']);});}}class R extends _0x4a4577{['_command'];['_suggestions'];constructor(_0x588984,_0x47fd4f,_0x527bf3){super(_0x588984),this['_command']=_0x47fd4f,this['_suggestions']=_0x527bf3,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x111e03=Array['from'](this['_suggestions']['values']())['some'](_0x471177=>_0x471177['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x111e03;}['execute'](){const _0x25792e=ts(Array['from'](this['_suggestions']['values']()));for(const _0x4852af of _0x25792e){const _0x5912fe=_0x4852af['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5912fe))return;}rs(this['editor']['model'],this['_command'],_0x25792e);}}class E extends _0x4a4577{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x245c2b,_0x1cea8a,_0x13c833){super(_0x245c2b),this['_command']=_0x1cea8a,this['_suggestions']=_0x13c833,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x56d4df=this['editor']['model']['document']['selection'],_0x58eb23=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x48641a,_0x11a19d){const _0x3a41d9=Array['from'](_0x48641a['getRanges']()),_0x2e6a0e=new Set();for(const _0xffb9a8 of _0x11a19d)if(_0xffb9a8['isInContent']){for(const _0x221baa of _0x3a41d9)for(const _0x257408 of _0xffb9a8['getRanges']())(_0x221baa['isIntersecting'](_0x257408)||_0x48641a['isCollapsed']&&!_0xffb9a8['isMultiRange']&&_0xffb9a8['next']&&_0x257408['end']['isTouching'](_0x221baa['start']))&&_0x2e6a0e['add'](_0xffb9a8);}return _0x2e6a0e;}(_0x56d4df,_0x58eb23),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x45d4f1=ts(Array['from'](this['_selectedSuggestions']));for(const _0x3af69c of _0x45d4f1){const _0x2de815=_0x3af69c['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2de815))return;}rs(this['editor']['model'],this['_command'],_0x45d4f1);}}class o extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x25de0e(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x198fd3,_0x524ced){super(),this['id']=_0x524ced['id'],this['type']=_0x524ced['type'],this['subType']=_0x524ced['subType']||null,this['author']=_0x524ced['author'],this['creator']=_0x524ced['creator']||_0x524ced['author'],this['isExternal']=Boolean(_0x524ced['attributes']&&_0x524ced['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x524ced['originalSuggestionId']||null,this['_model']=_0x198fd3,this['_onAccept']=_0x524ced['onAccept'],this['_onDiscard']=_0x524ced['onDiscard'],this['_onAttributesChange']=_0x524ced['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x524ced['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 _0xeaf596=this;for(;_0xeaf596['previous'];)_0xeaf596=_0xeaf596['previous'];return _0xeaf596;}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'](_0x360876){this['_markerNames']['add'](_0x360876);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x30429b=>this['_model']['markers']['get'](_0x30429b))['filter'](_0x2c07f0=>_0x2c07f0);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x5bfe87=>{for(const _0x377d8b of this['getMarkers']())_0x5bfe87['removeMarker'](_0x377d8b);}),this['_markerNames']['clear']();}['removeMarker'](_0x1c55df){this['_model']['change'](_0x2d9de8=>{_0x2d9de8['removeMarker'](_0x1c55df);}),this['_markerNames']['delete'](_0x1c55df);}['addRange'](_0x10705a){const _0x1fa7de='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x1fa7de),this['_model']['change'](_0x3148e1=>{_0x3148e1['addMarker'](_0x1fa7de,{'range':_0x10705a,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x321cbc){for(const _0x28f791 of this['getRanges']())if(_0x28f791['isIntersecting'](_0x321cbc))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x35527c=>_0x35527c['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x16934e,_0x5db0b0)=>[..._0x16934e,..._0x5db0b0['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x223c71=this['getRanges']();if(0x1!=_0x223c71['length'])return null;const _0x582808=_0x223c71[0x0],_0xadbfb6=_0x582808['start']['nodeAfter'],_0x5ac55d=_0x582808['end']['nodeBefore'];return _0xadbfb6 instanceof _0x5d9e9b?_0xadbfb6!=_0x5ac55d?null:_0xadbfb6: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 _0x4e2747=[];let _0x414b0f=this['head'];for(;_0x414b0f;)_0x4e2747['push'](_0x414b0f),_0x414b0f=_0x414b0f['next'];return _0x4e2747;}['setAttribute'](_0x3430ed,_0x432a98){const _0x258ac2=_0x384237(this['attributes']);_0xab33f0(_0x258ac2,_0x3430ed,_0x432a98),_0x2351b0(_0x258ac2,this['attributes'])||(this['attributes']=_0x258ac2,this['_onAttributesChange'](_0x258ac2));}['removeAttribute'](_0x20fa87){const _0x134503=_0x384237(this['attributes']);_0x34c7e6(_0x134503,_0x20fa87),_0x2351b0(_0x134503,this['attributes'])||(this['attributes']=_0x134503,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 _0x4f1695()['substr'](0x1,0x5);}}function c(_0x4990db,_0x1108e3,_0x539f9e){const _0x520e68=_0x4990db['t'],t=_0x4990db['t'];switch(_0x1108e3){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',_0x539f9e);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x539f9e);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x539f9e);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x539f9e);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x539f9e);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',_0x539f9e);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x539f9e);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',_0x539f9e);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x539f9e);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x539f9e);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x539f9e);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x539f9e);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x539f9e);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x539f9e);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x539f9e);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x539f9e);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x539f9e);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x539f9e);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x539f9e);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x539f9e);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x539f9e);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x539f9e);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x539f9e);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x539f9e);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x539f9e);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'},_0x539f9e);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x539f9e);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x539f9e);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x539f9e);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x539f9e);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x539f9e);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x539f9e);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x539f9e);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'},_0x539f9e);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x539f9e);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x539f9e);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x539f9e);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x539f9e);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'},_0x539f9e);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x539f9e);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'},_0x539f9e);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'},_0x539f9e);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x539f9e);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'},_0x539f9e);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x539f9e);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'},_0x539f9e);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x539f9e);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x539f9e);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'},_0x539f9e);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x539f9e);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 _0x520e68({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x539f9e);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x520e68({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x539f9e);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x539f9e);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'},_0x539f9e);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'},_0x539f9e);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'},_0x539f9e);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x1108e3;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x11f048,_0x4282d5){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x11f048,this['_locale']=_0x4282d5;}['getDescriptions'](_0xf10b43){const _0xd55b34=[],_0xfa3bf5=new Set(),_0x4e1a01=new Set();for(let _0x1eab4e=0x0;_0x1eab4e<_0xf10b43['length'];_0x1eab4e++){const _0xe80df5=_0xf10b43[_0x1eab4e];if(!_0xe80df5['isInContent'])continue;const _0x1041e4=this['_handleCustomCallbackDescription'](_0xe80df5);if(_0x1041e4){if(null!=_0xe80df5['subType']){if(_0xfa3bf5['has'](_0xe80df5['subType']))continue;_0xfa3bf5['add'](_0xe80df5['subType']);}_0xd55b34['push'](_0x1041e4);}else{if('attribute'!=_0xe80df5['type'])'insertion'!=_0xe80df5['type']&&'deletion'!=_0xe80df5['type']||this['_handleInsertRemoveSuggestionDescription'](_0xd55b34,_0xe80df5,_0xf10b43[_0x1eab4e+0x1]);else{const _0x553af1=_0xe80df5['data']['key'];if(_0x4e1a01['has'](_0x553af1))continue;_0x4e1a01['add'](_0xe80df5['data']['key']),_0x553af1==u?this['_handleRenameSuggestionDescription'](_0xd55b34,_0xe80df5):this['_handleAttributeSuggestionDescription'](_0xd55b34,_0xe80df5);}}}return this['_resolveDescriptionItems'](_0xd55b34);}['registerDescriptionCallback'](_0x1d54cb){this['_customCallbacks']['push'](_0x1d54cb);}['registerElementLabel'](_0x19e805,_0x2b171d,_0xe73e87=_0x268430['normal']){'function'==typeof _0x19e805?_0x26d5af(this['_itemLabelsCallbacks'],{'matchingCallback':_0x19e805,'label':_0x2b171d,'priority':_0xe73e87}):this['_itemLabels']['set'](_0x19e805,_0x2b171d);}['registerAttributeLabel'](_0x576b87,_0x5a08b7){this['_attributeLabels']['set'](_0x576b87,_0x5a08b7);}['getItemLabel'](_0x344778,_0x4e282a=0x1){let _0x3f643e;for(const _0x18d7d3 of this['_itemLabelsCallbacks'])if(_0x18d7d3['matchingCallback'](_0x344778)){_0x3f643e=_0x18d7d3['label'];break;}return _0x3f643e||(_0x3f643e=this['_itemLabels']['get'](_0x344778['name'])),_0x3f643e?_0x3f643e(_0x4e282a):0x1!==_0x4e282a?_0x4e282a+'\x20'+_0x344778['name']+'s':''+_0x344778['name'];}['_addDescriptionItems'](_0xb3533d,_0x333107){const _0xd33d72=_0x333107['getFirstRange']()['getWalker'](),_0x1e5c42='insertion'==_0x333107['type']?'add':'remove';for(const _0x2b2b7d of _0xd33d72){const _0x53637d=_0x2b2b7d['item'],_0x52acd7=_0xb3533d[_0xb3533d['length']-0x1];if(_0x53637d['is']('$textProxy'))_0x52acd7&&_0x52acd7['type']['indexOf']('Container')>-0x1&&_0xb3533d['pop'](),_0x52acd7&&'text'==_0x52acd7['type']?_0x52acd7[_0x1e5c42]+=_0x53637d['data']:_0xb3533d['push']({'type':'text','add':'add'==_0x1e5c42?_0x53637d['data']:'','remove':'remove'==_0x1e5c42?_0x53637d['data']:''});else{if(this['_schema']['isObject'](_0x53637d)){const _0x1241db=_0x53637d;if(_0x52acd7&&_0x52acd7['type']['indexOf']('Container')>-0x1&&_0xb3533d['pop'](),'elementEnd'==_0x2b2b7d['type'])continue;_0x52acd7&&_0x52acd7['type']==_0x1e5c42+'Object'&&_0x52acd7['element']['name']==_0x1241db['name']?_0x52acd7['quantity']++:_0xb3533d['push']({'type':_0x1e5c42+'Object','element':_0x1241db,'quantity':0x1}),_0xd33d72['skip'](_0x226c1b=>!('elementEnd'==_0x226c1b['type']&&_0x226c1b['item']==_0x53637d));}else{if(this['_schema']['checkChild'](_0x53637d,'$text')||_0x53637d['is']('element','softBreak')){const _0x3a7a14=_0x53637d;if('add'==_0x1e5c42&&'elementStart'==_0x2b2b7d['type']||'remove'==_0x1e5c42&&'elementEnd'==_0x2b2b7d['type'])continue;if(_0x52acd7&&-0x1==_0x52acd7['type']['indexOf']('Container')){'text'==_0x52acd7['type']&&(_0x52acd7[_0x1e5c42]+='\x0a');continue;}let _0x46b98b;if(_0x46b98b='add'==_0x1e5c42?_0x3a7a14['nextSibling']&&!this['_schema']['isObject'](_0x3a7a14['nextSibling'])?_0x3a7a14['nextSibling']:null:_0x3a7a14['previousSibling']&&!this['_schema']['isObject'](_0x3a7a14['previousSibling'])?_0x3a7a14['previousSibling']:null,_0x3a7a14['isEmpty']||_0x46b98b&&_0x46b98b['isEmpty']){const _0x4345e7=_0x46b98b&&_0x46b98b['isEmpty']?_0x46b98b:_0x3a7a14;_0x52acd7&&_0x52acd7['type']==_0x1e5c42+'EmptyContainer'&&_0x52acd7['element']['name']==_0x4345e7['name']?_0x52acd7['quantity']++:_0xb3533d['push']({'type':_0x1e5c42+'EmptyContainer','element':_0x4345e7,'quantity':0x1});}else _0xb3533d['push']({'type':_0x1e5c42+'Container','element':_0x3a7a14});}}}}}['_resolveDescriptionItems'](_0x239547){const _0x9514bb=this['_locale'],_0x500f60=[],_0x254afc=[],_0x54180d=[];for(const _0x5cf6d6 of _0x239547)switch(_0x5cf6d6['type']){case'text':if(_0x5cf6d6['add']=_0x5cf6d6['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x5cf6d6['remove']=_0x5cf6d6['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x5cf6d6['add']&&''!=_0x5cf6d6['remove']){_0x500f60['push']({'type':'replace','content':c(_0x9514bb,'REPLACE_TEXT',['\x22'+_0x5cf6d6['remove']+'\x22','\x22'+_0x5cf6d6['add']+'\x22'])});continue;}if(null!=_0x5cf6d6['add']['match'](/^ +$/)){_0x500f60['push']({'type':'insertion','content':c(_0x9514bb,'*Insert:*\x20%0',c(_0x9514bb,'ELEMENT_SPACE',_0x5cf6d6['add']['length']))});continue;}if(null!=_0x5cf6d6['remove']['match'](/^ +$/)){_0x500f60['push']({'type':'deletion','content':c(_0x9514bb,'*Remove:*\x20%0',c(_0x9514bb,'ELEMENT_SPACE',_0x5cf6d6['remove']['length']))});continue;}if(''!=_0x5cf6d6['add']){_0x500f60['push']({'type':'insertion','content':c(_0x9514bb,'*Insert:*\x20%0','\x22'+_0x5cf6d6['add']+'\x22')});continue;}_0x500f60['push']({'type':'deletion','content':c(_0x9514bb,'*Remove:*\x20%0','\x22'+_0x5cf6d6['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x500f60['push']({'type':'insertion','content':c(_0x9514bb,'*Insert:*\x20%0',this['getItemLabel'](_0x5cf6d6['element'],_0x5cf6d6['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x500f60['push']({'type':'deletion','content':c(_0x9514bb,'*Remove:*\x20%0',this['getItemLabel'](_0x5cf6d6['element'],_0x5cf6d6['quantity']))});continue;case'addContainer':_0x500f60['push']({'type':'insertion','content':c(_0x9514bb,'*Split:*\x20%0',this['getItemLabel'](_0x5cf6d6['element'],_0x5cf6d6['quantity']))});continue;case'removeContainer':_0x500f60['push']({'type':'deletion','content':c(_0x9514bb,'*Merge:*\x20%0',this['getItemLabel'](_0x5cf6d6['element'],_0x5cf6d6['quantity']))});continue;case'addFormat':_0x254afc['push'](_0x5cf6d6['key']);continue;case'removeFormat':_0x54180d['push'](_0x5cf6d6['key']);continue;default:_0x500f60['push'](_0x5cf6d6);}if(_0x254afc['length']){const _0x58469a=_0x254afc['map'](_0x48f9d3=>this['_attributeLabels']['has'](_0x48f9d3)?this['_attributeLabels']['get'](_0x48f9d3):_0x48f9d3)['join'](',\x20');_0x500f60['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x58469a)});}if(_0x54180d['length']){const _0x1f9247=_0x54180d['map'](_0x47cd57=>this['_attributeLabels']['has'](_0x47cd57)?this['_attributeLabels']['get'](_0x47cd57):_0x47cd57)['join'](',\x20');_0x500f60['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x1f9247)});}return _0x500f60;}['_handleCustomCallbackDescription'](_0x231b06){for(const _0x4afbe3 of this['_customCallbacks']){const _0x4b3902=_0x4afbe3(_0x231b06);if(_0x4b3902&&'type'in _0x4b3902)return _0x4b3902;}}['_handleAttributeSuggestionDescription'](_0x57f69f,_0x5c38a8){const _0x57ecc9=_0x5c38a8['data'],_0x2196da=void 0x0===_0x57ecc9['newValue']?'removeFormat':'addFormat';_0x57f69f['push']({'type':_0x2196da,'key':_0x57ecc9['key']});}['_handleRenameSuggestionDescription'](_0x563f46,_0x10e035){_0x563f46['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x10e035['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x465b24,_0x31a4c3,_0x1fbe8a){if(this['_addDescriptionItems'](_0x465b24,_0x31a4c3),_0x1fbe8a&&_0x1fbe8a['getFirstRange']()&&!_0x31a4c3['getFirstRange']()['end']['isEqual'](_0x1fbe8a['getFirstRange']()['start'])){const _0x316af2=_0x465b24[_0x465b24['length']-0x1],_0x21c2b4='insertion'==_0x31a4c3['type']?'add':'remove';_0x316af2&&'text'==_0x316af2['type']&&(_0x316af2[_0x21c2b4]+='\x0a');}}}class U extends _0x525fe{['afterInit'](){const _0x51db7f=this['editor'],_0x563efb=_0x51db7f['plugins']['get']('TrackChangesEditing');_0x51db7f['commands']['get']('showAIAssistant')&&_0x563efb['enableCommand']('showAIAssistant');}}class V extends _0x525fe{['afterInit'](){const _0x453117=this['editor'],_0x1c5c04=_0x453117['locale'];if(!_0x453117['plugins']['has']('AlignmentEditing'))return;const _0x418808=_0x453117['plugins']['get']('TrackChangesEditing');_0x418808['enableDefaultAttributesIntegration']('alignment'),_0x418808['registerBlockAttribute']('alignment'),_0x418808['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x1c5c04,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d1b6e=this['editor'],_0x699be4=_0x4d1b6e['locale'];_0x4d1b6e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x55a314=>{if('formatBlock'!=_0x55a314['type'])return;const {data:_0x3b09c2}=_0x55a314;if(_0x3b09c2&&'alignment'==_0x3b09c2['commandName']){const _0x3fd948=_0x3b09c2['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x699be4,'*Format:*\x20%0',function(_0x3a2bbc){switch(_0x3a2bbc){case'left':return c(_0x699be4,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x699be4,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x699be4,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x699be4,'FORMAT_JUSTIFY_TEXT');}}(_0x3fd948))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x525fe{['afterInit'](){const _0x1f028d=this['editor'],_0xdc52e1=_0x1f028d['plugins']['get']('TrackChangesEditing'),_0x552ed0=_0x1f028d['locale'];for(const _0x4307fe of Zt){if(!_0x1f028d['plugins']['has'](_0x4307fe))continue;const _0x5c4d31=_0x4307fe['slice'](0x0,-0x7)['toLowerCase'](),_0x5e9926='FORMAT_'+_0x5c4d31['toUpperCase']();_0xdc52e1['enableDefaultAttributesIntegration'](_0x5c4d31),_0xdc52e1['registerInlineAttribute'](_0x5c4d31),_0xdc52e1['descriptionFactory']['registerAttributeLabel'](_0x5c4d31,c(_0x552ed0,_0x5e9926));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xcc55bb=this['editor'],_0x4b8e7c=_0xcc55bb['locale'],_0x2db8d4=_0xcc55bb['plugins']['get']('TrackChangesEditing');function _0x1d4e65(_0x473fb1,_0x14a1e6){_0x2db8d4['descriptionFactory']['registerDescriptionCallback'](_0x23eae3=>{if('formatInline'!=_0x23eae3['type'])return;const {data:_0x4dc806}=_0x23eae3;return _0x4dc806&&_0x4dc806['commandName']===_0x473fb1?_0x4dc806['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x4b8e7c,'*Format:*\x20%0',_0x14a1e6)}:{'type':'format','content':c(_0x4b8e7c,'*Remove\x20format:*\x20%0',_0x14a1e6)}:void 0x0;});}_0x1d4e65('bold',c(_0x4b8e7c,'FORMAT_BOLD')),_0x1d4e65('italic',c(_0x4b8e7c,'FORMAT_ITALIC')),_0x1d4e65('underline',c(_0x4b8e7c,'FORMAT_UNDERLINE')),_0x1d4e65('code',c(_0x4b8e7c,'FORMAT_CODE')),_0x1d4e65('strikethrough',c(_0x4b8e7c,'FORMAT_STRIKETHROUGH')),_0x1d4e65('subscript',c(_0x4b8e7c,'FORMAT_SUBSCRIPT')),_0x1d4e65('superscript',c(_0x4b8e7c,'FORMAT_SUPERSCRIPT'));}}class G extends _0x525fe{['afterInit'](){const _0x4322f9=this['editor'],_0x123976=_0x4322f9['locale'];if(!_0x4322f9['plugins']['has']('BlockQuoteEditing'))return;const _0x4c7500=_0x4322f9['plugins']['get']('TrackChangesEditing'),_0x1ea924=this['editor']['commands']['get']('blockQuote');_0x4c7500['enableCommand']('blockQuote',(_0x2fb6ba,_0x555eb8={})=>{const _0x21cac0=this['editor']['model']['document']['selection'],_0x1197d3=_0x555eb8&&void 0x0!==_0x555eb8['forceValue']?_0x555eb8['forceValue']:!_0x1ea924['value'];let _0x529c23=[];if(_0x1197d3){const _0x8b130e=Array['from'](_0x21cac0['getSelectedBlocks']())['filter'](_0x296314=>oo(_0x296314)||function(_0x588de2,_0x59f67d){const _0x53c3d2=_0x59f67d['checkChild'](_0x588de2['parent'],'blockQuote'),_0x47fe8e=_0x59f67d['checkChild'](['$root','blockQuote'],_0x588de2);return _0x53c3d2&&_0x47fe8e;}(_0x296314,this['editor']['model']['schema']));_0x529c23=to(_0x8b130e,_0x4322f9['model']);}else{const _0x5d2a2e=Array['from'](_0x21cac0['getSelectedBlocks']())['filter'](_0x1bb1f4=>oo(_0x1bb1f4));_0x529c23=to(_0x5d2a2e,_0x4322f9['model']);}_0x4322f9['model']['change'](()=>{for(const _0x59915a of _0x529c23)_0x4c7500['markBlockFormat'](_0x59915a,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x1197d3}]});});}),_0x4c7500['descriptionFactory']['registerDescriptionCallback'](_0x2b2889=>{const {data:_0x2a0ed1}=_0x2b2889;if(_0x2a0ed1&&'blockQuote'==_0x2a0ed1['commandName']){const _0x4ee242=c(_0x123976,'ELEMENT_BLOCK_QUOTE');return _0x2a0ed1['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x123976,'*Set\x20format:*\x20%0',_0x4ee242)}:{'type':'format','content':c(_0x123976,'*Remove\x20format:*\x20%0',_0x4ee242)};}});}}function oo(_0x3e3ae1){return'blockQuote'==_0x3e3ae1['parent']['name'];}class L extends _0x525fe{['afterInit'](){const _0x11c7da=this['editor'],_0x178124=_0x11c7da['locale'],_0x2a0377=_0x11c7da['plugins']['get']('TrackChangesEditing');_0x11c7da['plugins']['has']('BookmarkEditing')&&(_0x2a0377['enableCommand']('insertBookmark'),_0x2a0377['enableDefaultAttributesIntegration']('updateBookmark'),_0x2a0377['registerBlockAttribute']('bookmarkId'),_0x2a0377['descriptionFactory']['registerDescriptionCallback'](_0x4a726f=>{if('insertion'!=_0x4a726f['type']&&'deletion'!=_0x4a726f['type']&&'attribute'!=_0x4a726f['type'])return;const _0x117059=_0x4a726f['getContainedElement']();if(null==_0x117059)return;if(!_0x117059['is']('element','bookmark'))return;const _0x521cf0=_0x117059['getAttribute']('bookmarkId');if('insertion'==_0x4a726f['type'])return{'type':'insertion','content':c(_0x178124,'*Insert:*\x20%0','\x22'+_0x521cf0+'\x22\x20'+c(_0x178124,'ELEMENT_BOOKMARK'))};if('deletion'==_0x4a726f['type'])return{'type':'deletion','content':c(_0x178124,'*Remove:*\x20%0','\x22'+_0x521cf0+'\x22\x20'+c(_0x178124,'ELEMENT_BOOKMARK'))};const {data:_0x137d6f}=_0x4a726f;if(!_0x137d6f||'bookmarkId'!=_0x137d6f['key'])return;return{'type':'format','content':c(_0x178124,'*Set\x20bookmark:*\x20%0','\x22'+_0x137d6f['newValue']+'\x22')};}));}}class J extends _0x525fe{['afterInit'](){const _0x4744d5=this['editor'];_0x4744d5['plugins']['has']('CaseChange')&&(_0x4744d5['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x4744d5['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x4744d5['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x525fe{['afterInit'](){const _0xb8b503=this['editor'];_0xb8b503['commands']['get']('ckbox')&&_0xb8b503['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x525fe{['afterInit'](){const _0x1cfee4=this['editor'];if(!_0x1cfee4['plugins']['has']('CodeBlock'))return;const _0x4fd565=_0x1cfee4['plugins']['get']('TrackChangesEditing'),_0x470a5b=_0x1cfee4['locale'],_0x3c7eb7=_0x1cfee4['config']['get']('codeBlock')['languages'],_0x3ba49e=_0x1cfee4['commands']['get']('codeBlock');_0x4fd565['enableCommand']('indentCodeBlock'),_0x4fd565['enableCommand']('outdentCodeBlock'),_0x4fd565['enableCommand']('codeBlock',(_0x395de2,_0xe75614={})=>{const _0x4105c7=_0x1cfee4['model'],_0x52fd7c=_0x1cfee4['model']['document']['selection'],_0x17dd0d=_0xe75614&&void 0x0!==_0xe75614['forceValue']?_0xe75614['forceValue']:!_0x3ba49e['value'];let _0x647e89;_0xe75614['language']||(_0xe75614['language']=_0x3c7eb7[0x0]['language']),_0x647e89=_0x17dd0d?Array['from'](_0x52fd7c['getSelectedBlocks']())['filter'](_0x2c2bf2=>eo(_0x2c2bf2)||function(_0x5524a3,_0x120471){if(_0x5524a3['is']('rootElement')||_0x120471['isLimit'](_0x5524a3))return!0x1;return _0x120471['checkChild'](_0x5524a3['parent'],'codeBlock');}(_0x2c2bf2,_0x4105c7['schema'])):Array['from'](_0x52fd7c['getSelectedBlocks']())['filter'](_0x25be91=>eo(_0x25be91));const _0xe02d59=to(_0x647e89,_0x4105c7);_0x4105c7['change'](()=>{for(const _0x3c50b9 of _0xe02d59)_0x4fd565['markBlockFormat'](_0x3c50b9,{'commandName':'codeBlock','commandParams':[{..._0xe75614,'forceValue':_0x17dd0d}],'formatGroupId':'blockName'});});}),(_0x4fd565['descriptionFactory']['registerElementLabel']('codeBlock',_0x3ce653=>c(_0x470a5b,'ELEMENT_CODE_BLOCK',_0x3ce653)),_0x4fd565['descriptionFactory']['registerDescriptionCallback'](_0x512ca1=>{if('formatBlock'!=_0x512ca1['type'])return;const _0x15a029=_0x470a5b['t'],{data:_0x262ad2}=_0x512ca1;if(!_0x262ad2||'codeBlock'!=_0x262ad2['commandName'])return;const _0x48e851=_0x262ad2['commandParams'][0x0]['language'],_0x3b5ccd=_0x15a029(_0x3c7eb7['find'](_0x465e5a=>_0x465e5a['language']===_0x48e851)['label'])['toLowerCase']();return _0x262ad2['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x470a5b,'*Set\x20format:*\x20%0',c(_0x470a5b,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x3b5ccd+')')}:{'type':'format','content':c(_0x470a5b,'*Remove\x20format:*\x20%0',c(_0x470a5b,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0xeb3a54){return'codeBlock'==_0xeb3a54['name'];}class q extends _0x525fe{['afterInit'](){const _0x5b9b35=this['editor'];if(!_0x5b9b35['plugins']['has']('CommentsEditing'))return;_0x5b9b35['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x2efdd1,_0x696dfa,_0x1544b1){const _0x438ae9=[];for(const _0x30974d of _0x696dfa['getItems']())_0x30974d['hasAttribute'](_0x2efdd1)&&_0x438ae9['push'](_0x1544b1['createRangeOn'](_0x30974d));return _0x438ae9;}function Fe(_0x4190b9,_0x263c4f,{showActiveMarker:_0x196555=!0x0}={}){const _0x38553b=_0x4190b9['plugins']['get']('TrackChangesEditing');return(_0x2d4dbc,_0x190133,_0x54985a)=>{if(!_0x54985a['consumable']['test'](_0x190133['markerRange'],_0x2d4dbc['name']))return;const _0x390ccf=_0x190133['markerRange']['getWalker'](),_0x2d9d1c=_0x190133['markerRange']['start'],_0x314619=_0x4190b9['model']['schema'];let _0xec3ce0=null,_0x4f993d=null,_0x3c4d3c=!0x1,_0x5d7ea4=!0x1;for(const _0x38bbfc of _0x390ccf){const _0xfda9b6=_0x38bbfc['item'];_0x3c4d3c=_0x3c4d3c||_0x314619['isContent'](_0xfda9b6);const _0x46abb5=_0x54985a['mapper']['toViewElement'](_0xfda9b6);if(_0x46abb5&&_0x46abb5['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x38bbfc['type']&&(_0x314619['isBlock'](_0xfda9b6)&&!_0x314619['isLimit'](_0xfda9b6)&&(_0xfda9b6['nextSibling']||_0x2d9d1c['isAtEnd']?_0xec3ce0&&_0xec3ce0['parent']==_0xfda9b6||(_0xec3ce0=_0xfda9b6,_0x3e6970(_0x38bbfc['previousPosition']),_0x5d7ea4=!0x0):_0x4f993d=_0x4f993d||_0x38bbfc['previousPosition']));}function _0x3e6970(_0x3150f6){const {id:_0x57acd1,authorId:_0x3bacdc}=_0x38553b['_splitMarkerName'](_0x190133['markerName']),_0x125363=_0x54985a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x263c4f,'data-suggestion':_0x57acd1,'data-author-id':_0x3bacdc}),_0x23edc3=_0x54985a['mapper']['toViewPosition'](_0x3150f6);_0x196555&&_0x38553b['activeMarkers']['includes'](_0x190133['markerName'])&&_0x54985a['writer']['addClass']('ck-suggestion-marker--active',_0x125363),_0x54985a['writer']['insert'](_0x23edc3,_0x125363),_0x54985a['mapper']['bindElementToMarker'](_0x125363,_0x190133['markerName']);}_0x3c4d3c||_0x5d7ea4||!_0x4f993d||_0x3e6970(_0x4f993d);};}class z extends _0x525fe{static get['requires'](){return[_0x41ac73];}['init'](){const _0x5c74f9=this['editor'],_0xea6a5c=_0x5c74f9['plugins']['get']('TrackChangesEditing');_0xea6a5c['enableCommand']('delete');const _0x3c5324=_0x5c74f9['commands']['get']('deleteForward');_0xea6a5c['enableCommand']('deleteForward',(_0x2c14ee,_0x36cace={})=>{const _0x53bd20=_0x5c74f9['model']['createSelection'](_0x5c74f9['model']['document']['selection']);_0x53bd20['isCollapsed']&&_0x5c74f9['model']['modifySelection'](_0x53bd20,{'direction':'forward','unit':_0x36cace['unit']});const _0x285d98=_0x53bd20['getFirstRange'](),_0x2ff9d3=_0x106800['fromRange'](_0x285d98);let _0x2b6004;_0x2c14ee(_0x36cace),_0x2b6004='$graveyard'==_0x2ff9d3['root']['rootName']?_0x5c74f9['model']['createRange'](_0x285d98['start']):_0x5c74f9['model']['createRange'](_0x2ff9d3['start'],_0x2ff9d3['end']),_0x2ff9d3['detach'](),_0x5c74f9['model']['enqueueChange'](_0x3c5324['buffer']['batch'],_0x117940=>{_0x3c5324['buffer']['lock'](),_0x117940['setSelection'](_0x117940['createRange'](_0x2b6004['end'])),_0x3c5324['buffer']['unlock']();});}),_0x5c74f9['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x5c74f9,'merge'),{'priority':'high'}),_0x5c74f9['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4c1d30,_0x4b06df,_0x790fb6)=>{_0x790fb6['options']['showSuggestionHighlights']&&Fe(_0x5c74f9,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x4c1d30,_0x4b06df,_0x790fb6);},{'priority':'high'}),_0x5c74f9['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x547a8b,_0x2b246b,_0x4c43b5)=>{const _0x227597=_0x4c43b5['mapper']['markerNameToElements'](_0x2b246b['markerName']);if(_0x227597){for(const _0x5c986e of _0x227597)_0x5c986e['is']('uiElement')&&(_0x4c43b5['mapper']['unbindElementFromMarkerName'](_0x5c986e,_0x2b246b['markerName']),_0x4c43b5['writer']['remove'](_0x5c986e));}},{'priority':'high'});}}class W extends _0x525fe{['afterInit'](){const _0x1b07e7=this['editor'];if(!_0x1b07e7['plugins']['has']('ListEditing'))return;const _0x4d3925=_0x1b07e7['locale'],_0x13d40f=_0x1b07e7['plugins']['get']('TrackChangesEditing'),_0x4425cb=_0x1b07e7['plugins']['has']('TodoListEditing'),_0x3cb2b5=!!_0x1b07e7['config']['get']('list.multiBlock');function _0x180e07(_0x482dcc){return{'type':'format','content':''+c(_0x4d3925,'*Set\x20format:*\x20%0',_0x482dcc)};}function _0x5cdc5c(_0x1c399c){return{'type':'format','content':''+c(_0x4d3925,'*Remove\x20format:*\x20%0',_0x1c399c)};}_0x13d40f['enableDefaultAttributesIntegration']('numberedList'),_0x13d40f['enableDefaultAttributesIntegration']('bulletedList'),_0x13d40f['enableDefaultAttributesIntegration']('customNumberedList'),_0x13d40f['enableDefaultAttributesIntegration']('customBulletedList'),_0x13d40f['enableDefaultAttributesIntegration']('indentList'),_0x13d40f['enableDefaultAttributesIntegration']('outdentList'),_0x13d40f['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x13d40f['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x13d40f['registerBlockAttribute']('listItemId'),_0x13d40f['registerBlockAttribute']('listType'),_0x13d40f['registerBlockAttribute']('listIndent'),_0x3cb2b5&&(_0x13d40f['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x13d40f['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4425cb&&(_0x13d40f['enableDefaultAttributesIntegration']('todoList'),_0x13d40f['enableDefaultAttributesIntegration']('checkTodoList'),_0x13d40f['registerBlockAttribute']('todoListChecked'),_0x13d40f['descriptionFactory']['registerDescriptionCallback'](_0x418769=>{const {data:_0x4dae3c}=_0x418769;if(_0x4dae3c&&'todoListChecked'==_0x4dae3c['key'])return{'type':'format','content':_0x4dae3c['newValue']?c(_0x4d3925,'*Check\x20item*'):c(_0x4d3925,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x33890f=>{if(_0x33890f['batch']['isUndo'])return!0x1;let _0x403ae6=!0x1;const _0x3fcccf=_0x13d40f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x259c66=>'todoListChecked'===_0x13d40f['_getAttributeKey'](_0x259c66));for(const _0x19ee7c of _0x3fcccf){'todo'!=_0x19ee7c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x13d40f['_findSuggestions'](_0x19ee7c['getFirstRange'](),'attribute')['find'](_0x3381b7=>'listType'===_0x13d40f['_getAttributeKey'](_0x3381b7['suggestion']))||(_0x33890f['removeMarker'](_0x19ee7c['getFirstMarker']()),_0x403ae6=!0x0));}return _0x403ae6;})),_0x13d40f['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x4d3925,'FORMAT_INDENT'));const _0x4b7824={'type':'format','content':''};_0x13d40f['descriptionFactory']['registerDescriptionCallback'](_0x54ece3=>{const {data:_0x1e8784}=_0x54ece3;if(!_0x1e8784||'listType'!=_0x1e8784['key'])return;let _0x1bb9be=_0x54ece3['head'];for(;_0x1bb9be;){if(_0x1bb9be['data']&&(('listStyle'==_0x1bb9be['data']['key']||'listMarkerStyle'==_0x1bb9be['data']['key'])&&(_0x1bb9be['data']['newValue']&&'default'!=_0x1bb9be['data']['newValue']||'default'!=_0x1bb9be['data']['oldValue']&&!_0x1e8784['newValue'])||!_0x3cb2b5&&_0x1bb9be['data']['key']==u))return _0x4b7824;_0x1bb9be=_0x1bb9be['next'];}if(null==_0x1e8784['newValue'])switch(_0x1e8784['oldValue']){case'bulleted':return _0x5cdc5c(c(_0x4d3925,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5cdc5c(c(_0x4d3925,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5cdc5c(c(_0x4d3925,'ELEMENT_TODO_LIST'));}switch(_0x1e8784['newValue']){case'bulleted':return _0x180e07(c(_0x4d3925,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x180e07(c(_0x4d3925,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x180e07(c(_0x4d3925,'ELEMENT_TODO_LIST'));}}),_0x13d40f['descriptionFactory']['registerDescriptionCallback'](_0xea2de6=>{const {data:_0x4f5c7f}=_0xea2de6;if(_0x4f5c7f&&'listIndent'==_0x4f5c7f['key'])return null==_0x4f5c7f['newValue']||null==_0x4f5c7f['oldValue']&&0x0==_0x4f5c7f['newValue']?_0x4b7824:void 0x0;}),_0x13d40f['descriptionFactory']['registerDescriptionCallback'](_0xfce8d7=>{if('attribute'!=_0xfce8d7['type'])return;const {data:_0x4f32cc}=_0xfce8d7;if(!_0x4f32cc||'listItemId'!=_0x4f32cc['key'])return;const _0x28843c=Te(_0xfce8d7);return'newValue'==_0x28843c?{'type':'format','content':c(_0x4d3925,'*Merge:*\x20list\x20item')}:'oldValue'==_0x28843c?{'type':'format','content':c(_0x4d3925,'*Split:*\x20list\x20item')}:_0x4b7824;}),_0x1b07e7['model']['document']['registerPostFixer'](_0x2e858d=>this['listItemIdFixer'](_0x2e858d)),_0x1b07e7['model']['document']['registerPostFixer'](_0xfab949=>this['noTrackChangesFixer'](_0xfab949)),_0x1b07e7['model']['document']['on']('change:data',(_0x2b7a91,_0x188c37)=>{if(_0x188c37['isUndo']||!_0x188c37['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x46c773){if(_0x46c773['batch']['isUndo']||!_0x46c773['batch']['isLocal'])return!0x1;let _0xec525=!0x1;const _0x4480b4=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4ff06e=>_0x4ff06e['data']&&'listItemId'==_0x4ff06e['data']['key'])['filter'](_0x3cfd1a=>_0x3cfd1a['data']['newValue']&&_0x3cfd1a['data']['oldValue']);for(const _0x36ceb8 of _0x4480b4)Te(_0x36ceb8)||(_0x46c773['removeMarker'](_0x36ceb8['getFirstMarker']()),_0xec525=!0x0);return _0xec525;}['noTrackChangesFixer'](_0xfba47c){if(_0xfba47c['batch']['isUndo']||!_0xfba47c['batch']['isLocal'])return!0x1;const _0x3e28b0=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x3e28b0['trackChangesCommand']['value'])return!0x1;let _0x1d3cd3=!0x1;const _0x16dc04=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0xc5b567=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x29e061=>'attribute'==_0x29e061['type'])['filter'](_0x5ead61=>_0x16dc04['includes'](_0x5ead61['attributeKey']));if(0x0==_0xc5b567['length'])return _0x1d3cd3;for(const _0x3bcb56 of _0xc5b567){const _0x53d8f1=_0x3e28b0['_findSuggestions'](_0x3bcb56['range'],'attribute')['filter'](_0x4ba434=>!_0x4ba434['meta']['isNextTo'])['map'](_0x56dcad=>_0x56dcad['suggestion'])['filter'](_0x585c56=>{const _0x41dcbb=_0x3e28b0['_getAttributeKey'](_0x585c56);return _0x16dc04['includes'](_0x41dcbb);});if(_0x53d8f1['length']){for(const _0x3f44e0 of _0x53d8f1)_0xfba47c['removeMarker'](_0x3f44e0['getFirstMarker']());_0x1d3cd3=!0x0;}}return _0x1d3cd3;}['assureChains'](){const _0x2d7acc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x38d72e=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x5e07a7;const _0x3b7fef=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x35c8da=>{if(_0x35c8da['data']['oldRange']||!_0x35c8da['data']['newRange'])return null;if(!_0x35c8da['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x24b733}=_0x2d7acc['_splitMarkerName'](_0x35c8da['name']);if(!_0x2d7acc['hasSuggestion'](_0x24b733))return null;const _0x2385bb=_0x2d7acc['getSuggestion'](_0x24b733);return _0x38d72e['includes'](_0x2385bb['data']['key']);})['map'](_0x22e0b0=>{const {id:_0x3ef8a1}=_0x2d7acc['_splitMarkerName'](_0x22e0b0['name']),_0x437a50=_0x2d7acc['getSuggestion'](_0x3ef8a1);return _0x5e07a7=_0x437a50['attributes']['groupId'],_0x437a50['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3b7fef['size'])return;const _0x16109a=_0x2d7acc['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x588fea=>'attribute'==_0x588fea['type']&&_0x588fea['data']&&_0x38d72e['includes'](_0x588fea['data']['key'])&&_0x588fea['attributes']['groupId']!=_0x5e07a7)['map'](_0x31ef52=>({'listItem':_0x31ef52['getFirstRange']()['start']['nodeAfter'],'groupId':_0x31ef52['attributes']['groupId']})),_0x12f404=new Set();for(const {groupId:_0x3221c1,listItem:_0x264885}of _0x16109a)_0x3b7fef['has'](_0x264885)&&_0x12f404['add'](_0x3221c1);for(const _0x269246 of _0x2d7acc['getSuggestions']())_0x12f404['has'](_0x269246['attributes']['groupId'])&&_0x269246['setAttribute']('groupId',_0x5e07a7);}['_supportLegacySuggestions'](){const _0x510486=this['editor'],_0x1e54f6=_0x510486['locale'],_0x411067=_0x510486['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x411067['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x5a5311,_0x5c796e){const _0x3bf98a=[];for(let _0xa64d93 of _0x5a5311)_0xa64d93['start']['nodeAfter']===_0xa64d93['end']['parent']&&(_0xa64d93=_0x510486['model']['createRange'](_0x510486['model']['createPositionAt'](_0xa64d93['start']['nodeAfter'],0x0))),_0x3bf98a['push'](_0xa64d93);_0x510486['model']['change'](_0x3127a2=>{const _0x4f07e9=_0x510486['model']['document']['selection'],_0x281335=Array['from'](_0x4f07e9['getRanges']())['map'](_0x375222=>_0x106800['fromRange'](_0x375222));_0x3127a2['setSelection'](_0x3bf98a),_0x510486['commands']['get'](_0x5c796e['commandName'])['refresh'](),_0x5c796e['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x510486['execute'](_0x5c796e['commandName'],..._0x5c796e['commandParams']),_0x3127a2['setSelection'](_0x281335);for(const _0x574b68 of _0x281335)_0x574b68['detach']();});}),_0x411067['descriptionFactory']['registerElementLabel'](function(_0x416d32){const _0x335578=!_0x510486['model']['schema']['isObject'](_0x416d32),_0x2cfa0c=_0x416d32['previousSibling'],_0x4368c6=_0x416d32['nextSibling'],_0xf9ac71=_0x416d32['getAttribute']('listItemId'),_0xfd934f=!_0x2cfa0c||_0x2cfa0c['getAttribute']('listItemId')!==_0xf9ac71,_0x3ba67b=!_0x4368c6||_0x4368c6['getAttribute']('listItemId')!==_0xf9ac71;return _0x335578&&Boolean(_0xf9ac71)&&_0xfd934f&&_0x3ba67b;},_0x421686=>c(_0x1e54f6,'ELEMENT_LIST_ITEM',_0x421686));}['_registerLegacyDescription'](){const _0x15e964=this['editor'],_0x456e60=_0x15e964['locale'];function _0x1dcac0(_0x497d3d){const _0x52cb03=_0x15e964['commands']['get']('bulletedList')['value'],_0x316184=_0x15e964['commands']['get']('numberedList')['value'];return'numberedList'===_0x497d3d?_0x52cb03:_0x316184;}_0x15e964['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x5ef941){if('formatBlock'!=_0x5ef941['type'])return;const {data:_0x36e671}=_0x5ef941;if(!_0x36e671)return;let _0x6418d9,_0x1bd1ec,_0x370f49,_0x4e52c4;switch(_0x36e671['commandName']){case'bulletedList':_0x370f49=_0x36e671['commandParams'][0x0]['forceValue'],_0x4e52c4=_0x1dcac0(_0x36e671['commandName']),_0x6418d9=_0x370f49?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4e52c4&&_0x15e964['config']['get']('list.multiBlock')||(_0x6418d9='*Change\x20to:*\x20%0'),_0x1bd1ec={'type':'format','content':c(_0x456e60,_0x6418d9,c(_0x456e60,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x370f49=_0x36e671['commandParams'][0x0]['forceValue'],_0x4e52c4=_0x1dcac0(_0x36e671['commandName']),_0x6418d9=_0x370f49?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4e52c4&&_0x15e964['config']['get']('list.multiBlock')||(_0x6418d9='*Change\x20to:*\x20%0'),_0x1bd1ec={'type':'format','content':c(_0x456e60,_0x6418d9,c(_0x456e60,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x6418d9='*Indent:*\x20%0',_0x1bd1ec={'type':'format','content':c(_0x456e60,_0x6418d9,c(_0x456e60,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x6418d9=function(_0x86ee54){const _0x3e3ddf=_0x86ee54['getFirstRange']();let _0x4b225d=_0x3e3ddf['start']['nodeAfter'];for(;_0x4b225d&&_0x3e3ddf['containsItem'](_0x4b225d);){if(_0x4b225d['getAttribute']('listIndent')>0x0)return!0x1;_0x4b225d=_0x4b225d['nextSibling'];}return!0x0;}(_0x5ef941)?c(_0x456e60,'*Format:*\x20remove\x20from\x20%0',c(_0x456e60,function(_0x29bac4){return'ELEMENT_'+_0x29bac4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5ef941))):c(_0x456e60,'*Outdent:*\x20%0',c(_0x456e60,'ELEMENT_LIST_ITEM')),_0x1bd1ec={'type':'format','content':_0x6418d9};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x36e671['multipleBlocks']&&(_0x6418d9='*Merge:*\x20%0',_0x1bd1ec={'type':'deletion','content':c(_0x456e60,_0x6418d9,c(_0x456e60,'ELEMENT_LIST_ITEM'))});}return _0x1bd1ec;});}}function Te(_0x4d8f92){let _0x450d3d=_0x4d8f92['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x450d3d;){const _0x11c94d=_0x450d3d['getAttribute']('listItemId');if(!_0x11c94d)return!0x1;if(_0x11c94d==_0x4d8f92['data']['newValue'])return'newValue';if(_0x11c94d==_0x4d8f92['data']['oldValue'])return'oldValue';_0x450d3d=_0x450d3d['previousSibling'];}return!0x1;}class Se extends _0x525fe{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0xb69db1=this['editor']['config']['get']('list.properties'),_0x29c0b2=this['editor']['plugins']['get']('TrackChangesEditing');_0xb69db1['styles']&&(_0x29c0b2['enableDefaultAttributesIntegration']('listStyle'),_0x29c0b2['registerBlockAttribute']('listStyle')),_0xb69db1['reversed']&&(_0x29c0b2['enableDefaultAttributesIntegration']('listReversed'),_0x29c0b2['registerBlockAttribute']('listReversed')),_0xb69db1['startIndex']&&(_0x29c0b2['enableDefaultAttributesIntegration']('listStart'),_0x29c0b2['registerBlockAttribute']('listStart'));const _0x3b017c={'type':'format','content':''};_0x29c0b2['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x53d56b=this['editor']['locale'];_0x29c0b2['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x53d56b,'FORMAT_LIST_REVERSED')),_0x29c0b2['descriptionFactory']['registerDescriptionCallback'](_0x2da5a4=>{const {data:_0x19d36c}=_0x2da5a4;if(_0x19d36c&&'listReversed'==_0x19d36c['key'])return null==_0x19d36c['newValue']||0x0==_0x19d36c['newValue']&&null==_0x19d36c['oldValue']?_0x3b017c:void 0x0;}),_0x29c0b2['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x53d56b,'FORMAT_LIST_START')),_0x29c0b2['descriptionFactory']['registerDescriptionCallback'](_0x560121=>{const {data:_0x521cc2}=_0x560121;if(_0x521cc2&&'listStart'==_0x521cc2['key'])return null==_0x521cc2['newValue']||0x1==_0x521cc2['newValue']&&null==_0x521cc2['oldValue']?_0x3b017c:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x406023=>{if(_0x406023['batch']['isUndo'])return!0x1;let _0x3b3657=!0x1;const _0x551100=_0x29c0b2['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x70b59d=>{const _0x2f346e=_0x29c0b2['_getAttributeKey'](_0x70b59d);return'listStart'==_0x2f346e||'listReversed'==_0x2f346e;});for(const _0x1a5167 of _0x551100){const _0x5bfe38=_0x1a5167['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x5bfe38||'customNumbered'==_0x5bfe38)continue;_0x29c0b2['_findSuggestions'](_0x1a5167['getFirstRange'](),'attribute')['find'](_0x1e74ac=>'listType'==_0x29c0b2['_getAttributeKey'](_0x1e74ac['suggestion']))||(_0x406023['removeMarker'](_0x1a5167['getFirstMarker']()),_0x3b3657=!0x0);}return _0x3b3657;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x18664f){const _0x2d9743=this['editor']['locale'],{data:_0x3d5aa6}=_0x18664f,_0xfe1a70={'type':'format','content':''};if(!_0x3d5aa6||'listStyle'!=_0x3d5aa6['key'])return;if(!_0x3d5aa6['oldValue'])return'default'==_0x3d5aa6['newValue']?_0xfe1a70:{'type':'format','content':''+c(_0x2d9743,'*Set\x20format:*\x20%0',c(_0x2d9743,this['_getTranslationKeyForListStyle'](_0x3d5aa6['newValue'])))};if(!_0x3d5aa6['newValue']){if('default'==_0x3d5aa6['oldValue'])return _0xfe1a70;let _0xf0dab9=_0x18664f['head'];for(;_0xf0dab9;){if(_0xf0dab9['data']&&'listType'==_0xf0dab9['data']['key']&&_0xf0dab9['data']['newValue'])return _0xfe1a70;_0xf0dab9=_0xf0dab9['next'];}return{'type':'format','content':''+c(_0x2d9743,'*Remove\x20format:*\x20%0',c(_0x2d9743,this['_getTranslationKeyForListStyle'](_0x3d5aa6['oldValue'])))};}if('default'!=_0x3d5aa6['newValue'])return{'type':'format','content':''+c(_0x2d9743,'*Set\x20format:*\x20%0',c(_0x2d9743,this['_getTranslationKeyForListStyle'](_0x3d5aa6['newValue'])))};let _0x4ac2c5=_0x18664f['head'];for(;_0x4ac2c5;){if(_0x4ac2c5['data']&&'listType'==_0x4ac2c5['data']['key']&&_0x4ac2c5['data']['newValue']&&_0x4ac2c5['data']['oldValue'])return _0xfe1a70;_0x4ac2c5=_0x4ac2c5['next'];}return{'type':'format','content':c(_0x2d9743,'*Set\x20format:*\x20%0',c(_0x2d9743,'ELEMENT_'+_0x18664f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x58341e=this['editor'],_0x41ff8c=_0x58341e['locale'];_0x58341e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x419834=>{if('formatBlock'!=_0x419834['type'])return;const {data:_0x1c140b}=_0x419834;if(!_0x1c140b)return;let _0x1b738c,_0x443588;switch(_0x1c140b['commandName']){case'listStyle':_0x1b738c='*Change\x20to:*\x20%0',_0x443588={'type':'format','content':c(_0x41ff8c,_0x1b738c,c(_0x41ff8c,this['_getTranslationKeyForListStyle'](_0x1c140b['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1b738c=_0x1c140b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x443588={'type':'format','content':c(_0x41ff8c,_0x1b738c)};break;case'listStart':_0x1b738c='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x443588={'type':'format','content':c(_0x41ff8c,_0x1b738c,_0x1c140b['commandParams'][0x0]['startIndex'])};}return _0x443588;});}['_getTranslationKeyForListStyle'](_0x36fe1d){return'ELEMENT_'+function(_0x31926a){if(_e['includes'](_0x31926a))return'bulleted';if(Re['includes'](_0x31926a))return'numbered';return null;}(_0x36fe1d)['toUpperCase']()+'_LIST_'+_0x36fe1d['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x525fe{['afterInit'](){const _0x217324=this['editor'];_0x217324['commands']['get']('emoji')&&_0x217324['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x525fe{static get['requires'](){return[_0x31691b];}['init'](){const _0x3f0187=this['editor'],_0x45a328=_0x3f0187['plugins']['get']('TrackChangesEditing'),_0x5681bd=_0x3f0187['commands']['get']('enter');_0x45a328['enableCommand']('enter',()=>{_0x3f0187['model']['change'](_0x551f02=>{const _0x1b240d=_0x3f0187['model']['document']['selection'],_0x53ef5c=_0x1b240d['getFirstPosition'](),_0xc61a2b=_0x106800['fromRange'](_0x1b240d['getFirstRange']());if(_0x5681bd['enterBlock'](_0x551f02)){const _0x496376=_0x3f0187['model']['createPositionAt'](_0x53ef5c['parent']['nextSibling'],0x0),_0x4c905b=_0x551f02['createRange'](_0x53ef5c,_0x496376);_0x45a328['markInsertion'](_0x4c905b);}else _0x551f02['setSelection'](_0x551f02['createRange'](_0xc61a2b['end']));_0xc61a2b['detach'](),_0x5681bd['fire']('afterExecute',{'writer':_0x551f02});});}),_0x3f0187['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x3f0187,'split'),{'priority':'high'}),_0x3f0187['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x288736,_0x58975e,_0x15e6d3)=>{const _0x211512=_0x15e6d3['mapper']['markerNameToElements'](_0x58975e['markerName']);if(_0x211512){for(const _0x755c80 of _0x211512)_0x755c80['hasClass']('ck-suggestion-marker-split')&&(_0x15e6d3['mapper']['unbindElementFromMarkerName'](_0x755c80,_0x58975e['markerName']),_0x15e6d3['writer']['remove'](_0x755c80));}},{'priority':'high'}),_0x3f0187['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3970e1,_0x7179a6,_0x33e1d7)=>{_0x33e1d7['options']['showSuggestionHighlights']&&Fe(_0x3f0187,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x3970e1,_0x7179a6,_0x33e1d7);},{'priority':'high'});}}class Z extends _0x525fe{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x2d7896=this['editor']['plugins']['get']('TrackChangesEditing');_0x2d7896['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x2d7896['enableCommand']('findNext'),_0x2d7896['enableCommand']('findPrevious'),_0x2d7896['enableCommand']('replace'),_0x2d7896['enableCommand']('replaceAll');}['handleFindCommand'](_0xad3e99,_0x196063,_0x532225={}){const _0x196902=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0xad3e99(_0x318ad1=>{let _0x244c74=('string'==typeof _0x196063?_0x196902['findByTextCallback'](_0x196063,_0x532225):_0x196063)(_0x318ad1);Array['isArray'](_0x244c74)&&(_0x244c74={'results':_0x244c74,'searchText':'string'==typeof _0x196063?_0x196063:''});const _0x19961b=_0x244c74['results']['filter'](_0x48f297=>!0x1===this['_isInDeletionRange'](_0x48f297,_0x318ad1['item']));return{..._0x244c74,'results':_0x19961b};},_0x532225);}['_isInDeletionRange'](_0x3c2c27,_0x37f41f){const _0x1ae0e6=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x37f41f,_0x3c2c27['start']),this['editor']['model']['createPositionAt'](_0x37f41f,_0x3c2c27['end']));for(const _0x561444 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1ae0e6['getIntersection'](_0x561444['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 _0x525fe{['afterInit'](){const _0x10e4cf=this['editor']['locale'],_0x5af5d1=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x43a628,commandName:_0x5da917}of ro)this['editor']['plugins']['has'](_0x43a628)&&(_0x5af5d1['enableDefaultAttributesIntegration'](_0x5da917),_0x5af5d1['registerInlineAttribute'](_0x5da917));_0x5af5d1['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x10e4cf,'FORMAT_FONT_SIZE')),_0x5af5d1['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x10e4cf,'FORMAT_FONT_FAMILY')),_0x5af5d1['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x10e4cf,'FORMAT_FONT_COLOR')),_0x5af5d1['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x10e4cf,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1ff320=this['editor'],_0x22e7f2=_0x1ff320['locale'];_0x1ff320['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56ce88=>{const _0x58a5ec=_0x22e7f2['t'];if('formatInline'!=_0x56ce88['type'])return;const {data:_0x393edd}=_0x56ce88;if(null!=_0x393edd){if('fontSize'==_0x393edd['commandName']){const _0x5b1de8=_0x393edd['commandParams'][0x0]['value'];if(_0x5b1de8){const _0x5b74bd=_0x58a5ec(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0xd01822=>_0xd01822['model']==_0x5b1de8)['title'])['toLowerCase']();return{'type':'format','content':c(_0x22e7f2,'*Set\x20font\x20size:*\x20%0',_0x5b74bd)};}return{'type':'format','content':c(_0x22e7f2,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x393edd['commandName']){const _0x32ca3a=_0x393edd['commandParams'][0x0]['value'];return _0x32ca3a?{'type':'format','content':c(_0x22e7f2,'*Set\x20font\x20family:*\x20%0',_0x32ca3a)}:{'type':'format','content':c(_0x22e7f2,'*Reset\x20font\x20family*')};}if('fontColor'==_0x393edd['commandName']){const _0x4991d9=_0x393edd['commandParams'][0x0]['value'];if(_0x4991d9){const _0x2dabc2=_0x5bfd28(this['editor']['config']['get']('fontColor.colors'))['find'](_0x566073=>_0x566073['model']==_0x4991d9);let _0x372fb6=_0x4991d9,_0x1637a0='';return _0x2dabc2&&(_0x372fb6=_0x2dabc2['label'],_0x1637a0=_0x58a5ec(_0x372fb6)['toLowerCase']()),{'type':'format','content':c(_0x22e7f2,'*Set\x20font\x20color:*\x20%0',_0x1637a0)['trim'](),'color':{'value':_0x4991d9,'title':_0x1637a0||_0x372fb6}};}return{'type':'format','content':c(_0x22e7f2,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x393edd['commandName']){const _0x36666a=_0x393edd['commandParams'][0x0]['value'];if(_0x36666a){const _0x1da8a9=_0x5bfd28(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x173896=>_0x173896['model']==_0x36666a);let _0x1ccd12=_0x36666a,_0x54cacd='';return _0x1da8a9&&(_0x1ccd12=_0x1da8a9['label'],_0x54cacd=_0x58a5ec(_0x1ccd12)['toLowerCase']()),{'type':'format','content':c(_0x22e7f2,'*Set\x20font\x20background\x20color:*\x20%0',_0x54cacd)['trim'](),'color':{'value':_0x36666a,'title':_0x54cacd||_0x1ccd12}};}return{'type':'format','content':c(_0x22e7f2,'*Reset\x20font\x20background\x20color*')};}}});}}class it extends _0x525fe{['afterInit'](){const _0xc9cf0f=this['editor'],_0x1789e3=_0xc9cf0f['plugins']['get']('TrackChangesEditing'),_0x210fb5=_0xc9cf0f['commands']['get']('copyFormat'),_0x2a6feb=_0xc9cf0f['commands']['get']('pasteFormat');_0x210fb5&&_0x2a6feb&&(_0x1789e3['enableDefaultAttributesIntegration']('pasteFormat'),_0x1789e3['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x12d6d1=this['editor'],_0xfbdef7=_0x12d6d1['locale'];_0x12d6d1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x415f0b=>{if('formatBlock'!=_0x415f0b['type']&&'formatInline'!=_0x415f0b['type'])return;const {data:_0x19b287}=_0x415f0b;if(_0x19b287&&'pasteFormat'===_0x19b287['commandName']){const _0x40d22c=[],_0x572e26=_0x19b287['commandParams'][0x0];for(const [_0x5850bf,_0x37be40]of Object['entries'](_0x572e26))_0x40d22c['push'](so(_0x12d6d1,_0x5850bf,_0x37be40));return _0x40d22c['length']?{'type':'format','content':c(_0xfbdef7,'*Set\x20format\x20to:*\x20%0',_0x40d22c['join'](',\x20'))}:{'type':'format','content':c(_0xfbdef7,'*Remove\x20all\x20formatting*')};}});}}function so(_0x5d98ca,_0x2d1bfe,_0x20d3bb){const _0x2e604c=_0x5d98ca['locale']['t'],_0x4f5080=_0x2d1bfe['split'](/(?=[A-Z])/)['join']('\x20'),_0x4d47a3=_0x2e604c(_0x4f5080['charAt'](0x0)['toUpperCase']()+_0x4f5080['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x20d3bb)return _0x4d47a3;if('fontColor'===_0x2d1bfe||'fontBackgroundColor'===_0x2d1bfe){const _0x25b214=_0x5bfd28(_0x5d98ca['config']['get']('fontColor.colors'))['find'](_0x5b0e2b=>_0x5b0e2b['model']==_0x20d3bb);return _0x4d47a3+'\x20('+(_0x25b214?_0x2e604c(_0x25b214['label'])['toLowerCase']():_0x20d3bb)+')';}if('fontSize'===_0x2d1bfe&&isNaN(parseFloat(_0x20d3bb))){const _0x1a8151=_0x5d98ca['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x5d98ca['config']['get']('fontSize.options'))['find'](_0x5b8949=>_0x5b8949['model']==_0x20d3bb);return _0x4d47a3+'\x20('+(_0x1a8151?_0x2e604c(_0x1a8151['title'])['toLowerCase']():_0x20d3bb)+')';}return _0x4d47a3+'\x20('+_0x20d3bb+')';}class et extends _0x525fe{['_headingOptions'];['afterInit'](){const _0x49ae83=this['editor'];if(!_0x49ae83['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x49ae83['config']['get']('heading.options');const _0x54bafd=_0x49ae83['locale'],_0x3e71b7=_0x49ae83['plugins']['get']('TrackChangesEditing');_0x3e71b7['enableDefaultAttributesIntegration']('heading');for(const _0x36508b of this['_headingOptions'])'paragraph'!=_0x36508b['model']&&_0x3e71b7['descriptionFactory']['registerElementLabel'](_0x36508b['model'],_0x4671a0=>{const _0x2b8043=this['_getHeadingLevel'](_0x36508b['model']);return null!==_0x2b8043?_0x58c0b1(_0x4671a0,_0x2b8043):_0x693a31(_0x4671a0,_0x36508b['title']);});function _0x58c0b1(_0x1a9c74,_0x4d48f1){return c(_0x54bafd,'ELEMENT_HEADING',[_0x1a9c74,_0x4d48f1]);}function _0x693a31(_0x1941d1,_0x1ef19d){return c(_0x54bafd,'ELEMENT_HEADING_CUSTOM',[_0x1941d1,_0x1ef19d]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e200c=this['editor'],_0x13ac41=_0x5e200c['locale'];function _0x2b247e(_0x4af2de,_0x5dde1c){return c(_0x13ac41,'ELEMENT_HEADING_CUSTOM',[_0x4af2de,_0x5dde1c]);}_0x5e200c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x9e78d8=>{if('formatBlock'!=_0x9e78d8['type'])return;const {data:_0x11babc}=_0x9e78d8;if(_0x11babc&&'heading'==_0x11babc['commandName']){const _0x3abc30=_0x11babc['commandParams'][0x0]['value'],_0x5367a2=this['_getHeadingLevel'](_0x3abc30);if(null!==_0x5367a2)return{'type':'format','content':c(_0x13ac41,'*Change\x20to:*\x20%0',(_0x376553=0x1,_0x5c4d6c=_0x5367a2,c(_0x13ac41,'ELEMENT_HEADING',[_0x376553,_0x5c4d6c])))};const _0x22c3e0=this['_headingOptions']['find'](_0x2298ef=>_0x2298ef['model']===_0x3abc30)['title'];return{'type':'format','content':c(_0x13ac41,'*Change\x20to:*\x20%0',_0x2b247e(0x1,_0x22c3e0))};}var _0x376553,_0x5c4d6c;});}['_getHeadingLevel'](_0x72ac0b){const _0x52114e=_0x72ac0b['match'](/^heading(\d+)/);if(_0x52114e)return _0x52114e[0x1];const _0x183638=this['_headingOptions']?.['find'](_0x58d445=>_0x58d445['model']==_0x72ac0b);if(_0x183638&&_0x183638['view']){const _0x5cb452=_0x183638['view'],_0x36a85c=(_0x5cb452['name']??_0x5cb452)['match'](/^h(\d+)/);if(_0x36a85c)return _0x36a85c[0x1];}return null;}}class nt extends _0x525fe{['afterInit'](){const _0x1b1c1e=this['editor'];if(!_0x1b1c1e['plugins']['has']('HighlightEditing'))return;const _0x5ed263=_0x1b1c1e['plugins']['get']('TrackChangesEditing'),_0x43b263=_0x1b1c1e['locale'];_0x5ed263['enableDefaultAttributesIntegration']('highlight'),_0x5ed263['registerInlineAttribute']('highlight'),_0x5ed263['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x43b263,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4844ef=this['editor'],_0x43a1fb=_0x4844ef['locale'];_0x4844ef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc81a06=>{if('formatInline'!=_0xc81a06['type'])return;const {data:_0x257c50}=_0xc81a06;if(_0x257c50&&'highlight'==_0x257c50['commandName']){const _0x3d1e0f=_0x43a1fb['t'],_0x54b0dd=_0x257c50['commandParams'][0x0]['value'];if(_0x54b0dd){const _0x11237e=_0x4844ef['config']['get']('highlight.options')['find'](_0x2492c6=>_0x2492c6['model']==_0x54b0dd),_0x5d42fb=_0x3d1e0f(_0x11237e['title'])['toLowerCase']();return{'type':'format','content':c(_0x43a1fb,'*Set\x20highlight:*\x20%0',_0x5d42fb),'color':{'value':_0x11237e['color'],'title':_0x11237e['title']}};}return{'type':'format','content':c(_0x43a1fb,'*Remove\x20highlight*',c(_0x43a1fb,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x525fe{['afterInit'](){const _0x4caea4=this['editor'];if(!_0x4caea4['plugins']['has']('HorizontalLineEditing'))return;_0x4caea4['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x12239d=_0x4caea4['plugins']['get']('TrackChangesEditing'),_0x327f96=_0x4caea4['locale'];_0x12239d['descriptionFactory']['registerElementLabel']('horizontalLine',_0x698714=>c(_0x327f96,'ELEMENT_HORIZONTAL_LINE',_0x698714)),_0x4caea4['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x592229,{writer:_0x429205,options:_0x312ce0})=>{if(!_0x312ce0['showSuggestionHighlights'])return null;const _0x4c95f3=_0x429205['createContainerElement']('div'),_0x102472=_0x429205['createEmptyElement']('hr');return _0x429205['addClass']('ck-horizontal-line',_0x4c95f3),_0x429205['insert'](_0x429205['createPositionAt'](_0x4c95f3,0x0),_0x102472),_0x4c95f3;},'converterPriority':'high'});}}class ot extends _0x525fe{['afterInit'](){const _0x37265b=this['editor'];if(!_0x37265b['plugins']['has']('HtmlEmbed'))return;const _0x24f8da=_0x37265b['plugins']['get']('TrackChangesEditing'),_0x1c9de2=_0x37265b['locale'];_0x24f8da['descriptionFactory']['registerElementLabel']('rawHtml',_0x458782=>c(_0x1c9de2,'ELEMENT_HTML_EMBED',_0x458782)),_0x24f8da['enableDefaultAttributesIntegration']('htmlEmbed'),_0x24f8da['registerBlockAttribute']('value'),_0x24f8da['descriptionFactory']['registerDescriptionCallback'](_0x115e19=>{if('attribute'!=_0x115e19['type'])return;const {data:_0x292c41}=_0x115e19;if(_0x292c41&&'value'==_0x292c41['key']&&_0x115e19['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x5600e7=c(_0x1c9de2,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x1c9de2,'*Change\x20%0\x20content*',_0x5600e7)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x383c6f=this['editor'],_0x39383e=_0x383c6f['locale'];_0x383c6f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x132b02=>{if('formatBlock'!=_0x132b02['type'])return;const {data:_0x36a838}=_0x132b02;if(_0x36a838&&'htmlEmbed'==_0x36a838['commandName']){const _0x666eec=c(_0x39383e,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x39383e,'*Change\x20%0\x20content*',_0x666eec)};}});}}class rt extends _0x525fe{['afterInit'](){const _0x2ce6ea=this['editor'];if(!_0x2ce6ea['plugins']['has']('ImageEditing'))return;const _0x2b548d=_0x2ce6ea['plugins']['get']('TrackChangesEditing'),_0x5416fa=_0x2ce6ea['plugins']['get']('ImageUtils'),_0x2082df=_0x2ce6ea['locale'];_0x2b548d['enableCommand']('insertImage'),_0x2b548d['descriptionFactory']['registerElementLabel']('imageBlock',_0x425d16=>c(_0x2082df,'ELEMENT_IMAGE',_0x425d16)),_0x2b548d['descriptionFactory']['registerElementLabel']('imageInline',_0x5800bd=>c(_0x2082df,'ELEMENT_INLINE_IMAGE',_0x5800bd)),_0x2b548d['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x2082df,'ELEMENT_CAPTION')),_0x2ce6ea['plugins']['has']('ImageUploadEditing')&&_0x2b548d['enableCommand']('uploadImage'),_0x2ce6ea['plugins']['has']('ImageBlockEditing')&&_0x2ce6ea['plugins']['has']('ImageInlineEditing')&&(_0x2b548d['enableCommand']('imageTypeInline',(_0xdfe1bd,_0x297347)=>{const _0x431599=_0x5416fa['getClosestSelectedImageElement'](_0x2ce6ea['model']['document']['selection']);_0x2ce6ea['model']['change'](()=>{_0x2b548d['markBlockFormat'](_0x431599,{'commandName':'imageTypeInline','commandParams':[_0x297347]},[],'convertBlockImageToInline');});}),_0x2b548d['enableCommand']('imageTypeBlock',(_0x49ac3c,_0x29147a)=>{_0x2ce6ea['model']['change'](_0x2db559=>{let _0xbdb8e4=_0x5416fa['getClosestSelectedImageElement'](_0x2ce6ea['model']['document']['selection']),_0x1c7d80=_0x2db559['createRangeOn'](_0xbdb8e4);const _0x749921=_0x2e903f['fromPosition'](_0x1c7d80['start'],'toPrevious'),_0x36f2c9=_0x2e903f['fromPosition'](_0x1c7d80['end'],'toNext');_0x2b548d['forceDefaultExecution'](()=>_0x49ac3c(_0x29147a)),_0xbdb8e4=_0x5416fa['getClosestSelectedImageElement'](_0x2ce6ea['model']['document']['selection']),_0x1c7d80=_0x2db559['createRangeOn'](_0xbdb8e4);const _0x37f47c=_0x2db559['createRange'](_0x749921,_0x36f2c9);_0x749921['detach'](),_0x36f2c9['detach'](),_0x2b548d['markBlockFormat'](_0xbdb8e4,{'commandName':'imageTypeInline','commandParams':[_0x29147a]},[],'convertInlineImageToBlock'),_0x37f47c['start']['isBefore'](_0x1c7d80['start'])&&_0x2b548d['markInsertion'](_0x2db559['createRange'](_0x37f47c['start'],_0x1c7d80['start']),'convertInlineImageToBlock'),_0x1c7d80['end']['isBefore'](_0x37f47c['end'])&&_0x2b548d['markInsertion'](_0x2db559['createRange'](_0x1c7d80['end'],_0x37f47c['end']),'convertInlineImageToBlock');});}),_0x2b548d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x2b548d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x2b548d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x2b548d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x2b548d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x2b548d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x2c0fdb])=>{const _0x4d3220=_0x2b548d['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3d00aa=_0x2c0fdb['start'],_0x6c5112=_0x2c0fdb['end'];const _0x3fe84e=_0x2ce6ea['model']['schema']['getNearestSelectionRange'](_0x3d00aa,'backward'),_0x3316c4=_0x2ce6ea['model']['schema']['getNearestSelectionRange'](_0x6c5112,'forward');_0x3fe84e['isCollapsed']&&(_0x3d00aa=_0x3fe84e['start']),_0x3316c4['isCollapsed']&&(_0x6c5112=_0x3316c4['end']),_0x4d3220([_0x2ce6ea['model']['createRange'](_0x3d00aa,_0x6c5112)]);}),_0x2b548d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x4f9e60),_0x2b548d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x4f9e60)),_0x2ce6ea['plugins']['has']('ImageCaptionEditing')&&(_0x2b548d['enableCommand']('toggleImageCaption',(_0x290057,_0x3078fc)=>{const _0x4b217a=_0x2ce6ea['plugins']['get']('ImageCaptionUtils');let _0x2bdde7=_0x5416fa['getClosestSelectedImageElement'](_0x2ce6ea['model']['document']['selection']),_0x488a24=_0x4b217a['getCaptionFromImageModelElement'](_0x2bdde7);_0x2ce6ea['model']['change'](()=>{if(_0x488a24)return void _0x2b548d['markDeletion'](_0x2ce6ea['model']['createRangeOn'](_0x488a24));const _0x3a5778=_0x5416fa['isBlockImage'](_0x2bdde7);_0x290057(_0x3078fc),_0x2bdde7=_0x5416fa['getClosestSelectedImageElement'](_0x2ce6ea['model']['document']['selection']),_0x488a24=_0x4b217a['getCaptionFromImageModelElement'](_0x2bdde7),_0x2b548d['markInsertion'](_0x2ce6ea['model']['createRangeOn'](_0x488a24),_0x3a5778?null:'imageCaption');});}),_0x2b548d['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x4f9e60));const _0x5874e8=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2d4bc7(_0x4793bb,_0x138e6b){const _0x170380=_0x5874e8['findIndex'](({type:_0x2aae2b,subType:_0x3a20e9})=>_0x4793bb['type']==_0x2aae2b&&_0x4793bb['subType']==_0x3a20e9),_0x3fd6cf=_0x5874e8['findIndex'](({type:_0x5c4300,subType:_0x2d678c})=>_0x138e6b['type']==_0x5c4300&&_0x138e6b['subType']==_0x2d678c);if(_0x170380<0x0||_0x3fd6cf<0x0)return!0x1;const _0x468e50=_0x4793bb['getFirstRange'](),_0x4c4203=_0x138e6b['getFirstRange']();if((0x0==_0x170380||0x1==_0x170380)&&0x2==_0x3fd6cf&&_0x468e50['isIntersecting'](_0x4c4203))return!0x0;if(0x2==_0x170380&&0x3==_0x3fd6cf){const _0x2e86ff=_0x2b548d['_findSuggestions'](_0x468e50,'insertion')['filter'](({suggestion:_0x160c86,meta:_0x3f634b})=>_0x3f634b['isOwn']&&'convertInlineImageToBlock'==_0x160c86['subType']);if(_0x2e86ff['length']>0x1&&_0x4c4203['end']['isEqual'](_0x468e50['start']))return!0x0;if(0x1==_0x2e86ff['length']&&(_0x468e50['start']['isEqual'](_0x4c4203['end'])||_0x468e50['end']['isEqual'](_0x4c4203['start'])))return!0x0;}if(0x3==_0x170380&&0x3==_0x3fd6cf&&_0x468e50['start']['isBefore'](_0x4c4203['start'])){const _0x56e718=_0x468e50['end']['nodeAfter'],_0x173ce9=_0x4c4203['start']['nodeBefore'];return _0x5416fa['isBlockImage'](_0x56e718)&&_0x56e718===_0x173ce9;}return!0x1;}function _0x4f9e60(_0x23f776,_0x24d6b8){return _0x2d4bc7(_0x23f776,_0x24d6b8)?[_0x23f776,_0x24d6b8]:_0x2d4bc7(_0x24d6b8,_0x23f776)?[_0x24d6b8,_0x23f776]:null;}_0x2ce6ea['plugins']['has']('ImageResize')&&(_0x2b548d['enableDefaultAttributesIntegration']('resizeImage'),_0x2b548d['registerBlockAttribute']('resizedWidth'),_0x2b548d['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x2082df,'FORMAT_IMAGE_SIZE'))),_0x2ce6ea['plugins']['has']('ImageTextAlternativeEditing')&&(_0x2b548d['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x2b548d['registerBlockAttribute']('alt')),_0x2ce6ea['plugins']['has']('PictureEditing')&&(_0x2b548d['registerBlockAttribute']('sources'),_0x2b548d['descriptionFactory']['registerDescriptionCallback'](_0x2a0263=>{if('attribute'!=_0x2a0263['type'])return;const {data:_0x1a9d9d}=_0x2a0263;return _0x1a9d9d&&'sources'==_0x1a9d9d['key']?{'type':'format','content':''}:void 0x0;})),_0x2ce6ea['plugins']['has']('ImageSizeAttributes')&&(_0x2b548d['registerBlockAttribute']('width'),_0x2b548d['registerBlockAttribute']('height'),_0x2b548d['descriptionFactory']['registerDescriptionCallback'](_0x106a29=>{if('attribute'!=_0x106a29['type'])return;const {data:_0x5d2eee}=_0x106a29;return!_0x5d2eee||'width'!=_0x5d2eee['key']&&'height'!=_0x5d2eee['key']?void 0x0:{'type':'format','content':''};})),_0x2b548d['descriptionFactory']['registerDescriptionCallback'](_0x51f0ea=>{if(!!_0x5874e8['find'](({type:_0x4c09c0,subType:_0x3bdbc3})=>_0x51f0ea['type']==_0x4c09c0&&_0x51f0ea['subType']==_0x3bdbc3))return _0x51f0ea['previous']?{}:void 0x0;}),_0x2b548d['descriptionFactory']['registerDescriptionCallback'](_0x3f258d=>{if('insertion'==_0x3f258d['type']||'deletion'==_0x3f258d['type']){const _0x10ff69=_0x3f258d['getContainedElement']();if(_0x10ff69&&_0x10ff69['is']('element','caption'))return{'type':'insertion'==_0x3f258d['type']?'addObject':'removeObject','element':_0x10ff69,'quantity':0x1};}}),_0x2b548d['descriptionFactory']['registerDescriptionCallback'](_0x5ab929=>'formatBlock'==_0x5ab929['type']&&'convertInlineImageToBlock'==_0x5ab929['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x5ab929['type']&&'convertBlockImageToInline'==_0x5ab929['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x2b548d['descriptionFactory']['registerDescriptionCallback'](_0x534b4d=>{if('attribute'!=_0x534b4d['type'])return;const {data:_0x33a228}=_0x534b4d;if(!_0x33a228||'alt'!=_0x33a228['key'])return;const _0x40f0c5=_0x33a228['newValue'];return _0x40f0c5?{'type':'format','content':c(_0x2082df,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x40f0c5+'\x22')}:{'type':'format','content':c(_0x2082df,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x37f63f=this['editor'],_0x406490=_0x37f63f['locale'];_0x37f63f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x49d173=>{if('formatBlock'!=_0x49d173['type']&&'formatInline'!=_0x49d173['type'])return;const {data:_0x32eb48}=_0x49d173;if(_0x32eb48){if('imageTextAlternative'==_0x32eb48['commandName']){const _0x4159c2=_0x32eb48['commandParams'][0x0]['newValue'];return _0x4159c2?{'type':'format','content':c(_0x406490,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4159c2+'\x22')}:{'type':'format','content':c(_0x406490,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x32eb48['commandName']){const _0x250f19=_0x32eb48['commandParams'][0x0]['width'];return _0x250f19?{'type':'format','content':c(_0x406490,'*Set\x20image\x20width:*\x20%0',_0x250f19)}:{'type':'format','content':c(_0x406490,'*Reset\x20image\x20width*')};}}});}}class at extends _0x525fe{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x5a2c03=this['editor']['locale'],_0x3b8998=this['editor']['plugins']['get']('TrackChangesEditing');_0x3b8998['enableDefaultAttributesIntegration']('replaceImageSource'),_0x3b8998['registerBlockAttribute']('src'),_0x3b8998['descriptionFactory']['registerDescriptionCallback'](_0x5d9958=>{if('attribute'!=_0x5d9958['type'])return;const {data:_0x2b0c58}=_0x5d9958;return _0x2b0c58&&'src'==_0x2b0c58['key']?_0x2b0c58['newValue']&&_0x2b0c58['oldValue']?{'type':'format','content':c(_0x5a2c03,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x363109=this['editor']['plugins']['get']('TrackChangesEditing');_0x363109['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x363109['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x363109['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x363109['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x335942=this['editor'],_0x5b0a08=_0x335942['locale'];_0x335942['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf917dd=>{if('formatBlock'!=_0xf917dd['type']&&'formatInline'!=_0xf917dd['type'])return;const {data:_0x159221}=_0xf917dd;if(!_0x159221||'replaceImageSource'!=_0x159221['commandName'])return;return{'type':'format','content':c(_0x5b0a08,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x525fe{['afterInit'](){const _0x12f51b=this['editor'];if(!_0x12f51b['plugins']['has']('ImageStyleEditing'))return;const _0x97c058=_0x12f51b['plugins']['get']('TrackChangesEditing'),_0x367a40=_0x12f51b['plugins']['get']('ImageUtils'),_0x3adb9e={};_0x97c058['enableCommand']('imageStyle',(_0x1d5e90,_0x4065c9)=>{const _0xe7079a=_0x12f51b['plugins']['get']('Users')['me'],_0x496a6c=_0x12f51b['commands']['get']('imageStyle');let _0x196ab7=_0x367a40['getClosestSelectedImageElement'](_0x12f51b['model']['document']['selection']),_0x204e3c=_0x12f51b['model']['createRangeOn'](_0x196ab7),_0x4b6450=_0x496a6c['value'];if(_0x4b6450==_0x4065c9['value'])return;const _0x423272={'commandName':'imageStyle','commandParams':[_0x4065c9],'formatGroupId':_0x4f1695()};_0x12f51b['model']['change'](()=>{if(_0x97c058['getSuggestions']()['filter'](_0x236b6a=>_0x236b6a['isInContent']&&_0xe7079a==_0x236b6a['author']&&('formatBlock'==_0x236b6a['type']||'formatInline'==_0x236b6a['type'])&&('imageStylePreApply'==_0x236b6a['subType']||'imageStylePostApply'==_0x236b6a['subType'])&&_0x236b6a['getFirstRange']()['isEqual'](_0x204e3c))['forEach'](_0x35d31c=>_0x97c058['discardSuggestion'](_0x35d31c['head'])),_0x196ab7=_0x367a40['getClosestSelectedImageElement'](_0x12f51b['model']['document']['selection']),_0x204e3c=_0x12f51b['model']['createRangeOn'](_0x196ab7),_0x496a6c['refresh'](),_0x12f51b['commands']['get']('imageTypeInline')['refresh'](),_0x12f51b['commands']['get']('imageTypeBlock')['refresh'](),_0x4b6450=_0x496a6c['value'],_0x4b6450!=_0x4065c9['value'])return _0x367a40['isInlineImage'](_0x196ab7)&&_0x496a6c['shouldConvertImageType'](_0x4065c9['value'],_0x196ab7)?(_0x1d5e90({..._0x4065c9,'setImageSizes':!0x1}),_0x196ab7=_0x367a40['getClosestSelectedImageElement'](_0x12f51b['model']['document']['selection']),void _0x97c058['markBlockFormat'](_0x196ab7,{..._0x423272,'commandReversedParams':[{'value':_0x4b6450||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x367a40['isBlockImage'](_0x196ab7)?_0x97c058['markBlockFormat'](_0x196ab7,_0x423272,[],'imageStylePostApply'):_0x97c058['markInlineFormat'](_0x204e3c,_0x423272,'imageStylePostApply'));});});for(const _0x381fa1 of _0x12f51b['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x3adb9e[_0x381fa1['name']]=_0x381fa1['title']['toLowerCase']();_0x97c058['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x97c058['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x97c058['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x97c058['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4f4d44])=>{_0x367a40['setImageNaturalSizeAttributes'](_0x4f4d44['getContainedElement']());}),_0x97c058['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x5d89fc,_0x43df2a)=>{_0x97c058['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5d89fc,{'commandName':_0x43df2a['commandName'],'commandParams':_0x43df2a['commandReversedParams']});}),_0x97c058['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x1c4662,_0x54983e){if(_0x375c88(_0x1c4662,_0x54983e))return[_0x1c4662,_0x54983e];if(_0x375c88(_0x54983e,_0x1c4662))return[_0x54983e,_0x1c4662];return null;});const _0x8543fa=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x375c88(_0x23af86,_0xe87bff){const _0x183b4f=_0x8543fa['findIndex'](({type:_0x4c1f1a,subType:_0x50283a})=>_0x23af86['type']==_0x4c1f1a&&_0x23af86['subType']==_0x50283a),_0x26522f=_0x8543fa['findIndex'](({type:_0x56c338,subType:_0x22a249})=>_0xe87bff['type']==_0x56c338&&_0xe87bff['subType']==_0x22a249);if(_0x183b4f<0x0||_0x26522f<0x0)return!0x1;const _0x516d95=_0x23af86['getFirstRange'](),_0x42978e=_0xe87bff['getFirstRange']();if((0x0==_0x183b4f||0x1==_0x183b4f)&&0x2==_0x26522f&&_0x516d95['isIntersecting'](_0x42978e))return!0x0;if(0x2==_0x183b4f&&0x3==_0x26522f){const _0x38d517=_0x97c058['_findSuggestions'](_0x516d95,'insertion')['filter'](({suggestion:_0x57f8e1,meta:_0x541c62})=>_0x541c62['isOwn']&&'convertInlineImageToBlock'==_0x57f8e1['subType']);if(_0x38d517['length']>0x1&&_0x42978e['end']['isEqual'](_0x516d95['start']))return!0x0;if(0x1==_0x38d517['length']&&(_0x516d95['start']['isEqual'](_0x42978e['end'])||_0x516d95['end']['isEqual'](_0x42978e['start'])))return!0x0;}if(0x3==_0x183b4f&&0x3==_0x26522f&&_0x516d95['start']['isBefore'](_0x42978e['start'])){const _0x5621c3=_0x516d95['end']['nodeAfter'],_0xd1be15=_0x42978e['start']['nodeBefore'];return _0x367a40['isBlockImage'](_0x5621c3)&&_0x5621c3===_0xd1be15;}return!0x1;}_0x12f51b['model']['document']['registerPostFixer'](()=>{let _0x6e03e0=!0x1;const _0x50287e=Array['from'](_0x12f51b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x462f68,data:_0x4f68fb}of _0x50287e){const {group:_0x223db5,type:_0x43a52e,subType:_0x2c6bd1,id:_0x4b14e5}=_0x97c058['_splitMarkerName'](_0x462f68);if('suggestion'==_0x223db5&&_0x97c058['hasSuggestion'](_0x4b14e5)){if('formatBlock'==_0x43a52e&&('imageStylePreApply'==_0x2c6bd1||'imageStylePostApply'==_0x2c6bd1)){const _0x888894=_0x97c058['getSuggestion'](_0x4b14e5);if(_0x4f68fb['newRange']){const _0x1c876f=_0x888894['getFirstRange']()['getContainedElement']();if(_0x367a40['isBlockImage'](_0x1c876f))continue;_0x97c058['discardSuggestion'](_0x888894),_0x6e03e0=!0x0;}}if('insertion'==_0x43a52e&&'imageCaption'==_0x2c6bd1&&!_0x4f68fb['newRange']){const _0x6012ec=_0x97c058['getSuggestion'](_0x4b14e5);_0x6012ec['next']&&_0x6012ec['next']['isInContent']&&(_0x97c058['discardSuggestion'](_0x6012ec['next']),_0x6e03e0=!0x0);}}}return _0x6e03e0;}),this['_registerLegacyDescription'](_0x3adb9e);}['_registerLegacyDescription'](_0x949919){const _0x574076=this['editor'],_0xca3234=_0x574076['locale'];_0x574076['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x283144=>{if('formatBlock'!=_0x283144['type']&&'formatInline'!=_0x283144['type'])return;const {data:_0x578e5f}=_0x283144;if(!_0x578e5f||'imageStyle'!=_0x578e5f['commandName'])return;const _0x477706=_0x578e5f['commandParams'][0x0]['value'];return _0x201607('side'===_0x477706?c(_0xca3234,'FORMAT_SIDE_IMAGE'):_0x949919[_0x477706]||_0x477706);function _0x201607(_0x27feb9){return{'type':'format','content':c(_0xca3234,'*Format:*\x20%0',_0x27feb9)};}});}}class ut extends _0x525fe{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x5c54d0){super(_0x5c54d0),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0xa3399d=this['editor'],_0x3657d8=_0xa3399d['commands']['get']('importWord'),_0x2d018b=_0xa3399d['commands']['get']('trackChanges');_0x3657d8&&(_0x3657d8['on']('execute',(_0x57db6f,[,_0x2b0b8a])=>{this['_trackChangesValueDuringImport']=_0x2d018b['value'],_0x2b0b8a['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3657d8,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3657d8,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2d018b['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0xa3399d['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x484cca,_0x49bc79){const {suggestions:_0x1d698d}=_0x49bc79,_0x237b85=this['editor']['commands']['get']('trackChanges'),_0x518b3a=_0x237b85['value'];this['_trackChangesValueDuringImport']!==_0x518b3a&&(_0x237b85['execute'](),this['_trackChangesExecuted']=!0x0),_0x1d698d&&_0x1d698d['forEach'](({id:_0x123b1f,type:_0x56668,author:_0x10144f,created_at:_0x17352c})=>{const _0x4c9321={'id':_0x123b1f,'type':_0x56668,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x10144f,'createdAt':_0x17352c?new Date(_0x17352c):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4c9321);});}}class ft extends _0x525fe{['afterInit'](){const _0x218e43=this['editor'],_0x3486e5=_0x218e43['plugins']['get']('TrackChangesEditing');if(_0x218e43['plugins']['has']('IndentEditing')&&(_0x3486e5['enableCommand']('indent'),_0x3486e5['enableCommand']('outdent')),_0x218e43['plugins']['has']('IndentBlock')){for(const _0x1c15c7 of['indentBlock','outdentBlock'])_0x3486e5['enableDefaultAttributesIntegration'](_0x1c15c7);}const _0x60a2c0=_0x218e43['locale'];_0x3486e5['registerBlockAttribute']('blockIndent'),_0x3486e5['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x60a2c0,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x130cb3=this['editor'],_0x30455e=_0x130cb3['locale'],_0x295c7f=_0x130cb3['plugins']['get']('TrackChangesEditing');_0x295c7f['descriptionFactory']['registerDescriptionCallback'](_0xeee097=>{if('formatBlock'!=_0xeee097['type'])return;const {data:_0x10ed26}=_0xeee097;if(!_0x10ed26)return;if('indentBlock'!=_0x10ed26['commandName']&&'outdentBlock'!=_0x10ed26['commandName'])return;const _0xc8b294=_0xeee097['getItems']()[0x0],_0x1dd2ff=_0x295c7f['descriptionFactory']['getItemLabel'](_0xc8b294);return'indentBlock'==_0x10ed26['commandName']?{'type':'format','content':c(_0x30455e,'*Indent:*\x20%0',_0x1dd2ff)}:'outdentBlock'==_0x10ed26['commandName']?{'type':'format','content':c(_0x30455e,'*Outdent:*\x20%0',_0x1dd2ff)}:void 0x0;});}}class ht extends _0x525fe{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class gt extends _0x525fe{['afterInit'](){const _0x4461d7=this['editor'];if(!_0x4461d7['plugins']['has']('LinkEditing'))return;const _0x3cbf8d=_0x4461d7['plugins']['get']('TrackChangesEditing'),_0x9b934e=_0x4461d7['commands']['get']('link');_0x3cbf8d['enableDefaultAttributesIntegration']('link'),_0x3cbf8d['enableDefaultAttributesIntegration']('unlink'),_0x3cbf8d['registerInlineAttribute']('linkHref');for(const _0x3faa6c of _0x9b934e['manualDecorators'])_0x3cbf8d['registerInlineAttribute'](_0x3faa6c['id']),_0x3cbf8d['descriptionFactory']['registerAttributeLabel'](_0x3faa6c['id'],'link\x20('+_0x3faa6c['label']['toLowerCase']()+')');_0x3cbf8d['descriptionFactory']['registerDescriptionCallback'](_0x26c27c=>{if('attribute'!=_0x26c27c['type'])return;const {data:_0x27ce8b}=_0x26c27c;if(!_0x27ce8b||'linkHref'!=_0x27ce8b['key'])return;const _0x3e4720=_0x27ce8b['newValue'],_0x2c796a=_0x4461d7['locale'];return{'type':'format','content':null==_0x3e4720?c(_0x2c796a,'*Remove\x20link*'):c(_0x2c796a,'*Set\x20link:*\x20%0','\x22'+_0x3e4720+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2f488c=this['editor'],_0x413d16=_0x2f488c['locale'];_0x2f488c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x147435=>{if('formatInline'!=_0x147435['type'])return;const {data:_0x5633e6}=_0x147435;if(_0x5633e6){if('link'==_0x5633e6['commandName']){const _0x2e2a88=_0x5633e6['commandParams'][0x0];return{'type':'format','content':c(_0x413d16,'*Set\x20link:*\x20%0','\x22'+_0x2e2a88+'\x22')};}return'unlink'==_0x5633e6['commandName']?{'type':'format','content':c(_0x413d16,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x525fe{['afterInit'](){const _0x40820d=this['editor'],_0x22dba6=_0x40820d['locale'];if(!_0x40820d['plugins']['has']('LegacyListEditing'))return;const _0x5ab0a9=_0x40820d['plugins']['get']('TrackChangesEditing'),_0x70db03=_0x40820d['plugins']['has']('LegacyTodoListEditing');function _0x1f9ba0(_0xd2ff53){return()=>{const _0x5ad772=_0x40820d['model']['document']['selection'],_0x1a162b=_0x40820d['commands']['get'](_0xd2ff53);if(_0x1a162b['value'])return void _0x40820d['execute']('paragraph',{});const _0x3e9571=_0xd2ff53['slice'](0x0,-0x4),_0x42dc38=function(_0x2aea09,_0xa811f5,_0x18e837){let _0x43f574=Array['from'](_0x2aea09)['filter'](_0x462a85=>function(_0x43d0dd,_0x65f0fe){return _0x65f0fe['checkChild'](_0x43d0dd['parent'],'listItem')&&!_0x65f0fe['isObject'](_0x43d0dd);}(_0x462a85,_0x18e837));_0x43f574=_0x43f574['filter'](_0x24e3f7=>!_0x24e3f7['is']('element','listItem')||_0x24e3f7['getAttribute']('listType')!=_0xa811f5);const _0x194a4b=new Set();for(const _0x5013ec of _0x43f574)_0x5013ec['is']('element','listItem')?_0x194a4b['add'](Le(_0x5013ec)):_0x194a4b['add'](_0x5013ec);return Array['from'](_0x194a4b);}(_0x5ad772['getSelectedBlocks'](),_0x3e9571,_0x40820d['model']['schema']);_0x40820d['model']['change'](()=>{for(const _0x563e2d of _0x42dc38)_0x5ab0a9['markBlockFormat'](_0x563e2d,{'commandName':_0xd2ff53,'commandParams':[{'forceValue':!_0x1a162b['value']}],'formatGroupId':'blockName'},Ee(_0x563e2d));});};}function _0x562d2e(_0x2929d9){return()=>{const _0x3321ac=function(_0x415e22){let _0x23d16c=Array['from'](_0x415e22);const _0x1328a0=_0x23d16c['findIndex'](_0x21ae80=>'listItem'!=_0x21ae80['name']);return _0x1328a0>-0x1&&(_0x23d16c=_0x23d16c['slice'](0x0,_0x1328a0)),_0x23d16c;}(_0x40820d['model']['document']['selection']['getSelectedBlocks']()),_0x5ee631=_0x40820d['model']['createRange'](_0x40820d['model']['createPositionAt'](_0x3321ac[0x0],'before'),_0x40820d['model']['createPositionAt'](_0x3321ac[_0x3321ac['length']-0x1],'end'));_0x40820d['model']['change'](()=>{_0x5ab0a9['markBlockFormat'](_0x5ee631,{'commandName':_0x2929d9,'commandParams':[],'formatGroupId':'listIndent'},function(_0x11f2bb){const _0x7070fd=new Set();for(const _0xdbfe52 of _0x11f2bb){let _0xa51508=_0xdbfe52['nextSibling'];for(;_0xa51508&&_0xa51508['getAttribute']('listIndent')>_0xdbfe52['getAttribute']('listIndent');)_0x7070fd['add'](_0xa51508),_0xa51508=_0xa51508['nextSibling'];}return Array['from'](_0x7070fd);}(_0x3321ac));});};}_0x5ab0a9['enableCommand']('numberedList',_0x1f9ba0('numberedList')),_0x5ab0a9['enableCommand']('bulletedList',_0x1f9ba0('bulletedList')),_0x70db03&&_0x5ab0a9['enableCommand']('todoList',_0x1f9ba0('todoList')),_0x5ab0a9['enableCommand']('indentList',_0x562d2e('indentList')),_0x5ab0a9['enableCommand']('outdentList',_0x562d2e('outdentList')),_0x70db03&&_0x5ab0a9['enableCommand']('checkTodoList',()=>{const _0x51b411=_0x40820d['commands']['get']('checkTodoList'),_0x186405=Array['from'](_0x51b411['_selectedElements']);_0x186405['filter'](_0x34a259=>_0x34a259['getAttribute']('todoListChecked')!=_0x51b411['value']),_0x40820d['model']['change'](()=>{for(const _0x3ea8be of _0x186405)_0x5ab0a9['markBlockFormat'](_0x3ea8be,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x51b411['value']}]});});}),_0x5ab0a9['descriptionFactory']['registerElementLabel']('listItem',_0x506fcc=>c(_0x22dba6,'ELEMENT_LIST_ITEM',_0x506fcc)),_0x5ab0a9['descriptionFactory']['registerDescriptionCallback'](_0x4c3f2e=>{if('formatBlock'!=_0x4c3f2e['type']&&'formatInline'!=_0x4c3f2e['type'])return;const {data:_0x2f5545}=_0x4c3f2e;if(_0x2f5545){if('numberedList'==_0x2f5545['commandName']||'bulletedList'==_0x2f5545['commandName']||'todoList'==_0x2f5545['commandName'])switch(_0x2f5545['commandName']['replace']('List','')){case'bulleted':return _0x571dda(c(_0x22dba6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x571dda(c(_0x22dba6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x571dda(c(_0x22dba6,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2f5545['commandName'])return{'type':'format','content':c(_0x22dba6,'*Indent:*\x20%0',c(_0x22dba6,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2f5545['commandName'])return{'type':'format','content':c(_0x22dba6,'*Outdent:*\x20%0',c(_0x22dba6,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2f5545['commandName'])return _0x2f5545['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x22dba6,'*Check\x20item*')}:{'type':'format','content':c(_0x22dba6,'*Uncheck\x20item*')};}function _0x571dda(_0x339ba1){return{'type':'format','content':c(_0x22dba6,'*Change\x20to:*\x20%0',_0x339ba1)};}});}}function Le(_0x138add){const _0x4d4690=_0x138add['getAttribute']('listIndent');if(0x0==_0x4d4690)return _0x138add;let _0x51f50a=_0x138add;for(;_0x138add['previousSibling']&&_0x138add['previousSibling']['is']('element','listItem');){const _0x504d53=_0x138add['previousSibling']['getAttribute']('listIndent');if(_0x504d53==_0x4d4690)_0x51f50a=_0x138add['previousSibling'];else{if(_0x504d53<_0x4d4690)break;}_0x138add=_0x138add['previousSibling'];}return _0x51f50a;}function Ee(_0x19a591){const _0x5ec24c=[];if(_0x19a591['is']('element','listItem')&&_0x19a591['getAttribute']('listIndent')>0x0){let _0x2cf599=_0x19a591['nextSibling'];for(;_0x2cf599&&'listItem'==_0x2cf599['name']&&_0x2cf599['getAttribute']('listIndent')==_0x19a591['getAttribute']('listIndent');)_0x5ec24c['push'](_0x2cf599),_0x2cf599=_0x2cf599['nextSibling'];}return _0x5ec24c;}class Q extends _0x525fe{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x4bbea2=this['editor']['config']['get']('list.properties'),_0x739127=this['editor']['plugins']['get']('TrackChangesEditing');_0x4bbea2['styles']&&_0x739127['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x4bbea2['reversed']&&_0x739127['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x4bbea2['startIndex']&&_0x739127['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x739127['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0xb4609f,_0xee82ea={}){const _0x59ea88=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5aceab=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x59ea88['markMultiRangeBlockFormat'](_0x5aceab,{'commandName':'listStyle','commandParams':[{'type':_0xee82ea['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x2d5a36,_0x181743={}){const _0x3ebe70=this['editor']['plugins']['get']('TrackChangesEditing'),_0x41a757=this['_getSuggestionBlocks'](_0x5dd0ca=>_0x5dd0ca['is']('element','listItem')&&'numbered'===_0x5dd0ca['getAttribute']('listType'));if(_0x41a757['length']<0x1)return;const _0x48c5c0=_0x41a757['map'](_0x170305=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x170305,'before'),this['editor']['model']['createPositionAt'](_0x170305,0x0)));this['editor']['model']['change'](()=>{_0x3ebe70['markMultiRangeBlockFormat'](_0x48c5c0,{'commandName':'listReversed','commandParams':[{'reversed':_0x181743['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3d8482,_0x488d01={}){const _0x216861=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4234c7=this['_getSuggestionBlocks'](_0x28c060=>_0x28c060['is']('element','listItem')&&'numbered'===_0x28c060['getAttribute']('listType'));if(_0x4234c7['length']<0x1)return;const _0x2a7bf9=_0x4234c7['map'](_0xdcb47=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xdcb47,'before'),this['editor']['model']['createPositionAt'](_0xdcb47,0x0)));this['editor']['model']['change'](()=>{_0x216861['markMultiRangeBlockFormat'](_0x2a7bf9,{'commandName':'listStart','commandParams':[{'startIndex':_0x488d01['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5eba1c){if('formatBlock'!=_0x5eba1c['type']&&'formatInline'!=_0x5eba1c['type'])return;const _0x97cedd=this['editor']['locale'],{data:_0x282b04}=_0x5eba1c;if(!_0x282b04)return;let _0x4f060a,_0xebd308;switch(_0x282b04['commandName']){case'listStyle':_0x4f060a='*Change\x20to:*\x20%0',_0xebd308={'type':'format','content':c(_0x97cedd,_0x4f060a,c(_0x97cedd,this['_getTranslationKeyForListStyle'](_0x282b04['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4f060a=_0x282b04['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xebd308={'type':'format','content':c(_0x97cedd,_0x4f060a)};break;case'listStart':_0x4f060a='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xebd308={'type':'format','content':c(_0x97cedd,_0x4f060a,_0x282b04['commandParams'][0x0]['startIndex'])};}return _0xebd308;}['_getSuggestionBlocksForListStyle'](){const _0x4a40d7=this['editor']['plugins']['get']('LegacyListUtils');let _0xa38e67=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0xa38e67[0x0]?.['is']('element','listItem')&&_0xa38e67['unshift'](..._0x4a40d7['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0xa38e67[_0xa38e67['length']-0x1]?.['is']('element','listItem')&&_0xa38e67['push'](..._0x4a40d7['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0xa38e67=[...new Set(_0xa38e67)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0xa38e67=_0xa38e67['filter'](_0x56ec5f=>_0x56ec5f['is']('element','listItem'))),_0xa38e67;}['_getSuggestionBlocks'](_0x5f3abb){const _0x203356=this['editor']['plugins']['get']('LegacyListUtils');let _0x164841=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x5f3abb)['map'](_0x207a2d=>{const _0x20b877=this['editor']['model']['createPositionAt'](_0x207a2d,0x0);return[..._0x203356['getSiblingNodes'](_0x20b877,'backward'),..._0x203356['getSiblingNodes'](_0x20b877,'forward')];})['flat']();return _0x164841=[...new Set(_0x164841)],_0x164841;}['_getTranslationKeyForListStyle'](_0x47fc4f){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x47fc4f)||'default')['toUpperCase']()+'_LIST_'+_0x47fc4f['toUpperCase']()['replace'](/-/g,'_');}}class mt extends _0x525fe{['afterInit'](){const _0x45f634=this['editor'];if(!_0x45f634['plugins']['has']('MediaEmbedEditing'))return;const _0x5c18cd=_0x45f634['plugins']['get']('TrackChangesEditing'),_0x7c31df=_0x45f634['locale'];_0x5c18cd['enableCommand']('mediaEmbed'),_0x5c18cd['descriptionFactory']['registerElementLabel']('media',_0x10fcfb=>c(_0x7c31df,'ELEMENT_MEDIA',_0x10fcfb)),_0x45f634['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4feb0f,{writer:_0x166c25,options:_0x1d64a8})=>{if(_0x1d64a8['showSuggestionHighlights'])return _0x166c25['createEmptyElement']('div');},'converterPriority':'high'}),_0x45f634['data']['downcastDispatcher']['on']('attribute:url:media',(_0x2f1146,_0x26892e,_0x19f81c)=>{_0x19f81c['options']['showSuggestionHighlights']&&_0x2f1146['stop']();},{'priority':'high'});}}class pt extends _0x525fe{['afterInit'](){const _0x4d6362=this['editor'];_0x4d6362['plugins']['has']('MentionEditing')&&_0x4d6362['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class kt extends _0x525fe{['afterInit'](){const _0x1d6f7a=this['editor'];if(!_0x1d6f7a['plugins']['has']('MergeFieldsEditing'))return;const _0x316a1d=_0x1d6f7a['plugins']['get']('TrackChangesEditing'),_0x2d509a=_0x1d6f7a['locale'];_0x316a1d['enableCommand']('insertMergeField'),_0x316a1d['enableCommand']('insertMergeFieldBlock'),_0x316a1d['enableCommand']('insertMergeFieldImage'),_0x316a1d['descriptionFactory']['registerElementLabel']('mergeField',_0x4f0f31=>c(_0x2d509a,'ELEMENT_MERGE_FIELD',_0x4f0f31)),_0x316a1d['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x10ef44=>c(_0x2d509a,'ELEMENT_MERGE_FIELD',_0x10ef44)),_0x316a1d['descriptionFactory']['registerDescriptionCallback'](_0x2a0f7a=>{if('insertion'!=_0x2a0f7a['type']&&'deletion'!=_0x2a0f7a['type'])return;const _0x38a20c=_0x2a0f7a['getContainedElement']();if(null==_0x38a20c)return;const _0x310243=_0x1d6f7a['plugins']['get']('MergeFieldsEditing');let _0xc4fdba;switch(_0x310243['getMergeFieldType'](_0x38a20c)){case null:return;case'image':{const _0x56766c=_0x310243['unwrapAffixes'](_0x38a20c['getAttribute']('src'));_0xc4fdba=_0x310243['getLabel'](_0x56766c)||_0x56766c;break;}default:{const _0x34ce93=_0x38a20c['getAttribute']('id');_0xc4fdba=_0x310243['getLabel'](_0x34ce93)||_0x34ce93;break;}}return'insertion'==_0x2a0f7a['type']?{'type':'insertion','content':c(_0x2d509a,'*Insert:*\x20%0','\x22'+_0xc4fdba+'\x22\x20'+c(_0x2d509a,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x2d509a,'*Remove:*\x20%0','\x22'+_0xc4fdba+'\x22\x20'+c(_0x2d509a,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x525fe{['afterInit'](){const _0x2fc9c2=this['editor'],_0x574fd9=_0x2fc9c2['plugins']['get']('TrackChangesEditing');_0x2fc9c2['plugins']['has']('MultiLevelList')&&(_0x574fd9['enableDefaultAttributesIntegration']('multiLevelList'),_0x574fd9['registerBlockAttribute']('listMarkerStyle'),_0x574fd9['descriptionFactory']['registerDescriptionCallback'](_0x44f73a=>this['handleDescriptions'](_0x44f73a)));}['handleDescriptions'](_0x4817e5){const _0x1cd6fc=this['editor']['locale'],{data:_0xd1092f}=_0x4817e5,_0xdf188a={'type':'format','content':''};if(_0xd1092f&&'listMarkerStyle'==_0xd1092f['key']){if(!_0xd1092f['oldValue'])return{'type':'format','content':c(_0x1cd6fc,'*Set\x20format:*\x20%0',c(_0x1cd6fc,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xd1092f['newValue']+')'};if(!_0xd1092f['newValue']){let _0x506156=_0x4817e5['head'];for(;_0x506156;){if(_0x506156['data']&&'listType'==_0x506156['data']['key']&&_0x506156['data']['newValue'])return _0xdf188a;_0x506156=_0x506156['next'];}return{'type':'format','content':c(_0x1cd6fc,'*Remove\x20format:*\x20%0',c(_0x1cd6fc,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xd1092f['oldValue']+')'};}}}}class bt extends _0x525fe{['afterInit'](){const _0x3e1b74=this['editor'];if(!_0x3e1b74['plugins']['has']('PageBreakEditing'))return;_0x3e1b74['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x8521a7=_0x3e1b74['plugins']['get']('TrackChangesEditing'),_0x54a12e=_0x3e1b74['locale'];_0x8521a7['descriptionFactory']['registerElementLabel']('pageBreak',_0x22a5c6=>c(_0x54a12e,'ELEMENT_PAGE_BREAK',_0x22a5c6));}}class yt extends _0x525fe{['afterInit'](){const _0x449823=this['editor'];if(!_0x449823['plugins']['has']('Paragraph'))return;const _0xa89a64=_0x449823['locale'],_0x3b86ba=_0x449823['plugins']['get']('TrackChangesEditing');_0x3b86ba['descriptionFactory']['registerElementLabel']('paragraph',_0x37e1c9=>c(_0xa89a64,'ELEMENT_PARAGRAPH',_0x37e1c9)),_0x3b86ba['enableDefaultAttributesIntegration']('paragraph'),_0x3b86ba['enableCommand']('insertParagraph'),_0x449823['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x449823),{'priority':'highest'}),_0x449823['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x56f9ea,_0x5edcce,_0xbd2426)=>{_0xbd2426['options']['showSuggestionHighlights']&&nr(_0x449823,{'showActiveMarker':!0x1})(_0x56f9ea,_0x5edcce,_0xbd2426);},{'priority':'highest'});const _0x2e43b1=_0x3b86ba['descriptionFactory'];_0x2e43b1['registerDescriptionCallback'](_0x3f7334=>{if('insertion'!==_0x3f7334['type'])return;const {start:_0x17b632,end:_0x23ebd2}=_0x3f7334['getFirstRange']();if(!_0x17b632['isTouching'](_0x23ebd2)||!_0x17b632['nodeAfter'])return;const _0x5f5510=_0x449823['model']['schema'],_0x4b5370=_0x17b632['nodeAfter'];return _0x5f5510['isBlock'](_0x4b5370)&&!_0x5f5510['isLimit'](_0x4b5370)&&_0x5f5510['checkChild'](_0x4b5370,'$text')?{'type':'insertion','content':c(_0xa89a64,'*Insert:*\x20%0',_0x2e43b1['getItemLabel'](_0x4b5370,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x459efd=this['editor'],_0x52ca2a=_0x459efd['locale'];_0x459efd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x543e91=>{if('formatBlock'!=_0x543e91['type'])return;const {data:_0x225341}=_0x543e91;return _0x225341&&'paragraph'==_0x225341['commandName']?{'type':'format','content':c(_0x52ca2a,'*Change\x20to:*\x20%0',c(_0x52ca2a,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x1b2865,{showActiveMarker:_0x1624fd=!0x0}={}){return(_0x583577,_0x3c4179,_0xbbf8b4)=>{const _0x21ca29=_0x1b2865['plugins']['get']('TrackChangesEditing'),_0x3ca483=_0x3c4179['markerRange']['start'],_0x1702a9=_0x3c4179['markerRange']['end'],_0x12cd7f=_0x1b2865['model']['schema'];if(!_0x3ca483['isTouching'](_0x1702a9)||!_0x3ca483['nodeAfter'])return;const _0x43f21a=_0x3ca483['nodeAfter'];if(_0x12cd7f['isBlock'](_0x43f21a)&&!_0x12cd7f['isLimit'](_0x43f21a)&&_0x12cd7f['checkChild'](_0x43f21a,'$text')){if(!_0xbbf8b4['consumable']['consume'](_0x3c4179['markerRange'],_0x583577['name']))return;const {id:_0x31e37c,authorId:_0x81d5ea}=_0x21ca29['_splitMarkerName'](_0x3c4179['markerName']),_0x5d456c=_0xbbf8b4['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x31e37c,'data-author-id':_0x81d5ea}),_0xe8496c=_0xbbf8b4['mapper']['toViewPosition'](_0x1702a9);_0x1624fd&&_0x21ca29['activeMarkers']['includes'](_0x3c4179['markerName'])&&_0xbbf8b4['writer']['addClass']('ck-suggestion-marker--active',_0x5d456c),_0xbbf8b4['writer']['insert'](_0xe8496c,_0x5d456c),_0xbbf8b4['mapper']['bindElementToMarker'](_0x5d456c,_0x3c4179['markerName']);}};}class St extends _0x525fe{['afterInit'](){const _0xe21bb1=this['editor'];_0xe21bb1['commands']['get']('replaceSource')&&_0xe21bb1['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class jt extends _0x525fe{['afterInit'](){const _0x16d961=this['editor'];if(!_0x16d961['plugins']['has']('RemoveFormatEditing'))return;_0x16d961['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x37ed1d=this['editor'];_0x37ed1d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x9ebe6d=>{if('formatBlock'!=_0x9ebe6d['type']&&'formatInline'!=_0x9ebe6d['type'])return;const {data:_0x1221aa}=_0x9ebe6d;return _0x1221aa&&'removeFormat'==_0x1221aa['commandName']?{'type':'format','content':c(_0x37ed1d['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x525fe{['afterInit'](){const _0x168ea8=this['editor'];if(!_0x168ea8['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x241972=_0x168ea8['plugins']['get']('TrackChangesEditing');_0x241972['enableCommand']('goToPreviousRestrictedEditingException'),_0x241972['enableCommand']('goToNextRestrictedEditingException');const _0x22c7a5=_0x168ea8['plugins']['get']('RestrictedEditingModeEditing');_0x22c7a5['enableCommand']('trackChanges'),_0x22c7a5['enableCommand']('acceptSuggestion'),_0x22c7a5['enableCommand']('discardSuggestion'),_0x22c7a5['enableCommand']('acceptAllSuggestions'),_0x22c7a5['enableCommand']('discardAllSuggestions'),_0x22c7a5['enableCommand']('acceptSelectedSuggestions'),_0x22c7a5['enableCommand']('discardSelectedSuggestions');}}class At extends _0x525fe{['afterInit'](){const _0x40101d=this['editor'];if(!_0x40101d['plugins']['has']('ShiftEnter'))return;const _0x5ecc8d=_0x40101d['plugins']['get']('TrackChangesEditing');_0x5ecc8d['enableCommand']('shiftEnter'),_0x40101d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x40101d),{'priority':'high'}),_0x40101d['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x40101d),{'priority':'high'}),_0x40101d['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x28378c,_0x3954a7,_0x948c83)=>{_0x948c83['options']['showSuggestionHighlights']&&je(_0x40101d,{'showActiveMarker':!0x1})(_0x28378c,_0x3954a7,_0x948c83);}),_0x5ecc8d['descriptionFactory']['registerElementLabel']('softBreak',_0x230c45=>c(_0x40101d['locale'],'ELEMENT_LINE_BREAK',_0x230c45));}}function je(_0x18174b,{showActiveMarker:_0x2f5708=!0x0}={}){return(_0x1995d7,_0xcfa869,_0x18a890)=>{const _0x43eed0=_0x18174b['plugins']['get']('TrackChangesEditing');if(!_0x18a890['consumable']['test'](_0xcfa869['markerRange'],_0x1995d7['name']))return;const _0x5ae4b8=_0x18174b['model'];for(const _0x5c94a8 of _0xcfa869['markerRange']['getItems']()){if(!_0x5c94a8['is']('element','softBreak'))continue;const _0x25fda2='deletion'==_0xcfa869['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x426bb8,authorId:_0x658911}=_0x43eed0['_splitMarkerName'](_0xcfa869['markerName']),_0x5ec4de=_0x18a890['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x25fda2,'data-suggestion':_0x426bb8,'data-author-id':_0x658911}),_0x26ea69=_0x18a890['mapper']['toViewPosition'](_0x5ae4b8['createPositionBefore'](_0x5c94a8));_0x2f5708&&_0x43eed0['activeMarkers']['includes'](_0xcfa869['markerName'])&&_0x18a890['writer']['addClass']('ck-suggestion-marker--active',_0x5ec4de),_0x18a890['writer']['insert'](_0x26ea69,_0x5ec4de),_0x18a890['mapper']['bindElementToMarker'](_0x5ec4de,_0xcfa869['markerName']);}};}class _t extends _0x525fe{['afterInit'](){const _0x40858d=this['editor'],_0x1180cb=_0x40858d['model'],_0x5c183f=_0x40858d['locale'];if(!_0x40858d['plugins']['has']('StandardEditingModeEditing'))return;const _0xc8b33d=_0x40858d['plugins']['get']('TrackChangesEditing'),_0x24dc1c='restrictedEditingException',_0x5f4a29=_0x40858d['commands']['get'](_0x24dc1c);_0xc8b33d['enableCommand'](_0x24dc1c,(_0x47bfb3,_0x479e4d={})=>{const _0x48464e=_0x1180cb['document']['selection'];if(_0x48464e['isCollapsed'])return void _0x47bfb3(_0x479e4d);const _0x346dce=void 0x0!==_0x479e4d['forceValue']?_0x479e4d['forceValue']:!_0x5f4a29['value'];_0x1180cb['change'](()=>{const _0x363efc=Array['from'](_0x48464e['getRanges']());for(const _0x17789f of _0x363efc){const _0x4cfcd2=_0x346dce?[_0x17789f]:io(_0x24dc1c,_0x17789f,_0x1180cb);for(const _0x3b35f5 of _0x4cfcd2)_0xc8b33d['markInlineFormat'](_0x3b35f5,{'commandName':_0x24dc1c,'commandParams':[{'forceValue':_0x346dce}]});}});}),_0xc8b33d['descriptionFactory']['registerDescriptionCallback'](_0x3aeece=>{if('formatBlock'!=_0x3aeece['type']&&'formatInline'!=_0x3aeece['type'])return;const {data:_0x597cae}=_0x3aeece;return _0x597cae&&_0x597cae['commandName']==_0x24dc1c?_0x597cae['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x5c183f,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x5c183f,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x525fe{['afterInit'](){const _0x2fa6bf=this['editor'];if(!_0x2fa6bf['plugins']['has']('Style')||!_0x2fa6bf['plugins']['has']('DataSchema'))return;const _0x41517c=_0x2fa6bf['plugins']['get']('TrackChangesEditing'),_0x2e04d7=_0x2fa6bf['locale'],_0x4ae2a9=_0x2fa6bf['config']['get']('style')||{},_0x20059a=_0x2fa6bf['plugins']['get']('GeneralHtmlSupport'),_0x48d3c0=_0x2fa6bf['plugins']['get']('StyleUtils')['normalizeConfig'](_0x2fa6bf['plugins']['get']('DataSchema'),_0x4ae2a9['definitions']);_0x41517c['enableDefaultAttributesIntegration']('style');const _0x20454a=new Set();for(const _0x5e8812 of _0x48d3c0['block']){const _0x286908=_0x20059a['getGhsAttributeNameForElement'](_0x5e8812['element']);_0x20454a['add'](_0x286908);}const _0x59f9c3=new Set();for(const _0x3cf2b7 of _0x48d3c0['inline']){const _0xb133ce=_0x20059a['getGhsAttributeNameForElement'](_0x3cf2b7['element']);_0x59f9c3['add'](_0xb133ce);for(const _0x15c600 of _0x3cf2b7['ghsAttributes'])_0x59f9c3['add'](_0x15c600);}for(const _0x1ca47a of _0x20454a)_0x41517c['registerBlockAttribute'](_0x1ca47a),_0x41517c['descriptionFactory']['registerAttributeLabel'](_0x1ca47a,c(_0x2e04d7,'FORMAT_STYLE'));for(const _0xe15dea of _0x59f9c3)_0x41517c['registerInlineAttribute'](_0xe15dea),_0x41517c['descriptionFactory']['registerAttributeLabel'](_0xe15dea,c(_0x2e04d7,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x21c039=this['editor'],_0x1e5461=_0x21c039['locale'];_0x21c039['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x23e25f=>{if('formatBlock'!=_0x23e25f['type']&&'formatInline'!=_0x23e25f['type'])return;const {data:_0x597998}=_0x23e25f;return _0x597998&&'style'===_0x597998['commandName']?_0x597998['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x1e5461,'*Set\x20format:*\x20%0',_0x597998['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x1e5461,'*Remove\x20format:*\x20%0',_0x597998['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x525fe{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x481777){super(_0x481777),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x2b6ff3=this['editor'],_0x573573=_0x2b6ff3['model']['document']['selection'];if(!_0x2b6ff3['plugins']['has']('TableEditing'))return;const _0x502e80=_0x2b6ff3['locale'],_0x1012bb=_0x2b6ff3['plugins']['get']('TrackChangesEditing'),_0x546fa8=_0x2b6ff3['plugins']['get']('TableUtils');_0x1012bb['descriptionFactory']['registerElementLabel']('table',_0x404a05=>c(_0x502e80,'ELEMENT_TABLE',_0x404a05)),this['_setupColumnsRowsFixing'](),_0x1012bb['enableCommand']('insertTable'),_0x1012bb['enableCommand']('selectTableRow'),_0x1012bb['enableCommand']('selectTableColumn');for(const _0x17b34e of['insertTableRowAbove','insertTableRowBelow']){const _0x1aafd7=_0x2b6ff3['commands']['get'](_0x17b34e);_0x1012bb['enableCommand'](_0x17b34e,_0x165069=>{_0x2b6ff3['model']['change'](_0x3bdfec=>{_0x165069();const _0x39471e='above'===_0x1aafd7['order'],_0x20307c=_0x546fa8['getSelectionAffectedTableCells'](_0x573573),_0x30a1d7=_0x546fa8['getRowIndexes'](_0x20307c),_0x4d8c66=_0x39471e?_0x30a1d7['first']-0x1:_0x30a1d7['last']+0x1,_0x3222a6=_0x20307c[0x0]['findAncestor']('table'),_0x256306=_0x546fa8['createTableWalker'](_0x3222a6,{'startRow':_0x4d8c66,'endRow':_0x4d8c66}),_0x4d911a=Array['from'](_0x256306)['map'](_0x21f392=>_0x3bdfec['createRangeOn'](_0x21f392['cell']));_0x1012bb['markMultiRangeInsertion'](_0x4d911a,'tableRow');});});}for(const _0x4e4533 of['insertTableColumnLeft','insertTableColumnRight']){const _0x438179=_0x2b6ff3['commands']['get'](_0x4e4533);_0x1012bb['enableCommand'](_0x4e4533,_0x4c6c02=>{_0x2b6ff3['model']['change'](_0x30ff27=>{_0x4c6c02();const _0x2af8c4='left'===_0x438179['order'],_0x3b42f4=_0x546fa8['getSelectionAffectedTableCells'](_0x573573),_0x1b057a=_0x546fa8['getColumnIndexes'](_0x3b42f4),_0x25b9f1=_0x2af8c4?_0x1b057a['first']-0x1:_0x1b057a['last']+0x1,_0x3de9d1=_0x3b42f4[0x0]['findAncestor']('table'),_0x2d8e31=_0x546fa8['createTableWalker'](_0x3de9d1,{'startRow':0x0,'column':_0x25b9f1,'includeAllSlots':!0x1}),_0x1759b2=Array['from'](_0x2d8e31)['map'](_0x2fbc45=>_0x30ff27['createRangeOn'](_0x2fbc45['cell']));_0x1012bb['markMultiRangeInsertion'](_0x1759b2,'tableColumn');});});}for(const _0x42e2d1 of['removeTableRow','removeTableColumn']){const _0x3d1fba=_0x42e2d1['substr'](0xb),_0x1513f6=_0x3d1fba['toLowerCase'](),_0x1a04f7=_0x1513f6['substr'](0x0,0x3)+'span',_0x140779='table'+_0x3d1fba,_0x38fca1='min'+_0x3d1fba,_0xe8a32b='max'+_0x3d1fba;_0x1012bb['enableCommand'](_0x42e2d1,()=>{_0x2b6ff3['model']['change'](_0x492fdb=>{const _0x217fd6=_0x546fa8['getSelectionAffectedTableCells'](_0x573573),_0x32a0d4=_0x217fd6[0x0]['findAncestor']('table');let _0x4e7636;if('removeTableRow'==_0x42e2d1){const _0x4b2c1c=_0x546fa8['getRowIndexes'](_0x217fd6);_0x4e7636={'startRow':_0x4b2c1c['first'],'endRow':_0x4b2c1c['last'],'includeAllSlots':!0x0};}else{const _0x4072e6=_0x546fa8['getColumnIndexes'](_0x217fd6);_0x4e7636={'startColumn':_0x4072e6['first'],'endColumn':_0x4072e6['last'],'includeAllSlots':!0x0};}const _0x36d549=_0x546fa8['createTableWalker'](_0x32a0d4,_0x4e7636),_0x23cce0=Array['from'](_0x36d549)['map'](({cell:_0x103a92})=>_0x103a92),_0x27620a=xe(_0x23cce0['filter'](_0x1fad98=>_0x1fad98['hasAttribute'](_0x1a04f7))),_0x50eab4=xe(_0x23cce0['filter'](_0x396782=>!_0x396782['hasAttribute'](_0x1a04f7)))['map'](_0x20ef81=>_0x492fdb['createRangeOn'](_0x20ef81)),_0x17aabc=_0x1012bb['markMultiRangeDeletion'](_0x50eab4,_0x140779);if(_0x17aabc&&('tableRow'==_0x17aabc['subType']||'tableColumn'==_0x17aabc['subType'])){const _0xf12647=this['_getSuggestionCoords'](_0x17aabc);for(const _0x4b4dac of _0x27620a){const _0x34a525=_0x492fdb['createRangeOn'](_0x4b4dac),_0x5be55d=_0x546fa8['getCellLocation'](_0x4b4dac),_0x338521=_0x4b4dac['getAttribute'](_0x1a04f7)-0x1,_0x579d76=_0xf12647[_0x38fca1],_0x3ff0be=_0xf12647[_0xe8a32b];_0x579d76<=_0x5be55d[_0x1513f6]&&_0x5be55d[_0x1513f6]+_0x338521<=_0x3ff0be&&_0x17aabc['addRange'](_0x34a525);}}});});}function _0x373c3d(_0xfb98b0){const _0x4bc0e1=Array['from'](_0x573573['getRanges']())['map'](_0x209ed8=>_0x106800['fromRange'](_0x209ed8));_0x2b6ff3['model']['change'](_0x5417d5=>{const _0x2ace00=_0x5417d5['batch'];_0xfb98b0=_0xfb98b0['filter'](_0x574226=>'$graveyard'!=_0x574226['root']['rootName']),_0x5417d5['setSelection'](_0xfb98b0),_0x2b6ff3['commands']['get']('removeTableRow')['refresh'](),_0x2b6ff3['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x2b6ff3['model']['enqueueChange'](()=>{_0x2b6ff3['model']['enqueueChange'](_0x2ace00,_0x3f4fac=>{const _0x574a2b=_0x4bc0e1['filter'](_0x6b5aea=>'$graveyard'!=_0x6b5aea['root']['rootName']);_0x574a2b['length']>0x0&&_0x3f4fac['setSelection'](_0x574a2b);for(const _0x564376 of _0x4bc0e1)_0x564376['detach']();});});});}function _0x50c4ac(_0x1fe478){_0x2b6ff3['model']['change'](_0x95dd18=>{const _0x4e9689=Array['from'](_0x573573['getRanges']())['map'](_0x3fd583=>_0x106800['fromRange'](_0x3fd583)),_0x3bb399=[];for(const _0x9a2525 of _0x1fe478)for(const _0x409152 of _0x9a2525['getItems']({'shallow':!0x0}))_0x3bb399['push'](_0x409152);for(const _0x3ef2c3 of _0x3bb399)'$graveyard'!=_0x3ef2c3['root']['rootName']&&(_0x95dd18['setSelection'](_0x95dd18['createPositionAt'](_0x3ef2c3,0x0)),_0x2b6ff3['commands']['get']('removeTableColumn')['refresh'](),_0x2b6ff3['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x4d8fb1=_0x4e9689['filter'](_0x5a081e=>'$graveyard'!=_0x5a081e['root']['rootName']);_0x4d8fb1['length']>0x0&&_0x95dd18['setSelection'](_0x4d8fb1);for(const _0x1e583b of _0x4e9689)_0x1e583b['detach']();});}function _0x269dd5(_0x36d7f3,_0x548e22){return _0x548e22['every'](_0x1f09c8=>_0x36d7f3['some'](_0xbd3902=>_0xbd3902['end']['isEqual'](_0x1f09c8['start'])||_0x1f09c8['end']['isEqual'](_0xbd3902['start'])));}function _0x694d34(_0x1f5b05,_0x108db4){return!_0x1f5b05['some'](_0x3b68b1=>_0x108db4['some'](_0x36fa99=>_0x3b68b1['isIntersecting'](_0x36fa99)))&&_0x1f5b05['some'](_0x40b237=>_0x108db4['some'](_0x52b2c5=>_0x40b237['end']['isTouching'](_0x52b2c5['start'])));}_0x2b6ff3['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5b2ace,_0x43a1dd,_0x4233ab)=>{if(!_0x4233ab['options']['showSuggestionHighlights'])return;const _0x29cc08=_0x43a1dd['item'];if(!_0x29cc08||!_0x29cc08['is']('element','tableCell'))return;const _0x549b08=_0x4233ab['mapper']['toViewElement'](_0x29cc08);if(_0x549b08){const {id:_0xf7cf84,authorId:_0x5ca480}=_0x1012bb['_splitMarkerName'](_0x43a1dd['markerName']);_0x40075c(_0x549b08,_0x4233ab['writer'],(_0x5ad15d,_0x3631f6,_0x243717)=>{_0x243717['addClass'](_0xb8e9d3(_0x3631f6['classes']),_0x5ad15d),_0x243717['setAttribute']('data-suggestion-id',_0xf7cf84,_0x5ad15d),_0x243717['setAttribute']('data-author-id',_0x5ca480,_0x5ad15d);},(_0x25c45d,_0x5e368b,_0x2bb365)=>{_0x2bb365['removeClass'](_0xb8e9d3(_0x5e368b['classes']),_0x25c45d),_0x2bb365['removeAttribute']('data-suggestion-id',_0x25c45d),_0x2bb365['removeAttribute']('data-author-id',_0x25c45d);});}},{'priority':'highest'}),_0x1012bb['descriptionFactory']['registerDescriptionCallback'](_0x1537bd=>{if('insertion'!=_0x1537bd['type']&&'deletion'!=_0x1537bd['type'])return;const _0x4b8fcd=_0x1537bd['getContainedElement']();if(null!=_0x4b8fcd&&_0x4b8fcd['is']('element','table')){if('insertion'==_0x1537bd['type']){const _0x55f318=_0x1537bd['getItems']()['filter'](_0x3981d4=>_0x3981d4['is']('$textProxy'))['map'](_0x169682=>_0x169682['data']);if(_0x55f318['length'])return{'type':'insertion','content':c(_0x502e80,'*Insert:*\x20%0',c(_0x502e80,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x55f318['join']('\x20')+'\x22'))};}if('deletion'==_0x1537bd['type']){const _0x58ca38=_0x1537bd['getItems']()['filter'](_0x16f07f=>_0x16f07f['is']('$textProxy'))['map'](_0x2889f0=>_0x2889f0['data']);if(_0x58ca38['length'])return{'type':'deletion','content':c(_0x502e80,'*Remove:*\x20%0',c(_0x502e80,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x58ca38['join']('\x20')+'\x22'))};}}}),_0x1012bb['descriptionFactory']['registerDescriptionCallback'](_0x114106=>{if('tableRow'==_0x114106['subType']){const _0x33b42e=_0x114106['getItems']()['filter'](_0x11482f=>_0x11482f['is']('$textProxy'))['map'](_0x1c55a3=>_0x1c55a3['data']),_0x2fcc67=this['_getSuggestionCoords'](_0x114106),_0x412757=_0x2fcc67['maxRow']-_0x2fcc67['minRow']+0x1;if('insertion'==_0x114106['type'])return _0x33b42e['length']?{'type':'insertion','content':c(_0x502e80,'*Insert:*\x20%0',c(_0x502e80,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x412757,'\x22'+_0x33b42e['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x502e80,'*Insert:*\x20%0',c(_0x502e80,'ELEMENT_TABLE_ROW',_0x412757))};if('deletion'==_0x114106['type'])return _0x33b42e['length']?{'type':'deletion','content':c(_0x502e80,'*Remove:*\x20%0',c(_0x502e80,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x412757,'\x22'+_0x33b42e['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x502e80,'*Remove:*\x20%0',c(_0x502e80,'ELEMENT_TABLE_ROW',_0x412757))};}if('tableColumn'==_0x114106['subType']){const _0x297378=_0x114106['getItems']()['filter'](_0x178f7c=>_0x178f7c['is']('$textProxy'))['map'](_0xe33dae=>_0xe33dae['data']),_0x20eb39=this['_getSuggestionCoords'](_0x114106),_0x11519a=_0x20eb39['maxColumn']-_0x20eb39['minColumn']+0x1;if('insertion'==_0x114106['type'])return _0x297378['length']?{'type':'insertion','content':c(_0x502e80,'*Insert:*\x20%0',c(_0x502e80,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x11519a,'\x22'+_0x297378['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x502e80,'*Insert:*\x20%0',c(_0x502e80,'ELEMENT_TABLE_COLUMN',_0x11519a))};if('deletion'==_0x114106['type'])return _0x297378['length']?{'type':'deletion','content':c(_0x502e80,'*Remove:*\x20%0',c(_0x502e80,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x11519a,'\x22'+_0x297378['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x502e80,'*Remove:*\x20%0',c(_0x502e80,'ELEMENT_TABLE_COLUMN',_0x11519a))};}}),_0x1012bb['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x373c3d),_0x1012bb['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x373c3d),_0x1012bb['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x50c4ac),_0x1012bb['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x50c4ac),_0x1012bb['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x269dd5),_0x1012bb['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x269dd5),_0x1012bb['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x694d34),_0x1012bb['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x694d34);}['_acceptFormatSuggestionCallbackFactory'](){const _0x24be63=this['editor'],_0x1493ba=_0x24be63['model']['document']['selection'];return(_0x468eec,_0x3abb54)=>{_0x24be63['model']['change'](_0x2da418=>{const {commandName:_0x55bab8,commandParams:_0x19d2da}=_0x3abb54;let _0x2bacdb=_0x468eec[0x0]['end']['nodeBefore'];_0x19d2da&&_0x19d2da[0x0]&&!0x1===_0x19d2da[0x0]['forceValue']&&(_0x2bacdb=_0x468eec[0x0]['start']['nodeAfter']);const _0x3983cb=_0x2da418['createRangeIn'](_0x2bacdb);if('$graveyard'==_0x3983cb['root']['rootName'])return;const _0x457201=Array['from'](_0x1493ba['getRanges']())['map'](_0x42d6e2=>_0x106800['fromRange'](_0x42d6e2));_0x2da418['setSelection'](_0x3983cb),_0x24be63['commands']['get'](_0x55bab8)['refresh'](),_0x19d2da['push']({'forceDefaultExecution':!0x0}),_0x24be63['execute'](_0x55bab8,..._0x19d2da);const _0x152214=_0x457201['filter'](_0x5af953=>'$graveyard'!=_0x5af953['root']['rootName']);_0x152214['length']>0x0&&_0x2da418['setSelection'](_0x152214);for(const _0x100519 of _0x457201)_0x100519['detach']();});};}['_getCoordsForCells'](_0x2dc49c){const _0x80676c=this['editor']['plugins']['get']('TableUtils');let _0x3a1594=Number['MAX_SAFE_INTEGER'],_0x1c68de=Number['MIN_SAFE_INTEGER'],_0x3fa7ad=Number['MAX_SAFE_INTEGER'],_0x2c1170=Number['MIN_SAFE_INTEGER'];for(const _0x5277e9 of _0x2dc49c){if('$graveyard'==_0x5277e9['root']['rootName'])continue;const {row:_0x37ca5a,column:_0x2fba2f}=_0x80676c['getCellLocation'](_0x5277e9),_0x5567a4=_0x5277e9['hasAttribute']('rowspan')?_0x5277e9['getAttribute']('rowspan')-0x1:0x0,_0x3281ae=_0x5277e9['hasAttribute']('colspan')?_0x5277e9['getAttribute']('colspan')-0x1:0x0;_0x3a1594=_0x37ca5a<_0x3a1594?_0x37ca5a:_0x3a1594,_0x1c68de=_0x37ca5a+_0x5567a4>_0x1c68de?_0x37ca5a+_0x5567a4:_0x1c68de,_0x3fa7ad=_0x2fba2f<_0x3fa7ad?_0x2fba2f:_0x3fa7ad,_0x2c1170=_0x2fba2f+_0x3281ae>_0x2c1170?_0x2fba2f+_0x3281ae:_0x2c1170;}return{'minRow':_0x3a1594,'maxRow':_0x1c68de,'minColumn':_0x3fa7ad,'maxColumn':_0x2c1170};}['_setupColumnsRowsFixing'](){const _0x37d3d1=this['editor'],_0x21ddb6=_0x37d3d1['plugins']['get']('TrackChangesEditing'),_0x320b24=_0x37d3d1['plugins']['get']('TableUtils');_0x37d3d1['model']['document']['on']('change:data',()=>{const _0x1bc44d=Array['from'](_0x37d3d1['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1cd299,data:_0x2c0a2a}of _0x1bc44d){const {group:_0x277e23,id:_0x5cc5d4,subType:_0x1bd529}=_0x21ddb6['_splitMarkerName'](_0x1cd299);if('suggestion'!=_0x277e23)continue;if(null!=_0x2c0a2a['oldRange'])continue;const _0x16a3ed=_0x21ddb6['getSuggestion'](_0x5cc5d4);this['_tablePostFixingSubtypes']['includes'](_0x1bd529)&&this['_tableSuggestions']['add'](_0x16a3ed);}},{'priority':'low'});const _0x4c7c0a=(_0x524ec1,_0x5d9ba8)=>{let _0x93c64=!0x1;const _0x47cd26=_0x5d9ba8['createRangeOn'](_0x524ec1),_0x5c4601=_0x524ec1['findAncestor']('table'),_0x26443a=_0x320b24['getCellLocation'](_0x524ec1);for(const _0x4c134f of this['_tableSuggestions']){const _0x43234c=_0x4c134f['subType'],_0x1ac378=_0x43234c['startsWith']('tablePaste'),_0x30746d=_0x43234c['substr'](_0x1ac378?0xa:0x5),_0x291a86=_0x30746d['toLowerCase'](),_0x3e1762=_0x291a86['substr'](0x0,0x3)+'span',_0x7cfe2a='min'+_0x30746d,_0x4b212d='max'+_0x30746d;if(!_0x4c134f['isInContent'])continue;if(_0x5c4601!=_0x4c134f['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4c134f['isIntersectingWithRange'](_0x47cd26))continue;const _0x55ab37=_0x524ec1['hasAttribute'](_0x3e1762)?_0x524ec1['getAttribute'](_0x3e1762)-0x1:0x0,_0x252c67=this['_getSuggestionCoords'](_0x4c134f),_0x1d5f42=_0x252c67[_0x7cfe2a],_0x115cb5=_0x252c67[_0x4b212d];_0x1d5f42<=_0x26443a[_0x291a86]&&_0x26443a[_0x291a86]+_0x55ab37<=_0x115cb5&&(_0x4c134f['addRange'](_0x47cd26),_0x93c64=!0x0);}return _0x93c64;};_0x37d3d1['model']['document']['registerPostFixer'](_0x51ff6f=>{let _0x3aea98=!0x1;for(const _0x35a8f1 of _0x37d3d1['model']['document']['differ']['getChanges']())if('insert'==_0x35a8f1['type']){if('tableRow'==_0x35a8f1['name']){for(const _0x1817cd of _0x35a8f1['position']['nodeAfter']['getChildren']())_0x3aea98=_0x3aea98||_0x4c7c0a(_0x1817cd,_0x51ff6f);}else'tableCell'==_0x35a8f1['name']&&(_0x3aea98=_0x3aea98||_0x4c7c0a(_0x35a8f1['position']['nodeAfter'],_0x51ff6f));}return _0x3aea98;});}['_getSuggestionCoords'](_0x4a6e8f){return this['_getCoordsForCells'](_0x4a6e8f['getRanges']()['map'](_0x264c6d=>_0x264c6d['start']['nodeAfter']));}}function xe(_0x1173d7){return Array['from'](new Set(_0x1173d7)['values']());}class Nt extends _0x525fe{static get['requires'](){return[Ct];}['afterInit'](){const _0x446789=this['editor'],_0x53d013=_0x446789['model']['document']['selection'],_0x1a28ab=_0x446789['locale'];if(!_0x446789['plugins']['has']('TableEditing'))return;const _0xd99dad=_0x446789['plugins']['get']('TrackChangesEditing'),_0x505642=_0x446789['plugins']['get']('TableUtils'),_0x1b5bf6=_0x446789['plugins']['get'](Ct);_0x1b5bf6['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0xd99dad['enableCommand']('mergeTableCells',()=>{const _0x2ec429=_0x505642['getSelectionAffectedTableCells'](_0x446789['model']['document']['selection']);_0x446789['model']['change'](()=>{_0xd99dad['markMultiRangeBlockFormat'](_0x2ec429,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x446789['commands']['get']('mergeTableCells')['on']('execute',(_0x3c1249,_0x4f2bf0)=>{_0x446789['commands']['get']('trackChanges')['value']&&(_0x4f2bf0['length']>0x0&&_0x4f2bf0[_0x4f2bf0['length']-0x1]&&_0x4f2bf0[_0x4f2bf0['length']-0x1]['forceDefaultExecution']||_0xd99dad['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x3c1249['stop']());},{'priority':'highest'});for(const _0x3aa5a9 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x17f8c5=_0x446789['commands']['get'](_0x3aa5a9);_0xd99dad['enableCommand'](_0x3aa5a9,()=>{const _0x5eaa1b=_0x446789['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5248d1=>_0x5248d1['is']('element','tableCell')),_0x42611b=_0x17f8c5['value'];_0x446789['model']['change'](()=>{_0xd99dad['markMultiRangeBlockFormat']([_0x5eaa1b,_0x42611b],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x32a107 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x41baf1=_0x446789['commands']['get'](_0x32a107);_0xd99dad['enableCommand'](_0x32a107,()=>{const _0x5c8a92=_0x505642['getSelectionAffectedTableCells'](_0x446789['model']['document']['selection'])[0x0],_0x252db3=_0x5c8a92['findAncestor']('table'),{column:_0x15c779,row:_0x447da4}=_0x505642['getCellLocation'](_0x5c8a92);let _0x5f3bc4=[];if('horizontally'==_0x41baf1['direction']){const _0x761b46=_0x505642['createTableWalker'](_0x252db3,{'startRow':_0x447da4,'endRow':_0x447da4,'includeAllSlots':!0x0});_0x5f3bc4=Array['from'](_0x761b46)['map'](_0x2b8c7f=>_0x2b8c7f['cell']);}else{const _0xfc955b=_0x505642['createTableWalker'](_0x252db3,{'column':_0x15c779,'includeAllSlots':!0x0});_0x5f3bc4=Array['from'](_0xfc955b)['map'](_0x309f25=>_0x309f25['cell']);}_0x446789['model']['change'](_0xdf1b10=>{_0xd99dad['markBlockFormat'](_0xdf1b10['createRangeOn'](_0x5c8a92),{'commandName':_0x32a107,'commandParams':[]},_0x5f3bc4,_0x32a107);});});}_0xd99dad['descriptionFactory']['registerDescriptionCallback'](_0x41c958=>{if('formatBlock'!=_0x41c958['type']&&'formatInline'!=_0x41c958['type'])return;const {data:_0x5c15f0}=_0x41c958;return _0x5c15f0&&'mergeTableCells'==_0x5c15f0['commandName']?{'type':'format','content':c(_0x1a28ab,'*Merge\x20cells*')}:void 0x0;}),_0xd99dad['descriptionFactory']['registerDescriptionCallback'](_0x4eab40=>{if('formatBlock'!=_0x4eab40['type']&&'formatInline'!=_0x4eab40['type'])return;const {data:_0x1db478}=_0x4eab40;return _0x1db478?'splitTableCellVertically'==_0x1db478['commandName']?{'type':'format','content':c(_0x1a28ab,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1db478['commandName']?{'type':'format','content':c(_0x1a28ab,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x3511ea=_0x1b5bf6['_acceptFormatSuggestionCallbackFactory']();for(const _0x381d8f of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0xd99dad['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x381d8f,'accept',_0x3511ea);for(const _0xd882dd of['splitTableCellVertically','splitTableCellHorizontally'])_0xd99dad['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xd882dd,'accept',_0x3511ea);_0xd99dad['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x136767=>{_0x446789['model']['change'](_0x2030df=>{const _0x590067=Array['from'](_0x53d013['getRanges']())['map'](_0x5d63ae=>_0x106800['fromRange'](_0x5d63ae));_0x2030df['setSelection'](_0x136767),_0x446789['commands']['get']('mergeTableCells')['refresh'](),_0x446789['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x4be85c=_0x590067['filter'](_0x8b22e6=>'$graveyard'!=_0x8b22e6['root']['rootName']);_0x4be85c['length']>0x0&&_0x2030df['setSelection'](_0x4be85c);for(const _0x39180f of _0x590067)_0x39180f['detach']();});});for(const _0x41085f of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x395bbf=_0x446789['commands']['get'](_0x41085f);_0x395bbf['on']('set:isEnabled',(_0x5c029c,_0x147a9a,_0x7eed9c)=>{if(_0x7eed9c){const _0x3f29f9=_0x446789['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x390e29=>_0x390e29['is']('element','tableCell'));this['_areMergableCells'](_0x395bbf['value'],_0x3f29f9)||(_0x5c029c['return']=!0x1,_0x5c029c['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x3ba79b=this['editor']['commands']['get']('mergeTableCells'),_0x5437d5=this['editor']['plugins']['get']('TableUtils');if(!_0x3ba79b['isEnabled'])return!0x1;const _0x3c72f9=_0x5437d5['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x719204 of _0x3c72f9)for(const _0x4ce5a1 of _0x3c72f9)if(_0x719204!=_0x4ce5a1&&!this['_areMergableCells'](_0x719204,_0x4ce5a1))return!0x1;return!0x0;}['_areMergableCells'](_0x348bee,_0x4e945d){const _0x5495da=this['editor']['plugins']['get']('TrackChangesEditing'),_0x37bfd2=this['editor']['model']['createRangeOn'](_0x348bee),_0x1fedc0=this['editor']['model']['createRangeOn'](_0x4e945d),_0x26c7e5=new Set(),_0x101c4c=new Set();for(const _0x131c7b of _0x5495da['getSuggestions']())if(('insertion'==_0x131c7b['type']||'deletion'==_0x131c7b['type']||'mergeTableCells'==_0x131c7b['subType'])&&_0x131c7b['isInContent']){for(const _0x389923 of _0x131c7b['getRanges']())_0x389923['containsRange'](_0x37bfd2,!0x0)&&_0x26c7e5['add'](_0x131c7b['type']+':'+_0x131c7b['author']['id']),_0x389923['containsRange'](_0x1fedc0,!0x0)&&_0x101c4c['add'](_0x131c7b['type']+':'+_0x131c7b['author']['id']);}if(_0x26c7e5['size']!=_0x101c4c['size'])return!0x1;for(const _0x2b4c33 of _0x26c7e5)if(!_0x101c4c['has'](_0x2b4c33))return!0x1;return!0x0;}}class Dt extends _0x525fe{static get['requires'](){return[Ct];}['afterInit'](){const _0xe95f1d=this['editor'];if(!_0xe95f1d['plugins']['has']('TableEditing'))return;const _0x4f46fd=_0xe95f1d['locale'],_0x24964b=_0xe95f1d['plugins']['get']('TrackChangesEditing');_0x24964b['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x24964b['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x24964b['registerBlockAttribute']('headingRows'),_0x24964b['registerBlockAttribute']('headingColumns'),_0x24964b['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x4f46fd,'FORMAT_HEADER_ROW')),_0x24964b['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x4f46fd,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x31f8b0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x40bb80=this['editor']['plugins']['get']('TableUtils'),_0x5aee37=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x32ce44({showActiveMarker:_0x235a54=!0x0,setDataAttribute:_0x30a312=!0x0}={}){return(_0x381900,_0x2d4e98,_0x13d779)=>{const {type:_0x58c4e8,id:_0x3ee420}=_0x31f8b0['_splitMarkerName'](_0x2d4e98['markerName']),_0x74d9a7=_0x31f8b0['getSuggestion'](_0x3ee420),_0x2b5cff=_0x74d9a7['data'];if('formatBlock'!=_0x74d9a7['type']||!_0x2b5cff||'setTableColumnHeader'!=_0x2b5cff['commandName'])return;if(_0x2d4e98['item'])return void _0x381900['stop']();if(!_0x13d779['consumable']['consume'](_0x2d4e98['markerRange'],_0x381900['name']))return;const _0x8856f5=_0x2d4e98['markerRange']['start']['nodeAfter'],_0x21f69d=_0x2d4e98['markerRange']['end']['nodeBefore'],_0x4bb76d=_0x8856f5['parent']['parent'],{column:_0x23e7f2}=_0x40bb80['getCellLocation'](_0x8856f5),{column:_0x2633b3}=_0x40bb80['getCellLocation'](_0x21f69d);for(let _0x409eb8=_0x23e7f2;_0x409eb8<=_0x2633b3;_0x409eb8++){const _0xfa33b8=_0x40bb80['createTableWalker'](_0x4bb76d,{'column':_0x409eb8,'includeAllSlots':!0x1});for(const _0x3045b5 of _0xfa33b8){const _0x3d571d=_0x3045b5['cell'],_0x275cdc=_0x13d779['mapper']['toViewElement'](_0x3d571d);_0x13d779['writer']['addClass']('ck-suggestion-marker-'+_0x58c4e8,_0x275cdc),_0x30a312&&_0x13d779['writer']['setAttribute']('data-suggestion',_0x3ee420,_0x275cdc),_0x13d779['mapper']['bindElementToMarker'](_0x275cdc,_0x2d4e98['markerName']),_0x235a54&&(_0x31f8b0['activeMarkers']['includes'](_0x2d4e98['markerName'])?_0x13d779['writer']['addClass']('ck-suggestion-marker--active',_0x275cdc):_0x13d779['writer']['removeClass']('ck-suggestion-marker--active',_0x275cdc));}}};}_0x31f8b0['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x5aee37),_0x31f8b0['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x5aee37),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x32ce44(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2a750b,_0x4441c3,_0xcbe56e)=>{_0xcbe56e['options']['showSuggestionHighlights']&&_0x32ce44({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2a750b,_0x4441c3,_0xcbe56e);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x218403,_0x41ba2c,_0x200e30)=>{const {type:_0xcc9319,id:_0x456328}=_0x31f8b0['_splitMarkerName'](_0x41ba2c['markerName']),_0x39c97c=_0x31f8b0['getSuggestion'](_0x456328),_0x6f766f=_0x39c97c['data'];if('formatBlock'!=_0x39c97c['type']||!_0x6f766f||'setTableColumnHeader'!=_0x6f766f['commandName'])return;const _0x3f6a7f=_0x200e30['mapper']['markerNameToElements'](_0x41ba2c['markerName']);if(_0x3f6a7f){for(const _0x2907a5 of _0x3f6a7f)_0x200e30['writer']['removeClass']('ck-suggestion-marker-'+_0xcc9319,_0x2907a5),_0x200e30['writer']['removeClass']('ck-suggestion-marker--active',_0x2907a5),_0x200e30['writer']['removeAttribute']('data-suggestion',_0x2907a5),_0x200e30['mapper']['unbindElementFromMarkerName'](_0x2907a5,_0x41ba2c['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x14d875=this['editor'],_0x43e0f3=_0x14d875['locale'];function _0x5ccf1a(_0x127096){return{'type':'format','content':c(_0x43e0f3,'*Format:*\x20%0',_0x127096)};}_0x14d875['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1f18d3=>{if('formatBlock'!=_0x1f18d3['type'])return;const {data:_0x5b2cf5}=_0x1f18d3;if(_0x5b2cf5){if('setTableRowHeader'==_0x5b2cf5['commandName']){const _0x3fbfd3=_0x5b2cf5['commandParams'][0x0]['forceValue'];return _0x5ccf1a(c(_0x43e0f3,_0x3fbfd3?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x5b2cf5['commandName']){const _0x2f0f22=_0x5b2cf5['commandParams'][0x0]['forceValue'];return _0x5ccf1a(c(_0x43e0f3,_0x2f0f22?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x525fe{['afterInit'](){const _0x5b7a94=this['editor'],_0x5d0a2e=_0x5b7a94['locale'],_0x1d22f1=_0x5b7a94['plugins']['get']('TrackChangesEditing');function _0x221409(_0x318dbf){return{'type':'format','content':''+c(_0x5d0a2e,'*Set\x20table\x20type:*\x20%0',_0x318dbf)};}_0x5b7a94['plugins']['has']('TableLayout')&&(_0x1d22f1['enableCommand']('insertTableLayout'),_0x1d22f1['enableDefaultAttributesIntegration']('tableType'),_0x1d22f1['registerBlockAttribute']('tableType'),_0x1d22f1['descriptionFactory']['registerElementLabel'](_0x1b71f7=>_0x1b71f7['is']('element','table')&&'layout'===_0x1b71f7['getAttribute']('tableType'),_0x2d481b=>c(_0x5d0a2e,'ELEMENT_LAYOUT_TABLE',_0x2d481b)),_0x1d22f1['descriptionFactory']['registerDescriptionCallback'](_0xe64a40=>{const {data:_0x4a2ad8}=_0xe64a40;if(_0x4a2ad8&&'tableType'==_0x4a2ad8['key'])switch(_0x4a2ad8['newValue']){case'layout':return _0x221409(c(_0x5d0a2e,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x221409(c(_0x5d0a2e,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=Object['fromEntries'](Oe['map'](_0x5d88bb=>[_0x5d88bb,null]));class $t extends _0x525fe{static get['requires'](){return[Ct];}['afterInit'](){const _0x325848=this['editor'];if(!_0x325848['plugins']['has']('TableClipboard'))return;const _0x47e3c3=_0x325848['plugins']['get']('TrackChangesEditing'),_0x5df5c0=_0x325848['plugins']['get']('TableUtils'),_0x343ee2=_0x325848['plugins']['get'](Ct),_0x3bb91e=_0x325848['plugins']['get']('TableClipboard'),_0x5dd622=_0x325848['plugins']['get']('TableSelection'),_0x15ac8a=_0x325848['plugins']['get'](_0xdc0a57);_0x343ee2['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x325848['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x325848['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2572a0=null,_0x228d3a=!0x1;_0x15ac8a['on']('contentInsertion',(_0x336452,_0xc316d5)=>{_0x228d3a='paste'===_0xc316d5['method'];}),_0x325848['model']['on']('insertContent',(_0x2823bf,_0x206ef1)=>{if(!_0x228d3a&&null===_0x5dd622['getSelectedTableCells']())return;const [_0x1dd31b,_0x1579d2]=_0x206ef1,_0x10696a=_0x206ef1[_0x206ef1['length']-0x1];_0x10696a&&_0x10696a['forceDefaultExecution']||_0x47e3c3['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x373347,_0x10377f,_0x3de453,_0x4d2ed4,_0x75dd9){if(_0x10377f&&!_0x10377f['is']('documentSelection'))return!0x1;const _0x111d9d=_0x75dd9['getTableIfOnlyTableInContent'](_0x373347,_0x3de453);if(!_0x111d9d||!He(_0x111d9d,void 0x0,_0x4d2ed4))return!0x1;const _0x57d63b=_0x4d2ed4['getSelectionAffectedTableCells'](_0x3de453['document']['selection']);if(!_0x57d63b['length'])return!0x1;const _0x217d9b=_0x57d63b[0x0]['findAncestor']('table'),_0x59be29=_0x4d2ed4['getRowIndexes'](_0x57d63b),_0x3e8ea9=_0x4d2ed4['getColumnIndexes'](_0x57d63b),_0x2f3452={'startRow':_0x59be29['first'],'endRow':_0x59be29['last'],'startColumn':_0x3e8ea9['first'],'endColumn':_0x3e8ea9['last']};return 0x1==_0x57d63b['length']&&(_0x2f3452['endRow']+=_0x4d2ed4['getRows'](_0x111d9d)-0x1,_0x2f3452['endColumn']+=_0x4d2ed4['getColumns'](_0x111d9d)-0x1),He(_0x217d9b,_0x2f3452,_0x4d2ed4);}(_0x1dd31b,_0x1579d2,_0x325848['model'],_0x5df5c0,_0x3bb91e)&&(_0x2823bf['stop'](),_0x2572a0={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x325848['model']['change'](()=>{_0x325848['model']['insertContent'](_0x206ef1[0x0],_0x206ef1[0x1],_0x206ef1[0x2],{'forceDefaultExecution':!0x0});const _0x22587d=_0x4f1695(),{rowInsertionRanges:_0xfee607,columnInsertionRanges:_0x10ef33,insertionRanges:_0x166cc6,deletionRanges:_0x2baba,cells:_0x133e08}=_0x2572a0;_0xfee607['length']&&_0x47e3c3['markMultiRangeInsertion'](_0xfee607,'tablePasteRow',{'tablePasteChainId':_0x22587d}),_0x10ef33['length']&&_0x47e3c3['markMultiRangeInsertion'](_0x10ef33,'tablePasteColumn',{'tablePasteChainId':_0x22587d}),_0x166cc6['length']&&(_0x47e3c3['markMultiRangeInsertion'](_0x166cc6,'tablePaste',{'tablePasteChainId':_0x22587d,'skipNestingCheck':!0x0}),_0x166cc6['forEach'](_0x15caef=>_0x15caef['detach']?.())),_0x2baba['length']&&(_0x47e3c3['markMultiRangeDeletion'](_0x2baba,'tablePaste',{'tablePasteChainId':_0x22587d,'skipNestingCheck':!0x0}),_0x2baba['forEach'](_0x30c83d=>_0x30c83d['detach']?.()));const _0x38c57f=_0x47e3c3['markMultiRangeBlockFormat'](_0x133e08['map'](({element:_0x4ae1cc})=>_0x4ae1cc),{'formatGroupId':_0x4f1695()},[],'tablePasteCell',{'tablePasteChainId':_0x22587d});if(_0x38c57f){const _0x35b419=_0x38c57f['getMarkers'](),_0x28d72f=[];for(const {element:_0x2d7ed0,attributes:_0x230741}of _0x133e08){if(!_0x230741)continue;const _0x4dc730=_0x325848['model']['createRangeOn'](_0x2d7ed0),_0x22da1f=_0x35b419['find'](_0x39aa8f=>_0x39aa8f['getRange']()['isEqual'](_0x4dc730));_0x22da1f&&_0x28d72f['push']([_0x22da1f['name'],_0x230741]);}_0x28d72f['length']&&_0x38c57f['setAttribute']('markerAttributes',Object['fromEntries'](_0x28d72f));}_0x2572a0=null;}));},{'priority':_0x268430['high']+0xa}),_0x15ac8a['on']('contentInsertion',()=>{_0x228d3a=!0x1;},{'priority':'lowest'}),_0x325848['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x1a1065,_0x1438c2)=>{const [_0x123435,_0x3b6222,,_0x4b11e1]=_0x1438c2;if(!_0x2572a0)return;_0x1a1065['stop']();const _0x17f5cf=_0x123435['cell'],_0x55db57=_0x3b6222,_0x423673=De(_0x17f5cf),_0x2a1e4b=De(_0x55db57);_0x1a1065['return']=_0x17f5cf;let _0x4d5392=null,_0x59d265=null;if(_0x2a1e4b||_0x423673){if(_0x423673&&!_0x2a1e4b){_0x4b11e1['remove'](_0x17f5cf['getChild'](0x0));for(const _0xdd1a48 of Array['from'](_0x55db57['getChildren']()))_0x4b11e1['insert'](_0xdd1a48,_0x17f5cf,'end');const _0x2596d1=_0x2572a0['rowInsertionIndexes']['includes'](_0x123435['row']),_0x475cca=_0x2572a0['columnInsertionIndexes']['includes'](_0x123435['column']);_0x2596d1||_0x475cca||(_0x4d5392=_0x106800['fromRange'](_0x4b11e1['createRangeIn'](_0x17f5cf)));}else _0x2a1e4b&&!_0x423673&&(_0x59d265=_0x4b11e1['createRangeIn'](_0x17f5cf));}else{const _0x1ebd17=_0x4b11e1['createElement']('tableCellSuggestion'),_0x2770bd=_0x4b11e1['createElement']('tableCellSuggestion');_0x4b11e1['wrap'](_0x4b11e1['createRangeIn'](_0x17f5cf),_0x2770bd),_0x4b11e1['insert'](_0x1ebd17,_0x17f5cf,0x0);for(const _0x128ced of Array['from'](_0x55db57['getChildren']()))_0x4b11e1['insert'](_0x128ced,_0x1ebd17,'end');_0x4d5392=_0x106800['fromRange'](_0x4b11e1['createRangeOn'](_0x1ebd17)),_0x59d265=_0x106800['fromRange'](_0x4b11e1['createRangeOn'](_0x2770bd));}const _0x3722ec=Array['from'](_0x55db57['getAttributes']())['filter'](([_0x332ad5])=>Oe['includes'](_0x332ad5));_0x2572a0['cells']['push']({'element':_0x17f5cf,'attributes':_0x3722ec['length']?Object['fromEntries'](_0x3722ec):null}),_0x4d5392&&_0x2572a0['insertionRanges']['push'](_0x4d5392),_0x59d265&&_0x2572a0['deletionRanges']['push'](_0x59d265);},{'priority':'high'}),_0x5df5c0['on']('insertColumns',(_0x3ccc20,_0x5a3a40)=>{const [_0x124a9e,_0xe6ac36={}]=_0x5a3a40;if(!_0x2572a0)return;const _0x198e61=_0xe6ac36['at']||0x0,_0x584539=_0xe6ac36['columns']||0x1;_0x2572a0['columnInsertionIndexes']=new Array(_0x584539)['fill'](_0x198e61)['map']((_0x50ddc9,_0x410fd4)=>_0x50ddc9+_0x410fd4);for(const {cell:_0x4be98b}of _0x5df5c0['createTableWalker'](_0x124a9e,{'startColumn':_0x198e61,'endColumn':_0x198e61+_0x584539-0x1}))_0x2572a0['columnInsertionRanges']['push'](_0x325848['model']['createRangeOn'](_0x4be98b));},{'priority':'low'}),_0x5df5c0['on']('insertRows',(_0x331b3e,_0x3970fa)=>{const [_0x24f8e4,_0x58694d={}]=_0x3970fa;if(!_0x2572a0)return;const _0x5bd3b2=_0x58694d['at']||0x0,_0x2d9967=_0x58694d['rows']||0x1;_0x2572a0['rowInsertionIndexes']=new Array(_0x2d9967)['fill'](_0x5bd3b2)['map']((_0x169c6a,_0xae5e61)=>_0x169c6a+_0xae5e61);for(const {cell:_0x5041a3}of _0x5df5c0['createTableWalker'](_0x24f8e4,{'startRow':_0x5bd3b2,'endRow':_0x5bd3b2+_0x2d9967-0x1}))_0x2572a0['rowInsertionRanges']['push'](_0x325848['model']['createRangeOn'](_0x5041a3));},{'priority':'low'}),_0x47e3c3['descriptionFactory']['registerDescriptionCallback'](_0x336fed=>{if(_0x336fed['subType']&&_0x336fed['subType']['startsWith']('tablePaste'))return _0x336fed['previous']?{}:{'type':'insertion','content':c(_0x325848['locale'],'*Replace\x20table\x20cells*')};});const _0x4169df=()=>!0x1;for(const _0x491807 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x47e3c3['_suggestionFactory']['registerCustomCallback']('insertion',_0x491807,'join',_0x4169df),_0x47e3c3['_suggestionFactory']['registerCustomCallback']('deletion',_0x491807,'join',_0x4169df),_0x47e3c3['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x491807,'join',_0x4169df);_0x47e3c3['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x4169df),_0x47e3c3['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x51ed88,_0x354f02,_0x55ad3)=>{const _0x3a8cb8=_0x51ed88['map'](_0x1b99a9=>_0x1b99a9['getContainedElement']())['filter'](_0x8f42f3=>_0x8f42f3),_0x5043df=new Map(_0x3a8cb8['map'](_0x3b0a44=>[_0x3b0a44,null]));if(_0x2572a0){for(const {element:_0x58386c,attributes:_0x590858}of _0x2572a0['cells'])_0x590858&&_0x5043df['set'](_0x58386c,_0x590858);}else{if(_0x55ad3&&_0x55ad3['markerAttributes'])for(const [_0x5bbf3d,_0xbcfd68]of Object['entries'](_0x55ad3['markerAttributes'])){const _0x119350=_0x325848['model']['markers']['get'](_0x5bbf3d),_0x264388=_0x119350?_0x119350['getRange']()['getContainedElement']():null;_0x264388&&_0x5043df['set'](_0x264388,_0xbcfd68);}}_0x325848['model']['change'](_0xa0b663=>{for(const [_0x384bd8,_0x29b955]of _0x5043df)_0xa0b663['setAttributes']({...Ue,..._0x29b955},_0x384bd8);});});const _0x74172c=(_0xcf4676,_0x5d8629)=>{_0x47e3c3['_suggestionFactory']['registerCustomCallback'](_0xcf4676,'tablePaste',_0x5d8629,(_0x42b958,_0x18c308,_0x44e20c)=>{_0x325848['model']['change'](_0x9e64cb=>{const _0x54f2cf=[];for(const _0x3ca6fc of _0x42b958){const _0x24dc0f=_0x3ca6fc['start']['nodeAfter'];_0x24dc0f['is']('element','tableCellSuggestion')&&_0x54f2cf['push'](_0x24dc0f);}_0x47e3c3['_suggestionFactory']['getSuggestionCallback'](_0xcf4676,null,_0x5d8629)(_0x42b958,_0x18c308,_0x44e20c);for(const _0x3f5117 of _0x54f2cf)'$graveyard'!=_0x3f5117['root']['rootName']&&_0x9e64cb['unwrap'](_0x3f5117);});});};_0x74172c('insertion','accept'),_0x74172c('insertion','discard'),_0x74172c('deletion','accept'),_0x74172c('deletion','discard'),_0x47e3c3['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x24ce57=>{const _0x11c6de=_0x24ce57['map'](_0x1f31e9=>_0x1f31e9['getContainedElement']()),_0x2348c4=_0x11c6de[0x0]['findAncestor']('table'),{minRow:_0x49b4d7,maxRow:_0x18be7a}=_0x343ee2['_getCoordsForCells'](_0x11c6de);_0x5df5c0['removeRows'](_0x2348c4,{'at':_0x49b4d7,'rows':_0x18be7a-_0x49b4d7+0x1});}),_0x47e3c3['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x8d9c78=>{const _0x21ee29=_0x8d9c78['map'](_0x13c6a1=>_0x13c6a1['getContainedElement']()),_0x2fd34f=_0x21ee29[0x0]['findAncestor']('table'),{minColumn:_0x4275c5,maxColumn:_0x2a8163}=_0x343ee2['_getCoordsForCells'](_0x21ee29);_0x5df5c0['removeColumns'](_0x2fd34f,{'at':_0x4275c5,'columns':_0x2a8163-_0x4275c5+0x1});});const _0x24b8c8=(_0x200e5e,_0x446215)=>{if(!_0x446215['subType']||!_0x446215['subType']['startsWith']('tablePaste'))return;const _0x2fe8e0=_0x446215['attributes']['tablePasteChainId'],_0x5558d4=_0x47e3c3['getSuggestions']()['filter'](_0xf03190=>_0xf03190['isInContent']&&_0xf03190['attributes']&&_0xf03190['attributes']['tablePasteChainId']==_0x2fe8e0);_0x5558d4['length']&&_0x446215['getAllAdjacentSuggestions']()['length']!=_0x5558d4['length']&&_0x5558d4['reduce']((_0x4b1a2f,_0x2c6a13)=>(_0x4b1a2f['next']=_0x2c6a13,_0x2c6a13['previous']=_0x4b1a2f,_0x2c6a13));};function _0x307121(_0x4d1c48,_0x44ff6c=!0x0){const {id:_0x356beb,authorId:_0x3108ec}=_0x47e3c3['_splitMarkerName'](_0x4d1c48['markerName']),_0x1933d5=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x55b921=_0x47e3c3['activeMarkers']['includes'](_0x4d1c48['markerName']);return _0x55b921&&_0x1933d5['push']('ck-suggestion-marker--active'),{'classes':_0x1933d5,'attributes':{'data-suggestion':_0x356beb,'data-author-id':_0x3108ec},'priority':_0x55b921&&_0x44ff6c?0xbc2:0xbb8};}_0x47e3c3['on']('suggestionLoaded',_0x24b8c8,{'priority':'high'}),_0x47e3c3['on']('suggestionUnloaded',_0x24b8c8,{'priority':'high'}),_0x325848['model']['document']['registerPostFixer'](()=>{let _0x4f3aac=!0x1;const _0x3b6f29=Array['from'](_0x325848['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5d84bb,data:_0x225fa9}of _0x3b6f29){const {group:_0x192314,type:_0x46971f,id:_0x2a802d}=_0x47e3c3['_splitMarkerName'](_0x5d84bb);if('suggestion'!=_0x192314||'deletion'!=_0x46971f||_0x225fa9['oldRange'])continue;if(!_0x47e3c3['hasSuggestion'](_0x2a802d))continue;const _0x4fccc3=_0x47e3c3['getSuggestion'](_0x2a802d)['getRanges'](),_0x354805=_0x325848['plugins']['get']('Users')['me'];for(const _0x14884e of _0x47e3c3['getSuggestions']()){if(!_0x14884e['isInContent']||_0x14884e['author']!=_0x354805)continue;if('formatBlock'!=_0x14884e['type']||'tablePasteCell'!=_0x14884e['subType'])continue;if(_0x14884e['getRanges']()['every'](_0x49f38f=>_0x4fccc3['some'](_0x1ad27e=>_0x1ad27e['containsRange'](_0x49f38f,!0x0)))){for(const _0x59cb22 of _0x14884e['getAllAdjacentSuggestions']())_0x59cb22['isInContent']&&(_0x59cb22['discard'](),_0x4f3aac=!0x0);}}}return _0x4f3aac;}),_0x325848['model']['document']['registerPostFixer'](_0x54dea7=>{const _0x4791eb=_0x325848['commands']['get']('redo');if(!_0x4791eb||!_0x4791eb['_createdBatches']['has'](_0x54dea7['batch']))return!0x1;let _0x3b8dc0=!0x1;const _0x5addd8=_0x325848['plugins']['get']('Users')['me'],_0x38d665=_0x325848['model']['document']['differ']['getChanges'](),_0x38fb2d=Array['from'](_0x325848['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x8157c6,data:_0x2bc08e})=>{const {group:_0x455793,subType:_0x4485bb,authorId:_0x2bb462}=_0x47e3c3['_splitMarkerName'](_0x8157c6);return'suggestion'==_0x455793&&'tablePaste'==_0x4485bb&&_0x2bb462==_0x5addd8['id']&&!_0x2bc08e['oldRange'];});for(const _0xd3ed26 of _0x38d665){if('insert'!=_0xd3ed26['type']||'tableCellSuggestion'!=_0xd3ed26['name']||0x1!=_0xd3ed26['length'])continue;const _0x2d1aa9=_0x54dea7['createRange'](_0xd3ed26['position'],_0xd3ed26['position']['getShiftedBy'](0x1));if(!_0x38fb2d['find'](({data:_0x3353e7})=>_0x3353e7['newRange']['isEqual'](_0x2d1aa9))){for(const {name:_0x400445,data:_0x407ad3}of _0x38fb2d)if(_0x2d1aa9['containsRange'](_0x407ad3['newRange'])){_0x54dea7['updateMarker'](_0x400445,{'range':_0x2d1aa9}),_0x3b8dc0=!0x0;break;}}}return _0x3b8dc0;}),_0x325848['model']['document']['registerPostFixer'](_0x574edf=>{let _0x3bb381=!0x1;const _0xf727e4=_0x325848['plugins']['get']('Users')['me'],_0x4ca153=_0x47e3c3['getSuggestions']()['filter'](_0x3bceea=>_0x3bceea['isInContent']&&_0x3bceea['author']==_0xf727e4),_0x2b2777=new Set(),_0x49bccb=new Set();for(const _0x4a734d of _0x4ca153)if('tablePaste'==_0x4a734d['subType'])for(const _0xdc55e8 of _0x4a734d['getMarkers']()){const _0x2fff2f=_0xdc55e8['getRange']()['getContainedElement']();if(_0x2fff2f){if(_0x2fff2f['is']('element','tableCellSuggestion')&&De(_0x2fff2f)){_0x4a734d['removeMarker'](_0xdc55e8['name']),_0x2b2777['add'](_0x2fff2f),_0x3bb381=!0x0;const _0x1e319f=_0x2fff2f['nextSibling'],_0x1f8f84=_0x2fff2f['previousSibling'],_0x1c23f0=_0x1e319f&&_0x1e319f['is']('element','tableCellSuggestion'),_0x24faf5=_0x1f8f84&&_0x1f8f84['is']('element','tableCellSuggestion');_0x1c23f0&&!_0x2b2777['has'](_0x1e319f)&&_0x49bccb['add'](_0x1e319f),_0x24faf5&&!_0x2b2777['has'](_0x1f8f84)&&_0x49bccb['add'](_0x1f8f84);}else _0x2fff2f['is']('element','paragraph')&&_0x2fff2f['isEmpty']&&(_0x4a734d['removeMarker'](_0xdc55e8['name']),_0x3bb381=!0x0);}}else{if('tablePasteCell'==_0x4a734d['subType']){if(!_0x4a734d['attributes']||!_0x4a734d['attributes']['tablePasteChainId'])continue;const _0x734aab=_0x4a734d['attributes']['markerAttributes'];if(_0x734aab&&Object['keys'](_0x734aab)['length'])continue;const _0x46733e=_0x4a734d['attributes']['tablePasteChainId'];let _0x1c3953=!0x0,_0x3764f8=!0x0;for(const _0x12e9b6 of _0x4ca153)if(_0x12e9b6['subType']&&_0x12e9b6['subType']['startsWith']('tablePaste')){if(!_0x12e9b6['attributes']['tablePasteChainId']){_0x3764f8=!0x1;break;}if(_0x12e9b6['id']!=_0x4a734d['id']&&_0x12e9b6['attributes']['tablePasteChainId']==_0x46733e){_0x1c3953=!0x1;break;}}_0x3764f8&&_0x1c3953&&(_0x4a734d['removeMarkers'](),_0x3bb381=!0x0);}}for(const _0x102bbf of _0x2b2777)_0x574edf['remove'](_0x102bbf);for(const _0x22cec5 of _0x49bccb)_0x574edf['unwrap'](_0x22cec5);return _0x3bb381;}),_0x325848['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x27c41f=>_0x307121(_0x27c41f),'converterPriority':'high'}),_0x325848['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x348ec8,_0x4befa1)=>_0x4befa1['options']['showSuggestionHighlights']?_0x307121(_0x348ec8,!0x1):null,'converterPriority':'high'});const _0xb827ce=_0x325848['editing']['view'];this['listenTo'](_0xb827ce['document'],'clipboardOutput',(_0xb1f9f0,_0x7914e8)=>{const _0x24334c=[];for(const _0x3e3f8d of _0xb827ce['createRangeIn'](_0x7914e8['content'])['getItems']())_0x3e3f8d['is']('element','suggestion-td')&&_0x24334c['push'](_0x3e3f8d);_0xb827ce['change'](_0x1a58f7=>{for(const _0x2ae11a of _0x24334c)_0x1a58f7['move'](_0x1a58f7['createRangeIn'](_0x2ae11a),_0x1a58f7['createPositionBefore'](_0x2ae11a)),_0x1a58f7['remove'](_0x2ae11a);});});}}function De(_0x4dc645){if(_0x4dc645['isEmpty'])return!0x0;const _0x30b560=_0x4dc645['getChild'](0x0);return _0x30b560['is']('element','paragraph')&&_0x30b560['isEmpty'];}function He(_0x134deb,_0x20fb66={},_0x5a896b){for(const {isAnchor:_0x45ec0f,cellHeight:_0x525950,cellWidth:_0x181aa9}of _0x5a896b['createTableWalker'](_0x134deb,{'includeAllSlots':!0x0,..._0x20fb66}))if(!_0x45ec0f||0x1!=_0x525950||0x1!=_0x181aa9)return!0x1;return!0x0;}class Bt extends _0x525fe{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x17f33f=this['editor']['plugins']['get']('TrackChangesEditing');_0x17f33f['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x17f33f['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x17f33f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x17f33f['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x17f33f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x17f33f['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x39228a,_0x388fa4){const _0x499733=this['editor']['plugins']['get']('TrackChangesEditing'),_0x180d1f=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x36957e=_0x388fa4['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x1ac1ea=_0x180d1f['getColumnGroupElement'](_0x36957e);let _0x42d6a7=_0x1ac1ea?_0x180d1f['getTableColumnsWidths'](_0x1ac1ea):null,_0x2e823f=_0x36957e['getAttribute']('tableWidth')||null;const _0x27af7b=_0x388fa4['tableWidth']||_0x2e823f,_0x3f4786=_0x388fa4['columnWidths']||_0x42d6a7,_0x4c11b8=this['editor']['plugins']['get']('Users')['me'];for(const _0x305afe of _0x499733['getSuggestions']()){const _0x4d1d31=_0x305afe['getContainedElement']();if('resizeTable'===_0x305afe['subType']&&_0x4d1d31===_0x36957e){_0x305afe['author']!==_0x4c11b8&&_0x305afe['discard']();const _0x31a4c4=_0x305afe['data']['commandParams'];_0x2e823f=_0x31a4c4[0x0]['tableWidth'],_0x42d6a7=_0x31a4c4[0x0]['columnWidths'];break;}}_0x39228a({'table':_0x36957e,'tableWidth':_0x27af7b,'columnWidths':_0x3f4786}),_0x499733['markBlockFormat'](_0x36957e,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x2e823f,'columnWidths':_0x42d6a7}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x196311){if('formatBlock'!=_0x196311['type']&&'formatInline'!=_0x196311['type'])return;const {data:_0x1294ce}=_0x196311;if(_0x1294ce&&'resizeTable'===_0x1294ce['formatGroupId']){const _0x5635d2='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x5635d2)};}}}class xt extends _0x525fe{['afterInit'](){const _0x1a7e09=this['editor'];_0x1a7e09['plugins']['has']('Template')&&_0x1a7e09['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x525fe{['afterInit'](){const _0x1b9aa3=this['editor'];if(!_0x1b9aa3['commands']['get']('insertTableOfContents'))return;_0x1b9aa3['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x11927a=_0x1b9aa3['plugins']['get']('TrackChangesEditing'),_0x5db170=_0x1b9aa3['locale'];_0x11927a['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1fdb5d=>c(_0x5db170,'ELEMENT_TABLE_OF_CONTENTS',_0x1fdb5d));}}class Rt extends _0x525fe{['afterInit'](){const _0xf0ba3c=this['editor'];if(!_0xf0ba3c['plugins']['has']('Title'))return;const _0x2d588f=_0xf0ba3c['plugins']['get']('TrackChangesEditing');_0x2d588f['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0xf0ba3c['locale'],'ELEMENT_TITLE')),_0xf0ba3c['model']['document']['registerPostFixer'](_0xfd3f5b=>{let _0x4ef43f=!0x1;const _0x39ab6b=Array['from'](_0xf0ba3c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x59f220,data:_0x4a7bd5}of _0x39ab6b){const {group:_0xe7110a}=_0x2d588f['_splitMarkerName'](_0x59f220);if('suggestion'!==_0xe7110a||!_0x4a7bd5['newRange'])continue;const _0x528190=_0x4a7bd5['newRange'],_0x400583=_0x528190['end']['nodeBefore'];if(!_0x400583||!_0x400583['is']('element','title-content'))continue;if(!_0x528190['start']['isTouching'](_0x528190['end']))continue;const _0x2127ff=_0xf0ba3c['model']['schema']['getNearestSelectionRange'](_0x528190['end'],'forward');if(_0x2127ff&&_0x2127ff['isCollapsed']){const _0x3daf80=_0xfd3f5b['createRange'](_0x528190['start'],_0x2127ff['start']);_0x3daf80['isEqual'](_0x528190)||(_0xfd3f5b['updateMarker'](_0x59f220,{'range':_0x3daf80}),_0x4ef43f=!0x0);}_0x4ef43f||(_0xfd3f5b['removeMarker'](_0x59f220),_0x4ef43f=!0x0);}return _0x4ef43f;});}}class Tt extends _0x525fe{['afterInit'](){const _0x115e1a=this['editor'],_0x4e926a=_0x115e1a['plugins']['get']('TrackChangesEditing');_0x115e1a['plugins']['has']('Uploadcare')&&(_0x4e926a['enableCommand']('uploadcare'),_0x115e1a['plugins']['has']('UploadcareImageEdit')&&(_0x4e926a['enableCommand']('uploadcareImageEdit'),_0x4e926a['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x4e926a['registerBlockAttribute']('uploadcareImageId'),_0x4e926a['descriptionFactory']['registerDescriptionCallback'](_0x4ccaaa=>{if('attribute'!=_0x4ccaaa['type'])return;const {data:_0x55dd86}=_0x4ccaaa;return _0x55dd86&&'uploadcareImageId'==_0x55dd86['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x525fe{['afterInit'](){const _0x560dc6=this['editor'],_0x4c0403=_0x560dc6['plugins']['get']('TrackChangesEditing');_0x560dc6['plugins']['has']('UndoEditing')&&(_0x4c0403['enableCommand']('undo'),_0x4c0403['enableCommand']('redo'));}}class Ut extends _0x525fe{static get['requires'](){return[Ct];}['afterInit'](){const _0x377256=this['editor'];if(!_0x377256['plugins']['has']('TableCaptionEditing'))return;_0x377256['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x525fe{['tableProperties'];['tableCellProperties'];constructor(_0xa22e97){super(_0xa22e97),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 _0xcca7ad=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x1b3443 of this['tableProperties'])_0xcca7ad['enableCommand'](_0x1b3443,(_0xc0eee,_0x5d1e33)=>{const _0xa1cd60=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x1b3443,[_0xa1cd60],this['tableProperties'],'tableProperties',_0xc0eee,_0x5d1e33);});_0xcca7ad['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0xcca7ad['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xcca7ad['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x148ef9,_0xab66c5)=>this['handleDiscardAction'](this['tableProperties'],_0x148ef9,_0xab66c5)),_0xcca7ad['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x10305f of this['tableCellProperties'])_0xcca7ad['enableCommand'](_0x10305f,(_0x223c44,_0x21e8d1)=>{const _0x1227ea=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x10305f,_0x1227ea,this['tableCellProperties'],'tableCellProperties',_0x223c44,_0x21e8d1);});_0xcca7ad['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0xcca7ad['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xcca7ad['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4b1245,_0x36f73a)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4b1245,_0x36f73a)),_0xcca7ad['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0xcca7ad['descriptionFactory']['registerDescriptionCallback'](_0x2839cd=>this['handleSuggestionDescription'](_0x2839cd));}['_handlePropertyChange'](_0x5684cd,_0x263e01,_0xf32f9c,_0x228836,_0x2fdc3b,_0x591147){const _0x5c8a4e=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x591147['batch'],()=>{for(const _0x97a4df of _0x263e01){if(this['_getSuggestion'](_0x97a4df,_0x228836))_0x2fdc3b(_0x591147);else{const _0x53b744={};for(const _0xf82e6b of _0xf32f9c){const _0x3bb2fe=_0x97a4df['getAttribute'](_0xf82e6b);void 0x0!==_0x3bb2fe&&(_0x53b744[_0xf82e6b]=_0x3bb2fe);}_0x2fdc3b(_0x591147),_0x5c8a4e['markBlockFormat'](_0x97a4df,{'commandParams':[_0x53b744]},[],_0x228836);}}});}['handleDiscardAction'](_0x457ac8,_0xb504ca,_0x6ec2e6){const _0x232ae8=_0xb504ca[0x0]['start']['nodeAfter'],_0x5e4cd4=_0x6ec2e6['commandParams'][0x0];this['editor']['model']['change'](_0x581498=>{for(const _0xc0a786 of _0x457ac8)void 0x0!==_0x5e4cd4[_0xc0a786]?_0x581498['setAttribute'](_0xc0a786,_0x5e4cd4[_0xc0a786],_0x232ae8):_0x581498['removeAttribute'](_0xc0a786,_0x232ae8);});}['handleSuggestionDescription'](_0x19dfe2){if(_0x19dfe2['data'])switch(_0x19dfe2['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'](_0x6e7223,_0x2c7d79){const _0x1b0575=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x36d2bd of _0x1b0575['getSuggestions']({'skipNotAttached':!0x0})){const _0x333675=_0x36d2bd['getContainedElement']();if(_0x36d2bd['subType']===_0x2c7d79&&_0x333675===_0x6e7223)return _0x36d2bd;}return null;}}const u='$elementName';class p extends _0x525fe{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x7bb796,_0x296619,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(_0x1b42af){super(_0x1b42af),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x36655d,_0x37903d,_0x42f818,_0x76ae9e)=>{this['_model']['change'](()=>{for(const _0x31e187 of[..._0x76ae9e,..._0x42f818])this['_model']['markers']['has'](_0x31e187)&&_0x1b42af['editing']['reconvertMarker'](_0x31e187);});}),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']=_0x1b42af['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(),_0x1b42af['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1b42af['config']['get']('trackChanges.trackFormatChanges'),_0x1b42af['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1b42af['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x1b42af,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x5d33c8=this['editor'],_0x1a805f=(_0x519810,_0x5ee855)=>{if('attribute'!=_0x519810)return'ck-suggestion-marker-'+_0x519810;const _0x1825ad=_0x5ee855['split']('|')[0x0];return this['_isBlockAttribute'](_0x1825ad)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x5d33c8['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1e7daa=>{const {id:_0x3fbff3,authorId:_0x4094e1,type:_0xd7084e,subType:_0x2438ed}=this['_splitMarkerName'](_0x1e7daa['markerName']),_0x2c79d9=['ck-suggestion-marker',_0x1a805f(_0xd7084e,_0x2438ed)];let _0x2bdcdc=0xbb8;return this['activeMarkers']['includes'](_0x1e7daa['markerName'])&&(_0x2c79d9['push']('ck-suggestion-marker--active'),_0x2bdcdc=0xbc2),'deletion'==_0xd7084e&&(_0x2bdcdc+=0x5),{'classes':_0x2c79d9,'attributes':{'data-suggestion':_0x3fbff3,'data-author-id':_0x4094e1},'priority':_0x2bdcdc};}}),_0x5d33c8['conversion']['for']('dataDowncast')['add'](_0x9f02f4=>{_0x9f02f4['on']('addMarker:suggestion',(_0x3e32e8,_0x5cf30b,_0x3d772b)=>{if(!_0x3d772b['options']['showSuggestionHighlights'])return;const _0x330dd8=_0x5cf30b['item'];if(!_0x330dd8)return;const _0x514c4a=_0x3d772b['mapper']['toViewElement'](_0x330dd8);_0x5d33c8['model']['schema']['isObject'](_0x330dd8)&&_0x514c4a&&!_0x514c4a['getCustomProperty']('widget')&&_0x514c4a['is']('containerElement')&&_0x36876e(_0x514c4a,_0x3d772b['writer']);},{'priority':'high'});}),_0x5d33c8['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0xc00ff8,_0x1ff9f5)=>{if(!_0x1ff9f5['options']['showSuggestionHighlights'])return null;const {id:_0x555103,authorId:_0x1c3f68,type:_0x222957,subType:_0x3b0655}=this['_splitMarkerName'](_0xc00ff8['markerName']);return{'classes':['ck-suggestion-marker',_0x1a805f(_0x222957,_0x3b0655)],'priority':0xbb8,'attributes':{'data-suggestion':_0x555103,'data-author-id':_0x1c3f68}};}});const _0x28f6fd=({showActiveMarkers:_0x1c2cdb=!0x0,isAttributeSuggestion:_0x94e21f=!0x1}={})=>(_0x4e4795,_0x103f87,_0x5cc27b)=>{if(!_0x103f87['item'])return;const {id:_0xcabada,authorId:_0x1727c0}=this['_splitMarkerName'](_0x103f87['markerName']);if(_0x94e21f){const _0x24f861=this['_suggestions']['get'](_0xcabada),_0x185814=this['_getAttributeKey'](_0x24f861);if(!this['_isBlockAttribute'](_0x185814))return;}if(_0x103f87['item']['is']('selection'))return void _0x5cc27b['consumable']['consume'](_0x103f87['item'],_0x4e4795['name']);const _0x2c4762=_0x5cc27b['mapper']['toViewElement'](_0x103f87['item']);if(_0x103f87['item']['is']('element')&&_0x5d33c8['model']['schema']['isBlock'](_0x103f87['item'])&&!_0x2c4762['getCustomProperty']('addHighlight')){_0x5cc27b['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x2c4762),_0x5cc27b['writer']['setAttribute']('data-suggestion',_0xcabada,_0x2c4762),_0x5cc27b['writer']['setAttribute']('data-author-id',_0x1727c0,_0x2c4762),_0x5cc27b['mapper']['bindElementToMarker'](_0x2c4762,_0x103f87['markerName']),_0x1c2cdb&&(this['activeMarkers']['includes'](_0x103f87['markerName'])?_0x5cc27b['writer']['addClass']('ck-suggestion-marker--active',_0x2c4762):_0x5cc27b['writer']['removeClass']('ck-suggestion-marker--active',_0x2c4762));for(const _0x4e8497 of _0x5d33c8['model']['createRangeIn'](_0x103f87['item'])['getItems']())_0x5cc27b['consumable']['consume'](_0x4e8497,_0x4e4795['name']);_0x5cc27b['consumable']['consume'](_0x103f87['item'],_0x4e4795['name']);}};_0x5d33c8['conversion']['for']('dataDowncast')['add'](_0x29c3f2=>{_0x29c3f2['on']('addMarker:suggestion:formatBlock',(_0x5581d3,_0x52049b,_0x2b45e7)=>{_0x2b45e7['options']['showSuggestionHighlights']&&_0x28f6fd({'showActiveMarkers':!0x1})(_0x5581d3,_0x52049b,_0x2b45e7);},{'priority':'highest'});}),_0x5d33c8['conversion']['for']('dataDowncast')['add'](_0x14c594=>{_0x14c594['on']('addMarker:suggestion:attribute',(_0x3ffb7d,_0x2abde1,_0x5e8377)=>{_0x5e8377['options']['showSuggestionHighlights']&&_0x28f6fd({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x3ffb7d,_0x2abde1,_0x5e8377);},{'priority':'highest'});}),_0x5d33c8['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x5f3a11,_0x2373f5)=>{if(_0x2373f5['options']['showSuggestionHighlights']){const {id:_0x38fc90,authorId:_0x540929}=this['_splitMarkerName'](_0x5f3a11);return _0x5f3a11['includes'](':split')||_0x5f3a11['includes'](':merge')?{'group':'suggestion','name':_0x5f3a11['substr'](0xb),'attributes':{'data-suggestion':_0x38fc90,'data-author-id':_0x540929}}:null;}return{'group':'suggestion','name':_0x5f3a11['substr'](0xb)};}}),_0x5d33c8['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x38980f,{writer:_0x227316})=>{let _0x334402='suggestion:'+_0x38980f['getAttribute']('suggestion-type')+':'+_0x38980f['getAttribute']('id');return _0x38980f['getAttribute']('marker-count')&&(_0x334402+=':'+_0x38980f['getAttribute']('marker-count')),_0x227316['createElement']('$marker',{'data-name':_0x334402});}}),_0x5d33c8['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x5d33c8['conversion']['for']('editingDowncast')['add'](_0x5c36fb=>{_0x5c36fb['on']('addMarker:suggestion:formatBlock',_0x28f6fd(),{'priority':'high'});}),_0x5d33c8['conversion']['for']('editingDowncast')['add'](_0x19febf=>{_0x19febf['on']('addMarker:suggestion:attribute',_0x28f6fd({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x5d33c8['conversion']['for']('editingDowncast')['add'](_0x5e564b=>{_0x5e564b['on']('removeMarker:suggestion:formatBlock',(_0x45d025,_0x11eeaf,_0x2bd342)=>{const _0xbdf8f2=_0x2bd342['mapper']['markerNameToElements'](_0x11eeaf['markerName']);if(_0xbdf8f2){for(const _0xad677c of _0xbdf8f2)_0xad677c['getCustomProperty']('addHighlight')||(_0x2bd342['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0xad677c),_0x2bd342['writer']['removeAttribute']('data-suggestion',_0xad677c),_0x2bd342['writer']['removeAttribute']('data-author-id',_0xad677c),_0x2bd342['mapper']['unbindElementFromMarkerName'](_0xad677c,_0x11eeaf['markerName']));}},{'priority':'high'});}),_0x5d33c8['conversion']['for']('editingDowncast')['add'](_0x23972b=>{_0x23972b['on']('removeMarker:suggestion:attribute',(_0x4c1e39,_0x26ec8d,_0x5153ad)=>{const _0x598724=_0x5153ad['mapper']['markerNameToElements'](_0x26ec8d['markerName']);if(!_0x598724)return;const {id:_0x47df7a}=this['_splitMarkerName'](_0x26ec8d['markerName']),_0x3bc797=this['_suggestions']['get'](_0x47df7a),_0x5d64ba=this['_getAttributeKey'](_0x3bc797);if(this['_isBlockAttribute'](_0x5d64ba)){for(const _0x167a19 of _0x598724)_0x167a19['getCustomProperty']('addHighlight')||(_0x5153ad['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x167a19),_0x5153ad['writer']['removeAttribute']('data-suggestion',_0x167a19),_0x5153ad['writer']['removeAttribute']('data-author-id',_0x167a19),_0x5153ad['mapper']['unbindElementFromMarkerName'](_0x167a19,_0x26ec8d['markerName']));}},{'priority':'high'});}),_0x5d33c8['model']['document']['registerPostFixer'](_0x414295=>{let _0x6cd524=!0x1;const _0x3f60f6=Array['from'](_0x5d33c8['model']['document']['differ']['getChangedMarkers']()),_0x554d68=new Set();for(const {name:_0x1b4399,data:_0x35eb4e}of _0x3f60f6){const {group:_0x3e02b6,type:_0x5e609f,subType:_0x34e332,id:_0x56e9ec}=this['_splitMarkerName'](_0x1b4399);if('suggestion'!==_0x3e02b6)continue;const _0x310a4e=this['_suggestions']['get'](_0x56e9ec);if(null!=_0x35eb4e['newRange']){'formatInline'==_0x5e609f&&(_0x6cd524=_0x6cd524||Jt(_0x35eb4e['newRange'],_0x1b4399,_0x414295,_0x5d33c8['model']['schema']));const _0x5b3d55='attribute'==_0x5e609f&&this['_isBlockAttribute'](_0x34e332['split']('|')[0x0]);if(_0x35eb4e['newRange']['isCollapsed']||'$graveyard'==_0x35eb4e['newRange']['root']['rootName']||'formatBlock'==_0x5e609f&&!Ht(_0x35eb4e['newRange'])||_0x5b3d55&&!Ht(_0x35eb4e['newRange'])||'deletion'==_0x5e609f&&!(!Lt(_0x30dfbe=_0x35eb4e['newRange'])&&!function(_0x4a8f31){return _0x4a8f31['start']['parent']==_0x4a8f31['end']['nodeBefore']&&_0x4a8f31['start']['isAtEnd'];}(_0x30dfbe)))_0x414295['removeMarker'](_0x1b4399),_0x6cd524=!0x0;else{if(!_0x310a4e||!_0x310a4e['isInContent'])continue;if(_0x35eb4e['newRange']&&_0x35eb4e['oldRange']&&_0x35eb4e['newRange']['isEqual'](_0x35eb4e['oldRange']))continue;_0x554d68['add'](_0x310a4e);}}}var _0x30dfbe;return _0x554d68['size']>0x0&&(_0x6cd524=!!this['_joinWithAdjacentSuggestions'](_0x554d68)||_0x6cd524),_0x6cd524;}),_0x5d33c8['model']['document']['registerPostFixer'](_0x20697b=>{let _0x162875=!0x1;for(const _0xae5ac8 of _0x5d33c8['model']['document']['differ']['getChanges']())if('insert'==_0xae5ac8['type'])for(const _0x174c76 of this['_suggestions']['values']()){if(_0x174c76['isMultiRange']||!_0x174c76['isInContent'])continue;const _0x142970='formatBlock'==_0x174c76['type'],_0x561452=this['_getAttributeKey'](_0x174c76),_0x597cfd=_0x561452&&this['_isBlockAttribute'](_0x561452);if(!_0x142970&&!_0x597cfd)continue;const _0x41b197=_0x174c76['getFirstRange']();if(_0x41b197['start']['parent']!=_0x41b197['end']['parent']&&!_0x41b197['end']['isAtEnd']){const _0x39d077=_0x5d33c8['model']['createPositionAt'](_0x41b197['start']['nodeAfter'],'end'),_0x4e0220=_0x5d33c8['model']['createRange'](_0x41b197['start'],_0x39d077);_0x20697b['updateMarker'](_0x174c76['getFirstMarker'](),{'range':_0x4e0220}),_0x162875=!0x0;}}return _0x162875;}),_0x5d33c8['model']['document']['registerPostFixer'](_0x150b8e=>this['_processAttributeChanges'](_0x150b8e)),_0x5d33c8['model']['document']['registerPostFixer'](_0x50886a=>!_0x50886a['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x50886a)),_0x5d33c8['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x5d33c8['model']['document']['on']('change:data',(_0x513a80,_0x6264c6)=>{if(!_0x6264c6['isLocal']||_0x6264c6['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3f7b29=_0x5d33c8['model']['document']['differ']['getChanges']();if(0x0==_0x3f7b29['length'])return;const _0x4cb454=[],_0x5f488e=_0x3f7b29['filter'](_0x4fe9fc=>'attribute'==_0x4fe9fc['type']),_0x5c2d3f=_0x3f7b29['filter'](_0x5aaecb=>'insert'==_0x5aaecb['type']&&'$text'!=_0x5aaecb['name']);for(const _0x2f8e95 of _0x5f488e)this['_isRegisteredAttribute'](_0x2f8e95['attributeKey'])&&_0x4cb454['push']({'key':_0x2f8e95['attributeKey'],'newValue':_0x2f8e95['attributeNewValue'],'oldValue':_0x2f8e95['attributeOldValue'],'range':qt(_0x2f8e95['range'],_0x5d33c8['model'])});for(const _0x3f496b of _0x5c2d3f){if('rename'!=_0x3f496b['action']&&'refresh'!=_0x3f496b['action'])continue;const _0x3fe5d7=zt(_0x3f496b['position']['nodeAfter'],_0x5d33c8['model']),_0x25dc9b=_0x3f496b['before'];'rename'==_0x3f496b['action']&&_0x4cb454['push']({'key':u,'newValue':_0x3f496b['name'],'oldValue':_0x25dc9b['name'],'range':_0x3fe5d7});for(const [_0x58fb56,_0xcd7afa]of _0x25dc9b['attributes']){if(!this['_isRegisteredAttribute'](_0x58fb56))continue;const _0x72e931=_0x3f496b['attributes']['get'](_0x58fb56);_0xcd7afa!==_0x72e931&&_0x4cb454['push']({'key':_0x58fb56,'newValue':_0x72e931,'oldValue':_0xcd7afa,'range':_0x3fe5d7});}for(const [_0x495e3c,_0x17d12c]of _0x3f496b['attributes'])this['_isRegisteredAttribute'](_0x495e3c)&&(_0x25dc9b['attributes']['has'](_0x495e3c)||_0x4cb454['push']({'key':_0x495e3c,'newValue':_0x17d12c,'oldValue':null,'range':_0x3fe5d7}));}0x0!=_0x4cb454['length']&&_0x5d33c8['model']['enqueueChange'](_0x6264c6,_0x59aef9=>{const _0x122119=_0x4f1695();for(const {range:_0x30dee0,key:_0xba148,oldValue:_0x1bb042,newValue:_0x31d6f5}of _0x4cb454)this['markAttributeChange'](_0x30dee0,_0xba148,_0x1bb042,_0x31d6f5,{'groupId':_0x122119});this['_reduceExistingSuggestions'](_0x59aef9,_0x4cb454);});},{'priority':'lowest'}),_0x5d33c8['model']['markers']['on']('update:suggestion',(_0x54c5c1,_0x1558c3,_0x3340bd)=>{if(null==_0x3340bd){const {id:_0x2c8ec1}=this['_splitMarkerName'](_0x1558c3['name']),_0x175a41=this['_suggestions']['get'](_0x2c8ec1);_0x175a41&&_0x175a41['addMarkerName'](_0x1558c3['name']);}}),_0x5d33c8['model']['document']['on']('change:data',()=>{const _0x1758b7=Array['from'](_0x5d33c8['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1efb1e=>'suggestion'===this['_splitMarkerName'](_0x1efb1e['name'])['group']);if(0x0===_0x1758b7['length'])return;_0x1758b7['sort']((_0x4b61b8,_0x4a04da)=>{const _0x54d59b=_0x4b61b8['data']['oldRange'],_0x425367=_0x4a04da['data']['oldRange'];return null===_0x54d59b&&null===_0x425367?0x0:null===_0x54d59b&&null!==_0x425367?-0x1:null!==_0x54d59b&&null===_0x425367?0x1:_0x54d59b['start']['isBefore'](_0x425367['start'])?-0x1:0x1;});const _0x3e7ea2=new Set(),_0x298930=new Set();for(const {name:_0x45c745,data:_0x12f244}of _0x1758b7){const {id:_0x239bfe}=this['_splitMarkerName'](_0x45c745);if(null===_0x12f244['oldRange']){const _0x4d8e2f=this['_handleNewSuggestionMarker'](_0x45c745);_0x298930['add'](_0x4d8e2f);}else{const _0x498331=this['_suggestions']['get'](_0x239bfe);null!==_0x12f244['newRange']||_0x498331['isInContent']?(_0x3e7ea2['add'](_0x498331['head']),_0x298930['add'](_0x498331)):this['_removeSuggestion'](_0x498331);}}_0x298930['size']>0x0&&this['_refreshSuggestionsChain'](_0x298930);for(const _0x1335d4 of _0x3e7ea2)this['fire']('suggestionChanged',_0x1335d4);}),_0x5d33c8['model']['on']('applyOperation',(_0x1ef18e,_0x3d0f2b)=>{const _0x1bff6b=_0x3d0f2b[0x0];if(!this['_suggestions']['size'])return;if(!_0x1bff6b['isDocumentOperation'])return;if(_0x1bff6b['batch']['isUndo']||!_0x1bff6b['batch']['isLocal'])return;let _0x61eb72,_0x14954a;switch(_0x1bff6b['type']){case'insert':_0x61eb72=_0x5d33c8['model']['createPositionAt'](_0x1bff6b['position']),_0x14954a=_0x61eb72['getShiftedBy'](_0x1bff6b['howMany']);break;case'split':_0x61eb72=_0x5d33c8['model']['createPositionAt'](_0x1bff6b['splitPosition']),_0x14954a=_0x5d33c8['model']['createPositionAt'](_0x1bff6b['moveTargetPosition']);break;case'move':_0x61eb72=_0x5d33c8['model']['createPositionAt'](_0x1bff6b['targetPosition']),_0x14954a=_0x61eb72['getShiftedBy'](_0x1bff6b['howMany']);break;default:return;}const _0x5418ae=_0x5d33c8['model']['createRange'](_0x61eb72,_0x14954a);_0x5d33c8['model']['change'](()=>{for(const {suggestion:_0x19cb17,meta:_0x19b330}of this['_findSuggestions'](_0x5418ae)){if(_0x19cb17['isMultiRange'])continue;if('formatInline'==_0x19cb17['type'])continue;const _0x2e2686=this['_getAttributeKey'](_0x19cb17);if(_0x2e2686&&this['_isBlockAttribute'](_0x2e2686)&&'split'!=_0x1bff6b['type'])continue;const _0x50d600=_0x19cb17['data']&&_0x19cb17['data']['multipleBlocks'];('formatBlock'!=_0x19cb17['type']||'split'==_0x1bff6b['type']&&!_0x50d600)&&(_0x19b330['containsRangeInObject']||'insertion'==_0x19cb17['type']&&_0x19b330['isOwn']||_0x19cb17['getFirstRange']()['containsRange'](_0x5418ae)&&this['_breakSuggestionMarker'](_0x19cb17,_0x61eb72,_0x14954a));}});},{'priority':'lowest'}),_0x5d33c8['model']['on']('deleteContent',(_0x5c3cfc,_0x3dc8f0)=>{const _0x5eff61=_0x3dc8f0[0x0],_0x40707a=_0x3dc8f0[0x1];if(_0x40707a&&_0x40707a['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x5eff61['isCollapsed'])return;const _0x32eaf9=_0x5d33c8['model']['schema'],{start:_0x43a92e,end:_0x27c247}=_0x5eff61['getFirstRange'](),_0x135638=_0x43a92e['nodeAfter']&&_0x32eaf9['isLimit'](_0x43a92e['nodeAfter'])?null:_0x32eaf9['getNearestSelectionRange'](_0x43a92e,'forward'),_0x52538c=_0x27c247['nodeBefore']&&_0x32eaf9['isLimit'](_0x27c247['nodeBefore'])?null:_0x32eaf9['getNearestSelectionRange'](_0x27c247,'backward'),_0x2cb640=_0x5d33c8['model']['createRange'](_0x135638?_0x135638['start']:_0x43a92e,_0x52538c?_0x52538c['end']:_0x27c247);_0x5d33c8['model']['change'](_0x183ec9=>{this['markDeletion'](_0x2cb640);const _0x3fffea=_0x5d33c8['model']['schema']['getNearestSelectionRange'](_0x2cb640['start']);_0x5eff61['is']('documentSelection')?_0x183ec9['setSelection'](_0x3fffea):_0x5eff61['setTo'](_0x3fffea);}),_0x5c3cfc['stop']();},{'priority':_0x268430['normal']+0xa}),_0x5d33c8['model']['on']('insertContent',(_0xf1bbe,_0x234032)=>{const _0xb84411=_0x234032[_0x234032['length']-0x1];_0xb84411&&_0xb84411['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x5d33c8['model']['change'](()=>{let _0x1e5d9a=_0x5d33c8['model']['insertContent'](_0x234032[0x0],_0x234032[0x1],_0x234032[0x2],{'forceDefaultExecution':!0x0});if(!_0x1e5d9a)return;_0xf1bbe['return']=_0x1e5d9a['clone']();const _0x58cb06=_0x1e5d9a['end']['nodeBefore'],_0x1a43f7=_0x5d33c8['model']['schema'];_0x58cb06&&_0x1a43f7['isBlock'](_0x58cb06)&&!_0x1a43f7['isObject'](_0x58cb06)&&(_0x1e5d9a=_0x5d33c8['model']['createRange'](_0x1e5d9a['start'],_0x5d33c8['model']['createPositionAt'](_0x58cb06,'end'))),this['markInsertion'](_0x1e5d9a);}),_0xf1bbe['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x16497d=new x(_0x5d33c8,this['_suggestions']);_0x5d33c8['commands']['add']('acceptSuggestion',_0x16497d),this['enableCommand']('acceptSuggestion');const _0x43c51e=new O(_0x5d33c8,this['_suggestions']);_0x5d33c8['commands']['add']('discardSuggestion',_0x43c51e),this['enableCommand']('discardSuggestion'),_0x5d33c8['commands']['add']('acceptAllSuggestions',new R(_0x5d33c8,_0x16497d,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x5d33c8['commands']['add']('discardAllSuggestions',new R(_0x5d33c8,_0x43c51e,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x5d33c8['commands']['add']('acceptSelectedSuggestions',new E(_0x5d33c8,_0x16497d,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x5d33c8['commands']['add']('discardSelectedSuggestions',new E(_0x5d33c8,_0x43c51e,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2cee09=_0x5d33c8['plugins']['get']('CommentsRepository');this['listenTo'](_0x2cee09,'addComment',(_0x1d0c0d,{threadId:_0x366f33})=>{const _0x2ca335=this['_suggestions']['get'](_0x366f33);_0x2ca335&&_0x2ca335['commentThread']&&0x1===_0x2ca335['commentThread']['length']&&this['_updateSuggestionData'](_0x366f33,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2cee09,'removeComment',(_0xca3853,{threadId:_0x1e1385})=>{const _0x24a826=this['_suggestions']['get'](_0x1e1385);_0x24a826&&_0x24a826['commentThread']&&!_0x24a826['commentThread']['length']&&this['_updateSuggestionData'](_0x1e1385,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x28b271){const _0x4a6151=_0x18d98c([0x39,0x62,0x47,0x4f,0x36,0x5a,0x44,0x58,0x53,0x56,0x57,0x30,0x79,0x72,0x63,0x65,0x51,0x61,0x38,0x75,0x71,0x68,0x54,0x6a,0x69,0x59,0x70,0x64,0x37,0x6f,0x67,0x4b,0x76,0x46,0x48,0x4d,0x33,0x43,0x74,0x66,0x45,0x52,0x7a,0x73,0x4a,0x6d,0x31,0x49,0x32,0x55,0x41,0x35,0x34,0x4c,0x42,0x4e,0x6c,0x6b,0x6e,0x78,0x77,0x50]),_0x55df89=0x28501f79,_0x51c96a=0x285776b1^_0x55df89,_0x32bbac=window[_0x18d98c([0x44,0x61,0x74,0x65])][_0x18d98c([0x6e,0x6f,0x77])](),_0x1aca98=_0x28b271[_0x18d98c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x58f252=new window[(_0x18d98c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x448c35=>{_0x1aca98[_0x18d98c([0x6f,0x6e,0x63,0x65])](_0x18d98c([0x72,0x65,0x61,0x64,0x79]),_0x448c35);}),_0x277ddb={[_0x18d98c([0x6b,0x74,0x79])]:_0x18d98c([0x45,0x43]),[_0x18d98c([0x75,0x73,0x65])]:_0x18d98c([0x73,0x69,0x67]),[_0x18d98c([0x63,0x72,0x76])]:_0x18d98c([0x50,0x2d,0x32,0x35,0x36]),[_0x18d98c([0x78])]:_0x18d98c([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]),[_0x18d98c([0x79])]:_0x18d98c([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]),[_0x18d98c([0x61,0x6c,0x67])]:_0x18d98c([0x45,0x53,0x32,0x35,0x36])},_0x2f9af4=_0x1aca98[_0x18d98c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x18d98c([0x67,0x65,0x74])](_0x18d98c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2319dd(){let _0x487874,_0x2fa324=null,_0xcd644=null;try{if(_0x2f9af4==_0x18d98c([0x47,0x50,0x4c]))return _0x18d98c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x487874=_0x3880e5(),!_0x487874)return _0x18d98c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x487874[_0x18d98c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xcd644=_0x151308(_0x487874[_0x18d98c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x487874[_0x18d98c([0x6a,0x74,0x69])])),await _0x22d8ca()?_0x41b2c7()?_0x219a54()?_0x18d98c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4b4669()?(_0x487874[_0x18d98c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x18d98c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2fa324=_0x27170b(_0x18d98c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x487874[_0x18d98c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x18d98c([0x74,0x72,0x69,0x61,0x6c])&&(_0x2fa324=_0x27170b(_0x18d98c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xde1369()):_0x18d98c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x18d98c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x18d98c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x18d98c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x219a54(){const _0x41a1b4=[_0x18d98c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x18d98c([0x74,0x72,0x69,0x61,0x6c])][_0x18d98c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x487874[_0x18d98c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x32bbac/0x3e8:0xe10*_0x51c96a;return _0x487874[_0x18d98c([0x65,0x78,0x70])]<_0x41a1b4;}function _0x41b2c7(){const _0x167402=_0x487874[_0x18d98c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x167402)return!0x1;if(_0x167402[_0x18d98c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18d98c([0x2a])))return!0x0;if(_0x167402[_0x18d98c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18d98c([0x54,0x43])))return!0x0;if(_0x167402[_0x18d98c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18d98c([0x52,0x54,0x43]))){if(_0x4b4c1f())return!0x0;if(_0x128ac2()||_0x2a8f1d())return!0x0;}return!0x1;}function _0x4b4669(){const _0x273d2f=_0x487874[_0x18d98c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x273d2f||0x0==_0x273d2f[_0x18d98c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x50e173}=new URL(window[_0x18d98c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x273d2f[_0x18d98c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x50e173))return!0x0;const _0x21cbbe=_0x50e173[_0x18d98c([0x73,0x70,0x6c,0x69,0x74])](_0x18d98c([0x2e]));return _0x273d2f[_0x18d98c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x193111=>_0x193111[_0x18d98c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18d98c([0x2a])))[_0x18d98c([0x6d,0x61,0x70])](_0x3055c0=>_0x3055c0[_0x18d98c([0x73,0x70,0x6c,0x69,0x74])](_0x18d98c([0x2e])))[_0x18d98c([0x73,0x6f,0x6d,0x65])](_0x453548=>_0x21cbbe[_0x18d98c([0x65,0x76,0x65,0x72,0x79])]((_0x14305a,_0x6073af)=>_0x453548[_0x6073af]===_0x14305a||_0x453548[_0x6073af]===_0x18d98c([0x2a])));}function _0xde1369(){return _0x2fa324&&_0xcd644?new window[(_0x18d98c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x42cf04,_0x4fc80b)=>{_0x2fa324[_0x18d98c([0x74,0x68,0x65,0x6e])](_0x42cf04,_0x4fc80b),_0xcd644[_0x18d98c([0x74,0x68,0x65,0x6e])](_0xbc85b0=>{_0xbc85b0!=_0x18d98c([0x56,0x61,0x6c,0x69,0x64])&&_0x42cf04(_0xbc85b0);},_0x4fc80b);}):_0x2fa324||_0xcd644||_0x18d98c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x151308(_0x2862da,_0x4d5ed5){return new window[(_0x18d98c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xddbbb3=>{if(_0x110b9a())return _0xddbbb3(_0x18d98c([0x56,0x61,0x6c,0x69,0x64]));_0x12be97(),_0x1aca98[_0x18d98c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x18d98c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x32a4c2=!0x1;const _0x358ec7=_0x4f1695();function _0x3e3506(_0x4cebc6){return!!_0x4cebc6&&(typeof _0x4cebc6===_0x18d98c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4cebc6===_0x18d98c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4cebc6[_0x18d98c([0x74,0x68,0x65,0x6e])]===_0x18d98c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4cebc6[_0x18d98c([0x63,0x61,0x74,0x63,0x68])]===_0x18d98c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x57bebb(_0x5eb567){_0x274c53(_0x5eb567)[_0x18d98c([0x74,0x68,0x65,0x6e])](_0x3f750e=>{if(!_0x3f750e||_0x3f750e[_0x18d98c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x18d98c([0x6f,0x6b]))return _0x18d98c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1da3ba(_0x47795f(_0x358ec7+_0x4d5ed5))!=_0x3f750e[_0x18d98c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x18d98c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x18d98c([0x56,0x61,0x6c,0x69,0x64]);})[_0x18d98c([0x74,0x68,0x65,0x6e])](_0x4acde5=>(_0x2b303a(),_0x4acde5),()=>{const _0x766267=_0x18e42b();return null==_0x766267?(_0x2b303a(),_0x18d98c([0x56,0x61,0x6c,0x69,0x64])):_0x18d98c(_0x32bbac-_0x766267>(0xc5c9b79^_0x55df89)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x18d98c([0x74,0x68,0x65,0x6e])](_0xddbbb3)[_0x18d98c([0x63,0x61,0x74,0x63,0x68])](()=>{_0xddbbb3(_0x18d98c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x59d8db=0x2866f1f9^_0x55df89;function _0x2b303a(){const _0x51c27f=_0x18d98c([0x6c,0x6c,0x63,0x74,0x2d])+_0x1da3ba(_0x47795f(_0x2862da)),_0x3d25fa=_0x4c4196(_0x1da3ba(window[_0x18d98c([0x4d,0x61,0x74,0x68])][_0x18d98c([0x63,0x65,0x69,0x6c])](_0x32bbac/_0x59d8db)));window[_0x18d98c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x18d98c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x51c27f,_0x3d25fa);}function _0x18e42b(){const _0x24b086=_0x18d98c([0x6c,0x6c,0x63,0x74,0x2d])+_0x1da3ba(_0x47795f(_0x2862da)),_0x33507a=window[_0x18d98c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x18d98c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x24b086);return _0x33507a?window[_0x18d98c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4c4196(_0x33507a),0x10)*_0x59d8db:null;}function _0x274c53(_0x4dedcc){return new window[(_0x18d98c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2344b2,_0x477933)=>{_0x4dedcc[_0x18d98c([0x74,0x68,0x65,0x6e])](_0x2344b2,_0x477933),window[_0x18d98c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x477933,0x2851cbb9^_0x55df89);});}}_0x1aca98[_0x18d98c([0x6f,0x6e])](_0x18d98c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2fcfca,_0x5b3914)=>{if(_0x5b3914[0x0]!=_0x2862da)return _0xddbbb3(_0x18d98c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5b3914[0x1]={..._0x5b3914[0x1],[_0x18d98c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x358ec7};},{[_0x18d98c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x18d98c([0x68,0x69,0x67,0x68])}),_0x1aca98[_0x18d98c([0x6f,0x6e])](_0x18d98c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5d1c1a=>{_0x3e3506(_0x5d1c1a[_0x18d98c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x32a4c2=!0x0,_0x57bebb(_0x5d1c1a[_0x18d98c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x18d98c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x18d98c([0x6c,0x6f,0x77])}),_0x58f252[_0x18d98c([0x74,0x68,0x65,0x6e])](()=>{_0x32a4c2||_0xddbbb3(_0x18d98c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x110b9a(){return _0x1aca98[_0x18d98c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x18d98c([0x76,0x69,0x65,0x77])][_0x18d98c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x18d98c([0x61,0x75,0x74,0x6f]);}function _0x12be97(){_0x1aca98[_0x18d98c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x18d98c([0x76,0x69,0x65,0x77])][_0x18d98c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x18d98c([0x61,0x75,0x74,0x6f]);}}function _0x27170b(_0x477dd3){const _0x41501d=[new window[(_0x18d98c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xbec2d4=>setTimeout(_0xbec2d4,0x285921b5^_0x55df89)),_0x58f252[_0x18d98c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x18d98c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57ce65=>{let _0x30ec28=0x0;_0x1aca98[_0x18d98c([0x6d,0x6f,0x64,0x65,0x6c])][_0x18d98c([0x6f,0x6e])](_0x18d98c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x23aa13,_0x528ee4)=>{_0x528ee4[0x0][_0x18d98c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x30ec28++,_0x30ec28==(0x28501e81^_0x55df89)&&(_0x57ce65(),_0x23aa13[_0x18d98c([0x6f,0x66,0x66])]());});}))];return window[_0x18d98c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x18d98c([0x72,0x61,0x63,0x65])](_0x41501d)[_0x18d98c([0x74,0x68,0x65,0x6e])](()=>_0x477dd3);}async function _0x124fb9(){await _0x58f252,_0x1aca98[_0x18d98c([0x6d,0x6f,0x64,0x65,0x6c])][_0x18d98c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4d885b,_0x1aca98[_0x18d98c([0x6d,0x6f,0x64,0x65,0x6c])][_0x18d98c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4d885b,_0x1aca98[_0x18d98c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x18d98c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4b4c1f(){return _0x4d3fa0(_0x18d98c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xdc2c77(_0x18d98c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x18d98c([0x73,0x74,0x61,0x74,0x65])]==_0x18d98c([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x128ac2(){return _0x4d3fa0(_0x18d98c([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 _0x2a8f1d(){return _0x4d3fa0(_0x18d98c([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x57a66b(_0xb51869){const _0x5ca119=_0x168d88();_0x1aca98[_0x5ca119]=_0x18d98c([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xb51869,_0xb51869!=_0x18d98c([0x56,0x61,0x6c,0x69,0x64])&&_0x124fb9();}function _0x168d88(){const _0x1bc1fe=window[_0x18d98c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x18d98c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x18d98c([0x6e,0x6f,0x77])]())[_0x18d98c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x18d98c([0x2e]),'');let _0x1249ff=_0x18d98c([0x62]);for(let _0x12ea4d=0x0;_0x12ea4d<_0x1bc1fe[_0x18d98c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x12ea4d+=0x2){let _0x23031a=window[_0x18d98c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1bc1fe[_0x18d98c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x12ea4d,_0x12ea4d+0x2));_0x23031a>=_0x4a6151[_0x18d98c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x23031a-=_0x4a6151[_0x18d98c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1249ff+=_0x4a6151[_0x23031a];}return _0x1249ff;}function _0x3880e5(){const _0x12563f=_0x2f9af4[_0x18d98c([0x73,0x70,0x6c,0x69,0x74])](_0x18d98c([0x2e]));if(0x3!=_0x12563f[_0x18d98c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xa5dd48(_0x12563f[0x1]);function _0xa5dd48(_0x499ef7){const _0x286708=_0x26f69e(_0x499ef7);return _0x286708&&_0x782248()?_0x286708:null;function _0x782248(){const _0x4ab775=_0x286708[_0x18d98c([0x6a,0x74,0x69])],_0x5f4eb9=window[_0x18d98c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ab775[_0x18d98c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4ab775[_0x18d98c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x102b02={..._0x286708,[_0x18d98c([0x6a,0x74,0x69])]:_0x4ab775[_0x18d98c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4ab775[_0x18d98c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x102b02[_0x18d98c([0x76,0x63])],_0x47795f(_0x102b02)==_0x5f4eb9;}}}async function _0x22d8ca(){let _0x46570f=!0x0;try{const _0xeb0b08=_0x2f9af4[_0x18d98c([0x73,0x70,0x6c,0x69,0x74])](_0x18d98c([0x2e])),[_0x1d4202,_0x471139,_0x9fe72e]=_0xeb0b08;return _0x52640e(_0x1d4202),await _0x23b2c1(_0x1d4202,_0x471139,_0x9fe72e),_0x46570f;}catch{return!0x1;}function _0x52640e(_0x362d8b){const _0x40b179=_0x26f69e(_0x362d8b);_0x40b179&&_0x40b179[_0x18d98c([0x61,0x6c,0x67])]==_0x18d98c([0x45,0x53,0x32,0x35,0x36])||(_0x46570f=!0x1);}async function _0x23b2c1(_0x440fed,_0x155f67,_0x8db801){const _0xa41e17=window[_0x18d98c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x18d98c([0x66,0x72,0x6f,0x6d])](_0x3bd26a(_0x8db801),_0x5c4b81=>_0x5c4b81[_0x18d98c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3ce1d1=new window[(_0x18d98c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x18d98c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x440fed+_0x18d98c([0x2e])+_0x155f67),_0x2d981f=window[_0x18d98c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x18d98c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2d981f)return;const _0x31988c=await _0x2d981f[_0x18d98c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x18d98c([0x6a,0x77,0x6b]),_0x277ddb,{[_0x18d98c([0x6e,0x61,0x6d,0x65])]:_0x18d98c([0x45,0x43,0x44,0x53,0x41]),[_0x18d98c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x18d98c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x18d98c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2d981f[_0x18d98c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x18d98c([0x6e,0x61,0x6d,0x65])]:_0x18d98c([0x45,0x43,0x44,0x53,0x41]),[_0x18d98c([0x68,0x61,0x73,0x68])]:{[_0x18d98c([0x6e,0x61,0x6d,0x65])]:_0x18d98c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x31988c,_0xa41e17,_0x3ce1d1)||(_0x46570f=!0x1);}}function _0x26f69e(_0x2ca0e2){return _0x2ca0e2[_0x18d98c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x18d98c([0x65,0x79]))?JSON[_0x18d98c([0x70,0x61,0x72,0x73,0x65])](_0x3bd26a(_0x2ca0e2)):null;}function _0x3bd26a(_0x3b2a76){return window[_0x18d98c([0x61,0x74,0x6f,0x62])](_0x3b2a76[_0x18d98c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x18d98c([0x2b]))[_0x18d98c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x18d98c([0x2f])));}function _0x47795f(_0x1b12f1){let _0x529f1a=0x1505;function _0x230566(_0x394ec0){for(let _0x4520a8=0x0;_0x4520a8<_0x394ec0[_0x18d98c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4520a8++){const _0x5a5845=_0x394ec0[_0x18d98c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4520a8);_0x529f1a=(_0x529f1a<<0x5)+_0x529f1a+_0x5a5845,_0x529f1a&=_0x529f1a;}}function _0x2265f9(_0x289df5){Array[_0x18d98c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x289df5)?_0x289df5[_0x18d98c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2265f9):_0x289df5&&typeof _0x289df5==_0x18d98c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x18d98c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x289df5)[_0x18d98c([0x73,0x6f,0x72,0x74])]()[_0x18d98c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x11d477,_0x3514ab])=>{_0x230566(_0x11d477),_0x2265f9(_0x3514ab);}):_0x230566(window[_0x18d98c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x289df5));}return _0x2265f9(_0x1b12f1),_0x529f1a>>>0x0;}function _0x1da3ba(_0x31b5b9){return _0x31b5b9[_0x18d98c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x18d98c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x18d98c([0x30]));}function _0x4c4196(_0x4a4508){return _0x4a4508[_0x18d98c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x18d98c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x18d98c([0x6a,0x6f,0x69,0x6e])]('');}function _0x4d3fa0(_0x4fbe7c){return _0x1aca98[_0x18d98c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x18d98c([0x68,0x61,0x73])](_0x4fbe7c);}function _0xdc2c77(_0x46f4b8){return _0x1aca98[_0x18d98c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x18d98c([0x67,0x65,0x74])](_0x46f4b8);}function _0x4d885b(){}function _0x18d98c(_0x58b615){return _0x58b615['map'](_0x30c622=>String['fromCharCode'](_0x30c622))['join']('');}_0x57a66b(await _0x2319dd());}(this);}set['adapter'](_0x5605d9){if(this['_adapter'])throw new _0x5c9fc8('track-changes-adapter-already-set',this);this['_adapter']=_0x5605d9;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x27037a=!0x1,toJSON:_0x15213b=!0x1}={}){const _0x5cdbb7=[];for(const _0x22ce65 of this['_suggestions']['values']())_0x27037a&&!_0x22ce65['isInContent']||_0x5cdbb7['push'](_0x22ce65);return _0x15213b?_0x5cdbb7['map'](_0x4db584=>_0x4db584['toJSON']()):_0x5cdbb7;}['getSuggestion'](_0x956ba9){const _0x92e557=this['_suggestions']['get'](_0x956ba9);if(!_0x92e557)throw new _0x5c9fc8('track-changes-suggestion-not-found',this);return _0x92e557;}['hasSuggestion'](_0x745a9f){return this['_suggestions']['has'](_0x745a9f);}['addSuggestionData'](_0x2a33d0){const {authorId:_0x110fb1,id:_0x1d3796,originalSuggestionId:_0x5cc400,attributes:_0x2f8db1}=_0x2a33d0,[_0x13f11f,_0xf2c7eb]=_0x2a33d0['type']['split'](':'),_0x1d3b21=this['_suggestions']['get'](_0x1d3796)||this['_createSuggestion'](_0x13f11f,_0xf2c7eb,_0x1d3796,_0x110fb1,_0x2f8db1,_0x5cc400);if(this['_addThreadToSuggestion'](_0x1d3b21),this['_checkSuggestionCorrectness'](_0x1d3b21,_0x13f11f,_0xf2c7eb||null,_0x110fb1),_0x1d3b21['createdAt']=_0x2a33d0['createdAt'],_0x1d3b21['_isDataLoaded']=!0x0,_0x2f8db1&&_0x2f8db1['@external']){const _0x195fdf=_0x2f8db1['@external'],_0x4f84d1=this['_getExternalAuthor'](_0x195fdf['authorName']);_0x1d3b21['authoredAt']=_0x195fdf['createdAt'],_0x1d3b21['author']=_0x4f84d1,_0x1d3b21['isExternal']=!0x0;}else _0x1d3b21['authoredAt']=_0x2a33d0['createdAt'];switch(_0x2a33d0['data']&&(_0x1d3b21['data']=_0x2a33d0['data']),_0x2a33d0['attributes']&&(_0x1d3b21['attributes']=_0x2a33d0['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1d3b21['_saved']=!0x0),this['_suggestionState']['get'](_0x1d3b21)){case'notReady':this['_suggestionState']['set'](_0x1d3b21,'dataReady');break;case'markerReady':_0x1d3b21['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1d3b21])),this['_refreshSuggestionsChain'](new Set([_0x1d3b21])),this['_suggestionState']['set'](_0x1d3b21,'ready'),this['fire']('suggestionLoaded',_0x1d3b21)):this['_suggestionState']['set'](_0x1d3b21,'removed');}return _0x1d3b21;}['acceptSuggestion'](_0x42af8e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x544da1 of _0x42af8e['getAllAdjacentSuggestions']())_0x544da1['accept']();});});}['discardSuggestion'](_0x22dfb6){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x534d01 of _0x22dfb6['getAllAdjacentSuggestions']())_0x534d01['discard']();});});}['enableCommand'](_0x220bbf,_0x352d2c){const _0x5185a9=this['editor']['commands']['get'](_0x220bbf);if(!_0x5185a9)throw new _0x5c9fc8('track-changes-command-not-found',this,{'commandName':_0x220bbf});if(this['_enabledCommands']['has'](_0x5185a9))throw new _0x5c9fc8('track-changes-enable-command-twice',this,{'commandName':_0x220bbf});this['_enabledCommands']['add'](_0x5185a9),_0x352d2c&&_0x5185a9['on']('execute',(_0x3f3d69,_0x21d493)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x21d493['length']>0x0&&_0x21d493[_0x21d493['length']-0x1]&&_0x21d493[_0x21d493['length']-0x1]['forceDefaultExecution']?_0x21d493['pop']():(_0x3f3d69['return']=_0x352d2c((..._0x1a918a)=>_0x5185a9['execute'](..._0x1a918a,{'forceDefaultExecution':!0x0}),..._0x21d493),_0x3f3d69['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x2d4625){let _0x337fb9,_0x57c6b8;const _0x13779c=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x337fb9=_0x2d4625();}catch(_0x20e921){_0x57c6b8=_0x20e921;}return _0x13779c||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x57c6b8&&_0x5c9fc8['rethrowUnexpectedError'](_0x57c6b8,this),_0x337fb9;}['markInsertion'](_0x3c888b,_0xb145eb=null,_0x3ac8d3={}){if(_0x3c888b['isCollapsed'])return null;const _0x21b94f=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x3ac8d3['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x7cf4b4,meta:_0x2299fc}of this['_findSuggestions'](_0x3c888b,'insertion'))if(_0x2299fc['isOwn']){if(!_0x2299fc['isNextTo']){if(_0x2299fc['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x7cf4b4,_0x3ac8d3))continue;return _0x7cf4b4;}if(Xt(_0x7cf4b4,_0x3ac8d3))return _0x7cf4b4;this['_breakSuggestionMarker'](_0x7cf4b4,_0x3c888b['start'],_0x3c888b['end']);break;}if(_0xb145eb==_0x7cf4b4['subType']&&Xt(_0x7cf4b4,_0x3ac8d3)){const _0x5e8df6=_0x7cf4b4['getFirstRange']();return _0x5e8df6['start']['isEqual'](_0x3c888b['end'])?this['_setSuggestionRange'](_0x7cf4b4,this['_model']['createRange'](_0x3c888b['start'],_0x5e8df6['end'])):this['_setSuggestionRange'](_0x7cf4b4,this['_model']['createRange'](_0x5e8df6['start'],_0x3c888b['end'])),_0x7cf4b4;}}const _0x2d5aa6=_0x4f1695(),_0x14acf2=_0x21b94f['id'],_0x3ee97c=_0xb145eb?'insertion:'+_0xb145eb:'insertion',_0x25661e=this['_setSuggestionData']({'id':_0x2d5aa6,'type':_0x3ee97c,'createdAt':new Date(),'authorId':_0x14acf2,'attributes':_0x3ac8d3});return this['_addSuggestionMarker'](_0x3ee97c,_0x2d5aa6,_0x14acf2,_0x3c888b),_0x25661e;}['markMultiRangeInsertion'](_0x1182c8,_0x5c625e='multi',_0x723e57={}){const _0x5d4333=this['editor']['plugins']['get']('Users')['me'],_0x54453e=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x5c625e,'join');this['_trackingSessionId']&&(_0x723e57['trackingSessionId']=this['_trackingSessionId']);for(const _0x2389e9 of this['getSuggestions']())if(_0x2389e9['author']['id']==_0x5d4333['id']&&'insertion'==_0x2389e9['type']&&_0x2389e9['subType']==_0x5c625e&&Xt(_0x2389e9,_0x723e57)&&(_0x54453e(_0x2389e9['getRanges'](),_0x1182c8)||_0x54453e(_0x1182c8,_0x2389e9['getRanges']()))){for(const _0x304ac5 of _0x1182c8)_0x2389e9['addRange'](_0x304ac5);return _0x2389e9;}for(const {suggestion:_0x4b117a,meta:_0x555512}of this['_findSuggestions'](_0x1182c8,'insertion')){if(!_0x555512['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x555512['containsRangeInObject'])continue;if(!Xt(_0x4b117a,_0x723e57))continue;let _0x31398d=!0x0;for(const _0x493861 of _0x4b117a['getRanges']())for(const _0x40d678 of _0x1182c8)if(!_0x493861['containsRange'](_0x40d678)){_0x31398d=!0x1;break;}if(_0x31398d)return _0x4b117a;}const _0x44a587=_0x4f1695(),_0x540200=_0x5d4333['id'],_0x53afd8='insertion:'+_0x5c625e,_0x5e8c85=this['_setSuggestionData']({'id':_0x44a587,'type':_0x53afd8,'createdAt':new Date(),'authorId':_0x540200,'attributes':_0x723e57});for(const _0x508263 of _0x1182c8)this['_addSuggestionMarker'](_0x53afd8,_0x44a587,_0x540200,_0x508263,o['getMultiRangeId']());return _0x5e8c85;}['markInlineFormat'](_0x5a3c6c,_0x315a94,_0x249caa=null,_0x4f9065={}){if(_0x249caa=_0x249caa||Kt(_0x315a94),_0x5a3c6c['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x4f9065['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5c36a0=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x249caa,'accept');return this['forceDefaultExecution'](()=>_0x5c36a0([_0x5a3c6c],_0x315a94,_0x4f9065)),null;}const _0x49aac9=this['editor']['plugins']['get']('Users')['me'],_0x162006=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x58524e,meta:_0x3aa4a0}of this['_findSuggestions'](_0x5a3c6c,'insertion'))_0x3aa4a0['isOwn']&&!_0x3aa4a0['isInsideObject']&&_0x162006['push'](..._0x58524e['getRanges']());}const _0x15285e=function(_0x38e2b5,_0x5166f9){const _0x1fff11=[];for(const _0x475664 of _0x5166f9){const _0x1e3e0b=_0x38e2b5['getIntersection'](_0x475664);_0x1e3e0b&&_0x1fff11['push'](_0x1e3e0b);}return _0x1fff11;}(_0x5a3c6c,_0x162006),_0x51d764=function(_0x189e41,_0x3859d5){const _0x4ba287=[_0x189e41];for(const _0x51bcb0 of _0x3859d5){let _0x4c8942=0x0;for(;_0x4c8942<_0x4ba287['length'];){const _0x5be7ac=_0x4ba287[_0x4c8942]['getDifference'](_0x51bcb0);_0x4ba287['splice'](_0x4c8942,0x1,..._0x5be7ac),_0x4c8942+=_0x5be7ac['length'];}}return _0x4ba287;}(_0x5a3c6c,_0x162006);_0x15285e['length']&&this['_model']['change'](()=>{for(const _0x4d694e of _0x15285e){const _0x32566b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x249caa,'accept');this['forceDefaultExecution'](()=>_0x32566b([_0x4d694e],_0x315a94,_0x4f9065));}});for(const _0x133972 of _0x51d764){let _0x340920=null,_0x1f69bd=_0x133972['start'],_0x5e64d4=_0x133972['end'];for(const {suggestion:_0x435693,meta:_0x4aeaaf}of this['_findSuggestions'](_0x133972,'formatInline')){if(!_0x4aeaaf['isOwn'])continue;if(_0x435693['subType']!=_0x249caa)continue;if(!Xt(_0x435693,_0x4f9065))continue;const _0x5cd2e9=_0x435693['getFirstRange']();if(_0x5cd2e9['containsRange'](_0x133972,!0x0))return null;_0x1f69bd=_0x1f69bd['isBefore'](_0x5cd2e9['start'])?_0x1f69bd:_0x5cd2e9['start'],_0x5e64d4=_0x5e64d4['isAfter'](_0x5cd2e9['end'])?_0x5e64d4:_0x5cd2e9['end'],_0x340920?_0x5cd2e9['start']['isBefore'](_0x340920['getFirstRange']()['start'])?(_0x340920['removeMarkers'](),_0x340920=_0x435693):_0x435693['removeMarkers']():_0x340920=_0x435693;}const _0x83be4c=this['_model']['createRange'](_0x1f69bd,_0x5e64d4);if(_0x340920)this['_setSuggestionRange'](_0x340920,_0x83be4c);else{const _0x57c579=_0x4f1695(),_0x3a6d5c=_0x49aac9['id'];this['_setSuggestionData']({'id':_0x57c579,'type':'formatInline:'+_0x249caa,'data':_0x315a94,'createdAt':new Date(),'authorId':_0x3a6d5c,'attributes':_0x4f9065}),this['_addSuggestionMarker']('formatInline:'+_0x249caa,_0x57c579,_0x3a6d5c,_0x83be4c);}}return null;}['markBlockFormat'](_0x2c01f1,_0x47389a,_0x1c7684=[],_0x23cfd5=null,_0x3685ab={}){_0x47389a['formatGroupId']||(_0x47389a['formatGroupId']=_0x47389a['commandName']),_0x47389a['multipleBlocks']=_0x2c01f1['is']('range'),_0x23cfd5=_0x23cfd5||Kt(_0x47389a);const _0x278a84=_0x1c7684['map'](_0x3abeb2=>zt(_0x3abeb2,this['_model'])),_0x18ed75=_0x2c01f1['is']('range')?_0x2c01f1:zt(_0x2c01f1,this['_model']);if(this['_trackingSessionId']&&(_0x3685ab['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2eb465=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x23cfd5,'accept');return this['forceDefaultExecution'](()=>_0x2eb465([_0x18ed75],_0x47389a,_0x3685ab)),null;}_0x278a84['push'](_0x18ed75);let _0x79b63f=!0x0;for(const _0xc1dbc of _0x278a84)if(!this['_rangeIsInLocalUserInsertion'](_0xc1dbc)){_0x79b63f=!0x1;break;}if(_0x79b63f&&'always'!==this['_trackFormatChanges']){const _0x429273=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x23cfd5,'accept');return this['forceDefaultExecution'](()=>_0x429273([_0x18ed75],_0x47389a,_0x3685ab)),null;}let _0x4d52f7=null,_0x3da267=_0x18ed75['start'],_0x5d05e6=_0x18ed75['end'];for(const {suggestion:_0x381f9e,meta:_0x51d8f9}of this['_findSuggestions'](_0x18ed75,'formatBlock')){if(!_0x51d8f9['isOwn'])continue;if(_0x51d8f9['isNextTo']||_0x51d8f9['containsRangeInObject']||_0x51d8f9['isInsideObject'])continue;if(_0x381f9e['data']['formatGroupId']!=_0x47389a['formatGroupId'])continue;if(!Xt(_0x381f9e,_0x3685ab))continue;const _0x26bf3f=_0x381f9e['getFirstRange']();if(_0x381f9e['subType']==_0x23cfd5){if(_0x26bf3f['containsRange'](_0x18ed75,!0x0))return null;_0x3da267=_0x3da267['isBefore'](_0x26bf3f['start'])?_0x3da267:_0x26bf3f['start'],_0x5d05e6=_0x5d05e6['isAfter'](_0x26bf3f['end'])?_0x5d05e6:_0x26bf3f['end'],_0x4d52f7?_0x26bf3f['start']['isBefore'](_0x4d52f7['getFirstRange']()['start'])?(_0x4d52f7['removeMarkers'](),_0x4d52f7=_0x381f9e):_0x381f9e['removeMarkers']():_0x4d52f7=_0x381f9e;}else{const _0x46a9e7=_0x18ed75['getIntersection'](_0x26bf3f);this['_cutOutSuggestionMarker'](_0x381f9e,_0x46a9e7);}}const _0x476c8e=this['editor']['plugins']['get']('Users')['me'],_0x2d71e0=_0x4f1695(),_0x1e06d7=_0x476c8e['id'];if(_0x4d52f7)return this['_setSuggestionRange'](_0x4d52f7,this['_model']['createRange'](_0x3da267,_0x5d05e6)),_0x4d52f7;{const _0x23f967=this['_setSuggestionData']({'id':_0x2d71e0,'type':'formatBlock:'+_0x23cfd5,'data':_0x47389a,'createdAt':new Date(),'authorId':_0x1e06d7,'attributes':_0x3685ab});return this['_addSuggestionMarker']('formatBlock:'+_0x23cfd5,_0x2d71e0,_0x1e06d7,this['_model']['createRange'](_0x3da267,_0x5d05e6)),_0x23f967;}}['markMultiRangeBlockFormat'](_0x5f0842,_0x3dff29,_0x5757fa=[],_0x517f7a=null,_0x391fc8={}){_0x3dff29['formatGroupId']||(_0x3dff29['formatGroupId']=_0x3dff29['commandName']);const _0x2692cb=_0x5f0842[0x0];_0x3dff29['multipleBlocks']=_0x2692cb['is']('range'),_0x517f7a=_0x517f7a||Kt(_0x3dff29);const _0x4b1862=_0x5757fa['map'](_0x34d54c=>zt(_0x34d54c,this['_model'])),_0x7c8157=_0x2692cb['is']('range')?_0x5f0842:_0x5f0842['map'](_0x4df4c0=>zt(_0x4df4c0,this['_model']));if(this['_trackingSessionId']&&(_0x391fc8['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x25f269=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x517f7a,'accept');return this['forceDefaultExecution'](()=>_0x25f269(_0x7c8157,_0x3dff29,_0x391fc8)),null;}_0x4b1862['push'](..._0x7c8157);let _0x23f568=!0x0;for(const _0x44ae9f of _0x4b1862)if(!this['_rangeIsInLocalUserInsertion'](_0x44ae9f)){_0x23f568=!0x1;break;}if(_0x23f568&&'always'!==this['_trackFormatChanges']){const _0x1b5e9c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x517f7a,'accept');return this['forceDefaultExecution'](()=>_0x1b5e9c(_0x7c8157,_0x3dff29,_0x391fc8)),null;}const _0x4aa059=this['editor']['plugins']['get']('Users')['me'];for(const _0x4ea334 of this['getSuggestions']()){if(_0x4ea334['author']['id']!=_0x4aa059['id'])continue;if('formatBlock'!=_0x4ea334['type']||_0x4ea334['data']['formatGroupId']!=_0x3dff29['formatGroupId'])continue;if(!Xt(_0x4ea334,_0x391fc8))continue;const _0x48aec7=_0x4ea334['subType']==_0x517f7a;for(let _0x24565c=0x0;_0x24565c<_0x7c8157['length'];_0x24565c++){const _0x51d032=_0x7c8157[_0x24565c];for(const _0xe10145 of _0x4ea334['getMarkers']()){const _0x3d0f53=_0xe10145['getRange']();if(_0x51d032['isEqual'](_0x3d0f53)){_0x48aec7?(_0x7c8157['splice'](_0x24565c,0x1),_0x24565c--):_0x4ea334['removeMarker'](_0xe10145['name']);break;}}}}if(0x0==_0x7c8157['length'])return null;const _0x345991=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x517f7a,'join');for(const _0x309a52 of this['getSuggestions']())if(_0x309a52['author']['id']==_0x4aa059['id']&&'formatBlock'==_0x309a52['type']&&_0x309a52['data']['formatGroupId']==_0x3dff29['formatGroupId']&&_0x309a52['subType']==_0x517f7a&&Xt(_0x309a52,_0x391fc8)&&(_0x345991(_0x309a52['getRanges'](),_0x7c8157)||_0x345991(_0x7c8157,_0x309a52['getRanges']()))){for(const _0x46f074 of _0x7c8157)_0x309a52['addRange'](_0x46f074);return _0x309a52;}const _0x5a50ba=_0x4f1695(),_0x42a499=_0x4aa059['id'],_0x2be57b='formatBlock:'+_0x517f7a,_0x38eb6e=this['_setSuggestionData']({'id':_0x5a50ba,'type':_0x2be57b,'data':_0x3dff29,'createdAt':new Date(),'authorId':_0x42a499,'attributes':_0x391fc8});for(const _0xdc509e of _0x7c8157)this['_addSuggestionMarker'](_0x2be57b,_0x5a50ba,_0x42a499,_0xdc509e,o['getMultiRangeId']());return _0x38eb6e;}['markDeletion'](_0x23a944,_0x4398c2=null,_0x1061d0={}){if(_0x23a944['isCollapsed'])return null;const _0x36b9af=this['editor']['plugins']['get']('Users')['me'],_0x3a0e29=new _0x106800(_0x23a944['start'],_0x23a944['end']);this['_trackingSessionId']&&(_0x1061d0['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x58fa2b,meta:_0x533945}of this['_findSuggestions'](_0x3a0e29,'insertion'))if(_0x533945['isOwn']&&!_0x533945['isNextTo']){if(_0x58fa2b['isMultiRange']){const _0x5935ca=_0x58fa2b['getRanges']()['filter'](_0x4a1ad6=>'$graveyard'!=_0x4a1ad6['root']['rootName']);_0x5935ca['every'](_0x18f13e=>_0x3a0e29['containsRange'](_0x18f13e,!0x0))&&_0x58fa2b['discard']();if(_0x5935ca['some'](_0x331ae3=>_0x331ae3['containsRange'](_0x3a0e29,!0x0))){const _0x5acae9=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4398c2,'accept');return this['forceDefaultExecution'](()=>_0x5acae9([_0x3a0e29],null,_0x1061d0)),null;}}else{const _0x16c91b=_0x3a0e29['getIntersection'](_0x58fa2b['getFirstRange']());null!==_0x16c91b&&_0x58fa2b['_onDiscard']([_0x16c91b],null,_0x1061d0);}}if(_0x3a0e29['detach'](),_0x3a0e29['isCollapsed']||'$graveyard'==_0x3a0e29['root']['rootName'])return null;let _0x284fb6=null,_0x7e619e=_0x3a0e29['start'],_0x1efff5=_0x3a0e29['end'];const _0x3acfab=this['_findSuggestions'](_0x3a0e29,'deletion');for(const {suggestion:_0x1f55f6,meta:_0x4090fd}of _0x3acfab){const _0x30f128=this['_model']['createRange'](_0x7e619e,_0x1efff5);if(_0x4090fd['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4090fd['containsRangeInObject']&&!_0x4090fd['isInsideObject'])){if(_0x1f55f6['isMultiRange']){if(!Xt(_0x1f55f6,_0x1061d0))continue;let _0x2a18ac=!0x0;for(const _0x1a1a21 of _0x1f55f6['getRanges']()){if(_0x1a1a21['containsRange'](_0x30f128,!0x0))return _0x1f55f6;_0x30f128['containsRange'](_0x1a1a21)||(_0x2a18ac=!0x1);}_0x2a18ac&&_0x1f55f6['discard']();}else{const _0x2dd732=_0x1f55f6['getFirstRange']();if(_0x2dd732['containsRange'](_0x30f128,!0x0))return _0x1f55f6;if(!Xt(_0x1f55f6,_0x1061d0)){_0x30f128['containsRange'](_0x2dd732)?_0x1f55f6['removeMarkers']():_0x2dd732['containsPosition'](_0x7e619e)?_0x7e619e=_0x2dd732['end']:_0x2dd732['containsPosition'](_0x1efff5)&&(_0x1efff5=_0x2dd732['start']);continue;}_0x7e619e=_0x7e619e['isBefore'](_0x2dd732['start'])?_0x7e619e:_0x2dd732['start'],_0x1efff5=_0x1efff5['isAfter'](_0x2dd732['end'])?_0x1efff5:_0x2dd732['end'],_0x1061d0=Object['assign']({},_0x1f55f6['attributes']),_0x284fb6?_0x2dd732['start']['isBefore'](_0x284fb6['getFirstRange']()['start'])?(_0x284fb6['removeMarkers'](),_0x284fb6=_0x1f55f6):_0x1f55f6['removeMarkers']():_0x284fb6=_0x1f55f6;}}}if(_0x284fb6)return this['_setSuggestionRange'](_0x284fb6,this['_model']['createRange'](_0x7e619e,_0x1efff5)),_0x284fb6;{const _0x31374c=_0x4f1695(),_0x517568=this['_model']['createRange'](_0x7e619e,_0x1efff5),_0x5ccea8=_0x36b9af['id'],_0x43e3cb=_0x4398c2?'deletion:'+_0x4398c2:'deletion',_0x579295=this['_setSuggestionData']({'id':_0x31374c,'type':_0x43e3cb,'createdAt':new Date(),'authorId':_0x5ccea8,'attributes':_0x1061d0});return this['_addSuggestionMarker'](_0x43e3cb,_0x31374c,_0x5ccea8,_0x517568),_0x579295;}}['markMultiRangeDeletion'](_0x27515f,_0x1fa751='multi',_0x56df43={}){const _0x288165=this['editor']['plugins']['get']('Users')['me'],_0x1345a2=_0x27515f['map'](_0x19908c=>new _0x106800(_0x19908c['start'],_0x19908c['end'])),_0x5243c8=new Set();this['_trackingSessionId']&&(_0x56df43['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1954e8,meta:_0x4703d1}of this['_findSuggestions'](_0x1345a2,'insertion'))_0x4703d1['isOwn']&&!_0x4703d1['isNextTo']&&_0x5243c8['add'](_0x1954e8);for(const _0x3d9a63 of _0x5243c8)if(_0x3d9a63['isMultiRange']){const _0x20957d=_0x3d9a63['getRanges']();(!_0x3d9a63['attributes']||!_0x3d9a63['attributes']['skipNestingCheck'])&&(_0x20957d['every'](_0x23debb=>_0x1345a2['some'](_0x59af77=>_0x59af77['containsRange'](_0x23debb,!0x0)))&&_0x3d9a63['discard']());if(_0x1345a2['every'](_0x46061e=>_0x20957d['some'](_0x1ad77a=>_0x1ad77a['containsRange'](_0x46061e,!0x0)))){const _0x30b1e0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1fa751,'accept');return this['forceDefaultExecution'](()=>_0x30b1e0(_0x27515f,null,_0x56df43)),null;}}else{const _0x37d342=_0x3d9a63['getFirstRange']();_0x1345a2['some'](_0x140b37=>_0x140b37['containsRange'](_0x37d342,!0x0))&&_0x3d9a63['discard']();if(_0x1345a2['every'](_0x4588b8=>_0x37d342['containsRange'](_0x4588b8,!0x0))){const _0x3b8023=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1fa751,'accept');return this['forceDefaultExecution'](()=>_0x3b8023(_0x1345a2,null,_0x56df43)),null;}}const _0x241a83=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1fa751,'join');let _0x43abf2=null;for(const _0x363f63 of this['getSuggestions']())if(_0x363f63['author']['id']==_0x288165['id']&&_0x363f63['isInContent']&&'deletion'==_0x363f63['type']&&_0x363f63['subType']==_0x1fa751&&Xt(_0x363f63,_0x56df43)&&(_0x241a83(_0x363f63['getRanges'](),_0x1345a2)||_0x241a83(_0x1345a2,_0x363f63['getRanges']()))){if(_0x43abf2){if(_0x363f63['commentThread']&&_0x363f63['commentThread']['length'])continue;for(const _0xde5a0d of _0x363f63['getRanges']())_0x43abf2['isIntersectingWithRange'](_0xde5a0d)||_0x43abf2['addRange'](_0xde5a0d);_0x363f63['removeMarkers']();}else{_0x43abf2=_0x363f63;for(const _0x2cafe2 of _0x1345a2)_0x363f63['isIntersectingWithRange'](_0x2cafe2)||_0x363f63['addRange'](_0x2cafe2);}}if(_0x43abf2)return _0x43abf2;_0x5243c8['clear']();for(const {suggestion:_0xc3a75a,meta:_0x531467}of this['_findSuggestions'](_0x1345a2,'deletion'))_0x531467['isOwn']&&(this['_mergeNestedSuggestions']||!_0x531467['containsRangeInObject']&&!_0x531467['isInsideObject'])&&Xt(_0xc3a75a,_0x56df43)&&_0x5243c8['add'](_0xc3a75a);for(const _0x5da360 of _0x5243c8){const _0x3ca0f6=_0x5da360['getRanges']();if(!_0x56df43||!_0x56df43['skipNestingCheck']){if(_0x1345a2['every'](_0x5b40e5=>_0x3ca0f6['some'](_0x23fa26=>_0x23fa26['containsRange'](_0x5b40e5,!0x0))))return _0x5da360;}(!_0x5da360['attributes']||!_0x5da360['attributes']['skipNestingCheck'])&&(_0x3ca0f6['every'](_0x4e58c1=>_0x1345a2['some'](_0x2f44a7=>_0x2f44a7['containsRange'](_0x4e58c1,!0x0)))&&_0x5da360['discard']());}const _0x4be535=_0x4f1695(),_0x56a794=_0x288165['id'],_0x5ad203='deletion:'+_0x1fa751,_0x3bdfb1=this['_setSuggestionData']({'id':_0x4be535,'type':_0x5ad203,'createdAt':new Date(),'authorId':_0x56a794,'attributes':_0x56df43});for(const _0x540600 of _0x1345a2)_0x540600['detach'](),_0x540600['isCollapsed']||'$graveyard'==_0x540600['root']['rootName']||this['_addSuggestionMarker'](_0x5ad203,_0x4be535,_0x56a794,_0x540600,o['getMultiRangeId']());return _0x3bdfb1;}['markAttributeChange'](_0x47f80c,_0x589149,_0x6808f5,_0x102e60,_0x27baf5){if(_0x47f80c['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x438a2c=this['editor']['plugins']['get']('Users')['me']['id'],_0x260780=Array['from'](this['_suggestions']['values']())['filter'](_0xd015c4=>'attribute'==_0xd015c4['type']&&_0xd015c4['data']['key']==_0x589149&&_0xd015c4['isIntersectingWithRange'](_0x47f80c));if(this['_trackingSessionId']&&(_0x27baf5['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x4806c0=this['_findSuggestions'](_0x47f80c,'insertion')['filter'](({meta:_0x1c0771})=>_0x1c0771['isOwn']&&!_0x1c0771['isInsideObject']&&!_0x1c0771['isNextTo'])['map'](({suggestion:_0x12806e})=>_0x12806e);_0x260780['unshift'](..._0x4806c0);}const _0x2bdc44=new Map([[_0x47f80c,_0x6808f5]]);for(const _0x7bbb0c of _0x260780){const _0x128f1e='attribute'==_0x7bbb0c['type']?_0x7bbb0c['data']['oldValue']:void 0x0,_0x58453c=_0x7bbb0c['getFirstRange'](),_0x41509e=Array['from'](_0x2bdc44['keys']())['find'](_0x6c89c1=>_0x6c89c1['isIntersecting'](_0x58453c));if(!_0x41509e)continue;const _0x1a005c=_0x41509e['getDifference'](_0x58453c);this['_isBlockAttribute'](_0x589149)&&'insertion'==_0x7bbb0c['type']&&0x0!=_0x1a005c['length']||(_0x2bdc44['delete'](_0x41509e),_0x1a005c['forEach'](_0xbaf1ac=>{_0x2bdc44['set'](_0xbaf1ac,_0x6808f5);}),'insertion'!=_0x7bbb0c['type']&&_0x128f1e!=_0x102e60&&_0x2bdc44['set'](_0x41509e['getIntersection'](_0x58453c),_0x128f1e));}const _0x2a03ea=[];for(const [_0x4ae848,_0x39509a]of _0x2bdc44){const _0x59bec3=_0x4f1695(),_0x691e18={'key':_0x589149,'oldValue':_0x39509a,'newValue':_0x102e60};_0x589149['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':_0x589149});const _0x3ec79a=('attribute:'+(_0x589149+'|'+Kt({'newValue':_0x102e60})))['substring'](0x0,0x3c),_0x4c0aa2=this['_setSuggestionData']({'id':_0x59bec3,'type':_0x3ec79a,'data':_0x691e18,'createdAt':new Date(),'authorId':_0x438a2c,'attributes':_0x27baf5});_0x2a03ea['push'](_0x4c0aa2),this['_addSuggestionMarker'](_0x3ec79a,_0x59bec3,_0x438a2c,_0x4ae848);}return _0x2a03ea;}['enableDefaultAttributesIntegration'](_0x1e3414){this['enableCommand'](_0x1e3414,(_0x2c4e25,..._0x272e50)=>{this['_recordAttributeChanges'](()=>{_0x2c4e25(..._0x272e50);});});}['registerBlockAttribute'](_0x16ed83){this['_blockAttributeKeys']['add'](_0x16ed83);}['registerInlineAttribute'](_0x5a36b2){this['_inlineAttributeKeys']['add'](_0x5a36b2);}['startTrackingSession'](_0x4b98ec){return this['_trackingSessionId']=void 0x0!==_0x4b98ec?_0x4b98ec:_0x4f1695(),this['_trackingSessionId'];}['_getAttributeKey'](_0x1422d1){return'attribute'==_0x1422d1['type']?_0x1422d1['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x4885d7,_0x194dc5){const _0x3ec6f6=_0x4885d7['getFirstMarker']();this['_model']['change'](_0x3a3423=>{_0x3a3423['updateMarker'](_0x3ec6f6,{'range':_0x194dc5});});}['_addThreadToSuggestion'](_0x474179){const _0x5db753=_0x474179['id'],_0x48a90c=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x5db753)||this['_commentsRepository']['addCommentThread']({'channelId':_0x48a90c,'threadId':_0x5db753,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x56a413=this['_commentsRepository']['getCommentThread'](_0x5db753);_0x56a413['unbind']('isRemovable'),_0x56a413['isRemovable']=!0x1,_0x474179['commentThread']=_0x56a413;}['_checkSuggestionCorrectness'](_0x1359b6,_0x415f59,_0x70ffe,_0x3c13e7){if(_0x1359b6['type']!=_0x415f59||_0x1359b6['subType']!=_0x70ffe||_0x1359b6['creator']['id']!=_0x3c13e7)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x5c9fc8('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3c2bd3,_0x15d0f4){const _0x2b9807=_0x3c2bd3['getFirstRange']();if(_0x15d0f4['isEqual'](_0x2b9807))_0x3c2bd3['removeMarkers']();else{if(_0x2b9807['containsRange'](_0x15d0f4)){const _0x412eda=this['_model']['createPositionAt'](_0x15d0f4['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3c2bd3,this['_model']['createRange'](_0x2b9807['start'],_0x412eda));const _0x30d3c8=_0x4f1695(),_0x4bdfe6=_0x3c2bd3['creator']['id'],_0x5b228e=_0x3c2bd3['type']+':'+_0x3c2bd3['subType'];this['_setSuggestionData']({'id':_0x30d3c8,'type':_0x5b228e,'createdAt':new Date(),'authorId':_0x4bdfe6,'data':_0x3c2bd3['data'],'attributes':_0x3c2bd3['attributes']});const _0x55e539=this['_model']['createPositionAt'](_0x15d0f4['end']['parent'],'after'),_0x56e123=this['_model']['createRange'](_0x55e539,_0x2b9807['end']);this['_addSuggestionMarker'](_0x5b228e,_0x30d3c8,_0x4bdfe6,_0x56e123);}else{if(_0x2b9807['containsPosition'](_0x15d0f4['start'])){const _0x54c007=this['_model']['createPositionAt'](_0x15d0f4['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3c2bd3,this['_model']['createRange'](_0x2b9807['start'],_0x54c007));}else{const _0x1c8669=this['_model']['createPositionAt'](_0x15d0f4['end']['parent'],'after');this['_setSuggestionRange'](_0x3c2bd3,this['_model']['createRange'](_0x1c8669,_0x2b9807['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1c2c48){for(const {suggestion:_0x2b23bf,meta:_0x2c7280}of this['_findSuggestions'](_0x1c2c48,'insertion')){if(!_0x2c7280['isOwn'])continue;const _0x1e09be=_0x2b23bf['getRanges']();for(const _0x3f8b49 of _0x1e09be)if(!_0x1c2c48['getDifference'](_0x3f8b49)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4d9426){const _0x199dfb=this['editor']['plugins']['get']('Users')['getUser'](_0x4d9426);if(!_0x199dfb)throw new _0x5c9fc8('track-changes-user-not-found',this);return _0x199dfb;}['_getExternalAuthor'](_0x3d683c){const _0x8c7644=this['editor']['plugins']['get']('Users'),_0x3aa831=_0x3e9b0a('external:'+_0x3d683c),_0x398fbd=_0x8c7644['getUser'](_0x3aa831);return _0x398fbd||_0x8c7644['addUser']({'id':_0x3aa831,'name':_0x3d683c});}['_createSuggestion'](_0x594f24,_0x189631,_0x2bab75,_0xc91c0,_0x1a8899,_0x3d49b6){const _0x418688=this['_getAuthorFromId'](_0xc91c0),_0xa73b1d=this['_suggestionFactory']['buildSuggestion'](_0x594f24,_0x189631,_0x2bab75,_0x418688,_0x1a8899,_0x83624d=>{this['_updateSuggestionData'](_0x2bab75,{'attributes':_0x83624d});const _0x2bc301=this['getSuggestion'](_0x2bab75);this['_joinWithAdjacentSuggestions'](new Set([_0x2bc301])),this['_refreshSuggestionsChain'](new Set([_0x2bc301]));},_0x3d49b6);return this['listenTo'](_0xa73b1d,'accept',()=>{this['_updateSuggestionData'](_0x2bab75,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0xa73b1d,'discard',()=>{this['_updateSuggestionData'](_0x2bab75,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2bab75,_0xa73b1d),this['_suggestionState']['set'](_0xa73b1d,'notReady'),_0xa73b1d;}['_splitMarkerName'](_0x267e73){const _0x5402a5=_0x267e73['split'](':');return{'group':_0x5402a5[0x0],'type':_0x5402a5[0x1],'subType':_0x5402a5['length']>=0x5?_0x5402a5[0x2]:null,'id':_0x5402a5['length']<0x5?_0x5402a5[0x2]:_0x5402a5[0x3],'authorId':_0x5402a5['length']<0x5?_0x5402a5[0x3]:_0x5402a5[0x4],'markerCount':0x6==_0x5402a5['length']?_0x5402a5[0x5]:null};}['_breakSuggestionMarker'](_0x34c422,_0x349852,_0x1a168a){const _0x338830=_0x34c422['getFirstRange'](),_0x479f3c=_0x338830['start'],_0x301571=_0x338830['end'];this['_setSuggestionRange'](_0x34c422,this['_model']['createRange'](_0x479f3c,_0x349852));const _0x489de7=_0x4f1695(),_0x4635ef=_0x34c422['creator']['id'],_0x16698d=_0x34c422['type']+(_0x34c422['subType']?':'+_0x34c422['subType']:'');this['_setSuggestionData']({'id':_0x489de7,'type':_0x16698d,'createdAt':new Date(),'authorId':_0x4635ef,'originalSuggestionId':_0x34c422['_originalSuggestionId']||_0x34c422['id'],'attributes':_0x34c422['attributes'],'data':_0x34c422['data']});const _0x4b997f=this['_getAttributeKey'](_0x34c422);('formatBlock'==_0x34c422['type']||_0x4b997f&&this['_isBlockAttribute'](_0x4b997f))&&(_0x1a168a=this['_model']['createPositionBefore'](_0x1a168a['parent'])),this['_addSuggestionMarker'](_0x16698d,_0x489de7,_0x4635ef,this['_model']['createRange'](_0x1a168a,_0x301571));}['_findSuggestions'](_0x26bc9d,_0x4c4c15=null){const _0x123bc8=[],_0x2e2cad=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x26bc9d)||(_0x26bc9d=[_0x26bc9d]);for(const _0x5a4ce5 of this['getSuggestions']()){if(!_0x5a4ce5['isInContent'])continue;if(_0x4c4c15&&_0x5a4ce5['type']!=_0x4c4c15)continue;let _0x2320a0=!0x1;for(const _0x6daa03 of _0x5a4ce5['getRanges']()){for(const _0x4678b1 of _0x26bc9d){const _0x2ef5c9=_0x4678b1['start']['isEqual'](_0x6daa03['end'])||_0x4678b1['end']['isEqual'](_0x6daa03['start']);if(_0x2ef5c9||_0x4678b1['getIntersection'](_0x6daa03)){const _0x3f2564=_0x4678b1['containsRange'](_0x6daa03)&&Gt(this['_model']['schema'],_0x6daa03['start'],_0x4678b1),_0x96c278=_0x6daa03['containsRange'](_0x4678b1)&&Gt(this['_model']['schema'],_0x4678b1['start'],_0x6daa03);_0x123bc8['push']({'suggestion':_0x5a4ce5,'meta':{'isOwn':_0x2e2cad==_0x5a4ce5['author'],'isNextTo':_0x2ef5c9,'isInsideObject':_0x3f2564,'containsRangeInObject':_0x96c278}}),_0x2320a0=!0x0;break;}}if(_0x2320a0)break;}}return _0x123bc8;}['_addSuggestionMarker'](_0x9f890b,_0x1b6ae2,_0x48e255,_0xab6146,_0x56abaf){this['_model']['change'](_0x1142b1=>{let _0x53dab8='suggestion:'+_0x9f890b+':'+_0x1b6ae2+':'+_0x48e255;_0x56abaf&&(_0x53dab8=_0x53dab8+':'+_0x56abaf),_0x1142b1['addMarker'](_0x53dab8,{'range':_0xab6146,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x5b8ff6){const _0x54efc5=_0x5b8ff6['previous'],_0x2d6cfc=_0x5b8ff6['next'];_0x5b8ff6['previous']=null,_0x5b8ff6['next']=null,null!=_0x54efc5&&_0x54efc5['next']==_0x5b8ff6&&(_0x54efc5['next']=_0x2d6cfc),null!=_0x2d6cfc&&_0x2d6cfc['previous']==_0x5b8ff6&&(_0x2d6cfc['previous']=_0x54efc5),'ready'==this['_suggestionState']['get'](_0x5b8ff6)&&(this['_suggestionState']['set'](_0x5b8ff6,'removed'),this['fire']('suggestionUnloaded',_0x5b8ff6,_0x54efc5,_0x2d6cfc));}['_setSuggestionData'](_0x424231){const _0x270ed5=_0x424231['id'],_0x4a87e3=this['addSuggestionData'](_0x424231);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x144001=this['editor']['plugins']['get']('PendingActions'),_0x4f2b4f=_0x4a87e3['hasComments'],_0x2533f1=_0x4a87e3['subType']?_0x4a87e3['type']+':'+_0x4a87e3['subType']:_0x4a87e3['type'],_0x29e43b=this['editor']['locale'],_0x22283b=_0x144001['add'](c(_0x29e43b,'PENDING_ACTION_SUGGESTION')),_0x4e7d94={'id':_0x270ed5,'type':_0x2533f1,'hasComments':_0x4f2b4f,'data':_0x424231['data']||null,'originalSuggestionId':_0x424231['originalSuggestionId']||null,'attributes':_0x4a87e3['attributes']};this['_adapter']['addSuggestion'](_0x4e7d94)['then'](_0x35747a=>{_0x4a87e3['_saved']=!0x0,_0x144001['remove'](_0x22283b),_0x35747a&&_0x35747a['createdAt']&&(this['_suggestions']['get'](_0x270ed5)['createdAt']=_0x35747a['createdAt']);})['catch'](_0x201e3c=>{throw _0x47fb93('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4a87e3['discard']();}),_0x4a87e3['stopListening'](),this['_suggestions']['delete'](_0x4a87e3['id']),this['_suggestionState']['delete'](_0x4a87e3),_0x201e3c;});}return _0x4a87e3;}['_isBlockAttribute'](_0x43b3e5){return this['_blockAttributeKeys']['has'](_0x43b3e5);}['_updateSuggestionData'](_0x1d5c97,_0x438956){const _0x29cd12=this['editor']['plugins']['get']('PendingActions'),_0x4c5422=this['getSuggestion'](_0x1d5c97);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4c5422['_saved']){const _0x4a64da=_0x29cd12['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x1d5c97,_0x438956)['then'](()=>{_0x29cd12['remove'](_0x4a64da);});}else _0x4c5422['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x1d5c97,_0x438956);});}}['_getSuggestionData'](_0x37182e){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x5c9fc8('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x37182e);}['_handleNewSuggestionMarker'](_0x23577f){const {id:_0x371771,type:_0xf2dd4b,subType:_0x54282b,authorId:_0x2d9482}=this['_splitMarkerName'](_0x23577f),_0x1079a5=this['_suggestions']['get'](_0x371771)||this['_createSuggestion'](_0xf2dd4b,_0x54282b,_0x371771,_0x2d9482,{});switch(this['_checkSuggestionCorrectness'](_0x1079a5,_0xf2dd4b,_0x54282b,_0x2d9482),this['_suggestionState']['get'](_0x1079a5)){case'notReady':this['_getSuggestionData'](_0x371771)['then'](_0x64c83e=>{let _0x3b7eb1=Promise['resolve']();_0x64c83e['hasComments']&&(_0x3b7eb1=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x371771})),_0x3b7eb1['then'](()=>{this['addSuggestionData'](_0x64c83e)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1079a5,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x371771,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1079a5,'ready'),this['fire']('suggestionLoaded',_0x1079a5);break;case'ready':this['fire']('suggestionChanged',_0x1079a5);}return _0x1079a5['addMarkerName'](_0x23577f),_0x1079a5;}['_refreshSuggestionsChain'](_0x16603b){const _0x4305cf=Array['from'](_0x16603b),_0x4b5cb9=_0x4305cf['filter'](_0x335fe=>'attribute'==_0x335fe['type']);this['_refreshAttributeSuggestionsChain'](_0x4b5cb9);const _0xa7b529=_0x4305cf['filter'](_0x4c6f5a=>!_0x4c6f5a['isMultiRange']&&'attribute'!=_0x4c6f5a['type']),_0x33e373=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5abba1=>!_0x5abba1['isMultiRange']&&'attribute'!=_0x5abba1['type']),_0x1d4e99=_0x33e373['filter'](_0xd1ed9c=>!_0x16603b['has'](_0xd1ed9c)),_0x38e0fe=new Map(_0x33e373['map'](_0x4fe2d7=>[_0x4fe2d7,this['_suggestionFactory']['getSuggestionCallback'](_0x4fe2d7['type'],_0x4fe2d7['subType'],'chain')])),_0x2d7b91=new Map(_0x33e373['map'](_0x3ef22=>[_0x3ef22,_0x3ef22['getFirstRange']()])),_0x269850=new Set(),_0x53f458=new Set();for(let _0x3fcbe3=0x0;_0x3fcbe3<_0xa7b529['length'];_0x3fcbe3++)_0x4a94b5(_0xa7b529[_0x3fcbe3],_0xa7b529,_0x3fcbe3+0x1);for(let _0x47bbd3=0x0;_0x47bbd3<_0xa7b529['length'];_0x47bbd3++)_0x4a94b5(_0xa7b529[_0x47bbd3],_0x1d4e99,0x0);const _0x1356c3=new Set();for(let _0xbc8a20=0x0;_0xbc8a20<_0xa7b529['length'];_0xbc8a20++){const _0x2798ab=_0xa7b529[_0xbc8a20];!_0x53f458['has'](_0x2798ab)&&_0x2798ab['previous']&&(_0x1356c3['add'](_0x2798ab['previous']),_0x2798ab['previous']['next']===_0x2798ab&&(_0x2798ab['previous']['next']=null),_0x2798ab['previous']=null),!_0x269850['has'](_0x2798ab)&&_0x2798ab['next']&&(_0x1356c3['add'](_0x2798ab['next']),_0x2798ab['next']['previous']===_0x2798ab&&(_0x2798ab['next']['previous']=null),_0x2798ab['next']=null);}function _0x4a94b5(_0x9942df,_0x1be980,_0x143e77){for(let _0x4e6f9b=_0x143e77;_0x4e6f9b<_0x1be980['length'];_0x4e6f9b++){const _0x4429f6=_0x9aa578(_0x9942df,_0x1be980[_0x4e6f9b]);_0x4429f6&&(_0x4429f6[0x0]['next']=_0x4429f6[0x1],_0x4429f6[0x1]['previous']=_0x4429f6[0x0],_0x269850['add'](_0x4429f6[0x0]),_0x53f458['add'](_0x4429f6[0x1]));}}function _0x9aa578(_0x38236d,_0x9c6127){if(_0x38236d['author']['id']!==_0x9c6127['author']['id'])return null;const _0x176fac=_0x38e0fe['get'](_0x38236d)(_0x38236d,_0x9c6127,_0x2d7b91['get'](_0x38236d),_0x2d7b91['get'](_0x9c6127));if(!_0x176fac)return null;return _0x38e0fe['get'](_0x9c6127)(_0x38236d,_0x9c6127,_0x2d7b91['get'](_0x38236d),_0x2d7b91['get'](_0x9c6127))?_0x176fac[0x1]['commentThread']&&_0x176fac[0x1]['commentThread']['length']?null:_0x176fac:null;}_0x1356c3['size']&&this['_refreshSuggestionsChain'](_0x1356c3);}['_refreshAttributeSuggestionsChain'](_0x25259e){if(0x0==_0x25259e['length'])return;const _0x571f7f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x49a0ab=>'attribute'==_0x49a0ab['type']&&_0x49a0ab['_isDataLoaded']),_0x3011f3=[],_0xb7d455=new Map();for(const _0x345fcc of _0x571f7f){const _0x41b742=_0x3e9b0a(_0x345fcc['attributes']);_0xb7d455['has'](_0x41b742)||(_0xb7d455['set'](_0x41b742,_0x3011f3['length']),_0x3011f3['push']([]));const _0x4df184=_0xb7d455['get'](_0x41b742);_0x3011f3[_0x4df184]['push'](_0x345fcc);}!(function(){_0x3011f3['sort']((_0xdd1bfd,_0x5f46e6)=>{const _0x2da6be=_0xdd1bfd[0x0]['createdAt'],_0x20cdd1=_0x5f46e6[0x0]['createdAt'];return _0x2da6be==_0x20cdd1?_0xdd1bfd[0x0]['attributes']['groupId']<_0x5f46e6[0x0]['attributes']['groupId']?-0x1:0x1:_0x2da6be<_0x20cdd1?-0x1:0x1;});for(const _0x189054 of _0x3011f3)_0x189054['sort']((_0x20cb9e,_0x3257c7)=>_0x20cb9e['id']<_0x3257c7['id']?-0x1:0x1);}());for(let _0x5df5f8=0x0;_0x5df5f8<_0x3011f3['length'];_0x5df5f8++){if(0x0==_0x3011f3[_0x5df5f8]['length'])continue;const _0x34d460=[];for(let _0x3c260c=_0x5df5f8+0x1;_0x3c260c<_0x3011f3['length'];_0x3c260c++)0x0!=_0x3011f3[_0x3c260c]['length']&&_0x31b5c1(_0x3011f3[_0x5df5f8],_0x3011f3[_0x3c260c])&&_0x34d460['push'](_0x3c260c);for(const _0x285afb of _0x34d460)_0x3011f3[_0x5df5f8]=_0x3011f3[_0x5df5f8]['concat'](_0x3011f3[_0x285afb]),_0x3011f3[_0x285afb]=[];}for(const _0x19b29a of _0x3011f3)for(let _0x483a19=0x0;_0x483a19<_0x19b29a['length'];_0x483a19++){const _0x38ae13=_0x19b29a[_0x483a19+0x1]||null;_0x19b29a[_0x483a19]['next']!==_0x38ae13&&(_0x19b29a[_0x483a19]['next']=_0x38ae13);}for(const _0x5951c8 of _0x3011f3)for(let _0x21196c=0x0;_0x21196c<_0x5951c8['length'];_0x21196c++){const _0x1760ff=_0x5951c8[_0x21196c-0x1]||null;_0x5951c8[_0x21196c]['previous']!==_0x1760ff&&(_0x5951c8[_0x21196c]['previous']=_0x1760ff);}function _0x31b5c1(_0x2de53c,_0x323780){if(_0x2de53c[0x0]['attributes']['groupId']!==_0x323780[0x0]['attributes']['groupId']&&_0x2de53c[0x0]['author']!==_0x323780[0x0]['author'])return!0x1;if(!function(_0x2f53e8,_0x45e468){if(!_0x2f53e8['hasComments']&&!_0x45e468['hasComments'])return!0x0;if(_0x2f53e8['hasComments']&&_0x45e468['hasComments'])return!0x1;if(_0x2f53e8['hasComments']&&_0x45e468['createdAt']<_0x2f53e8['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x45e468['hasComments']&&_0x2f53e8['createdAt']<_0x45e468['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2de53c[0x0],_0x323780[0x0]))return!0x1;const _0x1082e4=Ft(_0x2de53c[0x0]['attributes'],['groupId','trackingSessionId']),_0x5ef4e6=Ft(_0x323780[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x2351b0(_0x1082e4,_0x5ef4e6))return!0x1;if(_0x2de53c[0x0]['attributes']['groupId']==_0x323780[0x0]['attributes']['groupId'])return!0x0;if(_0x2de53c[0x0]['attributes']['trackingSessionId']!==_0x323780[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x2de53c['every'](_0x41b522=>_0x323780['some'](_0x4fbcc4=>_0x41b522['getFirstRange']()['isEqual'](_0x4fbcc4['getFirstRange']())))&&_0x323780['every'](_0x5aeaa7=>_0x2de53c['some'](_0x2ca1de=>_0x5aeaa7['getFirstRange']()['isEqual'](_0x2ca1de['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0xee279a){const _0x2fde8b=Array['from'](_0xee279a),_0x30d594=this['getSuggestions']({'skipNotAttached':!0x0}),_0x17bcf5=_0x30d594['filter'](_0x5ab090=>!_0xee279a['has'](_0x5ab090)),_0x3bdbb6=new Map(_0x2fde8b['map'](_0x4058e9=>[_0x4058e9,this['_suggestionFactory']['getSuggestionCallback'](_0x4058e9['type'],_0x4058e9['subType'],'join')])),_0x177397=new Map(_0x30d594['map'](_0x336442=>[_0x336442,_0x336442['getRanges']()]));for(let _0x1596c2=0x0;_0x1596c2<_0x2fde8b['length'];_0x1596c2++){if(_0x22978(this,_0x2fde8b[_0x1596c2],_0x2fde8b,_0x1596c2+0x1))return!0x0;}for(let _0x2d49d4=0x0;_0x2d49d4<_0x2fde8b['length'];_0x2d49d4++){if(_0x22978(this,_0x2fde8b[_0x2d49d4],_0x17bcf5,0x0))return!0x0;}return!0x1;function _0x22978(_0x5ac8fa,_0x433fcd,_0x3f934e,_0x1a673c){for(let _0x3406e4=_0x1a673c;_0x3406e4<_0x3f934e['length'];_0x3406e4++){const _0xae769c=_0x3f934e[_0x3406e4];if(_0xae769c['type']!==_0x433fcd['type']||_0xae769c['author']['id']!==_0x433fcd['author']['id']||_0xae769c['subType']!==_0x433fcd['subType'])continue;if(!Qt(_0x433fcd,_0xae769c))continue;if('attribute'==_0x433fcd['type']&&_0x433fcd['data']['oldValue']!=_0xae769c['data']['oldValue'])continue;if('attribute'==_0x433fcd['type']&&_0x5ac8fa['_isBlockAttribute'](_0x433fcd['data']['key']))continue;if('formatBlock'==_0x433fcd['type']){const _0x554d5d=_0x5ac8fa['editor']['model'],_0x5c52d4=_0x433fcd['getContainedElement']();if(_0x5c52d4&&(_0x554d5d['schema']['isObject'](_0x5c52d4)||_0x554d5d['schema']['isLimit'](_0x5c52d4)))continue;}const _0x23db80=_0x3bdbb6['get'](_0x433fcd),_0x3a95e6=_0x177397['get'](_0x433fcd),_0x4ba639=_0x177397['get'](_0xae769c),_0x30f22d=_0x433fcd['commentThread']&&_0x433fcd['commentThread']['length'],_0x4a0b05=_0xae769c['commentThread']&&_0xae769c['commentThread']['length'];if(!_0x30f22d&&_0x23db80(_0x4ba639,_0x3a95e6))return _0x5ac8fa['_joinSuggestions'](_0xae769c,_0x433fcd),_0x177397['delete'](_0x433fcd),!0x0;if(!_0x4a0b05&&_0x23db80(_0x3a95e6,_0x4ba639))return _0x5ac8fa['_joinSuggestions'](_0x433fcd,_0xae769c),_0x177397['delete'](_0xae769c),!0x0;}return!0x1;}}['_joinSuggestions'](_0x243ef4,_0x3b873e){if(_0x243ef4['isMultiRange']){for(const _0x2672f8 of _0x3b873e['getRanges']())_0x243ef4['addRange'](_0x2672f8);}else{const _0x456706=_0x3b873e['getFirstRange']()['end'];this['_setSuggestionRange'](_0x243ef4,this['_model']['createRange'](_0x243ef4['getFirstRange']()['start'],_0x456706));}_0x3b873e['removeMarkers']();}['_getMarkerAnnouncementText'](_0x24ec3a,_0x1727a9,_0x115d9e){const _0xc394c6=_0x24ec3a['startsWith']('format')||_0x24ec3a['startsWith']('attribute')?'FORMATTING':_0x24ec3a['toUpperCase']();return c(this['editor']['locale'],_0x1727a9+'_'+_0xc394c6+'_SUGGESTION_ANNOUNCEMENT',_0x115d9e);}['_initAriaMarkerChangeAnnouncements'](){const _0x206e83=this['editor'];if(!_0x206e83['ui'])return;const {ariaLiveAnnouncer:_0x2ee72b}=_0x206e83['ui'];_0x3501c0(this['_model'],({left:_0x4b33c4,entered:_0x403937})=>{for(const _0x446509 of _0x4b33c4){const {group:_0x68dc29,type:_0x53fe7e}=this['_splitMarkerName'](_0x446509['name']);if('suggestion'===_0x68dc29){_0x2ee72b['announce'](this['_getMarkerAnnouncementText'](_0x53fe7e,'LEAVE'));break;}}for(const _0x190c19 of _0x403937){const {group:_0x2befa2,type:_0x30aea0}=this['_splitMarkerName'](_0x190c19['name']);if('suggestion'===_0x2befa2){_0x2ee72b['announce'](this['_getMarkerAnnouncementText'](_0x30aea0,'ENTER',_0x35f937(_0x896300)));break;}}});}['_processAttributeChanges'](_0x2f0de0){if(this['_recordAttributeSuggestions'])return!0x1;const _0xeac1ad=this['editor'],_0x239f3c=_0xeac1ad['model']['document']['differ']['getChanges']();if(0x0==_0x239f3c['length'])return!0x1;const _0x519991=[],_0x13f388=_0x239f3c['filter'](_0x5a7ace=>'attribute'==_0x5a7ace['type']),_0x4d182f=_0x239f3c['filter'](_0x3531f9=>'insert'==_0x3531f9['type']&&'$text'!=_0x3531f9['name']),_0x384767=_0x239f3c['filter'](_0x5a7ab4=>'remove'==_0x5a7ab4['type']&&'$text'!=_0x5a7ab4['name']);for(const _0x490e51 of _0x13f388)_0x519991['push']({'key':_0x490e51['attributeKey'],'newValue':_0x490e51['attributeNewValue'],'oldValue':_0x490e51['attributeOldValue'],'range':qt(_0x490e51['range'],_0xeac1ad['model'])});for(const _0x5a2b6e of _0x4d182f){const _0x4489e0=_0x384767['find'](_0x4cfa8c=>_0x4cfa8c['position']['isEqual'](_0x5a2b6e['position']));_0x4489e0&&_0x519991['push']({'key':u,'newValue':_0x5a2b6e['name'],'oldValue':_0x4489e0['name'],'range':_0xeac1ad['model']['createRangeOn'](_0x5a2b6e['position']['nodeAfter'])});}return 0x0!=_0x519991['length']&&this['_reduceExistingSuggestions'](_0x2f0de0,_0x519991);}['_processAttributeSuggestions'](_0x859f51){let _0x4ba17d=!0x1;const _0x10bf21=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x436182=>_0x436182['data']['newRange']&&_0x436182['name']['startsWith']('suggestion:attribute:'));for(const _0xeb9829 of _0x10bf21){const {subType:_0x2f8da9,id:_0x28fed4}=this['_splitMarkerName'](_0xeb9829['name']),_0x40e055=_0x2f8da9['split']('|')[0x0];for(const _0x1c8072 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x1c8072['id']!=_0x28fed4&&'attribute'==_0x1c8072['type']&&_0x1c8072['data']&&_0x1c8072['data']['key']==_0x40e055&&_0x1c8072['getFirstRange']()['isIntersecting'](_0xeb9829['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x1c8072,_0xeb9829['data']['newRange'],_0x859f51),_0x4ba17d=!0x0);}return _0x4ba17d;}['_recordAttributeChanges'](_0x2f490c){this['_recordAttributeSuggestions']=!0x0,_0x2f490c();}['_isRegisteredAttribute'](_0x411a3f){const _0xefa640=this['_isBlockAttribute'](_0x411a3f),_0x4aaf41=this['_inlineAttributeKeys']['has'](_0x411a3f);return _0xefa640||_0x4aaf41;}['_reduceExistingSuggestions'](_0x1ee297,_0x2a30fd){if(0x0==_0x2a30fd['length'])return!0x1;let _0xb93239=!0x1;for(const _0x317f3a of _0x2a30fd){const _0x399350=this['_findSuggestions'](_0x317f3a['range'],'attribute')['filter'](_0x2525fe=>!_0x2525fe['meta']['isNextTo'])['map'](_0x1de84c=>_0x1de84c['suggestion']),_0x1312b6=_0x3e9b0a({'newValue':_0x317f3a['newValue']});_0x399350['filter'](_0x30f6f1=>{const [_0x38def2,_0x928258]=_0x30f6f1['subType']['split']('|');return _0x38def2==_0x317f3a['key']&&_0x928258!=_0x1312b6;})['forEach'](_0x9c202d=>{this['_reduceSuggestionAttributeRange'](_0x9c202d,_0x317f3a['range'],_0x1ee297),_0xb93239=!0x0;});}return _0xb93239;}['_reduceSuggestionAttributeRange'](_0x4dce7c,_0x4af02b,_0x3f1376){const _0x2ebfdc=_0x4dce7c['getFirstRange']()['getDifference'](_0x4af02b);0x0!==_0x2ebfdc['length']?0x1!==_0x2ebfdc['length']?this['_breakSuggestionMarker'](_0x4dce7c,_0x4af02b['start'],_0x4af02b['end']):this['_setSuggestionRange'](_0x4dce7c,_0x2ebfdc[0x0]):_0x3f1376['removeMarker'](_0x4dce7c['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x3fcb09){this['_editor']=_0x3fcb09,this['_model']=_0x3fcb09['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x4ac197,_0x36b059,_0x5954f8,_0xd854c1,_0x57b3f8,_0x4d56da,_0x630ca7){return new o(this['_model'],{'type':_0x4ac197,'subType':_0x36b059,'id':_0x5954f8,'originalSuggestionId':_0x630ca7,'author':_0xd854c1,'creator':_0xd854c1,'attributes':_0x57b3f8,'onAttributesChange':_0x4d56da,'onAccept':(..._0x466904)=>this['getSuggestionCallback'](_0x4ac197,_0x36b059,'accept')(..._0x466904),'onDiscard':(..._0x15d539)=>this['getSuggestionCallback'](_0x4ac197,_0x36b059,'discard')(..._0x15d539)});}['registerCustomCallback'](_0x10540b,_0x519857,_0x3de3cc,_0x2a3fe3){const _0x488d9e=_0x10540b+':'+_0x519857+':'+_0x3de3cc;this['_customCallbacks']['set'](_0x488d9e,_0x2a3fe3);}['getSuggestionCallback'](_0x2ed696,_0x54e4b9,_0x1762ad){const _0x2f4c9d=_0x2ed696+':'+_0x54e4b9+':'+_0x1762ad;return this['_customCallbacks']['get'](_0x2f4c9d)||this['_defaultCallbacks']['get'](_0x2ed696+':'+_0x1762ad);}['_registerDefaultCallbacks'](){const _0x2d01ee=()=>!0x1,_0x59b536=_0x5b3480=>{_0x5b3480['sort']((_0x3d7b1e,_0x189680)=>_0x3d7b1e['start']['isBefore'](_0x189680['start'])?0x1:-0x1),this['_model']['change'](_0x19d705=>{for(const _0x16ba7c of _0x5b3480){let _0x2512c7;_0x2512c7=_0x16ba7c['end']['isAtEnd']&&_0x16ba7c['end']['parent']==_0x16ba7c['start']['nodeAfter']?_0x19d705['createSelection'](_0x16ba7c['start']['nodeAfter'],'on'):_0x19d705['createSelection'](_0x16ba7c),this['_model']['deleteContent'](_0x2512c7,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x52baf5=(_0x395084,_0x50a44c)=>{_0x50a44c&&this['_model']['change'](_0x4e0463=>{const {commandName:_0x2418ee,commandParams:_0x444eb5=[]}=_0x50a44c,_0x56382a=_0x395084['map'](_0x2a3a76=>(Lt(_0x2a3a76)&&(_0x2a3a76=this['_model']['createRange'](_0x2a3a76['end'])),_0x2a3a76))['filter'](_0x51b5a8=>'$graveyard'!==_0x51b5a8['root']['rootName']);if(_0x56382a['length']<0x1)return;const _0x3295a2=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3b3034=>_0x106800['fromRange'](_0x3b3034));_0x4e0463['setSelection'](_0x56382a);for(const _0x5e47f1 of this['_editor']['commands']['commands']())_0x5e47f1['refresh']();_0x444eb5['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x2418ee,..._0x444eb5);const _0x3d94b1=_0x3295a2['filter'](_0x45df6e=>'$graveyard'!=_0x45df6e['root']['rootName']);_0x3d94b1['length']>0x0&&_0x4e0463['setSelection'](_0x3d94b1);for(const _0x5a3eb1 of _0x3295a2)_0x5a3eb1['detach']();});},_0x561cd0=(_0x2a59d6,_0x459296)=>0x1==_0x2a59d6['length']&&0x1==_0x459296['length']&&_0x2a59d6[0x0]['end']['isEqual'](_0x459296[0x0]['start']),_0x25bb8d=(_0x40350c,_0x2d1116,_0x170c35,_0x2dcaaa)=>Wt(_0x40350c,_0x2d1116,_0x170c35,_0x2dcaaa)?[_0x40350c,_0x2d1116]:Wt(_0x2d1116,_0x40350c,_0x2dcaaa,_0x170c35)?[_0x2d1116,_0x40350c]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2d01ee),this['_defaultCallbacks']['set']('insertion:discard',_0x59b536),this['_defaultCallbacks']['set']('insertion:join',_0x561cd0),this['_defaultCallbacks']['set']('insertion:chain',_0x25bb8d),this['_defaultCallbacks']['set']('deletion:accept',_0x59b536),this['_defaultCallbacks']['set']('deletion:discard',_0x2d01ee),this['_defaultCallbacks']['set']('deletion:join',_0x561cd0),this['_defaultCallbacks']['set']('deletion:chain',_0x25bb8d),this['_defaultCallbacks']['set']('formatInline:accept',_0x52baf5),this['_defaultCallbacks']['set']('formatInline:discard',_0x2d01ee),this['_defaultCallbacks']['set']('formatInline:join',_0x561cd0),this['_defaultCallbacks']['set']('formatInline:chain',_0x2d01ee),this['_defaultCallbacks']['set']('formatBlock:accept',_0x52baf5),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2d01ee),this['_defaultCallbacks']['set']('formatBlock:join',_0x561cd0),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2d01ee),this['_defaultCallbacks']['set']('attribute:accept',_0x2d01ee),this['_defaultCallbacks']['set']('attribute:discard',(_0x275930,_0x5e9a55)=>{if(!_0x5e9a55)return;const _0x42bd25=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x4478d6=>{if(_0x5e9a55['key']==u)for(const _0x9a2af1 of _0x275930){const _0x239636=_0x9a2af1['start']['nodeAfter'],_0x56b046=_0x5e9a55['oldValue'];_0x4478d6['rename'](_0x239636,_0x56b046);}else{if(_0x42bd25['_isBlockAttribute'](_0x5e9a55['key'])){for(const _0x1beafb of _0x275930)void 0x0!==_0x5e9a55['oldValue']?_0x4478d6['setAttribute'](_0x5e9a55['key'],_0x5e9a55['oldValue'],_0x1beafb['start']['nodeAfter']):_0x4478d6['removeAttribute'](_0x5e9a55['key'],_0x1beafb['start']['nodeAfter']);}else{for(const _0x1f3712 of _0x275930)_0x5e9a55['oldValue']?_0x4478d6['setAttribute'](_0x5e9a55['key'],_0x5e9a55['oldValue'],_0x1f3712):_0x4478d6['removeAttribute'](_0x5e9a55['key'],_0x1f3712);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x561cd0);}}function Gt(_0x5869df,_0x320103,_0x501129){for(const _0x4f966f of _0x320103['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4f966f['root']==_0x4f966f)return!0x1;if(!_0x501129['containsItem'](_0x4f966f))return!0x1;if(_0x5869df['isObject'](_0x4f966f)||_0x5869df['isLimit'](_0x4f966f))return!0x0;}return!0x1;}function Lt(_0x382085){return _0x382085['end']['parent']==_0x382085['start']['nodeAfter']&&_0x382085['end']['isAtStart'];}function Jt(_0x40ae07,_0x100eef,_0x52366d,_0x3606e2){const _0x4ab7a6=_0x596aa0=>!_0x596aa0['item']['is']('$textProxy')&&!_0x3606e2['isObject'](_0x596aa0['item']),_0x3a6980=_0x40ae07['start']['getLastMatchingPosition'](_0x4ab7a6),_0x4dd155=_0x40ae07['end']['getLastMatchingPosition'](_0x4ab7a6,{'direction':'backward'});return(!_0x40ae07['start']['isEqual'](_0x3a6980)||!_0x40ae07['end']['isEqual'](_0x4dd155))&&(_0x3a6980['isBefore'](_0x4dd155)?_0x52366d['updateMarker'](_0x100eef,{'range':_0x52366d['createRange'](_0x3a6980,_0x4dd155)}):_0x52366d['removeMarker'](_0x100eef),!0x0);}function Kt(_0x196bb6){return _0x3e9b0a(_0x196bb6);}function Ht(_0x2eec34){const _0x1f1472=_0x2eec34['start']['nodeAfter'];return _0x1f1472&&_0x1f1472['is']('element');}function qt(_0x170d47,_0x387df5){return null==_0x170d47['end']['nodeBefore']&&_0x170d47['end']['parent']==_0x170d47['start']['nodeAfter']?zt(_0x170d47['start']['nodeAfter'],_0x387df5):_0x170d47;}function zt(_0x3ea78d,_0x1d30b2){const _0x3b37f8=_0x1d30b2['schema']['isObject'](_0x3ea78d)||_0x1d30b2['schema']['isSelectable'](_0x3ea78d);return _0x1d30b2['createRange'](_0x1d30b2['createPositionAt'](_0x3ea78d,'before'),_0x3b37f8?_0x1d30b2['createPositionAfter'](_0x3ea78d):_0x1d30b2['createPositionAt'](_0x3ea78d,'end'));}function Wt(_0x57b1e0,_0x59b7d6,_0x39860d,_0x1f41fa){return!!Qt(_0x57b1e0,_0x59b7d6)&&_0x39860d['end']['isEqual'](_0x1f41fa['start']);}function Qt(_0x2ed4cb,_0x2464d5){if(!_0x2ed4cb['_isDataLoaded']||!_0x2464d5['_isDataLoaded'])return!0x1;const _0x1d9fcb=new Set(Object['keys'](_0x2ed4cb['attributes'])),_0x2edf1b=new Set(Object['keys'](_0x2464d5['attributes']));if(_0x1d9fcb['delete']('groupId'),_0x2edf1b['delete']('groupId'),0x0==_0x1d9fcb['size']&&0x0==_0x2edf1b['size'])return!0x0;if(_0x1d9fcb['size']!=_0x2edf1b['size'])return!0x1;const _0x2c8be6={..._0x2ed4cb['attributes']},_0xcdd1b={..._0x2464d5['attributes']};return delete _0x2c8be6['groupId'],delete _0xcdd1b['groupId'],JSON['stringify'](_0x2c8be6)==JSON['stringify'](_0xcdd1b);}function Xt(_0x3010a7,_0x386590){const _0x296618=Yt(_0x3010a7['attributes']),_0x2b08e6=Yt(_0x386590);if(!_0x3010a7['_isDataLoaded'])return!0x1;for(const _0x65483b of Object['keys'](_0x2b08e6))if(!_0x2351b0(_0x296618[_0x65483b],_0x2b08e6[_0x65483b]))return!0x1;return!0x0;}function Yt(_0x19a252){const _0x20bf5d=Object['assign']({},_0x19a252);return delete _0x20bf5d['skipNestingCheck'],delete _0x20bf5d['tablePasteChainId'],_0x20bf5d;}class pe extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x25de0e(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x365c73,_0x528105,_0x2b98f6,_0x3bbbc0){super(),this['model']=_0x528105,this['view']=_0x2b98f6,this['commentThreadController']=_0x3bbbc0,this['_editor']=_0x365c73,this['_acceptCommand']=_0x365c73['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x365c73['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x480535,_0x1ce818)=>_0x480535||_0x1ce818),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x143ca9=>_0x143ca9&&this['_editor']['model']['canEditAt'](_0x528105['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x1dc9ff=>_0x1dc9ff&&this['_editor']['model']['canEditAt'](_0x528105['getRanges']())),this['_pendingAction']=null,_0x2b98f6['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2b98f6,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2b98f6,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2b98f6,'change:isDirty',()=>{_0x2b98f6['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 _0x3daf3a=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x3daf3a);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x3d79ae{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x24b3c1,_0x96e28d,_0x447afe,_0x7d0dc0){super(_0x24b3c1),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2cfde7(_0x24b3c1,c(_0x24b3c1,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x96e28d['authoredAt']),this['bind']('authoredAt')['to'](_0x96e28d),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',_0x96e28d,'authoredAt',this,'descriptionParts',(_0x2ae34c,_0x5b292c,_0x2620a7)=>{const _0x32a1f2=_0x2620a7['map'](_0x371d1d=>ls(_0x371d1d['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x2ae34c-0x1,_0x96e28d['author']['name'],_0x5b292c?_0x7d0dc0['formatDateTime'](_0x5b292c):'',new DOMParser()['parseFromString'](_0x32a1f2,'text/html')['body']['textContent']]);}),this['focusables']=new _0x1b616d(),this['focusTracker']=new _0x1db60c(),this['keystrokes']=new _0x1409eb(),this['focusCycler']=new _0x167772({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x394b3a=>_0x394b3a['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x96e28d,this['_localUser']=_0x447afe,this['_config']=_0x7d0dc0,_0x7d0dc0['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x2f249e(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x384df9}=this['_config'];this['commentsListView']=new _0x384df9(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',_0x4812b8=>_0x4812b8+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1af7b5,_0x5b7816)=>_0x1af7b5||!!_0x5b7816);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x5c8e98}=this['_config'],_0x4a86d4=new _0x5c8e98(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x184908=_0x4a86d4['commentInputView'];return _0x4a86d4['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x184908,'value',(_0x5442bd,_0x3ac4b5,_0x4f207a)=>!!_0x4f207a||_0x5442bd&&!_0x3ac4b5),_0x184908['on']('submit',(_0x3f7e65,_0x9187f)=>{this['fire']('addComment',_0x9187f),_0x184908['editor']['setData']('');}),_0x184908['on']('cancel',()=>this['focus']()),_0x184908['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4a86d4;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x4d8466,_0x460f30,_0x3f94c3,_0x2252a1){super(_0x4d8466,_0x460f30,_0x3f94c3,_0x2252a1),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x50ff94=>_0x50ff94&&_0x50ff94[0x0]?_0x50ff94[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x7dcfb5,_0x3b8e7f)=>{let _0x2b6cc7='';for(const _0x1a4a14 of _0x7dcfb5)_0x2b6cc7+='<p>'+ls(_0x1a4a14['content'],_0x1a4a14['color'])+'</p>';return _0x3b8e7f?_0x2b6cc7:ti(_0x2b6cc7,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x2252a1['SuggestionView'](_0x4d8466,_0x460f30,{'formatDateTime':_0x2252a1['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 _0x16d063=this['bindTemplate'],_0x28ea67=[this['suggestionView']];return this['commentsListView']&&_0x28ea67['push'](this['commentsListView']),this['commentThreadInputView']&&_0x28ea67['push'](this['commentThreadInputView']),_0x28ea67['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x16d063['if']('isActive','ck-suggestion-wrapper--active'),_0x16d063['to']('type',_0x5286c8=>'ck-suggestion-'+_0x5286c8),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':_0x16d063['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x28ea67};}['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 _0x3d79ae{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0xf04b82,_0x571859,_0x1b37e8){super(_0xf04b82),this['_model']=_0x571859,this['_config']=_0x1b37e8,this['set']('description',''),this['bind']('authoredAt')['to'](_0x571859),this['acceptButton']=this['_createButton'](c(_0xf04b82,'Accept\x20suggestion'),_0x2b32b6,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0xf04b82,'Discard\x20suggestion'),_0x5b16ee,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x286819(_0xf04b82,_0x571859['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x1b616d([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x1db60c(),this['keystrokes']=new _0x1409eb(),this['focusCycler']=new _0x167772({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x14ad85=>_0x14ad85['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x4db300=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x4db300['innerHTML']=this['description'],this['on']('change:description',(_0x15f51a,_0x3b4cb8,_0x2f59e8)=>{_0x4db300['innerHTML']=_0x2f59e8;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x8eb1c5=this['bindTemplate'],_0x467dce=[{'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':_0x8eb1c5['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x8eb1c5['to']('authoredAt',_0x510f61=>this['_config']['formatDateTime'](_0x510f61))}]}]},{'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']&&_0x467dce['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':_0x467dce}]};}['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'](_0x3373a6,_0x21b7ad,_0x577aa1,_0x203431,_0x1b8f51){const _0x54ad56=new _0x5ad65(this['locale']);return _0x54ad56['set']({'label':_0x3373a6,'icon':_0x21b7ad,'tooltip':!0x0,'tooltipPosition':_0x1b8f51}),_0x54ad56['extendTemplate']({'attributes':{'class':_0x577aa1}}),_0x54ad56['on']('execute',()=>{this['fire'](_0x203431,this['_model']['id']);}),_0x54ad56;}['_setupKeyboardNavigation'](){const _0x5a72ca=this['element'];this['keystrokes']['listenTo'](_0x5a72ca);for(const _0x4afc2e of this['focusables'])this['focusTracker']['add'](_0x4afc2e['element']),this['keystrokes']['listenTo'](_0x4afc2e['element']);this['keystrokes']['set']('enter',(_0x1b3467,_0x4f4901)=>{_0x5a72ca===_0x1b3467['target']&&(this['focusCycler']['focusFirst'](),_0x4f4901());}),this['keystrokes']['set']('esc',(_0x3c7c6f,_0x569dc3)=>{_0x5a72ca!==_0x3c7c6f['target']&&(this['focus'](),_0x569dc3());});}}class d extends _0x525fe{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x7bb796,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5d0444){super(_0x5d0444),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0xc121ff=this['editor']['config'];_0xc121ff['define']('trackChanges.SuggestionThreadView',fe),_0xc121ff['define']('trackChanges.SuggestionView',we),_0xc121ff['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0xc121ff['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0xeaec70,_0x2be428){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x79af70,_0x21100b]of this['_handleControllerBuffer']){const _0x53a7ac=this['_suggestionToController']['has'](_0x79af70);_0x53a7ac||_0x21100b?_0x53a7ac&&_0x21100b&&this['_destroyController'](_0x79af70):this['_initializeController'](_0x79af70);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0xeaec70,_0x2be428);}['init'](){const _0x3d4a9f=this['editor'],_0xde3ab=_0x3d4a9f['plugins']['get']('TrackChangesEditing'),_0x5a444f=_0x3d4a9f['plugins']['get']('Annotations'),_0x504510=_0x3d4a9f['plugins']['get']('EditorAnnotations'),_0x4e0f4f=_0x3d4a9f['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x504510['addSourceCollector'](()=>{const _0x54f9be=[];for(const [_0x4b7d64,_0x2636e0]of Array['from'](this['_suggestionToController'])){const _0x1da016=_0x4b7d64['getAllAdjacentSuggestions'](),_0x1605dc=[];for(const _0x48b04a of _0x1da016){if(!_0x48b04a['isInContent'])continue;if(_0x48b04a['isMultiRange']){_0x1605dc['push'](..._0x48b04a['getRanges']());continue;}const _0xf7259e=_0x48b04a['getFirstRange']();if(_0x1605dc['length']>0x0){const _0x372555=_0x1605dc[0x0]['getJoined'](_0xf7259e);if(_0x372555){_0x1605dc[0x0]=_0x372555;continue;}}_0x1605dc['push'](_0xf7259e);}_0x54f9be['push']([_0x2636e0['view'],_0x1605dc]);}return _0x54f9be;}),this['listenTo'](_0xde3ab,'suggestionLoaded',(_0xc43cbb,_0xbff9d)=>{this['listenTo'](_0xbff9d,'change:previous',(_0x2c8148,_0x1341a9,_0x278e12,_0x4317a6)=>{_0xbff9d['isInContent']&&(null==_0x278e12?(this['_updateController'](_0x4317a6['head']),this['_handleSuggestionControllerDelayed'](_0xbff9d,!0x1)):(this['_updateController'](_0x278e12['head']),null==_0x4317a6&&this['_handleSuggestionControllerDelayed'](_0xbff9d,!0x0)));}),null!==_0xbff9d['previous']?this['_updateController'](_0xbff9d['head']):this['_handleSuggestionControllerDelayed'](_0xbff9d,!0x1);}),this['listenTo'](_0xde3ab,'suggestionUnloaded',(_0x31464f,_0x24fbff,_0x1c1959)=>{this['stopListening'](_0x24fbff,'change:previous'),this['_handleControllerBuffer']['delete'](_0x24fbff),this['_suggestionToController']['has'](_0x24fbff)&&this['_destroyController'](_0x24fbff),_0x1c1959&&this['_updateController'](_0x1c1959['head']);}),this['listenTo'](_0xde3ab,'suggestionChanged',(_0x40a7d7,_0x39db24)=>{this['_updateController'](_0x39db24);}),this['listenTo'](_0x5a444f,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4e0f4f,'addComment',(_0x5e16d5,{threadId:_0x20e6ca,isFromAdapter:_0x1812bc})=>{if(_0x1812bc||!_0xde3ab['hasSuggestion'](_0x20e6ca))return;const _0x415662=_0xde3ab['getSuggestion'](_0x20e6ca);this['_suggestionToController']['get'](_0x415662)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x10f11f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x358cb1;for(const _0x2a9782 in _0x10f11f){const _0x30f206=_0x2a9782,_0x14ac11=_0x10f11f[_0x30f206];if('trackChangesLicenseKeyValid'==_0x14ac11||'trackChangesLicenseKeyInvalid'==_0x14ac11||'trackChangesLicenseKeyExpired'==_0x14ac11||'trackChangesLicenseKeyDomainLimit'==_0x14ac11||'trackChangesLicenseKeyNotAllowed'==_0x14ac11||'trackChangesLicenseKeyEvaluationLimit'==_0x14ac11||'trackChangesLicenseKeyTrialLimit'==_0x14ac11||'trackChangesLicenseKeyUsageLimit'==_0x14ac11){delete _0x10f11f[_0x30f206],_0x358cb1=_0x14ac11,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x358cb1&&_0x10f11f['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x358cb1&&_0x10f11f['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x358cb1&&_0x10f11f['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x358cb1&&_0x10f11f['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x358cb1&&_0x10f11f['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x358cb1&&_0x10f11f['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x358cb1&&_0x10f11f['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x322451=this['editor']['plugins']['get']('Annotations'),_0x3a825b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x573ba5=Array['from'](_0x322451['activeAnnotations'],_0x4eeca5=>_0x4eeca5['innerView'])['filter'](_0x31dff1=>this['_viewToController']['has'](_0x31dff1)),_0x352b8b=[];for(const _0x17f318 of _0x573ba5){const _0x1cb271=this['_viewToController']['get'](_0x17f318)['model']['getAllAdjacentSuggestions']();_0x352b8b['push'](..._0x1cb271['reduce']((_0x53f68b,_0x5a259d)=>[..._0x53f68b,..._0x5a259d['getMarkerNames']()],[]));}_0x3a825b['activeMarkers']=_0x352b8b;}['_addUIComponentsToFactory'](){const _0x375016=this['editor'],_0x850894=_0x375016['locale'],_0x2adae7=c(_0x850894,'Track\x20changes'),_0x252e19=new _0x47b85b([{'type':'switchbutton','model':new _0x1f2321({'withText':!0x0,'isToggleable':!0x0,'label':_0x2adae7,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x1f2321({'withText':!0x0,'label':c(_0x850894,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1f2321({'withText':!0x0,'label':c(_0x850894,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1f2321({'withText':!0x0,'label':c(_0x850894,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1f2321({'withText':!0x0,'label':c(_0x850894,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x375016['plugins']['has']('TrackChangesPreview')&&_0x252e19['addMany']([{'type':'separator'},{'type':'button','model':new _0x1f2321({'withText':!0x0,'label':c(_0x850894,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x20b590 of _0x252e19)if(ke(_0x20b590)){const _0x314826=_0x375016['commands']['get'](_0x20b590['model']['commandName']);_0x20b590['model']['bind']('isOn','isEnabled')['to'](_0x314826,'value','isEnabled');}_0x375016['ui']['componentFactory']['add']('trackChanges',_0x39c160=>this['_createToolbarButton'](_0x39c160,_0x252e19,_0x2adae7)),_0x375016['ui']['componentFactory']['add']('menuBar:trackChanges',_0x60a2a5=>this['_createMenuBarMenu'](_0x60a2a5,_0x252e19,_0x2adae7));}['_createToolbarButton'](_0x431d89,_0x5aec1d,_0x391c32){const _0x4ff020=_0x2057f4(_0x431d89,_0x296de5),_0x1f54fd=this['editor']['commands']['get']('trackChanges');_0x4ff020['buttonView']['set']({'tooltip':_0x391c32,'label':_0x391c32,'icon':_0x511f04}),_0x4ff020['buttonView']['bind']('isOn')['to'](_0x1f54fd,'value'),_0x4ff020['buttonView']['on']('execute',()=>{_0x1f54fd['execute'](),this['editor']['editing']['view']['focus']();}),_0x107f48(_0x4ff020,_0x5aec1d,{'role':'menu'});const _0xd08161=[];for(const _0x618bde of _0x5aec1d)ke(_0x618bde)&&_0xd08161['push'](this['editor']['commands']['get'](_0x618bde['model']['commandName']));const _0x7c6d87=_0x4ff020['buttonView'];return _0x7c6d87['actionView']['unbind']('isEnabled'),_0x7c6d87['arrowView']['unbind']('isEnabled'),_0x7c6d87['actionView']['bind']('isEnabled')['to'](_0x1f54fd,'isEnabled'),_0x7c6d87['arrowView']['bind']('isEnabled')['toMany'](_0xd08161,'isEnabled',(..._0x125ea7)=>_0x125ea7['some'](_0x380856=>_0x380856)),_0x4ff020['on']('execute',_0x5bfb9e=>{this['editor']['execute'](_0x5bfb9e['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x4ff020;}['_createMenuBarMenu'](_0x395dec,_0x29dc4a,_0x154bc8){const _0x593d94=new _0x276ba6(_0x395dec),_0x7146a1=this['editor']['commands']['get']('trackChanges');_0x593d94['buttonView']['set']({'label':_0x154bc8,'icon':_0x511f04});const _0x2d45b0=new _0x42162a(_0x395dec);for(const _0x370e0b of _0x29dc4a){if('separator'==_0x370e0b['type']){_0x2d45b0['items']['add'](new _0x30855d(_0x395dec));continue;}const _0x49d2df=new _0x145098(_0x395dec,_0x593d94),_0x58fd3b=new _0x16294a(_0x395dec),_0x33d6ce=_0x370e0b['model'];_0x58fd3b['bind'](...Object['keys'](_0x33d6ce))['to'](_0x33d6ce),_0x58fd3b['delegate']('execute')['to'](_0x593d94),_0x58fd3b['on']('execute',()=>{this['editor']['execute'](_0x33d6ce['commandName']),this['editor']['editing']['view']['focus']();}),_0x49d2df['children']['add'](_0x58fd3b),_0x2d45b0['items']['add'](_0x49d2df);}return _0x593d94['bind']('isEnabled')['to'](_0x7146a1,'isEnabled'),_0x593d94['panelView']['children']['add'](_0x2d45b0),_0x593d94;}['_initializeController'](_0x4c8a1f){const _0x55fe92=this['editor'],_0xa5cf7a=_0x55fe92['config'],_0x295eb9=_0x55fe92['plugins']['get']('Annotations'),_0x33b42c=_0x55fe92['plugins']['get']('CommentsRepository'),_0xc0215e=_0x55fe92['plugins']['get']('EditorAnnotations'),_0x457ebf=_0x55fe92['plugins']['get'](_0x7bb796)['me'],_0xd20182=_0xa5cf7a['get']('trackChanges')['SuggestionThreadView'],_0x51a5c9=_0xa5cf7a['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x35c510,CommentThreadInputView:_0x5da51b}=_0x55fe92['plugins']['get']('CommentsUI');let _0x44fe4c,_0x3ff7d3,_0x564a05;this['_annotationViews']['has'](_0x4c8a1f['id'])?(_0x3ff7d3=this['_annotationViews']['get'](_0x4c8a1f['id']),_0x44fe4c=_0x3ff7d3['mainView']):(_0x44fe4c=new _0xd20182(_0x55fe92['locale'],_0x4c8a1f,_0x457ebf,{'disableComments':this['_disableComments'],'editorConfig':{..._0xa5cf7a['get']('comments.editorConfig'),'licenseKey':_0xa5cf7a['get']('licenseKey')},'maxCommentsWhenCollapsed':_0xa5cf7a['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xa5cf7a['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xa5cf7a['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x152e9b(_0xa5cf7a['get']('locale'),_0x55fe92['locale']),'CommentView':_0xa5cf7a['get']('comments')['CommentView'],'CommentsListView':_0x35c510,'CommentThreadInputView':_0x5da51b,'SuggestionView':_0x51a5c9}),_0x44fe4c['suggestionView']['acceptButton']['on']('execute',()=>{_0x55fe92['editing']['view']['focus']();}),_0x44fe4c['suggestionView']['discardButton']['on']('execute',()=>{_0x55fe92['editing']['view']['focus']();}),_0x3ff7d3=_0x295eb9['createAnnotationView'](this['editor']['locale'],_0x44fe4c),_0x3ff7d3['bind']('isDirty')['to'](_0x44fe4c,'isDirty'),_0x3ff7d3['bind']('length')['to'](_0x44fe4c),_0x3ff7d3['bind']('type')['to'](_0x44fe4c,'type',_0x3f4aa8=>'suggestion-'+_0x3f4aa8),_0x44fe4c['on']('escape',()=>{_0x564a05['fire']('escape');}),this['_annotationViews']['set'](_0x4c8a1f['id'],_0x3ff7d3));const _0x3ccf6e=_0x33b42c['createCommentThreadController'](_0x4c8a1f['commentThread'],_0x44fe4c),_0x7b1d10=new pe(_0x55fe92,_0x4c8a1f,_0x44fe4c,_0x3ccf6e),_0x38f6c4=_0x4c8a1f['getAllAdjacentSuggestions']()['filter'](_0x5dca32=>_0x5dca32['isInContent']);_0x44fe4c['descriptionParts']=_0x55fe92['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x38f6c4),this['_suggestionToController']['set'](_0x4c8a1f,_0x7b1d10),this['_viewToController']['set'](_0x44fe4c,_0x7b1d10),_0x564a05=_0x295eb9['createAnnotation']({'view':_0x3ff7d3,'target':()=>{const _0x490f02=[],_0x4af9c5=_0x4c8a1f['getAllAdjacentSuggestions']()['filter'](_0x1824b4=>_0x1824b4['isInContent']);for(const _0x5196d3 of _0x4af9c5)_0x490f02['push'](..._0x5196d3['getMarkers']());return _0x3b738f(_0x55fe92['editing'],_0x490f02);},'type':()=>'suggestion-'+_0x7b1d10['view']['type']}),_0x33b42c['_bindAnnotationToEditors'](_0x44fe4c,_0x564a05),_0x295eb9['add'](_0x564a05),_0xc0215e['registerAnnotation'](_0x564a05);}['_destroyController'](_0x3873a3){const _0x5064bc=this['editor']['plugins']['get']('CommentsRepository'),_0x1771e7=this['editor']['plugins']['get']('Annotations'),_0x223d97=this['_suggestionToController']['get'](_0x3873a3),_0x493419=_0x223d97['view'],_0x296db5=_0x1771e7['getByInnerView'](_0x493419);_0x5064bc['_unbindEditors'](_0x493419),_0x296db5&&_0x1771e7['remove'](_0x296db5),this['_suggestionToController']['delete'](_0x3873a3),this['_viewToController']['delete'](_0x493419),_0x223d97['destroy']();}['_updateController'](_0x4dfa93){if(!_0x4dfa93['isInContent']||!this['_suggestionToController']['has'](_0x4dfa93))return;const _0x106949=this['editor']['plugins']['get']('TrackChangesEditing'),_0x46099c=this['_suggestionToController']['get'](_0x4dfa93),_0x3ea556=_0x4dfa93['getAllAdjacentSuggestions']();_0x46099c['view']['descriptionParts']=_0x106949['descriptionFactory']['getDescriptions'](_0x3ea556);}['destroy'](){for(const _0x5f1a8d of this['_suggestionToController']['keys']())this['_destroyController'](_0x5f1a8d);for(const _0xe46840 of this['_annotationViews']['values']())_0xe46840['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x426073){return'model'in _0x426073;}class k extends _0x525fe{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x3bd62e){this['editor']['plugins']['get'](p)['adapter']=_0x3bd62e;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x2dce3f){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x2dce3f);}['getSuggestions']({skipNotAttached:_0x3a17f9=!0x1,toJSON:_0x4a21df=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x3a17f9,'toJSON':_0x4a21df});}['getSuggestion'](_0x5469a7){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x5469a7);}}const w=['Pagination'];class T extends _0x525fe{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x5195e0=this['editor'];if(_0x5195e0['config']['define']('trackChangesData.editorCreator',_0x169140=>{const _0x53ff22=_0x5195e0['model']['document']['getRootNames']()['reduce']((_0x29c5bf,_0x1881e9)=>(_0x29c5bf[_0x1881e9]='',_0x29c5bf),{});return _0x5195e0['constructor']['create'](_0x53ff22,_0x169140);}),'function'!=typeof _0x5195e0['config']['get']('trackChangesData')['editorCreator'])throw new _0x5c9fc8('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x215933){return N(this['editor'],!0x0,_0x215933);}['getDataWithDiscardedSuggestions'](_0x37af06){return N(this['editor'],!0x1,_0x37af06);}}class D extends _0x525fe{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4e1531){function _0x142555(_0x43f3e7){return _0x43f3e7['map'](_0x36b167=>String['fromCharCode'](_0x36b167))['join']('');}super(_0x4e1531),this['result']='end',_0x4e1531[_0x142555([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x142555([0x76,0x69,0x65,0x77])][_0x142555([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x142555([0x61,0x75,0x74,0x6f]),_0x4e1531[_0x142555([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x142555([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x142555([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x142555([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x142555([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(_0x3b05bf){return void 0x0!==_0x3b05bf['getRootsAttributes'];}async function N(_0xbb7a7b,_0x1a85e1,_0x1a0c63){const _0x53e4bb=_0x5cc7ef(_0xbb7a7b,w);_0x53e4bb['plugins']['push'](p,D),_0x53e4bb['rootsAttributes']=Ge(_0xbb7a7b)?_0xbb7a7b['getRootsAttributes']():void 0x0;const _0x28209d=document['createDocumentFragment'](),_0x24f16a=_0xbb7a7b['config']['get']('trackChangesData')['editorCreator'],_0xd5ecc=await _0x24f16a(_0x53e4bb,()=>function(_0x2b08d6){const _0x535b6f=document['createElement']('div');return _0x2b08d6['appendChild'](_0x535b6f),_0x535b6f;}(_0x28209d));!function(_0x4e417e,_0x295721){const _0x56f8b=_0x4e417e['model']['document']['getRootNames']()['reduce']((_0x4d6110,_0x1754fb)=>(_0x4d6110[_0x1754fb]=_0x4e417e['data']['get']({'rootName':_0x1754fb}),_0x4d6110),{}),_0x1ca7fb=_0x4e417e['plugins']['get']('Users')['users']['map'](_0x4b7a9a=>({'id':_0x4b7a9a['id'],'name':_0x4b7a9a['name']})),_0x27e11a=_0x4e417e['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x50c7ad=_0x4e417e['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4267d0=_0x295721['plugins']['get']('Users'),_0x4619ac=_0x295721['plugins']['get']('TrackChangesEditing'),_0x52f6c8=_0x295721['plugins']['get']('CommentsRepository');for(const _0x49c8bf of _0x52f6c8['getCommentThreads']())_0x49c8bf['remove']();for(const _0x141bdf of _0x1ca7fb)_0x4267d0['getUser'](_0x141bdf['id'])||_0x4267d0['addUser'](_0x141bdf);_0x4267d0['me']||_0x4267d0['useAnonymousUser']();for(const _0x33e1c3 of _0x50c7ad)_0x52f6c8['addCommentThread'](_0x33e1c3);for(const _0x57e7a7 of _0x27e11a)_0x4619ac['addSuggestionData'](_0x57e7a7);_0x295721['data']['set'](_0x56f8b);}(_0xbb7a7b,_0xd5ecc),_0xd5ecc['execute'](_0x1a85e1?'acceptAllSuggestions':'discardAllSuggestions');const _0x5a5e75=Ge(_0xd5ecc)?_0xd5ecc['getFullData'](_0x1a0c63):_0xd5ecc['data']['get'](_0x1a0c63);return await _0xd5ecc['destroy'](),_0x5a5e75;}class Me extends _0x3d79ae{['options'];constructor(_0x240e89,_0xc38dd5){super(_0x240e89),this['options']=_0xc38dd5,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'](_0x86c33d,_0x45e765){if(!this['element'])return;const _0x4699b1=[];for(const [_0x25cc48,_0x59771b]of _0x86c33d){const _0x6ec98f=document['createElement']('div');_0x6ec98f['setAttribute']('data-ck-root-name',_0x25cc48),_0x6ec98f['className']=_0x59771b['classes']+'\x20ck-track-changes-preview__root-container',_0x6ec98f['innerHTML']=_0x59771b['content'],_0x4699b1['push'](_0x6ec98f);}_0x45e765(this['element'],_0x4699b1),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x4a4577{constructor(_0x3ea407){super(_0x3ea407),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x459f58=this['editor'],_0x4a682b=_0x459f58['locale'],_0x2241c2=_0x459f58['plugins']['get']('Dialog');let _0x7d58f0;const _0x1d26d6=function(_0x54dce5){const _0x2bf657={};if('editables'in _0x54dce5['ui']['view']){for(const [_0x23e530,_0x4e5417]of Object['entries'](_0x54dce5['ui']['view']['editables']))_0x2bf657[_0x23e530]=_0x4e5417['element'];}else _0x2bf657[_0x54dce5['model']['document']['getRootNames']()[0x0]]=_0x54dce5['ui']['view']['editable']['element'];return _0x2bf657;}(_0x459f58),_0x2aad46=function(_0x25f65d){let _0x136860=0x0;for(const _0x32d46a of Object['values'](_0x25f65d))_0x136860=Math['max'](_0x136860,_0x32d46a['getBoundingClientRect']()['width']);let _0x2849e7=0x0;for(const _0x3d9336 of Object['values'](_0x25f65d))_0x2849e7+=_0x3d9336['getBoundingClientRect']()['height'];const _0x4495e1=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x11fb06=Math['min'](_0x2849e7,_0x4495e1);return{'width':_0x136860,'height':_0x11fb06};}(_0x1d26d6);_0x2241c2['show']({'id':'finalContentPreview','title':c(_0x4a682b,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x4a682b,{'dialogRects':_0x2aad46}),'onHide':()=>{_0x7d58f0['detachFromDom']();},'onShow':()=>{_0x459f58['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x41f5a7=>{const _0x68dd5c=this['_standarizeRootsData'](_0x41f5a7,_0x459f58,_0x1d26d6);_0x2241c2['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x68dd5c,_0x459f58['config']['get']('trackChanges.preview.renderFunction'));}),_0x7d58f0=new _0x102aa3(_0x4a682b,[_0x2241c2['view']]),_0x7d58f0['attachToDom'](),_0x7d58f0['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x459f58['once']('destroy',()=>{_0x7d58f0['detachFromDom']();});const _0x44a343=_0x2241c2['view']['headerView']['class'];_0x2241c2['view']['headerView']['class']=_0x44a343?_0x44a343+'\x20ck-reset_all':'ck-reset_all',_0x2241c2['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x2241c2['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x3fab7d=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x1bb505=_0x3fab7d['previewMode'],_0xc6bf60={};if('$labels'===_0x1bb505){for(const _0x4b3b31 of _0x3fab7d['getMergeFieldsIds']())_0xc6bf60[_0x4b3b31]=_0x3fab7d['getLabel'](_0x4b3b31)||_0x4b3b31;}else{const _0x1e4211='$defaultValues'===_0x1bb505?_0x3fab7d['getDefaultValues']():_0x3fab7d['getDataSetValues'](_0x1bb505,!0x0);for(const _0x3bab2d of Object['entries'](_0x1e4211)){const [_0x3cb627,_0x2099b0]=_0x3bab2d;_0xc6bf60[_0x3cb627]=null!==_0x2099b0?_0x2099b0:_0x3fab7d['getLabel'](_0x3cb627)||_0x3cb627;}}return{'mergeFieldsData':_0xc6bf60};}['_standarizeRootsData'](_0x541245,_0x1bb9cf,_0x530a4b){let _0xd176fb;if('string'==typeof _0x541245){const _0x4e2f93=_0x1bb9cf['model']['document']['getRootNames']()[0x0];_0xd176fb={[_0x4e2f93]:_0x541245};}else _0xd176fb=_0x541245;const _0x137384=this['_fixMediaEmbeds'](_0xd176fb,_0x1bb9cf),_0x50022f=function(_0x51c902,_0x1def7c){for(const [_0x1e6175,_0x22f7df]of _0x51c902)_0x22f7df['classes']=_0x1def7c[_0x1e6175]['classList']['value']['replace']('ck-focused','');return _0x51c902;}(this['_sortRoots'](_0x1bb9cf)['reduce']((_0x514efe,_0x53ae8a)=>(_0x514efe['push']([_0x53ae8a,{'content':_0x137384[_0x53ae8a],'classes':''}]),_0x514efe),[]),_0x530a4b);return _0x50022f;}['_fixMediaEmbeds'](_0x4e2bf8,_0x235a34){if(!_0x235a34['plugins']['has']('MediaEmbedEditing'))return _0x4e2bf8;const _0x17095b=_0x235a34['plugins']['get']('MediaEmbedEditing');for(const [_0x2c277a,_0x1eb826]of Object['entries'](_0x4e2bf8)){const _0xbae07c=document['createElement']('div');_0xbae07c['innerHTML']=_0x1eb826,(_0xbae07c['querySelectorAll']('figure.media')['forEach'](_0x411b3b=>{const _0xcc01a=_0x411b3b['querySelector']('oembed');if(_0xcc01a){const _0x12e12f=_0xcc01a['getAttribute']('url');if(_0x12e12f){const _0x184fb3=_0x17095b['registry']['getMediaViewElement'](new _0x3ea3e1(_0x235a34['editing']['view']['document']),_0x12e12f,{'elementName':'','renderForEditingView':!0x0}),_0x6a6a11=document['createElement']('div');_0x6a6a11['classList']['add']('ck-media__wrapper'),_0x184fb3['render'](_0x6a6a11,_0x235a34['editing']['view']['domConverter']),_0xcc01a['replaceWith'](_0x6a6a11);}}}),_0x4e2bf8[_0x2c277a]=_0xbae07c['innerHTML']);}return _0x4e2bf8;}['_sortRoots'](_0x1c6a85){if(!function(_0x4f7e6f){return void 0x0!==_0x4f7e6f['getRootsAttributes'];}(_0x1c6a85))return _0x1c6a85['model']['document']['getRootNames']();const _0x3740d5=[],_0x5d1f25=new Map();for(const _0x46918d of _0x1c6a85['model']['document']['getRootNames']()){const _0xf66885=_0x1c6a85['editing']['view']['getDomRoot'](_0x46918d)['getClientRects']()['item'](0x0);_0x3740d5['push'](_0x46918d),_0x5d1f25['set'](_0x46918d,_0xf66885);}return _0x3740d5['sort']((_0x23ef18,_0x4863c9)=>{const _0x5cb283=_0x5d1f25['get'](_0x23ef18),_0x242f71=_0x5d1f25['get'](_0x4863c9);return _0x5cb283['y']-_0x242f71['y']||_0x5cb283['x']-_0x242f71['x'];}),_0x3740d5;}}class te extends _0x525fe{static get['requires'](){return[T,_0x4be001];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x11f1a6){super(_0x11f1a6),_0x11f1a6['commands']['add']('previewFinalContent',new re(this['editor'])),_0x11f1a6['config']['define']('trackChanges.preview.renderFunction',(_0x8d2d1f,_0x497aad)=>{for(const _0x4610e1 of _0x497aad)_0x8d2d1f['appendChild'](_0x4610e1);});}}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};
|