@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250607.0 → 0.0.0-nightly-20250609.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +27 -27
- package/src/trackchangesediting.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
24
|
-
_0x375848(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x3ec9a1,_0x59c136){super(),this['id']=_0x59c136['id'],this['type']=_0x59c136['type'],this['subType']=_0x59c136['subType']||null,this['author']=_0x59c136['author'],this['creator']=_0x59c136['creator']||_0x59c136['author'],this['isExternal']=Boolean(_0x59c136['attributes']&&_0x59c136['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x59c136['originalSuggestionId']||null,this['_model']=_0x3ec9a1,this['_onAccept']=_0x59c136['onAccept'],this['_onDiscard']=_0x59c136['onDiscard'],this['_onAttributesChange']=_0x59c136['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x59c136['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 _0x342ff6=this;for(;_0x342ff6['previous'];)_0x342ff6=_0x342ff6['previous'];return _0x342ff6;}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'](_0x426ed8){this['_markerNames']['add'](_0x426ed8);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x1a4b5e=>this['_model']['markers']['get'](_0x1a4b5e))['filter'](_0x42026e=>_0x42026e);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1b2558=>{for(const _0x1ca658 of this['getMarkers']())_0x1b2558['removeMarker'](_0x1ca658);}),this['_markerNames']['clear']();}['removeMarker'](_0x2a77f5){this['_model']['change'](_0x23845e=>{_0x23845e['removeMarker'](_0x2a77f5);}),this['_markerNames']['delete'](_0x2a77f5);}['addRange'](_0x5e0d94){const _0x38694a='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+x['getMultiRangeId']();this['addMarkerName'](_0x38694a),this['_model']['change'](_0x5b3241=>{_0x5b3241['addMarker'](_0x38694a,{'range':_0x5e0d94,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x19f481){for(const _0x446609 of this['getRanges']())if(_0x446609['isIntersecting'](_0x19f481))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0xbaeb24=>_0xbaeb24['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3667db,_0x1176d0)=>[..._0x3667db,..._0x1176d0['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x5aae9b=this['getRanges']();if(0x1!=_0x5aae9b['length'])return null;const _0x33fa77=_0x5aae9b[0x0],_0x58e12c=_0x33fa77['start']['nodeAfter'],_0x31eaaf=_0x33fa77['end']['nodeBefore'];return _0x58e12c instanceof _0x1b0343?_0x58e12c!=_0x31eaaf?null:_0x58e12c: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 _0x680b28=[];let _0x4f4170=this['head'];for(;_0x4f4170;)_0x680b28['push'](_0x4f4170),_0x4f4170=_0x4f4170['next'];return _0x680b28;}['setAttribute'](_0x49143a,_0x484351){const _0x5568cf=_0x4f943a(this['attributes']);_0x55a538(_0x5568cf,_0x49143a,_0x484351),_0xa047bc(_0x5568cf,this['attributes'])||(this['attributes']=_0x5568cf,this['_onAttributesChange'](_0x5568cf));}['removeAttribute'](_0x405359){const _0x5c7d13=_0x4f943a(this['attributes']);_0x3e53f1(_0x5c7d13,_0x405359),_0xa047bc(_0x5c7d13,this['attributes'])||(this['attributes']=_0x5c7d13,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 _0x4fc05b()['substr'](0x1,0x5);}}function o(_0x316fe4,_0x175b4c,_0x35c1a1){const _0x4bdb18=_0x316fe4['t'],t=_0x316fe4['t'];switch(_0x175b4c){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',_0x35c1a1);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x35c1a1);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x35c1a1);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x35c1a1);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x35c1a1);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',_0x35c1a1);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x35c1a1);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',_0x35c1a1);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x35c1a1);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x35c1a1);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x35c1a1);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x35c1a1);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x35c1a1);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x35c1a1);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x35c1a1);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x35c1a1);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x35c1a1);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x35c1a1);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x35c1a1);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x35c1a1);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x35c1a1);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x35c1a1);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x35c1a1);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x35c1a1);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x35c1a1);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'},_0x35c1a1);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x35c1a1);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x35c1a1);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x35c1a1);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x35c1a1);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x35c1a1);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x35c1a1);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x35c1a1);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'},_0x35c1a1);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x35c1a1);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x35c1a1);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x35c1a1);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x35c1a1);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'},_0x35c1a1);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x35c1a1);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'},_0x35c1a1);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'},_0x35c1a1);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x35c1a1);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'},_0x35c1a1);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x35c1a1);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'},_0x35c1a1);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x35c1a1);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x35c1a1);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'},_0x35c1a1);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x35c1a1);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 _0x4bdb18({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x35c1a1);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x4bdb18({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x35c1a1);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x35c1a1);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'},_0x35c1a1);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'},_0x35c1a1);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'},_0x35c1a1);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x175b4c;}}class O{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x55c537,_0x517490){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x55c537,this['_locale']=_0x517490;}['getDescriptions'](_0x56a51e){const _0x2cd5ff=[],_0x378714=new Set(),_0x4bb994=new Set();for(let _0x4d14e9=0x0;_0x4d14e9<_0x56a51e['length'];_0x4d14e9++){const _0x6c5469=_0x56a51e[_0x4d14e9];if(!_0x6c5469['isInContent'])continue;const _0x3351e6=this['_handleCustomCallbackDescription'](_0x6c5469);if(_0x3351e6){if(null!=_0x6c5469['subType']){if(_0x378714['has'](_0x6c5469['subType']))continue;_0x378714['add'](_0x6c5469['subType']);}_0x2cd5ff['push'](_0x3351e6);}else{if('attribute'!=_0x6c5469['type'])'insertion'!=_0x6c5469['type']&&'deletion'!=_0x6c5469['type']||this['_handleInsertRemoveSuggestionDescription'](_0x2cd5ff,_0x6c5469,_0x56a51e[_0x4d14e9+0x1]);else{const _0x48a4a=_0x6c5469['data']['key'];if(_0x4bb994['has'](_0x48a4a))continue;_0x4bb994['add'](_0x6c5469['data']['key']),_0x48a4a==m?this['_handleRenameSuggestionDescription'](_0x2cd5ff,_0x6c5469):this['_handleAttributeSuggestionDescription'](_0x2cd5ff,_0x6c5469);}}}return this['_resolveDescriptionItems'](_0x2cd5ff);}['registerDescriptionCallback'](_0x39e138){this['_customCallbacks']['push'](_0x39e138);}['registerElementLabel'](_0x353127,_0x28e54b,_0x59db74=_0x3f1657['normal']){'function'==typeof _0x353127?_0x43f283(this['_itemLabelsCallbacks'],{'matchingCallback':_0x353127,'label':_0x28e54b,'priority':_0x59db74}):this['_itemLabels']['set'](_0x353127,_0x28e54b);}['registerAttributeLabel'](_0x32804a,_0xc379be){this['_attributeLabels']['set'](_0x32804a,_0xc379be);}['getItemLabel'](_0x3cf02b,_0x1ef871=0x1){let _0x45715f;for(const _0x32aa50 of this['_itemLabelsCallbacks'])if(_0x32aa50['matchingCallback'](_0x3cf02b)){_0x45715f=_0x32aa50['label'];break;}return _0x45715f||(_0x45715f=this['_itemLabels']['get'](_0x3cf02b['name'])),_0x45715f?_0x45715f(_0x1ef871):0x1!==_0x1ef871?_0x1ef871+'\x20'+_0x3cf02b['name']+'s':''+_0x3cf02b['name'];}['_addDescriptionItems'](_0x411f4f,_0x49fbfc){const _0x356a66=_0x49fbfc['getFirstRange']()['getWalker'](),_0x386f19='insertion'==_0x49fbfc['type']?'add':'remove';for(const _0xde4eb of _0x356a66){const _0x36bd92=_0xde4eb['item'],_0x3f7705=_0x411f4f[_0x411f4f['length']-0x1];if(_0x36bd92['is']('$textProxy'))_0x3f7705&&_0x3f7705['type']['indexOf']('Container')>-0x1&&_0x411f4f['pop'](),_0x3f7705&&'text'==_0x3f7705['type']?_0x3f7705[_0x386f19]+=_0x36bd92['data']:_0x411f4f['push']({'type':'text','add':'add'==_0x386f19?_0x36bd92['data']:'','remove':'remove'==_0x386f19?_0x36bd92['data']:''});else{if(this['_schema']['isObject'](_0x36bd92)){const _0x48735c=_0x36bd92;if(_0x3f7705&&_0x3f7705['type']['indexOf']('Container')>-0x1&&_0x411f4f['pop'](),'elementEnd'==_0xde4eb['type'])continue;_0x3f7705&&_0x3f7705['type']==_0x386f19+'Object'&&_0x3f7705['element']['name']==_0x48735c['name']?_0x3f7705['quantity']++:_0x411f4f['push']({'type':_0x386f19+'Object','element':_0x48735c,'quantity':0x1}),_0x356a66['skip'](_0x4d0ce4=>!('elementEnd'==_0x4d0ce4['type']&&_0x4d0ce4['item']==_0x36bd92));}else{if(this['_schema']['checkChild'](_0x36bd92,'$text')||_0x36bd92['is']('element','softBreak')){const _0x10f57e=_0x36bd92;if('add'==_0x386f19&&'elementStart'==_0xde4eb['type']||'remove'==_0x386f19&&'elementEnd'==_0xde4eb['type'])continue;if(_0x3f7705&&-0x1==_0x3f7705['type']['indexOf']('Container')){'text'==_0x3f7705['type']&&(_0x3f7705[_0x386f19]+='\x0a');continue;}let _0x1f8654;if(_0x1f8654='add'==_0x386f19?_0x10f57e['nextSibling']&&!this['_schema']['isObject'](_0x10f57e['nextSibling'])?_0x10f57e['nextSibling']:null:_0x10f57e['previousSibling']&&!this['_schema']['isObject'](_0x10f57e['previousSibling'])?_0x10f57e['previousSibling']:null,_0x10f57e['isEmpty']||_0x1f8654&&_0x1f8654['isEmpty']){const _0x233c45=_0x1f8654&&_0x1f8654['isEmpty']?_0x1f8654:_0x10f57e;_0x3f7705&&_0x3f7705['type']==_0x386f19+'EmptyContainer'&&_0x3f7705['element']['name']==_0x233c45['name']?_0x3f7705['quantity']++:_0x411f4f['push']({'type':_0x386f19+'EmptyContainer','element':_0x233c45,'quantity':0x1});}else _0x411f4f['push']({'type':_0x386f19+'Container','element':_0x10f57e});}}}}}['_resolveDescriptionItems'](_0x1d9dbd){const _0x5485e3=this['_locale'],_0x2b2761=[],_0x178784=[],_0x406d08=[];for(const _0x275d09 of _0x1d9dbd)switch(_0x275d09['type']){case'text':if(_0x275d09['add']=_0x275d09['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x275d09['remove']=_0x275d09['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x275d09['add']&&''!=_0x275d09['remove']){_0x2b2761['push']({'type':'replace','content':o(_0x5485e3,'REPLACE_TEXT',['\x22'+_0x275d09['remove']+'\x22','\x22'+_0x275d09['add']+'\x22'])});continue;}if(null!=_0x275d09['add']['match'](/^ +$/)){_0x2b2761['push']({'type':'insertion','content':o(_0x5485e3,'*Insert:*\x20%0',o(_0x5485e3,'ELEMENT_SPACE',_0x275d09['add']['length']))});continue;}if(null!=_0x275d09['remove']['match'](/^ +$/)){_0x2b2761['push']({'type':'deletion','content':o(_0x5485e3,'*Remove:*\x20%0',o(_0x5485e3,'ELEMENT_SPACE',_0x275d09['remove']['length']))});continue;}if(''!=_0x275d09['add']){_0x2b2761['push']({'type':'insertion','content':o(_0x5485e3,'*Insert:*\x20%0','\x22'+_0x275d09['add']+'\x22')});continue;}_0x2b2761['push']({'type':'deletion','content':o(_0x5485e3,'*Remove:*\x20%0','\x22'+_0x275d09['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2b2761['push']({'type':'insertion','content':o(_0x5485e3,'*Insert:*\x20%0',this['getItemLabel'](_0x275d09['element'],_0x275d09['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2b2761['push']({'type':'deletion','content':o(_0x5485e3,'*Remove:*\x20%0',this['getItemLabel'](_0x275d09['element'],_0x275d09['quantity']))});continue;case'addContainer':_0x2b2761['push']({'type':'insertion','content':o(_0x5485e3,'*Split:*\x20%0',this['getItemLabel'](_0x275d09['element'],_0x275d09['quantity']))});continue;case'removeContainer':_0x2b2761['push']({'type':'deletion','content':o(_0x5485e3,'*Merge:*\x20%0',this['getItemLabel'](_0x275d09['element'],_0x275d09['quantity']))});continue;case'addFormat':_0x178784['push'](_0x275d09['key']);continue;case'removeFormat':_0x406d08['push'](_0x275d09['key']);continue;default:_0x2b2761['push'](_0x275d09);}if(_0x178784['length']){const _0x2348ba=_0x178784['map'](_0x363a67=>this['_attributeLabels']['has'](_0x363a67)?this['_attributeLabels']['get'](_0x363a67):_0x363a67)['join'](',\x20');_0x2b2761['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x2348ba)});}if(_0x406d08['length']){const _0x1ba8c8=_0x406d08['map'](_0x5cce6f=>this['_attributeLabels']['has'](_0x5cce6f)?this['_attributeLabels']['get'](_0x5cce6f):_0x5cce6f)['join'](',\x20');_0x2b2761['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x1ba8c8)});}return _0x2b2761;}['_handleCustomCallbackDescription'](_0x1cfff8){for(const _0x30d0f1 of this['_customCallbacks']){const _0x43d852=_0x30d0f1(_0x1cfff8);if(_0x43d852&&'type'in _0x43d852)return _0x43d852;}}['_handleAttributeSuggestionDescription'](_0x2138ce,_0x4b2aea){const _0x3c30e0=_0x4b2aea['data'],_0xd0cbee=void 0x0===_0x3c30e0['newValue']?'removeFormat':'addFormat';_0x2138ce['push']({'type':_0xd0cbee,'key':_0x3c30e0['key']});}['_handleRenameSuggestionDescription'](_0x234ae2,_0x465dd6){_0x234ae2['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x465dd6['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3e3148,_0x51048f,_0x3a0f09){if(this['_addDescriptionItems'](_0x3e3148,_0x51048f),_0x3a0f09&&_0x3a0f09['getFirstRange']()&&!_0x51048f['getFirstRange']()['end']['isEqual'](_0x3a0f09['getFirstRange']()['start'])){const _0x3c31fe=_0x3e3148[_0x3e3148['length']-0x1],_0x38fcad='insertion'==_0x51048f['type']?'add':'remove';_0x3c31fe&&'text'==_0x3c31fe['type']&&(_0x3c31fe[_0x38fcad]+='\x0a');}}}class R extends _0x5d906a{['afterInit'](){const _0x3f70e2=this['editor'],_0x12aad8=_0x3f70e2['plugins']['get']('TrackChangesEditing');_0x3f70e2['commands']['get']('showAIAssistant')&&_0x12aad8['enableCommand']('showAIAssistant');}}class E extends _0x5d906a{['afterInit'](){const _0x4051c4=this['editor'],_0x1d56ac=_0x4051c4['locale'];if(!_0x4051c4['plugins']['has']('AlignmentEditing'))return;const _0x283001=_0x4051c4['plugins']['get']('TrackChangesEditing');_0x283001['enableDefaultAttributesIntegration']('alignment'),_0x283001['registerBlockAttribute']('alignment'),_0x283001['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x1d56ac,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x576bbd=this['editor'],_0x2e1465=_0x576bbd['locale'];_0x576bbd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x376807=>{if('formatBlock'!=_0x376807['type'])return;const {data:_0x120e7d}=_0x376807;if(_0x120e7d&&'alignment'==_0x120e7d['commandName']){const _0x10e10a=_0x120e7d['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x2e1465,'*Format:*\x20%0',function(_0x481022){switch(_0x481022){case'left':return o(_0x2e1465,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x2e1465,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x2e1465,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x2e1465,'FORMAT_JUSTIFY_TEXT');}}(_0x10e10a))};}});}}const Xt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x5d906a{['afterInit'](){const _0x238fb5=this['editor'],_0x17a195=_0x238fb5['plugins']['get']('TrackChangesEditing'),_0xb8e449=_0x238fb5['locale'];for(const _0x43d5a6 of Xt){if(!_0x238fb5['plugins']['has'](_0x43d5a6))continue;const _0x3c827e=_0x43d5a6['slice'](0x0,-0x7)['toLowerCase'](),_0x266372='FORMAT_'+_0x3c827e['toUpperCase']();_0x17a195['enableDefaultAttributesIntegration'](_0x3c827e),_0x17a195['registerInlineAttribute'](_0x3c827e),_0x17a195['descriptionFactory']['registerAttributeLabel'](_0x3c827e,o(_0xb8e449,_0x266372));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x516a29=this['editor'],_0x20e317=_0x516a29['locale'],_0x292b66=_0x516a29['plugins']['get']('TrackChangesEditing');function _0x3cc076(_0x49c1dd,_0x470701){_0x292b66['descriptionFactory']['registerDescriptionCallback'](_0x1d28a0=>{if('formatInline'!=_0x1d28a0['type'])return;const {data:_0x23cb13}=_0x1d28a0;return _0x23cb13&&_0x23cb13['commandName']===_0x49c1dd?_0x23cb13['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x20e317,'*Format:*\x20%0',_0x470701)}:{'type':'format','content':o(_0x20e317,'*Remove\x20format:*\x20%0',_0x470701)}:void 0x0;});}_0x3cc076('bold',o(_0x20e317,'FORMAT_BOLD')),_0x3cc076('italic',o(_0x20e317,'FORMAT_ITALIC')),_0x3cc076('underline',o(_0x20e317,'FORMAT_UNDERLINE')),_0x3cc076('code',o(_0x20e317,'FORMAT_CODE')),_0x3cc076('strikethrough',o(_0x20e317,'FORMAT_STRIKETHROUGH')),_0x3cc076('subscript',o(_0x20e317,'FORMAT_SUBSCRIPT')),_0x3cc076('superscript',o(_0x20e317,'FORMAT_SUPERSCRIPT'));}}class V extends _0x5d906a{['afterInit'](){const _0x16ea8e=this['editor'],_0x321cc4=_0x16ea8e['locale'];if(!_0x16ea8e['plugins']['has']('BlockQuoteEditing'))return;const _0x471805=_0x16ea8e['plugins']['get']('TrackChangesEditing'),_0x2243b4=this['editor']['commands']['get']('blockQuote');_0x471805['enableCommand']('blockQuote',(_0x25c485,_0x5ee4d3={})=>{const _0x389c5a=this['editor']['model']['document']['selection'],_0x1f886c=_0x5ee4d3&&void 0x0!==_0x5ee4d3['forceValue']?_0x5ee4d3['forceValue']:!_0x2243b4['value'];let _0x16c873=[];if(_0x1f886c){const _0x4b2f2d=Array['from'](_0x389c5a['getSelectedBlocks']())['filter'](_0x520619=>Zt(_0x520619)||function(_0x1f6476,_0x488d2f){const _0x3af935=_0x488d2f['checkChild'](_0x1f6476['parent'],'blockQuote'),_0x498b29=_0x488d2f['checkChild'](['$root','blockQuote'],_0x1f6476);return _0x3af935&&_0x498b29;}(_0x520619,this['editor']['model']['schema']));_0x16c873=Yt(_0x4b2f2d,_0x16ea8e['model']);}else{const _0x1208c5=Array['from'](_0x389c5a['getSelectedBlocks']())['filter'](_0x19b49a=>Zt(_0x19b49a));_0x16c873=Yt(_0x1208c5,_0x16ea8e['model']);}_0x16ea8e['model']['change'](()=>{for(const _0x385ad8 of _0x16c873)_0x471805['markBlockFormat'](_0x385ad8,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x1f886c}]});});}),_0x471805['descriptionFactory']['registerDescriptionCallback'](_0x341cd9=>{const {data:_0x3bf285}=_0x341cd9;if(_0x3bf285&&'blockQuote'==_0x3bf285['commandName']){const _0xa8155f=o(_0x321cc4,'ELEMENT_BLOCK_QUOTE');return _0x3bf285['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x321cc4,'*Set\x20format:*\x20%0',_0xa8155f)}:{'type':'format','content':o(_0x321cc4,'*Remove\x20format:*\x20%0',_0xa8155f)};}});}}function Zt(_0x3d89f9){return'blockQuote'==_0x3d89f9['parent']['name'];}class F extends _0x5d906a{['afterInit'](){const _0x5f1d04=this['editor'],_0x494619=_0x5f1d04['locale'],_0x27eb1c=_0x5f1d04['plugins']['get']('TrackChangesEditing');_0x5f1d04['plugins']['has']('BookmarkEditing')&&(_0x27eb1c['enableCommand']('insertBookmark'),_0x27eb1c['enableDefaultAttributesIntegration']('updateBookmark'),_0x27eb1c['registerBlockAttribute']('bookmarkId'),_0x27eb1c['descriptionFactory']['registerDescriptionCallback'](_0xac9b84=>{if('insertion'!=_0xac9b84['type']&&'deletion'!=_0xac9b84['type']&&'attribute'!=_0xac9b84['type'])return;const _0x557a09=_0xac9b84['getContainedElement']();if(null==_0x557a09)return;if(!_0x557a09['is']('element','bookmark'))return;const _0x110fdb=_0x557a09['getAttribute']('bookmarkId');if('insertion'==_0xac9b84['type'])return{'type':'insertion','content':o(_0x494619,'*Insert:*\x20%0','\x22'+_0x110fdb+'\x22\x20'+o(_0x494619,'ELEMENT_BOOKMARK'))};if('deletion'==_0xac9b84['type'])return{'type':'deletion','content':o(_0x494619,'*Remove:*\x20%0','\x22'+_0x110fdb+'\x22\x20'+o(_0x494619,'ELEMENT_BOOKMARK'))};const {data:_0x4f3666}=_0xac9b84;if(!_0x4f3666||'bookmarkId'!=_0x4f3666['key'])return;return{'type':'format','content':o(_0x494619,'*Set\x20bookmark:*\x20%0','\x22'+_0x4f3666['newValue']+'\x22')};}));}}class G extends _0x5d906a{['afterInit'](){const _0x28af73=this['editor'];_0x28af73['plugins']['has']('CaseChange')&&(_0x28af73['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x28af73['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x28af73['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class L extends _0x5d906a{['afterInit'](){const _0x3f2f2f=this['editor'];_0x3f2f2f['commands']['get']('ckbox')&&_0x3f2f2f['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x5d906a{['afterInit'](){const _0x146b74=this['editor'];if(!_0x146b74['plugins']['has']('CodeBlock'))return;const _0xa9d820=_0x146b74['plugins']['get']('TrackChangesEditing'),_0x46d850=_0x146b74['locale'],_0x5e7626=_0x146b74['config']['get']('codeBlock')['languages'],_0x3104ad=_0x146b74['commands']['get']('codeBlock');_0xa9d820['enableCommand']('indentCodeBlock'),_0xa9d820['enableCommand']('outdentCodeBlock'),_0xa9d820['enableCommand']('codeBlock',(_0x2c6c92,_0x42f800={})=>{const _0x532589=_0x146b74['model'],_0x328011=_0x146b74['model']['document']['selection'],_0x232bb0=_0x42f800&&void 0x0!==_0x42f800['forceValue']?_0x42f800['forceValue']:!_0x3104ad['value'];let _0x387bf5;_0x42f800['language']||(_0x42f800['language']=_0x5e7626[0x0]['language']),_0x387bf5=_0x232bb0?Array['from'](_0x328011['getSelectedBlocks']())['filter'](_0x193e9c=>oo(_0x193e9c)||function(_0x1d44ae,_0xc8b63e){if(_0x1d44ae['is']('rootElement')||_0xc8b63e['isLimit'](_0x1d44ae))return!0x1;return _0xc8b63e['checkChild'](_0x1d44ae['parent'],'codeBlock');}(_0x193e9c,_0x532589['schema'])):Array['from'](_0x328011['getSelectedBlocks']())['filter'](_0xbe095c=>oo(_0xbe095c));const _0x480a55=Yt(_0x387bf5,_0x532589);_0x532589['change'](()=>{for(const _0x46df3f of _0x480a55)_0xa9d820['markBlockFormat'](_0x46df3f,{'commandName':'codeBlock','commandParams':[{..._0x42f800,'forceValue':_0x232bb0}],'formatGroupId':'blockName'});});}),(_0xa9d820['descriptionFactory']['registerElementLabel']('codeBlock',_0x3d0455=>o(_0x46d850,'ELEMENT_CODE_BLOCK',_0x3d0455)),_0xa9d820['descriptionFactory']['registerDescriptionCallback'](_0x2ca8c3=>{if('formatBlock'!=_0x2ca8c3['type'])return;const _0x2afe66=_0x46d850['t'],{data:_0xa98ca6}=_0x2ca8c3;if(!_0xa98ca6||'codeBlock'!=_0xa98ca6['commandName'])return;const _0x55be1d=_0xa98ca6['commandParams'][0x0]['language'],_0x2a8b66=_0x2afe66(_0x5e7626['find'](_0x2c585d=>_0x2c585d['language']===_0x55be1d)['label'])['toLowerCase']();return _0xa98ca6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x46d850,'*Set\x20format:*\x20%0',o(_0x46d850,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2a8b66+')')}:{'type':'format','content':o(_0x46d850,'*Remove\x20format:*\x20%0',o(_0x46d850,'ELEMENT_CODE_BLOCK',0x1))};}));}}function oo(_0x18b270){return'codeBlock'==_0x18b270['name'];}class K extends _0x5d906a{['afterInit'](){const _0x32ca6e=this['editor'];if(!_0x32ca6e['plugins']['has']('CommentsEditing'))return;_0x32ca6e['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x29169d,_0x460fbf,_0x4ff252){const _0x989049=[];for(const _0x4e5dd4 of _0x460fbf['getItems']())_0x4e5dd4['hasAttribute'](_0x29169d)&&_0x989049['push'](_0x4ff252['createRangeOn'](_0x4e5dd4));return _0x989049;}function Fe(_0x1305a2,_0x5a1e01,{showActiveMarker:_0x422dc4=!0x0}={}){const _0x29d595=_0x1305a2['plugins']['get']('TrackChangesEditing');return(_0x524401,_0x2f7892,_0x10f92c)=>{if(!_0x10f92c['consumable']['test'](_0x2f7892['markerRange'],_0x524401['name']))return;const _0x15c6f3=_0x2f7892['markerRange']['getWalker'](),_0x1c099b=_0x2f7892['markerRange']['start'],_0x3b6b60=_0x1305a2['model']['schema'];let _0x1a6e05=null,_0xfa5a55=null,_0x36803c=!0x1,_0x4fab42=!0x1;for(const _0x86d7bf of _0x15c6f3){const _0x1e319a=_0x86d7bf['item'];_0x36803c=_0x36803c||_0x3b6b60['isContent'](_0x1e319a);const _0x5505da=_0x10f92c['mapper']['toViewElement'](_0x1e319a);if(_0x5505da&&_0x5505da['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x86d7bf['type']&&(_0x3b6b60['isBlock'](_0x1e319a)&&!_0x3b6b60['isLimit'](_0x1e319a)&&(_0x1e319a['nextSibling']||_0x1c099b['isAtEnd']?_0x1a6e05&&_0x1a6e05['parent']==_0x1e319a||(_0x1a6e05=_0x1e319a,_0xd9636e(_0x86d7bf['previousPosition']),_0x4fab42=!0x0):_0xfa5a55=_0xfa5a55||_0x86d7bf['previousPosition']));}function _0xd9636e(_0x20ef08){const {id:_0x253e26,authorId:_0xf5cd29}=_0x29d595['_splitMarkerName'](_0x2f7892['markerName']),_0x4c462b=_0x10f92c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5a1e01,'data-suggestion':_0x253e26,'data-author-id':_0xf5cd29}),_0x1812af=_0x10f92c['mapper']['toViewPosition'](_0x20ef08);_0x422dc4&&_0x29d595['activeMarkers']['includes'](_0x2f7892['markerName'])&&_0x10f92c['writer']['addClass']('ck-suggestion-marker--active',_0x4c462b),_0x10f92c['writer']['insert'](_0x1812af,_0x4c462b),_0x10f92c['mapper']['bindElementToMarker'](_0x4c462b,_0x2f7892['markerName']);}_0x36803c||_0x4fab42||!_0xfa5a55||_0xd9636e(_0xfa5a55);};}class H extends _0x5d906a{static get['requires'](){return[_0xb4af89];}['init'](){const _0x44eaac=this['editor'],_0x4bc98e=_0x44eaac['plugins']['get']('TrackChangesEditing');_0x4bc98e['enableCommand']('delete');const _0x1743a1=_0x44eaac['commands']['get']('deleteForward');_0x4bc98e['enableCommand']('deleteForward',(_0x233551,_0x2b94de={})=>{const _0x14aa7d=_0x44eaac['model']['createSelection'](_0x44eaac['model']['document']['selection']);_0x14aa7d['isCollapsed']&&_0x44eaac['model']['modifySelection'](_0x14aa7d,{'direction':'forward','unit':_0x2b94de['unit']});const _0x28280d=_0x14aa7d['getFirstRange'](),_0x5be63e=_0x527bd9['fromRange'](_0x28280d);let _0x573d39;_0x233551(_0x2b94de),_0x573d39='$graveyard'==_0x5be63e['root']['rootName']?_0x44eaac['model']['createRange'](_0x28280d['start']):_0x44eaac['model']['createRange'](_0x5be63e['start'],_0x5be63e['end']),_0x5be63e['detach'](),_0x44eaac['model']['enqueueChange'](_0x1743a1['buffer']['batch'],_0xc75023=>{_0x1743a1['buffer']['lock'](),_0xc75023['setSelection'](_0xc75023['createRange'](_0x573d39['end'])),_0x1743a1['buffer']['unlock']();});}),_0x44eaac['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x44eaac,'merge'),{'priority':'high'}),_0x44eaac['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4f6414,_0x289afe,_0x4f63c1)=>{_0x4f63c1['options']['showSuggestionHighlights']&&Fe(_0x44eaac,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x4f6414,_0x289afe,_0x4f63c1);},{'priority':'high'}),_0x44eaac['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x57d889,_0x3fce14,_0xcfd266)=>{const _0x22503b=_0xcfd266['mapper']['markerNameToElements'](_0x3fce14['markerName']);if(_0x22503b){for(const _0x4afb12 of _0x22503b)_0x4afb12['is']('uiElement')&&(_0xcfd266['mapper']['unbindElementFromMarkerName'](_0x4afb12,_0x3fce14['markerName']),_0xcfd266['writer']['remove'](_0x4afb12));}},{'priority':'high'});}}class q extends _0x5d906a{['afterInit'](){const _0x306c8a=this['editor'];if(!_0x306c8a['plugins']['has']('ListEditing'))return;const _0x53b534=_0x306c8a['locale'],_0x25fac9=_0x306c8a['plugins']['get']('TrackChangesEditing'),_0x477186=_0x306c8a['plugins']['has']('TodoListEditing'),_0x283a9f=!!_0x306c8a['config']['get']('list.multiBlock');function _0x5ae83c(_0x136267){return{'type':'format','content':''+o(_0x53b534,'*Set\x20format:*\x20%0',_0x136267)};}function _0x2b8801(_0x51ffe1){return{'type':'format','content':''+o(_0x53b534,'*Remove\x20format:*\x20%0',_0x51ffe1)};}_0x25fac9['enableDefaultAttributesIntegration']('numberedList'),_0x25fac9['enableDefaultAttributesIntegration']('bulletedList'),_0x25fac9['enableDefaultAttributesIntegration']('customNumberedList'),_0x25fac9['enableDefaultAttributesIntegration']('customBulletedList'),_0x25fac9['enableDefaultAttributesIntegration']('indentList'),_0x25fac9['enableDefaultAttributesIntegration']('outdentList'),_0x25fac9['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x25fac9['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x25fac9['registerBlockAttribute']('listItemId'),_0x25fac9['registerBlockAttribute']('listType'),_0x25fac9['registerBlockAttribute']('listIndent'),_0x283a9f&&(_0x25fac9['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x25fac9['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x477186&&(_0x25fac9['enableDefaultAttributesIntegration']('todoList'),_0x25fac9['enableDefaultAttributesIntegration']('checkTodoList'),_0x25fac9['registerBlockAttribute']('todoListChecked'),_0x25fac9['descriptionFactory']['registerDescriptionCallback'](_0x3f472b=>{const {data:_0x15d507}=_0x3f472b;if(_0x15d507&&'todoListChecked'==_0x15d507['key'])return{'type':'format','content':_0x15d507['newValue']?o(_0x53b534,'*Check\x20item*'):o(_0x53b534,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x1ba232=>{if(_0x1ba232['batch']['isUndo'])return!0x1;let _0x18fc9b=!0x1;const _0x17050c=_0x25fac9['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4ab3fe=>'todoListChecked'===_0x25fac9['_getAttributeKey'](_0x4ab3fe));for(const _0x5ae184 of _0x17050c){'todo'!=_0x5ae184['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x25fac9['_findSuggestions'](_0x5ae184['getFirstRange'](),'attribute')['find'](_0x7ce2af=>'listType'===_0x25fac9['_getAttributeKey'](_0x7ce2af['suggestion']))||(_0x1ba232['removeMarker'](_0x5ae184['getFirstMarker']()),_0x18fc9b=!0x0));}return _0x18fc9b;})),_0x25fac9['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x53b534,'FORMAT_INDENT'));const _0xfd3ebf={'type':'format','content':''};_0x25fac9['descriptionFactory']['registerDescriptionCallback'](_0x1670bd=>{const {data:_0x539cba}=_0x1670bd;if(!_0x539cba||'listType'!=_0x539cba['key'])return;let _0x23ee67=_0x1670bd['head'];for(;_0x23ee67;){if(_0x23ee67['data']&&(('listStyle'==_0x23ee67['data']['key']||'listMarkerStyle'==_0x23ee67['data']['key'])&&(_0x23ee67['data']['newValue']&&'default'!=_0x23ee67['data']['newValue']||'default'!=_0x23ee67['data']['oldValue']&&!_0x539cba['newValue'])||!_0x283a9f&&_0x23ee67['data']['key']==m))return _0xfd3ebf;_0x23ee67=_0x23ee67['next'];}if(null==_0x539cba['newValue'])switch(_0x539cba['oldValue']){case'bulleted':return _0x2b8801(o(_0x53b534,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2b8801(o(_0x53b534,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2b8801(o(_0x53b534,'ELEMENT_TODO_LIST'));}switch(_0x539cba['newValue']){case'bulleted':return _0x5ae83c(o(_0x53b534,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5ae83c(o(_0x53b534,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5ae83c(o(_0x53b534,'ELEMENT_TODO_LIST'));}}),_0x25fac9['descriptionFactory']['registerDescriptionCallback'](_0x5a430c=>{const {data:_0x31d7d2}=_0x5a430c;if(_0x31d7d2&&'listIndent'==_0x31d7d2['key'])return null==_0x31d7d2['newValue']||null==_0x31d7d2['oldValue']&&0x0==_0x31d7d2['newValue']?_0xfd3ebf:void 0x0;}),_0x25fac9['descriptionFactory']['registerDescriptionCallback'](_0x54f939=>{if('attribute'!=_0x54f939['type'])return;const {data:_0x2fcd2f}=_0x54f939;if(!_0x2fcd2f||'listItemId'!=_0x2fcd2f['key'])return;const _0x839822=Te(_0x54f939);return'newValue'==_0x839822?{'type':'format','content':o(_0x53b534,'*Merge:*\x20list\x20item')}:'oldValue'==_0x839822?{'type':'format','content':o(_0x53b534,'*Split:*\x20list\x20item')}:_0xfd3ebf;}),_0x306c8a['model']['document']['registerPostFixer'](_0x4a4df0=>this['listItemIdFixer'](_0x4a4df0)),_0x306c8a['model']['document']['registerPostFixer'](_0x13c6db=>this['noTrackChangesFixer'](_0x13c6db)),_0x306c8a['model']['document']['on']('change:data',(_0x22349e,_0x178aab)=>{if(_0x178aab['isUndo']||!_0x178aab['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x1cdbd2){if(_0x1cdbd2['batch']['isUndo']||!_0x1cdbd2['batch']['isLocal'])return!0x1;let _0x286a83=!0x1;const _0x1980e5=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x17b602=>_0x17b602['data']&&'listItemId'==_0x17b602['data']['key'])['filter'](_0x1ed616=>_0x1ed616['data']['newValue']&&_0x1ed616['data']['oldValue']);for(const _0x9ed1c8 of _0x1980e5)Te(_0x9ed1c8)||(_0x1cdbd2['removeMarker'](_0x9ed1c8['getFirstMarker']()),_0x286a83=!0x0);return _0x286a83;}['noTrackChangesFixer'](_0x4d6834){if(_0x4d6834['batch']['isUndo']||!_0x4d6834['batch']['isLocal'])return!0x1;const _0x5b1974=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x5b1974['trackChangesCommand']['value'])return!0x1;let _0x48bc9c=!0x1;const _0x3a4f13=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x41db56=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x5985d4=>'attribute'==_0x5985d4['type'])['filter'](_0x330ef5=>_0x3a4f13['includes'](_0x330ef5['attributeKey']));if(0x0==_0x41db56['length'])return _0x48bc9c;for(const _0x1c84b3 of _0x41db56){const _0x40e1ae=_0x5b1974['_findSuggestions'](_0x1c84b3['range'],'attribute')['filter'](_0xf960bf=>!_0xf960bf['meta']['isNextTo'])['map'](_0x43db4a=>_0x43db4a['suggestion'])['filter'](_0x551297=>{const _0x451279=_0x5b1974['_getAttributeKey'](_0x551297);return _0x3a4f13['includes'](_0x451279);});if(_0x40e1ae['length']){for(const _0x1afc4f of _0x40e1ae)_0x4d6834['removeMarker'](_0x1afc4f['getFirstMarker']());_0x48bc9c=!0x0;}}return _0x48bc9c;}['assureChains'](){const _0x5b6fd0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1b1a96=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x5add28;const _0x696093=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3b7745=>{if(_0x3b7745['data']['oldRange']||!_0x3b7745['data']['newRange'])return null;if(!_0x3b7745['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x27e01a}=_0x5b6fd0['_splitMarkerName'](_0x3b7745['name']);if(!_0x5b6fd0['hasSuggestion'](_0x27e01a))return null;const _0x33ade2=_0x5b6fd0['getSuggestion'](_0x27e01a);return _0x1b1a96['includes'](_0x33ade2['data']['key']);})['map'](_0x52988f=>{const {id:_0xddfaa7}=_0x5b6fd0['_splitMarkerName'](_0x52988f['name']),_0x1d5f14=_0x5b6fd0['getSuggestion'](_0xddfaa7);return _0x5add28=_0x1d5f14['attributes']['groupId'],_0x1d5f14['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x696093['size'])return;const _0x15832a=_0x5b6fd0['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x423a30=>'attribute'==_0x423a30['type']&&_0x423a30['data']&&_0x1b1a96['includes'](_0x423a30['data']['key'])&&_0x423a30['attributes']['groupId']!=_0x5add28)['map'](_0x52be66=>({'listItem':_0x52be66['getFirstRange']()['start']['nodeAfter'],'groupId':_0x52be66['attributes']['groupId']})),_0x515f92=new Set();for(const {groupId:_0x4a89d4,listItem:_0x1a6165}of _0x15832a)_0x696093['has'](_0x1a6165)&&_0x515f92['add'](_0x4a89d4);for(const _0x125b5f of _0x5b6fd0['getSuggestions']())_0x515f92['has'](_0x125b5f['attributes']['groupId'])&&_0x125b5f['setAttribute']('groupId',_0x5add28);}['_supportLegacySuggestions'](){const _0x52a899=this['editor'],_0x2807a7=_0x52a899['locale'],_0xaa3d52=_0x52a899['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0xaa3d52['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x27699e,_0x474cd9){const _0x34df9e=[];for(let _0x351935 of _0x27699e)_0x351935['start']['nodeAfter']===_0x351935['end']['parent']&&(_0x351935=_0x52a899['model']['createRange'](_0x52a899['model']['createPositionAt'](_0x351935['start']['nodeAfter'],0x0))),_0x34df9e['push'](_0x351935);_0x52a899['model']['change'](_0xa3f9af=>{const _0x584ae0=_0x52a899['model']['document']['selection'],_0x14d256=Array['from'](_0x584ae0['getRanges']())['map'](_0x5e05df=>_0x527bd9['fromRange'](_0x5e05df));_0xa3f9af['setSelection'](_0x34df9e),_0x52a899['commands']['get'](_0x474cd9['commandName'])['refresh'](),_0x474cd9['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x52a899['execute'](_0x474cd9['commandName'],..._0x474cd9['commandParams']),_0xa3f9af['setSelection'](_0x14d256);for(const _0x5d797b of _0x14d256)_0x5d797b['detach']();});}),_0xaa3d52['descriptionFactory']['registerElementLabel'](function(_0x41a156){const _0x162d17=!_0x52a899['model']['schema']['isObject'](_0x41a156),_0x142d05=_0x41a156['previousSibling'],_0x5202c3=_0x41a156['nextSibling'],_0x4ac70e=_0x41a156['getAttribute']('listItemId'),_0x41408b=!_0x142d05||_0x142d05['getAttribute']('listItemId')!==_0x4ac70e,_0x19daf8=!_0x5202c3||_0x5202c3['getAttribute']('listItemId')!==_0x4ac70e;return _0x162d17&&Boolean(_0x4ac70e)&&_0x41408b&&_0x19daf8;},_0x210ec0=>o(_0x2807a7,'ELEMENT_LIST_ITEM',_0x210ec0));}['_registerLegacyDescription'](){const _0x1d6532=this['editor'],_0x499a44=_0x1d6532['locale'];function _0x32cd37(_0x178a59){const _0x415665=_0x1d6532['commands']['get']('bulletedList')['value'],_0x111ae4=_0x1d6532['commands']['get']('numberedList')['value'];return'numberedList'===_0x178a59?_0x415665:_0x111ae4;}_0x1d6532['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x5332c0){if('formatBlock'!=_0x5332c0['type'])return;const {data:_0x43fba2}=_0x5332c0;if(!_0x43fba2)return;let _0x32fddf,_0x4cd91e,_0x119139,_0x42f4d3;switch(_0x43fba2['commandName']){case'bulletedList':_0x119139=_0x43fba2['commandParams'][0x0]['forceValue'],_0x42f4d3=_0x32cd37(_0x43fba2['commandName']),_0x32fddf=_0x119139?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x42f4d3&&_0x1d6532['config']['get']('list.multiBlock')||(_0x32fddf='*Change\x20to:*\x20%0'),_0x4cd91e={'type':'format','content':o(_0x499a44,_0x32fddf,o(_0x499a44,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x119139=_0x43fba2['commandParams'][0x0]['forceValue'],_0x42f4d3=_0x32cd37(_0x43fba2['commandName']),_0x32fddf=_0x119139?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x42f4d3&&_0x1d6532['config']['get']('list.multiBlock')||(_0x32fddf='*Change\x20to:*\x20%0'),_0x4cd91e={'type':'format','content':o(_0x499a44,_0x32fddf,o(_0x499a44,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x32fddf='*Indent:*\x20%0',_0x4cd91e={'type':'format','content':o(_0x499a44,_0x32fddf,o(_0x499a44,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x32fddf=function(_0x154159){const _0x30dfdc=_0x154159['getFirstRange']();let _0x5c4f5b=_0x30dfdc['start']['nodeAfter'];for(;_0x5c4f5b&&_0x30dfdc['containsItem'](_0x5c4f5b);){if(_0x5c4f5b['getAttribute']('listIndent')>0x0)return!0x1;_0x5c4f5b=_0x5c4f5b['nextSibling'];}return!0x0;}(_0x5332c0)?o(_0x499a44,'*Format:*\x20remove\x20from\x20%0',o(_0x499a44,function(_0x4b67a7){return'ELEMENT_'+_0x4b67a7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5332c0))):o(_0x499a44,'*Outdent:*\x20%0',o(_0x499a44,'ELEMENT_LIST_ITEM')),_0x4cd91e={'type':'format','content':_0x32fddf};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x43fba2['multipleBlocks']&&(_0x32fddf='*Merge:*\x20%0',_0x4cd91e={'type':'deletion','content':o(_0x499a44,_0x32fddf,o(_0x499a44,'ELEMENT_LIST_ITEM'))});}return _0x4cd91e;});}}function Te(_0x36f8e2){let _0x3f5b26=_0x36f8e2['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3f5b26;){const _0x3e6c57=_0x3f5b26['getAttribute']('listItemId');if(!_0x3e6c57)return!0x1;if(_0x3e6c57==_0x36f8e2['data']['newValue'])return'newValue';if(_0x3e6c57==_0x36f8e2['data']['oldValue'])return'oldValue';_0x3f5b26=_0x3f5b26['previousSibling'];}return!0x1;}class z extends _0x5d906a{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1c4d40=this['editor']['config']['get']('list.properties'),_0x4529fa=this['editor']['plugins']['get']('TrackChangesEditing');_0x1c4d40['styles']&&(_0x4529fa['enableDefaultAttributesIntegration']('listStyle'),_0x4529fa['registerBlockAttribute']('listStyle')),_0x1c4d40['reversed']&&(_0x4529fa['enableDefaultAttributesIntegration']('listReversed'),_0x4529fa['registerBlockAttribute']('listReversed')),_0x1c4d40['startIndex']&&(_0x4529fa['enableDefaultAttributesIntegration']('listStart'),_0x4529fa['registerBlockAttribute']('listStart'));const _0xd84c9c={'type':'format','content':''};_0x4529fa['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x402e29=this['editor']['locale'];_0x4529fa['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x402e29,'FORMAT_LIST_REVERSED')),_0x4529fa['descriptionFactory']['registerDescriptionCallback'](_0x748048=>{const {data:_0x5279f8}=_0x748048;if(_0x5279f8&&'listReversed'==_0x5279f8['key'])return null==_0x5279f8['newValue']||0x0==_0x5279f8['newValue']&&null==_0x5279f8['oldValue']?_0xd84c9c:void 0x0;}),_0x4529fa['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x402e29,'FORMAT_LIST_START')),_0x4529fa['descriptionFactory']['registerDescriptionCallback'](_0x538736=>{const {data:_0x14f01b}=_0x538736;if(_0x14f01b&&'listStart'==_0x14f01b['key'])return null==_0x14f01b['newValue']||0x1==_0x14f01b['newValue']&&null==_0x14f01b['oldValue']?_0xd84c9c:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4139cf=>{if(_0x4139cf['batch']['isUndo'])return!0x1;let _0x1b923b=!0x1;const _0x5a62f9=_0x4529fa['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x58425b=>{const _0x3f00fa=_0x4529fa['_getAttributeKey'](_0x58425b);return'listStart'==_0x3f00fa||'listReversed'==_0x3f00fa;});for(const _0x105fa9 of _0x5a62f9){const _0x2a18ad=_0x105fa9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x2a18ad||'customNumbered'==_0x2a18ad)continue;_0x4529fa['_findSuggestions'](_0x105fa9['getFirstRange'](),'attribute')['find'](_0x41833d=>'listType'==_0x4529fa['_getAttributeKey'](_0x41833d['suggestion']))||(_0x4139cf['removeMarker'](_0x105fa9['getFirstMarker']()),_0x1b923b=!0x0);}return _0x1b923b;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x4b6678){const _0x47312b=this['editor']['locale'],{data:_0x1533c3}=_0x4b6678,_0x2fbf3e={'type':'format','content':''};if(!_0x1533c3||'listStyle'!=_0x1533c3['key'])return;if(!_0x1533c3['oldValue'])return'default'==_0x1533c3['newValue']?_0x2fbf3e:{'type':'format','content':''+o(_0x47312b,'*Set\x20format:*\x20%0',o(_0x47312b,this['_getTranslationKeyForListStyle'](_0x1533c3['newValue'])))};if(!_0x1533c3['newValue']){if('default'==_0x1533c3['oldValue'])return _0x2fbf3e;let _0x2651d7=_0x4b6678['head'];for(;_0x2651d7;){if(_0x2651d7['data']&&'listType'==_0x2651d7['data']['key']&&_0x2651d7['data']['newValue'])return _0x2fbf3e;_0x2651d7=_0x2651d7['next'];}return{'type':'format','content':''+o(_0x47312b,'*Remove\x20format:*\x20%0',o(_0x47312b,this['_getTranslationKeyForListStyle'](_0x1533c3['oldValue'])))};}if('default'!=_0x1533c3['newValue'])return{'type':'format','content':''+o(_0x47312b,'*Set\x20format:*\x20%0',o(_0x47312b,this['_getTranslationKeyForListStyle'](_0x1533c3['newValue'])))};let _0x58296d=_0x4b6678['head'];for(;_0x58296d;){if(_0x58296d['data']&&'listType'==_0x58296d['data']['key']&&_0x58296d['data']['newValue']&&_0x58296d['data']['oldValue'])return _0x2fbf3e;_0x58296d=_0x58296d['next'];}return{'type':'format','content':o(_0x47312b,'*Set\x20format:*\x20%0',o(_0x47312b,'ELEMENT_'+_0x4b6678['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x129b7d=this['editor'],_0x3e3035=_0x129b7d['locale'];_0x129b7d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c565d=>{if('formatBlock'!=_0x4c565d['type'])return;const {data:_0x16fd5a}=_0x4c565d;if(!_0x16fd5a)return;let _0x39f2a3,_0x215fb7;switch(_0x16fd5a['commandName']){case'listStyle':_0x39f2a3='*Change\x20to:*\x20%0',_0x215fb7={'type':'format','content':o(_0x3e3035,_0x39f2a3,o(_0x3e3035,this['_getTranslationKeyForListStyle'](_0x16fd5a['commandParams'][0x0]['type'])))};break;case'listReversed':_0x39f2a3=_0x16fd5a['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x215fb7={'type':'format','content':o(_0x3e3035,_0x39f2a3)};break;case'listStart':_0x39f2a3='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x215fb7={'type':'format','content':o(_0x3e3035,_0x39f2a3,_0x16fd5a['commandParams'][0x0]['startIndex'])};}return _0x215fb7;});}['_getTranslationKeyForListStyle'](_0x36f3c9){return'ELEMENT_'+function(_0x9b0daa){if(Se['includes'](_0x9b0daa))return'bulleted';if(_e['includes'](_0x9b0daa))return'numbered';return null;}(_0x36f3c9)['toUpperCase']()+'_LIST_'+_0x36f3c9['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x5d906a{['afterInit'](){const _0x513914=this['editor'];_0x513914['commands']['get']('emoji')&&_0x513914['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Q extends _0x5d906a{static get['requires'](){return[_0x30e46b];}['init'](){const _0xbacdc1=this['editor'],_0x27fcc9=_0xbacdc1['plugins']['get']('TrackChangesEditing'),_0x55ea64=_0xbacdc1['commands']['get']('enter');_0x27fcc9['enableCommand']('enter',()=>{_0xbacdc1['model']['change'](_0x39905d=>{const _0x718ddc=_0xbacdc1['model']['document']['selection'],_0x51a404=_0x718ddc['getFirstPosition'](),_0x2ffa0d=_0x527bd9['fromRange'](_0x718ddc['getFirstRange']());if(_0x55ea64['enterBlock'](_0x39905d)){const _0xe2007c=_0xbacdc1['model']['createPositionAt'](_0x51a404['parent']['nextSibling'],0x0),_0x5bda51=_0x39905d['createRange'](_0x51a404,_0xe2007c);_0x27fcc9['markInsertion'](_0x5bda51);}else _0x39905d['setSelection'](_0x39905d['createRange'](_0x2ffa0d['end']));_0x2ffa0d['detach'](),_0x55ea64['fire']('afterExecute',{'writer':_0x39905d});});}),_0xbacdc1['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0xbacdc1,'split'),{'priority':'high'}),_0xbacdc1['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x2fed44,_0x2ccb49,_0x59a83f)=>{const _0x2e5e57=_0x59a83f['mapper']['markerNameToElements'](_0x2ccb49['markerName']);if(_0x2e5e57){for(const _0x5102ae of _0x2e5e57)_0x5102ae['hasClass']('ck-suggestion-marker-split')&&(_0x59a83f['mapper']['unbindElementFromMarkerName'](_0x5102ae,_0x2ccb49['markerName']),_0x59a83f['writer']['remove'](_0x5102ae));}},{'priority':'high'}),_0xbacdc1['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5dc77a,_0x49f832,_0x33108e)=>{_0x33108e['options']['showSuggestionHighlights']&&Fe(_0xbacdc1,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x5dc77a,_0x49f832,_0x33108e);},{'priority':'high'});}}class X extends _0x5d906a{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x22ca54=this['editor']['plugins']['get']('TrackChangesEditing');_0x22ca54['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x22ca54['enableCommand']('findNext'),_0x22ca54['enableCommand']('findPrevious'),_0x22ca54['enableCommand']('replace'),_0x22ca54['enableCommand']('replaceAll');}['handleFindCommand'](_0x21702c,_0x803898,_0x5dfc03={}){const _0x4c442d=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x21702c(_0x5489a4=>{let _0x28074c=('string'==typeof _0x803898?_0x4c442d['findByTextCallback'](_0x803898,_0x5dfc03):_0x803898)(_0x5489a4);Array['isArray'](_0x28074c)&&(_0x28074c={'results':_0x28074c,'searchText':'string'==typeof _0x803898?_0x803898:''});const _0x330719=_0x28074c['results']['filter'](_0x1b492d=>!0x1===this['_isInDeletionRange'](_0x1b492d,_0x5489a4['item']));return{..._0x28074c,'results':_0x330719};},_0x5dfc03);}['_isInDeletionRange'](_0x53e890,_0x49fadb){const _0x5a3e98=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x49fadb,_0x53e890['start']),this['editor']['model']['createPositionAt'](_0x49fadb,_0x53e890['end']));for(const _0x32d1fe of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5a3e98['getIntersection'](_0x32d1fe['getRange']()))return!0x0;return!0x1;}}const no=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0x5d906a{['afterInit'](){const _0x46c6da=this['editor']['locale'],_0x379fb9=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x176bcd,commandName:_0x43df67}of no)this['editor']['plugins']['has'](_0x176bcd)&&(_0x379fb9['enableDefaultAttributesIntegration'](_0x43df67),_0x379fb9['registerInlineAttribute'](_0x43df67));_0x379fb9['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x46c6da,'FORMAT_FONT_SIZE')),_0x379fb9['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x46c6da,'FORMAT_FONT_FAMILY')),_0x379fb9['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x46c6da,'FORMAT_FONT_COLOR')),_0x379fb9['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x46c6da,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x270154=this['editor'],_0x5aa69a=_0x270154['locale'];_0x270154['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1f1241=>{const _0x146f2e=_0x5aa69a['t'];if('formatInline'!=_0x1f1241['type'])return;const {data:_0x4ba9fb}=_0x1f1241;if(null!=_0x4ba9fb){if('fontSize'==_0x4ba9fb['commandName']){const _0x1787b4=_0x4ba9fb['commandParams'][0x0]['value'];if(_0x1787b4){const _0x3b4529=_0x146f2e(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x308693=>_0x308693['model']==_0x1787b4)['title'])['toLowerCase']();return{'type':'format','content':o(_0x5aa69a,'*Set\x20font\x20size:*\x20%0',_0x3b4529)};}return{'type':'format','content':o(_0x5aa69a,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x4ba9fb['commandName']){const _0x39f6ec=_0x4ba9fb['commandParams'][0x0]['value'];return _0x39f6ec?{'type':'format','content':o(_0x5aa69a,'*Set\x20font\x20family:*\x20%0',_0x39f6ec)}:{'type':'format','content':o(_0x5aa69a,'*Reset\x20font\x20family*')};}if('fontColor'==_0x4ba9fb['commandName']){const _0x156a64=_0x4ba9fb['commandParams'][0x0]['value'];if(_0x156a64){const _0x207a6f=to(this['editor']['config']['get']('fontColor.colors'))['find'](_0x1bd9f6=>_0x1bd9f6['model']==_0x156a64);let _0x1c68ed=_0x156a64,_0x52d681='';return _0x207a6f&&(_0x1c68ed=_0x207a6f['label'],_0x52d681=_0x146f2e(_0x1c68ed)['toLowerCase']()),{'type':'format','content':o(_0x5aa69a,'*Set\x20font\x20color:*\x20%0',_0x52d681)['trim'](),'color':{'value':_0x156a64,'title':_0x52d681||_0x1c68ed}};}return{'type':'format','content':o(_0x5aa69a,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x4ba9fb['commandName']){const _0x58e272=_0x4ba9fb['commandParams'][0x0]['value'];if(_0x58e272){const _0x37c3d8=to(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x14f90a=>_0x14f90a['model']==_0x58e272);let _0x376986=_0x58e272,_0x1a44ee='';return _0x37c3d8&&(_0x376986=_0x37c3d8['label'],_0x1a44ee=_0x146f2e(_0x376986)['toLowerCase']()),{'type':'format','content':o(_0x5aa69a,'*Set\x20font\x20background\x20color:*\x20%0',_0x1a44ee)['trim'](),'color':{'value':_0x58e272,'title':_0x1a44ee||_0x376986}};}return{'type':'format','content':o(_0x5aa69a,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x5d906a{['afterInit'](){const _0x336d06=this['editor'],_0xd0a063=_0x336d06['plugins']['get']('TrackChangesEditing'),_0x1564c9=_0x336d06['commands']['get']('copyFormat'),_0x227810=_0x336d06['commands']['get']('pasteFormat');_0x1564c9&&_0x227810&&(_0xd0a063['enableDefaultAttributesIntegration']('pasteFormat'),_0xd0a063['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x29df3a=this['editor'],_0x2d1df7=_0x29df3a['locale'];_0x29df3a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x329cca=>{if('formatBlock'!=_0x329cca['type']&&'formatInline'!=_0x329cca['type'])return;const {data:_0x2dafaa}=_0x329cca;if(_0x2dafaa&&'pasteFormat'===_0x2dafaa['commandName']){const _0x2e019f=[],_0x3e014a=_0x2dafaa['commandParams'][0x0];for(const [_0x3fe840,_0x2f116d]of Object['entries'](_0x3e014a))_0x2e019f['push'](ro(_0x29df3a,_0x3fe840,_0x2f116d));return _0x2e019f['length']?{'type':'format','content':o(_0x2d1df7,'*Set\x20format\x20to:*\x20%0',_0x2e019f['join'](',\x20'))}:{'type':'format','content':o(_0x2d1df7,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x8c580e,_0x599bbf,_0x3af500){const _0x4e1cc5=_0x8c580e['locale']['t'],_0x315ef5=_0x599bbf['split'](/(?=[A-Z])/)['join']('\x20'),_0x44d9a9=_0x4e1cc5(_0x315ef5['charAt'](0x0)['toUpperCase']()+_0x315ef5['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3af500)return _0x44d9a9;if('fontColor'===_0x599bbf||'fontBackgroundColor'===_0x599bbf){const _0x5dab74=to(_0x8c580e['config']['get']('fontColor.colors'))['find'](_0x1a21d4=>_0x1a21d4['model']==_0x3af500);return _0x44d9a9+'\x20('+(_0x5dab74?_0x4e1cc5(_0x5dab74['label'])['toLowerCase']():_0x3af500)+')';}if('fontSize'===_0x599bbf&&isNaN(parseFloat(_0x3af500))){const _0x1b4440=_0x8c580e['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x8c580e['config']['get']('fontSize.options'))['find'](_0xbf3b30=>_0xbf3b30['model']==_0x3af500);return _0x44d9a9+'\x20('+(_0x1b4440?_0x4e1cc5(_0x1b4440['title'])['toLowerCase']():_0x3af500)+')';}return _0x44d9a9+'\x20('+_0x3af500+')';}class tt extends _0x5d906a{['_headingOptions'];['afterInit'](){const _0x4ba0c0=this['editor'];if(!_0x4ba0c0['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x4ba0c0['config']['get']('heading.options');const _0x5b1a80=_0x4ba0c0['locale'],_0x4103b9=_0x4ba0c0['plugins']['get']('TrackChangesEditing');_0x4103b9['enableDefaultAttributesIntegration']('heading');for(const _0xc37c31 of this['_headingOptions'])'paragraph'!=_0xc37c31['model']&&_0x4103b9['descriptionFactory']['registerElementLabel'](_0xc37c31['model'],_0x3a20ab=>{const _0x31d130=this['_getHeadingLevel'](_0xc37c31['model']);return null!==_0x31d130?_0x5ba1e3(_0x3a20ab,_0x31d130):_0x5a9499(_0x3a20ab,_0xc37c31['title']);});function _0x5ba1e3(_0x15e291,_0x2e8f34){return o(_0x5b1a80,'ELEMENT_HEADING',[_0x15e291,_0x2e8f34]);}function _0x5a9499(_0x5f0feb,_0x48d171){return o(_0x5b1a80,'ELEMENT_HEADING_CUSTOM',[_0x5f0feb,_0x48d171]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x28ceef=this['editor'],_0x1465c1=_0x28ceef['locale'];function _0x4a65c4(_0x1f66ed,_0x2761ac){return o(_0x1465c1,'ELEMENT_HEADING_CUSTOM',[_0x1f66ed,_0x2761ac]);}_0x28ceef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40396a=>{if('formatBlock'!=_0x40396a['type'])return;const {data:_0x30c149}=_0x40396a;if(_0x30c149&&'heading'==_0x30c149['commandName']){const _0x1d0e6b=_0x30c149['commandParams'][0x0]['value'],_0x276e68=this['_getHeadingLevel'](_0x1d0e6b);if(null!==_0x276e68)return{'type':'format','content':o(_0x1465c1,'*Change\x20to:*\x20%0',(_0x5b885d=0x1,_0x3f99d2=_0x276e68,o(_0x1465c1,'ELEMENT_HEADING',[_0x5b885d,_0x3f99d2])))};const _0xfeb3c7=this['_headingOptions']['find'](_0x55dc55=>_0x55dc55['model']===_0x1d0e6b)['title'];return{'type':'format','content':o(_0x1465c1,'*Change\x20to:*\x20%0',_0x4a65c4(0x1,_0xfeb3c7))};}var _0x5b885d,_0x3f99d2;});}['_getHeadingLevel'](_0x41a8ec){const _0x30ee56=_0x41a8ec['match'](/^heading(\d+)/);if(_0x30ee56)return _0x30ee56[0x1];const _0x34b345=this['_headingOptions']?.['find'](_0x3b1746=>_0x3b1746['model']==_0x41a8ec);if(_0x34b345&&_0x34b345['view']){const _0x244eb7=_0x34b345['view'],_0x1d4cc6=(_0x244eb7['name']??_0x244eb7)['match'](/^h(\d+)/);if(_0x1d4cc6)return _0x1d4cc6[0x1];}return null;}}class it extends _0x5d906a{['afterInit'](){const _0x2fc9d1=this['editor'];if(!_0x2fc9d1['plugins']['has']('HighlightEditing'))return;const _0x51702e=_0x2fc9d1['plugins']['get']('TrackChangesEditing'),_0x22788f=_0x2fc9d1['locale'];_0x51702e['enableDefaultAttributesIntegration']('highlight'),_0x51702e['registerInlineAttribute']('highlight'),_0x51702e['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x22788f,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x85ab70=this['editor'],_0x235ee2=_0x85ab70['locale'];_0x85ab70['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47a9bc=>{if('formatInline'!=_0x47a9bc['type'])return;const {data:_0x381f57}=_0x47a9bc;if(_0x381f57&&'highlight'==_0x381f57['commandName']){const _0x3441e5=_0x235ee2['t'],_0x43582d=_0x381f57['commandParams'][0x0]['value'];if(_0x43582d){const _0xe83e9e=_0x85ab70['config']['get']('highlight.options')['find'](_0x4a458c=>_0x4a458c['model']==_0x43582d),_0x2516fc=_0x3441e5(_0xe83e9e['title'])['toLowerCase']();return{'type':'format','content':o(_0x235ee2,'*Set\x20highlight:*\x20%0',_0x2516fc),'color':{'value':_0xe83e9e['color'],'title':_0xe83e9e['title']}};}return{'type':'format','content':o(_0x235ee2,'*Remove\x20highlight*',o(_0x235ee2,'FORMAT_HIGHLIGHT'))};}});}}class nt extends _0x5d906a{['afterInit'](){const _0x1cbd21=this['editor'];if(!_0x1cbd21['plugins']['has']('HorizontalLineEditing'))return;_0x1cbd21['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x57eab7=_0x1cbd21['plugins']['get']('TrackChangesEditing'),_0x3205e7=_0x1cbd21['locale'];_0x57eab7['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3ccc4d=>o(_0x3205e7,'ELEMENT_HORIZONTAL_LINE',_0x3ccc4d)),_0x1cbd21['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x377910,{writer:_0x564d80,options:_0x3d961d})=>{if(!_0x3d961d['showSuggestionHighlights'])return null;const _0x161792=_0x564d80['createContainerElement']('div'),_0x59eed8=_0x564d80['createEmptyElement']('hr');return _0x564d80['addClass']('ck-horizontal-line',_0x161792),_0x564d80['insert'](_0x564d80['createPositionAt'](_0x161792,0x0),_0x59eed8),_0x161792;},'converterPriority':'high'});}}class et extends _0x5d906a{['afterInit'](){const _0x5f3914=this['editor'];if(!_0x5f3914['plugins']['has']('HtmlEmbed'))return;const _0x129925=_0x5f3914['plugins']['get']('TrackChangesEditing'),_0x5f62f2=_0x5f3914['locale'];_0x129925['descriptionFactory']['registerElementLabel']('rawHtml',_0x51c9d7=>o(_0x5f62f2,'ELEMENT_HTML_EMBED',_0x51c9d7)),_0x129925['enableDefaultAttributesIntegration']('htmlEmbed'),_0x129925['registerBlockAttribute']('value'),_0x129925['descriptionFactory']['registerDescriptionCallback'](_0x21855b=>{if('attribute'!=_0x21855b['type'])return;const {data:_0x1a5cf1}=_0x21855b;if(_0x1a5cf1&&'value'==_0x1a5cf1['key']&&_0x21855b['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x4b6b2e=o(_0x5f62f2,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5f62f2,'*Change\x20%0\x20content*',_0x4b6b2e)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4a4411=this['editor'],_0xc11dec=_0x4a4411['locale'];_0x4a4411['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15c83c=>{if('formatBlock'!=_0x15c83c['type'])return;const {data:_0x139ce8}=_0x15c83c;if(_0x139ce8&&'htmlEmbed'==_0x139ce8['commandName']){const _0x71266f=o(_0xc11dec,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xc11dec,'*Change\x20%0\x20content*',_0x71266f)};}});}}class st extends _0x5d906a{['afterInit'](){const _0x4b729e=this['editor'];if(!_0x4b729e['plugins']['has']('ImageEditing'))return;const _0x1cffd8=_0x4b729e['plugins']['get']('TrackChangesEditing'),_0x5d4f81=_0x4b729e['plugins']['get']('ImageUtils'),_0x520272=_0x4b729e['locale'];_0x1cffd8['enableCommand']('insertImage'),_0x1cffd8['descriptionFactory']['registerElementLabel']('imageBlock',_0x5b1762=>o(_0x520272,'ELEMENT_IMAGE',_0x5b1762)),_0x1cffd8['descriptionFactory']['registerElementLabel']('imageInline',_0x416d50=>o(_0x520272,'ELEMENT_INLINE_IMAGE',_0x416d50)),_0x1cffd8['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x520272,'ELEMENT_CAPTION')),_0x4b729e['plugins']['has']('ImageUploadEditing')&&_0x1cffd8['enableCommand']('uploadImage'),_0x4b729e['plugins']['has']('ImageBlockEditing')&&_0x4b729e['plugins']['has']('ImageInlineEditing')&&(_0x1cffd8['enableCommand']('imageTypeInline',(_0x636df,_0x2295a4)=>{const _0x43a00f=_0x5d4f81['getClosestSelectedImageElement'](_0x4b729e['model']['document']['selection']);_0x4b729e['model']['change'](()=>{_0x1cffd8['markBlockFormat'](_0x43a00f,{'commandName':'imageTypeInline','commandParams':[_0x2295a4]},[],'convertBlockImageToInline');});}),_0x1cffd8['enableCommand']('imageTypeBlock',(_0x32e208,_0x8e3f81)=>{_0x4b729e['model']['change'](_0xd31b05=>{let _0x1b5d6c=_0x5d4f81['getClosestSelectedImageElement'](_0x4b729e['model']['document']['selection']),_0x4df96e=_0xd31b05['createRangeOn'](_0x1b5d6c);const _0x44915b=_0x26daac['fromPosition'](_0x4df96e['start'],'toPrevious'),_0x4375ab=_0x26daac['fromPosition'](_0x4df96e['end'],'toNext');_0x1cffd8['forceDefaultExecution'](()=>_0x32e208(_0x8e3f81)),_0x1b5d6c=_0x5d4f81['getClosestSelectedImageElement'](_0x4b729e['model']['document']['selection']),_0x4df96e=_0xd31b05['createRangeOn'](_0x1b5d6c);const _0x280116=_0xd31b05['createRange'](_0x44915b,_0x4375ab);_0x44915b['detach'](),_0x4375ab['detach'](),_0x1cffd8['markBlockFormat'](_0x1b5d6c,{'commandName':'imageTypeInline','commandParams':[_0x8e3f81]},[],'convertInlineImageToBlock'),_0x280116['start']['isBefore'](_0x4df96e['start'])&&_0x1cffd8['markInsertion'](_0xd31b05['createRange'](_0x280116['start'],_0x4df96e['start']),'convertInlineImageToBlock'),_0x4df96e['end']['isBefore'](_0x280116['end'])&&_0x1cffd8['markInsertion'](_0xd31b05['createRange'](_0x4df96e['end'],_0x280116['end']),'convertInlineImageToBlock');});}),_0x1cffd8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1cffd8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1cffd8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1cffd8['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1cffd8['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1cffd8['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x10d61d])=>{const _0x3d1b12=_0x1cffd8['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x23f6a3=_0x10d61d['start'],_0x226cb2=_0x10d61d['end'];const _0x41097d=_0x4b729e['model']['schema']['getNearestSelectionRange'](_0x23f6a3,'backward'),_0x1ca7fe=_0x4b729e['model']['schema']['getNearestSelectionRange'](_0x226cb2,'forward');_0x41097d['isCollapsed']&&(_0x23f6a3=_0x41097d['start']),_0x1ca7fe['isCollapsed']&&(_0x226cb2=_0x1ca7fe['end']),_0x3d1b12([_0x4b729e['model']['createRange'](_0x23f6a3,_0x226cb2)]);}),_0x1cffd8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x43a4f3),_0x1cffd8['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x43a4f3)),_0x4b729e['plugins']['has']('ImageCaptionEditing')&&(_0x1cffd8['enableCommand']('toggleImageCaption',(_0x3136d8,_0x544ff7)=>{const _0xf80a33=_0x4b729e['plugins']['get']('ImageCaptionUtils');let _0x519fac=_0x5d4f81['getClosestSelectedImageElement'](_0x4b729e['model']['document']['selection']),_0x4b01e7=_0xf80a33['getCaptionFromImageModelElement'](_0x519fac);_0x4b729e['model']['change'](()=>{if(_0x4b01e7)return void _0x1cffd8['markDeletion'](_0x4b729e['model']['createRangeOn'](_0x4b01e7));const _0x4a0cbe=_0x5d4f81['isBlockImage'](_0x519fac);_0x3136d8(_0x544ff7),_0x519fac=_0x5d4f81['getClosestSelectedImageElement'](_0x4b729e['model']['document']['selection']),_0x4b01e7=_0xf80a33['getCaptionFromImageModelElement'](_0x519fac),_0x1cffd8['markInsertion'](_0x4b729e['model']['createRangeOn'](_0x4b01e7),_0x4a0cbe?null:'imageCaption');});}),_0x1cffd8['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x43a4f3));const _0x49d5f9=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5558c8(_0x16b583,_0xbf362a){const _0x589d4b=_0x49d5f9['findIndex'](({type:_0x4e8088,subType:_0x5ee386})=>_0x16b583['type']==_0x4e8088&&_0x16b583['subType']==_0x5ee386),_0x550b40=_0x49d5f9['findIndex'](({type:_0x2078ac,subType:_0x30af14})=>_0xbf362a['type']==_0x2078ac&&_0xbf362a['subType']==_0x30af14);if(_0x589d4b<0x0||_0x550b40<0x0)return!0x1;const _0xd7ba19=_0x16b583['getFirstRange'](),_0x4ed807=_0xbf362a['getFirstRange']();if((0x0==_0x589d4b||0x1==_0x589d4b)&&0x2==_0x550b40&&_0xd7ba19['isIntersecting'](_0x4ed807))return!0x0;if(0x2==_0x589d4b&&0x3==_0x550b40){const _0x40ccf8=_0x1cffd8['_findSuggestions'](_0xd7ba19,'insertion')['filter'](({suggestion:_0x37b909,meta:_0xc72c64})=>_0xc72c64['isOwn']&&'convertInlineImageToBlock'==_0x37b909['subType']);if(_0x40ccf8['length']>0x1&&_0x4ed807['end']['isEqual'](_0xd7ba19['start']))return!0x0;if(0x1==_0x40ccf8['length']&&(_0xd7ba19['start']['isEqual'](_0x4ed807['end'])||_0xd7ba19['end']['isEqual'](_0x4ed807['start'])))return!0x0;}if(0x3==_0x589d4b&&0x3==_0x550b40&&_0xd7ba19['start']['isBefore'](_0x4ed807['start'])){const _0x500d80=_0xd7ba19['end']['nodeAfter'],_0x4798e9=_0x4ed807['start']['nodeBefore'];return _0x5d4f81['isBlockImage'](_0x500d80)&&_0x500d80===_0x4798e9;}return!0x1;}function _0x43a4f3(_0x58c98f,_0x2fd03f){return _0x5558c8(_0x58c98f,_0x2fd03f)?[_0x58c98f,_0x2fd03f]:_0x5558c8(_0x2fd03f,_0x58c98f)?[_0x2fd03f,_0x58c98f]:null;}_0x4b729e['plugins']['has']('ImageResize')&&(_0x1cffd8['enableDefaultAttributesIntegration']('resizeImage'),_0x1cffd8['registerBlockAttribute']('resizedWidth'),_0x1cffd8['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x520272,'FORMAT_IMAGE_SIZE'))),_0x4b729e['plugins']['has']('ImageTextAlternativeEditing')&&(_0x1cffd8['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1cffd8['registerBlockAttribute']('alt')),_0x4b729e['plugins']['has']('PictureEditing')&&(_0x1cffd8['registerBlockAttribute']('sources'),_0x1cffd8['descriptionFactory']['registerDescriptionCallback'](_0x38eab6=>{if('attribute'!=_0x38eab6['type'])return;const {data:_0x51c590}=_0x38eab6;return _0x51c590&&'sources'==_0x51c590['key']?{'type':'format','content':''}:void 0x0;})),_0x4b729e['plugins']['has']('ImageSizeAttributes')&&(_0x1cffd8['registerBlockAttribute']('width'),_0x1cffd8['registerBlockAttribute']('height'),_0x1cffd8['descriptionFactory']['registerDescriptionCallback'](_0x1e5026=>{if('attribute'!=_0x1e5026['type'])return;const {data:_0x522d0d}=_0x1e5026;return!_0x522d0d||'width'!=_0x522d0d['key']&&'height'!=_0x522d0d['key']?void 0x0:{'type':'format','content':''};})),_0x1cffd8['descriptionFactory']['registerDescriptionCallback'](_0x3ba594=>{if(!!_0x49d5f9['find'](({type:_0x11ef93,subType:_0x3fd9c7})=>_0x3ba594['type']==_0x11ef93&&_0x3ba594['subType']==_0x3fd9c7))return _0x3ba594['previous']?{}:void 0x0;}),_0x1cffd8['descriptionFactory']['registerDescriptionCallback'](_0x1d72b2=>{if('insertion'==_0x1d72b2['type']||'deletion'==_0x1d72b2['type']){const _0x430768=_0x1d72b2['getContainedElement']();if(_0x430768&&_0x430768['is']('element','caption'))return{'type':'insertion'==_0x1d72b2['type']?'addObject':'removeObject','element':_0x430768,'quantity':0x1};}}),_0x1cffd8['descriptionFactory']['registerDescriptionCallback'](_0x92286f=>'formatBlock'==_0x92286f['type']&&'convertInlineImageToBlock'==_0x92286f['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x92286f['type']&&'convertBlockImageToInline'==_0x92286f['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1cffd8['descriptionFactory']['registerDescriptionCallback'](_0x17c5cd=>{if('attribute'!=_0x17c5cd['type'])return;const {data:_0x3ceaa9}=_0x17c5cd;if(!_0x3ceaa9||'alt'!=_0x3ceaa9['key'])return;const _0x148cad=_0x3ceaa9['newValue'];return _0x148cad?{'type':'format','content':o(_0x520272,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x148cad+'\x22')}:{'type':'format','content':o(_0x520272,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ec0ce=this['editor'],_0x1e41a5=_0x4ec0ce['locale'];_0x4ec0ce['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4eb2db=>{if('formatBlock'!=_0x4eb2db['type']&&'formatInline'!=_0x4eb2db['type'])return;const {data:_0x46485e}=_0x4eb2db;if(_0x46485e){if('imageTextAlternative'==_0x46485e['commandName']){const _0x34a3a9=_0x46485e['commandParams'][0x0]['newValue'];return _0x34a3a9?{'type':'format','content':o(_0x1e41a5,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x34a3a9+'\x22')}:{'type':'format','content':o(_0x1e41a5,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x46485e['commandName']){const _0x30e8ce=_0x46485e['commandParams'][0x0]['width'];return _0x30e8ce?{'type':'format','content':o(_0x1e41a5,'*Set\x20image\x20width:*\x20%0',_0x30e8ce)}:{'type':'format','content':o(_0x1e41a5,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x5d906a{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x28bed6=this['editor']['locale'],_0x2b65f6=this['editor']['plugins']['get']('TrackChangesEditing');_0x2b65f6['enableDefaultAttributesIntegration']('replaceImageSource'),_0x2b65f6['registerBlockAttribute']('src'),_0x2b65f6['descriptionFactory']['registerDescriptionCallback'](_0x59fc2c=>{if('attribute'!=_0x59fc2c['type'])return;const {data:_0x59ff79}=_0x59fc2c;return _0x59ff79&&'src'==_0x59ff79['key']?_0x59ff79['newValue']&&_0x59ff79['oldValue']?{'type':'format','content':o(_0x28bed6,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2665aa=this['editor']['plugins']['get']('TrackChangesEditing');_0x2665aa['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x2665aa['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2665aa['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x2665aa['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1fb605=this['editor'],_0x153ecc=_0x1fb605['locale'];_0x1fb605['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e6eb0=>{if('formatBlock'!=_0x1e6eb0['type']&&'formatInline'!=_0x1e6eb0['type'])return;const {data:_0xf0ce9a}=_0x1e6eb0;if(!_0xf0ce9a||'replaceImageSource'!=_0xf0ce9a['commandName'])return;return{'type':'format','content':o(_0x153ecc,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x5d906a{['afterInit'](){const _0x3fcdc5=this['editor'];if(!_0x3fcdc5['plugins']['has']('ImageStyleEditing'))return;const _0x52e6dc=_0x3fcdc5['plugins']['get']('TrackChangesEditing'),_0x4a7401=_0x3fcdc5['plugins']['get']('ImageUtils'),_0x27f1e4={};_0x52e6dc['enableCommand']('imageStyle',(_0x29afce,_0x439976)=>{const _0x86f2d3=_0x3fcdc5['plugins']['get']('Users')['me'],_0x1307b8=_0x3fcdc5['commands']['get']('imageStyle');let _0xe79a65=_0x4a7401['getClosestSelectedImageElement'](_0x3fcdc5['model']['document']['selection']),_0x10aa95=_0x3fcdc5['model']['createRangeOn'](_0xe79a65),_0x3f9064=_0x1307b8['value'];if(_0x3f9064==_0x439976['value'])return;const _0x29940f={'commandName':'imageStyle','commandParams':[_0x439976],'formatGroupId':_0x4fc05b()};_0x3fcdc5['model']['change'](()=>{if(_0x52e6dc['getSuggestions']()['filter'](_0x276151=>_0x276151['isInContent']&&_0x86f2d3==_0x276151['author']&&('formatBlock'==_0x276151['type']||'formatInline'==_0x276151['type'])&&('imageStylePreApply'==_0x276151['subType']||'imageStylePostApply'==_0x276151['subType'])&&_0x276151['getFirstRange']()['isEqual'](_0x10aa95))['forEach'](_0x282bbf=>_0x52e6dc['discardSuggestion'](_0x282bbf['head'])),_0xe79a65=_0x4a7401['getClosestSelectedImageElement'](_0x3fcdc5['model']['document']['selection']),_0x10aa95=_0x3fcdc5['model']['createRangeOn'](_0xe79a65),_0x1307b8['refresh'](),_0x3fcdc5['commands']['get']('imageTypeInline')['refresh'](),_0x3fcdc5['commands']['get']('imageTypeBlock')['refresh'](),_0x3f9064=_0x1307b8['value'],_0x3f9064!=_0x439976['value'])return _0x4a7401['isInlineImage'](_0xe79a65)&&_0x1307b8['shouldConvertImageType'](_0x439976['value'],_0xe79a65)?(_0x29afce({..._0x439976,'setImageSizes':!0x1}),_0xe79a65=_0x4a7401['getClosestSelectedImageElement'](_0x3fcdc5['model']['document']['selection']),void _0x52e6dc['markBlockFormat'](_0xe79a65,{..._0x29940f,'commandReversedParams':[{'value':_0x3f9064||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x4a7401['isBlockImage'](_0xe79a65)?_0x52e6dc['markBlockFormat'](_0xe79a65,_0x29940f,[],'imageStylePostApply'):_0x52e6dc['markInlineFormat'](_0x10aa95,_0x29940f,'imageStylePostApply'));});});for(const _0x4467fc of _0x3fcdc5['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x27f1e4[_0x4467fc['name']]=_0x4467fc['title']['toLowerCase']();_0x52e6dc['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x52e6dc['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x52e6dc['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x52e6dc['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2623bc])=>{_0x4a7401['setImageNaturalSizeAttributes'](_0x2623bc['getContainedElement']());}),_0x52e6dc['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x36d068,_0x1667c0)=>{_0x52e6dc['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x36d068,{'commandName':_0x1667c0['commandName'],'commandParams':_0x1667c0['commandReversedParams']});}),_0x52e6dc['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x30417a,_0x21ad79){if(_0x291775(_0x30417a,_0x21ad79))return[_0x30417a,_0x21ad79];if(_0x291775(_0x21ad79,_0x30417a))return[_0x21ad79,_0x30417a];return null;});const _0x25da66=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x291775(_0x5d1bb2,_0x322695){const _0x43856c=_0x25da66['findIndex'](({type:_0x573469,subType:_0x113ff9})=>_0x5d1bb2['type']==_0x573469&&_0x5d1bb2['subType']==_0x113ff9),_0x107192=_0x25da66['findIndex'](({type:_0x43d85b,subType:_0x231ecc})=>_0x322695['type']==_0x43d85b&&_0x322695['subType']==_0x231ecc);if(_0x43856c<0x0||_0x107192<0x0)return!0x1;const _0x2cb347=_0x5d1bb2['getFirstRange'](),_0x1714b5=_0x322695['getFirstRange']();if((0x0==_0x43856c||0x1==_0x43856c)&&0x2==_0x107192&&_0x2cb347['isIntersecting'](_0x1714b5))return!0x0;if(0x2==_0x43856c&&0x3==_0x107192){const _0x4668e6=_0x52e6dc['_findSuggestions'](_0x2cb347,'insertion')['filter'](({suggestion:_0x4dc526,meta:_0x677316})=>_0x677316['isOwn']&&'convertInlineImageToBlock'==_0x4dc526['subType']);if(_0x4668e6['length']>0x1&&_0x1714b5['end']['isEqual'](_0x2cb347['start']))return!0x0;if(0x1==_0x4668e6['length']&&(_0x2cb347['start']['isEqual'](_0x1714b5['end'])||_0x2cb347['end']['isEqual'](_0x1714b5['start'])))return!0x0;}if(0x3==_0x43856c&&0x3==_0x107192&&_0x2cb347['start']['isBefore'](_0x1714b5['start'])){const _0x5c67e0=_0x2cb347['end']['nodeAfter'],_0x59f798=_0x1714b5['start']['nodeBefore'];return _0x4a7401['isBlockImage'](_0x5c67e0)&&_0x5c67e0===_0x59f798;}return!0x1;}_0x3fcdc5['model']['document']['registerPostFixer'](()=>{let _0x37a746=!0x1;const _0x119809=Array['from'](_0x3fcdc5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4477a0,data:_0x4f4b35}of _0x119809){const {group:_0xa1efe1,type:_0x203f1b,subType:_0x540fee,id:_0x4245d1}=_0x52e6dc['_splitMarkerName'](_0x4477a0);if('suggestion'==_0xa1efe1&&_0x52e6dc['hasSuggestion'](_0x4245d1)){if('formatBlock'==_0x203f1b&&('imageStylePreApply'==_0x540fee||'imageStylePostApply'==_0x540fee)){const _0x33caf6=_0x52e6dc['getSuggestion'](_0x4245d1);if(_0x4f4b35['newRange']){const _0x4c1907=_0x33caf6['getFirstRange']()['getContainedElement']();if(_0x4a7401['isBlockImage'](_0x4c1907))continue;_0x52e6dc['discardSuggestion'](_0x33caf6),_0x37a746=!0x0;}}if('insertion'==_0x203f1b&&'imageCaption'==_0x540fee&&!_0x4f4b35['newRange']){const _0x28b0ee=_0x52e6dc['getSuggestion'](_0x4245d1);_0x28b0ee['next']&&_0x28b0ee['next']['isInContent']&&(_0x52e6dc['discardSuggestion'](_0x28b0ee['next']),_0x37a746=!0x0);}}}return _0x37a746;}),this['_registerLegacyDescription'](_0x27f1e4);}['_registerLegacyDescription'](_0x2190cb){const _0x14c99d=this['editor'],_0x47671f=_0x14c99d['locale'];_0x14c99d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a77f2=>{if('formatBlock'!=_0x3a77f2['type']&&'formatInline'!=_0x3a77f2['type'])return;const {data:_0x564e08}=_0x3a77f2;if(!_0x564e08||'imageStyle'!=_0x564e08['commandName'])return;const _0x32379a=_0x564e08['commandParams'][0x0]['value'];return _0x13e377('side'===_0x32379a?o(_0x47671f,'FORMAT_SIDE_IMAGE'):_0x2190cb[_0x32379a]||_0x32379a);function _0x13e377(_0x31fb37){return{'type':'format','content':o(_0x47671f,'*Format:*\x20%0',_0x31fb37)};}});}}class at extends _0x5d906a{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x24e8fe){super(_0x24e8fe),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x5243de=this['editor'],_0x1b3a83=_0x5243de['commands']['get']('importWord'),_0x30a4b3=_0x5243de['commands']['get']('trackChanges');_0x1b3a83&&(_0x1b3a83['on']('execute',(_0x383c36,[,_0x3c1b32])=>{this['_trackChangesValueDuringImport']=_0x30a4b3['value'],_0x3c1b32['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x1b3a83,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x1b3a83,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x30a4b3['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5243de['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x462475,_0x101884){const {suggestions:_0x2e1e0a}=_0x101884,_0x538c8d=this['editor']['commands']['get']('trackChanges'),_0x26515c=_0x538c8d['value'];this['_trackChangesValueDuringImport']!==_0x26515c&&(_0x538c8d['execute'](),this['_trackChangesExecuted']=!0x0),_0x2e1e0a&&_0x2e1e0a['forEach'](({id:_0xf70c1,type:_0x27b3b1,author:_0x3137a5,created_at:_0x2a0e3a})=>{const _0x1fc8bc={'id':_0xf70c1,'type':_0x27b3b1,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x3137a5,'createdAt':_0x2a0e3a?new Date(_0x2a0e3a):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1fc8bc);});}}class ct extends _0x5d906a{['afterInit'](){const _0x9db7dd=this['editor'],_0x429da1=_0x9db7dd['plugins']['get']('TrackChangesEditing');if(_0x9db7dd['plugins']['has']('IndentEditing')&&(_0x429da1['enableCommand']('indent'),_0x429da1['enableCommand']('outdent')),_0x9db7dd['plugins']['has']('IndentBlock')){for(const _0x3fb05b of['indentBlock','outdentBlock'])_0x429da1['enableDefaultAttributesIntegration'](_0x3fb05b);}const _0x3efdfd=_0x9db7dd['locale'];_0x429da1['registerBlockAttribute']('blockIndent'),_0x429da1['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x3efdfd,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ca9dc=this['editor'],_0x86f258=_0x4ca9dc['locale'],_0x18eda1=_0x4ca9dc['plugins']['get']('TrackChangesEditing');_0x18eda1['descriptionFactory']['registerDescriptionCallback'](_0xd1cbdb=>{if('formatBlock'!=_0xd1cbdb['type'])return;const {data:_0x3e0935}=_0xd1cbdb;if(!_0x3e0935)return;if('indentBlock'!=_0x3e0935['commandName']&&'outdentBlock'!=_0x3e0935['commandName'])return;const _0x2daaa7=_0xd1cbdb['getItems']()[0x0],_0x55c625=_0x18eda1['descriptionFactory']['getItemLabel'](_0x2daaa7);return'indentBlock'==_0x3e0935['commandName']?{'type':'format','content':o(_0x86f258,'*Indent:*\x20%0',_0x55c625)}:'outdentBlock'==_0x3e0935['commandName']?{'type':'format','content':o(_0x86f258,'*Outdent:*\x20%0',_0x55c625)}:void 0x0;});}}class ut extends _0x5d906a{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ft extends _0x5d906a{['afterInit'](){const _0x15e22c=this['editor'];if(!_0x15e22c['plugins']['has']('LinkEditing'))return;const _0x26b68d=_0x15e22c['plugins']['get']('TrackChangesEditing'),_0x377f22=_0x15e22c['commands']['get']('link');_0x26b68d['enableDefaultAttributesIntegration']('link'),_0x26b68d['enableDefaultAttributesIntegration']('unlink'),_0x26b68d['registerInlineAttribute']('linkHref');for(const _0x47dbfb of _0x377f22['manualDecorators'])_0x26b68d['registerInlineAttribute'](_0x47dbfb['id']),_0x26b68d['descriptionFactory']['registerAttributeLabel'](_0x47dbfb['id'],'link\x20('+_0x47dbfb['label']['toLowerCase']()+')');_0x26b68d['descriptionFactory']['registerDescriptionCallback'](_0xf9f589=>{if('attribute'!=_0xf9f589['type'])return;const {data:_0x53be5d}=_0xf9f589;if(!_0x53be5d||'linkHref'!=_0x53be5d['key'])return;const _0x43339d=_0x53be5d['newValue'],_0x1619f2=_0x15e22c['locale'];return{'type':'format','content':null==_0x43339d?o(_0x1619f2,'*Remove\x20link*'):o(_0x1619f2,'*Set\x20link:*\x20%0','\x22'+_0x43339d+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x36e2b1=this['editor'],_0x309e74=_0x36e2b1['locale'];_0x36e2b1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2de00c=>{if('formatInline'!=_0x2de00c['type'])return;const {data:_0x547f89}=_0x2de00c;if(_0x547f89){if('link'==_0x547f89['commandName']){const _0x239e73=_0x547f89['commandParams'][0x0];return{'type':'format','content':o(_0x309e74,'*Set\x20link:*\x20%0','\x22'+_0x239e73+'\x22')};}return'unlink'==_0x547f89['commandName']?{'type':'format','content':o(_0x309e74,'*Remove\x20link*')}:void 0x0;}});}}class ht extends _0x5d906a{['afterInit'](){const _0x22e686=this['editor'],_0x4a534b=_0x22e686['locale'];if(!_0x22e686['plugins']['has']('LegacyListEditing'))return;const _0x245c1f=_0x22e686['plugins']['get']('TrackChangesEditing'),_0x23f746=_0x22e686['plugins']['has']('LegacyTodoListEditing');function _0x42e921(_0x1f4d4e){return()=>{const _0xc47841=_0x22e686['model']['document']['selection'],_0xd1d643=_0x22e686['commands']['get'](_0x1f4d4e);if(_0xd1d643['value'])return void _0x22e686['execute']('paragraph',{});const _0x195757=_0x1f4d4e['slice'](0x0,-0x4),_0xd2a626=function(_0x19af55,_0x118410,_0x5d8588){let _0x1b6c40=Array['from'](_0x19af55)['filter'](_0x22c4f8=>function(_0x28a1a5,_0x251e99){return _0x251e99['checkChild'](_0x28a1a5['parent'],'listItem')&&!_0x251e99['isObject'](_0x28a1a5);}(_0x22c4f8,_0x5d8588));_0x1b6c40=_0x1b6c40['filter'](_0x1e6964=>!_0x1e6964['is']('element','listItem')||_0x1e6964['getAttribute']('listType')!=_0x118410);const _0x53af12=new Set();for(const _0x328d66 of _0x1b6c40)_0x328d66['is']('element','listItem')?_0x53af12['add'](Le(_0x328d66)):_0x53af12['add'](_0x328d66);return Array['from'](_0x53af12);}(_0xc47841['getSelectedBlocks'](),_0x195757,_0x22e686['model']['schema']);_0x22e686['model']['change'](()=>{for(const _0x2b5562 of _0xd2a626)_0x245c1f['markBlockFormat'](_0x2b5562,{'commandName':_0x1f4d4e,'commandParams':[{'forceValue':!_0xd1d643['value']}],'formatGroupId':'blockName'},Ee(_0x2b5562));});};}function _0x5d3928(_0x31b1db){return()=>{const _0x520444=function(_0x32a5e0){let _0x30ea9b=Array['from'](_0x32a5e0);const _0x3d0297=_0x30ea9b['findIndex'](_0x31df33=>'listItem'!=_0x31df33['name']);return _0x3d0297>-0x1&&(_0x30ea9b=_0x30ea9b['slice'](0x0,_0x3d0297)),_0x30ea9b;}(_0x22e686['model']['document']['selection']['getSelectedBlocks']()),_0x12cb84=_0x22e686['model']['createRange'](_0x22e686['model']['createPositionAt'](_0x520444[0x0],'before'),_0x22e686['model']['createPositionAt'](_0x520444[_0x520444['length']-0x1],'end'));_0x22e686['model']['change'](()=>{_0x245c1f['markBlockFormat'](_0x12cb84,{'commandName':_0x31b1db,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2ee381){const _0x1d6bce=new Set();for(const _0x584c78 of _0x2ee381){let _0x4b16f6=_0x584c78['nextSibling'];for(;_0x4b16f6&&_0x4b16f6['getAttribute']('listIndent')>_0x584c78['getAttribute']('listIndent');)_0x1d6bce['add'](_0x4b16f6),_0x4b16f6=_0x4b16f6['nextSibling'];}return Array['from'](_0x1d6bce);}(_0x520444));});};}_0x245c1f['enableCommand']('numberedList',_0x42e921('numberedList')),_0x245c1f['enableCommand']('bulletedList',_0x42e921('bulletedList')),_0x23f746&&_0x245c1f['enableCommand']('todoList',_0x42e921('todoList')),_0x245c1f['enableCommand']('indentList',_0x5d3928('indentList')),_0x245c1f['enableCommand']('outdentList',_0x5d3928('outdentList')),_0x23f746&&_0x245c1f['enableCommand']('checkTodoList',()=>{const _0x30fe99=_0x22e686['commands']['get']('checkTodoList'),_0x131bf7=Array['from'](_0x30fe99['_selectedElements']);_0x131bf7['filter'](_0x312b07=>_0x312b07['getAttribute']('todoListChecked')!=_0x30fe99['value']),_0x22e686['model']['change'](()=>{for(const _0x585aa2 of _0x131bf7)_0x245c1f['markBlockFormat'](_0x585aa2,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x30fe99['value']}]});});}),_0x245c1f['descriptionFactory']['registerElementLabel']('listItem',_0x240a16=>o(_0x4a534b,'ELEMENT_LIST_ITEM',_0x240a16)),_0x245c1f['descriptionFactory']['registerDescriptionCallback'](_0x5d089f=>{if('formatBlock'!=_0x5d089f['type']&&'formatInline'!=_0x5d089f['type'])return;const {data:_0x2a77c5}=_0x5d089f;if(_0x2a77c5){if('numberedList'==_0x2a77c5['commandName']||'bulletedList'==_0x2a77c5['commandName']||'todoList'==_0x2a77c5['commandName'])switch(_0x2a77c5['commandName']['replace']('List','')){case'bulleted':return _0x128e21(o(_0x4a534b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x128e21(o(_0x4a534b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x128e21(o(_0x4a534b,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2a77c5['commandName'])return{'type':'format','content':o(_0x4a534b,'*Indent:*\x20%0',o(_0x4a534b,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2a77c5['commandName'])return{'type':'format','content':o(_0x4a534b,'*Outdent:*\x20%0',o(_0x4a534b,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2a77c5['commandName'])return _0x2a77c5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4a534b,'*Check\x20item*')}:{'type':'format','content':o(_0x4a534b,'*Uncheck\x20item*')};}function _0x128e21(_0x18731f){return{'type':'format','content':o(_0x4a534b,'*Change\x20to:*\x20%0',_0x18731f)};}});}}function Le(_0x1bb1d8){const _0x32cee6=_0x1bb1d8['getAttribute']('listIndent');if(0x0==_0x32cee6)return _0x1bb1d8;let _0x57e510=_0x1bb1d8;for(;_0x1bb1d8['previousSibling']&&_0x1bb1d8['previousSibling']['is']('element','listItem');){const _0x104b6b=_0x1bb1d8['previousSibling']['getAttribute']('listIndent');if(_0x104b6b==_0x32cee6)_0x57e510=_0x1bb1d8['previousSibling'];else{if(_0x104b6b<_0x32cee6)break;}_0x1bb1d8=_0x1bb1d8['previousSibling'];}return _0x57e510;}function Ee(_0xa6946c){const _0x2e473e=[];if(_0xa6946c['is']('element','listItem')&&_0xa6946c['getAttribute']('listIndent')>0x0){let _0x49295f=_0xa6946c['nextSibling'];for(;_0x49295f&&'listItem'==_0x49295f['name']&&_0x49295f['getAttribute']('listIndent')==_0xa6946c['getAttribute']('listIndent');)_0x2e473e['push'](_0x49295f),_0x49295f=_0x49295f['nextSibling'];}return _0x2e473e;}class gt extends _0x5d906a{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x20bc89=this['editor']['config']['get']('list.properties'),_0x1460cb=this['editor']['plugins']['get']('TrackChangesEditing');_0x20bc89['styles']&&_0x1460cb['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x20bc89['reversed']&&_0x1460cb['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x20bc89['startIndex']&&_0x1460cb['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1460cb['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0xf938be,_0x4bb79f={}){const _0x34f989=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5ab87e=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x34f989['markMultiRangeBlockFormat'](_0x5ab87e,{'commandName':'listStyle','commandParams':[{'type':_0x4bb79f['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x140527,_0x1e0e1a={}){const _0x255e12=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5b85e8=this['_getSuggestionBlocks'](_0x1e1fa5=>_0x1e1fa5['is']('element','listItem')&&'numbered'===_0x1e1fa5['getAttribute']('listType'));if(_0x5b85e8['length']<0x1)return;const _0x3fa9b5=_0x5b85e8['map'](_0x23002e=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x23002e,'before'),this['editor']['model']['createPositionAt'](_0x23002e,0x0)));this['editor']['model']['change'](()=>{_0x255e12['markMultiRangeBlockFormat'](_0x3fa9b5,{'commandName':'listReversed','commandParams':[{'reversed':_0x1e0e1a['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x1045bf,_0x507998={}){const _0x19cee9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1dadc9=this['_getSuggestionBlocks'](_0x4d6d6a=>_0x4d6d6a['is']('element','listItem')&&'numbered'===_0x4d6d6a['getAttribute']('listType'));if(_0x1dadc9['length']<0x1)return;const _0x3343dd=_0x1dadc9['map'](_0x5c22c2=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5c22c2,'before'),this['editor']['model']['createPositionAt'](_0x5c22c2,0x0)));this['editor']['model']['change'](()=>{_0x19cee9['markMultiRangeBlockFormat'](_0x3343dd,{'commandName':'listStart','commandParams':[{'startIndex':_0x507998['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x448971){if('formatBlock'!=_0x448971['type']&&'formatInline'!=_0x448971['type'])return;const _0x824fb=this['editor']['locale'],{data:_0x4594df}=_0x448971;if(!_0x4594df)return;let _0x146433,_0x5bb720;switch(_0x4594df['commandName']){case'listStyle':_0x146433='*Change\x20to:*\x20%0',_0x5bb720={'type':'format','content':o(_0x824fb,_0x146433,o(_0x824fb,this['_getTranslationKeyForListStyle'](_0x4594df['commandParams'][0x0]['type'])))};break;case'listReversed':_0x146433=_0x4594df['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5bb720={'type':'format','content':o(_0x824fb,_0x146433)};break;case'listStart':_0x146433='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5bb720={'type':'format','content':o(_0x824fb,_0x146433,_0x4594df['commandParams'][0x0]['startIndex'])};}return _0x5bb720;}['_getSuggestionBlocksForListStyle'](){const _0x5639b2=this['editor']['plugins']['get']('LegacyListUtils');let _0x443fa5=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x443fa5[0x0]?.['is']('element','listItem')&&_0x443fa5['unshift'](..._0x5639b2['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x443fa5[_0x443fa5['length']-0x1]?.['is']('element','listItem')&&_0x443fa5['push'](..._0x5639b2['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x443fa5=[...new Set(_0x443fa5)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x443fa5=_0x443fa5['filter'](_0x2b67c5=>_0x2b67c5['is']('element','listItem'))),_0x443fa5;}['_getSuggestionBlocks'](_0x4b7c2f){const _0x3667a1=this['editor']['plugins']['get']('LegacyListUtils');let _0x6accab=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4b7c2f)['map'](_0x26d03a=>{const _0x413ef6=this['editor']['model']['createPositionAt'](_0x26d03a,0x0);return[..._0x3667a1['getSiblingNodes'](_0x413ef6,'backward'),..._0x3667a1['getSiblingNodes'](_0x413ef6,'forward')];})['flat']();return _0x6accab=[...new Set(_0x6accab)],_0x6accab;}['_getTranslationKeyForListStyle'](_0x692a5e){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x692a5e)||'default')['toUpperCase']()+'_LIST_'+_0x692a5e['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x5d906a{['afterInit'](){const _0x8b9176=this['editor'];if(!_0x8b9176['plugins']['has']('MediaEmbedEditing'))return;const _0x51f203=_0x8b9176['plugins']['get']('TrackChangesEditing'),_0xb999ec=_0x8b9176['locale'];_0x51f203['enableCommand']('mediaEmbed'),_0x51f203['descriptionFactory']['registerElementLabel']('media',_0x178c0f=>o(_0xb999ec,'ELEMENT_MEDIA',_0x178c0f)),_0x8b9176['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4839b0,{writer:_0x25458f,options:_0xc4b910})=>{if(_0xc4b910['showSuggestionHighlights'])return _0x25458f['createEmptyElement']('div');},'converterPriority':'high'}),_0x8b9176['data']['downcastDispatcher']['on']('attribute:url:media',(_0x104e54,_0x96914a,_0x36d7be)=>{_0x36d7be['options']['showSuggestionHighlights']&&_0x104e54['stop']();},{'priority':'high'});}}class dt extends _0x5d906a{['afterInit'](){const _0x5744c0=this['editor'];_0x5744c0['plugins']['has']('MentionEditing')&&_0x5744c0['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class mt extends _0x5d906a{['afterInit'](){const _0x5869d9=this['editor'];if(!_0x5869d9['plugins']['has']('MergeFieldsEditing'))return;const _0x3dece4=_0x5869d9['plugins']['get']('TrackChangesEditing'),_0x246cbe=_0x5869d9['locale'];_0x3dece4['enableCommand']('insertMergeField'),_0x3dece4['enableCommand']('insertMergeFieldBlock'),_0x3dece4['enableCommand']('insertMergeFieldImage'),_0x3dece4['descriptionFactory']['registerElementLabel']('mergeField',_0x5489c4=>o(_0x246cbe,'ELEMENT_MERGE_FIELD',_0x5489c4)),_0x3dece4['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x20852b=>o(_0x246cbe,'ELEMENT_MERGE_FIELD',_0x20852b)),_0x3dece4['descriptionFactory']['registerDescriptionCallback'](_0x96599e=>{if('insertion'!=_0x96599e['type']&&'deletion'!=_0x96599e['type'])return;const _0x26679f=_0x96599e['getContainedElement']();if(null==_0x26679f)return;const _0x339d3f=_0x5869d9['plugins']['get']('MergeFieldsEditing');let _0x2e0cdb;switch(_0x339d3f['getMergeFieldType'](_0x26679f)){case null:return;case'image':{const _0x48c0ff=_0x339d3f['unwrapAffixes'](_0x26679f['getAttribute']('src'));_0x2e0cdb=_0x339d3f['getLabel'](_0x48c0ff)||_0x48c0ff;break;}default:{const _0x511a18=_0x26679f['getAttribute']('id');_0x2e0cdb=_0x339d3f['getLabel'](_0x511a18)||_0x511a18;break;}}return'insertion'==_0x96599e['type']?{'type':'insertion','content':o(_0x246cbe,'*Insert:*\x20%0','\x22'+_0x2e0cdb+'\x22\x20'+o(_0x246cbe,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x246cbe,'*Remove:*\x20%0','\x22'+_0x2e0cdb+'\x22\x20'+o(_0x246cbe,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x5d906a{['afterInit'](){const _0x4d8862=this['editor'],_0x10ef87=_0x4d8862['plugins']['get']('TrackChangesEditing');_0x4d8862['plugins']['has']('MultiLevelList')&&(_0x10ef87['enableDefaultAttributesIntegration']('multiLevelList'),_0x10ef87['registerBlockAttribute']('listMarkerStyle'),_0x10ef87['descriptionFactory']['registerDescriptionCallback'](_0x192ff4=>this['handleDescriptions'](_0x192ff4)));}['handleDescriptions'](_0x2c7f22){const _0x46353a=this['editor']['locale'],{data:_0x5829db}=_0x2c7f22,_0x56e407={'type':'format','content':''};if(_0x5829db&&'listMarkerStyle'==_0x5829db['key']){if(!_0x5829db['oldValue'])return{'type':'format','content':o(_0x46353a,'*Set\x20format:*\x20%0',o(_0x46353a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5829db['newValue']+')'};if(!_0x5829db['newValue']){let _0x52b3dd=_0x2c7f22['head'];for(;_0x52b3dd;){if(_0x52b3dd['data']&&'listType'==_0x52b3dd['data']['key']&&_0x52b3dd['data']['newValue'])return _0x56e407;_0x52b3dd=_0x52b3dd['next'];}return{'type':'format','content':o(_0x46353a,'*Remove\x20format:*\x20%0',o(_0x46353a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5829db['oldValue']+')'};}}}}class kt extends _0x5d906a{['afterInit'](){const _0x177f8b=this['editor'];if(!_0x177f8b['plugins']['has']('PageBreakEditing'))return;_0x177f8b['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3af83c=_0x177f8b['plugins']['get']('TrackChangesEditing'),_0x5ca84f=_0x177f8b['locale'];_0x3af83c['descriptionFactory']['registerElementLabel']('pageBreak',_0x5eba3d=>o(_0x5ca84f,'ELEMENT_PAGE_BREAK',_0x5eba3d));}}class wt extends _0x5d906a{['afterInit'](){const _0x4619c2=this['editor'];if(!_0x4619c2['plugins']['has']('Paragraph'))return;const _0x51c086=_0x4619c2['locale'],_0xfbc62c=_0x4619c2['plugins']['get']('TrackChangesEditing');_0xfbc62c['descriptionFactory']['registerElementLabel']('paragraph',_0x273620=>o(_0x51c086,'ELEMENT_PARAGRAPH',_0x273620)),_0xfbc62c['enableDefaultAttributesIntegration']('paragraph'),_0xfbc62c['enableCommand']('insertParagraph'),_0x4619c2['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x4619c2),{'priority':'highest'}),_0x4619c2['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2f8cd6,_0x3e45ec,_0x1d189a)=>{_0x1d189a['options']['showSuggestionHighlights']&&nr(_0x4619c2,{'showActiveMarker':!0x1})(_0x2f8cd6,_0x3e45ec,_0x1d189a);},{'priority':'highest'});const _0x178501=_0xfbc62c['descriptionFactory'];_0x178501['registerDescriptionCallback'](_0x3dc8f5=>{if('insertion'!==_0x3dc8f5['type'])return;const {start:_0x23fcc7,end:_0x22250d}=_0x3dc8f5['getFirstRange']();if(!_0x23fcc7['isTouching'](_0x22250d)||!_0x23fcc7['nodeAfter'])return;const _0x49b2a9=_0x4619c2['model']['schema'],_0x37b2b0=_0x23fcc7['nodeAfter'];return _0x49b2a9['isBlock'](_0x37b2b0)&&!_0x49b2a9['isLimit'](_0x37b2b0)&&_0x49b2a9['checkChild'](_0x37b2b0,'$text')?{'type':'insertion','content':o(_0x51c086,'*Insert:*\x20%0',_0x178501['getItemLabel'](_0x37b2b0,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x177f67=this['editor'],_0x1b6d9b=_0x177f67['locale'];_0x177f67['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x357f1b=>{if('formatBlock'!=_0x357f1b['type'])return;const {data:_0x11943d}=_0x357f1b;return _0x11943d&&'paragraph'==_0x11943d['commandName']?{'type':'format','content':o(_0x1b6d9b,'*Change\x20to:*\x20%0',o(_0x1b6d9b,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x1a4854,{showActiveMarker:_0x46f5da=!0x0}={}){return(_0x35d71e,_0x271737,_0x50270e)=>{const _0x2295b5=_0x1a4854['plugins']['get']('TrackChangesEditing'),_0x24dbfb=_0x271737['markerRange']['start'],_0x27ffb8=_0x271737['markerRange']['end'],_0x18c18c=_0x1a4854['model']['schema'];if(!_0x24dbfb['isTouching'](_0x27ffb8)||!_0x24dbfb['nodeAfter'])return;const _0x238b0e=_0x24dbfb['nodeAfter'];if(_0x18c18c['isBlock'](_0x238b0e)&&!_0x18c18c['isLimit'](_0x238b0e)&&_0x18c18c['checkChild'](_0x238b0e,'$text')){if(!_0x50270e['consumable']['consume'](_0x271737['markerRange'],_0x35d71e['name']))return;const {id:_0x578905,authorId:_0x441e0a}=_0x2295b5['_splitMarkerName'](_0x271737['markerName']),_0x3020e1=_0x50270e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x578905,'data-author-id':_0x441e0a}),_0x25a20c=_0x50270e['mapper']['toViewPosition'](_0x27ffb8);_0x46f5da&&_0x2295b5['activeMarkers']['includes'](_0x271737['markerName'])&&_0x50270e['writer']['addClass']('ck-suggestion-marker--active',_0x3020e1),_0x50270e['writer']['insert'](_0x25a20c,_0x3020e1),_0x50270e['mapper']['bindElementToMarker'](_0x3020e1,_0x271737['markerName']);}};}class bt extends _0x5d906a{['afterInit'](){const _0x46c2aa=this['editor'];_0x46c2aa['commands']['get']('replaceSource')&&_0x46c2aa['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class yt extends _0x5d906a{['afterInit'](){const _0x168d2d=this['editor'];if(!_0x168d2d['plugins']['has']('RemoveFormatEditing'))return;_0x168d2d['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x46fc90=this['editor'];_0x46fc90['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x411d11=>{if('formatBlock'!=_0x411d11['type']&&'formatInline'!=_0x411d11['type'])return;const {data:_0x1b4fd8}=_0x411d11;return _0x1b4fd8&&'removeFormat'==_0x1b4fd8['commandName']?{'type':'format','content':o(_0x46fc90['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class St extends _0x5d906a{['afterInit'](){const _0x7ca751=this['editor'];if(!_0x7ca751['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x53a2a0=_0x7ca751['plugins']['get']('TrackChangesEditing');_0x53a2a0['enableCommand']('goToPreviousRestrictedEditingException'),_0x53a2a0['enableCommand']('goToNextRestrictedEditingException');const _0x469675=_0x7ca751['plugins']['get']('RestrictedEditingModeEditing');_0x469675['enableCommand']('trackChanges'),_0x469675['enableCommand']('acceptSuggestion'),_0x469675['enableCommand']('discardSuggestion'),_0x469675['enableCommand']('acceptAllSuggestions'),_0x469675['enableCommand']('discardAllSuggestions'),_0x469675['enableCommand']('acceptSelectedSuggestions'),_0x469675['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x5d906a{['afterInit'](){const _0x240345=this['editor'];if(!_0x240345['plugins']['has']('ShiftEnter'))return;const _0x5088fe=_0x240345['plugins']['get']('TrackChangesEditing');_0x5088fe['enableCommand']('shiftEnter'),_0x240345['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x240345),{'priority':'high'}),_0x240345['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x240345),{'priority':'high'}),_0x240345['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x23e891,_0x31c6ec,_0x1509dd)=>{_0x1509dd['options']['showSuggestionHighlights']&&je(_0x240345,{'showActiveMarker':!0x1})(_0x23e891,_0x31c6ec,_0x1509dd);}),_0x5088fe['descriptionFactory']['registerElementLabel']('softBreak',_0x213a1d=>o(_0x240345['locale'],'ELEMENT_LINE_BREAK',_0x213a1d));}}function je(_0x23a2b2,{showActiveMarker:_0x4e9cff=!0x0}={}){return(_0x4c4199,_0x2ffed2,_0x2b925b)=>{const _0x9d1d2a=_0x23a2b2['plugins']['get']('TrackChangesEditing');if(!_0x2b925b['consumable']['test'](_0x2ffed2['markerRange'],_0x4c4199['name']))return;const _0x36e0a9=_0x23a2b2['model'];for(const _0x20a8a2 of _0x2ffed2['markerRange']['getItems']()){if(!_0x20a8a2['is']('element','softBreak'))continue;const _0x1674c6='deletion'==_0x2ffed2['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x14dfe2,authorId:_0x25b32b}=_0x9d1d2a['_splitMarkerName'](_0x2ffed2['markerName']),_0x32cc40=_0x2b925b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1674c6,'data-suggestion':_0x14dfe2,'data-author-id':_0x25b32b}),_0x2c7d16=_0x2b925b['mapper']['toViewPosition'](_0x36e0a9['createPositionBefore'](_0x20a8a2));_0x4e9cff&&_0x9d1d2a['activeMarkers']['includes'](_0x2ffed2['markerName'])&&_0x2b925b['writer']['addClass']('ck-suggestion-marker--active',_0x32cc40),_0x2b925b['writer']['insert'](_0x2c7d16,_0x32cc40),_0x2b925b['mapper']['bindElementToMarker'](_0x32cc40,_0x2ffed2['markerName']);}};}class It extends _0x5d906a{['afterInit'](){const _0x23b5f6=this['editor'],_0x5e7592=_0x23b5f6['model'],_0x3b63bd=_0x23b5f6['locale'];if(!_0x23b5f6['plugins']['has']('StandardEditingModeEditing'))return;const _0x86962c=_0x23b5f6['plugins']['get']('TrackChangesEditing'),_0x2a0dcd='restrictedEditingException',_0x3075ea=_0x23b5f6['commands']['get'](_0x2a0dcd);_0x86962c['enableCommand'](_0x2a0dcd,(_0x30080a,_0x1e763b={})=>{const _0x37462e=_0x5e7592['document']['selection'];if(_0x37462e['isCollapsed'])return void _0x30080a(_0x1e763b);const _0x4f8fa2=void 0x0!==_0x1e763b['forceValue']?_0x1e763b['forceValue']:!_0x3075ea['value'];_0x5e7592['change'](()=>{const _0x21586a=Array['from'](_0x37462e['getRanges']());for(const _0x1aafd4 of _0x21586a){const _0x323d72=_0x4f8fa2?[_0x1aafd4]:io(_0x2a0dcd,_0x1aafd4,_0x5e7592);for(const _0x5fdbde of _0x323d72)_0x86962c['markInlineFormat'](_0x5fdbde,{'commandName':_0x2a0dcd,'commandParams':[{'forceValue':_0x4f8fa2}]});}});}),_0x86962c['descriptionFactory']['registerDescriptionCallback'](_0x1e3195=>{if('formatBlock'!=_0x1e3195['type']&&'formatInline'!=_0x1e3195['type'])return;const {data:_0x1782a4}=_0x1e3195;return _0x1782a4&&_0x1782a4['commandName']==_0x2a0dcd?_0x1782a4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3b63bd,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x3b63bd,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x5d906a{['afterInit'](){const _0x22c058=this['editor'];if(!_0x22c058['plugins']['has']('Style')||!_0x22c058['plugins']['has']('DataSchema'))return;const _0x53cf99=_0x22c058['plugins']['get']('TrackChangesEditing'),_0x566bd8=_0x22c058['locale'],_0x57e77a=_0x22c058['config']['get']('style')||{},_0x3a9023=_0x22c058['plugins']['get']('GeneralHtmlSupport'),_0x98fac7=_0x22c058['plugins']['get']('StyleUtils')['normalizeConfig'](_0x22c058['plugins']['get']('DataSchema'),_0x57e77a['definitions']);_0x53cf99['enableDefaultAttributesIntegration']('style');const _0x2a55c6=new Set();for(const _0x40aad1 of _0x98fac7['block']){const _0x47f6fa=_0x3a9023['getGhsAttributeNameForElement'](_0x40aad1['element']);_0x2a55c6['add'](_0x47f6fa);}const _0x3a705b=new Set();for(const _0x256305 of _0x98fac7['inline']){const _0x2d0dc7=_0x3a9023['getGhsAttributeNameForElement'](_0x256305['element']);_0x3a705b['add'](_0x2d0dc7);for(const _0x133827 of _0x256305['ghsAttributes'])_0x3a705b['add'](_0x133827);}for(const _0x2bbd88 of _0x2a55c6)_0x53cf99['registerBlockAttribute'](_0x2bbd88),_0x53cf99['descriptionFactory']['registerAttributeLabel'](_0x2bbd88,o(_0x566bd8,'FORMAT_STYLE'));for(const _0x4c3b7d of _0x3a705b)_0x53cf99['registerInlineAttribute'](_0x4c3b7d),_0x53cf99['descriptionFactory']['registerAttributeLabel'](_0x4c3b7d,o(_0x566bd8,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f267e=this['editor'],_0x1ce246=_0x1f267e['locale'];_0x1f267e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e2a60=>{if('formatBlock'!=_0x1e2a60['type']&&'formatInline'!=_0x1e2a60['type'])return;const {data:_0xb6447e}=_0x1e2a60;return _0xb6447e&&'style'===_0xb6447e['commandName']?_0xb6447e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1ce246,'*Set\x20format:*\x20%0',_0xb6447e['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x1ce246,'*Remove\x20format:*\x20%0',_0xb6447e['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class _t extends _0x5d906a{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x11b319){super(_0x11b319),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3c2cad=this['editor'],_0x202e45=_0x3c2cad['model']['document']['selection'];if(!_0x3c2cad['plugins']['has']('TableEditing'))return;const _0x3f766f=_0x3c2cad['locale'],_0x5a00f3=_0x3c2cad['plugins']['get']('TrackChangesEditing'),_0x28f742=_0x3c2cad['plugins']['get']('TableUtils');_0x5a00f3['descriptionFactory']['registerElementLabel']('table',_0x5c272f=>o(_0x3f766f,'ELEMENT_TABLE',_0x5c272f)),this['_setupColumnsRowsFixing'](),_0x5a00f3['enableCommand']('insertTable'),_0x5a00f3['enableCommand']('selectTableRow'),_0x5a00f3['enableCommand']('selectTableColumn');for(const _0x9408ed of['insertTableRowAbove','insertTableRowBelow']){const _0x165b2c=_0x3c2cad['commands']['get'](_0x9408ed);_0x5a00f3['enableCommand'](_0x9408ed,_0x40c71f=>{_0x3c2cad['model']['change'](_0x663b45=>{_0x40c71f();const _0x184c19='above'===_0x165b2c['order'],_0x7694cf=_0x28f742['getSelectionAffectedTableCells'](_0x202e45),_0x40014c=_0x28f742['getRowIndexes'](_0x7694cf),_0x314d6b=_0x184c19?_0x40014c['first']-0x1:_0x40014c['last']+0x1,_0x570742=_0x7694cf[0x0]['findAncestor']('table'),_0x5f03ec=_0x28f742['createTableWalker'](_0x570742,{'startRow':_0x314d6b,'endRow':_0x314d6b}),_0x4bafad=Array['from'](_0x5f03ec)['map'](_0x325024=>_0x663b45['createRangeOn'](_0x325024['cell']));_0x5a00f3['markMultiRangeInsertion'](_0x4bafad,'tableRow');});});}for(const _0x4fa4c2 of['insertTableColumnLeft','insertTableColumnRight']){const _0x2f456f=_0x3c2cad['commands']['get'](_0x4fa4c2);_0x5a00f3['enableCommand'](_0x4fa4c2,_0x110f55=>{_0x3c2cad['model']['change'](_0x13ef42=>{_0x110f55();const _0x474cc3='left'===_0x2f456f['order'],_0x32c94f=_0x28f742['getSelectionAffectedTableCells'](_0x202e45),_0x5b4da3=_0x28f742['getColumnIndexes'](_0x32c94f),_0x53afa6=_0x474cc3?_0x5b4da3['first']-0x1:_0x5b4da3['last']+0x1,_0x459ef7=_0x32c94f[0x0]['findAncestor']('table'),_0x3b8365=_0x28f742['createTableWalker'](_0x459ef7,{'startRow':0x0,'column':_0x53afa6,'includeAllSlots':!0x1}),_0x13c8db=Array['from'](_0x3b8365)['map'](_0x52d154=>_0x13ef42['createRangeOn'](_0x52d154['cell']));_0x5a00f3['markMultiRangeInsertion'](_0x13c8db,'tableColumn');});});}for(const _0x50c03d of['removeTableRow','removeTableColumn']){const _0x4e37c9=_0x50c03d['substr'](0xb),_0x213fc8=_0x4e37c9['toLowerCase'](),_0x6e60eb=_0x213fc8['substr'](0x0,0x3)+'span',_0x484d3b='table'+_0x4e37c9,_0x5e5122='min'+_0x4e37c9,_0xaabcae='max'+_0x4e37c9;_0x5a00f3['enableCommand'](_0x50c03d,()=>{_0x3c2cad['model']['change'](_0x2f2368=>{const _0x525855=_0x28f742['getSelectionAffectedTableCells'](_0x202e45),_0x57b59b=_0x525855[0x0]['findAncestor']('table');let _0x92d811;if('removeTableRow'==_0x50c03d){const _0x4b6230=_0x28f742['getRowIndexes'](_0x525855);_0x92d811={'startRow':_0x4b6230['first'],'endRow':_0x4b6230['last'],'includeAllSlots':!0x0};}else{const _0x4b6970=_0x28f742['getColumnIndexes'](_0x525855);_0x92d811={'startColumn':_0x4b6970['first'],'endColumn':_0x4b6970['last'],'includeAllSlots':!0x0};}const _0x508f03=_0x28f742['createTableWalker'](_0x57b59b,_0x92d811),_0xaf3270=Array['from'](_0x508f03)['map'](({cell:_0x11b5cf})=>_0x11b5cf),_0x23d21b=Ne(_0xaf3270['filter'](_0x265814=>_0x265814['hasAttribute'](_0x6e60eb))),_0x135c1b=Ne(_0xaf3270['filter'](_0x3faa5d=>!_0x3faa5d['hasAttribute'](_0x6e60eb)))['map'](_0x54489e=>_0x2f2368['createRangeOn'](_0x54489e)),_0x119dc7=_0x5a00f3['markMultiRangeDeletion'](_0x135c1b,_0x484d3b);if(_0x119dc7&&('tableRow'==_0x119dc7['subType']||'tableColumn'==_0x119dc7['subType'])){const _0xcf0296=this['_getSuggestionCoords'](_0x119dc7);for(const _0x8121 of _0x23d21b){const _0x23247f=_0x2f2368['createRangeOn'](_0x8121),_0x2b117e=_0x28f742['getCellLocation'](_0x8121),_0x4c4d1b=_0x8121['getAttribute'](_0x6e60eb)-0x1,_0x31e1c4=_0xcf0296[_0x5e5122],_0x4fef9e=_0xcf0296[_0xaabcae];_0x31e1c4<=_0x2b117e[_0x213fc8]&&_0x2b117e[_0x213fc8]+_0x4c4d1b<=_0x4fef9e&&_0x119dc7['addRange'](_0x23247f);}}});});}function _0x380b22(_0x544ace){const _0x1027c9=Array['from'](_0x202e45['getRanges']())['map'](_0x177728=>_0x527bd9['fromRange'](_0x177728));_0x3c2cad['model']['change'](_0x1f79a9=>{const _0x421810=_0x1f79a9['batch'];_0x544ace=_0x544ace['filter'](_0x3d9edd=>'$graveyard'!=_0x3d9edd['root']['rootName']),_0x1f79a9['setSelection'](_0x544ace),_0x3c2cad['commands']['get']('removeTableRow')['refresh'](),_0x3c2cad['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3c2cad['model']['enqueueChange'](()=>{_0x3c2cad['model']['enqueueChange'](_0x421810,_0x80b745=>{const _0x2f0f2c=_0x1027c9['filter'](_0x3f4944=>'$graveyard'!=_0x3f4944['root']['rootName']);_0x2f0f2c['length']>0x0&&_0x80b745['setSelection'](_0x2f0f2c);for(const _0x3ad645 of _0x1027c9)_0x3ad645['detach']();});});});}function _0x55b078(_0x36993f){_0x3c2cad['model']['change'](_0xaec7f8=>{const _0x2e8ff1=Array['from'](_0x202e45['getRanges']())['map'](_0x40187b=>_0x527bd9['fromRange'](_0x40187b)),_0x467359=[];for(const _0x3a8d39 of _0x36993f)for(const _0x3bf0f3 of _0x3a8d39['getItems']({'shallow':!0x0}))_0x467359['push'](_0x3bf0f3);for(const _0x4ceeee of _0x467359)'$graveyard'!=_0x4ceeee['root']['rootName']&&(_0xaec7f8['setSelection'](_0xaec7f8['createPositionAt'](_0x4ceeee,0x0)),_0x3c2cad['commands']['get']('removeTableColumn')['refresh'](),_0x3c2cad['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3522da=_0x2e8ff1['filter'](_0x23a11a=>'$graveyard'!=_0x23a11a['root']['rootName']);_0x3522da['length']>0x0&&_0xaec7f8['setSelection'](_0x3522da);for(const _0x139bf9 of _0x2e8ff1)_0x139bf9['detach']();});}function _0x10fbfa(_0x1ce0e8,_0x1a36fc){return _0x1a36fc['every'](_0x496a04=>_0x1ce0e8['some'](_0x43af76=>_0x43af76['end']['isEqual'](_0x496a04['start'])||_0x496a04['end']['isEqual'](_0x43af76['start'])));}function _0x4f7634(_0x4190ec,_0x3b73cd){return!_0x4190ec['some'](_0x4e01bc=>_0x3b73cd['some'](_0x4b4e89=>_0x4e01bc['isIntersecting'](_0x4b4e89)))&&_0x4190ec['some'](_0x816b92=>_0x3b73cd['some'](_0x5322e5=>_0x816b92['end']['isTouching'](_0x5322e5['start'])));}_0x3c2cad['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5c1a04,_0x4b088f,_0x231e23)=>{if(!_0x231e23['options']['showSuggestionHighlights'])return;const _0x2f996f=_0x4b088f['item'];if(!_0x2f996f||!_0x2f996f['is']('element','tableCell'))return;const _0x27d55b=_0x231e23['mapper']['toViewElement'](_0x2f996f);if(_0x27d55b){const {id:_0x26a94b,authorId:_0xaad0d9}=_0x5a00f3['_splitMarkerName'](_0x4b088f['markerName']);_0x3b1108(_0x27d55b,_0x231e23['writer'],(_0x3e6594,_0x3cb7d4,_0x473f1f)=>{_0x473f1f['addClass'](_0x531133(_0x3cb7d4['classes']),_0x3e6594),_0x473f1f['setAttribute']('data-suggestion-id',_0x26a94b,_0x3e6594),_0x473f1f['setAttribute']('data-author-id',_0xaad0d9,_0x3e6594);},(_0x1adea9,_0x32ce13,_0x282982)=>{_0x282982['removeClass'](_0x531133(_0x32ce13['classes']),_0x1adea9),_0x282982['removeAttribute']('data-suggestion-id',_0x1adea9),_0x282982['removeAttribute']('data-author-id',_0x1adea9);});}},{'priority':'highest'}),_0x5a00f3['descriptionFactory']['registerDescriptionCallback'](_0x42dde8=>{if('insertion'!=_0x42dde8['type']&&'deletion'!=_0x42dde8['type'])return;const _0x3c5ec0=_0x42dde8['getContainedElement']();if(null!=_0x3c5ec0&&_0x3c5ec0['is']('element','table')){if('insertion'==_0x42dde8['type']){const _0x245f62=_0x42dde8['getItems']()['filter'](_0x5d4e5e=>_0x5d4e5e['is']('$textProxy'))['map'](_0x7feb0d=>_0x7feb0d['data']);if(_0x245f62['length'])return{'type':'insertion','content':o(_0x3f766f,'*Insert:*\x20%0',o(_0x3f766f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x245f62['join']('\x20')+'\x22'))};}if('deletion'==_0x42dde8['type']){const _0x45b84a=_0x42dde8['getItems']()['filter'](_0x16018a=>_0x16018a['is']('$textProxy'))['map'](_0x134814=>_0x134814['data']);if(_0x45b84a['length'])return{'type':'deletion','content':o(_0x3f766f,'*Remove:*\x20%0',o(_0x3f766f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x45b84a['join']('\x20')+'\x22'))};}}}),_0x5a00f3['descriptionFactory']['registerDescriptionCallback'](_0x56087a=>{if('tableRow'==_0x56087a['subType']){const _0x101a7b=_0x56087a['getItems']()['filter'](_0x3f8d47=>_0x3f8d47['is']('$textProxy'))['map'](_0x40d098=>_0x40d098['data']),_0xe31c9=this['_getSuggestionCoords'](_0x56087a),_0x351ac0=_0xe31c9['maxRow']-_0xe31c9['minRow']+0x1;if('insertion'==_0x56087a['type'])return _0x101a7b['length']?{'type':'insertion','content':o(_0x3f766f,'*Insert:*\x20%0',o(_0x3f766f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x351ac0,'\x22'+_0x101a7b['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3f766f,'*Insert:*\x20%0',o(_0x3f766f,'ELEMENT_TABLE_ROW',_0x351ac0))};if('deletion'==_0x56087a['type'])return _0x101a7b['length']?{'type':'deletion','content':o(_0x3f766f,'*Remove:*\x20%0',o(_0x3f766f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x351ac0,'\x22'+_0x101a7b['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3f766f,'*Remove:*\x20%0',o(_0x3f766f,'ELEMENT_TABLE_ROW',_0x351ac0))};}if('tableColumn'==_0x56087a['subType']){const _0x16a6d9=_0x56087a['getItems']()['filter'](_0x588055=>_0x588055['is']('$textProxy'))['map'](_0x3a2adb=>_0x3a2adb['data']),_0x3422cc=this['_getSuggestionCoords'](_0x56087a),_0x102dce=_0x3422cc['maxColumn']-_0x3422cc['minColumn']+0x1;if('insertion'==_0x56087a['type'])return _0x16a6d9['length']?{'type':'insertion','content':o(_0x3f766f,'*Insert:*\x20%0',o(_0x3f766f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x102dce,'\x22'+_0x16a6d9['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3f766f,'*Insert:*\x20%0',o(_0x3f766f,'ELEMENT_TABLE_COLUMN',_0x102dce))};if('deletion'==_0x56087a['type'])return _0x16a6d9['length']?{'type':'deletion','content':o(_0x3f766f,'*Remove:*\x20%0',o(_0x3f766f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x102dce,'\x22'+_0x16a6d9['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3f766f,'*Remove:*\x20%0',o(_0x3f766f,'ELEMENT_TABLE_COLUMN',_0x102dce))};}}),_0x5a00f3['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x380b22),_0x5a00f3['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x380b22),_0x5a00f3['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x55b078),_0x5a00f3['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x55b078),_0x5a00f3['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x10fbfa),_0x5a00f3['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x10fbfa),_0x5a00f3['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4f7634),_0x5a00f3['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4f7634);}['_acceptFormatSuggestionCallbackFactory'](){const _0x5c60dd=this['editor'],_0x20657c=_0x5c60dd['model']['document']['selection'];return(_0x41fc14,_0x4eb29e)=>{_0x5c60dd['model']['change'](_0x58f1ef=>{const {commandName:_0x21ee0a,commandParams:_0x5d5c00}=_0x4eb29e;let _0x45fcf4=_0x41fc14[0x0]['end']['nodeBefore'];_0x5d5c00&&_0x5d5c00[0x0]&&!0x1===_0x5d5c00[0x0]['forceValue']&&(_0x45fcf4=_0x41fc14[0x0]['start']['nodeAfter']);const _0x54d6c9=_0x58f1ef['createRangeIn'](_0x45fcf4);if('$graveyard'==_0x54d6c9['root']['rootName'])return;const _0xb2d33=Array['from'](_0x20657c['getRanges']())['map'](_0x4c45fd=>_0x527bd9['fromRange'](_0x4c45fd));_0x58f1ef['setSelection'](_0x54d6c9),_0x5c60dd['commands']['get'](_0x21ee0a)['refresh'](),_0x5d5c00['push']({'forceDefaultExecution':!0x0}),_0x5c60dd['execute'](_0x21ee0a,..._0x5d5c00);const _0x233057=_0xb2d33['filter'](_0x5650c8=>'$graveyard'!=_0x5650c8['root']['rootName']);_0x233057['length']>0x0&&_0x58f1ef['setSelection'](_0x233057);for(const _0x562211 of _0xb2d33)_0x562211['detach']();});};}['_getCoordsForCells'](_0x1245eb){const _0x482a3f=this['editor']['plugins']['get']('TableUtils');let _0xb80c89=Number['MAX_SAFE_INTEGER'],_0x157e12=Number['MIN_SAFE_INTEGER'],_0x356225=Number['MAX_SAFE_INTEGER'],_0x1d79f7=Number['MIN_SAFE_INTEGER'];for(const _0x5505db of _0x1245eb){if('$graveyard'==_0x5505db['root']['rootName'])continue;const {row:_0x2fe24b,column:_0x467400}=_0x482a3f['getCellLocation'](_0x5505db),_0x1b169e=_0x5505db['hasAttribute']('rowspan')?_0x5505db['getAttribute']('rowspan')-0x1:0x0,_0x20e5df=_0x5505db['hasAttribute']('colspan')?_0x5505db['getAttribute']('colspan')-0x1:0x0;_0xb80c89=_0x2fe24b<_0xb80c89?_0x2fe24b:_0xb80c89,_0x157e12=_0x2fe24b+_0x1b169e>_0x157e12?_0x2fe24b+_0x1b169e:_0x157e12,_0x356225=_0x467400<_0x356225?_0x467400:_0x356225,_0x1d79f7=_0x467400+_0x20e5df>_0x1d79f7?_0x467400+_0x20e5df:_0x1d79f7;}return{'minRow':_0xb80c89,'maxRow':_0x157e12,'minColumn':_0x356225,'maxColumn':_0x1d79f7};}['_setupColumnsRowsFixing'](){const _0x4e4711=this['editor'],_0x414168=_0x4e4711['plugins']['get']('TrackChangesEditing'),_0x356c75=_0x4e4711['plugins']['get']('TableUtils');_0x4e4711['model']['document']['on']('change:data',()=>{const _0x5b9f39=Array['from'](_0x4e4711['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x51263a,data:_0x59735d}of _0x5b9f39){const {group:_0x2eb684,id:_0x4f22ca,subType:_0x3716da}=_0x414168['_splitMarkerName'](_0x51263a);if('suggestion'!=_0x2eb684)continue;if(null!=_0x59735d['oldRange'])continue;const _0x25c797=_0x414168['getSuggestion'](_0x4f22ca);this['_tablePostFixingSubtypes']['includes'](_0x3716da)&&this['_tableSuggestions']['add'](_0x25c797);}},{'priority':'low'});const _0x5244e4=(_0x2ce607,_0x451c71)=>{let _0x22abdf=!0x1;const _0x343b7c=_0x451c71['createRangeOn'](_0x2ce607),_0x941635=_0x2ce607['findAncestor']('table'),_0x599d6e=_0x356c75['getCellLocation'](_0x2ce607);for(const _0x3c8f7b of this['_tableSuggestions']){const _0x4a821e=_0x3c8f7b['subType'],_0x105b4a=_0x4a821e['startsWith']('tablePaste'),_0x3dd377=_0x4a821e['substr'](_0x105b4a?0xa:0x5),_0x1a6beb=_0x3dd377['toLowerCase'](),_0xb4f26a=_0x1a6beb['substr'](0x0,0x3)+'span',_0x495e31='min'+_0x3dd377,_0x3a63c8='max'+_0x3dd377;if(!_0x3c8f7b['isInContent'])continue;if(_0x941635!=_0x3c8f7b['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x3c8f7b['isIntersectingWithRange'](_0x343b7c))continue;const _0x2ff117=_0x2ce607['hasAttribute'](_0xb4f26a)?_0x2ce607['getAttribute'](_0xb4f26a)-0x1:0x0,_0x158af7=this['_getSuggestionCoords'](_0x3c8f7b),_0x4f5005=_0x158af7[_0x495e31],_0x10c2e5=_0x158af7[_0x3a63c8];_0x4f5005<=_0x599d6e[_0x1a6beb]&&_0x599d6e[_0x1a6beb]+_0x2ff117<=_0x10c2e5&&(_0x3c8f7b['addRange'](_0x343b7c),_0x22abdf=!0x0);}return _0x22abdf;};_0x4e4711['model']['document']['registerPostFixer'](_0x17d3dc=>{let _0x124a49=!0x1;for(const _0x505f09 of _0x4e4711['model']['document']['differ']['getChanges']())if('insert'==_0x505f09['type']){if('tableRow'==_0x505f09['name']){for(const _0x11cca2 of _0x505f09['position']['nodeAfter']['getChildren']())_0x124a49=_0x124a49||_0x5244e4(_0x11cca2,_0x17d3dc);}else'tableCell'==_0x505f09['name']&&(_0x124a49=_0x124a49||_0x5244e4(_0x505f09['position']['nodeAfter'],_0x17d3dc));}return _0x124a49;});}['_getSuggestionCoords'](_0x3cc5a4){return this['_getCoordsForCells'](_0x3cc5a4['getRanges']()['map'](_0x176574=>_0x176574['start']['nodeAfter']));}}function Ne(_0x3748ff){return Array['from'](new Set(_0x3748ff)['values']());}class Ct extends _0x5d906a{static get['requires'](){return[_t];}['afterInit'](){const _0x32026a=this['editor'],_0x3d090d=_0x32026a['model']['document']['selection'],_0xb58baa=_0x32026a['locale'];if(!_0x32026a['plugins']['has']('TableEditing'))return;const _0x331ae0=_0x32026a['plugins']['get']('TrackChangesEditing'),_0x52b5fe=_0x32026a['plugins']['get']('TableUtils'),_0x342d67=_0x32026a['plugins']['get'](_t);_0x342d67['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x331ae0['enableCommand']('mergeTableCells',()=>{const _0x2cf2b8=_0x52b5fe['getSelectionAffectedTableCells'](_0x32026a['model']['document']['selection']);_0x32026a['model']['change'](()=>{_0x331ae0['markMultiRangeBlockFormat'](_0x2cf2b8,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x32026a['commands']['get']('mergeTableCells')['on']('execute',(_0xf2bbf7,_0x5df744)=>{_0x32026a['commands']['get']('trackChanges')['value']&&(_0x5df744['length']>0x0&&_0x5df744[_0x5df744['length']-0x1]&&_0x5df744[_0x5df744['length']-0x1]['forceDefaultExecution']||_0x331ae0['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0xf2bbf7['stop']());},{'priority':'highest'});for(const _0x21d37b of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x37feb3=_0x32026a['commands']['get'](_0x21d37b);_0x331ae0['enableCommand'](_0x21d37b,()=>{const _0x5bb477=_0x32026a['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4f3d87=>_0x4f3d87['is']('element','tableCell')),_0x5df50a=_0x37feb3['value'];_0x32026a['model']['change'](()=>{_0x331ae0['markMultiRangeBlockFormat']([_0x5bb477,_0x5df50a],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x31a026 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x10cf5d=_0x32026a['commands']['get'](_0x31a026);_0x331ae0['enableCommand'](_0x31a026,()=>{const _0x4b8965=_0x52b5fe['getSelectionAffectedTableCells'](_0x32026a['model']['document']['selection'])[0x0],_0x5b7c62=_0x4b8965['findAncestor']('table'),{column:_0x3f8c8a,row:_0x13f961}=_0x52b5fe['getCellLocation'](_0x4b8965);let _0x5b38cf=[];if('horizontally'==_0x10cf5d['direction']){const _0x83dc6e=_0x52b5fe['createTableWalker'](_0x5b7c62,{'startRow':_0x13f961,'endRow':_0x13f961,'includeAllSlots':!0x0});_0x5b38cf=Array['from'](_0x83dc6e)['map'](_0x1765e3=>_0x1765e3['cell']);}else{const _0x35674a=_0x52b5fe['createTableWalker'](_0x5b7c62,{'column':_0x3f8c8a,'includeAllSlots':!0x0});_0x5b38cf=Array['from'](_0x35674a)['map'](_0x413152=>_0x413152['cell']);}_0x32026a['model']['change'](_0x494c5a=>{_0x331ae0['markBlockFormat'](_0x494c5a['createRangeOn'](_0x4b8965),{'commandName':_0x31a026,'commandParams':[]},_0x5b38cf,_0x31a026);});});}_0x331ae0['descriptionFactory']['registerDescriptionCallback'](_0x3cc721=>{if('formatBlock'!=_0x3cc721['type']&&'formatInline'!=_0x3cc721['type'])return;const {data:_0x43cb75}=_0x3cc721;return _0x43cb75&&'mergeTableCells'==_0x43cb75['commandName']?{'type':'format','content':o(_0xb58baa,'*Merge\x20cells*')}:void 0x0;}),_0x331ae0['descriptionFactory']['registerDescriptionCallback'](_0x260bbc=>{if('formatBlock'!=_0x260bbc['type']&&'formatInline'!=_0x260bbc['type'])return;const {data:_0x15162f}=_0x260bbc;return _0x15162f?'splitTableCellVertically'==_0x15162f['commandName']?{'type':'format','content':o(_0xb58baa,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x15162f['commandName']?{'type':'format','content':o(_0xb58baa,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x253ea5=_0x342d67['_acceptFormatSuggestionCallbackFactory']();for(const _0x34dab2 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x331ae0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x34dab2,'accept',_0x253ea5);for(const _0xabcb3a of['splitTableCellVertically','splitTableCellHorizontally'])_0x331ae0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xabcb3a,'accept',_0x253ea5);_0x331ae0['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x9bc2a3=>{_0x32026a['model']['change'](_0x17f9cd=>{const _0x11f2d7=Array['from'](_0x3d090d['getRanges']())['map'](_0x46c31d=>_0x527bd9['fromRange'](_0x46c31d));_0x17f9cd['setSelection'](_0x9bc2a3),_0x32026a['commands']['get']('mergeTableCells')['refresh'](),_0x32026a['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5b1563=_0x11f2d7['filter'](_0x2d184a=>'$graveyard'!=_0x2d184a['root']['rootName']);_0x5b1563['length']>0x0&&_0x17f9cd['setSelection'](_0x5b1563);for(const _0x1b036a of _0x11f2d7)_0x1b036a['detach']();});});for(const _0x3f7498 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x387078=_0x32026a['commands']['get'](_0x3f7498);_0x387078['on']('set:isEnabled',(_0xf3235c,_0x2e9560,_0x566e13)=>{if(_0x566e13){const _0x46e47d=_0x32026a['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x195ce9=>_0x195ce9['is']('element','tableCell'));this['_areMergableCells'](_0x387078['value'],_0x46e47d)||(_0xf3235c['return']=!0x1,_0xf3235c['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x4ea30f=this['editor']['commands']['get']('mergeTableCells'),_0x4ad183=this['editor']['plugins']['get']('TableUtils');if(!_0x4ea30f['isEnabled'])return!0x1;const _0x75020d=_0x4ad183['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3a914e of _0x75020d)for(const _0x12d15e of _0x75020d)if(_0x3a914e!=_0x12d15e&&!this['_areMergableCells'](_0x3a914e,_0x12d15e))return!0x1;return!0x0;}['_areMergableCells'](_0x3626db,_0x2c4ac7){const _0x4aa32b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x50b1c3=this['editor']['model']['createRangeOn'](_0x3626db),_0x5826e8=this['editor']['model']['createRangeOn'](_0x2c4ac7),_0x2b00d9=new Set(),_0x34dd33=new Set();for(const _0x30cbc3 of _0x4aa32b['getSuggestions']())if(('insertion'==_0x30cbc3['type']||'deletion'==_0x30cbc3['type']||'mergeTableCells'==_0x30cbc3['subType'])&&_0x30cbc3['isInContent']){for(const _0x3b8731 of _0x30cbc3['getRanges']())_0x3b8731['containsRange'](_0x50b1c3,!0x0)&&_0x2b00d9['add'](_0x30cbc3['type']+':'+_0x30cbc3['author']['id']),_0x3b8731['containsRange'](_0x5826e8,!0x0)&&_0x34dd33['add'](_0x30cbc3['type']+':'+_0x30cbc3['author']['id']);}if(_0x2b00d9['size']!=_0x34dd33['size'])return!0x1;for(const _0xe4a208 of _0x2b00d9)if(!_0x34dd33['has'](_0xe4a208))return!0x1;return!0x0;}}class vt extends _0x5d906a{static get['requires'](){return[_t];}['afterInit'](){const _0x3d479a=this['editor'];if(!_0x3d479a['plugins']['has']('TableEditing'))return;const _0x1ef5ed=_0x3d479a['locale'],_0x2bb622=_0x3d479a['plugins']['get']('TrackChangesEditing');_0x2bb622['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x2bb622['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x2bb622['registerBlockAttribute']('headingRows'),_0x2bb622['registerBlockAttribute']('headingColumns'),_0x2bb622['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x1ef5ed,'FORMAT_HEADER_ROW')),_0x2bb622['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x1ef5ed,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x31f930=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2b7bd9=this['editor']['plugins']['get']('TableUtils'),_0x3d7ea9=this['editor']['plugins']['get'](_t)['_acceptFormatSuggestionCallbackFactory']();function _0x3a4f89({showActiveMarker:_0x5ed092=!0x0,setDataAttribute:_0x2b0ffd=!0x0}={}){return(_0x5ad79c,_0x413bc9,_0x5eabea)=>{const {type:_0xb73b9e,id:_0x2917aa}=_0x31f930['_splitMarkerName'](_0x413bc9['markerName']),_0x5c5662=_0x31f930['getSuggestion'](_0x2917aa),_0x34a1c6=_0x5c5662['data'];if('formatBlock'!=_0x5c5662['type']||!_0x34a1c6||'setTableColumnHeader'!=_0x34a1c6['commandName'])return;if(_0x413bc9['item'])return void _0x5ad79c['stop']();if(!_0x5eabea['consumable']['consume'](_0x413bc9['markerRange'],_0x5ad79c['name']))return;const _0x53bfd0=_0x413bc9['markerRange']['start']['nodeAfter'],_0x6c24ad=_0x413bc9['markerRange']['end']['nodeBefore'],_0x2b2ad6=_0x53bfd0['parent']['parent'],{column:_0x6f8f77}=_0x2b7bd9['getCellLocation'](_0x53bfd0),{column:_0x3561c8}=_0x2b7bd9['getCellLocation'](_0x6c24ad);for(let _0x487e6c=_0x6f8f77;_0x487e6c<=_0x3561c8;_0x487e6c++){const _0x1de697=_0x2b7bd9['createTableWalker'](_0x2b2ad6,{'column':_0x487e6c,'includeAllSlots':!0x1});for(const _0x2ddefc of _0x1de697){const _0x485790=_0x2ddefc['cell'],_0x7061a6=_0x5eabea['mapper']['toViewElement'](_0x485790);_0x5eabea['writer']['addClass']('ck-suggestion-marker-'+_0xb73b9e,_0x7061a6),_0x2b0ffd&&_0x5eabea['writer']['setAttribute']('data-suggestion',_0x2917aa,_0x7061a6),_0x5eabea['mapper']['bindElementToMarker'](_0x7061a6,_0x413bc9['markerName']),_0x5ed092&&(_0x31f930['activeMarkers']['includes'](_0x413bc9['markerName'])?_0x5eabea['writer']['addClass']('ck-suggestion-marker--active',_0x7061a6):_0x5eabea['writer']['removeClass']('ck-suggestion-marker--active',_0x7061a6));}}};}_0x31f930['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x3d7ea9),_0x31f930['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x3d7ea9),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3a4f89(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x51af2d,_0x3871f2,_0x3cdcf7)=>{_0x3cdcf7['options']['showSuggestionHighlights']&&_0x3a4f89({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x51af2d,_0x3871f2,_0x3cdcf7);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4763bc,_0x51e252,_0x2461ea)=>{const {type:_0x49dc2f,id:_0x24389a}=_0x31f930['_splitMarkerName'](_0x51e252['markerName']),_0x3e6e9c=_0x31f930['getSuggestion'](_0x24389a),_0x175e8b=_0x3e6e9c['data'];if('formatBlock'!=_0x3e6e9c['type']||!_0x175e8b||'setTableColumnHeader'!=_0x175e8b['commandName'])return;const _0x51ca2=_0x2461ea['mapper']['markerNameToElements'](_0x51e252['markerName']);if(_0x51ca2){for(const _0x4a9a84 of _0x51ca2)_0x2461ea['writer']['removeClass']('ck-suggestion-marker-'+_0x49dc2f,_0x4a9a84),_0x2461ea['writer']['removeClass']('ck-suggestion-marker--active',_0x4a9a84),_0x2461ea['writer']['removeAttribute']('data-suggestion',_0x4a9a84),_0x2461ea['mapper']['unbindElementFromMarkerName'](_0x4a9a84,_0x51e252['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c2e0c=this['editor'],_0xaf70c6=_0x4c2e0c['locale'];function _0x3a776f(_0x2b37e6){return{'type':'format','content':o(_0xaf70c6,'*Format:*\x20%0',_0x2b37e6)};}_0x4c2e0c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x852cf3=>{if('formatBlock'!=_0x852cf3['type'])return;const {data:_0x5949a6}=_0x852cf3;if(_0x5949a6){if('setTableRowHeader'==_0x5949a6['commandName']){const _0x1c79f2=_0x5949a6['commandParams'][0x0]['forceValue'];return _0x3a776f(o(_0xaf70c6,_0x1c79f2?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x5949a6['commandName']){const _0x159039=_0x5949a6['commandParams'][0x0]['forceValue'];return _0x3a776f(o(_0xaf70c6,_0x159039?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Nt extends _0x5d906a{['afterInit'](){const _0x318659=this['editor'],_0x3e6800=_0x318659['locale'],_0x378899=_0x318659['plugins']['get']('TrackChangesEditing');function _0x5e8334(_0x47160f){return{'type':'format','content':''+o(_0x3e6800,'*Set\x20table\x20type:*\x20%0',_0x47160f)};}_0x318659['plugins']['has']('TableLayout')&&(_0x378899['enableCommand']('insertTableLayout'),_0x378899['enableDefaultAttributesIntegration']('tableType'),_0x378899['registerBlockAttribute']('tableType'),_0x378899['descriptionFactory']['registerElementLabel'](_0x43319c=>_0x43319c['is']('element','table')&&'layout'===_0x43319c['getAttribute']('tableType'),_0xa6e038=>o(_0x3e6800,'ELEMENT_LAYOUT_TABLE',_0xa6e038)),_0x378899['descriptionFactory']['registerDescriptionCallback'](_0x5084a7=>{const {data:_0x2f044c}=_0x5084a7;if(_0x2f044c&&'tableType'==_0x2f044c['key'])switch(_0x2f044c['newValue']){case'layout':return _0x5e8334(o(_0x3e6800,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x5e8334(o(_0x3e6800,'ELEMENT_CONTENT_TABLE'));}}));}}const xe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Oe=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](xe['map'](_0x1c31ec=>[_0x1c31ec,null]));class Dt extends _0x5d906a{static get['requires'](){return[_t];}['afterInit'](){const _0x58b466=this['editor'];if(!_0x58b466['plugins']['has']('TableClipboard'))return;const _0x3cb350=_0x58b466['plugins']['get']('TrackChangesEditing'),_0x3becf3=_0x58b466['plugins']['get']('TableUtils'),_0x4eb1d4=_0x58b466['plugins']['get'](_t),_0x1941bd=_0x58b466['plugins']['get']('TableClipboard'),_0x5bdba9=_0x58b466['plugins']['get']('TableSelection'),_0x350dba=_0x58b466['plugins']['get'](_0x411592);_0x4eb1d4['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x58b466['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x58b466['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1a7ed7=null,_0x2032ba=!0x1;_0x350dba['on']('contentInsertion',(_0x1c158f,_0x2d238b)=>{_0x2032ba='paste'===_0x2d238b['method'];}),_0x58b466['model']['on']('insertContent',(_0x3cf7fa,_0x457b7f)=>{if(!_0x2032ba&&null===_0x5bdba9['getSelectedTableCells']())return;const [_0x2c1219,_0x4f9aaa]=_0x457b7f,_0x193862=_0x457b7f[_0x457b7f['length']-0x1];_0x193862&&_0x193862['forceDefaultExecution']||_0x3cb350['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x3af82a,_0x401fa3,_0x5326ee,_0x2d3b46,_0x5eb5e7){if(_0x401fa3&&!_0x401fa3['is']('documentSelection'))return!0x1;const _0x173abf=_0x5eb5e7['getTableIfOnlyTableInContent'](_0x3af82a,_0x5326ee);if(!_0x173abf||!De(_0x173abf,void 0x0,_0x2d3b46))return!0x1;const _0x3c5f3d=_0x2d3b46['getSelectionAffectedTableCells'](_0x5326ee['document']['selection']);if(!_0x3c5f3d['length'])return!0x1;const _0x460647=_0x3c5f3d[0x0]['findAncestor']('table'),_0x3476f4=_0x2d3b46['getRowIndexes'](_0x3c5f3d),_0x3b0151=_0x2d3b46['getColumnIndexes'](_0x3c5f3d),_0x344934={'startRow':_0x3476f4['first'],'endRow':_0x3476f4['last'],'startColumn':_0x3b0151['first'],'endColumn':_0x3b0151['last']};return 0x1==_0x3c5f3d['length']&&(_0x344934['endRow']+=_0x2d3b46['getRows'](_0x173abf)-0x1,_0x344934['endColumn']+=_0x2d3b46['getColumns'](_0x173abf)-0x1),De(_0x460647,_0x344934,_0x2d3b46);}(_0x2c1219,_0x4f9aaa,_0x58b466['model'],_0x3becf3,_0x1941bd)&&(_0x3cf7fa['stop'](),_0x1a7ed7={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x58b466['model']['change'](()=>{_0x58b466['model']['insertContent'](_0x457b7f[0x0],_0x457b7f[0x1],_0x457b7f[0x2],{'forceDefaultExecution':!0x0});const _0x161e6a=_0x4fc05b(),{rowInsertionRanges:_0x2e033a,columnInsertionRanges:_0xc09f80,insertionRanges:_0x28ccd8,deletionRanges:_0x117d9e,cells:_0x7284cd}=_0x1a7ed7;_0x2e033a['length']&&_0x3cb350['markMultiRangeInsertion'](_0x2e033a,'tablePasteRow',{'tablePasteChainId':_0x161e6a}),_0xc09f80['length']&&_0x3cb350['markMultiRangeInsertion'](_0xc09f80,'tablePasteColumn',{'tablePasteChainId':_0x161e6a}),_0x28ccd8['length']&&(_0x3cb350['markMultiRangeInsertion'](_0x28ccd8,'tablePaste',{'tablePasteChainId':_0x161e6a,'skipNestingCheck':!0x0}),_0x28ccd8['forEach'](_0x5b3295=>_0x5b3295['detach']?.())),_0x117d9e['length']&&(_0x3cb350['markMultiRangeDeletion'](_0x117d9e,'tablePaste',{'tablePasteChainId':_0x161e6a,'skipNestingCheck':!0x0}),_0x117d9e['forEach'](_0x3f0b6c=>_0x3f0b6c['detach']?.()));const _0x4cf877=_0x3cb350['markMultiRangeBlockFormat'](_0x7284cd['map'](({element:_0x1d1701})=>_0x1d1701),{'formatGroupId':_0x4fc05b()},[],'tablePasteCell',{'tablePasteChainId':_0x161e6a});if(_0x4cf877){const _0x31c169=_0x4cf877['getMarkers'](),_0x5a0d84=[];for(const {element:_0x1d3767,attributes:_0x2f6362}of _0x7284cd){if(!_0x2f6362)continue;const _0x46c6a3=_0x58b466['model']['createRangeOn'](_0x1d3767),_0x5c4420=_0x31c169['find'](_0xe7b228=>_0xe7b228['getRange']()['isEqual'](_0x46c6a3));_0x5c4420&&_0x5a0d84['push']([_0x5c4420['name'],_0x2f6362]);}_0x5a0d84['length']&&_0x4cf877['setAttribute']('markerAttributes',Object['fromEntries'](_0x5a0d84));}_0x1a7ed7=null;}));},{'priority':_0x3f1657['high']+0xa}),_0x350dba['on']('contentInsertion',()=>{_0x2032ba=!0x1;},{'priority':'lowest'}),_0x58b466['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0xaf1b20,_0x5f2600)=>{const [_0x3e5507,_0x173b3d,,_0x35804e]=_0x5f2600;if(!_0x1a7ed7)return;_0xaf1b20['stop']();const _0xca8667=_0x3e5507['cell'],_0x1c619d=_0x173b3d,_0x377892=Ue(_0xca8667),_0x47a8b8=Ue(_0x1c619d);_0xaf1b20['return']=_0xca8667;let _0x8f0c93=null,_0x100f0f=null;if(_0x47a8b8||_0x377892){if(_0x377892&&!_0x47a8b8){_0x35804e['remove'](_0xca8667['getChild'](0x0));for(const _0x411153 of Array['from'](_0x1c619d['getChildren']()))_0x35804e['insert'](_0x411153,_0xca8667,'end');const _0x17c07f=_0x1a7ed7['rowInsertionIndexes']['includes'](_0x3e5507['row']),_0x478ee4=_0x1a7ed7['columnInsertionIndexes']['includes'](_0x3e5507['column']);_0x17c07f||_0x478ee4||(_0x8f0c93=_0x527bd9['fromRange'](_0x35804e['createRangeIn'](_0xca8667)));}else _0x47a8b8&&!_0x377892&&(_0x100f0f=_0x35804e['createRangeIn'](_0xca8667));}else{const _0x21da86=_0x35804e['createElement']('tableCellSuggestion'),_0x5e0e01=_0x35804e['createElement']('tableCellSuggestion');_0x35804e['wrap'](_0x35804e['createRangeIn'](_0xca8667),_0x5e0e01),_0x35804e['insert'](_0x21da86,_0xca8667,0x0);for(const _0x4af269 of Array['from'](_0x1c619d['getChildren']()))_0x35804e['insert'](_0x4af269,_0x21da86,'end');_0x8f0c93=_0x527bd9['fromRange'](_0x35804e['createRangeOn'](_0x21da86)),_0x100f0f=_0x527bd9['fromRange'](_0x35804e['createRangeOn'](_0x5e0e01));}const _0x1e71f5=Array['from'](_0x1c619d['getAttributes']())['filter'](([_0x3ea58c])=>xe['includes'](_0x3ea58c));_0x1a7ed7['cells']['push']({'element':_0xca8667,'attributes':_0x1e71f5['length']?Object['fromEntries'](_0x1e71f5):null}),_0x8f0c93&&_0x1a7ed7['insertionRanges']['push'](_0x8f0c93),_0x100f0f&&_0x1a7ed7['deletionRanges']['push'](_0x100f0f);},{'priority':'high'}),_0x3becf3['on']('insertColumns',(_0x22d862,_0x469070)=>{const [_0x1ec1cc,_0x447b17={}]=_0x469070;if(!_0x1a7ed7)return;const _0x48d481=_0x447b17['at']||0x0,_0x3cbd18=_0x447b17['columns']||0x1;_0x1a7ed7['columnInsertionIndexes']=new Array(_0x3cbd18)['fill'](_0x48d481)['map']((_0x107612,_0x56c128)=>_0x107612+_0x56c128);for(const {cell:_0x2acc4a}of _0x3becf3['createTableWalker'](_0x1ec1cc,{'startColumn':_0x48d481,'endColumn':_0x48d481+_0x3cbd18-0x1}))_0x1a7ed7['columnInsertionRanges']['push'](_0x58b466['model']['createRangeOn'](_0x2acc4a));},{'priority':'low'}),_0x3becf3['on']('insertRows',(_0x4f503c,_0x107446)=>{const [_0x2af366,_0x4cadf8={}]=_0x107446;if(!_0x1a7ed7)return;const _0x5852c9=_0x4cadf8['at']||0x0,_0xa44aa4=_0x4cadf8['rows']||0x1;_0x1a7ed7['rowInsertionIndexes']=new Array(_0xa44aa4)['fill'](_0x5852c9)['map']((_0x21a165,_0x22011b)=>_0x21a165+_0x22011b);for(const {cell:_0x461251}of _0x3becf3['createTableWalker'](_0x2af366,{'startRow':_0x5852c9,'endRow':_0x5852c9+_0xa44aa4-0x1}))_0x1a7ed7['rowInsertionRanges']['push'](_0x58b466['model']['createRangeOn'](_0x461251));},{'priority':'low'}),_0x3cb350['descriptionFactory']['registerDescriptionCallback'](_0x4663c8=>{if(_0x4663c8['subType']&&_0x4663c8['subType']['startsWith']('tablePaste'))return _0x4663c8['previous']?{}:{'type':'insertion','content':o(_0x58b466['locale'],'*Replace\x20table\x20cells*')};});const _0x57fe5a=()=>!0x1;for(const _0x390129 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x3cb350['_suggestionFactory']['registerCustomCallback']('insertion',_0x390129,'join',_0x57fe5a),_0x3cb350['_suggestionFactory']['registerCustomCallback']('deletion',_0x390129,'join',_0x57fe5a),_0x3cb350['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x390129,'join',_0x57fe5a);_0x3cb350['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x57fe5a),_0x3cb350['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x28f33d,_0x4f5967,_0x1dd36c)=>{const _0x4f277a=_0x28f33d['map'](_0x3f3996=>_0x3f3996['getContainedElement']())['filter'](_0x3bb167=>_0x3bb167),_0x282a98=new Map(_0x4f277a['map'](_0x386201=>[_0x386201,null]));if(_0x1a7ed7){for(const {element:_0x26aa90,attributes:_0x1282f6}of _0x1a7ed7['cells'])_0x1282f6&&_0x282a98['set'](_0x26aa90,_0x1282f6);}else{if(_0x1dd36c&&_0x1dd36c['markerAttributes'])for(const [_0x6985d6,_0x51cd26]of Object['entries'](_0x1dd36c['markerAttributes'])){const _0x1fd076=_0x58b466['model']['markers']['get'](_0x6985d6),_0x2507d5=_0x1fd076?_0x1fd076['getRange']()['getContainedElement']():null;_0x2507d5&&_0x282a98['set'](_0x2507d5,_0x51cd26);}}_0x58b466['model']['change'](_0x239201=>{for(const [_0x18d1f3,_0x193280]of _0x282a98)_0x239201['setAttributes']({...Oe,..._0x193280},_0x18d1f3);});});const _0x5599f4=(_0xc6a1d8,_0x3f2a37)=>{_0x3cb350['_suggestionFactory']['registerCustomCallback'](_0xc6a1d8,'tablePaste',_0x3f2a37,(_0x104fde,_0x2e870f,_0x2de5c9)=>{_0x58b466['model']['change'](_0xf3da45=>{const _0x4546bf=[];for(const _0x37d533 of _0x104fde){const _0x387ca9=_0x37d533['start']['nodeAfter'];_0x387ca9['is']('element','tableCellSuggestion')&&_0x4546bf['push'](_0x387ca9);}_0x3cb350['_suggestionFactory']['getSuggestionCallback'](_0xc6a1d8,null,_0x3f2a37)(_0x104fde,_0x2e870f,_0x2de5c9);for(const _0x359b7a of _0x4546bf)'$graveyard'!=_0x359b7a['root']['rootName']&&_0xf3da45['unwrap'](_0x359b7a);});});};_0x5599f4('insertion','accept'),_0x5599f4('insertion','discard'),_0x5599f4('deletion','accept'),_0x5599f4('deletion','discard'),_0x3cb350['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x4f76b0=>{const _0x48604f=_0x4f76b0['map'](_0x3f8c4b=>_0x3f8c4b['getContainedElement']()),_0x59e0b2=_0x48604f[0x0]['findAncestor']('table'),{minRow:_0x57d782,maxRow:_0x5874bf}=_0x4eb1d4['_getCoordsForCells'](_0x48604f);_0x3becf3['removeRows'](_0x59e0b2,{'at':_0x57d782,'rows':_0x5874bf-_0x57d782+0x1});}),_0x3cb350['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x8eeee5=>{const _0x3a995f=_0x8eeee5['map'](_0x5745c2=>_0x5745c2['getContainedElement']()),_0x97663b=_0x3a995f[0x0]['findAncestor']('table'),{minColumn:_0x36877b,maxColumn:_0x2f0bdc}=_0x4eb1d4['_getCoordsForCells'](_0x3a995f);_0x3becf3['removeColumns'](_0x97663b,{'at':_0x36877b,'columns':_0x2f0bdc-_0x36877b+0x1});});const _0x396d4d=(_0x3a3491,_0x3a6591)=>{if(!_0x3a6591['subType']||!_0x3a6591['subType']['startsWith']('tablePaste'))return;const _0x1e1f8b=_0x3a6591['attributes']['tablePasteChainId'],_0x23592b=_0x3cb350['getSuggestions']()['filter'](_0x1b8f39=>_0x1b8f39['isInContent']&&_0x1b8f39['attributes']&&_0x1b8f39['attributes']['tablePasteChainId']==_0x1e1f8b);_0x23592b['length']&&_0x3a6591['getAllAdjacentSuggestions']()['length']!=_0x23592b['length']&&_0x23592b['reduce']((_0x141ed2,_0x1b28ac)=>(_0x141ed2['next']=_0x1b28ac,_0x1b28ac['previous']=_0x141ed2,_0x1b28ac));};function _0x348322(_0x15d355,_0x3b3b00=!0x0){const {id:_0x2d6812,authorId:_0x591329}=_0x3cb350['_splitMarkerName'](_0x15d355['markerName']),_0x533737=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x422800=_0x3cb350['activeMarkers']['includes'](_0x15d355['markerName']);return _0x422800&&_0x533737['push']('ck-suggestion-marker--active'),{'classes':_0x533737,'attributes':{'data-suggestion':_0x2d6812,'data-author-id':_0x591329},'priority':_0x422800&&_0x3b3b00?0xbc2:0xbb8};}_0x3cb350['on']('suggestionLoaded',_0x396d4d,{'priority':'high'}),_0x3cb350['on']('suggestionUnloaded',_0x396d4d,{'priority':'high'}),_0x58b466['model']['document']['registerPostFixer'](()=>{let _0x21a510=!0x1;const _0x19137d=Array['from'](_0x58b466['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x310b3e,data:_0x40e06b}of _0x19137d){const {group:_0x428129,type:_0x1e83e,id:_0x2fc673}=_0x3cb350['_splitMarkerName'](_0x310b3e);if('suggestion'!=_0x428129||'deletion'!=_0x1e83e||_0x40e06b['oldRange'])continue;if(!_0x3cb350['hasSuggestion'](_0x2fc673))continue;const _0x335c11=_0x3cb350['getSuggestion'](_0x2fc673)['getRanges'](),_0xadfe3f=_0x58b466['plugins']['get']('Users')['me'];for(const _0x3da8e1 of _0x3cb350['getSuggestions']()){if(!_0x3da8e1['isInContent']||_0x3da8e1['author']!=_0xadfe3f)continue;if('formatBlock'!=_0x3da8e1['type']||'tablePasteCell'!=_0x3da8e1['subType'])continue;if(_0x3da8e1['getRanges']()['every'](_0x41bd7c=>_0x335c11['some'](_0x4559b6=>_0x4559b6['containsRange'](_0x41bd7c,!0x0)))){for(const _0x1dba35 of _0x3da8e1['getAllAdjacentSuggestions']())_0x1dba35['isInContent']&&(_0x1dba35['discard'](),_0x21a510=!0x0);}}}return _0x21a510;}),_0x58b466['model']['document']['registerPostFixer'](_0x32eab3=>{const _0x1367ad=_0x58b466['commands']['get']('redo');if(!_0x1367ad||!_0x1367ad['_createdBatches']['has'](_0x32eab3['batch']))return!0x1;let _0x3f10d3=!0x1;const _0x3f775a=_0x58b466['plugins']['get']('Users')['me'],_0x4227e5=_0x58b466['model']['document']['differ']['getChanges'](),_0x44c38d=Array['from'](_0x58b466['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x560e0d,data:_0x3209b2})=>{const {group:_0x2c6886,subType:_0x4381d4,authorId:_0x2e63f4}=_0x3cb350['_splitMarkerName'](_0x560e0d);return'suggestion'==_0x2c6886&&'tablePaste'==_0x4381d4&&_0x2e63f4==_0x3f775a['id']&&!_0x3209b2['oldRange'];});for(const _0x3b3507 of _0x4227e5){if('insert'!=_0x3b3507['type']||'tableCellSuggestion'!=_0x3b3507['name']||0x1!=_0x3b3507['length'])continue;const _0x300846=_0x32eab3['createRange'](_0x3b3507['position'],_0x3b3507['position']['getShiftedBy'](0x1));if(!_0x44c38d['find'](({data:_0x18cff1})=>_0x18cff1['newRange']['isEqual'](_0x300846))){for(const {name:_0x11ed11,data:_0x2eaffa}of _0x44c38d)if(_0x300846['containsRange'](_0x2eaffa['newRange'])){_0x32eab3['updateMarker'](_0x11ed11,{'range':_0x300846}),_0x3f10d3=!0x0;break;}}}return _0x3f10d3;}),_0x58b466['model']['document']['registerPostFixer'](_0xd6bb16=>{let _0x31ecf1=!0x1;const _0x4e2506=_0x58b466['plugins']['get']('Users')['me'],_0x3ddd08=_0x3cb350['getSuggestions']()['filter'](_0x1e5a8e=>_0x1e5a8e['isInContent']&&_0x1e5a8e['author']==_0x4e2506),_0x103667=new Set(),_0x745345=new Set();for(const _0x4bcd4a of _0x3ddd08)if('tablePaste'==_0x4bcd4a['subType'])for(const _0xb2e59a of _0x4bcd4a['getMarkers']()){const _0x2f323e=_0xb2e59a['getRange']()['getContainedElement']();if(_0x2f323e){if(_0x2f323e['is']('element','tableCellSuggestion')&&Ue(_0x2f323e)){_0x4bcd4a['removeMarker'](_0xb2e59a['name']),_0x103667['add'](_0x2f323e),_0x31ecf1=!0x0;const _0x7d4dcd=_0x2f323e['nextSibling'],_0x39b06c=_0x2f323e['previousSibling'],_0x1631cf=_0x7d4dcd&&_0x7d4dcd['is']('element','tableCellSuggestion'),_0x1a685c=_0x39b06c&&_0x39b06c['is']('element','tableCellSuggestion');_0x1631cf&&!_0x103667['has'](_0x7d4dcd)&&_0x745345['add'](_0x7d4dcd),_0x1a685c&&!_0x103667['has'](_0x39b06c)&&_0x745345['add'](_0x39b06c);}else _0x2f323e['is']('element','paragraph')&&_0x2f323e['isEmpty']&&(_0x4bcd4a['removeMarker'](_0xb2e59a['name']),_0x31ecf1=!0x0);}}else{if('tablePasteCell'==_0x4bcd4a['subType']){if(!_0x4bcd4a['attributes']||!_0x4bcd4a['attributes']['tablePasteChainId'])continue;const _0x42b0dc=_0x4bcd4a['attributes']['markerAttributes'];if(_0x42b0dc&&Object['keys'](_0x42b0dc)['length'])continue;const _0x2e4bef=_0x4bcd4a['attributes']['tablePasteChainId'];let _0x4f5c58=!0x0,_0x29ef4b=!0x0;for(const _0x453f86 of _0x3ddd08)if(_0x453f86['subType']&&_0x453f86['subType']['startsWith']('tablePaste')){if(!_0x453f86['attributes']['tablePasteChainId']){_0x29ef4b=!0x1;break;}if(_0x453f86['id']!=_0x4bcd4a['id']&&_0x453f86['attributes']['tablePasteChainId']==_0x2e4bef){_0x4f5c58=!0x1;break;}}_0x29ef4b&&_0x4f5c58&&(_0x4bcd4a['removeMarkers'](),_0x31ecf1=!0x0);}}for(const _0x56dcaa of _0x103667)_0xd6bb16['remove'](_0x56dcaa);for(const _0x385d30 of _0x745345)_0xd6bb16['unwrap'](_0x385d30);return _0x31ecf1;}),_0x58b466['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x108dba=>_0x348322(_0x108dba),'converterPriority':'high'}),_0x58b466['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x296b3d,_0x66677a)=>_0x66677a['options']['showSuggestionHighlights']?_0x348322(_0x296b3d,!0x1):null,'converterPriority':'high'});const _0x388fa1=_0x58b466['editing']['view'];this['listenTo'](_0x388fa1['document'],'clipboardOutput',(_0x44af87,_0x3e2d5f)=>{const _0x192cd0=[];for(const _0x1a6274 of _0x388fa1['createRangeIn'](_0x3e2d5f['content'])['getItems']())_0x1a6274['is']('element','suggestion-td')&&_0x192cd0['push'](_0x1a6274);_0x388fa1['change'](_0x17a86d=>{for(const _0x249637 of _0x192cd0)_0x17a86d['move'](_0x17a86d['createRangeIn'](_0x249637),_0x17a86d['createPositionBefore'](_0x249637)),_0x17a86d['remove'](_0x249637);});});}}function Ue(_0x4d6ac8){if(_0x4d6ac8['isEmpty'])return!0x0;const _0xfe9edc=_0x4d6ac8['getChild'](0x0);return _0xfe9edc['is']('element','paragraph')&&_0xfe9edc['isEmpty'];}function De(_0x289124,_0x413475={},_0x3af63f){for(const {isAnchor:_0x15e258,cellHeight:_0x2f8bd8,cellWidth:_0x188d8d}of _0x3af63f['createTableWalker'](_0x289124,{'includeAllSlots':!0x0,..._0x413475}))if(!_0x15e258||0x1!=_0x2f8bd8||0x1!=_0x188d8d)return!0x1;return!0x0;}class Mt extends _0x5d906a{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x33ebab=this['editor']['plugins']['get']('TrackChangesEditing');_0x33ebab['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x33ebab['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x33ebab['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x33ebab['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x33ebab['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x33ebab['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x22ecac,_0x21f526){const _0x1ee60e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5c834d=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4f0b48=_0x21f526['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x55eecc=_0x5c834d['getColumnGroupElement'](_0x4f0b48);let _0x3e91cc=_0x55eecc?_0x5c834d['getTableColumnsWidths'](_0x55eecc):null,_0x11bd17=_0x4f0b48['getAttribute']('tableWidth')||null;const _0x2449b8=_0x21f526['tableWidth']||_0x11bd17,_0x31bd0c=_0x21f526['columnWidths']||_0x3e91cc,_0x303cd2=this['editor']['plugins']['get']('Users')['me'];for(const _0x5738fa of _0x1ee60e['getSuggestions']()){const _0x380637=_0x5738fa['getContainedElement']();if('resizeTable'===_0x5738fa['subType']&&_0x380637===_0x4f0b48){_0x5738fa['author']!==_0x303cd2&&_0x5738fa['discard']();const _0x254322=_0x5738fa['data']['commandParams'];_0x11bd17=_0x254322[0x0]['tableWidth'],_0x3e91cc=_0x254322[0x0]['columnWidths'];break;}}_0x22ecac({'table':_0x4f0b48,'tableWidth':_0x2449b8,'columnWidths':_0x31bd0c}),_0x1ee60e['markBlockFormat'](_0x4f0b48,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x11bd17,'columnWidths':_0x3e91cc}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x361ee2){if('formatBlock'!=_0x361ee2['type']&&'formatInline'!=_0x361ee2['type'])return;const {data:_0xca5930}=_0x361ee2;if(_0xca5930&&'resizeTable'===_0xca5930['formatGroupId']){const _0x42f9d4='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x42f9d4)};}}}class $t extends _0x5d906a{['afterInit'](){const _0x1a896d=this['editor'];_0x1a896d['plugins']['has']('Template')&&_0x1a896d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Bt extends _0x5d906a{['afterInit'](){const _0x56f641=this['editor'];if(!_0x56f641['commands']['get']('insertTableOfContents'))return;_0x56f641['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x48e47c=_0x56f641['plugins']['get']('TrackChangesEditing'),_0x2e9966=_0x56f641['locale'];_0x48e47c['descriptionFactory']['registerElementLabel']('tableOfContents',_0x51f160=>o(_0x2e9966,'ELEMENT_TABLE_OF_CONTENTS',_0x51f160));}}class Tt extends _0x5d906a{['afterInit'](){const _0x5e778f=this['editor'];if(!_0x5e778f['plugins']['has']('Title'))return;const _0x36d4ce=_0x5e778f['plugins']['get']('TrackChangesEditing');_0x36d4ce['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x5e778f['locale'],'ELEMENT_TITLE')),_0x5e778f['model']['document']['registerPostFixer'](_0x13a353=>{let _0x66ee58=!0x1;const _0x56021a=Array['from'](_0x5e778f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x49ed00,data:_0x69c744}of _0x56021a){const {group:_0x6bbf61}=_0x36d4ce['_splitMarkerName'](_0x49ed00);if('suggestion'!==_0x6bbf61||!_0x69c744['newRange'])continue;const _0x4aff4c=_0x69c744['newRange'],_0x550c5a=_0x4aff4c['end']['nodeBefore'];if(!_0x550c5a||!_0x550c5a['is']('element','title-content'))continue;if(!_0x4aff4c['start']['isTouching'](_0x4aff4c['end']))continue;const _0x5030ab=_0x5e778f['model']['schema']['getNearestSelectionRange'](_0x4aff4c['end'],'forward');if(_0x5030ab&&_0x5030ab['isCollapsed']){const _0x3c80e6=_0x13a353['createRange'](_0x4aff4c['start'],_0x5030ab['start']);_0x3c80e6['isEqual'](_0x4aff4c)||(_0x13a353['updateMarker'](_0x49ed00,{'range':_0x3c80e6}),_0x66ee58=!0x0);}_0x66ee58||(_0x13a353['removeMarker'](_0x49ed00),_0x66ee58=!0x0);}return _0x66ee58;});}}class xt extends _0x5d906a{['afterInit'](){const _0x5ce5ac=this['editor'],_0x3e0023=_0x5ce5ac['plugins']['get']('TrackChangesEditing');_0x5ce5ac['plugins']['has']('Uploadcare')&&(_0x3e0023['enableCommand']('uploadcare'),_0x5ce5ac['plugins']['has']('UploadcareImageEdit')&&(_0x3e0023['enableCommand']('uploadcareImageEdit'),_0x3e0023['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x3e0023['registerBlockAttribute']('uploadcareImageId'),_0x3e0023['descriptionFactory']['registerDescriptionCallback'](_0x1babc6=>{if('attribute'!=_0x1babc6['type'])return;const {data:_0x5d15f6}=_0x1babc6;return _0x5d15f6&&'uploadcareImageId'==_0x5d15f6['key']?{'type':'format','content':''}:void 0x0;})));}}class Ot extends _0x5d906a{['afterInit'](){const _0x52393b=this['editor'],_0x473b3a=_0x52393b['plugins']['get']('TrackChangesEditing');_0x52393b['plugins']['has']('UndoEditing')&&(_0x473b3a['enableCommand']('undo'),_0x473b3a['enableCommand']('redo'));}}class Rt extends _0x5d906a{static get['requires'](){return[_t];}['afterInit'](){const _0x104974=this['editor'];if(!_0x104974['plugins']['has']('TableCaptionEditing'))return;_0x104974['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x5d906a{['tableProperties'];['tableCellProperties'];constructor(_0x2113f6){super(_0x2113f6),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 _0x268e33=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x47f6de of this['tableProperties'])_0x268e33['enableCommand'](_0x47f6de,(_0x577cbd,_0x749922)=>{const _0x5df080=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x47f6de,[_0x5df080],this['tableProperties'],'tableProperties',_0x577cbd,_0x749922);});_0x268e33['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x268e33['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x268e33['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2f24a7,_0x371ec0)=>this['handleDiscardAction'](this['tableProperties'],_0x2f24a7,_0x371ec0)),_0x268e33['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x13d3a7 of this['tableCellProperties'])_0x268e33['enableCommand'](_0x13d3a7,(_0x534f59,_0x1c9bab)=>{const _0x3763df=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x13d3a7,_0x3763df,this['tableCellProperties'],'tableCellProperties',_0x534f59,_0x1c9bab);});_0x268e33['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x268e33['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x268e33['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x210986,_0x442f78)=>this['handleDiscardAction'](this['tableCellProperties'],_0x210986,_0x442f78)),_0x268e33['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x268e33['descriptionFactory']['registerDescriptionCallback'](_0x15a426=>this['handleSuggestionDescription'](_0x15a426));}['_handlePropertyChange'](_0xb63675,_0x47342a,_0x360b6f,_0x16ff14,_0x14c3d0,_0x101597){const _0x34b78c=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x101597['batch'],()=>{for(const _0x432133 of _0x47342a){if(this['_getSuggestion'](_0x432133,_0x16ff14))_0x14c3d0(_0x101597);else{const _0x42472b={};for(const _0x55ca52 of _0x360b6f){const _0x53d409=_0x432133['getAttribute'](_0x55ca52);void 0x0!==_0x53d409&&(_0x42472b[_0x55ca52]=_0x53d409);}_0x14c3d0(_0x101597),_0x34b78c['markBlockFormat'](_0x432133,{'commandParams':[_0x42472b]},[],_0x16ff14);}}});}['handleDiscardAction'](_0x2f239c,_0xe144f6,_0x483251){const _0x28849c=_0xe144f6[0x0]['start']['nodeAfter'],_0x8c1910=_0x483251['commandParams'][0x0];this['editor']['model']['change'](_0x345629=>{for(const _0x87e2cb of _0x2f239c)void 0x0!==_0x8c1910[_0x87e2cb]?_0x345629['setAttribute'](_0x87e2cb,_0x8c1910[_0x87e2cb],_0x28849c):_0x345629['removeAttribute'](_0x87e2cb,_0x28849c);});}['handleSuggestionDescription'](_0x46b143){if(_0x46b143['data'])switch(_0x46b143['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x473a61,_0x1a009a){const _0x49779f=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x42f68d of _0x49779f['getSuggestions']({'skipNotAttached':!0x0})){const _0x57da12=_0x42f68d['getContainedElement']();if(_0x42f68d['subType']===_0x1a009a&&_0x57da12===_0x473a61)return _0x42f68d;}return null;}}const m='$elementName';class d extends _0x5d906a{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x536d31,_0x70bf4f,R,E,U,V,F,L,G,J,K,H,W,Q,X,Y,Z,tt,it,nt,et,st,rt,ot,at,ct,ut,ht,gt,pt,ft,q,z,lt,dt,mt,kt,wt,bt,yt,St,jt,It,At,_t,Ct,vt,Nt,Rt,Dt,Mt,Bt,Et,$t,Tt,xt,Ot];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x364469){super(_0x364469),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0xd85dc,_0x35eb40,_0x327755,_0x531d2d)=>{this['_model']['change'](()=>{for(const _0x43e0ce of[..._0x531d2d,..._0x327755])this['_model']['markers']['has'](_0x43e0ce)&&_0x364469['editing']['reconvertMarker'](_0x43e0ce);});}),this['descriptionFactory']=new O(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Vt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x364469['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x364469['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x364469['config']['get']('trackChanges.trackFormatChanges'),_0x364469['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x364469['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new D(_0x364469,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x38b46f=this['editor'],_0x2b6ba1=(_0x254910,_0x3b0bda)=>{if('attribute'!=_0x254910)return'ck-suggestion-marker-'+_0x254910;const _0x2d7af8=_0x3b0bda['split']('|')[0x0];return this['_isBlockAttribute'](_0x2d7af8)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x38b46f['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x205516=>{const {id:_0x4d7fb7,authorId:_0x17a5e7,type:_0x3ebf3e,subType:_0x1570e7}=this['_splitMarkerName'](_0x205516['markerName']),_0x1b63ba=['ck-suggestion-marker',_0x2b6ba1(_0x3ebf3e,_0x1570e7)];let _0x2fb9fd=0xbb8;return this['activeMarkers']['includes'](_0x205516['markerName'])&&(_0x1b63ba['push']('ck-suggestion-marker--active'),_0x2fb9fd=0xbc2),'deletion'==_0x3ebf3e&&(_0x2fb9fd+=0x5),{'classes':_0x1b63ba,'attributes':{'data-suggestion':_0x4d7fb7,'data-author-id':_0x17a5e7},'priority':_0x2fb9fd};}}),_0x38b46f['conversion']['for']('dataDowncast')['add'](_0x13fbe6=>{_0x13fbe6['on']('addMarker:suggestion',(_0x2e8bbd,_0x84166b,_0x558f08)=>{if(!_0x558f08['options']['showSuggestionHighlights'])return;const _0x933170=_0x84166b['item'];if(!_0x933170)return;const _0x40f661=_0x558f08['mapper']['toViewElement'](_0x933170);_0x38b46f['model']['schema']['isObject'](_0x933170)&&_0x40f661&&!_0x40f661['getCustomProperty']('widget')&&_0x40f661['is']('containerElement')&&_0x4ca521(_0x40f661,_0x558f08['writer']);},{'priority':'high'});}),_0x38b46f['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0xed19ff,_0x19367b)=>{if(!_0x19367b['options']['showSuggestionHighlights'])return null;const {id:_0x308af6,authorId:_0x4d738e,type:_0x141d1a,subType:_0x2cfd97}=this['_splitMarkerName'](_0xed19ff['markerName']);return{'classes':['ck-suggestion-marker',_0x2b6ba1(_0x141d1a,_0x2cfd97)],'priority':0xbb8,'attributes':{'data-suggestion':_0x308af6,'data-author-id':_0x4d738e}};}});const _0x92be9d=({showActiveMarkers:_0x44d8bb=!0x0,isAttributeSuggestion:_0x5cd375=!0x1}={})=>(_0x4a4c0a,_0x4a09b5,_0x58edf8)=>{if(!_0x4a09b5['item'])return;const {id:_0x36c347,authorId:_0x4991eb}=this['_splitMarkerName'](_0x4a09b5['markerName']);if(_0x5cd375){const _0x2ce9b5=this['_suggestions']['get'](_0x36c347),_0x139e99=this['_getAttributeKey'](_0x2ce9b5);if(!this['_isBlockAttribute'](_0x139e99))return;}if(_0x4a09b5['item']['is']('selection'))return void _0x58edf8['consumable']['consume'](_0x4a09b5['item'],_0x4a4c0a['name']);const _0x1ce295=_0x58edf8['mapper']['toViewElement'](_0x4a09b5['item']);if(_0x4a09b5['item']['is']('element')&&_0x38b46f['model']['schema']['isBlock'](_0x4a09b5['item'])&&!_0x1ce295['getCustomProperty']('addHighlight')){_0x58edf8['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1ce295),_0x58edf8['writer']['setAttribute']('data-suggestion',_0x36c347,_0x1ce295),_0x58edf8['writer']['setAttribute']('data-author-id',_0x4991eb,_0x1ce295),_0x58edf8['mapper']['bindElementToMarker'](_0x1ce295,_0x4a09b5['markerName']),_0x44d8bb&&(this['activeMarkers']['includes'](_0x4a09b5['markerName'])?_0x58edf8['writer']['addClass']('ck-suggestion-marker--active',_0x1ce295):_0x58edf8['writer']['removeClass']('ck-suggestion-marker--active',_0x1ce295));for(const _0x81c44a of _0x38b46f['model']['createRangeIn'](_0x4a09b5['item'])['getItems']())_0x58edf8['consumable']['consume'](_0x81c44a,_0x4a4c0a['name']);_0x58edf8['consumable']['consume'](_0x4a09b5['item'],_0x4a4c0a['name']);}};_0x38b46f['conversion']['for']('dataDowncast')['add'](_0x25d534=>{_0x25d534['on']('addMarker:suggestion:formatBlock',(_0x296c96,_0x323f0d,_0x11877a)=>{_0x11877a['options']['showSuggestionHighlights']&&_0x92be9d({'showActiveMarkers':!0x1})(_0x296c96,_0x323f0d,_0x11877a);},{'priority':'highest'});}),_0x38b46f['conversion']['for']('dataDowncast')['add'](_0x14f39f=>{_0x14f39f['on']('addMarker:suggestion:attribute',(_0x541632,_0x56c31e,_0x4698fd)=>{_0x4698fd['options']['showSuggestionHighlights']&&_0x92be9d({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x541632,_0x56c31e,_0x4698fd);},{'priority':'highest'});}),_0x38b46f['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x3667dc,_0xb7af4b)=>{if(_0xb7af4b['options']['showSuggestionHighlights']){const {id:_0x8dc64e,authorId:_0x2333d2}=this['_splitMarkerName'](_0x3667dc);return _0x3667dc['includes'](':split')||_0x3667dc['includes'](':merge')?{'group':'suggestion','name':_0x3667dc['substr'](0xb),'attributes':{'data-suggestion':_0x8dc64e,'data-author-id':_0x2333d2}}:null;}return{'group':'suggestion','name':_0x3667dc['substr'](0xb)};}}),_0x38b46f['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x390849,{writer:_0x23121f})=>{let _0x1ae4b4='suggestion:'+_0x390849['getAttribute']('suggestion-type')+':'+_0x390849['getAttribute']('id');return _0x390849['getAttribute']('marker-count')&&(_0x1ae4b4+=':'+_0x390849['getAttribute']('marker-count')),_0x23121f['createElement']('$marker',{'data-name':_0x1ae4b4});}}),_0x38b46f['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x38b46f['conversion']['for']('editingDowncast')['add'](_0x296f26=>{_0x296f26['on']('addMarker:suggestion:formatBlock',_0x92be9d(),{'priority':'high'});}),_0x38b46f['conversion']['for']('editingDowncast')['add'](_0x336005=>{_0x336005['on']('addMarker:suggestion:attribute',_0x92be9d({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x38b46f['conversion']['for']('editingDowncast')['add'](_0x27fb08=>{_0x27fb08['on']('removeMarker:suggestion:formatBlock',(_0x5f83a1,_0x9cbec9,_0x35c8ed)=>{const _0x2a8c66=_0x35c8ed['mapper']['markerNameToElements'](_0x9cbec9['markerName']);if(_0x2a8c66){for(const _0x45ee83 of _0x2a8c66)_0x45ee83['getCustomProperty']('addHighlight')||(_0x35c8ed['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x45ee83),_0x35c8ed['writer']['removeAttribute']('data-suggestion',_0x45ee83),_0x35c8ed['writer']['removeAttribute']('data-author-id',_0x45ee83),_0x35c8ed['mapper']['unbindElementFromMarkerName'](_0x45ee83,_0x9cbec9['markerName']));}},{'priority':'high'});}),_0x38b46f['conversion']['for']('editingDowncast')['add'](_0x15a4ab=>{_0x15a4ab['on']('removeMarker:suggestion:attribute',(_0x3f6767,_0x253baa,_0x49b2d0)=>{const _0x34e8c4=_0x49b2d0['mapper']['markerNameToElements'](_0x253baa['markerName']);if(!_0x34e8c4)return;const {id:_0x402ddf}=this['_splitMarkerName'](_0x253baa['markerName']),_0x3da3a1=this['_suggestions']['get'](_0x402ddf),_0x152ebe=this['_getAttributeKey'](_0x3da3a1);if(this['_isBlockAttribute'](_0x152ebe)){for(const _0x463c98 of _0x34e8c4)_0x463c98['getCustomProperty']('addHighlight')||(_0x49b2d0['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x463c98),_0x49b2d0['writer']['removeAttribute']('data-suggestion',_0x463c98),_0x49b2d0['writer']['removeAttribute']('data-author-id',_0x463c98),_0x49b2d0['mapper']['unbindElementFromMarkerName'](_0x463c98,_0x253baa['markerName']));}},{'priority':'high'});}),_0x38b46f['model']['document']['registerPostFixer'](_0x462b9e=>{let _0x2e6bf5=!0x1;const _0x1818ce=Array['from'](_0x38b46f['model']['document']['differ']['getChangedMarkers']()),_0x6f2343=new Set();for(const {name:_0x2b91d4,data:_0x4b17e5}of _0x1818ce){const {group:_0x4aec57,type:_0x16690c,subType:_0xeb8df5,id:_0x31692f}=this['_splitMarkerName'](_0x2b91d4);if('suggestion'!==_0x4aec57)continue;const _0x476af9=this['_suggestions']['get'](_0x31692f);if(null!=_0x4b17e5['newRange']){'formatInline'==_0x16690c&&(_0x2e6bf5=_0x2e6bf5||Gt(_0x4b17e5['newRange'],_0x2b91d4,_0x462b9e,_0x38b46f['model']['schema']));const _0x14bf10='attribute'==_0x16690c&&this['_isBlockAttribute'](_0xeb8df5['split']('|')[0x0]);if(_0x4b17e5['newRange']['isCollapsed']||'$graveyard'==_0x4b17e5['newRange']['root']['rootName']||'formatBlock'==_0x16690c&&!Jt(_0x4b17e5['newRange'])||_0x14bf10&&!Jt(_0x4b17e5['newRange'])||'deletion'==_0x16690c&&!(!Pt(_0x58be5a=_0x4b17e5['newRange'])&&!function(_0x995025){return _0x995025['start']['parent']==_0x995025['end']['nodeBefore']&&_0x995025['start']['isAtEnd'];}(_0x58be5a)))_0x462b9e['removeMarker'](_0x2b91d4),_0x2e6bf5=!0x0;else{if(!_0x476af9||!_0x476af9['isInContent'])continue;if(_0x4b17e5['newRange']&&_0x4b17e5['oldRange']&&_0x4b17e5['newRange']['isEqual'](_0x4b17e5['oldRange']))continue;_0x6f2343['add'](_0x476af9);}}}var _0x58be5a;return _0x6f2343['size']>0x0&&(_0x2e6bf5=!!this['_joinWithAdjacentSuggestions'](_0x6f2343)||_0x2e6bf5),_0x2e6bf5;}),_0x38b46f['model']['document']['registerPostFixer'](_0x4a2955=>{let _0x3b0a3f=!0x1;for(const _0x2c9aa4 of _0x38b46f['model']['document']['differ']['getChanges']())if('insert'==_0x2c9aa4['type'])for(const _0x1e241e of this['_suggestions']['values']()){if(_0x1e241e['isMultiRange']||!_0x1e241e['isInContent'])continue;const _0x129e9a='formatBlock'==_0x1e241e['type'],_0x41b623=this['_getAttributeKey'](_0x1e241e),_0x1b035c=_0x41b623&&this['_isBlockAttribute'](_0x41b623);if(!_0x129e9a&&!_0x1b035c)continue;const _0x34ac4d=_0x1e241e['getFirstRange']();if(_0x34ac4d['start']['parent']!=_0x34ac4d['end']['parent']&&!_0x34ac4d['end']['isAtEnd']){const _0x4ce230=_0x38b46f['model']['createPositionAt'](_0x34ac4d['start']['nodeAfter'],'end'),_0x8567fa=_0x38b46f['model']['createRange'](_0x34ac4d['start'],_0x4ce230);_0x4a2955['updateMarker'](_0x1e241e['getFirstMarker'](),{'range':_0x8567fa}),_0x3b0a3f=!0x0;}}return _0x3b0a3f;}),_0x38b46f['model']['document']['registerPostFixer'](_0x4b9864=>this['_processAttributeChanges'](_0x4b9864)),_0x38b46f['model']['document']['registerPostFixer'](_0x39f27e=>!_0x39f27e['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x39f27e)),_0x38b46f['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x38b46f['model']['document']['on']('change:data',(_0x19c22b,_0x134931)=>{if(!_0x134931['isLocal']||_0x134931['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x34c65f=_0x38b46f['model']['document']['differ']['getChanges']();if(0x0==_0x34c65f['length'])return;const _0x440b16=[],_0x590655=_0x34c65f['filter'](_0x340152=>'attribute'==_0x340152['type']),_0x3f2919=_0x34c65f['filter'](_0x39de0a=>'insert'==_0x39de0a['type']&&'$text'!=_0x39de0a['name']);for(const _0x31b24e of _0x590655)this['_isRegisteredAttribute'](_0x31b24e['attributeKey'])&&_0x440b16['push']({'key':_0x31b24e['attributeKey'],'newValue':_0x31b24e['attributeNewValue'],'oldValue':_0x31b24e['attributeOldValue'],'range':Kt(_0x31b24e['range'],_0x38b46f['model'])});for(const _0x20dca6 of _0x3f2919){if('rename'!=_0x20dca6['action']&&'refresh'!=_0x20dca6['action'])continue;const _0x363fdf=Ht(_0x20dca6['position']['nodeAfter'],_0x38b46f['model']),_0x182d3f=_0x20dca6['before'];'rename'==_0x20dca6['action']&&_0x440b16['push']({'key':m,'newValue':_0x20dca6['name'],'oldValue':_0x182d3f['name'],'range':_0x363fdf});for(const [_0x575593,_0x222d03]of _0x182d3f['attributes']){if(!this['_isRegisteredAttribute'](_0x575593))continue;const _0x29dfab=_0x20dca6['attributes']['get'](_0x575593);_0x222d03!==_0x29dfab&&_0x440b16['push']({'key':_0x575593,'newValue':_0x29dfab,'oldValue':_0x222d03,'range':_0x363fdf});}for(const [_0x56ba6e,_0x4cad3c]of _0x20dca6['attributes'])this['_isRegisteredAttribute'](_0x56ba6e)&&(_0x182d3f['attributes']['has'](_0x56ba6e)||_0x440b16['push']({'key':_0x56ba6e,'newValue':_0x4cad3c,'oldValue':null,'range':_0x363fdf}));}0x0!=_0x440b16['length']&&_0x38b46f['model']['enqueueChange'](_0x134931,_0x2447e4=>{const _0x17259d=_0x4fc05b();for(const {range:_0x2d77f5,key:_0x5c2ed7,oldValue:_0x22eccf,newValue:_0x1af9db}of _0x440b16)this['markAttributeChange'](_0x2d77f5,_0x5c2ed7,_0x22eccf,_0x1af9db,{'groupId':_0x17259d});this['_reduceExistingSuggestions'](_0x2447e4,_0x440b16);});},{'priority':'lowest'}),_0x38b46f['model']['markers']['on']('update:suggestion',(_0x3e2b6b,_0x13ba8a,_0x14d954)=>{if(null==_0x14d954){const {id:_0x4eee1f}=this['_splitMarkerName'](_0x13ba8a['name']),_0x5f5726=this['_suggestions']['get'](_0x4eee1f);_0x5f5726&&_0x5f5726['addMarkerName'](_0x13ba8a['name']);}}),_0x38b46f['model']['document']['on']('change:data',()=>{const _0x32c08a=Array['from'](_0x38b46f['model']['document']['differ']['getChangedMarkers']())['filter'](_0x39219e=>'suggestion'===this['_splitMarkerName'](_0x39219e['name'])['group']);if(0x0===_0x32c08a['length'])return;_0x32c08a['sort']((_0x56495f,_0x380f3d)=>{const _0x57825f=_0x56495f['data']['oldRange'],_0x467cc2=_0x380f3d['data']['oldRange'];return null===_0x57825f&&null===_0x467cc2?0x0:null===_0x57825f&&null!==_0x467cc2?-0x1:null!==_0x57825f&&null===_0x467cc2?0x1:_0x57825f['start']['isBefore'](_0x467cc2['start'])?-0x1:0x1;});const _0x48bdda=new Set(),_0x5967e2=new Set();for(const {name:_0x1c60b7,data:_0x38208f}of _0x32c08a){const {id:_0x3d2dec}=this['_splitMarkerName'](_0x1c60b7);if(null===_0x38208f['oldRange']){const _0x60a546=this['_handleNewSuggestionMarker'](_0x1c60b7);_0x5967e2['add'](_0x60a546);}else{const _0x6a7e8c=this['_suggestions']['get'](_0x3d2dec);null!==_0x38208f['newRange']||_0x6a7e8c['isInContent']?(_0x48bdda['add'](_0x6a7e8c['head']),_0x5967e2['add'](_0x6a7e8c)):this['_removeSuggestion'](_0x6a7e8c);}}_0x5967e2['size']>0x0&&this['_refreshSuggestionsChain'](_0x5967e2);for(const _0x34676c of _0x48bdda)this['fire']('suggestionChanged',_0x34676c);}),_0x38b46f['model']['on']('applyOperation',(_0x3ec04d,_0x238e82)=>{const _0xb7a5d7=_0x238e82[0x0];if(!this['_suggestions']['size'])return;if(!_0xb7a5d7['isDocumentOperation'])return;if(_0xb7a5d7['batch']['isUndo']||!_0xb7a5d7['batch']['isLocal'])return;let _0x10fe40,_0xfe559f;switch(_0xb7a5d7['type']){case'insert':_0x10fe40=_0x38b46f['model']['createPositionAt'](_0xb7a5d7['position']),_0xfe559f=_0x10fe40['getShiftedBy'](_0xb7a5d7['howMany']);break;case'split':_0x10fe40=_0x38b46f['model']['createPositionAt'](_0xb7a5d7['splitPosition']),_0xfe559f=_0x38b46f['model']['createPositionAt'](_0xb7a5d7['moveTargetPosition']);break;case'move':_0x10fe40=_0x38b46f['model']['createPositionAt'](_0xb7a5d7['targetPosition']),_0xfe559f=_0x10fe40['getShiftedBy'](_0xb7a5d7['howMany']);break;default:return;}const _0x3e3098=_0x38b46f['model']['createRange'](_0x10fe40,_0xfe559f);_0x38b46f['model']['change'](()=>{for(const {suggestion:_0x23fd6a,meta:_0x423861}of this['_findSuggestions'](_0x3e3098)){if(_0x23fd6a['isMultiRange'])continue;if('formatInline'==_0x23fd6a['type'])continue;const _0x1e334a=this['_getAttributeKey'](_0x23fd6a);if(_0x1e334a&&this['_isBlockAttribute'](_0x1e334a)&&'split'!=_0xb7a5d7['type'])continue;const _0x443669=_0x23fd6a['data']&&_0x23fd6a['data']['multipleBlocks'];('formatBlock'!=_0x23fd6a['type']||'split'==_0xb7a5d7['type']&&!_0x443669)&&(_0x423861['containsRangeInObject']||'insertion'==_0x23fd6a['type']&&_0x423861['isOwn']||_0x23fd6a['getFirstRange']()['containsRange'](_0x3e3098)&&this['_breakSuggestionMarker'](_0x23fd6a,_0x10fe40,_0xfe559f));}});},{'priority':'lowest'}),_0x38b46f['model']['on']('deleteContent',(_0x1b8343,_0x215a68)=>{const _0x1e343f=_0x215a68[0x0],_0x50cec5=_0x215a68[0x1];if(_0x50cec5&&_0x50cec5['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x1e343f['isCollapsed'])return;const _0x5c852c=_0x38b46f['model']['schema'],{start:_0x51602c,end:_0x27975b}=_0x1e343f['getFirstRange'](),_0x1b974d=_0x51602c['nodeAfter']&&_0x5c852c['isLimit'](_0x51602c['nodeAfter'])?null:_0x5c852c['getNearestSelectionRange'](_0x51602c,'forward'),_0x531318=_0x27975b['nodeBefore']&&_0x5c852c['isLimit'](_0x27975b['nodeBefore'])?null:_0x5c852c['getNearestSelectionRange'](_0x27975b,'backward'),_0xd44397=_0x38b46f['model']['createRange'](_0x1b974d?_0x1b974d['start']:_0x51602c,_0x531318?_0x531318['end']:_0x27975b);_0x38b46f['model']['change'](_0x1b45d9=>{this['markDeletion'](_0xd44397);const _0x4bb7d2=_0x38b46f['model']['schema']['getNearestSelectionRange'](_0xd44397['start']);_0x1e343f['is']('documentSelection')?_0x1b45d9['setSelection'](_0x4bb7d2):_0x1e343f['setTo'](_0x4bb7d2);}),_0x1b8343['stop']();},{'priority':_0x3f1657['normal']+0xa}),_0x38b46f['model']['on']('insertContent',(_0x5cf722,_0x3e7902)=>{const _0x3393d6=_0x3e7902[_0x3e7902['length']-0x1];_0x3393d6&&_0x3393d6['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x38b46f['model']['change'](()=>{let _0x4929e9=_0x38b46f['model']['insertContent'](_0x3e7902[0x0],_0x3e7902[0x1],_0x3e7902[0x2],{'forceDefaultExecution':!0x0});if(!_0x4929e9)return;_0x5cf722['return']=_0x4929e9['clone']();const _0x529409=_0x4929e9['end']['nodeBefore'],_0x4d42fb=_0x38b46f['model']['schema'];_0x529409&&_0x4d42fb['isBlock'](_0x529409)&&!_0x4d42fb['isObject'](_0x529409)&&(_0x4929e9=_0x38b46f['model']['createRange'](_0x4929e9['start'],_0x38b46f['model']['createPositionAt'](_0x529409,'end'))),this['markInsertion'](_0x4929e9);}),_0x5cf722['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3d89f2=new M(_0x38b46f,this['_suggestions']);_0x38b46f['commands']['add']('acceptSuggestion',_0x3d89f2),this['enableCommand']('acceptSuggestion');const _0x3866c5=new $(_0x38b46f,this['_suggestions']);_0x38b46f['commands']['add']('discardSuggestion',_0x3866c5),this['enableCommand']('discardSuggestion'),_0x38b46f['commands']['add']('acceptAllSuggestions',new B(_0x38b46f,_0x3d89f2,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x38b46f['commands']['add']('discardAllSuggestions',new B(_0x38b46f,_0x3866c5,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x38b46f['commands']['add']('acceptSelectedSuggestions',new T(_0x38b46f,_0x3d89f2,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x38b46f['commands']['add']('discardSelectedSuggestions',new T(_0x38b46f,_0x3866c5,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1057f=_0x38b46f['plugins']['get']('CommentsRepository');this['listenTo'](_0x1057f,'addComment',(_0x474e1a,{threadId:_0x312e42})=>{const _0x1143fe=this['_suggestions']['get'](_0x312e42);_0x1143fe&&_0x1143fe['commentThread']&&0x1===_0x1143fe['commentThread']['length']&&this['_updateSuggestionData'](_0x312e42,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1057f,'removeComment',(_0x598f32,{threadId:_0x1a73e0})=>{const _0x1afe74=this['_suggestions']['get'](_0x1a73e0);_0x1afe74&&_0x1afe74['commentThread']&&!_0x1afe74['commentThread']['length']&&this['_updateSuggestionData'](_0x1a73e0,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0xc8524e){const _0x44c6ea=_0x49b488([0x4e,0x38,0x5a,0x37,0x46,0x61,0x54,0x57,0x39,0x51,0x65,0x74,0x66,0x34,0x78,0x77,0x50,0x62,0x36,0x4f,0x56,0x6f,0x76,0x58,0x4d,0x49,0x68,0x47,0x6a,0x75,0x43,0x4c,0x72,0x30,0x67,0x33,0x53,0x41,0x44,0x31,0x70,0x4a,0x6e,0x52,0x32,0x4b,0x45,0x6b,0x59,0x48,0x73,0x71,0x64,0x35,0x6c,0x55,0x42,0x63,0x79,0x7a,0x69,0x6d]),_0x4b118a=0x3c46d8bc,_0x5a0e5d=0x3c41b2ac^_0x4b118a,_0x2d8288=window[_0x49b488([0x44,0x61,0x74,0x65])][_0x49b488([0x6e,0x6f,0x77])](),_0x2d55f4=_0xc8524e[_0x49b488([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4f00ac=new window[(_0x49b488([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x359a40=>{_0x2d55f4[_0x49b488([0x6f,0x6e,0x63,0x65])](_0x49b488([0x72,0x65,0x61,0x64,0x79]),_0x359a40);}),_0x255b23={[_0x49b488([0x6b,0x74,0x79])]:_0x49b488([0x45,0x43]),[_0x49b488([0x75,0x73,0x65])]:_0x49b488([0x73,0x69,0x67]),[_0x49b488([0x63,0x72,0x76])]:_0x49b488([0x50,0x2d,0x32,0x35,0x36]),[_0x49b488([0x78])]:_0x49b488([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]),[_0x49b488([0x79])]:_0x49b488([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]),[_0x49b488([0x61,0x6c,0x67])]:_0x49b488([0x45,0x53,0x32,0x35,0x36])},_0x5f2df1=_0x2d55f4[_0x49b488([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x49b488([0x67,0x65,0x74])](_0x49b488([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x530965(){let _0x3f9b15,_0x1c7bd9=null,_0x368033=null;try{if(_0x5f2df1==_0x49b488([0x47,0x50,0x4c]))return _0x49b488([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3f9b15=_0x2a4d20(),!_0x3f9b15)return _0x49b488([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3f9b15[_0x49b488([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x368033=_0x3dcf8e(_0x3f9b15[_0x49b488([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3f9b15[_0x49b488([0x6a,0x74,0x69])])),await _0x7c26c()?_0x5320f8()?_0x4515c1()?_0x49b488([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1ba614()?(_0x3f9b15[_0x49b488([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x49b488([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1c7bd9=_0x3ff9a2(_0x49b488([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3f9b15[_0x49b488([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x49b488([0x74,0x72,0x69,0x61,0x6c])&&(_0x1c7bd9=_0x3ff9a2(_0x49b488([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x54f796()):_0x49b488([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x49b488([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x49b488([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x49b488([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4515c1(){const _0x440a2b=[_0x49b488([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x49b488([0x74,0x72,0x69,0x61,0x6c])][_0x49b488([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f9b15[_0x49b488([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2d8288/0x3e8:0xe10*_0x5a0e5d;return _0x3f9b15[_0x49b488([0x65,0x78,0x70])]<_0x440a2b;}function _0x5320f8(){const _0x3a2449=_0x3f9b15[_0x49b488([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3a2449)return!0x1;if(_0x3a2449[_0x49b488([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49b488([0x2a])))return!0x0;if(_0x3a2449[_0x49b488([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49b488([0x54,0x43])))return!0x0;if(_0x3a2449[_0x49b488([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49b488([0x52,0x54,0x43]))){if(_0x6784cd())return!0x0;if(_0x2bdd84()||_0x3473cc())return!0x0;}return!0x1;}function _0x1ba614(){const _0x336ef8=_0x3f9b15[_0x49b488([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x336ef8||0x0==_0x336ef8[_0x49b488([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4e53d0}=new URL(window[_0x49b488([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x336ef8[_0x49b488([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e53d0))return!0x0;const _0x5e9705=_0x4e53d0[_0x49b488([0x73,0x70,0x6c,0x69,0x74])](_0x49b488([0x2e]));return _0x336ef8[_0x49b488([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x30df53=>_0x30df53[_0x49b488([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49b488([0x2a])))[_0x49b488([0x6d,0x61,0x70])](_0x2e1d87=>_0x2e1d87[_0x49b488([0x73,0x70,0x6c,0x69,0x74])](_0x49b488([0x2e])))[_0x49b488([0x73,0x6f,0x6d,0x65])](_0x292e0c=>_0x5e9705[_0x49b488([0x65,0x76,0x65,0x72,0x79])]((_0x5c6c66,_0x5bab48)=>_0x292e0c[_0x5bab48]===_0x5c6c66||_0x292e0c[_0x5bab48]===_0x49b488([0x2a])));}function _0x54f796(){return _0x1c7bd9&&_0x368033?new window[(_0x49b488([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5d6bf3,_0x519b5e)=>{_0x1c7bd9[_0x49b488([0x74,0x68,0x65,0x6e])](_0x5d6bf3,_0x519b5e),_0x368033[_0x49b488([0x74,0x68,0x65,0x6e])](_0x127417=>{_0x127417!=_0x49b488([0x56,0x61,0x6c,0x69,0x64])&&_0x5d6bf3(_0x127417);},_0x519b5e);}):_0x1c7bd9||_0x368033||_0x49b488([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3dcf8e(_0x10f400,_0x177983){return new window[(_0x49b488([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e0994=>{if(_0x227f5f())return _0x5e0994(_0x49b488([0x56,0x61,0x6c,0x69,0x64]));_0x5f3b4e(),_0x2d55f4[_0x49b488([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x49b488([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xa0bc9e=!0x1;const _0x5330ac=_0x4fc05b();function _0x58792f(_0x3e4a72){return!!_0x3e4a72&&(typeof _0x3e4a72===_0x49b488([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3e4a72===_0x49b488([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3e4a72[_0x49b488([0x74,0x68,0x65,0x6e])]===_0x49b488([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3e4a72[_0x49b488([0x63,0x61,0x74,0x63,0x68])]===_0x49b488([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x39e4e3(_0x23f672){_0x140a47(_0x23f672)[_0x49b488([0x74,0x68,0x65,0x6e])](_0x15f912=>{if(!_0x15f912||_0x15f912[_0x49b488([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x49b488([0x6f,0x6b]))return _0x49b488([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x88dcd1(_0x2571fa(_0x5330ac+_0x177983))!=_0x15f912[_0x49b488([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x49b488([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x49b488([0x56,0x61,0x6c,0x69,0x64]);})[_0x49b488([0x74,0x68,0x65,0x6e])](_0x2202a3=>(_0x5df1a0(),_0x2202a3),()=>{const _0x569a1f=_0x71e82f();return null==_0x569a1f?(_0x5df1a0(),_0x49b488([0x56,0x61,0x6c,0x69,0x64])):_0x49b488(_0x2d8288-_0x569a1f>(0x184a5cbc^_0x4b118a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x49b488([0x74,0x68,0x65,0x6e])](_0x5e0994)[_0x49b488([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5e0994(_0x49b488([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2d22f3=0x3c70363c^_0x4b118a;function _0x5df1a0(){const _0x43cf8f=_0x49b488([0x6c,0x6c,0x63,0x74,0x2d])+_0x88dcd1(_0x2571fa(_0x10f400)),_0x2c469d=_0x572c46(_0x88dcd1(window[_0x49b488([0x4d,0x61,0x74,0x68])][_0x49b488([0x63,0x65,0x69,0x6c])](_0x2d8288/_0x2d22f3)));window[_0x49b488([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x49b488([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x43cf8f,_0x2c469d);}function _0x71e82f(){const _0x1b0b38=_0x49b488([0x6c,0x6c,0x63,0x74,0x2d])+_0x88dcd1(_0x2571fa(_0x10f400)),_0x2e9e40=window[_0x49b488([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x49b488([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1b0b38);return _0x2e9e40?window[_0x49b488([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x572c46(_0x2e9e40),0x10)*_0x2d22f3:null;}function _0x140a47(_0x2a76d8){return new window[(_0x49b488([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3e6ae3,_0x349bc3)=>{_0x2a76d8[_0x49b488([0x74,0x68,0x65,0x6e])](_0x3e6ae3,_0x349bc3),window[_0x49b488([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x349bc3,0x3c470c7c^_0x4b118a);});}}_0x2d55f4[_0x49b488([0x6f,0x6e])](_0x49b488([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4e78c1,_0x1c7333)=>{if(_0x1c7333[0x0]!=_0x10f400)return _0x5e0994(_0x49b488([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1c7333[0x1]={..._0x1c7333[0x1],[_0x49b488([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5330ac};},{[_0x49b488([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x49b488([0x68,0x69,0x67,0x68])}),_0x2d55f4[_0x49b488([0x6f,0x6e])](_0x49b488([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4a6543=>{_0x58792f(_0x4a6543[_0x49b488([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xa0bc9e=!0x0,_0x39e4e3(_0x4a6543[_0x49b488([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x49b488([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x49b488([0x6c,0x6f,0x77])}),_0x4f00ac[_0x49b488([0x74,0x68,0x65,0x6e])](()=>{_0xa0bc9e||_0x5e0994(_0x49b488([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x227f5f(){return _0x2d55f4[_0x49b488([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x49b488([0x76,0x69,0x65,0x77])][_0x49b488([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x49b488([0x61,0x75,0x74,0x6f]);}function _0x5f3b4e(){_0x2d55f4[_0x49b488([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x49b488([0x76,0x69,0x65,0x77])][_0x49b488([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x49b488([0x61,0x75,0x74,0x6f]);}}function _0x3ff9a2(_0x2b8c20){const _0x47ffa7=[new window[(_0x49b488([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xfb17cf=>setTimeout(_0xfb17cf,0x3c4fe670^_0x4b118a)),_0x4f00ac[_0x49b488([0x74,0x68,0x65,0x6e])](()=>new window[(_0x49b488([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x25d7ba=>{let _0x21f533=0x0;_0x2d55f4[_0x49b488([0x6d,0x6f,0x64,0x65,0x6c])][_0x49b488([0x6f,0x6e])](_0x49b488([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x23f6b2,_0x5e1971)=>{_0x5e1971[0x0][_0x49b488([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x21f533++,_0x21f533==(0x3c46d944^_0x4b118a)&&(_0x25d7ba(),_0x23f6b2[_0x49b488([0x6f,0x66,0x66])]());});}))];return window[_0x49b488([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x49b488([0x72,0x61,0x63,0x65])](_0x47ffa7)[_0x49b488([0x74,0x68,0x65,0x6e])](()=>_0x2b8c20);}async function _0x2893a4(){await _0x4f00ac,_0x2d55f4[_0x49b488([0x6d,0x6f,0x64,0x65,0x6c])][_0x49b488([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x39c55b,_0x2d55f4[_0x49b488([0x6d,0x6f,0x64,0x65,0x6c])][_0x49b488([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x39c55b,_0x2d55f4[_0x49b488([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x49b488([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x6784cd(){return _0x1fb48d(_0x49b488([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2873a5(_0x49b488([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x49b488([0x73,0x74,0x61,0x74,0x65])]==_0x49b488([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2bdd84(){return _0x1fb48d(_0x49b488([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 _0x3473cc(){return _0x1fb48d(_0x49b488([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1a5393(_0x1b2965){const _0x1618e2=_0x4a24ff();_0x2d55f4[_0x1618e2]=_0x49b488([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1b2965,_0x1b2965!=_0x49b488([0x56,0x61,0x6c,0x69,0x64])&&_0x2893a4();}function _0x4a24ff(){const _0x3f90e5=window[_0x49b488([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x49b488([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x49b488([0x6e,0x6f,0x77])]())[_0x49b488([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x49b488([0x2e]),'');let _0x3d9a5b=_0x49b488([0x4e]);for(let _0x306406=0x0;_0x306406<_0x3f90e5[_0x49b488([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x306406+=0x2){let _0x54a570=window[_0x49b488([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f90e5[_0x49b488([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x306406,_0x306406+0x2));_0x54a570>=_0x44c6ea[_0x49b488([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x54a570-=_0x44c6ea[_0x49b488([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3d9a5b+=_0x44c6ea[_0x54a570];}return _0x3d9a5b;}function _0x2a4d20(){const _0x43468e=_0x5f2df1[_0x49b488([0x73,0x70,0x6c,0x69,0x74])](_0x49b488([0x2e]));if(0x3!=_0x43468e[_0x49b488([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x357044(_0x43468e[0x1]);function _0x357044(_0x21d6ce){const _0x418683=_0x144c58(_0x21d6ce);return _0x418683&&_0x5d4540()?_0x418683:null;function _0x5d4540(){const _0x5ef79c=_0x418683[_0x49b488([0x6a,0x74,0x69])],_0x3c68c8=window[_0x49b488([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5ef79c[_0x49b488([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5ef79c[_0x49b488([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x9a9a10={..._0x418683,[_0x49b488([0x6a,0x74,0x69])]:_0x5ef79c[_0x49b488([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5ef79c[_0x49b488([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x9a9a10[_0x49b488([0x76,0x63])],_0x2571fa(_0x9a9a10)==_0x3c68c8;}}}async function _0x7c26c(){let _0x4b94f0=!0x0;try{const _0x39b0ee=_0x5f2df1[_0x49b488([0x73,0x70,0x6c,0x69,0x74])](_0x49b488([0x2e])),[_0x24d924,_0x507ac4,_0x3657a1]=_0x39b0ee;return _0x45cea1(_0x24d924),await _0x445cfa(_0x24d924,_0x507ac4,_0x3657a1),_0x4b94f0;}catch{return!0x1;}function _0x45cea1(_0x3eac37){const _0x138fca=_0x144c58(_0x3eac37);_0x138fca&&_0x138fca[_0x49b488([0x61,0x6c,0x67])]==_0x49b488([0x45,0x53,0x32,0x35,0x36])||(_0x4b94f0=!0x1);}async function _0x445cfa(_0x447635,_0x1e7a4f,_0x50bd22){const _0x56a583=window[_0x49b488([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x49b488([0x66,0x72,0x6f,0x6d])](_0x5d9983(_0x50bd22),_0x3756df=>_0x3756df[_0x49b488([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x286c6b=new window[(_0x49b488([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x49b488([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x447635+_0x49b488([0x2e])+_0x1e7a4f),_0x23a679=window[_0x49b488([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x49b488([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x23a679)return;const _0x50f2ac=await _0x23a679[_0x49b488([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x49b488([0x6a,0x77,0x6b]),_0x255b23,{[_0x49b488([0x6e,0x61,0x6d,0x65])]:_0x49b488([0x45,0x43,0x44,0x53,0x41]),[_0x49b488([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x49b488([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x49b488([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x23a679[_0x49b488([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x49b488([0x6e,0x61,0x6d,0x65])]:_0x49b488([0x45,0x43,0x44,0x53,0x41]),[_0x49b488([0x68,0x61,0x73,0x68])]:{[_0x49b488([0x6e,0x61,0x6d,0x65])]:_0x49b488([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x50f2ac,_0x56a583,_0x286c6b)||(_0x4b94f0=!0x1);}}function _0x144c58(_0xc2eaf4){return _0xc2eaf4[_0x49b488([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x49b488([0x65,0x79]))?JSON[_0x49b488([0x70,0x61,0x72,0x73,0x65])](_0x5d9983(_0xc2eaf4)):null;}function _0x5d9983(_0x24d26a){return window[_0x49b488([0x61,0x74,0x6f,0x62])](_0x24d26a[_0x49b488([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x49b488([0x2b]))[_0x49b488([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x49b488([0x2f])));}function _0x2571fa(_0x3e58db){let _0x507804=0x1505;function _0x6f9b01(_0x510b62){for(let _0xc19c86=0x0;_0xc19c86<_0x510b62[_0x49b488([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xc19c86++){const _0x1ffc2c=_0x510b62[_0x49b488([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xc19c86);_0x507804=(_0x507804<<0x5)+_0x507804+_0x1ffc2c,_0x507804&=_0x507804;}}function _0x167a39(_0x3995ad){Array[_0x49b488([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3995ad)?_0x3995ad[_0x49b488([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x167a39):_0x3995ad&&typeof _0x3995ad==_0x49b488([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x49b488([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3995ad)[_0x49b488([0x73,0x6f,0x72,0x74])]()[_0x49b488([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3c8ab2,_0x5c397d])=>{_0x6f9b01(_0x3c8ab2),_0x167a39(_0x5c397d);}):_0x6f9b01(window[_0x49b488([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3995ad));}return _0x167a39(_0x3e58db),_0x507804>>>0x0;}function _0x88dcd1(_0xa4b570){return _0xa4b570[_0x49b488([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x49b488([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x49b488([0x30]));}function _0x572c46(_0x833d5e){return _0x833d5e[_0x49b488([0x73,0x70,0x6c,0x69,0x74])]('')[_0x49b488([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x49b488([0x6a,0x6f,0x69,0x6e])]('');}function _0x1fb48d(_0x42d2c2){return _0x2d55f4[_0x49b488([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x49b488([0x68,0x61,0x73])](_0x42d2c2);}function _0x2873a5(_0x169fc6){return _0x2d55f4[_0x49b488([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x49b488([0x67,0x65,0x74])](_0x169fc6);}function _0x39c55b(){}function _0x49b488(_0x1cd2a0){return _0x1cd2a0['map'](_0x26972e=>String['fromCharCode'](_0x26972e))['join']('');}_0x1a5393(await _0x530965());}(this);}set['adapter'](_0x4984b2){if(this['_adapter'])throw new _0x2ba13e('track-changes-adapter-already-set',this);this['_adapter']=_0x4984b2;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x319189=!0x1,toJSON:_0x18fa77=!0x1}={}){const _0x17818c=[];for(const _0x2533de of this['_suggestions']['values']())_0x319189&&!_0x2533de['isInContent']||_0x17818c['push'](_0x2533de);return _0x18fa77?_0x17818c['map'](_0x97c177=>_0x97c177['toJSON']()):_0x17818c;}['getSuggestion'](_0x26a4f7){const _0x1b74bf=this['_suggestions']['get'](_0x26a4f7);if(!_0x1b74bf)throw new _0x2ba13e('track-changes-suggestion-not-found',this);return _0x1b74bf;}['hasSuggestion'](_0x2495de){return this['_suggestions']['has'](_0x2495de);}['addSuggestionData'](_0xf1b62a){const {authorId:_0x49dce9,id:_0x28c498,originalSuggestionId:_0x353d29,attributes:_0x1315b6}=_0xf1b62a,[_0x373856,_0xbd5d7f]=_0xf1b62a['type']['split'](':'),_0x5b0b93=this['_suggestions']['get'](_0x28c498)||this['_createSuggestion'](_0x373856,_0xbd5d7f,_0x28c498,_0x49dce9,_0x1315b6,_0x353d29);if(this['_addThreadToSuggestion'](_0x5b0b93),this['_checkSuggestionCorrectness'](_0x5b0b93,_0x373856,_0xbd5d7f||null,_0x49dce9),_0x5b0b93['createdAt']=_0xf1b62a['createdAt'],_0x5b0b93['_isDataLoaded']=!0x0,_0x1315b6&&_0x1315b6['@external']){const _0x2cfa3a=_0x1315b6['@external'],_0x5c28de=this['_getExternalAuthor'](_0x2cfa3a['authorName']);_0x5b0b93['authoredAt']=_0x2cfa3a['createdAt'],_0x5b0b93['author']=_0x5c28de,_0x5b0b93['isExternal']=!0x0;}else _0x5b0b93['authoredAt']=_0xf1b62a['createdAt'];switch(_0xf1b62a['data']&&(_0x5b0b93['data']=_0xf1b62a['data']),_0xf1b62a['attributes']&&(_0x5b0b93['attributes']=_0xf1b62a['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x5b0b93['_saved']=!0x0),this['_suggestionState']['get'](_0x5b0b93)){case'notReady':this['_suggestionState']['set'](_0x5b0b93,'dataReady');break;case'markerReady':_0x5b0b93['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x5b0b93])),this['_refreshSuggestionsChain'](new Set([_0x5b0b93])),this['_suggestionState']['set'](_0x5b0b93,'ready'),this['fire']('suggestionLoaded',_0x5b0b93)):this['_suggestionState']['set'](_0x5b0b93,'removed');}return _0x5b0b93;}['acceptSuggestion'](_0x24c9af){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x32e933 of _0x24c9af['getAllAdjacentSuggestions']())_0x32e933['accept']();});});}['discardSuggestion'](_0x4cfb22){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x319a0e of _0x4cfb22['getAllAdjacentSuggestions']())_0x319a0e['discard']();});});}['enableCommand'](_0x32514d,_0x21c891){const _0x2533f1=this['editor']['commands']['get'](_0x32514d);if(!_0x2533f1)throw new _0x2ba13e('track-changes-command-not-found',this,{'commandName':_0x32514d});if(this['_enabledCommands']['has'](_0x2533f1))throw new _0x2ba13e('track-changes-enable-command-twice',this,{'commandName':_0x32514d});this['_enabledCommands']['add'](_0x2533f1),_0x21c891&&_0x2533f1['on']('execute',(_0x3331d5,_0x557f77)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x557f77['length']>0x0&&_0x557f77[_0x557f77['length']-0x1]&&_0x557f77[_0x557f77['length']-0x1]['forceDefaultExecution']?_0x557f77['pop']():(_0x3331d5['return']=_0x21c891((..._0xb7fce5)=>_0x2533f1['execute'](..._0xb7fce5,{'forceDefaultExecution':!0x0}),..._0x557f77),_0x3331d5['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x2347e6){let _0x3cff44,_0x4c6c17;const _0x3859eb=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3cff44=_0x2347e6();}catch(_0x161b2b){_0x4c6c17=_0x161b2b;}return _0x3859eb||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4c6c17&&_0x2ba13e['rethrowUnexpectedError'](_0x4c6c17,this),_0x3cff44;}['markInsertion'](_0x125801,_0x10c77a=null,_0x1727ac={}){if(_0x125801['isCollapsed'])return null;const _0x2dbce7=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x1727ac['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1a6eeb,meta:_0x5a0db2}of this['_findSuggestions'](_0x125801,'insertion'))if(_0x5a0db2['isOwn']){if(!_0x5a0db2['isNextTo']){if(_0x5a0db2['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Wt(_0x1a6eeb,_0x1727ac))continue;return _0x1a6eeb;}if(Wt(_0x1a6eeb,_0x1727ac))return _0x1a6eeb;this['_breakSuggestionMarker'](_0x1a6eeb,_0x125801['start'],_0x125801['end']);break;}if(_0x10c77a==_0x1a6eeb['subType']&&Wt(_0x1a6eeb,_0x1727ac)){const _0x21b668=_0x1a6eeb['getFirstRange']();return _0x21b668['start']['isEqual'](_0x125801['end'])?this['_setSuggestionRange'](_0x1a6eeb,this['_model']['createRange'](_0x125801['start'],_0x21b668['end'])):this['_setSuggestionRange'](_0x1a6eeb,this['_model']['createRange'](_0x21b668['start'],_0x125801['end'])),_0x1a6eeb;}}const _0x300f61=_0x4fc05b(),_0x50d9e7=_0x2dbce7['id'],_0x560e47=_0x10c77a?'insertion:'+_0x10c77a:'insertion',_0x3ed725=this['_setSuggestionData']({'id':_0x300f61,'type':_0x560e47,'createdAt':new Date(),'authorId':_0x50d9e7,'attributes':_0x1727ac});return this['_addSuggestionMarker'](_0x560e47,_0x300f61,_0x50d9e7,_0x125801),_0x3ed725;}['markMultiRangeInsertion'](_0x4f0db7,_0x5cd159='multi',_0xee9990={}){const _0x39d72e=this['editor']['plugins']['get']('Users')['me'],_0x2a0ac9=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x5cd159,'join');this['_trackingSessionId']&&(_0xee9990['trackingSessionId']=this['_trackingSessionId']);for(const _0xd8ec5a of this['getSuggestions']())if(_0xd8ec5a['author']['id']==_0x39d72e['id']&&'insertion'==_0xd8ec5a['type']&&_0xd8ec5a['subType']==_0x5cd159&&Wt(_0xd8ec5a,_0xee9990)&&(_0x2a0ac9(_0xd8ec5a['getRanges'](),_0x4f0db7)||_0x2a0ac9(_0x4f0db7,_0xd8ec5a['getRanges']()))){for(const _0x2cd517 of _0x4f0db7)_0xd8ec5a['addRange'](_0x2cd517);return _0xd8ec5a;}for(const {suggestion:_0x2453ba,meta:_0x5339ba}of this['_findSuggestions'](_0x4f0db7,'insertion')){if(!_0x5339ba['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x5339ba['containsRangeInObject'])continue;if(!Wt(_0x2453ba,_0xee9990))continue;let _0x162dc8=!0x0;for(const _0x45ac22 of _0x2453ba['getRanges']())for(const _0x27b268 of _0x4f0db7)if(!_0x45ac22['containsRange'](_0x27b268)){_0x162dc8=!0x1;break;}if(_0x162dc8)return _0x2453ba;}const _0x3e1c93=_0x4fc05b(),_0xcab1b3=_0x39d72e['id'],_0x34d9c6='insertion:'+_0x5cd159,_0x2a9545=this['_setSuggestionData']({'id':_0x3e1c93,'type':_0x34d9c6,'createdAt':new Date(),'authorId':_0xcab1b3,'attributes':_0xee9990});for(const _0x5edac of _0x4f0db7)this['_addSuggestionMarker'](_0x34d9c6,_0x3e1c93,_0xcab1b3,_0x5edac,x['getMultiRangeId']());return _0x2a9545;}['markInlineFormat'](_0x223766,_0x17abbf,_0x137194=null,_0x32bb78={}){if(_0x137194=_0x137194||Lt(_0x17abbf),_0x223766['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x32bb78['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5a71b1=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x137194,'accept');return this['forceDefaultExecution'](()=>_0x5a71b1([_0x223766],_0x17abbf,_0x32bb78)),null;}const _0x4c430e=this['editor']['plugins']['get']('Users')['me'],_0x414a77=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3bcbc7,meta:_0x34b35e}of this['_findSuggestions'](_0x223766,'insertion'))_0x34b35e['isOwn']&&!_0x34b35e['isInsideObject']&&_0x414a77['push'](..._0x3bcbc7['getRanges']());}const _0x4d8ef3=function(_0x3259e5,_0x2ed6e0){const _0x23406c=[];for(const _0x4f54bb of _0x2ed6e0){const _0x57e572=_0x3259e5['getIntersection'](_0x4f54bb);_0x57e572&&_0x23406c['push'](_0x57e572);}return _0x23406c;}(_0x223766,_0x414a77),_0x41e00a=function(_0x3e567a,_0x1a1da5){const _0x3c7c8f=[_0x3e567a];for(const _0x76f5f1 of _0x1a1da5){let _0x29779d=0x0;for(;_0x29779d<_0x3c7c8f['length'];){const _0xded910=_0x3c7c8f[_0x29779d]['getDifference'](_0x76f5f1);_0x3c7c8f['splice'](_0x29779d,0x1,..._0xded910),_0x29779d+=_0xded910['length'];}}return _0x3c7c8f;}(_0x223766,_0x414a77);_0x4d8ef3['length']&&this['_model']['change'](()=>{for(const _0x4cea82 of _0x4d8ef3){const _0x31987a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x137194,'accept');this['forceDefaultExecution'](()=>_0x31987a([_0x4cea82],_0x17abbf,_0x32bb78));}});for(const _0x4a6981 of _0x41e00a){let _0x26ad60=null,_0x3df415=_0x4a6981['start'],_0x4c729d=_0x4a6981['end'];for(const {suggestion:_0x167b85,meta:_0x571a87}of this['_findSuggestions'](_0x4a6981,'formatInline')){if(!_0x571a87['isOwn'])continue;if(_0x167b85['subType']!=_0x137194)continue;if(!Wt(_0x167b85,_0x32bb78))continue;const _0x5380ad=_0x167b85['getFirstRange']();if(_0x5380ad['containsRange'](_0x4a6981,!0x0))return null;_0x3df415=_0x3df415['isBefore'](_0x5380ad['start'])?_0x3df415:_0x5380ad['start'],_0x4c729d=_0x4c729d['isAfter'](_0x5380ad['end'])?_0x4c729d:_0x5380ad['end'],_0x26ad60?_0x5380ad['start']['isBefore'](_0x26ad60['getFirstRange']()['start'])?(_0x26ad60['removeMarkers'](),_0x26ad60=_0x167b85):_0x167b85['removeMarkers']():_0x26ad60=_0x167b85;}const _0x5f3560=this['_model']['createRange'](_0x3df415,_0x4c729d);if(_0x26ad60)this['_setSuggestionRange'](_0x26ad60,_0x5f3560);else{const _0x31d022=_0x4fc05b(),_0x5aeedf=_0x4c430e['id'];this['_setSuggestionData']({'id':_0x31d022,'type':'formatInline:'+_0x137194,'data':_0x17abbf,'createdAt':new Date(),'authorId':_0x5aeedf,'attributes':_0x32bb78}),this['_addSuggestionMarker']('formatInline:'+_0x137194,_0x31d022,_0x5aeedf,_0x5f3560);}}return null;}['markBlockFormat'](_0x2b298e,_0x213045,_0x2cd07d=[],_0x15f12b=null,_0x46c78d={}){_0x213045['formatGroupId']||(_0x213045['formatGroupId']=_0x213045['commandName']),_0x213045['multipleBlocks']=_0x2b298e['is']('range'),_0x15f12b=_0x15f12b||Lt(_0x213045);const _0x46cc57=_0x2cd07d['map'](_0x48b05f=>Ht(_0x48b05f,this['_model'])),_0x3d8ecf=_0x2b298e['is']('range')?_0x2b298e:Ht(_0x2b298e,this['_model']);if(this['_trackingSessionId']&&(_0x46c78d['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1fdb2f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x15f12b,'accept');return this['forceDefaultExecution'](()=>_0x1fdb2f([_0x3d8ecf],_0x213045,_0x46c78d)),null;}_0x46cc57['push'](_0x3d8ecf);let _0x3057df=!0x0;for(const _0x1bb4b1 of _0x46cc57)if(!this['_rangeIsInLocalUserInsertion'](_0x1bb4b1)){_0x3057df=!0x1;break;}if(_0x3057df&&'always'!==this['_trackFormatChanges']){const _0x5d0fa9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x15f12b,'accept');return this['forceDefaultExecution'](()=>_0x5d0fa9([_0x3d8ecf],_0x213045,_0x46c78d)),null;}let _0x286b8a=null,_0x28f968=_0x3d8ecf['start'],_0x8e4b4e=_0x3d8ecf['end'];for(const {suggestion:_0x216ed8,meta:_0x2c8b74}of this['_findSuggestions'](_0x3d8ecf,'formatBlock')){if(!_0x2c8b74['isOwn'])continue;if(_0x2c8b74['isNextTo']||_0x2c8b74['containsRangeInObject']||_0x2c8b74['isInsideObject'])continue;if(_0x216ed8['data']['formatGroupId']!=_0x213045['formatGroupId'])continue;if(!Wt(_0x216ed8,_0x46c78d))continue;const _0x390d3f=_0x216ed8['getFirstRange']();if(_0x216ed8['subType']==_0x15f12b){if(_0x390d3f['containsRange'](_0x3d8ecf,!0x0))return null;_0x28f968=_0x28f968['isBefore'](_0x390d3f['start'])?_0x28f968:_0x390d3f['start'],_0x8e4b4e=_0x8e4b4e['isAfter'](_0x390d3f['end'])?_0x8e4b4e:_0x390d3f['end'],_0x286b8a?_0x390d3f['start']['isBefore'](_0x286b8a['getFirstRange']()['start'])?(_0x286b8a['removeMarkers'](),_0x286b8a=_0x216ed8):_0x216ed8['removeMarkers']():_0x286b8a=_0x216ed8;}else{const _0x2246b7=_0x3d8ecf['getIntersection'](_0x390d3f);this['_cutOutSuggestionMarker'](_0x216ed8,_0x2246b7);}}const _0x442d4d=this['editor']['plugins']['get']('Users')['me'],_0x538cb9=_0x4fc05b(),_0x39023b=_0x442d4d['id'];if(_0x286b8a)return this['_setSuggestionRange'](_0x286b8a,this['_model']['createRange'](_0x28f968,_0x8e4b4e)),_0x286b8a;{const _0x1865fe=this['_setSuggestionData']({'id':_0x538cb9,'type':'formatBlock:'+_0x15f12b,'data':_0x213045,'createdAt':new Date(),'authorId':_0x39023b,'attributes':_0x46c78d});return this['_addSuggestionMarker']('formatBlock:'+_0x15f12b,_0x538cb9,_0x39023b,this['_model']['createRange'](_0x28f968,_0x8e4b4e)),_0x1865fe;}}['markMultiRangeBlockFormat'](_0xb17b3b,_0x1a3609,_0x552520=[],_0x2e16c1=null,_0x124164={}){_0x1a3609['formatGroupId']||(_0x1a3609['formatGroupId']=_0x1a3609['commandName']);const _0x1f3f92=_0xb17b3b[0x0];_0x1a3609['multipleBlocks']=_0x1f3f92['is']('range'),_0x2e16c1=_0x2e16c1||Lt(_0x1a3609);const _0x26255d=_0x552520['map'](_0x446fe0=>Ht(_0x446fe0,this['_model'])),_0x3af6d7=_0x1f3f92['is']('range')?_0xb17b3b:_0xb17b3b['map'](_0x523321=>Ht(_0x523321,this['_model']));if(this['_trackingSessionId']&&(_0x124164['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x21bcf7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2e16c1,'accept');return this['forceDefaultExecution'](()=>_0x21bcf7(_0x3af6d7,_0x1a3609,_0x124164)),null;}_0x26255d['push'](..._0x3af6d7);let _0xf112c2=!0x0;for(const _0x5c88fb of _0x26255d)if(!this['_rangeIsInLocalUserInsertion'](_0x5c88fb)){_0xf112c2=!0x1;break;}if(_0xf112c2&&'always'!==this['_trackFormatChanges']){const _0x29010c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2e16c1,'accept');return this['forceDefaultExecution'](()=>_0x29010c(_0x3af6d7,_0x1a3609,_0x124164)),null;}const _0x42946b=this['editor']['plugins']['get']('Users')['me'];for(const _0x14c710 of this['getSuggestions']()){if(_0x14c710['author']['id']!=_0x42946b['id'])continue;if('formatBlock'!=_0x14c710['type']||_0x14c710['data']['formatGroupId']!=_0x1a3609['formatGroupId'])continue;if(!Wt(_0x14c710,_0x124164))continue;const _0x23d461=_0x14c710['subType']==_0x2e16c1;for(let _0x1189d4=0x0;_0x1189d4<_0x3af6d7['length'];_0x1189d4++){const _0x1c8b4f=_0x3af6d7[_0x1189d4];for(const _0x4dcc17 of _0x14c710['getMarkers']()){const _0x36b10b=_0x4dcc17['getRange']();if(_0x1c8b4f['isEqual'](_0x36b10b)){_0x23d461?(_0x3af6d7['splice'](_0x1189d4,0x1),_0x1189d4--):_0x14c710['removeMarker'](_0x4dcc17['name']);break;}}}}if(0x0==_0x3af6d7['length'])return null;const _0xf2ad84=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2e16c1,'join');for(const _0x45f893 of this['getSuggestions']())if(_0x45f893['author']['id']==_0x42946b['id']&&'formatBlock'==_0x45f893['type']&&_0x45f893['data']['formatGroupId']==_0x1a3609['formatGroupId']&&_0x45f893['subType']==_0x2e16c1&&Wt(_0x45f893,_0x124164)&&(_0xf2ad84(_0x45f893['getRanges'](),_0x3af6d7)||_0xf2ad84(_0x3af6d7,_0x45f893['getRanges']()))){for(const _0x26b547 of _0x3af6d7)_0x45f893['addRange'](_0x26b547);return _0x45f893;}const _0x1cc671=_0x4fc05b(),_0x323aeb=_0x42946b['id'],_0x62b9d3='formatBlock:'+_0x2e16c1,_0x35cd62=this['_setSuggestionData']({'id':_0x1cc671,'type':_0x62b9d3,'data':_0x1a3609,'createdAt':new Date(),'authorId':_0x323aeb,'attributes':_0x124164});for(const _0x4fb461 of _0x3af6d7)this['_addSuggestionMarker'](_0x62b9d3,_0x1cc671,_0x323aeb,_0x4fb461,x['getMultiRangeId']());return _0x35cd62;}['markDeletion'](_0x44cfa5,_0x53800e=null,_0x3dc8af={}){if(_0x44cfa5['isCollapsed'])return null;const _0x1e4666=this['editor']['plugins']['get']('Users')['me'],_0x1d5311=new _0x527bd9(_0x44cfa5['start'],_0x44cfa5['end']);this['_trackingSessionId']&&(_0x3dc8af['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x9ada9c,meta:_0x2735f1}of this['_findSuggestions'](_0x1d5311,'insertion'))if(_0x2735f1['isOwn']&&!_0x2735f1['isNextTo']){if(_0x9ada9c['isMultiRange']){const _0xad3694=_0x9ada9c['getRanges']()['filter'](_0x1598fa=>'$graveyard'!=_0x1598fa['root']['rootName']);_0xad3694['every'](_0x169d47=>_0x1d5311['containsRange'](_0x169d47,!0x0))&&_0x9ada9c['discard']();if(_0xad3694['some'](_0x4259f4=>_0x4259f4['containsRange'](_0x1d5311,!0x0))){const _0x29eeb7=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x53800e,'accept');return this['forceDefaultExecution'](()=>_0x29eeb7([_0x1d5311],null,_0x3dc8af)),null;}}else{const _0x45ae5b=_0x1d5311['getIntersection'](_0x9ada9c['getFirstRange']());null!==_0x45ae5b&&_0x9ada9c['_onDiscard']([_0x45ae5b],null,_0x3dc8af);}}if(_0x1d5311['detach'](),_0x1d5311['isCollapsed']||'$graveyard'==_0x1d5311['root']['rootName'])return null;let _0x109f6d=null,_0x36b99b=_0x1d5311['start'],_0x52f926=_0x1d5311['end'];const _0x15a463=this['_findSuggestions'](_0x1d5311,'deletion');for(const {suggestion:_0xcb969,meta:_0x85f97d}of _0x15a463){const _0x2c0ef1=this['_model']['createRange'](_0x36b99b,_0x52f926);if(_0x85f97d['isOwn']&&(this['_mergeNestedSuggestions']||!_0x85f97d['containsRangeInObject']&&!_0x85f97d['isInsideObject'])){if(_0xcb969['isMultiRange']){if(!Wt(_0xcb969,_0x3dc8af))continue;let _0x163b85=!0x0;for(const _0x6c95c8 of _0xcb969['getRanges']()){if(_0x6c95c8['containsRange'](_0x2c0ef1,!0x0))return _0xcb969;_0x2c0ef1['containsRange'](_0x6c95c8)||(_0x163b85=!0x1);}_0x163b85&&_0xcb969['discard']();}else{const _0x564d79=_0xcb969['getFirstRange']();if(_0x564d79['containsRange'](_0x2c0ef1,!0x0))return _0xcb969;if(!Wt(_0xcb969,_0x3dc8af)){_0x2c0ef1['containsRange'](_0x564d79)?_0xcb969['removeMarkers']():_0x564d79['containsPosition'](_0x36b99b)?_0x36b99b=_0x564d79['end']:_0x564d79['containsPosition'](_0x52f926)&&(_0x52f926=_0x564d79['start']);continue;}_0x36b99b=_0x36b99b['isBefore'](_0x564d79['start'])?_0x36b99b:_0x564d79['start'],_0x52f926=_0x52f926['isAfter'](_0x564d79['end'])?_0x52f926:_0x564d79['end'],_0x3dc8af=Object['assign']({},_0xcb969['attributes']),_0x109f6d?_0x564d79['start']['isBefore'](_0x109f6d['getFirstRange']()['start'])?(_0x109f6d['removeMarkers'](),_0x109f6d=_0xcb969):_0xcb969['removeMarkers']():_0x109f6d=_0xcb969;}}}if(_0x109f6d)return this['_setSuggestionRange'](_0x109f6d,this['_model']['createRange'](_0x36b99b,_0x52f926)),_0x109f6d;{const _0x327da0=_0x4fc05b(),_0x5cde04=this['_model']['createRange'](_0x36b99b,_0x52f926),_0x23a704=_0x1e4666['id'],_0x432c13=_0x53800e?'deletion:'+_0x53800e:'deletion',_0x140f29=this['_setSuggestionData']({'id':_0x327da0,'type':_0x432c13,'createdAt':new Date(),'authorId':_0x23a704,'attributes':_0x3dc8af});return this['_addSuggestionMarker'](_0x432c13,_0x327da0,_0x23a704,_0x5cde04),_0x140f29;}}['markMultiRangeDeletion'](_0x227d24,_0x4cdd5e='multi',_0x5b4456={}){const _0x358242=this['editor']['plugins']['get']('Users')['me'],_0x516257=_0x227d24['map'](_0x2d067c=>new _0x527bd9(_0x2d067c['start'],_0x2d067c['end'])),_0x3d38c6=new Set();this['_trackingSessionId']&&(_0x5b4456['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5a25b1,meta:_0x585afc}of this['_findSuggestions'](_0x516257,'insertion'))_0x585afc['isOwn']&&!_0x585afc['isNextTo']&&_0x3d38c6['add'](_0x5a25b1);for(const _0x4a43be of _0x3d38c6)if(_0x4a43be['isMultiRange']){const _0x2b040f=_0x4a43be['getRanges']();(!_0x4a43be['attributes']||!_0x4a43be['attributes']['skipNestingCheck'])&&(_0x2b040f['every'](_0x1ce18f=>_0x516257['some'](_0x14d5f0=>_0x14d5f0['containsRange'](_0x1ce18f,!0x0)))&&_0x4a43be['discard']());if(_0x516257['every'](_0x48a2d7=>_0x2b040f['some'](_0xe8b695=>_0xe8b695['containsRange'](_0x48a2d7,!0x0)))){const _0x2bd086=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4cdd5e,'accept');return this['forceDefaultExecution'](()=>_0x2bd086(_0x227d24,null,_0x5b4456)),null;}}else{const _0x118643=_0x4a43be['getFirstRange']();_0x516257['some'](_0x40d697=>_0x40d697['containsRange'](_0x118643,!0x0))&&_0x4a43be['discard']();if(_0x516257['every'](_0x3dd05c=>_0x118643['containsRange'](_0x3dd05c,!0x0))){const _0x539210=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4cdd5e,'accept');return this['forceDefaultExecution'](()=>_0x539210(_0x516257,null,_0x5b4456)),null;}}const _0x4346ce=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4cdd5e,'join');let _0x247df9=null;for(const _0x593367 of this['getSuggestions']())if(_0x593367['author']['id']==_0x358242['id']&&_0x593367['isInContent']&&'deletion'==_0x593367['type']&&_0x593367['subType']==_0x4cdd5e&&Wt(_0x593367,_0x5b4456)&&(_0x4346ce(_0x593367['getRanges'](),_0x516257)||_0x4346ce(_0x516257,_0x593367['getRanges']()))){if(_0x247df9){if(_0x593367['commentThread']&&_0x593367['commentThread']['length'])continue;for(const _0x23a05e of _0x593367['getRanges']())_0x247df9['isIntersectingWithRange'](_0x23a05e)||_0x247df9['addRange'](_0x23a05e);_0x593367['removeMarkers']();}else{_0x247df9=_0x593367;for(const _0x5be9f9 of _0x516257)_0x593367['isIntersectingWithRange'](_0x5be9f9)||_0x593367['addRange'](_0x5be9f9);}}if(_0x247df9)return _0x247df9;_0x3d38c6['clear']();for(const {suggestion:_0x4f996e,meta:_0xee9894}of this['_findSuggestions'](_0x516257,'deletion'))_0xee9894['isOwn']&&(this['_mergeNestedSuggestions']||!_0xee9894['containsRangeInObject']&&!_0xee9894['isInsideObject'])&&Wt(_0x4f996e,_0x5b4456)&&_0x3d38c6['add'](_0x4f996e);for(const _0x3bb078 of _0x3d38c6){const _0x5a9803=_0x3bb078['getRanges']();if(!_0x5b4456||!_0x5b4456['skipNestingCheck']){if(_0x516257['every'](_0x5c7120=>_0x5a9803['some'](_0x3d69e3=>_0x3d69e3['containsRange'](_0x5c7120,!0x0))))return _0x3bb078;}(!_0x3bb078['attributes']||!_0x3bb078['attributes']['skipNestingCheck'])&&(_0x5a9803['every'](_0x2736a4=>_0x516257['some'](_0x1599c3=>_0x1599c3['containsRange'](_0x2736a4,!0x0)))&&_0x3bb078['discard']());}const _0x2ae1d6=_0x4fc05b(),_0x45a05a=_0x358242['id'],_0x36be62='deletion:'+_0x4cdd5e,_0x122331=this['_setSuggestionData']({'id':_0x2ae1d6,'type':_0x36be62,'createdAt':new Date(),'authorId':_0x45a05a,'attributes':_0x5b4456});for(const _0x2fbb80 of _0x516257)_0x2fbb80['detach'](),_0x2fbb80['isCollapsed']||'$graveyard'==_0x2fbb80['root']['rootName']||this['_addSuggestionMarker'](_0x36be62,_0x2ae1d6,_0x45a05a,_0x2fbb80,x['getMultiRangeId']());return _0x122331;}['markAttributeChange'](_0x3e9179,_0x3237e4,_0x135afa,_0x24a89b,_0x5c55aa){if(_0x3e9179['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2dfd1b=this['editor']['plugins']['get']('Users')['me']['id'],_0xbddbe6=Array['from'](this['_suggestions']['values']())['filter'](_0x440a1d=>'attribute'==_0x440a1d['type']&&_0x440a1d['data']['key']==_0x3237e4&&_0x440a1d['isIntersectingWithRange'](_0x3e9179));if(this['_trackingSessionId']&&(_0x5c55aa['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x532da3=this['_findSuggestions'](_0x3e9179,'insertion')['filter'](({meta:_0x13383b})=>_0x13383b['isOwn']&&!_0x13383b['isInsideObject']&&!_0x13383b['isNextTo'])['map'](({suggestion:_0x40db68})=>_0x40db68);_0xbddbe6['unshift'](..._0x532da3);}const _0x3debb2=new Map([[_0x3e9179,_0x135afa]]);for(const _0x547305 of _0xbddbe6){const _0x271f29='attribute'==_0x547305['type']?_0x547305['data']['oldValue']:void 0x0,_0x1bfd72=_0x547305['getFirstRange'](),_0x548193=Array['from'](_0x3debb2['keys']())['find'](_0x5b5792=>_0x5b5792['isIntersecting'](_0x1bfd72));if(!_0x548193)continue;const _0x23a70e=_0x548193['getDifference'](_0x1bfd72);this['_isBlockAttribute'](_0x3237e4)&&'insertion'==_0x547305['type']&&0x0!=_0x23a70e['length']||(_0x3debb2['delete'](_0x548193),_0x23a70e['forEach'](_0x398de3=>{_0x3debb2['set'](_0x398de3,_0x135afa);}),'insertion'!=_0x547305['type']&&_0x271f29!=_0x24a89b&&_0x3debb2['set'](_0x548193['getIntersection'](_0x1bfd72),_0x271f29));}const _0x3c9c1e=[];for(const [_0x3a5b2b,_0xd46cef]of _0x3debb2){const _0x5bd2a2=_0x4fc05b(),_0x43b58e={'key':_0x3237e4,'oldValue':_0xd46cef,'newValue':_0x24a89b};_0x3237e4['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':_0x3237e4});const _0x163c40=('attribute:'+(_0x3237e4+'|'+Lt({'newValue':_0x24a89b})))['substring'](0x0,0x3c),_0x5ebe21=this['_setSuggestionData']({'id':_0x5bd2a2,'type':_0x163c40,'data':_0x43b58e,'createdAt':new Date(),'authorId':_0x2dfd1b,'attributes':_0x5c55aa});_0x3c9c1e['push'](_0x5ebe21),this['_addSuggestionMarker'](_0x163c40,_0x5bd2a2,_0x2dfd1b,_0x3a5b2b);}return _0x3c9c1e;}['enableDefaultAttributesIntegration'](_0x342850){this['enableCommand'](_0x342850,(_0x2144d7,..._0x4831ca)=>{this['_recordAttributeChanges'](()=>{_0x2144d7(..._0x4831ca);});});}['registerBlockAttribute'](_0x8d7517){this['_blockAttributeKeys']['add'](_0x8d7517);}['registerInlineAttribute'](_0x1e2915){this['_inlineAttributeKeys']['add'](_0x1e2915);}['startTrackingSession'](_0x36c383){return this['_trackingSessionId']=void 0x0!==_0x36c383?_0x36c383:_0x4fc05b(),this['_trackingSessionId'];}['_getAttributeKey'](_0x526566){return'attribute'==_0x526566['type']?_0x526566['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x31cc80,_0x3c90db){const _0x247867=_0x31cc80['getFirstMarker']();this['_model']['change'](_0xb9bf69=>{_0xb9bf69['updateMarker'](_0x247867,{'range':_0x3c90db});});}['_addThreadToSuggestion'](_0x4bf426){const _0x47057a=_0x4bf426['id'],_0x11a5de=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x47057a)||this['_commentsRepository']['addCommentThread']({'channelId':_0x11a5de,'threadId':_0x47057a,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x6b241=this['_commentsRepository']['getCommentThread'](_0x47057a);_0x6b241['unbind']('isRemovable'),_0x6b241['isRemovable']=!0x1,_0x4bf426['commentThread']=_0x6b241;}['_checkSuggestionCorrectness'](_0x618766,_0xf58f9a,_0x8954e4,_0x5a4c46){if(_0x618766['type']!=_0xf58f9a||_0x618766['subType']!=_0x8954e4||_0x618766['creator']['id']!=_0x5a4c46)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2ba13e('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1890ee,_0x3f0b7d){const _0x20c7ff=_0x1890ee['getFirstRange']();if(_0x3f0b7d['isEqual'](_0x20c7ff))_0x1890ee['removeMarkers']();else{if(_0x20c7ff['containsRange'](_0x3f0b7d)){const _0x3cacb7=this['_model']['createPositionAt'](_0x3f0b7d['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1890ee,this['_model']['createRange'](_0x20c7ff['start'],_0x3cacb7));const _0x1f8eb8=_0x4fc05b(),_0x4d23cb=_0x1890ee['creator']['id'],_0x355e11=_0x1890ee['type']+':'+_0x1890ee['subType'];this['_setSuggestionData']({'id':_0x1f8eb8,'type':_0x355e11,'createdAt':new Date(),'authorId':_0x4d23cb,'data':_0x1890ee['data'],'attributes':_0x1890ee['attributes']});const _0xb2ea72=this['_model']['createPositionAt'](_0x3f0b7d['end']['parent'],'after'),_0x440e28=this['_model']['createRange'](_0xb2ea72,_0x20c7ff['end']);this['_addSuggestionMarker'](_0x355e11,_0x1f8eb8,_0x4d23cb,_0x440e28);}else{if(_0x20c7ff['containsPosition'](_0x3f0b7d['start'])){const _0x4f889f=this['_model']['createPositionAt'](_0x3f0b7d['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1890ee,this['_model']['createRange'](_0x20c7ff['start'],_0x4f889f));}else{const _0x1eb24f=this['_model']['createPositionAt'](_0x3f0b7d['end']['parent'],'after');this['_setSuggestionRange'](_0x1890ee,this['_model']['createRange'](_0x1eb24f,_0x20c7ff['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1c65b6){for(const {suggestion:_0x1abc51,meta:_0x1ae959}of this['_findSuggestions'](_0x1c65b6,'insertion')){if(!_0x1ae959['isOwn'])continue;const _0x119d44=_0x1abc51['getRanges']();for(const _0x427214 of _0x119d44)if(!_0x1c65b6['getDifference'](_0x427214)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4a7a2e){const _0x1497e0=this['editor']['plugins']['get']('Users')['getUser'](_0x4a7a2e);if(!_0x1497e0)throw new _0x2ba13e('track-changes-user-not-found',this);return _0x1497e0;}['_getExternalAuthor'](_0x56bf8d){const _0x2d2042=this['editor']['plugins']['get']('Users'),_0x15febc=_0x3ba6f1('external:'+_0x56bf8d),_0xe35faa=_0x2d2042['getUser'](_0x15febc);return _0xe35faa||_0x2d2042['addUser']({'id':_0x15febc,'name':_0x56bf8d});}['_createSuggestion'](_0x32cb25,_0xdbb6b3,_0x48916a,_0x468987,_0x4b5182,_0x55f825){const _0x479519=this['_getAuthorFromId'](_0x468987),_0x275d86=this['_suggestionFactory']['buildSuggestion'](_0x32cb25,_0xdbb6b3,_0x48916a,_0x479519,_0x4b5182,_0x29473b=>{this['_updateSuggestionData'](_0x48916a,{'attributes':_0x29473b});const _0x378bb4=this['getSuggestion'](_0x48916a);this['_joinWithAdjacentSuggestions'](new Set([_0x378bb4])),this['_refreshSuggestionsChain'](new Set([_0x378bb4]));},_0x55f825);return this['listenTo'](_0x275d86,'accept',()=>{this['_updateSuggestionData'](_0x48916a,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x275d86,'discard',()=>{this['_updateSuggestionData'](_0x48916a,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x48916a,_0x275d86),this['_suggestionState']['set'](_0x275d86,'notReady'),_0x275d86;}['_splitMarkerName'](_0x4c7e18){const _0x5b9f8f=_0x4c7e18['split'](':');return{'group':_0x5b9f8f[0x0],'type':_0x5b9f8f[0x1],'subType':_0x5b9f8f['length']>=0x5?_0x5b9f8f[0x2]:null,'id':_0x5b9f8f['length']<0x5?_0x5b9f8f[0x2]:_0x5b9f8f[0x3],'authorId':_0x5b9f8f['length']<0x5?_0x5b9f8f[0x3]:_0x5b9f8f[0x4],'markerCount':0x6==_0x5b9f8f['length']?_0x5b9f8f[0x5]:null};}['_breakSuggestionMarker'](_0x3668e4,_0x18f23a,_0x42d5fe){const _0x21f02a=_0x3668e4['getFirstRange'](),_0x360c85=_0x21f02a['start'],_0x969afb=_0x21f02a['end'];this['_setSuggestionRange'](_0x3668e4,this['_model']['createRange'](_0x360c85,_0x18f23a));const _0x42be84=_0x4fc05b(),_0xb0cb07=_0x3668e4['creator']['id'],_0x4d536e=_0x3668e4['type']+(_0x3668e4['subType']?':'+_0x3668e4['subType']:'');this['_setSuggestionData']({'id':_0x42be84,'type':_0x4d536e,'createdAt':new Date(),'authorId':_0xb0cb07,'originalSuggestionId':_0x3668e4['_originalSuggestionId']||_0x3668e4['id'],'attributes':_0x3668e4['attributes'],'data':_0x3668e4['data']});const _0x1ad2c4=this['_getAttributeKey'](_0x3668e4);('formatBlock'==_0x3668e4['type']||_0x1ad2c4&&this['_isBlockAttribute'](_0x1ad2c4))&&(_0x42d5fe=this['_model']['createPositionBefore'](_0x42d5fe['parent'])),this['_addSuggestionMarker'](_0x4d536e,_0x42be84,_0xb0cb07,this['_model']['createRange'](_0x42d5fe,_0x969afb));}['_findSuggestions'](_0x5bbd5a,_0x4e839f=null){const _0x5373f2=[],_0x203dd9=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x5bbd5a)||(_0x5bbd5a=[_0x5bbd5a]);for(const _0x15bec1 of this['getSuggestions']()){if(!_0x15bec1['isInContent'])continue;if(_0x4e839f&&_0x15bec1['type']!=_0x4e839f)continue;let _0xf002f5=!0x1;for(const _0x4f18dc of _0x15bec1['getRanges']()){for(const _0x44db51 of _0x5bbd5a){const _0x37631f=_0x44db51['start']['isEqual'](_0x4f18dc['end'])||_0x44db51['end']['isEqual'](_0x4f18dc['start']);if(_0x37631f||_0x44db51['getIntersection'](_0x4f18dc)){const _0x37ace8=_0x44db51['containsRange'](_0x4f18dc)&&Ft(this['_model']['schema'],_0x4f18dc['start'],_0x44db51),_0x4ef62d=_0x4f18dc['containsRange'](_0x44db51)&&Ft(this['_model']['schema'],_0x44db51['start'],_0x4f18dc);_0x5373f2['push']({'suggestion':_0x15bec1,'meta':{'isOwn':_0x203dd9==_0x15bec1['author'],'isNextTo':_0x37631f,'isInsideObject':_0x37ace8,'containsRangeInObject':_0x4ef62d}}),_0xf002f5=!0x0;break;}}if(_0xf002f5)break;}}return _0x5373f2;}['_addSuggestionMarker'](_0x21b145,_0x5d1e37,_0x1dcc07,_0x1b8411,_0x3dd30b){this['_model']['change'](_0x291ea2=>{let _0x260ac2='suggestion:'+_0x21b145+':'+_0x5d1e37+':'+_0x1dcc07;_0x3dd30b&&(_0x260ac2=_0x260ac2+':'+_0x3dd30b),_0x291ea2['addMarker'](_0x260ac2,{'range':_0x1b8411,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x2452de){const _0x37ac16=_0x2452de['previous'],_0x5d59a0=_0x2452de['next'];_0x2452de['previous']=null,_0x2452de['next']=null,null!=_0x37ac16&&_0x37ac16['next']==_0x2452de&&(_0x37ac16['next']=_0x5d59a0),null!=_0x5d59a0&&_0x5d59a0['previous']==_0x2452de&&(_0x5d59a0['previous']=_0x37ac16),'ready'==this['_suggestionState']['get'](_0x2452de)&&(this['_suggestionState']['set'](_0x2452de,'removed'),this['fire']('suggestionUnloaded',_0x2452de,_0x37ac16,_0x5d59a0));}['_setSuggestionData'](_0x27010c){const _0x382846=_0x27010c['id'],_0x5de8cc=this['addSuggestionData'](_0x27010c);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x3f7f26=this['editor']['plugins']['get']('PendingActions'),_0x55b8cf=_0x5de8cc['hasComments'],_0x2dc936=_0x5de8cc['subType']?_0x5de8cc['type']+':'+_0x5de8cc['subType']:_0x5de8cc['type'],_0x3ca31e=this['editor']['locale'],_0x537cba=_0x3f7f26['add'](o(_0x3ca31e,'PENDING_ACTION_SUGGESTION')),_0x1f1236={'id':_0x382846,'type':_0x2dc936,'hasComments':_0x55b8cf,'data':_0x27010c['data']||null,'originalSuggestionId':_0x27010c['originalSuggestionId']||null,'attributes':_0x5de8cc['attributes']};this['_adapter']['addSuggestion'](_0x1f1236)['then'](_0x503077=>{_0x5de8cc['_saved']=!0x0,_0x3f7f26['remove'](_0x537cba),_0x503077&&_0x503077['createdAt']&&(this['_suggestions']['get'](_0x382846)['createdAt']=_0x503077['createdAt']);})['catch'](_0x14b53d=>{throw _0x432bab('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x5de8cc['discard']();}),_0x5de8cc['stopListening'](),this['_suggestions']['delete'](_0x5de8cc['id']),this['_suggestionState']['delete'](_0x5de8cc),_0x14b53d;});}return _0x5de8cc;}['_isBlockAttribute'](_0x372063){return this['_blockAttributeKeys']['has'](_0x372063);}['_updateSuggestionData'](_0x213e9c,_0x501095){const _0x42800c=this['editor']['plugins']['get']('PendingActions'),_0x2d219e=this['getSuggestion'](_0x213e9c);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x2d219e['_saved']){const _0x1ae74a=_0x42800c['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x213e9c,_0x501095)['then'](()=>{_0x42800c['remove'](_0x1ae74a);});}else _0x2d219e['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x213e9c,_0x501095);});}}['_getSuggestionData'](_0x3905d5){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2ba13e('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3905d5);}['_handleNewSuggestionMarker'](_0x377315){const {id:_0x2148ca,type:_0x27fe96,subType:_0x2666d3,authorId:_0x2ce766}=this['_splitMarkerName'](_0x377315),_0x35d6c7=this['_suggestions']['get'](_0x2148ca)||this['_createSuggestion'](_0x27fe96,_0x2666d3,_0x2148ca,_0x2ce766,{});switch(this['_checkSuggestionCorrectness'](_0x35d6c7,_0x27fe96,_0x2666d3,_0x2ce766),this['_suggestionState']['get'](_0x35d6c7)){case'notReady':this['_getSuggestionData'](_0x2148ca)['then'](_0x1c0d7f=>{let _0x10b89c=Promise['resolve']();_0x1c0d7f['hasComments']&&(_0x10b89c=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x2148ca})),_0x10b89c['then'](()=>{this['addSuggestionData'](_0x1c0d7f)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x35d6c7,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x2148ca,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x35d6c7,'ready'),this['fire']('suggestionLoaded',_0x35d6c7);break;case'ready':this['fire']('suggestionChanged',_0x35d6c7);}return _0x35d6c7['addMarkerName'](_0x377315),_0x35d6c7;}['_refreshSuggestionsChain'](_0x1d5250){const _0x570247=Array['from'](_0x1d5250),_0x4971b7=_0x570247['filter'](_0xce071=>'attribute'==_0xce071['type']);this['_refreshAttributeSuggestionsChain'](_0x4971b7);const _0x4face5=_0x570247['filter'](_0x233331=>!_0x233331['isMultiRange']&&'attribute'!=_0x233331['type']),_0x2f75d6=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x57cb3f=>!_0x57cb3f['isMultiRange']&&'attribute'!=_0x57cb3f['type']),_0x5a1d2b=_0x2f75d6['filter'](_0x56cd11=>!_0x1d5250['has'](_0x56cd11)),_0x7ef3de=new Map(_0x2f75d6['map'](_0x16197b=>[_0x16197b,this['_suggestionFactory']['getSuggestionCallback'](_0x16197b['type'],_0x16197b['subType'],'chain')])),_0x4c2b93=new Map(_0x2f75d6['map'](_0x18dfbd=>[_0x18dfbd,_0x18dfbd['getFirstRange']()])),_0xbbf090=new Set(),_0x3a0f05=new Set();for(let _0x4a9d3c=0x0;_0x4a9d3c<_0x4face5['length'];_0x4a9d3c++)_0x2139ab(_0x4face5[_0x4a9d3c],_0x4face5,_0x4a9d3c+0x1);for(let _0x4ea269=0x0;_0x4ea269<_0x4face5['length'];_0x4ea269++)_0x2139ab(_0x4face5[_0x4ea269],_0x5a1d2b,0x0);const _0x5a1dff=new Set();for(let _0x3568f3=0x0;_0x3568f3<_0x4face5['length'];_0x3568f3++){const _0x12d16c=_0x4face5[_0x3568f3];!_0x3a0f05['has'](_0x12d16c)&&_0x12d16c['previous']&&(_0x5a1dff['add'](_0x12d16c['previous']),_0x12d16c['previous']['next']===_0x12d16c&&(_0x12d16c['previous']['next']=null),_0x12d16c['previous']=null),!_0xbbf090['has'](_0x12d16c)&&_0x12d16c['next']&&(_0x5a1dff['add'](_0x12d16c['next']),_0x12d16c['next']['previous']===_0x12d16c&&(_0x12d16c['next']['previous']=null),_0x12d16c['next']=null);}function _0x2139ab(_0x4403fc,_0x4fdb84,_0x4b6b33){for(let _0x552af3=_0x4b6b33;_0x552af3<_0x4fdb84['length'];_0x552af3++){const _0x2aae33=_0x2b5ffe(_0x4403fc,_0x4fdb84[_0x552af3]);_0x2aae33&&(_0x2aae33[0x0]['next']=_0x2aae33[0x1],_0x2aae33[0x1]['previous']=_0x2aae33[0x0],_0xbbf090['add'](_0x2aae33[0x0]),_0x3a0f05['add'](_0x2aae33[0x1]));}}function _0x2b5ffe(_0x2f8432,_0x2f063b){if(_0x2f8432['author']['id']!==_0x2f063b['author']['id'])return null;const _0x291396=_0x7ef3de['get'](_0x2f8432)(_0x2f8432,_0x2f063b,_0x4c2b93['get'](_0x2f8432),_0x4c2b93['get'](_0x2f063b));if(!_0x291396)return null;return _0x7ef3de['get'](_0x2f063b)(_0x2f8432,_0x2f063b,_0x4c2b93['get'](_0x2f8432),_0x4c2b93['get'](_0x2f063b))?_0x291396[0x1]['commentThread']&&_0x291396[0x1]['commentThread']['length']?null:_0x291396:null;}_0x5a1dff['size']&&this['_refreshSuggestionsChain'](_0x5a1dff);}['_refreshAttributeSuggestionsChain'](_0x4ac92a){if(0x0==_0x4ac92a['length'])return;const _0x2d2f36=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5aa894=>'attribute'==_0x5aa894['type']&&_0x5aa894['_isDataLoaded']),_0x55d310=[],_0x3cbaee=new Map();for(const _0x310f2f of _0x2d2f36){const _0x591739=_0x3ba6f1(_0x310f2f['attributes']);_0x3cbaee['has'](_0x591739)||(_0x3cbaee['set'](_0x591739,_0x55d310['length']),_0x55d310['push']([]));const _0x596b2e=_0x3cbaee['get'](_0x591739);_0x55d310[_0x596b2e]['push'](_0x310f2f);}!(function(){_0x55d310['sort']((_0x399735,_0x184142)=>{const _0x1dcabd=_0x399735[0x0]['createdAt'],_0x4ebb1e=_0x184142[0x0]['createdAt'];return _0x1dcabd==_0x4ebb1e?_0x399735[0x0]['attributes']['groupId']<_0x184142[0x0]['attributes']['groupId']?-0x1:0x1:_0x1dcabd<_0x4ebb1e?-0x1:0x1;});for(const _0x14293e of _0x55d310)_0x14293e['sort']((_0x25e7b1,_0x49c1b2)=>_0x25e7b1['id']<_0x49c1b2['id']?-0x1:0x1);}());for(let _0x1fe60e=0x0;_0x1fe60e<_0x55d310['length'];_0x1fe60e++){if(0x0==_0x55d310[_0x1fe60e]['length'])continue;const _0x5b2d8d=[];for(let _0x3a5b31=_0x1fe60e+0x1;_0x3a5b31<_0x55d310['length'];_0x3a5b31++)0x0!=_0x55d310[_0x3a5b31]['length']&&_0x81e806(_0x55d310[_0x1fe60e],_0x55d310[_0x3a5b31])&&_0x5b2d8d['push'](_0x3a5b31);for(const _0x17fdcf of _0x5b2d8d)_0x55d310[_0x1fe60e]=_0x55d310[_0x1fe60e]['concat'](_0x55d310[_0x17fdcf]),_0x55d310[_0x17fdcf]=[];}for(const _0x5f46ed of _0x55d310)for(let _0x4f5943=0x0;_0x4f5943<_0x5f46ed['length'];_0x4f5943++){const _0x120e3e=_0x5f46ed[_0x4f5943+0x1]||null;_0x5f46ed[_0x4f5943]['next']!==_0x120e3e&&(_0x5f46ed[_0x4f5943]['next']=_0x120e3e);}for(const _0x40398b of _0x55d310)for(let _0x5a2db2=0x0;_0x5a2db2<_0x40398b['length'];_0x5a2db2++){const _0x3b3e59=_0x40398b[_0x5a2db2-0x1]||null;_0x40398b[_0x5a2db2]['previous']!==_0x3b3e59&&(_0x40398b[_0x5a2db2]['previous']=_0x3b3e59);}function _0x81e806(_0x51bfa2,_0x363ac8){if(_0x51bfa2[0x0]['attributes']['groupId']!==_0x363ac8[0x0]['attributes']['groupId']&&_0x51bfa2[0x0]['author']!==_0x363ac8[0x0]['author'])return!0x1;if(!function(_0x4da455,_0x2987e3){if(!_0x4da455['hasComments']&&!_0x2987e3['hasComments'])return!0x0;if(_0x4da455['hasComments']&&_0x2987e3['hasComments'])return!0x1;if(_0x4da455['hasComments']&&_0x2987e3['createdAt']<_0x4da455['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2987e3['hasComments']&&_0x4da455['createdAt']<_0x2987e3['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x51bfa2[0x0],_0x363ac8[0x0]))return!0x1;const _0x51a096=Ut(_0x51bfa2[0x0]['attributes'],['groupId','trackingSessionId']),_0x2e99f6=Ut(_0x363ac8[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0xa047bc(_0x51a096,_0x2e99f6))return!0x1;if(_0x51bfa2[0x0]['attributes']['groupId']==_0x363ac8[0x0]['attributes']['groupId'])return!0x0;if(_0x51bfa2[0x0]['attributes']['trackingSessionId']!==_0x363ac8[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x51bfa2['every'](_0x47d399=>_0x363ac8['some'](_0x1295d6=>_0x47d399['getFirstRange']()['isEqual'](_0x1295d6['getFirstRange']())))&&_0x363ac8['every'](_0x32ba43=>_0x51bfa2['some'](_0x3315aa=>_0x32ba43['getFirstRange']()['isEqual'](_0x3315aa['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x26420d){const _0x999b3a=Array['from'](_0x26420d),_0x5b94bd=this['getSuggestions']({'skipNotAttached':!0x0}),_0x1e7b00=_0x5b94bd['filter'](_0x4f630e=>!_0x26420d['has'](_0x4f630e)),_0x590873=new Map(_0x999b3a['map'](_0x34426d=>[_0x34426d,this['_suggestionFactory']['getSuggestionCallback'](_0x34426d['type'],_0x34426d['subType'],'join')])),_0x40438f=new Map(_0x5b94bd['map'](_0x1c9377=>[_0x1c9377,_0x1c9377['getRanges']()]));for(let _0x5e8623=0x0;_0x5e8623<_0x999b3a['length'];_0x5e8623++){if(_0x3f88fc(this,_0x999b3a[_0x5e8623],_0x999b3a,_0x5e8623+0x1))return!0x0;}for(let _0x104fa2=0x0;_0x104fa2<_0x999b3a['length'];_0x104fa2++){if(_0x3f88fc(this,_0x999b3a[_0x104fa2],_0x1e7b00,0x0))return!0x0;}return!0x1;function _0x3f88fc(_0x221724,_0x17264a,_0x4dd559,_0xf69b5a){for(let _0x54ed29=_0xf69b5a;_0x54ed29<_0x4dd559['length'];_0x54ed29++){const _0x20b6c9=_0x4dd559[_0x54ed29];if(_0x20b6c9['type']!==_0x17264a['type']||_0x20b6c9['author']['id']!==_0x17264a['author']['id']||_0x20b6c9['subType']!==_0x17264a['subType'])continue;if(!zt(_0x17264a,_0x20b6c9))continue;if('attribute'==_0x17264a['type']&&_0x17264a['data']['oldValue']!=_0x20b6c9['data']['oldValue'])continue;if('attribute'==_0x17264a['type']&&_0x221724['_isBlockAttribute'](_0x17264a['data']['key']))continue;if('formatBlock'==_0x17264a['type']){const _0x3c927e=_0x221724['editor']['model'],_0x44a908=_0x17264a['getContainedElement']();if(_0x44a908&&(_0x3c927e['schema']['isObject'](_0x44a908)||_0x3c927e['schema']['isLimit'](_0x44a908)))continue;}const _0x37aa40=_0x590873['get'](_0x17264a),_0x231cd2=_0x40438f['get'](_0x17264a),_0x1bfdeb=_0x40438f['get'](_0x20b6c9),_0x4aa39e=_0x17264a['commentThread']&&_0x17264a['commentThread']['length'],_0x5437f9=_0x20b6c9['commentThread']&&_0x20b6c9['commentThread']['length'];if(!_0x4aa39e&&_0x37aa40(_0x1bfdeb,_0x231cd2))return _0x221724['_joinSuggestions'](_0x20b6c9,_0x17264a),_0x40438f['delete'](_0x17264a),!0x0;if(!_0x5437f9&&_0x37aa40(_0x231cd2,_0x1bfdeb))return _0x221724['_joinSuggestions'](_0x17264a,_0x20b6c9),_0x40438f['delete'](_0x20b6c9),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4b163d,_0x597a62){if(_0x4b163d['isMultiRange']){for(const _0x557974 of _0x597a62['getRanges']())_0x4b163d['addRange'](_0x557974);}else{const _0x131e53=_0x597a62['getFirstRange']()['end'];this['_setSuggestionRange'](_0x4b163d,this['_model']['createRange'](_0x4b163d['getFirstRange']()['start'],_0x131e53));}_0x597a62['removeMarkers']();}['_getMarkerAnnouncementText'](_0x12da91,_0x3dabcc,_0x347325){const _0x59a928=_0x12da91['startsWith']('format')||_0x12da91['startsWith']('attribute')?'FORMATTING':_0x12da91['toUpperCase']();return o(this['editor']['locale'],_0x3dabcc+'_'+_0x59a928+'_SUGGESTION_ANNOUNCEMENT',_0x347325);}['_initAriaMarkerChangeAnnouncements'](){const _0x2fd832=this['editor'];if(!_0x2fd832['ui'])return;const {ariaLiveAnnouncer:_0xe97e86}=_0x2fd832['ui'];_0x4c4252(this['_model'],({left:_0x861bd1,entered:_0x538327})=>{for(const _0x4f8c18 of _0x861bd1){const {group:_0x1feb76,type:_0x359132}=this['_splitMarkerName'](_0x4f8c18['name']);if('suggestion'===_0x1feb76){_0xe97e86['announce'](this['_getMarkerAnnouncementText'](_0x359132,'LEAVE'));break;}}for(const _0x4914c1 of _0x538327){const {group:_0x42e7c8,type:_0x3dd1bf}=this['_splitMarkerName'](_0x4914c1['name']);if('suggestion'===_0x42e7c8){_0xe97e86['announce'](this['_getMarkerAnnouncementText'](_0x3dd1bf,'ENTER',_0x3cba6d(_0x4c3670)));break;}}});}['_processAttributeChanges'](_0x29ccf7){if(this['_recordAttributeSuggestions'])return!0x1;const _0xb96b94=this['editor'],_0x1e9642=_0xb96b94['model']['document']['differ']['getChanges']();if(0x0==_0x1e9642['length'])return!0x1;const _0x4869ff=[],_0x474dd9=_0x1e9642['filter'](_0x5d00f4=>'attribute'==_0x5d00f4['type']),_0x172835=_0x1e9642['filter'](_0x25a1a1=>'insert'==_0x25a1a1['type']&&'$text'!=_0x25a1a1['name']),_0x1679ba=_0x1e9642['filter'](_0x26363a=>'remove'==_0x26363a['type']&&'$text'!=_0x26363a['name']);for(const _0x244f80 of _0x474dd9)_0x4869ff['push']({'key':_0x244f80['attributeKey'],'newValue':_0x244f80['attributeNewValue'],'oldValue':_0x244f80['attributeOldValue'],'range':Kt(_0x244f80['range'],_0xb96b94['model'])});for(const _0x3c8f8b of _0x172835){const _0x3362f9=_0x1679ba['find'](_0x3650f0=>_0x3650f0['position']['isEqual'](_0x3c8f8b['position']));_0x3362f9&&_0x4869ff['push']({'key':m,'newValue':_0x3c8f8b['name'],'oldValue':_0x3362f9['name'],'range':_0xb96b94['model']['createRangeOn'](_0x3c8f8b['position']['nodeAfter'])});}return 0x0!=_0x4869ff['length']&&this['_reduceExistingSuggestions'](_0x29ccf7,_0x4869ff);}['_processAttributeSuggestions'](_0x29ab79){let _0x39a8f8=!0x1;const _0x4146a0=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x14f59e=>_0x14f59e['data']['newRange']&&_0x14f59e['name']['startsWith']('suggestion:attribute:'));for(const _0x4255ed of _0x4146a0){const {subType:_0x409f08,id:_0x98c045}=this['_splitMarkerName'](_0x4255ed['name']),_0x486f65=_0x409f08['split']('|')[0x0];for(const _0x4951e4 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x4951e4['id']!=_0x98c045&&'attribute'==_0x4951e4['type']&&_0x4951e4['data']&&_0x4951e4['data']['key']==_0x486f65&&_0x4951e4['getFirstRange']()['isIntersecting'](_0x4255ed['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x4951e4,_0x4255ed['data']['newRange'],_0x29ab79),_0x39a8f8=!0x0);}return _0x39a8f8;}['_recordAttributeChanges'](_0x56cd35){this['_recordAttributeSuggestions']=!0x0,_0x56cd35();}['_isRegisteredAttribute'](_0x242c2){const _0x56608b=this['_isBlockAttribute'](_0x242c2),_0x47c3fa=this['_inlineAttributeKeys']['has'](_0x242c2);return _0x56608b||_0x47c3fa;}['_reduceExistingSuggestions'](_0xcebd35,_0x116997){if(0x0==_0x116997['length'])return!0x1;let _0x203680=!0x1;for(const _0x2ae111 of _0x116997){const _0x3cd96a=this['_findSuggestions'](_0x2ae111['range'],'attribute')['filter'](_0x2976ae=>!_0x2976ae['meta']['isNextTo'])['map'](_0x4f2ed5=>_0x4f2ed5['suggestion']),_0x2a0509=_0x3ba6f1({'newValue':_0x2ae111['newValue']});_0x3cd96a['filter'](_0x2e6cf1=>{const [_0x57c98d,_0x14b8ef]=_0x2e6cf1['subType']['split']('|');return _0x57c98d==_0x2ae111['key']&&_0x14b8ef!=_0x2a0509;})['forEach'](_0x356da7=>{this['_reduceSuggestionAttributeRange'](_0x356da7,_0x2ae111['range'],_0xcebd35),_0x203680=!0x0;});}return _0x203680;}['_reduceSuggestionAttributeRange'](_0x18a07b,_0x59089f,_0x371823){const _0xac09a3=_0x18a07b['getFirstRange']()['getDifference'](_0x59089f);0x0!==_0xac09a3['length']?0x1!==_0xac09a3['length']?this['_breakSuggestionMarker'](_0x18a07b,_0x59089f['start'],_0x59089f['end']):this['_setSuggestionRange'](_0x18a07b,_0xac09a3[0x0]):_0x371823['removeMarker'](_0x18a07b['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x154fee){this['_editor']=_0x154fee,this['_model']=_0x154fee['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0xb3c97d,_0x37069a,_0x2785b4,_0x189391,_0x2d6f6b,_0x235457,_0x37dc09){return new x(this['_model'],{'type':_0xb3c97d,'subType':_0x37069a,'id':_0x2785b4,'originalSuggestionId':_0x37dc09,'author':_0x189391,'creator':_0x189391,'attributes':_0x2d6f6b,'onAttributesChange':_0x235457,'onAccept':(..._0x38b4fe)=>this['getSuggestionCallback'](_0xb3c97d,_0x37069a,'accept')(..._0x38b4fe),'onDiscard':(..._0x3cd0fd)=>this['getSuggestionCallback'](_0xb3c97d,_0x37069a,'discard')(..._0x3cd0fd)});}['registerCustomCallback'](_0x3ab0af,_0x26471a,_0x38f584,_0x4d6e1a){const _0x14a1ef=_0x3ab0af+':'+_0x26471a+':'+_0x38f584;this['_customCallbacks']['set'](_0x14a1ef,_0x4d6e1a);}['getSuggestionCallback'](_0xfc5bfd,_0x2ae4a8,_0x57a538){const _0x3f6681=_0xfc5bfd+':'+_0x2ae4a8+':'+_0x57a538;return this['_customCallbacks']['get'](_0x3f6681)||this['_defaultCallbacks']['get'](_0xfc5bfd+':'+_0x57a538);}['_registerDefaultCallbacks'](){const _0x40b00e=()=>!0x1,_0x1b5660=_0x266005=>{_0x266005['sort']((_0x548239,_0x324e8c)=>_0x548239['start']['isBefore'](_0x324e8c['start'])?0x1:-0x1),this['_model']['change'](_0xc0d172=>{for(const _0x453e24 of _0x266005){let _0x18afd4;_0x18afd4=_0x453e24['end']['isAtEnd']&&_0x453e24['end']['parent']==_0x453e24['start']['nodeAfter']?_0xc0d172['createSelection'](_0x453e24['start']['nodeAfter'],'on'):_0xc0d172['createSelection'](_0x453e24),this['_model']['deleteContent'](_0x18afd4,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x347344=(_0x1c95fd,_0x4a46e6)=>{_0x4a46e6&&this['_model']['change'](_0x496027=>{const {commandName:_0x3bc13e,commandParams:_0xf4ccdf=[]}=_0x4a46e6,_0x534cf8=_0x1c95fd['map'](_0x18531e=>(Pt(_0x18531e)&&(_0x18531e=this['_model']['createRange'](_0x18531e['end'])),_0x18531e))['filter'](_0x57b933=>'$graveyard'!==_0x57b933['root']['rootName']);if(_0x534cf8['length']<0x1)return;const _0x5c07ca=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x41664b=>_0x527bd9['fromRange'](_0x41664b));_0x496027['setSelection'](_0x534cf8);for(const _0xc65238 of this['_editor']['commands']['commands']())_0xc65238['refresh']();_0xf4ccdf['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3bc13e,..._0xf4ccdf);const _0x38b52a=_0x5c07ca['filter'](_0xaa57ec=>'$graveyard'!=_0xaa57ec['root']['rootName']);_0x38b52a['length']>0x0&&_0x496027['setSelection'](_0x38b52a);for(const _0x57c837 of _0x5c07ca)_0x57c837['detach']();});},_0x863921=(_0x581b36,_0x8fedde)=>0x1==_0x581b36['length']&&0x1==_0x8fedde['length']&&_0x581b36[0x0]['end']['isEqual'](_0x8fedde[0x0]['start']),_0x4b0e41=(_0x54eb2e,_0x57044d,_0x725759,_0x8e8fe1)=>qt(_0x54eb2e,_0x57044d,_0x725759,_0x8e8fe1)?[_0x54eb2e,_0x57044d]:qt(_0x57044d,_0x54eb2e,_0x8e8fe1,_0x725759)?[_0x57044d,_0x54eb2e]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x40b00e),this['_defaultCallbacks']['set']('insertion:discard',_0x1b5660),this['_defaultCallbacks']['set']('insertion:join',_0x863921),this['_defaultCallbacks']['set']('insertion:chain',_0x4b0e41),this['_defaultCallbacks']['set']('deletion:accept',_0x1b5660),this['_defaultCallbacks']['set']('deletion:discard',_0x40b00e),this['_defaultCallbacks']['set']('deletion:join',_0x863921),this['_defaultCallbacks']['set']('deletion:chain',_0x4b0e41),this['_defaultCallbacks']['set']('formatInline:accept',_0x347344),this['_defaultCallbacks']['set']('formatInline:discard',_0x40b00e),this['_defaultCallbacks']['set']('formatInline:join',_0x863921),this['_defaultCallbacks']['set']('formatInline:chain',_0x40b00e),this['_defaultCallbacks']['set']('formatBlock:accept',_0x347344),this['_defaultCallbacks']['set']('formatBlock:discard',_0x40b00e),this['_defaultCallbacks']['set']('formatBlock:join',_0x863921),this['_defaultCallbacks']['set']('formatBlock:chain',_0x40b00e),this['_defaultCallbacks']['set']('attribute:accept',_0x40b00e),this['_defaultCallbacks']['set']('attribute:discard',(_0x384bd0,_0x1705d1)=>{if(!_0x1705d1)return;const _0x28ae67=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x161f87=>{if(_0x1705d1['key']==m)for(const _0x21dda3 of _0x384bd0){const _0x43888b=_0x21dda3['start']['nodeAfter'],_0x3307e2=_0x1705d1['oldValue'];_0x161f87['rename'](_0x43888b,_0x3307e2);}else{if(_0x28ae67['_isBlockAttribute'](_0x1705d1['key'])){for(const _0x359f35 of _0x384bd0)void 0x0!==_0x1705d1['oldValue']?_0x161f87['setAttribute'](_0x1705d1['key'],_0x1705d1['oldValue'],_0x359f35['start']['nodeAfter']):_0x161f87['removeAttribute'](_0x1705d1['key'],_0x359f35['start']['nodeAfter']);}else{for(const _0x3c09f2 of _0x384bd0)_0x1705d1['oldValue']?_0x161f87['setAttribute'](_0x1705d1['key'],_0x1705d1['oldValue'],_0x3c09f2):_0x161f87['removeAttribute'](_0x1705d1['key'],_0x3c09f2);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x863921);}}function Ft(_0x17249e,_0x4f2f09,_0x53803b){for(const _0x583e18 of _0x4f2f09['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x583e18['root']==_0x583e18)return!0x1;if(!_0x53803b['containsItem'](_0x583e18))return!0x1;if(_0x17249e['isObject'](_0x583e18)||_0x17249e['isLimit'](_0x583e18))return!0x0;}return!0x1;}function Pt(_0x2d26d0){return _0x2d26d0['end']['parent']==_0x2d26d0['start']['nodeAfter']&&_0x2d26d0['end']['isAtStart'];}function Gt(_0x4515bb,_0x167162,_0x80c831,_0x1fb181){const _0x52ce89=_0x4774a6=>!_0x4774a6['item']['is']('$textProxy')&&!_0x1fb181['isObject'](_0x4774a6['item']),_0x2d3411=_0x4515bb['start']['getLastMatchingPosition'](_0x52ce89),_0x1f2455=_0x4515bb['end']['getLastMatchingPosition'](_0x52ce89,{'direction':'backward'});return(!_0x4515bb['start']['isEqual'](_0x2d3411)||!_0x4515bb['end']['isEqual'](_0x1f2455))&&(_0x2d3411['isBefore'](_0x1f2455)?_0x80c831['updateMarker'](_0x167162,{'range':_0x80c831['createRange'](_0x2d3411,_0x1f2455)}):_0x80c831['removeMarker'](_0x167162),!0x0);}function Lt(_0x1b2fe3){return _0x3ba6f1(_0x1b2fe3);}function Jt(_0xd100c1){const _0x541f83=_0xd100c1['start']['nodeAfter'];return _0x541f83&&_0x541f83['is']('element');}function Kt(_0x47ea35,_0x341a58){return null==_0x47ea35['end']['nodeBefore']&&_0x47ea35['end']['parent']==_0x47ea35['start']['nodeAfter']?Ht(_0x47ea35['start']['nodeAfter'],_0x341a58):_0x47ea35;}function Ht(_0x73f495,_0x535f3d){const _0x3b9360=_0x535f3d['schema']['isObject'](_0x73f495)||_0x535f3d['schema']['isSelectable'](_0x73f495);return _0x535f3d['createRange'](_0x535f3d['createPositionAt'](_0x73f495,'before'),_0x3b9360?_0x535f3d['createPositionAfter'](_0x73f495):_0x535f3d['createPositionAt'](_0x73f495,'end'));}function qt(_0x487dd7,_0x2b7e05,_0x5d6168,_0x20bf0a){return!!zt(_0x487dd7,_0x2b7e05)&&_0x5d6168['end']['isEqual'](_0x20bf0a['start']);}function zt(_0x5c1f14,_0x2149bf){if(!_0x5c1f14['_isDataLoaded']||!_0x2149bf['_isDataLoaded'])return!0x1;const _0x403f5b=new Set(Object['keys'](_0x5c1f14['attributes'])),_0x2fda87=new Set(Object['keys'](_0x2149bf['attributes']));if(_0x403f5b['delete']('groupId'),_0x2fda87['delete']('groupId'),0x0==_0x403f5b['size']&&0x0==_0x2fda87['size'])return!0x0;if(_0x403f5b['size']!=_0x2fda87['size'])return!0x1;const _0x592b28={..._0x5c1f14['attributes']},_0x4647d3={..._0x2149bf['attributes']};return delete _0x592b28['groupId'],delete _0x4647d3['groupId'],JSON['stringify'](_0x592b28)==JSON['stringify'](_0x4647d3);}function Wt(_0x5b0532,_0x1f0036){const _0x2a841a=Qt(_0x5b0532['attributes']),_0xd68d45=Qt(_0x1f0036);if(!_0x5b0532['_isDataLoaded'])return!0x1;for(const _0x459a61 of Object['keys'](_0xd68d45))if(!_0xa047bc(_0x2a841a[_0x459a61],_0xd68d45[_0x459a61]))return!0x1;return!0x0;}function Qt(_0x343928){const _0x3d605a=Object['assign']({},_0x343928);return delete _0x3d605a['skipNestingCheck'],delete _0x3d605a['tablePasteChainId'],_0x3d605a;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
-
_0x375848(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x37a2d6,_0x3ccc3a,_0x1991f6,_0x9ab21e){super(),this['model']=_0x3ccc3a,this['view']=_0x1991f6,this['commentThreadController']=_0x9ab21e,this['_editor']=_0x37a2d6,this['_acceptCommand']=_0x37a2d6['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x37a2d6['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3c4c76,_0x479e7c)=>_0x3c4c76||_0x479e7c),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x48faa3=>_0x48faa3&&this['_editor']['model']['canEditAt'](_0x3ccc3a['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4ab29a=>_0x4ab29a&&this['_editor']['model']['canEditAt'](_0x3ccc3a['getRanges']())),this['_pendingAction']=null,_0x1991f6['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x1991f6,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x1991f6,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x1991f6,'change:isDirty',()=>{_0x1991f6['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 _0x1849f8=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x1849f8);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ti extends _0x2216b1{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x349d9e,_0x3a5f79,_0x29e826,_0x3af88e){super(_0x349d9e),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x268de7(_0x349d9e,o(_0x349d9e,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x3a5f79['authoredAt']),this['bind']('authoredAt')['to'](_0x3a5f79),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',_0x3a5f79,'authoredAt',this,'descriptionParts',(_0x35d09c,_0x40b5a3,_0x5775b5)=>{const _0xc9cef1=_0x5775b5['map'](_0x45dd4b=>ls(_0x45dd4b['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x35d09c-0x1,_0x3a5f79['author']['name'],_0x40b5a3?_0x3af88e['formatDateTime'](_0x40b5a3):'',new DOMParser()['parseFromString'](_0xc9cef1,'text/html')['body']['textContent']]);}),this['focusables']=new _0x16ccf5(),this['focusTracker']=new _0x51703b(),this['keystrokes']=new _0x8a3e95(),this['focusCycler']=new _0x5e271d({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1c8999=>_0x1c8999['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x3a5f79,this['_localUser']=_0x29e826,this['_config']=_0x3af88e,_0x3af88e['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x17b837(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x10611e}=this['_config'];this['commentsListView']=new _0x10611e(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',_0x184900=>_0x184900+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2a7216,_0x1715de)=>_0x2a7216||!!_0x1715de);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x26b623}=this['_config'],_0x30313a=new _0x26b623(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4c4e7a=_0x30313a['commentInputView'];return _0x30313a['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4c4e7a,'value',(_0x1a1059,_0x5e91be,_0x3ff75e)=>!!_0x3ff75e||_0x1a1059&&!_0x5e91be),_0x4c4e7a['on']('submit',(_0x28dad3,_0x279a75)=>{this['fire']('addComment',_0x279a75),_0x4c4e7a['editor']['setData']('');}),_0x4c4e7a['on']('cancel',()=>this['focus']()),_0x4c4e7a['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x30313a;}}class fe extends ti{['suggestionView'];['_descriptionElement'];constructor(_0x4cf5a9,_0xce1869,_0x4cfe2d,_0x3ca846){super(_0x4cf5a9,_0xce1869,_0x4cfe2d,_0x3ca846),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x281bd9=>_0x281bd9&&_0x281bd9[0x0]?_0x281bd9[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x195704,_0x57d578)=>{let _0x3b43f8='';for(const _0x4d8e83 of _0x195704)_0x3b43f8+='<p>'+ls(_0x4d8e83['content'],_0x4d8e83['color'])+'</p>';return _0x57d578?_0x3b43f8:_0x3ff6a1(_0x3b43f8,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x3ca846['SuggestionView'](_0x4cf5a9,_0xce1869,{'formatDateTime':_0x3ca846['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 _0x21f1f2=this['bindTemplate'],_0x4b7b12=[this['suggestionView']];return this['commentsListView']&&_0x4b7b12['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4b7b12['push'](this['commentThreadInputView']),_0x4b7b12['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x21f1f2['if']('isActive','ck-suggestion-wrapper--active'),_0x21f1f2['to']('type',_0x2cbb8f=>'ck-suggestion-'+_0x2cbb8f),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':_0x21f1f2['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4b7b12};}['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 _0x2216b1{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x2ccbfe,_0x1dc898,_0x75beab){super(_0x2ccbfe),this['_model']=_0x1dc898,this['_config']=_0x75beab,this['set']('description',''),this['bind']('authoredAt')['to'](_0x1dc898),this['acceptButton']=this['_createButton'](o(_0x2ccbfe,'Accept\x20suggestion'),_0x50918a,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x2ccbfe,'Discard\x20suggestion'),_0x17b4ca,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x3103a7(_0x2ccbfe,_0x1dc898['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x16ccf5([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x51703b(),this['keystrokes']=new _0x8a3e95(),this['focusCycler']=new _0x5e271d({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x3ddc7b=>_0x3ddc7b['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x316b0a=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x316b0a['innerHTML']=this['description'],this['on']('change:description',(_0x571b4f,_0x3fa04f,_0x3318bc)=>{_0x316b0a['innerHTML']=_0x3318bc;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x42d967=this['bindTemplate'],_0x56008a=[{'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':_0x42d967['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x42d967['to']('authoredAt',_0x432deb=>this['_config']['formatDateTime'](_0x432deb))}]}]},{'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']&&_0x56008a['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':_0x56008a}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x20bdd9,_0x5c5992,_0x1e4c18,_0x47ff51,_0x1cdaa1){const _0x17a95b=new _0x21facf(this['locale']);return _0x17a95b['set']({'label':_0x20bdd9,'icon':_0x5c5992,'tooltip':!0x0,'tooltipPosition':_0x1cdaa1}),_0x17a95b['extendTemplate']({'attributes':{'class':_0x1e4c18}}),_0x17a95b['on']('execute',()=>{this['fire'](_0x47ff51,this['_model']['id']);}),_0x17a95b;}['_setupKeyboardNavigation'](){const _0x44ac2d=this['element'];this['keystrokes']['listenTo'](_0x44ac2d);for(const _0x2dab92 of this['focusables'])this['focusTracker']['add'](_0x2dab92['element']),this['keystrokes']['listenTo'](_0x2dab92['element']);this['keystrokes']['set']('enter',(_0x33fc86,_0x57419c)=>{_0x44ac2d===_0x33fc86['target']&&(this['focusCycler']['focusFirst'](),_0x57419c());}),this['keystrokes']['set']('esc',(_0x141349,_0x4c1e81)=>{_0x44ac2d!==_0x141349['target']&&(this['focus'](),_0x4c1e81());});}}class u extends _0x5d906a{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x536d31,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4450fd){super(_0x4450fd),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0xa9848a=this['editor']['config'];_0xa9848a['define']('trackChanges.SuggestionThreadView',fe),_0xa9848a['define']('trackChanges.SuggestionView',we),_0xa9848a['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0xa9848a['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x4212d3,_0x4d473a){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x495416,_0x475003]of this['_handleControllerBuffer']){const _0xcc68f9=this['_suggestionToController']['has'](_0x495416);_0xcc68f9||_0x475003?_0xcc68f9&&_0x475003&&this['_destroyController'](_0x495416):this['_initializeController'](_0x495416);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4212d3,_0x4d473a);}['init'](){const _0x17a4df=this['editor'],_0xe23e04=_0x17a4df['plugins']['get']('TrackChangesEditing'),_0x652e82=_0x17a4df['plugins']['get']('Annotations'),_0x8c0f1d=_0x17a4df['plugins']['get']('EditorAnnotations'),_0x4391c5=_0x17a4df['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x8c0f1d['addSourceCollector'](()=>{const _0x4801d2=[];for(const [_0x17862c,_0x4f690b]of Array['from'](this['_suggestionToController'])){const _0x568586=_0x17862c['getAllAdjacentSuggestions'](),_0x79b686=[];for(const _0x3a27ba of _0x568586){if(!_0x3a27ba['isInContent'])continue;if(_0x3a27ba['isMultiRange']){_0x79b686['push'](..._0x3a27ba['getRanges']());continue;}const _0x365b64=_0x3a27ba['getFirstRange']();if(_0x79b686['length']>0x0){const _0x1808b0=_0x79b686[0x0]['getJoined'](_0x365b64);if(_0x1808b0){_0x79b686[0x0]=_0x1808b0;continue;}}_0x79b686['push'](_0x365b64);}_0x4801d2['push']([_0x4f690b['view'],_0x79b686]);}return _0x4801d2;}),this['listenTo'](_0xe23e04,'suggestionLoaded',(_0x1ae01a,_0x1f7551)=>{this['listenTo'](_0x1f7551,'change:previous',(_0x51814d,_0x2603d1,_0x57c638,_0x9ffcaa)=>{_0x1f7551['isInContent']&&(null==_0x57c638?(this['_updateController'](_0x9ffcaa['head']),this['_handleSuggestionControllerDelayed'](_0x1f7551,!0x1)):(this['_updateController'](_0x57c638['head']),null==_0x9ffcaa&&this['_handleSuggestionControllerDelayed'](_0x1f7551,!0x0)));}),null!==_0x1f7551['previous']?this['_updateController'](_0x1f7551['head']):this['_handleSuggestionControllerDelayed'](_0x1f7551,!0x1);}),this['listenTo'](_0xe23e04,'suggestionUnloaded',(_0x1c6157,_0x1c5ba7,_0x4b38ef)=>{this['stopListening'](_0x1c5ba7,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1c5ba7),this['_suggestionToController']['has'](_0x1c5ba7)&&this['_destroyController'](_0x1c5ba7),_0x4b38ef&&this['_updateController'](_0x4b38ef['head']);}),this['listenTo'](_0xe23e04,'suggestionChanged',(_0x3910c8,_0x56fbfa)=>{this['_updateController'](_0x56fbfa);}),this['listenTo'](_0x652e82,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4391c5,'addComment',(_0x33a698,{threadId:_0x38f158,isFromAdapter:_0x5445f9})=>{if(_0x5445f9||!_0xe23e04['hasSuggestion'](_0x38f158))return;const _0x125f09=_0xe23e04['getSuggestion'](_0x38f158);this['_suggestionToController']['get'](_0x125f09)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x393b5d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x285efd;for(const _0x2407ad in _0x393b5d){const _0x379df3=_0x2407ad,_0x3bfc84=_0x393b5d[_0x379df3];if('trackChangesLicenseKeyValid'==_0x3bfc84||'trackChangesLicenseKeyInvalid'==_0x3bfc84||'trackChangesLicenseKeyExpired'==_0x3bfc84||'trackChangesLicenseKeyDomainLimit'==_0x3bfc84||'trackChangesLicenseKeyNotAllowed'==_0x3bfc84||'trackChangesLicenseKeyEvaluationLimit'==_0x3bfc84||'trackChangesLicenseKeyTrialLimit'==_0x3bfc84||'trackChangesLicenseKeyUsageLimit'==_0x3bfc84){delete _0x393b5d[_0x379df3],_0x285efd=_0x3bfc84,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x285efd&&_0x393b5d['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x285efd&&_0x393b5d['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x285efd&&_0x393b5d['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x285efd&&_0x393b5d['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x285efd&&_0x393b5d['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x285efd&&_0x393b5d['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x285efd&&_0x393b5d['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x4ba9cb=this['editor']['plugins']['get']('Annotations'),_0x37beb5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4a771a=Array['from'](_0x4ba9cb['activeAnnotations'],_0x3c0937=>_0x3c0937['innerView'])['filter'](_0x271bad=>this['_viewToController']['has'](_0x271bad)),_0x5d1bdb=[];for(const _0x19f78a of _0x4a771a){const _0x5fc473=this['_viewToController']['get'](_0x19f78a)['model']['getAllAdjacentSuggestions']();_0x5d1bdb['push'](..._0x5fc473['reduce']((_0x2ed1d4,_0x320387)=>[..._0x2ed1d4,..._0x320387['getMarkerNames']()],[]));}_0x37beb5['activeMarkers']=_0x5d1bdb;}['_addUIComponentsToFactory'](){const _0x385ce0=this['editor'],_0x14946a=_0x385ce0['locale'],_0x4d903c=o(_0x14946a,'Track\x20changes'),_0x15ae0=new _0x382dc9([{'type':'switchbutton','model':new _0x302749({'withText':!0x0,'isToggleable':!0x0,'label':_0x4d903c,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x302749({'withText':!0x0,'label':o(_0x14946a,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x302749({'withText':!0x0,'label':o(_0x14946a,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x302749({'withText':!0x0,'label':o(_0x14946a,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x302749({'withText':!0x0,'label':o(_0x14946a,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x385ce0['plugins']['has']('TrackChangesPreview')&&_0x15ae0['addMany']([{'type':'separator'},{'type':'button','model':new _0x302749({'withText':!0x0,'label':o(_0x14946a,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x53325d of _0x15ae0)if(ke(_0x53325d)){const _0x305e2c=_0x385ce0['commands']['get'](_0x53325d['model']['commandName']);_0x53325d['model']['bind']('isOn','isEnabled')['to'](_0x305e2c,'value','isEnabled');}_0x385ce0['ui']['componentFactory']['add']('trackChanges',_0x176434=>this['_createToolbarButton'](_0x176434,_0x15ae0,_0x4d903c)),_0x385ce0['ui']['componentFactory']['add']('menuBar:trackChanges',_0x14e1bc=>this['_createMenuBarMenu'](_0x14e1bc,_0x15ae0,_0x4d903c));}['_createToolbarButton'](_0x4d46a9,_0x5dccd5,_0xbe57f9){const _0x132e17=_0x102461(_0x4d46a9,_0x2784a5),_0x219503=this['editor']['commands']['get']('trackChanges');_0x132e17['buttonView']['set']({'tooltip':_0xbe57f9,'label':_0xbe57f9,'icon':_0x2e5f63}),_0x132e17['buttonView']['bind']('isOn')['to'](_0x219503,'value'),_0x132e17['buttonView']['on']('execute',()=>{_0x219503['execute'](),this['editor']['editing']['view']['focus']();}),_0x306c99(_0x132e17,_0x5dccd5,{'role':'menu'});const _0x293ffd=[];for(const _0x380db0 of _0x5dccd5)ke(_0x380db0)&&_0x293ffd['push'](this['editor']['commands']['get'](_0x380db0['model']['commandName']));const _0x111cae=_0x132e17['buttonView'];return _0x111cae['actionView']['unbind']('isEnabled'),_0x111cae['arrowView']['unbind']('isEnabled'),_0x111cae['actionView']['bind']('isEnabled')['to'](_0x219503,'isEnabled'),_0x111cae['arrowView']['bind']('isEnabled')['toMany'](_0x293ffd,'isEnabled',(..._0x92d0d)=>_0x92d0d['some'](_0x394b56=>_0x394b56)),_0x132e17['on']('execute',_0x384e05=>{this['editor']['execute'](_0x384e05['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x132e17;}['_createMenuBarMenu'](_0x2323f2,_0x23fc0e,_0x2bc12f){const _0xf012a1=new _0x53d3ca(_0x2323f2),_0x480e3a=this['editor']['commands']['get']('trackChanges');_0xf012a1['buttonView']['set']({'label':_0x2bc12f,'icon':_0x2e5f63});const _0x287388=new _0x4f2abe(_0x2323f2);for(const _0x436034 of _0x23fc0e){if('separator'==_0x436034['type']){_0x287388['items']['add'](new _0x6051dd(_0x2323f2));continue;}const _0x5e33a3=new _0x23534f(_0x2323f2,_0xf012a1),_0x2e8909=new _0x221243(_0x2323f2),_0x20f32e=_0x436034['model'];_0x2e8909['bind'](...Object['keys'](_0x20f32e))['to'](_0x20f32e),_0x2e8909['delegate']('execute')['to'](_0xf012a1),_0x2e8909['on']('execute',()=>{this['editor']['execute'](_0x20f32e['commandName']),this['editor']['editing']['view']['focus']();}),_0x5e33a3['children']['add'](_0x2e8909),_0x287388['items']['add'](_0x5e33a3);}return _0xf012a1['bind']('isEnabled')['to'](_0x480e3a,'isEnabled'),_0xf012a1['panelView']['children']['add'](_0x287388),_0xf012a1;}['_initializeController'](_0x54c147){const _0xe99173=this['editor'],_0x12ec20=_0xe99173['config'],_0x237791=_0xe99173['plugins']['get']('Annotations'),_0x499887=_0xe99173['plugins']['get']('CommentsRepository'),_0x32c472=_0xe99173['plugins']['get']('EditorAnnotations'),_0x5672df=_0xe99173['plugins']['get'](_0x536d31)['me'],_0x7ae88b=_0x12ec20['get']('trackChanges')['SuggestionThreadView'],_0x20e283=_0x12ec20['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x1c5003,CommentThreadInputView:_0x3190de}=_0xe99173['plugins']['get']('CommentsUI');let _0x300fcf,_0x2904d4,_0x4c5c31;this['_annotationViews']['has'](_0x54c147['id'])?(_0x2904d4=this['_annotationViews']['get'](_0x54c147['id']),_0x300fcf=_0x2904d4['mainView']):(_0x300fcf=new _0x7ae88b(_0xe99173['locale'],_0x54c147,_0x5672df,{'disableComments':this['_disableComments'],'editorConfig':{..._0x12ec20['get']('comments.editorConfig'),'licenseKey':_0x12ec20['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x12ec20['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x12ec20['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x12ec20['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x56742a(_0x12ec20['get']('locale'),_0xe99173['locale']),'CommentView':_0x12ec20['get']('comments')['CommentView'],'CommentsListView':_0x1c5003,'CommentThreadInputView':_0x3190de,'SuggestionView':_0x20e283}),_0x300fcf['suggestionView']['acceptButton']['on']('execute',()=>{_0xe99173['editing']['view']['focus']();}),_0x300fcf['suggestionView']['discardButton']['on']('execute',()=>{_0xe99173['editing']['view']['focus']();}),_0x2904d4=_0x237791['createAnnotationView'](this['editor']['locale'],_0x300fcf),_0x2904d4['bind']('isDirty')['to'](_0x300fcf,'isDirty'),_0x2904d4['bind']('length')['to'](_0x300fcf),_0x2904d4['bind']('type')['to'](_0x300fcf,'type',_0x13753d=>'suggestion-'+_0x13753d),_0x300fcf['on']('escape',()=>{_0x4c5c31['fire']('escape');}),this['_annotationViews']['set'](_0x54c147['id'],_0x2904d4));const _0x55a53f=_0x499887['createCommentThreadController'](_0x54c147['commentThread'],_0x300fcf),_0xc24a0=new pe(_0xe99173,_0x54c147,_0x300fcf,_0x55a53f),_0x1ce092=_0x54c147['getAllAdjacentSuggestions']()['filter'](_0x1bef81=>_0x1bef81['isInContent']);_0x300fcf['descriptionParts']=_0xe99173['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1ce092),this['_suggestionToController']['set'](_0x54c147,_0xc24a0),this['_viewToController']['set'](_0x300fcf,_0xc24a0),_0x4c5c31=_0x237791['createAnnotation']({'view':_0x2904d4,'target':()=>{const _0x177aaf=[],_0xff3dab=_0x54c147['getAllAdjacentSuggestions']()['filter'](_0x18dc61=>_0x18dc61['isInContent']);for(const _0x584cc6 of _0xff3dab)_0x177aaf['push'](..._0x584cc6['getMarkers']());return _0x772aaf(_0xe99173['editing'],_0x177aaf);},'type':()=>'suggestion-'+_0xc24a0['view']['type']}),_0x499887['_bindAnnotationToEditors'](_0x300fcf,_0x4c5c31),_0x237791['add'](_0x4c5c31),_0x32c472['registerAnnotation'](_0x4c5c31);}['_destroyController'](_0x8275d){const _0x161e9e=this['editor']['plugins']['get']('CommentsRepository'),_0x589fc6=this['editor']['plugins']['get']('Annotations'),_0x4f0345=this['_suggestionToController']['get'](_0x8275d),_0x13e3d1=_0x4f0345['view'],_0x498c50=_0x589fc6['getByInnerView'](_0x13e3d1);_0x161e9e['_unbindEditors'](_0x13e3d1),_0x498c50&&_0x589fc6['remove'](_0x498c50),this['_suggestionToController']['delete'](_0x8275d),this['_viewToController']['delete'](_0x13e3d1),_0x4f0345['destroy']();}['_updateController'](_0x1e1580){if(!_0x1e1580['isInContent']||!this['_suggestionToController']['has'](_0x1e1580))return;const _0x39e5da=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1b9a05=this['_suggestionToController']['get'](_0x1e1580),_0x5948e8=_0x1e1580['getAllAdjacentSuggestions']();_0x1b9a05['view']['descriptionParts']=_0x39e5da['descriptionFactory']['getDescriptions'](_0x5948e8);}['destroy'](){for(const _0x1f2382 of this['_suggestionToController']['keys']())this['_destroyController'](_0x1f2382);for(const _0x458f1d of this['_annotationViews']['values']())_0x458f1d['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x5b2e36){return'model'in _0x5b2e36;}class Ge extends _0x5d906a{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x3dc7d5){this['editor']['plugins']['get'](d)['adapter']=_0x3dc7d5;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x4df5a9){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x4df5a9);}['getSuggestions']({skipNotAttached:_0x326367=!0x1,toJSON:_0xe47c85=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x326367,'toJSON':_0xe47c85});}['getSuggestion'](_0xf27865){return this['editor']['plugins']['get'](d)['getSuggestion'](_0xf27865);}}const p=['Pagination'];class re extends _0x5d906a{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x392333=this['editor'];if(_0x392333['config']['define']('trackChangesData.editorCreator',_0x349259=>{const _0x8eb4ad=_0x392333['model']['document']['getRootNames']()['reduce']((_0x120018,_0x2a5b29)=>(_0x120018[_0x2a5b29]='',_0x120018),{});return _0x392333['constructor']['create'](_0x8eb4ad,_0x349259);}),'function'!=typeof _0x392333['config']['get']('trackChangesData')['editorCreator'])throw new _0x2ba13e('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2854c6){return w(this['editor'],!0x0,_0x2854c6);}['getDataWithDiscardedSuggestions'](_0x101098){return w(this['editor'],!0x1,_0x101098);}}class k extends _0x5d906a{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x57b29c){function _0x1732b1(_0x373b0f){return _0x373b0f['map'](_0x911ade=>String['fromCharCode'](_0x911ade))['join']('');}super(_0x57b29c),this['result']='end',_0x57b29c[_0x1732b1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1732b1([0x76,0x69,0x65,0x77])][_0x1732b1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1732b1([0x61,0x75,0x74,0x6f]),_0x57b29c[_0x1732b1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1732b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1732b1([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1732b1([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1732b1([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 $e(_0x3270c3){return void 0x0!==_0x3270c3['getRootsAttributes'];}async function w(_0x48927a,_0x2fa031,_0x2ed677){const _0x5ce6e5=_0x3f7fd4(_0x48927a,p);_0x5ce6e5['plugins']['push'](d,k),_0x5ce6e5['rootsAttributes']=$e(_0x48927a)?_0x48927a['getRootsAttributes']():void 0x0;const _0x9f7ad9=document['createDocumentFragment'](),_0x590a3e=_0x48927a['config']['get']('trackChangesData')['editorCreator'],_0x48abc2=await _0x590a3e(_0x5ce6e5,()=>function(_0x1cd58e){const _0x3d99f2=document['createElement']('div');return _0x1cd58e['appendChild'](_0x3d99f2),_0x3d99f2;}(_0x9f7ad9));!function(_0x42a50f,_0x4f5d33){const _0xc46763=_0x42a50f['model']['document']['getRootNames']()['reduce']((_0x3af850,_0x16fb8a)=>(_0x3af850[_0x16fb8a]=_0x42a50f['data']['get']({'rootName':_0x16fb8a}),_0x3af850),{}),_0x53e02f=_0x42a50f['plugins']['get']('Users')['users']['map'](_0xffb8d7=>({'id':_0xffb8d7['id'],'name':_0xffb8d7['name']})),_0x1d547b=_0x42a50f['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x11256d=_0x42a50f['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x521a02=_0x4f5d33['plugins']['get']('Users'),_0x5802de=_0x4f5d33['plugins']['get']('TrackChangesEditing'),_0x1cab69=_0x4f5d33['plugins']['get']('CommentsRepository');for(const _0x300b5a of _0x1cab69['getCommentThreads']())_0x300b5a['remove']();for(const _0x3392d4 of _0x53e02f)_0x521a02['getUser'](_0x3392d4['id'])||_0x521a02['addUser'](_0x3392d4);_0x521a02['me']||_0x521a02['useAnonymousUser']();for(const _0x4fec34 of _0x11256d)_0x1cab69['addCommentThread'](_0x4fec34);for(const _0x334464 of _0x1d547b)_0x5802de['addSuggestionData'](_0x334464);_0x4f5d33['data']['set'](_0xc46763);}(_0x48927a,_0x48abc2),_0x48abc2['execute'](_0x2fa031?'acceptAllSuggestions':'discardAllSuggestions');const _0x166966=$e(_0x48abc2)?_0x48abc2['getFullData'](_0x2ed677):_0x48abc2['data']['get'](_0x2ed677);return await _0x48abc2['destroy'](),_0x166966;}class Me extends _0x2216b1{['options'];constructor(_0x5cf5bc,_0x695c0a){super(_0x5cf5bc),this['options']=_0x695c0a,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'](_0x227d06,_0x156e6f){if(!this['element'])return;const _0x50df61=[];for(const [_0x4867f1,_0x4a08c6]of _0x227d06){const _0x397a9d=document['createElement']('div');_0x397a9d['setAttribute']('data-ck-root-name',_0x4867f1),_0x397a9d['className']=_0x4a08c6['classes']+'\x20ck-track-changes-preview__root-container',_0x397a9d['innerHTML']=_0x4a08c6['content'],_0x50df61['push'](_0x397a9d);}_0x156e6f(this['element'],_0x50df61),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x3e52ba{constructor(_0x22becf){super(_0x22becf),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x333d81=this['editor'],_0x1304c4=_0x333d81['locale'],_0x53450d=_0x333d81['plugins']['get']('Dialog');let _0x114702;const _0x12986a=function(_0x553f18){const _0x4161fd={};if('editables'in _0x553f18['ui']['view']){for(const [_0x490a71,_0x1cade5]of Object['entries'](_0x553f18['ui']['view']['editables']))_0x4161fd[_0x490a71]=_0x1cade5['element'];}else _0x4161fd[_0x553f18['model']['document']['getRootNames']()[0x0]]=_0x553f18['ui']['view']['editable']['element'];return _0x4161fd;}(_0x333d81),_0x22d76f=function(_0x5317b6){let _0x2dae9a=0x0;for(const _0x4fd987 of Object['values'](_0x5317b6))_0x2dae9a=Math['max'](_0x2dae9a,_0x4fd987['getBoundingClientRect']()['width']);let _0x38a75d=0x0;for(const _0x937b38 of Object['values'](_0x5317b6))_0x38a75d+=_0x937b38['getBoundingClientRect']()['height'];const _0x7f52c5=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x43500f=Math['min'](_0x38a75d,_0x7f52c5);return{'width':_0x2dae9a,'height':_0x43500f};}(_0x12986a);_0x53450d['show']({'id':'finalContentPreview','title':o(_0x1304c4,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x1304c4,{'dialogRects':_0x22d76f}),'onHide':()=>{_0x114702['detachFromDom']();},'onShow':()=>{_0x333d81['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x503a2e=>{const _0x1a3034=this['_standarizeRootsData'](_0x503a2e,_0x333d81,_0x12986a);_0x53450d['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x1a3034,_0x333d81['config']['get']('trackChanges.preview.renderFunction'));}),_0x114702=new _0x5ebc0b(_0x1304c4,[_0x53450d['view']]),_0x114702['attachToDom'](),_0x114702['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x333d81['once']('destroy',()=>{_0x114702['detachFromDom']();});const _0x2b803d=_0x53450d['view']['headerView']['class'];_0x53450d['view']['headerView']['class']=_0x2b803d?_0x2b803d+'\x20ck-reset_all':'ck-reset_all',_0x53450d['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x53450d['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x513908=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x5d9fdc=_0x513908['previewMode'],_0x268d46={};if('$labels'===_0x5d9fdc){for(const _0x274d20 of _0x513908['getMergeFieldsIds']())_0x268d46[_0x274d20]=_0x513908['getLabel'](_0x274d20)||_0x274d20;}else{const _0x444434='$defaultValues'===_0x5d9fdc?_0x513908['getDefaultValues']():_0x513908['getDataSetValues'](_0x5d9fdc,!0x0);for(const _0x2df4be of Object['entries'](_0x444434)){const [_0x1dec15,_0xd11271]=_0x2df4be;_0x268d46[_0x1dec15]=null!==_0xd11271?_0xd11271:_0x513908['getLabel'](_0x1dec15)||_0x1dec15;}}return{'mergeFieldsData':_0x268d46};}['_standarizeRootsData'](_0x1ffcb3,_0x26aa97,_0x583a3b){let _0x473be1;if('string'==typeof _0x1ffcb3){const _0xbc8e1b=_0x26aa97['model']['document']['getRootNames']()[0x0];_0x473be1={[_0xbc8e1b]:_0x1ffcb3};}else _0x473be1=_0x1ffcb3;const _0x23d55d=this['_fixMediaEmbeds'](_0x473be1,_0x26aa97),_0x55a44b=function(_0x71b0d7,_0x4abd43){for(const [_0x7f2bc1,_0x80cdcd]of _0x71b0d7)_0x80cdcd['classes']=_0x4abd43[_0x7f2bc1]['classList']['value']['replace']('ck-focused','');return _0x71b0d7;}(this['_sortRoots'](_0x26aa97)['reduce']((_0x5160e5,_0x1f4dd2)=>(_0x5160e5['push']([_0x1f4dd2,{'content':_0x23d55d[_0x1f4dd2],'classes':''}]),_0x5160e5),[]),_0x583a3b);return _0x55a44b;}['_fixMediaEmbeds'](_0x27626e,_0x4de35a){if(!_0x4de35a['plugins']['has']('MediaEmbedEditing'))return _0x27626e;const _0x170dbd=_0x4de35a['plugins']['get']('MediaEmbedEditing');for(const [_0x16812b,_0x2f9938]of Object['entries'](_0x27626e)){const _0x183e10=document['createElement']('div');_0x183e10['innerHTML']=_0x2f9938,(_0x183e10['querySelectorAll']('figure.media')['forEach'](_0x3da0b8=>{const _0x376cfb=_0x3da0b8['querySelector']('oembed');if(_0x376cfb){const _0x4172c0=_0x376cfb['getAttribute']('url');if(_0x4172c0){const _0x3a9c85=_0x170dbd['registry']['getMediaViewElement'](new _0x23dafc(_0x4de35a['editing']['view']['document']),_0x4172c0,{'elementName':'','renderForEditingView':!0x0}),_0x32ad35=document['createElement']('div');_0x32ad35['classList']['add']('ck-media__wrapper'),_0x3a9c85['render'](_0x32ad35,_0x4de35a['editing']['view']['domConverter']),_0x376cfb['replaceWith'](_0x32ad35);}}}),_0x27626e[_0x16812b]=_0x183e10['innerHTML']);}return _0x27626e;}['_sortRoots'](_0x2a3e54){if(!function(_0x80e9d1){return void 0x0!==_0x80e9d1['getRootsAttributes'];}(_0x2a3e54))return _0x2a3e54['model']['document']['getRootNames']();const _0x824727=[],_0x2b5fe2=new Map();for(const _0xe8b11a of _0x2a3e54['model']['document']['getRootNames']()){const _0xce5e0d=_0x2a3e54['editing']['view']['getDomRoot'](_0xe8b11a)['getClientRects']()['item'](0x0);_0x824727['push'](_0xe8b11a),_0x2b5fe2['set'](_0xe8b11a,_0xce5e0d);}return _0x824727['sort']((_0x5a4e0d,_0x39bfec)=>{const _0x20f052=_0x2b5fe2['get'](_0x5a4e0d),_0x3890d0=_0x2b5fe2['get'](_0x39bfec);return _0x20f052['y']-_0x3890d0['y']||_0x20f052['x']-_0x3890d0['x'];}),_0x824727;}}class He extends _0x5d906a{static get['requires'](){return[re,_0x51bd16];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5704ae){super(_0x5704ae),_0x5704ae['commands']['add']('previewFinalContent',new te(this['editor'])),_0x5704ae['config']['define']('trackChanges.preview.renderFunction',(_0x2d5da3,_0x36beaf)=>{for(const _0xc494ec of _0x36beaf)_0x2d5da3['appendChild'](_0xc494ec);});}}export{M as AcceptSuggestionCommand,ti as BaseSuggestionThreadView,$ as DiscardSuggestionCommand,B as ExecuteOnAllSuggestionsCommand,T as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,x as Suggestion,fe as SuggestionThreadView,we as SuggestionView,Ge as TrackChanges,D as TrackChangesCommand,re as TrackChangesData,d as TrackChangesEditing,He as TrackChangesPreview};
|
|
23
|
+
import{Command as _0x17b867,Plugin as _0x48beba,PendingActions as _0x2ad438}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x2bc211,ObservableMixin as _0x75aa98,uid as _0x165ef7,priorities as _0xe29e00,insertToPriorityArray as _0x2df912,toArray as _0x3846ac,logWarning as _0x4add95,getEnvKeystrokeText as _0x3b42e3,FocusTracker as _0x4f2077,KeystrokeHandler as _0x3f37e0,Collection as _0xe2ebaf}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x524563,IconCancel as _0x35fe8b,IconTrackChanges as _0x3de21c}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as to,View as _0x308426,ViewCollection as _0x1c3cb1,FocusCycler as _0x28af08,ViewModel as _0x335e7f,createDropdown as _0x4ca3ee,SplitButtonView as _0x1fe5f5,addListToDropdown as _0x268f8f,MenuBarMenuView as _0x27e948,MenuBarMenuListView as _0x1b512c,ListSeparatorView as _0x4e2a1f,MenuBarMenuListItemView as _0x5a6f68,MenuBarMenuListItemButtonView as _0x1e4da2,BodyCollection as _0x4acdd8,Dialog as _0x17ba05}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x16bab2,hashObject as _0x218c4d,surroundingMarkersDetector as _0x53b897,FOCUS_ANNOTATION_KEYSTROKE as _0x332cb9,AriaDescriptionView as _0x91aae8,setupThreadKeyboardNavigation as _0x48e5a1,trimHtml as _0x1bfc31,UserView as _0x5b5037,LateFocusButtonView as _0x424151,getDateTimeFormatter as _0x25988d,getAllMarkersDomElementsSorted as _0x4a13ae,sanitizeEditorConfig as _0x5ba9c5}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x2d197a,LiveRange as _0x246516,LivePosition as _0x24623,DowncastWriter as _0x2d66e3}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x4e5bda,toWidget as _0x126106}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x253a87,set as _0x3f9068,isEqual as _0x2863d8,unset as _0x455693,omit as Ut}from'es-toolkit/compat';import{Delete as _0x2b319e,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x4df91e}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x111d6d}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class D extends _0x17b867{['_enabledCommands'];constructor(_0x366c8a,_0x779775){super(_0x366c8a),this['_enabledCommands']=_0x779775,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 _0x4e494f of this['editor']['commands']['commands']())_0x4e494f['affectsData']&&!this['_enabledCommands']['has'](_0x4e494f)&&_0x4e494f['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x5192ad of this['editor']['commands']['commands']())_0x5192ad['affectsData']&&!this['_enabledCommands']['has'](_0x5192ad)&&_0x5192ad['clearForceDisabled']('TrackChangesCommand');}}class M extends _0x17b867{['_suggestions'];constructor(_0x5e863d,_0x468e67){super(_0x5e863d),this['_suggestions']=_0x468e67,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5cc52c){const _0x43381b=this['_suggestions']['get'](_0x5cc52c);if(!_0x43381b)throw new _0x2bc211('track-changes-accept-suggestion-not-found',this);const _0x18a76e=_0x43381b['getRanges']();this['editor']['model']['canEditAt'](_0x18a76e)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x43381b);}}class $ extends _0x17b867{['_suggestions'];constructor(_0x4fb95b,_0x4fa509){super(_0x4fb95b),this['_suggestions']=_0x4fa509,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1f7d27){const _0x2d70bb=this['_suggestions']['get'](_0x1f7d27);if(!_0x2d70bb)throw new _0x2bc211('track-changes-discard-suggestion-not-found',this);const _0x5f309b=_0x2d70bb['getRanges']();this['editor']['model']['canEditAt'](_0x5f309b)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x2d70bb);}}function ls(_0x582d7a,_0x96d6f9){let _0x5a389d='';return _0x5a389d+=_0x582d7a['split']('*')['map']((_0x164978,_0x50e46f)=>_0x50e46f%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x164978)+'</span>':nn(_0x164978))['join'](''),_0x96d6f9&&(_0x5a389d+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x96d6f9['value']+'\x22\x20title=\x22'+_0x96d6f9['title']+'\x22></span>'),_0x5a389d;}function nn(_0x29dbc7){const _0x7bdc65=document['createElement']('span');return _0x7bdc65['innerText']=_0x29dbc7,_0x7bdc65['innerHTML'];}function ts(_0x1db74b){return _0x1db74b['sort']((_0x453f76,_0x28df09)=>'deletion'==_0x453f76['type']&&'deletion'!=_0x28df09['type']?-0x1:'deletion'!=_0x453f76['type']&&'deletion'==_0x28df09['type']?0x1:0x0);}function Yt(_0x1f1ec8,_0x44c5be){let _0x6be706,_0x333f2c=0x0;const _0x16e8c5=[],_0x3afb6e=_0x44c5be['schema'];for(;_0x333f2c<_0x1f1ec8['length'];){const _0x488bee=_0x1f1ec8[_0x333f2c],_0x2627b1=_0x1f1ec8[_0x333f2c+0x1];_0x6be706||(_0x6be706=_0x44c5be['createPositionBefore'](_0x488bee)),on(_0x44c5be,_0x488bee,_0x2627b1)||(_0x16e8c5['push'](_0x44c5be['createRange'](_0x6be706,_0x3afb6e['isObject'](_0x488bee)?_0x44c5be['createPositionAfter'](_0x488bee):_0x44c5be['createPositionAt'](_0x488bee,'end'))),_0x6be706=null),_0x333f2c++;}return _0x16e8c5;}function on(_0x15650e,_0xadb4b3,_0x4cc2f5){if(!_0x4cc2f5)return!0x1;const _0x366ed1=_0x15650e['createPositionAfter'](_0xadb4b3),_0x5ac461=_0x15650e['createPositionBefore'](_0x4cc2f5);return _0x366ed1['isTouching'](_0x5ac461);}function rs(_0x4c8511,_0x599475,_0x15f3de){for(;_0x15f3de['length'];){const _0x23e237=_0x15f3de['splice'](0x0,0x64);_0x4c8511['change'](()=>{for(const _0x1a79c3 of _0x23e237)_0x1a79c3['isInContent']&&_0x599475['execute'](_0x1a79c3['id']);});}}class B extends _0x17b867{['_command'];['_suggestions'];constructor(_0x4ad379,_0x5c32ec,_0x1960d1){super(_0x4ad379),this['_command']=_0x5c32ec,this['_suggestions']=_0x1960d1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3703ad=Array['from'](this['_suggestions']['values']())['some'](_0x190f92=>_0x190f92['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x3703ad;}['execute'](){const _0x2adb16=ts(Array['from'](this['_suggestions']['values']()));for(const _0xc48490 of _0x2adb16){const _0x1506c5=_0xc48490['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1506c5))return;}rs(this['editor']['model'],this['_command'],_0x2adb16);}}class T extends _0x17b867{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x2c5f44,_0x2a5807,_0x76e390){super(_0x2c5f44),this['_command']=_0x2a5807,this['_suggestions']=_0x76e390,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x29b4b8=this['editor']['model']['document']['selection'],_0x1a97ef=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x3c30de,_0x3b5517){const _0x110d6e=Array['from'](_0x3c30de['getRanges']()),_0x54220d=new Set();for(const _0x3761ea of _0x3b5517)if(_0x3761ea['isInContent']){for(const _0x56fd55 of _0x110d6e)for(const _0x570a4d of _0x3761ea['getRanges']())(_0x56fd55['isIntersecting'](_0x570a4d)||_0x3c30de['isCollapsed']&&!_0x3761ea['isMultiRange']&&_0x3761ea['next']&&_0x570a4d['end']['isTouching'](_0x56fd55['start']))&&_0x54220d['add'](_0x3761ea);}return _0x54220d;}(_0x29b4b8,_0x1a97ef),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x2220a1=ts(Array['from'](this['_selectedSuggestions']));for(const _0x303846 of _0x2220a1){const _0x2bfd97=_0x303846['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2bfd97))return;}rs(this['editor']['model'],this['_command'],_0x2220a1);}}class x extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x75aa98(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x3111cb,_0x3a5899){super(),this['id']=_0x3a5899['id'],this['type']=_0x3a5899['type'],this['subType']=_0x3a5899['subType']||null,this['author']=_0x3a5899['author'],this['creator']=_0x3a5899['creator']||_0x3a5899['author'],this['isExternal']=Boolean(_0x3a5899['attributes']&&_0x3a5899['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x3a5899['originalSuggestionId']||null,this['_model']=_0x3111cb,this['_onAccept']=_0x3a5899['onAccept'],this['_onDiscard']=_0x3a5899['onDiscard'],this['_onAttributesChange']=_0x3a5899['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x3a5899['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 _0x3d4994=this;for(;_0x3d4994['previous'];)_0x3d4994=_0x3d4994['previous'];return _0x3d4994;}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'](_0x487bfb){this['_markerNames']['add'](_0x487bfb);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x1be130=>this['_model']['markers']['get'](_0x1be130))['filter'](_0x1ec919=>_0x1ec919);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x30842f=>{for(const _0x59edb6 of this['getMarkers']())_0x30842f['removeMarker'](_0x59edb6);}),this['_markerNames']['clear']();}['removeMarker'](_0x41f34a){this['_model']['change'](_0x9ed347=>{_0x9ed347['removeMarker'](_0x41f34a);}),this['_markerNames']['delete'](_0x41f34a);}['addRange'](_0x3d1ad1){const _0x1365b1='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+x['getMultiRangeId']();this['addMarkerName'](_0x1365b1),this['_model']['change'](_0x1aeced=>{_0x1aeced['addMarker'](_0x1365b1,{'range':_0x3d1ad1,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3e908e){for(const _0x5f4334 of this['getRanges']())if(_0x5f4334['isIntersecting'](_0x3e908e))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x3c436c=>_0x3c436c['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x47a66d,_0x49e7da)=>[..._0x47a66d,..._0x49e7da['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1ba048=this['getRanges']();if(0x1!=_0x1ba048['length'])return null;const _0x2ab173=_0x1ba048[0x0],_0x454c79=_0x2ab173['start']['nodeAfter'],_0x29f37e=_0x2ab173['end']['nodeBefore'];return _0x454c79 instanceof _0x2d197a?_0x454c79!=_0x29f37e?null:_0x454c79: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 _0x35ecbd=[];let _0x15f3c7=this['head'];for(;_0x15f3c7;)_0x35ecbd['push'](_0x15f3c7),_0x15f3c7=_0x15f3c7['next'];return _0x35ecbd;}['setAttribute'](_0x22d7c9,_0x297346){const _0x3da9fb=_0x253a87(this['attributes']);_0x3f9068(_0x3da9fb,_0x22d7c9,_0x297346),_0x2863d8(_0x3da9fb,this['attributes'])||(this['attributes']=_0x3da9fb,this['_onAttributesChange'](_0x3da9fb));}['removeAttribute'](_0x43edfc){const _0x481566=_0x253a87(this['attributes']);_0x455693(_0x481566,_0x43edfc),_0x2863d8(_0x481566,this['attributes'])||(this['attributes']=_0x481566,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 _0x165ef7()['substr'](0x1,0x5);}}function o(_0x236a9b,_0x442951,_0x5da559){const _0x3a61b1=_0x236a9b['t'],t=_0x236a9b['t'];switch(_0x442951){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',_0x5da559);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5da559);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5da559);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5da559);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5da559);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',_0x5da559);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5da559);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',_0x5da559);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5da559);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5da559);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5da559);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5da559);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5da559);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x5da559);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5da559);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5da559);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5da559);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5da559);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5da559);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5da559);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5da559);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5da559);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5da559);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5da559);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x5da559);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'},_0x5da559);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x5da559);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x5da559);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5da559);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5da559);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5da559);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5da559);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5da559);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'},_0x5da559);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5da559);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5da559);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5da559);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5da559);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'},_0x5da559);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5da559);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'},_0x5da559);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'},_0x5da559);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5da559);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'},_0x5da559);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5da559);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'},_0x5da559);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5da559);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5da559);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'},_0x5da559);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x5da559);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 _0x3a61b1({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5da559);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x3a61b1({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5da559);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5da559);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'},_0x5da559);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'},_0x5da559);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'},_0x5da559);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x442951;}}class O{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x348a00,_0x83f4f6){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x348a00,this['_locale']=_0x83f4f6;}['getDescriptions'](_0x2e3f64){const _0x5bb0ab=[],_0x318b81=new Set(),_0x45b480=new Set();for(let _0x64317d=0x0;_0x64317d<_0x2e3f64['length'];_0x64317d++){const _0x391036=_0x2e3f64[_0x64317d];if(!_0x391036['isInContent'])continue;const _0x565ea4=this['_handleCustomCallbackDescription'](_0x391036);if(_0x565ea4){if(null!=_0x391036['subType']){if(_0x318b81['has'](_0x391036['subType']))continue;_0x318b81['add'](_0x391036['subType']);}_0x5bb0ab['push'](_0x565ea4);}else{if('attribute'!=_0x391036['type'])'insertion'!=_0x391036['type']&&'deletion'!=_0x391036['type']||this['_handleInsertRemoveSuggestionDescription'](_0x5bb0ab,_0x391036,_0x2e3f64[_0x64317d+0x1]);else{const _0x5e73d5=_0x391036['data']['key'];if(_0x45b480['has'](_0x5e73d5))continue;_0x45b480['add'](_0x391036['data']['key']),_0x5e73d5==m?this['_handleRenameSuggestionDescription'](_0x5bb0ab,_0x391036):this['_handleAttributeSuggestionDescription'](_0x5bb0ab,_0x391036);}}}return this['_resolveDescriptionItems'](_0x5bb0ab);}['registerDescriptionCallback'](_0x28b574){this['_customCallbacks']['push'](_0x28b574);}['registerElementLabel'](_0x135903,_0x226d46,_0x17242c=_0xe29e00['normal']){'function'==typeof _0x135903?_0x2df912(this['_itemLabelsCallbacks'],{'matchingCallback':_0x135903,'label':_0x226d46,'priority':_0x17242c}):this['_itemLabels']['set'](_0x135903,_0x226d46);}['registerAttributeLabel'](_0x1fd60c,_0x4c1b2d){this['_attributeLabels']['set'](_0x1fd60c,_0x4c1b2d);}['getItemLabel'](_0x44813b,_0xf06a26=0x1){let _0x3de531;for(const _0x4542b2 of this['_itemLabelsCallbacks'])if(_0x4542b2['matchingCallback'](_0x44813b)){_0x3de531=_0x4542b2['label'];break;}return _0x3de531||(_0x3de531=this['_itemLabels']['get'](_0x44813b['name'])),_0x3de531?_0x3de531(_0xf06a26):0x1!==_0xf06a26?_0xf06a26+'\x20'+_0x44813b['name']+'s':''+_0x44813b['name'];}['_addDescriptionItems'](_0x28cc00,_0x5508a9){const _0x400655=_0x5508a9['getFirstRange']()['getWalker'](),_0x17fab9='insertion'==_0x5508a9['type']?'add':'remove';for(const _0x1ce0e8 of _0x400655){const _0x2d02da=_0x1ce0e8['item'],_0x1b16a0=_0x28cc00[_0x28cc00['length']-0x1];if(_0x2d02da['is']('$textProxy'))_0x1b16a0&&_0x1b16a0['type']['indexOf']('Container')>-0x1&&_0x28cc00['pop'](),_0x1b16a0&&'text'==_0x1b16a0['type']?_0x1b16a0[_0x17fab9]+=_0x2d02da['data']:_0x28cc00['push']({'type':'text','add':'add'==_0x17fab9?_0x2d02da['data']:'','remove':'remove'==_0x17fab9?_0x2d02da['data']:''});else{if(this['_schema']['isObject'](_0x2d02da)){const _0xfe54af=_0x2d02da;if(_0x1b16a0&&_0x1b16a0['type']['indexOf']('Container')>-0x1&&_0x28cc00['pop'](),'elementEnd'==_0x1ce0e8['type'])continue;_0x1b16a0&&_0x1b16a0['type']==_0x17fab9+'Object'&&_0x1b16a0['element']['name']==_0xfe54af['name']?_0x1b16a0['quantity']++:_0x28cc00['push']({'type':_0x17fab9+'Object','element':_0xfe54af,'quantity':0x1}),_0x400655['skip'](_0x58231c=>!('elementEnd'==_0x58231c['type']&&_0x58231c['item']==_0x2d02da));}else{if(this['_schema']['checkChild'](_0x2d02da,'$text')||_0x2d02da['is']('element','softBreak')){const _0x52d863=_0x2d02da;if('add'==_0x17fab9&&'elementStart'==_0x1ce0e8['type']||'remove'==_0x17fab9&&'elementEnd'==_0x1ce0e8['type'])continue;if(_0x1b16a0&&-0x1==_0x1b16a0['type']['indexOf']('Container')){'text'==_0x1b16a0['type']&&(_0x1b16a0[_0x17fab9]+='\x0a');continue;}let _0x56f665;if(_0x56f665='add'==_0x17fab9?_0x52d863['nextSibling']&&!this['_schema']['isObject'](_0x52d863['nextSibling'])?_0x52d863['nextSibling']:null:_0x52d863['previousSibling']&&!this['_schema']['isObject'](_0x52d863['previousSibling'])?_0x52d863['previousSibling']:null,_0x52d863['isEmpty']||_0x56f665&&_0x56f665['isEmpty']){const _0x460121=_0x56f665&&_0x56f665['isEmpty']?_0x56f665:_0x52d863;_0x1b16a0&&_0x1b16a0['type']==_0x17fab9+'EmptyContainer'&&_0x1b16a0['element']['name']==_0x460121['name']?_0x1b16a0['quantity']++:_0x28cc00['push']({'type':_0x17fab9+'EmptyContainer','element':_0x460121,'quantity':0x1});}else _0x28cc00['push']({'type':_0x17fab9+'Container','element':_0x52d863});}}}}}['_resolveDescriptionItems'](_0x1274fa){const _0x4e9732=this['_locale'],_0x4e60b1=[],_0x132cf1=[],_0x5b5cef=[];for(const _0x81fec8 of _0x1274fa)switch(_0x81fec8['type']){case'text':if(_0x81fec8['add']=_0x81fec8['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x81fec8['remove']=_0x81fec8['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x81fec8['add']&&''!=_0x81fec8['remove']){_0x4e60b1['push']({'type':'replace','content':o(_0x4e9732,'REPLACE_TEXT',['\x22'+_0x81fec8['remove']+'\x22','\x22'+_0x81fec8['add']+'\x22'])});continue;}if(null!=_0x81fec8['add']['match'](/^ +$/)){_0x4e60b1['push']({'type':'insertion','content':o(_0x4e9732,'*Insert:*\x20%0',o(_0x4e9732,'ELEMENT_SPACE',_0x81fec8['add']['length']))});continue;}if(null!=_0x81fec8['remove']['match'](/^ +$/)){_0x4e60b1['push']({'type':'deletion','content':o(_0x4e9732,'*Remove:*\x20%0',o(_0x4e9732,'ELEMENT_SPACE',_0x81fec8['remove']['length']))});continue;}if(''!=_0x81fec8['add']){_0x4e60b1['push']({'type':'insertion','content':o(_0x4e9732,'*Insert:*\x20%0','\x22'+_0x81fec8['add']+'\x22')});continue;}_0x4e60b1['push']({'type':'deletion','content':o(_0x4e9732,'*Remove:*\x20%0','\x22'+_0x81fec8['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4e60b1['push']({'type':'insertion','content':o(_0x4e9732,'*Insert:*\x20%0',this['getItemLabel'](_0x81fec8['element'],_0x81fec8['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4e60b1['push']({'type':'deletion','content':o(_0x4e9732,'*Remove:*\x20%0',this['getItemLabel'](_0x81fec8['element'],_0x81fec8['quantity']))});continue;case'addContainer':_0x4e60b1['push']({'type':'insertion','content':o(_0x4e9732,'*Split:*\x20%0',this['getItemLabel'](_0x81fec8['element'],_0x81fec8['quantity']))});continue;case'removeContainer':_0x4e60b1['push']({'type':'deletion','content':o(_0x4e9732,'*Merge:*\x20%0',this['getItemLabel'](_0x81fec8['element'],_0x81fec8['quantity']))});continue;case'addFormat':_0x132cf1['push'](_0x81fec8['key']);continue;case'removeFormat':_0x5b5cef['push'](_0x81fec8['key']);continue;default:_0x4e60b1['push'](_0x81fec8);}if(_0x132cf1['length']){const _0xad9c1a=_0x132cf1['map'](_0x4eb0e4=>this['_attributeLabels']['has'](_0x4eb0e4)?this['_attributeLabels']['get'](_0x4eb0e4):_0x4eb0e4)['join'](',\x20');_0x4e60b1['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0xad9c1a)});}if(_0x5b5cef['length']){const _0x1d410e=_0x5b5cef['map'](_0x1b2c78=>this['_attributeLabels']['has'](_0x1b2c78)?this['_attributeLabels']['get'](_0x1b2c78):_0x1b2c78)['join'](',\x20');_0x4e60b1['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x1d410e)});}return _0x4e60b1;}['_handleCustomCallbackDescription'](_0x571570){for(const _0x5a58d6 of this['_customCallbacks']){const _0x5268b8=_0x5a58d6(_0x571570);if(_0x5268b8&&'type'in _0x5268b8)return _0x5268b8;}}['_handleAttributeSuggestionDescription'](_0x323de1,_0x180910){const _0x217387=_0x180910['data'],_0x40a8ac=void 0x0===_0x217387['newValue']?'removeFormat':'addFormat';_0x323de1['push']({'type':_0x40a8ac,'key':_0x217387['key']});}['_handleRenameSuggestionDescription'](_0x5e4f36,_0x331716){_0x5e4f36['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x331716['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1741e6,_0x25a612,_0x2fcbd9){if(this['_addDescriptionItems'](_0x1741e6,_0x25a612),_0x2fcbd9&&_0x2fcbd9['getFirstRange']()&&!_0x25a612['getFirstRange']()['end']['isEqual'](_0x2fcbd9['getFirstRange']()['start'])){const _0x1af043=_0x1741e6[_0x1741e6['length']-0x1],_0x1f7037='insertion'==_0x25a612['type']?'add':'remove';_0x1af043&&'text'==_0x1af043['type']&&(_0x1af043[_0x1f7037]+='\x0a');}}}class R extends _0x48beba{['afterInit'](){const _0x1c6f56=this['editor'],_0x2ce4a9=_0x1c6f56['plugins']['get']('TrackChangesEditing');_0x1c6f56['commands']['get']('showAIAssistant')&&_0x2ce4a9['enableCommand']('showAIAssistant');}}class E extends _0x48beba{['afterInit'](){const _0x2f3599=this['editor'],_0x7667a2=_0x2f3599['locale'];if(!_0x2f3599['plugins']['has']('AlignmentEditing'))return;const _0x4bf9e3=_0x2f3599['plugins']['get']('TrackChangesEditing');_0x4bf9e3['enableDefaultAttributesIntegration']('alignment'),_0x4bf9e3['registerBlockAttribute']('alignment'),_0x4bf9e3['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x7667a2,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b760f=this['editor'],_0x557ae4=_0x1b760f['locale'];_0x1b760f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x16b020=>{if('formatBlock'!=_0x16b020['type'])return;const {data:_0x55bd60}=_0x16b020;if(_0x55bd60&&'alignment'==_0x55bd60['commandName']){const _0xbbd7e9=_0x55bd60['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x557ae4,'*Format:*\x20%0',function(_0x57dabb){switch(_0x57dabb){case'left':return o(_0x557ae4,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x557ae4,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x557ae4,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x557ae4,'FORMAT_JUSTIFY_TEXT');}}(_0xbbd7e9))};}});}}const Xt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x48beba{['afterInit'](){const _0xaad51b=this['editor'],_0xf3b90=_0xaad51b['plugins']['get']('TrackChangesEditing'),_0x4af45a=_0xaad51b['locale'];for(const _0x2b6f4f of Xt){if(!_0xaad51b['plugins']['has'](_0x2b6f4f))continue;const _0x6676bf=_0x2b6f4f['slice'](0x0,-0x7)['toLowerCase'](),_0x1a501a='FORMAT_'+_0x6676bf['toUpperCase']();_0xf3b90['enableDefaultAttributesIntegration'](_0x6676bf),_0xf3b90['registerInlineAttribute'](_0x6676bf),_0xf3b90['descriptionFactory']['registerAttributeLabel'](_0x6676bf,o(_0x4af45a,_0x1a501a));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xeb603f=this['editor'],_0x3b1009=_0xeb603f['locale'],_0x599f5e=_0xeb603f['plugins']['get']('TrackChangesEditing');function _0x3c78f8(_0x36c7ec,_0x52767b){_0x599f5e['descriptionFactory']['registerDescriptionCallback'](_0x244a8d=>{if('formatInline'!=_0x244a8d['type'])return;const {data:_0x4a0755}=_0x244a8d;return _0x4a0755&&_0x4a0755['commandName']===_0x36c7ec?_0x4a0755['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3b1009,'*Format:*\x20%0',_0x52767b)}:{'type':'format','content':o(_0x3b1009,'*Remove\x20format:*\x20%0',_0x52767b)}:void 0x0;});}_0x3c78f8('bold',o(_0x3b1009,'FORMAT_BOLD')),_0x3c78f8('italic',o(_0x3b1009,'FORMAT_ITALIC')),_0x3c78f8('underline',o(_0x3b1009,'FORMAT_UNDERLINE')),_0x3c78f8('code',o(_0x3b1009,'FORMAT_CODE')),_0x3c78f8('strikethrough',o(_0x3b1009,'FORMAT_STRIKETHROUGH')),_0x3c78f8('subscript',o(_0x3b1009,'FORMAT_SUBSCRIPT')),_0x3c78f8('superscript',o(_0x3b1009,'FORMAT_SUPERSCRIPT'));}}class V extends _0x48beba{['afterInit'](){const _0x57d55a=this['editor'],_0x195d2e=_0x57d55a['locale'];if(!_0x57d55a['plugins']['has']('BlockQuoteEditing'))return;const _0x62156e=_0x57d55a['plugins']['get']('TrackChangesEditing'),_0x1b50fb=this['editor']['commands']['get']('blockQuote');_0x62156e['enableCommand']('blockQuote',(_0x481b79,_0x2bd96d={})=>{const _0x28bd4f=this['editor']['model']['document']['selection'],_0x2148d9=_0x2bd96d&&void 0x0!==_0x2bd96d['forceValue']?_0x2bd96d['forceValue']:!_0x1b50fb['value'];let _0x34f9b1=[];if(_0x2148d9){const _0x2f9d70=Array['from'](_0x28bd4f['getSelectedBlocks']())['filter'](_0x23869d=>Zt(_0x23869d)||function(_0x3f0964,_0x17a915){const _0x45a24a=_0x17a915['checkChild'](_0x3f0964['parent'],'blockQuote'),_0x12088d=_0x17a915['checkChild'](['$root','blockQuote'],_0x3f0964);return _0x45a24a&&_0x12088d;}(_0x23869d,this['editor']['model']['schema']));_0x34f9b1=Yt(_0x2f9d70,_0x57d55a['model']);}else{const _0x1403e5=Array['from'](_0x28bd4f['getSelectedBlocks']())['filter'](_0x22678f=>Zt(_0x22678f));_0x34f9b1=Yt(_0x1403e5,_0x57d55a['model']);}_0x57d55a['model']['change'](()=>{for(const _0xf4f9cb of _0x34f9b1)_0x62156e['markBlockFormat'](_0xf4f9cb,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2148d9}]});});}),_0x62156e['descriptionFactory']['registerDescriptionCallback'](_0x3e7abd=>{const {data:_0x570659}=_0x3e7abd;if(_0x570659&&'blockQuote'==_0x570659['commandName']){const _0x4c1a76=o(_0x195d2e,'ELEMENT_BLOCK_QUOTE');return _0x570659['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x195d2e,'*Set\x20format:*\x20%0',_0x4c1a76)}:{'type':'format','content':o(_0x195d2e,'*Remove\x20format:*\x20%0',_0x4c1a76)};}});}}function Zt(_0x34d47d){return'blockQuote'==_0x34d47d['parent']['name'];}class F extends _0x48beba{['afterInit'](){const _0x45a3a2=this['editor'],_0x4e67c5=_0x45a3a2['locale'],_0xba913=_0x45a3a2['plugins']['get']('TrackChangesEditing');_0x45a3a2['plugins']['has']('BookmarkEditing')&&(_0xba913['enableCommand']('insertBookmark'),_0xba913['enableDefaultAttributesIntegration']('updateBookmark'),_0xba913['registerBlockAttribute']('bookmarkId'),_0xba913['descriptionFactory']['registerDescriptionCallback'](_0x121539=>{if('insertion'!=_0x121539['type']&&'deletion'!=_0x121539['type']&&'attribute'!=_0x121539['type'])return;const _0x5ac66b=_0x121539['getContainedElement']();if(null==_0x5ac66b)return;if(!_0x5ac66b['is']('element','bookmark'))return;const _0x504735=_0x5ac66b['getAttribute']('bookmarkId');if('insertion'==_0x121539['type'])return{'type':'insertion','content':o(_0x4e67c5,'*Insert:*\x20%0','\x22'+_0x504735+'\x22\x20'+o(_0x4e67c5,'ELEMENT_BOOKMARK'))};if('deletion'==_0x121539['type'])return{'type':'deletion','content':o(_0x4e67c5,'*Remove:*\x20%0','\x22'+_0x504735+'\x22\x20'+o(_0x4e67c5,'ELEMENT_BOOKMARK'))};const {data:_0x427e9e}=_0x121539;if(!_0x427e9e||'bookmarkId'!=_0x427e9e['key'])return;return{'type':'format','content':o(_0x4e67c5,'*Set\x20bookmark:*\x20%0','\x22'+_0x427e9e['newValue']+'\x22')};}));}}class G extends _0x48beba{['afterInit'](){const _0x5089c8=this['editor'];_0x5089c8['plugins']['has']('CaseChange')&&(_0x5089c8['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x5089c8['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x5089c8['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class L extends _0x48beba{['afterInit'](){const _0x1d897b=this['editor'];_0x1d897b['commands']['get']('ckbox')&&_0x1d897b['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x48beba{['afterInit'](){const _0x51c2e5=this['editor'];if(!_0x51c2e5['plugins']['has']('CodeBlock'))return;const _0x50f791=_0x51c2e5['plugins']['get']('TrackChangesEditing'),_0x44b463=_0x51c2e5['locale'],_0x32df6a=_0x51c2e5['config']['get']('codeBlock')['languages'],_0x22c6ab=_0x51c2e5['commands']['get']('codeBlock');_0x50f791['enableCommand']('indentCodeBlock'),_0x50f791['enableCommand']('outdentCodeBlock'),_0x50f791['enableCommand']('codeBlock',(_0x2bde2d,_0x203f70={})=>{const _0x5464fd=_0x51c2e5['model'],_0x33faa0=_0x51c2e5['model']['document']['selection'],_0x5b760f=_0x203f70&&void 0x0!==_0x203f70['forceValue']?_0x203f70['forceValue']:!_0x22c6ab['value'];let _0xd71e9c;_0x203f70['language']||(_0x203f70['language']=_0x32df6a[0x0]['language']),_0xd71e9c=_0x5b760f?Array['from'](_0x33faa0['getSelectedBlocks']())['filter'](_0x14054a=>oo(_0x14054a)||function(_0x3fdf73,_0xb5e7b8){if(_0x3fdf73['is']('rootElement')||_0xb5e7b8['isLimit'](_0x3fdf73))return!0x1;return _0xb5e7b8['checkChild'](_0x3fdf73['parent'],'codeBlock');}(_0x14054a,_0x5464fd['schema'])):Array['from'](_0x33faa0['getSelectedBlocks']())['filter'](_0x8ee745=>oo(_0x8ee745));const _0x18c9ff=Yt(_0xd71e9c,_0x5464fd);_0x5464fd['change'](()=>{for(const _0x37068c of _0x18c9ff)_0x50f791['markBlockFormat'](_0x37068c,{'commandName':'codeBlock','commandParams':[{..._0x203f70,'forceValue':_0x5b760f}],'formatGroupId':'blockName'});});}),(_0x50f791['descriptionFactory']['registerElementLabel']('codeBlock',_0x3d7322=>o(_0x44b463,'ELEMENT_CODE_BLOCK',_0x3d7322)),_0x50f791['descriptionFactory']['registerDescriptionCallback'](_0x2da426=>{if('formatBlock'!=_0x2da426['type'])return;const _0x21979d=_0x44b463['t'],{data:_0x4e9433}=_0x2da426;if(!_0x4e9433||'codeBlock'!=_0x4e9433['commandName'])return;const _0xcd0e81=_0x4e9433['commandParams'][0x0]['language'],_0x5824ea=_0x21979d(_0x32df6a['find'](_0x2d8dd2=>_0x2d8dd2['language']===_0xcd0e81)['label'])['toLowerCase']();return _0x4e9433['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x44b463,'*Set\x20format:*\x20%0',o(_0x44b463,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5824ea+')')}:{'type':'format','content':o(_0x44b463,'*Remove\x20format:*\x20%0',o(_0x44b463,'ELEMENT_CODE_BLOCK',0x1))};}));}}function oo(_0x440831){return'codeBlock'==_0x440831['name'];}class K extends _0x48beba{['afterInit'](){const _0x118aab=this['editor'];if(!_0x118aab['plugins']['has']('CommentsEditing'))return;_0x118aab['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x55869f,_0x5e65ec,_0xb7e02){const _0x1e5b8f=[];for(const _0x23fed9 of _0x5e65ec['getItems']())_0x23fed9['hasAttribute'](_0x55869f)&&_0x1e5b8f['push'](_0xb7e02['createRangeOn'](_0x23fed9));return _0x1e5b8f;}function Fe(_0x56986b,_0x7abf7e,{showActiveMarker:_0x131dff=!0x0}={}){const _0x4eeee6=_0x56986b['plugins']['get']('TrackChangesEditing');return(_0x223918,_0x3bda83,_0xc76b2c)=>{if(!_0xc76b2c['consumable']['test'](_0x3bda83['markerRange'],_0x223918['name']))return;const _0x517b59=_0x3bda83['markerRange']['getWalker'](),_0x813641=_0x3bda83['markerRange']['start'],_0x33285d=_0x56986b['model']['schema'];let _0x42d199=null,_0x485187=null,_0x546c38=!0x1,_0x108ee7=!0x1;for(const _0xcb61b3 of _0x517b59){const _0x17af66=_0xcb61b3['item'];_0x546c38=_0x546c38||_0x33285d['isContent'](_0x17af66);const _0xd48ae8=_0xc76b2c['mapper']['toViewElement'](_0x17af66);if(_0xd48ae8&&_0xd48ae8['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xcb61b3['type']&&(_0x33285d['isBlock'](_0x17af66)&&!_0x33285d['isLimit'](_0x17af66)&&(_0x17af66['nextSibling']||_0x813641['isAtEnd']?_0x42d199&&_0x42d199['parent']==_0x17af66||(_0x42d199=_0x17af66,_0x24c465(_0xcb61b3['previousPosition']),_0x108ee7=!0x0):_0x485187=_0x485187||_0xcb61b3['previousPosition']));}function _0x24c465(_0x53e7cc){const {id:_0x2af489,authorId:_0x3c691f}=_0x4eeee6['_splitMarkerName'](_0x3bda83['markerName']),_0x1b6a10=_0xc76b2c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x7abf7e,'data-suggestion':_0x2af489,'data-author-id':_0x3c691f}),_0x5d5cf2=_0xc76b2c['mapper']['toViewPosition'](_0x53e7cc);_0x131dff&&_0x4eeee6['activeMarkers']['includes'](_0x3bda83['markerName'])&&_0xc76b2c['writer']['addClass']('ck-suggestion-marker--active',_0x1b6a10),_0xc76b2c['writer']['insert'](_0x5d5cf2,_0x1b6a10),_0xc76b2c['mapper']['bindElementToMarker'](_0x1b6a10,_0x3bda83['markerName']);}_0x546c38||_0x108ee7||!_0x485187||_0x24c465(_0x485187);};}class H extends _0x48beba{static get['requires'](){return[_0x2b319e];}['init'](){const _0x42e104=this['editor'],_0x196ac0=_0x42e104['plugins']['get']('TrackChangesEditing');_0x196ac0['enableCommand']('delete');const _0x26d3d7=_0x42e104['commands']['get']('deleteForward');_0x196ac0['enableCommand']('deleteForward',(_0x3d3f3f,_0x225fd2={})=>{const _0x46ab1f=_0x42e104['model']['createSelection'](_0x42e104['model']['document']['selection']);_0x46ab1f['isCollapsed']&&_0x42e104['model']['modifySelection'](_0x46ab1f,{'direction':'forward','unit':_0x225fd2['unit']});const _0x288d2a=_0x46ab1f['getFirstRange'](),_0x5aeba7=_0x246516['fromRange'](_0x288d2a);let _0x4954e3;_0x3d3f3f(_0x225fd2),_0x4954e3='$graveyard'==_0x5aeba7['root']['rootName']?_0x42e104['model']['createRange'](_0x288d2a['start']):_0x42e104['model']['createRange'](_0x5aeba7['start'],_0x5aeba7['end']),_0x5aeba7['detach'](),_0x42e104['model']['enqueueChange'](_0x26d3d7['buffer']['batch'],_0x231f52=>{_0x26d3d7['buffer']['lock'](),_0x231f52['setSelection'](_0x231f52['createRange'](_0x4954e3['end'])),_0x26d3d7['buffer']['unlock']();});}),_0x42e104['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x42e104,'merge'),{'priority':'high'}),_0x42e104['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x346c83,_0x426b9f,_0x375d5b)=>{_0x375d5b['options']['showSuggestionHighlights']&&Fe(_0x42e104,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x346c83,_0x426b9f,_0x375d5b);},{'priority':'high'}),_0x42e104['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x5f4ce8,_0x35821e,_0x30d26f)=>{const _0x31769f=_0x30d26f['mapper']['markerNameToElements'](_0x35821e['markerName']);if(_0x31769f){for(const _0x3b4f6e of _0x31769f)_0x3b4f6e['is']('uiElement')&&(_0x30d26f['mapper']['unbindElementFromMarkerName'](_0x3b4f6e,_0x35821e['markerName']),_0x30d26f['writer']['remove'](_0x3b4f6e));}},{'priority':'high'});}}class q extends _0x48beba{['afterInit'](){const _0x2b1fd3=this['editor'];if(!_0x2b1fd3['plugins']['has']('ListEditing'))return;const _0x219a9c=_0x2b1fd3['locale'],_0x19ca56=_0x2b1fd3['plugins']['get']('TrackChangesEditing'),_0x34d562=_0x2b1fd3['plugins']['has']('TodoListEditing'),_0x7cb28c=!!_0x2b1fd3['config']['get']('list.multiBlock');function _0x34b6b8(_0x5d0cd0){return{'type':'format','content':''+o(_0x219a9c,'*Set\x20format:*\x20%0',_0x5d0cd0)};}function _0x1aa553(_0x1b1e29){return{'type':'format','content':''+o(_0x219a9c,'*Remove\x20format:*\x20%0',_0x1b1e29)};}_0x19ca56['enableDefaultAttributesIntegration']('numberedList'),_0x19ca56['enableDefaultAttributesIntegration']('bulletedList'),_0x19ca56['enableDefaultAttributesIntegration']('customNumberedList'),_0x19ca56['enableDefaultAttributesIntegration']('customBulletedList'),_0x19ca56['enableDefaultAttributesIntegration']('indentList'),_0x19ca56['enableDefaultAttributesIntegration']('outdentList'),_0x19ca56['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x19ca56['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x19ca56['registerBlockAttribute']('listItemId'),_0x19ca56['registerBlockAttribute']('listType'),_0x19ca56['registerBlockAttribute']('listIndent'),_0x7cb28c&&(_0x19ca56['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x19ca56['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x34d562&&(_0x19ca56['enableDefaultAttributesIntegration']('todoList'),_0x19ca56['enableDefaultAttributesIntegration']('checkTodoList'),_0x19ca56['registerBlockAttribute']('todoListChecked'),_0x19ca56['descriptionFactory']['registerDescriptionCallback'](_0x3303be=>{const {data:_0x3bd0e4}=_0x3303be;if(_0x3bd0e4&&'todoListChecked'==_0x3bd0e4['key'])return{'type':'format','content':_0x3bd0e4['newValue']?o(_0x219a9c,'*Check\x20item*'):o(_0x219a9c,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0xf9985e=>{if(_0xf9985e['batch']['isUndo'])return!0x1;let _0x4aef7d=!0x1;const _0x4b179d=_0x19ca56['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x528334=>'todoListChecked'===_0x19ca56['_getAttributeKey'](_0x528334));for(const _0x12c962 of _0x4b179d){'todo'!=_0x12c962['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x19ca56['_findSuggestions'](_0x12c962['getFirstRange'](),'attribute')['find'](_0x31caa9=>'listType'===_0x19ca56['_getAttributeKey'](_0x31caa9['suggestion']))||(_0xf9985e['removeMarker'](_0x12c962['getFirstMarker']()),_0x4aef7d=!0x0));}return _0x4aef7d;})),_0x19ca56['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x219a9c,'FORMAT_INDENT'));const _0x673d1e={'type':'format','content':''};_0x19ca56['descriptionFactory']['registerDescriptionCallback'](_0x4ec9b1=>{const {data:_0x18fa90}=_0x4ec9b1;if(!_0x18fa90||'listType'!=_0x18fa90['key'])return;let _0x295ec3=_0x4ec9b1['head'];for(;_0x295ec3;){if(_0x295ec3['data']&&(('listStyle'==_0x295ec3['data']['key']||'listMarkerStyle'==_0x295ec3['data']['key'])&&(_0x295ec3['data']['newValue']&&'default'!=_0x295ec3['data']['newValue']||'default'!=_0x295ec3['data']['oldValue']&&!_0x18fa90['newValue'])||!_0x7cb28c&&_0x295ec3['data']['key']==m))return _0x673d1e;_0x295ec3=_0x295ec3['next'];}if(null==_0x18fa90['newValue'])switch(_0x18fa90['oldValue']){case'bulleted':return _0x1aa553(o(_0x219a9c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1aa553(o(_0x219a9c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1aa553(o(_0x219a9c,'ELEMENT_TODO_LIST'));}switch(_0x18fa90['newValue']){case'bulleted':return _0x34b6b8(o(_0x219a9c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x34b6b8(o(_0x219a9c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x34b6b8(o(_0x219a9c,'ELEMENT_TODO_LIST'));}}),_0x19ca56['descriptionFactory']['registerDescriptionCallback'](_0x5f31b6=>{const {data:_0x4c0af8}=_0x5f31b6;if(_0x4c0af8&&'listIndent'==_0x4c0af8['key'])return null==_0x4c0af8['newValue']||null==_0x4c0af8['oldValue']&&0x0==_0x4c0af8['newValue']?_0x673d1e:void 0x0;}),_0x19ca56['descriptionFactory']['registerDescriptionCallback'](_0x402f9f=>{if('attribute'!=_0x402f9f['type'])return;const {data:_0x5ceee9}=_0x402f9f;if(!_0x5ceee9||'listItemId'!=_0x5ceee9['key'])return;const _0x44d743=Te(_0x402f9f);return'newValue'==_0x44d743?{'type':'format','content':o(_0x219a9c,'*Merge:*\x20list\x20item')}:'oldValue'==_0x44d743?{'type':'format','content':o(_0x219a9c,'*Split:*\x20list\x20item')}:_0x673d1e;}),_0x2b1fd3['model']['document']['registerPostFixer'](_0x32eb6b=>this['listItemIdFixer'](_0x32eb6b)),_0x2b1fd3['model']['document']['registerPostFixer'](_0x3b2799=>this['noTrackChangesFixer'](_0x3b2799)),_0x2b1fd3['model']['document']['on']('change:data',(_0x10731d,_0x4b631c)=>{if(_0x4b631c['isUndo']||!_0x4b631c['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x355b19){if(_0x355b19['batch']['isUndo']||!_0x355b19['batch']['isLocal'])return!0x1;let _0x42e880=!0x1;const _0x373b96=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4ba366=>_0x4ba366['data']&&'listItemId'==_0x4ba366['data']['key'])['filter'](_0x273a4d=>_0x273a4d['data']['newValue']&&_0x273a4d['data']['oldValue']);for(const _0x298cfb of _0x373b96)Te(_0x298cfb)||(_0x355b19['removeMarker'](_0x298cfb['getFirstMarker']()),_0x42e880=!0x0);return _0x42e880;}['noTrackChangesFixer'](_0x368713){if(_0x368713['batch']['isUndo']||!_0x368713['batch']['isLocal'])return!0x1;const _0x3941df=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x3941df['trackChangesCommand']['value'])return!0x1;let _0x1a90b1=!0x1;const _0x59e26c=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x3ab710=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x17a743=>'attribute'==_0x17a743['type'])['filter'](_0x137814=>_0x59e26c['includes'](_0x137814['attributeKey']));if(0x0==_0x3ab710['length'])return _0x1a90b1;for(const _0x577ce0 of _0x3ab710){const _0x5f0a3b=_0x3941df['_findSuggestions'](_0x577ce0['range'],'attribute')['filter'](_0x47d751=>!_0x47d751['meta']['isNextTo'])['map'](_0x4f1352=>_0x4f1352['suggestion'])['filter'](_0x360d29=>{const _0x525ce8=_0x3941df['_getAttributeKey'](_0x360d29);return _0x59e26c['includes'](_0x525ce8);});if(_0x5f0a3b['length']){for(const _0x3101bf of _0x5f0a3b)_0x368713['removeMarker'](_0x3101bf['getFirstMarker']());_0x1a90b1=!0x0;}}return _0x1a90b1;}['assureChains'](){const _0x69d975=this['editor']['plugins']['get']('TrackChangesEditing'),_0x54ea2b=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x40c7bd;const _0x593b4d=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xe2a407=>{if(_0xe2a407['data']['oldRange']||!_0xe2a407['data']['newRange'])return null;if(!_0xe2a407['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x5a75b6}=_0x69d975['_splitMarkerName'](_0xe2a407['name']);if(!_0x69d975['hasSuggestion'](_0x5a75b6))return null;const _0x2509eb=_0x69d975['getSuggestion'](_0x5a75b6);return _0x54ea2b['includes'](_0x2509eb['data']['key']);})['map'](_0xb98dd1=>{const {id:_0x241d61}=_0x69d975['_splitMarkerName'](_0xb98dd1['name']),_0x347bb9=_0x69d975['getSuggestion'](_0x241d61);return _0x40c7bd=_0x347bb9['attributes']['groupId'],_0x347bb9['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x593b4d['size'])return;const _0x27b4a0=_0x69d975['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3aea81=>'attribute'==_0x3aea81['type']&&_0x3aea81['data']&&_0x54ea2b['includes'](_0x3aea81['data']['key'])&&_0x3aea81['attributes']['groupId']!=_0x40c7bd)['map'](_0x41d2c6=>({'listItem':_0x41d2c6['getFirstRange']()['start']['nodeAfter'],'groupId':_0x41d2c6['attributes']['groupId']})),_0x498db8=new Set();for(const {groupId:_0x4207c9,listItem:_0x44e129}of _0x27b4a0)_0x593b4d['has'](_0x44e129)&&_0x498db8['add'](_0x4207c9);for(const _0x11a878 of _0x69d975['getSuggestions']())_0x498db8['has'](_0x11a878['attributes']['groupId'])&&_0x11a878['setAttribute']('groupId',_0x40c7bd);}['_supportLegacySuggestions'](){const _0x848024=this['editor'],_0x1f1c1f=_0x848024['locale'],_0x68f7f6=_0x848024['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x68f7f6['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x4c6114,_0xf5d8d1){const _0x3523ef=[];for(let _0x21a9dd of _0x4c6114)_0x21a9dd['start']['nodeAfter']===_0x21a9dd['end']['parent']&&(_0x21a9dd=_0x848024['model']['createRange'](_0x848024['model']['createPositionAt'](_0x21a9dd['start']['nodeAfter'],0x0))),_0x3523ef['push'](_0x21a9dd);_0x848024['model']['change'](_0x2da28b=>{const _0x37566c=_0x848024['model']['document']['selection'],_0x38e19a=Array['from'](_0x37566c['getRanges']())['map'](_0x52040e=>_0x246516['fromRange'](_0x52040e));_0x2da28b['setSelection'](_0x3523ef),_0x848024['commands']['get'](_0xf5d8d1['commandName'])['refresh'](),_0xf5d8d1['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x848024['execute'](_0xf5d8d1['commandName'],..._0xf5d8d1['commandParams']),_0x2da28b['setSelection'](_0x38e19a);for(const _0xde96f6 of _0x38e19a)_0xde96f6['detach']();});}),_0x68f7f6['descriptionFactory']['registerElementLabel'](function(_0x2137f0){const _0x29a7c7=!_0x848024['model']['schema']['isObject'](_0x2137f0),_0x4a7a6b=_0x2137f0['previousSibling'],_0x392bd8=_0x2137f0['nextSibling'],_0x38579e=_0x2137f0['getAttribute']('listItemId'),_0x353f18=!_0x4a7a6b||_0x4a7a6b['getAttribute']('listItemId')!==_0x38579e,_0x522b4f=!_0x392bd8||_0x392bd8['getAttribute']('listItemId')!==_0x38579e;return _0x29a7c7&&Boolean(_0x38579e)&&_0x353f18&&_0x522b4f;},_0x153dc3=>o(_0x1f1c1f,'ELEMENT_LIST_ITEM',_0x153dc3));}['_registerLegacyDescription'](){const _0x69903e=this['editor'],_0x38b08a=_0x69903e['locale'];function _0x463dec(_0x4f80c0){const _0x43c86e=_0x69903e['commands']['get']('bulletedList')['value'],_0x4d3851=_0x69903e['commands']['get']('numberedList')['value'];return'numberedList'===_0x4f80c0?_0x43c86e:_0x4d3851;}_0x69903e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x9be257){if('formatBlock'!=_0x9be257['type'])return;const {data:_0x5a6b0f}=_0x9be257;if(!_0x5a6b0f)return;let _0x587230,_0x134a68,_0x3cf0b9,_0x2e0953;switch(_0x5a6b0f['commandName']){case'bulletedList':_0x3cf0b9=_0x5a6b0f['commandParams'][0x0]['forceValue'],_0x2e0953=_0x463dec(_0x5a6b0f['commandName']),_0x587230=_0x3cf0b9?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2e0953&&_0x69903e['config']['get']('list.multiBlock')||(_0x587230='*Change\x20to:*\x20%0'),_0x134a68={'type':'format','content':o(_0x38b08a,_0x587230,o(_0x38b08a,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x3cf0b9=_0x5a6b0f['commandParams'][0x0]['forceValue'],_0x2e0953=_0x463dec(_0x5a6b0f['commandName']),_0x587230=_0x3cf0b9?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2e0953&&_0x69903e['config']['get']('list.multiBlock')||(_0x587230='*Change\x20to:*\x20%0'),_0x134a68={'type':'format','content':o(_0x38b08a,_0x587230,o(_0x38b08a,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x587230='*Indent:*\x20%0',_0x134a68={'type':'format','content':o(_0x38b08a,_0x587230,o(_0x38b08a,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x587230=function(_0x193d06){const _0x4262b0=_0x193d06['getFirstRange']();let _0x503352=_0x4262b0['start']['nodeAfter'];for(;_0x503352&&_0x4262b0['containsItem'](_0x503352);){if(_0x503352['getAttribute']('listIndent')>0x0)return!0x1;_0x503352=_0x503352['nextSibling'];}return!0x0;}(_0x9be257)?o(_0x38b08a,'*Format:*\x20remove\x20from\x20%0',o(_0x38b08a,function(_0x4eb639){return'ELEMENT_'+_0x4eb639['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x9be257))):o(_0x38b08a,'*Outdent:*\x20%0',o(_0x38b08a,'ELEMENT_LIST_ITEM')),_0x134a68={'type':'format','content':_0x587230};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x5a6b0f['multipleBlocks']&&(_0x587230='*Merge:*\x20%0',_0x134a68={'type':'deletion','content':o(_0x38b08a,_0x587230,o(_0x38b08a,'ELEMENT_LIST_ITEM'))});}return _0x134a68;});}}function Te(_0xc79062){let _0x437357=_0xc79062['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x437357;){const _0x4c0eb5=_0x437357['getAttribute']('listItemId');if(!_0x4c0eb5)return!0x1;if(_0x4c0eb5==_0xc79062['data']['newValue'])return'newValue';if(_0x4c0eb5==_0xc79062['data']['oldValue'])return'oldValue';_0x437357=_0x437357['previousSibling'];}return!0x1;}class z extends _0x48beba{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x134e60=this['editor']['config']['get']('list.properties'),_0x5f5898=this['editor']['plugins']['get']('TrackChangesEditing');_0x134e60['styles']&&(_0x5f5898['enableDefaultAttributesIntegration']('listStyle'),_0x5f5898['registerBlockAttribute']('listStyle')),_0x134e60['reversed']&&(_0x5f5898['enableDefaultAttributesIntegration']('listReversed'),_0x5f5898['registerBlockAttribute']('listReversed')),_0x134e60['startIndex']&&(_0x5f5898['enableDefaultAttributesIntegration']('listStart'),_0x5f5898['registerBlockAttribute']('listStart'));const _0x4d09dc={'type':'format','content':''};_0x5f5898['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4bd5f6=this['editor']['locale'];_0x5f5898['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x4bd5f6,'FORMAT_LIST_REVERSED')),_0x5f5898['descriptionFactory']['registerDescriptionCallback'](_0x119549=>{const {data:_0x42f81f}=_0x119549;if(_0x42f81f&&'listReversed'==_0x42f81f['key'])return null==_0x42f81f['newValue']||0x0==_0x42f81f['newValue']&&null==_0x42f81f['oldValue']?_0x4d09dc:void 0x0;}),_0x5f5898['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x4bd5f6,'FORMAT_LIST_START')),_0x5f5898['descriptionFactory']['registerDescriptionCallback'](_0x302e0b=>{const {data:_0x5439ed}=_0x302e0b;if(_0x5439ed&&'listStart'==_0x5439ed['key'])return null==_0x5439ed['newValue']||0x1==_0x5439ed['newValue']&&null==_0x5439ed['oldValue']?_0x4d09dc:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0xa3d711=>{if(_0xa3d711['batch']['isUndo'])return!0x1;let _0x2c8caf=!0x1;const _0x4ca3d2=_0x5f5898['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2e3655=>{const _0xe3ce35=_0x5f5898['_getAttributeKey'](_0x2e3655);return'listStart'==_0xe3ce35||'listReversed'==_0xe3ce35;});for(const _0x303e07 of _0x4ca3d2){const _0x54558f=_0x303e07['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x54558f||'customNumbered'==_0x54558f)continue;_0x5f5898['_findSuggestions'](_0x303e07['getFirstRange'](),'attribute')['find'](_0x5d4dd7=>'listType'==_0x5f5898['_getAttributeKey'](_0x5d4dd7['suggestion']))||(_0xa3d711['removeMarker'](_0x303e07['getFirstMarker']()),_0x2c8caf=!0x0);}return _0x2c8caf;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0xf901db){const _0x38c9f9=this['editor']['locale'],{data:_0xf55b53}=_0xf901db,_0x3c8925={'type':'format','content':''};if(!_0xf55b53||'listStyle'!=_0xf55b53['key'])return;if(!_0xf55b53['oldValue'])return'default'==_0xf55b53['newValue']?_0x3c8925:{'type':'format','content':''+o(_0x38c9f9,'*Set\x20format:*\x20%0',o(_0x38c9f9,this['_getTranslationKeyForListStyle'](_0xf55b53['newValue'])))};if(!_0xf55b53['newValue']){if('default'==_0xf55b53['oldValue'])return _0x3c8925;let _0x2f835c=_0xf901db['head'];for(;_0x2f835c;){if(_0x2f835c['data']&&'listType'==_0x2f835c['data']['key']&&_0x2f835c['data']['newValue'])return _0x3c8925;_0x2f835c=_0x2f835c['next'];}return{'type':'format','content':''+o(_0x38c9f9,'*Remove\x20format:*\x20%0',o(_0x38c9f9,this['_getTranslationKeyForListStyle'](_0xf55b53['oldValue'])))};}if('default'!=_0xf55b53['newValue'])return{'type':'format','content':''+o(_0x38c9f9,'*Set\x20format:*\x20%0',o(_0x38c9f9,this['_getTranslationKeyForListStyle'](_0xf55b53['newValue'])))};let _0x29ff7b=_0xf901db['head'];for(;_0x29ff7b;){if(_0x29ff7b['data']&&'listType'==_0x29ff7b['data']['key']&&_0x29ff7b['data']['newValue']&&_0x29ff7b['data']['oldValue'])return _0x3c8925;_0x29ff7b=_0x29ff7b['next'];}return{'type':'format','content':o(_0x38c9f9,'*Set\x20format:*\x20%0',o(_0x38c9f9,'ELEMENT_'+_0xf901db['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x160da5=this['editor'],_0x59a84e=_0x160da5['locale'];_0x160da5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc2dfb0=>{if('formatBlock'!=_0xc2dfb0['type'])return;const {data:_0x366d58}=_0xc2dfb0;if(!_0x366d58)return;let _0x14f354,_0x40574b;switch(_0x366d58['commandName']){case'listStyle':_0x14f354='*Change\x20to:*\x20%0',_0x40574b={'type':'format','content':o(_0x59a84e,_0x14f354,o(_0x59a84e,this['_getTranslationKeyForListStyle'](_0x366d58['commandParams'][0x0]['type'])))};break;case'listReversed':_0x14f354=_0x366d58['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x40574b={'type':'format','content':o(_0x59a84e,_0x14f354)};break;case'listStart':_0x14f354='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x40574b={'type':'format','content':o(_0x59a84e,_0x14f354,_0x366d58['commandParams'][0x0]['startIndex'])};}return _0x40574b;});}['_getTranslationKeyForListStyle'](_0x4a661f){return'ELEMENT_'+function(_0x3403dd){if(Se['includes'](_0x3403dd))return'bulleted';if(_e['includes'](_0x3403dd))return'numbered';return null;}(_0x4a661f)['toUpperCase']()+'_LIST_'+_0x4a661f['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x48beba{['afterInit'](){const _0x38acfb=this['editor'];_0x38acfb['commands']['get']('emoji')&&_0x38acfb['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Q extends _0x48beba{static get['requires'](){return[_0x4df91e];}['init'](){const _0x53d2c1=this['editor'],_0x11a8c8=_0x53d2c1['plugins']['get']('TrackChangesEditing'),_0x5ede1e=_0x53d2c1['commands']['get']('enter');_0x11a8c8['enableCommand']('enter',()=>{_0x53d2c1['model']['change'](_0x127f25=>{const _0x3ee731=_0x53d2c1['model']['document']['selection'],_0x4f1047=_0x3ee731['getFirstPosition'](),_0x17992b=_0x246516['fromRange'](_0x3ee731['getFirstRange']());if(_0x5ede1e['enterBlock'](_0x127f25)){const _0x2f7924=_0x53d2c1['model']['createPositionAt'](_0x4f1047['parent']['nextSibling'],0x0),_0x106f0c=_0x127f25['createRange'](_0x4f1047,_0x2f7924);_0x11a8c8['markInsertion'](_0x106f0c);}else _0x127f25['setSelection'](_0x127f25['createRange'](_0x17992b['end']));_0x17992b['detach'](),_0x5ede1e['fire']('afterExecute',{'writer':_0x127f25});});}),_0x53d2c1['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x53d2c1,'split'),{'priority':'high'}),_0x53d2c1['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x25198f,_0x3d8128,_0x297f3b)=>{const _0x5657b7=_0x297f3b['mapper']['markerNameToElements'](_0x3d8128['markerName']);if(_0x5657b7){for(const _0x305911 of _0x5657b7)_0x305911['hasClass']('ck-suggestion-marker-split')&&(_0x297f3b['mapper']['unbindElementFromMarkerName'](_0x305911,_0x3d8128['markerName']),_0x297f3b['writer']['remove'](_0x305911));}},{'priority':'high'}),_0x53d2c1['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x55c525,_0x64d79d,_0xae2fa6)=>{_0xae2fa6['options']['showSuggestionHighlights']&&Fe(_0x53d2c1,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x55c525,_0x64d79d,_0xae2fa6);},{'priority':'high'});}}class X extends _0x48beba{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x506886=this['editor']['plugins']['get']('TrackChangesEditing');_0x506886['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x506886['enableCommand']('findNext'),_0x506886['enableCommand']('findPrevious'),_0x506886['enableCommand']('replace'),_0x506886['enableCommand']('replaceAll');}['handleFindCommand'](_0x3c0ac0,_0x5c10f5,_0x1b9ab8={}){const _0x150b88=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x3c0ac0(_0x2f5d67=>{let _0x17845f=('string'==typeof _0x5c10f5?_0x150b88['findByTextCallback'](_0x5c10f5,_0x1b9ab8):_0x5c10f5)(_0x2f5d67);Array['isArray'](_0x17845f)&&(_0x17845f={'results':_0x17845f,'searchText':'string'==typeof _0x5c10f5?_0x5c10f5:''});const _0xd80e76=_0x17845f['results']['filter'](_0x5a39af=>!0x1===this['_isInDeletionRange'](_0x5a39af,_0x2f5d67['item']));return{..._0x17845f,'results':_0xd80e76};},_0x1b9ab8);}['_isInDeletionRange'](_0x4d4399,_0x16e167){const _0x561e9a=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x16e167,_0x4d4399['start']),this['editor']['model']['createPositionAt'](_0x16e167,_0x4d4399['end']));for(const _0x4caf3f of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x561e9a['getIntersection'](_0x4caf3f['getRange']()))return!0x0;return!0x1;}}const no=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0x48beba{['afterInit'](){const _0x31cdb9=this['editor']['locale'],_0x51f135=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3934c9,commandName:_0x34d9df}of no)this['editor']['plugins']['has'](_0x3934c9)&&(_0x51f135['enableDefaultAttributesIntegration'](_0x34d9df),_0x51f135['registerInlineAttribute'](_0x34d9df));_0x51f135['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x31cdb9,'FORMAT_FONT_SIZE')),_0x51f135['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x31cdb9,'FORMAT_FONT_FAMILY')),_0x51f135['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x31cdb9,'FORMAT_FONT_COLOR')),_0x51f135['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x31cdb9,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x217a86=this['editor'],_0x33f73e=_0x217a86['locale'];_0x217a86['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x25a03b=>{const _0x5ec286=_0x33f73e['t'];if('formatInline'!=_0x25a03b['type'])return;const {data:_0xf1f8e8}=_0x25a03b;if(null!=_0xf1f8e8){if('fontSize'==_0xf1f8e8['commandName']){const _0x2f699c=_0xf1f8e8['commandParams'][0x0]['value'];if(_0x2f699c){const _0x3d26a1=_0x5ec286(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x17e30b=>_0x17e30b['model']==_0x2f699c)['title'])['toLowerCase']();return{'type':'format','content':o(_0x33f73e,'*Set\x20font\x20size:*\x20%0',_0x3d26a1)};}return{'type':'format','content':o(_0x33f73e,'*Reset\x20font\x20size*')};}if('fontFamily'==_0xf1f8e8['commandName']){const _0x3fa7b1=_0xf1f8e8['commandParams'][0x0]['value'];return _0x3fa7b1?{'type':'format','content':o(_0x33f73e,'*Set\x20font\x20family:*\x20%0',_0x3fa7b1)}:{'type':'format','content':o(_0x33f73e,'*Reset\x20font\x20family*')};}if('fontColor'==_0xf1f8e8['commandName']){const _0x45b36d=_0xf1f8e8['commandParams'][0x0]['value'];if(_0x45b36d){const _0x86a65=to(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5f2a92=>_0x5f2a92['model']==_0x45b36d);let _0x394925=_0x45b36d,_0x35a26f='';return _0x86a65&&(_0x394925=_0x86a65['label'],_0x35a26f=_0x5ec286(_0x394925)['toLowerCase']()),{'type':'format','content':o(_0x33f73e,'*Set\x20font\x20color:*\x20%0',_0x35a26f)['trim'](),'color':{'value':_0x45b36d,'title':_0x35a26f||_0x394925}};}return{'type':'format','content':o(_0x33f73e,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0xf1f8e8['commandName']){const _0x2442ca=_0xf1f8e8['commandParams'][0x0]['value'];if(_0x2442ca){const _0x4fe518=to(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x4abd7c=>_0x4abd7c['model']==_0x2442ca);let _0x5dd8bf=_0x2442ca,_0x4a7326='';return _0x4fe518&&(_0x5dd8bf=_0x4fe518['label'],_0x4a7326=_0x5ec286(_0x5dd8bf)['toLowerCase']()),{'type':'format','content':o(_0x33f73e,'*Set\x20font\x20background\x20color:*\x20%0',_0x4a7326)['trim'](),'color':{'value':_0x2442ca,'title':_0x4a7326||_0x5dd8bf}};}return{'type':'format','content':o(_0x33f73e,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x48beba{['afterInit'](){const _0x13230e=this['editor'],_0x1f0148=_0x13230e['plugins']['get']('TrackChangesEditing'),_0x649b8f=_0x13230e['commands']['get']('copyFormat'),_0x158648=_0x13230e['commands']['get']('pasteFormat');_0x649b8f&&_0x158648&&(_0x1f0148['enableDefaultAttributesIntegration']('pasteFormat'),_0x1f0148['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x4948f5=this['editor'],_0x491d44=_0x4948f5['locale'];_0x4948f5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3de2a3=>{if('formatBlock'!=_0x3de2a3['type']&&'formatInline'!=_0x3de2a3['type'])return;const {data:_0x2409fd}=_0x3de2a3;if(_0x2409fd&&'pasteFormat'===_0x2409fd['commandName']){const _0x5cc419=[],_0x2010e5=_0x2409fd['commandParams'][0x0];for(const [_0x2b097c,_0x50e7ab]of Object['entries'](_0x2010e5))_0x5cc419['push'](ro(_0x4948f5,_0x2b097c,_0x50e7ab));return _0x5cc419['length']?{'type':'format','content':o(_0x491d44,'*Set\x20format\x20to:*\x20%0',_0x5cc419['join'](',\x20'))}:{'type':'format','content':o(_0x491d44,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x406bda,_0x10a03a,_0x5150ad){const _0x34a261=_0x406bda['locale']['t'],_0x384071=_0x10a03a['split'](/(?=[A-Z])/)['join']('\x20'),_0x5d5674=_0x34a261(_0x384071['charAt'](0x0)['toUpperCase']()+_0x384071['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x5150ad)return _0x5d5674;if('fontColor'===_0x10a03a||'fontBackgroundColor'===_0x10a03a){const _0x2ccd65=to(_0x406bda['config']['get']('fontColor.colors'))['find'](_0x1cf8fb=>_0x1cf8fb['model']==_0x5150ad);return _0x5d5674+'\x20('+(_0x2ccd65?_0x34a261(_0x2ccd65['label'])['toLowerCase']():_0x5150ad)+')';}if('fontSize'===_0x10a03a&&isNaN(parseFloat(_0x5150ad))){const _0x28f1c3=_0x406bda['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x406bda['config']['get']('fontSize.options'))['find'](_0x2130d5=>_0x2130d5['model']==_0x5150ad);return _0x5d5674+'\x20('+(_0x28f1c3?_0x34a261(_0x28f1c3['title'])['toLowerCase']():_0x5150ad)+')';}return _0x5d5674+'\x20('+_0x5150ad+')';}class tt extends _0x48beba{['_headingOptions'];['afterInit'](){const _0x19b1f4=this['editor'];if(!_0x19b1f4['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x19b1f4['config']['get']('heading.options');const _0xa22ce1=_0x19b1f4['locale'],_0x272157=_0x19b1f4['plugins']['get']('TrackChangesEditing');_0x272157['enableDefaultAttributesIntegration']('heading');for(const _0x3d0912 of this['_headingOptions'])'paragraph'!=_0x3d0912['model']&&_0x272157['descriptionFactory']['registerElementLabel'](_0x3d0912['model'],_0x330afd=>{const _0x5acdde=this['_getHeadingLevel'](_0x3d0912['model']);return null!==_0x5acdde?_0x4c79a7(_0x330afd,_0x5acdde):_0x34af20(_0x330afd,_0x3d0912['title']);});function _0x4c79a7(_0x1570b2,_0x209ae2){return o(_0xa22ce1,'ELEMENT_HEADING',[_0x1570b2,_0x209ae2]);}function _0x34af20(_0x59cde6,_0xe756){return o(_0xa22ce1,'ELEMENT_HEADING_CUSTOM',[_0x59cde6,_0xe756]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1a401c=this['editor'],_0x1bbdd5=_0x1a401c['locale'];function _0x460c57(_0x4add3b,_0x1dd69e){return o(_0x1bbdd5,'ELEMENT_HEADING_CUSTOM',[_0x4add3b,_0x1dd69e]);}_0x1a401c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x16dc33=>{if('formatBlock'!=_0x16dc33['type'])return;const {data:_0x13c94b}=_0x16dc33;if(_0x13c94b&&'heading'==_0x13c94b['commandName']){const _0x4ec8d6=_0x13c94b['commandParams'][0x0]['value'],_0x533040=this['_getHeadingLevel'](_0x4ec8d6);if(null!==_0x533040)return{'type':'format','content':o(_0x1bbdd5,'*Change\x20to:*\x20%0',(_0x2b7777=0x1,_0x3dc4c2=_0x533040,o(_0x1bbdd5,'ELEMENT_HEADING',[_0x2b7777,_0x3dc4c2])))};const _0x1e28a3=this['_headingOptions']['find'](_0x1cdaaa=>_0x1cdaaa['model']===_0x4ec8d6)['title'];return{'type':'format','content':o(_0x1bbdd5,'*Change\x20to:*\x20%0',_0x460c57(0x1,_0x1e28a3))};}var _0x2b7777,_0x3dc4c2;});}['_getHeadingLevel'](_0x1aeefc){const _0x2c3831=_0x1aeefc['match'](/^heading(\d+)/);if(_0x2c3831)return _0x2c3831[0x1];const _0x5ed7e0=this['_headingOptions']?.['find'](_0x2d7679=>_0x2d7679['model']==_0x1aeefc);if(_0x5ed7e0&&_0x5ed7e0['view']){const _0x6cb3da=_0x5ed7e0['view'],_0x30aab4=(_0x6cb3da['name']??_0x6cb3da)['match'](/^h(\d+)/);if(_0x30aab4)return _0x30aab4[0x1];}return null;}}class it extends _0x48beba{['afterInit'](){const _0x45c5dc=this['editor'];if(!_0x45c5dc['plugins']['has']('HighlightEditing'))return;const _0x27cdf4=_0x45c5dc['plugins']['get']('TrackChangesEditing'),_0x200a71=_0x45c5dc['locale'];_0x27cdf4['enableDefaultAttributesIntegration']('highlight'),_0x27cdf4['registerInlineAttribute']('highlight'),_0x27cdf4['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x200a71,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x14b875=this['editor'],_0x38933b=_0x14b875['locale'];_0x14b875['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x277aee=>{if('formatInline'!=_0x277aee['type'])return;const {data:_0x499752}=_0x277aee;if(_0x499752&&'highlight'==_0x499752['commandName']){const _0x221a46=_0x38933b['t'],_0x316a96=_0x499752['commandParams'][0x0]['value'];if(_0x316a96){const _0x59a1b7=_0x14b875['config']['get']('highlight.options')['find'](_0x3d240b=>_0x3d240b['model']==_0x316a96),_0x5931cc=_0x221a46(_0x59a1b7['title'])['toLowerCase']();return{'type':'format','content':o(_0x38933b,'*Set\x20highlight:*\x20%0',_0x5931cc),'color':{'value':_0x59a1b7['color'],'title':_0x59a1b7['title']}};}return{'type':'format','content':o(_0x38933b,'*Remove\x20highlight*',o(_0x38933b,'FORMAT_HIGHLIGHT'))};}});}}class nt extends _0x48beba{['afterInit'](){const _0x3e5838=this['editor'];if(!_0x3e5838['plugins']['has']('HorizontalLineEditing'))return;_0x3e5838['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x59dffe=_0x3e5838['plugins']['get']('TrackChangesEditing'),_0xd39290=_0x3e5838['locale'];_0x59dffe['descriptionFactory']['registerElementLabel']('horizontalLine',_0x295e34=>o(_0xd39290,'ELEMENT_HORIZONTAL_LINE',_0x295e34)),_0x3e5838['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1dc67d,{writer:_0x146dde,options:_0x556803})=>{if(!_0x556803['showSuggestionHighlights'])return null;const _0x1a02c9=_0x146dde['createContainerElement']('div'),_0xe1bf54=_0x146dde['createEmptyElement']('hr');return _0x146dde['addClass']('ck-horizontal-line',_0x1a02c9),_0x146dde['insert'](_0x146dde['createPositionAt'](_0x1a02c9,0x0),_0xe1bf54),_0x1a02c9;},'converterPriority':'high'});}}class et extends _0x48beba{['afterInit'](){const _0xb70d7c=this['editor'];if(!_0xb70d7c['plugins']['has']('HtmlEmbed'))return;const _0x23a371=_0xb70d7c['plugins']['get']('TrackChangesEditing'),_0x12ab8d=_0xb70d7c['locale'];_0x23a371['descriptionFactory']['registerElementLabel']('rawHtml',_0x1d5ed9=>o(_0x12ab8d,'ELEMENT_HTML_EMBED',_0x1d5ed9)),_0x23a371['enableDefaultAttributesIntegration']('htmlEmbed'),_0x23a371['registerBlockAttribute']('value'),_0x23a371['descriptionFactory']['registerDescriptionCallback'](_0x25ac3b=>{if('attribute'!=_0x25ac3b['type'])return;const {data:_0x156379}=_0x25ac3b;if(_0x156379&&'value'==_0x156379['key']&&_0x25ac3b['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3cd859=o(_0x12ab8d,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x12ab8d,'*Change\x20%0\x20content*',_0x3cd859)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b7dd6=this['editor'],_0x235a96=_0x4b7dd6['locale'];_0x4b7dd6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x370042=>{if('formatBlock'!=_0x370042['type'])return;const {data:_0x12816e}=_0x370042;if(_0x12816e&&'htmlEmbed'==_0x12816e['commandName']){const _0x4c12a6=o(_0x235a96,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x235a96,'*Change\x20%0\x20content*',_0x4c12a6)};}});}}class st extends _0x48beba{['afterInit'](){const _0x3fe543=this['editor'];if(!_0x3fe543['plugins']['has']('ImageEditing'))return;const _0x10fc5b=_0x3fe543['plugins']['get']('TrackChangesEditing'),_0x31f821=_0x3fe543['plugins']['get']('ImageUtils'),_0x5ed5ce=_0x3fe543['locale'];_0x10fc5b['enableCommand']('insertImage'),_0x10fc5b['descriptionFactory']['registerElementLabel']('imageBlock',_0x56ad9a=>o(_0x5ed5ce,'ELEMENT_IMAGE',_0x56ad9a)),_0x10fc5b['descriptionFactory']['registerElementLabel']('imageInline',_0x38b9f2=>o(_0x5ed5ce,'ELEMENT_INLINE_IMAGE',_0x38b9f2)),_0x10fc5b['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x5ed5ce,'ELEMENT_CAPTION')),_0x3fe543['plugins']['has']('ImageUploadEditing')&&_0x10fc5b['enableCommand']('uploadImage'),_0x3fe543['plugins']['has']('ImageBlockEditing')&&_0x3fe543['plugins']['has']('ImageInlineEditing')&&(_0x10fc5b['enableCommand']('imageTypeInline',(_0x53fc7c,_0x36490f)=>{const _0x1de885=_0x31f821['getClosestSelectedImageElement'](_0x3fe543['model']['document']['selection']);_0x3fe543['model']['change'](()=>{_0x10fc5b['markBlockFormat'](_0x1de885,{'commandName':'imageTypeInline','commandParams':[_0x36490f]},[],'convertBlockImageToInline');});}),_0x10fc5b['enableCommand']('imageTypeBlock',(_0x340698,_0x3ce2b5)=>{_0x3fe543['model']['change'](_0x5f2b06=>{let _0x750efa=_0x31f821['getClosestSelectedImageElement'](_0x3fe543['model']['document']['selection']),_0x1a2733=_0x5f2b06['createRangeOn'](_0x750efa);const _0x6416ed=_0x24623['fromPosition'](_0x1a2733['start'],'toPrevious'),_0x5f4d34=_0x24623['fromPosition'](_0x1a2733['end'],'toNext');_0x10fc5b['forceDefaultExecution'](()=>_0x340698(_0x3ce2b5)),_0x750efa=_0x31f821['getClosestSelectedImageElement'](_0x3fe543['model']['document']['selection']),_0x1a2733=_0x5f2b06['createRangeOn'](_0x750efa);const _0x26baa4=_0x5f2b06['createRange'](_0x6416ed,_0x5f4d34);_0x6416ed['detach'](),_0x5f4d34['detach'](),_0x10fc5b['markBlockFormat'](_0x750efa,{'commandName':'imageTypeInline','commandParams':[_0x3ce2b5]},[],'convertInlineImageToBlock'),_0x26baa4['start']['isBefore'](_0x1a2733['start'])&&_0x10fc5b['markInsertion'](_0x5f2b06['createRange'](_0x26baa4['start'],_0x1a2733['start']),'convertInlineImageToBlock'),_0x1a2733['end']['isBefore'](_0x26baa4['end'])&&_0x10fc5b['markInsertion'](_0x5f2b06['createRange'](_0x1a2733['end'],_0x26baa4['end']),'convertInlineImageToBlock');});}),_0x10fc5b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x10fc5b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x10fc5b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x10fc5b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x10fc5b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x10fc5b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x12d174])=>{const _0xbb845c=_0x10fc5b['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x218dc5=_0x12d174['start'],_0x390c31=_0x12d174['end'];const _0x31d7b4=_0x3fe543['model']['schema']['getNearestSelectionRange'](_0x218dc5,'backward'),_0x1defb2=_0x3fe543['model']['schema']['getNearestSelectionRange'](_0x390c31,'forward');_0x31d7b4['isCollapsed']&&(_0x218dc5=_0x31d7b4['start']),_0x1defb2['isCollapsed']&&(_0x390c31=_0x1defb2['end']),_0xbb845c([_0x3fe543['model']['createRange'](_0x218dc5,_0x390c31)]);}),_0x10fc5b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2c6e7e),_0x10fc5b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2c6e7e)),_0x3fe543['plugins']['has']('ImageCaptionEditing')&&(_0x10fc5b['enableCommand']('toggleImageCaption',(_0x490416,_0x377aab)=>{const _0x4e1560=_0x3fe543['plugins']['get']('ImageCaptionUtils');let _0x30ec60=_0x31f821['getClosestSelectedImageElement'](_0x3fe543['model']['document']['selection']),_0x3fbd96=_0x4e1560['getCaptionFromImageModelElement'](_0x30ec60);_0x3fe543['model']['change'](()=>{if(_0x3fbd96)return void _0x10fc5b['markDeletion'](_0x3fe543['model']['createRangeOn'](_0x3fbd96));const _0xab27fd=_0x31f821['isBlockImage'](_0x30ec60);_0x490416(_0x377aab),_0x30ec60=_0x31f821['getClosestSelectedImageElement'](_0x3fe543['model']['document']['selection']),_0x3fbd96=_0x4e1560['getCaptionFromImageModelElement'](_0x30ec60),_0x10fc5b['markInsertion'](_0x3fe543['model']['createRangeOn'](_0x3fbd96),_0xab27fd?null:'imageCaption');});}),_0x10fc5b['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2c6e7e));const _0x1ae7c9=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5ba047(_0x2e5470,_0x5ccb1b){const _0x405f0c=_0x1ae7c9['findIndex'](({type:_0x317ffb,subType:_0x2e8d04})=>_0x2e5470['type']==_0x317ffb&&_0x2e5470['subType']==_0x2e8d04),_0x1eea71=_0x1ae7c9['findIndex'](({type:_0x5e42fa,subType:_0x3e2d57})=>_0x5ccb1b['type']==_0x5e42fa&&_0x5ccb1b['subType']==_0x3e2d57);if(_0x405f0c<0x0||_0x1eea71<0x0)return!0x1;const _0x259cce=_0x2e5470['getFirstRange'](),_0x313aa5=_0x5ccb1b['getFirstRange']();if((0x0==_0x405f0c||0x1==_0x405f0c)&&0x2==_0x1eea71&&_0x259cce['isIntersecting'](_0x313aa5))return!0x0;if(0x2==_0x405f0c&&0x3==_0x1eea71){const _0x30a0fb=_0x10fc5b['_findSuggestions'](_0x259cce,'insertion')['filter'](({suggestion:_0x2017e8,meta:_0x5994df})=>_0x5994df['isOwn']&&'convertInlineImageToBlock'==_0x2017e8['subType']);if(_0x30a0fb['length']>0x1&&_0x313aa5['end']['isEqual'](_0x259cce['start']))return!0x0;if(0x1==_0x30a0fb['length']&&(_0x259cce['start']['isEqual'](_0x313aa5['end'])||_0x259cce['end']['isEqual'](_0x313aa5['start'])))return!0x0;}if(0x3==_0x405f0c&&0x3==_0x1eea71&&_0x259cce['start']['isBefore'](_0x313aa5['start'])){const _0x356228=_0x259cce['end']['nodeAfter'],_0x3053be=_0x313aa5['start']['nodeBefore'];return _0x31f821['isBlockImage'](_0x356228)&&_0x356228===_0x3053be;}return!0x1;}function _0x2c6e7e(_0x1180bd,_0x3fb153){return _0x5ba047(_0x1180bd,_0x3fb153)?[_0x1180bd,_0x3fb153]:_0x5ba047(_0x3fb153,_0x1180bd)?[_0x3fb153,_0x1180bd]:null;}_0x3fe543['plugins']['has']('ImageResize')&&(_0x10fc5b['enableDefaultAttributesIntegration']('resizeImage'),_0x10fc5b['registerBlockAttribute']('resizedWidth'),_0x10fc5b['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x5ed5ce,'FORMAT_IMAGE_SIZE'))),_0x3fe543['plugins']['has']('ImageTextAlternativeEditing')&&(_0x10fc5b['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x10fc5b['registerBlockAttribute']('alt')),_0x3fe543['plugins']['has']('PictureEditing')&&(_0x10fc5b['registerBlockAttribute']('sources'),_0x10fc5b['descriptionFactory']['registerDescriptionCallback'](_0x14e71b=>{if('attribute'!=_0x14e71b['type'])return;const {data:_0x109674}=_0x14e71b;return _0x109674&&'sources'==_0x109674['key']?{'type':'format','content':''}:void 0x0;})),_0x3fe543['plugins']['has']('ImageSizeAttributes')&&(_0x10fc5b['registerBlockAttribute']('width'),_0x10fc5b['registerBlockAttribute']('height'),_0x10fc5b['descriptionFactory']['registerDescriptionCallback'](_0x226c0e=>{if('attribute'!=_0x226c0e['type'])return;const {data:_0x5ed6e8}=_0x226c0e;return!_0x5ed6e8||'width'!=_0x5ed6e8['key']&&'height'!=_0x5ed6e8['key']?void 0x0:{'type':'format','content':''};})),_0x10fc5b['descriptionFactory']['registerDescriptionCallback'](_0x4ccc6d=>{if(!!_0x1ae7c9['find'](({type:_0x5570c7,subType:_0x3bb652})=>_0x4ccc6d['type']==_0x5570c7&&_0x4ccc6d['subType']==_0x3bb652))return _0x4ccc6d['previous']?{}:void 0x0;}),_0x10fc5b['descriptionFactory']['registerDescriptionCallback'](_0xf7863a=>{if('insertion'==_0xf7863a['type']||'deletion'==_0xf7863a['type']){const _0xa1be3e=_0xf7863a['getContainedElement']();if(_0xa1be3e&&_0xa1be3e['is']('element','caption'))return{'type':'insertion'==_0xf7863a['type']?'addObject':'removeObject','element':_0xa1be3e,'quantity':0x1};}}),_0x10fc5b['descriptionFactory']['registerDescriptionCallback'](_0x5f07ac=>'formatBlock'==_0x5f07ac['type']&&'convertInlineImageToBlock'==_0x5f07ac['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x5f07ac['type']&&'convertBlockImageToInline'==_0x5f07ac['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x10fc5b['descriptionFactory']['registerDescriptionCallback'](_0xe46c1c=>{if('attribute'!=_0xe46c1c['type'])return;const {data:_0x560cdd}=_0xe46c1c;if(!_0x560cdd||'alt'!=_0x560cdd['key'])return;const _0x38eb9e=_0x560cdd['newValue'];return _0x38eb9e?{'type':'format','content':o(_0x5ed5ce,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x38eb9e+'\x22')}:{'type':'format','content':o(_0x5ed5ce,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1fcf54=this['editor'],_0x1acd94=_0x1fcf54['locale'];_0x1fcf54['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x32bafb=>{if('formatBlock'!=_0x32bafb['type']&&'formatInline'!=_0x32bafb['type'])return;const {data:_0x475e4d}=_0x32bafb;if(_0x475e4d){if('imageTextAlternative'==_0x475e4d['commandName']){const _0x574803=_0x475e4d['commandParams'][0x0]['newValue'];return _0x574803?{'type':'format','content':o(_0x1acd94,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x574803+'\x22')}:{'type':'format','content':o(_0x1acd94,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x475e4d['commandName']){const _0x3a4a26=_0x475e4d['commandParams'][0x0]['width'];return _0x3a4a26?{'type':'format','content':o(_0x1acd94,'*Set\x20image\x20width:*\x20%0',_0x3a4a26)}:{'type':'format','content':o(_0x1acd94,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x48beba{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x24f24a=this['editor']['locale'],_0x13f225=this['editor']['plugins']['get']('TrackChangesEditing');_0x13f225['enableDefaultAttributesIntegration']('replaceImageSource'),_0x13f225['registerBlockAttribute']('src'),_0x13f225['descriptionFactory']['registerDescriptionCallback'](_0xf1a4ad=>{if('attribute'!=_0xf1a4ad['type'])return;const {data:_0x3cfc74}=_0xf1a4ad;return _0x3cfc74&&'src'==_0x3cfc74['key']?_0x3cfc74['newValue']&&_0x3cfc74['oldValue']?{'type':'format','content':o(_0x24f24a,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4a164c=this['editor']['plugins']['get']('TrackChangesEditing');_0x4a164c['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4a164c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4a164c['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4a164c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x490759=this['editor'],_0x35a615=_0x490759['locale'];_0x490759['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x39e24b=>{if('formatBlock'!=_0x39e24b['type']&&'formatInline'!=_0x39e24b['type'])return;const {data:_0x264e3c}=_0x39e24b;if(!_0x264e3c||'replaceImageSource'!=_0x264e3c['commandName'])return;return{'type':'format','content':o(_0x35a615,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x48beba{['afterInit'](){const _0x453dfb=this['editor'];if(!_0x453dfb['plugins']['has']('ImageStyleEditing'))return;const _0x242dc7=_0x453dfb['plugins']['get']('TrackChangesEditing'),_0x2c53e3=_0x453dfb['plugins']['get']('ImageUtils'),_0x42b03a={};_0x242dc7['enableCommand']('imageStyle',(_0x4676f5,_0x45574a)=>{const _0xdd1cde=_0x453dfb['plugins']['get']('Users')['me'],_0x324a71=_0x453dfb['commands']['get']('imageStyle');let _0x407e82=_0x2c53e3['getClosestSelectedImageElement'](_0x453dfb['model']['document']['selection']),_0x115edd=_0x453dfb['model']['createRangeOn'](_0x407e82),_0x2cf8c9=_0x324a71['value'];if(_0x2cf8c9==_0x45574a['value'])return;const _0x1debba={'commandName':'imageStyle','commandParams':[_0x45574a],'formatGroupId':_0x165ef7()};_0x453dfb['model']['change'](()=>{if(_0x242dc7['getSuggestions']()['filter'](_0x6810ae=>_0x6810ae['isInContent']&&_0xdd1cde==_0x6810ae['author']&&('formatBlock'==_0x6810ae['type']||'formatInline'==_0x6810ae['type'])&&('imageStylePreApply'==_0x6810ae['subType']||'imageStylePostApply'==_0x6810ae['subType'])&&_0x6810ae['getFirstRange']()['isEqual'](_0x115edd))['forEach'](_0x44f551=>_0x242dc7['discardSuggestion'](_0x44f551['head'])),_0x407e82=_0x2c53e3['getClosestSelectedImageElement'](_0x453dfb['model']['document']['selection']),_0x115edd=_0x453dfb['model']['createRangeOn'](_0x407e82),_0x324a71['refresh'](),_0x453dfb['commands']['get']('imageTypeInline')['refresh'](),_0x453dfb['commands']['get']('imageTypeBlock')['refresh'](),_0x2cf8c9=_0x324a71['value'],_0x2cf8c9!=_0x45574a['value'])return _0x2c53e3['isInlineImage'](_0x407e82)&&_0x324a71['shouldConvertImageType'](_0x45574a['value'],_0x407e82)?(_0x4676f5({..._0x45574a,'setImageSizes':!0x1}),_0x407e82=_0x2c53e3['getClosestSelectedImageElement'](_0x453dfb['model']['document']['selection']),void _0x242dc7['markBlockFormat'](_0x407e82,{..._0x1debba,'commandReversedParams':[{'value':_0x2cf8c9||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x2c53e3['isBlockImage'](_0x407e82)?_0x242dc7['markBlockFormat'](_0x407e82,_0x1debba,[],'imageStylePostApply'):_0x242dc7['markInlineFormat'](_0x115edd,_0x1debba,'imageStylePostApply'));});});for(const _0x3a2017 of _0x453dfb['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x42b03a[_0x3a2017['name']]=_0x3a2017['title']['toLowerCase']();_0x242dc7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x242dc7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x242dc7['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x242dc7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2dff37])=>{_0x2c53e3['setImageNaturalSizeAttributes'](_0x2dff37['getContainedElement']());}),_0x242dc7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x53cfad,_0x4cbe9)=>{_0x242dc7['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x53cfad,{'commandName':_0x4cbe9['commandName'],'commandParams':_0x4cbe9['commandReversedParams']});}),_0x242dc7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x53d86c,_0x329285){if(_0x2b7c7e(_0x53d86c,_0x329285))return[_0x53d86c,_0x329285];if(_0x2b7c7e(_0x329285,_0x53d86c))return[_0x329285,_0x53d86c];return null;});const _0x100e07=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2b7c7e(_0x18c03c,_0x41a137){const _0x4d08ef=_0x100e07['findIndex'](({type:_0x45e167,subType:_0x4dedcc})=>_0x18c03c['type']==_0x45e167&&_0x18c03c['subType']==_0x4dedcc),_0x563194=_0x100e07['findIndex'](({type:_0x5e87ee,subType:_0x51e710})=>_0x41a137['type']==_0x5e87ee&&_0x41a137['subType']==_0x51e710);if(_0x4d08ef<0x0||_0x563194<0x0)return!0x1;const _0x11effd=_0x18c03c['getFirstRange'](),_0x43a605=_0x41a137['getFirstRange']();if((0x0==_0x4d08ef||0x1==_0x4d08ef)&&0x2==_0x563194&&_0x11effd['isIntersecting'](_0x43a605))return!0x0;if(0x2==_0x4d08ef&&0x3==_0x563194){const _0x165d37=_0x242dc7['_findSuggestions'](_0x11effd,'insertion')['filter'](({suggestion:_0x57ecad,meta:_0x308e54})=>_0x308e54['isOwn']&&'convertInlineImageToBlock'==_0x57ecad['subType']);if(_0x165d37['length']>0x1&&_0x43a605['end']['isEqual'](_0x11effd['start']))return!0x0;if(0x1==_0x165d37['length']&&(_0x11effd['start']['isEqual'](_0x43a605['end'])||_0x11effd['end']['isEqual'](_0x43a605['start'])))return!0x0;}if(0x3==_0x4d08ef&&0x3==_0x563194&&_0x11effd['start']['isBefore'](_0x43a605['start'])){const _0x1811f8=_0x11effd['end']['nodeAfter'],_0x20712a=_0x43a605['start']['nodeBefore'];return _0x2c53e3['isBlockImage'](_0x1811f8)&&_0x1811f8===_0x20712a;}return!0x1;}_0x453dfb['model']['document']['registerPostFixer'](()=>{let _0x25720e=!0x1;const _0x4b6227=Array['from'](_0x453dfb['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5c79aa,data:_0x4c090e}of _0x4b6227){const {group:_0x47f4da,type:_0x3bac66,subType:_0x12210e,id:_0x1c8e00}=_0x242dc7['_splitMarkerName'](_0x5c79aa);if('suggestion'==_0x47f4da&&_0x242dc7['hasSuggestion'](_0x1c8e00)){if('formatBlock'==_0x3bac66&&('imageStylePreApply'==_0x12210e||'imageStylePostApply'==_0x12210e)){const _0x1979e5=_0x242dc7['getSuggestion'](_0x1c8e00);if(_0x4c090e['newRange']){const _0x4c0a24=_0x1979e5['getFirstRange']()['getContainedElement']();if(_0x2c53e3['isBlockImage'](_0x4c0a24))continue;_0x242dc7['discardSuggestion'](_0x1979e5),_0x25720e=!0x0;}}if('insertion'==_0x3bac66&&'imageCaption'==_0x12210e&&!_0x4c090e['newRange']){const _0x2c5015=_0x242dc7['getSuggestion'](_0x1c8e00);_0x2c5015['next']&&_0x2c5015['next']['isInContent']&&(_0x242dc7['discardSuggestion'](_0x2c5015['next']),_0x25720e=!0x0);}}}return _0x25720e;}),this['_registerLegacyDescription'](_0x42b03a);}['_registerLegacyDescription'](_0x3bd222){const _0x12e57d=this['editor'],_0x3e2471=_0x12e57d['locale'];_0x12e57d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x788c68=>{if('formatBlock'!=_0x788c68['type']&&'formatInline'!=_0x788c68['type'])return;const {data:_0x1abfd0}=_0x788c68;if(!_0x1abfd0||'imageStyle'!=_0x1abfd0['commandName'])return;const _0x5c350c=_0x1abfd0['commandParams'][0x0]['value'];return _0x574ac5('side'===_0x5c350c?o(_0x3e2471,'FORMAT_SIDE_IMAGE'):_0x3bd222[_0x5c350c]||_0x5c350c);function _0x574ac5(_0x351802){return{'type':'format','content':o(_0x3e2471,'*Format:*\x20%0',_0x351802)};}});}}class at extends _0x48beba{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x21f133){super(_0x21f133),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x95b5d2=this['editor'],_0x5a2b5b=_0x95b5d2['commands']['get']('importWord'),_0x451b1f=_0x95b5d2['commands']['get']('trackChanges');_0x5a2b5b&&(_0x5a2b5b['on']('execute',(_0x3e834a,[,_0x5ac29a])=>{this['_trackChangesValueDuringImport']=_0x451b1f['value'],_0x5ac29a['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x5a2b5b,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x5a2b5b,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x451b1f['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x95b5d2['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x5b48b8,_0xcd8f3){const {suggestions:_0x1dc2ef}=_0xcd8f3,_0x295c22=this['editor']['commands']['get']('trackChanges'),_0x5f1980=_0x295c22['value'];this['_trackChangesValueDuringImport']!==_0x5f1980&&(_0x295c22['execute'](),this['_trackChangesExecuted']=!0x0),_0x1dc2ef&&_0x1dc2ef['forEach'](({id:_0x44cee3,type:_0x49a028,author:_0x5b9ca4,created_at:_0x73318f})=>{const _0xbff285={'id':_0x44cee3,'type':_0x49a028,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x5b9ca4,'createdAt':_0x73318f?new Date(_0x73318f):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0xbff285);});}}class ct extends _0x48beba{['afterInit'](){const _0x19a15f=this['editor'],_0x3021ff=_0x19a15f['plugins']['get']('TrackChangesEditing');if(_0x19a15f['plugins']['has']('IndentEditing')&&(_0x3021ff['enableCommand']('indent'),_0x3021ff['enableCommand']('outdent')),_0x19a15f['plugins']['has']('IndentBlock')){for(const _0xbb87c3 of['indentBlock','outdentBlock'])_0x3021ff['enableDefaultAttributesIntegration'](_0xbb87c3);}const _0x95a8b3=_0x19a15f['locale'];_0x3021ff['registerBlockAttribute']('blockIndent'),_0x3021ff['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x95a8b3,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x280082=this['editor'],_0x5e7dc=_0x280082['locale'],_0x27f843=_0x280082['plugins']['get']('TrackChangesEditing');_0x27f843['descriptionFactory']['registerDescriptionCallback'](_0xc5f0e1=>{if('formatBlock'!=_0xc5f0e1['type'])return;const {data:_0x563a0e}=_0xc5f0e1;if(!_0x563a0e)return;if('indentBlock'!=_0x563a0e['commandName']&&'outdentBlock'!=_0x563a0e['commandName'])return;const _0x13a0ce=_0xc5f0e1['getItems']()[0x0],_0x209ae6=_0x27f843['descriptionFactory']['getItemLabel'](_0x13a0ce);return'indentBlock'==_0x563a0e['commandName']?{'type':'format','content':o(_0x5e7dc,'*Indent:*\x20%0',_0x209ae6)}:'outdentBlock'==_0x563a0e['commandName']?{'type':'format','content':o(_0x5e7dc,'*Outdent:*\x20%0',_0x209ae6)}:void 0x0;});}}class ut extends _0x48beba{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ft extends _0x48beba{['afterInit'](){const _0x560a02=this['editor'];if(!_0x560a02['plugins']['has']('LinkEditing'))return;const _0x25a176=_0x560a02['plugins']['get']('TrackChangesEditing'),_0x2fa549=_0x560a02['commands']['get']('link');_0x25a176['enableDefaultAttributesIntegration']('link'),_0x25a176['enableDefaultAttributesIntegration']('unlink'),_0x25a176['registerInlineAttribute']('linkHref');for(const _0x42664c of _0x2fa549['manualDecorators'])_0x25a176['registerInlineAttribute'](_0x42664c['id']),_0x25a176['descriptionFactory']['registerAttributeLabel'](_0x42664c['id'],'link\x20('+_0x42664c['label']['toLowerCase']()+')');_0x25a176['descriptionFactory']['registerDescriptionCallback'](_0x40e093=>{if('attribute'!=_0x40e093['type'])return;const {data:_0x405a79}=_0x40e093;if(!_0x405a79||'linkHref'!=_0x405a79['key'])return;const _0x25812a=_0x405a79['newValue'],_0x4d5df8=_0x560a02['locale'];return{'type':'format','content':null==_0x25812a?o(_0x4d5df8,'*Remove\x20link*'):o(_0x4d5df8,'*Set\x20link:*\x20%0','\x22'+_0x25812a+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3f4d90=this['editor'],_0x4c2a3a=_0x3f4d90['locale'];_0x3f4d90['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c7318=>{if('formatInline'!=_0x2c7318['type'])return;const {data:_0x283e85}=_0x2c7318;if(_0x283e85){if('link'==_0x283e85['commandName']){const _0xddae56=_0x283e85['commandParams'][0x0];return{'type':'format','content':o(_0x4c2a3a,'*Set\x20link:*\x20%0','\x22'+_0xddae56+'\x22')};}return'unlink'==_0x283e85['commandName']?{'type':'format','content':o(_0x4c2a3a,'*Remove\x20link*')}:void 0x0;}});}}class ht extends _0x48beba{['afterInit'](){const _0x1ad05d=this['editor'],_0x5d3fe8=_0x1ad05d['locale'];if(!_0x1ad05d['plugins']['has']('LegacyListEditing'))return;const _0x2a7e58=_0x1ad05d['plugins']['get']('TrackChangesEditing'),_0x398341=_0x1ad05d['plugins']['has']('LegacyTodoListEditing');function _0x3da558(_0x27a283){return()=>{const _0x47f1b1=_0x1ad05d['model']['document']['selection'],_0x2a7bbb=_0x1ad05d['commands']['get'](_0x27a283);if(_0x2a7bbb['value'])return void _0x1ad05d['execute']('paragraph',{});const _0x3d4ad9=_0x27a283['slice'](0x0,-0x4),_0x470430=function(_0x50fe96,_0x3fc8cf,_0x5cfc20){let _0xfdd5d7=Array['from'](_0x50fe96)['filter'](_0x4b534a=>function(_0x4af0fe,_0x5d5fea){return _0x5d5fea['checkChild'](_0x4af0fe['parent'],'listItem')&&!_0x5d5fea['isObject'](_0x4af0fe);}(_0x4b534a,_0x5cfc20));_0xfdd5d7=_0xfdd5d7['filter'](_0xafb085=>!_0xafb085['is']('element','listItem')||_0xafb085['getAttribute']('listType')!=_0x3fc8cf);const _0x46bbd8=new Set();for(const _0x6ece28 of _0xfdd5d7)_0x6ece28['is']('element','listItem')?_0x46bbd8['add'](Le(_0x6ece28)):_0x46bbd8['add'](_0x6ece28);return Array['from'](_0x46bbd8);}(_0x47f1b1['getSelectedBlocks'](),_0x3d4ad9,_0x1ad05d['model']['schema']);_0x1ad05d['model']['change'](()=>{for(const _0x2d56b0 of _0x470430)_0x2a7e58['markBlockFormat'](_0x2d56b0,{'commandName':_0x27a283,'commandParams':[{'forceValue':!_0x2a7bbb['value']}],'formatGroupId':'blockName'},Ee(_0x2d56b0));});};}function _0x4ec192(_0x2dfd37){return()=>{const _0x1c089b=function(_0x30832a){let _0x3226a7=Array['from'](_0x30832a);const _0x3919b6=_0x3226a7['findIndex'](_0x51a161=>'listItem'!=_0x51a161['name']);return _0x3919b6>-0x1&&(_0x3226a7=_0x3226a7['slice'](0x0,_0x3919b6)),_0x3226a7;}(_0x1ad05d['model']['document']['selection']['getSelectedBlocks']()),_0x18759d=_0x1ad05d['model']['createRange'](_0x1ad05d['model']['createPositionAt'](_0x1c089b[0x0],'before'),_0x1ad05d['model']['createPositionAt'](_0x1c089b[_0x1c089b['length']-0x1],'end'));_0x1ad05d['model']['change'](()=>{_0x2a7e58['markBlockFormat'](_0x18759d,{'commandName':_0x2dfd37,'commandParams':[],'formatGroupId':'listIndent'},function(_0x5434c8){const _0x52639c=new Set();for(const _0x2a16e7 of _0x5434c8){let _0x2a615a=_0x2a16e7['nextSibling'];for(;_0x2a615a&&_0x2a615a['getAttribute']('listIndent')>_0x2a16e7['getAttribute']('listIndent');)_0x52639c['add'](_0x2a615a),_0x2a615a=_0x2a615a['nextSibling'];}return Array['from'](_0x52639c);}(_0x1c089b));});};}_0x2a7e58['enableCommand']('numberedList',_0x3da558('numberedList')),_0x2a7e58['enableCommand']('bulletedList',_0x3da558('bulletedList')),_0x398341&&_0x2a7e58['enableCommand']('todoList',_0x3da558('todoList')),_0x2a7e58['enableCommand']('indentList',_0x4ec192('indentList')),_0x2a7e58['enableCommand']('outdentList',_0x4ec192('outdentList')),_0x398341&&_0x2a7e58['enableCommand']('checkTodoList',()=>{const _0x116a0c=_0x1ad05d['commands']['get']('checkTodoList'),_0x177217=Array['from'](_0x116a0c['_selectedElements']);_0x177217['filter'](_0x442aca=>_0x442aca['getAttribute']('todoListChecked')!=_0x116a0c['value']),_0x1ad05d['model']['change'](()=>{for(const _0x51299e of _0x177217)_0x2a7e58['markBlockFormat'](_0x51299e,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x116a0c['value']}]});});}),_0x2a7e58['descriptionFactory']['registerElementLabel']('listItem',_0x3102c8=>o(_0x5d3fe8,'ELEMENT_LIST_ITEM',_0x3102c8)),_0x2a7e58['descriptionFactory']['registerDescriptionCallback'](_0x28e756=>{if('formatBlock'!=_0x28e756['type']&&'formatInline'!=_0x28e756['type'])return;const {data:_0x4f6d01}=_0x28e756;if(_0x4f6d01){if('numberedList'==_0x4f6d01['commandName']||'bulletedList'==_0x4f6d01['commandName']||'todoList'==_0x4f6d01['commandName'])switch(_0x4f6d01['commandName']['replace']('List','')){case'bulleted':return _0x195ef9(o(_0x5d3fe8,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x195ef9(o(_0x5d3fe8,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x195ef9(o(_0x5d3fe8,'ELEMENT_TODO_LIST'));}if('indentList'==_0x4f6d01['commandName'])return{'type':'format','content':o(_0x5d3fe8,'*Indent:*\x20%0',o(_0x5d3fe8,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x4f6d01['commandName'])return{'type':'format','content':o(_0x5d3fe8,'*Outdent:*\x20%0',o(_0x5d3fe8,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x4f6d01['commandName'])return _0x4f6d01['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5d3fe8,'*Check\x20item*')}:{'type':'format','content':o(_0x5d3fe8,'*Uncheck\x20item*')};}function _0x195ef9(_0x4fb934){return{'type':'format','content':o(_0x5d3fe8,'*Change\x20to:*\x20%0',_0x4fb934)};}});}}function Le(_0x389cf8){const _0x31ee63=_0x389cf8['getAttribute']('listIndent');if(0x0==_0x31ee63)return _0x389cf8;let _0x385c84=_0x389cf8;for(;_0x389cf8['previousSibling']&&_0x389cf8['previousSibling']['is']('element','listItem');){const _0x3fb76d=_0x389cf8['previousSibling']['getAttribute']('listIndent');if(_0x3fb76d==_0x31ee63)_0x385c84=_0x389cf8['previousSibling'];else{if(_0x3fb76d<_0x31ee63)break;}_0x389cf8=_0x389cf8['previousSibling'];}return _0x385c84;}function Ee(_0x582fde){const _0x247130=[];if(_0x582fde['is']('element','listItem')&&_0x582fde['getAttribute']('listIndent')>0x0){let _0x2287f4=_0x582fde['nextSibling'];for(;_0x2287f4&&'listItem'==_0x2287f4['name']&&_0x2287f4['getAttribute']('listIndent')==_0x582fde['getAttribute']('listIndent');)_0x247130['push'](_0x2287f4),_0x2287f4=_0x2287f4['nextSibling'];}return _0x247130;}class gt extends _0x48beba{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x4d44b6=this['editor']['config']['get']('list.properties'),_0x20944f=this['editor']['plugins']['get']('TrackChangesEditing');_0x4d44b6['styles']&&_0x20944f['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x4d44b6['reversed']&&_0x20944f['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x4d44b6['startIndex']&&_0x20944f['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x20944f['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x91f0fc,_0x4fb095={}){const _0xf780ea=this['editor']['plugins']['get']('TrackChangesEditing'),_0x950b8d=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0xf780ea['markMultiRangeBlockFormat'](_0x950b8d,{'commandName':'listStyle','commandParams':[{'type':_0x4fb095['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x20c5f4,_0x833b1f={}){const _0x54d5ad=this['editor']['plugins']['get']('TrackChangesEditing'),_0x109a68=this['_getSuggestionBlocks'](_0x5bdad4=>_0x5bdad4['is']('element','listItem')&&'numbered'===_0x5bdad4['getAttribute']('listType'));if(_0x109a68['length']<0x1)return;const _0x4d98cf=_0x109a68['map'](_0x147d80=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x147d80,'before'),this['editor']['model']['createPositionAt'](_0x147d80,0x0)));this['editor']['model']['change'](()=>{_0x54d5ad['markMultiRangeBlockFormat'](_0x4d98cf,{'commandName':'listReversed','commandParams':[{'reversed':_0x833b1f['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x181d25,_0x1edba9={}){const _0x1af9cf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x986d24=this['_getSuggestionBlocks'](_0x3256e8=>_0x3256e8['is']('element','listItem')&&'numbered'===_0x3256e8['getAttribute']('listType'));if(_0x986d24['length']<0x1)return;const _0x552c2a=_0x986d24['map'](_0x362bcb=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x362bcb,'before'),this['editor']['model']['createPositionAt'](_0x362bcb,0x0)));this['editor']['model']['change'](()=>{_0x1af9cf['markMultiRangeBlockFormat'](_0x552c2a,{'commandName':'listStart','commandParams':[{'startIndex':_0x1edba9['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x51b1b3){if('formatBlock'!=_0x51b1b3['type']&&'formatInline'!=_0x51b1b3['type'])return;const _0x4c74d1=this['editor']['locale'],{data:_0x2a1059}=_0x51b1b3;if(!_0x2a1059)return;let _0xe0d7d6,_0x4983d6;switch(_0x2a1059['commandName']){case'listStyle':_0xe0d7d6='*Change\x20to:*\x20%0',_0x4983d6={'type':'format','content':o(_0x4c74d1,_0xe0d7d6,o(_0x4c74d1,this['_getTranslationKeyForListStyle'](_0x2a1059['commandParams'][0x0]['type'])))};break;case'listReversed':_0xe0d7d6=_0x2a1059['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4983d6={'type':'format','content':o(_0x4c74d1,_0xe0d7d6)};break;case'listStart':_0xe0d7d6='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4983d6={'type':'format','content':o(_0x4c74d1,_0xe0d7d6,_0x2a1059['commandParams'][0x0]['startIndex'])};}return _0x4983d6;}['_getSuggestionBlocksForListStyle'](){const _0x2ff8d6=this['editor']['plugins']['get']('LegacyListUtils');let _0x25dffc=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x25dffc[0x0]?.['is']('element','listItem')&&_0x25dffc['unshift'](..._0x2ff8d6['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x25dffc[_0x25dffc['length']-0x1]?.['is']('element','listItem')&&_0x25dffc['push'](..._0x2ff8d6['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x25dffc=[...new Set(_0x25dffc)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x25dffc=_0x25dffc['filter'](_0x5087ac=>_0x5087ac['is']('element','listItem'))),_0x25dffc;}['_getSuggestionBlocks'](_0x3cf988){const _0x87aff4=this['editor']['plugins']['get']('LegacyListUtils');let _0x49215b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3cf988)['map'](_0x40c6a5=>{const _0x388d2c=this['editor']['model']['createPositionAt'](_0x40c6a5,0x0);return[..._0x87aff4['getSiblingNodes'](_0x388d2c,'backward'),..._0x87aff4['getSiblingNodes'](_0x388d2c,'forward')];})['flat']();return _0x49215b=[...new Set(_0x49215b)],_0x49215b;}['_getTranslationKeyForListStyle'](_0x10d2f6){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x10d2f6)||'default')['toUpperCase']()+'_LIST_'+_0x10d2f6['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x48beba{['afterInit'](){const _0x4bdf12=this['editor'];if(!_0x4bdf12['plugins']['has']('MediaEmbedEditing'))return;const _0x44aa51=_0x4bdf12['plugins']['get']('TrackChangesEditing'),_0x101593=_0x4bdf12['locale'];_0x44aa51['enableCommand']('mediaEmbed'),_0x44aa51['descriptionFactory']['registerElementLabel']('media',_0x49149d=>o(_0x101593,'ELEMENT_MEDIA',_0x49149d)),_0x4bdf12['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4b769d,{writer:_0x33bbaf,options:_0x17fb47})=>{if(_0x17fb47['showSuggestionHighlights'])return _0x33bbaf['createEmptyElement']('div');},'converterPriority':'high'}),_0x4bdf12['data']['downcastDispatcher']['on']('attribute:url:media',(_0x1fbfc8,_0x447a6c,_0x4ebd48)=>{_0x4ebd48['options']['showSuggestionHighlights']&&_0x1fbfc8['stop']();},{'priority':'high'});}}class dt extends _0x48beba{['afterInit'](){const _0x529e22=this['editor'];_0x529e22['plugins']['has']('MentionEditing')&&_0x529e22['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class mt extends _0x48beba{['afterInit'](){const _0x3daade=this['editor'];if(!_0x3daade['plugins']['has']('MergeFieldsEditing'))return;const _0x41e815=_0x3daade['plugins']['get']('TrackChangesEditing'),_0x27e1dc=_0x3daade['locale'];_0x41e815['enableCommand']('insertMergeField'),_0x41e815['enableCommand']('insertMergeFieldBlock'),_0x41e815['enableCommand']('insertMergeFieldImage'),_0x41e815['descriptionFactory']['registerElementLabel']('mergeField',_0x1a2aeb=>o(_0x27e1dc,'ELEMENT_MERGE_FIELD',_0x1a2aeb)),_0x41e815['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0xf078aa=>o(_0x27e1dc,'ELEMENT_MERGE_FIELD',_0xf078aa)),_0x41e815['descriptionFactory']['registerDescriptionCallback'](_0x39c3fa=>{if('insertion'!=_0x39c3fa['type']&&'deletion'!=_0x39c3fa['type'])return;const _0x1fc959=_0x39c3fa['getContainedElement']();if(null==_0x1fc959)return;const _0x872933=_0x3daade['plugins']['get']('MergeFieldsEditing');let _0x42f130;switch(_0x872933['getMergeFieldType'](_0x1fc959)){case null:return;case'image':{const _0x48160c=_0x872933['unwrapAffixes'](_0x1fc959['getAttribute']('src'));_0x42f130=_0x872933['getLabel'](_0x48160c)||_0x48160c;break;}default:{const _0x36b73d=_0x1fc959['getAttribute']('id');_0x42f130=_0x872933['getLabel'](_0x36b73d)||_0x36b73d;break;}}return'insertion'==_0x39c3fa['type']?{'type':'insertion','content':o(_0x27e1dc,'*Insert:*\x20%0','\x22'+_0x42f130+'\x22\x20'+o(_0x27e1dc,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x27e1dc,'*Remove:*\x20%0','\x22'+_0x42f130+'\x22\x20'+o(_0x27e1dc,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x48beba{['afterInit'](){const _0x514600=this['editor'],_0x2133ac=_0x514600['plugins']['get']('TrackChangesEditing');_0x514600['plugins']['has']('MultiLevelList')&&(_0x2133ac['enableDefaultAttributesIntegration']('multiLevelList'),_0x2133ac['registerBlockAttribute']('listMarkerStyle'),_0x2133ac['descriptionFactory']['registerDescriptionCallback'](_0x54d7cd=>this['handleDescriptions'](_0x54d7cd)));}['handleDescriptions'](_0x4d9017){const _0xbe9d91=this['editor']['locale'],{data:_0x1f2d92}=_0x4d9017,_0x3b31bb={'type':'format','content':''};if(_0x1f2d92&&'listMarkerStyle'==_0x1f2d92['key']){if(!_0x1f2d92['oldValue'])return{'type':'format','content':o(_0xbe9d91,'*Set\x20format:*\x20%0',o(_0xbe9d91,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1f2d92['newValue']+')'};if(!_0x1f2d92['newValue']){let _0x40280b=_0x4d9017['head'];for(;_0x40280b;){if(_0x40280b['data']&&'listType'==_0x40280b['data']['key']&&_0x40280b['data']['newValue'])return _0x3b31bb;_0x40280b=_0x40280b['next'];}return{'type':'format','content':o(_0xbe9d91,'*Remove\x20format:*\x20%0',o(_0xbe9d91,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1f2d92['oldValue']+')'};}}}}class kt extends _0x48beba{['afterInit'](){const _0x2c5393=this['editor'];if(!_0x2c5393['plugins']['has']('PageBreakEditing'))return;_0x2c5393['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x682fd3=_0x2c5393['plugins']['get']('TrackChangesEditing'),_0x1977c2=_0x2c5393['locale'];_0x682fd3['descriptionFactory']['registerElementLabel']('pageBreak',_0x55a8f7=>o(_0x1977c2,'ELEMENT_PAGE_BREAK',_0x55a8f7));}}class wt extends _0x48beba{['afterInit'](){const _0x422d64=this['editor'];if(!_0x422d64['plugins']['has']('Paragraph'))return;const _0x291c1b=_0x422d64['locale'],_0x403234=_0x422d64['plugins']['get']('TrackChangesEditing');_0x403234['descriptionFactory']['registerElementLabel']('paragraph',_0x48a0ca=>o(_0x291c1b,'ELEMENT_PARAGRAPH',_0x48a0ca)),_0x403234['enableDefaultAttributesIntegration']('paragraph'),_0x403234['enableCommand']('insertParagraph'),_0x422d64['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x422d64),{'priority':'highest'}),_0x422d64['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3b90f1,_0x351a69,_0x2df93c)=>{_0x2df93c['options']['showSuggestionHighlights']&&nr(_0x422d64,{'showActiveMarker':!0x1})(_0x3b90f1,_0x351a69,_0x2df93c);},{'priority':'highest'});const _0x4c143d=_0x403234['descriptionFactory'];_0x4c143d['registerDescriptionCallback'](_0x265a00=>{if('insertion'!==_0x265a00['type'])return;const {start:_0x24a8a7,end:_0x2fbbf8}=_0x265a00['getFirstRange']();if(!_0x24a8a7['isTouching'](_0x2fbbf8)||!_0x24a8a7['nodeAfter'])return;const _0x2db86d=_0x422d64['model']['schema'],_0x1ff70e=_0x24a8a7['nodeAfter'];return _0x2db86d['isBlock'](_0x1ff70e)&&!_0x2db86d['isLimit'](_0x1ff70e)&&_0x2db86d['checkChild'](_0x1ff70e,'$text')?{'type':'insertion','content':o(_0x291c1b,'*Insert:*\x20%0',_0x4c143d['getItemLabel'](_0x1ff70e,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x39b819=this['editor'],_0x1deb44=_0x39b819['locale'];_0x39b819['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2484f3=>{if('formatBlock'!=_0x2484f3['type'])return;const {data:_0x2c9df8}=_0x2484f3;return _0x2c9df8&&'paragraph'==_0x2c9df8['commandName']?{'type':'format','content':o(_0x1deb44,'*Change\x20to:*\x20%0',o(_0x1deb44,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x47c2bc,{showActiveMarker:_0x26f520=!0x0}={}){return(_0x4e81cc,_0x23553f,_0x847f9e)=>{const _0x1ffc6b=_0x47c2bc['plugins']['get']('TrackChangesEditing'),_0x56e9b7=_0x23553f['markerRange']['start'],_0x2eee02=_0x23553f['markerRange']['end'],_0x3c7045=_0x47c2bc['model']['schema'];if(!_0x56e9b7['isTouching'](_0x2eee02)||!_0x56e9b7['nodeAfter'])return;const _0x5e4930=_0x56e9b7['nodeAfter'];if(_0x3c7045['isBlock'](_0x5e4930)&&!_0x3c7045['isLimit'](_0x5e4930)&&_0x3c7045['checkChild'](_0x5e4930,'$text')){if(!_0x847f9e['consumable']['consume'](_0x23553f['markerRange'],_0x4e81cc['name']))return;const {id:_0x1483ae,authorId:_0x35626a}=_0x1ffc6b['_splitMarkerName'](_0x23553f['markerName']),_0x2886ce=_0x847f9e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x1483ae,'data-author-id':_0x35626a}),_0x1058b5=_0x847f9e['mapper']['toViewPosition'](_0x2eee02);_0x26f520&&_0x1ffc6b['activeMarkers']['includes'](_0x23553f['markerName'])&&_0x847f9e['writer']['addClass']('ck-suggestion-marker--active',_0x2886ce),_0x847f9e['writer']['insert'](_0x1058b5,_0x2886ce),_0x847f9e['mapper']['bindElementToMarker'](_0x2886ce,_0x23553f['markerName']);}};}class bt extends _0x48beba{['afterInit'](){const _0x4c5527=this['editor'];_0x4c5527['commands']['get']('replaceSource')&&_0x4c5527['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class yt extends _0x48beba{['afterInit'](){const _0x18fe4f=this['editor'];if(!_0x18fe4f['plugins']['has']('RemoveFormatEditing'))return;_0x18fe4f['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e58cc=this['editor'];_0x2e58cc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3bf12a=>{if('formatBlock'!=_0x3bf12a['type']&&'formatInline'!=_0x3bf12a['type'])return;const {data:_0xce774f}=_0x3bf12a;return _0xce774f&&'removeFormat'==_0xce774f['commandName']?{'type':'format','content':o(_0x2e58cc['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class St extends _0x48beba{['afterInit'](){const _0x52fc31=this['editor'];if(!_0x52fc31['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x54d98f=_0x52fc31['plugins']['get']('TrackChangesEditing');_0x54d98f['enableCommand']('goToPreviousRestrictedEditingException'),_0x54d98f['enableCommand']('goToNextRestrictedEditingException');const _0x1bb6a3=_0x52fc31['plugins']['get']('RestrictedEditingModeEditing');_0x1bb6a3['enableCommand']('trackChanges'),_0x1bb6a3['enableCommand']('acceptSuggestion'),_0x1bb6a3['enableCommand']('discardSuggestion'),_0x1bb6a3['enableCommand']('acceptAllSuggestions'),_0x1bb6a3['enableCommand']('discardAllSuggestions'),_0x1bb6a3['enableCommand']('acceptSelectedSuggestions'),_0x1bb6a3['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x48beba{['afterInit'](){const _0x2c1ed4=this['editor'];if(!_0x2c1ed4['plugins']['has']('ShiftEnter'))return;const _0x40815f=_0x2c1ed4['plugins']['get']('TrackChangesEditing');_0x40815f['enableCommand']('shiftEnter'),_0x2c1ed4['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x2c1ed4),{'priority':'high'}),_0x2c1ed4['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x2c1ed4),{'priority':'high'}),_0x2c1ed4['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x29b078,_0x3a3ee9,_0x1562b3)=>{_0x1562b3['options']['showSuggestionHighlights']&&je(_0x2c1ed4,{'showActiveMarker':!0x1})(_0x29b078,_0x3a3ee9,_0x1562b3);}),_0x40815f['descriptionFactory']['registerElementLabel']('softBreak',_0x55437a=>o(_0x2c1ed4['locale'],'ELEMENT_LINE_BREAK',_0x55437a));}}function je(_0x4bb0b1,{showActiveMarker:_0x59c20f=!0x0}={}){return(_0x3d81b8,_0x53b365,_0x5f023d)=>{const _0x452062=_0x4bb0b1['plugins']['get']('TrackChangesEditing');if(!_0x5f023d['consumable']['test'](_0x53b365['markerRange'],_0x3d81b8['name']))return;const _0xf1e0e0=_0x4bb0b1['model'];for(const _0x480374 of _0x53b365['markerRange']['getItems']()){if(!_0x480374['is']('element','softBreak'))continue;const _0x50f2b0='deletion'==_0x53b365['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x409190,authorId:_0x51b995}=_0x452062['_splitMarkerName'](_0x53b365['markerName']),_0x2107a2=_0x5f023d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x50f2b0,'data-suggestion':_0x409190,'data-author-id':_0x51b995}),_0x4fe24f=_0x5f023d['mapper']['toViewPosition'](_0xf1e0e0['createPositionBefore'](_0x480374));_0x59c20f&&_0x452062['activeMarkers']['includes'](_0x53b365['markerName'])&&_0x5f023d['writer']['addClass']('ck-suggestion-marker--active',_0x2107a2),_0x5f023d['writer']['insert'](_0x4fe24f,_0x2107a2),_0x5f023d['mapper']['bindElementToMarker'](_0x2107a2,_0x53b365['markerName']);}};}class It extends _0x48beba{['afterInit'](){const _0xe49f6f=this['editor'],_0xe6d68c=_0xe49f6f['model'],_0x50efc3=_0xe49f6f['locale'];if(!_0xe49f6f['plugins']['has']('StandardEditingModeEditing'))return;const _0x5da75d=_0xe49f6f['plugins']['get']('TrackChangesEditing'),_0x15334b='restrictedEditingException',_0x49d63b=_0xe49f6f['commands']['get'](_0x15334b);_0x5da75d['enableCommand'](_0x15334b,(_0x9468a8,_0x57d15d={})=>{const _0x2b7678=_0xe6d68c['document']['selection'];if(_0x2b7678['isCollapsed'])return void _0x9468a8(_0x57d15d);const _0xe6e8ce=void 0x0!==_0x57d15d['forceValue']?_0x57d15d['forceValue']:!_0x49d63b['value'];_0xe6d68c['change'](()=>{const _0x5b3068=Array['from'](_0x2b7678['getRanges']());for(const _0xb76295 of _0x5b3068){const _0x4ec547=_0xe6e8ce?[_0xb76295]:io(_0x15334b,_0xb76295,_0xe6d68c);for(const _0x465fb7 of _0x4ec547)_0x5da75d['markInlineFormat'](_0x465fb7,{'commandName':_0x15334b,'commandParams':[{'forceValue':_0xe6e8ce}]});}});}),_0x5da75d['descriptionFactory']['registerDescriptionCallback'](_0x2d2d4e=>{if('formatBlock'!=_0x2d2d4e['type']&&'formatInline'!=_0x2d2d4e['type'])return;const {data:_0x147efa}=_0x2d2d4e;return _0x147efa&&_0x147efa['commandName']==_0x15334b?_0x147efa['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x50efc3,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x50efc3,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x48beba{['afterInit'](){const _0x17837e=this['editor'];if(!_0x17837e['plugins']['has']('Style')||!_0x17837e['plugins']['has']('DataSchema'))return;const _0x49ebf5=_0x17837e['plugins']['get']('TrackChangesEditing'),_0x1bbc04=_0x17837e['locale'],_0x1956c6=_0x17837e['config']['get']('style')||{},_0x44e82a=_0x17837e['plugins']['get']('GeneralHtmlSupport'),_0x448162=_0x17837e['plugins']['get']('StyleUtils')['normalizeConfig'](_0x17837e['plugins']['get']('DataSchema'),_0x1956c6['definitions']);_0x49ebf5['enableDefaultAttributesIntegration']('style');const _0x5f95cb=new Set();for(const _0x12599d of _0x448162['block']){const _0x140e74=_0x44e82a['getGhsAttributeNameForElement'](_0x12599d['element']);_0x5f95cb['add'](_0x140e74);}const _0x3d3432=new Set();for(const _0x1d6b95 of _0x448162['inline']){const _0x39867c=_0x44e82a['getGhsAttributeNameForElement'](_0x1d6b95['element']);_0x3d3432['add'](_0x39867c);for(const _0x2585cd of _0x1d6b95['ghsAttributes'])_0x3d3432['add'](_0x2585cd);}for(const _0x4044c3 of _0x5f95cb)_0x49ebf5['registerBlockAttribute'](_0x4044c3),_0x49ebf5['descriptionFactory']['registerAttributeLabel'](_0x4044c3,o(_0x1bbc04,'FORMAT_STYLE'));for(const _0x505840 of _0x3d3432)_0x49ebf5['registerInlineAttribute'](_0x505840),_0x49ebf5['descriptionFactory']['registerAttributeLabel'](_0x505840,o(_0x1bbc04,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x64030a=this['editor'],_0x4b55d3=_0x64030a['locale'];_0x64030a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5867e7=>{if('formatBlock'!=_0x5867e7['type']&&'formatInline'!=_0x5867e7['type'])return;const {data:_0x5c0505}=_0x5867e7;return _0x5c0505&&'style'===_0x5c0505['commandName']?_0x5c0505['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4b55d3,'*Set\x20format:*\x20%0',_0x5c0505['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x4b55d3,'*Remove\x20format:*\x20%0',_0x5c0505['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class _t extends _0x48beba{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0xaaa941){super(_0xaaa941),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x17113e=this['editor'],_0x374cb8=_0x17113e['model']['document']['selection'];if(!_0x17113e['plugins']['has']('TableEditing'))return;const _0x5bc52f=_0x17113e['locale'],_0x49de2e=_0x17113e['plugins']['get']('TrackChangesEditing'),_0x141a86=_0x17113e['plugins']['get']('TableUtils');_0x49de2e['descriptionFactory']['registerElementLabel']('table',_0x196c1b=>o(_0x5bc52f,'ELEMENT_TABLE',_0x196c1b)),this['_setupColumnsRowsFixing'](),_0x49de2e['enableCommand']('insertTable'),_0x49de2e['enableCommand']('selectTableRow'),_0x49de2e['enableCommand']('selectTableColumn');for(const _0x1eb642 of['insertTableRowAbove','insertTableRowBelow']){const _0x54dbf4=_0x17113e['commands']['get'](_0x1eb642);_0x49de2e['enableCommand'](_0x1eb642,_0x24b84a=>{_0x17113e['model']['change'](_0x2e5724=>{_0x24b84a();const _0x43a1d5='above'===_0x54dbf4['order'],_0x16f8db=_0x141a86['getSelectionAffectedTableCells'](_0x374cb8),_0x617c65=_0x141a86['getRowIndexes'](_0x16f8db),_0x78e8af=_0x43a1d5?_0x617c65['first']-0x1:_0x617c65['last']+0x1,_0x2d3c64=_0x16f8db[0x0]['findAncestor']('table'),_0x4157ad=_0x141a86['createTableWalker'](_0x2d3c64,{'startRow':_0x78e8af,'endRow':_0x78e8af}),_0x2d1706=Array['from'](_0x4157ad)['map'](_0xdc2190=>_0x2e5724['createRangeOn'](_0xdc2190['cell']));_0x49de2e['markMultiRangeInsertion'](_0x2d1706,'tableRow');});});}for(const _0x3bba8e of['insertTableColumnLeft','insertTableColumnRight']){const _0x18c104=_0x17113e['commands']['get'](_0x3bba8e);_0x49de2e['enableCommand'](_0x3bba8e,_0x4a7e59=>{_0x17113e['model']['change'](_0x4fc496=>{_0x4a7e59();const _0x455af5='left'===_0x18c104['order'],_0x1d8650=_0x141a86['getSelectionAffectedTableCells'](_0x374cb8),_0x357f74=_0x141a86['getColumnIndexes'](_0x1d8650),_0x310e5b=_0x455af5?_0x357f74['first']-0x1:_0x357f74['last']+0x1,_0x244aa5=_0x1d8650[0x0]['findAncestor']('table'),_0x209f83=_0x141a86['createTableWalker'](_0x244aa5,{'startRow':0x0,'column':_0x310e5b,'includeAllSlots':!0x1}),_0x27e209=Array['from'](_0x209f83)['map'](_0x1ef4db=>_0x4fc496['createRangeOn'](_0x1ef4db['cell']));_0x49de2e['markMultiRangeInsertion'](_0x27e209,'tableColumn');});});}for(const _0x401e4b of['removeTableRow','removeTableColumn']){const _0x3534d9=_0x401e4b['substr'](0xb),_0x6e24a3=_0x3534d9['toLowerCase'](),_0x5b64cc=_0x6e24a3['substr'](0x0,0x3)+'span',_0x1a77eb='table'+_0x3534d9,_0x428d9a='min'+_0x3534d9,_0x43b24c='max'+_0x3534d9;_0x49de2e['enableCommand'](_0x401e4b,()=>{_0x17113e['model']['change'](_0x561fa2=>{const _0x2d26c2=_0x141a86['getSelectionAffectedTableCells'](_0x374cb8),_0x166fb1=_0x2d26c2[0x0]['findAncestor']('table');let _0x11c595;if('removeTableRow'==_0x401e4b){const _0x459ff6=_0x141a86['getRowIndexes'](_0x2d26c2);_0x11c595={'startRow':_0x459ff6['first'],'endRow':_0x459ff6['last'],'includeAllSlots':!0x0};}else{const _0x5b8cdb=_0x141a86['getColumnIndexes'](_0x2d26c2);_0x11c595={'startColumn':_0x5b8cdb['first'],'endColumn':_0x5b8cdb['last'],'includeAllSlots':!0x0};}const _0x262d68=_0x141a86['createTableWalker'](_0x166fb1,_0x11c595),_0x4fa036=Array['from'](_0x262d68)['map'](({cell:_0x14785e})=>_0x14785e),_0x57e622=Ne(_0x4fa036['filter'](_0xd60f3f=>_0xd60f3f['hasAttribute'](_0x5b64cc))),_0x55b0dd=Ne(_0x4fa036['filter'](_0x4cf9e2=>!_0x4cf9e2['hasAttribute'](_0x5b64cc)))['map'](_0x2d479d=>_0x561fa2['createRangeOn'](_0x2d479d)),_0x571866=_0x49de2e['markMultiRangeDeletion'](_0x55b0dd,_0x1a77eb);if(_0x571866&&('tableRow'==_0x571866['subType']||'tableColumn'==_0x571866['subType'])){const _0x5a27cb=this['_getSuggestionCoords'](_0x571866);for(const _0x5edbe3 of _0x57e622){const _0x52e029=_0x561fa2['createRangeOn'](_0x5edbe3),_0x391a99=_0x141a86['getCellLocation'](_0x5edbe3),_0x360010=_0x5edbe3['getAttribute'](_0x5b64cc)-0x1,_0x1809c7=_0x5a27cb[_0x428d9a],_0x2ac18a=_0x5a27cb[_0x43b24c];_0x1809c7<=_0x391a99[_0x6e24a3]&&_0x391a99[_0x6e24a3]+_0x360010<=_0x2ac18a&&_0x571866['addRange'](_0x52e029);}}});});}function _0x398af3(_0x5f72ef){const _0x3f65ef=Array['from'](_0x374cb8['getRanges']())['map'](_0x34a99b=>_0x246516['fromRange'](_0x34a99b));_0x17113e['model']['change'](_0x2aac9f=>{const _0x34f1d6=_0x2aac9f['batch'];_0x5f72ef=_0x5f72ef['filter'](_0x1c23f0=>'$graveyard'!=_0x1c23f0['root']['rootName']),_0x2aac9f['setSelection'](_0x5f72ef),_0x17113e['commands']['get']('removeTableRow')['refresh'](),_0x17113e['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x17113e['model']['enqueueChange'](()=>{_0x17113e['model']['enqueueChange'](_0x34f1d6,_0x35c196=>{const _0x10abb1=_0x3f65ef['filter'](_0x1d64eb=>'$graveyard'!=_0x1d64eb['root']['rootName']);_0x10abb1['length']>0x0&&_0x35c196['setSelection'](_0x10abb1);for(const _0x43cdfe of _0x3f65ef)_0x43cdfe['detach']();});});});}function _0x55515d(_0xb735ee){_0x17113e['model']['change'](_0x3030f8=>{const _0x31b87c=Array['from'](_0x374cb8['getRanges']())['map'](_0x7aef6c=>_0x246516['fromRange'](_0x7aef6c)),_0x446d1d=[];for(const _0x5bdcc8 of _0xb735ee)for(const _0x384adc of _0x5bdcc8['getItems']({'shallow':!0x0}))_0x446d1d['push'](_0x384adc);for(const _0x1e8900 of _0x446d1d)'$graveyard'!=_0x1e8900['root']['rootName']&&(_0x3030f8['setSelection'](_0x3030f8['createPositionAt'](_0x1e8900,0x0)),_0x17113e['commands']['get']('removeTableColumn')['refresh'](),_0x17113e['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x27ed8a=_0x31b87c['filter'](_0x30b651=>'$graveyard'!=_0x30b651['root']['rootName']);_0x27ed8a['length']>0x0&&_0x3030f8['setSelection'](_0x27ed8a);for(const _0x8a658c of _0x31b87c)_0x8a658c['detach']();});}function _0xfda9f5(_0x11ea37,_0x4c7880){return _0x4c7880['every'](_0x569c50=>_0x11ea37['some'](_0x2ac234=>_0x2ac234['end']['isEqual'](_0x569c50['start'])||_0x569c50['end']['isEqual'](_0x2ac234['start'])));}function _0x413f69(_0x3c7a43,_0x1afb1f){return!_0x3c7a43['some'](_0x91d7c4=>_0x1afb1f['some'](_0x2960be=>_0x91d7c4['isIntersecting'](_0x2960be)))&&_0x3c7a43['some'](_0x544552=>_0x1afb1f['some'](_0x5ca94b=>_0x544552['end']['isTouching'](_0x5ca94b['start'])));}_0x17113e['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x368a11,_0x2e0950,_0x212b8c)=>{if(!_0x212b8c['options']['showSuggestionHighlights'])return;const _0x4ddd46=_0x2e0950['item'];if(!_0x4ddd46||!_0x4ddd46['is']('element','tableCell'))return;const _0x477faa=_0x212b8c['mapper']['toViewElement'](_0x4ddd46);if(_0x477faa){const {id:_0x49f6e1,authorId:_0x279c82}=_0x49de2e['_splitMarkerName'](_0x2e0950['markerName']);_0x4e5bda(_0x477faa,_0x212b8c['writer'],(_0x2f9bc6,_0xc169a8,_0xcb3c4d)=>{_0xcb3c4d['addClass'](_0x3846ac(_0xc169a8['classes']),_0x2f9bc6),_0xcb3c4d['setAttribute']('data-suggestion-id',_0x49f6e1,_0x2f9bc6),_0xcb3c4d['setAttribute']('data-author-id',_0x279c82,_0x2f9bc6);},(_0x335590,_0x3f8bc4,_0x527f99)=>{_0x527f99['removeClass'](_0x3846ac(_0x3f8bc4['classes']),_0x335590),_0x527f99['removeAttribute']('data-suggestion-id',_0x335590),_0x527f99['removeAttribute']('data-author-id',_0x335590);});}},{'priority':'highest'}),_0x49de2e['descriptionFactory']['registerDescriptionCallback'](_0x5bba9e=>{if('insertion'!=_0x5bba9e['type']&&'deletion'!=_0x5bba9e['type'])return;const _0x1fc42e=_0x5bba9e['getContainedElement']();if(null!=_0x1fc42e&&_0x1fc42e['is']('element','table')){if('insertion'==_0x5bba9e['type']){const _0x3f0a84=_0x5bba9e['getItems']()['filter'](_0x3b7c62=>_0x3b7c62['is']('$textProxy'))['map'](_0x2b15b9=>_0x2b15b9['data']);if(_0x3f0a84['length'])return{'type':'insertion','content':o(_0x5bc52f,'*Insert:*\x20%0',o(_0x5bc52f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3f0a84['join']('\x20')+'\x22'))};}if('deletion'==_0x5bba9e['type']){const _0x2920e9=_0x5bba9e['getItems']()['filter'](_0x47a29a=>_0x47a29a['is']('$textProxy'))['map'](_0xe394ad=>_0xe394ad['data']);if(_0x2920e9['length'])return{'type':'deletion','content':o(_0x5bc52f,'*Remove:*\x20%0',o(_0x5bc52f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2920e9['join']('\x20')+'\x22'))};}}}),_0x49de2e['descriptionFactory']['registerDescriptionCallback'](_0xfb43d9=>{if('tableRow'==_0xfb43d9['subType']){const _0x3c1aa5=_0xfb43d9['getItems']()['filter'](_0x18b0ca=>_0x18b0ca['is']('$textProxy'))['map'](_0x2ea66e=>_0x2ea66e['data']),_0x3b3b33=this['_getSuggestionCoords'](_0xfb43d9),_0x3a8de2=_0x3b3b33['maxRow']-_0x3b3b33['minRow']+0x1;if('insertion'==_0xfb43d9['type'])return _0x3c1aa5['length']?{'type':'insertion','content':o(_0x5bc52f,'*Insert:*\x20%0',o(_0x5bc52f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3a8de2,'\x22'+_0x3c1aa5['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5bc52f,'*Insert:*\x20%0',o(_0x5bc52f,'ELEMENT_TABLE_ROW',_0x3a8de2))};if('deletion'==_0xfb43d9['type'])return _0x3c1aa5['length']?{'type':'deletion','content':o(_0x5bc52f,'*Remove:*\x20%0',o(_0x5bc52f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3a8de2,'\x22'+_0x3c1aa5['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5bc52f,'*Remove:*\x20%0',o(_0x5bc52f,'ELEMENT_TABLE_ROW',_0x3a8de2))};}if('tableColumn'==_0xfb43d9['subType']){const _0x2b8bcd=_0xfb43d9['getItems']()['filter'](_0x138199=>_0x138199['is']('$textProxy'))['map'](_0x5d8b61=>_0x5d8b61['data']),_0x1cb97c=this['_getSuggestionCoords'](_0xfb43d9),_0x474693=_0x1cb97c['maxColumn']-_0x1cb97c['minColumn']+0x1;if('insertion'==_0xfb43d9['type'])return _0x2b8bcd['length']?{'type':'insertion','content':o(_0x5bc52f,'*Insert:*\x20%0',o(_0x5bc52f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x474693,'\x22'+_0x2b8bcd['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5bc52f,'*Insert:*\x20%0',o(_0x5bc52f,'ELEMENT_TABLE_COLUMN',_0x474693))};if('deletion'==_0xfb43d9['type'])return _0x2b8bcd['length']?{'type':'deletion','content':o(_0x5bc52f,'*Remove:*\x20%0',o(_0x5bc52f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x474693,'\x22'+_0x2b8bcd['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5bc52f,'*Remove:*\x20%0',o(_0x5bc52f,'ELEMENT_TABLE_COLUMN',_0x474693))};}}),_0x49de2e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x398af3),_0x49de2e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x398af3),_0x49de2e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x55515d),_0x49de2e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x55515d),_0x49de2e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0xfda9f5),_0x49de2e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0xfda9f5),_0x49de2e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x413f69),_0x49de2e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x413f69);}['_acceptFormatSuggestionCallbackFactory'](){const _0x1b0446=this['editor'],_0x2bb8f8=_0x1b0446['model']['document']['selection'];return(_0x540f9f,_0x476a63)=>{_0x1b0446['model']['change'](_0x3ccb28=>{const {commandName:_0x338a9a,commandParams:_0xcbdfc2}=_0x476a63;let _0x41b693=_0x540f9f[0x0]['end']['nodeBefore'];_0xcbdfc2&&_0xcbdfc2[0x0]&&!0x1===_0xcbdfc2[0x0]['forceValue']&&(_0x41b693=_0x540f9f[0x0]['start']['nodeAfter']);const _0x5261d1=_0x3ccb28['createRangeIn'](_0x41b693);if('$graveyard'==_0x5261d1['root']['rootName'])return;const _0x1e294e=Array['from'](_0x2bb8f8['getRanges']())['map'](_0x45e9e4=>_0x246516['fromRange'](_0x45e9e4));_0x3ccb28['setSelection'](_0x5261d1),_0x1b0446['commands']['get'](_0x338a9a)['refresh'](),_0xcbdfc2['push']({'forceDefaultExecution':!0x0}),_0x1b0446['execute'](_0x338a9a,..._0xcbdfc2);const _0x2ef657=_0x1e294e['filter'](_0x2c7252=>'$graveyard'!=_0x2c7252['root']['rootName']);_0x2ef657['length']>0x0&&_0x3ccb28['setSelection'](_0x2ef657);for(const _0x4c6153 of _0x1e294e)_0x4c6153['detach']();});};}['_getCoordsForCells'](_0x56e409){const _0x2f377e=this['editor']['plugins']['get']('TableUtils');let _0x3631c7=Number['MAX_SAFE_INTEGER'],_0x2d1345=Number['MIN_SAFE_INTEGER'],_0x464bbd=Number['MAX_SAFE_INTEGER'],_0x1a2eaf=Number['MIN_SAFE_INTEGER'];for(const _0xce88e8 of _0x56e409){if('$graveyard'==_0xce88e8['root']['rootName'])continue;const {row:_0x3ee376,column:_0x59729c}=_0x2f377e['getCellLocation'](_0xce88e8),_0xc69ad3=_0xce88e8['hasAttribute']('rowspan')?_0xce88e8['getAttribute']('rowspan')-0x1:0x0,_0x13d7eb=_0xce88e8['hasAttribute']('colspan')?_0xce88e8['getAttribute']('colspan')-0x1:0x0;_0x3631c7=_0x3ee376<_0x3631c7?_0x3ee376:_0x3631c7,_0x2d1345=_0x3ee376+_0xc69ad3>_0x2d1345?_0x3ee376+_0xc69ad3:_0x2d1345,_0x464bbd=_0x59729c<_0x464bbd?_0x59729c:_0x464bbd,_0x1a2eaf=_0x59729c+_0x13d7eb>_0x1a2eaf?_0x59729c+_0x13d7eb:_0x1a2eaf;}return{'minRow':_0x3631c7,'maxRow':_0x2d1345,'minColumn':_0x464bbd,'maxColumn':_0x1a2eaf};}['_setupColumnsRowsFixing'](){const _0x38cedf=this['editor'],_0x4b10a8=_0x38cedf['plugins']['get']('TrackChangesEditing'),_0xcc3beb=_0x38cedf['plugins']['get']('TableUtils');_0x38cedf['model']['document']['on']('change:data',()=>{const _0x545fb2=Array['from'](_0x38cedf['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x23565b,data:_0x294b58}of _0x545fb2){const {group:_0x28355f,id:_0x2e5d3a,subType:_0x8cbd07}=_0x4b10a8['_splitMarkerName'](_0x23565b);if('suggestion'!=_0x28355f)continue;if(null!=_0x294b58['oldRange'])continue;const _0x64a15d=_0x4b10a8['getSuggestion'](_0x2e5d3a);this['_tablePostFixingSubtypes']['includes'](_0x8cbd07)&&this['_tableSuggestions']['add'](_0x64a15d);}},{'priority':'low'});const _0x37b12c=(_0x1bd596,_0xc4b060)=>{let _0x49e3d8=!0x1;const _0x58c687=_0xc4b060['createRangeOn'](_0x1bd596),_0xf41d7e=_0x1bd596['findAncestor']('table'),_0x378e62=_0xcc3beb['getCellLocation'](_0x1bd596);for(const _0x4ab2ed of this['_tableSuggestions']){const _0x1d6579=_0x4ab2ed['subType'],_0x53396f=_0x1d6579['startsWith']('tablePaste'),_0xaf3c65=_0x1d6579['substr'](_0x53396f?0xa:0x5),_0x59c0ab=_0xaf3c65['toLowerCase'](),_0x355327=_0x59c0ab['substr'](0x0,0x3)+'span',_0x3fa84f='min'+_0xaf3c65,_0x139f6c='max'+_0xaf3c65;if(!_0x4ab2ed['isInContent'])continue;if(_0xf41d7e!=_0x4ab2ed['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4ab2ed['isIntersectingWithRange'](_0x58c687))continue;const _0x11f2fa=_0x1bd596['hasAttribute'](_0x355327)?_0x1bd596['getAttribute'](_0x355327)-0x1:0x0,_0xb2272b=this['_getSuggestionCoords'](_0x4ab2ed),_0x4bf349=_0xb2272b[_0x3fa84f],_0xab5901=_0xb2272b[_0x139f6c];_0x4bf349<=_0x378e62[_0x59c0ab]&&_0x378e62[_0x59c0ab]+_0x11f2fa<=_0xab5901&&(_0x4ab2ed['addRange'](_0x58c687),_0x49e3d8=!0x0);}return _0x49e3d8;};_0x38cedf['model']['document']['registerPostFixer'](_0x7248c5=>{let _0x1edb68=!0x1;for(const _0x363bbc of _0x38cedf['model']['document']['differ']['getChanges']())if('insert'==_0x363bbc['type']){if('tableRow'==_0x363bbc['name']){for(const _0x1ee3d7 of _0x363bbc['position']['nodeAfter']['getChildren']())_0x1edb68=_0x1edb68||_0x37b12c(_0x1ee3d7,_0x7248c5);}else'tableCell'==_0x363bbc['name']&&(_0x1edb68=_0x1edb68||_0x37b12c(_0x363bbc['position']['nodeAfter'],_0x7248c5));}return _0x1edb68;});}['_getSuggestionCoords'](_0x2bdb21){return this['_getCoordsForCells'](_0x2bdb21['getRanges']()['map'](_0x3e6bb5=>_0x3e6bb5['start']['nodeAfter']));}}function Ne(_0x2f022d){return Array['from'](new Set(_0x2f022d)['values']());}class Ct extends _0x48beba{static get['requires'](){return[_t];}['afterInit'](){const _0x387ae9=this['editor'],_0x55990e=_0x387ae9['model']['document']['selection'],_0x3ac020=_0x387ae9['locale'];if(!_0x387ae9['plugins']['has']('TableEditing'))return;const _0x185495=_0x387ae9['plugins']['get']('TrackChangesEditing'),_0x2e718a=_0x387ae9['plugins']['get']('TableUtils'),_0x48d6db=_0x387ae9['plugins']['get'](_t);_0x48d6db['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x185495['enableCommand']('mergeTableCells',()=>{const _0x10bb1a=_0x2e718a['getSelectionAffectedTableCells'](_0x387ae9['model']['document']['selection']);_0x387ae9['model']['change'](()=>{_0x185495['markMultiRangeBlockFormat'](_0x10bb1a,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x387ae9['commands']['get']('mergeTableCells')['on']('execute',(_0x156d32,_0x45c5ac)=>{_0x387ae9['commands']['get']('trackChanges')['value']&&(_0x45c5ac['length']>0x0&&_0x45c5ac[_0x45c5ac['length']-0x1]&&_0x45c5ac[_0x45c5ac['length']-0x1]['forceDefaultExecution']||_0x185495['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x156d32['stop']());},{'priority':'highest'});for(const _0x2da29a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x430f72=_0x387ae9['commands']['get'](_0x2da29a);_0x185495['enableCommand'](_0x2da29a,()=>{const _0x57bdef=_0x387ae9['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x38b4dc=>_0x38b4dc['is']('element','tableCell')),_0x31b844=_0x430f72['value'];_0x387ae9['model']['change'](()=>{_0x185495['markMultiRangeBlockFormat']([_0x57bdef,_0x31b844],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x128543 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x405f7d=_0x387ae9['commands']['get'](_0x128543);_0x185495['enableCommand'](_0x128543,()=>{const _0x1c9ffe=_0x2e718a['getSelectionAffectedTableCells'](_0x387ae9['model']['document']['selection'])[0x0],_0x16a9e5=_0x1c9ffe['findAncestor']('table'),{column:_0x378b67,row:_0x3ded2a}=_0x2e718a['getCellLocation'](_0x1c9ffe);let _0x2834dd=[];if('horizontally'==_0x405f7d['direction']){const _0x124a88=_0x2e718a['createTableWalker'](_0x16a9e5,{'startRow':_0x3ded2a,'endRow':_0x3ded2a,'includeAllSlots':!0x0});_0x2834dd=Array['from'](_0x124a88)['map'](_0x58d5dd=>_0x58d5dd['cell']);}else{const _0x3883ba=_0x2e718a['createTableWalker'](_0x16a9e5,{'column':_0x378b67,'includeAllSlots':!0x0});_0x2834dd=Array['from'](_0x3883ba)['map'](_0x183da5=>_0x183da5['cell']);}_0x387ae9['model']['change'](_0x1d229f=>{_0x185495['markBlockFormat'](_0x1d229f['createRangeOn'](_0x1c9ffe),{'commandName':_0x128543,'commandParams':[]},_0x2834dd,_0x128543);});});}_0x185495['descriptionFactory']['registerDescriptionCallback'](_0x421e86=>{if('formatBlock'!=_0x421e86['type']&&'formatInline'!=_0x421e86['type'])return;const {data:_0x1a5a52}=_0x421e86;return _0x1a5a52&&'mergeTableCells'==_0x1a5a52['commandName']?{'type':'format','content':o(_0x3ac020,'*Merge\x20cells*')}:void 0x0;}),_0x185495['descriptionFactory']['registerDescriptionCallback'](_0x58f50e=>{if('formatBlock'!=_0x58f50e['type']&&'formatInline'!=_0x58f50e['type'])return;const {data:_0x1a0d6b}=_0x58f50e;return _0x1a0d6b?'splitTableCellVertically'==_0x1a0d6b['commandName']?{'type':'format','content':o(_0x3ac020,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1a0d6b['commandName']?{'type':'format','content':o(_0x3ac020,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x524568=_0x48d6db['_acceptFormatSuggestionCallbackFactory']();for(const _0x408740 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x185495['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x408740,'accept',_0x524568);for(const _0x5b5cd2 of['splitTableCellVertically','splitTableCellHorizontally'])_0x185495['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5b5cd2,'accept',_0x524568);_0x185495['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x1846eb=>{_0x387ae9['model']['change'](_0x89a93=>{const _0x4f3fe2=Array['from'](_0x55990e['getRanges']())['map'](_0x26317a=>_0x246516['fromRange'](_0x26317a));_0x89a93['setSelection'](_0x1846eb),_0x387ae9['commands']['get']('mergeTableCells')['refresh'](),_0x387ae9['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x4f50ac=_0x4f3fe2['filter'](_0x22f06c=>'$graveyard'!=_0x22f06c['root']['rootName']);_0x4f50ac['length']>0x0&&_0x89a93['setSelection'](_0x4f50ac);for(const _0x530ffa of _0x4f3fe2)_0x530ffa['detach']();});});for(const _0x45d293 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2747f9=_0x387ae9['commands']['get'](_0x45d293);_0x2747f9['on']('set:isEnabled',(_0x31206a,_0x4285e7,_0x1a6a1f)=>{if(_0x1a6a1f){const _0x497e4b=_0x387ae9['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2f6947=>_0x2f6947['is']('element','tableCell'));this['_areMergableCells'](_0x2747f9['value'],_0x497e4b)||(_0x31206a['return']=!0x1,_0x31206a['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x56c4ae=this['editor']['commands']['get']('mergeTableCells'),_0x24606b=this['editor']['plugins']['get']('TableUtils');if(!_0x56c4ae['isEnabled'])return!0x1;const _0x5dd804=_0x24606b['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x31876b of _0x5dd804)for(const _0x1b5afa of _0x5dd804)if(_0x31876b!=_0x1b5afa&&!this['_areMergableCells'](_0x31876b,_0x1b5afa))return!0x1;return!0x0;}['_areMergableCells'](_0x35e3aa,_0x2327c4){const _0x550d19=this['editor']['plugins']['get']('TrackChangesEditing'),_0x236f4b=this['editor']['model']['createRangeOn'](_0x35e3aa),_0x2c6d00=this['editor']['model']['createRangeOn'](_0x2327c4),_0x4ca1c8=new Set(),_0x538790=new Set();for(const _0x33c654 of _0x550d19['getSuggestions']())if(('insertion'==_0x33c654['type']||'deletion'==_0x33c654['type']||'mergeTableCells'==_0x33c654['subType'])&&_0x33c654['isInContent']){for(const _0xaa5d2 of _0x33c654['getRanges']())_0xaa5d2['containsRange'](_0x236f4b,!0x0)&&_0x4ca1c8['add'](_0x33c654['type']+':'+_0x33c654['author']['id']),_0xaa5d2['containsRange'](_0x2c6d00,!0x0)&&_0x538790['add'](_0x33c654['type']+':'+_0x33c654['author']['id']);}if(_0x4ca1c8['size']!=_0x538790['size'])return!0x1;for(const _0x41d3f2 of _0x4ca1c8)if(!_0x538790['has'](_0x41d3f2))return!0x1;return!0x0;}}class vt extends _0x48beba{static get['requires'](){return[_t];}['afterInit'](){const _0x16bbdb=this['editor'];if(!_0x16bbdb['plugins']['has']('TableEditing'))return;const _0x42d436=_0x16bbdb['locale'],_0x4aee97=_0x16bbdb['plugins']['get']('TrackChangesEditing');_0x4aee97['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x4aee97['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x4aee97['registerBlockAttribute']('headingRows'),_0x4aee97['registerBlockAttribute']('headingColumns'),_0x4aee97['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x42d436,'FORMAT_HEADER_ROW')),_0x4aee97['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x42d436,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x59c730=this['editor']['plugins']['get']('TrackChangesEditing'),_0x39bba1=this['editor']['plugins']['get']('TableUtils'),_0x4b1cba=this['editor']['plugins']['get'](_t)['_acceptFormatSuggestionCallbackFactory']();function _0x12fe51({showActiveMarker:_0x461510=!0x0,setDataAttribute:_0x5d19ed=!0x0}={}){return(_0x118b51,_0x332209,_0x4275ef)=>{const {type:_0x443229,id:_0x5a6f93}=_0x59c730['_splitMarkerName'](_0x332209['markerName']),_0x43bf63=_0x59c730['getSuggestion'](_0x5a6f93),_0x48f2b4=_0x43bf63['data'];if('formatBlock'!=_0x43bf63['type']||!_0x48f2b4||'setTableColumnHeader'!=_0x48f2b4['commandName'])return;if(_0x332209['item'])return void _0x118b51['stop']();if(!_0x4275ef['consumable']['consume'](_0x332209['markerRange'],_0x118b51['name']))return;const _0x5c57f4=_0x332209['markerRange']['start']['nodeAfter'],_0x5eaa79=_0x332209['markerRange']['end']['nodeBefore'],_0x264bae=_0x5c57f4['parent']['parent'],{column:_0x406075}=_0x39bba1['getCellLocation'](_0x5c57f4),{column:_0x215cc5}=_0x39bba1['getCellLocation'](_0x5eaa79);for(let _0x58de2e=_0x406075;_0x58de2e<=_0x215cc5;_0x58de2e++){const _0xc855a9=_0x39bba1['createTableWalker'](_0x264bae,{'column':_0x58de2e,'includeAllSlots':!0x1});for(const _0x441c49 of _0xc855a9){const _0x143fce=_0x441c49['cell'],_0x347189=_0x4275ef['mapper']['toViewElement'](_0x143fce);_0x4275ef['writer']['addClass']('ck-suggestion-marker-'+_0x443229,_0x347189),_0x5d19ed&&_0x4275ef['writer']['setAttribute']('data-suggestion',_0x5a6f93,_0x347189),_0x4275ef['mapper']['bindElementToMarker'](_0x347189,_0x332209['markerName']),_0x461510&&(_0x59c730['activeMarkers']['includes'](_0x332209['markerName'])?_0x4275ef['writer']['addClass']('ck-suggestion-marker--active',_0x347189):_0x4275ef['writer']['removeClass']('ck-suggestion-marker--active',_0x347189));}}};}_0x59c730['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4b1cba),_0x59c730['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4b1cba),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x12fe51(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5c10f1,_0x56b49f,_0x34b85b)=>{_0x34b85b['options']['showSuggestionHighlights']&&_0x12fe51({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5c10f1,_0x56b49f,_0x34b85b);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x5453dc,_0x3d46c6,_0x2ec195)=>{const {type:_0x5e90a9,id:_0x187225}=_0x59c730['_splitMarkerName'](_0x3d46c6['markerName']),_0x1a5a69=_0x59c730['getSuggestion'](_0x187225),_0x229633=_0x1a5a69['data'];if('formatBlock'!=_0x1a5a69['type']||!_0x229633||'setTableColumnHeader'!=_0x229633['commandName'])return;const _0x473aaf=_0x2ec195['mapper']['markerNameToElements'](_0x3d46c6['markerName']);if(_0x473aaf){for(const _0x29cbe8 of _0x473aaf)_0x2ec195['writer']['removeClass']('ck-suggestion-marker-'+_0x5e90a9,_0x29cbe8),_0x2ec195['writer']['removeClass']('ck-suggestion-marker--active',_0x29cbe8),_0x2ec195['writer']['removeAttribute']('data-suggestion',_0x29cbe8),_0x2ec195['mapper']['unbindElementFromMarkerName'](_0x29cbe8,_0x3d46c6['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d63b2=this['editor'],_0x2988f0=_0x5d63b2['locale'];function _0x478075(_0x8c9e95){return{'type':'format','content':o(_0x2988f0,'*Format:*\x20%0',_0x8c9e95)};}_0x5d63b2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2d87a9=>{if('formatBlock'!=_0x2d87a9['type'])return;const {data:_0x483b26}=_0x2d87a9;if(_0x483b26){if('setTableRowHeader'==_0x483b26['commandName']){const _0x3712a0=_0x483b26['commandParams'][0x0]['forceValue'];return _0x478075(o(_0x2988f0,_0x3712a0?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x483b26['commandName']){const _0x27302f=_0x483b26['commandParams'][0x0]['forceValue'];return _0x478075(o(_0x2988f0,_0x27302f?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Nt extends _0x48beba{['afterInit'](){const _0x2ae6af=this['editor'],_0x1c33f1=_0x2ae6af['locale'],_0x2d5eff=_0x2ae6af['plugins']['get']('TrackChangesEditing');function _0x3ce21d(_0x212464){return{'type':'format','content':''+o(_0x1c33f1,'*Set\x20table\x20type:*\x20%0',_0x212464)};}_0x2ae6af['plugins']['has']('TableLayout')&&(_0x2d5eff['enableCommand']('insertTableLayout'),_0x2d5eff['enableDefaultAttributesIntegration']('tableType'),_0x2d5eff['registerBlockAttribute']('tableType'),_0x2d5eff['descriptionFactory']['registerElementLabel'](_0x6de93a=>_0x6de93a['is']('element','table')&&'layout'===_0x6de93a['getAttribute']('tableType'),_0x582d71=>o(_0x1c33f1,'ELEMENT_LAYOUT_TABLE',_0x582d71)),_0x2d5eff['descriptionFactory']['registerDescriptionCallback'](_0x456ba3=>{const {data:_0x4d989f}=_0x456ba3;if(_0x4d989f&&'tableType'==_0x4d989f['key'])switch(_0x4d989f['newValue']){case'layout':return _0x3ce21d(o(_0x1c33f1,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x3ce21d(o(_0x1c33f1,'ELEMENT_CONTENT_TABLE'));}}));}}const xe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Oe=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](xe['map'](_0x875578=>[_0x875578,null]));class Dt extends _0x48beba{static get['requires'](){return[_t];}['afterInit'](){const _0xd82244=this['editor'];if(!_0xd82244['plugins']['has']('TableClipboard'))return;const _0x31ec3b=_0xd82244['plugins']['get']('TrackChangesEditing'),_0xab9694=_0xd82244['plugins']['get']('TableUtils'),_0x7a8c8c=_0xd82244['plugins']['get'](_t),_0x4a32cb=_0xd82244['plugins']['get']('TableClipboard'),_0xaf1342=_0xd82244['plugins']['get']('TableSelection'),_0x156e19=_0xd82244['plugins']['get'](_0x111d6d);_0x7a8c8c['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0xd82244['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0xd82244['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x220d26=null,_0x39dda3=!0x1;_0x156e19['on']('contentInsertion',(_0x2bf196,_0x5922eb)=>{_0x39dda3='paste'===_0x5922eb['method'];}),_0xd82244['model']['on']('insertContent',(_0x247a6d,_0x2577c6)=>{if(!_0x39dda3&&null===_0xaf1342['getSelectedTableCells']())return;const [_0x5867b7,_0x2090b9]=_0x2577c6,_0x5086bb=_0x2577c6[_0x2577c6['length']-0x1];_0x5086bb&&_0x5086bb['forceDefaultExecution']||_0x31ec3b['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x51feaf,_0x1f0ddf,_0x21a42b,_0x23dbad,_0x133fe8){if(_0x1f0ddf&&!_0x1f0ddf['is']('documentSelection'))return!0x1;const _0x54d8d0=_0x133fe8['getTableIfOnlyTableInContent'](_0x51feaf,_0x21a42b);if(!_0x54d8d0||!De(_0x54d8d0,void 0x0,_0x23dbad))return!0x1;const _0x540398=_0x23dbad['getSelectionAffectedTableCells'](_0x21a42b['document']['selection']);if(!_0x540398['length'])return!0x1;const _0x481d13=_0x540398[0x0]['findAncestor']('table'),_0x11b88e=_0x23dbad['getRowIndexes'](_0x540398),_0x3b5f84=_0x23dbad['getColumnIndexes'](_0x540398),_0x33064b={'startRow':_0x11b88e['first'],'endRow':_0x11b88e['last'],'startColumn':_0x3b5f84['first'],'endColumn':_0x3b5f84['last']};return 0x1==_0x540398['length']&&(_0x33064b['endRow']+=_0x23dbad['getRows'](_0x54d8d0)-0x1,_0x33064b['endColumn']+=_0x23dbad['getColumns'](_0x54d8d0)-0x1),De(_0x481d13,_0x33064b,_0x23dbad);}(_0x5867b7,_0x2090b9,_0xd82244['model'],_0xab9694,_0x4a32cb)&&(_0x247a6d['stop'](),_0x220d26={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xd82244['model']['change'](()=>{_0xd82244['model']['insertContent'](_0x2577c6[0x0],_0x2577c6[0x1],_0x2577c6[0x2],{'forceDefaultExecution':!0x0});const _0x1dcb3f=_0x165ef7(),{rowInsertionRanges:_0x3183bb,columnInsertionRanges:_0x28a14f,insertionRanges:_0x48c717,deletionRanges:_0x247887,cells:_0x3d19cc}=_0x220d26;_0x3183bb['length']&&_0x31ec3b['markMultiRangeInsertion'](_0x3183bb,'tablePasteRow',{'tablePasteChainId':_0x1dcb3f}),_0x28a14f['length']&&_0x31ec3b['markMultiRangeInsertion'](_0x28a14f,'tablePasteColumn',{'tablePasteChainId':_0x1dcb3f}),_0x48c717['length']&&(_0x31ec3b['markMultiRangeInsertion'](_0x48c717,'tablePaste',{'tablePasteChainId':_0x1dcb3f,'skipNestingCheck':!0x0}),_0x48c717['forEach'](_0x4a08a8=>_0x4a08a8['detach']?.())),_0x247887['length']&&(_0x31ec3b['markMultiRangeDeletion'](_0x247887,'tablePaste',{'tablePasteChainId':_0x1dcb3f,'skipNestingCheck':!0x0}),_0x247887['forEach'](_0x4289b4=>_0x4289b4['detach']?.()));const _0x2f998e=_0x31ec3b['markMultiRangeBlockFormat'](_0x3d19cc['map'](({element:_0x515b07})=>_0x515b07),{'formatGroupId':_0x165ef7()},[],'tablePasteCell',{'tablePasteChainId':_0x1dcb3f});if(_0x2f998e){const _0x40b760=_0x2f998e['getMarkers'](),_0xe49faf=[];for(const {element:_0x529b07,attributes:_0x458c39}of _0x3d19cc){if(!_0x458c39)continue;const _0x58028a=_0xd82244['model']['createRangeOn'](_0x529b07),_0x4bacec=_0x40b760['find'](_0x2a7b02=>_0x2a7b02['getRange']()['isEqual'](_0x58028a));_0x4bacec&&_0xe49faf['push']([_0x4bacec['name'],_0x458c39]);}_0xe49faf['length']&&_0x2f998e['setAttribute']('markerAttributes',Object['fromEntries'](_0xe49faf));}_0x220d26=null;}));},{'priority':_0xe29e00['high']+0xa}),_0x156e19['on']('contentInsertion',()=>{_0x39dda3=!0x1;},{'priority':'lowest'}),_0xd82244['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0xbb8d9a,_0x289193)=>{const [_0x1a4d0e,_0x1bd786,,_0x90bd79]=_0x289193;if(!_0x220d26)return;_0xbb8d9a['stop']();const _0x2621af=_0x1a4d0e['cell'],_0x20720c=_0x1bd786,_0x26fbd6=Ue(_0x2621af),_0x267f29=Ue(_0x20720c);_0xbb8d9a['return']=_0x2621af;let _0x5b1970=null,_0x2f4503=null;if(_0x267f29||_0x26fbd6){if(_0x26fbd6&&!_0x267f29){_0x90bd79['remove'](_0x2621af['getChild'](0x0));for(const _0x2bcfd2 of Array['from'](_0x20720c['getChildren']()))_0x90bd79['insert'](_0x2bcfd2,_0x2621af,'end');const _0x6aad66=_0x220d26['rowInsertionIndexes']['includes'](_0x1a4d0e['row']),_0x2fa4af=_0x220d26['columnInsertionIndexes']['includes'](_0x1a4d0e['column']);_0x6aad66||_0x2fa4af||(_0x5b1970=_0x246516['fromRange'](_0x90bd79['createRangeIn'](_0x2621af)));}else _0x267f29&&!_0x26fbd6&&(_0x2f4503=_0x90bd79['createRangeIn'](_0x2621af));}else{const _0x23336b=_0x90bd79['createElement']('tableCellSuggestion'),_0x4c0b63=_0x90bd79['createElement']('tableCellSuggestion');_0x90bd79['wrap'](_0x90bd79['createRangeIn'](_0x2621af),_0x4c0b63),_0x90bd79['insert'](_0x23336b,_0x2621af,0x0);for(const _0x422715 of Array['from'](_0x20720c['getChildren']()))_0x90bd79['insert'](_0x422715,_0x23336b,'end');_0x5b1970=_0x246516['fromRange'](_0x90bd79['createRangeOn'](_0x23336b)),_0x2f4503=_0x246516['fromRange'](_0x90bd79['createRangeOn'](_0x4c0b63));}const _0x18e0c3=Array['from'](_0x20720c['getAttributes']())['filter'](([_0x28e146])=>xe['includes'](_0x28e146));_0x220d26['cells']['push']({'element':_0x2621af,'attributes':_0x18e0c3['length']?Object['fromEntries'](_0x18e0c3):null}),_0x5b1970&&_0x220d26['insertionRanges']['push'](_0x5b1970),_0x2f4503&&_0x220d26['deletionRanges']['push'](_0x2f4503);},{'priority':'high'}),_0xab9694['on']('insertColumns',(_0x5638ec,_0x3d7185)=>{const [_0xff5925,_0x577077={}]=_0x3d7185;if(!_0x220d26)return;const _0x27b73e=_0x577077['at']||0x0,_0x4bc829=_0x577077['columns']||0x1;_0x220d26['columnInsertionIndexes']=new Array(_0x4bc829)['fill'](_0x27b73e)['map']((_0x42197,_0x4cb6ca)=>_0x42197+_0x4cb6ca);for(const {cell:_0x2e4be9}of _0xab9694['createTableWalker'](_0xff5925,{'startColumn':_0x27b73e,'endColumn':_0x27b73e+_0x4bc829-0x1}))_0x220d26['columnInsertionRanges']['push'](_0xd82244['model']['createRangeOn'](_0x2e4be9));},{'priority':'low'}),_0xab9694['on']('insertRows',(_0x2b60e8,_0x52c8ce)=>{const [_0xb30c9b,_0xc297bb={}]=_0x52c8ce;if(!_0x220d26)return;const _0x38f102=_0xc297bb['at']||0x0,_0x4650f7=_0xc297bb['rows']||0x1;_0x220d26['rowInsertionIndexes']=new Array(_0x4650f7)['fill'](_0x38f102)['map']((_0x3a7d1b,_0x48f9be)=>_0x3a7d1b+_0x48f9be);for(const {cell:_0x28c210}of _0xab9694['createTableWalker'](_0xb30c9b,{'startRow':_0x38f102,'endRow':_0x38f102+_0x4650f7-0x1}))_0x220d26['rowInsertionRanges']['push'](_0xd82244['model']['createRangeOn'](_0x28c210));},{'priority':'low'}),_0x31ec3b['descriptionFactory']['registerDescriptionCallback'](_0x20ef06=>{if(_0x20ef06['subType']&&_0x20ef06['subType']['startsWith']('tablePaste'))return _0x20ef06['previous']?{}:{'type':'insertion','content':o(_0xd82244['locale'],'*Replace\x20table\x20cells*')};});const _0x459c37=()=>!0x1;for(const _0x2433b8 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x31ec3b['_suggestionFactory']['registerCustomCallback']('insertion',_0x2433b8,'join',_0x459c37),_0x31ec3b['_suggestionFactory']['registerCustomCallback']('deletion',_0x2433b8,'join',_0x459c37),_0x31ec3b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2433b8,'join',_0x459c37);_0x31ec3b['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x459c37),_0x31ec3b['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x1f92a0,_0x36f79c,_0x4111de)=>{const _0xc68375=_0x1f92a0['map'](_0xb591b5=>_0xb591b5['getContainedElement']())['filter'](_0x3d5d03=>_0x3d5d03),_0x39fa28=new Map(_0xc68375['map'](_0x37ccee=>[_0x37ccee,null]));if(_0x220d26){for(const {element:_0x4e36fa,attributes:_0x1c72a8}of _0x220d26['cells'])_0x1c72a8&&_0x39fa28['set'](_0x4e36fa,_0x1c72a8);}else{if(_0x4111de&&_0x4111de['markerAttributes'])for(const [_0x34b86f,_0x41699d]of Object['entries'](_0x4111de['markerAttributes'])){const _0x2ba787=_0xd82244['model']['markers']['get'](_0x34b86f),_0x2f5f7e=_0x2ba787?_0x2ba787['getRange']()['getContainedElement']():null;_0x2f5f7e&&_0x39fa28['set'](_0x2f5f7e,_0x41699d);}}_0xd82244['model']['change'](_0x187894=>{for(const [_0x20c3e3,_0x3c942e]of _0x39fa28)_0x187894['setAttributes']({...Oe,..._0x3c942e},_0x20c3e3);});});const _0x491b68=(_0x3e699f,_0x46eb9d)=>{_0x31ec3b['_suggestionFactory']['registerCustomCallback'](_0x3e699f,'tablePaste',_0x46eb9d,(_0x54bc0c,_0x1b9061,_0x59d53f)=>{_0xd82244['model']['change'](_0x1a2e75=>{const _0x3e1f1e=[];for(const _0x115c49 of _0x54bc0c){const _0x94672f=_0x115c49['start']['nodeAfter'];_0x94672f['is']('element','tableCellSuggestion')&&_0x3e1f1e['push'](_0x94672f);}_0x31ec3b['_suggestionFactory']['getSuggestionCallback'](_0x3e699f,null,_0x46eb9d)(_0x54bc0c,_0x1b9061,_0x59d53f);for(const _0x4994eb of _0x3e1f1e)'$graveyard'!=_0x4994eb['root']['rootName']&&_0x1a2e75['unwrap'](_0x4994eb);});});};_0x491b68('insertion','accept'),_0x491b68('insertion','discard'),_0x491b68('deletion','accept'),_0x491b68('deletion','discard'),_0x31ec3b['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x16a34f=>{const _0x2f289a=_0x16a34f['map'](_0x37e5c3=>_0x37e5c3['getContainedElement']()),_0x66698=_0x2f289a[0x0]['findAncestor']('table'),{minRow:_0x1e0c64,maxRow:_0x39218e}=_0x7a8c8c['_getCoordsForCells'](_0x2f289a);_0xab9694['removeRows'](_0x66698,{'at':_0x1e0c64,'rows':_0x39218e-_0x1e0c64+0x1});}),_0x31ec3b['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0xe5c02d=>{const _0x4f7e3e=_0xe5c02d['map'](_0x312d46=>_0x312d46['getContainedElement']()),_0x1061a9=_0x4f7e3e[0x0]['findAncestor']('table'),{minColumn:_0x5909db,maxColumn:_0x1748c1}=_0x7a8c8c['_getCoordsForCells'](_0x4f7e3e);_0xab9694['removeColumns'](_0x1061a9,{'at':_0x5909db,'columns':_0x1748c1-_0x5909db+0x1});});const _0x4255cc=(_0x38dbd9,_0x1744ff)=>{if(!_0x1744ff['subType']||!_0x1744ff['subType']['startsWith']('tablePaste'))return;const _0xc0544a=_0x1744ff['attributes']['tablePasteChainId'],_0xb217c9=_0x31ec3b['getSuggestions']()['filter'](_0x1aadbd=>_0x1aadbd['isInContent']&&_0x1aadbd['attributes']&&_0x1aadbd['attributes']['tablePasteChainId']==_0xc0544a);_0xb217c9['length']&&_0x1744ff['getAllAdjacentSuggestions']()['length']!=_0xb217c9['length']&&_0xb217c9['reduce']((_0xafb1bb,_0x401400)=>(_0xafb1bb['next']=_0x401400,_0x401400['previous']=_0xafb1bb,_0x401400));};function _0x412ebf(_0xa9b9e6,_0x270ffb=!0x0){const {id:_0xf51844,authorId:_0xaa2133}=_0x31ec3b['_splitMarkerName'](_0xa9b9e6['markerName']),_0x13fadf=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4ccfd7=_0x31ec3b['activeMarkers']['includes'](_0xa9b9e6['markerName']);return _0x4ccfd7&&_0x13fadf['push']('ck-suggestion-marker--active'),{'classes':_0x13fadf,'attributes':{'data-suggestion':_0xf51844,'data-author-id':_0xaa2133},'priority':_0x4ccfd7&&_0x270ffb?0xbc2:0xbb8};}_0x31ec3b['on']('suggestionLoaded',_0x4255cc,{'priority':'high'}),_0x31ec3b['on']('suggestionUnloaded',_0x4255cc,{'priority':'high'}),_0xd82244['model']['document']['registerPostFixer'](()=>{let _0x420dba=!0x1;const _0x3cc09e=Array['from'](_0xd82244['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2e5c84,data:_0x2cd8e5}of _0x3cc09e){const {group:_0x35b6a5,type:_0x4ddb59,id:_0x131b20}=_0x31ec3b['_splitMarkerName'](_0x2e5c84);if('suggestion'!=_0x35b6a5||'deletion'!=_0x4ddb59||_0x2cd8e5['oldRange'])continue;if(!_0x31ec3b['hasSuggestion'](_0x131b20))continue;const _0x753c8f=_0x31ec3b['getSuggestion'](_0x131b20)['getRanges'](),_0x381849=_0xd82244['plugins']['get']('Users')['me'];for(const _0x1d667 of _0x31ec3b['getSuggestions']()){if(!_0x1d667['isInContent']||_0x1d667['author']!=_0x381849)continue;if('formatBlock'!=_0x1d667['type']||'tablePasteCell'!=_0x1d667['subType'])continue;if(_0x1d667['getRanges']()['every'](_0x16ce5d=>_0x753c8f['some'](_0x102c3a=>_0x102c3a['containsRange'](_0x16ce5d,!0x0)))){for(const _0x130f49 of _0x1d667['getAllAdjacentSuggestions']())_0x130f49['isInContent']&&(_0x130f49['discard'](),_0x420dba=!0x0);}}}return _0x420dba;}),_0xd82244['model']['document']['registerPostFixer'](_0x3a5c19=>{const _0xdeebc2=_0xd82244['commands']['get']('redo');if(!_0xdeebc2||!_0xdeebc2['_createdBatches']['has'](_0x3a5c19['batch']))return!0x1;let _0x201831=!0x1;const _0x1b36bf=_0xd82244['plugins']['get']('Users')['me'],_0x305d2e=_0xd82244['model']['document']['differ']['getChanges'](),_0x16ca22=Array['from'](_0xd82244['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x231504,data:_0x16e51e})=>{const {group:_0x4544e5,subType:_0x5d840c,authorId:_0x2d7f79}=_0x31ec3b['_splitMarkerName'](_0x231504);return'suggestion'==_0x4544e5&&'tablePaste'==_0x5d840c&&_0x2d7f79==_0x1b36bf['id']&&!_0x16e51e['oldRange'];});for(const _0x3ebd74 of _0x305d2e){if('insert'!=_0x3ebd74['type']||'tableCellSuggestion'!=_0x3ebd74['name']||0x1!=_0x3ebd74['length'])continue;const _0x3b343f=_0x3a5c19['createRange'](_0x3ebd74['position'],_0x3ebd74['position']['getShiftedBy'](0x1));if(!_0x16ca22['find'](({data:_0x1e8323})=>_0x1e8323['newRange']['isEqual'](_0x3b343f))){for(const {name:_0x4610dd,data:_0x506b1e}of _0x16ca22)if(_0x3b343f['containsRange'](_0x506b1e['newRange'])){_0x3a5c19['updateMarker'](_0x4610dd,{'range':_0x3b343f}),_0x201831=!0x0;break;}}}return _0x201831;}),_0xd82244['model']['document']['registerPostFixer'](_0x2039a4=>{let _0x25d0d8=!0x1;const _0xe64929=_0xd82244['plugins']['get']('Users')['me'],_0x49fe09=_0x31ec3b['getSuggestions']()['filter'](_0x58aeed=>_0x58aeed['isInContent']&&_0x58aeed['author']==_0xe64929),_0x2fecde=new Set(),_0x1fd832=new Set();for(const _0x26ce12 of _0x49fe09)if('tablePaste'==_0x26ce12['subType'])for(const _0x2a1d73 of _0x26ce12['getMarkers']()){const _0x2d898b=_0x2a1d73['getRange']()['getContainedElement']();if(_0x2d898b){if(_0x2d898b['is']('element','tableCellSuggestion')&&Ue(_0x2d898b)){_0x26ce12['removeMarker'](_0x2a1d73['name']),_0x2fecde['add'](_0x2d898b),_0x25d0d8=!0x0;const _0x574406=_0x2d898b['nextSibling'],_0x1d0b95=_0x2d898b['previousSibling'],_0x58064f=_0x574406&&_0x574406['is']('element','tableCellSuggestion'),_0x22b469=_0x1d0b95&&_0x1d0b95['is']('element','tableCellSuggestion');_0x58064f&&!_0x2fecde['has'](_0x574406)&&_0x1fd832['add'](_0x574406),_0x22b469&&!_0x2fecde['has'](_0x1d0b95)&&_0x1fd832['add'](_0x1d0b95);}else _0x2d898b['is']('element','paragraph')&&_0x2d898b['isEmpty']&&(_0x26ce12['removeMarker'](_0x2a1d73['name']),_0x25d0d8=!0x0);}}else{if('tablePasteCell'==_0x26ce12['subType']){if(!_0x26ce12['attributes']||!_0x26ce12['attributes']['tablePasteChainId'])continue;const _0x3fcf32=_0x26ce12['attributes']['markerAttributes'];if(_0x3fcf32&&Object['keys'](_0x3fcf32)['length'])continue;const _0x856ead=_0x26ce12['attributes']['tablePasteChainId'];let _0x2b2860=!0x0,_0x2921c6=!0x0;for(const _0x7de3e3 of _0x49fe09)if(_0x7de3e3['subType']&&_0x7de3e3['subType']['startsWith']('tablePaste')){if(!_0x7de3e3['attributes']['tablePasteChainId']){_0x2921c6=!0x1;break;}if(_0x7de3e3['id']!=_0x26ce12['id']&&_0x7de3e3['attributes']['tablePasteChainId']==_0x856ead){_0x2b2860=!0x1;break;}}_0x2921c6&&_0x2b2860&&(_0x26ce12['removeMarkers'](),_0x25d0d8=!0x0);}}for(const _0x1f8d86 of _0x2fecde)_0x2039a4['remove'](_0x1f8d86);for(const _0x315fb7 of _0x1fd832)_0x2039a4['unwrap'](_0x315fb7);return _0x25d0d8;}),_0xd82244['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x8a7c63=>_0x412ebf(_0x8a7c63),'converterPriority':'high'}),_0xd82244['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x145808,_0x3b7892)=>_0x3b7892['options']['showSuggestionHighlights']?_0x412ebf(_0x145808,!0x1):null,'converterPriority':'high'});const _0x16005d=_0xd82244['editing']['view'];this['listenTo'](_0x16005d['document'],'clipboardOutput',(_0xcaf59b,_0x5a9017)=>{const _0x16d9fd=[];for(const _0xadf06a of _0x16005d['createRangeIn'](_0x5a9017['content'])['getItems']())_0xadf06a['is']('element','suggestion-td')&&_0x16d9fd['push'](_0xadf06a);_0x16005d['change'](_0x500900=>{for(const _0x83204 of _0x16d9fd)_0x500900['move'](_0x500900['createRangeIn'](_0x83204),_0x500900['createPositionBefore'](_0x83204)),_0x500900['remove'](_0x83204);});});}}function Ue(_0x4d9243){if(_0x4d9243['isEmpty'])return!0x0;const _0x340959=_0x4d9243['getChild'](0x0);return _0x340959['is']('element','paragraph')&&_0x340959['isEmpty'];}function De(_0x1cb89a,_0x1f38ba={},_0x8abc71){for(const {isAnchor:_0xcec468,cellHeight:_0x28181b,cellWidth:_0x32efa0}of _0x8abc71['createTableWalker'](_0x1cb89a,{'includeAllSlots':!0x0,..._0x1f38ba}))if(!_0xcec468||0x1!=_0x28181b||0x1!=_0x32efa0)return!0x1;return!0x0;}class Mt extends _0x48beba{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x3c6004=this['editor']['plugins']['get']('TrackChangesEditing');_0x3c6004['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x3c6004['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x3c6004['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3c6004['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x3c6004['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x3c6004['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x57bfea,_0x5d4878){const _0x4a1b79=this['editor']['plugins']['get']('TrackChangesEditing'),_0x495706=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x13c2fa=_0x5d4878['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0xa9c82d=_0x495706['getColumnGroupElement'](_0x13c2fa);let _0x4af029=_0xa9c82d?_0x495706['getTableColumnsWidths'](_0xa9c82d):null,_0x4ba920=_0x13c2fa['getAttribute']('tableWidth')||null;const _0x570d7a=_0x5d4878['tableWidth']||_0x4ba920,_0x38d255=_0x5d4878['columnWidths']||_0x4af029,_0x29e90c=this['editor']['plugins']['get']('Users')['me'];for(const _0x2708f0 of _0x4a1b79['getSuggestions']()){const _0x5c5e0d=_0x2708f0['getContainedElement']();if('resizeTable'===_0x2708f0['subType']&&_0x5c5e0d===_0x13c2fa){_0x2708f0['author']!==_0x29e90c&&_0x2708f0['discard']();const _0x5152a5=_0x2708f0['data']['commandParams'];_0x4ba920=_0x5152a5[0x0]['tableWidth'],_0x4af029=_0x5152a5[0x0]['columnWidths'];break;}}_0x57bfea({'table':_0x13c2fa,'tableWidth':_0x570d7a,'columnWidths':_0x38d255}),_0x4a1b79['markBlockFormat'](_0x13c2fa,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x4ba920,'columnWidths':_0x4af029}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x17d2ce){if('formatBlock'!=_0x17d2ce['type']&&'formatInline'!=_0x17d2ce['type'])return;const {data:_0x4e7717}=_0x17d2ce;if(_0x4e7717&&'resizeTable'===_0x4e7717['formatGroupId']){const _0x31c4f3='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x31c4f3)};}}}class $t extends _0x48beba{['afterInit'](){const _0xdbfe39=this['editor'];_0xdbfe39['plugins']['has']('Template')&&_0xdbfe39['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Bt extends _0x48beba{['afterInit'](){const _0x24d76f=this['editor'];if(!_0x24d76f['commands']['get']('insertTableOfContents'))return;_0x24d76f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x2bbbfd=_0x24d76f['plugins']['get']('TrackChangesEditing'),_0x23dc50=_0x24d76f['locale'];_0x2bbbfd['descriptionFactory']['registerElementLabel']('tableOfContents',_0x189ece=>o(_0x23dc50,'ELEMENT_TABLE_OF_CONTENTS',_0x189ece));}}class Tt extends _0x48beba{['afterInit'](){const _0x3af07f=this['editor'];if(!_0x3af07f['plugins']['has']('Title'))return;const _0x27a184=_0x3af07f['plugins']['get']('TrackChangesEditing');_0x27a184['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x3af07f['locale'],'ELEMENT_TITLE')),_0x3af07f['model']['document']['registerPostFixer'](_0x231f62=>{let _0x3ad8d2=!0x1;const _0x5772c1=Array['from'](_0x3af07f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x369a8e,data:_0x3a1ea3}of _0x5772c1){const {group:_0x60c78a}=_0x27a184['_splitMarkerName'](_0x369a8e);if('suggestion'!==_0x60c78a||!_0x3a1ea3['newRange'])continue;const _0x3165e1=_0x3a1ea3['newRange'],_0x102004=_0x3165e1['end']['nodeBefore'];if(!_0x102004||!_0x102004['is']('element','title-content'))continue;if(!_0x3165e1['start']['isTouching'](_0x3165e1['end']))continue;const _0x3c4640=_0x3af07f['model']['schema']['getNearestSelectionRange'](_0x3165e1['end'],'forward');if(_0x3c4640&&_0x3c4640['isCollapsed']){const _0x342c1d=_0x231f62['createRange'](_0x3165e1['start'],_0x3c4640['start']);_0x342c1d['isEqual'](_0x3165e1)||(_0x231f62['updateMarker'](_0x369a8e,{'range':_0x342c1d}),_0x3ad8d2=!0x0);}_0x3ad8d2||(_0x231f62['removeMarker'](_0x369a8e),_0x3ad8d2=!0x0);}return _0x3ad8d2;});}}class xt extends _0x48beba{['afterInit'](){const _0x27a3dc=this['editor'],_0x30378d=_0x27a3dc['plugins']['get']('TrackChangesEditing');_0x27a3dc['plugins']['has']('Uploadcare')&&(_0x30378d['enableCommand']('uploadcare'),_0x27a3dc['plugins']['has']('UploadcareImageEdit')&&(_0x30378d['enableCommand']('uploadcareImageEdit'),_0x30378d['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x30378d['registerBlockAttribute']('uploadcareImageId'),_0x30378d['descriptionFactory']['registerDescriptionCallback'](_0x3c45c8=>{if('attribute'!=_0x3c45c8['type'])return;const {data:_0x1cbc3a}=_0x3c45c8;return _0x1cbc3a&&'uploadcareImageId'==_0x1cbc3a['key']?{'type':'format','content':''}:void 0x0;})));}}class Ot extends _0x48beba{['afterInit'](){const _0x1513eb=this['editor'],_0x1814d0=_0x1513eb['plugins']['get']('TrackChangesEditing');_0x1513eb['plugins']['has']('UndoEditing')&&(_0x1814d0['enableCommand']('undo'),_0x1814d0['enableCommand']('redo'));}}class Rt extends _0x48beba{static get['requires'](){return[_t];}['afterInit'](){const _0x5c08f8=this['editor'];if(!_0x5c08f8['plugins']['has']('TableCaptionEditing'))return;_0x5c08f8['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x48beba{['tableProperties'];['tableCellProperties'];constructor(_0x249e84){super(_0x249e84),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 _0x3410a8=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x1d57a8 of this['tableProperties'])_0x3410a8['enableCommand'](_0x1d57a8,(_0x2358d4,_0x359d6c)=>{const _0x5e071b=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x1d57a8,[_0x5e071b],this['tableProperties'],'tableProperties',_0x2358d4,_0x359d6c);});_0x3410a8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x3410a8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3410a8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x6c8d53,_0x537531)=>this['handleDiscardAction'](this['tableProperties'],_0x6c8d53,_0x537531)),_0x3410a8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x48ac41 of this['tableCellProperties'])_0x3410a8['enableCommand'](_0x48ac41,(_0x4f0d76,_0x3b5657)=>{const _0x2ae42a=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x48ac41,_0x2ae42a,this['tableCellProperties'],'tableCellProperties',_0x4f0d76,_0x3b5657);});_0x3410a8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x3410a8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3410a8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x509c98,_0x2ce6ad)=>this['handleDiscardAction'](this['tableCellProperties'],_0x509c98,_0x2ce6ad)),_0x3410a8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x3410a8['descriptionFactory']['registerDescriptionCallback'](_0x4985a5=>this['handleSuggestionDescription'](_0x4985a5));}['_handlePropertyChange'](_0xfb5e36,_0x283a4a,_0x93e600,_0x23be3d,_0x25e1fb,_0x2e143f){const _0x1465dc=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2e143f['batch'],()=>{for(const _0x4eeac2 of _0x283a4a){if(this['_getSuggestion'](_0x4eeac2,_0x23be3d))_0x25e1fb(_0x2e143f);else{const _0xc693ed={};for(const _0x20f2a3 of _0x93e600){const _0x13fa1b=_0x4eeac2['getAttribute'](_0x20f2a3);void 0x0!==_0x13fa1b&&(_0xc693ed[_0x20f2a3]=_0x13fa1b);}_0x25e1fb(_0x2e143f),_0x1465dc['markBlockFormat'](_0x4eeac2,{'commandParams':[_0xc693ed]},[],_0x23be3d);}}});}['handleDiscardAction'](_0x5c2593,_0x21d811,_0xe17b69){const _0x1d3f8d=_0x21d811[0x0]['start']['nodeAfter'],_0xbd6024=_0xe17b69['commandParams'][0x0];this['editor']['model']['change'](_0x10251d=>{for(const _0x52aca5 of _0x5c2593)void 0x0!==_0xbd6024[_0x52aca5]?_0x10251d['setAttribute'](_0x52aca5,_0xbd6024[_0x52aca5],_0x1d3f8d):_0x10251d['removeAttribute'](_0x52aca5,_0x1d3f8d);});}['handleSuggestionDescription'](_0x1905db){if(_0x1905db['data'])switch(_0x1905db['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x4aa636,_0x1d14d3){const _0x2256ab=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x5278d9 of _0x2256ab['getSuggestions']({'skipNotAttached':!0x0})){const _0x328973=_0x5278d9['getContainedElement']();if(_0x5278d9['subType']===_0x1d14d3&&_0x328973===_0x4aa636)return _0x5278d9;}return null;}}const m='$elementName';class d extends _0x48beba{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x16bab2,_0x2ad438,R,E,U,V,F,L,G,J,K,H,W,Q,X,Y,Z,tt,it,nt,et,st,rt,ot,at,ct,ut,ht,gt,pt,ft,q,z,lt,dt,mt,kt,wt,bt,yt,St,jt,It,At,_t,Ct,vt,Nt,Rt,Dt,Mt,Bt,Et,$t,Tt,xt,Ot];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x446708){super(_0x446708),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x409b69,_0x1a773d,_0x114472,_0x311f79)=>{this['_model']['change'](()=>{for(const _0x1bad59 of[..._0x311f79,..._0x114472])this['_model']['markers']['has'](_0x1bad59)&&_0x446708['editing']['reconvertMarker'](_0x1bad59);});}),this['descriptionFactory']=new O(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Vt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x446708['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x446708['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x446708['config']['get']('trackChanges.trackFormatChanges'),_0x446708['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x446708['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new D(_0x446708,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x3d34df=this['editor'],_0x4ef21c=(_0x3fea7c,_0x15aae2)=>{if('attribute'!=_0x3fea7c)return'ck-suggestion-marker-'+_0x3fea7c;const _0x1c8bb7=_0x15aae2['split']('|')[0x0];return this['_isBlockAttribute'](_0x1c8bb7)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x3d34df['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0xbd68da=>{const {id:_0x8b14e8,authorId:_0x1e412d,type:_0x1e151d,subType:_0x3031fd}=this['_splitMarkerName'](_0xbd68da['markerName']),_0x26c7c6=['ck-suggestion-marker',_0x4ef21c(_0x1e151d,_0x3031fd)];let _0x42e046=0xbb8;return this['activeMarkers']['includes'](_0xbd68da['markerName'])&&(_0x26c7c6['push']('ck-suggestion-marker--active'),_0x42e046=0xbc2),'deletion'==_0x1e151d&&(_0x42e046+=0x5),{'classes':_0x26c7c6,'attributes':{'data-suggestion':_0x8b14e8,'data-author-id':_0x1e412d},'priority':_0x42e046};}}),_0x3d34df['conversion']['for']('dataDowncast')['add'](_0x1c86ae=>{_0x1c86ae['on']('addMarker:suggestion',(_0xa4a1d5,_0x4fc6fb,_0x3cf25f)=>{if(!_0x3cf25f['options']['showSuggestionHighlights'])return;const _0x523cc6=_0x4fc6fb['item'];if(!_0x523cc6)return;const _0x21eee6=_0x3cf25f['mapper']['toViewElement'](_0x523cc6);_0x3d34df['model']['schema']['isObject'](_0x523cc6)&&_0x21eee6&&!_0x21eee6['getCustomProperty']('widget')&&_0x21eee6['is']('containerElement')&&_0x126106(_0x21eee6,_0x3cf25f['writer']);},{'priority':'high'});}),_0x3d34df['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x149331,_0x22cf11)=>{if(!_0x22cf11['options']['showSuggestionHighlights'])return null;const {id:_0x3d68be,authorId:_0x524a11,type:_0x1add6a,subType:_0x2c641b}=this['_splitMarkerName'](_0x149331['markerName']);return{'classes':['ck-suggestion-marker',_0x4ef21c(_0x1add6a,_0x2c641b)],'priority':0xbb8,'attributes':{'data-suggestion':_0x3d68be,'data-author-id':_0x524a11}};}});const _0x924f49=({showActiveMarkers:_0x291c15=!0x0,isAttributeSuggestion:_0x3e5aa3=!0x1}={})=>(_0x5aa7bf,_0x30f4e0,_0x1386c9)=>{if(!_0x30f4e0['item'])return;const {id:_0x23d49a,authorId:_0x5b61e5}=this['_splitMarkerName'](_0x30f4e0['markerName']);if(_0x3e5aa3){const _0x35568e=this['_suggestions']['get'](_0x23d49a),_0x5f3d7b=this['_getAttributeKey'](_0x35568e);if(!this['_isBlockAttribute'](_0x5f3d7b))return;}if(_0x30f4e0['item']['is']('selection'))return void _0x1386c9['consumable']['consume'](_0x30f4e0['item'],_0x5aa7bf['name']);const _0x552331=_0x1386c9['mapper']['toViewElement'](_0x30f4e0['item']);if(_0x30f4e0['item']['is']('element')&&_0x3d34df['model']['schema']['isBlock'](_0x30f4e0['item'])&&!_0x552331['getCustomProperty']('addHighlight')){_0x1386c9['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x552331),_0x1386c9['writer']['setAttribute']('data-suggestion',_0x23d49a,_0x552331),_0x1386c9['writer']['setAttribute']('data-author-id',_0x5b61e5,_0x552331),_0x1386c9['mapper']['bindElementToMarker'](_0x552331,_0x30f4e0['markerName']),_0x291c15&&(this['activeMarkers']['includes'](_0x30f4e0['markerName'])?_0x1386c9['writer']['addClass']('ck-suggestion-marker--active',_0x552331):_0x1386c9['writer']['removeClass']('ck-suggestion-marker--active',_0x552331));for(const _0x42ab18 of _0x3d34df['model']['createRangeIn'](_0x30f4e0['item'])['getItems']())_0x1386c9['consumable']['consume'](_0x42ab18,_0x5aa7bf['name']);_0x1386c9['consumable']['consume'](_0x30f4e0['item'],_0x5aa7bf['name']);}};_0x3d34df['conversion']['for']('dataDowncast')['add'](_0x1912af=>{_0x1912af['on']('addMarker:suggestion:formatBlock',(_0x21c549,_0x5d1581,_0x20816d)=>{_0x20816d['options']['showSuggestionHighlights']&&_0x924f49({'showActiveMarkers':!0x1})(_0x21c549,_0x5d1581,_0x20816d);},{'priority':'highest'});}),_0x3d34df['conversion']['for']('dataDowncast')['add'](_0x1b1412=>{_0x1b1412['on']('addMarker:suggestion:attribute',(_0x552616,_0x19d875,_0x106b59)=>{_0x106b59['options']['showSuggestionHighlights']&&_0x924f49({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x552616,_0x19d875,_0x106b59);},{'priority':'highest'});}),_0x3d34df['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x281c76,_0x58d5b4)=>{if(_0x58d5b4['options']['showSuggestionHighlights']){const {id:_0xb35415,authorId:_0x31883e}=this['_splitMarkerName'](_0x281c76);return _0x281c76['includes'](':split')||_0x281c76['includes'](':merge')?{'group':'suggestion','name':_0x281c76['substr'](0xb),'attributes':{'data-suggestion':_0xb35415,'data-author-id':_0x31883e}}:null;}return{'group':'suggestion','name':_0x281c76['substr'](0xb)};}}),_0x3d34df['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xd5fdf5,{writer:_0xe1b6a5})=>{let _0x50dc5a='suggestion:'+_0xd5fdf5['getAttribute']('suggestion-type')+':'+_0xd5fdf5['getAttribute']('id');return _0xd5fdf5['getAttribute']('marker-count')&&(_0x50dc5a+=':'+_0xd5fdf5['getAttribute']('marker-count')),_0xe1b6a5['createElement']('$marker',{'data-name':_0x50dc5a});}}),_0x3d34df['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x3d34df['conversion']['for']('editingDowncast')['add'](_0x4b2b5e=>{_0x4b2b5e['on']('addMarker:suggestion:formatBlock',_0x924f49(),{'priority':'high'});}),_0x3d34df['conversion']['for']('editingDowncast')['add'](_0x5bb783=>{_0x5bb783['on']('addMarker:suggestion:attribute',_0x924f49({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x3d34df['conversion']['for']('editingDowncast')['add'](_0x56c9a0=>{_0x56c9a0['on']('removeMarker:suggestion:formatBlock',(_0x53434e,_0x1fa19a,_0x41e869)=>{const _0x21a8e0=_0x41e869['mapper']['markerNameToElements'](_0x1fa19a['markerName']);if(_0x21a8e0){for(const _0x2fca2e of _0x21a8e0)_0x2fca2e['getCustomProperty']('addHighlight')||(_0x41e869['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2fca2e),_0x41e869['writer']['removeAttribute']('data-suggestion',_0x2fca2e),_0x41e869['writer']['removeAttribute']('data-author-id',_0x2fca2e),_0x41e869['mapper']['unbindElementFromMarkerName'](_0x2fca2e,_0x1fa19a['markerName']));}},{'priority':'high'});}),_0x3d34df['conversion']['for']('editingDowncast')['add'](_0x32e709=>{_0x32e709['on']('removeMarker:suggestion:attribute',(_0x304748,_0x4b827a,_0x110ef5)=>{const _0x44aa09=_0x110ef5['mapper']['markerNameToElements'](_0x4b827a['markerName']);if(!_0x44aa09)return;const {id:_0x1c248c}=this['_splitMarkerName'](_0x4b827a['markerName']),_0x59bbf7=this['_suggestions']['get'](_0x1c248c),_0x26f3c6=this['_getAttributeKey'](_0x59bbf7);if(this['_isBlockAttribute'](_0x26f3c6)){for(const _0x4f932f of _0x44aa09)_0x4f932f['getCustomProperty']('addHighlight')||(_0x110ef5['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4f932f),_0x110ef5['writer']['removeAttribute']('data-suggestion',_0x4f932f),_0x110ef5['writer']['removeAttribute']('data-author-id',_0x4f932f),_0x110ef5['mapper']['unbindElementFromMarkerName'](_0x4f932f,_0x4b827a['markerName']));}},{'priority':'high'});}),_0x3d34df['model']['document']['registerPostFixer'](_0x199c13=>{let _0x2c0f16=!0x1;const _0x90a778=Array['from'](_0x3d34df['model']['document']['differ']['getChangedMarkers']()),_0x390570=new Set();for(const {name:_0x3aa39a,data:_0x242058}of _0x90a778){const {group:_0x5c2e59,type:_0x1c350a,subType:_0x41c7c6,id:_0x25b081}=this['_splitMarkerName'](_0x3aa39a);if('suggestion'!==_0x5c2e59)continue;const _0x5a0d10=this['_suggestions']['get'](_0x25b081);if(null!=_0x242058['newRange']){'formatInline'==_0x1c350a&&(_0x2c0f16=_0x2c0f16||Gt(_0x242058['newRange'],_0x3aa39a,_0x199c13,_0x3d34df['model']['schema']));const _0x1fd265='attribute'==_0x1c350a&&this['_isBlockAttribute'](_0x41c7c6['split']('|')[0x0]);if(_0x242058['newRange']['isCollapsed']||'$graveyard'==_0x242058['newRange']['root']['rootName']||'formatBlock'==_0x1c350a&&!Jt(_0x242058['newRange'])||_0x1fd265&&!Jt(_0x242058['newRange'])||'deletion'==_0x1c350a&&!(!Pt(_0x499430=_0x242058['newRange'])&&!function(_0x3d044b){return _0x3d044b['start']['parent']==_0x3d044b['end']['nodeBefore']&&_0x3d044b['start']['isAtEnd'];}(_0x499430)))_0x199c13['removeMarker'](_0x3aa39a),_0x2c0f16=!0x0;else{if(!_0x5a0d10||!_0x5a0d10['isInContent'])continue;if(_0x242058['newRange']&&_0x242058['oldRange']&&_0x242058['newRange']['isEqual'](_0x242058['oldRange']))continue;_0x390570['add'](_0x5a0d10);}}}var _0x499430;return _0x390570['size']>0x0&&(_0x2c0f16=!!this['_joinWithAdjacentSuggestions'](_0x390570)||_0x2c0f16),_0x2c0f16;}),_0x3d34df['model']['document']['registerPostFixer'](_0x3cc9b0=>{let _0x5de06f=!0x1;for(const _0x11b779 of _0x3d34df['model']['document']['differ']['getChanges']())if('insert'==_0x11b779['type'])for(const _0x2d6914 of this['_suggestions']['values']()){if(_0x2d6914['isMultiRange']||!_0x2d6914['isInContent'])continue;const _0x89c1a4='formatBlock'==_0x2d6914['type'],_0x512155=this['_getAttributeKey'](_0x2d6914),_0x1b6a08=_0x512155&&this['_isBlockAttribute'](_0x512155);if(!_0x89c1a4&&!_0x1b6a08)continue;const _0x408dd1=_0x2d6914['getFirstRange']();if(_0x408dd1['start']['parent']!=_0x408dd1['end']['parent']&&!_0x408dd1['end']['isAtEnd']){const _0x51feb8=_0x3d34df['model']['createPositionAt'](_0x408dd1['start']['nodeAfter'],'end'),_0x1b7354=_0x3d34df['model']['createRange'](_0x408dd1['start'],_0x51feb8);_0x3cc9b0['updateMarker'](_0x2d6914['getFirstMarker'](),{'range':_0x1b7354}),_0x5de06f=!0x0;}}return _0x5de06f;}),_0x3d34df['model']['document']['registerPostFixer'](_0x26b63b=>this['_processAttributeChanges'](_0x26b63b)),_0x3d34df['model']['document']['registerPostFixer'](_0x4010b6=>!_0x4010b6['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x4010b6)),_0x3d34df['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x3d34df['model']['document']['on']('change:data',(_0x383214,_0xefc099)=>{if(!_0xefc099['isLocal']||_0xefc099['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x5b00bd=_0x3d34df['model']['document']['differ']['getChanges']();if(0x0==_0x5b00bd['length'])return;const _0x39f50c=[],_0x2f1bdf=_0x5b00bd['filter'](_0x51ed1d=>'attribute'==_0x51ed1d['type']),_0x4f6062=_0x5b00bd['filter'](_0x4920dc=>'insert'==_0x4920dc['type']&&'$text'!=_0x4920dc['name']);for(const _0x3e4ee9 of _0x2f1bdf)this['_isRegisteredAttribute'](_0x3e4ee9['attributeKey'])&&_0x39f50c['push']({'key':_0x3e4ee9['attributeKey'],'newValue':_0x3e4ee9['attributeNewValue'],'oldValue':_0x3e4ee9['attributeOldValue'],'range':Kt(_0x3e4ee9['range'],_0x3d34df['model'])});for(const _0x1622fa of _0x4f6062){if('rename'!=_0x1622fa['action']&&'refresh'!=_0x1622fa['action'])continue;const _0x7e1ff5=Ht(_0x1622fa['position']['nodeAfter'],_0x3d34df['model']),_0x8e6eb1=_0x1622fa['before'];'rename'==_0x1622fa['action']&&_0x39f50c['push']({'key':m,'newValue':_0x1622fa['name'],'oldValue':_0x8e6eb1['name'],'range':_0x7e1ff5});for(const [_0x18b905,_0x553567]of _0x8e6eb1['attributes']){if(!this['_isRegisteredAttribute'](_0x18b905))continue;const _0x1187d2=_0x1622fa['attributes']['get'](_0x18b905);_0x553567!==_0x1187d2&&_0x39f50c['push']({'key':_0x18b905,'newValue':_0x1187d2,'oldValue':_0x553567,'range':_0x7e1ff5});}for(const [_0xe9e60d,_0x46bdab]of _0x1622fa['attributes'])this['_isRegisteredAttribute'](_0xe9e60d)&&(_0x8e6eb1['attributes']['has'](_0xe9e60d)||_0x39f50c['push']({'key':_0xe9e60d,'newValue':_0x46bdab,'oldValue':null,'range':_0x7e1ff5}));}0x0!=_0x39f50c['length']&&_0x3d34df['model']['enqueueChange'](_0xefc099,_0x5db5b5=>{const _0xf9a982=_0x165ef7();for(const {range:_0x4ee925,key:_0x58e5c2,oldValue:_0x4ebeb3,newValue:_0x307671}of _0x39f50c)this['markAttributeChange'](_0x4ee925,_0x58e5c2,_0x4ebeb3,_0x307671,{'groupId':_0xf9a982});this['_reduceExistingSuggestions'](_0x5db5b5,_0x39f50c);});},{'priority':'lowest'}),_0x3d34df['model']['markers']['on']('update:suggestion',(_0x567e9a,_0x1cc5de,_0x5b30a1)=>{if(null==_0x5b30a1){const {id:_0x5ecf65}=this['_splitMarkerName'](_0x1cc5de['name']),_0x4fb1b6=this['_suggestions']['get'](_0x5ecf65);_0x4fb1b6&&_0x4fb1b6['addMarkerName'](_0x1cc5de['name']);}}),_0x3d34df['model']['document']['on']('change:data',()=>{const _0x3ca3a0=Array['from'](_0x3d34df['model']['document']['differ']['getChangedMarkers']())['filter'](_0x4e30c9=>'suggestion'===this['_splitMarkerName'](_0x4e30c9['name'])['group']);if(0x0===_0x3ca3a0['length'])return;_0x3ca3a0['sort']((_0x449129,_0x39195b)=>{const _0x4d851f=_0x449129['data']['oldRange'],_0x36e95e=_0x39195b['data']['oldRange'];return null===_0x4d851f&&null===_0x36e95e?0x0:null===_0x4d851f&&null!==_0x36e95e?-0x1:null!==_0x4d851f&&null===_0x36e95e?0x1:_0x4d851f['start']['isBefore'](_0x36e95e['start'])?-0x1:0x1;});const _0x32eeed=new Set(),_0x4667c5=new Set();for(const {name:_0x3b0252,data:_0x2c03ad}of _0x3ca3a0){const {id:_0x301623}=this['_splitMarkerName'](_0x3b0252);if(null===_0x2c03ad['oldRange']){const _0xd891c4=this['_handleNewSuggestionMarker'](_0x3b0252);_0x4667c5['add'](_0xd891c4);}else{const _0x52211e=this['_suggestions']['get'](_0x301623);null!==_0x2c03ad['newRange']||_0x52211e['isInContent']?(_0x32eeed['add'](_0x52211e['head']),_0x4667c5['add'](_0x52211e)):this['_removeSuggestion'](_0x52211e);}}_0x4667c5['size']>0x0&&this['_refreshSuggestionsChain'](_0x4667c5);for(const _0x31323e of _0x32eeed)this['fire']('suggestionChanged',_0x31323e);}),_0x3d34df['model']['on']('applyOperation',(_0x128263,_0x5d489c)=>{const _0x5e504b=_0x5d489c[0x0];if(!this['_suggestions']['size'])return;if(!_0x5e504b['isDocumentOperation'])return;if(_0x5e504b['batch']['isUndo']||!_0x5e504b['batch']['isLocal'])return;let _0x89f4ca,_0x29b261;switch(_0x5e504b['type']){case'insert':_0x89f4ca=_0x3d34df['model']['createPositionAt'](_0x5e504b['position']),_0x29b261=_0x89f4ca['getShiftedBy'](_0x5e504b['howMany']);break;case'split':_0x89f4ca=_0x3d34df['model']['createPositionAt'](_0x5e504b['splitPosition']),_0x29b261=_0x3d34df['model']['createPositionAt'](_0x5e504b['moveTargetPosition']);break;case'move':_0x89f4ca=_0x3d34df['model']['createPositionAt'](_0x5e504b['targetPosition']),_0x29b261=_0x89f4ca['getShiftedBy'](_0x5e504b['howMany']);break;default:return;}const _0x5f45fd=_0x3d34df['model']['createRange'](_0x89f4ca,_0x29b261);_0x3d34df['model']['change'](()=>{for(const {suggestion:_0x3a30a4,meta:_0x323020}of this['_findSuggestions'](_0x5f45fd)){if(_0x3a30a4['isMultiRange'])continue;if('formatInline'==_0x3a30a4['type'])continue;const _0x4e4592=this['_getAttributeKey'](_0x3a30a4);if(_0x4e4592&&this['_isBlockAttribute'](_0x4e4592)&&'split'!=_0x5e504b['type'])continue;const _0xb8a3f6=_0x3a30a4['data']&&_0x3a30a4['data']['multipleBlocks'];('formatBlock'!=_0x3a30a4['type']||'split'==_0x5e504b['type']&&!_0xb8a3f6)&&(_0x323020['containsRangeInObject']||'insertion'==_0x3a30a4['type']&&_0x323020['isOwn']||_0x3a30a4['getFirstRange']()['containsRange'](_0x5f45fd)&&this['_breakSuggestionMarker'](_0x3a30a4,_0x89f4ca,_0x29b261));}});},{'priority':'lowest'}),_0x3d34df['model']['on']('deleteContent',(_0x517937,_0x17cbb0)=>{const _0x86cabf=_0x17cbb0[0x0],_0x6656d0=_0x17cbb0[0x1];if(_0x6656d0&&_0x6656d0['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x86cabf['isCollapsed'])return;const _0x435983=_0x3d34df['model']['schema'],{start:_0x40acbb,end:_0x4f9554}=_0x86cabf['getFirstRange'](),_0x1b24c5=_0x40acbb['nodeAfter']&&_0x435983['isLimit'](_0x40acbb['nodeAfter'])?null:_0x435983['getNearestSelectionRange'](_0x40acbb,'forward'),_0x1003ed=_0x4f9554['nodeBefore']&&_0x435983['isLimit'](_0x4f9554['nodeBefore'])?null:_0x435983['getNearestSelectionRange'](_0x4f9554,'backward'),_0x18c123=_0x3d34df['model']['createRange'](_0x1b24c5?_0x1b24c5['start']:_0x40acbb,_0x1003ed?_0x1003ed['end']:_0x4f9554);_0x3d34df['model']['change'](_0x158009=>{this['markDeletion'](_0x18c123);const _0xcf7c98=_0x3d34df['model']['schema']['getNearestSelectionRange'](_0x18c123['start']);_0x86cabf['is']('documentSelection')?_0x158009['setSelection'](_0xcf7c98):_0x86cabf['setTo'](_0xcf7c98);}),_0x517937['stop']();},{'priority':_0xe29e00['normal']+0xa}),_0x3d34df['model']['on']('insertContent',(_0x2c202e,_0x3214c5)=>{const _0x253871=_0x3214c5[_0x3214c5['length']-0x1];_0x253871&&_0x253871['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x3d34df['model']['change'](()=>{let _0x433d17=_0x3d34df['model']['insertContent'](_0x3214c5[0x0],_0x3214c5[0x1],_0x3214c5[0x2],{'forceDefaultExecution':!0x0});if(!_0x433d17)return;_0x2c202e['return']=_0x433d17['clone']();const _0x5a20c9=_0x433d17['end']['nodeBefore'],_0x307f85=_0x3d34df['model']['schema'];_0x5a20c9&&_0x307f85['isBlock'](_0x5a20c9)&&!_0x307f85['isObject'](_0x5a20c9)&&(_0x433d17=_0x3d34df['model']['createRange'](_0x433d17['start'],_0x3d34df['model']['createPositionAt'](_0x5a20c9,'end'))),this['markInsertion'](_0x433d17);}),_0x2c202e['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x1d7b43=new M(_0x3d34df,this['_suggestions']);_0x3d34df['commands']['add']('acceptSuggestion',_0x1d7b43),this['enableCommand']('acceptSuggestion');const _0x11e5b5=new $(_0x3d34df,this['_suggestions']);_0x3d34df['commands']['add']('discardSuggestion',_0x11e5b5),this['enableCommand']('discardSuggestion'),_0x3d34df['commands']['add']('acceptAllSuggestions',new B(_0x3d34df,_0x1d7b43,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x3d34df['commands']['add']('discardAllSuggestions',new B(_0x3d34df,_0x11e5b5,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x3d34df['commands']['add']('acceptSelectedSuggestions',new T(_0x3d34df,_0x1d7b43,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x3d34df['commands']['add']('discardSelectedSuggestions',new T(_0x3d34df,_0x11e5b5,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x56615b=_0x3d34df['plugins']['get']('CommentsRepository');this['listenTo'](_0x56615b,'addComment',(_0x33b9ad,{threadId:_0xe5cdb8})=>{const _0x5ea9a4=this['_suggestions']['get'](_0xe5cdb8);_0x5ea9a4&&_0x5ea9a4['commentThread']&&0x1===_0x5ea9a4['commentThread']['length']&&this['_updateSuggestionData'](_0xe5cdb8,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x56615b,'removeComment',(_0x23dc2b,{threadId:_0x2a8b5b})=>{const _0x3a1b3=this['_suggestions']['get'](_0x2a8b5b);_0x3a1b3&&_0x3a1b3['commentThread']&&!_0x3a1b3['commentThread']['length']&&this['_updateSuggestionData'](_0x2a8b5b,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x214ff0){const _0x5ea989=_0xbfdf40([0x50,0x72,0x79,0x46,0x4d,0x73,0x39,0x44,0x69,0x6b,0x36,0x43,0x30,0x70,0x67,0x7a,0x6c,0x31,0x58,0x5a,0x53,0x78,0x4a,0x41,0x4f,0x33,0x55,0x63,0x75,0x74,0x47,0x4c,0x6f,0x37,0x38,0x57,0x54,0x68,0x66,0x52,0x48,0x6a,0x4b,0x71,0x56,0x77,0x42,0x51,0x49,0x6d,0x61,0x34,0x59,0x4e,0x45,0x6e,0x65,0x32,0x76,0x35,0x64,0x62]),_0x51757d=0x3389b3f,_0x1438e7=0x33ff17f^_0x51757d,_0x4bbd7f=window[_0xbfdf40([0x44,0x61,0x74,0x65])][_0xbfdf40([0x6e,0x6f,0x77])](),_0x7e9711=_0x214ff0[_0xbfdf40([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x39eb39=new window[(_0xbfdf40([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4eccff=>{_0x7e9711[_0xbfdf40([0x6f,0x6e,0x63,0x65])](_0xbfdf40([0x72,0x65,0x61,0x64,0x79]),_0x4eccff);}),_0x433830={[_0xbfdf40([0x6b,0x74,0x79])]:_0xbfdf40([0x45,0x43]),[_0xbfdf40([0x75,0x73,0x65])]:_0xbfdf40([0x73,0x69,0x67]),[_0xbfdf40([0x63,0x72,0x76])]:_0xbfdf40([0x50,0x2d,0x32,0x35,0x36]),[_0xbfdf40([0x78])]:_0xbfdf40([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]),[_0xbfdf40([0x79])]:_0xbfdf40([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]),[_0xbfdf40([0x61,0x6c,0x67])]:_0xbfdf40([0x45,0x53,0x32,0x35,0x36])},_0x129a76=_0x7e9711[_0xbfdf40([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xbfdf40([0x67,0x65,0x74])](_0xbfdf40([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2cd274(){let _0x21d0ce,_0x58402e=null,_0xf326f1=null;try{if(_0x129a76==_0xbfdf40([0x47,0x50,0x4c]))return _0xbfdf40([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x21d0ce=_0x2b8598(),!_0x21d0ce)return _0xbfdf40([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x21d0ce[_0xbfdf40([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xf326f1=_0xc233c8(_0x21d0ce[_0xbfdf40([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x21d0ce[_0xbfdf40([0x6a,0x74,0x69])])),await _0x1567fd()?_0x2f50c7()?_0x4deefb()?_0xbfdf40([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1ab48e()?(_0x21d0ce[_0xbfdf40([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xbfdf40([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x58402e=_0x316037(_0xbfdf40([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x21d0ce[_0xbfdf40([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xbfdf40([0x74,0x72,0x69,0x61,0x6c])&&(_0x58402e=_0x316037(_0xbfdf40([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4690f8()):_0xbfdf40([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xbfdf40([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xbfdf40([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xbfdf40([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4deefb(){const _0x554253=[_0xbfdf40([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xbfdf40([0x74,0x72,0x69,0x61,0x6c])][_0xbfdf40([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21d0ce[_0xbfdf40([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4bbd7f/0x3e8:0xe10*_0x1438e7;return _0x21d0ce[_0xbfdf40([0x65,0x78,0x70])]<_0x554253;}function _0x2f50c7(){const _0x104fa4=_0x21d0ce[_0xbfdf40([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x104fa4)return!0x1;if(_0x104fa4[_0xbfdf40([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xbfdf40([0x2a])))return!0x0;if(_0x104fa4[_0xbfdf40([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xbfdf40([0x54,0x43])))return!0x0;if(_0x104fa4[_0xbfdf40([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xbfdf40([0x52,0x54,0x43]))){if(_0x3f6914())return!0x0;if(_0x1fc212()||_0x579d6e())return!0x0;}return!0x1;}function _0x1ab48e(){const _0x4475cd=_0x21d0ce[_0xbfdf40([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4475cd||0x0==_0x4475cd[_0xbfdf40([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x248f77}=new URL(window[_0xbfdf40([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4475cd[_0xbfdf40([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x248f77))return!0x0;const _0x5cdbaa=_0x248f77[_0xbfdf40([0x73,0x70,0x6c,0x69,0x74])](_0xbfdf40([0x2e]));return _0x4475cd[_0xbfdf40([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x513fa3=>_0x513fa3[_0xbfdf40([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xbfdf40([0x2a])))[_0xbfdf40([0x6d,0x61,0x70])](_0x1c5d49=>_0x1c5d49[_0xbfdf40([0x73,0x70,0x6c,0x69,0x74])](_0xbfdf40([0x2e])))[_0xbfdf40([0x73,0x6f,0x6d,0x65])](_0x49bbe0=>_0x5cdbaa[_0xbfdf40([0x65,0x76,0x65,0x72,0x79])]((_0x40b299,_0x218571)=>_0x49bbe0[_0x218571]===_0x40b299||_0x49bbe0[_0x218571]===_0xbfdf40([0x2a])));}function _0x4690f8(){return _0x58402e&&_0xf326f1?new window[(_0xbfdf40([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x48cd80,_0x255798)=>{_0x58402e[_0xbfdf40([0x74,0x68,0x65,0x6e])](_0x48cd80,_0x255798),_0xf326f1[_0xbfdf40([0x74,0x68,0x65,0x6e])](_0x4fb705=>{_0x4fb705!=_0xbfdf40([0x56,0x61,0x6c,0x69,0x64])&&_0x48cd80(_0x4fb705);},_0x255798);}):_0x58402e||_0xf326f1||_0xbfdf40([0x56,0x61,0x6c,0x69,0x64]);}}function _0xc233c8(_0x529c84,_0x5fc05c){return new window[(_0xbfdf40([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x8db3e=>{if(_0x1c5027())return _0x8db3e(_0xbfdf40([0x56,0x61,0x6c,0x69,0x64]));_0x11a37c(),_0x7e9711[_0xbfdf40([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xbfdf40([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1f6fc7=!0x1;const _0x550aff=_0x165ef7();function _0x39f31f(_0x1e491a){return!!_0x1e491a&&(typeof _0x1e491a===_0xbfdf40([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1e491a===_0xbfdf40([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1e491a[_0xbfdf40([0x74,0x68,0x65,0x6e])]===_0xbfdf40([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1e491a[_0xbfdf40([0x63,0x61,0x74,0x63,0x68])]===_0xbfdf40([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x38d25a(_0x183e39){_0x204ade(_0x183e39)[_0xbfdf40([0x74,0x68,0x65,0x6e])](_0x811309=>{if(!_0x811309||_0x811309[_0xbfdf40([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xbfdf40([0x6f,0x6b]))return _0xbfdf40([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5c066c(_0x5b8f86(_0x550aff+_0x5fc05c))!=_0x811309[_0xbfdf40([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xbfdf40([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xbfdf40([0x56,0x61,0x6c,0x69,0x64]);})[_0xbfdf40([0x74,0x68,0x65,0x6e])](_0x1e0ec9=>(_0x3c755c(),_0x1e0ec9),()=>{const _0x38a904=_0x2c0ca4();return null==_0x38a904?(_0x3c755c(),_0xbfdf40([0x56,0x61,0x6c,0x69,0x64])):_0xbfdf40(_0x4bbd7f-_0x38a904>(0x27341f3f^_0x51757d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xbfdf40([0x74,0x68,0x65,0x6e])](_0x8db3e)[_0xbfdf40([0x63,0x61,0x74,0x63,0x68])](()=>{_0x8db3e(_0xbfdf40([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x547207=0x30e75bf^_0x51757d;function _0x3c755c(){const _0x10ece1=_0xbfdf40([0x6c,0x6c,0x63,0x74,0x2d])+_0x5c066c(_0x5b8f86(_0x529c84)),_0x3198ab=_0x53c5cb(_0x5c066c(window[_0xbfdf40([0x4d,0x61,0x74,0x68])][_0xbfdf40([0x63,0x65,0x69,0x6c])](_0x4bbd7f/_0x547207)));window[_0xbfdf40([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xbfdf40([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x10ece1,_0x3198ab);}function _0x2c0ca4(){const _0x3e9bb8=_0xbfdf40([0x6c,0x6c,0x63,0x74,0x2d])+_0x5c066c(_0x5b8f86(_0x529c84)),_0x5cd46d=window[_0xbfdf40([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xbfdf40([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3e9bb8);return _0x5cd46d?window[_0xbfdf40([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x53c5cb(_0x5cd46d),0x10)*_0x547207:null;}function _0x204ade(_0x549146){return new window[(_0xbfdf40([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1dfe3f,_0x20c46d)=>{_0x549146[_0xbfdf40([0x74,0x68,0x65,0x6e])](_0x1dfe3f,_0x20c46d),window[_0xbfdf40([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x20c46d,0x3394fff^_0x51757d);});}}_0x7e9711[_0xbfdf40([0x6f,0x6e])](_0xbfdf40([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x6e7b5f,_0x291a7e)=>{if(_0x291a7e[0x0]!=_0x529c84)return _0x8db3e(_0xbfdf40([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x291a7e[0x1]={..._0x291a7e[0x1],[_0xbfdf40([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x550aff};},{[_0xbfdf40([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xbfdf40([0x68,0x69,0x67,0x68])}),_0x7e9711[_0xbfdf40([0x6f,0x6e])](_0xbfdf40([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3e0d0c=>{_0x39f31f(_0x3e0d0c[_0xbfdf40([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1f6fc7=!0x0,_0x38d25a(_0x3e0d0c[_0xbfdf40([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xbfdf40([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xbfdf40([0x6c,0x6f,0x77])}),_0x39eb39[_0xbfdf40([0x74,0x68,0x65,0x6e])](()=>{_0x1f6fc7||_0x8db3e(_0xbfdf40([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1c5027(){return _0x7e9711[_0xbfdf40([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xbfdf40([0x76,0x69,0x65,0x77])][_0xbfdf40([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xbfdf40([0x61,0x75,0x74,0x6f]);}function _0x11a37c(){_0x7e9711[_0xbfdf40([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xbfdf40([0x76,0x69,0x65,0x77])][_0xbfdf40([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xbfdf40([0x61,0x75,0x74,0x6f]);}}function _0x316037(_0x5da01f){const _0x24ce47=[new window[(_0xbfdf40([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x36fc22=>setTimeout(_0x36fc22,0x331a5f3^_0x51757d)),_0x39eb39[_0xbfdf40([0x74,0x68,0x65,0x6e])](()=>new window[(_0xbfdf40([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ec6d9=>{let _0x2d6342=0x0;_0x7e9711[_0xbfdf40([0x6d,0x6f,0x64,0x65,0x6c])][_0xbfdf40([0x6f,0x6e])](_0xbfdf40([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x22ad9b,_0xf3f09d)=>{_0xf3f09d[0x0][_0xbfdf40([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2d6342++,_0x2d6342==(0x3389ac7^_0x51757d)&&(_0x2ec6d9(),_0x22ad9b[_0xbfdf40([0x6f,0x66,0x66])]());});}))];return window[_0xbfdf40([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xbfdf40([0x72,0x61,0x63,0x65])](_0x24ce47)[_0xbfdf40([0x74,0x68,0x65,0x6e])](()=>_0x5da01f);}async function _0x44f05b(){await _0x39eb39,_0x7e9711[_0xbfdf40([0x6d,0x6f,0x64,0x65,0x6c])][_0xbfdf40([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x6b3af,_0x7e9711[_0xbfdf40([0x6d,0x6f,0x64,0x65,0x6c])][_0xbfdf40([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x6b3af,_0x7e9711[_0xbfdf40([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xbfdf40([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3f6914(){return _0xaf6ac1(_0xbfdf40([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xc864c2(_0xbfdf40([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0xbfdf40([0x73,0x74,0x61,0x74,0x65])]==_0xbfdf40([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1fc212(){return _0xaf6ac1(_0xbfdf40([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 _0x579d6e(){return _0xaf6ac1(_0xbfdf40([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x271b99(_0x4bf96d){const _0x5ed96e=_0x1fffb8();_0x7e9711[_0x5ed96e]=_0xbfdf40([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4bf96d,_0x4bf96d!=_0xbfdf40([0x56,0x61,0x6c,0x69,0x64])&&_0x44f05b();}function _0x1fffb8(){const _0x206b98=window[_0xbfdf40([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xbfdf40([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xbfdf40([0x6e,0x6f,0x77])]())[_0xbfdf40([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xbfdf40([0x2e]),'');let _0x58d677=_0xbfdf40([0x50]);for(let _0x17f6fd=0x0;_0x17f6fd<_0x206b98[_0xbfdf40([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x17f6fd+=0x2){let _0x275f6b=window[_0xbfdf40([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x206b98[_0xbfdf40([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x17f6fd,_0x17f6fd+0x2));_0x275f6b>=_0x5ea989[_0xbfdf40([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x275f6b-=_0x5ea989[_0xbfdf40([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x58d677+=_0x5ea989[_0x275f6b];}return _0x58d677;}function _0x2b8598(){const _0x158288=_0x129a76[_0xbfdf40([0x73,0x70,0x6c,0x69,0x74])](_0xbfdf40([0x2e]));if(0x3!=_0x158288[_0xbfdf40([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5d65fd(_0x158288[0x1]);function _0x5d65fd(_0x194db4){const _0xd51e52=_0xa3df28(_0x194db4);return _0xd51e52&&_0x50cbbb()?_0xd51e52:null;function _0x50cbbb(){const _0x353aed=_0xd51e52[_0xbfdf40([0x6a,0x74,0x69])],_0x55d8b8=window[_0xbfdf40([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x353aed[_0xbfdf40([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x353aed[_0xbfdf40([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x33d6d4={..._0xd51e52,[_0xbfdf40([0x6a,0x74,0x69])]:_0x353aed[_0xbfdf40([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x353aed[_0xbfdf40([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x33d6d4[_0xbfdf40([0x76,0x63])],_0x5b8f86(_0x33d6d4)==_0x55d8b8;}}}async function _0x1567fd(){let _0x315c28=!0x0;try{const _0x407c28=_0x129a76[_0xbfdf40([0x73,0x70,0x6c,0x69,0x74])](_0xbfdf40([0x2e])),[_0x4ae5cc,_0x44cf73,_0x2cbe57]=_0x407c28;return _0x1679eb(_0x4ae5cc),await _0x37b719(_0x4ae5cc,_0x44cf73,_0x2cbe57),_0x315c28;}catch{return!0x1;}function _0x1679eb(_0x2c4c1c){const _0x1ccf02=_0xa3df28(_0x2c4c1c);_0x1ccf02&&_0x1ccf02[_0xbfdf40([0x61,0x6c,0x67])]==_0xbfdf40([0x45,0x53,0x32,0x35,0x36])||(_0x315c28=!0x1);}async function _0x37b719(_0x54ae69,_0x36ca03,_0x132055){const _0x8ffc37=window[_0xbfdf40([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xbfdf40([0x66,0x72,0x6f,0x6d])](_0x4831e6(_0x132055),_0x291b3c=>_0x291b3c[_0xbfdf40([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5eb3b0=new window[(_0xbfdf40([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xbfdf40([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x54ae69+_0xbfdf40([0x2e])+_0x36ca03),_0x5db283=window[_0xbfdf40([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xbfdf40([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5db283)return;const _0x436f99=await _0x5db283[_0xbfdf40([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xbfdf40([0x6a,0x77,0x6b]),_0x433830,{[_0xbfdf40([0x6e,0x61,0x6d,0x65])]:_0xbfdf40([0x45,0x43,0x44,0x53,0x41]),[_0xbfdf40([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xbfdf40([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xbfdf40([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5db283[_0xbfdf40([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xbfdf40([0x6e,0x61,0x6d,0x65])]:_0xbfdf40([0x45,0x43,0x44,0x53,0x41]),[_0xbfdf40([0x68,0x61,0x73,0x68])]:{[_0xbfdf40([0x6e,0x61,0x6d,0x65])]:_0xbfdf40([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x436f99,_0x8ffc37,_0x5eb3b0)||(_0x315c28=!0x1);}}function _0xa3df28(_0x16eb93){return _0x16eb93[_0xbfdf40([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xbfdf40([0x65,0x79]))?JSON[_0xbfdf40([0x70,0x61,0x72,0x73,0x65])](_0x4831e6(_0x16eb93)):null;}function _0x4831e6(_0x2f680b){return window[_0xbfdf40([0x61,0x74,0x6f,0x62])](_0x2f680b[_0xbfdf40([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xbfdf40([0x2b]))[_0xbfdf40([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xbfdf40([0x2f])));}function _0x5b8f86(_0x4b38da){let _0x27f35a=0x1505;function _0x5632d2(_0x4aa939){for(let _0x55c7d0=0x0;_0x55c7d0<_0x4aa939[_0xbfdf40([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x55c7d0++){const _0x41aa01=_0x4aa939[_0xbfdf40([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x55c7d0);_0x27f35a=(_0x27f35a<<0x5)+_0x27f35a+_0x41aa01,_0x27f35a&=_0x27f35a;}}function _0x362e91(_0x36e604){Array[_0xbfdf40([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x36e604)?_0x36e604[_0xbfdf40([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x362e91):_0x36e604&&typeof _0x36e604==_0xbfdf40([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xbfdf40([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x36e604)[_0xbfdf40([0x73,0x6f,0x72,0x74])]()[_0xbfdf40([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1a7fae,_0x100d1f])=>{_0x5632d2(_0x1a7fae),_0x362e91(_0x100d1f);}):_0x5632d2(window[_0xbfdf40([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x36e604));}return _0x362e91(_0x4b38da),_0x27f35a>>>0x0;}function _0x5c066c(_0x3f0638){return _0x3f0638[_0xbfdf40([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xbfdf40([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xbfdf40([0x30]));}function _0x53c5cb(_0x1361de){return _0x1361de[_0xbfdf40([0x73,0x70,0x6c,0x69,0x74])]('')[_0xbfdf40([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xbfdf40([0x6a,0x6f,0x69,0x6e])]('');}function _0xaf6ac1(_0x7756a7){return _0x7e9711[_0xbfdf40([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xbfdf40([0x68,0x61,0x73])](_0x7756a7);}function _0xc864c2(_0x55a8d2){return _0x7e9711[_0xbfdf40([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xbfdf40([0x67,0x65,0x74])](_0x55a8d2);}function _0x6b3af(){}function _0xbfdf40(_0x2c507f){return _0x2c507f['map'](_0x4033e5=>String['fromCharCode'](_0x4033e5))['join']('');}_0x271b99(await _0x2cd274());}(this);}set['adapter'](_0x5e7019){if(this['_adapter'])throw new _0x2bc211('track-changes-adapter-already-set',this);this['_adapter']=_0x5e7019;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x198d26=!0x1,toJSON:_0x46f6db=!0x1}={}){const _0x116963=[];for(const _0x1ce731 of this['_suggestions']['values']())_0x198d26&&!_0x1ce731['isInContent']||_0x116963['push'](_0x1ce731);return _0x46f6db?_0x116963['map'](_0x961a08=>_0x961a08['toJSON']()):_0x116963;}['getSuggestion'](_0x3e67d8){const _0x3b6012=this['_suggestions']['get'](_0x3e67d8);if(!_0x3b6012)throw new _0x2bc211('track-changes-suggestion-not-found',this);return _0x3b6012;}['hasSuggestion'](_0x5116e2){return this['_suggestions']['has'](_0x5116e2);}['addSuggestionData'](_0x18c77f){const {authorId:_0x53d2ac,id:_0x16cf43,originalSuggestionId:_0x5302c7,attributes:_0x107a5e}=_0x18c77f,[_0x4aa2ee,_0xf3a5a1]=_0x18c77f['type']['split'](':'),_0x2cacb7=this['_suggestions']['get'](_0x16cf43)||this['_createSuggestion'](_0x4aa2ee,_0xf3a5a1,_0x16cf43,_0x53d2ac,_0x107a5e,_0x5302c7);if(this['_addThreadToSuggestion'](_0x2cacb7),this['_checkSuggestionCorrectness'](_0x2cacb7,_0x4aa2ee,_0xf3a5a1||null,_0x53d2ac),_0x2cacb7['createdAt']=_0x18c77f['createdAt'],_0x2cacb7['_isDataLoaded']=!0x0,_0x107a5e&&_0x107a5e['@external']){const _0x3fcd18=_0x107a5e['@external'],_0x41df39=this['_getExternalAuthor'](_0x3fcd18['authorName']);_0x2cacb7['authoredAt']=_0x3fcd18['createdAt'],_0x2cacb7['author']=_0x41df39,_0x2cacb7['isExternal']=!0x0;}else _0x2cacb7['authoredAt']=_0x18c77f['createdAt'];switch(_0x18c77f['data']&&(_0x2cacb7['data']=_0x18c77f['data']),_0x18c77f['attributes']&&(_0x2cacb7['attributes']=_0x18c77f['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2cacb7['_saved']=!0x0),this['_suggestionState']['get'](_0x2cacb7)){case'notReady':this['_suggestionState']['set'](_0x2cacb7,'dataReady');break;case'markerReady':_0x2cacb7['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2cacb7])),this['_refreshSuggestionsChain'](new Set([_0x2cacb7])),this['_suggestionState']['set'](_0x2cacb7,'ready'),this['fire']('suggestionLoaded',_0x2cacb7)):this['_suggestionState']['set'](_0x2cacb7,'removed');}return _0x2cacb7;}['acceptSuggestion'](_0x2d6396){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x9c8296 of _0x2d6396['getAllAdjacentSuggestions']())_0x9c8296['accept']();});});}['discardSuggestion'](_0x363a73){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3de650 of _0x363a73['getAllAdjacentSuggestions']())_0x3de650['discard']();});});}['enableCommand'](_0x554ad8,_0x2bb103){const _0x223b6f=this['editor']['commands']['get'](_0x554ad8);if(!_0x223b6f)throw new _0x2bc211('track-changes-command-not-found',this,{'commandName':_0x554ad8});if(this['_enabledCommands']['has'](_0x223b6f))throw new _0x2bc211('track-changes-enable-command-twice',this,{'commandName':_0x554ad8});this['_enabledCommands']['add'](_0x223b6f),_0x2bb103&&_0x223b6f['on']('execute',(_0x34bc71,_0x4a77ee)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x4a77ee['length']>0x0&&_0x4a77ee[_0x4a77ee['length']-0x1]&&_0x4a77ee[_0x4a77ee['length']-0x1]['forceDefaultExecution']?_0x4a77ee['pop']():(_0x34bc71['return']=_0x2bb103((..._0x53ace6)=>_0x223b6f['execute'](..._0x53ace6,{'forceDefaultExecution':!0x0}),..._0x4a77ee),_0x34bc71['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x123fb4){let _0xa6fb07,_0x66574b;const _0xc33f62=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0xa6fb07=_0x123fb4();}catch(_0x50f23d){_0x66574b=_0x50f23d;}return _0xc33f62||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x66574b&&_0x2bc211['rethrowUnexpectedError'](_0x66574b,this),_0xa6fb07;}['markInsertion'](_0x3f984f,_0x10acc5=null,_0x25a45e={}){if(_0x3f984f['isCollapsed'])return null;const _0x1da037=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x25a45e['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5004f0,meta:_0xd4098b}of this['_findSuggestions'](_0x3f984f,'insertion'))if(_0xd4098b['isOwn']){if(!_0xd4098b['isNextTo']){if(_0xd4098b['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Wt(_0x5004f0,_0x25a45e))continue;return _0x5004f0;}if(Wt(_0x5004f0,_0x25a45e))return _0x5004f0;this['_breakSuggestionMarker'](_0x5004f0,_0x3f984f['start'],_0x3f984f['end']);break;}if(_0x10acc5==_0x5004f0['subType']&&Wt(_0x5004f0,_0x25a45e)){const _0x389255=_0x5004f0['getFirstRange']();return _0x389255['start']['isEqual'](_0x3f984f['end'])?this['_setSuggestionRange'](_0x5004f0,this['_model']['createRange'](_0x3f984f['start'],_0x389255['end'])):this['_setSuggestionRange'](_0x5004f0,this['_model']['createRange'](_0x389255['start'],_0x3f984f['end'])),_0x5004f0;}}const _0x38006=_0x165ef7(),_0x1be462=_0x1da037['id'],_0x3868c5=_0x10acc5?'insertion:'+_0x10acc5:'insertion',_0x2c498e=this['_setSuggestionData']({'id':_0x38006,'type':_0x3868c5,'createdAt':new Date(),'authorId':_0x1be462,'attributes':_0x25a45e});return this['_addSuggestionMarker'](_0x3868c5,_0x38006,_0x1be462,_0x3f984f),_0x2c498e;}['markMultiRangeInsertion'](_0x519df5,_0x237b98='multi',_0x13ec80={}){const _0x2841f4=this['editor']['plugins']['get']('Users')['me'],_0x217db7=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x237b98,'join');this['_trackingSessionId']&&(_0x13ec80['trackingSessionId']=this['_trackingSessionId']);for(const _0xf0a349 of this['getSuggestions']())if(_0xf0a349['author']['id']==_0x2841f4['id']&&'insertion'==_0xf0a349['type']&&_0xf0a349['subType']==_0x237b98&&Wt(_0xf0a349,_0x13ec80)&&(_0x217db7(_0xf0a349['getRanges'](),_0x519df5)||_0x217db7(_0x519df5,_0xf0a349['getRanges']()))){for(const _0x52fb1b of _0x519df5)_0xf0a349['addRange'](_0x52fb1b);return _0xf0a349;}for(const {suggestion:_0x2d6132,meta:_0x19c2bb}of this['_findSuggestions'](_0x519df5,'insertion')){if(!_0x19c2bb['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x19c2bb['containsRangeInObject'])continue;if(!Wt(_0x2d6132,_0x13ec80))continue;let _0x1e7f7f=!0x0;for(const _0x1edc33 of _0x2d6132['getRanges']())for(const _0xb33c00 of _0x519df5)if(!_0x1edc33['containsRange'](_0xb33c00)){_0x1e7f7f=!0x1;break;}if(_0x1e7f7f)return _0x2d6132;}const _0x441ac2=_0x165ef7(),_0x2f64ec=_0x2841f4['id'],_0x5a222d='insertion:'+_0x237b98,_0x2961e2=this['_setSuggestionData']({'id':_0x441ac2,'type':_0x5a222d,'createdAt':new Date(),'authorId':_0x2f64ec,'attributes':_0x13ec80});for(const _0x1bb45d of _0x519df5)this['_addSuggestionMarker'](_0x5a222d,_0x441ac2,_0x2f64ec,_0x1bb45d,x['getMultiRangeId']());return _0x2961e2;}['markInlineFormat'](_0x273ad6,_0x31c58f,_0x236688=null,_0x34c6db={}){if(_0x236688=_0x236688||Lt(_0x31c58f),_0x273ad6['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x34c6db['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2333cd=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x236688,'accept');return this['forceDefaultExecution'](()=>_0x2333cd([_0x273ad6],_0x31c58f,_0x34c6db)),null;}const _0x2b0efa=this['editor']['plugins']['get']('Users')['me'],_0x5c01b2=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3fb4f9,meta:_0x2f0767}of this['_findSuggestions'](_0x273ad6,'insertion'))_0x2f0767['isOwn']&&!_0x2f0767['isInsideObject']&&_0x5c01b2['push'](..._0x3fb4f9['getRanges']());}const _0x4e493a=function(_0x369c7d,_0x214ded){const _0x11c919=[];for(const _0x551403 of _0x214ded){const _0x56aedb=_0x369c7d['getIntersection'](_0x551403);_0x56aedb&&_0x11c919['push'](_0x56aedb);}return _0x11c919;}(_0x273ad6,_0x5c01b2),_0x490f5a=function(_0x345832,_0x2a9d72){const _0x2c0464=[_0x345832];for(const _0x4f7569 of _0x2a9d72){let _0xbf1068=0x0;for(;_0xbf1068<_0x2c0464['length'];){const _0x114cad=_0x2c0464[_0xbf1068]['getDifference'](_0x4f7569);_0x2c0464['splice'](_0xbf1068,0x1,..._0x114cad),_0xbf1068+=_0x114cad['length'];}}return _0x2c0464;}(_0x273ad6,_0x5c01b2);_0x4e493a['length']&&this['_model']['change'](()=>{for(const _0x407134 of _0x4e493a){const _0x5ac8ee=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x236688,'accept');this['forceDefaultExecution'](()=>_0x5ac8ee([_0x407134],_0x31c58f,_0x34c6db));}});for(const _0x508751 of _0x490f5a){let _0x370727=null,_0x22253b=_0x508751['start'],_0x957c72=_0x508751['end'];for(const {suggestion:_0x370dcb,meta:_0x1ecb15}of this['_findSuggestions'](_0x508751,'formatInline')){if(!_0x1ecb15['isOwn'])continue;if(_0x370dcb['subType']!=_0x236688)continue;if(!Wt(_0x370dcb,_0x34c6db))continue;const _0x280400=_0x370dcb['getFirstRange']();if(_0x280400['containsRange'](_0x508751,!0x0))return null;_0x22253b=_0x22253b['isBefore'](_0x280400['start'])?_0x22253b:_0x280400['start'],_0x957c72=_0x957c72['isAfter'](_0x280400['end'])?_0x957c72:_0x280400['end'],_0x370727?_0x280400['start']['isBefore'](_0x370727['getFirstRange']()['start'])?(_0x370727['removeMarkers'](),_0x370727=_0x370dcb):_0x370dcb['removeMarkers']():_0x370727=_0x370dcb;}const _0x2832af=this['_model']['createRange'](_0x22253b,_0x957c72);if(_0x370727)this['_setSuggestionRange'](_0x370727,_0x2832af);else{const _0x3a0236=_0x165ef7(),_0x606ba9=_0x2b0efa['id'];this['_setSuggestionData']({'id':_0x3a0236,'type':'formatInline:'+_0x236688,'data':_0x31c58f,'createdAt':new Date(),'authorId':_0x606ba9,'attributes':_0x34c6db}),this['_addSuggestionMarker']('formatInline:'+_0x236688,_0x3a0236,_0x606ba9,_0x2832af);}}return null;}['markBlockFormat'](_0x1f9957,_0x3d6572,_0x33bfa9=[],_0x2b97b0=null,_0x533fed={}){_0x3d6572['formatGroupId']||(_0x3d6572['formatGroupId']=_0x3d6572['commandName']),_0x3d6572['multipleBlocks']=_0x1f9957['is']('range'),_0x2b97b0=_0x2b97b0||Lt(_0x3d6572);const _0x40db74=_0x33bfa9['map'](_0x4fb5b0=>Ht(_0x4fb5b0,this['_model'])),_0x53fcfb=_0x1f9957['is']('range')?_0x1f9957:Ht(_0x1f9957,this['_model']);if(this['_trackingSessionId']&&(_0x533fed['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x6987a0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2b97b0,'accept');return this['forceDefaultExecution'](()=>_0x6987a0([_0x53fcfb],_0x3d6572,_0x533fed)),null;}_0x40db74['push'](_0x53fcfb);let _0x73f8d3=!0x0;for(const _0x429a70 of _0x40db74)if(!this['_rangeIsInLocalUserInsertion'](_0x429a70)){_0x73f8d3=!0x1;break;}if(_0x73f8d3&&'always'!==this['_trackFormatChanges']){const _0x2c20fc=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2b97b0,'accept');return this['forceDefaultExecution'](()=>_0x2c20fc([_0x53fcfb],_0x3d6572,_0x533fed)),null;}let _0x19c037=null,_0x4671c8=_0x53fcfb['start'],_0x23f5d5=_0x53fcfb['end'];for(const {suggestion:_0xefda7b,meta:_0xbe2f96}of this['_findSuggestions'](_0x53fcfb,'formatBlock')){if(!_0xbe2f96['isOwn'])continue;if(_0xbe2f96['isNextTo']||_0xbe2f96['containsRangeInObject']||_0xbe2f96['isInsideObject'])continue;if(_0xefda7b['data']['formatGroupId']!=_0x3d6572['formatGroupId'])continue;if(!Wt(_0xefda7b,_0x533fed))continue;const _0x3a2974=_0xefda7b['getFirstRange']();if(_0xefda7b['subType']==_0x2b97b0){if(_0x3a2974['containsRange'](_0x53fcfb,!0x0))return null;_0x4671c8=_0x4671c8['isBefore'](_0x3a2974['start'])?_0x4671c8:_0x3a2974['start'],_0x23f5d5=_0x23f5d5['isAfter'](_0x3a2974['end'])?_0x23f5d5:_0x3a2974['end'],_0x19c037?_0x3a2974['start']['isBefore'](_0x19c037['getFirstRange']()['start'])?(_0x19c037['removeMarkers'](),_0x19c037=_0xefda7b):_0xefda7b['removeMarkers']():_0x19c037=_0xefda7b;}else{const _0x2ddce9=_0x53fcfb['getIntersection'](_0x3a2974);this['_cutOutSuggestionMarker'](_0xefda7b,_0x2ddce9);}}const _0x2398ad=this['editor']['plugins']['get']('Users')['me'],_0x2718e8=_0x165ef7(),_0x436189=_0x2398ad['id'];if(_0x19c037)return this['_setSuggestionRange'](_0x19c037,this['_model']['createRange'](_0x4671c8,_0x23f5d5)),_0x19c037;{const _0x57d43e=this['_setSuggestionData']({'id':_0x2718e8,'type':'formatBlock:'+_0x2b97b0,'data':_0x3d6572,'createdAt':new Date(),'authorId':_0x436189,'attributes':_0x533fed});return this['_addSuggestionMarker']('formatBlock:'+_0x2b97b0,_0x2718e8,_0x436189,this['_model']['createRange'](_0x4671c8,_0x23f5d5)),_0x57d43e;}}['markMultiRangeBlockFormat'](_0x41c12c,_0xab2bc7,_0x333ef2=[],_0x4fe909=null,_0x52f41c={}){_0xab2bc7['formatGroupId']||(_0xab2bc7['formatGroupId']=_0xab2bc7['commandName']);const _0x3e494f=_0x41c12c[0x0];_0xab2bc7['multipleBlocks']=_0x3e494f['is']('range'),_0x4fe909=_0x4fe909||Lt(_0xab2bc7);const _0x2f9647=_0x333ef2['map'](_0x2d7719=>Ht(_0x2d7719,this['_model'])),_0x53c82a=_0x3e494f['is']('range')?_0x41c12c:_0x41c12c['map'](_0x4f4a8b=>Ht(_0x4f4a8b,this['_model']));if(this['_trackingSessionId']&&(_0x52f41c['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x35ac2d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4fe909,'accept');return this['forceDefaultExecution'](()=>_0x35ac2d(_0x53c82a,_0xab2bc7,_0x52f41c)),null;}_0x2f9647['push'](..._0x53c82a);let _0x34fdf1=!0x0;for(const _0x32e562 of _0x2f9647)if(!this['_rangeIsInLocalUserInsertion'](_0x32e562)){_0x34fdf1=!0x1;break;}if(_0x34fdf1&&'always'!==this['_trackFormatChanges']){const _0x2f39b8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4fe909,'accept');return this['forceDefaultExecution'](()=>_0x2f39b8(_0x53c82a,_0xab2bc7,_0x52f41c)),null;}const _0x555ed8=this['editor']['plugins']['get']('Users')['me'];for(const _0xed8f of this['getSuggestions']()){if(_0xed8f['author']['id']!=_0x555ed8['id'])continue;if('formatBlock'!=_0xed8f['type']||_0xed8f['data']['formatGroupId']!=_0xab2bc7['formatGroupId'])continue;if(!Wt(_0xed8f,_0x52f41c))continue;const _0x3250d5=_0xed8f['subType']==_0x4fe909;for(let _0x523c50=0x0;_0x523c50<_0x53c82a['length'];_0x523c50++){const _0x18cb92=_0x53c82a[_0x523c50];for(const _0x17c5c2 of _0xed8f['getMarkers']()){const _0x1345d3=_0x17c5c2['getRange']();if(_0x18cb92['isEqual'](_0x1345d3)){_0x3250d5?(_0x53c82a['splice'](_0x523c50,0x1),_0x523c50--):_0xed8f['removeMarker'](_0x17c5c2['name']);break;}}}}if(0x0==_0x53c82a['length'])return null;const _0x44ad10=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4fe909,'join');for(const _0x47b2ec of this['getSuggestions']())if(_0x47b2ec['author']['id']==_0x555ed8['id']&&'formatBlock'==_0x47b2ec['type']&&_0x47b2ec['data']['formatGroupId']==_0xab2bc7['formatGroupId']&&_0x47b2ec['subType']==_0x4fe909&&Wt(_0x47b2ec,_0x52f41c)&&(_0x44ad10(_0x47b2ec['getRanges'](),_0x53c82a)||_0x44ad10(_0x53c82a,_0x47b2ec['getRanges']()))){for(const _0x529daf of _0x53c82a)_0x47b2ec['addRange'](_0x529daf);return _0x47b2ec;}const _0x382e6c=_0x165ef7(),_0x704aa9=_0x555ed8['id'],_0x10d9c2='formatBlock:'+_0x4fe909,_0x2421c4=this['_setSuggestionData']({'id':_0x382e6c,'type':_0x10d9c2,'data':_0xab2bc7,'createdAt':new Date(),'authorId':_0x704aa9,'attributes':_0x52f41c});for(const _0x2a815e of _0x53c82a)this['_addSuggestionMarker'](_0x10d9c2,_0x382e6c,_0x704aa9,_0x2a815e,x['getMultiRangeId']());return _0x2421c4;}['markDeletion'](_0x69575a,_0x21755f=null,_0x388e20={}){if(_0x69575a['isCollapsed'])return null;const _0x502a84=this['editor']['plugins']['get']('Users')['me'],_0x2109e8=new _0x246516(_0x69575a['start'],_0x69575a['end']);this['_trackingSessionId']&&(_0x388e20['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x57c409,meta:_0x4dd627}of this['_findSuggestions'](_0x2109e8,'insertion'))if(_0x4dd627['isOwn']&&!_0x4dd627['isNextTo']){if(_0x57c409['isMultiRange']){const _0x4163fb=_0x57c409['getRanges']()['filter'](_0x2df587=>'$graveyard'!=_0x2df587['root']['rootName']);_0x4163fb['every'](_0x3b1e37=>_0x2109e8['containsRange'](_0x3b1e37,!0x0))&&_0x57c409['discard']();if(_0x4163fb['some'](_0x1a88c6=>_0x1a88c6['containsRange'](_0x2109e8,!0x0))){const _0x439670=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x21755f,'accept');return this['forceDefaultExecution'](()=>_0x439670([_0x2109e8],null,_0x388e20)),null;}}else{const _0x20bc8e=_0x2109e8['getIntersection'](_0x57c409['getFirstRange']());null!==_0x20bc8e&&_0x57c409['_onDiscard']([_0x20bc8e],null,_0x388e20);}}if(_0x2109e8['detach'](),_0x2109e8['isCollapsed']||'$graveyard'==_0x2109e8['root']['rootName'])return null;let _0xf8bcbc=null,_0x51f81a=_0x2109e8['start'],_0x10b5e0=_0x2109e8['end'];const _0x257cb8=this['_findSuggestions'](_0x2109e8,'deletion');for(const {suggestion:_0x286ae7,meta:_0x43caf9}of _0x257cb8){const _0x4fc79e=this['_model']['createRange'](_0x51f81a,_0x10b5e0);if(_0x43caf9['isOwn']&&(this['_mergeNestedSuggestions']||!_0x43caf9['containsRangeInObject']&&!_0x43caf9['isInsideObject'])){if(_0x286ae7['isMultiRange']){if(!Wt(_0x286ae7,_0x388e20))continue;let _0x361eb7=!0x0;for(const _0x22653d of _0x286ae7['getRanges']()){if(_0x22653d['containsRange'](_0x4fc79e,!0x0))return _0x286ae7;_0x4fc79e['containsRange'](_0x22653d)||(_0x361eb7=!0x1);}_0x361eb7&&_0x286ae7['discard']();}else{const _0x43be74=_0x286ae7['getFirstRange']();if(_0x43be74['containsRange'](_0x4fc79e,!0x0))return _0x286ae7;if(!Wt(_0x286ae7,_0x388e20)){_0x4fc79e['containsRange'](_0x43be74)?_0x286ae7['removeMarkers']():_0x43be74['containsPosition'](_0x51f81a)?_0x51f81a=_0x43be74['end']:_0x43be74['containsPosition'](_0x10b5e0)&&(_0x10b5e0=_0x43be74['start']);continue;}_0x51f81a=_0x51f81a['isBefore'](_0x43be74['start'])?_0x51f81a:_0x43be74['start'],_0x10b5e0=_0x10b5e0['isAfter'](_0x43be74['end'])?_0x10b5e0:_0x43be74['end'],_0x388e20=Object['assign']({},_0x286ae7['attributes']),_0xf8bcbc?_0x43be74['start']['isBefore'](_0xf8bcbc['getFirstRange']()['start'])?(_0xf8bcbc['removeMarkers'](),_0xf8bcbc=_0x286ae7):_0x286ae7['removeMarkers']():_0xf8bcbc=_0x286ae7;}}}if(_0xf8bcbc)return this['_setSuggestionRange'](_0xf8bcbc,this['_model']['createRange'](_0x51f81a,_0x10b5e0)),_0xf8bcbc;{const _0x2d4854=_0x165ef7(),_0x28ecde=this['_model']['createRange'](_0x51f81a,_0x10b5e0),_0x1b03bc=_0x502a84['id'],_0x45641c=_0x21755f?'deletion:'+_0x21755f:'deletion',_0x4c8314=this['_setSuggestionData']({'id':_0x2d4854,'type':_0x45641c,'createdAt':new Date(),'authorId':_0x1b03bc,'attributes':_0x388e20});return this['_addSuggestionMarker'](_0x45641c,_0x2d4854,_0x1b03bc,_0x28ecde),_0x4c8314;}}['markMultiRangeDeletion'](_0x1847cc,_0x39014e='multi',_0x2f65f8={}){const _0x5db0e8=this['editor']['plugins']['get']('Users')['me'],_0x39ee53=_0x1847cc['map'](_0x4a0458=>new _0x246516(_0x4a0458['start'],_0x4a0458['end'])),_0x555bbe=new Set();this['_trackingSessionId']&&(_0x2f65f8['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x455bdf,meta:_0x8542ed}of this['_findSuggestions'](_0x39ee53,'insertion'))_0x8542ed['isOwn']&&!_0x8542ed['isNextTo']&&_0x555bbe['add'](_0x455bdf);for(const _0x555781 of _0x555bbe)if(_0x555781['isMultiRange']){const _0x168526=_0x555781['getRanges']();(!_0x555781['attributes']||!_0x555781['attributes']['skipNestingCheck'])&&(_0x168526['every'](_0x3910af=>_0x39ee53['some'](_0x2b2315=>_0x2b2315['containsRange'](_0x3910af,!0x0)))&&_0x555781['discard']());if(_0x39ee53['every'](_0x1d76d5=>_0x168526['some'](_0x1f7d30=>_0x1f7d30['containsRange'](_0x1d76d5,!0x0)))){const _0x2895fd=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x39014e,'accept');return this['forceDefaultExecution'](()=>_0x2895fd(_0x1847cc,null,_0x2f65f8)),null;}}else{const _0x374bf0=_0x555781['getFirstRange']();_0x39ee53['some'](_0x18bbae=>_0x18bbae['containsRange'](_0x374bf0,!0x0))&&_0x555781['discard']();if(_0x39ee53['every'](_0x5bf008=>_0x374bf0['containsRange'](_0x5bf008,!0x0))){const _0x303651=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x39014e,'accept');return this['forceDefaultExecution'](()=>_0x303651(_0x39ee53,null,_0x2f65f8)),null;}}const _0x2e3888=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x39014e,'join');let _0x260c52=null;for(const _0x44fa7a of this['getSuggestions']())if(_0x44fa7a['author']['id']==_0x5db0e8['id']&&_0x44fa7a['isInContent']&&'deletion'==_0x44fa7a['type']&&_0x44fa7a['subType']==_0x39014e&&Wt(_0x44fa7a,_0x2f65f8)&&(_0x2e3888(_0x44fa7a['getRanges'](),_0x39ee53)||_0x2e3888(_0x39ee53,_0x44fa7a['getRanges']()))){if(_0x260c52){if(_0x44fa7a['commentThread']&&_0x44fa7a['commentThread']['length'])continue;for(const _0x16dae3 of _0x44fa7a['getRanges']())_0x260c52['isIntersectingWithRange'](_0x16dae3)||_0x260c52['addRange'](_0x16dae3);_0x44fa7a['removeMarkers']();}else{_0x260c52=_0x44fa7a;for(const _0x433fd0 of _0x39ee53)_0x44fa7a['isIntersectingWithRange'](_0x433fd0)||_0x44fa7a['addRange'](_0x433fd0);}}if(_0x260c52)return _0x260c52;_0x555bbe['clear']();for(const {suggestion:_0x2c7d24,meta:_0x3e9743}of this['_findSuggestions'](_0x39ee53,'deletion'))_0x3e9743['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3e9743['containsRangeInObject']&&!_0x3e9743['isInsideObject'])&&Wt(_0x2c7d24,_0x2f65f8)&&_0x555bbe['add'](_0x2c7d24);for(const _0x41385a of _0x555bbe){const _0x2c4a45=_0x41385a['getRanges']();if(!_0x2f65f8||!_0x2f65f8['skipNestingCheck']){if(_0x39ee53['every'](_0x357cd=>_0x2c4a45['some'](_0x1abbbd=>_0x1abbbd['containsRange'](_0x357cd,!0x0))))return _0x41385a;}(!_0x41385a['attributes']||!_0x41385a['attributes']['skipNestingCheck'])&&(_0x2c4a45['every'](_0x4657f3=>_0x39ee53['some'](_0x2609a0=>_0x2609a0['containsRange'](_0x4657f3,!0x0)))&&_0x41385a['discard']());}const _0x134679=_0x165ef7(),_0x5f534f=_0x5db0e8['id'],_0x431a11='deletion:'+_0x39014e,_0x5429f2=this['_setSuggestionData']({'id':_0x134679,'type':_0x431a11,'createdAt':new Date(),'authorId':_0x5f534f,'attributes':_0x2f65f8});for(const _0x325c1e of _0x39ee53)_0x325c1e['detach'](),_0x325c1e['isCollapsed']||'$graveyard'==_0x325c1e['root']['rootName']||this['_addSuggestionMarker'](_0x431a11,_0x134679,_0x5f534f,_0x325c1e,x['getMultiRangeId']());return _0x5429f2;}['markAttributeChange'](_0x23e098,_0x5771cb,_0x4db682,_0xf4a091,_0x4f0e0c){if(_0x23e098['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2aa222=this['editor']['plugins']['get']('Users')['me']['id'],_0x9da36d=Array['from'](this['_suggestions']['values']())['filter'](_0x3a862f=>'attribute'==_0x3a862f['type']&&_0x3a862f['data']['key']==_0x5771cb&&_0x3a862f['isIntersectingWithRange'](_0x23e098));if(this['_trackingSessionId']&&(_0x4f0e0c['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x2a88c4=this['_findSuggestions'](_0x23e098,'insertion')['filter'](({meta:_0x55e456})=>_0x55e456['isOwn']&&!_0x55e456['isInsideObject']&&!_0x55e456['isNextTo'])['map'](({suggestion:_0x10ce37})=>_0x10ce37);_0x9da36d['unshift'](..._0x2a88c4);}const _0x3ed58a=new Map([[_0x23e098,_0x4db682]]);for(const _0x4c8a80 of _0x9da36d){const _0x138698='attribute'==_0x4c8a80['type']?_0x4c8a80['data']['oldValue']:void 0x0,_0x3ac552=_0x4c8a80['getFirstRange'](),_0x2c117d=Array['from'](_0x3ed58a['keys']())['find'](_0x54d893=>_0x54d893['isIntersecting'](_0x3ac552));if(!_0x2c117d)continue;const _0x16834b=_0x2c117d['getDifference'](_0x3ac552);this['_isBlockAttribute'](_0x5771cb)&&'insertion'==_0x4c8a80['type']&&0x0!=_0x16834b['length']||(_0x3ed58a['delete'](_0x2c117d),_0x16834b['forEach'](_0x526704=>{_0x3ed58a['set'](_0x526704,_0x4db682);}),'insertion'!=_0x4c8a80['type']&&_0x138698!=_0xf4a091&&_0x3ed58a['set'](_0x2c117d['getIntersection'](_0x3ac552),_0x138698));}const _0xe67e71=[];for(const [_0x4e075a,_0x35b079]of _0x3ed58a){const _0x5dd227=_0x165ef7(),_0xea9d69={'key':_0x5771cb,'oldValue':_0x35b079,'newValue':_0xf4a091};_0x5771cb['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':_0x5771cb});const _0x1a490c=('attribute:'+(_0x5771cb+'|'+Lt({'newValue':_0xf4a091})))['substring'](0x0,0x3c),_0x433c19=this['_setSuggestionData']({'id':_0x5dd227,'type':_0x1a490c,'data':_0xea9d69,'createdAt':new Date(),'authorId':_0x2aa222,'attributes':_0x4f0e0c});_0xe67e71['push'](_0x433c19),this['_addSuggestionMarker'](_0x1a490c,_0x5dd227,_0x2aa222,_0x4e075a);}return _0xe67e71;}['enableDefaultAttributesIntegration'](_0x14f2a2){this['enableCommand'](_0x14f2a2,(_0x18b11c,..._0x42a1d5)=>{this['_recordAttributeChanges'](()=>{_0x18b11c(..._0x42a1d5);});});}['registerBlockAttribute'](_0x191c13){this['_blockAttributeKeys']['add'](_0x191c13);}['registerInlineAttribute'](_0x10dda6){this['_inlineAttributeKeys']['add'](_0x10dda6);}['startTrackingSession'](_0x37e430){return this['_trackingSessionId']=void 0x0!==_0x37e430?_0x37e430:_0x165ef7(),this['_trackingSessionId'];}['_getAttributeKey'](_0x291590){return'attribute'==_0x291590['type']?_0x291590['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x2859e6,_0xcef5be){const _0x4506be=_0x2859e6['getFirstMarker']();this['_model']['change'](_0x50768b=>{_0x50768b['updateMarker'](_0x4506be,{'range':_0xcef5be});});}['_addThreadToSuggestion'](_0xea31d0){const _0x3a3b1f=_0xea31d0['id'],_0x2d0857=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x3a3b1f)||this['_commentsRepository']['addCommentThread']({'channelId':_0x2d0857,'threadId':_0x3a3b1f,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3e6d75=this['_commentsRepository']['getCommentThread'](_0x3a3b1f);_0x3e6d75['unbind']('isRemovable'),_0x3e6d75['isRemovable']=!0x1,_0xea31d0['commentThread']=_0x3e6d75;}['_checkSuggestionCorrectness'](_0x57f67b,_0x27c700,_0x144709,_0x1ccca2){if(_0x57f67b['type']!=_0x27c700||_0x57f67b['subType']!=_0x144709||_0x57f67b['creator']['id']!=_0x1ccca2)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2bc211('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x2713cf,_0xfa9d29){const _0x189b5c=_0x2713cf['getFirstRange']();if(_0xfa9d29['isEqual'](_0x189b5c))_0x2713cf['removeMarkers']();else{if(_0x189b5c['containsRange'](_0xfa9d29)){const _0x599540=this['_model']['createPositionAt'](_0xfa9d29['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2713cf,this['_model']['createRange'](_0x189b5c['start'],_0x599540));const _0x2ef2e7=_0x165ef7(),_0x57d9e5=_0x2713cf['creator']['id'],_0x304860=_0x2713cf['type']+':'+_0x2713cf['subType'];this['_setSuggestionData']({'id':_0x2ef2e7,'type':_0x304860,'createdAt':new Date(),'authorId':_0x57d9e5,'data':_0x2713cf['data'],'attributes':_0x2713cf['attributes']});const _0x443d0e=this['_model']['createPositionAt'](_0xfa9d29['end']['parent'],'after'),_0x1707f9=this['_model']['createRange'](_0x443d0e,_0x189b5c['end']);this['_addSuggestionMarker'](_0x304860,_0x2ef2e7,_0x57d9e5,_0x1707f9);}else{if(_0x189b5c['containsPosition'](_0xfa9d29['start'])){const _0x22b1fe=this['_model']['createPositionAt'](_0xfa9d29['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2713cf,this['_model']['createRange'](_0x189b5c['start'],_0x22b1fe));}else{const _0x3384c1=this['_model']['createPositionAt'](_0xfa9d29['end']['parent'],'after');this['_setSuggestionRange'](_0x2713cf,this['_model']['createRange'](_0x3384c1,_0x189b5c['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x13b9e3){for(const {suggestion:_0x2d5ab2,meta:_0x51d746}of this['_findSuggestions'](_0x13b9e3,'insertion')){if(!_0x51d746['isOwn'])continue;const _0x423db4=_0x2d5ab2['getRanges']();for(const _0x494c98 of _0x423db4)if(!_0x13b9e3['getDifference'](_0x494c98)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x546a7e){const _0x2fa2b3=this['editor']['plugins']['get']('Users')['getUser'](_0x546a7e);if(!_0x2fa2b3)throw new _0x2bc211('track-changes-user-not-found',this);return _0x2fa2b3;}['_getExternalAuthor'](_0xaba032){const _0x515aa4=this['editor']['plugins']['get']('Users'),_0x498e69=_0x218c4d('external:'+_0xaba032),_0x56aaea=_0x515aa4['getUser'](_0x498e69);return _0x56aaea||_0x515aa4['addUser']({'id':_0x498e69,'name':_0xaba032});}['_createSuggestion'](_0x4084c3,_0x41a711,_0x2eae1f,_0x1ae058,_0x2c39f4,_0x31c2db){const _0x2ee02b=this['_getAuthorFromId'](_0x1ae058),_0x35d094=this['_suggestionFactory']['buildSuggestion'](_0x4084c3,_0x41a711,_0x2eae1f,_0x2ee02b,_0x2c39f4,_0x143fc8=>{this['_updateSuggestionData'](_0x2eae1f,{'attributes':_0x143fc8});const _0x15391a=this['getSuggestion'](_0x2eae1f);this['_joinWithAdjacentSuggestions'](new Set([_0x15391a])),this['_refreshSuggestionsChain'](new Set([_0x15391a]));},_0x31c2db);return this['listenTo'](_0x35d094,'accept',()=>{this['_updateSuggestionData'](_0x2eae1f,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x35d094,'discard',()=>{this['_updateSuggestionData'](_0x2eae1f,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2eae1f,_0x35d094),this['_suggestionState']['set'](_0x35d094,'notReady'),_0x35d094;}['_splitMarkerName'](_0x4209f8){const _0x545e65=_0x4209f8['split'](':');return{'group':_0x545e65[0x0],'type':_0x545e65[0x1],'subType':_0x545e65['length']>=0x5?_0x545e65[0x2]:null,'id':_0x545e65['length']<0x5?_0x545e65[0x2]:_0x545e65[0x3],'authorId':_0x545e65['length']<0x5?_0x545e65[0x3]:_0x545e65[0x4],'markerCount':0x6==_0x545e65['length']?_0x545e65[0x5]:null};}['_breakSuggestionMarker'](_0x418706,_0x27c19f,_0x4f0419){const _0x2319f0=_0x418706['getFirstRange'](),_0x43c170=_0x2319f0['start'],_0x4b5d76=_0x2319f0['end'];this['_setSuggestionRange'](_0x418706,this['_model']['createRange'](_0x43c170,_0x27c19f));const _0x5892df=_0x165ef7(),_0x1e5db0=_0x418706['creator']['id'],_0x2d7220=_0x418706['type']+(_0x418706['subType']?':'+_0x418706['subType']:'');this['_setSuggestionData']({'id':_0x5892df,'type':_0x2d7220,'createdAt':new Date(),'authorId':_0x1e5db0,'originalSuggestionId':_0x418706['_originalSuggestionId']||_0x418706['id'],'attributes':_0x418706['attributes'],'data':_0x418706['data']});const _0x4c9745=this['_getAttributeKey'](_0x418706);('formatBlock'==_0x418706['type']||_0x4c9745&&this['_isBlockAttribute'](_0x4c9745))&&(_0x4f0419=this['_model']['createPositionBefore'](_0x4f0419['parent'])),this['_addSuggestionMarker'](_0x2d7220,_0x5892df,_0x1e5db0,this['_model']['createRange'](_0x4f0419,_0x4b5d76));}['_findSuggestions'](_0x334c72,_0x227c2c=null){const _0x3b911a=[],_0x1febeb=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x334c72)||(_0x334c72=[_0x334c72]);for(const _0x539253 of this['getSuggestions']()){if(!_0x539253['isInContent'])continue;if(_0x227c2c&&_0x539253['type']!=_0x227c2c)continue;let _0x1f42ae=!0x1;for(const _0x2fcacb of _0x539253['getRanges']()){for(const _0x1d4c69 of _0x334c72){const _0x52a2f5=_0x1d4c69['start']['isEqual'](_0x2fcacb['end'])||_0x1d4c69['end']['isEqual'](_0x2fcacb['start']);if(_0x52a2f5||_0x1d4c69['getIntersection'](_0x2fcacb)){const _0x47ce83=_0x1d4c69['containsRange'](_0x2fcacb)&&Ft(this['_model']['schema'],_0x2fcacb['start'],_0x1d4c69),_0x429f98=_0x2fcacb['containsRange'](_0x1d4c69)&&Ft(this['_model']['schema'],_0x1d4c69['start'],_0x2fcacb);_0x3b911a['push']({'suggestion':_0x539253,'meta':{'isOwn':_0x1febeb==_0x539253['author'],'isNextTo':_0x52a2f5,'isInsideObject':_0x47ce83,'containsRangeInObject':_0x429f98}}),_0x1f42ae=!0x0;break;}}if(_0x1f42ae)break;}}return _0x3b911a;}['_addSuggestionMarker'](_0x3c1965,_0x18563b,_0x285c42,_0x13552a,_0x2bf91e){this['_model']['change'](_0x2b16d1=>{let _0x19e845='suggestion:'+_0x3c1965+':'+_0x18563b+':'+_0x285c42;_0x2bf91e&&(_0x19e845=_0x19e845+':'+_0x2bf91e),_0x2b16d1['addMarker'](_0x19e845,{'range':_0x13552a,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3b5c4c){const _0x2fa57d=_0x3b5c4c['previous'],_0x92d8b0=_0x3b5c4c['next'];_0x3b5c4c['previous']=null,_0x3b5c4c['next']=null,null!=_0x2fa57d&&_0x2fa57d['next']==_0x3b5c4c&&(_0x2fa57d['next']=_0x92d8b0),null!=_0x92d8b0&&_0x92d8b0['previous']==_0x3b5c4c&&(_0x92d8b0['previous']=_0x2fa57d),'ready'==this['_suggestionState']['get'](_0x3b5c4c)&&(this['_suggestionState']['set'](_0x3b5c4c,'removed'),this['fire']('suggestionUnloaded',_0x3b5c4c,_0x2fa57d,_0x92d8b0));}['_setSuggestionData'](_0x5a36cc){const _0x24e3d4=_0x5a36cc['id'],_0x73baf3=this['addSuggestionData'](_0x5a36cc);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x539dbb=this['editor']['plugins']['get']('PendingActions'),_0x29cf13=_0x73baf3['hasComments'],_0x4e34ee=_0x73baf3['subType']?_0x73baf3['type']+':'+_0x73baf3['subType']:_0x73baf3['type'],_0x40872b=this['editor']['locale'],_0x510f9b=_0x539dbb['add'](o(_0x40872b,'PENDING_ACTION_SUGGESTION')),_0x4db904={'id':_0x24e3d4,'type':_0x4e34ee,'hasComments':_0x29cf13,'data':_0x5a36cc['data']||null,'originalSuggestionId':_0x5a36cc['originalSuggestionId']||null,'attributes':_0x73baf3['attributes']};this['_adapter']['addSuggestion'](_0x4db904)['then'](_0x1e7e7f=>{_0x73baf3['_saved']=!0x0,_0x539dbb['remove'](_0x510f9b),_0x1e7e7f&&_0x1e7e7f['createdAt']&&(this['_suggestions']['get'](_0x24e3d4)['createdAt']=_0x1e7e7f['createdAt']);})['catch'](_0x33d9ec=>{throw _0x4add95('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x73baf3['discard']();}),_0x73baf3['stopListening'](),this['_suggestions']['delete'](_0x73baf3['id']),this['_suggestionState']['delete'](_0x73baf3),_0x33d9ec;});}return _0x73baf3;}['_isBlockAttribute'](_0x36cdfe){return this['_blockAttributeKeys']['has'](_0x36cdfe);}['_updateSuggestionData'](_0x2db625,_0x29078c){const _0x447d6c=this['editor']['plugins']['get']('PendingActions'),_0x2c0665=this['getSuggestion'](_0x2db625);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x2c0665['_saved']){const _0x3f42fd=_0x447d6c['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2db625,_0x29078c)['then'](()=>{_0x447d6c['remove'](_0x3f42fd);});}else _0x2c0665['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2db625,_0x29078c);});}}['_getSuggestionData'](_0xc09874){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2bc211('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0xc09874);}['_handleNewSuggestionMarker'](_0x9ff17f){const {id:_0x46c74f,type:_0xfa4fa9,subType:_0x5a751c,authorId:_0x52aaa0}=this['_splitMarkerName'](_0x9ff17f),_0x5d101c=this['_suggestions']['get'](_0x46c74f)||this['_createSuggestion'](_0xfa4fa9,_0x5a751c,_0x46c74f,_0x52aaa0,{});switch(this['_checkSuggestionCorrectness'](_0x5d101c,_0xfa4fa9,_0x5a751c,_0x52aaa0),this['_suggestionState']['get'](_0x5d101c)){case'notReady':this['_getSuggestionData'](_0x46c74f)['then'](_0x7f670b=>{let _0x5b5f1e=Promise['resolve']();_0x7f670b['hasComments']&&(_0x5b5f1e=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x46c74f})),_0x5b5f1e['then'](()=>{this['addSuggestionData'](_0x7f670b)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x5d101c,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x46c74f,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x5d101c,'ready'),this['fire']('suggestionLoaded',_0x5d101c);break;case'ready':this['fire']('suggestionChanged',_0x5d101c);}return _0x5d101c['addMarkerName'](_0x9ff17f),_0x5d101c;}['_refreshSuggestionsChain'](_0x141d48){const _0x570452=Array['from'](_0x141d48),_0x3c6749=_0x570452['filter'](_0x5c27a2=>'attribute'==_0x5c27a2['type']);this['_refreshAttributeSuggestionsChain'](_0x3c6749);const _0x4b6b2c=_0x570452['filter'](_0xe7f539=>!_0xe7f539['isMultiRange']&&'attribute'!=_0xe7f539['type']),_0x441f98=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1a05b8=>!_0x1a05b8['isMultiRange']&&'attribute'!=_0x1a05b8['type']),_0x4a298c=_0x441f98['filter'](_0x311452=>!_0x141d48['has'](_0x311452)),_0x1527ca=new Map(_0x441f98['map'](_0xe4ff66=>[_0xe4ff66,this['_suggestionFactory']['getSuggestionCallback'](_0xe4ff66['type'],_0xe4ff66['subType'],'chain')])),_0x20e1b=new Map(_0x441f98['map'](_0x14ee75=>[_0x14ee75,_0x14ee75['getFirstRange']()])),_0x4b5f4b=new Set(),_0x5a31ec=new Set();for(let _0x4e664e=0x0;_0x4e664e<_0x4b6b2c['length'];_0x4e664e++)_0x2ee3e9(_0x4b6b2c[_0x4e664e],_0x4b6b2c,_0x4e664e+0x1);for(let _0x6ffd5=0x0;_0x6ffd5<_0x4b6b2c['length'];_0x6ffd5++)_0x2ee3e9(_0x4b6b2c[_0x6ffd5],_0x4a298c,0x0);const _0x45c2ef=new Set();for(let _0xfbe32e=0x0;_0xfbe32e<_0x4b6b2c['length'];_0xfbe32e++){const _0xed0247=_0x4b6b2c[_0xfbe32e];!_0x5a31ec['has'](_0xed0247)&&_0xed0247['previous']&&(_0x45c2ef['add'](_0xed0247['previous']),_0xed0247['previous']['next']===_0xed0247&&(_0xed0247['previous']['next']=null),_0xed0247['previous']=null),!_0x4b5f4b['has'](_0xed0247)&&_0xed0247['next']&&(_0x45c2ef['add'](_0xed0247['next']),_0xed0247['next']['previous']===_0xed0247&&(_0xed0247['next']['previous']=null),_0xed0247['next']=null);}function _0x2ee3e9(_0x49ac35,_0x1816f8,_0x419b3c){for(let _0x279d05=_0x419b3c;_0x279d05<_0x1816f8['length'];_0x279d05++){const _0x3cde9d=_0x9305f4(_0x49ac35,_0x1816f8[_0x279d05]);_0x3cde9d&&(_0x3cde9d[0x0]['next']=_0x3cde9d[0x1],_0x3cde9d[0x1]['previous']=_0x3cde9d[0x0],_0x4b5f4b['add'](_0x3cde9d[0x0]),_0x5a31ec['add'](_0x3cde9d[0x1]));}}function _0x9305f4(_0x56e90a,_0x1fa9e1){if(_0x56e90a['author']['id']!==_0x1fa9e1['author']['id'])return null;const _0x439808=_0x1527ca['get'](_0x56e90a)(_0x56e90a,_0x1fa9e1,_0x20e1b['get'](_0x56e90a),_0x20e1b['get'](_0x1fa9e1));if(!_0x439808)return null;return _0x1527ca['get'](_0x1fa9e1)(_0x56e90a,_0x1fa9e1,_0x20e1b['get'](_0x56e90a),_0x20e1b['get'](_0x1fa9e1))?_0x439808[0x1]['commentThread']&&_0x439808[0x1]['commentThread']['length']?null:_0x439808:null;}_0x45c2ef['size']&&this['_refreshSuggestionsChain'](_0x45c2ef);}['_refreshAttributeSuggestionsChain'](_0x50781c){if(0x0==_0x50781c['length'])return;const _0x25d09b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1cb7d7=>'attribute'==_0x1cb7d7['type']&&_0x1cb7d7['_isDataLoaded']),_0x1a60e3=[],_0x416674=new Map();for(const _0x340ae3 of _0x25d09b){const _0x51b87f=_0x218c4d(_0x340ae3['attributes']);_0x416674['has'](_0x51b87f)||(_0x416674['set'](_0x51b87f,_0x1a60e3['length']),_0x1a60e3['push']([]));const _0x2ff0b9=_0x416674['get'](_0x51b87f);_0x1a60e3[_0x2ff0b9]['push'](_0x340ae3);}!(function(){_0x1a60e3['sort']((_0x2ec85d,_0x3b8f75)=>{const _0x23773f=_0x2ec85d[0x0]['createdAt'],_0x1686d5=_0x3b8f75[0x0]['createdAt'];return _0x23773f==_0x1686d5?_0x2ec85d[0x0]['attributes']['groupId']<_0x3b8f75[0x0]['attributes']['groupId']?-0x1:0x1:_0x23773f<_0x1686d5?-0x1:0x1;});for(const _0x236b2c of _0x1a60e3)_0x236b2c['sort']((_0x3ea84c,_0x1950f2)=>_0x3ea84c['id']<_0x1950f2['id']?-0x1:0x1);}());for(let _0x2eb830=0x0;_0x2eb830<_0x1a60e3['length'];_0x2eb830++){if(0x0==_0x1a60e3[_0x2eb830]['length'])continue;const _0x5d446e=[];for(let _0x5acea7=_0x2eb830+0x1;_0x5acea7<_0x1a60e3['length'];_0x5acea7++)0x0!=_0x1a60e3[_0x5acea7]['length']&&_0xb70995(_0x1a60e3[_0x2eb830],_0x1a60e3[_0x5acea7])&&_0x5d446e['push'](_0x5acea7);for(const _0x5ea3fe of _0x5d446e)_0x1a60e3[_0x2eb830]=_0x1a60e3[_0x2eb830]['concat'](_0x1a60e3[_0x5ea3fe]),_0x1a60e3[_0x5ea3fe]=[];}for(const _0x14de8b of _0x1a60e3)for(let _0x23ab7b=0x0;_0x23ab7b<_0x14de8b['length'];_0x23ab7b++){const _0x3b737d=_0x14de8b[_0x23ab7b+0x1]||null;_0x14de8b[_0x23ab7b]['next']!==_0x3b737d&&(_0x14de8b[_0x23ab7b]['next']=_0x3b737d);}for(const _0x223e18 of _0x1a60e3)for(let _0x1e1231=0x0;_0x1e1231<_0x223e18['length'];_0x1e1231++){const _0x9b94e1=_0x223e18[_0x1e1231-0x1]||null;_0x223e18[_0x1e1231]['previous']!==_0x9b94e1&&(_0x223e18[_0x1e1231]['previous']=_0x9b94e1);}function _0xb70995(_0x53c8f3,_0x5f3cbf){if(_0x53c8f3[0x0]['attributes']['groupId']!==_0x5f3cbf[0x0]['attributes']['groupId']&&_0x53c8f3[0x0]['author']!==_0x5f3cbf[0x0]['author'])return!0x1;if(!function(_0x2cd7b7,_0x4b7e7a){if(!_0x2cd7b7['hasComments']&&!_0x4b7e7a['hasComments'])return!0x0;if(_0x2cd7b7['hasComments']&&_0x4b7e7a['hasComments'])return!0x1;if(_0x2cd7b7['hasComments']&&_0x4b7e7a['createdAt']<_0x2cd7b7['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x4b7e7a['hasComments']&&_0x2cd7b7['createdAt']<_0x4b7e7a['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x53c8f3[0x0],_0x5f3cbf[0x0]))return!0x1;const _0x1cf52b=Ut(_0x53c8f3[0x0]['attributes'],['groupId','trackingSessionId']),_0x10ac24=Ut(_0x5f3cbf[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x2863d8(_0x1cf52b,_0x10ac24))return!0x1;if(_0x53c8f3[0x0]['attributes']['groupId']==_0x5f3cbf[0x0]['attributes']['groupId'])return!0x0;if(_0x53c8f3[0x0]['attributes']['trackingSessionId']!==_0x5f3cbf[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x53c8f3['every'](_0x3ec849=>_0x5f3cbf['some'](_0x426615=>_0x3ec849['getFirstRange']()['isEqual'](_0x426615['getFirstRange']())))&&_0x5f3cbf['every'](_0xa5cafe=>_0x53c8f3['some'](_0x20e175=>_0xa5cafe['getFirstRange']()['isEqual'](_0x20e175['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x531149){const _0x23cf81=Array['from'](_0x531149),_0x64c6e3=this['getSuggestions']({'skipNotAttached':!0x0}),_0x2b9812=_0x64c6e3['filter'](_0x50f599=>!_0x531149['has'](_0x50f599)),_0x359429=new Map(_0x23cf81['map'](_0x587642=>[_0x587642,this['_suggestionFactory']['getSuggestionCallback'](_0x587642['type'],_0x587642['subType'],'join')])),_0x448259=new Map(_0x64c6e3['map'](_0x1b1c5e=>[_0x1b1c5e,_0x1b1c5e['getRanges']()]));for(let _0x3fd92f=0x0;_0x3fd92f<_0x23cf81['length'];_0x3fd92f++){if(_0x1410ad(this,_0x23cf81[_0x3fd92f],_0x23cf81,_0x3fd92f+0x1))return!0x0;}for(let _0x2f9ef1=0x0;_0x2f9ef1<_0x23cf81['length'];_0x2f9ef1++){if(_0x1410ad(this,_0x23cf81[_0x2f9ef1],_0x2b9812,0x0))return!0x0;}return!0x1;function _0x1410ad(_0xd74579,_0x195f07,_0x307e1d,_0x477d61){for(let _0x5f5dcf=_0x477d61;_0x5f5dcf<_0x307e1d['length'];_0x5f5dcf++){const _0x56628e=_0x307e1d[_0x5f5dcf];if(_0x56628e['type']!==_0x195f07['type']||_0x56628e['author']['id']!==_0x195f07['author']['id']||_0x56628e['subType']!==_0x195f07['subType'])continue;if(!zt(_0x195f07,_0x56628e))continue;if('attribute'==_0x195f07['type']&&_0x195f07['data']['oldValue']!=_0x56628e['data']['oldValue'])continue;if('attribute'==_0x195f07['type']&&_0xd74579['_isBlockAttribute'](_0x195f07['data']['key']))continue;if('formatBlock'==_0x195f07['type']){const _0x33d6a8=_0xd74579['editor']['model'],_0x91c3ab=_0x195f07['getContainedElement']();if(_0x91c3ab&&(_0x33d6a8['schema']['isObject'](_0x91c3ab)||_0x33d6a8['schema']['isLimit'](_0x91c3ab)))continue;}const _0x94aa28=_0x359429['get'](_0x195f07),_0x20ff71=_0x448259['get'](_0x195f07),_0x5bc1b2=_0x448259['get'](_0x56628e),_0x396ab6=_0x195f07['commentThread']&&_0x195f07['commentThread']['length'],_0xcf7670=_0x56628e['commentThread']&&_0x56628e['commentThread']['length'];if(!_0x396ab6&&_0x94aa28(_0x5bc1b2,_0x20ff71))return _0xd74579['_joinSuggestions'](_0x56628e,_0x195f07),_0x448259['delete'](_0x195f07),!0x0;if(!_0xcf7670&&_0x94aa28(_0x20ff71,_0x5bc1b2))return _0xd74579['_joinSuggestions'](_0x195f07,_0x56628e),_0x448259['delete'](_0x56628e),!0x0;}return!0x1;}}['_joinSuggestions'](_0x1cc84f,_0x160c5a){if(_0x1cc84f['isMultiRange']){for(const _0x18fcc1 of _0x160c5a['getRanges']())_0x1cc84f['addRange'](_0x18fcc1);}else{const _0x1a4aac=_0x160c5a['getFirstRange']()['end'];this['_setSuggestionRange'](_0x1cc84f,this['_model']['createRange'](_0x1cc84f['getFirstRange']()['start'],_0x1a4aac));}_0x160c5a['removeMarkers']();}['_getMarkerAnnouncementText'](_0x57bec7,_0x41b05c,_0x257ab2){const _0x368f15=_0x57bec7['startsWith']('format')||_0x57bec7['startsWith']('attribute')?'FORMATTING':_0x57bec7['toUpperCase']();return o(this['editor']['locale'],_0x41b05c+'_'+_0x368f15+'_SUGGESTION_ANNOUNCEMENT',_0x257ab2);}['_initAriaMarkerChangeAnnouncements'](){const _0x23feca=this['editor'];if(!_0x23feca['ui'])return;const {ariaLiveAnnouncer:_0x1accd3}=_0x23feca['ui'];_0x53b897(this['_model'],({left:_0x21944b,entered:_0x3f0ba2})=>{for(const _0x14bf11 of _0x21944b){const {group:_0x4bc9d7,type:_0x3f932d}=this['_splitMarkerName'](_0x14bf11['name']);if('suggestion'===_0x4bc9d7){_0x1accd3['announce'](this['_getMarkerAnnouncementText'](_0x3f932d,'LEAVE'));break;}}for(const _0x311f6b of _0x3f0ba2){const {group:_0x43bad8,type:_0x547833}=this['_splitMarkerName'](_0x311f6b['name']);if('suggestion'===_0x43bad8){_0x1accd3['announce'](this['_getMarkerAnnouncementText'](_0x547833,'ENTER',_0x3b42e3(_0x332cb9)));break;}}});}['_processAttributeChanges'](_0xf0229b){if(this['_recordAttributeSuggestions'])return!0x1;const _0x21e988=this['editor'],_0x11ef0b=_0x21e988['model']['document']['differ']['getChanges']();if(0x0==_0x11ef0b['length'])return!0x1;const _0x3bc0fb=[],_0x2e3189=_0x11ef0b['filter'](_0x789264=>'attribute'==_0x789264['type']),_0x19d9c8=_0x11ef0b['filter'](_0x555222=>'insert'==_0x555222['type']&&'$text'!=_0x555222['name']),_0x18fa49=_0x11ef0b['filter'](_0xc9196b=>'remove'==_0xc9196b['type']&&'$text'!=_0xc9196b['name']);for(const _0x5be7c8 of _0x2e3189)_0x3bc0fb['push']({'key':_0x5be7c8['attributeKey'],'newValue':_0x5be7c8['attributeNewValue'],'oldValue':_0x5be7c8['attributeOldValue'],'range':Kt(_0x5be7c8['range'],_0x21e988['model'])});for(const _0x1e09d3 of _0x19d9c8){const _0x3f6cdf=_0x18fa49['find'](_0x50958=>_0x50958['position']['isEqual'](_0x1e09d3['position']));_0x3f6cdf&&_0x3bc0fb['push']({'key':m,'newValue':_0x1e09d3['name'],'oldValue':_0x3f6cdf['name'],'range':_0x21e988['model']['createRangeOn'](_0x1e09d3['position']['nodeAfter'])});}return 0x0!=_0x3bc0fb['length']&&this['_reduceExistingSuggestions'](_0xf0229b,_0x3bc0fb);}['_processAttributeSuggestions'](_0x5eda4a){let _0x397f87=!0x1;const _0x205be7=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xd4957a=>_0xd4957a['data']['newRange']&&_0xd4957a['name']['startsWith']('suggestion:attribute:'));for(const _0x2c01df of _0x205be7){const {subType:_0x19ca77,id:_0x581a3a}=this['_splitMarkerName'](_0x2c01df['name']),_0x318cb5=_0x19ca77['split']('|')[0x0];for(const _0x47b51e of this['getSuggestions']({'skipNotAttached':!0x0}))_0x47b51e['id']!=_0x581a3a&&'attribute'==_0x47b51e['type']&&_0x47b51e['data']&&_0x47b51e['data']['key']==_0x318cb5&&_0x47b51e['getFirstRange']()['isIntersecting'](_0x2c01df['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x47b51e,_0x2c01df['data']['newRange'],_0x5eda4a),_0x397f87=!0x0);}return _0x397f87;}['_recordAttributeChanges'](_0x4540e3){this['_recordAttributeSuggestions']=!0x0,_0x4540e3();}['_isRegisteredAttribute'](_0x146eb1){const _0x583a97=this['_isBlockAttribute'](_0x146eb1),_0x550d23=this['_inlineAttributeKeys']['has'](_0x146eb1);return _0x583a97||_0x550d23;}['_reduceExistingSuggestions'](_0x3d9545,_0x4fc1b7){if(0x0==_0x4fc1b7['length'])return!0x1;let _0x1678aa=!0x1;for(const _0x3d9b13 of _0x4fc1b7){const _0x50f272=this['_findSuggestions'](_0x3d9b13['range'],'attribute')['filter'](_0x358fa4=>!_0x358fa4['meta']['isNextTo'])['map'](_0x5de16f=>_0x5de16f['suggestion']),_0x53637a=_0x218c4d({'newValue':_0x3d9b13['newValue']});_0x50f272['filter'](_0x4de121=>{const [_0x4397dc,_0x247e5e]=_0x4de121['subType']['split']('|');return _0x4397dc==_0x3d9b13['key']&&_0x247e5e!=_0x53637a;})['forEach'](_0x913024=>{this['_reduceSuggestionAttributeRange'](_0x913024,_0x3d9b13['range'],_0x3d9545),_0x1678aa=!0x0;});}return _0x1678aa;}['_reduceSuggestionAttributeRange'](_0x5bead7,_0x5245ce,_0x59b855){const _0x1dc52b=_0x5bead7['getFirstRange']()['getDifference'](_0x5245ce);0x0!==_0x1dc52b['length']?0x1!==_0x1dc52b['length']?this['_breakSuggestionMarker'](_0x5bead7,_0x5245ce['start'],_0x5245ce['end']):this['_setSuggestionRange'](_0x5bead7,_0x1dc52b[0x0]):_0x59b855['removeMarker'](_0x5bead7['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0xb2e3d0){this['_editor']=_0xb2e3d0,this['_model']=_0xb2e3d0['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x3f760d,_0x5d5fcc,_0x1edb16,_0x553179,_0x6d383f,_0x146ced,_0x51432d){return new x(this['_model'],{'type':_0x3f760d,'subType':_0x5d5fcc,'id':_0x1edb16,'originalSuggestionId':_0x51432d,'author':_0x553179,'creator':_0x553179,'attributes':_0x6d383f,'onAttributesChange':_0x146ced,'onAccept':(..._0x291071)=>this['getSuggestionCallback'](_0x3f760d,_0x5d5fcc,'accept')(..._0x291071),'onDiscard':(..._0x562a77)=>this['getSuggestionCallback'](_0x3f760d,_0x5d5fcc,'discard')(..._0x562a77)});}['registerCustomCallback'](_0x533a35,_0x118e7f,_0x28d9c4,_0x3cc9bf){const _0x4ad75f=_0x533a35+':'+_0x118e7f+':'+_0x28d9c4;this['_customCallbacks']['set'](_0x4ad75f,_0x3cc9bf);}['getSuggestionCallback'](_0x6ef2f6,_0x50c222,_0x75ad68){const _0x366163=_0x6ef2f6+':'+_0x50c222+':'+_0x75ad68;return this['_customCallbacks']['get'](_0x366163)||this['_defaultCallbacks']['get'](_0x6ef2f6+':'+_0x75ad68);}['_registerDefaultCallbacks'](){const _0x19bb0f=()=>!0x1,_0xf9cc49=_0x74e144=>{_0x74e144['sort']((_0x385c81,_0x33757c)=>_0x385c81['start']['isBefore'](_0x33757c['start'])?0x1:-0x1),this['_model']['change'](_0x57587d=>{for(const _0x1848df of _0x74e144){let _0x21f112;_0x21f112=_0x1848df['end']['isAtEnd']&&_0x1848df['end']['parent']==_0x1848df['start']['nodeAfter']?_0x57587d['createSelection'](_0x1848df['start']['nodeAfter'],'on'):_0x57587d['createSelection'](_0x1848df),this['_model']['deleteContent'](_0x21f112,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x58657a=(_0x139675,_0x966837)=>{_0x966837&&this['_model']['change'](_0x2c6b1c=>{const {commandName:_0x4e1e95,commandParams:_0x13a758=[]}=_0x966837,_0x4527eb=_0x139675['map'](_0x2e4bef=>(Pt(_0x2e4bef)&&(_0x2e4bef=this['_model']['createRange'](_0x2e4bef['end'])),_0x2e4bef))['filter'](_0x14e93f=>'$graveyard'!==_0x14e93f['root']['rootName']);if(_0x4527eb['length']<0x1)return;const _0x2cbfe4=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x4ad22c=>_0x246516['fromRange'](_0x4ad22c));_0x2c6b1c['setSelection'](_0x4527eb);for(const _0x2c9b2a of this['_editor']['commands']['commands']())_0x2c9b2a['refresh']();_0x13a758['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x4e1e95,..._0x13a758);const _0x197a3a=_0x2cbfe4['filter'](_0x356cde=>'$graveyard'!=_0x356cde['root']['rootName']);_0x197a3a['length']>0x0&&_0x2c6b1c['setSelection'](_0x197a3a);for(const _0x47622d of _0x2cbfe4)_0x47622d['detach']();});},_0x52d5fe=(_0x25af0d,_0x380d6e)=>0x1==_0x25af0d['length']&&0x1==_0x380d6e['length']&&_0x25af0d[0x0]['end']['isEqual'](_0x380d6e[0x0]['start']),_0x4bffb7=(_0x4dfc9a,_0xc8f845,_0x2f7b1c,_0x10dd65)=>qt(_0x4dfc9a,_0xc8f845,_0x2f7b1c,_0x10dd65)?[_0x4dfc9a,_0xc8f845]:qt(_0xc8f845,_0x4dfc9a,_0x10dd65,_0x2f7b1c)?[_0xc8f845,_0x4dfc9a]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x19bb0f),this['_defaultCallbacks']['set']('insertion:discard',_0xf9cc49),this['_defaultCallbacks']['set']('insertion:join',_0x52d5fe),this['_defaultCallbacks']['set']('insertion:chain',_0x4bffb7),this['_defaultCallbacks']['set']('deletion:accept',_0xf9cc49),this['_defaultCallbacks']['set']('deletion:discard',_0x19bb0f),this['_defaultCallbacks']['set']('deletion:join',_0x52d5fe),this['_defaultCallbacks']['set']('deletion:chain',_0x4bffb7),this['_defaultCallbacks']['set']('formatInline:accept',_0x58657a),this['_defaultCallbacks']['set']('formatInline:discard',_0x19bb0f),this['_defaultCallbacks']['set']('formatInline:join',_0x52d5fe),this['_defaultCallbacks']['set']('formatInline:chain',_0x19bb0f),this['_defaultCallbacks']['set']('formatBlock:accept',_0x58657a),this['_defaultCallbacks']['set']('formatBlock:discard',_0x19bb0f),this['_defaultCallbacks']['set']('formatBlock:join',_0x52d5fe),this['_defaultCallbacks']['set']('formatBlock:chain',_0x19bb0f),this['_defaultCallbacks']['set']('attribute:accept',_0x19bb0f),this['_defaultCallbacks']['set']('attribute:discard',(_0x34dad5,_0x5cb8e1)=>{if(!_0x5cb8e1)return;const _0x2f7171=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x4af47f=>{if(_0x5cb8e1['key']==m)for(const _0x58eed3 of _0x34dad5){const _0x28214a=_0x58eed3['start']['nodeAfter'],_0x36f871=_0x5cb8e1['oldValue'];_0x4af47f['rename'](_0x28214a,_0x36f871);}else{if(_0x2f7171['_isBlockAttribute'](_0x5cb8e1['key'])){for(const _0x4c71c2 of _0x34dad5)void 0x0!==_0x5cb8e1['oldValue']?_0x4af47f['setAttribute'](_0x5cb8e1['key'],_0x5cb8e1['oldValue'],_0x4c71c2['start']['nodeAfter']):_0x4af47f['removeAttribute'](_0x5cb8e1['key'],_0x4c71c2['start']['nodeAfter']);}else{for(const _0x30f0f6 of _0x34dad5)_0x5cb8e1['oldValue']?_0x4af47f['setAttribute'](_0x5cb8e1['key'],_0x5cb8e1['oldValue'],_0x30f0f6):_0x4af47f['removeAttribute'](_0x5cb8e1['key'],_0x30f0f6);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x52d5fe);}}function Ft(_0x257898,_0x45e6ff,_0x56846c){for(const _0x20a966 of _0x45e6ff['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x20a966['root']==_0x20a966)return!0x1;if(!_0x56846c['containsItem'](_0x20a966))return!0x1;if(_0x257898['isObject'](_0x20a966)||_0x257898['isLimit'](_0x20a966))return!0x0;}return!0x1;}function Pt(_0x3d90aa){return _0x3d90aa['end']['parent']==_0x3d90aa['start']['nodeAfter']&&_0x3d90aa['end']['isAtStart'];}function Gt(_0x4ce13b,_0x2efe77,_0x34b964,_0x240c31){const _0x2dc77b=_0x54f00c=>!_0x54f00c['item']['is']('$textProxy')&&!_0x240c31['isObject'](_0x54f00c['item']),_0xd5aee0=_0x4ce13b['start']['getLastMatchingPosition'](_0x2dc77b),_0x7047f5=_0x4ce13b['end']['getLastMatchingPosition'](_0x2dc77b,{'direction':'backward'});return(!_0x4ce13b['start']['isEqual'](_0xd5aee0)||!_0x4ce13b['end']['isEqual'](_0x7047f5))&&(_0xd5aee0['isBefore'](_0x7047f5)?_0x34b964['updateMarker'](_0x2efe77,{'range':_0x34b964['createRange'](_0xd5aee0,_0x7047f5)}):_0x34b964['removeMarker'](_0x2efe77),!0x0);}function Lt(_0x198016){return _0x218c4d(_0x198016);}function Jt(_0x2fa64a){const _0x3e2a97=_0x2fa64a['start']['nodeAfter'];return _0x3e2a97&&_0x3e2a97['is']('element');}function Kt(_0x524cb6,_0x32e1d1){return null==_0x524cb6['end']['nodeBefore']&&_0x524cb6['end']['parent']==_0x524cb6['start']['nodeAfter']?Ht(_0x524cb6['start']['nodeAfter'],_0x32e1d1):_0x524cb6;}function Ht(_0x574f4a,_0x32ab42){const _0x570313=_0x32ab42['schema']['isObject'](_0x574f4a)||_0x32ab42['schema']['isSelectable'](_0x574f4a);return _0x32ab42['createRange'](_0x32ab42['createPositionAt'](_0x574f4a,'before'),_0x570313?_0x32ab42['createPositionAfter'](_0x574f4a):_0x32ab42['createPositionAt'](_0x574f4a,'end'));}function qt(_0x7a5426,_0x3130b5,_0x12e23c,_0x486c65){return!!zt(_0x7a5426,_0x3130b5)&&_0x12e23c['end']['isEqual'](_0x486c65['start']);}function zt(_0xa6664b,_0x3d5938){if(!_0xa6664b['_isDataLoaded']||!_0x3d5938['_isDataLoaded'])return!0x1;const _0x3ec46a=new Set(Object['keys'](_0xa6664b['attributes'])),_0x3d0ebd=new Set(Object['keys'](_0x3d5938['attributes']));if(_0x3ec46a['delete']('groupId'),_0x3d0ebd['delete']('groupId'),0x0==_0x3ec46a['size']&&0x0==_0x3d0ebd['size'])return!0x0;if(_0x3ec46a['size']!=_0x3d0ebd['size'])return!0x1;const _0xaa7b50={..._0xa6664b['attributes']},_0x3f313f={..._0x3d5938['attributes']};return delete _0xaa7b50['groupId'],delete _0x3f313f['groupId'],JSON['stringify'](_0xaa7b50)==JSON['stringify'](_0x3f313f);}function Wt(_0x387f47,_0x29c6a5){const _0x1918c1=Qt(_0x387f47['attributes']),_0x3369e4=Qt(_0x29c6a5);if(!_0x387f47['_isDataLoaded'])return!0x1;for(const _0x528632 of Object['keys'](_0x3369e4))if(!_0x2863d8(_0x1918c1[_0x528632],_0x3369e4[_0x528632]))return!0x1;return!0x0;}function Qt(_0x5ed687){const _0x16a94d=Object['assign']({},_0x5ed687);return delete _0x16a94d['skipNestingCheck'],delete _0x16a94d['tablePasteChainId'],_0x16a94d;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x75aa98(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x36d007,_0x4726f0,_0xf10213,_0x3183e7){super(),this['model']=_0x4726f0,this['view']=_0xf10213,this['commentThreadController']=_0x3183e7,this['_editor']=_0x36d007,this['_acceptCommand']=_0x36d007['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x36d007['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1f6685,_0x17e883)=>_0x1f6685||_0x17e883),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x538ba7=>_0x538ba7&&this['_editor']['model']['canEditAt'](_0x4726f0['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x56af01=>_0x56af01&&this['_editor']['model']['canEditAt'](_0x4726f0['getRanges']())),this['_pendingAction']=null,_0xf10213['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0xf10213,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0xf10213,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0xf10213,'change:isDirty',()=>{_0xf10213['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 _0x164c69=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x164c69);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ti extends _0x308426{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4c5211,_0x18d70e,_0x36cd93,_0x1e5a1d){super(_0x4c5211),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x91aae8(_0x4c5211,o(_0x4c5211,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x18d70e['authoredAt']),this['bind']('authoredAt')['to'](_0x18d70e),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',_0x18d70e,'authoredAt',this,'descriptionParts',(_0x5d1033,_0x499fdd,_0x5e2f13)=>{const _0x2aea29=_0x5e2f13['map'](_0x4a98bd=>ls(_0x4a98bd['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x5d1033-0x1,_0x18d70e['author']['name'],_0x499fdd?_0x1e5a1d['formatDateTime'](_0x499fdd):'',new DOMParser()['parseFromString'](_0x2aea29,'text/html')['body']['textContent']]);}),this['focusables']=new _0x1c3cb1(),this['focusTracker']=new _0x4f2077(),this['keystrokes']=new _0x3f37e0(),this['focusCycler']=new _0x28af08({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5f2f70=>_0x5f2f70['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x18d70e,this['_localUser']=_0x36cd93,this['_config']=_0x1e5a1d,_0x1e5a1d['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x48e5a1(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x518c67}=this['_config'];this['commentsListView']=new _0x518c67(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',_0xe7dffe=>_0xe7dffe+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x846742,_0x5a0409)=>_0x846742||!!_0x5a0409);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x3faf88}=this['_config'],_0x3991f8=new _0x3faf88(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x13e12f=_0x3991f8['commentInputView'];return _0x3991f8['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x13e12f,'value',(_0x403117,_0x224c02,_0x47036f)=>!!_0x47036f||_0x403117&&!_0x224c02),_0x13e12f['on']('submit',(_0x96f644,_0x3a0f50)=>{this['fire']('addComment',_0x3a0f50),_0x13e12f['editor']['setData']('');}),_0x13e12f['on']('cancel',()=>this['focus']()),_0x13e12f['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x3991f8;}}class fe extends ti{['suggestionView'];['_descriptionElement'];constructor(_0xd58331,_0x3e68cd,_0x337eca,_0x251184){super(_0xd58331,_0x3e68cd,_0x337eca,_0x251184),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x1ce9f7=>_0x1ce9f7&&_0x1ce9f7[0x0]?_0x1ce9f7[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x2de0fb,_0x54fe3f)=>{let _0xd1d859='';for(const _0x49d637 of _0x2de0fb)_0xd1d859+='<p>'+ls(_0x49d637['content'],_0x49d637['color'])+'</p>';return _0x54fe3f?_0xd1d859:_0x1bfc31(_0xd1d859,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x251184['SuggestionView'](_0xd58331,_0x3e68cd,{'formatDateTime':_0x251184['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 _0xa98458=this['bindTemplate'],_0x5be66c=[this['suggestionView']];return this['commentsListView']&&_0x5be66c['push'](this['commentsListView']),this['commentThreadInputView']&&_0x5be66c['push'](this['commentThreadInputView']),_0x5be66c['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0xa98458['if']('isActive','ck-suggestion-wrapper--active'),_0xa98458['to']('type',_0x442056=>'ck-suggestion-'+_0x442056),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':_0xa98458['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x5be66c};}['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 _0x308426{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x205d6b,_0x16f06e,_0x203e26){super(_0x205d6b),this['_model']=_0x16f06e,this['_config']=_0x203e26,this['set']('description',''),this['bind']('authoredAt')['to'](_0x16f06e),this['acceptButton']=this['_createButton'](o(_0x205d6b,'Accept\x20suggestion'),_0x524563,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x205d6b,'Discard\x20suggestion'),_0x35fe8b,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x5b5037(_0x205d6b,_0x16f06e['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x1c3cb1([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x4f2077(),this['keystrokes']=new _0x3f37e0(),this['focusCycler']=new _0x28af08({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x3a37d8=>_0x3a37d8['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x3f40e0=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x3f40e0['innerHTML']=this['description'],this['on']('change:description',(_0x21a4b0,_0x510111,_0x1cc6a1)=>{_0x3f40e0['innerHTML']=_0x1cc6a1;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x2b55ae=this['bindTemplate'],_0x3119a7=[{'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':_0x2b55ae['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2b55ae['to']('authoredAt',_0x15cf5e=>this['_config']['formatDateTime'](_0x15cf5e))}]}]},{'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']&&_0x3119a7['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':_0x3119a7}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x2e4bdb,_0x2acf7f,_0x494e82,_0x50dcdb,_0x40be36){const _0x4b1299=new _0x424151(this['locale']);return _0x4b1299['set']({'label':_0x2e4bdb,'icon':_0x2acf7f,'tooltip':!0x0,'tooltipPosition':_0x40be36}),_0x4b1299['extendTemplate']({'attributes':{'class':_0x494e82}}),_0x4b1299['on']('execute',()=>{this['fire'](_0x50dcdb,this['_model']['id']);}),_0x4b1299;}['_setupKeyboardNavigation'](){const _0x1b7a2d=this['element'];this['keystrokes']['listenTo'](_0x1b7a2d);for(const _0x500813 of this['focusables'])this['focusTracker']['add'](_0x500813['element']),this['keystrokes']['listenTo'](_0x500813['element']);this['keystrokes']['set']('enter',(_0x8b6ba7,_0x3b64a1)=>{_0x1b7a2d===_0x8b6ba7['target']&&(this['focusCycler']['focusFirst'](),_0x3b64a1());}),this['keystrokes']['set']('esc',(_0x29b14e,_0x59f87f)=>{_0x1b7a2d!==_0x29b14e['target']&&(this['focus'](),_0x59f87f());});}}class u extends _0x48beba{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x16bab2,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1857b6){super(_0x1857b6),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x443c29=this['editor']['config'];_0x443c29['define']('trackChanges.SuggestionThreadView',fe),_0x443c29['define']('trackChanges.SuggestionView',we),_0x443c29['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x443c29['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x1ece98,_0x412bf8){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x44dfb7,_0x77927f]of this['_handleControllerBuffer']){const _0x437c0c=this['_suggestionToController']['has'](_0x44dfb7);_0x437c0c||_0x77927f?_0x437c0c&&_0x77927f&&this['_destroyController'](_0x44dfb7):this['_initializeController'](_0x44dfb7);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1ece98,_0x412bf8);}['init'](){const _0x481a9f=this['editor'],_0x5bf8df=_0x481a9f['plugins']['get']('TrackChangesEditing'),_0x56e690=_0x481a9f['plugins']['get']('Annotations'),_0x3f099e=_0x481a9f['plugins']['get']('EditorAnnotations'),_0x4ac753=_0x481a9f['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x3f099e['addSourceCollector'](()=>{const _0x4c4baa=[];for(const [_0xba3d4a,_0x24b0f9]of Array['from'](this['_suggestionToController'])){const _0x27cad6=_0xba3d4a['getAllAdjacentSuggestions'](),_0x5d4116=[];for(const _0x5d8b28 of _0x27cad6){if(!_0x5d8b28['isInContent'])continue;if(_0x5d8b28['isMultiRange']){_0x5d4116['push'](..._0x5d8b28['getRanges']());continue;}const _0x2f078b=_0x5d8b28['getFirstRange']();if(_0x5d4116['length']>0x0){const _0x43cf1b=_0x5d4116[0x0]['getJoined'](_0x2f078b);if(_0x43cf1b){_0x5d4116[0x0]=_0x43cf1b;continue;}}_0x5d4116['push'](_0x2f078b);}_0x4c4baa['push']([_0x24b0f9['view'],_0x5d4116]);}return _0x4c4baa;}),this['listenTo'](_0x5bf8df,'suggestionLoaded',(_0x10447a,_0x4c2163)=>{this['listenTo'](_0x4c2163,'change:previous',(_0x4caa3d,_0xac867c,_0x5a14ab,_0x54cd84)=>{_0x4c2163['isInContent']&&(null==_0x5a14ab?(this['_updateController'](_0x54cd84['head']),this['_handleSuggestionControllerDelayed'](_0x4c2163,!0x1)):(this['_updateController'](_0x5a14ab['head']),null==_0x54cd84&&this['_handleSuggestionControllerDelayed'](_0x4c2163,!0x0)));}),null!==_0x4c2163['previous']?this['_updateController'](_0x4c2163['head']):this['_handleSuggestionControllerDelayed'](_0x4c2163,!0x1);}),this['listenTo'](_0x5bf8df,'suggestionUnloaded',(_0x33f1e5,_0x4d025d,_0x5eddf4)=>{this['stopListening'](_0x4d025d,'change:previous'),this['_handleControllerBuffer']['delete'](_0x4d025d),this['_suggestionToController']['has'](_0x4d025d)&&this['_destroyController'](_0x4d025d),_0x5eddf4&&this['_updateController'](_0x5eddf4['head']);}),this['listenTo'](_0x5bf8df,'suggestionChanged',(_0x35de27,_0x2706e4)=>{this['_updateController'](_0x2706e4);}),this['listenTo'](_0x56e690,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4ac753,'addComment',(_0x37955b,{threadId:_0x5cba9a,isFromAdapter:_0x11dccd})=>{if(_0x11dccd||!_0x5bf8df['hasSuggestion'](_0x5cba9a))return;const _0x40e77c=_0x5bf8df['getSuggestion'](_0x5cba9a);this['_suggestionToController']['get'](_0x40e77c)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1f8dde=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x30285b;for(const _0x35a83c in _0x1f8dde){const _0x2993b0=_0x35a83c,_0x19a017=_0x1f8dde[_0x2993b0];if('trackChangesLicenseKeyValid'==_0x19a017||'trackChangesLicenseKeyInvalid'==_0x19a017||'trackChangesLicenseKeyExpired'==_0x19a017||'trackChangesLicenseKeyDomainLimit'==_0x19a017||'trackChangesLicenseKeyNotAllowed'==_0x19a017||'trackChangesLicenseKeyEvaluationLimit'==_0x19a017||'trackChangesLicenseKeyTrialLimit'==_0x19a017||'trackChangesLicenseKeyUsageLimit'==_0x19a017){delete _0x1f8dde[_0x2993b0],_0x30285b=_0x19a017,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x30285b&&_0x1f8dde['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x30285b&&_0x1f8dde['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x30285b&&_0x1f8dde['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x30285b&&_0x1f8dde['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x30285b&&_0x1f8dde['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x30285b&&_0x1f8dde['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x30285b&&_0x1f8dde['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x523d73=this['editor']['plugins']['get']('Annotations'),_0x1812d3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x45becc=Array['from'](_0x523d73['activeAnnotations'],_0x39e7ea=>_0x39e7ea['innerView'])['filter'](_0xb02f42=>this['_viewToController']['has'](_0xb02f42)),_0x20c06b=[];for(const _0x43f659 of _0x45becc){const _0x5cec16=this['_viewToController']['get'](_0x43f659)['model']['getAllAdjacentSuggestions']();_0x20c06b['push'](..._0x5cec16['reduce']((_0x1657a5,_0x435c8f)=>[..._0x1657a5,..._0x435c8f['getMarkerNames']()],[]));}_0x1812d3['activeMarkers']=_0x20c06b;}['_addUIComponentsToFactory'](){const _0x4e795c=this['editor'],_0xf45bd7=_0x4e795c['locale'],_0x5f35ba=o(_0xf45bd7,'Track\x20changes'),_0x4a43d9=new _0xe2ebaf([{'type':'switchbutton','model':new _0x335e7f({'withText':!0x0,'isToggleable':!0x0,'label':_0x5f35ba,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x335e7f({'withText':!0x0,'label':o(_0xf45bd7,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x335e7f({'withText':!0x0,'label':o(_0xf45bd7,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x335e7f({'withText':!0x0,'label':o(_0xf45bd7,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x335e7f({'withText':!0x0,'label':o(_0xf45bd7,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x4e795c['plugins']['has']('TrackChangesPreview')&&_0x4a43d9['addMany']([{'type':'separator'},{'type':'button','model':new _0x335e7f({'withText':!0x0,'label':o(_0xf45bd7,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x330cae of _0x4a43d9)if(ke(_0x330cae)){const _0x246866=_0x4e795c['commands']['get'](_0x330cae['model']['commandName']);_0x330cae['model']['bind']('isOn','isEnabled')['to'](_0x246866,'value','isEnabled');}_0x4e795c['ui']['componentFactory']['add']('trackChanges',_0x59c72b=>this['_createToolbarButton'](_0x59c72b,_0x4a43d9,_0x5f35ba)),_0x4e795c['ui']['componentFactory']['add']('menuBar:trackChanges',_0x5ecf55=>this['_createMenuBarMenu'](_0x5ecf55,_0x4a43d9,_0x5f35ba));}['_createToolbarButton'](_0x4b5702,_0x54ddbd,_0x34d0e8){const _0x32c363=_0x4ca3ee(_0x4b5702,_0x1fe5f5),_0x4884e5=this['editor']['commands']['get']('trackChanges');_0x32c363['buttonView']['set']({'tooltip':_0x34d0e8,'label':_0x34d0e8,'icon':_0x3de21c}),_0x32c363['buttonView']['bind']('isOn')['to'](_0x4884e5,'value'),_0x32c363['buttonView']['on']('execute',()=>{_0x4884e5['execute'](),this['editor']['editing']['view']['focus']();}),_0x268f8f(_0x32c363,_0x54ddbd,{'role':'menu'});const _0x31b7d8=[];for(const _0x24996c of _0x54ddbd)ke(_0x24996c)&&_0x31b7d8['push'](this['editor']['commands']['get'](_0x24996c['model']['commandName']));const _0x21c8e6=_0x32c363['buttonView'];return _0x21c8e6['actionView']['unbind']('isEnabled'),_0x21c8e6['arrowView']['unbind']('isEnabled'),_0x21c8e6['actionView']['bind']('isEnabled')['to'](_0x4884e5,'isEnabled'),_0x21c8e6['arrowView']['bind']('isEnabled')['toMany'](_0x31b7d8,'isEnabled',(..._0xf747f6)=>_0xf747f6['some'](_0x415653=>_0x415653)),_0x32c363['on']('execute',_0xca024f=>{this['editor']['execute'](_0xca024f['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x32c363;}['_createMenuBarMenu'](_0x34380d,_0x1b5ff4,_0x2fc2f0){const _0x5685b9=new _0x27e948(_0x34380d),_0x7561a4=this['editor']['commands']['get']('trackChanges');_0x5685b9['buttonView']['set']({'label':_0x2fc2f0,'icon':_0x3de21c});const _0x18894d=new _0x1b512c(_0x34380d);for(const _0x31d685 of _0x1b5ff4){if('separator'==_0x31d685['type']){_0x18894d['items']['add'](new _0x4e2a1f(_0x34380d));continue;}const _0x3ecb5d=new _0x5a6f68(_0x34380d,_0x5685b9),_0x267241=new _0x1e4da2(_0x34380d),_0x1a371d=_0x31d685['model'];_0x267241['bind'](...Object['keys'](_0x1a371d))['to'](_0x1a371d),_0x267241['delegate']('execute')['to'](_0x5685b9),_0x267241['on']('execute',()=>{this['editor']['execute'](_0x1a371d['commandName']),this['editor']['editing']['view']['focus']();}),_0x3ecb5d['children']['add'](_0x267241),_0x18894d['items']['add'](_0x3ecb5d);}return _0x5685b9['bind']('isEnabled')['to'](_0x7561a4,'isEnabled'),_0x5685b9['panelView']['children']['add'](_0x18894d),_0x5685b9;}['_initializeController'](_0x21bc73){const _0xc14451=this['editor'],_0x112ba4=_0xc14451['config'],_0x13c346=_0xc14451['plugins']['get']('Annotations'),_0x554871=_0xc14451['plugins']['get']('CommentsRepository'),_0xe80891=_0xc14451['plugins']['get']('EditorAnnotations'),_0x4303a8=_0xc14451['plugins']['get'](_0x16bab2)['me'],_0x5118ca=_0x112ba4['get']('trackChanges')['SuggestionThreadView'],_0x3010b2=_0x112ba4['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x51049f,CommentThreadInputView:_0x101a8f}=_0xc14451['plugins']['get']('CommentsUI');let _0x1ccc8f,_0x742e19,_0x27c934;this['_annotationViews']['has'](_0x21bc73['id'])?(_0x742e19=this['_annotationViews']['get'](_0x21bc73['id']),_0x1ccc8f=_0x742e19['mainView']):(_0x1ccc8f=new _0x5118ca(_0xc14451['locale'],_0x21bc73,_0x4303a8,{'disableComments':this['_disableComments'],'editorConfig':{..._0x112ba4['get']('comments.editorConfig'),'licenseKey':_0x112ba4['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x112ba4['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x112ba4['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x112ba4['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x25988d(_0x112ba4['get']('locale'),_0xc14451['locale']),'CommentView':_0x112ba4['get']('comments')['CommentView'],'CommentsListView':_0x51049f,'CommentThreadInputView':_0x101a8f,'SuggestionView':_0x3010b2}),_0x1ccc8f['suggestionView']['acceptButton']['on']('execute',()=>{_0xc14451['editing']['view']['focus']();}),_0x1ccc8f['suggestionView']['discardButton']['on']('execute',()=>{_0xc14451['editing']['view']['focus']();}),_0x742e19=_0x13c346['createAnnotationView'](this['editor']['locale'],_0x1ccc8f),_0x742e19['bind']('isDirty')['to'](_0x1ccc8f,'isDirty'),_0x742e19['bind']('length')['to'](_0x1ccc8f),_0x742e19['bind']('type')['to'](_0x1ccc8f,'type',_0x3702ec=>'suggestion-'+_0x3702ec),_0x1ccc8f['on']('escape',()=>{_0x27c934['fire']('escape');}),this['_annotationViews']['set'](_0x21bc73['id'],_0x742e19));const _0x129189=_0x554871['createCommentThreadController'](_0x21bc73['commentThread'],_0x1ccc8f),_0x585860=new pe(_0xc14451,_0x21bc73,_0x1ccc8f,_0x129189),_0x9aed6c=_0x21bc73['getAllAdjacentSuggestions']()['filter'](_0x22c4db=>_0x22c4db['isInContent']);_0x1ccc8f['descriptionParts']=_0xc14451['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x9aed6c),this['_suggestionToController']['set'](_0x21bc73,_0x585860),this['_viewToController']['set'](_0x1ccc8f,_0x585860),_0x27c934=_0x13c346['createAnnotation']({'view':_0x742e19,'target':()=>{const _0x32da7a=[],_0x135709=_0x21bc73['getAllAdjacentSuggestions']()['filter'](_0x5d742e=>_0x5d742e['isInContent']);for(const _0x3165db of _0x135709)_0x32da7a['push'](..._0x3165db['getMarkers']());return _0x4a13ae(_0xc14451['editing'],_0x32da7a);},'type':()=>'suggestion-'+_0x585860['view']['type']}),_0x554871['_bindAnnotationToEditors'](_0x1ccc8f,_0x27c934),_0x13c346['add'](_0x27c934),_0xe80891['registerAnnotation'](_0x27c934);}['_destroyController'](_0x23ca39){const _0x438d93=this['editor']['plugins']['get']('CommentsRepository'),_0x13b113=this['editor']['plugins']['get']('Annotations'),_0x458198=this['_suggestionToController']['get'](_0x23ca39),_0x868695=_0x458198['view'],_0x3cacac=_0x13b113['getByInnerView'](_0x868695);_0x438d93['_unbindEditors'](_0x868695),_0x3cacac&&_0x13b113['remove'](_0x3cacac),this['_suggestionToController']['delete'](_0x23ca39),this['_viewToController']['delete'](_0x868695),_0x458198['destroy']();}['_updateController'](_0x531864){if(!_0x531864['isInContent']||!this['_suggestionToController']['has'](_0x531864))return;const _0x4a8819=this['editor']['plugins']['get']('TrackChangesEditing'),_0x769657=this['_suggestionToController']['get'](_0x531864),_0x2fab58=_0x531864['getAllAdjacentSuggestions']();_0x769657['view']['descriptionParts']=_0x4a8819['descriptionFactory']['getDescriptions'](_0x2fab58);}['destroy'](){for(const _0x2ad729 of this['_suggestionToController']['keys']())this['_destroyController'](_0x2ad729);for(const _0x505eba of this['_annotationViews']['values']())_0x505eba['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x436e94){return'model'in _0x436e94;}class Ge extends _0x48beba{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x449809){this['editor']['plugins']['get'](d)['adapter']=_0x449809;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x46cc33){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x46cc33);}['getSuggestions']({skipNotAttached:_0x107743=!0x1,toJSON:_0x2d7a8f=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x107743,'toJSON':_0x2d7a8f});}['getSuggestion'](_0x412397){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x412397);}}const p=['Pagination'];class re extends _0x48beba{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4ba488=this['editor'];if(_0x4ba488['config']['define']('trackChangesData.editorCreator',_0x559032=>{const _0x300764=_0x4ba488['model']['document']['getRootNames']()['reduce']((_0x102e74,_0x2a0a8e)=>(_0x102e74[_0x2a0a8e]='',_0x102e74),{});return _0x4ba488['constructor']['create'](_0x300764,_0x559032);}),'function'!=typeof _0x4ba488['config']['get']('trackChangesData')['editorCreator'])throw new _0x2bc211('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x451c57){return w(this['editor'],!0x0,_0x451c57);}['getDataWithDiscardedSuggestions'](_0x3e49d6){return w(this['editor'],!0x1,_0x3e49d6);}}class k extends _0x48beba{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1626ca){function _0x38ec0b(_0x686720){return _0x686720['map'](_0x150134=>String['fromCharCode'](_0x150134))['join']('');}super(_0x1626ca),this['result']='end',_0x1626ca[_0x38ec0b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x38ec0b([0x76,0x69,0x65,0x77])][_0x38ec0b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x38ec0b([0x61,0x75,0x74,0x6f]),_0x1626ca[_0x38ec0b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x38ec0b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x38ec0b([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x38ec0b([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x38ec0b([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 $e(_0x278aae){return void 0x0!==_0x278aae['getRootsAttributes'];}async function w(_0xbb86a4,_0x48181a,_0x3110b2){const _0x72e6b9=_0x5ba9c5(_0xbb86a4,p);_0x72e6b9['plugins']['push'](d,k),_0x72e6b9['rootsAttributes']=$e(_0xbb86a4)?_0xbb86a4['getRootsAttributes']():void 0x0;const _0x3fc75c=document['createDocumentFragment'](),_0x1e8c80=_0xbb86a4['config']['get']('trackChangesData')['editorCreator'],_0x1ef52d=await _0x1e8c80(_0x72e6b9,()=>function(_0x312a79){const _0xc0546e=document['createElement']('div');return _0x312a79['appendChild'](_0xc0546e),_0xc0546e;}(_0x3fc75c));!function(_0xd5cf5e,_0x2bd822){const _0x51a4cc=_0xd5cf5e['model']['document']['getRootNames']()['reduce']((_0x45cb07,_0x37a816)=>(_0x45cb07[_0x37a816]=_0xd5cf5e['data']['get']({'rootName':_0x37a816}),_0x45cb07),{}),_0x37dd60=_0xd5cf5e['plugins']['get']('Users')['users']['map'](_0x202a35=>({'id':_0x202a35['id'],'name':_0x202a35['name']})),_0x83c22a=_0xd5cf5e['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x39119c=_0xd5cf5e['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5257a0=_0x2bd822['plugins']['get']('Users'),_0xc83f4d=_0x2bd822['plugins']['get']('TrackChangesEditing'),_0x472eb6=_0x2bd822['plugins']['get']('CommentsRepository');for(const _0x2f7cac of _0x472eb6['getCommentThreads']())_0x2f7cac['remove']();for(const _0x2eb7c5 of _0x37dd60)_0x5257a0['getUser'](_0x2eb7c5['id'])||_0x5257a0['addUser'](_0x2eb7c5);_0x5257a0['me']||_0x5257a0['useAnonymousUser']();for(const _0x2a63d9 of _0x39119c)_0x472eb6['addCommentThread'](_0x2a63d9);for(const _0x453cfb of _0x83c22a)_0xc83f4d['addSuggestionData'](_0x453cfb);_0x2bd822['data']['set'](_0x51a4cc);}(_0xbb86a4,_0x1ef52d),_0x1ef52d['execute'](_0x48181a?'acceptAllSuggestions':'discardAllSuggestions');const _0x9d89fc=$e(_0x1ef52d)?_0x1ef52d['getFullData'](_0x3110b2):_0x1ef52d['data']['get'](_0x3110b2);return await _0x1ef52d['destroy'](),_0x9d89fc;}class Me extends _0x308426{['options'];constructor(_0x2d98c8,_0x13ac1d){super(_0x2d98c8),this['options']=_0x13ac1d,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'](_0x2b4477,_0x5c8542){if(!this['element'])return;const _0x10d68a=[];for(const [_0x18568b,_0x2b8916]of _0x2b4477){const _0x5ae400=document['createElement']('div');_0x5ae400['setAttribute']('data-ck-root-name',_0x18568b),_0x5ae400['className']=_0x2b8916['classes']+'\x20ck-track-changes-preview__root-container',_0x5ae400['innerHTML']=_0x2b8916['content'],_0x10d68a['push'](_0x5ae400);}_0x5c8542(this['element'],_0x10d68a),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x17b867{constructor(_0x446f2a){super(_0x446f2a),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x4e5f13=this['editor'],_0x3eec56=_0x4e5f13['locale'],_0x52f0bf=_0x4e5f13['plugins']['get']('Dialog');let _0x3bcc9a;const _0x2dbb2c=function(_0x51115b){const _0x289165={};if('editables'in _0x51115b['ui']['view']){for(const [_0x340b26,_0x1538a9]of Object['entries'](_0x51115b['ui']['view']['editables']))_0x289165[_0x340b26]=_0x1538a9['element'];}else _0x289165[_0x51115b['model']['document']['getRootNames']()[0x0]]=_0x51115b['ui']['view']['editable']['element'];return _0x289165;}(_0x4e5f13),_0x28ea3c=function(_0x4364d3){let _0x56645c=0x0;for(const _0x19d4e0 of Object['values'](_0x4364d3))_0x56645c=Math['max'](_0x56645c,_0x19d4e0['getBoundingClientRect']()['width']);let _0x21aebf=0x0;for(const _0x2d0fc7 of Object['values'](_0x4364d3))_0x21aebf+=_0x2d0fc7['getBoundingClientRect']()['height'];const _0x6c2875=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x39e9d2=Math['min'](_0x21aebf,_0x6c2875);return{'width':_0x56645c,'height':_0x39e9d2};}(_0x2dbb2c);_0x52f0bf['show']({'id':'finalContentPreview','title':o(_0x3eec56,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x3eec56,{'dialogRects':_0x28ea3c}),'onHide':()=>{_0x3bcc9a['detachFromDom']();},'onShow':()=>{_0x4e5f13['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x37c7f6=>{const _0x61ad40=this['_standarizeRootsData'](_0x37c7f6,_0x4e5f13,_0x2dbb2c);_0x52f0bf['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x61ad40,_0x4e5f13['config']['get']('trackChanges.preview.renderFunction'));}),_0x3bcc9a=new _0x4acdd8(_0x3eec56,[_0x52f0bf['view']]),_0x3bcc9a['attachToDom'](),_0x3bcc9a['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x4e5f13['once']('destroy',()=>{_0x3bcc9a['detachFromDom']();});const _0x16371a=_0x52f0bf['view']['headerView']['class'];_0x52f0bf['view']['headerView']['class']=_0x16371a?_0x16371a+'\x20ck-reset_all':'ck-reset_all',_0x52f0bf['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x52f0bf['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x227765=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x337d0e=_0x227765['previewMode'],_0x324a0b={};if('$labels'===_0x337d0e){for(const _0x25c5e9 of _0x227765['getMergeFieldsIds']())_0x324a0b[_0x25c5e9]=_0x227765['getLabel'](_0x25c5e9)||_0x25c5e9;}else{const _0x468546='$defaultValues'===_0x337d0e?_0x227765['getDefaultValues']():_0x227765['getDataSetValues'](_0x337d0e,!0x0);for(const _0x8da04c of Object['entries'](_0x468546)){const [_0x3a99d0,_0x4b9e0a]=_0x8da04c;_0x324a0b[_0x3a99d0]=null!==_0x4b9e0a?_0x4b9e0a:_0x227765['getLabel'](_0x3a99d0)||_0x3a99d0;}}return{'mergeFieldsData':_0x324a0b};}['_standarizeRootsData'](_0x5d76fc,_0x409e35,_0x54f7c5){let _0x57536c;if('string'==typeof _0x5d76fc){const _0x4e7a73=_0x409e35['model']['document']['getRootNames']()[0x0];_0x57536c={[_0x4e7a73]:_0x5d76fc};}else _0x57536c=_0x5d76fc;const _0x393265=this['_fixMediaEmbeds'](_0x57536c,_0x409e35),_0x25a957=function(_0x10d6ea,_0x190e3c){for(const [_0x586787,_0x5d903b]of _0x10d6ea)_0x5d903b['classes']=_0x190e3c[_0x586787]['classList']['value']['replace']('ck-focused','');return _0x10d6ea;}(this['_sortRoots'](_0x409e35)['reduce']((_0x3b373f,_0x2e24f4)=>(_0x3b373f['push']([_0x2e24f4,{'content':_0x393265[_0x2e24f4],'classes':''}]),_0x3b373f),[]),_0x54f7c5);return _0x25a957;}['_fixMediaEmbeds'](_0x238929,_0x2dc392){if(!_0x2dc392['plugins']['has']('MediaEmbedEditing'))return _0x238929;const _0x491a95=_0x2dc392['plugins']['get']('MediaEmbedEditing');for(const [_0x5265d8,_0x52a3af]of Object['entries'](_0x238929)){const _0x25561c=document['createElement']('div');_0x25561c['innerHTML']=_0x52a3af,(_0x25561c['querySelectorAll']('figure.media')['forEach'](_0x54aeb9=>{const _0x1a8c52=_0x54aeb9['querySelector']('oembed');if(_0x1a8c52){const _0x62afae=_0x1a8c52['getAttribute']('url');if(_0x62afae){const _0x121a90=_0x491a95['registry']['getMediaViewElement'](new _0x2d66e3(_0x2dc392['editing']['view']['document']),_0x62afae,{'elementName':'','renderForEditingView':!0x0}),_0x491225=document['createElement']('div');_0x491225['classList']['add']('ck-media__wrapper'),_0x121a90['render'](_0x491225,_0x2dc392['editing']['view']['domConverter']),_0x1a8c52['replaceWith'](_0x491225);}}}),_0x238929[_0x5265d8]=_0x25561c['innerHTML']);}return _0x238929;}['_sortRoots'](_0x3c6c70){if(!function(_0x2d374d){return void 0x0!==_0x2d374d['getRootsAttributes'];}(_0x3c6c70))return _0x3c6c70['model']['document']['getRootNames']();const _0x234ecf=[],_0x50435c=new Map();for(const _0x1c1961 of _0x3c6c70['model']['document']['getRootNames']()){const _0x3fcfde=_0x3c6c70['editing']['view']['getDomRoot'](_0x1c1961)['getClientRects']()['item'](0x0);_0x234ecf['push'](_0x1c1961),_0x50435c['set'](_0x1c1961,_0x3fcfde);}return _0x234ecf['sort']((_0x1a9f9c,_0x33f86c)=>{const _0x1bdf5c=_0x50435c['get'](_0x1a9f9c),_0x18509a=_0x50435c['get'](_0x33f86c);return _0x1bdf5c['y']-_0x18509a['y']||_0x1bdf5c['x']-_0x18509a['x'];}),_0x234ecf;}}class He extends _0x48beba{static get['requires'](){return[re,_0x17ba05];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1b74a1){super(_0x1b74a1),_0x1b74a1['commands']['add']('previewFinalContent',new te(this['editor'])),_0x1b74a1['config']['define']('trackChanges.preview.renderFunction',(_0x14c9e1,_0x853f3e)=>{for(const _0x360830 of _0x853f3e)_0x14c9e1['appendChild'](_0x360830);});}}export{M as AcceptSuggestionCommand,ti as BaseSuggestionThreadView,$ as DiscardSuggestionCommand,B as ExecuteOnAllSuggestionsCommand,T as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,x as Suggestion,fe as SuggestionThreadView,we as SuggestionView,Ge as TrackChanges,D as TrackChangesCommand,re as TrackChangesData,d as TrackChangesEditing,He as TrackChangesPreview};
|