@ckeditor/ckeditor5-track-changes 45.1.0-alpha.2 → 45.1.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +27 -27
- package/src/trackchangesediting.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
24
|
-
_0x311d1a(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4e0240,_0x3fc569){super(),this['id']=_0x3fc569['id'],this['type']=_0x3fc569['type'],this['subType']=_0x3fc569['subType']||null,this['author']=_0x3fc569['author'],this['creator']=_0x3fc569['creator']||_0x3fc569['author'],this['isExternal']=Boolean(_0x3fc569['attributes']&&_0x3fc569['attributes']['@external']),this['data']=null,this['_model']=_0x4e0240,this['_onAccept']=_0x3fc569['onAccept'],this['_onDiscard']=_0x3fc569['onDiscard'],this['_onAttributesChange']=_0x3fc569['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x3fc569['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 _0xb42a50=this;for(;_0xb42a50['previous'];)_0xb42a50=_0xb42a50['previous'];return _0xb42a50;}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'](_0x3f17ed){this['_markerNames']['add'](_0x3f17ed);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2cff3f=>this['_model']['markers']['get'](_0x2cff3f))['filter'](_0x19dd9d=>_0x19dd9d);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x505b24=>{for(const _0x453e1d of this['getMarkers']())_0x505b24['removeMarker'](_0x453e1d);}),this['_markerNames']['clear']();}['removeMarker'](_0x4832b9){this['_model']['change'](_0x28a000=>{_0x28a000['removeMarker'](_0x4832b9);}),this['_markerNames']['delete'](_0x4832b9);}['addRange'](_0x32e934){const _0x15d7d1='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x15d7d1),this['_model']['change'](_0x534575=>{_0x534575['addMarker'](_0x15d7d1,{'range':_0x32e934,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x2a80f6){for(const _0x49bad5 of this['getRanges']())if(_0x49bad5['isIntersecting'](_0x2a80f6))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x2ec2e7=>_0x2ec2e7['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3a6e6f,_0x576a68)=>[..._0x3a6e6f,..._0x576a68['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1c28bd=this['getRanges']();if(0x1!=_0x1c28bd['length'])return null;const _0x1ef986=_0x1c28bd[0x0],_0x56a42b=_0x1ef986['start']['nodeAfter'],_0x3ef6a0=_0x1ef986['end']['nodeBefore'];return _0x56a42b instanceof _0x58b344?_0x56a42b!=_0x3ef6a0?null:_0x56a42b: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 _0x4cf782=[];let _0x3be9dd=this['head'];for(;_0x3be9dd;)_0x4cf782['push'](_0x3be9dd),_0x3be9dd=_0x3be9dd['next'];return _0x4cf782;}['setAttribute'](_0x1ad52e,_0x21dec1){const _0x257fd9=_0x4e8e33(this['attributes']);_0x11e46c(_0x257fd9,_0x1ad52e,_0x21dec1),_0x48064e(_0x257fd9,this['attributes'])||(this['attributes']=_0x257fd9,this['_onAttributesChange'](_0x257fd9));}['removeAttribute'](_0x87281c){const _0x29ca08=_0x4e8e33(this['attributes']);_0x32b6c0(_0x29ca08,_0x87281c),_0x48064e(_0x29ca08,this['attributes'])||(this['attributes']=_0x29ca08,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 _0x32b8bc()['substr'](0x1,0x5);}}function c(_0x2b47f9,_0x3519ff,_0x3273eb){const _0x33d982=_0x2b47f9['t'],t=_0x2b47f9['t'];switch(_0x3519ff){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',_0x3273eb);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3273eb);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3273eb);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3273eb);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3273eb);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',_0x3273eb);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3273eb);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',_0x3273eb);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3273eb);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3273eb);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3273eb);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3273eb);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3273eb);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x3273eb);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3273eb);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3273eb);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3273eb);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3273eb);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3273eb);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3273eb);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3273eb);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3273eb);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3273eb);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3273eb);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x3273eb);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'},_0x3273eb);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x3273eb);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x3273eb);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3273eb);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3273eb);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3273eb);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3273eb);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3273eb);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'},_0x3273eb);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3273eb);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3273eb);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3273eb);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3273eb);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'},_0x3273eb);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3273eb);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'},_0x3273eb);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'},_0x3273eb);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3273eb);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'},_0x3273eb);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3273eb);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'},_0x3273eb);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3273eb);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3273eb);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'},_0x3273eb);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x3273eb);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 _0x33d982({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x3273eb);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x33d982({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x3273eb);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x3273eb);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'},_0x3273eb);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'},_0x3273eb);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'},_0x3273eb);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x3519ff;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3ac808,_0x4de412){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3ac808,this['_locale']=_0x4de412;}['getDescriptions'](_0x2ae3ba){const _0x1e7e76=[],_0x325cba=new Set(),_0x5c4efe=new Set();for(let _0x188a35=0x0;_0x188a35<_0x2ae3ba['length'];_0x188a35++){const _0x5e2996=_0x2ae3ba[_0x188a35];if(!_0x5e2996['isInContent'])continue;const _0x3ab99a=this['_handleCustomCallbackDescription'](_0x5e2996);if(_0x3ab99a){if(null!=_0x5e2996['subType']){if(_0x325cba['has'](_0x5e2996['subType']))continue;_0x325cba['add'](_0x5e2996['subType']);}_0x1e7e76['push'](_0x3ab99a);}else{if('attribute'!=_0x5e2996['type'])'insertion'!=_0x5e2996['type']&&'deletion'!=_0x5e2996['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1e7e76,_0x5e2996,_0x2ae3ba[_0x188a35+0x1]);else{const _0x205c4d=_0x5e2996['data']['key'];if(_0x5c4efe['has'](_0x205c4d))continue;_0x5c4efe['add'](_0x5e2996['data']['key']),_0x205c4d==u?this['_handleRenameSuggestionDescription'](_0x1e7e76,_0x5e2996):this['_handleAttributeSuggestionDescription'](_0x1e7e76,_0x5e2996);}}}return this['_resolveDescriptionItems'](_0x1e7e76);}['registerDescriptionCallback'](_0x3409c8){this['_customCallbacks']['push'](_0x3409c8);}['registerElementLabel'](_0x2ce795,_0x274048,_0x424fe4=_0x1180b2['normal']){'function'==typeof _0x2ce795?_0x530ca3(this['_itemLabelsCallbacks'],{'matchingCallback':_0x2ce795,'label':_0x274048,'priority':_0x424fe4}):this['_itemLabels']['set'](_0x2ce795,_0x274048);}['registerAttributeLabel'](_0x4102f3,_0x3ad770){this['_attributeLabels']['set'](_0x4102f3,_0x3ad770);}['getItemLabel'](_0x53194b,_0x45c82d=0x1){let _0x5e04ab;for(const _0x5ae785 of this['_itemLabelsCallbacks'])if(_0x5ae785['matchingCallback'](_0x53194b)){_0x5e04ab=_0x5ae785['label'];break;}return _0x5e04ab||(_0x5e04ab=this['_itemLabels']['get'](_0x53194b['name'])),_0x5e04ab?_0x5e04ab(_0x45c82d):0x1!==_0x45c82d?_0x45c82d+'\x20'+_0x53194b['name']+'s':''+_0x53194b['name'];}['_addDescriptionItems'](_0x5d6fd2,_0x59b652){const _0xf00b3f=_0x59b652['getFirstRange']()['getWalker'](),_0x3218c6='insertion'==_0x59b652['type']?'add':'remove';for(const _0x4f4631 of _0xf00b3f){const _0x43b4b6=_0x4f4631['item'],_0x3534ad=_0x5d6fd2[_0x5d6fd2['length']-0x1];if(_0x43b4b6['is']('$textProxy'))_0x3534ad&&_0x3534ad['type']['indexOf']('Container')>-0x1&&_0x5d6fd2['pop'](),_0x3534ad&&'text'==_0x3534ad['type']?_0x3534ad[_0x3218c6]+=_0x43b4b6['data']:_0x5d6fd2['push']({'type':'text','add':'add'==_0x3218c6?_0x43b4b6['data']:'','remove':'remove'==_0x3218c6?_0x43b4b6['data']:''});else{if(this['_schema']['isObject'](_0x43b4b6)){const _0x171d46=_0x43b4b6;if(_0x3534ad&&_0x3534ad['type']['indexOf']('Container')>-0x1&&_0x5d6fd2['pop'](),'elementEnd'==_0x4f4631['type'])continue;_0x3534ad&&_0x3534ad['type']==_0x3218c6+'Object'&&_0x3534ad['element']['name']==_0x171d46['name']?_0x3534ad['quantity']++:_0x5d6fd2['push']({'type':_0x3218c6+'Object','element':_0x171d46,'quantity':0x1}),_0xf00b3f['skip'](_0x72a79e=>!('elementEnd'==_0x72a79e['type']&&_0x72a79e['item']==_0x43b4b6));}else{if(this['_schema']['checkChild'](_0x43b4b6,'$text')||_0x43b4b6['is']('element','softBreak')){const _0x357505=_0x43b4b6;if('add'==_0x3218c6&&'elementStart'==_0x4f4631['type']||'remove'==_0x3218c6&&'elementEnd'==_0x4f4631['type'])continue;if(_0x3534ad&&-0x1==_0x3534ad['type']['indexOf']('Container')){'text'==_0x3534ad['type']&&(_0x3534ad[_0x3218c6]+='\x0a');continue;}let _0x2c5214;if(_0x2c5214='add'==_0x3218c6?_0x357505['nextSibling']&&!this['_schema']['isObject'](_0x357505['nextSibling'])?_0x357505['nextSibling']:null:_0x357505['previousSibling']&&!this['_schema']['isObject'](_0x357505['previousSibling'])?_0x357505['previousSibling']:null,_0x357505['isEmpty']||_0x2c5214&&_0x2c5214['isEmpty']){const _0xef8833=_0x2c5214&&_0x2c5214['isEmpty']?_0x2c5214:_0x357505;_0x3534ad&&_0x3534ad['type']==_0x3218c6+'EmptyContainer'&&_0x3534ad['element']['name']==_0xef8833['name']?_0x3534ad['quantity']++:_0x5d6fd2['push']({'type':_0x3218c6+'EmptyContainer','element':_0xef8833,'quantity':0x1});}else _0x5d6fd2['push']({'type':_0x3218c6+'Container','element':_0x357505});}}}}}['_resolveDescriptionItems'](_0x53ddb3){const _0x57fecc=this['_locale'],_0x376b15=[],_0x2a98f3=[],_0x4a524f=[];for(const _0xf8b708 of _0x53ddb3)switch(_0xf8b708['type']){case'text':if(_0xf8b708['add']=_0xf8b708['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0xf8b708['remove']=_0xf8b708['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0xf8b708['add']&&''!=_0xf8b708['remove']){_0x376b15['push']({'type':'replace','content':c(_0x57fecc,'REPLACE_TEXT',['\x22'+_0xf8b708['remove']+'\x22','\x22'+_0xf8b708['add']+'\x22'])});continue;}if(null!=_0xf8b708['add']['match'](/^ +$/)){_0x376b15['push']({'type':'insertion','content':c(_0x57fecc,'*Insert:*\x20%0',c(_0x57fecc,'ELEMENT_SPACE',_0xf8b708['add']['length']))});continue;}if(null!=_0xf8b708['remove']['match'](/^ +$/)){_0x376b15['push']({'type':'deletion','content':c(_0x57fecc,'*Remove:*\x20%0',c(_0x57fecc,'ELEMENT_SPACE',_0xf8b708['remove']['length']))});continue;}if(''!=_0xf8b708['add']){_0x376b15['push']({'type':'insertion','content':c(_0x57fecc,'*Insert:*\x20%0','\x22'+_0xf8b708['add']+'\x22')});continue;}_0x376b15['push']({'type':'deletion','content':c(_0x57fecc,'*Remove:*\x20%0','\x22'+_0xf8b708['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x376b15['push']({'type':'insertion','content':c(_0x57fecc,'*Insert:*\x20%0',this['getItemLabel'](_0xf8b708['element'],_0xf8b708['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x376b15['push']({'type':'deletion','content':c(_0x57fecc,'*Remove:*\x20%0',this['getItemLabel'](_0xf8b708['element'],_0xf8b708['quantity']))});continue;case'addContainer':_0x376b15['push']({'type':'insertion','content':c(_0x57fecc,'*Split:*\x20%0',this['getItemLabel'](_0xf8b708['element'],_0xf8b708['quantity']))});continue;case'removeContainer':_0x376b15['push']({'type':'deletion','content':c(_0x57fecc,'*Merge:*\x20%0',this['getItemLabel'](_0xf8b708['element'],_0xf8b708['quantity']))});continue;case'addFormat':_0x2a98f3['push'](_0xf8b708['key']);continue;case'removeFormat':_0x4a524f['push'](_0xf8b708['key']);continue;default:_0x376b15['push'](_0xf8b708);}if(_0x2a98f3['length']){const _0x29c906=_0x2a98f3['map'](_0x14dae3=>this['_attributeLabels']['has'](_0x14dae3)?this['_attributeLabels']['get'](_0x14dae3):_0x14dae3)['join'](',\x20');_0x376b15['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x29c906)});}if(_0x4a524f['length']){const _0x46507e=_0x4a524f['map'](_0x263bd0=>this['_attributeLabels']['has'](_0x263bd0)?this['_attributeLabels']['get'](_0x263bd0):_0x263bd0)['join'](',\x20');_0x376b15['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x46507e)});}return _0x376b15;}['_handleCustomCallbackDescription'](_0x585ae6){for(const _0x32cd0e of this['_customCallbacks']){const _0x4f17f9=_0x32cd0e(_0x585ae6);if(_0x4f17f9&&'type'in _0x4f17f9)return _0x4f17f9;}}['_handleAttributeSuggestionDescription'](_0x16e3a9,_0x3e30e4){const _0x196fb2=_0x3e30e4['data'],_0x104db5=void 0x0===_0x196fb2['newValue']?'removeFormat':'addFormat';_0x16e3a9['push']({'type':_0x104db5,'key':_0x196fb2['key']});}['_handleRenameSuggestionDescription'](_0x23e6b9,_0x5d4775){_0x23e6b9['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x5d4775['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2c85de,_0x4a31c8,_0x57ee7a){if(this['_addDescriptionItems'](_0x2c85de,_0x4a31c8),_0x57ee7a&&_0x57ee7a['getFirstRange']()&&!_0x4a31c8['getFirstRange']()['end']['isEqual'](_0x57ee7a['getFirstRange']()['start'])){const _0x22c52b=_0x2c85de[_0x2c85de['length']-0x1],_0x91a79d='insertion'==_0x4a31c8['type']?'add':'remove';_0x22c52b&&'text'==_0x22c52b['type']&&(_0x22c52b[_0x91a79d]+='\x0a');}}}class U extends _0x3e2428{['afterInit'](){const _0x232b09=this['editor'],_0x13cbcf=_0x232b09['plugins']['get']('TrackChangesEditing');_0x232b09['commands']['get']('showAIAssistant')&&_0x13cbcf['enableCommand']('showAIAssistant');}}class V extends _0x3e2428{['afterInit'](){const _0x264742=this['editor'],_0x2b0bf6=_0x264742['locale'];if(!_0x264742['plugins']['has']('AlignmentEditing'))return;const _0x2b33df=_0x264742['plugins']['get']('TrackChangesEditing');_0x2b33df['enableDefaultAttributesIntegration']('alignment'),_0x2b33df['registerBlockAttribute']('alignment'),_0x2b33df['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x2b0bf6,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x41a3de=this['editor'],_0x465ce3=_0x41a3de['locale'];_0x41a3de['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5769a5=>{if('formatBlock'!=_0x5769a5['type'])return;const {data:_0xf16875}=_0x5769a5;if(_0xf16875&&'alignment'==_0xf16875['commandName']){const _0x932f33=_0xf16875['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x465ce3,'*Format:*\x20%0',function(_0x7c230d){switch(_0x7c230d){case'left':return c(_0x465ce3,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x465ce3,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x465ce3,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x465ce3,'FORMAT_JUSTIFY_TEXT');}}(_0x932f33))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x3e2428{['afterInit'](){const _0x4cc6bc=this['editor'],_0xb4d5b5=_0x4cc6bc['plugins']['get']('TrackChangesEditing'),_0x9244f0=_0x4cc6bc['locale'];for(const _0x1ce84e of Zt){if(!_0x4cc6bc['plugins']['has'](_0x1ce84e))continue;const _0x23ac69=_0x1ce84e['slice'](0x0,-0x7)['toLowerCase'](),_0x3d4550='FORMAT_'+_0x23ac69['toUpperCase']();_0xb4d5b5['enableDefaultAttributesIntegration'](_0x23ac69),_0xb4d5b5['registerInlineAttribute'](_0x23ac69),_0xb4d5b5['descriptionFactory']['registerAttributeLabel'](_0x23ac69,c(_0x9244f0,_0x3d4550));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4bc1f6=this['editor'],_0x27ec28=_0x4bc1f6['locale'],_0x39aed3=_0x4bc1f6['plugins']['get']('TrackChangesEditing');function _0x37ad44(_0x216e25,_0x8445d4){_0x39aed3['descriptionFactory']['registerDescriptionCallback'](_0x35018d=>{if('formatInline'!=_0x35018d['type'])return;const {data:_0x6371}=_0x35018d;return _0x6371&&_0x6371['commandName']===_0x216e25?_0x6371['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x27ec28,'*Format:*\x20%0',_0x8445d4)}:{'type':'format','content':c(_0x27ec28,'*Remove\x20format:*\x20%0',_0x8445d4)}:void 0x0;});}_0x37ad44('bold',c(_0x27ec28,'FORMAT_BOLD')),_0x37ad44('italic',c(_0x27ec28,'FORMAT_ITALIC')),_0x37ad44('underline',c(_0x27ec28,'FORMAT_UNDERLINE')),_0x37ad44('code',c(_0x27ec28,'FORMAT_CODE')),_0x37ad44('strikethrough',c(_0x27ec28,'FORMAT_STRIKETHROUGH')),_0x37ad44('subscript',c(_0x27ec28,'FORMAT_SUBSCRIPT')),_0x37ad44('superscript',c(_0x27ec28,'FORMAT_SUPERSCRIPT'));}}class G extends _0x3e2428{['afterInit'](){const _0x2ab709=this['editor'],_0x40d1cd=_0x2ab709['locale'];if(!_0x2ab709['plugins']['has']('BlockQuoteEditing'))return;const _0x5419ef=_0x2ab709['plugins']['get']('TrackChangesEditing'),_0x9fb5c2=this['editor']['commands']['get']('blockQuote');_0x5419ef['enableCommand']('blockQuote',(_0x19b64a,_0xfb482e={})=>{const _0xc279c4=this['editor']['model']['document']['selection'],_0xec11c1=_0xfb482e&&void 0x0!==_0xfb482e['forceValue']?_0xfb482e['forceValue']:!_0x9fb5c2['value'];let _0x276766=[];if(_0xec11c1){const _0x568cce=Array['from'](_0xc279c4['getSelectedBlocks']())['filter'](_0x540de=>oo(_0x540de)||function(_0x18f200,_0x360228){const _0x1c5c12=_0x360228['checkChild'](_0x18f200['parent'],'blockQuote'),_0x1ed780=_0x360228['checkChild'](['$root','blockQuote'],_0x18f200);return _0x1c5c12&&_0x1ed780;}(_0x540de,this['editor']['model']['schema']));_0x276766=to(_0x568cce,_0x2ab709['model']);}else{const _0x54b5f7=Array['from'](_0xc279c4['getSelectedBlocks']())['filter'](_0x57bba1=>oo(_0x57bba1));_0x276766=to(_0x54b5f7,_0x2ab709['model']);}_0x2ab709['model']['change'](()=>{for(const _0x262ecb of _0x276766)_0x5419ef['markBlockFormat'](_0x262ecb,{'commandName':'blockQuote','commandParams':[{'forceValue':_0xec11c1}]});});}),_0x5419ef['descriptionFactory']['registerDescriptionCallback'](_0x58919f=>{const {data:_0x146b60}=_0x58919f;if(_0x146b60&&'blockQuote'==_0x146b60['commandName']){const _0x224780=c(_0x40d1cd,'ELEMENT_BLOCK_QUOTE');return _0x146b60['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x40d1cd,'*Set\x20format:*\x20%0',_0x224780)}:{'type':'format','content':c(_0x40d1cd,'*Remove\x20format:*\x20%0',_0x224780)};}});}}function oo(_0x2049b9){return'blockQuote'==_0x2049b9['parent']['name'];}class L extends _0x3e2428{['afterInit'](){const _0x1638f0=this['editor'],_0x221361=_0x1638f0['locale'],_0x2e077f=_0x1638f0['plugins']['get']('TrackChangesEditing');_0x1638f0['plugins']['has']('BookmarkEditing')&&(_0x2e077f['enableCommand']('insertBookmark'),_0x2e077f['enableDefaultAttributesIntegration']('updateBookmark'),_0x2e077f['registerBlockAttribute']('bookmarkId'),_0x2e077f['descriptionFactory']['registerDescriptionCallback'](_0x4520b4=>{if('insertion'!=_0x4520b4['type']&&'deletion'!=_0x4520b4['type']&&'attribute'!=_0x4520b4['type'])return;const _0x24b998=_0x4520b4['getContainedElement']();if(null==_0x24b998)return;if(!_0x24b998['is']('element','bookmark'))return;const _0x5de2b8=_0x24b998['getAttribute']('bookmarkId');if('insertion'==_0x4520b4['type'])return{'type':'insertion','content':c(_0x221361,'*Insert:*\x20%0','\x22'+_0x5de2b8+'\x22\x20'+c(_0x221361,'ELEMENT_BOOKMARK'))};if('deletion'==_0x4520b4['type'])return{'type':'deletion','content':c(_0x221361,'*Remove:*\x20%0','\x22'+_0x5de2b8+'\x22\x20'+c(_0x221361,'ELEMENT_BOOKMARK'))};const {data:_0x2ef328}=_0x4520b4;if(!_0x2ef328||'bookmarkId'!=_0x2ef328['key'])return;return{'type':'format','content':c(_0x221361,'*Set\x20bookmark:*\x20%0','\x22'+_0x2ef328['newValue']+'\x22')};}));}}class J extends _0x3e2428{['afterInit'](){const _0x5b0331=this['editor'];_0x5b0331['plugins']['has']('CaseChange')&&(_0x5b0331['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x5b0331['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x5b0331['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x3e2428{['afterInit'](){const _0x5cdf8e=this['editor'];_0x5cdf8e['commands']['get']('ckbox')&&_0x5cdf8e['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x3e2428{['afterInit'](){const _0x5f4df0=this['editor'];if(!_0x5f4df0['plugins']['has']('CodeBlock'))return;const _0x1df761=_0x5f4df0['plugins']['get']('TrackChangesEditing'),_0x4b3e65=_0x5f4df0['locale'],_0x486648=_0x5f4df0['config']['get']('codeBlock')['languages'],_0x37d1b7=_0x5f4df0['commands']['get']('codeBlock');_0x1df761['enableCommand']('indentCodeBlock'),_0x1df761['enableCommand']('outdentCodeBlock'),_0x1df761['enableCommand']('codeBlock',(_0x460b37,_0x4f01cb={})=>{const _0x147c99=_0x5f4df0['model'],_0x1aa8aa=_0x5f4df0['model']['document']['selection'],_0x1d0975=_0x4f01cb&&void 0x0!==_0x4f01cb['forceValue']?_0x4f01cb['forceValue']:!_0x37d1b7['value'];let _0x493733;_0x4f01cb['language']||(_0x4f01cb['language']=_0x486648[0x0]['language']),_0x493733=_0x1d0975?Array['from'](_0x1aa8aa['getSelectedBlocks']())['filter'](_0x392422=>eo(_0x392422)||function(_0x1f24b5,_0x3bfa40){if(_0x1f24b5['is']('rootElement')||_0x3bfa40['isLimit'](_0x1f24b5))return!0x1;return _0x3bfa40['checkChild'](_0x1f24b5['parent'],'codeBlock');}(_0x392422,_0x147c99['schema'])):Array['from'](_0x1aa8aa['getSelectedBlocks']())['filter'](_0x116f2d=>eo(_0x116f2d));const _0x4429f4=to(_0x493733,_0x147c99);_0x147c99['change'](()=>{for(const _0xe1285f of _0x4429f4)_0x1df761['markBlockFormat'](_0xe1285f,{'commandName':'codeBlock','commandParams':[{..._0x4f01cb,'forceValue':_0x1d0975}],'formatGroupId':'blockName'});});}),(_0x1df761['descriptionFactory']['registerElementLabel']('codeBlock',_0x2a2b01=>c(_0x4b3e65,'ELEMENT_CODE_BLOCK',_0x2a2b01)),_0x1df761['descriptionFactory']['registerDescriptionCallback'](_0x186f94=>{if('formatBlock'!=_0x186f94['type'])return;const _0x1683a6=_0x4b3e65['t'],{data:_0x4af9fc}=_0x186f94;if(!_0x4af9fc||'codeBlock'!=_0x4af9fc['commandName'])return;const _0x2465ce=_0x4af9fc['commandParams'][0x0]['language'],_0x181b1d=_0x1683a6(_0x486648['find'](_0x5f4bb8=>_0x5f4bb8['language']===_0x2465ce)['label'])['toLowerCase']();return _0x4af9fc['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x4b3e65,'*Set\x20format:*\x20%0',c(_0x4b3e65,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x181b1d+')')}:{'type':'format','content':c(_0x4b3e65,'*Remove\x20format:*\x20%0',c(_0x4b3e65,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x3ad882){return'codeBlock'==_0x3ad882['name'];}class q extends _0x3e2428{['afterInit'](){const _0x3ab871=this['editor'];if(!_0x3ab871['plugins']['has']('CommentsEditing'))return;_0x3ab871['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x5d9741,_0x46981b,_0x45c8a3){const _0x26130a=[];for(const _0x4a35d5 of _0x46981b['getItems']())_0x4a35d5['hasAttribute'](_0x5d9741)&&_0x26130a['push'](_0x45c8a3['createRangeOn'](_0x4a35d5));return _0x26130a;}function Fe(_0x4159d4,_0x155451,{showActiveMarker:_0x179fd4=!0x0}={}){const _0x578cbe=_0x4159d4['plugins']['get']('TrackChangesEditing');return(_0x14ffa9,_0x1376dd,_0x574617)=>{if(!_0x574617['consumable']['test'](_0x1376dd['markerRange'],_0x14ffa9['name']))return;const _0x1f5b41=_0x1376dd['markerRange']['getWalker'](),_0x2f692b=_0x1376dd['markerRange']['start'],_0x13821d=_0x4159d4['model']['schema'];let _0x5072f5=null,_0x20a2f4=null,_0x476fe5=!0x1,_0x47dc95=!0x1;for(const _0x1f3916 of _0x1f5b41){const _0x8b6250=_0x1f3916['item'];_0x476fe5=_0x476fe5||_0x13821d['isContent'](_0x8b6250);const _0x117710=_0x574617['mapper']['toViewElement'](_0x8b6250);if(_0x117710&&_0x117710['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1f3916['type']&&(_0x13821d['isBlock'](_0x8b6250)&&!_0x13821d['isLimit'](_0x8b6250)&&(_0x8b6250['nextSibling']||_0x2f692b['isAtEnd']?_0x5072f5&&_0x5072f5['parent']==_0x8b6250||(_0x5072f5=_0x8b6250,_0x23144d(_0x1f3916['previousPosition']),_0x47dc95=!0x0):_0x20a2f4=_0x20a2f4||_0x1f3916['previousPosition']));}function _0x23144d(_0x273071){const {id:_0x802468,authorId:_0x5a5282}=_0x578cbe['_splitMarkerName'](_0x1376dd['markerName']),_0x4a2a3b=_0x574617['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x155451,'data-suggestion':_0x802468,'data-author-id':_0x5a5282}),_0x129897=_0x574617['mapper']['toViewPosition'](_0x273071);_0x179fd4&&_0x578cbe['activeMarkers']['includes'](_0x1376dd['markerName'])&&_0x574617['writer']['addClass']('ck-suggestion-marker--active',_0x4a2a3b),_0x574617['writer']['insert'](_0x129897,_0x4a2a3b),_0x574617['mapper']['bindElementToMarker'](_0x4a2a3b,_0x1376dd['markerName']);}_0x476fe5||_0x47dc95||!_0x20a2f4||_0x23144d(_0x20a2f4);};}class z extends _0x3e2428{static get['requires'](){return[_0x5f586e];}['init'](){const _0x112dc7=this['editor'],_0x199981=_0x112dc7['plugins']['get']('TrackChangesEditing');_0x199981['enableCommand']('delete');const _0xd93d28=_0x112dc7['commands']['get']('deleteForward');_0x199981['enableCommand']('deleteForward',(_0x4a1311,_0x46ad47={})=>{const _0x10875a=_0x112dc7['model']['createSelection'](_0x112dc7['model']['document']['selection']);_0x10875a['isCollapsed']&&_0x112dc7['model']['modifySelection'](_0x10875a,{'direction':'forward','unit':_0x46ad47['unit']});const _0x33e938=_0x10875a['getFirstRange'](),_0x405765=_0x2daf6a['fromRange'](_0x33e938);let _0x29c1e3;_0x4a1311(_0x46ad47),_0x29c1e3='$graveyard'==_0x405765['root']['rootName']?_0x112dc7['model']['createRange'](_0x33e938['start']):_0x112dc7['model']['createRange'](_0x405765['start'],_0x405765['end']),_0x405765['detach'](),_0x112dc7['model']['enqueueChange'](_0xd93d28['buffer']['batch'],_0x309b9b=>{_0xd93d28['buffer']['lock'](),_0x309b9b['setSelection'](_0x309b9b['createRange'](_0x29c1e3['end'])),_0xd93d28['buffer']['unlock']();});}),_0x112dc7['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x112dc7,'merge'),{'priority':'high'}),_0x112dc7['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x35113c,_0x20a06a,_0x3d2032)=>{_0x3d2032['options']['showSuggestionHighlights']&&Fe(_0x112dc7,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x35113c,_0x20a06a,_0x3d2032);},{'priority':'high'}),_0x112dc7['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x23364d,_0x3c2509,_0x47d77b)=>{const _0x2ed1=_0x47d77b['mapper']['markerNameToElements'](_0x3c2509['markerName']);if(_0x2ed1){for(const _0x1d52a7 of _0x2ed1)_0x1d52a7['is']('uiElement')&&(_0x47d77b['mapper']['unbindElementFromMarkerName'](_0x1d52a7,_0x3c2509['markerName']),_0x47d77b['writer']['remove'](_0x1d52a7));}},{'priority':'high'});}}class W extends _0x3e2428{['afterInit'](){const _0x11220e=this['editor'];if(!_0x11220e['plugins']['has']('ListEditing'))return;const _0x121a8b=_0x11220e['locale'],_0x525c83=_0x11220e['plugins']['get']('TrackChangesEditing'),_0x2e98a9=_0x11220e['plugins']['has']('TodoListEditing'),_0x4fa5f4=!!_0x11220e['config']['get']('list.multiBlock');function _0x31a70a(_0x4aee5b){return{'type':'format','content':''+c(_0x121a8b,'*Set\x20format:*\x20%0',_0x4aee5b)};}function _0x2dc79d(_0x436cff){return{'type':'format','content':''+c(_0x121a8b,'*Remove\x20format:*\x20%0',_0x436cff)};}_0x525c83['enableDefaultAttributesIntegration']('numberedList'),_0x525c83['enableDefaultAttributesIntegration']('bulletedList'),_0x525c83['enableDefaultAttributesIntegration']('customNumberedList'),_0x525c83['enableDefaultAttributesIntegration']('customBulletedList'),_0x525c83['enableDefaultAttributesIntegration']('indentList'),_0x525c83['enableDefaultAttributesIntegration']('outdentList'),_0x525c83['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x525c83['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x525c83['registerBlockAttribute']('listItemId'),_0x525c83['registerBlockAttribute']('listType'),_0x525c83['registerBlockAttribute']('listIndent'),_0x4fa5f4&&(_0x525c83['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x525c83['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2e98a9&&(_0x525c83['enableDefaultAttributesIntegration']('todoList'),_0x525c83['enableDefaultAttributesIntegration']('checkTodoList'),_0x525c83['registerBlockAttribute']('todoListChecked'),_0x525c83['descriptionFactory']['registerDescriptionCallback'](_0x40f9b5=>{const {data:_0x452806}=_0x40f9b5;if(_0x452806&&'todoListChecked'==_0x452806['key'])return{'type':'format','content':_0x452806['newValue']?c(_0x121a8b,'*Check\x20item*'):c(_0x121a8b,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2e3300=>{if(_0x2e3300['batch']['isUndo'])return!0x1;let _0x1207ec=!0x1;const _0x3fb86a=_0x525c83['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x185724=>'todoListChecked'===_0x525c83['_getAttributeKey'](_0x185724));for(const _0x16d977 of _0x3fb86a){'todo'!=_0x16d977['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x525c83['_findSuggestions'](_0x16d977['getFirstRange'](),'attribute')['find'](_0x2678b0=>'listType'===_0x525c83['_getAttributeKey'](_0x2678b0['suggestion']))||(_0x2e3300['removeMarker'](_0x16d977['getFirstMarker']()),_0x1207ec=!0x0));}return _0x1207ec;})),_0x525c83['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x121a8b,'FORMAT_INDENT'));const _0x22cc7d={'type':'format','content':''};_0x525c83['descriptionFactory']['registerDescriptionCallback'](_0x5c27e5=>{const {data:_0x688a73}=_0x5c27e5;if(!_0x688a73||'listType'!=_0x688a73['key'])return;let _0x111653=_0x5c27e5['head'];for(;_0x111653;){if(_0x111653['data']&&(('listStyle'==_0x111653['data']['key']||'listMarkerStyle'==_0x111653['data']['key'])&&(_0x111653['data']['newValue']&&'default'!=_0x111653['data']['newValue']||'default'!=_0x111653['data']['oldValue']&&!_0x688a73['newValue'])||!_0x4fa5f4&&_0x111653['data']['key']==u))return _0x22cc7d;_0x111653=_0x111653['next'];}if(null==_0x688a73['newValue'])switch(_0x688a73['oldValue']){case'bulleted':return _0x2dc79d(c(_0x121a8b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2dc79d(c(_0x121a8b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2dc79d(c(_0x121a8b,'ELEMENT_TODO_LIST'));}switch(_0x688a73['newValue']){case'bulleted':return _0x31a70a(c(_0x121a8b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x31a70a(c(_0x121a8b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x31a70a(c(_0x121a8b,'ELEMENT_TODO_LIST'));}}),_0x525c83['descriptionFactory']['registerDescriptionCallback'](_0x4439c8=>{const {data:_0x13fb09}=_0x4439c8;if(_0x13fb09&&'listIndent'==_0x13fb09['key'])return null==_0x13fb09['newValue']||null==_0x13fb09['oldValue']&&0x0==_0x13fb09['newValue']?_0x22cc7d:void 0x0;}),_0x525c83['descriptionFactory']['registerDescriptionCallback'](_0x3b5d91=>{if('attribute'!=_0x3b5d91['type'])return;const {data:_0x35e651}=_0x3b5d91;if(!_0x35e651||'listItemId'!=_0x35e651['key'])return;const _0x59a2d2=Te(_0x3b5d91);return'newValue'==_0x59a2d2?{'type':'format','content':c(_0x121a8b,'*Merge:*\x20list\x20item')}:'oldValue'==_0x59a2d2?{'type':'format','content':c(_0x121a8b,'*Split:*\x20list\x20item')}:_0x22cc7d;}),_0x11220e['model']['document']['registerPostFixer'](_0x314a91=>this['listItemIdFixer'](_0x314a91)),_0x11220e['model']['document']['registerPostFixer'](_0x9f3f72=>this['noTrackChangesFixer'](_0x9f3f72)),_0x11220e['model']['document']['on']('change:data',(_0x5a94ef,_0xd57e91)=>{if(_0xd57e91['isUndo']||!_0xd57e91['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x330bf2){if(_0x330bf2['batch']['isUndo']||!_0x330bf2['batch']['isLocal'])return!0x1;let _0x398eda=!0x1;const _0x3756d6=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x52d74c=>_0x52d74c['data']&&'listItemId'==_0x52d74c['data']['key'])['filter'](_0xae75c6=>_0xae75c6['data']['newValue']&&_0xae75c6['data']['oldValue']);for(const _0x45bd85 of _0x3756d6)Te(_0x45bd85)||(_0x330bf2['removeMarker'](_0x45bd85['getFirstMarker']()),_0x398eda=!0x0);return _0x398eda;}['noTrackChangesFixer'](_0x1497fb){if(_0x1497fb['batch']['isUndo']||!_0x1497fb['batch']['isLocal'])return!0x1;const _0x490266=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x490266['trackChangesCommand']['value'])return!0x1;let _0x1cb697=!0x1;const _0x459e99=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x151967=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x5acf88=>'attribute'==_0x5acf88['type'])['filter'](_0x337235=>_0x459e99['includes'](_0x337235['attributeKey']));if(0x0==_0x151967['length'])return _0x1cb697;for(const _0x5498ad of _0x151967){const _0x263caf=_0x490266['_findSuggestions'](_0x5498ad['range'],'attribute')['filter'](_0x600748=>!_0x600748['meta']['isNextTo'])['map'](_0x555225=>_0x555225['suggestion'])['filter'](_0x56f220=>{const _0x460fee=_0x490266['_getAttributeKey'](_0x56f220);return _0x459e99['includes'](_0x460fee);});if(_0x263caf['length']){for(const _0x240018 of _0x263caf)_0x1497fb['removeMarker'](_0x240018['getFirstMarker']());_0x1cb697=!0x0;}}return _0x1cb697;}['assureChains'](){const _0x9a10=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2f9ce1=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x54949f;const _0x11bbf2=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5915d6=>{if(_0x5915d6['data']['oldRange']||!_0x5915d6['data']['newRange'])return null;if(!_0x5915d6['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0xf5b5b4}=_0x9a10['_splitMarkerName'](_0x5915d6['name']);if(!_0x9a10['hasSuggestion'](_0xf5b5b4))return null;const _0x321a79=_0x9a10['getSuggestion'](_0xf5b5b4);return _0x2f9ce1['includes'](_0x321a79['data']['key']);})['map'](_0x4ba546=>{const {id:_0x190ae7}=_0x9a10['_splitMarkerName'](_0x4ba546['name']),_0x4d876f=_0x9a10['getSuggestion'](_0x190ae7);return _0x54949f=_0x4d876f['attributes']['groupId'],_0x4d876f['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x11bbf2['size'])return;const _0x39a52e=_0x9a10['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3feb18=>'attribute'==_0x3feb18['type']&&_0x3feb18['data']&&_0x2f9ce1['includes'](_0x3feb18['data']['key'])&&_0x3feb18['attributes']['groupId']!=_0x54949f)['map'](_0x510e68=>({'listItem':_0x510e68['getFirstRange']()['start']['nodeAfter'],'groupId':_0x510e68['attributes']['groupId']})),_0x30aa59=new Set();for(const {groupId:_0x21ec88,listItem:_0x1cf909}of _0x39a52e)_0x11bbf2['has'](_0x1cf909)&&_0x30aa59['add'](_0x21ec88);for(const _0x3760a5 of _0x9a10['getSuggestions']())_0x30aa59['has'](_0x3760a5['attributes']['groupId'])&&_0x3760a5['setAttribute']('groupId',_0x54949f);}['_supportLegacySuggestions'](){const _0x4e059f=this['editor'],_0x464e47=_0x4e059f['locale'],_0x348dcd=_0x4e059f['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x348dcd['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x51aa10,_0x1313c0){const _0x4630db=[];for(let _0x16b3a7 of _0x51aa10)_0x16b3a7['start']['nodeAfter']===_0x16b3a7['end']['parent']&&(_0x16b3a7=_0x4e059f['model']['createRange'](_0x4e059f['model']['createPositionAt'](_0x16b3a7['start']['nodeAfter'],0x0))),_0x4630db['push'](_0x16b3a7);_0x4e059f['model']['change'](_0x3443f7=>{const _0x298ad7=_0x4e059f['model']['document']['selection'],_0x10c835=Array['from'](_0x298ad7['getRanges']())['map'](_0x565c95=>_0x2daf6a['fromRange'](_0x565c95));_0x3443f7['setSelection'](_0x4630db),_0x4e059f['commands']['get'](_0x1313c0['commandName'])['refresh'](),_0x1313c0['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4e059f['execute'](_0x1313c0['commandName'],..._0x1313c0['commandParams']),_0x3443f7['setSelection'](_0x10c835);for(const _0x47440c of _0x10c835)_0x47440c['detach']();});}),_0x348dcd['descriptionFactory']['registerElementLabel'](function(_0x196a48){const _0x4597e0=!_0x4e059f['model']['schema']['isObject'](_0x196a48),_0x230082=_0x196a48['previousSibling'],_0xb39458=_0x196a48['nextSibling'],_0x228d51=_0x196a48['getAttribute']('listItemId'),_0x26419c=!_0x230082||_0x230082['getAttribute']('listItemId')!==_0x228d51,_0x47e1fc=!_0xb39458||_0xb39458['getAttribute']('listItemId')!==_0x228d51;return _0x4597e0&&Boolean(_0x228d51)&&_0x26419c&&_0x47e1fc;},_0x2d615c=>c(_0x464e47,'ELEMENT_LIST_ITEM',_0x2d615c));}['_registerLegacyDescription'](){const _0x1b2591=this['editor'],_0x1817d4=_0x1b2591['locale'];function _0x1fcd15(_0x4e7421){const _0x2b45ee=_0x1b2591['commands']['get']('bulletedList')['value'],_0x4a9dff=_0x1b2591['commands']['get']('numberedList')['value'];return'numberedList'===_0x4e7421?_0x2b45ee:_0x4a9dff;}_0x1b2591['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x2e388a){if('formatBlock'!=_0x2e388a['type'])return;const {data:_0x33f1aa}=_0x2e388a;if(!_0x33f1aa)return;let _0x2c3908,_0x1ac9d7,_0x34cd44,_0x1aa54d;switch(_0x33f1aa['commandName']){case'bulletedList':_0x34cd44=_0x33f1aa['commandParams'][0x0]['forceValue'],_0x1aa54d=_0x1fcd15(_0x33f1aa['commandName']),_0x2c3908=_0x34cd44?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1aa54d&&_0x1b2591['config']['get']('list.multiBlock')||(_0x2c3908='*Change\x20to:*\x20%0'),_0x1ac9d7={'type':'format','content':c(_0x1817d4,_0x2c3908,c(_0x1817d4,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x34cd44=_0x33f1aa['commandParams'][0x0]['forceValue'],_0x1aa54d=_0x1fcd15(_0x33f1aa['commandName']),_0x2c3908=_0x34cd44?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1aa54d&&_0x1b2591['config']['get']('list.multiBlock')||(_0x2c3908='*Change\x20to:*\x20%0'),_0x1ac9d7={'type':'format','content':c(_0x1817d4,_0x2c3908,c(_0x1817d4,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x2c3908='*Indent:*\x20%0',_0x1ac9d7={'type':'format','content':c(_0x1817d4,_0x2c3908,c(_0x1817d4,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x2c3908=function(_0x5634b1){const _0x54d466=_0x5634b1['getFirstRange']();let _0x24172b=_0x54d466['start']['nodeAfter'];for(;_0x24172b&&_0x54d466['containsItem'](_0x24172b);){if(_0x24172b['getAttribute']('listIndent')>0x0)return!0x1;_0x24172b=_0x24172b['nextSibling'];}return!0x0;}(_0x2e388a)?c(_0x1817d4,'*Format:*\x20remove\x20from\x20%0',c(_0x1817d4,function(_0x40fd8e){return'ELEMENT_'+_0x40fd8e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x2e388a))):c(_0x1817d4,'*Outdent:*\x20%0',c(_0x1817d4,'ELEMENT_LIST_ITEM')),_0x1ac9d7={'type':'format','content':_0x2c3908};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x33f1aa['multipleBlocks']&&(_0x2c3908='*Merge:*\x20%0',_0x1ac9d7={'type':'deletion','content':c(_0x1817d4,_0x2c3908,c(_0x1817d4,'ELEMENT_LIST_ITEM'))});}return _0x1ac9d7;});}}function Te(_0x264f30){let _0x557af2=_0x264f30['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x557af2;){const _0x414e33=_0x557af2['getAttribute']('listItemId');if(!_0x414e33)return!0x1;if(_0x414e33==_0x264f30['data']['newValue'])return'newValue';if(_0x414e33==_0x264f30['data']['oldValue'])return'oldValue';_0x557af2=_0x557af2['previousSibling'];}return!0x1;}class Se extends _0x3e2428{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2c0e1c=this['editor']['config']['get']('list.properties'),_0x587fda=this['editor']['plugins']['get']('TrackChangesEditing');_0x2c0e1c['styles']&&(_0x587fda['enableDefaultAttributesIntegration']('listStyle'),_0x587fda['registerBlockAttribute']('listStyle')),_0x2c0e1c['reversed']&&(_0x587fda['enableDefaultAttributesIntegration']('listReversed'),_0x587fda['registerBlockAttribute']('listReversed')),_0x2c0e1c['startIndex']&&(_0x587fda['enableDefaultAttributesIntegration']('listStart'),_0x587fda['registerBlockAttribute']('listStart'));const _0x250c93={'type':'format','content':''};_0x587fda['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3f0e59=this['editor']['locale'];_0x587fda['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x3f0e59,'FORMAT_LIST_REVERSED')),_0x587fda['descriptionFactory']['registerDescriptionCallback'](_0x2a7d47=>{const {data:_0x2bbb21}=_0x2a7d47;if(_0x2bbb21&&'listReversed'==_0x2bbb21['key'])return null==_0x2bbb21['newValue']||0x0==_0x2bbb21['newValue']&&null==_0x2bbb21['oldValue']?_0x250c93:void 0x0;}),_0x587fda['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x3f0e59,'FORMAT_LIST_START')),_0x587fda['descriptionFactory']['registerDescriptionCallback'](_0x43fee7=>{const {data:_0x3a8350}=_0x43fee7;if(_0x3a8350&&'listStart'==_0x3a8350['key'])return null==_0x3a8350['newValue']||0x1==_0x3a8350['newValue']&&null==_0x3a8350['oldValue']?_0x250c93:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x46352e=>{if(_0x46352e['batch']['isUndo'])return!0x1;let _0xc69fcc=!0x1;const _0x5c0dd0=_0x587fda['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5ad7b0=>{const _0x2f784f=_0x587fda['_getAttributeKey'](_0x5ad7b0);return'listStart'==_0x2f784f||'listReversed'==_0x2f784f;});for(const _0x54012a of _0x5c0dd0){const _0x56f15f=_0x54012a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x56f15f||'customNumbered'==_0x56f15f)continue;_0x587fda['_findSuggestions'](_0x54012a['getFirstRange'](),'attribute')['find'](_0x1da84b=>'listType'==_0x587fda['_getAttributeKey'](_0x1da84b['suggestion']))||(_0x46352e['removeMarker'](_0x54012a['getFirstMarker']()),_0xc69fcc=!0x0);}return _0xc69fcc;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x42a369){const _0x3c150f=this['editor']['locale'],{data:_0x3e74e0}=_0x42a369,_0x589095={'type':'format','content':''};if(!_0x3e74e0||'listStyle'!=_0x3e74e0['key'])return;if(!_0x3e74e0['oldValue'])return'default'==_0x3e74e0['newValue']?_0x589095:{'type':'format','content':''+c(_0x3c150f,'*Set\x20format:*\x20%0',c(_0x3c150f,this['_getTranslationKeyForListStyle'](_0x3e74e0['newValue'])))};if(!_0x3e74e0['newValue']){if('default'==_0x3e74e0['oldValue'])return _0x589095;let _0x5c187f=_0x42a369['head'];for(;_0x5c187f;){if(_0x5c187f['data']&&'listType'==_0x5c187f['data']['key']&&_0x5c187f['data']['newValue'])return _0x589095;_0x5c187f=_0x5c187f['next'];}return{'type':'format','content':''+c(_0x3c150f,'*Remove\x20format:*\x20%0',c(_0x3c150f,this['_getTranslationKeyForListStyle'](_0x3e74e0['oldValue'])))};}if('default'!=_0x3e74e0['newValue'])return{'type':'format','content':''+c(_0x3c150f,'*Set\x20format:*\x20%0',c(_0x3c150f,this['_getTranslationKeyForListStyle'](_0x3e74e0['newValue'])))};let _0xaac368=_0x42a369['head'];for(;_0xaac368;){if(_0xaac368['data']&&'listType'==_0xaac368['data']['key']&&_0xaac368['data']['newValue']&&_0xaac368['data']['oldValue'])return _0x589095;_0xaac368=_0xaac368['next'];}return{'type':'format','content':c(_0x3c150f,'*Set\x20format:*\x20%0',c(_0x3c150f,'ELEMENT_'+_0x42a369['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x55b3a5=this['editor'],_0x4e31ac=_0x55b3a5['locale'];_0x55b3a5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e36aa=>{if('formatBlock'!=_0x1e36aa['type'])return;const {data:_0x4075e3}=_0x1e36aa;if(!_0x4075e3)return;let _0x53439e,_0x4c0ec1;switch(_0x4075e3['commandName']){case'listStyle':_0x53439e='*Change\x20to:*\x20%0',_0x4c0ec1={'type':'format','content':c(_0x4e31ac,_0x53439e,c(_0x4e31ac,this['_getTranslationKeyForListStyle'](_0x4075e3['commandParams'][0x0]['type'])))};break;case'listReversed':_0x53439e=_0x4075e3['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4c0ec1={'type':'format','content':c(_0x4e31ac,_0x53439e)};break;case'listStart':_0x53439e='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4c0ec1={'type':'format','content':c(_0x4e31ac,_0x53439e,_0x4075e3['commandParams'][0x0]['startIndex'])};}return _0x4c0ec1;});}['_getTranslationKeyForListStyle'](_0x5d8c40){return'ELEMENT_'+function(_0x507456){if(_e['includes'](_0x507456))return'bulleted';if(Re['includes'](_0x507456))return'numbered';return null;}(_0x5d8c40)['toUpperCase']()+'_LIST_'+_0x5d8c40['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x3e2428{['afterInit'](){const _0xc950ed=this['editor'];_0xc950ed['commands']['get']('emoji')&&_0xc950ed['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x3e2428{static get['requires'](){return[_0x3ceda9];}['init'](){const _0x455158=this['editor'],_0x547b4d=_0x455158['plugins']['get']('TrackChangesEditing'),_0x5d4892=_0x455158['commands']['get']('enter');_0x547b4d['enableCommand']('enter',()=>{_0x455158['model']['change'](_0xe8c2ec=>{const _0x3dc118=_0x455158['model']['document']['selection'],_0x296754=_0x3dc118['getFirstPosition'](),_0x1df128=_0x2daf6a['fromRange'](_0x3dc118['getFirstRange']());if(_0x5d4892['enterBlock'](_0xe8c2ec)){const _0x22ffd6=_0x455158['model']['createPositionAt'](_0x296754['parent']['nextSibling'],0x0),_0x1fff5f=_0xe8c2ec['createRange'](_0x296754,_0x22ffd6);_0x547b4d['markInsertion'](_0x1fff5f);}else _0xe8c2ec['setSelection'](_0xe8c2ec['createRange'](_0x1df128['end']));_0x1df128['detach'](),_0x5d4892['fire']('afterExecute',{'writer':_0xe8c2ec});});}),_0x455158['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x455158,'split'),{'priority':'high'}),_0x455158['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x35de17,_0xc42f94,_0x2d88e4)=>{const _0x153a99=_0x2d88e4['mapper']['markerNameToElements'](_0xc42f94['markerName']);if(_0x153a99){for(const _0x13599f of _0x153a99)_0x13599f['hasClass']('ck-suggestion-marker-split')&&(_0x2d88e4['mapper']['unbindElementFromMarkerName'](_0x13599f,_0xc42f94['markerName']),_0x2d88e4['writer']['remove'](_0x13599f));}},{'priority':'high'}),_0x455158['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5f0ff0,_0x3d1126,_0x177b88)=>{_0x177b88['options']['showSuggestionHighlights']&&Fe(_0x455158,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x5f0ff0,_0x3d1126,_0x177b88);},{'priority':'high'});}}class Z extends _0x3e2428{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1fa489=this['editor']['plugins']['get']('TrackChangesEditing');_0x1fa489['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1fa489['enableCommand']('findNext'),_0x1fa489['enableCommand']('findPrevious'),_0x1fa489['enableCommand']('replace'),_0x1fa489['enableCommand']('replaceAll');}['handleFindCommand'](_0x4ce954,_0x400477,_0x1985ec={}){const _0x4a2364=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x4ce954(_0x5e22c4=>{let _0xdf6480=('string'==typeof _0x400477?_0x4a2364['findByTextCallback'](_0x400477,_0x1985ec):_0x400477)(_0x5e22c4);Array['isArray'](_0xdf6480)&&(_0xdf6480={'results':_0xdf6480,'searchText':'string'==typeof _0x400477?_0x400477:''});const _0x16520a=_0xdf6480['results']['filter'](_0x2b9f4f=>!0x1===this['_isInDeletionRange'](_0x2b9f4f,_0x5e22c4['item']));return{..._0xdf6480,'results':_0x16520a};},_0x1985ec);}['_isInDeletionRange'](_0xaf5cef,_0x5a39b1){const _0x5f0d50=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5a39b1,_0xaf5cef['start']),this['editor']['model']['createPositionAt'](_0x5a39b1,_0xaf5cef['end']));for(const _0x215b33 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5f0d50['getIntersection'](_0x215b33['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x3e2428{['afterInit'](){const _0xbffba0=this['editor']['locale'],_0x3aa59b=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1d33c2,commandName:_0x2b463d}of ro)this['editor']['plugins']['has'](_0x1d33c2)&&(_0x3aa59b['enableDefaultAttributesIntegration'](_0x2b463d),_0x3aa59b['registerInlineAttribute'](_0x2b463d));_0x3aa59b['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0xbffba0,'FORMAT_FONT_SIZE')),_0x3aa59b['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0xbffba0,'FORMAT_FONT_FAMILY')),_0x3aa59b['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0xbffba0,'FORMAT_FONT_COLOR')),_0x3aa59b['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0xbffba0,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x29bdfa=this['editor'],_0x4dd8=_0x29bdfa['locale'];_0x29bdfa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa29949=>{const _0x5de613=_0x4dd8['t'];if('formatInline'!=_0xa29949['type'])return;const {data:_0x3a2bd8}=_0xa29949;if(null!=_0x3a2bd8){if('fontSize'==_0x3a2bd8['commandName']){const _0x45ae12=_0x3a2bd8['commandParams'][0x0]['value'];if(_0x45ae12){const _0x3ed5c6=_0x5de613(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x2fb941=>_0x2fb941['model']==_0x45ae12)['title'])['toLowerCase']();return{'type':'format','content':c(_0x4dd8,'*Set\x20font\x20size:*\x20%0',_0x3ed5c6)};}return{'type':'format','content':c(_0x4dd8,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x3a2bd8['commandName']){const _0x21edd6=_0x3a2bd8['commandParams'][0x0]['value'];return _0x21edd6?{'type':'format','content':c(_0x4dd8,'*Set\x20font\x20family:*\x20%0',_0x21edd6)}:{'type':'format','content':c(_0x4dd8,'*Reset\x20font\x20family*')};}if('fontColor'==_0x3a2bd8['commandName']){const _0x4bed0f=_0x3a2bd8['commandParams'][0x0]['value'];if(_0x4bed0f){const _0x3819f2=_0x3de588(this['editor']['config']['get']('fontColor.colors'))['find'](_0x119a14=>_0x119a14['model']==_0x4bed0f);let _0x284dde=_0x4bed0f,_0x872a54='';return _0x3819f2&&(_0x284dde=_0x3819f2['label'],_0x872a54=_0x5de613(_0x284dde)['toLowerCase']()),{'type':'format','content':c(_0x4dd8,'*Set\x20font\x20color:*\x20%0',_0x872a54)['trim'](),'color':{'value':_0x4bed0f,'title':_0x872a54||_0x284dde}};}return{'type':'format','content':c(_0x4dd8,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x3a2bd8['commandName']){const _0x1a8c0d=_0x3a2bd8['commandParams'][0x0]['value'];if(_0x1a8c0d){const _0x226182=_0x3de588(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x166bfd=>_0x166bfd['model']==_0x1a8c0d);let _0x821c1d=_0x1a8c0d,_0x495250='';return _0x226182&&(_0x821c1d=_0x226182['label'],_0x495250=_0x5de613(_0x821c1d)['toLowerCase']()),{'type':'format','content':c(_0x4dd8,'*Set\x20font\x20background\x20color:*\x20%0',_0x495250)['trim'](),'color':{'value':_0x1a8c0d,'title':_0x495250||_0x821c1d}};}return{'type':'format','content':c(_0x4dd8,'*Reset\x20font\x20background\x20color*')};}}});}}class it extends _0x3e2428{['afterInit'](){const _0x25b7a8=this['editor'],_0x836944=_0x25b7a8['plugins']['get']('TrackChangesEditing'),_0x19c9ff=_0x25b7a8['commands']['get']('copyFormat'),_0xe3c139=_0x25b7a8['commands']['get']('pasteFormat');_0x19c9ff&&_0xe3c139&&(_0x836944['enableDefaultAttributesIntegration']('pasteFormat'),_0x836944['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x228300=this['editor'],_0x4dfe84=_0x228300['locale'];_0x228300['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e44a5=>{if('formatBlock'!=_0x2e44a5['type']&&'formatInline'!=_0x2e44a5['type'])return;const {data:_0x44922b}=_0x2e44a5;if(_0x44922b&&'pasteFormat'===_0x44922b['commandName']){const _0x3f78c1=[],_0x1de79c=_0x44922b['commandParams'][0x0];for(const [_0x29aea7,_0x4a024f]of Object['entries'](_0x1de79c))_0x3f78c1['push'](so(_0x228300,_0x29aea7,_0x4a024f));return _0x3f78c1['length']?{'type':'format','content':c(_0x4dfe84,'*Set\x20format\x20to:*\x20%0',_0x3f78c1['join'](',\x20'))}:{'type':'format','content':c(_0x4dfe84,'*Remove\x20all\x20formatting*')};}});}}function so(_0x5282dd,_0x395b62,_0x38741f){const _0x586f64=_0x5282dd['locale']['t'],_0x17fbbf=_0x395b62['split'](/(?=[A-Z])/)['join']('\x20'),_0x5f4c2c=_0x586f64(_0x17fbbf['charAt'](0x0)['toUpperCase']()+_0x17fbbf['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x38741f)return _0x5f4c2c;if('fontColor'===_0x395b62||'fontBackgroundColor'===_0x395b62){const _0x40981c=_0x3de588(_0x5282dd['config']['get']('fontColor.colors'))['find'](_0x44cbfd=>_0x44cbfd['model']==_0x38741f);return _0x5f4c2c+'\x20('+(_0x40981c?_0x586f64(_0x40981c['label'])['toLowerCase']():_0x38741f)+')';}if('fontSize'===_0x395b62&&isNaN(parseFloat(_0x38741f))){const _0x3bf865=_0x5282dd['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x5282dd['config']['get']('fontSize.options'))['find'](_0x2d2039=>_0x2d2039['model']==_0x38741f);return _0x5f4c2c+'\x20('+(_0x3bf865?_0x586f64(_0x3bf865['title'])['toLowerCase']():_0x38741f)+')';}return _0x5f4c2c+'\x20('+_0x38741f+')';}class et extends _0x3e2428{['_headingOptions'];['afterInit'](){const _0x30cc69=this['editor'];if(!_0x30cc69['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x30cc69['config']['get']('heading.options');const _0x3b0d29=_0x30cc69['locale'],_0x44a759=_0x30cc69['plugins']['get']('TrackChangesEditing');_0x44a759['enableDefaultAttributesIntegration']('heading');for(const _0x5e6d6f of this['_headingOptions'])'paragraph'!=_0x5e6d6f['model']&&_0x44a759['descriptionFactory']['registerElementLabel'](_0x5e6d6f['model'],_0x4e9d41=>{const _0xde345d=this['_getHeadingLevel'](_0x5e6d6f['model']);return null!==_0xde345d?_0x49f819(_0x4e9d41,_0xde345d):_0x400214(_0x4e9d41,_0x5e6d6f['title']);});function _0x49f819(_0x569748,_0x147e4d){return c(_0x3b0d29,'ELEMENT_HEADING',[_0x569748,_0x147e4d]);}function _0x400214(_0x2a0717,_0x9fe10){return c(_0x3b0d29,'ELEMENT_HEADING_CUSTOM',[_0x2a0717,_0x9fe10]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2850de=this['editor'],_0x26f9ea=_0x2850de['locale'];function _0x131b34(_0x57ea17,_0x47f71a){return c(_0x26f9ea,'ELEMENT_HEADING_CUSTOM',[_0x57ea17,_0x47f71a]);}_0x2850de['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c1430=>{if('formatBlock'!=_0x2c1430['type'])return;const {data:_0x1433bb}=_0x2c1430;if(_0x1433bb&&'heading'==_0x1433bb['commandName']){const _0x2ddb4b=_0x1433bb['commandParams'][0x0]['value'],_0x37418b=this['_getHeadingLevel'](_0x2ddb4b);if(null!==_0x37418b)return{'type':'format','content':c(_0x26f9ea,'*Change\x20to:*\x20%0',(_0x2d97e0=0x1,_0x2668a3=_0x37418b,c(_0x26f9ea,'ELEMENT_HEADING',[_0x2d97e0,_0x2668a3])))};const _0x35d78d=this['_headingOptions']['find'](_0x536faf=>_0x536faf['model']===_0x2ddb4b)['title'];return{'type':'format','content':c(_0x26f9ea,'*Change\x20to:*\x20%0',_0x131b34(0x1,_0x35d78d))};}var _0x2d97e0,_0x2668a3;});}['_getHeadingLevel'](_0x21ca35){const _0x336194=_0x21ca35['match'](/^heading(\d+)/);if(_0x336194)return _0x336194[0x1];const _0x396485=this['_headingOptions']?.['find'](_0x24c0ec=>_0x24c0ec['model']==_0x21ca35);if(_0x396485&&_0x396485['view']){const _0x403b09=_0x396485['view'],_0x12b749=(_0x403b09['name']??_0x403b09)['match'](/^h(\d+)/);if(_0x12b749)return _0x12b749[0x1];}return null;}}class nt extends _0x3e2428{['afterInit'](){const _0x38d093=this['editor'];if(!_0x38d093['plugins']['has']('HighlightEditing'))return;const _0x4eba3a=_0x38d093['plugins']['get']('TrackChangesEditing'),_0x3adff0=_0x38d093['locale'];_0x4eba3a['enableDefaultAttributesIntegration']('highlight'),_0x4eba3a['registerInlineAttribute']('highlight'),_0x4eba3a['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x3adff0,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x43d83b=this['editor'],_0x22f366=_0x43d83b['locale'];_0x43d83b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2aa04f=>{if('formatInline'!=_0x2aa04f['type'])return;const {data:_0x471c82}=_0x2aa04f;if(_0x471c82&&'highlight'==_0x471c82['commandName']){const _0x602ca5=_0x22f366['t'],_0x117c30=_0x471c82['commandParams'][0x0]['value'];if(_0x117c30){const _0x3ebe9e=_0x43d83b['config']['get']('highlight.options')['find'](_0x36da5b=>_0x36da5b['model']==_0x117c30),_0x19c0f2=_0x602ca5(_0x3ebe9e['title'])['toLowerCase']();return{'type':'format','content':c(_0x22f366,'*Set\x20highlight:*\x20%0',_0x19c0f2),'color':{'value':_0x3ebe9e['color'],'title':_0x3ebe9e['title']}};}return{'type':'format','content':c(_0x22f366,'*Remove\x20highlight*',c(_0x22f366,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x3e2428{['afterInit'](){const _0x14b1d1=this['editor'];if(!_0x14b1d1['plugins']['has']('HorizontalLineEditing'))return;_0x14b1d1['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x36df86=_0x14b1d1['plugins']['get']('TrackChangesEditing'),_0x225e51=_0x14b1d1['locale'];_0x36df86['descriptionFactory']['registerElementLabel']('horizontalLine',_0x33eefb=>c(_0x225e51,'ELEMENT_HORIZONTAL_LINE',_0x33eefb)),_0x14b1d1['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2d5468,{writer:_0x94fb49,options:_0x4b6cf3})=>{if(!_0x4b6cf3['showSuggestionHighlights'])return null;const _0x1dd34c=_0x94fb49['createContainerElement']('div'),_0x5fbd60=_0x94fb49['createEmptyElement']('hr');return _0x94fb49['addClass']('ck-horizontal-line',_0x1dd34c),_0x94fb49['insert'](_0x94fb49['createPositionAt'](_0x1dd34c,0x0),_0x5fbd60),_0x1dd34c;},'converterPriority':'high'});}}class ot extends _0x3e2428{['afterInit'](){const _0x47c2db=this['editor'];if(!_0x47c2db['plugins']['has']('HtmlEmbed'))return;const _0x4892d6=_0x47c2db['plugins']['get']('TrackChangesEditing'),_0x4a9adf=_0x47c2db['locale'];_0x4892d6['descriptionFactory']['registerElementLabel']('rawHtml',_0x26d740=>c(_0x4a9adf,'ELEMENT_HTML_EMBED',_0x26d740)),_0x4892d6['enableDefaultAttributesIntegration']('htmlEmbed'),_0x4892d6['registerBlockAttribute']('value'),_0x4892d6['descriptionFactory']['registerDescriptionCallback'](_0x69c0b0=>{if('attribute'!=_0x69c0b0['type'])return;const {data:_0x7ce89f}=_0x69c0b0;if(_0x7ce89f&&'value'==_0x7ce89f['key']&&_0x69c0b0['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x4eaf14=c(_0x4a9adf,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x4a9adf,'*Change\x20%0\x20content*',_0x4eaf14)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e8536=this['editor'],_0x7f1a71=_0x3e8536['locale'];_0x3e8536['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a900a=>{if('formatBlock'!=_0x5a900a['type'])return;const {data:_0x540072}=_0x5a900a;if(_0x540072&&'htmlEmbed'==_0x540072['commandName']){const _0xf3d332=c(_0x7f1a71,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x7f1a71,'*Change\x20%0\x20content*',_0xf3d332)};}});}}class rt extends _0x3e2428{['afterInit'](){const _0xd6e3a3=this['editor'];if(!_0xd6e3a3['plugins']['has']('ImageEditing'))return;const _0x3edf40=_0xd6e3a3['plugins']['get']('TrackChangesEditing'),_0x3474e3=_0xd6e3a3['plugins']['get']('ImageUtils'),_0x3fc91d=_0xd6e3a3['locale'];_0x3edf40['enableCommand']('insertImage'),_0x3edf40['descriptionFactory']['registerElementLabel']('imageBlock',_0x19dee3=>c(_0x3fc91d,'ELEMENT_IMAGE',_0x19dee3)),_0x3edf40['descriptionFactory']['registerElementLabel']('imageInline',_0x48d7d8=>c(_0x3fc91d,'ELEMENT_INLINE_IMAGE',_0x48d7d8)),_0x3edf40['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x3fc91d,'ELEMENT_CAPTION')),_0xd6e3a3['plugins']['has']('ImageUploadEditing')&&_0x3edf40['enableCommand']('uploadImage'),_0xd6e3a3['plugins']['has']('ImageBlockEditing')&&_0xd6e3a3['plugins']['has']('ImageInlineEditing')&&(_0x3edf40['enableCommand']('imageTypeInline',(_0x4174b1,_0x317535)=>{const _0x5688bf=_0x3474e3['getClosestSelectedImageElement'](_0xd6e3a3['model']['document']['selection']);_0xd6e3a3['model']['change'](()=>{_0x3edf40['markBlockFormat'](_0x5688bf,{'commandName':'imageTypeInline','commandParams':[_0x317535]},[],'convertBlockImageToInline');});}),_0x3edf40['enableCommand']('imageTypeBlock',(_0x58ebf2,_0x1bd442)=>{_0xd6e3a3['model']['change'](_0x5500b8=>{let _0x3364af=_0x3474e3['getClosestSelectedImageElement'](_0xd6e3a3['model']['document']['selection']),_0x56d643=_0x5500b8['createRangeOn'](_0x3364af);const _0x59c2f3=_0x342ae3['fromPosition'](_0x56d643['start'],'toPrevious'),_0x1516b3=_0x342ae3['fromPosition'](_0x56d643['end'],'toNext');_0x3edf40['forceDefaultExecution'](()=>_0x58ebf2(_0x1bd442)),_0x3364af=_0x3474e3['getClosestSelectedImageElement'](_0xd6e3a3['model']['document']['selection']),_0x56d643=_0x5500b8['createRangeOn'](_0x3364af);const _0x4cc4f3=_0x5500b8['createRange'](_0x59c2f3,_0x1516b3);_0x59c2f3['detach'](),_0x1516b3['detach'](),_0x3edf40['markBlockFormat'](_0x3364af,{'commandName':'imageTypeInline','commandParams':[_0x1bd442]},[],'convertInlineImageToBlock'),_0x4cc4f3['start']['isBefore'](_0x56d643['start'])&&_0x3edf40['markInsertion'](_0x5500b8['createRange'](_0x4cc4f3['start'],_0x56d643['start']),'convertInlineImageToBlock'),_0x56d643['end']['isBefore'](_0x4cc4f3['end'])&&_0x3edf40['markInsertion'](_0x5500b8['createRange'](_0x56d643['end'],_0x4cc4f3['end']),'convertInlineImageToBlock');});}),_0x3edf40['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3edf40['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3edf40['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3edf40['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3edf40['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3edf40['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x42c64f])=>{const _0x2fd8bf=_0x3edf40['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x286b98=_0x42c64f['start'],_0x47dccc=_0x42c64f['end'];const _0x29a3cc=_0xd6e3a3['model']['schema']['getNearestSelectionRange'](_0x286b98,'backward'),_0x35a3f5=_0xd6e3a3['model']['schema']['getNearestSelectionRange'](_0x47dccc,'forward');_0x29a3cc['isCollapsed']&&(_0x286b98=_0x29a3cc['start']),_0x35a3f5['isCollapsed']&&(_0x47dccc=_0x35a3f5['end']),_0x2fd8bf([_0xd6e3a3['model']['createRange'](_0x286b98,_0x47dccc)]);}),_0x3edf40['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x47d29f),_0x3edf40['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x47d29f)),_0xd6e3a3['plugins']['has']('ImageCaptionEditing')&&(_0x3edf40['enableCommand']('toggleImageCaption',(_0x17372c,_0x3749a3)=>{const _0x4477f2=_0xd6e3a3['plugins']['get']('ImageCaptionUtils');let _0x1d1534=_0x3474e3['getClosestSelectedImageElement'](_0xd6e3a3['model']['document']['selection']),_0x9fc4e5=_0x4477f2['getCaptionFromImageModelElement'](_0x1d1534);_0xd6e3a3['model']['change'](()=>{if(_0x9fc4e5)return void _0x3edf40['markDeletion'](_0xd6e3a3['model']['createRangeOn'](_0x9fc4e5));const _0x52b560=_0x3474e3['isBlockImage'](_0x1d1534);_0x17372c(_0x3749a3),_0x1d1534=_0x3474e3['getClosestSelectedImageElement'](_0xd6e3a3['model']['document']['selection']),_0x9fc4e5=_0x4477f2['getCaptionFromImageModelElement'](_0x1d1534),_0x3edf40['markInsertion'](_0xd6e3a3['model']['createRangeOn'](_0x9fc4e5),_0x52b560?null:'imageCaption');});}),_0x3edf40['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x47d29f));const _0x4c66ff=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x422f23(_0x98e6d7,_0x5f2074){const _0x185d1a=_0x4c66ff['findIndex'](({type:_0x29317d,subType:_0x397b6d})=>_0x98e6d7['type']==_0x29317d&&_0x98e6d7['subType']==_0x397b6d),_0x46e916=_0x4c66ff['findIndex'](({type:_0x14cf17,subType:_0xcd557e})=>_0x5f2074['type']==_0x14cf17&&_0x5f2074['subType']==_0xcd557e);if(_0x185d1a<0x0||_0x46e916<0x0)return!0x1;const _0x4f1c41=_0x98e6d7['getFirstRange'](),_0x25f700=_0x5f2074['getFirstRange']();if((0x0==_0x185d1a||0x1==_0x185d1a)&&0x2==_0x46e916&&_0x4f1c41['isIntersecting'](_0x25f700))return!0x0;if(0x2==_0x185d1a&&0x3==_0x46e916){const _0xceef3c=_0x3edf40['_findSuggestions'](_0x4f1c41,'insertion')['filter'](({suggestion:_0x201191,meta:_0x27d17c})=>_0x27d17c['isOwn']&&'convertInlineImageToBlock'==_0x201191['subType']);if(_0xceef3c['length']>0x1&&_0x25f700['end']['isEqual'](_0x4f1c41['start']))return!0x0;if(0x1==_0xceef3c['length']&&(_0x4f1c41['start']['isEqual'](_0x25f700['end'])||_0x4f1c41['end']['isEqual'](_0x25f700['start'])))return!0x0;}if(0x3==_0x185d1a&&0x3==_0x46e916&&_0x4f1c41['start']['isBefore'](_0x25f700['start'])){const _0x442420=_0x4f1c41['end']['nodeAfter'],_0x46c522=_0x25f700['start']['nodeBefore'];return _0x3474e3['isBlockImage'](_0x442420)&&_0x442420===_0x46c522;}return!0x1;}function _0x47d29f(_0xe62fb3,_0xf121b3){return _0x422f23(_0xe62fb3,_0xf121b3)?[_0xe62fb3,_0xf121b3]:_0x422f23(_0xf121b3,_0xe62fb3)?[_0xf121b3,_0xe62fb3]:null;}_0xd6e3a3['plugins']['has']('ImageResize')&&(_0x3edf40['enableDefaultAttributesIntegration']('resizeImage'),_0x3edf40['registerBlockAttribute']('resizedWidth'),_0x3edf40['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x3fc91d,'FORMAT_IMAGE_SIZE'))),_0xd6e3a3['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3edf40['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3edf40['registerBlockAttribute']('alt')),_0xd6e3a3['plugins']['has']('PictureEditing')&&(_0x3edf40['registerBlockAttribute']('sources'),_0x3edf40['descriptionFactory']['registerDescriptionCallback'](_0x39e55a=>{if('attribute'!=_0x39e55a['type'])return;const {data:_0x27178e}=_0x39e55a;return _0x27178e&&'sources'==_0x27178e['key']?{'type':'format','content':''}:void 0x0;})),_0xd6e3a3['plugins']['has']('ImageSizeAttributes')&&(_0x3edf40['registerBlockAttribute']('width'),_0x3edf40['registerBlockAttribute']('height'),_0x3edf40['descriptionFactory']['registerDescriptionCallback'](_0x4ab2e2=>{if('attribute'!=_0x4ab2e2['type'])return;const {data:_0x5c8a28}=_0x4ab2e2;return!_0x5c8a28||'width'!=_0x5c8a28['key']&&'height'!=_0x5c8a28['key']?void 0x0:{'type':'format','content':''};})),_0x3edf40['descriptionFactory']['registerDescriptionCallback'](_0x29aa79=>{if(!!_0x4c66ff['find'](({type:_0x43b1da,subType:_0x4e45cf})=>_0x29aa79['type']==_0x43b1da&&_0x29aa79['subType']==_0x4e45cf))return _0x29aa79['previous']?{}:void 0x0;}),_0x3edf40['descriptionFactory']['registerDescriptionCallback'](_0x141262=>{if('insertion'==_0x141262['type']||'deletion'==_0x141262['type']){const _0x3c1647=_0x141262['getContainedElement']();if(_0x3c1647&&_0x3c1647['is']('element','caption'))return{'type':'insertion'==_0x141262['type']?'addObject':'removeObject','element':_0x3c1647,'quantity':0x1};}}),_0x3edf40['descriptionFactory']['registerDescriptionCallback'](_0x2e6543=>'formatBlock'==_0x2e6543['type']&&'convertInlineImageToBlock'==_0x2e6543['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x2e6543['type']&&'convertBlockImageToInline'==_0x2e6543['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3edf40['descriptionFactory']['registerDescriptionCallback'](_0x1afafc=>{if('attribute'!=_0x1afafc['type'])return;const {data:_0x45d584}=_0x1afafc;if(!_0x45d584||'alt'!=_0x45d584['key'])return;const _0x39b246=_0x45d584['newValue'];return _0x39b246?{'type':'format','content':c(_0x3fc91d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x39b246+'\x22')}:{'type':'format','content':c(_0x3fc91d,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5552fa=this['editor'],_0xf4285b=_0x5552fa['locale'];_0x5552fa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56b00d=>{if('formatBlock'!=_0x56b00d['type']&&'formatInline'!=_0x56b00d['type'])return;const {data:_0x322d2a}=_0x56b00d;if(_0x322d2a){if('imageTextAlternative'==_0x322d2a['commandName']){const _0x2c1cf1=_0x322d2a['commandParams'][0x0]['newValue'];return _0x2c1cf1?{'type':'format','content':c(_0xf4285b,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2c1cf1+'\x22')}:{'type':'format','content':c(_0xf4285b,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x322d2a['commandName']){const _0x4f4a98=_0x322d2a['commandParams'][0x0]['width'];return _0x4f4a98?{'type':'format','content':c(_0xf4285b,'*Set\x20image\x20width:*\x20%0',_0x4f4a98)}:{'type':'format','content':c(_0xf4285b,'*Reset\x20image\x20width*')};}}});}}class at extends _0x3e2428{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x36ec23=this['editor']['locale'],_0x2f6de3=this['editor']['plugins']['get']('TrackChangesEditing');_0x2f6de3['enableDefaultAttributesIntegration']('replaceImageSource'),_0x2f6de3['registerBlockAttribute']('src'),_0x2f6de3['descriptionFactory']['registerDescriptionCallback'](_0x298924=>{if('attribute'!=_0x298924['type'])return;const {data:_0x56aab4}=_0x298924;return _0x56aab4&&'src'==_0x56aab4['key']?_0x56aab4['newValue']&&_0x56aab4['oldValue']?{'type':'format','content':c(_0x36ec23,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5ba9f9=this['editor']['plugins']['get']('TrackChangesEditing');_0x5ba9f9['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5ba9f9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5ba9f9['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5ba9f9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x138b7e=this['editor'],_0x435aff=_0x138b7e['locale'];_0x138b7e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b5b1b=>{if('formatBlock'!=_0x5b5b1b['type']&&'formatInline'!=_0x5b5b1b['type'])return;const {data:_0x484e01}=_0x5b5b1b;if(!_0x484e01||'replaceImageSource'!=_0x484e01['commandName'])return;return{'type':'format','content':c(_0x435aff,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x3e2428{['afterInit'](){const _0x42a5c8=this['editor'];if(!_0x42a5c8['plugins']['has']('ImageStyleEditing'))return;const _0x482a20=_0x42a5c8['plugins']['get']('TrackChangesEditing'),_0x3e4948=_0x42a5c8['plugins']['get']('ImageUtils'),_0x45ff16={};_0x482a20['enableCommand']('imageStyle',(_0x254d03,_0x2e62ec)=>{const _0xf267d4=_0x42a5c8['plugins']['get']('Users')['me'],_0x152831=_0x42a5c8['commands']['get']('imageStyle');let _0x51c0b3=_0x3e4948['getClosestSelectedImageElement'](_0x42a5c8['model']['document']['selection']),_0x388e38=_0x42a5c8['model']['createRangeOn'](_0x51c0b3),_0x1604c0=_0x152831['value'];if(_0x1604c0==_0x2e62ec['value'])return;const _0x37412c={'commandName':'imageStyle','commandParams':[_0x2e62ec],'formatGroupId':_0x32b8bc()};_0x42a5c8['model']['change'](()=>{if(_0x482a20['getSuggestions']()['filter'](_0x3e901b=>_0x3e901b['isInContent']&&_0xf267d4==_0x3e901b['author']&&('formatBlock'==_0x3e901b['type']||'formatInline'==_0x3e901b['type'])&&('imageStylePreApply'==_0x3e901b['subType']||'imageStylePostApply'==_0x3e901b['subType'])&&_0x3e901b['getFirstRange']()['isEqual'](_0x388e38))['forEach'](_0x44d624=>_0x482a20['discardSuggestion'](_0x44d624['head'])),_0x51c0b3=_0x3e4948['getClosestSelectedImageElement'](_0x42a5c8['model']['document']['selection']),_0x388e38=_0x42a5c8['model']['createRangeOn'](_0x51c0b3),_0x152831['refresh'](),_0x42a5c8['commands']['get']('imageTypeInline')['refresh'](),_0x42a5c8['commands']['get']('imageTypeBlock')['refresh'](),_0x1604c0=_0x152831['value'],_0x1604c0!=_0x2e62ec['value'])return _0x3e4948['isInlineImage'](_0x51c0b3)&&_0x152831['shouldConvertImageType'](_0x2e62ec['value'],_0x51c0b3)?(_0x254d03({..._0x2e62ec,'setImageSizes':!0x1}),_0x51c0b3=_0x3e4948['getClosestSelectedImageElement'](_0x42a5c8['model']['document']['selection']),void _0x482a20['markBlockFormat'](_0x51c0b3,{..._0x37412c,'commandReversedParams':[{'value':_0x1604c0||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3e4948['isBlockImage'](_0x51c0b3)?_0x482a20['markBlockFormat'](_0x51c0b3,_0x37412c,[],'imageStylePostApply'):_0x482a20['markInlineFormat'](_0x388e38,_0x37412c,'imageStylePostApply'));});});for(const _0x44394e of _0x42a5c8['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x45ff16[_0x44394e['name']]=_0x44394e['title']['toLowerCase']();_0x482a20['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x482a20['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x482a20['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x482a20['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x171bb7])=>{_0x3e4948['setImageNaturalSizeAttributes'](_0x171bb7['getContainedElement']());}),_0x482a20['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2c047a,_0x38b308)=>{_0x482a20['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2c047a,{'commandName':_0x38b308['commandName'],'commandParams':_0x38b308['commandReversedParams']});}),_0x482a20['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5dbb26,_0xe33c6c){if(_0x5e82be(_0x5dbb26,_0xe33c6c))return[_0x5dbb26,_0xe33c6c];if(_0x5e82be(_0xe33c6c,_0x5dbb26))return[_0xe33c6c,_0x5dbb26];return null;});const _0x32bcfc=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5e82be(_0x27c000,_0x368fc2){const _0x435ac8=_0x32bcfc['findIndex'](({type:_0x394e6b,subType:_0x376639})=>_0x27c000['type']==_0x394e6b&&_0x27c000['subType']==_0x376639),_0x28fa0f=_0x32bcfc['findIndex'](({type:_0x51abe3,subType:_0x6c3267})=>_0x368fc2['type']==_0x51abe3&&_0x368fc2['subType']==_0x6c3267);if(_0x435ac8<0x0||_0x28fa0f<0x0)return!0x1;const _0x3bd3a6=_0x27c000['getFirstRange'](),_0x4fecd6=_0x368fc2['getFirstRange']();if((0x0==_0x435ac8||0x1==_0x435ac8)&&0x2==_0x28fa0f&&_0x3bd3a6['isIntersecting'](_0x4fecd6))return!0x0;if(0x2==_0x435ac8&&0x3==_0x28fa0f){const _0x57ec4=_0x482a20['_findSuggestions'](_0x3bd3a6,'insertion')['filter'](({suggestion:_0x18f600,meta:_0x4621b5})=>_0x4621b5['isOwn']&&'convertInlineImageToBlock'==_0x18f600['subType']);if(_0x57ec4['length']>0x1&&_0x4fecd6['end']['isEqual'](_0x3bd3a6['start']))return!0x0;if(0x1==_0x57ec4['length']&&(_0x3bd3a6['start']['isEqual'](_0x4fecd6['end'])||_0x3bd3a6['end']['isEqual'](_0x4fecd6['start'])))return!0x0;}if(0x3==_0x435ac8&&0x3==_0x28fa0f&&_0x3bd3a6['start']['isBefore'](_0x4fecd6['start'])){const _0x59d91f=_0x3bd3a6['end']['nodeAfter'],_0x2ff680=_0x4fecd6['start']['nodeBefore'];return _0x3e4948['isBlockImage'](_0x59d91f)&&_0x59d91f===_0x2ff680;}return!0x1;}_0x42a5c8['model']['document']['registerPostFixer'](()=>{let _0x353422=!0x1;const _0x7e0138=Array['from'](_0x42a5c8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xf36c72,data:_0x508e54}of _0x7e0138){const {group:_0x3e375b,type:_0x53af50,subType:_0x30bda0,id:_0x1986aa}=_0x482a20['_splitMarkerName'](_0xf36c72);if('suggestion'==_0x3e375b&&_0x482a20['hasSuggestion'](_0x1986aa)){if('formatBlock'==_0x53af50&&('imageStylePreApply'==_0x30bda0||'imageStylePostApply'==_0x30bda0)){const _0x231095=_0x482a20['getSuggestion'](_0x1986aa);if(_0x508e54['newRange']){const _0x599da8=_0x231095['getFirstRange']()['getContainedElement']();if(_0x3e4948['isBlockImage'](_0x599da8))continue;_0x482a20['discardSuggestion'](_0x231095),_0x353422=!0x0;}}if('insertion'==_0x53af50&&'imageCaption'==_0x30bda0&&!_0x508e54['newRange']){const _0x1c6afb=_0x482a20['getSuggestion'](_0x1986aa);_0x1c6afb['next']&&_0x1c6afb['next']['isInContent']&&(_0x482a20['discardSuggestion'](_0x1c6afb['next']),_0x353422=!0x0);}}}return _0x353422;}),this['_registerLegacyDescription'](_0x45ff16);}['_registerLegacyDescription'](_0x33d1c2){const _0x27c60a=this['editor'],_0x11bc13=_0x27c60a['locale'];_0x27c60a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x10790a=>{if('formatBlock'!=_0x10790a['type']&&'formatInline'!=_0x10790a['type'])return;const {data:_0x3e599a}=_0x10790a;if(!_0x3e599a||'imageStyle'!=_0x3e599a['commandName'])return;const _0x1c88e8=_0x3e599a['commandParams'][0x0]['value'];return _0x5cc673('side'===_0x1c88e8?c(_0x11bc13,'FORMAT_SIDE_IMAGE'):_0x33d1c2[_0x1c88e8]||_0x1c88e8);function _0x5cc673(_0x4ce9d8){return{'type':'format','content':c(_0x11bc13,'*Format:*\x20%0',_0x4ce9d8)};}});}}class ut extends _0x3e2428{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x4104a9){super(_0x4104a9),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x8c00be=this['editor'],_0x2f89f3=_0x8c00be['commands']['get']('importWord'),_0x2493d7=_0x8c00be['commands']['get']('trackChanges');_0x2f89f3&&(_0x2f89f3['on']('execute',(_0x41cca4,[,_0x28e3ee])=>{this['_trackChangesValueDuringImport']=_0x2493d7['value'],_0x28e3ee['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x2f89f3,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x2f89f3,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2493d7['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x8c00be['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x46f04d,_0x22d72e){const {suggestions:_0x1384b3}=_0x22d72e,_0x1989b5=this['editor']['commands']['get']('trackChanges'),_0x3cac94=_0x1989b5['value'];this['_trackChangesValueDuringImport']!==_0x3cac94&&(_0x1989b5['execute'](),this['_trackChangesExecuted']=!0x0),_0x1384b3&&_0x1384b3['forEach'](({id:_0x40a816,type:_0x3066d2,author:_0x5305e5,created_at:_0x30b40d})=>{const _0x5380f3={'id':_0x40a816,'type':_0x3066d2,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x5305e5,'createdAt':_0x30b40d?new Date(_0x30b40d):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x5380f3);});}}class ft extends _0x3e2428{['afterInit'](){const _0x4e982f=this['editor'],_0x368f18=_0x4e982f['plugins']['get']('TrackChangesEditing');if(_0x4e982f['plugins']['has']('IndentEditing')&&(_0x368f18['enableCommand']('indent'),_0x368f18['enableCommand']('outdent')),_0x4e982f['plugins']['has']('IndentBlock')){for(const _0x5104a0 of['indentBlock','outdentBlock'])_0x368f18['enableDefaultAttributesIntegration'](_0x5104a0);}const _0x15e7d0=_0x4e982f['locale'];_0x368f18['registerBlockAttribute']('blockIndent'),_0x368f18['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x15e7d0,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d8ee2=this['editor'],_0x2e86b7=_0x2d8ee2['locale'],_0x4824f5=_0x2d8ee2['plugins']['get']('TrackChangesEditing');_0x4824f5['descriptionFactory']['registerDescriptionCallback'](_0xf32d35=>{if('formatBlock'!=_0xf32d35['type'])return;const {data:_0x915dd0}=_0xf32d35;if(!_0x915dd0)return;if('indentBlock'!=_0x915dd0['commandName']&&'outdentBlock'!=_0x915dd0['commandName'])return;const _0x52fb6e=_0xf32d35['getItems']()[0x0],_0x173758=_0x4824f5['descriptionFactory']['getItemLabel'](_0x52fb6e);return'indentBlock'==_0x915dd0['commandName']?{'type':'format','content':c(_0x2e86b7,'*Indent:*\x20%0',_0x173758)}:'outdentBlock'==_0x915dd0['commandName']?{'type':'format','content':c(_0x2e86b7,'*Outdent:*\x20%0',_0x173758)}:void 0x0;});}}class ht extends _0x3e2428{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x3e2428{['afterInit'](){const _0x3498a3=this['editor'];if(!_0x3498a3['plugins']['has']('LinkEditing'))return;const _0x128f0d=_0x3498a3['plugins']['get']('TrackChangesEditing'),_0x2b8c66=_0x3498a3['commands']['get']('link');_0x128f0d['enableDefaultAttributesIntegration']('link'),_0x128f0d['enableDefaultAttributesIntegration']('unlink'),_0x128f0d['registerInlineAttribute']('linkHref');for(const _0x1888dd of _0x2b8c66['manualDecorators'])_0x128f0d['registerInlineAttribute'](_0x1888dd['id']),_0x128f0d['descriptionFactory']['registerAttributeLabel'](_0x1888dd['id'],'link\x20('+_0x1888dd['label']['toLowerCase']()+')');_0x128f0d['descriptionFactory']['registerDescriptionCallback'](_0x3964c6=>{if('attribute'!=_0x3964c6['type'])return;const {data:_0x50cfcc}=_0x3964c6;if(!_0x50cfcc||'linkHref'!=_0x50cfcc['key'])return;const _0x2090d5=_0x50cfcc['newValue'],_0x43cd0d=_0x3498a3['locale'];return{'type':'format','content':null==_0x2090d5?c(_0x43cd0d,'*Remove\x20link*'):c(_0x43cd0d,'*Set\x20link:*\x20%0','\x22'+_0x2090d5+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3f65b6=this['editor'],_0x2818e6=_0x3f65b6['locale'];_0x3f65b6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x22caa7=>{if('formatInline'!=_0x22caa7['type'])return;const {data:_0x867420}=_0x22caa7;if(_0x867420){if('link'==_0x867420['commandName']){const _0x2482e1=_0x867420['commandParams'][0x0];return{'type':'format','content':c(_0x2818e6,'*Set\x20link:*\x20%0','\x22'+_0x2482e1+'\x22')};}return'unlink'==_0x867420['commandName']?{'type':'format','content':c(_0x2818e6,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x3e2428{['afterInit'](){const _0x16264a=this['editor'],_0x2500a5=_0x16264a['locale'];if(!_0x16264a['plugins']['has']('LegacyListEditing'))return;const _0x2dff99=_0x16264a['plugins']['get']('TrackChangesEditing'),_0xa5b666=_0x16264a['plugins']['has']('LegacyTodoListEditing');function _0x15bfc0(_0x4e05c1){return()=>{const _0x5cba08=_0x16264a['model']['document']['selection'],_0x42d316=_0x16264a['commands']['get'](_0x4e05c1);if(_0x42d316['value'])return void _0x16264a['execute']('paragraph',{});const _0x324a42=_0x4e05c1['slice'](0x0,-0x4),_0x26d698=function(_0x4f615c,_0x30621c,_0x20c2ea){let _0x1d2160=Array['from'](_0x4f615c)['filter'](_0x513baf=>function(_0x32c1d8,_0x429025){return _0x429025['checkChild'](_0x32c1d8['parent'],'listItem')&&!_0x429025['isObject'](_0x32c1d8);}(_0x513baf,_0x20c2ea));_0x1d2160=_0x1d2160['filter'](_0x1b066f=>!_0x1b066f['is']('element','listItem')||_0x1b066f['getAttribute']('listType')!=_0x30621c);const _0xc9f070=new Set();for(const _0x49c9e9 of _0x1d2160)_0x49c9e9['is']('element','listItem')?_0xc9f070['add'](Le(_0x49c9e9)):_0xc9f070['add'](_0x49c9e9);return Array['from'](_0xc9f070);}(_0x5cba08['getSelectedBlocks'](),_0x324a42,_0x16264a['model']['schema']);_0x16264a['model']['change'](()=>{for(const _0x20e35a of _0x26d698)_0x2dff99['markBlockFormat'](_0x20e35a,{'commandName':_0x4e05c1,'commandParams':[{'forceValue':!_0x42d316['value']}],'formatGroupId':'blockName'},Ee(_0x20e35a));});};}function _0x4bfda(_0xd595c9){return()=>{const _0x409c10=function(_0xf5d4a8){let _0x194db5=Array['from'](_0xf5d4a8);const _0x40e546=_0x194db5['findIndex'](_0x165887=>'listItem'!=_0x165887['name']);return _0x40e546>-0x1&&(_0x194db5=_0x194db5['slice'](0x0,_0x40e546)),_0x194db5;}(_0x16264a['model']['document']['selection']['getSelectedBlocks']()),_0x39aa8c=_0x16264a['model']['createRange'](_0x16264a['model']['createPositionAt'](_0x409c10[0x0],'before'),_0x16264a['model']['createPositionAt'](_0x409c10[_0x409c10['length']-0x1],'end'));_0x16264a['model']['change'](()=>{_0x2dff99['markBlockFormat'](_0x39aa8c,{'commandName':_0xd595c9,'commandParams':[],'formatGroupId':'listIndent'},function(_0x3a6f2b){const _0x40ec99=new Set();for(const _0x266801 of _0x3a6f2b){let _0x130505=_0x266801['nextSibling'];for(;_0x130505&&_0x130505['getAttribute']('listIndent')>_0x266801['getAttribute']('listIndent');)_0x40ec99['add'](_0x130505),_0x130505=_0x130505['nextSibling'];}return Array['from'](_0x40ec99);}(_0x409c10));});};}_0x2dff99['enableCommand']('numberedList',_0x15bfc0('numberedList')),_0x2dff99['enableCommand']('bulletedList',_0x15bfc0('bulletedList')),_0xa5b666&&_0x2dff99['enableCommand']('todoList',_0x15bfc0('todoList')),_0x2dff99['enableCommand']('indentList',_0x4bfda('indentList')),_0x2dff99['enableCommand']('outdentList',_0x4bfda('outdentList')),_0xa5b666&&_0x2dff99['enableCommand']('checkTodoList',()=>{const _0x319e87=_0x16264a['commands']['get']('checkTodoList'),_0x2189b7=Array['from'](_0x319e87['_selectedElements']);_0x2189b7['filter'](_0x3234e6=>_0x3234e6['getAttribute']('todoListChecked')!=_0x319e87['value']),_0x16264a['model']['change'](()=>{for(const _0x2431f9 of _0x2189b7)_0x2dff99['markBlockFormat'](_0x2431f9,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x319e87['value']}]});});}),_0x2dff99['descriptionFactory']['registerElementLabel']('listItem',_0x57eeeb=>c(_0x2500a5,'ELEMENT_LIST_ITEM',_0x57eeeb)),_0x2dff99['descriptionFactory']['registerDescriptionCallback'](_0x2f2ed7=>{if('formatBlock'!=_0x2f2ed7['type']&&'formatInline'!=_0x2f2ed7['type'])return;const {data:_0x2b36db}=_0x2f2ed7;if(_0x2b36db){if('numberedList'==_0x2b36db['commandName']||'bulletedList'==_0x2b36db['commandName']||'todoList'==_0x2b36db['commandName'])switch(_0x2b36db['commandName']['replace']('List','')){case'bulleted':return _0x8a60c0(c(_0x2500a5,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x8a60c0(c(_0x2500a5,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x8a60c0(c(_0x2500a5,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2b36db['commandName'])return{'type':'format','content':c(_0x2500a5,'*Indent:*\x20%0',c(_0x2500a5,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2b36db['commandName'])return{'type':'format','content':c(_0x2500a5,'*Outdent:*\x20%0',c(_0x2500a5,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2b36db['commandName'])return _0x2b36db['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x2500a5,'*Check\x20item*')}:{'type':'format','content':c(_0x2500a5,'*Uncheck\x20item*')};}function _0x8a60c0(_0x15b46e){return{'type':'format','content':c(_0x2500a5,'*Change\x20to:*\x20%0',_0x15b46e)};}});}}function Le(_0x11623a){const _0x48953b=_0x11623a['getAttribute']('listIndent');if(0x0==_0x48953b)return _0x11623a;let _0x12182d=_0x11623a;for(;_0x11623a['previousSibling']&&_0x11623a['previousSibling']['is']('element','listItem');){const _0x1c79c9=_0x11623a['previousSibling']['getAttribute']('listIndent');if(_0x1c79c9==_0x48953b)_0x12182d=_0x11623a['previousSibling'];else{if(_0x1c79c9<_0x48953b)break;}_0x11623a=_0x11623a['previousSibling'];}return _0x12182d;}function Ee(_0x70970d){const _0xc3a317=[];if(_0x70970d['is']('element','listItem')&&_0x70970d['getAttribute']('listIndent')>0x0){let _0x484d5d=_0x70970d['nextSibling'];for(;_0x484d5d&&'listItem'==_0x484d5d['name']&&_0x484d5d['getAttribute']('listIndent')==_0x70970d['getAttribute']('listIndent');)_0xc3a317['push'](_0x484d5d),_0x484d5d=_0x484d5d['nextSibling'];}return _0xc3a317;}class Q extends _0x3e2428{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x149e5d=this['editor']['config']['get']('list.properties'),_0x28e9d2=this['editor']['plugins']['get']('TrackChangesEditing');_0x149e5d['styles']&&_0x28e9d2['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x149e5d['reversed']&&_0x28e9d2['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x149e5d['startIndex']&&_0x28e9d2['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x28e9d2['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x3d54ae,_0x2721f5={}){const _0x2ad15d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x255cb7=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2ad15d['markMultiRangeBlockFormat'](_0x255cb7,{'commandName':'listStyle','commandParams':[{'type':_0x2721f5['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x3644d1,_0x3db445={}){const _0x26a4de=this['editor']['plugins']['get']('TrackChangesEditing'),_0x347e93=this['_getSuggestionBlocks'](_0x5398d0=>_0x5398d0['is']('element','listItem')&&'numbered'===_0x5398d0['getAttribute']('listType'));if(_0x347e93['length']<0x1)return;const _0x13ab4c=_0x347e93['map'](_0x46f24e=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x46f24e,'before'),this['editor']['model']['createPositionAt'](_0x46f24e,0x0)));this['editor']['model']['change'](()=>{_0x26a4de['markMultiRangeBlockFormat'](_0x13ab4c,{'commandName':'listReversed','commandParams':[{'reversed':_0x3db445['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x154e78,_0x2e4180={}){const _0x4891ee=this['editor']['plugins']['get']('TrackChangesEditing'),_0x368fe9=this['_getSuggestionBlocks'](_0xae8def=>_0xae8def['is']('element','listItem')&&'numbered'===_0xae8def['getAttribute']('listType'));if(_0x368fe9['length']<0x1)return;const _0xcb202e=_0x368fe9['map'](_0xcce6fb=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xcce6fb,'before'),this['editor']['model']['createPositionAt'](_0xcce6fb,0x0)));this['editor']['model']['change'](()=>{_0x4891ee['markMultiRangeBlockFormat'](_0xcb202e,{'commandName':'listStart','commandParams':[{'startIndex':_0x2e4180['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x1516b7){if('formatBlock'!=_0x1516b7['type']&&'formatInline'!=_0x1516b7['type'])return;const _0x4e3606=this['editor']['locale'],{data:_0x52012a}=_0x1516b7;if(!_0x52012a)return;let _0x854184,_0x4e748e;switch(_0x52012a['commandName']){case'listStyle':_0x854184='*Change\x20to:*\x20%0',_0x4e748e={'type':'format','content':c(_0x4e3606,_0x854184,c(_0x4e3606,this['_getTranslationKeyForListStyle'](_0x52012a['commandParams'][0x0]['type'])))};break;case'listReversed':_0x854184=_0x52012a['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4e748e={'type':'format','content':c(_0x4e3606,_0x854184)};break;case'listStart':_0x854184='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4e748e={'type':'format','content':c(_0x4e3606,_0x854184,_0x52012a['commandParams'][0x0]['startIndex'])};}return _0x4e748e;}['_getSuggestionBlocksForListStyle'](){const _0x128a45=this['editor']['plugins']['get']('LegacyListUtils');let _0x3c4695=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x3c4695[0x0]?.['is']('element','listItem')&&_0x3c4695['unshift'](..._0x128a45['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x3c4695[_0x3c4695['length']-0x1]?.['is']('element','listItem')&&_0x3c4695['push'](..._0x128a45['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x3c4695=[...new Set(_0x3c4695)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x3c4695=_0x3c4695['filter'](_0x2a612d=>_0x2a612d['is']('element','listItem'))),_0x3c4695;}['_getSuggestionBlocks'](_0x5cf5b7){const _0x4cb3b7=this['editor']['plugins']['get']('LegacyListUtils');let _0x281ce3=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x5cf5b7)['map'](_0x5a9dd4=>{const _0x4b0791=this['editor']['model']['createPositionAt'](_0x5a9dd4,0x0);return[..._0x4cb3b7['getSiblingNodes'](_0x4b0791,'backward'),..._0x4cb3b7['getSiblingNodes'](_0x4b0791,'forward')];})['flat']();return _0x281ce3=[...new Set(_0x281ce3)],_0x281ce3;}['_getTranslationKeyForListStyle'](_0x83b248){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x83b248)||'default')['toUpperCase']()+'_LIST_'+_0x83b248['toUpperCase']()['replace'](/-/g,'_');}}class mt extends _0x3e2428{['afterInit'](){const _0x253f2b=this['editor'];if(!_0x253f2b['plugins']['has']('MediaEmbedEditing'))return;const _0xc68487=_0x253f2b['plugins']['get']('TrackChangesEditing'),_0x192d0b=_0x253f2b['locale'];_0xc68487['enableCommand']('mediaEmbed'),_0xc68487['descriptionFactory']['registerElementLabel']('media',_0x519276=>c(_0x192d0b,'ELEMENT_MEDIA',_0x519276)),_0x253f2b['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x3de94a,{writer:_0x33a1d5,options:_0x25460d})=>{if(_0x25460d['showSuggestionHighlights'])return _0x33a1d5['createEmptyElement']('div');},'converterPriority':'high'}),_0x253f2b['data']['downcastDispatcher']['on']('attribute:url:media',(_0x26b014,_0x125c8c,_0x4f2add)=>{_0x4f2add['options']['showSuggestionHighlights']&&_0x26b014['stop']();},{'priority':'high'});}}class pt extends _0x3e2428{['afterInit'](){const _0x473f16=this['editor'];_0x473f16['plugins']['has']('MentionEditing')&&_0x473f16['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class kt extends _0x3e2428{['afterInit'](){const _0x31f65a=this['editor'];if(!_0x31f65a['plugins']['has']('MergeFieldsEditing'))return;const _0x16635b=_0x31f65a['plugins']['get']('TrackChangesEditing'),_0x5a5a1f=_0x31f65a['locale'];_0x16635b['enableCommand']('insertMergeField'),_0x16635b['enableCommand']('insertMergeFieldBlock'),_0x16635b['enableCommand']('insertMergeFieldImage'),_0x16635b['descriptionFactory']['registerElementLabel']('mergeField',_0x584691=>c(_0x5a5a1f,'ELEMENT_MERGE_FIELD',_0x584691)),_0x16635b['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x57ba7c=>c(_0x5a5a1f,'ELEMENT_MERGE_FIELD',_0x57ba7c)),_0x16635b['descriptionFactory']['registerDescriptionCallback'](_0x48f3a3=>{if('insertion'!=_0x48f3a3['type']&&'deletion'!=_0x48f3a3['type'])return;const _0x16c5c1=_0x48f3a3['getContainedElement']();if(null==_0x16c5c1)return;const _0x40a279=_0x31f65a['plugins']['get']('MergeFieldsEditing');let _0x145331;switch(_0x40a279['getMergeFieldType'](_0x16c5c1)){case null:return;case'image':{const _0x40cb25=_0x40a279['unwrapAffixes'](_0x16c5c1['getAttribute']('src'));_0x145331=_0x40a279['getLabel'](_0x40cb25)||_0x40cb25;break;}default:{const _0x4ae8db=_0x16c5c1['getAttribute']('id');_0x145331=_0x40a279['getLabel'](_0x4ae8db)||_0x4ae8db;break;}}return'insertion'==_0x48f3a3['type']?{'type':'insertion','content':c(_0x5a5a1f,'*Insert:*\x20%0','\x22'+_0x145331+'\x22\x20'+c(_0x5a5a1f,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x5a5a1f,'*Remove:*\x20%0','\x22'+_0x145331+'\x22\x20'+c(_0x5a5a1f,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x3e2428{['afterInit'](){const _0x2f8aaa=this['editor'],_0x2cabb3=_0x2f8aaa['plugins']['get']('TrackChangesEditing');_0x2f8aaa['plugins']['has']('MultiLevelList')&&(_0x2cabb3['enableDefaultAttributesIntegration']('multiLevelList'),_0x2cabb3['registerBlockAttribute']('listMarkerStyle'),_0x2cabb3['descriptionFactory']['registerDescriptionCallback'](_0x26d50d=>this['handleDescriptions'](_0x26d50d)));}['handleDescriptions'](_0x22a696){const _0x20427a=this['editor']['locale'],{data:_0x219973}=_0x22a696,_0x45ddbc={'type':'format','content':''};if(_0x219973&&'listMarkerStyle'==_0x219973['key']){if(!_0x219973['oldValue'])return{'type':'format','content':c(_0x20427a,'*Set\x20format:*\x20%0',c(_0x20427a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x219973['newValue']+')'};if(!_0x219973['newValue']){let _0x158ccd=_0x22a696['head'];for(;_0x158ccd;){if(_0x158ccd['data']&&'listType'==_0x158ccd['data']['key']&&_0x158ccd['data']['newValue'])return _0x45ddbc;_0x158ccd=_0x158ccd['next'];}return{'type':'format','content':c(_0x20427a,'*Remove\x20format:*\x20%0',c(_0x20427a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x219973['oldValue']+')'};}}}}class bt extends _0x3e2428{['afterInit'](){const _0x2835fb=this['editor'];if(!_0x2835fb['plugins']['has']('PageBreakEditing'))return;_0x2835fb['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x56313b=_0x2835fb['plugins']['get']('TrackChangesEditing'),_0x130488=_0x2835fb['locale'];_0x56313b['descriptionFactory']['registerElementLabel']('pageBreak',_0x23a208=>c(_0x130488,'ELEMENT_PAGE_BREAK',_0x23a208));}}class yt extends _0x3e2428{['afterInit'](){const _0x33302c=this['editor'];if(!_0x33302c['plugins']['has']('Paragraph'))return;const _0x43a8d6=_0x33302c['locale'],_0x10b1e9=_0x33302c['plugins']['get']('TrackChangesEditing');_0x10b1e9['descriptionFactory']['registerElementLabel']('paragraph',_0xf74491=>c(_0x43a8d6,'ELEMENT_PARAGRAPH',_0xf74491)),_0x10b1e9['enableDefaultAttributesIntegration']('paragraph'),_0x10b1e9['enableCommand']('insertParagraph'),_0x33302c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x33302c),{'priority':'highest'}),_0x33302c['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x45035a,_0x52adac,_0x47ddd8)=>{_0x47ddd8['options']['showSuggestionHighlights']&&nr(_0x33302c,{'showActiveMarker':!0x1})(_0x45035a,_0x52adac,_0x47ddd8);},{'priority':'highest'});const _0x5d43f4=_0x10b1e9['descriptionFactory'];_0x5d43f4['registerDescriptionCallback'](_0x1aac6a=>{if('insertion'!==_0x1aac6a['type'])return;const {start:_0x4d29d8,end:_0x23ebce}=_0x1aac6a['getFirstRange']();if(!_0x4d29d8['isTouching'](_0x23ebce)||!_0x4d29d8['nodeAfter'])return;const _0x18bf4a=_0x33302c['model']['schema'],_0x58467b=_0x4d29d8['nodeAfter'];return _0x18bf4a['isBlock'](_0x58467b)&&!_0x18bf4a['isLimit'](_0x58467b)&&_0x18bf4a['checkChild'](_0x58467b,'$text')?{'type':'insertion','content':c(_0x43a8d6,'*Insert:*\x20%0',_0x5d43f4['getItemLabel'](_0x58467b,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x596889=this['editor'],_0x238048=_0x596889['locale'];_0x596889['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2551b3=>{if('formatBlock'!=_0x2551b3['type'])return;const {data:_0x59aac4}=_0x2551b3;return _0x59aac4&&'paragraph'==_0x59aac4['commandName']?{'type':'format','content':c(_0x238048,'*Change\x20to:*\x20%0',c(_0x238048,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x2f8864,{showActiveMarker:_0x16a393=!0x0}={}){return(_0x1645e6,_0x31ba84,_0x21875c)=>{const _0x54542d=_0x2f8864['plugins']['get']('TrackChangesEditing'),_0x44fc99=_0x31ba84['markerRange']['start'],_0x34818f=_0x31ba84['markerRange']['end'],_0x2eb0fc=_0x2f8864['model']['schema'];if(!_0x44fc99['isTouching'](_0x34818f)||!_0x44fc99['nodeAfter'])return;const _0x55da63=_0x44fc99['nodeAfter'];if(_0x2eb0fc['isBlock'](_0x55da63)&&!_0x2eb0fc['isLimit'](_0x55da63)&&_0x2eb0fc['checkChild'](_0x55da63,'$text')){if(!_0x21875c['consumable']['consume'](_0x31ba84['markerRange'],_0x1645e6['name']))return;const {id:_0x4bddc6,authorId:_0x349f60}=_0x54542d['_splitMarkerName'](_0x31ba84['markerName']),_0x562ac0=_0x21875c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x4bddc6,'data-author-id':_0x349f60}),_0x2628c1=_0x21875c['mapper']['toViewPosition'](_0x34818f);_0x16a393&&_0x54542d['activeMarkers']['includes'](_0x31ba84['markerName'])&&_0x21875c['writer']['addClass']('ck-suggestion-marker--active',_0x562ac0),_0x21875c['writer']['insert'](_0x2628c1,_0x562ac0),_0x21875c['mapper']['bindElementToMarker'](_0x562ac0,_0x31ba84['markerName']);}};}class jt extends _0x3e2428{['afterInit'](){const _0xc968f2=this['editor'];_0xc968f2['commands']['get']('replaceSource')&&_0xc968f2['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x3e2428{['afterInit'](){const _0x423b78=this['editor'];if(!_0x423b78['plugins']['has']('RemoveFormatEditing'))return;_0x423b78['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9eca37=this['editor'];_0x9eca37['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15dd03=>{if('formatBlock'!=_0x15dd03['type']&&'formatInline'!=_0x15dd03['type'])return;const {data:_0x1e54cc}=_0x15dd03;return _0x1e54cc&&'removeFormat'==_0x1e54cc['commandName']?{'type':'format','content':c(_0x9eca37['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x3e2428{['afterInit'](){const _0x565254=this['editor'];if(!_0x565254['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3e397a=_0x565254['plugins']['get']('TrackChangesEditing');_0x3e397a['enableCommand']('goToPreviousRestrictedEditingException'),_0x3e397a['enableCommand']('goToNextRestrictedEditingException');const _0x205e9b=_0x565254['plugins']['get']('RestrictedEditingModeEditing');_0x205e9b['enableCommand']('trackChanges'),_0x205e9b['enableCommand']('acceptSuggestion'),_0x205e9b['enableCommand']('discardSuggestion'),_0x205e9b['enableCommand']('acceptAllSuggestions'),_0x205e9b['enableCommand']('discardAllSuggestions'),_0x205e9b['enableCommand']('acceptSelectedSuggestions'),_0x205e9b['enableCommand']('discardSelectedSuggestions');}}class It extends _0x3e2428{['afterInit'](){const _0x33675a=this['editor'];if(!_0x33675a['plugins']['has']('ShiftEnter'))return;const _0x1cfff1=_0x33675a['plugins']['get']('TrackChangesEditing');_0x1cfff1['enableCommand']('shiftEnter'),_0x33675a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x33675a),{'priority':'high'}),_0x33675a['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x33675a),{'priority':'high'}),_0x33675a['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x166e65,_0x77b6f4,_0x3c213d)=>{_0x3c213d['options']['showSuggestionHighlights']&&je(_0x33675a,{'showActiveMarker':!0x1})(_0x166e65,_0x77b6f4,_0x3c213d);}),_0x1cfff1['descriptionFactory']['registerElementLabel']('softBreak',_0x1795e5=>c(_0x33675a['locale'],'ELEMENT_LINE_BREAK',_0x1795e5));}}function je(_0x2908a2,{showActiveMarker:_0x149a50=!0x0}={}){return(_0x47f063,_0x5b9691,_0x245aef)=>{const _0x40d7fe=_0x2908a2['plugins']['get']('TrackChangesEditing');if(!_0x245aef['consumable']['test'](_0x5b9691['markerRange'],_0x47f063['name']))return;const _0x2024ff=_0x2908a2['model'];for(const _0x1c4b83 of _0x5b9691['markerRange']['getItems']()){if(!_0x1c4b83['is']('element','softBreak'))continue;const _0x2526ec='deletion'==_0x5b9691['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x1d6972,authorId:_0x5ce776}=_0x40d7fe['_splitMarkerName'](_0x5b9691['markerName']),_0x5534c0=_0x245aef['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2526ec,'data-suggestion':_0x1d6972,'data-author-id':_0x5ce776}),_0x34a567=_0x245aef['mapper']['toViewPosition'](_0x2024ff['createPositionBefore'](_0x1c4b83));_0x149a50&&_0x40d7fe['activeMarkers']['includes'](_0x5b9691['markerName'])&&_0x245aef['writer']['addClass']('ck-suggestion-marker--active',_0x5534c0),_0x245aef['writer']['insert'](_0x34a567,_0x5534c0),_0x245aef['mapper']['bindElementToMarker'](_0x5534c0,_0x5b9691['markerName']);}};}class _t extends _0x3e2428{['afterInit'](){const _0x5003be=this['editor'],_0xf747b3=_0x5003be['model'],_0x1d1f72=_0x5003be['locale'];if(!_0x5003be['plugins']['has']('StandardEditingModeEditing'))return;const _0x290902=_0x5003be['plugins']['get']('TrackChangesEditing'),_0x256669='restrictedEditingException',_0x385419=_0x5003be['commands']['get'](_0x256669);_0x290902['enableCommand'](_0x256669,(_0x2105e4,_0x2b6438={})=>{const _0x209bb2=_0xf747b3['document']['selection'];if(_0x209bb2['isCollapsed'])return void _0x2105e4(_0x2b6438);const _0x36e7b7=void 0x0!==_0x2b6438['forceValue']?_0x2b6438['forceValue']:!_0x385419['value'];_0xf747b3['change'](()=>{const _0x2e1c05=Array['from'](_0x209bb2['getRanges']());for(const _0x1b201a of _0x2e1c05){const _0x4df966=_0x36e7b7?[_0x1b201a]:io(_0x256669,_0x1b201a,_0xf747b3);for(const _0x29bf1c of _0x4df966)_0x290902['markInlineFormat'](_0x29bf1c,{'commandName':_0x256669,'commandParams':[{'forceValue':_0x36e7b7}]});}});}),_0x290902['descriptionFactory']['registerDescriptionCallback'](_0x1db0b0=>{if('formatBlock'!=_0x1db0b0['type']&&'formatInline'!=_0x1db0b0['type'])return;const {data:_0x30b9e9}=_0x1db0b0;return _0x30b9e9&&_0x30b9e9['commandName']==_0x256669?_0x30b9e9['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x1d1f72,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x1d1f72,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x3e2428{['afterInit'](){const _0x5b8630=this['editor'];if(!_0x5b8630['plugins']['has']('Style')||!_0x5b8630['plugins']['has']('DataSchema'))return;const _0x4ae259=_0x5b8630['plugins']['get']('TrackChangesEditing'),_0x3a4d91=_0x5b8630['locale'],_0x57cec6=_0x5b8630['config']['get']('style')||{},_0x2b92ef=_0x5b8630['plugins']['get']('GeneralHtmlSupport'),_0x43a0dc=_0x5b8630['plugins']['get']('StyleUtils')['normalizeConfig'](_0x5b8630['plugins']['get']('DataSchema'),_0x57cec6['definitions']);_0x4ae259['enableDefaultAttributesIntegration']('style');const _0x241fb3=new Set();for(const _0x893482 of _0x43a0dc['block']){const _0x13ffbd=_0x2b92ef['getGhsAttributeNameForElement'](_0x893482['element']);_0x241fb3['add'](_0x13ffbd);}const _0x1a7781=new Set();for(const _0x164dc0 of _0x43a0dc['inline']){const _0x162e90=_0x2b92ef['getGhsAttributeNameForElement'](_0x164dc0['element']);_0x1a7781['add'](_0x162e90);for(const _0x32eaf3 of _0x164dc0['ghsAttributes'])_0x1a7781['add'](_0x32eaf3);}for(const _0x336e5d of _0x241fb3)_0x4ae259['registerBlockAttribute'](_0x336e5d),_0x4ae259['descriptionFactory']['registerAttributeLabel'](_0x336e5d,c(_0x3a4d91,'FORMAT_STYLE'));for(const _0x4db9ed of _0x1a7781)_0x4ae259['registerInlineAttribute'](_0x4db9ed),_0x4ae259['descriptionFactory']['registerAttributeLabel'](_0x4db9ed,c(_0x3a4d91,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x206216=this['editor'],_0x112578=_0x206216['locale'];_0x206216['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x173b73=>{if('formatBlock'!=_0x173b73['type']&&'formatInline'!=_0x173b73['type'])return;const {data:_0x27f7b8}=_0x173b73;return _0x27f7b8&&'style'===_0x27f7b8['commandName']?_0x27f7b8['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x112578,'*Set\x20format:*\x20%0',_0x27f7b8['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x112578,'*Remove\x20format:*\x20%0',_0x27f7b8['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x3e2428{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0xcc35ed){super(_0xcc35ed),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x39ff17=this['editor'],_0x4733cd=_0x39ff17['model']['document']['selection'];if(!_0x39ff17['plugins']['has']('TableEditing'))return;const _0x3165dd=_0x39ff17['locale'],_0x4c82ab=_0x39ff17['plugins']['get']('TrackChangesEditing'),_0x49e7d6=_0x39ff17['plugins']['get']('TableUtils');_0x4c82ab['descriptionFactory']['registerElementLabel']('table',_0x67f2a7=>c(_0x3165dd,'ELEMENT_TABLE',_0x67f2a7)),this['_setupColumnsRowsFixing'](),_0x4c82ab['enableCommand']('insertTable'),_0x4c82ab['enableCommand']('selectTableRow'),_0x4c82ab['enableCommand']('selectTableColumn');for(const _0x245760 of['insertTableRowAbove','insertTableRowBelow']){const _0x5d76d5=_0x39ff17['commands']['get'](_0x245760);_0x4c82ab['enableCommand'](_0x245760,_0x13e01d=>{_0x39ff17['model']['change'](_0x241b53=>{_0x13e01d();const _0xd9ce6a='above'===_0x5d76d5['order'],_0x404fb1=_0x49e7d6['getSelectionAffectedTableCells'](_0x4733cd),_0x115b2b=_0x49e7d6['getRowIndexes'](_0x404fb1),_0x3b21da=_0xd9ce6a?_0x115b2b['first']-0x1:_0x115b2b['last']+0x1,_0xe87e51=_0x404fb1[0x0]['findAncestor']('table'),_0x10bb88=_0x49e7d6['createTableWalker'](_0xe87e51,{'startRow':_0x3b21da,'endRow':_0x3b21da}),_0x61bb7c=Array['from'](_0x10bb88)['map'](_0x489d28=>_0x241b53['createRangeOn'](_0x489d28['cell']));_0x4c82ab['markMultiRangeInsertion'](_0x61bb7c,'tableRow');});});}for(const _0x546500 of['insertTableColumnLeft','insertTableColumnRight']){const _0x5ca63d=_0x39ff17['commands']['get'](_0x546500);_0x4c82ab['enableCommand'](_0x546500,_0xfe6f2e=>{_0x39ff17['model']['change'](_0x23f51b=>{_0xfe6f2e();const _0xacd0f1='left'===_0x5ca63d['order'],_0x26006e=_0x49e7d6['getSelectionAffectedTableCells'](_0x4733cd),_0x1ce305=_0x49e7d6['getColumnIndexes'](_0x26006e),_0x1370a7=_0xacd0f1?_0x1ce305['first']-0x1:_0x1ce305['last']+0x1,_0x228cee=_0x26006e[0x0]['findAncestor']('table'),_0x589f15=_0x49e7d6['createTableWalker'](_0x228cee,{'startRow':0x0,'column':_0x1370a7,'includeAllSlots':!0x1}),_0x912a09=Array['from'](_0x589f15)['map'](_0xea4498=>_0x23f51b['createRangeOn'](_0xea4498['cell']));_0x4c82ab['markMultiRangeInsertion'](_0x912a09,'tableColumn');});});}for(const _0x215ebc of['removeTableRow','removeTableColumn']){const _0x31f019=_0x215ebc['substr'](0xb),_0x2b1c11=_0x31f019['toLowerCase'](),_0x22cb97=_0x2b1c11['substr'](0x0,0x3)+'span',_0x45becd='table'+_0x31f019,_0x301a4d='min'+_0x31f019,_0x2c6dc6='max'+_0x31f019;_0x4c82ab['enableCommand'](_0x215ebc,()=>{_0x39ff17['model']['change'](_0x437f64=>{const _0x1f491c=_0x49e7d6['getSelectionAffectedTableCells'](_0x4733cd),_0x14959d=_0x1f491c[0x0]['findAncestor']('table');let _0x1623be;if('removeTableRow'==_0x215ebc){const _0x2e547a=_0x49e7d6['getRowIndexes'](_0x1f491c);_0x1623be={'startRow':_0x2e547a['first'],'endRow':_0x2e547a['last'],'includeAllSlots':!0x0};}else{const _0x502e74=_0x49e7d6['getColumnIndexes'](_0x1f491c);_0x1623be={'startColumn':_0x502e74['first'],'endColumn':_0x502e74['last'],'includeAllSlots':!0x0};}const _0x4934b6=_0x49e7d6['createTableWalker'](_0x14959d,_0x1623be),_0x256f71=Array['from'](_0x4934b6)['map'](({cell:_0x3fce14})=>_0x3fce14),_0x484838=xe(_0x256f71['filter'](_0x5b0856=>_0x5b0856['hasAttribute'](_0x22cb97))),_0x26817b=xe(_0x256f71['filter'](_0x246d3e=>!_0x246d3e['hasAttribute'](_0x22cb97)))['map'](_0x4da916=>_0x437f64['createRangeOn'](_0x4da916)),_0x478fb6=_0x4c82ab['markMultiRangeDeletion'](_0x26817b,_0x45becd);if(_0x478fb6&&('tableRow'==_0x478fb6['subType']||'tableColumn'==_0x478fb6['subType'])){const _0x3be4a2=this['_getSuggestionCoords'](_0x478fb6);for(const _0xc68b23 of _0x484838){const _0x56ecc6=_0x437f64['createRangeOn'](_0xc68b23),_0x392709=_0x49e7d6['getCellLocation'](_0xc68b23),_0x46a063=_0xc68b23['getAttribute'](_0x22cb97)-0x1,_0x51ef17=_0x3be4a2[_0x301a4d],_0x5b3243=_0x3be4a2[_0x2c6dc6];_0x51ef17<=_0x392709[_0x2b1c11]&&_0x392709[_0x2b1c11]+_0x46a063<=_0x5b3243&&_0x478fb6['addRange'](_0x56ecc6);}}});});}function _0x2e1388(_0xb4b2ed){const _0x2ffea2=Array['from'](_0x4733cd['getRanges']())['map'](_0x5e5944=>_0x2daf6a['fromRange'](_0x5e5944));_0x39ff17['model']['change'](_0x1a1fd=>{const _0xef327=_0x1a1fd['batch'];_0xb4b2ed=_0xb4b2ed['filter'](_0x4068d2=>'$graveyard'!=_0x4068d2['root']['rootName']),_0x1a1fd['setSelection'](_0xb4b2ed),_0x39ff17['commands']['get']('removeTableRow')['refresh'](),_0x39ff17['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x39ff17['model']['enqueueChange'](()=>{_0x39ff17['model']['enqueueChange'](_0xef327,_0x1595c2=>{const _0x4d70bd=_0x2ffea2['filter'](_0x2e1f54=>'$graveyard'!=_0x2e1f54['root']['rootName']);_0x4d70bd['length']>0x0&&_0x1595c2['setSelection'](_0x4d70bd);for(const _0x41aa4a of _0x2ffea2)_0x41aa4a['detach']();});});});}function _0x49ca50(_0x533f5f){_0x39ff17['model']['change'](_0x4289a1=>{const _0x48385a=Array['from'](_0x4733cd['getRanges']())['map'](_0x20f39b=>_0x2daf6a['fromRange'](_0x20f39b)),_0x176c16=[];for(const _0x224a6d of _0x533f5f)for(const _0x35610b of _0x224a6d['getItems']({'shallow':!0x0}))_0x176c16['push'](_0x35610b);for(const _0xc0dbb2 of _0x176c16)'$graveyard'!=_0xc0dbb2['root']['rootName']&&(_0x4289a1['setSelection'](_0x4289a1['createPositionAt'](_0xc0dbb2,0x0)),_0x39ff17['commands']['get']('removeTableColumn')['refresh'](),_0x39ff17['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x48518e=_0x48385a['filter'](_0x484308=>'$graveyard'!=_0x484308['root']['rootName']);_0x48518e['length']>0x0&&_0x4289a1['setSelection'](_0x48518e);for(const _0xe21cca of _0x48385a)_0xe21cca['detach']();});}function _0x309c2a(_0xb9d856,_0x30dacb){return _0x30dacb['every'](_0x1b61c0=>_0xb9d856['some'](_0x2cb242=>_0x2cb242['end']['isEqual'](_0x1b61c0['start'])||_0x1b61c0['end']['isEqual'](_0x2cb242['start'])));}function _0xf67d7e(_0x13a6c7,_0x5030ba){return!_0x13a6c7['some'](_0x507b48=>_0x5030ba['some'](_0x3d3388=>_0x507b48['isIntersecting'](_0x3d3388)))&&_0x13a6c7['some'](_0x5648a4=>_0x5030ba['some'](_0x6921cd=>_0x5648a4['end']['isTouching'](_0x6921cd['start'])));}_0x39ff17['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xd9a662,_0x137a0b,_0x599b91)=>{if(!_0x599b91['options']['showSuggestionHighlights'])return;const _0x84c271=_0x137a0b['item'];if(!_0x84c271||!_0x84c271['is']('element','tableCell'))return;const _0x3f8b7c=_0x599b91['mapper']['toViewElement'](_0x84c271);if(_0x3f8b7c){const {id:_0x433fc0,authorId:_0x4d3519}=_0x4c82ab['_splitMarkerName'](_0x137a0b['markerName']);_0x18e857(_0x3f8b7c,_0x599b91['writer'],(_0x3a7177,_0x56601f,_0x436b2d)=>{_0x436b2d['addClass'](_0x9aaf0b(_0x56601f['classes']),_0x3a7177),_0x436b2d['setAttribute']('data-suggestion-id',_0x433fc0,_0x3a7177),_0x436b2d['setAttribute']('data-author-id',_0x4d3519,_0x3a7177);},(_0xabc7cf,_0x2f880c,_0x1bff9c)=>{_0x1bff9c['removeClass'](_0x9aaf0b(_0x2f880c['classes']),_0xabc7cf),_0x1bff9c['removeAttribute']('data-suggestion-id',_0xabc7cf),_0x1bff9c['removeAttribute']('data-author-id',_0xabc7cf);});}},{'priority':'highest'}),_0x4c82ab['descriptionFactory']['registerDescriptionCallback'](_0x3f772b=>{if('insertion'!=_0x3f772b['type']&&'deletion'!=_0x3f772b['type'])return;const _0x5de665=_0x3f772b['getContainedElement']();if(null!=_0x5de665&&_0x5de665['is']('element','table')){if('insertion'==_0x3f772b['type']){const _0x92acba=_0x3f772b['getItems']()['filter'](_0xadf4a2=>_0xadf4a2['is']('$textProxy'))['map'](_0x52bcae=>_0x52bcae['data']);if(_0x92acba['length'])return{'type':'insertion','content':c(_0x3165dd,'*Insert:*\x20%0',c(_0x3165dd,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x92acba['join']('\x20')+'\x22'))};}if('deletion'==_0x3f772b['type']){const _0x3559e7=_0x3f772b['getItems']()['filter'](_0x4aa4d0=>_0x4aa4d0['is']('$textProxy'))['map'](_0x4a52f6=>_0x4a52f6['data']);if(_0x3559e7['length'])return{'type':'deletion','content':c(_0x3165dd,'*Remove:*\x20%0',c(_0x3165dd,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3559e7['join']('\x20')+'\x22'))};}}}),_0x4c82ab['descriptionFactory']['registerDescriptionCallback'](_0x31c19f=>{if('tableRow'==_0x31c19f['subType']){const _0x14241c=_0x31c19f['getItems']()['filter'](_0x1a1665=>_0x1a1665['is']('$textProxy'))['map'](_0x8846d3=>_0x8846d3['data']),_0x510ad0=this['_getSuggestionCoords'](_0x31c19f),_0x1d3771=_0x510ad0['maxRow']-_0x510ad0['minRow']+0x1;if('insertion'==_0x31c19f['type'])return _0x14241c['length']?{'type':'insertion','content':c(_0x3165dd,'*Insert:*\x20%0',c(_0x3165dd,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1d3771,'\x22'+_0x14241c['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x3165dd,'*Insert:*\x20%0',c(_0x3165dd,'ELEMENT_TABLE_ROW',_0x1d3771))};if('deletion'==_0x31c19f['type'])return _0x14241c['length']?{'type':'deletion','content':c(_0x3165dd,'*Remove:*\x20%0',c(_0x3165dd,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1d3771,'\x22'+_0x14241c['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x3165dd,'*Remove:*\x20%0',c(_0x3165dd,'ELEMENT_TABLE_ROW',_0x1d3771))};}if('tableColumn'==_0x31c19f['subType']){const _0x22faa7=_0x31c19f['getItems']()['filter'](_0x47febd=>_0x47febd['is']('$textProxy'))['map'](_0x936e4a=>_0x936e4a['data']),_0x1dbda4=this['_getSuggestionCoords'](_0x31c19f),_0x391e09=_0x1dbda4['maxColumn']-_0x1dbda4['minColumn']+0x1;if('insertion'==_0x31c19f['type'])return _0x22faa7['length']?{'type':'insertion','content':c(_0x3165dd,'*Insert:*\x20%0',c(_0x3165dd,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x391e09,'\x22'+_0x22faa7['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x3165dd,'*Insert:*\x20%0',c(_0x3165dd,'ELEMENT_TABLE_COLUMN',_0x391e09))};if('deletion'==_0x31c19f['type'])return _0x22faa7['length']?{'type':'deletion','content':c(_0x3165dd,'*Remove:*\x20%0',c(_0x3165dd,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x391e09,'\x22'+_0x22faa7['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x3165dd,'*Remove:*\x20%0',c(_0x3165dd,'ELEMENT_TABLE_COLUMN',_0x391e09))};}}),_0x4c82ab['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2e1388),_0x4c82ab['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2e1388),_0x4c82ab['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x49ca50),_0x4c82ab['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x49ca50),_0x4c82ab['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x309c2a),_0x4c82ab['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x309c2a),_0x4c82ab['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0xf67d7e),_0x4c82ab['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0xf67d7e);}['_acceptFormatSuggestionCallbackFactory'](){const _0x1bc2f4=this['editor'],_0x4584c7=_0x1bc2f4['model']['document']['selection'];return(_0x31c575,_0x3e04ad)=>{_0x1bc2f4['model']['change'](_0x58b531=>{const {commandName:_0x318c35,commandParams:_0x3672f5}=_0x3e04ad;let _0x20b7d3=_0x31c575[0x0]['end']['nodeBefore'];_0x3672f5&&_0x3672f5[0x0]&&!0x1===_0x3672f5[0x0]['forceValue']&&(_0x20b7d3=_0x31c575[0x0]['start']['nodeAfter']);const _0x2bd0ef=_0x58b531['createRangeIn'](_0x20b7d3);if('$graveyard'==_0x2bd0ef['root']['rootName'])return;const _0x286e29=Array['from'](_0x4584c7['getRanges']())['map'](_0x545043=>_0x2daf6a['fromRange'](_0x545043));_0x58b531['setSelection'](_0x2bd0ef),_0x1bc2f4['commands']['get'](_0x318c35)['refresh'](),_0x3672f5['push']({'forceDefaultExecution':!0x0}),_0x1bc2f4['execute'](_0x318c35,..._0x3672f5);const _0xd331c8=_0x286e29['filter'](_0xc38730=>'$graveyard'!=_0xc38730['root']['rootName']);_0xd331c8['length']>0x0&&_0x58b531['setSelection'](_0xd331c8);for(const _0xe549ea of _0x286e29)_0xe549ea['detach']();});};}['_getCoordsForCells'](_0x2391bd){const _0x1b7676=this['editor']['plugins']['get']('TableUtils');let _0x49fefa=Number['MAX_SAFE_INTEGER'],_0x178926=Number['MIN_SAFE_INTEGER'],_0x145f8a=Number['MAX_SAFE_INTEGER'],_0x589766=Number['MIN_SAFE_INTEGER'];for(const _0x1f0555 of _0x2391bd){if('$graveyard'==_0x1f0555['root']['rootName'])continue;const {row:_0x40a4cd,column:_0x4c0153}=_0x1b7676['getCellLocation'](_0x1f0555),_0x7e9a14=_0x1f0555['hasAttribute']('rowspan')?_0x1f0555['getAttribute']('rowspan')-0x1:0x0,_0x5e3340=_0x1f0555['hasAttribute']('colspan')?_0x1f0555['getAttribute']('colspan')-0x1:0x0;_0x49fefa=_0x40a4cd<_0x49fefa?_0x40a4cd:_0x49fefa,_0x178926=_0x40a4cd+_0x7e9a14>_0x178926?_0x40a4cd+_0x7e9a14:_0x178926,_0x145f8a=_0x4c0153<_0x145f8a?_0x4c0153:_0x145f8a,_0x589766=_0x4c0153+_0x5e3340>_0x589766?_0x4c0153+_0x5e3340:_0x589766;}return{'minRow':_0x49fefa,'maxRow':_0x178926,'minColumn':_0x145f8a,'maxColumn':_0x589766};}['_setupColumnsRowsFixing'](){const _0x460084=this['editor'],_0x5476f5=_0x460084['plugins']['get']('TrackChangesEditing'),_0x96260c=_0x460084['plugins']['get']('TableUtils');_0x460084['model']['document']['on']('change:data',()=>{const _0xe24f07=Array['from'](_0x460084['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3926f7,data:_0x304ec7}of _0xe24f07){const {group:_0x25a942,id:_0x374339,subType:_0x21bdaa}=_0x5476f5['_splitMarkerName'](_0x3926f7);if('suggestion'!=_0x25a942)continue;if(null!=_0x304ec7['oldRange'])continue;const _0x26951c=_0x5476f5['getSuggestion'](_0x374339);this['_tablePostFixingSubtypes']['includes'](_0x21bdaa)&&this['_tableSuggestions']['add'](_0x26951c);}},{'priority':'low'});const _0x3e3e46=(_0x25a335,_0xb8abe0)=>{let _0x5b4f68=!0x1;const _0x38cd57=_0xb8abe0['createRangeOn'](_0x25a335),_0x4a129d=_0x25a335['findAncestor']('table'),_0x2ac14d=_0x96260c['getCellLocation'](_0x25a335);for(const _0x28fce7 of this['_tableSuggestions']){const _0x5f008c=_0x28fce7['subType'],_0x5c7e38=_0x5f008c['startsWith']('tablePaste'),_0x38945e=_0x5f008c['substr'](_0x5c7e38?0xa:0x5),_0x156a5f=_0x38945e['toLowerCase'](),_0x365242=_0x156a5f['substr'](0x0,0x3)+'span',_0x47450e='min'+_0x38945e,_0x47746d='max'+_0x38945e;if(!_0x28fce7['isInContent'])continue;if(_0x4a129d!=_0x28fce7['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x28fce7['isIntersectingWithRange'](_0x38cd57))continue;const _0x436f76=_0x25a335['hasAttribute'](_0x365242)?_0x25a335['getAttribute'](_0x365242)-0x1:0x0,_0x16dbb3=this['_getSuggestionCoords'](_0x28fce7),_0x4a82d5=_0x16dbb3[_0x47450e],_0x2aed7a=_0x16dbb3[_0x47746d];_0x4a82d5<=_0x2ac14d[_0x156a5f]&&_0x2ac14d[_0x156a5f]+_0x436f76<=_0x2aed7a&&(_0x28fce7['addRange'](_0x38cd57),_0x5b4f68=!0x0);}return _0x5b4f68;};_0x460084['model']['document']['registerPostFixer'](_0x3d49fb=>{let _0x387513=!0x1;for(const _0xcf30b3 of _0x460084['model']['document']['differ']['getChanges']())if('insert'==_0xcf30b3['type']){if('tableRow'==_0xcf30b3['name']){for(const _0x41570c of _0xcf30b3['position']['nodeAfter']['getChildren']())_0x387513=_0x387513||_0x3e3e46(_0x41570c,_0x3d49fb);}else'tableCell'==_0xcf30b3['name']&&(_0x387513=_0x387513||_0x3e3e46(_0xcf30b3['position']['nodeAfter'],_0x3d49fb));}return _0x387513;});}['_getSuggestionCoords'](_0x332c49){return this['_getCoordsForCells'](_0x332c49['getRanges']()['map'](_0x44c684=>_0x44c684['start']['nodeAfter']));}}function xe(_0x47c129){return Array['from'](new Set(_0x47c129)['values']());}class Nt extends _0x3e2428{static get['requires'](){return[Ct];}['afterInit'](){const _0xf32b96=this['editor'],_0x4284a7=_0xf32b96['model']['document']['selection'],_0x11ea71=_0xf32b96['locale'];if(!_0xf32b96['plugins']['has']('TableEditing'))return;const _0x451c61=_0xf32b96['plugins']['get']('TrackChangesEditing'),_0x17c2cf=_0xf32b96['plugins']['get']('TableUtils'),_0x571805=_0xf32b96['plugins']['get'](Ct);_0x571805['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x451c61['enableCommand']('mergeTableCells',()=>{const _0x386aa4=_0x17c2cf['getSelectionAffectedTableCells'](_0xf32b96['model']['document']['selection']);_0xf32b96['model']['change'](()=>{_0x451c61['markMultiRangeBlockFormat'](_0x386aa4,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0xf32b96['commands']['get']('mergeTableCells')['on']('execute',(_0x1cc883,_0x56632e)=>{_0xf32b96['commands']['get']('trackChanges')['value']&&(_0x56632e['length']>0x0&&_0x56632e[_0x56632e['length']-0x1]&&_0x56632e[_0x56632e['length']-0x1]['forceDefaultExecution']||_0x451c61['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1cc883['stop']());},{'priority':'highest'});for(const _0xec25f0 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x4f3144=_0xf32b96['commands']['get'](_0xec25f0);_0x451c61['enableCommand'](_0xec25f0,()=>{const _0x13d50=_0xf32b96['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1cbe8d=>_0x1cbe8d['is']('element','tableCell')),_0x5d4773=_0x4f3144['value'];_0xf32b96['model']['change'](()=>{_0x451c61['markMultiRangeBlockFormat']([_0x13d50,_0x5d4773],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x463085 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x5e4f54=_0xf32b96['commands']['get'](_0x463085);_0x451c61['enableCommand'](_0x463085,()=>{const _0x49e2c5=_0x17c2cf['getSelectionAffectedTableCells'](_0xf32b96['model']['document']['selection'])[0x0],_0x1f4c89=_0x49e2c5['findAncestor']('table'),{column:_0x17fe1f,row:_0x58958e}=_0x17c2cf['getCellLocation'](_0x49e2c5);let _0x492d2e=[];if('horizontally'==_0x5e4f54['direction']){const _0x3d1709=_0x17c2cf['createTableWalker'](_0x1f4c89,{'startRow':_0x58958e,'endRow':_0x58958e,'includeAllSlots':!0x0});_0x492d2e=Array['from'](_0x3d1709)['map'](_0x2bb103=>_0x2bb103['cell']);}else{const _0x3dd611=_0x17c2cf['createTableWalker'](_0x1f4c89,{'column':_0x17fe1f,'includeAllSlots':!0x0});_0x492d2e=Array['from'](_0x3dd611)['map'](_0x53f115=>_0x53f115['cell']);}_0xf32b96['model']['change'](_0x3201d2=>{_0x451c61['markBlockFormat'](_0x3201d2['createRangeOn'](_0x49e2c5),{'commandName':_0x463085,'commandParams':[]},_0x492d2e,_0x463085);});});}_0x451c61['descriptionFactory']['registerDescriptionCallback'](_0x4568ba=>{if('formatBlock'!=_0x4568ba['type']&&'formatInline'!=_0x4568ba['type'])return;const {data:_0x362d9a}=_0x4568ba;return _0x362d9a&&'mergeTableCells'==_0x362d9a['commandName']?{'type':'format','content':c(_0x11ea71,'*Merge\x20cells*')}:void 0x0;}),_0x451c61['descriptionFactory']['registerDescriptionCallback'](_0x5d4a7d=>{if('formatBlock'!=_0x5d4a7d['type']&&'formatInline'!=_0x5d4a7d['type'])return;const {data:_0x16290b}=_0x5d4a7d;return _0x16290b?'splitTableCellVertically'==_0x16290b['commandName']?{'type':'format','content':c(_0x11ea71,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x16290b['commandName']?{'type':'format','content':c(_0x11ea71,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5f43d5=_0x571805['_acceptFormatSuggestionCallbackFactory']();for(const _0x232ac1 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x451c61['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x232ac1,'accept',_0x5f43d5);for(const _0x4b146b of['splitTableCellVertically','splitTableCellHorizontally'])_0x451c61['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4b146b,'accept',_0x5f43d5);_0x451c61['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0xdfb969=>{_0xf32b96['model']['change'](_0x32c1fd=>{const _0x2bae54=Array['from'](_0x4284a7['getRanges']())['map'](_0xa906d8=>_0x2daf6a['fromRange'](_0xa906d8));_0x32c1fd['setSelection'](_0xdfb969),_0xf32b96['commands']['get']('mergeTableCells')['refresh'](),_0xf32b96['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x95f4f8=_0x2bae54['filter'](_0x4b7f1e=>'$graveyard'!=_0x4b7f1e['root']['rootName']);_0x95f4f8['length']>0x0&&_0x32c1fd['setSelection'](_0x95f4f8);for(const _0x8f9f36 of _0x2bae54)_0x8f9f36['detach']();});});for(const _0x31e0ef of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x549a44=_0xf32b96['commands']['get'](_0x31e0ef);_0x549a44['on']('set:isEnabled',(_0x657461,_0x5a9c8d,_0xf55b92)=>{if(_0xf55b92){const _0x2c8513=_0xf32b96['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5aa46d=>_0x5aa46d['is']('element','tableCell'));this['_areMergableCells'](_0x549a44['value'],_0x2c8513)||(_0x657461['return']=!0x1,_0x657461['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x17e381=this['editor']['commands']['get']('mergeTableCells'),_0x351541=this['editor']['plugins']['get']('TableUtils');if(!_0x17e381['isEnabled'])return!0x1;const _0x568bac=_0x351541['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4ce8fd of _0x568bac)for(const _0x49ab31 of _0x568bac)if(_0x4ce8fd!=_0x49ab31&&!this['_areMergableCells'](_0x4ce8fd,_0x49ab31))return!0x1;return!0x0;}['_areMergableCells'](_0x94acd1,_0x135ca9){const _0x5cba86=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3ac246=this['editor']['model']['createRangeOn'](_0x94acd1),_0x5bb9b9=this['editor']['model']['createRangeOn'](_0x135ca9),_0xd328e5=new Set(),_0x1bfa5c=new Set();for(const _0x9075fa of _0x5cba86['getSuggestions']())if(('insertion'==_0x9075fa['type']||'deletion'==_0x9075fa['type']||'mergeTableCells'==_0x9075fa['subType'])&&_0x9075fa['isInContent']){for(const _0x17ce3d of _0x9075fa['getRanges']())_0x17ce3d['containsRange'](_0x3ac246,!0x0)&&_0xd328e5['add'](_0x9075fa['type']+':'+_0x9075fa['author']['id']),_0x17ce3d['containsRange'](_0x5bb9b9,!0x0)&&_0x1bfa5c['add'](_0x9075fa['type']+':'+_0x9075fa['author']['id']);}if(_0xd328e5['size']!=_0x1bfa5c['size'])return!0x1;for(const _0x4f22d3 of _0xd328e5)if(!_0x1bfa5c['has'](_0x4f22d3))return!0x1;return!0x0;}}class Dt extends _0x3e2428{static get['requires'](){return[Ct];}['afterInit'](){const _0x3d52b4=this['editor'];if(!_0x3d52b4['plugins']['has']('TableEditing'))return;const _0x233943=_0x3d52b4['locale'],_0x4276f5=_0x3d52b4['plugins']['get']('TrackChangesEditing');_0x4276f5['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x4276f5['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x4276f5['registerBlockAttribute']('headingRows'),_0x4276f5['registerBlockAttribute']('headingColumns'),_0x4276f5['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x233943,'FORMAT_HEADER_ROW')),_0x4276f5['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x233943,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x101874=this['editor']['plugins']['get']('TrackChangesEditing'),_0x54f3e3=this['editor']['plugins']['get']('TableUtils'),_0x4a2aaa=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x25417d({showActiveMarker:_0x54d961=!0x0,setDataAttribute:_0x58df10=!0x0}={}){return(_0x2ba39,_0xdb818f,_0x28c468)=>{const {type:_0x347bb,id:_0x19f745}=_0x101874['_splitMarkerName'](_0xdb818f['markerName']),_0x2da1c4=_0x101874['getSuggestion'](_0x19f745),_0x27b2b6=_0x2da1c4['data'];if('formatBlock'!=_0x2da1c4['type']||!_0x27b2b6||'setTableColumnHeader'!=_0x27b2b6['commandName'])return;if(_0xdb818f['item'])return void _0x2ba39['stop']();if(!_0x28c468['consumable']['consume'](_0xdb818f['markerRange'],_0x2ba39['name']))return;const _0x3d200e=_0xdb818f['markerRange']['start']['nodeAfter'],_0x58a4fc=_0xdb818f['markerRange']['end']['nodeBefore'],_0x3e1020=_0x3d200e['parent']['parent'],{column:_0x4f80f9}=_0x54f3e3['getCellLocation'](_0x3d200e),{column:_0x1e8ca9}=_0x54f3e3['getCellLocation'](_0x58a4fc);for(let _0x2f50cd=_0x4f80f9;_0x2f50cd<=_0x1e8ca9;_0x2f50cd++){const _0x955e19=_0x54f3e3['createTableWalker'](_0x3e1020,{'column':_0x2f50cd,'includeAllSlots':!0x1});for(const _0x58d474 of _0x955e19){const _0x294c95=_0x58d474['cell'],_0x76aac4=_0x28c468['mapper']['toViewElement'](_0x294c95);_0x28c468['writer']['addClass']('ck-suggestion-marker-'+_0x347bb,_0x76aac4),_0x58df10&&_0x28c468['writer']['setAttribute']('data-suggestion',_0x19f745,_0x76aac4),_0x28c468['mapper']['bindElementToMarker'](_0x76aac4,_0xdb818f['markerName']),_0x54d961&&(_0x101874['activeMarkers']['includes'](_0xdb818f['markerName'])?_0x28c468['writer']['addClass']('ck-suggestion-marker--active',_0x76aac4):_0x28c468['writer']['removeClass']('ck-suggestion-marker--active',_0x76aac4));}}};}_0x101874['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4a2aaa),_0x101874['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4a2aaa),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x25417d(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2abf32,_0x1b663b,_0x424356)=>{_0x424356['options']['showSuggestionHighlights']&&_0x25417d({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2abf32,_0x1b663b,_0x424356);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x54483f,_0x5e19d0,_0x5643b8)=>{const {type:_0x4bf023,id:_0x2ca180}=_0x101874['_splitMarkerName'](_0x5e19d0['markerName']),_0x52bed7=_0x101874['getSuggestion'](_0x2ca180),_0x2a4a20=_0x52bed7['data'];if('formatBlock'!=_0x52bed7['type']||!_0x2a4a20||'setTableColumnHeader'!=_0x2a4a20['commandName'])return;const _0x378ce9=_0x5643b8['mapper']['markerNameToElements'](_0x5e19d0['markerName']);if(_0x378ce9){for(const _0x598ac3 of _0x378ce9)_0x5643b8['writer']['removeClass']('ck-suggestion-marker-'+_0x4bf023,_0x598ac3),_0x5643b8['writer']['removeClass']('ck-suggestion-marker--active',_0x598ac3),_0x5643b8['writer']['removeAttribute']('data-suggestion',_0x598ac3),_0x5643b8['mapper']['unbindElementFromMarkerName'](_0x598ac3,_0x5e19d0['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1bf754=this['editor'],_0xe4edce=_0x1bf754['locale'];function _0x3fb5c2(_0x5daf67){return{'type':'format','content':c(_0xe4edce,'*Format:*\x20%0',_0x5daf67)};}_0x1bf754['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x409c5b=>{if('formatBlock'!=_0x409c5b['type'])return;const {data:_0x1320f3}=_0x409c5b;if(_0x1320f3){if('setTableRowHeader'==_0x1320f3['commandName']){const _0x36fde5=_0x1320f3['commandParams'][0x0]['forceValue'];return _0x3fb5c2(c(_0xe4edce,_0x36fde5?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1320f3['commandName']){const _0x169f5c=_0x1320f3['commandParams'][0x0]['forceValue'];return _0x3fb5c2(c(_0xe4edce,_0x169f5c?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x3e2428{['afterInit'](){const _0x226e0e=this['editor'],_0x49e886=_0x226e0e['locale'],_0x4393ca=_0x226e0e['plugins']['get']('TrackChangesEditing');function _0xe4d885(_0x2f804e){return{'type':'format','content':''+c(_0x49e886,'*Set\x20table\x20type:*\x20%0',_0x2f804e)};}_0x226e0e['plugins']['has']('TableLayout')&&(_0x4393ca['enableCommand']('insertTableLayout'),_0x4393ca['enableDefaultAttributesIntegration']('tableType'),_0x4393ca['registerBlockAttribute']('tableType'),_0x4393ca['descriptionFactory']['registerElementLabel'](_0x28ab2a=>_0x28ab2a['is']('element','table')&&'layout'===_0x28ab2a['getAttribute']('tableType'),_0x4161ab=>c(_0x49e886,'ELEMENT_LAYOUT_TABLE',_0x4161ab)),_0x4393ca['descriptionFactory']['registerDescriptionCallback'](_0x396402=>{const {data:_0x1b3087}=_0x396402;if(_0x1b3087&&'tableType'==_0x1b3087['key'])switch(_0x1b3087['newValue']){case'layout':return _0xe4d885(c(_0x49e886,'ELEMENT_LAYOUT_TABLE'));case'content':return _0xe4d885(c(_0x49e886,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=Object['fromEntries'](Oe['map'](_0x153535=>[_0x153535,null]));class $t extends _0x3e2428{static get['requires'](){return[Ct];}['afterInit'](){const _0x9aaa82=this['editor'];if(!_0x9aaa82['plugins']['has']('TableClipboard'))return;const _0x27528a=_0x9aaa82['plugins']['get']('TrackChangesEditing'),_0x5bacd0=_0x9aaa82['plugins']['get']('TableUtils'),_0x8de5f2=_0x9aaa82['plugins']['get'](Ct),_0x4533dd=_0x9aaa82['plugins']['get']('TableClipboard'),_0x4f31c8=_0x9aaa82['plugins']['get']('TableSelection'),_0xb6bf39=_0x9aaa82['plugins']['get'](_0x4a16f7);_0x8de5f2['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x9aaa82['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x9aaa82['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x489c5e=null,_0x250976=!0x1;_0xb6bf39['on']('contentInsertion',(_0x2d1dc5,_0x46c1db)=>{_0x250976='paste'===_0x46c1db['method'];}),_0x9aaa82['model']['on']('insertContent',(_0x1001a5,_0x2c404b)=>{if(!_0x250976&&null===_0x4f31c8['getSelectedTableCells']())return;const [_0x228aac,_0x183c20]=_0x2c404b,_0x27c0e4=_0x2c404b[_0x2c404b['length']-0x1];_0x27c0e4&&_0x27c0e4['forceDefaultExecution']||_0x27528a['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x1eded8,_0xa720f9,_0x1fdfb1,_0x2b631a,_0x5986e3){if(_0xa720f9&&!_0xa720f9['is']('documentSelection'))return!0x1;const _0x2d6f94=_0x5986e3['getTableIfOnlyTableInContent'](_0x1eded8,_0x1fdfb1);if(!_0x2d6f94||!He(_0x2d6f94,void 0x0,_0x2b631a))return!0x1;const _0x349366=_0x2b631a['getSelectionAffectedTableCells'](_0x1fdfb1['document']['selection']);if(!_0x349366['length'])return!0x1;const _0x1b9e12=_0x349366[0x0]['findAncestor']('table'),_0x2d28ad=_0x2b631a['getRowIndexes'](_0x349366),_0x5ba71d=_0x2b631a['getColumnIndexes'](_0x349366),_0x34266a={'startRow':_0x2d28ad['first'],'endRow':_0x2d28ad['last'],'startColumn':_0x5ba71d['first'],'endColumn':_0x5ba71d['last']};return 0x1==_0x349366['length']&&(_0x34266a['endRow']+=_0x2b631a['getRows'](_0x2d6f94)-0x1,_0x34266a['endColumn']+=_0x2b631a['getColumns'](_0x2d6f94)-0x1),He(_0x1b9e12,_0x34266a,_0x2b631a);}(_0x228aac,_0x183c20,_0x9aaa82['model'],_0x5bacd0,_0x4533dd)&&(_0x1001a5['stop'](),_0x489c5e={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x9aaa82['model']['change'](()=>{_0x9aaa82['model']['insertContent'](_0x2c404b[0x0],_0x2c404b[0x1],_0x2c404b[0x2],{'forceDefaultExecution':!0x0});const _0x24c628=_0x32b8bc(),{rowInsertionRanges:_0x39913e,columnInsertionRanges:_0xd7ba0b,insertionRanges:_0x73d60e,deletionRanges:_0x214b8e,cells:_0x520b59}=_0x489c5e;_0x39913e['length']&&_0x27528a['markMultiRangeInsertion'](_0x39913e,'tablePasteRow',{'tablePasteChainId':_0x24c628}),_0xd7ba0b['length']&&_0x27528a['markMultiRangeInsertion'](_0xd7ba0b,'tablePasteColumn',{'tablePasteChainId':_0x24c628}),_0x73d60e['length']&&(_0x27528a['markMultiRangeInsertion'](_0x73d60e,'tablePaste',{'tablePasteChainId':_0x24c628,'skipNestingCheck':!0x0}),_0x73d60e['forEach'](_0x9f9269=>_0x9f9269['detach']?.())),_0x214b8e['length']&&(_0x27528a['markMultiRangeDeletion'](_0x214b8e,'tablePaste',{'tablePasteChainId':_0x24c628,'skipNestingCheck':!0x0}),_0x214b8e['forEach'](_0x123a70=>_0x123a70['detach']?.()));const _0x21ba59=_0x27528a['markMultiRangeBlockFormat'](_0x520b59['map'](({element:_0x2424da})=>_0x2424da),{'formatGroupId':_0x32b8bc()},[],'tablePasteCell',{'tablePasteChainId':_0x24c628});if(_0x21ba59){const _0x93f280=_0x21ba59['getMarkers'](),_0x243cc1=[];for(const {element:_0x1fb22a,attributes:_0x539bbb}of _0x520b59){if(!_0x539bbb)continue;const _0x3ec989=_0x9aaa82['model']['createRangeOn'](_0x1fb22a),_0xe09b83=_0x93f280['find'](_0x9737b9=>_0x9737b9['getRange']()['isEqual'](_0x3ec989));_0xe09b83&&_0x243cc1['push']([_0xe09b83['name'],_0x539bbb]);}_0x243cc1['length']&&_0x21ba59['setAttribute']('markerAttributes',Object['fromEntries'](_0x243cc1));}_0x489c5e=null;}));},{'priority':_0x1180b2['high']+0xa}),_0xb6bf39['on']('contentInsertion',()=>{_0x250976=!0x1;},{'priority':'lowest'}),_0x9aaa82['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x41b1c7,_0x315f28)=>{const [_0x46fbd5,_0x36ebc1,,_0x477670]=_0x315f28;if(!_0x489c5e)return;_0x41b1c7['stop']();const _0x298c94=_0x46fbd5['cell'],_0x5a2e54=_0x36ebc1,_0x50ca4a=De(_0x298c94),_0x493eec=De(_0x5a2e54);_0x41b1c7['return']=_0x298c94;let _0x332367=null,_0x1086fc=null;if(_0x493eec||_0x50ca4a){if(_0x50ca4a&&!_0x493eec){_0x477670['remove'](_0x298c94['getChild'](0x0));for(const _0x1600fe of Array['from'](_0x5a2e54['getChildren']()))_0x477670['insert'](_0x1600fe,_0x298c94,'end');const _0x1f0f94=_0x489c5e['rowInsertionIndexes']['includes'](_0x46fbd5['row']),_0x4112af=_0x489c5e['columnInsertionIndexes']['includes'](_0x46fbd5['column']);_0x1f0f94||_0x4112af||(_0x332367=_0x2daf6a['fromRange'](_0x477670['createRangeIn'](_0x298c94)));}else _0x493eec&&!_0x50ca4a&&(_0x1086fc=_0x477670['createRangeIn'](_0x298c94));}else{const _0x472d9c=_0x477670['createElement']('tableCellSuggestion'),_0x396fc7=_0x477670['createElement']('tableCellSuggestion');_0x477670['wrap'](_0x477670['createRangeIn'](_0x298c94),_0x396fc7),_0x477670['insert'](_0x472d9c,_0x298c94,0x0);for(const _0x2f7d3b of Array['from'](_0x5a2e54['getChildren']()))_0x477670['insert'](_0x2f7d3b,_0x472d9c,'end');_0x332367=_0x2daf6a['fromRange'](_0x477670['createRangeOn'](_0x472d9c)),_0x1086fc=_0x2daf6a['fromRange'](_0x477670['createRangeOn'](_0x396fc7));}const _0x4c8d30=Array['from'](_0x5a2e54['getAttributes']())['filter'](([_0x311f77])=>Oe['includes'](_0x311f77));_0x489c5e['cells']['push']({'element':_0x298c94,'attributes':_0x4c8d30['length']?Object['fromEntries'](_0x4c8d30):null}),_0x332367&&_0x489c5e['insertionRanges']['push'](_0x332367),_0x1086fc&&_0x489c5e['deletionRanges']['push'](_0x1086fc);},{'priority':'high'}),_0x5bacd0['on']('insertColumns',(_0x339ea1,_0x4655e2)=>{const [_0x3c9750,_0x5e8fcd={}]=_0x4655e2;if(!_0x489c5e)return;const _0x54fd12=_0x5e8fcd['at']||0x0,_0x10a021=_0x5e8fcd['columns']||0x1;_0x489c5e['columnInsertionIndexes']=new Array(_0x10a021)['fill'](_0x54fd12)['map']((_0x5abe84,_0x82dabf)=>_0x5abe84+_0x82dabf);for(const {cell:_0x549fdd}of _0x5bacd0['createTableWalker'](_0x3c9750,{'startColumn':_0x54fd12,'endColumn':_0x54fd12+_0x10a021-0x1}))_0x489c5e['columnInsertionRanges']['push'](_0x9aaa82['model']['createRangeOn'](_0x549fdd));},{'priority':'low'}),_0x5bacd0['on']('insertRows',(_0x522d36,_0x3bd48f)=>{const [_0x1fbb90,_0x52bb44={}]=_0x3bd48f;if(!_0x489c5e)return;const _0x1b90ca=_0x52bb44['at']||0x0,_0x4af033=_0x52bb44['rows']||0x1;_0x489c5e['rowInsertionIndexes']=new Array(_0x4af033)['fill'](_0x1b90ca)['map']((_0x3f5d3b,_0x4c2213)=>_0x3f5d3b+_0x4c2213);for(const {cell:_0x32dd54}of _0x5bacd0['createTableWalker'](_0x1fbb90,{'startRow':_0x1b90ca,'endRow':_0x1b90ca+_0x4af033-0x1}))_0x489c5e['rowInsertionRanges']['push'](_0x9aaa82['model']['createRangeOn'](_0x32dd54));},{'priority':'low'}),_0x27528a['descriptionFactory']['registerDescriptionCallback'](_0x46af93=>{if(_0x46af93['subType']&&_0x46af93['subType']['startsWith']('tablePaste'))return _0x46af93['previous']?{}:{'type':'insertion','content':c(_0x9aaa82['locale'],'*Replace\x20table\x20cells*')};});const _0x308f46=()=>!0x1;for(const _0x104547 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x27528a['_suggestionFactory']['registerCustomCallback']('insertion',_0x104547,'join',_0x308f46),_0x27528a['_suggestionFactory']['registerCustomCallback']('deletion',_0x104547,'join',_0x308f46),_0x27528a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x104547,'join',_0x308f46);_0x27528a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x308f46),_0x27528a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3b8eb3,_0x1f0fd0,_0x1bf79f)=>{const _0x19e91d=_0x3b8eb3['map'](_0x476c11=>_0x476c11['getContainedElement']())['filter'](_0x479373=>_0x479373),_0x22fbad=new Map(_0x19e91d['map'](_0xa8466e=>[_0xa8466e,null]));if(_0x489c5e){for(const {element:_0xa0290b,attributes:_0x5675a1}of _0x489c5e['cells'])_0x5675a1&&_0x22fbad['set'](_0xa0290b,_0x5675a1);}else{if(_0x1bf79f&&_0x1bf79f['markerAttributes'])for(const [_0x53d371,_0x57d1bf]of Object['entries'](_0x1bf79f['markerAttributes'])){const _0x52ad76=_0x9aaa82['model']['markers']['get'](_0x53d371),_0x8bbe72=_0x52ad76?_0x52ad76['getRange']()['getContainedElement']():null;_0x8bbe72&&_0x22fbad['set'](_0x8bbe72,_0x57d1bf);}}_0x9aaa82['model']['change'](_0x30316f=>{for(const [_0x2f3192,_0x29eeac]of _0x22fbad)_0x30316f['setAttributes']({...Ue,..._0x29eeac},_0x2f3192);});});const _0x1c03f7=(_0x2451a2,_0x24c171)=>{_0x27528a['_suggestionFactory']['registerCustomCallback'](_0x2451a2,'tablePaste',_0x24c171,(_0x126d29,_0x1708de,_0x56fa69)=>{_0x9aaa82['model']['change'](_0x45a2b8=>{const _0x19f26e=[];for(const _0x331e5f of _0x126d29){const _0x9ac80a=_0x331e5f['start']['nodeAfter'];_0x9ac80a['is']('element','tableCellSuggestion')&&_0x19f26e['push'](_0x9ac80a);}_0x27528a['_suggestionFactory']['getSuggestionCallback'](_0x2451a2,null,_0x24c171)(_0x126d29,_0x1708de,_0x56fa69);for(const _0x287d2a of _0x19f26e)'$graveyard'!=_0x287d2a['root']['rootName']&&_0x45a2b8['unwrap'](_0x287d2a);});});};_0x1c03f7('insertion','accept'),_0x1c03f7('insertion','discard'),_0x1c03f7('deletion','accept'),_0x1c03f7('deletion','discard'),_0x27528a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x33fedd=>{const _0x498a60=_0x33fedd['map'](_0x4f7922=>_0x4f7922['getContainedElement']()),_0x1f584b=_0x498a60[0x0]['findAncestor']('table'),{minRow:_0x312205,maxRow:_0x2b8df6}=_0x8de5f2['_getCoordsForCells'](_0x498a60);_0x5bacd0['removeRows'](_0x1f584b,{'at':_0x312205,'rows':_0x2b8df6-_0x312205+0x1});}),_0x27528a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x52e0a3=>{const _0x51487d=_0x52e0a3['map'](_0x4fafd7=>_0x4fafd7['getContainedElement']()),_0x50ab31=_0x51487d[0x0]['findAncestor']('table'),{minColumn:_0x41191e,maxColumn:_0x26df1b}=_0x8de5f2['_getCoordsForCells'](_0x51487d);_0x5bacd0['removeColumns'](_0x50ab31,{'at':_0x41191e,'columns':_0x26df1b-_0x41191e+0x1});});const _0x388b42=(_0x4e61b1,_0x3ee002)=>{if(!_0x3ee002['subType']||!_0x3ee002['subType']['startsWith']('tablePaste'))return;const _0x3c1bfc=_0x3ee002['attributes']['tablePasteChainId'],_0x18d553=_0x27528a['getSuggestions']()['filter'](_0x26d67f=>_0x26d67f['isInContent']&&_0x26d67f['attributes']&&_0x26d67f['attributes']['tablePasteChainId']==_0x3c1bfc);_0x18d553['length']&&_0x3ee002['getAllAdjacentSuggestions']()['length']!=_0x18d553['length']&&_0x18d553['reduce']((_0x1b1eff,_0x1c3cbb)=>(_0x1b1eff['next']=_0x1c3cbb,_0x1c3cbb['previous']=_0x1b1eff,_0x1c3cbb));};function _0x1aab83(_0x15b590,_0x1b31e2=!0x0){const {id:_0x52b8bf,authorId:_0x1a0b72}=_0x27528a['_splitMarkerName'](_0x15b590['markerName']),_0x1dbb26=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x171271=_0x27528a['activeMarkers']['includes'](_0x15b590['markerName']);return _0x171271&&_0x1dbb26['push']('ck-suggestion-marker--active'),{'classes':_0x1dbb26,'attributes':{'data-suggestion':_0x52b8bf,'data-author-id':_0x1a0b72},'priority':_0x171271&&_0x1b31e2?0xbc2:0xbb8};}_0x27528a['on']('suggestionLoaded',_0x388b42,{'priority':'high'}),_0x27528a['on']('suggestionUnloaded',_0x388b42,{'priority':'high'}),_0x9aaa82['model']['document']['registerPostFixer'](()=>{let _0x3ab31a=!0x1;const _0x1743c2=Array['from'](_0x9aaa82['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x10ffe2,data:_0x581f0c}of _0x1743c2){const {group:_0x32646e,type:_0x3df543,id:_0x497ae7}=_0x27528a['_splitMarkerName'](_0x10ffe2);if('suggestion'!=_0x32646e||'deletion'!=_0x3df543||_0x581f0c['oldRange'])continue;if(!_0x27528a['hasSuggestion'](_0x497ae7))continue;const _0x4e0467=_0x27528a['getSuggestion'](_0x497ae7)['getRanges'](),_0x343248=_0x9aaa82['plugins']['get']('Users')['me'];for(const _0xa9a1c3 of _0x27528a['getSuggestions']()){if(!_0xa9a1c3['isInContent']||_0xa9a1c3['author']!=_0x343248)continue;if('formatBlock'!=_0xa9a1c3['type']||'tablePasteCell'!=_0xa9a1c3['subType'])continue;if(_0xa9a1c3['getRanges']()['every'](_0x34e541=>_0x4e0467['some'](_0x408dc6=>_0x408dc6['containsRange'](_0x34e541,!0x0)))){for(const _0x22fb7c of _0xa9a1c3['getAllAdjacentSuggestions']())_0x22fb7c['isInContent']&&(_0x22fb7c['discard'](),_0x3ab31a=!0x0);}}}return _0x3ab31a;}),_0x9aaa82['model']['document']['registerPostFixer'](_0x5e6f67=>{const _0x361f8c=_0x9aaa82['commands']['get']('redo');if(!_0x361f8c||!_0x361f8c['_createdBatches']['has'](_0x5e6f67['batch']))return!0x1;let _0x5a441a=!0x1;const _0x5e4a5f=_0x9aaa82['plugins']['get']('Users')['me'],_0x3e6fd8=_0x9aaa82['model']['document']['differ']['getChanges'](),_0x552d54=Array['from'](_0x9aaa82['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4982a4,data:_0x48f9e7})=>{const {group:_0x294da8,subType:_0x1f8013,authorId:_0x1fbd0f}=_0x27528a['_splitMarkerName'](_0x4982a4);return'suggestion'==_0x294da8&&'tablePaste'==_0x1f8013&&_0x1fbd0f==_0x5e4a5f['id']&&!_0x48f9e7['oldRange'];});for(const _0x2c3a11 of _0x3e6fd8){if('insert'!=_0x2c3a11['type']||'tableCellSuggestion'!=_0x2c3a11['name']||0x1!=_0x2c3a11['length'])continue;const _0x4ef0a4=_0x5e6f67['createRange'](_0x2c3a11['position'],_0x2c3a11['position']['getShiftedBy'](0x1));if(!_0x552d54['find'](({data:_0x15d525})=>_0x15d525['newRange']['isEqual'](_0x4ef0a4))){for(const {name:_0xfdc56d,data:_0x1a3864}of _0x552d54)if(_0x4ef0a4['containsRange'](_0x1a3864['newRange'])){_0x5e6f67['updateMarker'](_0xfdc56d,{'range':_0x4ef0a4}),_0x5a441a=!0x0;break;}}}return _0x5a441a;}),_0x9aaa82['model']['document']['registerPostFixer'](_0x46fa4a=>{let _0x2ef1df=!0x1;const _0x1d9742=_0x9aaa82['plugins']['get']('Users')['me'],_0x208fd2=_0x27528a['getSuggestions']()['filter'](_0x3c1324=>_0x3c1324['isInContent']&&_0x3c1324['author']==_0x1d9742),_0x41eb55=new Set(),_0x1cb64=new Set();for(const _0x4a7dfb of _0x208fd2)if('tablePaste'==_0x4a7dfb['subType'])for(const _0x5e98c0 of _0x4a7dfb['getMarkers']()){const _0xfcc4a8=_0x5e98c0['getRange']()['getContainedElement']();if(_0xfcc4a8){if(_0xfcc4a8['is']('element','tableCellSuggestion')&&De(_0xfcc4a8)){_0x4a7dfb['removeMarker'](_0x5e98c0['name']),_0x41eb55['add'](_0xfcc4a8),_0x2ef1df=!0x0;const _0x1c556f=_0xfcc4a8['nextSibling'],_0x3fea72=_0xfcc4a8['previousSibling'],_0x5c815f=_0x1c556f&&_0x1c556f['is']('element','tableCellSuggestion'),_0x5f0747=_0x3fea72&&_0x3fea72['is']('element','tableCellSuggestion');_0x5c815f&&!_0x41eb55['has'](_0x1c556f)&&_0x1cb64['add'](_0x1c556f),_0x5f0747&&!_0x41eb55['has'](_0x3fea72)&&_0x1cb64['add'](_0x3fea72);}else _0xfcc4a8['is']('element','paragraph')&&_0xfcc4a8['isEmpty']&&(_0x4a7dfb['removeMarker'](_0x5e98c0['name']),_0x2ef1df=!0x0);}}else{if('tablePasteCell'==_0x4a7dfb['subType']){if(!_0x4a7dfb['attributes']||!_0x4a7dfb['attributes']['tablePasteChainId'])continue;const _0x1cdac7=_0x4a7dfb['attributes']['markerAttributes'];if(_0x1cdac7&&Object['keys'](_0x1cdac7)['length'])continue;const _0x5bae43=_0x4a7dfb['attributes']['tablePasteChainId'];let _0xc4ffb=!0x0,_0x10e884=!0x0;for(const _0xb9182b of _0x208fd2)if(_0xb9182b['subType']&&_0xb9182b['subType']['startsWith']('tablePaste')){if(!_0xb9182b['attributes']['tablePasteChainId']){_0x10e884=!0x1;break;}if(_0xb9182b['id']!=_0x4a7dfb['id']&&_0xb9182b['attributes']['tablePasteChainId']==_0x5bae43){_0xc4ffb=!0x1;break;}}_0x10e884&&_0xc4ffb&&(_0x4a7dfb['removeMarkers'](),_0x2ef1df=!0x0);}}for(const _0x30a7ef of _0x41eb55)_0x46fa4a['remove'](_0x30a7ef);for(const _0x16551b of _0x1cb64)_0x46fa4a['unwrap'](_0x16551b);return _0x2ef1df;}),_0x9aaa82['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x2f5c9f=>_0x1aab83(_0x2f5c9f),'converterPriority':'high'}),_0x9aaa82['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2b036b,_0x27ae97)=>_0x27ae97['options']['showSuggestionHighlights']?_0x1aab83(_0x2b036b,!0x1):null,'converterPriority':'high'});const _0x244919=_0x9aaa82['editing']['view'];this['listenTo'](_0x244919['document'],'clipboardOutput',(_0xdd109,_0x512efe)=>{const _0x3ac2ee=[];for(const _0x540d5f of _0x244919['createRangeIn'](_0x512efe['content'])['getItems']())_0x540d5f['is']('element','suggestion-td')&&_0x3ac2ee['push'](_0x540d5f);_0x244919['change'](_0x3816f4=>{for(const _0x3b60a2 of _0x3ac2ee)_0x3816f4['move'](_0x3816f4['createRangeIn'](_0x3b60a2),_0x3816f4['createPositionBefore'](_0x3b60a2)),_0x3816f4['remove'](_0x3b60a2);});});}}function De(_0x821c1f){if(_0x821c1f['isEmpty'])return!0x0;const _0x575ab4=_0x821c1f['getChild'](0x0);return _0x575ab4['is']('element','paragraph')&&_0x575ab4['isEmpty'];}function He(_0x457dc9,_0x31ddd8={},_0x43f799){for(const {isAnchor:_0x2d2985,cellHeight:_0x413717,cellWidth:_0x405d1e}of _0x43f799['createTableWalker'](_0x457dc9,{'includeAllSlots':!0x0,..._0x31ddd8}))if(!_0x2d2985||0x1!=_0x413717||0x1!=_0x405d1e)return!0x1;return!0x0;}class Bt extends _0x3e2428{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x5797cd=this['editor']['plugins']['get']('TrackChangesEditing');_0x5797cd['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x5797cd['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x5797cd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5797cd['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x5797cd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x5797cd['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x3cc9f6,_0x1186a6){const _0x51e99f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x53bede=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x32027b=_0x1186a6['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x7151ea=_0x53bede['getColumnGroupElement'](_0x32027b);let _0x4bc9c2=_0x7151ea?_0x53bede['getTableColumnsWidths'](_0x7151ea):null,_0x502c18=_0x32027b['getAttribute']('tableWidth')||null;const _0x276114=_0x1186a6['tableWidth']||_0x502c18,_0x1d68d4=_0x1186a6['columnWidths']||_0x4bc9c2,_0x57bfda=this['editor']['plugins']['get']('Users')['me'];for(const _0x16d8c4 of _0x51e99f['getSuggestions']()){const _0x280bfd=_0x16d8c4['getContainedElement']();if('resizeTable'===_0x16d8c4['subType']&&_0x280bfd===_0x32027b){_0x16d8c4['author']!==_0x57bfda&&_0x16d8c4['discard']();const _0x5b8ce8=_0x16d8c4['data']['commandParams'];_0x502c18=_0x5b8ce8[0x0]['tableWidth'],_0x4bc9c2=_0x5b8ce8[0x0]['columnWidths'];break;}}_0x3cc9f6({'table':_0x32027b,'tableWidth':_0x276114,'columnWidths':_0x1d68d4}),_0x51e99f['markBlockFormat'](_0x32027b,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x502c18,'columnWidths':_0x4bc9c2}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x3e5e7e){if('formatBlock'!=_0x3e5e7e['type']&&'formatInline'!=_0x3e5e7e['type'])return;const {data:_0x5e6be7}=_0x3e5e7e;if(_0x5e6be7&&'resizeTable'===_0x5e6be7['formatGroupId']){const _0x5c8aed='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x5c8aed)};}}}class xt extends _0x3e2428{['afterInit'](){const _0x560b36=this['editor'];_0x560b36['plugins']['has']('Template')&&_0x560b36['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x3e2428{['afterInit'](){const _0x607131=this['editor'];if(!_0x607131['commands']['get']('insertTableOfContents'))return;_0x607131['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x30f1cc=_0x607131['plugins']['get']('TrackChangesEditing'),_0x88aa9a=_0x607131['locale'];_0x30f1cc['descriptionFactory']['registerElementLabel']('tableOfContents',_0x53e833=>c(_0x88aa9a,'ELEMENT_TABLE_OF_CONTENTS',_0x53e833));}}class Rt extends _0x3e2428{['afterInit'](){const _0x1d9f5c=this['editor'];if(!_0x1d9f5c['plugins']['has']('Title'))return;const _0x4f6015=_0x1d9f5c['plugins']['get']('TrackChangesEditing');_0x4f6015['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x1d9f5c['locale'],'ELEMENT_TITLE')),_0x1d9f5c['model']['document']['registerPostFixer'](_0x45c42b=>{let _0x80c370=!0x1;const _0xc8adf7=Array['from'](_0x1d9f5c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x28b946,data:_0x175aa9}of _0xc8adf7){const {group:_0x131cd3}=_0x4f6015['_splitMarkerName'](_0x28b946);if('suggestion'!==_0x131cd3||!_0x175aa9['newRange'])continue;const _0x1b65c5=_0x175aa9['newRange'],_0x17734e=_0x1b65c5['end']['nodeBefore'];if(!_0x17734e||!_0x17734e['is']('element','title-content'))continue;if(!_0x1b65c5['start']['isTouching'](_0x1b65c5['end']))continue;const _0x189f5d=_0x1d9f5c['model']['schema']['getNearestSelectionRange'](_0x1b65c5['end'],'forward');if(_0x189f5d&&_0x189f5d['isCollapsed']){const _0x5c0886=_0x45c42b['createRange'](_0x1b65c5['start'],_0x189f5d['start']);_0x5c0886['isEqual'](_0x1b65c5)||(_0x45c42b['updateMarker'](_0x28b946,{'range':_0x5c0886}),_0x80c370=!0x0);}_0x80c370||(_0x45c42b['removeMarker'](_0x28b946),_0x80c370=!0x0);}return _0x80c370;});}}class Tt extends _0x3e2428{['afterInit'](){const _0xa1c884=this['editor'],_0x1acd53=_0xa1c884['plugins']['get']('TrackChangesEditing');_0xa1c884['plugins']['has']('Uploadcare')&&(_0x1acd53['enableCommand']('uploadcare'),_0xa1c884['plugins']['has']('UploadcareImageEdit')&&(_0x1acd53['enableCommand']('uploadcareImageEdit'),_0x1acd53['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x1acd53['registerBlockAttribute']('uploadcareImageId'),_0x1acd53['descriptionFactory']['registerDescriptionCallback'](_0x5ee8ff=>{if('attribute'!=_0x5ee8ff['type'])return;const {data:_0x6f51ab}=_0x5ee8ff;return _0x6f51ab&&'uploadcareImageId'==_0x6f51ab['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x3e2428{['afterInit'](){const _0xff076=this['editor'],_0x210d18=_0xff076['plugins']['get']('TrackChangesEditing');_0xff076['plugins']['has']('UndoEditing')&&(_0x210d18['enableCommand']('undo'),_0x210d18['enableCommand']('redo'));}}class Ut extends _0x3e2428{static get['requires'](){return[Ct];}['afterInit'](){const _0x52b6d8=this['editor'];if(!_0x52b6d8['plugins']['has']('TableCaptionEditing'))return;_0x52b6d8['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x3e2428{['tableProperties'];['tableCellProperties'];constructor(_0x20cf41){super(_0x20cf41),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 _0x15835b=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x26feb5 of this['tableProperties'])_0x15835b['enableCommand'](_0x26feb5,(_0x311b38,_0x408066)=>{const _0x43f2e1=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x26feb5,[_0x43f2e1],this['tableProperties'],'tableProperties',_0x311b38,_0x408066);});_0x15835b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x15835b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x15835b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x14a1a7,_0x154676)=>this['handleDiscardAction'](this['tableProperties'],_0x14a1a7,_0x154676)),_0x15835b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0xa27cad of this['tableCellProperties'])_0x15835b['enableCommand'](_0xa27cad,(_0x1593ee,_0x41a5bf)=>{const _0x1cd765=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0xa27cad,_0x1cd765,this['tableCellProperties'],'tableCellProperties',_0x1593ee,_0x41a5bf);});_0x15835b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x15835b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x15835b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x178ed8,_0x505f01)=>this['handleDiscardAction'](this['tableCellProperties'],_0x178ed8,_0x505f01)),_0x15835b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x15835b['descriptionFactory']['registerDescriptionCallback'](_0x6c14a8=>this['handleSuggestionDescription'](_0x6c14a8));}['_handlePropertyChange'](_0x5bb38f,_0x4f0e38,_0x5c8d20,_0x418d55,_0x4c6818,_0x328e27){const _0x13d003=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x328e27['batch'],()=>{for(const _0x7c86a9 of _0x4f0e38){if(this['_getSuggestion'](_0x7c86a9,_0x418d55))_0x4c6818(_0x328e27);else{const _0x3e5e1a={};for(const _0x3c00e6 of _0x5c8d20){const _0x43b5ff=_0x7c86a9['getAttribute'](_0x3c00e6);void 0x0!==_0x43b5ff&&(_0x3e5e1a[_0x3c00e6]=_0x43b5ff);}_0x4c6818(_0x328e27),_0x13d003['markBlockFormat'](_0x7c86a9,{'commandParams':[_0x3e5e1a]},[],_0x418d55);}}});}['handleDiscardAction'](_0xd5726d,_0x667a2a,_0x1f4d69){const _0x5bac61=_0x667a2a[0x0]['start']['nodeAfter'],_0x2310ac=_0x1f4d69['commandParams'][0x0];this['editor']['model']['change'](_0x3f105b=>{for(const _0x1fce80 of _0xd5726d)void 0x0!==_0x2310ac[_0x1fce80]?_0x3f105b['setAttribute'](_0x1fce80,_0x2310ac[_0x1fce80],_0x5bac61):_0x3f105b['removeAttribute'](_0x1fce80,_0x5bac61);});}['handleSuggestionDescription'](_0x529f23){if(_0x529f23['data'])switch(_0x529f23['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x3082ed,_0xe6a6ff){const _0x3178f5=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3ec696 of _0x3178f5['getSuggestions']({'skipNotAttached':!0x0})){const _0x56ae50=_0x3ec696['getContainedElement']();if(_0x3ec696['subType']===_0xe6a6ff&&_0x56ae50===_0x3082ed)return _0x3ec696;}return null;}}const u='$elementName';class p extends _0x3e2428{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x3c7e0d,_0x408eaa,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,it,et,nt,st,ot,rt,ct,at,ut,ft,ht,gt,Q,wt,lt,W,Se,mt,pt,kt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Ot,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4fd8d5){super(_0x4fd8d5),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x25f6e5,_0x27a247,_0x46ed0b,_0x4df9e4)=>{this['_model']['change'](()=>{for(const _0x4fac5a of[..._0x4df9e4,..._0x46ed0b])this['_model']['markers']['has'](_0x4fac5a)&&_0x4fd8d5['editing']['reconvertMarker'](_0x4fac5a);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x4fd8d5['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x4fd8d5['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4fd8d5['config']['get']('trackChanges.trackFormatChanges'),_0x4fd8d5['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4fd8d5['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x4fd8d5,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x23b862=this['editor'],_0x15f5d9=(_0x3c9c82,_0x564682)=>{if('attribute'!=_0x3c9c82)return'ck-suggestion-marker-'+_0x3c9c82;const _0x5bb4b5=_0x564682['split']('|')[0x0];return this['_isBlockAttribute'](_0x5bb4b5)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x23b862['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x4a035b=>{const {id:_0x17207,authorId:_0x377f7b,type:_0x3045bb,subType:_0x57969c}=this['_splitMarkerName'](_0x4a035b['markerName']),_0x3bfa11=['ck-suggestion-marker',_0x15f5d9(_0x3045bb,_0x57969c)];let _0xf65087=0xbb8;return this['activeMarkers']['includes'](_0x4a035b['markerName'])&&(_0x3bfa11['push']('ck-suggestion-marker--active'),_0xf65087=0xbc2),'deletion'==_0x3045bb&&(_0xf65087+=0x5),{'classes':_0x3bfa11,'attributes':{'data-suggestion':_0x17207,'data-author-id':_0x377f7b},'priority':_0xf65087};}}),_0x23b862['conversion']['for']('dataDowncast')['add'](_0x1a1c46=>{_0x1a1c46['on']('addMarker:suggestion',(_0x43d9b9,_0x13f4cb,_0x48111d)=>{if(!_0x48111d['options']['showSuggestionHighlights'])return;const _0x3b6710=_0x13f4cb['item'];if(!_0x3b6710)return;const _0x2dc986=_0x48111d['mapper']['toViewElement'](_0x3b6710);_0x23b862['model']['schema']['isObject'](_0x3b6710)&&_0x2dc986&&!_0x2dc986['getCustomProperty']('widget')&&_0x2dc986['is']('containerElement')&&_0x4a3734(_0x2dc986,_0x48111d['writer']);},{'priority':'high'});}),_0x23b862['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x1c8190,_0xadaebb)=>{if(!_0xadaebb['options']['showSuggestionHighlights'])return null;const {id:_0xfa927d,authorId:_0x146267,type:_0x5aba5f,subType:_0x5b6862}=this['_splitMarkerName'](_0x1c8190['markerName']);return{'classes':['ck-suggestion-marker',_0x15f5d9(_0x5aba5f,_0x5b6862)],'priority':0xbb8,'attributes':{'data-suggestion':_0xfa927d,'data-author-id':_0x146267}};}});const _0xdaf641=({showActiveMarkers:_0x4f3daa=!0x0,isAttributeSuggestion:_0x1e2058=!0x1}={})=>(_0x6129e5,_0x188aea,_0x3e7656)=>{if(!_0x188aea['item'])return;const {id:_0x17f375,authorId:_0x2bb83a}=this['_splitMarkerName'](_0x188aea['markerName']);if(_0x1e2058){const _0x2ad415=this['_suggestions']['get'](_0x17f375),_0x8f8a51=this['_getAttributeKey'](_0x2ad415);if(!this['_isBlockAttribute'](_0x8f8a51))return;}if(_0x188aea['item']['is']('selection'))return void _0x3e7656['consumable']['consume'](_0x188aea['item'],_0x6129e5['name']);const _0x176354=_0x3e7656['mapper']['toViewElement'](_0x188aea['item']);if(_0x188aea['item']['is']('element')&&_0x23b862['model']['schema']['isBlock'](_0x188aea['item'])&&!_0x176354['getCustomProperty']('addHighlight')){_0x3e7656['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x176354),_0x3e7656['writer']['setAttribute']('data-suggestion',_0x17f375,_0x176354),_0x3e7656['writer']['setAttribute']('data-author-id',_0x2bb83a,_0x176354),_0x3e7656['mapper']['bindElementToMarker'](_0x176354,_0x188aea['markerName']),_0x4f3daa&&(this['activeMarkers']['includes'](_0x188aea['markerName'])?_0x3e7656['writer']['addClass']('ck-suggestion-marker--active',_0x176354):_0x3e7656['writer']['removeClass']('ck-suggestion-marker--active',_0x176354));for(const _0x1a6de6 of _0x23b862['model']['createRangeIn'](_0x188aea['item'])['getItems']())_0x3e7656['consumable']['consume'](_0x1a6de6,_0x6129e5['name']);_0x3e7656['consumable']['consume'](_0x188aea['item'],_0x6129e5['name']);}};_0x23b862['conversion']['for']('dataDowncast')['add'](_0x48ebaf=>{_0x48ebaf['on']('addMarker:suggestion:formatBlock',(_0x152ea5,_0x4b58e5,_0x1b6352)=>{_0x1b6352['options']['showSuggestionHighlights']&&_0xdaf641({'showActiveMarkers':!0x1})(_0x152ea5,_0x4b58e5,_0x1b6352);},{'priority':'highest'});}),_0x23b862['conversion']['for']('dataDowncast')['add'](_0x46b0eb=>{_0x46b0eb['on']('addMarker:suggestion:attribute',(_0x2b6c5a,_0x3752af,_0x3128a3)=>{_0x3128a3['options']['showSuggestionHighlights']&&_0xdaf641({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x2b6c5a,_0x3752af,_0x3128a3);},{'priority':'highest'});}),_0x23b862['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x21f4aa,_0x17c890)=>{if(_0x17c890['options']['showSuggestionHighlights']){const {id:_0x34964e,authorId:_0xef308c}=this['_splitMarkerName'](_0x21f4aa);return _0x21f4aa['includes'](':split')||_0x21f4aa['includes'](':merge')?{'group':'suggestion','name':_0x21f4aa['substr'](0xb),'attributes':{'data-suggestion':_0x34964e,'data-author-id':_0xef308c}}:null;}return{'group':'suggestion','name':_0x21f4aa['substr'](0xb)};}}),_0x23b862['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xce94f7,{writer:_0x178b15})=>{let _0x21b86a='suggestion:'+_0xce94f7['getAttribute']('suggestion-type')+':'+_0xce94f7['getAttribute']('id');return _0xce94f7['getAttribute']('marker-count')&&(_0x21b86a+=':'+_0xce94f7['getAttribute']('marker-count')),_0x178b15['createElement']('$marker',{'data-name':_0x21b86a});}}),_0x23b862['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x23b862['conversion']['for']('editingDowncast')['add'](_0x279453=>{_0x279453['on']('addMarker:suggestion:formatBlock',_0xdaf641(),{'priority':'high'});}),_0x23b862['conversion']['for']('editingDowncast')['add'](_0x4dc4e4=>{_0x4dc4e4['on']('addMarker:suggestion:attribute',_0xdaf641({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x23b862['conversion']['for']('editingDowncast')['add'](_0x34a139=>{_0x34a139['on']('removeMarker:suggestion:formatBlock',(_0x45d00d,_0x8b3b46,_0x2aaa22)=>{const _0x7579=_0x2aaa22['mapper']['markerNameToElements'](_0x8b3b46['markerName']);if(_0x7579){for(const _0x208495 of _0x7579)_0x208495['getCustomProperty']('addHighlight')||(_0x2aaa22['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x208495),_0x2aaa22['writer']['removeAttribute']('data-suggestion',_0x208495),_0x2aaa22['writer']['removeAttribute']('data-author-id',_0x208495),_0x2aaa22['mapper']['unbindElementFromMarkerName'](_0x208495,_0x8b3b46['markerName']));}},{'priority':'high'});}),_0x23b862['conversion']['for']('editingDowncast')['add'](_0x5f1f23=>{_0x5f1f23['on']('removeMarker:suggestion:attribute',(_0x33600a,_0x206e81,_0xcf27be)=>{const _0x1a4d50=_0xcf27be['mapper']['markerNameToElements'](_0x206e81['markerName']);if(!_0x1a4d50)return;const {id:_0x4f662e}=this['_splitMarkerName'](_0x206e81['markerName']),_0x1ad901=this['_suggestions']['get'](_0x4f662e),_0x350eaf=this['_getAttributeKey'](_0x1ad901);if(this['_isBlockAttribute'](_0x350eaf)){for(const _0x23e002 of _0x1a4d50)_0x23e002['getCustomProperty']('addHighlight')||(_0xcf27be['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x23e002),_0xcf27be['writer']['removeAttribute']('data-suggestion',_0x23e002),_0xcf27be['writer']['removeAttribute']('data-author-id',_0x23e002),_0xcf27be['mapper']['unbindElementFromMarkerName'](_0x23e002,_0x206e81['markerName']));}},{'priority':'high'});}),_0x23b862['model']['document']['registerPostFixer'](_0x4dd547=>{let _0x1655bd=!0x1;const _0x237076=Array['from'](_0x23b862['model']['document']['differ']['getChangedMarkers']()),_0x38decd=new Set();for(const {name:_0x43d9da,data:_0x5a8137}of _0x237076){const {group:_0x47c5b1,type:_0x43aa87,subType:_0x306f98,id:_0xda07b1}=this['_splitMarkerName'](_0x43d9da);if('suggestion'!==_0x47c5b1)continue;const _0x12b64c=this['_suggestions']['get'](_0xda07b1);if(null!=_0x5a8137['newRange']){'formatInline'==_0x43aa87&&(_0x1655bd=_0x1655bd||Jt(_0x5a8137['newRange'],_0x43d9da,_0x4dd547,_0x23b862['model']['schema']));const _0xbc0177='attribute'==_0x43aa87&&this['_isBlockAttribute'](_0x306f98['split']('|')[0x0]);if(_0x5a8137['newRange']['isCollapsed']||'$graveyard'==_0x5a8137['newRange']['root']['rootName']||'formatBlock'==_0x43aa87&&!Ht(_0x5a8137['newRange'])||_0xbc0177&&!Ht(_0x5a8137['newRange'])||'deletion'==_0x43aa87&&!(!Lt(_0x915dee=_0x5a8137['newRange'])&&!function(_0x75ee5){return _0x75ee5['start']['parent']==_0x75ee5['end']['nodeBefore']&&_0x75ee5['start']['isAtEnd'];}(_0x915dee)))_0x4dd547['removeMarker'](_0x43d9da),_0x1655bd=!0x0;else{if(!_0x12b64c||!_0x12b64c['isInContent'])continue;if(_0x5a8137['newRange']&&_0x5a8137['oldRange']&&_0x5a8137['newRange']['isEqual'](_0x5a8137['oldRange']))continue;_0x38decd['add'](_0x12b64c);}}}var _0x915dee;return _0x38decd['size']>0x0&&(_0x1655bd=!!this['_joinWithAdjacentSuggestions'](_0x38decd)||_0x1655bd),_0x1655bd;}),_0x23b862['model']['document']['registerPostFixer'](_0x4a2d4c=>{let _0x568d59=!0x1;for(const _0x3befb6 of _0x23b862['model']['document']['differ']['getChanges']())if('insert'==_0x3befb6['type'])for(const _0x2eee82 of this['_suggestions']['values']()){if(_0x2eee82['isMultiRange']||!_0x2eee82['isInContent'])continue;const _0x9685e9='formatBlock'==_0x2eee82['type'],_0x4b2956=this['_getAttributeKey'](_0x2eee82),_0x18a17c=_0x4b2956&&this['_isBlockAttribute'](_0x4b2956);if(!_0x9685e9&&!_0x18a17c)continue;const _0x177c62=_0x2eee82['getFirstRange']();if(_0x177c62['start']['parent']!=_0x177c62['end']['parent']&&!_0x177c62['end']['isAtEnd']){const _0x528f5f=_0x23b862['model']['createPositionAt'](_0x177c62['start']['nodeAfter'],'end'),_0x2d88e8=_0x23b862['model']['createRange'](_0x177c62['start'],_0x528f5f);_0x4a2d4c['updateMarker'](_0x2eee82['getFirstMarker'](),{'range':_0x2d88e8}),_0x568d59=!0x0;}}return _0x568d59;}),_0x23b862['model']['document']['registerPostFixer'](_0xa00a30=>this['_processAttributeChanges'](_0xa00a30)),_0x23b862['model']['document']['registerPostFixer'](_0x14e7b1=>!_0x14e7b1['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x14e7b1)),_0x23b862['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x23b862['model']['document']['on']('change:data',(_0x390fa6,_0x4fde51)=>{if(!_0x4fde51['isLocal']||_0x4fde51['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3d77e5=_0x23b862['model']['document']['differ']['getChanges']();if(0x0==_0x3d77e5['length'])return;const _0x4b9e55=[],_0x41def0=_0x3d77e5['filter'](_0x51ec0d=>'attribute'==_0x51ec0d['type']),_0x2acdc4=_0x3d77e5['filter'](_0x42cc7a=>'insert'==_0x42cc7a['type']&&'$text'!=_0x42cc7a['name']);for(const _0x5dccc2 of _0x41def0)this['_isRegisteredAttribute'](_0x5dccc2['attributeKey'])&&_0x4b9e55['push']({'key':_0x5dccc2['attributeKey'],'newValue':_0x5dccc2['attributeNewValue'],'oldValue':_0x5dccc2['attributeOldValue'],'range':qt(_0x5dccc2['range'],_0x23b862['model'])});for(const _0x6fda45 of _0x2acdc4){if('rename'!=_0x6fda45['action']&&'refresh'!=_0x6fda45['action'])continue;const _0x4b3ea6=zt(_0x6fda45['position']['nodeAfter'],_0x23b862['model']),_0x438625=_0x6fda45['before'];'rename'==_0x6fda45['action']&&_0x4b9e55['push']({'key':u,'newValue':_0x6fda45['name'],'oldValue':_0x438625['name'],'range':_0x4b3ea6});for(const [_0x54e43a,_0x2c59f0]of _0x438625['attributes']){if(!this['_isRegisteredAttribute'](_0x54e43a))continue;const _0x2745ed=_0x6fda45['attributes']['get'](_0x54e43a);_0x2c59f0!==_0x2745ed&&_0x4b9e55['push']({'key':_0x54e43a,'newValue':_0x2745ed,'oldValue':_0x2c59f0,'range':_0x4b3ea6});}for(const [_0x1f1216,_0x48d68d]of _0x6fda45['attributes'])this['_isRegisteredAttribute'](_0x1f1216)&&(_0x438625['attributes']['has'](_0x1f1216)||_0x4b9e55['push']({'key':_0x1f1216,'newValue':_0x48d68d,'oldValue':null,'range':_0x4b3ea6}));}0x0!=_0x4b9e55['length']&&_0x23b862['model']['enqueueChange'](_0x4fde51,_0x55f54d=>{const _0x27a981=_0x32b8bc();for(const {range:_0x581510,key:_0x4aada9,oldValue:_0x2a9b60,newValue:_0x11191b}of _0x4b9e55)this['markAttributeChange'](_0x581510,_0x4aada9,_0x2a9b60,_0x11191b,{'groupId':_0x27a981});this['_reduceExistingSuggestions'](_0x55f54d,_0x4b9e55);});},{'priority':'lowest'}),_0x23b862['model']['markers']['on']('update:suggestion',(_0x2df097,_0x33c30e,_0x4256c2)=>{if(null==_0x4256c2){const {id:_0x366f30}=this['_splitMarkerName'](_0x33c30e['name']),_0x2550d8=this['_suggestions']['get'](_0x366f30);_0x2550d8&&_0x2550d8['addMarkerName'](_0x33c30e['name']);}}),_0x23b862['model']['document']['on']('change:data',()=>{const _0x436df9=Array['from'](_0x23b862['model']['document']['differ']['getChangedMarkers']())['filter'](_0x4f9c60=>'suggestion'===this['_splitMarkerName'](_0x4f9c60['name'])['group']);if(0x0===_0x436df9['length'])return;_0x436df9['sort']((_0x16fa0e,_0x13b2b6)=>{const _0x25a8c7=_0x16fa0e['data']['oldRange'],_0x832a21=_0x13b2b6['data']['oldRange'];return null===_0x25a8c7&&null===_0x832a21?0x0:null===_0x25a8c7&&null!==_0x832a21?-0x1:null!==_0x25a8c7&&null===_0x832a21?0x1:_0x25a8c7['start']['isBefore'](_0x832a21['start'])?-0x1:0x1;});const _0x49e65b=new Set(),_0x335719=new Set();for(const {name:_0x433de3,data:_0x2c2103}of _0x436df9){const {id:_0x5a692c}=this['_splitMarkerName'](_0x433de3);if(null===_0x2c2103['oldRange']){const _0x4f8507=this['_handleNewSuggestionMarker'](_0x433de3);_0x335719['add'](_0x4f8507);}else{const _0x4c474d=this['_suggestions']['get'](_0x5a692c);null!==_0x2c2103['newRange']||_0x4c474d['isInContent']?(_0x49e65b['add'](_0x4c474d['head']),_0x335719['add'](_0x4c474d)):this['_removeSuggestion'](_0x4c474d);}}_0x335719['size']>0x0&&this['_refreshSuggestionsChain'](_0x335719);for(const _0x48ab43 of _0x49e65b)this['fire']('suggestionChanged',_0x48ab43);}),_0x23b862['model']['on']('applyOperation',(_0x213d44,_0x12760b)=>{const _0x507509=_0x12760b[0x0];if(!this['_suggestions']['size'])return;if(!_0x507509['isDocumentOperation'])return;if(_0x507509['batch']['isUndo']||!_0x507509['batch']['isLocal'])return;let _0x3fb963,_0x344ec8;switch(_0x507509['type']){case'insert':_0x3fb963=_0x23b862['model']['createPositionAt'](_0x507509['position']),_0x344ec8=_0x3fb963['getShiftedBy'](_0x507509['howMany']);break;case'split':_0x3fb963=_0x23b862['model']['createPositionAt'](_0x507509['splitPosition']),_0x344ec8=_0x23b862['model']['createPositionAt'](_0x507509['moveTargetPosition']);break;case'move':_0x3fb963=_0x23b862['model']['createPositionAt'](_0x507509['targetPosition']),_0x344ec8=_0x3fb963['getShiftedBy'](_0x507509['howMany']);break;default:return;}const _0x13eb54=_0x23b862['model']['createRange'](_0x3fb963,_0x344ec8);_0x23b862['model']['change'](()=>{for(const {suggestion:_0x431204,meta:_0x1e552c}of this['_findSuggestions'](_0x13eb54)){if(_0x431204['isMultiRange'])continue;if('formatInline'==_0x431204['type'])continue;const _0x3ae9d2=this['_getAttributeKey'](_0x431204);if(_0x3ae9d2&&this['_isBlockAttribute'](_0x3ae9d2)&&'split'!=_0x507509['type'])continue;const _0x398086=_0x431204['data']&&_0x431204['data']['multipleBlocks'];('formatBlock'!=_0x431204['type']||'split'==_0x507509['type']&&!_0x398086)&&(_0x1e552c['containsRangeInObject']||'insertion'==_0x431204['type']&&_0x1e552c['isOwn']||_0x431204['getFirstRange']()['containsRange'](_0x13eb54)&&this['_breakSuggestionMarker'](_0x431204,_0x3fb963,_0x344ec8));}});},{'priority':'lowest'}),_0x23b862['model']['on']('deleteContent',(_0x2a74b5,_0x27983c)=>{const _0x3cab6b=_0x27983c[0x0],_0x422672=_0x27983c[0x1];if(_0x422672&&_0x422672['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x3cab6b['isCollapsed'])return;const _0x18d107=_0x23b862['model']['schema'],{start:_0x23cc6b,end:_0x14d2a0}=_0x3cab6b['getFirstRange'](),_0x374971=_0x23cc6b['nodeAfter']&&_0x18d107['isLimit'](_0x23cc6b['nodeAfter'])?null:_0x18d107['getNearestSelectionRange'](_0x23cc6b,'forward'),_0x53de0c=_0x14d2a0['nodeBefore']&&_0x18d107['isLimit'](_0x14d2a0['nodeBefore'])?null:_0x18d107['getNearestSelectionRange'](_0x14d2a0,'backward'),_0x4a9d94=_0x23b862['model']['createRange'](_0x374971?_0x374971['start']:_0x23cc6b,_0x53de0c?_0x53de0c['end']:_0x14d2a0);_0x23b862['model']['change'](_0x1d37e4=>{this['markDeletion'](_0x4a9d94);const _0x534390=_0x23b862['model']['schema']['getNearestSelectionRange'](_0x4a9d94['start']);_0x3cab6b['is']('documentSelection')?_0x1d37e4['setSelection'](_0x534390):_0x3cab6b['setTo'](_0x534390);}),_0x2a74b5['stop']();},{'priority':_0x1180b2['normal']+0xa}),_0x23b862['model']['on']('insertContent',(_0x3f24fe,_0x12f100)=>{const _0x5e12bd=_0x12f100[_0x12f100['length']-0x1];_0x5e12bd&&_0x5e12bd['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x23b862['model']['change'](()=>{let _0x105a2d=_0x23b862['model']['insertContent'](_0x12f100[0x0],_0x12f100[0x1],_0x12f100[0x2],{'forceDefaultExecution':!0x0});if(!_0x105a2d)return;_0x3f24fe['return']=_0x105a2d['clone']();const _0x4fa7f4=_0x105a2d['end']['nodeBefore'],_0x340534=_0x23b862['model']['schema'];_0x4fa7f4&&_0x340534['isBlock'](_0x4fa7f4)&&!_0x340534['isObject'](_0x4fa7f4)&&(_0x105a2d=_0x23b862['model']['createRange'](_0x105a2d['start'],_0x23b862['model']['createPositionAt'](_0x4fa7f4,'end'))),this['markInsertion'](_0x105a2d);}),_0x3f24fe['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0xd6853f=new x(_0x23b862,this['_suggestions']);_0x23b862['commands']['add']('acceptSuggestion',_0xd6853f),this['enableCommand']('acceptSuggestion');const _0x55f64=new O(_0x23b862,this['_suggestions']);_0x23b862['commands']['add']('discardSuggestion',_0x55f64),this['enableCommand']('discardSuggestion'),_0x23b862['commands']['add']('acceptAllSuggestions',new R(_0x23b862,_0xd6853f,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x23b862['commands']['add']('discardAllSuggestions',new R(_0x23b862,_0x55f64,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x23b862['commands']['add']('acceptSelectedSuggestions',new E(_0x23b862,_0xd6853f,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x23b862['commands']['add']('discardSelectedSuggestions',new E(_0x23b862,_0x55f64,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x59bb31=_0x23b862['plugins']['get']('CommentsRepository');this['listenTo'](_0x59bb31,'addComment',(_0x5c4001,{threadId:_0xf8b9cd})=>{const _0x3bb728=this['_suggestions']['get'](_0xf8b9cd);_0x3bb728&&_0x3bb728['commentThread']&&0x1===_0x3bb728['commentThread']['length']&&this['_updateSuggestionData'](_0xf8b9cd,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x59bb31,'removeComment',(_0x2f220b,{threadId:_0x166a00})=>{const _0x3b6efb=this['_suggestions']['get'](_0x166a00);_0x3b6efb&&_0x3b6efb['commentThread']&&!_0x3b6efb['commentThread']['length']&&this['_updateSuggestionData'](_0x166a00,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x5c4432){const _0x502825=_0x1f1b7d([0x46,0x33,0x49,0x7a,0x50,0x53,0x6a,0x55,0x48,0x47,0x31,0x4f,0x70,0x78,0x6c,0x58,0x72,0x6b,0x77,0x62,0x4e,0x76,0x6e,0x79,0x4c,0x59,0x43,0x56,0x4a,0x61,0x32,0x63,0x57,0x67,0x6f,0x64,0x74,0x36,0x71,0x37,0x5a,0x30,0x34,0x4b,0x68,0x41,0x65,0x66,0x44,0x42,0x52,0x45,0x54,0x75,0x38,0x6d,0x51,0x35,0x73,0x39,0x4d,0x69]),_0x5f403a=0x40ce757,_0x563057=0x40b800f^_0x5f403a,_0x189f97=window[_0x1f1b7d([0x44,0x61,0x74,0x65])][_0x1f1b7d([0x6e,0x6f,0x77])](),_0x175296=_0x5c4432[_0x1f1b7d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3fbae4=new window[(_0x1f1b7d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45ff3d=>{_0x175296[_0x1f1b7d([0x6f,0x6e,0x63,0x65])](_0x1f1b7d([0x72,0x65,0x61,0x64,0x79]),_0x45ff3d);}),_0x2116e0={[_0x1f1b7d([0x6b,0x74,0x79])]:_0x1f1b7d([0x45,0x43]),[_0x1f1b7d([0x75,0x73,0x65])]:_0x1f1b7d([0x73,0x69,0x67]),[_0x1f1b7d([0x63,0x72,0x76])]:_0x1f1b7d([0x50,0x2d,0x32,0x35,0x36]),[_0x1f1b7d([0x78])]:_0x1f1b7d([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]),[_0x1f1b7d([0x79])]:_0x1f1b7d([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]),[_0x1f1b7d([0x61,0x6c,0x67])]:_0x1f1b7d([0x45,0x53,0x32,0x35,0x36])},_0x316422=_0x175296[_0x1f1b7d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1f1b7d([0x67,0x65,0x74])](_0x1f1b7d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x301798(){let _0x29f4e2,_0x549439=null,_0x60615c=null;try{if(_0x316422==_0x1f1b7d([0x47,0x50,0x4c]))return _0x1f1b7d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x29f4e2=_0x453258(),!_0x29f4e2)return _0x1f1b7d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x29f4e2[_0x1f1b7d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x60615c=_0x417178(_0x29f4e2[_0x1f1b7d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x29f4e2[_0x1f1b7d([0x6a,0x74,0x69])])),await _0x32b557()?_0x459526()?_0x2c13cd()?_0x1f1b7d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xc2666b()?(_0x29f4e2[_0x1f1b7d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1f1b7d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x549439=_0x4e6e65(_0x1f1b7d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x29f4e2[_0x1f1b7d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1f1b7d([0x74,0x72,0x69,0x61,0x6c])&&(_0x549439=_0x4e6e65(_0x1f1b7d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x28a461()):_0x1f1b7d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1f1b7d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1f1b7d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x11be90){return _0x1f1b7d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2c13cd(){const _0x596460=[_0x1f1b7d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1f1b7d([0x74,0x72,0x69,0x61,0x6c])][_0x1f1b7d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29f4e2[_0x1f1b7d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x189f97/0x3e8:0xe10*_0x563057;return _0x29f4e2[_0x1f1b7d([0x65,0x78,0x70])]<_0x596460;}function _0x459526(){const _0x5c18ce=_0x29f4e2[_0x1f1b7d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x5c18ce)return!0x1;if(_0x5c18ce[_0x1f1b7d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f1b7d([0x2a])))return!0x0;if(_0x5c18ce[_0x1f1b7d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f1b7d([0x54,0x43])))return!0x0;if(_0x5c18ce[_0x1f1b7d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f1b7d([0x52,0x54,0x43]))){if(_0xbb927d())return!0x0;if(_0x252673()||_0x19e065())return!0x0;}return!0x1;}function _0xc2666b(){const _0x21ebd1=_0x29f4e2[_0x1f1b7d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x21ebd1||0x0==_0x21ebd1[_0x1f1b7d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xa4b96a}=new URL(window[_0x1f1b7d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x21ebd1[_0x1f1b7d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa4b96a))return!0x0;const _0x41363b=_0xa4b96a[_0x1f1b7d([0x73,0x70,0x6c,0x69,0x74])](_0x1f1b7d([0x2e]));return _0x21ebd1[_0x1f1b7d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x48f493=>_0x48f493[_0x1f1b7d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f1b7d([0x2a])))[_0x1f1b7d([0x6d,0x61,0x70])](_0x131c46=>_0x131c46[_0x1f1b7d([0x73,0x70,0x6c,0x69,0x74])](_0x1f1b7d([0x2e])))[_0x1f1b7d([0x73,0x6f,0x6d,0x65])](_0x12d459=>_0x41363b[_0x1f1b7d([0x65,0x76,0x65,0x72,0x79])]((_0x262a1d,_0x61ae36)=>_0x12d459[_0x61ae36]===_0x262a1d||_0x12d459[_0x61ae36]===_0x1f1b7d([0x2a])));}function _0x28a461(){return _0x549439&&_0x60615c?new window[(_0x1f1b7d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2c3aef,_0x379a5c)=>{_0x549439[_0x1f1b7d([0x74,0x68,0x65,0x6e])](_0x2c3aef,_0x379a5c),_0x60615c[_0x1f1b7d([0x74,0x68,0x65,0x6e])](_0x3c95a9=>{_0x3c95a9!=_0x1f1b7d([0x56,0x61,0x6c,0x69,0x64])&&_0x2c3aef(_0x3c95a9);},_0x379a5c);}):_0x549439||_0x60615c||_0x1f1b7d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x417178(_0x225ff4,_0x56ba16){return new window[(_0x1f1b7d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x405630=>{if(_0x492a4f())return _0x405630(_0x1f1b7d([0x56,0x61,0x6c,0x69,0x64]));_0x3af37b(),_0x175296[_0x1f1b7d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1f1b7d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4ddf39=!0x1;const _0x205857=_0x32b8bc();function _0x1dd3d6(_0x21f4e9){return!!_0x21f4e9&&(typeof _0x21f4e9===_0x1f1b7d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x21f4e9===_0x1f1b7d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x21f4e9[_0x1f1b7d([0x74,0x68,0x65,0x6e])]===_0x1f1b7d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x21f4e9[_0x1f1b7d([0x63,0x61,0x74,0x63,0x68])]===_0x1f1b7d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x46403c(_0x6b6624){_0x2fe314(_0x6b6624)[_0x1f1b7d([0x74,0x68,0x65,0x6e])](_0x50ab83=>{if(!_0x50ab83||_0x50ab83[_0x1f1b7d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1f1b7d([0x6f,0x6b]))return _0x1f1b7d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4ef5b0(_0xb53759(_0x205857+_0x56ba16))!=_0x50ab83[_0x1f1b7d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1f1b7d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1f1b7d([0x56,0x61,0x6c,0x69,0x64]);})[_0x1f1b7d([0x74,0x68,0x65,0x6e])](_0xd55668=>(_0x227160(),_0xd55668),()=>{const _0x294029=_0x4a1a66();return null==_0x294029?(_0x227160(),_0x1f1b7d([0x56,0x61,0x6c,0x69,0x64])):_0x1f1b7d(_0x189f97-_0x294029>(0x20006357^_0x5f403a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1f1b7d([0x74,0x68,0x65,0x6e])](_0x405630)[_0x1f1b7d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x405630(_0x1f1b7d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x499aa8=0x43a09d7^_0x5f403a;function _0x227160(){const _0x5844f7=_0x1f1b7d([0x6c,0x6c,0x63,0x74,0x2d])+_0x4ef5b0(_0xb53759(_0x225ff4)),_0x33f494=_0x258fe6(_0x4ef5b0(window[_0x1f1b7d([0x4d,0x61,0x74,0x68])][_0x1f1b7d([0x63,0x65,0x69,0x6c])](_0x189f97/_0x499aa8)));window[_0x1f1b7d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1f1b7d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5844f7,_0x33f494);}function _0x4a1a66(){const _0x104cba=_0x1f1b7d([0x6c,0x6c,0x63,0x74,0x2d])+_0x4ef5b0(_0xb53759(_0x225ff4)),_0x6b291d=window[_0x1f1b7d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1f1b7d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x104cba);return _0x6b291d?window[_0x1f1b7d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x258fe6(_0x6b291d),0x10)*_0x499aa8:null;}function _0x2fe314(_0x247351){return new window[(_0x1f1b7d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xa0550d,_0x49f476)=>{_0x247351[_0x1f1b7d([0x74,0x68,0x65,0x6e])](_0xa0550d,_0x49f476),window[_0x1f1b7d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x49f476,0x40d3397^_0x5f403a);});}}_0x175296[_0x1f1b7d([0x6f,0x6e])](_0x1f1b7d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1fa754,_0x4dfe29)=>{if(_0x4dfe29[0x0]!=_0x225ff4)return _0x405630(_0x1f1b7d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4dfe29[0x1]={..._0x4dfe29[0x1],[_0x1f1b7d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x205857};},{[_0x1f1b7d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1f1b7d([0x68,0x69,0x67,0x68])}),_0x175296[_0x1f1b7d([0x6f,0x6e])](_0x1f1b7d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2a2312=>{_0x1dd3d6(_0x2a2312[_0x1f1b7d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4ddf39=!0x0,_0x46403c(_0x2a2312[_0x1f1b7d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1f1b7d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1f1b7d([0x6c,0x6f,0x77])}),_0x3fbae4[_0x1f1b7d([0x74,0x68,0x65,0x6e])](()=>{_0x4ddf39||_0x405630(_0x1f1b7d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x492a4f(){return _0x175296[_0x1f1b7d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1f1b7d([0x76,0x69,0x65,0x77])][_0x1f1b7d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1f1b7d([0x61,0x75,0x74,0x6f]);}function _0x3af37b(){_0x175296[_0x1f1b7d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1f1b7d([0x76,0x69,0x65,0x77])][_0x1f1b7d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1f1b7d([0x61,0x75,0x74,0x6f]);}}function _0x4e6e65(_0x1ea0de){const _0x3951c2=[new window[(_0x1f1b7d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5892ce=>setTimeout(_0x5892ce,0x405d99b^_0x5f403a)),_0x3fbae4[_0x1f1b7d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1f1b7d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x48be06=>{let _0x43f3d3=0x0;_0x175296[_0x1f1b7d([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f1b7d([0x6f,0x6e])](_0x1f1b7d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x642b49,_0x5c7f92)=>{_0x5c7f92[0x0][_0x1f1b7d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x43f3d3++,_0x43f3d3==(0x40ce6af^_0x5f403a)&&(_0x48be06(),_0x642b49[_0x1f1b7d([0x6f,0x66,0x66])]());});}))];return window[_0x1f1b7d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1f1b7d([0x72,0x61,0x63,0x65])](_0x3951c2)[_0x1f1b7d([0x74,0x68,0x65,0x6e])](()=>_0x1ea0de);}async function _0x22a48f(){await _0x3fbae4,_0x175296[_0x1f1b7d([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f1b7d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5eee22,_0x175296[_0x1f1b7d([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f1b7d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5eee22,_0x175296[_0x1f1b7d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1f1b7d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xbb927d(){return _0x21598f(_0x1f1b7d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2de62e(_0x1f1b7d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x1f1b7d([0x73,0x74,0x61,0x74,0x65])]==_0x1f1b7d([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x252673(){return _0x21598f(_0x1f1b7d([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 _0x19e065(){return _0x21598f(_0x1f1b7d([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x5380d6(_0x3caf87){const _0x5479fc=_0x120c70();_0x175296[_0x5479fc]=_0x1f1b7d([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3caf87,_0x3caf87!=_0x1f1b7d([0x56,0x61,0x6c,0x69,0x64])&&_0x22a48f();}function _0x120c70(){const _0x4631e4=window[_0x1f1b7d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1f1b7d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1f1b7d([0x6e,0x6f,0x77])]())[_0x1f1b7d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1f1b7d([0x2e]),'');let _0xe71de3=_0x1f1b7d([0x46]);for(let _0x4c1297=0x0;_0x4c1297<_0x4631e4[_0x1f1b7d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4c1297+=0x2){let _0x31c139=window[_0x1f1b7d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4631e4[_0x1f1b7d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4c1297,_0x4c1297+0x2));_0x31c139>=_0x502825[_0x1f1b7d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x31c139-=_0x502825[_0x1f1b7d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xe71de3+=_0x502825[_0x31c139];}return _0xe71de3;}function _0x453258(){const _0x51facd=_0x316422[_0x1f1b7d([0x73,0x70,0x6c,0x69,0x74])](_0x1f1b7d([0x2e]));if(0x3!=_0x51facd[_0x1f1b7d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x16a724(_0x51facd[0x1]);function _0x16a724(_0x3baed4){const _0x3b0663=_0x3b90fc(_0x3baed4);return _0x3b0663&&_0x450a9d()?_0x3b0663:null;function _0x450a9d(){const _0x29143c=_0x3b0663[_0x1f1b7d([0x6a,0x74,0x69])],_0x313a71=window[_0x1f1b7d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x29143c[_0x1f1b7d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x29143c[_0x1f1b7d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x380b18={..._0x3b0663,[_0x1f1b7d([0x6a,0x74,0x69])]:_0x29143c[_0x1f1b7d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x29143c[_0x1f1b7d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x380b18[_0x1f1b7d([0x76,0x63])],_0xb53759(_0x380b18)==_0x313a71;}}}async function _0x32b557(){let _0x347697=!0x0;try{const _0x31d88b=_0x316422[_0x1f1b7d([0x73,0x70,0x6c,0x69,0x74])](_0x1f1b7d([0x2e])),[_0x4ab965,_0x188c70,_0x77ee6d]=_0x31d88b;return _0x571e1c(_0x4ab965),await _0x26f2b0(_0x4ab965,_0x188c70,_0x77ee6d),_0x347697;}catch(_0x52afcb){return!0x1;}function _0x571e1c(_0x4b219a){const _0x1d6f29=_0x3b90fc(_0x4b219a);_0x1d6f29&&_0x1d6f29[_0x1f1b7d([0x61,0x6c,0x67])]==_0x1f1b7d([0x45,0x53,0x32,0x35,0x36])||(_0x347697=!0x1);}async function _0x26f2b0(_0x158d12,_0xca0cf1,_0x44cdbc){const _0x5141b4=window[_0x1f1b7d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1f1b7d([0x66,0x72,0x6f,0x6d])](_0x99b752(_0x44cdbc),_0x3df3be=>_0x3df3be[_0x1f1b7d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x47b478=new window[(_0x1f1b7d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1f1b7d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x158d12+_0x1f1b7d([0x2e])+_0xca0cf1),_0x89c7ba=window[_0x1f1b7d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1f1b7d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x89c7ba)return;const _0xc07385=await _0x89c7ba[_0x1f1b7d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1f1b7d([0x6a,0x77,0x6b]),_0x2116e0,{[_0x1f1b7d([0x6e,0x61,0x6d,0x65])]:_0x1f1b7d([0x45,0x43,0x44,0x53,0x41]),[_0x1f1b7d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1f1b7d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1f1b7d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x89c7ba[_0x1f1b7d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1f1b7d([0x6e,0x61,0x6d,0x65])]:_0x1f1b7d([0x45,0x43,0x44,0x53,0x41]),[_0x1f1b7d([0x68,0x61,0x73,0x68])]:{[_0x1f1b7d([0x6e,0x61,0x6d,0x65])]:_0x1f1b7d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xc07385,_0x5141b4,_0x47b478)||(_0x347697=!0x1);}}function _0x3b90fc(_0x26d01a){return _0x26d01a[_0x1f1b7d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1f1b7d([0x65,0x79]))?JSON[_0x1f1b7d([0x70,0x61,0x72,0x73,0x65])](_0x99b752(_0x26d01a)):null;}function _0x99b752(_0x25e657){return window[_0x1f1b7d([0x61,0x74,0x6f,0x62])](_0x25e657[_0x1f1b7d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1f1b7d([0x2b]))[_0x1f1b7d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1f1b7d([0x2f])));}function _0xb53759(_0x3e3273){let _0xa40ca2=0x1505;function _0x106d81(_0x4fae86){for(let _0x34e6e4=0x0;_0x34e6e4<_0x4fae86[_0x1f1b7d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x34e6e4++){const _0x1b5b3f=_0x4fae86[_0x1f1b7d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x34e6e4);_0xa40ca2=(_0xa40ca2<<0x5)+_0xa40ca2+_0x1b5b3f,_0xa40ca2&=_0xa40ca2;}}function _0xa77491(_0x2dfe60){Array[_0x1f1b7d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2dfe60)?_0x2dfe60[_0x1f1b7d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xa77491):_0x2dfe60&&typeof _0x2dfe60==_0x1f1b7d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1f1b7d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2dfe60)[_0x1f1b7d([0x73,0x6f,0x72,0x74])]()[_0x1f1b7d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3edbf2,_0x4ed89d])=>{_0x106d81(_0x3edbf2),_0xa77491(_0x4ed89d);}):_0x106d81(window[_0x1f1b7d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2dfe60));}return _0xa77491(_0x3e3273),_0xa40ca2>>>0x0;}function _0x4ef5b0(_0x219b53){return _0x219b53[_0x1f1b7d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1f1b7d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1f1b7d([0x30]));}function _0x258fe6(_0x4651dc){return _0x4651dc[_0x1f1b7d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1f1b7d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1f1b7d([0x6a,0x6f,0x69,0x6e])]('');}function _0x21598f(_0x2d019a){return _0x175296[_0x1f1b7d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1f1b7d([0x68,0x61,0x73])](_0x2d019a);}function _0x2de62e(_0x2a228e){return _0x175296[_0x1f1b7d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1f1b7d([0x67,0x65,0x74])](_0x2a228e);}function _0x5eee22(){}function _0x1f1b7d(_0x192266){return _0x192266['map'](_0xd7287d=>String['fromCharCode'](_0xd7287d))['join']('');}_0x5380d6(await _0x301798());}(this);}set['adapter'](_0x375548){if(this['_adapter'])throw new _0x2c0c45('track-changes-adapter-already-set',this);this['_adapter']=_0x375548;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1b2bdb=!0x1,toJSON:_0x2bfb47=!0x1}={}){const _0x9dad14=[];for(const _0x2368a4 of this['_suggestions']['values']())_0x1b2bdb&&!_0x2368a4['isInContent']||_0x9dad14['push'](_0x2368a4);return _0x2bfb47?_0x9dad14['map'](_0xff5037=>_0xff5037['toJSON']()):_0x9dad14;}['getSuggestion'](_0x55b06b){const _0x59f749=this['_suggestions']['get'](_0x55b06b);if(!_0x59f749)throw new _0x2c0c45('track-changes-suggestion-not-found',this);return _0x59f749;}['hasSuggestion'](_0x8e0a32){return this['_suggestions']['has'](_0x8e0a32);}['addSuggestionData'](_0x262af0){const {authorId:_0x433ffe,id:_0x53fe4c,attributes:_0x348c21}=_0x262af0,[_0x49d191,_0x1b0892]=_0x262af0['type']['split'](':'),_0x50fb86=this['_suggestions']['get'](_0x53fe4c)||this['_createSuggestion'](_0x49d191,_0x1b0892,_0x53fe4c,_0x433ffe,_0x348c21);if(this['_addThreadToSuggestion'](_0x50fb86),this['_checkSuggestionCorrectness'](_0x50fb86,_0x49d191,_0x1b0892||null,_0x433ffe),_0x50fb86['createdAt']=_0x262af0['createdAt'],_0x50fb86['_isDataLoaded']=!0x0,_0x348c21&&_0x348c21['@external']){const _0x27a730=_0x348c21['@external'],_0xbceb58=this['_getExternalAuthor'](_0x27a730['authorName']);_0x50fb86['authoredAt']=_0x27a730['createdAt'],_0x50fb86['author']=_0xbceb58,_0x50fb86['isExternal']=!0x0;}else _0x50fb86['authoredAt']=_0x262af0['createdAt'];switch(_0x262af0['data']&&(_0x50fb86['data']=_0x262af0['data']),_0x262af0['attributes']&&(_0x50fb86['attributes']=_0x262af0['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x50fb86['_saved']=!0x0),this['_suggestionState']['get'](_0x50fb86)){case'notReady':this['_suggestionState']['set'](_0x50fb86,'dataReady');break;case'markerReady':_0x50fb86['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x50fb86])),this['_refreshSuggestionsChain'](new Set([_0x50fb86])),this['_suggestionState']['set'](_0x50fb86,'ready'),this['fire']('suggestionLoaded',_0x50fb86)):this['_suggestionState']['set'](_0x50fb86,'removed');}return _0x50fb86;}['acceptSuggestion'](_0x1bbd80){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2bdcb9 of _0x1bbd80['getAllAdjacentSuggestions']())_0x2bdcb9['accept']();});});}['discardSuggestion'](_0x400f3f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x101577 of _0x400f3f['getAllAdjacentSuggestions']())_0x101577['discard']();});});}['enableCommand'](_0x456ec,_0x3f71ed){const _0x15be84=this['editor']['commands']['get'](_0x456ec);if(!_0x15be84)throw new _0x2c0c45('track-changes-command-not-found',this,{'commandName':_0x456ec});if(this['_enabledCommands']['has'](_0x15be84))throw new _0x2c0c45('track-changes-enable-command-twice',this,{'commandName':_0x456ec});this['_enabledCommands']['add'](_0x15be84),_0x3f71ed&&_0x15be84['on']('execute',(_0x48eb08,_0x1fbeaa)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x1fbeaa['length']>0x0&&_0x1fbeaa[_0x1fbeaa['length']-0x1]&&_0x1fbeaa[_0x1fbeaa['length']-0x1]['forceDefaultExecution']?_0x1fbeaa['pop']():(_0x48eb08['return']=_0x3f71ed((..._0xd6fb01)=>_0x15be84['execute'](..._0xd6fb01,{'forceDefaultExecution':!0x0}),..._0x1fbeaa),_0x48eb08['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4364a5){let _0x43eb43,_0x446ef0;const _0x2590ea=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x43eb43=_0x4364a5();}catch(_0x4e61d6){_0x446ef0=_0x4e61d6;}return _0x2590ea||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x446ef0&&_0x2c0c45['rethrowUnexpectedError'](_0x446ef0,this),_0x43eb43;}['markInsertion'](_0x127d48,_0x55db02=null,_0x247783={}){if(_0x127d48['isCollapsed'])return null;const _0x27a643=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x247783['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5963fc,meta:_0x435983}of this['_findSuggestions'](_0x127d48,'insertion'))if(_0x435983['isOwn']){if(!_0x435983['isNextTo']){if(_0x435983['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x5963fc,_0x247783))continue;return _0x5963fc;}if(Xt(_0x5963fc,_0x247783))return _0x5963fc;this['_breakSuggestionMarker'](_0x5963fc,_0x127d48['start'],_0x127d48['end']);break;}if(_0x55db02==_0x5963fc['subType']&&Xt(_0x5963fc,_0x247783)){const _0x1c1c18=_0x5963fc['getFirstRange']();return _0x1c1c18['start']['isEqual'](_0x127d48['end'])?this['_setSuggestionRange'](_0x5963fc,this['_model']['createRange'](_0x127d48['start'],_0x1c1c18['end'])):this['_setSuggestionRange'](_0x5963fc,this['_model']['createRange'](_0x1c1c18['start'],_0x127d48['end'])),_0x5963fc;}}const _0x58fd68=_0x32b8bc(),_0x482da9=_0x27a643['id'],_0x275a84=_0x55db02?'insertion:'+_0x55db02:'insertion',_0x4d849=this['_setSuggestionData']({'id':_0x58fd68,'type':_0x275a84,'createdAt':new Date(),'authorId':_0x482da9,'attributes':_0x247783});return this['_addSuggestionMarker'](_0x275a84,_0x58fd68,_0x482da9,_0x127d48),_0x4d849;}['markMultiRangeInsertion'](_0x4ca222,_0x3be3a0='multi',_0x33be38={}){const _0x55f9f8=this['editor']['plugins']['get']('Users')['me'],_0x10c92f=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3be3a0,'join');this['_trackingSessionId']&&(_0x33be38['trackingSessionId']=this['_trackingSessionId']);for(const _0x2c9eb1 of this['getSuggestions']())if(_0x2c9eb1['author']['id']==_0x55f9f8['id']&&'insertion'==_0x2c9eb1['type']&&_0x2c9eb1['subType']==_0x3be3a0&&Xt(_0x2c9eb1,_0x33be38)&&(_0x10c92f(_0x2c9eb1['getRanges'](),_0x4ca222)||_0x10c92f(_0x4ca222,_0x2c9eb1['getRanges']()))){for(const _0x1b2a7a of _0x4ca222)_0x2c9eb1['addRange'](_0x1b2a7a);return _0x2c9eb1;}for(const {suggestion:_0x5d30d9,meta:_0x253ae2}of this['_findSuggestions'](_0x4ca222,'insertion')){if(!_0x253ae2['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x253ae2['containsRangeInObject'])continue;if(!Xt(_0x5d30d9,_0x33be38))continue;let _0x97a861=!0x0;for(const _0x3d14c2 of _0x5d30d9['getRanges']())for(const _0x204bfd of _0x4ca222)if(!_0x3d14c2['containsRange'](_0x204bfd)){_0x97a861=!0x1;break;}if(_0x97a861)return _0x5d30d9;}const _0x15bf98=_0x32b8bc(),_0x149cda=_0x55f9f8['id'],_0x3afa32='insertion:'+_0x3be3a0,_0x398d79=this['_setSuggestionData']({'id':_0x15bf98,'type':_0x3afa32,'createdAt':new Date(),'authorId':_0x149cda,'attributes':_0x33be38});for(const _0x2ad330 of _0x4ca222)this['_addSuggestionMarker'](_0x3afa32,_0x15bf98,_0x149cda,_0x2ad330,o['getMultiRangeId']());return _0x398d79;}['markInlineFormat'](_0x5989d2,_0x49f34f,_0x19e391=null,_0x591a07={}){if(_0x19e391=_0x19e391||Kt(_0x49f34f),_0x5989d2['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x591a07['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x37683b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x19e391,'accept');return this['forceDefaultExecution'](()=>_0x37683b([_0x5989d2],_0x49f34f,_0x591a07)),null;}const _0x56585c=this['editor']['plugins']['get']('Users')['me'],_0x508e0a=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x239939,meta:_0x112b85}of this['_findSuggestions'](_0x5989d2,'insertion'))_0x112b85['isOwn']&&!_0x112b85['isInsideObject']&&_0x508e0a['push'](..._0x239939['getRanges']());}const _0x5adba8=function(_0xf7f200,_0x3501d6){const _0x589ba3=[];for(const _0x114282 of _0x3501d6){const _0x4e7ff3=_0xf7f200['getIntersection'](_0x114282);_0x4e7ff3&&_0x589ba3['push'](_0x4e7ff3);}return _0x589ba3;}(_0x5989d2,_0x508e0a),_0xe7b452=function(_0x369234,_0x1900d4){const _0xc5c40d=[_0x369234];for(const _0x57f2d0 of _0x1900d4){let _0x22d78d=0x0;for(;_0x22d78d<_0xc5c40d['length'];){const _0x468f7f=_0xc5c40d[_0x22d78d]['getDifference'](_0x57f2d0);_0xc5c40d['splice'](_0x22d78d,0x1,..._0x468f7f),_0x22d78d+=_0x468f7f['length'];}}return _0xc5c40d;}(_0x5989d2,_0x508e0a);_0x5adba8['length']&&this['_model']['change'](()=>{for(const _0x14bf13 of _0x5adba8){const _0x1d0578=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x19e391,'accept');this['forceDefaultExecution'](()=>_0x1d0578([_0x14bf13],_0x49f34f,_0x591a07));}});for(const _0x399fd7 of _0xe7b452){let _0x26135a=null,_0x2fc07f=_0x399fd7['start'],_0x4bab4f=_0x399fd7['end'];for(const {suggestion:_0x1fb01c,meta:_0x2d382e}of this['_findSuggestions'](_0x399fd7,'formatInline')){if(!_0x2d382e['isOwn'])continue;if(_0x1fb01c['subType']!=_0x19e391)continue;if(!Xt(_0x1fb01c,_0x591a07))continue;const _0x33a831=_0x1fb01c['getFirstRange']();if(_0x33a831['containsRange'](_0x399fd7,!0x0))return null;_0x2fc07f=_0x2fc07f['isBefore'](_0x33a831['start'])?_0x2fc07f:_0x33a831['start'],_0x4bab4f=_0x4bab4f['isAfter'](_0x33a831['end'])?_0x4bab4f:_0x33a831['end'],_0x26135a?_0x33a831['start']['isBefore'](_0x26135a['getFirstRange']()['start'])?(_0x26135a['removeMarkers'](),_0x26135a=_0x1fb01c):_0x1fb01c['removeMarkers']():_0x26135a=_0x1fb01c;}const _0x4bf28f=this['_model']['createRange'](_0x2fc07f,_0x4bab4f);if(_0x26135a)this['_setSuggestionRange'](_0x26135a,_0x4bf28f);else{const _0x42792f=_0x32b8bc(),_0x48e2c3=_0x56585c['id'];this['_setSuggestionData']({'id':_0x42792f,'type':'formatInline:'+_0x19e391,'data':_0x49f34f,'createdAt':new Date(),'authorId':_0x48e2c3,'attributes':_0x591a07}),this['_addSuggestionMarker']('formatInline:'+_0x19e391,_0x42792f,_0x48e2c3,_0x4bf28f);}}return null;}['markBlockFormat'](_0x42d4df,_0x8423db,_0x18da58=[],_0x1a1044=null,_0x4768ac={}){_0x8423db['formatGroupId']||(_0x8423db['formatGroupId']=_0x8423db['commandName']),_0x8423db['multipleBlocks']=_0x42d4df['is']('range'),_0x1a1044=_0x1a1044||Kt(_0x8423db);const _0x444dc1=_0x18da58['map'](_0x1d50c4=>zt(_0x1d50c4,this['_model'])),_0x10efa2=_0x42d4df['is']('range')?_0x42d4df:zt(_0x42d4df,this['_model']);if(this['_trackingSessionId']&&(_0x4768ac['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2c95aa=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1a1044,'accept');return this['forceDefaultExecution'](()=>_0x2c95aa([_0x10efa2],_0x8423db,_0x4768ac)),null;}_0x444dc1['push'](_0x10efa2);let _0x217a73=!0x0;for(const _0xdf908e of _0x444dc1)if(!this['_rangeIsInLocalUserInsertion'](_0xdf908e)){_0x217a73=!0x1;break;}if(_0x217a73&&'always'!==this['_trackFormatChanges']){const _0x31be7f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1a1044,'accept');return this['forceDefaultExecution'](()=>_0x31be7f([_0x10efa2],_0x8423db,_0x4768ac)),null;}let _0x55f679=null,_0x197931=_0x10efa2['start'],_0x540a73=_0x10efa2['end'];for(const {suggestion:_0x39eace,meta:_0x332ef8}of this['_findSuggestions'](_0x10efa2,'formatBlock')){if(!_0x332ef8['isOwn'])continue;if(_0x332ef8['isNextTo']||_0x332ef8['containsRangeInObject']||_0x332ef8['isInsideObject'])continue;if(_0x39eace['data']['formatGroupId']!=_0x8423db['formatGroupId'])continue;if(!Xt(_0x39eace,_0x4768ac))continue;const _0x16ed4d=_0x39eace['getFirstRange']();if(_0x39eace['subType']==_0x1a1044){if(_0x16ed4d['containsRange'](_0x10efa2,!0x0))return null;_0x197931=_0x197931['isBefore'](_0x16ed4d['start'])?_0x197931:_0x16ed4d['start'],_0x540a73=_0x540a73['isAfter'](_0x16ed4d['end'])?_0x540a73:_0x16ed4d['end'],_0x55f679?_0x16ed4d['start']['isBefore'](_0x55f679['getFirstRange']()['start'])?(_0x55f679['removeMarkers'](),_0x55f679=_0x39eace):_0x39eace['removeMarkers']():_0x55f679=_0x39eace;}else{const _0x195c2c=_0x10efa2['getIntersection'](_0x16ed4d);this['_cutOutSuggestionMarker'](_0x39eace,_0x195c2c);}}const _0x3ff0d1=this['editor']['plugins']['get']('Users')['me'],_0x2f9171=_0x32b8bc(),_0x47d75e=_0x3ff0d1['id'];if(_0x55f679)return this['_setSuggestionRange'](_0x55f679,this['_model']['createRange'](_0x197931,_0x540a73)),_0x55f679;{const _0x20c5e8=this['_setSuggestionData']({'id':_0x2f9171,'type':'formatBlock:'+_0x1a1044,'data':_0x8423db,'createdAt':new Date(),'authorId':_0x47d75e,'attributes':_0x4768ac});return this['_addSuggestionMarker']('formatBlock:'+_0x1a1044,_0x2f9171,_0x47d75e,this['_model']['createRange'](_0x197931,_0x540a73)),_0x20c5e8;}}['markMultiRangeBlockFormat'](_0x212856,_0x2167f6,_0x326e79=[],_0x487587=null,_0x2de843={}){_0x2167f6['formatGroupId']||(_0x2167f6['formatGroupId']=_0x2167f6['commandName']);const _0x39a762=_0x212856[0x0];_0x2167f6['multipleBlocks']=_0x39a762['is']('range'),_0x487587=_0x487587||Kt(_0x2167f6);const _0x1656e8=_0x326e79['map'](_0xb6b67e=>zt(_0xb6b67e,this['_model'])),_0xb16483=_0x39a762['is']('range')?_0x212856:_0x212856['map'](_0x40f64a=>zt(_0x40f64a,this['_model']));if(this['_trackingSessionId']&&(_0x2de843['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x72d8bf=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x487587,'accept');return this['forceDefaultExecution'](()=>_0x72d8bf(_0xb16483,_0x2167f6,_0x2de843)),null;}_0x1656e8['push'](..._0xb16483);let _0x1dacd5=!0x0;for(const _0x233cc4 of _0x1656e8)if(!this['_rangeIsInLocalUserInsertion'](_0x233cc4)){_0x1dacd5=!0x1;break;}if(_0x1dacd5&&'always'!==this['_trackFormatChanges']){const _0x3fec8e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x487587,'accept');return this['forceDefaultExecution'](()=>_0x3fec8e(_0xb16483,_0x2167f6,_0x2de843)),null;}const _0x41d765=this['editor']['plugins']['get']('Users')['me'];for(const _0x5015ec of this['getSuggestions']()){if(_0x5015ec['author']['id']!=_0x41d765['id'])continue;if('formatBlock'!=_0x5015ec['type']||_0x5015ec['data']['formatGroupId']!=_0x2167f6['formatGroupId'])continue;if(!Xt(_0x5015ec,_0x2de843))continue;const _0x2639e0=_0x5015ec['subType']==_0x487587;for(let _0x2a0375=0x0;_0x2a0375<_0xb16483['length'];_0x2a0375++){const _0x3fdc78=_0xb16483[_0x2a0375];for(const _0x2aa97b of _0x5015ec['getMarkers']()){const _0x51c3db=_0x2aa97b['getRange']();if(_0x3fdc78['isEqual'](_0x51c3db)){_0x2639e0?(_0xb16483['splice'](_0x2a0375,0x1),_0x2a0375--):_0x5015ec['removeMarker'](_0x2aa97b['name']);break;}}}}if(0x0==_0xb16483['length'])return null;const _0x2998a4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x487587,'join');for(const _0x23720f of this['getSuggestions']())if(_0x23720f['author']['id']==_0x41d765['id']&&'formatBlock'==_0x23720f['type']&&_0x23720f['data']['formatGroupId']==_0x2167f6['formatGroupId']&&_0x23720f['subType']==_0x487587&&Xt(_0x23720f,_0x2de843)&&(_0x2998a4(_0x23720f['getRanges'](),_0xb16483)||_0x2998a4(_0xb16483,_0x23720f['getRanges']()))){for(const _0x19017e of _0xb16483)_0x23720f['addRange'](_0x19017e);return _0x23720f;}const _0x4a7ac0=_0x32b8bc(),_0x245611=_0x41d765['id'],_0x3f9722='formatBlock:'+_0x487587,_0x1f5ece=this['_setSuggestionData']({'id':_0x4a7ac0,'type':_0x3f9722,'data':_0x2167f6,'createdAt':new Date(),'authorId':_0x245611,'attributes':_0x2de843});for(const _0xaacd0d of _0xb16483)this['_addSuggestionMarker'](_0x3f9722,_0x4a7ac0,_0x245611,_0xaacd0d,o['getMultiRangeId']());return _0x1f5ece;}['markDeletion'](_0xc18315,_0x14638b=null,_0x1fc0d2={}){if(_0xc18315['isCollapsed'])return null;const _0x4915b3=this['editor']['plugins']['get']('Users')['me'],_0xb536e5=new _0x2daf6a(_0xc18315['start'],_0xc18315['end']);this['_trackingSessionId']&&(_0x1fc0d2['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xff484e,meta:_0xd8f443}of this['_findSuggestions'](_0xb536e5,'insertion'))if(_0xd8f443['isOwn']&&!_0xd8f443['isNextTo']){if(_0xff484e['isMultiRange']){const _0x810b4=_0xff484e['getRanges']()['filter'](_0x463583=>'$graveyard'!=_0x463583['root']['rootName']);_0x810b4['every'](_0x56b574=>_0xb536e5['containsRange'](_0x56b574,!0x0))&&_0xff484e['discard']();if(_0x810b4['some'](_0xa5e506=>_0xa5e506['containsRange'](_0xb536e5,!0x0))){const _0x1d601d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x14638b,'accept');return this['forceDefaultExecution'](()=>_0x1d601d([_0xb536e5],null,_0x1fc0d2)),null;}}else{const _0x1773bc=_0xb536e5['getIntersection'](_0xff484e['getFirstRange']());null!==_0x1773bc&&_0xff484e['_onDiscard']([_0x1773bc],null,_0x1fc0d2);}}if(_0xb536e5['detach'](),_0xb536e5['isCollapsed']||'$graveyard'==_0xb536e5['root']['rootName'])return null;let _0x145147=null,_0x54b4af=_0xb536e5['start'],_0x5abed9=_0xb536e5['end'];const _0x6434b6=this['_findSuggestions'](_0xb536e5,'deletion');for(const {suggestion:_0x3b217f,meta:_0x5aa4b7}of _0x6434b6){const _0x22b141=this['_model']['createRange'](_0x54b4af,_0x5abed9);if(_0x5aa4b7['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5aa4b7['containsRangeInObject']&&!_0x5aa4b7['isInsideObject'])){if(_0x3b217f['isMultiRange']){if(!Xt(_0x3b217f,_0x1fc0d2))continue;let _0x114a66=!0x0;for(const _0x3ba3df of _0x3b217f['getRanges']()){if(_0x3ba3df['containsRange'](_0x22b141,!0x0))return _0x3b217f;_0x22b141['containsRange'](_0x3ba3df)||(_0x114a66=!0x1);}_0x114a66&&_0x3b217f['discard']();}else{const _0x5c7679=_0x3b217f['getFirstRange']();if(_0x5c7679['containsRange'](_0x22b141,!0x0))return _0x3b217f;if(!Xt(_0x3b217f,_0x1fc0d2)){_0x22b141['containsRange'](_0x5c7679)?_0x3b217f['removeMarkers']():_0x5c7679['containsPosition'](_0x54b4af)?_0x54b4af=_0x5c7679['end']:_0x5c7679['containsPosition'](_0x5abed9)&&(_0x5abed9=_0x5c7679['start']);continue;}_0x54b4af=_0x54b4af['isBefore'](_0x5c7679['start'])?_0x54b4af:_0x5c7679['start'],_0x5abed9=_0x5abed9['isAfter'](_0x5c7679['end'])?_0x5abed9:_0x5c7679['end'],_0x1fc0d2=Object['assign']({},_0x3b217f['attributes']),_0x145147?_0x5c7679['start']['isBefore'](_0x145147['getFirstRange']()['start'])?(_0x145147['removeMarkers'](),_0x145147=_0x3b217f):_0x3b217f['removeMarkers']():_0x145147=_0x3b217f;}}}if(_0x145147)return this['_setSuggestionRange'](_0x145147,this['_model']['createRange'](_0x54b4af,_0x5abed9)),_0x145147;{const _0x4a1a85=_0x32b8bc(),_0xb11fad=this['_model']['createRange'](_0x54b4af,_0x5abed9),_0x1a12f1=_0x4915b3['id'],_0x1894a5=_0x14638b?'deletion:'+_0x14638b:'deletion',_0x571edb=this['_setSuggestionData']({'id':_0x4a1a85,'type':_0x1894a5,'createdAt':new Date(),'authorId':_0x1a12f1,'attributes':_0x1fc0d2});return this['_addSuggestionMarker'](_0x1894a5,_0x4a1a85,_0x1a12f1,_0xb11fad),_0x571edb;}}['markMultiRangeDeletion'](_0x20a902,_0x26065c='multi',_0x4b22c7={}){const _0x190f41=this['editor']['plugins']['get']('Users')['me'],_0x357d83=_0x20a902['map'](_0x72c5=>new _0x2daf6a(_0x72c5['start'],_0x72c5['end'])),_0x39b1a5=new Set();this['_trackingSessionId']&&(_0x4b22c7['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3e0b7b,meta:_0x46f845}of this['_findSuggestions'](_0x357d83,'insertion'))_0x46f845['isOwn']&&!_0x46f845['isNextTo']&&_0x39b1a5['add'](_0x3e0b7b);for(const _0x2a9565 of _0x39b1a5)if(_0x2a9565['isMultiRange']){const _0x2f0e40=_0x2a9565['getRanges']();(!_0x2a9565['attributes']||!_0x2a9565['attributes']['skipNestingCheck'])&&(_0x2f0e40['every'](_0x76ffc6=>_0x357d83['some'](_0x4f05c4=>_0x4f05c4['containsRange'](_0x76ffc6,!0x0)))&&_0x2a9565['discard']());if(_0x357d83['every'](_0x5a69c7=>_0x2f0e40['some'](_0x5b7e29=>_0x5b7e29['containsRange'](_0x5a69c7,!0x0)))){const _0x11ed10=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x26065c,'accept');return this['forceDefaultExecution'](()=>_0x11ed10(_0x20a902,null,_0x4b22c7)),null;}}else{const _0x468376=_0x2a9565['getFirstRange']();_0x357d83['some'](_0x53fcba=>_0x53fcba['containsRange'](_0x468376,!0x0))&&_0x2a9565['discard']();if(_0x357d83['every'](_0x1afebc=>_0x468376['containsRange'](_0x1afebc,!0x0))){const _0x1c8068=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x26065c,'accept');return this['forceDefaultExecution'](()=>_0x1c8068(_0x357d83,null,_0x4b22c7)),null;}}const _0x1f35c3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x26065c,'join');let _0x4d9dd4=null;for(const _0x22c69d of this['getSuggestions']())if(_0x22c69d['author']['id']==_0x190f41['id']&&_0x22c69d['isInContent']&&'deletion'==_0x22c69d['type']&&_0x22c69d['subType']==_0x26065c&&Xt(_0x22c69d,_0x4b22c7)&&(_0x1f35c3(_0x22c69d['getRanges'](),_0x357d83)||_0x1f35c3(_0x357d83,_0x22c69d['getRanges']()))){if(_0x4d9dd4){if(_0x22c69d['commentThread']&&_0x22c69d['commentThread']['length'])continue;for(const _0x334367 of _0x22c69d['getRanges']())_0x4d9dd4['isIntersectingWithRange'](_0x334367)||_0x4d9dd4['addRange'](_0x334367);_0x22c69d['removeMarkers']();}else{_0x4d9dd4=_0x22c69d;for(const _0x282330 of _0x357d83)_0x22c69d['isIntersectingWithRange'](_0x282330)||_0x22c69d['addRange'](_0x282330);}}if(_0x4d9dd4)return _0x4d9dd4;_0x39b1a5['clear']();for(const {suggestion:_0x2480ed,meta:_0x131ac6}of this['_findSuggestions'](_0x357d83,'deletion'))_0x131ac6['isOwn']&&(this['_mergeNestedSuggestions']||!_0x131ac6['containsRangeInObject']&&!_0x131ac6['isInsideObject'])&&Xt(_0x2480ed,_0x4b22c7)&&_0x39b1a5['add'](_0x2480ed);for(const _0x4b67c2 of _0x39b1a5){const _0x4536ca=_0x4b67c2['getRanges']();if(!_0x4b22c7||!_0x4b22c7['skipNestingCheck']){if(_0x357d83['every'](_0x596025=>_0x4536ca['some'](_0x567885=>_0x567885['containsRange'](_0x596025,!0x0))))return _0x4b67c2;}(!_0x4b67c2['attributes']||!_0x4b67c2['attributes']['skipNestingCheck'])&&(_0x4536ca['every'](_0xd63ad1=>_0x357d83['some'](_0x44e5b7=>_0x44e5b7['containsRange'](_0xd63ad1,!0x0)))&&_0x4b67c2['discard']());}const _0x1d1d1d=_0x32b8bc(),_0x32354e=_0x190f41['id'],_0x2700e1='deletion:'+_0x26065c,_0x475eae=this['_setSuggestionData']({'id':_0x1d1d1d,'type':_0x2700e1,'createdAt':new Date(),'authorId':_0x32354e,'attributes':_0x4b22c7});for(const _0x415289 of _0x357d83)_0x415289['detach'](),_0x415289['isCollapsed']||'$graveyard'==_0x415289['root']['rootName']||this['_addSuggestionMarker'](_0x2700e1,_0x1d1d1d,_0x32354e,_0x415289,o['getMultiRangeId']());return _0x475eae;}['markAttributeChange'](_0x1bdc2a,_0x596dc9,_0x10dcc6,_0xdcffd9,_0x2d1ac8){if(_0x1bdc2a['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0xe94ffb=this['editor']['plugins']['get']('Users')['me']['id'],_0x389132=Array['from'](this['_suggestions']['values']())['filter'](_0x44d27b=>'attribute'==_0x44d27b['type']&&_0x44d27b['data']['key']==_0x596dc9&&_0x44d27b['isIntersectingWithRange'](_0x1bdc2a));if(this['_trackingSessionId']&&(_0x2d1ac8['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x573d1c=this['_findSuggestions'](_0x1bdc2a,'insertion')['filter'](({meta:_0x5da79b})=>_0x5da79b['isOwn']&&!_0x5da79b['isInsideObject']&&!_0x5da79b['isNextTo'])['map'](({suggestion:_0x477469})=>_0x477469);_0x389132['unshift'](..._0x573d1c);}const _0x402fac=new Map([[_0x1bdc2a,_0x10dcc6]]);for(const _0x334ff3 of _0x389132){const _0x4a8de5='attribute'==_0x334ff3['type']?_0x334ff3['data']['oldValue']:void 0x0,_0x9e9329=_0x334ff3['getFirstRange'](),_0x52afab=Array['from'](_0x402fac['keys']())['find'](_0x372805=>_0x372805['isIntersecting'](_0x9e9329));if(!_0x52afab)continue;const _0xc74f18=_0x52afab['getDifference'](_0x9e9329);this['_isBlockAttribute'](_0x596dc9)&&'insertion'==_0x334ff3['type']&&0x0!=_0xc74f18['length']||(_0x402fac['delete'](_0x52afab),_0xc74f18['forEach'](_0x4899c7=>{_0x402fac['set'](_0x4899c7,_0x10dcc6);}),'insertion'!=_0x334ff3['type']&&_0x4a8de5!=_0xdcffd9&&_0x402fac['set'](_0x52afab['getIntersection'](_0x9e9329),_0x4a8de5));}const _0x2272a7=[];for(const [_0x582c5d,_0x3737fc]of _0x402fac){const _0x2c3ce0=_0x32b8bc(),_0x336e92={'key':_0x596dc9,'oldValue':_0x3737fc,'newValue':_0xdcffd9};_0x596dc9['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':_0x596dc9});const _0x32df4c=('attribute:'+(_0x596dc9+'|'+Kt({'newValue':_0xdcffd9})))['substring'](0x0,0x3c),_0x390d0e=this['_setSuggestionData']({'id':_0x2c3ce0,'type':_0x32df4c,'data':_0x336e92,'createdAt':new Date(),'authorId':_0xe94ffb,'attributes':_0x2d1ac8});_0x2272a7['push'](_0x390d0e),this['_addSuggestionMarker'](_0x32df4c,_0x2c3ce0,_0xe94ffb,_0x582c5d);}return _0x2272a7;}['enableDefaultAttributesIntegration'](_0x1edb88){this['enableCommand'](_0x1edb88,(_0x55bbb6,..._0x299b63)=>{this['_recordAttributeChanges'](()=>{_0x55bbb6(..._0x299b63);});});}['registerBlockAttribute'](_0x37fc1f){this['_blockAttributeKeys']['add'](_0x37fc1f);}['registerInlineAttribute'](_0x3cc9b2){this['_inlineAttributeKeys']['add'](_0x3cc9b2);}['startTrackingSession'](_0x622ba0){return this['_trackingSessionId']=void 0x0!==_0x622ba0?_0x622ba0:_0x32b8bc(),this['_trackingSessionId'];}['_getAttributeKey'](_0x22915d){return'attribute'==_0x22915d['type']?_0x22915d['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x3bc321,_0x8a610c){const _0x3cb3a3=_0x3bc321['getFirstMarker']();this['_model']['change'](_0x1dc405=>{_0x1dc405['updateMarker'](_0x3cb3a3,{'range':_0x8a610c});});}['_addThreadToSuggestion'](_0x15c415){const _0x19bd53=_0x15c415['id'],_0x7c9853=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x19bd53)||this['_commentsRepository']['addCommentThread']({'channelId':_0x7c9853,'threadId':_0x19bd53,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1c153c=this['_commentsRepository']['getCommentThread'](_0x19bd53);_0x1c153c['unbind']('isRemovable'),_0x1c153c['isRemovable']=!0x1,_0x15c415['commentThread']=_0x1c153c;}['_checkSuggestionCorrectness'](_0xb0b876,_0x233db9,_0x51d772,_0x451e5f){if(_0xb0b876['type']!=_0x233db9||_0xb0b876['subType']!=_0x51d772||_0xb0b876['creator']['id']!=_0x451e5f)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2c0c45('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x2beaca,_0x5b7877){const _0x2d01f0=_0x2beaca['getFirstRange']();if(_0x5b7877['isEqual'](_0x2d01f0))_0x2beaca['removeMarkers']();else{if(_0x2d01f0['containsRange'](_0x5b7877)){const _0x38b1a0=this['_model']['createPositionAt'](_0x5b7877['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2beaca,this['_model']['createRange'](_0x2d01f0['start'],_0x38b1a0));const _0x17a240=_0x32b8bc(),_0x4f7269=_0x2beaca['creator']['id'],_0x125703=_0x2beaca['type']+':'+_0x2beaca['subType'];this['_setSuggestionData']({'id':_0x17a240,'type':_0x125703,'createdAt':new Date(),'authorId':_0x4f7269,'data':_0x2beaca['data'],'attributes':_0x2beaca['attributes']});const _0xe799b2=this['_model']['createPositionAt'](_0x5b7877['end']['parent'],'after'),_0x5eb417=this['_model']['createRange'](_0xe799b2,_0x2d01f0['end']);this['_addSuggestionMarker'](_0x125703,_0x17a240,_0x4f7269,_0x5eb417);}else{if(_0x2d01f0['containsPosition'](_0x5b7877['start'])){const _0xbb9d0c=this['_model']['createPositionAt'](_0x5b7877['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2beaca,this['_model']['createRange'](_0x2d01f0['start'],_0xbb9d0c));}else{const _0x135fef=this['_model']['createPositionAt'](_0x5b7877['end']['parent'],'after');this['_setSuggestionRange'](_0x2beaca,this['_model']['createRange'](_0x135fef,_0x2d01f0['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x4fa919){for(const {suggestion:_0x959890,meta:_0x1b110b}of this['_findSuggestions'](_0x4fa919,'insertion')){if(!_0x1b110b['isOwn'])continue;const _0x47ce34=_0x959890['getRanges']();for(const _0x37f17b of _0x47ce34)if(!_0x4fa919['getDifference'](_0x37f17b)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0xba43a4){const _0x305776=this['editor']['plugins']['get']('Users')['getUser'](_0xba43a4);if(!_0x305776)throw new _0x2c0c45('track-changes-user-not-found',this);return _0x305776;}['_getExternalAuthor'](_0x241a91){const _0x1ea1ad=this['editor']['plugins']['get']('Users'),_0x1e02fb=_0x1098f6('external:'+_0x241a91),_0x216554=_0x1ea1ad['getUser'](_0x1e02fb);return _0x216554||_0x1ea1ad['addUser']({'id':_0x1e02fb,'name':_0x241a91});}['_createSuggestion'](_0x1409c3,_0x48b71a,_0x49000e,_0x1a66d1,_0x181872){const _0x4fb5e3=this['_getAuthorFromId'](_0x1a66d1),_0x2ab142=this['_suggestionFactory']['buildSuggestion'](_0x1409c3,_0x48b71a,_0x49000e,_0x4fb5e3,_0x181872,_0x1d7d5d=>{this['_updateSuggestionData'](_0x49000e,{'attributes':_0x1d7d5d});const _0x23f55f=this['getSuggestion'](_0x49000e);this['_joinWithAdjacentSuggestions'](new Set([_0x23f55f])),this['_refreshSuggestionsChain'](new Set([_0x23f55f]));});return this['listenTo'](_0x2ab142,'accept',()=>{this['_updateSuggestionData'](_0x49000e,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2ab142,'discard',()=>{this['_updateSuggestionData'](_0x49000e,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x49000e,_0x2ab142),this['_suggestionState']['set'](_0x2ab142,'notReady'),_0x2ab142;}['_splitMarkerName'](_0x574824){const _0x227c82=_0x574824['split'](':');return{'group':_0x227c82[0x0],'type':_0x227c82[0x1],'subType':_0x227c82['length']>=0x5?_0x227c82[0x2]:null,'id':_0x227c82['length']<0x5?_0x227c82[0x2]:_0x227c82[0x3],'authorId':_0x227c82['length']<0x5?_0x227c82[0x3]:_0x227c82[0x4],'markerCount':0x6==_0x227c82['length']?_0x227c82[0x5]:null};}['_breakSuggestionMarker'](_0x55807e,_0x22d498,_0x2a46bb){const _0x4a61c1=_0x55807e['getFirstRange'](),_0x4d2e81=_0x4a61c1['start'],_0x7989c6=_0x4a61c1['end'];this['_setSuggestionRange'](_0x55807e,this['_model']['createRange'](_0x4d2e81,_0x22d498));const _0x3df43f=_0x32b8bc(),_0x4d2e05=_0x55807e['creator']['id'],_0xb22c77=_0x55807e['type']+(_0x55807e['subType']?':'+_0x55807e['subType']:'');this['_setSuggestionData']({'id':_0x3df43f,'type':_0xb22c77,'createdAt':new Date(),'authorId':_0x4d2e05,'originalSuggestionId':_0x55807e['id'],'attributes':_0x55807e['attributes'],'data':_0x55807e['data']});const _0x4a97ad=this['_getAttributeKey'](_0x55807e);('formatBlock'==_0x55807e['type']||_0x4a97ad&&this['_isBlockAttribute'](_0x4a97ad))&&(_0x2a46bb=this['_model']['createPositionBefore'](_0x2a46bb['parent'])),this['_addSuggestionMarker'](_0xb22c77,_0x3df43f,_0x4d2e05,this['_model']['createRange'](_0x2a46bb,_0x7989c6));}['_findSuggestions'](_0x1e9f5f,_0x42faca=null){const _0x3a35a1=[],_0x32d4a2=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x1e9f5f)||(_0x1e9f5f=[_0x1e9f5f]);for(const _0x596e29 of this['getSuggestions']()){if(!_0x596e29['isInContent'])continue;if(_0x42faca&&_0x596e29['type']!=_0x42faca)continue;let _0x30d641=!0x1;for(const _0x24ee56 of _0x596e29['getRanges']()){for(const _0x4ace57 of _0x1e9f5f){const _0x2b0279=_0x4ace57['start']['isEqual'](_0x24ee56['end'])||_0x4ace57['end']['isEqual'](_0x24ee56['start']);if(_0x2b0279||_0x4ace57['getIntersection'](_0x24ee56)){const _0x339336=_0x4ace57['containsRange'](_0x24ee56)&&Gt(this['_model']['schema'],_0x24ee56['start'],_0x4ace57),_0x2e9450=_0x24ee56['containsRange'](_0x4ace57)&&Gt(this['_model']['schema'],_0x4ace57['start'],_0x24ee56);_0x3a35a1['push']({'suggestion':_0x596e29,'meta':{'isOwn':_0x32d4a2==_0x596e29['author'],'isNextTo':_0x2b0279,'isInsideObject':_0x339336,'containsRangeInObject':_0x2e9450}}),_0x30d641=!0x0;break;}}if(_0x30d641)break;}}return _0x3a35a1;}['_addSuggestionMarker'](_0x5c89ea,_0x2400b7,_0x53c995,_0x3784eb,_0x285a42){this['_model']['change'](_0x413503=>{let _0x1bdbdc='suggestion:'+_0x5c89ea+':'+_0x2400b7+':'+_0x53c995;_0x285a42&&(_0x1bdbdc=_0x1bdbdc+':'+_0x285a42),_0x413503['addMarker'](_0x1bdbdc,{'range':_0x3784eb,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x35397d){const _0x473928=_0x35397d['previous'],_0x140c99=_0x35397d['next'];_0x35397d['previous']=null,_0x35397d['next']=null,null!=_0x473928&&_0x473928['next']==_0x35397d&&(_0x473928['next']=_0x140c99),null!=_0x140c99&&_0x140c99['previous']==_0x35397d&&(_0x140c99['previous']=_0x473928),'ready'==this['_suggestionState']['get'](_0x35397d)&&(this['_suggestionState']['set'](_0x35397d,'removed'),this['fire']('suggestionUnloaded',_0x35397d,_0x473928,_0x140c99));}['_setSuggestionData'](_0x22a100){const _0x3b7cc9=_0x22a100['id'],_0x5ad4f3=this['addSuggestionData'](_0x22a100);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x471ce0=this['editor']['plugins']['get']('PendingActions'),_0x1535b5=_0x5ad4f3['hasComments'],_0x1eda72=_0x5ad4f3['subType']?_0x5ad4f3['type']+':'+_0x5ad4f3['subType']:_0x5ad4f3['type'],_0x1da9b4=this['editor']['locale'],_0x793d24=_0x471ce0['add'](c(_0x1da9b4,'PENDING_ACTION_SUGGESTION')),_0x5025fd={'id':_0x3b7cc9,'type':_0x1eda72,'hasComments':_0x1535b5,'data':_0x22a100['data']||null,'originalSuggestionId':_0x22a100['originalSuggestionId']||null,'attributes':_0x5ad4f3['attributes']};this['_adapter']['addSuggestion'](_0x5025fd)['then'](_0x48033e=>{_0x5ad4f3['_saved']=!0x0,_0x471ce0['remove'](_0x793d24),_0x48033e&&_0x48033e['createdAt']&&(this['_suggestions']['get'](_0x3b7cc9)['createdAt']=_0x48033e['createdAt']);})['catch'](_0x1db02c=>{throw _0x5027ec('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x5ad4f3['discard']();}),_0x5ad4f3['stopListening'](),this['_suggestions']['delete'](_0x5ad4f3['id']),this['_suggestionState']['delete'](_0x5ad4f3),_0x1db02c;});}return _0x5ad4f3;}['_isBlockAttribute'](_0x40debe){return this['_blockAttributeKeys']['has'](_0x40debe);}['_updateSuggestionData'](_0x20da92,_0x3d6b11){const _0x278fe6=this['editor']['plugins']['get']('PendingActions'),_0x3aa424=this['getSuggestion'](_0x20da92);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x3aa424['_saved']){const _0x4082b5=_0x278fe6['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x20da92,_0x3d6b11)['then'](()=>{_0x278fe6['remove'](_0x4082b5);});}else _0x3aa424['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x20da92,_0x3d6b11);});}}['_getSuggestionData'](_0x10d884){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2c0c45('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x10d884);}['_handleNewSuggestionMarker'](_0x2858b3){const {id:_0x3e6364,type:_0x49a829,subType:_0x5bc0c1,authorId:_0xc2e22b}=this['_splitMarkerName'](_0x2858b3),_0xf12da=this['_suggestions']['get'](_0x3e6364)||this['_createSuggestion'](_0x49a829,_0x5bc0c1,_0x3e6364,_0xc2e22b,{});switch(this['_checkSuggestionCorrectness'](_0xf12da,_0x49a829,_0x5bc0c1,_0xc2e22b),this['_suggestionState']['get'](_0xf12da)){case'notReady':this['_getSuggestionData'](_0x3e6364)['then'](_0x376d34=>{let _0x55c373=Promise['resolve']();_0x376d34['hasComments']&&(_0x55c373=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3e6364})),_0x55c373['then'](()=>{this['addSuggestionData'](_0x376d34)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0xf12da,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3e6364,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0xf12da,'ready'),this['fire']('suggestionLoaded',_0xf12da);break;case'ready':this['fire']('suggestionChanged',_0xf12da);}return _0xf12da['addMarkerName'](_0x2858b3),_0xf12da;}['_refreshSuggestionsChain'](_0x3a6d1f){const _0x414ebd=Array['from'](_0x3a6d1f),_0x414ab9=_0x414ebd['filter'](_0x1e8ed7=>'attribute'==_0x1e8ed7['type']);this['_refreshAttributeSuggestionsChain'](_0x414ab9);const _0x1d0d54=_0x414ebd['filter'](_0x406130=>!_0x406130['isMultiRange']&&'attribute'!=_0x406130['type']),_0xe6b7c8=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x7143de=>!_0x7143de['isMultiRange']&&'attribute'!=_0x7143de['type']),_0x46a7de=_0xe6b7c8['filter'](_0x3dcea3=>!_0x3a6d1f['has'](_0x3dcea3)),_0x2a2242=new Map(_0xe6b7c8['map'](_0xcb967a=>[_0xcb967a,this['_suggestionFactory']['getSuggestionCallback'](_0xcb967a['type'],_0xcb967a['subType'],'chain')])),_0x46a3f5=new Map(_0xe6b7c8['map'](_0x237dc5=>[_0x237dc5,_0x237dc5['getFirstRange']()])),_0x41cf06=new Set(),_0x31521e=new Set();for(let _0xf42ccd=0x0;_0xf42ccd<_0x1d0d54['length'];_0xf42ccd++)_0xaf1b58(_0x1d0d54[_0xf42ccd],_0x1d0d54,_0xf42ccd+0x1);for(let _0x573cc0=0x0;_0x573cc0<_0x1d0d54['length'];_0x573cc0++)_0xaf1b58(_0x1d0d54[_0x573cc0],_0x46a7de,0x0);const _0x6aa78c=new Set();for(let _0x54b5de=0x0;_0x54b5de<_0x1d0d54['length'];_0x54b5de++){const _0xb5ff16=_0x1d0d54[_0x54b5de];!_0x31521e['has'](_0xb5ff16)&&_0xb5ff16['previous']&&(_0x6aa78c['add'](_0xb5ff16['previous']),_0xb5ff16['previous']['next']===_0xb5ff16&&(_0xb5ff16['previous']['next']=null),_0xb5ff16['previous']=null),!_0x41cf06['has'](_0xb5ff16)&&_0xb5ff16['next']&&(_0x6aa78c['add'](_0xb5ff16['next']),_0xb5ff16['next']['previous']===_0xb5ff16&&(_0xb5ff16['next']['previous']=null),_0xb5ff16['next']=null);}function _0xaf1b58(_0x10a773,_0x13103c,_0x49ad54){for(let _0xf5779c=_0x49ad54;_0xf5779c<_0x13103c['length'];_0xf5779c++){const _0xf53d5d=_0x459aa9(_0x10a773,_0x13103c[_0xf5779c]);_0xf53d5d&&(_0xf53d5d[0x0]['next']=_0xf53d5d[0x1],_0xf53d5d[0x1]['previous']=_0xf53d5d[0x0],_0x41cf06['add'](_0xf53d5d[0x0]),_0x31521e['add'](_0xf53d5d[0x1]));}}function _0x459aa9(_0x499f33,_0x5018a6){if(_0x499f33['author']['id']!==_0x5018a6['author']['id'])return null;const _0xfddad4=_0x2a2242['get'](_0x499f33)(_0x499f33,_0x5018a6,_0x46a3f5['get'](_0x499f33),_0x46a3f5['get'](_0x5018a6));if(!_0xfddad4)return null;return _0x2a2242['get'](_0x5018a6)(_0x499f33,_0x5018a6,_0x46a3f5['get'](_0x499f33),_0x46a3f5['get'](_0x5018a6))?_0xfddad4[0x1]['commentThread']&&_0xfddad4[0x1]['commentThread']['length']?null:_0xfddad4:null;}_0x6aa78c['size']&&this['_refreshSuggestionsChain'](_0x6aa78c);}['_refreshAttributeSuggestionsChain'](_0x185174){if(0x0==_0x185174['length'])return;const _0x4d6a95=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2f62fe=>'attribute'==_0x2f62fe['type']&&_0x2f62fe['_isDataLoaded']),_0x516b51=[],_0x47a7fb=new Map();for(const _0x5500e6 of _0x4d6a95){const _0x2a5fde=_0x1098f6(_0x5500e6['attributes']);_0x47a7fb['has'](_0x2a5fde)||(_0x47a7fb['set'](_0x2a5fde,_0x516b51['length']),_0x516b51['push']([]));const _0x6d49a2=_0x47a7fb['get'](_0x2a5fde);_0x516b51[_0x6d49a2]['push'](_0x5500e6);}!(function(){_0x516b51['sort']((_0x1b89e8,_0x5851bb)=>{const _0x58a6c5=_0x1b89e8[0x0]['createdAt'],_0x2ba1b9=_0x5851bb[0x0]['createdAt'];return _0x58a6c5==_0x2ba1b9?_0x1b89e8[0x0]['attributes']['groupId']<_0x5851bb[0x0]['attributes']['groupId']?-0x1:0x1:_0x58a6c5<_0x2ba1b9?-0x1:0x1;});for(const _0x15eeb8 of _0x516b51)_0x15eeb8['sort']((_0x148247,_0x4adc00)=>_0x148247['id']<_0x4adc00['id']?-0x1:0x1);}());for(let _0x360818=0x0;_0x360818<_0x516b51['length'];_0x360818++){if(0x0==_0x516b51[_0x360818]['length'])continue;const _0x49bd4c=[];for(let _0x42632c=_0x360818+0x1;_0x42632c<_0x516b51['length'];_0x42632c++)0x0!=_0x516b51[_0x42632c]['length']&&_0x1523cd(_0x516b51[_0x360818],_0x516b51[_0x42632c])&&_0x49bd4c['push'](_0x42632c);for(const _0x37ea63 of _0x49bd4c)_0x516b51[_0x360818]=_0x516b51[_0x360818]['concat'](_0x516b51[_0x37ea63]),_0x516b51[_0x37ea63]=[];}for(const _0x5f22a4 of _0x516b51)for(let _0x445a34=0x0;_0x445a34<_0x5f22a4['length'];_0x445a34++){const _0x370109=_0x5f22a4[_0x445a34+0x1]||null;_0x5f22a4[_0x445a34]['next']!==_0x370109&&(_0x5f22a4[_0x445a34]['next']=_0x370109);}for(const _0x2b6079 of _0x516b51)for(let _0x520dd4=0x0;_0x520dd4<_0x2b6079['length'];_0x520dd4++){const _0x3e47a2=_0x2b6079[_0x520dd4-0x1]||null;_0x2b6079[_0x520dd4]['previous']!==_0x3e47a2&&(_0x2b6079[_0x520dd4]['previous']=_0x3e47a2);}function _0x1523cd(_0x1c9600,_0x1cc5b1){if(_0x1c9600[0x0]['attributes']['groupId']!==_0x1cc5b1[0x0]['attributes']['groupId']&&_0x1c9600[0x0]['author']!==_0x1cc5b1[0x0]['author'])return!0x1;if(!function(_0x5dee35,_0x184a36){if(!_0x5dee35['hasComments']&&!_0x184a36['hasComments'])return!0x0;if(_0x5dee35['hasComments']&&_0x184a36['hasComments'])return!0x1;if(_0x5dee35['hasComments']&&_0x184a36['createdAt']<_0x5dee35['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x184a36['hasComments']&&_0x5dee35['createdAt']<_0x184a36['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x1c9600[0x0],_0x1cc5b1[0x0]))return!0x1;const _0x9ed775=Ft(_0x1c9600[0x0]['attributes'],['groupId','trackingSessionId']),_0x3c1655=Ft(_0x1cc5b1[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x48064e(_0x9ed775,_0x3c1655))return!0x1;if(_0x1c9600[0x0]['attributes']['groupId']==_0x1cc5b1[0x0]['attributes']['groupId'])return!0x0;if(_0x1c9600[0x0]['attributes']['trackingSessionId']!==_0x1cc5b1[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x1c9600['every'](_0x24d6f2=>_0x1cc5b1['some'](_0x5f0a62=>_0x24d6f2['getFirstRange']()['isEqual'](_0x5f0a62['getFirstRange']())))&&_0x1cc5b1['every'](_0x1889ce=>_0x1c9600['some'](_0x4f4b41=>_0x1889ce['getFirstRange']()['isEqual'](_0x4f4b41['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x520676){const _0xa9d32b=Array['from'](_0x520676),_0x1ab0a7=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4251bc=_0x1ab0a7['filter'](_0xd868b0=>!_0x520676['has'](_0xd868b0)),_0x4375be=new Map(_0xa9d32b['map'](_0x19aa51=>[_0x19aa51,this['_suggestionFactory']['getSuggestionCallback'](_0x19aa51['type'],_0x19aa51['subType'],'join')])),_0x256efd=new Map(_0x1ab0a7['map'](_0x4f1c8d=>[_0x4f1c8d,_0x4f1c8d['getRanges']()]));for(let _0x537b2f=0x0;_0x537b2f<_0xa9d32b['length'];_0x537b2f++){if(_0x1ad7d3(this,_0xa9d32b[_0x537b2f],_0xa9d32b,_0x537b2f+0x1))return!0x0;}for(let _0x5b99bb=0x0;_0x5b99bb<_0xa9d32b['length'];_0x5b99bb++){if(_0x1ad7d3(this,_0xa9d32b[_0x5b99bb],_0x4251bc,0x0))return!0x0;}return!0x1;function _0x1ad7d3(_0xfded42,_0x54dc7f,_0x14dc1e,_0x228bd6){for(let _0x240111=_0x228bd6;_0x240111<_0x14dc1e['length'];_0x240111++){const _0x12186c=_0x14dc1e[_0x240111];if(_0x12186c['type']!==_0x54dc7f['type']||_0x12186c['author']['id']!==_0x54dc7f['author']['id']||_0x12186c['subType']!==_0x54dc7f['subType'])continue;if(!Qt(_0x54dc7f,_0x12186c))continue;if('attribute'==_0x54dc7f['type']&&_0x54dc7f['data']['oldValue']!=_0x12186c['data']['oldValue'])continue;if('attribute'==_0x54dc7f['type']&&_0xfded42['_isBlockAttribute'](_0x54dc7f['data']['key']))continue;if('formatBlock'==_0x54dc7f['type']){const _0x2d69c7=_0xfded42['editor']['model'],_0x425807=_0x54dc7f['getContainedElement']();if(_0x425807&&(_0x2d69c7['schema']['isObject'](_0x425807)||_0x2d69c7['schema']['isLimit'](_0x425807)))continue;}const _0x386a2e=_0x4375be['get'](_0x54dc7f),_0x11b5b7=_0x256efd['get'](_0x54dc7f),_0x45bdad=_0x256efd['get'](_0x12186c),_0x536ebc=_0x54dc7f['commentThread']&&_0x54dc7f['commentThread']['length'],_0x2e8126=_0x12186c['commentThread']&&_0x12186c['commentThread']['length'];if(!_0x536ebc&&_0x386a2e(_0x45bdad,_0x11b5b7))return _0xfded42['_joinSuggestions'](_0x12186c,_0x54dc7f),_0x256efd['delete'](_0x54dc7f),!0x0;if(!_0x2e8126&&_0x386a2e(_0x11b5b7,_0x45bdad))return _0xfded42['_joinSuggestions'](_0x54dc7f,_0x12186c),_0x256efd['delete'](_0x12186c),!0x0;}return!0x1;}}['_joinSuggestions'](_0x46b459,_0x487d60){if(_0x46b459['isMultiRange']){for(const _0x95c51d of _0x487d60['getRanges']())_0x46b459['addRange'](_0x95c51d);}else{const _0x14dc64=_0x487d60['getFirstRange']()['end'];this['_setSuggestionRange'](_0x46b459,this['_model']['createRange'](_0x46b459['getFirstRange']()['start'],_0x14dc64));}_0x487d60['removeMarkers']();}['_getMarkerAnnouncementText'](_0x5c66f0,_0x198a6e,_0x498fe8){const _0x5410b6=_0x5c66f0['startsWith']('format')||_0x5c66f0['startsWith']('attribute')?'FORMATTING':_0x5c66f0['toUpperCase']();return c(this['editor']['locale'],_0x198a6e+'_'+_0x5410b6+'_SUGGESTION_ANNOUNCEMENT',_0x498fe8);}['_initAriaMarkerChangeAnnouncements'](){const _0x3431c0=this['editor'];if(!_0x3431c0['ui'])return;const {ariaLiveAnnouncer:_0x1344b7}=_0x3431c0['ui'];_0x113694(this['_model'],({left:_0x60179d,entered:_0x451262})=>{for(const _0x298296 of _0x60179d){const {group:_0x20213e,type:_0x28909d}=this['_splitMarkerName'](_0x298296['name']);if('suggestion'===_0x20213e){_0x1344b7['announce'](this['_getMarkerAnnouncementText'](_0x28909d,'LEAVE'));break;}}for(const _0x5e8c62 of _0x451262){const {group:_0xe0004d,type:_0x51509a}=this['_splitMarkerName'](_0x5e8c62['name']);if('suggestion'===_0xe0004d){_0x1344b7['announce'](this['_getMarkerAnnouncementText'](_0x51509a,'ENTER',_0x57f152(_0x55e069)));break;}}});}['_processAttributeChanges'](_0x3c1cba){if(this['_recordAttributeSuggestions'])return!0x1;const _0x1fc76c=this['editor'],_0x383897=_0x1fc76c['model']['document']['differ']['getChanges']();if(0x0==_0x383897['length'])return!0x1;const _0x300dc4=[],_0x41c30d=_0x383897['filter'](_0x589159=>'attribute'==_0x589159['type']),_0x5dfad6=_0x383897['filter'](_0x7fef3d=>'insert'==_0x7fef3d['type']&&'$text'!=_0x7fef3d['name']),_0x2c36a0=_0x383897['filter'](_0x540b0f=>'remove'==_0x540b0f['type']&&'$text'!=_0x540b0f['name']);for(const _0x301230 of _0x41c30d)_0x300dc4['push']({'key':_0x301230['attributeKey'],'newValue':_0x301230['attributeNewValue'],'oldValue':_0x301230['attributeOldValue'],'range':qt(_0x301230['range'],_0x1fc76c['model'])});for(const _0x14f96c of _0x5dfad6){const _0x5b1ccd=_0x2c36a0['find'](_0x13e05c=>_0x13e05c['position']['isEqual'](_0x14f96c['position']));_0x5b1ccd&&_0x300dc4['push']({'key':u,'newValue':_0x14f96c['name'],'oldValue':_0x5b1ccd['name'],'range':_0x1fc76c['model']['createRangeOn'](_0x14f96c['position']['nodeAfter'])});}return 0x0!=_0x300dc4['length']&&this['_reduceExistingSuggestions'](_0x3c1cba,_0x300dc4);}['_processAttributeSuggestions'](_0x219c8){let _0xe2b3bc=!0x1;const _0x56165f=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1026e4=>_0x1026e4['data']['newRange']&&_0x1026e4['name']['startsWith']('suggestion:attribute:'));for(const _0x318dc0 of _0x56165f){const {subType:_0xb14656,id:_0x30a097}=this['_splitMarkerName'](_0x318dc0['name']),_0x290b10=_0xb14656['split']('|')[0x0];for(const _0x56f36b of this['getSuggestions']({'skipNotAttached':!0x0}))_0x56f36b['id']!=_0x30a097&&'attribute'==_0x56f36b['type']&&_0x56f36b['data']&&_0x56f36b['data']['key']==_0x290b10&&_0x56f36b['getFirstRange']()['isIntersecting'](_0x318dc0['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x56f36b,_0x318dc0['data']['newRange'],_0x219c8),_0xe2b3bc=!0x0);}return _0xe2b3bc;}['_recordAttributeChanges'](_0x512044){this['_recordAttributeSuggestions']=!0x0,_0x512044();}['_isRegisteredAttribute'](_0xb42dc4){const _0x41d870=this['_isBlockAttribute'](_0xb42dc4),_0x406cf8=this['_inlineAttributeKeys']['has'](_0xb42dc4);return _0x41d870||_0x406cf8;}['_reduceExistingSuggestions'](_0x4775a0,_0x29cabe){if(0x0==_0x29cabe['length'])return!0x1;let _0x53db84=!0x1;for(const _0x3a1ba3 of _0x29cabe){const _0x4c88e3=this['_findSuggestions'](_0x3a1ba3['range'],'attribute')['filter'](_0x825f34=>!_0x825f34['meta']['isNextTo'])['map'](_0x1d4803=>_0x1d4803['suggestion']),_0x574d8e=_0x1098f6({'newValue':_0x3a1ba3['newValue']});_0x4c88e3['filter'](_0xde966f=>{const [_0x274258,_0x1ac940]=_0xde966f['subType']['split']('|');return _0x274258==_0x3a1ba3['key']&&_0x1ac940!=_0x574d8e;})['forEach'](_0x3051ec=>{this['_reduceSuggestionAttributeRange'](_0x3051ec,_0x3a1ba3['range'],_0x4775a0),_0x53db84=!0x0;});}return _0x53db84;}['_reduceSuggestionAttributeRange'](_0x31e16c,_0x5441a6,_0x4e06ab){const _0x11e77f=_0x31e16c['getFirstRange']()['getDifference'](_0x5441a6);0x0!==_0x11e77f['length']?0x1!==_0x11e77f['length']?this['_breakSuggestionMarker'](_0x31e16c,_0x5441a6['start'],_0x5441a6['end']):this['_setSuggestionRange'](_0x31e16c,_0x11e77f[0x0]):_0x4e06ab['removeMarker'](_0x31e16c['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0xa17fc0){this['_editor']=_0xa17fc0,this['_model']=_0xa17fc0['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x228b66,_0x1a5163,_0x4fc6a8,_0x324403,_0x550720,_0xe11a10){return new o(this['_model'],{'type':_0x228b66,'subType':_0x1a5163,'id':_0x4fc6a8,'author':_0x324403,'creator':_0x324403,'attributes':_0x550720,'onAttributesChange':_0xe11a10,'onAccept':(..._0x36d197)=>this['getSuggestionCallback'](_0x228b66,_0x1a5163,'accept')(..._0x36d197),'onDiscard':(..._0x51ae06)=>this['getSuggestionCallback'](_0x228b66,_0x1a5163,'discard')(..._0x51ae06)});}['registerCustomCallback'](_0x4f9530,_0x57eb29,_0x2854be,_0x4951dd){const _0x5a5911=_0x4f9530+':'+_0x57eb29+':'+_0x2854be;this['_customCallbacks']['set'](_0x5a5911,_0x4951dd);}['getSuggestionCallback'](_0x14fa17,_0x173c7e,_0x292ad4){const _0x217ca2=_0x14fa17+':'+_0x173c7e+':'+_0x292ad4;return this['_customCallbacks']['get'](_0x217ca2)||this['_defaultCallbacks']['get'](_0x14fa17+':'+_0x292ad4);}['_registerDefaultCallbacks'](){const _0x53ba4a=()=>!0x1,_0xd65c9d=_0x499e0e=>{_0x499e0e['sort']((_0x5d2f0d,_0x378a34)=>_0x5d2f0d['start']['isBefore'](_0x378a34['start'])?0x1:-0x1),this['_model']['change'](_0x3c2055=>{for(const _0x2e27a0 of _0x499e0e){let _0x365a32;_0x365a32=_0x2e27a0['end']['isAtEnd']&&_0x2e27a0['end']['parent']==_0x2e27a0['start']['nodeAfter']?_0x3c2055['createSelection'](_0x2e27a0['start']['nodeAfter'],'on'):_0x3c2055['createSelection'](_0x2e27a0),this['_model']['deleteContent'](_0x365a32,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x48c8f0=(_0x264d02,_0x1ca2c2)=>{_0x1ca2c2&&this['_model']['change'](_0xf3d89e=>{const {commandName:_0x1a3bcb,commandParams:_0x1ced8c=[]}=_0x1ca2c2,_0xb20289=_0x264d02['map'](_0x156cf0=>(Lt(_0x156cf0)&&(_0x156cf0=this['_model']['createRange'](_0x156cf0['end'])),_0x156cf0))['filter'](_0x5ab039=>'$graveyard'!==_0x5ab039['root']['rootName']);if(_0xb20289['length']<0x1)return;const _0x2a1668=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x34fdef=>_0x2daf6a['fromRange'](_0x34fdef));_0xf3d89e['setSelection'](_0xb20289);for(const _0x46615d of this['_editor']['commands']['commands']())_0x46615d['refresh']();_0x1ced8c['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1a3bcb,..._0x1ced8c);const _0x191dd5=_0x2a1668['filter'](_0x8d2814=>'$graveyard'!=_0x8d2814['root']['rootName']);_0x191dd5['length']>0x0&&_0xf3d89e['setSelection'](_0x191dd5);for(const _0x83509b of _0x2a1668)_0x83509b['detach']();});},_0x1960cc=(_0x540455,_0x171c30)=>0x1==_0x540455['length']&&0x1==_0x171c30['length']&&_0x540455[0x0]['end']['isEqual'](_0x171c30[0x0]['start']),_0x373288=(_0x20a0a6,_0x135c9e,_0x19fc9,_0x5d9a57)=>Wt(_0x20a0a6,_0x135c9e,_0x19fc9,_0x5d9a57)?[_0x20a0a6,_0x135c9e]:Wt(_0x135c9e,_0x20a0a6,_0x5d9a57,_0x19fc9)?[_0x135c9e,_0x20a0a6]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x53ba4a),this['_defaultCallbacks']['set']('insertion:discard',_0xd65c9d),this['_defaultCallbacks']['set']('insertion:join',_0x1960cc),this['_defaultCallbacks']['set']('insertion:chain',_0x373288),this['_defaultCallbacks']['set']('deletion:accept',_0xd65c9d),this['_defaultCallbacks']['set']('deletion:discard',_0x53ba4a),this['_defaultCallbacks']['set']('deletion:join',_0x1960cc),this['_defaultCallbacks']['set']('deletion:chain',_0x373288),this['_defaultCallbacks']['set']('formatInline:accept',_0x48c8f0),this['_defaultCallbacks']['set']('formatInline:discard',_0x53ba4a),this['_defaultCallbacks']['set']('formatInline:join',_0x1960cc),this['_defaultCallbacks']['set']('formatInline:chain',_0x53ba4a),this['_defaultCallbacks']['set']('formatBlock:accept',_0x48c8f0),this['_defaultCallbacks']['set']('formatBlock:discard',_0x53ba4a),this['_defaultCallbacks']['set']('formatBlock:join',_0x1960cc),this['_defaultCallbacks']['set']('formatBlock:chain',_0x53ba4a),this['_defaultCallbacks']['set']('attribute:accept',_0x53ba4a),this['_defaultCallbacks']['set']('attribute:discard',(_0x573d09,_0x330b1b)=>{if(!_0x330b1b)return;const _0x4ba994=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x3f965d=>{if(_0x330b1b['key']==u)for(const _0x2b5eb4 of _0x573d09){const _0x4be42e=_0x2b5eb4['start']['nodeAfter'],_0x1b9001=_0x330b1b['oldValue'];_0x3f965d['rename'](_0x4be42e,_0x1b9001);}else{if(_0x4ba994['_isBlockAttribute'](_0x330b1b['key'])){for(const _0x142e79 of _0x573d09)void 0x0!==_0x330b1b['oldValue']?_0x3f965d['setAttribute'](_0x330b1b['key'],_0x330b1b['oldValue'],_0x142e79['start']['nodeAfter']):_0x3f965d['removeAttribute'](_0x330b1b['key'],_0x142e79['start']['nodeAfter']);}else{for(const _0x38897c of _0x573d09)_0x330b1b['oldValue']?_0x3f965d['setAttribute'](_0x330b1b['key'],_0x330b1b['oldValue'],_0x38897c):_0x3f965d['removeAttribute'](_0x330b1b['key'],_0x38897c);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1960cc);}}function Gt(_0x3a4f51,_0x3d36ed,_0x5dbd5d){for(const _0x256082 of _0x3d36ed['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x256082['root']==_0x256082)return!0x1;if(!_0x5dbd5d['containsItem'](_0x256082))return!0x1;if(_0x3a4f51['isObject'](_0x256082)||_0x3a4f51['isLimit'](_0x256082))return!0x0;}return!0x1;}function Lt(_0x314d17){return _0x314d17['end']['parent']==_0x314d17['start']['nodeAfter']&&_0x314d17['end']['isAtStart'];}function Jt(_0x172dfd,_0x178bba,_0x3ca0e3,_0x428377){const _0x2ae517=_0x538f46=>!_0x538f46['item']['is']('$textProxy')&&!_0x428377['isObject'](_0x538f46['item']),_0x167acb=_0x172dfd['start']['getLastMatchingPosition'](_0x2ae517),_0x1704ed=_0x172dfd['end']['getLastMatchingPosition'](_0x2ae517,{'direction':'backward'});return(!_0x172dfd['start']['isEqual'](_0x167acb)||!_0x172dfd['end']['isEqual'](_0x1704ed))&&(_0x167acb['isBefore'](_0x1704ed)?_0x3ca0e3['updateMarker'](_0x178bba,{'range':_0x3ca0e3['createRange'](_0x167acb,_0x1704ed)}):_0x3ca0e3['removeMarker'](_0x178bba),!0x0);}function Kt(_0x1c1326){return _0x1098f6(_0x1c1326);}function Ht(_0x5bf391){const _0x40e72a=_0x5bf391['start']['nodeAfter'];return _0x40e72a&&_0x40e72a['is']('element');}function qt(_0x266950,_0x4b1909){return null==_0x266950['end']['nodeBefore']&&_0x266950['end']['parent']==_0x266950['start']['nodeAfter']?zt(_0x266950['start']['nodeAfter'],_0x4b1909):_0x266950;}function zt(_0x2f7820,_0x188b88){const _0x2b7b5d=_0x188b88['schema']['isObject'](_0x2f7820)||_0x188b88['schema']['isSelectable'](_0x2f7820);return _0x188b88['createRange'](_0x188b88['createPositionAt'](_0x2f7820,'before'),_0x2b7b5d?_0x188b88['createPositionAfter'](_0x2f7820):_0x188b88['createPositionAt'](_0x2f7820,'end'));}function Wt(_0x3eeff5,_0x1ab592,_0x404c42,_0x7d9511){return!!Qt(_0x3eeff5,_0x1ab592)&&_0x404c42['end']['isEqual'](_0x7d9511['start']);}function Qt(_0x194293,_0x4a2015){if(!_0x194293['_isDataLoaded']||!_0x4a2015['_isDataLoaded'])return!0x1;const _0x43ec49=new Set(Object['keys'](_0x194293['attributes'])),_0x18215c=new Set(Object['keys'](_0x4a2015['attributes']));if(_0x43ec49['delete']('groupId'),_0x18215c['delete']('groupId'),0x0==_0x43ec49['size']&&0x0==_0x18215c['size'])return!0x0;if(_0x43ec49['size']!=_0x18215c['size'])return!0x1;const _0x4479c4={..._0x194293['attributes']},_0x514ba8={..._0x4a2015['attributes']};return delete _0x4479c4['groupId'],delete _0x514ba8['groupId'],JSON['stringify'](_0x4479c4)==JSON['stringify'](_0x514ba8);}function Xt(_0x289475,_0x12c371){const _0x33cf06=Yt(_0x289475['attributes']),_0x17ea84=Yt(_0x12c371);if(!_0x289475['_isDataLoaded'])return!0x1;for(const _0x184cba of Object['keys'](_0x17ea84))if(!_0x48064e(_0x33cf06[_0x184cba],_0x17ea84[_0x184cba]))return!0x1;return!0x0;}function Yt(_0x5310d0){const _0x426bd2=Object['assign']({},_0x5310d0);return delete _0x426bd2['skipNestingCheck'],delete _0x426bd2['tablePasteChainId'],_0x426bd2;}class pe extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x311d1a(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x30a3a7,_0x313cbb,_0x59fec9,_0x4902aa){super(),this['model']=_0x313cbb,this['view']=_0x59fec9,this['commentThreadController']=_0x4902aa,this['_editor']=_0x30a3a7,this['_acceptCommand']=_0x30a3a7['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x30a3a7['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1ed936,_0x1cc7b5)=>_0x1ed936||_0x1cc7b5),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x10dd49=>_0x10dd49&&this['_editor']['model']['canEditAt'](_0x313cbb['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x12e95d=>_0x12e95d&&this['_editor']['model']['canEditAt'](_0x313cbb['getRanges']())),this['_pendingAction']=null,_0x59fec9['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x59fec9,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x59fec9,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x59fec9,'change:isDirty',()=>{_0x59fec9['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 _0xd03b8d=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0xd03b8d);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x5c5cfc{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4e303c,_0x31bee7,_0x2052ab,_0x5a41e7){super(_0x4e303c),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x23fc2c(_0x4e303c,c(_0x4e303c,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x31bee7['authoredAt']),this['bind']('authoredAt')['to'](_0x31bee7),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',_0x31bee7,'authoredAt',this,'descriptionParts',(_0x3e46e5,_0x38346c,_0x5857a6)=>{const _0x22e1cb=_0x5857a6['map'](_0x2a8cb5=>ls(_0x2a8cb5['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x3e46e5-0x1,_0x31bee7['author']['name'],_0x38346c?_0x5a41e7['formatDateTime'](_0x38346c):'',new DOMParser()['parseFromString'](_0x22e1cb,'text/html')['body']['textContent']]);}),this['focusables']=new _0x47c984(),this['focusTracker']=new _0x5f0f65(),this['keystrokes']=new _0x3c238c(),this['focusCycler']=new _0x1b92be({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5e824f=>_0x5e824f['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x31bee7,this['_localUser']=_0x2052ab,this['_config']=_0x5a41e7,_0x5a41e7['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x1e4d43(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x2e1d79}=this['_config'];this['commentsListView']=new _0x2e1d79(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',_0x43634b=>_0x43634b+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x32dcf3,_0x5e6687)=>_0x32dcf3||!!_0x5e6687);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x46e3d7}=this['_config'],_0x949f88=new _0x46e3d7(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5ead82=_0x949f88['commentInputView'];return _0x949f88['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5ead82,'value',(_0x357271,_0x291ae4,_0x598092)=>!!_0x598092||_0x357271&&!_0x291ae4),_0x5ead82['on']('submit',(_0x3ef3da,_0x1a31f2)=>{this['fire']('addComment',_0x1a31f2),_0x5ead82['editor']['setData']('');}),_0x5ead82['on']('cancel',()=>this['focus']()),_0x5ead82['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x949f88;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x647052,_0x2f617e,_0x4c5013,_0xa2017b){super(_0x647052,_0x2f617e,_0x4c5013,_0xa2017b),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x2d056d=>_0x2d056d&&_0x2d056d[0x0]?_0x2d056d[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x59e51a,_0x45d557)=>{let _0x1c03b8='';for(const _0xf8b2e5 of _0x59e51a)_0x1c03b8+='<p>'+ls(_0xf8b2e5['content'],_0xf8b2e5['color'])+'</p>';return _0x45d557?_0x1c03b8:ti(_0x1c03b8,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0xa2017b['SuggestionView'](_0x647052,_0x2f617e,{'formatDateTime':_0xa2017b['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 _0x24ff49=this['bindTemplate'],_0x354761=[this['suggestionView']];return this['commentsListView']&&_0x354761['push'](this['commentsListView']),this['commentThreadInputView']&&_0x354761['push'](this['commentThreadInputView']),_0x354761['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x24ff49['if']('isActive','ck-suggestion-wrapper--active'),_0x24ff49['to']('type',_0x48811b=>'ck-suggestion-'+_0x48811b),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':_0x24ff49['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x354761};}['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 _0x5c5cfc{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x52bcb9,_0x21d7e4,_0x42c609){super(_0x52bcb9),this['_model']=_0x21d7e4,this['_config']=_0x42c609,this['set']('description',''),this['bind']('authoredAt')['to'](_0x21d7e4),this['acceptButton']=this['_createButton'](c(_0x52bcb9,'Accept\x20suggestion'),_0xf2cf96,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x52bcb9,'Discard\x20suggestion'),_0x58b8b2,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x18adfe(_0x52bcb9,_0x21d7e4['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x47c984([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5f0f65(),this['keystrokes']=new _0x3c238c(),this['focusCycler']=new _0x1b92be({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x25b84c=>_0x25b84c['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x1f35d7=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x1f35d7['innerHTML']=this['description'],this['on']('change:description',(_0x1c7460,_0x46f933,_0x365c3a)=>{_0x1f35d7['innerHTML']=_0x365c3a;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x46bf50=this['bindTemplate'],_0x639f6f=[{'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':_0x46bf50['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x46bf50['to']('authoredAt',_0x1949c0=>this['_config']['formatDateTime'](_0x1949c0))}]}]},{'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']&&_0x639f6f['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':_0x639f6f}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x1dff6d,_0x49da1e,_0x4f5bd9,_0x44221a,_0x889043){const _0x38d440=new _0x155a22(this['locale']);return _0x38d440['set']({'label':_0x1dff6d,'icon':_0x49da1e,'tooltip':!0x0,'tooltipPosition':_0x889043}),_0x38d440['extendTemplate']({'attributes':{'class':_0x4f5bd9}}),_0x38d440['on']('execute',()=>{this['fire'](_0x44221a,this['_model']['id']);}),_0x38d440;}['_setupKeyboardNavigation'](){const _0x3f27d9=this['element'];this['keystrokes']['listenTo'](_0x3f27d9);for(const _0x8d4e4a of this['focusables'])this['focusTracker']['add'](_0x8d4e4a['element']),this['keystrokes']['listenTo'](_0x8d4e4a['element']);this['keystrokes']['set']('enter',(_0x5c3040,_0x1e4784)=>{_0x3f27d9===_0x5c3040['target']&&(this['focusCycler']['focusFirst'](),_0x1e4784());}),this['keystrokes']['set']('esc',(_0x1a41e2,_0xe3025b)=>{_0x3f27d9!==_0x1a41e2['target']&&(this['focus'](),_0xe3025b());});}}class d extends _0x3e2428{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x3c7e0d,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xae5599){super(_0xae5599),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0xb89422=this['editor']['config'];_0xb89422['define']('trackChanges.SuggestionThreadView',fe),_0xb89422['define']('trackChanges.SuggestionView',we),_0xb89422['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0xb89422['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0xd0fa78,_0x2ff953){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x4238e4,_0xdd59c3]of this['_handleControllerBuffer']){const _0x524dc3=this['_suggestionToController']['has'](_0x4238e4);_0x524dc3||_0xdd59c3?_0x524dc3&&_0xdd59c3&&this['_destroyController'](_0x4238e4):this['_initializeController'](_0x4238e4);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0xd0fa78,_0x2ff953);}['init'](){const _0x413cac=this['editor'],_0x501994=_0x413cac['plugins']['get']('TrackChangesEditing'),_0x4847fa=_0x413cac['plugins']['get']('Annotations'),_0xafe614=_0x413cac['plugins']['get']('EditorAnnotations'),_0x69b62=_0x413cac['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0xafe614['addSourceCollector'](()=>{const _0x166f1d=[];for(const [_0x55396f,_0x38e1cc]of Array['from'](this['_suggestionToController'])){const _0x3586f8=_0x55396f['getAllAdjacentSuggestions'](),_0x2551b4=[];for(const _0x4d8d0e of _0x3586f8){if(!_0x4d8d0e['isInContent'])continue;if(_0x4d8d0e['isMultiRange']){_0x2551b4['push'](..._0x4d8d0e['getRanges']());continue;}const _0x544e0a=_0x4d8d0e['getFirstRange']();if(_0x2551b4['length']>0x0){const _0x5aed5e=_0x2551b4[0x0]['getJoined'](_0x544e0a);if(_0x5aed5e){_0x2551b4[0x0]=_0x5aed5e;continue;}}_0x2551b4['push'](_0x544e0a);}_0x166f1d['push']([_0x38e1cc['view'],_0x2551b4]);}return _0x166f1d;}),this['listenTo'](_0x501994,'suggestionLoaded',(_0x320ee4,_0x28996d)=>{this['listenTo'](_0x28996d,'change:previous',(_0x4d0301,_0x3828e8,_0x300645,_0x450eee)=>{_0x28996d['isInContent']&&(null==_0x300645?(this['_updateController'](_0x450eee['head']),this['_handleSuggestionControllerDelayed'](_0x28996d,!0x1)):(this['_updateController'](_0x300645['head']),null==_0x450eee&&this['_handleSuggestionControllerDelayed'](_0x28996d,!0x0)));}),null!==_0x28996d['previous']?this['_updateController'](_0x28996d['head']):this['_handleSuggestionControllerDelayed'](_0x28996d,!0x1);}),this['listenTo'](_0x501994,'suggestionUnloaded',(_0x1544dc,_0x4cf09b,_0x170b36)=>{this['stopListening'](_0x4cf09b,'change:previous'),this['_handleControllerBuffer']['delete'](_0x4cf09b),this['_suggestionToController']['has'](_0x4cf09b)&&this['_destroyController'](_0x4cf09b),_0x170b36&&this['_updateController'](_0x170b36['head']);}),this['listenTo'](_0x501994,'suggestionChanged',(_0x8107b4,_0x3bbb11)=>{this['_updateController'](_0x3bbb11);}),this['listenTo'](_0x4847fa,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x69b62,'addComment',(_0xadf7e8,{threadId:_0xad2df7,isFromAdapter:_0x3ac85c})=>{if(_0x3ac85c||!_0x501994['hasSuggestion'](_0xad2df7))return;const _0x5d93d2=_0x501994['getSuggestion'](_0xad2df7);this['_suggestionToController']['get'](_0x5d93d2)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x21d4aa=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x560b4e;for(const _0x3516ed in _0x21d4aa){const _0xaf514c=_0x3516ed,_0x256bd9=_0x21d4aa[_0xaf514c];if('trackChangesLicenseKeyValid'==_0x256bd9||'trackChangesLicenseKeyInvalid'==_0x256bd9||'trackChangesLicenseKeyExpired'==_0x256bd9||'trackChangesLicenseKeyDomainLimit'==_0x256bd9||'trackChangesLicenseKeyNotAllowed'==_0x256bd9||'trackChangesLicenseKeyEvaluationLimit'==_0x256bd9||'trackChangesLicenseKeyTrialLimit'==_0x256bd9||'trackChangesLicenseKeyUsageLimit'==_0x256bd9){delete _0x21d4aa[_0xaf514c],_0x560b4e=_0x256bd9,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x560b4e&&_0x21d4aa['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x560b4e&&_0x21d4aa['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x560b4e&&_0x21d4aa['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x560b4e&&_0x21d4aa['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x560b4e&&_0x21d4aa['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x560b4e&&_0x21d4aa['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x560b4e&&_0x21d4aa['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x26f189=this['editor']['plugins']['get']('Annotations'),_0xe57910=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3fbb76=Array['from'](_0x26f189['activeAnnotations'],_0x268fda=>_0x268fda['innerView'])['filter'](_0x1aa22d=>this['_viewToController']['has'](_0x1aa22d)),_0xc78e4b=[];for(const _0x3df73c of _0x3fbb76){const _0x91561f=this['_viewToController']['get'](_0x3df73c)['model']['getAllAdjacentSuggestions']();_0xc78e4b['push'](..._0x91561f['reduce']((_0x1eff90,_0x4b27b5)=>[..._0x1eff90,..._0x4b27b5['getMarkerNames']()],[]));}_0xe57910['activeMarkers']=_0xc78e4b;}['_addUIComponentsToFactory'](){const _0x330fc7=this['editor'],_0x392112=_0x330fc7['locale'],_0x1eaa92=c(_0x392112,'Track\x20changes'),_0x2f96ca=new _0x367e57([{'type':'switchbutton','model':new _0x597f14({'withText':!0x0,'isToggleable':!0x0,'label':_0x1eaa92,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x597f14({'withText':!0x0,'label':c(_0x392112,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x597f14({'withText':!0x0,'label':c(_0x392112,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x597f14({'withText':!0x0,'label':c(_0x392112,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x597f14({'withText':!0x0,'label':c(_0x392112,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x330fc7['plugins']['has']('TrackChangesPreview')&&_0x2f96ca['addMany']([{'type':'separator'},{'type':'button','model':new _0x597f14({'withText':!0x0,'label':c(_0x392112,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x5d5fe2 of _0x2f96ca)if(ke(_0x5d5fe2)){const _0xd3792c=_0x330fc7['commands']['get'](_0x5d5fe2['model']['commandName']);_0x5d5fe2['model']['bind']('isOn','isEnabled')['to'](_0xd3792c,'value','isEnabled');}_0x330fc7['ui']['componentFactory']['add']('trackChanges',_0x4bc102=>this['_createToolbarButton'](_0x4bc102,_0x2f96ca,_0x1eaa92)),_0x330fc7['ui']['componentFactory']['add']('menuBar:trackChanges',_0x28bbad=>this['_createMenuBarMenu'](_0x28bbad,_0x2f96ca,_0x1eaa92));}['_createToolbarButton'](_0x33f9a9,_0x551afc,_0x1101d8){const _0xcc5d6e=_0x648dfa(_0x33f9a9,_0x423aa4),_0x10a48a=this['editor']['commands']['get']('trackChanges');_0xcc5d6e['buttonView']['set']({'tooltip':_0x1101d8,'label':_0x1101d8,'icon':_0xf43b}),_0xcc5d6e['buttonView']['bind']('isOn')['to'](_0x10a48a,'value'),_0xcc5d6e['buttonView']['on']('execute',()=>{_0x10a48a['execute'](),this['editor']['editing']['view']['focus']();}),_0x4f877f(_0xcc5d6e,_0x551afc,{'role':'menu'});const _0x1e17d2=[];for(const _0x206ea0 of _0x551afc)ke(_0x206ea0)&&_0x1e17d2['push'](this['editor']['commands']['get'](_0x206ea0['model']['commandName']));const _0x3e3a32=_0xcc5d6e['buttonView'];return _0x3e3a32['actionView']['unbind']('isEnabled'),_0x3e3a32['arrowView']['unbind']('isEnabled'),_0x3e3a32['actionView']['bind']('isEnabled')['to'](_0x10a48a,'isEnabled'),_0x3e3a32['arrowView']['bind']('isEnabled')['toMany'](_0x1e17d2,'isEnabled',(..._0x1cece5)=>_0x1cece5['some'](_0x1afbc3=>_0x1afbc3)),_0xcc5d6e['on']('execute',_0x1765f1=>{this['editor']['execute'](_0x1765f1['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0xcc5d6e;}['_createMenuBarMenu'](_0x2764cf,_0xf27ded,_0x3e47b7){const _0x39bb9c=new _0x25591e(_0x2764cf),_0x473a5b=this['editor']['commands']['get']('trackChanges');_0x39bb9c['buttonView']['set']({'label':_0x3e47b7,'icon':_0xf43b});const _0x1eabf7=new _0x13ff27(_0x2764cf);for(const _0x49c87f of _0xf27ded){if('separator'==_0x49c87f['type']){_0x1eabf7['items']['add'](new _0x405e56(_0x2764cf));continue;}const _0x4ea31b=new _0x5986e2(_0x2764cf,_0x39bb9c),_0x5637ce=new _0x510a60(_0x2764cf),_0x30ba8b=_0x49c87f['model'];_0x5637ce['bind'](...Object['keys'](_0x30ba8b))['to'](_0x30ba8b),_0x5637ce['delegate']('execute')['to'](_0x39bb9c),_0x5637ce['on']('execute',()=>{this['editor']['execute'](_0x30ba8b['commandName']),this['editor']['editing']['view']['focus']();}),_0x4ea31b['children']['add'](_0x5637ce),_0x1eabf7['items']['add'](_0x4ea31b);}return _0x39bb9c['bind']('isEnabled')['to'](_0x473a5b,'isEnabled'),_0x39bb9c['panelView']['children']['add'](_0x1eabf7),_0x39bb9c;}['_initializeController'](_0x50c2a5){const _0x588786=this['editor'],_0x55079c=_0x588786['config'],_0x34d6f5=_0x588786['plugins']['get']('Annotations'),_0x569f10=_0x588786['plugins']['get']('CommentsRepository'),_0x512803=_0x588786['plugins']['get']('EditorAnnotations'),_0x4f549b=_0x588786['plugins']['get'](_0x3c7e0d)['me'],_0x482e9c=_0x55079c['get']('trackChanges')['SuggestionThreadView'],_0x3a2804=_0x55079c['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x171331,CommentThreadInputView:_0x201a7a}=_0x588786['plugins']['get']('CommentsUI');let _0x280f5e,_0xedf6ef,_0x523bad;this['_annotationViews']['has'](_0x50c2a5['id'])?(_0xedf6ef=this['_annotationViews']['get'](_0x50c2a5['id']),_0x280f5e=_0xedf6ef['mainView']):(_0x280f5e=new _0x482e9c(_0x588786['locale'],_0x50c2a5,_0x4f549b,{'disableComments':this['_disableComments'],'editorConfig':{..._0x55079c['get']('comments.editorConfig'),'licenseKey':_0x55079c['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x55079c['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x55079c['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x55079c['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2b3e4a(_0x55079c['get']('locale'),_0x588786['locale']),'CommentView':_0x55079c['get']('comments')['CommentView'],'CommentsListView':_0x171331,'CommentThreadInputView':_0x201a7a,'SuggestionView':_0x3a2804}),_0x280f5e['suggestionView']['acceptButton']['on']('execute',()=>{_0x588786['editing']['view']['focus']();}),_0x280f5e['suggestionView']['discardButton']['on']('execute',()=>{_0x588786['editing']['view']['focus']();}),_0xedf6ef=_0x34d6f5['createAnnotationView'](this['editor']['locale'],_0x280f5e),_0xedf6ef['bind']('isDirty')['to'](_0x280f5e,'isDirty'),_0xedf6ef['bind']('length')['to'](_0x280f5e),_0xedf6ef['bind']('type')['to'](_0x280f5e,'type',_0x31552a=>'suggestion-'+_0x31552a),_0x280f5e['on']('escape',()=>{_0x523bad['fire']('escape');}),this['_annotationViews']['set'](_0x50c2a5['id'],_0xedf6ef));const _0x967785=_0x569f10['createCommentThreadController'](_0x50c2a5['commentThread'],_0x280f5e),_0x20fc3d=new pe(_0x588786,_0x50c2a5,_0x280f5e,_0x967785),_0x12103e=_0x50c2a5['getAllAdjacentSuggestions']()['filter'](_0x590b17=>_0x590b17['isInContent']);_0x280f5e['descriptionParts']=_0x588786['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x12103e),this['_suggestionToController']['set'](_0x50c2a5,_0x20fc3d),this['_viewToController']['set'](_0x280f5e,_0x20fc3d),_0x523bad=_0x34d6f5['createAnnotation']({'view':_0xedf6ef,'target':()=>{const _0x545b9a=[],_0x4cf406=_0x50c2a5['getAllAdjacentSuggestions']()['filter'](_0xc64c8b=>_0xc64c8b['isInContent']);for(const _0x5abdc1 of _0x4cf406)_0x545b9a['push'](..._0x5abdc1['getMarkers']());return _0x371a4a(_0x588786['editing'],_0x545b9a);},'type':()=>'suggestion-'+_0x20fc3d['view']['type']}),_0x569f10['_bindAnnotationToEditors'](_0x280f5e,_0x523bad),_0x34d6f5['add'](_0x523bad),_0x512803['registerAnnotation'](_0x523bad);}['_destroyController'](_0x5e8a3d){const _0x856c58=this['editor']['plugins']['get']('CommentsRepository'),_0x22b770=this['editor']['plugins']['get']('Annotations'),_0x3db15f=this['_suggestionToController']['get'](_0x5e8a3d),_0xfb23c2=_0x3db15f['view'],_0x2188ad=_0x22b770['getByInnerView'](_0xfb23c2);_0x856c58['_unbindEditors'](_0xfb23c2),_0x2188ad&&_0x22b770['remove'](_0x2188ad),this['_suggestionToController']['delete'](_0x5e8a3d),this['_viewToController']['delete'](_0xfb23c2),_0x3db15f['destroy']();}['_updateController'](_0x5712d8){if(!_0x5712d8['isInContent']||!this['_suggestionToController']['has'](_0x5712d8))return;const _0x26e44c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2764fb=this['_suggestionToController']['get'](_0x5712d8),_0x368ca7=_0x5712d8['getAllAdjacentSuggestions']();_0x2764fb['view']['descriptionParts']=_0x26e44c['descriptionFactory']['getDescriptions'](_0x368ca7);}['destroy'](){for(const _0x2a34d8 of this['_suggestionToController']['keys']())this['_destroyController'](_0x2a34d8);for(const _0x9c9108 of this['_annotationViews']['values']())_0x9c9108['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x153a85){return'model'in _0x153a85;}class k extends _0x3e2428{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x39b524){this['editor']['plugins']['get'](p)['adapter']=_0x39b524;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x56e91f){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x56e91f);}['getSuggestions']({skipNotAttached:_0x125669=!0x1,toJSON:_0xec8e5d=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x125669,'toJSON':_0xec8e5d});}['getSuggestion'](_0x4c599f){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x4c599f);}}const w=['Pagination'];class T extends _0x3e2428{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x569d62=this['editor'];if(_0x569d62['config']['define']('trackChangesData.editorCreator',_0x1c1945=>{const _0x3ee409=_0x569d62['model']['document']['getRootNames']()['reduce']((_0x277921,_0x36cec3)=>(_0x277921[_0x36cec3]='',_0x277921),{});return _0x569d62['constructor']['create'](_0x3ee409,_0x1c1945);}),'function'!=typeof _0x569d62['config']['get']('trackChangesData')['editorCreator'])throw new _0x2c0c45('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x64503e){return N(this['editor'],!0x0,_0x64503e);}['getDataWithDiscardedSuggestions'](_0x5f4878){return N(this['editor'],!0x1,_0x5f4878);}}class D extends _0x3e2428{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x12d9d5){function _0x509318(_0x1e808c){return _0x1e808c['map'](_0x21f020=>String['fromCharCode'](_0x21f020))['join']('');}super(_0x12d9d5),this['result']='end',_0x12d9d5[_0x509318([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x509318([0x76,0x69,0x65,0x77])][_0x509318([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x509318([0x61,0x75,0x74,0x6f]),_0x12d9d5[_0x509318([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x509318([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x509318([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x509318([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x509318([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Ge(_0x14c9e5){return void 0x0!==_0x14c9e5['getRootsAttributes'];}async function N(_0x40fc68,_0x5b3e93,_0x2b6882){const _0x44e0ce=_0x4ca52d(_0x40fc68,w);_0x44e0ce['plugins']['push'](p,D),_0x44e0ce['rootsAttributes']=Ge(_0x40fc68)?_0x40fc68['getRootsAttributes']():void 0x0;const _0x3801af=document['createDocumentFragment'](),_0x27c75d=_0x40fc68['config']['get']('trackChangesData')['editorCreator'],_0x4046f5=await _0x27c75d(_0x44e0ce,()=>function(_0x121d07){const _0x48e1ce=document['createElement']('div');return _0x121d07['appendChild'](_0x48e1ce),_0x48e1ce;}(_0x3801af));!function(_0x52209d,_0x2991fd){const _0x15071d=_0x52209d['model']['document']['getRootNames']()['reduce']((_0x18fcb1,_0x3897da)=>(_0x18fcb1[_0x3897da]=_0x52209d['data']['get']({'rootName':_0x3897da}),_0x18fcb1),{}),_0x3ed560=_0x52209d['plugins']['get']('Users')['users']['map'](_0x3867a4=>({'id':_0x3867a4['id'],'name':_0x3867a4['name']})),_0x2766cc=_0x52209d['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3d0e6a=_0x52209d['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x781bc1=_0x2991fd['plugins']['get']('Users'),_0x3bf12b=_0x2991fd['plugins']['get']('TrackChangesEditing'),_0x5ad61e=_0x2991fd['plugins']['get']('CommentsRepository');for(const _0x2ce7fd of _0x5ad61e['getCommentThreads']())_0x2ce7fd['remove']();for(const _0x35c9b6 of _0x3ed560)_0x781bc1['getUser'](_0x35c9b6['id'])||_0x781bc1['addUser'](_0x35c9b6);_0x781bc1['me']||_0x781bc1['useAnonymousUser']();for(const _0x40b6c5 of _0x3d0e6a)_0x5ad61e['addCommentThread'](_0x40b6c5);for(const _0x402b7d of _0x2766cc)_0x3bf12b['addSuggestionData'](_0x402b7d);_0x2991fd['data']['set'](_0x15071d);}(_0x40fc68,_0x4046f5),_0x4046f5['execute'](_0x5b3e93?'acceptAllSuggestions':'discardAllSuggestions');const _0x51451d=Ge(_0x4046f5)?_0x4046f5['getFullData'](_0x2b6882):_0x4046f5['data']['get'](_0x2b6882);return await _0x4046f5['destroy'](),_0x51451d;}class Me extends _0x5c5cfc{['options'];constructor(_0x33e457,_0x4c6477){super(_0x33e457),this['options']=_0x4c6477,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'](_0x55701e,_0x2c4cde){if(!this['element'])return;const _0x2d6263=[];for(const [_0x5c353f,_0x4e764d]of _0x55701e){const _0x3ba6e7=document['createElement']('div');_0x3ba6e7['setAttribute']('data-ck-root-name',_0x5c353f),_0x3ba6e7['className']=_0x4e764d['classes']+'\x20ck-track-changes-preview__root-container',_0x3ba6e7['innerHTML']=_0x4e764d['content'],_0x2d6263['push'](_0x3ba6e7);}_0x2c4cde(this['element'],_0x2d6263),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x3929fd{constructor(_0x23440d){super(_0x23440d),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x2b6495=this['editor'],_0x41a5b=_0x2b6495['locale'],_0x51a374=_0x2b6495['plugins']['get']('Dialog');let _0x4caab8;const _0xafa077=function(_0x1b1137){const _0x50a39d={};if('editables'in _0x1b1137['ui']['view']){for(const [_0x945bf9,_0x1b7358]of Object['entries'](_0x1b1137['ui']['view']['editables']))_0x50a39d[_0x945bf9]=_0x1b7358['element'];}else _0x50a39d[_0x1b1137['model']['document']['getRootNames']()[0x0]]=_0x1b1137['ui']['view']['editable']['element'];return _0x50a39d;}(_0x2b6495),_0xde7694=function(_0x5db221){let _0x4e797c=0x0;for(const _0x50b7c7 of Object['values'](_0x5db221))_0x4e797c=Math['max'](_0x4e797c,_0x50b7c7['getBoundingClientRect']()['width']);let _0x2db317=0x0;for(const _0x578f21 of Object['values'](_0x5db221))_0x2db317+=_0x578f21['getBoundingClientRect']()['height'];const _0x57d620=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x4ca68d=Math['min'](_0x2db317,_0x57d620);return{'width':_0x4e797c,'height':_0x4ca68d};}(_0xafa077);_0x51a374['show']({'id':'finalContentPreview','title':c(_0x41a5b,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x41a5b,{'dialogRects':_0xde7694}),'onHide':()=>{_0x4caab8['detachFromDom']();},'onShow':()=>{_0x2b6495['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x31d076=>{const _0x55fe74=this['_standarizeRootsData'](_0x31d076,_0x2b6495,_0xafa077);_0x51a374['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x55fe74,_0x2b6495['config']['get']('trackChanges.preview.renderFunction'));}),_0x4caab8=new _0x5ccbb8(_0x41a5b,[_0x51a374['view']]),_0x4caab8['attachToDom'](),_0x4caab8['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x2b6495['once']('destroy',()=>{_0x4caab8['detachFromDom']();});const _0x5a023a=_0x51a374['view']['headerView']['class'];_0x51a374['view']['headerView']['class']=_0x5a023a?_0x5a023a+'\x20ck-reset_all':'ck-reset_all',_0x51a374['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x51a374['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x1ce414=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x343439=_0x1ce414['previewMode'],_0x365a0d={};if('$labels'===_0x343439){for(const _0x43459e of _0x1ce414['getMergeFieldsIds']())_0x365a0d[_0x43459e]=_0x1ce414['getLabel'](_0x43459e)||_0x43459e;}else{const _0x5192b9='$defaultValues'===_0x343439?_0x1ce414['getDefaultValues']():_0x1ce414['getDataSetValues'](_0x343439,!0x0);for(const _0x42a737 of Object['entries'](_0x5192b9)){const [_0x2d1cd6,_0x38f3b4]=_0x42a737;_0x365a0d[_0x2d1cd6]=null!==_0x38f3b4?_0x38f3b4:_0x1ce414['getLabel'](_0x2d1cd6)||_0x2d1cd6;}}return{'mergeFieldsData':_0x365a0d};}['_standarizeRootsData'](_0x35cc84,_0x454194,_0x45b5db){let _0x180951;if('string'==typeof _0x35cc84){const _0x347954=_0x454194['model']['document']['getRootNames']()[0x0];_0x180951={[_0x347954]:_0x35cc84};}else _0x180951=_0x35cc84;const _0x3a490a=this['_fixMediaEmbeds'](_0x180951,_0x454194),_0x27d91d=function(_0x1b78a3,_0x5316f7){for(const [_0x4306fe,_0x5061cb]of _0x1b78a3)_0x5061cb['classes']=_0x5316f7[_0x4306fe]['classList']['value']['replace']('ck-focused','');return _0x1b78a3;}(this['_sortRoots'](_0x454194)['reduce']((_0x430c53,_0x222b16)=>(_0x430c53['push']([_0x222b16,{'content':_0x3a490a[_0x222b16],'classes':''}]),_0x430c53),[]),_0x45b5db);return _0x27d91d;}['_fixMediaEmbeds'](_0x34fa2f,_0x3b3f69){if(!_0x3b3f69['plugins']['has']('MediaEmbedEditing'))return _0x34fa2f;const _0x23524e=_0x3b3f69['plugins']['get']('MediaEmbedEditing');for(const [_0xb03de8,_0x3806e8]of Object['entries'](_0x34fa2f)){const _0x5948f2=document['createElement']('div');_0x5948f2['innerHTML']=_0x3806e8,(_0x5948f2['querySelectorAll']('figure.media')['forEach'](_0x9ca5fb=>{const _0x286a79=_0x9ca5fb['querySelector']('oembed');if(_0x286a79){const _0x238fd6=_0x286a79['getAttribute']('url');if(_0x238fd6){const _0x1a3ef0=_0x23524e['registry']['getMediaViewElement'](new _0xd41810(_0x3b3f69['editing']['view']['document']),_0x238fd6,{'elementName':'','renderForEditingView':!0x0}),_0x836e7f=document['createElement']('div');_0x836e7f['classList']['add']('ck-media__wrapper'),_0x1a3ef0['render'](_0x836e7f,_0x3b3f69['editing']['view']['domConverter']),_0x286a79['replaceWith'](_0x836e7f);}}}),_0x34fa2f[_0xb03de8]=_0x5948f2['innerHTML']);}return _0x34fa2f;}['_sortRoots'](_0x513842){if(!function(_0xa55e6d){return void 0x0!==_0xa55e6d['getRootsAttributes'];}(_0x513842))return _0x513842['model']['document']['getRootNames']();const _0x2ea131=[],_0x14660d=new Map();for(const _0x431377 of _0x513842['model']['document']['getRootNames']()){const _0x519884=_0x513842['editing']['view']['getDomRoot'](_0x431377)['getClientRects']()['item'](0x0);_0x2ea131['push'](_0x431377),_0x14660d['set'](_0x431377,_0x519884);}return _0x2ea131['sort']((_0x1b57a2,_0x959287)=>{const _0x2d70fd=_0x14660d['get'](_0x1b57a2),_0x28515d=_0x14660d['get'](_0x959287);return _0x2d70fd['y']-_0x28515d['y']||_0x2d70fd['x']-_0x28515d['x'];}),_0x2ea131;}}class te extends _0x3e2428{static get['requires'](){return[T,_0x37cf6e];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xb31b48){super(_0xb31b48),_0xb31b48['commands']['add']('previewFinalContent',new re(this['editor'])),_0xb31b48['config']['define']('trackChanges.preview.renderFunction',(_0x2e1979,_0x564b21)=>{for(const _0x493a88 of _0x564b21)_0x2e1979['appendChild'](_0x493a88);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
|
|
23
|
+
import{Command as _0x1b6f03,Plugin as _0x5c1181,PendingActions as _0x2f18b2}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x27ba3f,ObservableMixin as _0x52bea3,uid as _0x1b595f,priorities as _0x4b8f33,insertToPriorityArray as _0x16f9a1,toArray as _0x4f6f0d,logWarning as _0x7309e5,getEnvKeystrokeText as _0x2d0d08,FocusTracker as _0x4b0c7e,KeystrokeHandler as _0x1a0162,Collection as _0x1fedff}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x480e97,IconCancel as _0x101f8f,IconTrackChanges as _0xaf24d}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x275dee,View as _0x1a544d,ViewCollection as _0x4468c6,FocusCycler as _0x28c7b7,ViewModel as _0x1b419b,createDropdown as _0x3c0e80,SplitButtonView as _0x53e4cf,addListToDropdown as _0x45bee5,MenuBarMenuView as _0x52108a,MenuBarMenuListView as _0x3b3307,ListSeparatorView as _0x1dd12e,MenuBarMenuListItemView as _0x2891fd,MenuBarMenuListItemButtonView as _0x5ec854,BodyCollection as _0x4f698a,Dialog as _0x236eb9}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x4a4901,hashObject as _0x14dbbf,surroundingMarkersDetector as _0xd99fe4,FOCUS_ANNOTATION_KEYSTROKE as _0x3d13f0,AriaDescriptionView as _0x50f820,setupThreadKeyboardNavigation as _0x5058bd,trimHtml as ti,UserView as _0x595140,LateFocusButtonView as _0x5edada,getDateTimeFormatter as _0x4af0d7,getAllMarkersDomElementsSorted as _0x1e60ff,sanitizeEditorConfig as _0x420930}from'ckeditor5-collaboration/dist/index.js';import{Element as _0xb007b4,LiveRange as _0x597cd7,LivePosition as _0xcc0df3,DowncastWriter as _0x20bc2a}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x3adf2c,toWidget as _0x586b6a}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x59f217,set as _0x5464db,isEqual as _0x16f315,unset as _0x4b3ed5,omit as Ft}from'es-toolkit/compat';import{Delete as _0x29e068,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x31970b}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x47d534}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x1b6f03{['_enabledCommands'];constructor(_0x2f32c8,_0x42c3f5){super(_0x2f32c8),this['_enabledCommands']=_0x42c3f5,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 _0x416cb7 of this['editor']['commands']['commands']())_0x416cb7['affectsData']&&!this['_enabledCommands']['has'](_0x416cb7)&&_0x416cb7['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x2ad589 of this['editor']['commands']['commands']())_0x2ad589['affectsData']&&!this['_enabledCommands']['has'](_0x2ad589)&&_0x2ad589['clearForceDisabled']('TrackChangesCommand');}}class x extends _0x1b6f03{['_suggestions'];constructor(_0x44a5d9,_0x166658){super(_0x44a5d9),this['_suggestions']=_0x166658,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x376233){const _0x3c45ac=this['_suggestions']['get'](_0x376233);if(!_0x3c45ac)throw new _0x27ba3f('track-changes-accept-suggestion-not-found',this);const _0x456f4e=_0x3c45ac['getRanges']();this['editor']['model']['canEditAt'](_0x456f4e)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x3c45ac);}}class O extends _0x1b6f03{['_suggestions'];constructor(_0x364164,_0x51ac90){super(_0x364164),this['_suggestions']=_0x51ac90,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x228e07){const _0x420e86=this['_suggestions']['get'](_0x228e07);if(!_0x420e86)throw new _0x27ba3f('track-changes-discard-suggestion-not-found',this);const _0x4ce1c9=_0x420e86['getRanges']();this['editor']['model']['canEditAt'](_0x4ce1c9)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x420e86);}}function ls(_0x3911ff,_0x474501){let _0x304ebc='';return _0x304ebc+=_0x3911ff['split']('*')['map']((_0x199853,_0x36bd58)=>_0x36bd58%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x199853)+'</span>':nn(_0x199853))['join'](''),_0x474501&&(_0x304ebc+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x474501['value']+'\x22\x20title=\x22'+_0x474501['title']+'\x22></span>'),_0x304ebc;}function nn(_0x375796){const _0xb1f555=document['createElement']('span');return _0xb1f555['innerText']=_0x375796,_0xb1f555['innerHTML'];}function ts(_0x2f5eac){return _0x2f5eac['sort']((_0x593770,_0x3f9bbb)=>'deletion'==_0x593770['type']&&'deletion'!=_0x3f9bbb['type']?-0x1:'deletion'!=_0x593770['type']&&'deletion'==_0x3f9bbb['type']?0x1:0x0);}function to(_0x3a1937,_0x563812){let _0x5dba3e,_0x406d58=0x0;const _0x4ed200=[],_0x200da7=_0x563812['schema'];for(;_0x406d58<_0x3a1937['length'];){const _0x52bb52=_0x3a1937[_0x406d58],_0x54d0ee=_0x3a1937[_0x406d58+0x1];_0x5dba3e||(_0x5dba3e=_0x563812['createPositionBefore'](_0x52bb52)),on(_0x563812,_0x52bb52,_0x54d0ee)||(_0x4ed200['push'](_0x563812['createRange'](_0x5dba3e,_0x200da7['isObject'](_0x52bb52)?_0x563812['createPositionAfter'](_0x52bb52):_0x563812['createPositionAt'](_0x52bb52,'end'))),_0x5dba3e=null),_0x406d58++;}return _0x4ed200;}function on(_0x27de8e,_0x39dbbe,_0x1f816b){if(!_0x1f816b)return!0x1;const _0x322d01=_0x27de8e['createPositionAfter'](_0x39dbbe),_0x350e53=_0x27de8e['createPositionBefore'](_0x1f816b);return _0x322d01['isTouching'](_0x350e53);}function rs(_0x4c1b5d,_0x30a9cc,_0x41ef20){for(;_0x41ef20['length'];){const _0x1176d6=_0x41ef20['splice'](0x0,0x64);_0x4c1b5d['change'](()=>{for(const _0x45d352 of _0x1176d6)_0x45d352['isInContent']&&_0x30a9cc['execute'](_0x45d352['id']);});}}class R extends _0x1b6f03{['_command'];['_suggestions'];constructor(_0x13915b,_0x38732f,_0x5db001){super(_0x13915b),this['_command']=_0x38732f,this['_suggestions']=_0x5db001,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x41b5d1=Array['from'](this['_suggestions']['values']())['some'](_0x486d72=>_0x486d72['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x41b5d1;}['execute'](){const _0x5c87fd=ts(Array['from'](this['_suggestions']['values']()));for(const _0x4593df of _0x5c87fd){const _0x10426e=_0x4593df['getRanges']();if(!this['editor']['model']['canEditAt'](_0x10426e))return;}rs(this['editor']['model'],this['_command'],_0x5c87fd);}}class E extends _0x1b6f03{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x53e1cc,_0x5617a2,_0x55c567){super(_0x53e1cc),this['_command']=_0x5617a2,this['_suggestions']=_0x55c567,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x419f3=this['editor']['model']['document']['selection'],_0x59fce9=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x4eaa1a,_0x5a147a){const _0x236867=Array['from'](_0x4eaa1a['getRanges']()),_0x404469=new Set();for(const _0x45ae44 of _0x5a147a)if(_0x45ae44['isInContent']){for(const _0x554fc8 of _0x236867)for(const _0x1402f8 of _0x45ae44['getRanges']())(_0x554fc8['isIntersecting'](_0x1402f8)||_0x4eaa1a['isCollapsed']&&!_0x45ae44['isMultiRange']&&_0x45ae44['next']&&_0x1402f8['end']['isTouching'](_0x554fc8['start']))&&_0x404469['add'](_0x45ae44);}return _0x404469;}(_0x419f3,_0x59fce9),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x100ad5=ts(Array['from'](this['_selectedSuggestions']));for(const _0x303492 of _0x100ad5){const _0x66f517=_0x303492['getRanges']();if(!this['editor']['model']['canEditAt'](_0x66f517))return;}rs(this['editor']['model'],this['_command'],_0x100ad5);}}class o extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x52bea3(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x12c665,_0x4fd756){super(),this['id']=_0x4fd756['id'],this['type']=_0x4fd756['type'],this['subType']=_0x4fd756['subType']||null,this['author']=_0x4fd756['author'],this['creator']=_0x4fd756['creator']||_0x4fd756['author'],this['isExternal']=Boolean(_0x4fd756['attributes']&&_0x4fd756['attributes']['@external']),this['data']=null,this['_model']=_0x12c665,this['_onAccept']=_0x4fd756['onAccept'],this['_onDiscard']=_0x4fd756['onDiscard'],this['_onAttributesChange']=_0x4fd756['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4fd756['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 _0x32cf53=this;for(;_0x32cf53['previous'];)_0x32cf53=_0x32cf53['previous'];return _0x32cf53;}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'](_0x5511c0){this['_markerNames']['add'](_0x5511c0);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x20bd6a=>this['_model']['markers']['get'](_0x20bd6a))['filter'](_0xd3a00d=>_0xd3a00d);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x69ba53=>{for(const _0x182f88 of this['getMarkers']())_0x69ba53['removeMarker'](_0x182f88);}),this['_markerNames']['clear']();}['removeMarker'](_0x4c1608){this['_model']['change'](_0x56444b=>{_0x56444b['removeMarker'](_0x4c1608);}),this['_markerNames']['delete'](_0x4c1608);}['addRange'](_0x103748){const _0x24af20='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x24af20),this['_model']['change'](_0x4440fe=>{_0x4440fe['addMarker'](_0x24af20,{'range':_0x103748,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x27a0c3){for(const _0x2263a2 of this['getRanges']())if(_0x2263a2['isIntersecting'](_0x27a0c3))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x36f6fc=>_0x36f6fc['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3b0483,_0x278b76)=>[..._0x3b0483,..._0x278b76['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x142e6e=this['getRanges']();if(0x1!=_0x142e6e['length'])return null;const _0x52cefe=_0x142e6e[0x0],_0x460393=_0x52cefe['start']['nodeAfter'],_0x1116bf=_0x52cefe['end']['nodeBefore'];return _0x460393 instanceof _0xb007b4?_0x460393!=_0x1116bf?null:_0x460393: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 _0x48feb9=[];let _0x49b397=this['head'];for(;_0x49b397;)_0x48feb9['push'](_0x49b397),_0x49b397=_0x49b397['next'];return _0x48feb9;}['setAttribute'](_0x8e3aa8,_0x31dfab){const _0x2127fc=_0x59f217(this['attributes']);_0x5464db(_0x2127fc,_0x8e3aa8,_0x31dfab),_0x16f315(_0x2127fc,this['attributes'])||(this['attributes']=_0x2127fc,this['_onAttributesChange'](_0x2127fc));}['removeAttribute'](_0x9812b8){const _0x26651e=_0x59f217(this['attributes']);_0x4b3ed5(_0x26651e,_0x9812b8),_0x16f315(_0x26651e,this['attributes'])||(this['attributes']=_0x26651e,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 _0x1b595f()['substr'](0x1,0x5);}}function c(_0x19c801,_0x51c375,_0x4b4713){const _0x4bd6fb=_0x19c801['t'],t=_0x19c801['t'];switch(_0x51c375){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',_0x4b4713);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4b4713);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4b4713);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4b4713);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4b4713);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',_0x4b4713);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4b4713);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',_0x4b4713);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4b4713);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4b4713);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4b4713);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4b4713);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4b4713);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x4b4713);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4b4713);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4b4713);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4b4713);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4b4713);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4b4713);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4b4713);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4b4713);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4b4713);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4b4713);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4b4713);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x4b4713);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'},_0x4b4713);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x4b4713);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x4b4713);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4b4713);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4b4713);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4b4713);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4b4713);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4b4713);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'},_0x4b4713);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4b4713);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4b4713);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4b4713);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4b4713);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'},_0x4b4713);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4b4713);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'},_0x4b4713);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'},_0x4b4713);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4b4713);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'},_0x4b4713);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4b4713);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'},_0x4b4713);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4b4713);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4b4713);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'},_0x4b4713);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x4b4713);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 _0x4bd6fb({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x4b4713);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x4bd6fb({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x4b4713);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x4b4713);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'},_0x4b4713);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'},_0x4b4713);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'},_0x4b4713);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x51c375;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x91c089,_0x13a290){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x91c089,this['_locale']=_0x13a290;}['getDescriptions'](_0x54cb1a){const _0x411511=[],_0x37e157=new Set(),_0x1a4518=new Set();for(let _0x1c4c8b=0x0;_0x1c4c8b<_0x54cb1a['length'];_0x1c4c8b++){const _0x293890=_0x54cb1a[_0x1c4c8b];if(!_0x293890['isInContent'])continue;const _0x2f20ae=this['_handleCustomCallbackDescription'](_0x293890);if(_0x2f20ae){if(null!=_0x293890['subType']){if(_0x37e157['has'](_0x293890['subType']))continue;_0x37e157['add'](_0x293890['subType']);}_0x411511['push'](_0x2f20ae);}else{if('attribute'!=_0x293890['type'])'insertion'!=_0x293890['type']&&'deletion'!=_0x293890['type']||this['_handleInsertRemoveSuggestionDescription'](_0x411511,_0x293890,_0x54cb1a[_0x1c4c8b+0x1]);else{const _0x4e794d=_0x293890['data']['key'];if(_0x1a4518['has'](_0x4e794d))continue;_0x1a4518['add'](_0x293890['data']['key']),_0x4e794d==u?this['_handleRenameSuggestionDescription'](_0x411511,_0x293890):this['_handleAttributeSuggestionDescription'](_0x411511,_0x293890);}}}return this['_resolveDescriptionItems'](_0x411511);}['registerDescriptionCallback'](_0x6b78c6){this['_customCallbacks']['push'](_0x6b78c6);}['registerElementLabel'](_0x329882,_0x591e22,_0x1af609=_0x4b8f33['normal']){'function'==typeof _0x329882?_0x16f9a1(this['_itemLabelsCallbacks'],{'matchingCallback':_0x329882,'label':_0x591e22,'priority':_0x1af609}):this['_itemLabels']['set'](_0x329882,_0x591e22);}['registerAttributeLabel'](_0x2e0e14,_0x118494){this['_attributeLabels']['set'](_0x2e0e14,_0x118494);}['getItemLabel'](_0x15ad34,_0x370868=0x1){let _0x32b114;for(const _0x5cabc6 of this['_itemLabelsCallbacks'])if(_0x5cabc6['matchingCallback'](_0x15ad34)){_0x32b114=_0x5cabc6['label'];break;}return _0x32b114||(_0x32b114=this['_itemLabels']['get'](_0x15ad34['name'])),_0x32b114?_0x32b114(_0x370868):0x1!==_0x370868?_0x370868+'\x20'+_0x15ad34['name']+'s':''+_0x15ad34['name'];}['_addDescriptionItems'](_0x14736d,_0x3b70b9){const _0x33ddc0=_0x3b70b9['getFirstRange']()['getWalker'](),_0x58f17c='insertion'==_0x3b70b9['type']?'add':'remove';for(const _0x152a30 of _0x33ddc0){const _0xb85c07=_0x152a30['item'],_0x3b2a37=_0x14736d[_0x14736d['length']-0x1];if(_0xb85c07['is']('$textProxy'))_0x3b2a37&&_0x3b2a37['type']['indexOf']('Container')>-0x1&&_0x14736d['pop'](),_0x3b2a37&&'text'==_0x3b2a37['type']?_0x3b2a37[_0x58f17c]+=_0xb85c07['data']:_0x14736d['push']({'type':'text','add':'add'==_0x58f17c?_0xb85c07['data']:'','remove':'remove'==_0x58f17c?_0xb85c07['data']:''});else{if(this['_schema']['isObject'](_0xb85c07)){const _0x3debc7=_0xb85c07;if(_0x3b2a37&&_0x3b2a37['type']['indexOf']('Container')>-0x1&&_0x14736d['pop'](),'elementEnd'==_0x152a30['type'])continue;_0x3b2a37&&_0x3b2a37['type']==_0x58f17c+'Object'&&_0x3b2a37['element']['name']==_0x3debc7['name']?_0x3b2a37['quantity']++:_0x14736d['push']({'type':_0x58f17c+'Object','element':_0x3debc7,'quantity':0x1}),_0x33ddc0['skip'](_0x1df014=>!('elementEnd'==_0x1df014['type']&&_0x1df014['item']==_0xb85c07));}else{if(this['_schema']['checkChild'](_0xb85c07,'$text')||_0xb85c07['is']('element','softBreak')){const _0x582c8a=_0xb85c07;if('add'==_0x58f17c&&'elementStart'==_0x152a30['type']||'remove'==_0x58f17c&&'elementEnd'==_0x152a30['type'])continue;if(_0x3b2a37&&-0x1==_0x3b2a37['type']['indexOf']('Container')){'text'==_0x3b2a37['type']&&(_0x3b2a37[_0x58f17c]+='\x0a');continue;}let _0x4f1a1d;if(_0x4f1a1d='add'==_0x58f17c?_0x582c8a['nextSibling']&&!this['_schema']['isObject'](_0x582c8a['nextSibling'])?_0x582c8a['nextSibling']:null:_0x582c8a['previousSibling']&&!this['_schema']['isObject'](_0x582c8a['previousSibling'])?_0x582c8a['previousSibling']:null,_0x582c8a['isEmpty']||_0x4f1a1d&&_0x4f1a1d['isEmpty']){const _0x4f64e5=_0x4f1a1d&&_0x4f1a1d['isEmpty']?_0x4f1a1d:_0x582c8a;_0x3b2a37&&_0x3b2a37['type']==_0x58f17c+'EmptyContainer'&&_0x3b2a37['element']['name']==_0x4f64e5['name']?_0x3b2a37['quantity']++:_0x14736d['push']({'type':_0x58f17c+'EmptyContainer','element':_0x4f64e5,'quantity':0x1});}else _0x14736d['push']({'type':_0x58f17c+'Container','element':_0x582c8a});}}}}}['_resolveDescriptionItems'](_0x4be09d){const _0x2627b7=this['_locale'],_0x3ee78a=[],_0x6ea583=[],_0x5c56b8=[];for(const _0x5cc0ea of _0x4be09d)switch(_0x5cc0ea['type']){case'text':if(_0x5cc0ea['add']=_0x5cc0ea['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x5cc0ea['remove']=_0x5cc0ea['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x5cc0ea['add']&&''!=_0x5cc0ea['remove']){_0x3ee78a['push']({'type':'replace','content':c(_0x2627b7,'REPLACE_TEXT',['\x22'+_0x5cc0ea['remove']+'\x22','\x22'+_0x5cc0ea['add']+'\x22'])});continue;}if(null!=_0x5cc0ea['add']['match'](/^ +$/)){_0x3ee78a['push']({'type':'insertion','content':c(_0x2627b7,'*Insert:*\x20%0',c(_0x2627b7,'ELEMENT_SPACE',_0x5cc0ea['add']['length']))});continue;}if(null!=_0x5cc0ea['remove']['match'](/^ +$/)){_0x3ee78a['push']({'type':'deletion','content':c(_0x2627b7,'*Remove:*\x20%0',c(_0x2627b7,'ELEMENT_SPACE',_0x5cc0ea['remove']['length']))});continue;}if(''!=_0x5cc0ea['add']){_0x3ee78a['push']({'type':'insertion','content':c(_0x2627b7,'*Insert:*\x20%0','\x22'+_0x5cc0ea['add']+'\x22')});continue;}_0x3ee78a['push']({'type':'deletion','content':c(_0x2627b7,'*Remove:*\x20%0','\x22'+_0x5cc0ea['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3ee78a['push']({'type':'insertion','content':c(_0x2627b7,'*Insert:*\x20%0',this['getItemLabel'](_0x5cc0ea['element'],_0x5cc0ea['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3ee78a['push']({'type':'deletion','content':c(_0x2627b7,'*Remove:*\x20%0',this['getItemLabel'](_0x5cc0ea['element'],_0x5cc0ea['quantity']))});continue;case'addContainer':_0x3ee78a['push']({'type':'insertion','content':c(_0x2627b7,'*Split:*\x20%0',this['getItemLabel'](_0x5cc0ea['element'],_0x5cc0ea['quantity']))});continue;case'removeContainer':_0x3ee78a['push']({'type':'deletion','content':c(_0x2627b7,'*Merge:*\x20%0',this['getItemLabel'](_0x5cc0ea['element'],_0x5cc0ea['quantity']))});continue;case'addFormat':_0x6ea583['push'](_0x5cc0ea['key']);continue;case'removeFormat':_0x5c56b8['push'](_0x5cc0ea['key']);continue;default:_0x3ee78a['push'](_0x5cc0ea);}if(_0x6ea583['length']){const _0x4d478f=_0x6ea583['map'](_0x4f1121=>this['_attributeLabels']['has'](_0x4f1121)?this['_attributeLabels']['get'](_0x4f1121):_0x4f1121)['join'](',\x20');_0x3ee78a['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x4d478f)});}if(_0x5c56b8['length']){const _0x58448e=_0x5c56b8['map'](_0x14cfce=>this['_attributeLabels']['has'](_0x14cfce)?this['_attributeLabels']['get'](_0x14cfce):_0x14cfce)['join'](',\x20');_0x3ee78a['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x58448e)});}return _0x3ee78a;}['_handleCustomCallbackDescription'](_0x3a6892){for(const _0x2bcde6 of this['_customCallbacks']){const _0x3e0991=_0x2bcde6(_0x3a6892);if(_0x3e0991&&'type'in _0x3e0991)return _0x3e0991;}}['_handleAttributeSuggestionDescription'](_0x413214,_0x487692){const _0x2a63eb=_0x487692['data'],_0x9b6ffa=void 0x0===_0x2a63eb['newValue']?'removeFormat':'addFormat';_0x413214['push']({'type':_0x9b6ffa,'key':_0x2a63eb['key']});}['_handleRenameSuggestionDescription'](_0x42ef89,_0x47d3fc){_0x42ef89['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x47d3fc['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x515562,_0x2f64a6,_0x2dc77e){if(this['_addDescriptionItems'](_0x515562,_0x2f64a6),_0x2dc77e&&_0x2dc77e['getFirstRange']()&&!_0x2f64a6['getFirstRange']()['end']['isEqual'](_0x2dc77e['getFirstRange']()['start'])){const _0xb7ed33=_0x515562[_0x515562['length']-0x1],_0x18a0fa='insertion'==_0x2f64a6['type']?'add':'remove';_0xb7ed33&&'text'==_0xb7ed33['type']&&(_0xb7ed33[_0x18a0fa]+='\x0a');}}}class U extends _0x5c1181{['afterInit'](){const _0x23ae9e=this['editor'],_0x5e3db9=_0x23ae9e['plugins']['get']('TrackChangesEditing');_0x23ae9e['commands']['get']('showAIAssistant')&&_0x5e3db9['enableCommand']('showAIAssistant');}}class V extends _0x5c1181{['afterInit'](){const _0x1dcaa6=this['editor'],_0x16f1f6=_0x1dcaa6['locale'];if(!_0x1dcaa6['plugins']['has']('AlignmentEditing'))return;const _0x581e57=_0x1dcaa6['plugins']['get']('TrackChangesEditing');_0x581e57['enableDefaultAttributesIntegration']('alignment'),_0x581e57['registerBlockAttribute']('alignment'),_0x581e57['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x16f1f6,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e65c8=this['editor'],_0x507bec=_0x4e65c8['locale'];_0x4e65c8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x194ea4=>{if('formatBlock'!=_0x194ea4['type'])return;const {data:_0xb9b82a}=_0x194ea4;if(_0xb9b82a&&'alignment'==_0xb9b82a['commandName']){const _0x48ebec=_0xb9b82a['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x507bec,'*Format:*\x20%0',function(_0x521541){switch(_0x521541){case'left':return c(_0x507bec,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x507bec,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x507bec,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x507bec,'FORMAT_JUSTIFY_TEXT');}}(_0x48ebec))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x5c1181{['afterInit'](){const _0x5493a0=this['editor'],_0x282820=_0x5493a0['plugins']['get']('TrackChangesEditing'),_0x3df2b1=_0x5493a0['locale'];for(const _0x4b0b81 of Zt){if(!_0x5493a0['plugins']['has'](_0x4b0b81))continue;const _0x140228=_0x4b0b81['slice'](0x0,-0x7)['toLowerCase'](),_0x41e546='FORMAT_'+_0x140228['toUpperCase']();_0x282820['enableDefaultAttributesIntegration'](_0x140228),_0x282820['registerInlineAttribute'](_0x140228),_0x282820['descriptionFactory']['registerAttributeLabel'](_0x140228,c(_0x3df2b1,_0x41e546));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c0175=this['editor'],_0x14671d=_0x2c0175['locale'],_0x3e9384=_0x2c0175['plugins']['get']('TrackChangesEditing');function _0x2f48eb(_0x5c9e24,_0x2c7054){_0x3e9384['descriptionFactory']['registerDescriptionCallback'](_0x2db230=>{if('formatInline'!=_0x2db230['type'])return;const {data:_0x410124}=_0x2db230;return _0x410124&&_0x410124['commandName']===_0x5c9e24?_0x410124['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x14671d,'*Format:*\x20%0',_0x2c7054)}:{'type':'format','content':c(_0x14671d,'*Remove\x20format:*\x20%0',_0x2c7054)}:void 0x0;});}_0x2f48eb('bold',c(_0x14671d,'FORMAT_BOLD')),_0x2f48eb('italic',c(_0x14671d,'FORMAT_ITALIC')),_0x2f48eb('underline',c(_0x14671d,'FORMAT_UNDERLINE')),_0x2f48eb('code',c(_0x14671d,'FORMAT_CODE')),_0x2f48eb('strikethrough',c(_0x14671d,'FORMAT_STRIKETHROUGH')),_0x2f48eb('subscript',c(_0x14671d,'FORMAT_SUBSCRIPT')),_0x2f48eb('superscript',c(_0x14671d,'FORMAT_SUPERSCRIPT'));}}class G extends _0x5c1181{['afterInit'](){const _0x6a5a88=this['editor'],_0x4eaef6=_0x6a5a88['locale'];if(!_0x6a5a88['plugins']['has']('BlockQuoteEditing'))return;const _0x357cc4=_0x6a5a88['plugins']['get']('TrackChangesEditing'),_0x413547=this['editor']['commands']['get']('blockQuote');_0x357cc4['enableCommand']('blockQuote',(_0x2be189,_0x4f9713={})=>{const _0x371ee3=this['editor']['model']['document']['selection'],_0x30303a=_0x4f9713&&void 0x0!==_0x4f9713['forceValue']?_0x4f9713['forceValue']:!_0x413547['value'];let _0x1eff00=[];if(_0x30303a){const _0x3927ec=Array['from'](_0x371ee3['getSelectedBlocks']())['filter'](_0x21752e=>oo(_0x21752e)||function(_0x137bf7,_0x31b118){const _0x2d0bb6=_0x31b118['checkChild'](_0x137bf7['parent'],'blockQuote'),_0x15af9d=_0x31b118['checkChild'](['$root','blockQuote'],_0x137bf7);return _0x2d0bb6&&_0x15af9d;}(_0x21752e,this['editor']['model']['schema']));_0x1eff00=to(_0x3927ec,_0x6a5a88['model']);}else{const _0x1bdcfe=Array['from'](_0x371ee3['getSelectedBlocks']())['filter'](_0x37eafd=>oo(_0x37eafd));_0x1eff00=to(_0x1bdcfe,_0x6a5a88['model']);}_0x6a5a88['model']['change'](()=>{for(const _0x226f2e of _0x1eff00)_0x357cc4['markBlockFormat'](_0x226f2e,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x30303a}]});});}),_0x357cc4['descriptionFactory']['registerDescriptionCallback'](_0x25e27b=>{const {data:_0x334c96}=_0x25e27b;if(_0x334c96&&'blockQuote'==_0x334c96['commandName']){const _0xb68b8a=c(_0x4eaef6,'ELEMENT_BLOCK_QUOTE');return _0x334c96['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x4eaef6,'*Set\x20format:*\x20%0',_0xb68b8a)}:{'type':'format','content':c(_0x4eaef6,'*Remove\x20format:*\x20%0',_0xb68b8a)};}});}}function oo(_0x469001){return'blockQuote'==_0x469001['parent']['name'];}class L extends _0x5c1181{['afterInit'](){const _0x54ec32=this['editor'],_0x22404e=_0x54ec32['locale'],_0x24d23b=_0x54ec32['plugins']['get']('TrackChangesEditing');_0x54ec32['plugins']['has']('BookmarkEditing')&&(_0x24d23b['enableCommand']('insertBookmark'),_0x24d23b['enableDefaultAttributesIntegration']('updateBookmark'),_0x24d23b['registerBlockAttribute']('bookmarkId'),_0x24d23b['descriptionFactory']['registerDescriptionCallback'](_0x26916f=>{if('insertion'!=_0x26916f['type']&&'deletion'!=_0x26916f['type']&&'attribute'!=_0x26916f['type'])return;const _0x1f7ab6=_0x26916f['getContainedElement']();if(null==_0x1f7ab6)return;if(!_0x1f7ab6['is']('element','bookmark'))return;const _0x136fee=_0x1f7ab6['getAttribute']('bookmarkId');if('insertion'==_0x26916f['type'])return{'type':'insertion','content':c(_0x22404e,'*Insert:*\x20%0','\x22'+_0x136fee+'\x22\x20'+c(_0x22404e,'ELEMENT_BOOKMARK'))};if('deletion'==_0x26916f['type'])return{'type':'deletion','content':c(_0x22404e,'*Remove:*\x20%0','\x22'+_0x136fee+'\x22\x20'+c(_0x22404e,'ELEMENT_BOOKMARK'))};const {data:_0x5ab4a2}=_0x26916f;if(!_0x5ab4a2||'bookmarkId'!=_0x5ab4a2['key'])return;return{'type':'format','content':c(_0x22404e,'*Set\x20bookmark:*\x20%0','\x22'+_0x5ab4a2['newValue']+'\x22')};}));}}class J extends _0x5c1181{['afterInit'](){const _0x22a8d2=this['editor'];_0x22a8d2['plugins']['has']('CaseChange')&&(_0x22a8d2['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x22a8d2['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x22a8d2['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x5c1181{['afterInit'](){const _0x50ac04=this['editor'];_0x50ac04['commands']['get']('ckbox')&&_0x50ac04['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x5c1181{['afterInit'](){const _0x287b3c=this['editor'];if(!_0x287b3c['plugins']['has']('CodeBlock'))return;const _0xd02e81=_0x287b3c['plugins']['get']('TrackChangesEditing'),_0x52799d=_0x287b3c['locale'],_0x53198c=_0x287b3c['config']['get']('codeBlock')['languages'],_0x2e5369=_0x287b3c['commands']['get']('codeBlock');_0xd02e81['enableCommand']('indentCodeBlock'),_0xd02e81['enableCommand']('outdentCodeBlock'),_0xd02e81['enableCommand']('codeBlock',(_0x593df4,_0x60d10a={})=>{const _0x28632f=_0x287b3c['model'],_0x5ef807=_0x287b3c['model']['document']['selection'],_0x367110=_0x60d10a&&void 0x0!==_0x60d10a['forceValue']?_0x60d10a['forceValue']:!_0x2e5369['value'];let _0x38da36;_0x60d10a['language']||(_0x60d10a['language']=_0x53198c[0x0]['language']),_0x38da36=_0x367110?Array['from'](_0x5ef807['getSelectedBlocks']())['filter'](_0x56e1e9=>eo(_0x56e1e9)||function(_0x4d2efe,_0x43d962){if(_0x4d2efe['is']('rootElement')||_0x43d962['isLimit'](_0x4d2efe))return!0x1;return _0x43d962['checkChild'](_0x4d2efe['parent'],'codeBlock');}(_0x56e1e9,_0x28632f['schema'])):Array['from'](_0x5ef807['getSelectedBlocks']())['filter'](_0x1d56b5=>eo(_0x1d56b5));const _0x22927c=to(_0x38da36,_0x28632f);_0x28632f['change'](()=>{for(const _0x25e8d6 of _0x22927c)_0xd02e81['markBlockFormat'](_0x25e8d6,{'commandName':'codeBlock','commandParams':[{..._0x60d10a,'forceValue':_0x367110}],'formatGroupId':'blockName'});});}),(_0xd02e81['descriptionFactory']['registerElementLabel']('codeBlock',_0x3b1633=>c(_0x52799d,'ELEMENT_CODE_BLOCK',_0x3b1633)),_0xd02e81['descriptionFactory']['registerDescriptionCallback'](_0x46f653=>{if('formatBlock'!=_0x46f653['type'])return;const _0x5e34d9=_0x52799d['t'],{data:_0x38aef4}=_0x46f653;if(!_0x38aef4||'codeBlock'!=_0x38aef4['commandName'])return;const _0x3e77f4=_0x38aef4['commandParams'][0x0]['language'],_0x11ad70=_0x5e34d9(_0x53198c['find'](_0x224d80=>_0x224d80['language']===_0x3e77f4)['label'])['toLowerCase']();return _0x38aef4['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x52799d,'*Set\x20format:*\x20%0',c(_0x52799d,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x11ad70+')')}:{'type':'format','content':c(_0x52799d,'*Remove\x20format:*\x20%0',c(_0x52799d,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x56d985){return'codeBlock'==_0x56d985['name'];}class q extends _0x5c1181{['afterInit'](){const _0x265688=this['editor'];if(!_0x265688['plugins']['has']('CommentsEditing'))return;_0x265688['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x526168,_0x993381,_0x442a68){const _0x53b619=[];for(const _0x1bbcd2 of _0x993381['getItems']())_0x1bbcd2['hasAttribute'](_0x526168)&&_0x53b619['push'](_0x442a68['createRangeOn'](_0x1bbcd2));return _0x53b619;}function Fe(_0x492738,_0x2cfb4f,{showActiveMarker:_0x426d64=!0x0}={}){const _0x54d2ae=_0x492738['plugins']['get']('TrackChangesEditing');return(_0x96f765,_0xfb21b5,_0xd95da)=>{if(!_0xd95da['consumable']['test'](_0xfb21b5['markerRange'],_0x96f765['name']))return;const _0x26e343=_0xfb21b5['markerRange']['getWalker'](),_0x3041e0=_0xfb21b5['markerRange']['start'],_0x5210a2=_0x492738['model']['schema'];let _0x254b92=null,_0x1a8f60=null,_0xb2168f=!0x1,_0x5d1511=!0x1;for(const _0x10e846 of _0x26e343){const _0x3b08ac=_0x10e846['item'];_0xb2168f=_0xb2168f||_0x5210a2['isContent'](_0x3b08ac);const _0x20dda5=_0xd95da['mapper']['toViewElement'](_0x3b08ac);if(_0x20dda5&&_0x20dda5['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x10e846['type']&&(_0x5210a2['isBlock'](_0x3b08ac)&&!_0x5210a2['isLimit'](_0x3b08ac)&&(_0x3b08ac['nextSibling']||_0x3041e0['isAtEnd']?_0x254b92&&_0x254b92['parent']==_0x3b08ac||(_0x254b92=_0x3b08ac,_0x39af97(_0x10e846['previousPosition']),_0x5d1511=!0x0):_0x1a8f60=_0x1a8f60||_0x10e846['previousPosition']));}function _0x39af97(_0x35343a){const {id:_0x466927,authorId:_0xe1afb7}=_0x54d2ae['_splitMarkerName'](_0xfb21b5['markerName']),_0x25a56a=_0xd95da['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2cfb4f,'data-suggestion':_0x466927,'data-author-id':_0xe1afb7}),_0x2a6488=_0xd95da['mapper']['toViewPosition'](_0x35343a);_0x426d64&&_0x54d2ae['activeMarkers']['includes'](_0xfb21b5['markerName'])&&_0xd95da['writer']['addClass']('ck-suggestion-marker--active',_0x25a56a),_0xd95da['writer']['insert'](_0x2a6488,_0x25a56a),_0xd95da['mapper']['bindElementToMarker'](_0x25a56a,_0xfb21b5['markerName']);}_0xb2168f||_0x5d1511||!_0x1a8f60||_0x39af97(_0x1a8f60);};}class z extends _0x5c1181{static get['requires'](){return[_0x29e068];}['init'](){const _0x2253d0=this['editor'],_0x51b3d8=_0x2253d0['plugins']['get']('TrackChangesEditing');_0x51b3d8['enableCommand']('delete');const _0xf4be99=_0x2253d0['commands']['get']('deleteForward');_0x51b3d8['enableCommand']('deleteForward',(_0x3c8120,_0x1c9659={})=>{const _0x2d38bd=_0x2253d0['model']['createSelection'](_0x2253d0['model']['document']['selection']);_0x2d38bd['isCollapsed']&&_0x2253d0['model']['modifySelection'](_0x2d38bd,{'direction':'forward','unit':_0x1c9659['unit']});const _0x1f4ce0=_0x2d38bd['getFirstRange'](),_0x36f3db=_0x597cd7['fromRange'](_0x1f4ce0);let _0x34f5d5;_0x3c8120(_0x1c9659),_0x34f5d5='$graveyard'==_0x36f3db['root']['rootName']?_0x2253d0['model']['createRange'](_0x1f4ce0['start']):_0x2253d0['model']['createRange'](_0x36f3db['start'],_0x36f3db['end']),_0x36f3db['detach'](),_0x2253d0['model']['enqueueChange'](_0xf4be99['buffer']['batch'],_0x8d0435=>{_0xf4be99['buffer']['lock'](),_0x8d0435['setSelection'](_0x8d0435['createRange'](_0x34f5d5['end'])),_0xf4be99['buffer']['unlock']();});}),_0x2253d0['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x2253d0,'merge'),{'priority':'high'}),_0x2253d0['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x85b199,_0x6b63d0,_0x1fef67)=>{_0x1fef67['options']['showSuggestionHighlights']&&Fe(_0x2253d0,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x85b199,_0x6b63d0,_0x1fef67);},{'priority':'high'}),_0x2253d0['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4fc11b,_0x26648f,_0x1d974b)=>{const _0x891678=_0x1d974b['mapper']['markerNameToElements'](_0x26648f['markerName']);if(_0x891678){for(const _0xd99ab4 of _0x891678)_0xd99ab4['is']('uiElement')&&(_0x1d974b['mapper']['unbindElementFromMarkerName'](_0xd99ab4,_0x26648f['markerName']),_0x1d974b['writer']['remove'](_0xd99ab4));}},{'priority':'high'});}}class W extends _0x5c1181{['afterInit'](){const _0x2d6839=this['editor'];if(!_0x2d6839['plugins']['has']('ListEditing'))return;const _0xf5461f=_0x2d6839['locale'],_0x738265=_0x2d6839['plugins']['get']('TrackChangesEditing'),_0x279f57=_0x2d6839['plugins']['has']('TodoListEditing'),_0x41335c=!!_0x2d6839['config']['get']('list.multiBlock');function _0x59192e(_0x51463c){return{'type':'format','content':''+c(_0xf5461f,'*Set\x20format:*\x20%0',_0x51463c)};}function _0x1ddd7f(_0x374e3c){return{'type':'format','content':''+c(_0xf5461f,'*Remove\x20format:*\x20%0',_0x374e3c)};}_0x738265['enableDefaultAttributesIntegration']('numberedList'),_0x738265['enableDefaultAttributesIntegration']('bulletedList'),_0x738265['enableDefaultAttributesIntegration']('customNumberedList'),_0x738265['enableDefaultAttributesIntegration']('customBulletedList'),_0x738265['enableDefaultAttributesIntegration']('indentList'),_0x738265['enableDefaultAttributesIntegration']('outdentList'),_0x738265['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x738265['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x738265['registerBlockAttribute']('listItemId'),_0x738265['registerBlockAttribute']('listType'),_0x738265['registerBlockAttribute']('listIndent'),_0x41335c&&(_0x738265['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x738265['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x279f57&&(_0x738265['enableDefaultAttributesIntegration']('todoList'),_0x738265['enableDefaultAttributesIntegration']('checkTodoList'),_0x738265['registerBlockAttribute']('todoListChecked'),_0x738265['descriptionFactory']['registerDescriptionCallback'](_0x509a6a=>{const {data:_0x9e620b}=_0x509a6a;if(_0x9e620b&&'todoListChecked'==_0x9e620b['key'])return{'type':'format','content':_0x9e620b['newValue']?c(_0xf5461f,'*Check\x20item*'):c(_0xf5461f,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x558aa1=>{if(_0x558aa1['batch']['isUndo'])return!0x1;let _0x4f452f=!0x1;const _0x4eb5c9=_0x738265['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x9860c1=>'todoListChecked'===_0x738265['_getAttributeKey'](_0x9860c1));for(const _0x26783a of _0x4eb5c9){'todo'!=_0x26783a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x738265['_findSuggestions'](_0x26783a['getFirstRange'](),'attribute')['find'](_0x15f672=>'listType'===_0x738265['_getAttributeKey'](_0x15f672['suggestion']))||(_0x558aa1['removeMarker'](_0x26783a['getFirstMarker']()),_0x4f452f=!0x0));}return _0x4f452f;})),_0x738265['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0xf5461f,'FORMAT_INDENT'));const _0x366a59={'type':'format','content':''};_0x738265['descriptionFactory']['registerDescriptionCallback'](_0x59d2ec=>{const {data:_0x47e9d2}=_0x59d2ec;if(!_0x47e9d2||'listType'!=_0x47e9d2['key'])return;let _0x15dcf1=_0x59d2ec['head'];for(;_0x15dcf1;){if(_0x15dcf1['data']&&(('listStyle'==_0x15dcf1['data']['key']||'listMarkerStyle'==_0x15dcf1['data']['key'])&&(_0x15dcf1['data']['newValue']&&'default'!=_0x15dcf1['data']['newValue']||'default'!=_0x15dcf1['data']['oldValue']&&!_0x47e9d2['newValue'])||!_0x41335c&&_0x15dcf1['data']['key']==u))return _0x366a59;_0x15dcf1=_0x15dcf1['next'];}if(null==_0x47e9d2['newValue'])switch(_0x47e9d2['oldValue']){case'bulleted':return _0x1ddd7f(c(_0xf5461f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1ddd7f(c(_0xf5461f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1ddd7f(c(_0xf5461f,'ELEMENT_TODO_LIST'));}switch(_0x47e9d2['newValue']){case'bulleted':return _0x59192e(c(_0xf5461f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x59192e(c(_0xf5461f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x59192e(c(_0xf5461f,'ELEMENT_TODO_LIST'));}}),_0x738265['descriptionFactory']['registerDescriptionCallback'](_0x3f8a0e=>{const {data:_0x3d6a38}=_0x3f8a0e;if(_0x3d6a38&&'listIndent'==_0x3d6a38['key'])return null==_0x3d6a38['newValue']||null==_0x3d6a38['oldValue']&&0x0==_0x3d6a38['newValue']?_0x366a59:void 0x0;}),_0x738265['descriptionFactory']['registerDescriptionCallback'](_0x51cedf=>{if('attribute'!=_0x51cedf['type'])return;const {data:_0x53e0a1}=_0x51cedf;if(!_0x53e0a1||'listItemId'!=_0x53e0a1['key'])return;const _0x4530d2=Te(_0x51cedf);return'newValue'==_0x4530d2?{'type':'format','content':c(_0xf5461f,'*Merge:*\x20list\x20item')}:'oldValue'==_0x4530d2?{'type':'format','content':c(_0xf5461f,'*Split:*\x20list\x20item')}:_0x366a59;}),_0x2d6839['model']['document']['registerPostFixer'](_0x401504=>this['listItemIdFixer'](_0x401504)),_0x2d6839['model']['document']['registerPostFixer'](_0x37801d=>this['noTrackChangesFixer'](_0x37801d)),_0x2d6839['model']['document']['on']('change:data',(_0x325991,_0x53ee05)=>{if(_0x53ee05['isUndo']||!_0x53ee05['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x17f886){if(_0x17f886['batch']['isUndo']||!_0x17f886['batch']['isLocal'])return!0x1;let _0x38beaa=!0x1;const _0x5e7b2f=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x8a061b=>_0x8a061b['data']&&'listItemId'==_0x8a061b['data']['key'])['filter'](_0x164279=>_0x164279['data']['newValue']&&_0x164279['data']['oldValue']);for(const _0x377961 of _0x5e7b2f)Te(_0x377961)||(_0x17f886['removeMarker'](_0x377961['getFirstMarker']()),_0x38beaa=!0x0);return _0x38beaa;}['noTrackChangesFixer'](_0x39821d){if(_0x39821d['batch']['isUndo']||!_0x39821d['batch']['isLocal'])return!0x1;const _0x2667b5=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2667b5['trackChangesCommand']['value'])return!0x1;let _0x3989e0=!0x1;const _0x5d0fc2=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x3e08e5=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x464bfe=>'attribute'==_0x464bfe['type'])['filter'](_0x219bf7=>_0x5d0fc2['includes'](_0x219bf7['attributeKey']));if(0x0==_0x3e08e5['length'])return _0x3989e0;for(const _0x400ac7 of _0x3e08e5){const _0x271e88=_0x2667b5['_findSuggestions'](_0x400ac7['range'],'attribute')['filter'](_0x52b029=>!_0x52b029['meta']['isNextTo'])['map'](_0x550b3c=>_0x550b3c['suggestion'])['filter'](_0x3703f7=>{const _0x415dae=_0x2667b5['_getAttributeKey'](_0x3703f7);return _0x5d0fc2['includes'](_0x415dae);});if(_0x271e88['length']){for(const _0x4750e1 of _0x271e88)_0x39821d['removeMarker'](_0x4750e1['getFirstMarker']());_0x3989e0=!0x0;}}return _0x3989e0;}['assureChains'](){const _0x52fa41=this['editor']['plugins']['get']('TrackChangesEditing'),_0x52552d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x2a8678;const _0x26faa6=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x199866=>{if(_0x199866['data']['oldRange']||!_0x199866['data']['newRange'])return null;if(!_0x199866['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x39dfc2}=_0x52fa41['_splitMarkerName'](_0x199866['name']);if(!_0x52fa41['hasSuggestion'](_0x39dfc2))return null;const _0x1e031c=_0x52fa41['getSuggestion'](_0x39dfc2);return _0x52552d['includes'](_0x1e031c['data']['key']);})['map'](_0x445703=>{const {id:_0x362936}=_0x52fa41['_splitMarkerName'](_0x445703['name']),_0x1a27ed=_0x52fa41['getSuggestion'](_0x362936);return _0x2a8678=_0x1a27ed['attributes']['groupId'],_0x1a27ed['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x26faa6['size'])return;const _0x41162f=_0x52fa41['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x19c5ee=>'attribute'==_0x19c5ee['type']&&_0x19c5ee['data']&&_0x52552d['includes'](_0x19c5ee['data']['key'])&&_0x19c5ee['attributes']['groupId']!=_0x2a8678)['map'](_0x46aea1=>({'listItem':_0x46aea1['getFirstRange']()['start']['nodeAfter'],'groupId':_0x46aea1['attributes']['groupId']})),_0x1cbd46=new Set();for(const {groupId:_0xd4ef51,listItem:_0x13a4b7}of _0x41162f)_0x26faa6['has'](_0x13a4b7)&&_0x1cbd46['add'](_0xd4ef51);for(const _0x48a0c4 of _0x52fa41['getSuggestions']())_0x1cbd46['has'](_0x48a0c4['attributes']['groupId'])&&_0x48a0c4['setAttribute']('groupId',_0x2a8678);}['_supportLegacySuggestions'](){const _0x5aa4e0=this['editor'],_0xc4e4af=_0x5aa4e0['locale'],_0x104093=_0x5aa4e0['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x104093['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x3d95db,_0x3bb836){const _0x3f764d=[];for(let _0x301378 of _0x3d95db)_0x301378['start']['nodeAfter']===_0x301378['end']['parent']&&(_0x301378=_0x5aa4e0['model']['createRange'](_0x5aa4e0['model']['createPositionAt'](_0x301378['start']['nodeAfter'],0x0))),_0x3f764d['push'](_0x301378);_0x5aa4e0['model']['change'](_0x292870=>{const _0x5dd78b=_0x5aa4e0['model']['document']['selection'],_0x2d94a7=Array['from'](_0x5dd78b['getRanges']())['map'](_0x2a38d1=>_0x597cd7['fromRange'](_0x2a38d1));_0x292870['setSelection'](_0x3f764d),_0x5aa4e0['commands']['get'](_0x3bb836['commandName'])['refresh'](),_0x3bb836['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x5aa4e0['execute'](_0x3bb836['commandName'],..._0x3bb836['commandParams']),_0x292870['setSelection'](_0x2d94a7);for(const _0xe162eb of _0x2d94a7)_0xe162eb['detach']();});}),_0x104093['descriptionFactory']['registerElementLabel'](function(_0x1ef22a){const _0x204d62=!_0x5aa4e0['model']['schema']['isObject'](_0x1ef22a),_0x545f8d=_0x1ef22a['previousSibling'],_0x4557c1=_0x1ef22a['nextSibling'],_0x3a7b7f=_0x1ef22a['getAttribute']('listItemId'),_0x175866=!_0x545f8d||_0x545f8d['getAttribute']('listItemId')!==_0x3a7b7f,_0x246397=!_0x4557c1||_0x4557c1['getAttribute']('listItemId')!==_0x3a7b7f;return _0x204d62&&Boolean(_0x3a7b7f)&&_0x175866&&_0x246397;},_0x46946a=>c(_0xc4e4af,'ELEMENT_LIST_ITEM',_0x46946a));}['_registerLegacyDescription'](){const _0x56c742=this['editor'],_0xf95ee9=_0x56c742['locale'];function _0x567cc0(_0x5b6b4d){const _0x21aa34=_0x56c742['commands']['get']('bulletedList')['value'],_0x1f167a=_0x56c742['commands']['get']('numberedList')['value'];return'numberedList'===_0x5b6b4d?_0x21aa34:_0x1f167a;}_0x56c742['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x270e86){if('formatBlock'!=_0x270e86['type'])return;const {data:_0x1ead48}=_0x270e86;if(!_0x1ead48)return;let _0x4e1199,_0x575071,_0x519a85,_0x1d2a01;switch(_0x1ead48['commandName']){case'bulletedList':_0x519a85=_0x1ead48['commandParams'][0x0]['forceValue'],_0x1d2a01=_0x567cc0(_0x1ead48['commandName']),_0x4e1199=_0x519a85?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1d2a01&&_0x56c742['config']['get']('list.multiBlock')||(_0x4e1199='*Change\x20to:*\x20%0'),_0x575071={'type':'format','content':c(_0xf95ee9,_0x4e1199,c(_0xf95ee9,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x519a85=_0x1ead48['commandParams'][0x0]['forceValue'],_0x1d2a01=_0x567cc0(_0x1ead48['commandName']),_0x4e1199=_0x519a85?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1d2a01&&_0x56c742['config']['get']('list.multiBlock')||(_0x4e1199='*Change\x20to:*\x20%0'),_0x575071={'type':'format','content':c(_0xf95ee9,_0x4e1199,c(_0xf95ee9,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4e1199='*Indent:*\x20%0',_0x575071={'type':'format','content':c(_0xf95ee9,_0x4e1199,c(_0xf95ee9,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4e1199=function(_0x2dc0b9){const _0x267140=_0x2dc0b9['getFirstRange']();let _0x421c34=_0x267140['start']['nodeAfter'];for(;_0x421c34&&_0x267140['containsItem'](_0x421c34);){if(_0x421c34['getAttribute']('listIndent')>0x0)return!0x1;_0x421c34=_0x421c34['nextSibling'];}return!0x0;}(_0x270e86)?c(_0xf95ee9,'*Format:*\x20remove\x20from\x20%0',c(_0xf95ee9,function(_0x336de2){return'ELEMENT_'+_0x336de2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x270e86))):c(_0xf95ee9,'*Outdent:*\x20%0',c(_0xf95ee9,'ELEMENT_LIST_ITEM')),_0x575071={'type':'format','content':_0x4e1199};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x1ead48['multipleBlocks']&&(_0x4e1199='*Merge:*\x20%0',_0x575071={'type':'deletion','content':c(_0xf95ee9,_0x4e1199,c(_0xf95ee9,'ELEMENT_LIST_ITEM'))});}return _0x575071;});}}function Te(_0x45c33b){let _0x21ac2f=_0x45c33b['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x21ac2f;){const _0x16b845=_0x21ac2f['getAttribute']('listItemId');if(!_0x16b845)return!0x1;if(_0x16b845==_0x45c33b['data']['newValue'])return'newValue';if(_0x16b845==_0x45c33b['data']['oldValue'])return'oldValue';_0x21ac2f=_0x21ac2f['previousSibling'];}return!0x1;}class Se extends _0x5c1181{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1531e5=this['editor']['config']['get']('list.properties'),_0x31983d=this['editor']['plugins']['get']('TrackChangesEditing');_0x1531e5['styles']&&(_0x31983d['enableDefaultAttributesIntegration']('listStyle'),_0x31983d['registerBlockAttribute']('listStyle')),_0x1531e5['reversed']&&(_0x31983d['enableDefaultAttributesIntegration']('listReversed'),_0x31983d['registerBlockAttribute']('listReversed')),_0x1531e5['startIndex']&&(_0x31983d['enableDefaultAttributesIntegration']('listStart'),_0x31983d['registerBlockAttribute']('listStart'));const _0x28b05b={'type':'format','content':''};_0x31983d['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x8d45ef=this['editor']['locale'];_0x31983d['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x8d45ef,'FORMAT_LIST_REVERSED')),_0x31983d['descriptionFactory']['registerDescriptionCallback'](_0x5cf369=>{const {data:_0x4b35e2}=_0x5cf369;if(_0x4b35e2&&'listReversed'==_0x4b35e2['key'])return null==_0x4b35e2['newValue']||0x0==_0x4b35e2['newValue']&&null==_0x4b35e2['oldValue']?_0x28b05b:void 0x0;}),_0x31983d['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x8d45ef,'FORMAT_LIST_START')),_0x31983d['descriptionFactory']['registerDescriptionCallback'](_0x593be9=>{const {data:_0xe93ae}=_0x593be9;if(_0xe93ae&&'listStart'==_0xe93ae['key'])return null==_0xe93ae['newValue']||0x1==_0xe93ae['newValue']&&null==_0xe93ae['oldValue']?_0x28b05b:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x29326f=>{if(_0x29326f['batch']['isUndo'])return!0x1;let _0x3d4a0d=!0x1;const _0x5ce55f=_0x31983d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xc8577a=>{const _0x529b95=_0x31983d['_getAttributeKey'](_0xc8577a);return'listStart'==_0x529b95||'listReversed'==_0x529b95;});for(const _0x43862e of _0x5ce55f){const _0x58874e=_0x43862e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x58874e||'customNumbered'==_0x58874e)continue;_0x31983d['_findSuggestions'](_0x43862e['getFirstRange'](),'attribute')['find'](_0x6048dd=>'listType'==_0x31983d['_getAttributeKey'](_0x6048dd['suggestion']))||(_0x29326f['removeMarker'](_0x43862e['getFirstMarker']()),_0x3d4a0d=!0x0);}return _0x3d4a0d;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x3a66b8){const _0x45ca7b=this['editor']['locale'],{data:_0x4818ac}=_0x3a66b8,_0x4fca21={'type':'format','content':''};if(!_0x4818ac||'listStyle'!=_0x4818ac['key'])return;if(!_0x4818ac['oldValue'])return'default'==_0x4818ac['newValue']?_0x4fca21:{'type':'format','content':''+c(_0x45ca7b,'*Set\x20format:*\x20%0',c(_0x45ca7b,this['_getTranslationKeyForListStyle'](_0x4818ac['newValue'])))};if(!_0x4818ac['newValue']){if('default'==_0x4818ac['oldValue'])return _0x4fca21;let _0x3ff3dd=_0x3a66b8['head'];for(;_0x3ff3dd;){if(_0x3ff3dd['data']&&'listType'==_0x3ff3dd['data']['key']&&_0x3ff3dd['data']['newValue'])return _0x4fca21;_0x3ff3dd=_0x3ff3dd['next'];}return{'type':'format','content':''+c(_0x45ca7b,'*Remove\x20format:*\x20%0',c(_0x45ca7b,this['_getTranslationKeyForListStyle'](_0x4818ac['oldValue'])))};}if('default'!=_0x4818ac['newValue'])return{'type':'format','content':''+c(_0x45ca7b,'*Set\x20format:*\x20%0',c(_0x45ca7b,this['_getTranslationKeyForListStyle'](_0x4818ac['newValue'])))};let _0x2b57c5=_0x3a66b8['head'];for(;_0x2b57c5;){if(_0x2b57c5['data']&&'listType'==_0x2b57c5['data']['key']&&_0x2b57c5['data']['newValue']&&_0x2b57c5['data']['oldValue'])return _0x4fca21;_0x2b57c5=_0x2b57c5['next'];}return{'type':'format','content':c(_0x45ca7b,'*Set\x20format:*\x20%0',c(_0x45ca7b,'ELEMENT_'+_0x3a66b8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x23c084=this['editor'],_0x2099a4=_0x23c084['locale'];_0x23c084['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x300188=>{if('formatBlock'!=_0x300188['type'])return;const {data:_0x1474a9}=_0x300188;if(!_0x1474a9)return;let _0x4a91f9,_0x3a8b9a;switch(_0x1474a9['commandName']){case'listStyle':_0x4a91f9='*Change\x20to:*\x20%0',_0x3a8b9a={'type':'format','content':c(_0x2099a4,_0x4a91f9,c(_0x2099a4,this['_getTranslationKeyForListStyle'](_0x1474a9['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4a91f9=_0x1474a9['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3a8b9a={'type':'format','content':c(_0x2099a4,_0x4a91f9)};break;case'listStart':_0x4a91f9='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3a8b9a={'type':'format','content':c(_0x2099a4,_0x4a91f9,_0x1474a9['commandParams'][0x0]['startIndex'])};}return _0x3a8b9a;});}['_getTranslationKeyForListStyle'](_0x4d145a){return'ELEMENT_'+function(_0x236a02){if(_e['includes'](_0x236a02))return'bulleted';if(Re['includes'](_0x236a02))return'numbered';return null;}(_0x4d145a)['toUpperCase']()+'_LIST_'+_0x4d145a['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x5c1181{['afterInit'](){const _0x229418=this['editor'];_0x229418['commands']['get']('emoji')&&_0x229418['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x5c1181{static get['requires'](){return[_0x31970b];}['init'](){const _0xaf9800=this['editor'],_0x4d39e8=_0xaf9800['plugins']['get']('TrackChangesEditing'),_0x310dc6=_0xaf9800['commands']['get']('enter');_0x4d39e8['enableCommand']('enter',()=>{_0xaf9800['model']['change'](_0x19556d=>{const _0x369c59=_0xaf9800['model']['document']['selection'],_0x2ba90a=_0x369c59['getFirstPosition'](),_0xaf9574=_0x597cd7['fromRange'](_0x369c59['getFirstRange']());if(_0x310dc6['enterBlock'](_0x19556d)){const _0xd8ff24=_0xaf9800['model']['createPositionAt'](_0x2ba90a['parent']['nextSibling'],0x0),_0x2d6b97=_0x19556d['createRange'](_0x2ba90a,_0xd8ff24);_0x4d39e8['markInsertion'](_0x2d6b97);}else _0x19556d['setSelection'](_0x19556d['createRange'](_0xaf9574['end']));_0xaf9574['detach'](),_0x310dc6['fire']('afterExecute',{'writer':_0x19556d});});}),_0xaf9800['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0xaf9800,'split'),{'priority':'high'}),_0xaf9800['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x5ea2d8,_0x404cfa,_0x40d9ff)=>{const _0xf8ef69=_0x40d9ff['mapper']['markerNameToElements'](_0x404cfa['markerName']);if(_0xf8ef69){for(const _0x3f5912 of _0xf8ef69)_0x3f5912['hasClass']('ck-suggestion-marker-split')&&(_0x40d9ff['mapper']['unbindElementFromMarkerName'](_0x3f5912,_0x404cfa['markerName']),_0x40d9ff['writer']['remove'](_0x3f5912));}},{'priority':'high'}),_0xaf9800['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x212d2a,_0x18fad3,_0x8df92d)=>{_0x8df92d['options']['showSuggestionHighlights']&&Fe(_0xaf9800,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x212d2a,_0x18fad3,_0x8df92d);},{'priority':'high'});}}class Z extends _0x5c1181{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x25984b=this['editor']['plugins']['get']('TrackChangesEditing');_0x25984b['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x25984b['enableCommand']('findNext'),_0x25984b['enableCommand']('findPrevious'),_0x25984b['enableCommand']('replace'),_0x25984b['enableCommand']('replaceAll');}['handleFindCommand'](_0x109119,_0x2ef9ca,_0x1f1f59={}){const _0x574c91=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x109119(_0x4d7392=>{let _0x2f3223=('string'==typeof _0x2ef9ca?_0x574c91['findByTextCallback'](_0x2ef9ca,_0x1f1f59):_0x2ef9ca)(_0x4d7392);Array['isArray'](_0x2f3223)&&(_0x2f3223={'results':_0x2f3223,'searchText':'string'==typeof _0x2ef9ca?_0x2ef9ca:''});const _0x4bff32=_0x2f3223['results']['filter'](_0xceea2d=>!0x1===this['_isInDeletionRange'](_0xceea2d,_0x4d7392['item']));return{..._0x2f3223,'results':_0x4bff32};},_0x1f1f59);}['_isInDeletionRange'](_0x22db37,_0x2c8f2c){const _0x48906f=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2c8f2c,_0x22db37['start']),this['editor']['model']['createPositionAt'](_0x2c8f2c,_0x22db37['end']));for(const _0x2f51cc of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x48906f['getIntersection'](_0x2f51cc['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x5c1181{['afterInit'](){const _0x34b18c=this['editor']['locale'],_0x46c147=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x463737,commandName:_0xf4dc34}of ro)this['editor']['plugins']['has'](_0x463737)&&(_0x46c147['enableDefaultAttributesIntegration'](_0xf4dc34),_0x46c147['registerInlineAttribute'](_0xf4dc34));_0x46c147['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x34b18c,'FORMAT_FONT_SIZE')),_0x46c147['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x34b18c,'FORMAT_FONT_FAMILY')),_0x46c147['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x34b18c,'FORMAT_FONT_COLOR')),_0x46c147['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x34b18c,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x30b573=this['editor'],_0x9c6c6e=_0x30b573['locale'];_0x30b573['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x39128d=>{const _0x4e695c=_0x9c6c6e['t'];if('formatInline'!=_0x39128d['type'])return;const {data:_0x421ed6}=_0x39128d;if(null!=_0x421ed6){if('fontSize'==_0x421ed6['commandName']){const _0x15e630=_0x421ed6['commandParams'][0x0]['value'];if(_0x15e630){const _0x3c54c8=_0x4e695c(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1dd124=>_0x1dd124['model']==_0x15e630)['title'])['toLowerCase']();return{'type':'format','content':c(_0x9c6c6e,'*Set\x20font\x20size:*\x20%0',_0x3c54c8)};}return{'type':'format','content':c(_0x9c6c6e,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x421ed6['commandName']){const _0x1e2ede=_0x421ed6['commandParams'][0x0]['value'];return _0x1e2ede?{'type':'format','content':c(_0x9c6c6e,'*Set\x20font\x20family:*\x20%0',_0x1e2ede)}:{'type':'format','content':c(_0x9c6c6e,'*Reset\x20font\x20family*')};}if('fontColor'==_0x421ed6['commandName']){const _0xe0d6c3=_0x421ed6['commandParams'][0x0]['value'];if(_0xe0d6c3){const _0x43937b=_0x275dee(this['editor']['config']['get']('fontColor.colors'))['find'](_0x52967d=>_0x52967d['model']==_0xe0d6c3);let _0x518015=_0xe0d6c3,_0x4eed41='';return _0x43937b&&(_0x518015=_0x43937b['label'],_0x4eed41=_0x4e695c(_0x518015)['toLowerCase']()),{'type':'format','content':c(_0x9c6c6e,'*Set\x20font\x20color:*\x20%0',_0x4eed41)['trim'](),'color':{'value':_0xe0d6c3,'title':_0x4eed41||_0x518015}};}return{'type':'format','content':c(_0x9c6c6e,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x421ed6['commandName']){const _0x3e76f3=_0x421ed6['commandParams'][0x0]['value'];if(_0x3e76f3){const _0x34b4f4=_0x275dee(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x142db0=>_0x142db0['model']==_0x3e76f3);let _0x302173=_0x3e76f3,_0x4cb19c='';return _0x34b4f4&&(_0x302173=_0x34b4f4['label'],_0x4cb19c=_0x4e695c(_0x302173)['toLowerCase']()),{'type':'format','content':c(_0x9c6c6e,'*Set\x20font\x20background\x20color:*\x20%0',_0x4cb19c)['trim'](),'color':{'value':_0x3e76f3,'title':_0x4cb19c||_0x302173}};}return{'type':'format','content':c(_0x9c6c6e,'*Reset\x20font\x20background\x20color*')};}}});}}class it extends _0x5c1181{['afterInit'](){const _0x42d2d6=this['editor'],_0x27b302=_0x42d2d6['plugins']['get']('TrackChangesEditing'),_0x2a1e9c=_0x42d2d6['commands']['get']('copyFormat'),_0x19a8a8=_0x42d2d6['commands']['get']('pasteFormat');_0x2a1e9c&&_0x19a8a8&&(_0x27b302['enableDefaultAttributesIntegration']('pasteFormat'),_0x27b302['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x2f2813=this['editor'],_0x559d54=_0x2f2813['locale'];_0x2f2813['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e35b1=>{if('formatBlock'!=_0x2e35b1['type']&&'formatInline'!=_0x2e35b1['type'])return;const {data:_0x2ea49f}=_0x2e35b1;if(_0x2ea49f&&'pasteFormat'===_0x2ea49f['commandName']){const _0x530044=[],_0x3c40d4=_0x2ea49f['commandParams'][0x0];for(const [_0x377933,_0x1e7ae2]of Object['entries'](_0x3c40d4))_0x530044['push'](so(_0x2f2813,_0x377933,_0x1e7ae2));return _0x530044['length']?{'type':'format','content':c(_0x559d54,'*Set\x20format\x20to:*\x20%0',_0x530044['join'](',\x20'))}:{'type':'format','content':c(_0x559d54,'*Remove\x20all\x20formatting*')};}});}}function so(_0x487abe,_0xce948e,_0x2445d1){const _0x50e32e=_0x487abe['locale']['t'],_0x3c6f52=_0xce948e['split'](/(?=[A-Z])/)['join']('\x20'),_0x25ab63=_0x50e32e(_0x3c6f52['charAt'](0x0)['toUpperCase']()+_0x3c6f52['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x2445d1)return _0x25ab63;if('fontColor'===_0xce948e||'fontBackgroundColor'===_0xce948e){const _0x2fe621=_0x275dee(_0x487abe['config']['get']('fontColor.colors'))['find'](_0x5ef219=>_0x5ef219['model']==_0x2445d1);return _0x25ab63+'\x20('+(_0x2fe621?_0x50e32e(_0x2fe621['label'])['toLowerCase']():_0x2445d1)+')';}if('fontSize'===_0xce948e&&isNaN(parseFloat(_0x2445d1))){const _0x1e1c12=_0x487abe['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x487abe['config']['get']('fontSize.options'))['find'](_0x374d8f=>_0x374d8f['model']==_0x2445d1);return _0x25ab63+'\x20('+(_0x1e1c12?_0x50e32e(_0x1e1c12['title'])['toLowerCase']():_0x2445d1)+')';}return _0x25ab63+'\x20('+_0x2445d1+')';}class et extends _0x5c1181{['_headingOptions'];['afterInit'](){const _0x5b7de6=this['editor'];if(!_0x5b7de6['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5b7de6['config']['get']('heading.options');const _0x4cf315=_0x5b7de6['locale'],_0x759bc3=_0x5b7de6['plugins']['get']('TrackChangesEditing');_0x759bc3['enableDefaultAttributesIntegration']('heading');for(const _0x45e9dd of this['_headingOptions'])'paragraph'!=_0x45e9dd['model']&&_0x759bc3['descriptionFactory']['registerElementLabel'](_0x45e9dd['model'],_0x13d7be=>{const _0xcdb62=this['_getHeadingLevel'](_0x45e9dd['model']);return null!==_0xcdb62?_0x32b127(_0x13d7be,_0xcdb62):_0x3589cd(_0x13d7be,_0x45e9dd['title']);});function _0x32b127(_0x53d150,_0x4a469e){return c(_0x4cf315,'ELEMENT_HEADING',[_0x53d150,_0x4a469e]);}function _0x3589cd(_0x5e278a,_0x5e2ecb){return c(_0x4cf315,'ELEMENT_HEADING_CUSTOM',[_0x5e278a,_0x5e2ecb]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e1a93=this['editor'],_0x31ca00=_0x1e1a93['locale'];function _0x71cf77(_0xce456e,_0x444774){return c(_0x31ca00,'ELEMENT_HEADING_CUSTOM',[_0xce456e,_0x444774]);}_0x1e1a93['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f6937=>{if('formatBlock'!=_0x2f6937['type'])return;const {data:_0x39fd48}=_0x2f6937;if(_0x39fd48&&'heading'==_0x39fd48['commandName']){const _0x3f3388=_0x39fd48['commandParams'][0x0]['value'],_0x43cf02=this['_getHeadingLevel'](_0x3f3388);if(null!==_0x43cf02)return{'type':'format','content':c(_0x31ca00,'*Change\x20to:*\x20%0',(_0xaf069=0x1,_0x3b9dd4=_0x43cf02,c(_0x31ca00,'ELEMENT_HEADING',[_0xaf069,_0x3b9dd4])))};const _0x3f80fa=this['_headingOptions']['find'](_0x29adad=>_0x29adad['model']===_0x3f3388)['title'];return{'type':'format','content':c(_0x31ca00,'*Change\x20to:*\x20%0',_0x71cf77(0x1,_0x3f80fa))};}var _0xaf069,_0x3b9dd4;});}['_getHeadingLevel'](_0x107558){const _0x10f4f5=_0x107558['match'](/^heading(\d+)/);if(_0x10f4f5)return _0x10f4f5[0x1];const _0x4a3199=this['_headingOptions']?.['find'](_0x34926c=>_0x34926c['model']==_0x107558);if(_0x4a3199&&_0x4a3199['view']){const _0x1353b6=_0x4a3199['view'],_0x4eed2b=(_0x1353b6['name']??_0x1353b6)['match'](/^h(\d+)/);if(_0x4eed2b)return _0x4eed2b[0x1];}return null;}}class nt extends _0x5c1181{['afterInit'](){const _0x35b5f4=this['editor'];if(!_0x35b5f4['plugins']['has']('HighlightEditing'))return;const _0x41e01d=_0x35b5f4['plugins']['get']('TrackChangesEditing'),_0x313c2a=_0x35b5f4['locale'];_0x41e01d['enableDefaultAttributesIntegration']('highlight'),_0x41e01d['registerInlineAttribute']('highlight'),_0x41e01d['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x313c2a,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x512dd1=this['editor'],_0x28287c=_0x512dd1['locale'];_0x512dd1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3efde5=>{if('formatInline'!=_0x3efde5['type'])return;const {data:_0x6d3670}=_0x3efde5;if(_0x6d3670&&'highlight'==_0x6d3670['commandName']){const _0x211986=_0x28287c['t'],_0x5b939e=_0x6d3670['commandParams'][0x0]['value'];if(_0x5b939e){const _0x11faed=_0x512dd1['config']['get']('highlight.options')['find'](_0x8f2101=>_0x8f2101['model']==_0x5b939e),_0x3af5aa=_0x211986(_0x11faed['title'])['toLowerCase']();return{'type':'format','content':c(_0x28287c,'*Set\x20highlight:*\x20%0',_0x3af5aa),'color':{'value':_0x11faed['color'],'title':_0x11faed['title']}};}return{'type':'format','content':c(_0x28287c,'*Remove\x20highlight*',c(_0x28287c,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x5c1181{['afterInit'](){const _0xc09fd8=this['editor'];if(!_0xc09fd8['plugins']['has']('HorizontalLineEditing'))return;_0xc09fd8['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x5394e8=_0xc09fd8['plugins']['get']('TrackChangesEditing'),_0x8b7eff=_0xc09fd8['locale'];_0x5394e8['descriptionFactory']['registerElementLabel']('horizontalLine',_0x290e68=>c(_0x8b7eff,'ELEMENT_HORIZONTAL_LINE',_0x290e68)),_0xc09fd8['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x3b8055,{writer:_0x2ac288,options:_0x35cd72})=>{if(!_0x35cd72['showSuggestionHighlights'])return null;const _0x2e1909=_0x2ac288['createContainerElement']('div'),_0x134878=_0x2ac288['createEmptyElement']('hr');return _0x2ac288['addClass']('ck-horizontal-line',_0x2e1909),_0x2ac288['insert'](_0x2ac288['createPositionAt'](_0x2e1909,0x0),_0x134878),_0x2e1909;},'converterPriority':'high'});}}class ot extends _0x5c1181{['afterInit'](){const _0x5ad426=this['editor'];if(!_0x5ad426['plugins']['has']('HtmlEmbed'))return;const _0x4dcbe9=_0x5ad426['plugins']['get']('TrackChangesEditing'),_0x56a21a=_0x5ad426['locale'];_0x4dcbe9['descriptionFactory']['registerElementLabel']('rawHtml',_0x2955f8=>c(_0x56a21a,'ELEMENT_HTML_EMBED',_0x2955f8)),_0x4dcbe9['enableDefaultAttributesIntegration']('htmlEmbed'),_0x4dcbe9['registerBlockAttribute']('value'),_0x4dcbe9['descriptionFactory']['registerDescriptionCallback'](_0x323474=>{if('attribute'!=_0x323474['type'])return;const {data:_0x2f7787}=_0x323474;if(_0x2f7787&&'value'==_0x2f7787['key']&&_0x323474['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x18718b=c(_0x56a21a,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x56a21a,'*Change\x20%0\x20content*',_0x18718b)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b9b8f=this['editor'],_0x31b8b9=_0x5b9b8f['locale'];_0x5b9b8f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d3cdb=>{if('formatBlock'!=_0x3d3cdb['type'])return;const {data:_0x30cb4b}=_0x3d3cdb;if(_0x30cb4b&&'htmlEmbed'==_0x30cb4b['commandName']){const _0x1f31ef=c(_0x31b8b9,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x31b8b9,'*Change\x20%0\x20content*',_0x1f31ef)};}});}}class rt extends _0x5c1181{['afterInit'](){const _0x53d61f=this['editor'];if(!_0x53d61f['plugins']['has']('ImageEditing'))return;const _0x37c1a6=_0x53d61f['plugins']['get']('TrackChangesEditing'),_0x25851b=_0x53d61f['plugins']['get']('ImageUtils'),_0x297627=_0x53d61f['locale'];_0x37c1a6['enableCommand']('insertImage'),_0x37c1a6['descriptionFactory']['registerElementLabel']('imageBlock',_0x17393f=>c(_0x297627,'ELEMENT_IMAGE',_0x17393f)),_0x37c1a6['descriptionFactory']['registerElementLabel']('imageInline',_0x257179=>c(_0x297627,'ELEMENT_INLINE_IMAGE',_0x257179)),_0x37c1a6['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x297627,'ELEMENT_CAPTION')),_0x53d61f['plugins']['has']('ImageUploadEditing')&&_0x37c1a6['enableCommand']('uploadImage'),_0x53d61f['plugins']['has']('ImageBlockEditing')&&_0x53d61f['plugins']['has']('ImageInlineEditing')&&(_0x37c1a6['enableCommand']('imageTypeInline',(_0x16a32f,_0xcbd25e)=>{const _0x111385=_0x25851b['getClosestSelectedImageElement'](_0x53d61f['model']['document']['selection']);_0x53d61f['model']['change'](()=>{_0x37c1a6['markBlockFormat'](_0x111385,{'commandName':'imageTypeInline','commandParams':[_0xcbd25e]},[],'convertBlockImageToInline');});}),_0x37c1a6['enableCommand']('imageTypeBlock',(_0xaeacf3,_0x182b47)=>{_0x53d61f['model']['change'](_0x4ef4fc=>{let _0x538b7e=_0x25851b['getClosestSelectedImageElement'](_0x53d61f['model']['document']['selection']),_0x16639e=_0x4ef4fc['createRangeOn'](_0x538b7e);const _0x51fef3=_0xcc0df3['fromPosition'](_0x16639e['start'],'toPrevious'),_0xd9902d=_0xcc0df3['fromPosition'](_0x16639e['end'],'toNext');_0x37c1a6['forceDefaultExecution'](()=>_0xaeacf3(_0x182b47)),_0x538b7e=_0x25851b['getClosestSelectedImageElement'](_0x53d61f['model']['document']['selection']),_0x16639e=_0x4ef4fc['createRangeOn'](_0x538b7e);const _0x327745=_0x4ef4fc['createRange'](_0x51fef3,_0xd9902d);_0x51fef3['detach'](),_0xd9902d['detach'](),_0x37c1a6['markBlockFormat'](_0x538b7e,{'commandName':'imageTypeInline','commandParams':[_0x182b47]},[],'convertInlineImageToBlock'),_0x327745['start']['isBefore'](_0x16639e['start'])&&_0x37c1a6['markInsertion'](_0x4ef4fc['createRange'](_0x327745['start'],_0x16639e['start']),'convertInlineImageToBlock'),_0x16639e['end']['isBefore'](_0x327745['end'])&&_0x37c1a6['markInsertion'](_0x4ef4fc['createRange'](_0x16639e['end'],_0x327745['end']),'convertInlineImageToBlock');});}),_0x37c1a6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x37c1a6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x37c1a6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x37c1a6['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x37c1a6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x37c1a6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3b62cf])=>{const _0x510553=_0x37c1a6['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x19c6ef=_0x3b62cf['start'],_0x27a82b=_0x3b62cf['end'];const _0xfc9c00=_0x53d61f['model']['schema']['getNearestSelectionRange'](_0x19c6ef,'backward'),_0x2f615b=_0x53d61f['model']['schema']['getNearestSelectionRange'](_0x27a82b,'forward');_0xfc9c00['isCollapsed']&&(_0x19c6ef=_0xfc9c00['start']),_0x2f615b['isCollapsed']&&(_0x27a82b=_0x2f615b['end']),_0x510553([_0x53d61f['model']['createRange'](_0x19c6ef,_0x27a82b)]);}),_0x37c1a6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xd3a944),_0x37c1a6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xd3a944)),_0x53d61f['plugins']['has']('ImageCaptionEditing')&&(_0x37c1a6['enableCommand']('toggleImageCaption',(_0x1f328a,_0x47e182)=>{const _0x4a2a00=_0x53d61f['plugins']['get']('ImageCaptionUtils');let _0x53337c=_0x25851b['getClosestSelectedImageElement'](_0x53d61f['model']['document']['selection']),_0xf6c982=_0x4a2a00['getCaptionFromImageModelElement'](_0x53337c);_0x53d61f['model']['change'](()=>{if(_0xf6c982)return void _0x37c1a6['markDeletion'](_0x53d61f['model']['createRangeOn'](_0xf6c982));const _0x1fb151=_0x25851b['isBlockImage'](_0x53337c);_0x1f328a(_0x47e182),_0x53337c=_0x25851b['getClosestSelectedImageElement'](_0x53d61f['model']['document']['selection']),_0xf6c982=_0x4a2a00['getCaptionFromImageModelElement'](_0x53337c),_0x37c1a6['markInsertion'](_0x53d61f['model']['createRangeOn'](_0xf6c982),_0x1fb151?null:'imageCaption');});}),_0x37c1a6['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xd3a944));const _0x31aaff=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x47909a(_0xbe84dc,_0x2f4c20){const _0x14ce0f=_0x31aaff['findIndex'](({type:_0x370c95,subType:_0x100d57})=>_0xbe84dc['type']==_0x370c95&&_0xbe84dc['subType']==_0x100d57),_0x5d5743=_0x31aaff['findIndex'](({type:_0x42182d,subType:_0x5dfd80})=>_0x2f4c20['type']==_0x42182d&&_0x2f4c20['subType']==_0x5dfd80);if(_0x14ce0f<0x0||_0x5d5743<0x0)return!0x1;const _0x4f54ad=_0xbe84dc['getFirstRange'](),_0x4f1ee7=_0x2f4c20['getFirstRange']();if((0x0==_0x14ce0f||0x1==_0x14ce0f)&&0x2==_0x5d5743&&_0x4f54ad['isIntersecting'](_0x4f1ee7))return!0x0;if(0x2==_0x14ce0f&&0x3==_0x5d5743){const _0xaa51d1=_0x37c1a6['_findSuggestions'](_0x4f54ad,'insertion')['filter'](({suggestion:_0x184053,meta:_0x3940d6})=>_0x3940d6['isOwn']&&'convertInlineImageToBlock'==_0x184053['subType']);if(_0xaa51d1['length']>0x1&&_0x4f1ee7['end']['isEqual'](_0x4f54ad['start']))return!0x0;if(0x1==_0xaa51d1['length']&&(_0x4f54ad['start']['isEqual'](_0x4f1ee7['end'])||_0x4f54ad['end']['isEqual'](_0x4f1ee7['start'])))return!0x0;}if(0x3==_0x14ce0f&&0x3==_0x5d5743&&_0x4f54ad['start']['isBefore'](_0x4f1ee7['start'])){const _0x494cb4=_0x4f54ad['end']['nodeAfter'],_0xc5ad86=_0x4f1ee7['start']['nodeBefore'];return _0x25851b['isBlockImage'](_0x494cb4)&&_0x494cb4===_0xc5ad86;}return!0x1;}function _0xd3a944(_0x34e9fb,_0x20853e){return _0x47909a(_0x34e9fb,_0x20853e)?[_0x34e9fb,_0x20853e]:_0x47909a(_0x20853e,_0x34e9fb)?[_0x20853e,_0x34e9fb]:null;}_0x53d61f['plugins']['has']('ImageResize')&&(_0x37c1a6['enableDefaultAttributesIntegration']('resizeImage'),_0x37c1a6['registerBlockAttribute']('resizedWidth'),_0x37c1a6['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x297627,'FORMAT_IMAGE_SIZE'))),_0x53d61f['plugins']['has']('ImageTextAlternativeEditing')&&(_0x37c1a6['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x37c1a6['registerBlockAttribute']('alt')),_0x53d61f['plugins']['has']('PictureEditing')&&(_0x37c1a6['registerBlockAttribute']('sources'),_0x37c1a6['descriptionFactory']['registerDescriptionCallback'](_0x54d3c9=>{if('attribute'!=_0x54d3c9['type'])return;const {data:_0xf82a1f}=_0x54d3c9;return _0xf82a1f&&'sources'==_0xf82a1f['key']?{'type':'format','content':''}:void 0x0;})),_0x53d61f['plugins']['has']('ImageSizeAttributes')&&(_0x37c1a6['registerBlockAttribute']('width'),_0x37c1a6['registerBlockAttribute']('height'),_0x37c1a6['descriptionFactory']['registerDescriptionCallback'](_0x53e055=>{if('attribute'!=_0x53e055['type'])return;const {data:_0x1a4ee0}=_0x53e055;return!_0x1a4ee0||'width'!=_0x1a4ee0['key']&&'height'!=_0x1a4ee0['key']?void 0x0:{'type':'format','content':''};})),_0x37c1a6['descriptionFactory']['registerDescriptionCallback'](_0x16b107=>{if(!!_0x31aaff['find'](({type:_0x40368b,subType:_0x38984e})=>_0x16b107['type']==_0x40368b&&_0x16b107['subType']==_0x38984e))return _0x16b107['previous']?{}:void 0x0;}),_0x37c1a6['descriptionFactory']['registerDescriptionCallback'](_0x4ad534=>{if('insertion'==_0x4ad534['type']||'deletion'==_0x4ad534['type']){const _0x92a124=_0x4ad534['getContainedElement']();if(_0x92a124&&_0x92a124['is']('element','caption'))return{'type':'insertion'==_0x4ad534['type']?'addObject':'removeObject','element':_0x92a124,'quantity':0x1};}}),_0x37c1a6['descriptionFactory']['registerDescriptionCallback'](_0x526906=>'formatBlock'==_0x526906['type']&&'convertInlineImageToBlock'==_0x526906['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x526906['type']&&'convertBlockImageToInline'==_0x526906['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x37c1a6['descriptionFactory']['registerDescriptionCallback'](_0x1d102a=>{if('attribute'!=_0x1d102a['type'])return;const {data:_0xc3837c}=_0x1d102a;if(!_0xc3837c||'alt'!=_0xc3837c['key'])return;const _0x252592=_0xc3837c['newValue'];return _0x252592?{'type':'format','content':c(_0x297627,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x252592+'\x22')}:{'type':'format','content':c(_0x297627,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3ec4af=this['editor'],_0x40c06a=_0x3ec4af['locale'];_0x3ec4af['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x26a69d=>{if('formatBlock'!=_0x26a69d['type']&&'formatInline'!=_0x26a69d['type'])return;const {data:_0xed4f5c}=_0x26a69d;if(_0xed4f5c){if('imageTextAlternative'==_0xed4f5c['commandName']){const _0x302a57=_0xed4f5c['commandParams'][0x0]['newValue'];return _0x302a57?{'type':'format','content':c(_0x40c06a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x302a57+'\x22')}:{'type':'format','content':c(_0x40c06a,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0xed4f5c['commandName']){const _0x62e665=_0xed4f5c['commandParams'][0x0]['width'];return _0x62e665?{'type':'format','content':c(_0x40c06a,'*Set\x20image\x20width:*\x20%0',_0x62e665)}:{'type':'format','content':c(_0x40c06a,'*Reset\x20image\x20width*')};}}});}}class at extends _0x5c1181{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x424a7f=this['editor']['locale'],_0x812c40=this['editor']['plugins']['get']('TrackChangesEditing');_0x812c40['enableDefaultAttributesIntegration']('replaceImageSource'),_0x812c40['registerBlockAttribute']('src'),_0x812c40['descriptionFactory']['registerDescriptionCallback'](_0x1aa157=>{if('attribute'!=_0x1aa157['type'])return;const {data:_0x5aebbd}=_0x1aa157;return _0x5aebbd&&'src'==_0x5aebbd['key']?_0x5aebbd['newValue']&&_0x5aebbd['oldValue']?{'type':'format','content':c(_0x424a7f,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x43c68d=this['editor']['plugins']['get']('TrackChangesEditing');_0x43c68d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x43c68d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x43c68d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x43c68d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3ae9cb=this['editor'],_0x51d09e=_0x3ae9cb['locale'];_0x3ae9cb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x22aafe=>{if('formatBlock'!=_0x22aafe['type']&&'formatInline'!=_0x22aafe['type'])return;const {data:_0x33a43e}=_0x22aafe;if(!_0x33a43e||'replaceImageSource'!=_0x33a43e['commandName'])return;return{'type':'format','content':c(_0x51d09e,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x5c1181{['afterInit'](){const _0x3d71ce=this['editor'];if(!_0x3d71ce['plugins']['has']('ImageStyleEditing'))return;const _0x4ca04a=_0x3d71ce['plugins']['get']('TrackChangesEditing'),_0x28e8d8=_0x3d71ce['plugins']['get']('ImageUtils'),_0x3fbc86={};_0x4ca04a['enableCommand']('imageStyle',(_0x21465e,_0x587fa8)=>{const _0x10c8b8=_0x3d71ce['plugins']['get']('Users')['me'],_0xb28fe3=_0x3d71ce['commands']['get']('imageStyle');let _0x5e42e0=_0x28e8d8['getClosestSelectedImageElement'](_0x3d71ce['model']['document']['selection']),_0x45a081=_0x3d71ce['model']['createRangeOn'](_0x5e42e0),_0x26d149=_0xb28fe3['value'];if(_0x26d149==_0x587fa8['value'])return;const _0x4885d0={'commandName':'imageStyle','commandParams':[_0x587fa8],'formatGroupId':_0x1b595f()};_0x3d71ce['model']['change'](()=>{if(_0x4ca04a['getSuggestions']()['filter'](_0x554d11=>_0x554d11['isInContent']&&_0x10c8b8==_0x554d11['author']&&('formatBlock'==_0x554d11['type']||'formatInline'==_0x554d11['type'])&&('imageStylePreApply'==_0x554d11['subType']||'imageStylePostApply'==_0x554d11['subType'])&&_0x554d11['getFirstRange']()['isEqual'](_0x45a081))['forEach'](_0x3e74c7=>_0x4ca04a['discardSuggestion'](_0x3e74c7['head'])),_0x5e42e0=_0x28e8d8['getClosestSelectedImageElement'](_0x3d71ce['model']['document']['selection']),_0x45a081=_0x3d71ce['model']['createRangeOn'](_0x5e42e0),_0xb28fe3['refresh'](),_0x3d71ce['commands']['get']('imageTypeInline')['refresh'](),_0x3d71ce['commands']['get']('imageTypeBlock')['refresh'](),_0x26d149=_0xb28fe3['value'],_0x26d149!=_0x587fa8['value'])return _0x28e8d8['isInlineImage'](_0x5e42e0)&&_0xb28fe3['shouldConvertImageType'](_0x587fa8['value'],_0x5e42e0)?(_0x21465e({..._0x587fa8,'setImageSizes':!0x1}),_0x5e42e0=_0x28e8d8['getClosestSelectedImageElement'](_0x3d71ce['model']['document']['selection']),void _0x4ca04a['markBlockFormat'](_0x5e42e0,{..._0x4885d0,'commandReversedParams':[{'value':_0x26d149||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x28e8d8['isBlockImage'](_0x5e42e0)?_0x4ca04a['markBlockFormat'](_0x5e42e0,_0x4885d0,[],'imageStylePostApply'):_0x4ca04a['markInlineFormat'](_0x45a081,_0x4885d0,'imageStylePostApply'));});});for(const _0xfe93aa of _0x3d71ce['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x3fbc86[_0xfe93aa['name']]=_0xfe93aa['title']['toLowerCase']();_0x4ca04a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4ca04a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4ca04a['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4ca04a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x5cb6e4])=>{_0x28e8d8['setImageNaturalSizeAttributes'](_0x5cb6e4['getContainedElement']());}),_0x4ca04a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x6cd3d0,_0x21f92a)=>{_0x4ca04a['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x6cd3d0,{'commandName':_0x21f92a['commandName'],'commandParams':_0x21f92a['commandReversedParams']});}),_0x4ca04a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x6d8b18,_0x230361){if(_0x20f4d2(_0x6d8b18,_0x230361))return[_0x6d8b18,_0x230361];if(_0x20f4d2(_0x230361,_0x6d8b18))return[_0x230361,_0x6d8b18];return null;});const _0x2b00bd=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x20f4d2(_0x9b1d4b,_0x51a11a){const _0x146a36=_0x2b00bd['findIndex'](({type:_0x50a32d,subType:_0x2eb204})=>_0x9b1d4b['type']==_0x50a32d&&_0x9b1d4b['subType']==_0x2eb204),_0x3055c8=_0x2b00bd['findIndex'](({type:_0x404ba8,subType:_0x2ca2a6})=>_0x51a11a['type']==_0x404ba8&&_0x51a11a['subType']==_0x2ca2a6);if(_0x146a36<0x0||_0x3055c8<0x0)return!0x1;const _0x5a11b1=_0x9b1d4b['getFirstRange'](),_0x4ff9b7=_0x51a11a['getFirstRange']();if((0x0==_0x146a36||0x1==_0x146a36)&&0x2==_0x3055c8&&_0x5a11b1['isIntersecting'](_0x4ff9b7))return!0x0;if(0x2==_0x146a36&&0x3==_0x3055c8){const _0x28768a=_0x4ca04a['_findSuggestions'](_0x5a11b1,'insertion')['filter'](({suggestion:_0x1dc732,meta:_0x170958})=>_0x170958['isOwn']&&'convertInlineImageToBlock'==_0x1dc732['subType']);if(_0x28768a['length']>0x1&&_0x4ff9b7['end']['isEqual'](_0x5a11b1['start']))return!0x0;if(0x1==_0x28768a['length']&&(_0x5a11b1['start']['isEqual'](_0x4ff9b7['end'])||_0x5a11b1['end']['isEqual'](_0x4ff9b7['start'])))return!0x0;}if(0x3==_0x146a36&&0x3==_0x3055c8&&_0x5a11b1['start']['isBefore'](_0x4ff9b7['start'])){const _0x2a0c01=_0x5a11b1['end']['nodeAfter'],_0xd3c6a5=_0x4ff9b7['start']['nodeBefore'];return _0x28e8d8['isBlockImage'](_0x2a0c01)&&_0x2a0c01===_0xd3c6a5;}return!0x1;}_0x3d71ce['model']['document']['registerPostFixer'](()=>{let _0x57c725=!0x1;const _0x32b6f2=Array['from'](_0x3d71ce['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xeede50,data:_0x5c1d26}of _0x32b6f2){const {group:_0x45706a,type:_0x16bb23,subType:_0x325745,id:_0x27452b}=_0x4ca04a['_splitMarkerName'](_0xeede50);if('suggestion'==_0x45706a&&_0x4ca04a['hasSuggestion'](_0x27452b)){if('formatBlock'==_0x16bb23&&('imageStylePreApply'==_0x325745||'imageStylePostApply'==_0x325745)){const _0x39e798=_0x4ca04a['getSuggestion'](_0x27452b);if(_0x5c1d26['newRange']){const _0x5c4a0d=_0x39e798['getFirstRange']()['getContainedElement']();if(_0x28e8d8['isBlockImage'](_0x5c4a0d))continue;_0x4ca04a['discardSuggestion'](_0x39e798),_0x57c725=!0x0;}}if('insertion'==_0x16bb23&&'imageCaption'==_0x325745&&!_0x5c1d26['newRange']){const _0x3fb36c=_0x4ca04a['getSuggestion'](_0x27452b);_0x3fb36c['next']&&_0x3fb36c['next']['isInContent']&&(_0x4ca04a['discardSuggestion'](_0x3fb36c['next']),_0x57c725=!0x0);}}}return _0x57c725;}),this['_registerLegacyDescription'](_0x3fbc86);}['_registerLegacyDescription'](_0x4b1cbc){const _0x40368d=this['editor'],_0x1d732e=_0x40368d['locale'];_0x40368d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b75aa=>{if('formatBlock'!=_0x5b75aa['type']&&'formatInline'!=_0x5b75aa['type'])return;const {data:_0x45ccba}=_0x5b75aa;if(!_0x45ccba||'imageStyle'!=_0x45ccba['commandName'])return;const _0x127c89=_0x45ccba['commandParams'][0x0]['value'];return _0x40be8f('side'===_0x127c89?c(_0x1d732e,'FORMAT_SIDE_IMAGE'):_0x4b1cbc[_0x127c89]||_0x127c89);function _0x40be8f(_0xf3ffe3){return{'type':'format','content':c(_0x1d732e,'*Format:*\x20%0',_0xf3ffe3)};}});}}class ut extends _0x5c1181{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x165e01){super(_0x165e01),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x531147=this['editor'],_0x28a9e3=_0x531147['commands']['get']('importWord'),_0x29edac=_0x531147['commands']['get']('trackChanges');_0x28a9e3&&(_0x28a9e3['on']('execute',(_0x5399ab,[,_0x522501])=>{this['_trackChangesValueDuringImport']=_0x29edac['value'],_0x522501['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x28a9e3,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x28a9e3,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x29edac['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x531147['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x42a1e1,_0x44f573){const {suggestions:_0x57cbe3}=_0x44f573,_0x43e95e=this['editor']['commands']['get']('trackChanges'),_0xec3471=_0x43e95e['value'];this['_trackChangesValueDuringImport']!==_0xec3471&&(_0x43e95e['execute'](),this['_trackChangesExecuted']=!0x0),_0x57cbe3&&_0x57cbe3['forEach'](({id:_0x54f8ab,type:_0x5db368,author:_0x265979,created_at:_0x11e4bc})=>{const _0x262f58={'id':_0x54f8ab,'type':_0x5db368,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x265979,'createdAt':_0x11e4bc?new Date(_0x11e4bc):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x262f58);});}}class ft extends _0x5c1181{['afterInit'](){const _0x382e84=this['editor'],_0x271550=_0x382e84['plugins']['get']('TrackChangesEditing');if(_0x382e84['plugins']['has']('IndentEditing')&&(_0x271550['enableCommand']('indent'),_0x271550['enableCommand']('outdent')),_0x382e84['plugins']['has']('IndentBlock')){for(const _0x5b145c of['indentBlock','outdentBlock'])_0x271550['enableDefaultAttributesIntegration'](_0x5b145c);}const _0x56a228=_0x382e84['locale'];_0x271550['registerBlockAttribute']('blockIndent'),_0x271550['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x56a228,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x443a0d=this['editor'],_0x3d1d4d=_0x443a0d['locale'],_0x4fa06d=_0x443a0d['plugins']['get']('TrackChangesEditing');_0x4fa06d['descriptionFactory']['registerDescriptionCallback'](_0x18222f=>{if('formatBlock'!=_0x18222f['type'])return;const {data:_0x2912ad}=_0x18222f;if(!_0x2912ad)return;if('indentBlock'!=_0x2912ad['commandName']&&'outdentBlock'!=_0x2912ad['commandName'])return;const _0x2f8572=_0x18222f['getItems']()[0x0],_0x3abacc=_0x4fa06d['descriptionFactory']['getItemLabel'](_0x2f8572);return'indentBlock'==_0x2912ad['commandName']?{'type':'format','content':c(_0x3d1d4d,'*Indent:*\x20%0',_0x3abacc)}:'outdentBlock'==_0x2912ad['commandName']?{'type':'format','content':c(_0x3d1d4d,'*Outdent:*\x20%0',_0x3abacc)}:void 0x0;});}}class ht extends _0x5c1181{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x5c1181{['afterInit'](){const _0x495644=this['editor'];if(!_0x495644['plugins']['has']('LinkEditing'))return;const _0x260428=_0x495644['plugins']['get']('TrackChangesEditing'),_0x22d3c0=_0x495644['commands']['get']('link');_0x260428['enableDefaultAttributesIntegration']('link'),_0x260428['enableDefaultAttributesIntegration']('unlink'),_0x260428['registerInlineAttribute']('linkHref');for(const _0xda141c of _0x22d3c0['manualDecorators'])_0x260428['registerInlineAttribute'](_0xda141c['id']),_0x260428['descriptionFactory']['registerAttributeLabel'](_0xda141c['id'],'link\x20('+_0xda141c['label']['toLowerCase']()+')');_0x260428['descriptionFactory']['registerDescriptionCallback'](_0x476b47=>{if('attribute'!=_0x476b47['type'])return;const {data:_0x525c05}=_0x476b47;if(!_0x525c05||'linkHref'!=_0x525c05['key'])return;const _0x14a924=_0x525c05['newValue'],_0xb269ef=_0x495644['locale'];return{'type':'format','content':null==_0x14a924?c(_0xb269ef,'*Remove\x20link*'):c(_0xb269ef,'*Set\x20link:*\x20%0','\x22'+_0x14a924+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x277f77=this['editor'],_0x493752=_0x277f77['locale'];_0x277f77['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x890deb=>{if('formatInline'!=_0x890deb['type'])return;const {data:_0x4073bb}=_0x890deb;if(_0x4073bb){if('link'==_0x4073bb['commandName']){const _0x3f3839=_0x4073bb['commandParams'][0x0];return{'type':'format','content':c(_0x493752,'*Set\x20link:*\x20%0','\x22'+_0x3f3839+'\x22')};}return'unlink'==_0x4073bb['commandName']?{'type':'format','content':c(_0x493752,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x5c1181{['afterInit'](){const _0x28ea8a=this['editor'],_0xb46465=_0x28ea8a['locale'];if(!_0x28ea8a['plugins']['has']('LegacyListEditing'))return;const _0x3a61b8=_0x28ea8a['plugins']['get']('TrackChangesEditing'),_0x1c2383=_0x28ea8a['plugins']['has']('LegacyTodoListEditing');function _0x27e1dc(_0x5e634c){return()=>{const _0x287f19=_0x28ea8a['model']['document']['selection'],_0x44beea=_0x28ea8a['commands']['get'](_0x5e634c);if(_0x44beea['value'])return void _0x28ea8a['execute']('paragraph',{});const _0x5b9f88=_0x5e634c['slice'](0x0,-0x4),_0x2607bf=function(_0x4e69ec,_0x5ae196,_0x5d4c25){let _0x2380ce=Array['from'](_0x4e69ec)['filter'](_0x302241=>function(_0x2a5901,_0x1a3ff8){return _0x1a3ff8['checkChild'](_0x2a5901['parent'],'listItem')&&!_0x1a3ff8['isObject'](_0x2a5901);}(_0x302241,_0x5d4c25));_0x2380ce=_0x2380ce['filter'](_0x1a641d=>!_0x1a641d['is']('element','listItem')||_0x1a641d['getAttribute']('listType')!=_0x5ae196);const _0x5f2ec4=new Set();for(const _0x2d0947 of _0x2380ce)_0x2d0947['is']('element','listItem')?_0x5f2ec4['add'](Le(_0x2d0947)):_0x5f2ec4['add'](_0x2d0947);return Array['from'](_0x5f2ec4);}(_0x287f19['getSelectedBlocks'](),_0x5b9f88,_0x28ea8a['model']['schema']);_0x28ea8a['model']['change'](()=>{for(const _0x30e9c8 of _0x2607bf)_0x3a61b8['markBlockFormat'](_0x30e9c8,{'commandName':_0x5e634c,'commandParams':[{'forceValue':!_0x44beea['value']}],'formatGroupId':'blockName'},Ee(_0x30e9c8));});};}function _0x3ef6dc(_0x408a0b){return()=>{const _0x55f5aa=function(_0x4eaba4){let _0x9eb5f5=Array['from'](_0x4eaba4);const _0x413627=_0x9eb5f5['findIndex'](_0x4b704a=>'listItem'!=_0x4b704a['name']);return _0x413627>-0x1&&(_0x9eb5f5=_0x9eb5f5['slice'](0x0,_0x413627)),_0x9eb5f5;}(_0x28ea8a['model']['document']['selection']['getSelectedBlocks']()),_0x3338f8=_0x28ea8a['model']['createRange'](_0x28ea8a['model']['createPositionAt'](_0x55f5aa[0x0],'before'),_0x28ea8a['model']['createPositionAt'](_0x55f5aa[_0x55f5aa['length']-0x1],'end'));_0x28ea8a['model']['change'](()=>{_0x3a61b8['markBlockFormat'](_0x3338f8,{'commandName':_0x408a0b,'commandParams':[],'formatGroupId':'listIndent'},function(_0x48f0b2){const _0x3950d1=new Set();for(const _0x467554 of _0x48f0b2){let _0x8d5b9b=_0x467554['nextSibling'];for(;_0x8d5b9b&&_0x8d5b9b['getAttribute']('listIndent')>_0x467554['getAttribute']('listIndent');)_0x3950d1['add'](_0x8d5b9b),_0x8d5b9b=_0x8d5b9b['nextSibling'];}return Array['from'](_0x3950d1);}(_0x55f5aa));});};}_0x3a61b8['enableCommand']('numberedList',_0x27e1dc('numberedList')),_0x3a61b8['enableCommand']('bulletedList',_0x27e1dc('bulletedList')),_0x1c2383&&_0x3a61b8['enableCommand']('todoList',_0x27e1dc('todoList')),_0x3a61b8['enableCommand']('indentList',_0x3ef6dc('indentList')),_0x3a61b8['enableCommand']('outdentList',_0x3ef6dc('outdentList')),_0x1c2383&&_0x3a61b8['enableCommand']('checkTodoList',()=>{const _0xe06984=_0x28ea8a['commands']['get']('checkTodoList'),_0x208f64=Array['from'](_0xe06984['_selectedElements']);_0x208f64['filter'](_0x4cc8f7=>_0x4cc8f7['getAttribute']('todoListChecked')!=_0xe06984['value']),_0x28ea8a['model']['change'](()=>{for(const _0x1b09ab of _0x208f64)_0x3a61b8['markBlockFormat'](_0x1b09ab,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0xe06984['value']}]});});}),_0x3a61b8['descriptionFactory']['registerElementLabel']('listItem',_0x142ed0=>c(_0xb46465,'ELEMENT_LIST_ITEM',_0x142ed0)),_0x3a61b8['descriptionFactory']['registerDescriptionCallback'](_0xd5a4d2=>{if('formatBlock'!=_0xd5a4d2['type']&&'formatInline'!=_0xd5a4d2['type'])return;const {data:_0xf9654d}=_0xd5a4d2;if(_0xf9654d){if('numberedList'==_0xf9654d['commandName']||'bulletedList'==_0xf9654d['commandName']||'todoList'==_0xf9654d['commandName'])switch(_0xf9654d['commandName']['replace']('List','')){case'bulleted':return _0x5059f5(c(_0xb46465,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5059f5(c(_0xb46465,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5059f5(c(_0xb46465,'ELEMENT_TODO_LIST'));}if('indentList'==_0xf9654d['commandName'])return{'type':'format','content':c(_0xb46465,'*Indent:*\x20%0',c(_0xb46465,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0xf9654d['commandName'])return{'type':'format','content':c(_0xb46465,'*Outdent:*\x20%0',c(_0xb46465,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0xf9654d['commandName'])return _0xf9654d['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0xb46465,'*Check\x20item*')}:{'type':'format','content':c(_0xb46465,'*Uncheck\x20item*')};}function _0x5059f5(_0x9d6dd1){return{'type':'format','content':c(_0xb46465,'*Change\x20to:*\x20%0',_0x9d6dd1)};}});}}function Le(_0x50a7a6){const _0x10a38e=_0x50a7a6['getAttribute']('listIndent');if(0x0==_0x10a38e)return _0x50a7a6;let _0x399f8c=_0x50a7a6;for(;_0x50a7a6['previousSibling']&&_0x50a7a6['previousSibling']['is']('element','listItem');){const _0x5155b4=_0x50a7a6['previousSibling']['getAttribute']('listIndent');if(_0x5155b4==_0x10a38e)_0x399f8c=_0x50a7a6['previousSibling'];else{if(_0x5155b4<_0x10a38e)break;}_0x50a7a6=_0x50a7a6['previousSibling'];}return _0x399f8c;}function Ee(_0x33d74e){const _0x165808=[];if(_0x33d74e['is']('element','listItem')&&_0x33d74e['getAttribute']('listIndent')>0x0){let _0x21bb9e=_0x33d74e['nextSibling'];for(;_0x21bb9e&&'listItem'==_0x21bb9e['name']&&_0x21bb9e['getAttribute']('listIndent')==_0x33d74e['getAttribute']('listIndent');)_0x165808['push'](_0x21bb9e),_0x21bb9e=_0x21bb9e['nextSibling'];}return _0x165808;}class Q extends _0x5c1181{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x4942d2=this['editor']['config']['get']('list.properties'),_0x32970f=this['editor']['plugins']['get']('TrackChangesEditing');_0x4942d2['styles']&&_0x32970f['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x4942d2['reversed']&&_0x32970f['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x4942d2['startIndex']&&_0x32970f['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x32970f['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x4f5deb,_0x147977={}){const _0x4562e7=this['editor']['plugins']['get']('TrackChangesEditing'),_0xffb982=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x4562e7['markMultiRangeBlockFormat'](_0xffb982,{'commandName':'listStyle','commandParams':[{'type':_0x147977['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x1a120f,_0x9f5425={}){const _0x211fa7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5903c9=this['_getSuggestionBlocks'](_0x258714=>_0x258714['is']('element','listItem')&&'numbered'===_0x258714['getAttribute']('listType'));if(_0x5903c9['length']<0x1)return;const _0x44e113=_0x5903c9['map'](_0x3cb6f9=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3cb6f9,'before'),this['editor']['model']['createPositionAt'](_0x3cb6f9,0x0)));this['editor']['model']['change'](()=>{_0x211fa7['markMultiRangeBlockFormat'](_0x44e113,{'commandName':'listReversed','commandParams':[{'reversed':_0x9f5425['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x4032a8,_0x48c399={}){const _0x533d85=this['editor']['plugins']['get']('TrackChangesEditing'),_0x55ba65=this['_getSuggestionBlocks'](_0x32f963=>_0x32f963['is']('element','listItem')&&'numbered'===_0x32f963['getAttribute']('listType'));if(_0x55ba65['length']<0x1)return;const _0x46a274=_0x55ba65['map'](_0x3c6b5c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3c6b5c,'before'),this['editor']['model']['createPositionAt'](_0x3c6b5c,0x0)));this['editor']['model']['change'](()=>{_0x533d85['markMultiRangeBlockFormat'](_0x46a274,{'commandName':'listStart','commandParams':[{'startIndex':_0x48c399['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x341745){if('formatBlock'!=_0x341745['type']&&'formatInline'!=_0x341745['type'])return;const _0x1fe9b7=this['editor']['locale'],{data:_0x1ac6d1}=_0x341745;if(!_0x1ac6d1)return;let _0x29a43f,_0x4390c2;switch(_0x1ac6d1['commandName']){case'listStyle':_0x29a43f='*Change\x20to:*\x20%0',_0x4390c2={'type':'format','content':c(_0x1fe9b7,_0x29a43f,c(_0x1fe9b7,this['_getTranslationKeyForListStyle'](_0x1ac6d1['commandParams'][0x0]['type'])))};break;case'listReversed':_0x29a43f=_0x1ac6d1['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4390c2={'type':'format','content':c(_0x1fe9b7,_0x29a43f)};break;case'listStart':_0x29a43f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4390c2={'type':'format','content':c(_0x1fe9b7,_0x29a43f,_0x1ac6d1['commandParams'][0x0]['startIndex'])};}return _0x4390c2;}['_getSuggestionBlocksForListStyle'](){const _0x4f3b22=this['editor']['plugins']['get']('LegacyListUtils');let _0x3b6ebf=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x3b6ebf[0x0]?.['is']('element','listItem')&&_0x3b6ebf['unshift'](..._0x4f3b22['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x3b6ebf[_0x3b6ebf['length']-0x1]?.['is']('element','listItem')&&_0x3b6ebf['push'](..._0x4f3b22['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x3b6ebf=[...new Set(_0x3b6ebf)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x3b6ebf=_0x3b6ebf['filter'](_0x4ed106=>_0x4ed106['is']('element','listItem'))),_0x3b6ebf;}['_getSuggestionBlocks'](_0x83b986){const _0x231eee=this['editor']['plugins']['get']('LegacyListUtils');let _0x4f1f8e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x83b986)['map'](_0x336800=>{const _0x48de3c=this['editor']['model']['createPositionAt'](_0x336800,0x0);return[..._0x231eee['getSiblingNodes'](_0x48de3c,'backward'),..._0x231eee['getSiblingNodes'](_0x48de3c,'forward')];})['flat']();return _0x4f1f8e=[...new Set(_0x4f1f8e)],_0x4f1f8e;}['_getTranslationKeyForListStyle'](_0x403096){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x403096)||'default')['toUpperCase']()+'_LIST_'+_0x403096['toUpperCase']()['replace'](/-/g,'_');}}class mt extends _0x5c1181{['afterInit'](){const _0x37b04e=this['editor'];if(!_0x37b04e['plugins']['has']('MediaEmbedEditing'))return;const _0x218137=_0x37b04e['plugins']['get']('TrackChangesEditing'),_0x165a01=_0x37b04e['locale'];_0x218137['enableCommand']('mediaEmbed'),_0x218137['descriptionFactory']['registerElementLabel']('media',_0x2a8a3b=>c(_0x165a01,'ELEMENT_MEDIA',_0x2a8a3b)),_0x37b04e['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x33133f,{writer:_0x258e52,options:_0x517341})=>{if(_0x517341['showSuggestionHighlights'])return _0x258e52['createEmptyElement']('div');},'converterPriority':'high'}),_0x37b04e['data']['downcastDispatcher']['on']('attribute:url:media',(_0x244c8c,_0x58ac2c,_0x317fa6)=>{_0x317fa6['options']['showSuggestionHighlights']&&_0x244c8c['stop']();},{'priority':'high'});}}class pt extends _0x5c1181{['afterInit'](){const _0x57c6bc=this['editor'];_0x57c6bc['plugins']['has']('MentionEditing')&&_0x57c6bc['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class kt extends _0x5c1181{['afterInit'](){const _0x558a0c=this['editor'];if(!_0x558a0c['plugins']['has']('MergeFieldsEditing'))return;const _0x4c4db7=_0x558a0c['plugins']['get']('TrackChangesEditing'),_0x24cdda=_0x558a0c['locale'];_0x4c4db7['enableCommand']('insertMergeField'),_0x4c4db7['enableCommand']('insertMergeFieldBlock'),_0x4c4db7['enableCommand']('insertMergeFieldImage'),_0x4c4db7['descriptionFactory']['registerElementLabel']('mergeField',_0x521ad7=>c(_0x24cdda,'ELEMENT_MERGE_FIELD',_0x521ad7)),_0x4c4db7['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x1aabed=>c(_0x24cdda,'ELEMENT_MERGE_FIELD',_0x1aabed)),_0x4c4db7['descriptionFactory']['registerDescriptionCallback'](_0x96cc0b=>{if('insertion'!=_0x96cc0b['type']&&'deletion'!=_0x96cc0b['type'])return;const _0x30a40e=_0x96cc0b['getContainedElement']();if(null==_0x30a40e)return;const _0x39a50d=_0x558a0c['plugins']['get']('MergeFieldsEditing');let _0x44d0d3;switch(_0x39a50d['getMergeFieldType'](_0x30a40e)){case null:return;case'image':{const _0x36bfa9=_0x39a50d['unwrapAffixes'](_0x30a40e['getAttribute']('src'));_0x44d0d3=_0x39a50d['getLabel'](_0x36bfa9)||_0x36bfa9;break;}default:{const _0x41a0be=_0x30a40e['getAttribute']('id');_0x44d0d3=_0x39a50d['getLabel'](_0x41a0be)||_0x41a0be;break;}}return'insertion'==_0x96cc0b['type']?{'type':'insertion','content':c(_0x24cdda,'*Insert:*\x20%0','\x22'+_0x44d0d3+'\x22\x20'+c(_0x24cdda,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x24cdda,'*Remove:*\x20%0','\x22'+_0x44d0d3+'\x22\x20'+c(_0x24cdda,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x5c1181{['afterInit'](){const _0xf7626c=this['editor'],_0xdd0d5f=_0xf7626c['plugins']['get']('TrackChangesEditing');_0xf7626c['plugins']['has']('MultiLevelList')&&(_0xdd0d5f['enableDefaultAttributesIntegration']('multiLevelList'),_0xdd0d5f['registerBlockAttribute']('listMarkerStyle'),_0xdd0d5f['descriptionFactory']['registerDescriptionCallback'](_0x5bed16=>this['handleDescriptions'](_0x5bed16)));}['handleDescriptions'](_0x489fea){const _0x39ad62=this['editor']['locale'],{data:_0x9f08cb}=_0x489fea,_0x867d32={'type':'format','content':''};if(_0x9f08cb&&'listMarkerStyle'==_0x9f08cb['key']){if(!_0x9f08cb['oldValue'])return{'type':'format','content':c(_0x39ad62,'*Set\x20format:*\x20%0',c(_0x39ad62,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x9f08cb['newValue']+')'};if(!_0x9f08cb['newValue']){let _0x38c3b8=_0x489fea['head'];for(;_0x38c3b8;){if(_0x38c3b8['data']&&'listType'==_0x38c3b8['data']['key']&&_0x38c3b8['data']['newValue'])return _0x867d32;_0x38c3b8=_0x38c3b8['next'];}return{'type':'format','content':c(_0x39ad62,'*Remove\x20format:*\x20%0',c(_0x39ad62,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x9f08cb['oldValue']+')'};}}}}class bt extends _0x5c1181{['afterInit'](){const _0x15a56c=this['editor'];if(!_0x15a56c['plugins']['has']('PageBreakEditing'))return;_0x15a56c['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x128e39=_0x15a56c['plugins']['get']('TrackChangesEditing'),_0x5c3984=_0x15a56c['locale'];_0x128e39['descriptionFactory']['registerElementLabel']('pageBreak',_0x4b6024=>c(_0x5c3984,'ELEMENT_PAGE_BREAK',_0x4b6024));}}class yt extends _0x5c1181{['afterInit'](){const _0x313f9a=this['editor'];if(!_0x313f9a['plugins']['has']('Paragraph'))return;const _0x271cde=_0x313f9a['locale'],_0x12527f=_0x313f9a['plugins']['get']('TrackChangesEditing');_0x12527f['descriptionFactory']['registerElementLabel']('paragraph',_0x5a3988=>c(_0x271cde,'ELEMENT_PARAGRAPH',_0x5a3988)),_0x12527f['enableDefaultAttributesIntegration']('paragraph'),_0x12527f['enableCommand']('insertParagraph'),_0x313f9a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x313f9a),{'priority':'highest'}),_0x313f9a['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x662a84,_0x191d23,_0x2eb014)=>{_0x2eb014['options']['showSuggestionHighlights']&&nr(_0x313f9a,{'showActiveMarker':!0x1})(_0x662a84,_0x191d23,_0x2eb014);},{'priority':'highest'});const _0x5b2d78=_0x12527f['descriptionFactory'];_0x5b2d78['registerDescriptionCallback'](_0x104563=>{if('insertion'!==_0x104563['type'])return;const {start:_0xa419ca,end:_0x88adf0}=_0x104563['getFirstRange']();if(!_0xa419ca['isTouching'](_0x88adf0)||!_0xa419ca['nodeAfter'])return;const _0x58bbe1=_0x313f9a['model']['schema'],_0x403d6d=_0xa419ca['nodeAfter'];return _0x58bbe1['isBlock'](_0x403d6d)&&!_0x58bbe1['isLimit'](_0x403d6d)&&_0x58bbe1['checkChild'](_0x403d6d,'$text')?{'type':'insertion','content':c(_0x271cde,'*Insert:*\x20%0',_0x5b2d78['getItemLabel'](_0x403d6d,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3876e3=this['editor'],_0x1931ce=_0x3876e3['locale'];_0x3876e3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x575547=>{if('formatBlock'!=_0x575547['type'])return;const {data:_0x45f066}=_0x575547;return _0x45f066&&'paragraph'==_0x45f066['commandName']?{'type':'format','content':c(_0x1931ce,'*Change\x20to:*\x20%0',c(_0x1931ce,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x19a55b,{showActiveMarker:_0x5a805a=!0x0}={}){return(_0x1082e5,_0x3f1df0,_0xe16bef)=>{const _0x5eeedb=_0x19a55b['plugins']['get']('TrackChangesEditing'),_0x4deaaf=_0x3f1df0['markerRange']['start'],_0x5819c9=_0x3f1df0['markerRange']['end'],_0x20808d=_0x19a55b['model']['schema'];if(!_0x4deaaf['isTouching'](_0x5819c9)||!_0x4deaaf['nodeAfter'])return;const _0x12cdd0=_0x4deaaf['nodeAfter'];if(_0x20808d['isBlock'](_0x12cdd0)&&!_0x20808d['isLimit'](_0x12cdd0)&&_0x20808d['checkChild'](_0x12cdd0,'$text')){if(!_0xe16bef['consumable']['consume'](_0x3f1df0['markerRange'],_0x1082e5['name']))return;const {id:_0x4e6b3f,authorId:_0x38b303}=_0x5eeedb['_splitMarkerName'](_0x3f1df0['markerName']),_0xe5906=_0xe16bef['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x4e6b3f,'data-author-id':_0x38b303}),_0x358ef8=_0xe16bef['mapper']['toViewPosition'](_0x5819c9);_0x5a805a&&_0x5eeedb['activeMarkers']['includes'](_0x3f1df0['markerName'])&&_0xe16bef['writer']['addClass']('ck-suggestion-marker--active',_0xe5906),_0xe16bef['writer']['insert'](_0x358ef8,_0xe5906),_0xe16bef['mapper']['bindElementToMarker'](_0xe5906,_0x3f1df0['markerName']);}};}class jt extends _0x5c1181{['afterInit'](){const _0x544872=this['editor'];_0x544872['commands']['get']('replaceSource')&&_0x544872['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x5c1181{['afterInit'](){const _0x4c7034=this['editor'];if(!_0x4c7034['plugins']['has']('RemoveFormatEditing'))return;_0x4c7034['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x14b582=this['editor'];_0x14b582['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38c08a=>{if('formatBlock'!=_0x38c08a['type']&&'formatInline'!=_0x38c08a['type'])return;const {data:_0x3dffab}=_0x38c08a;return _0x3dffab&&'removeFormat'==_0x3dffab['commandName']?{'type':'format','content':c(_0x14b582['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x5c1181{['afterInit'](){const _0x14e339=this['editor'];if(!_0x14e339['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x378d96=_0x14e339['plugins']['get']('TrackChangesEditing');_0x378d96['enableCommand']('goToPreviousRestrictedEditingException'),_0x378d96['enableCommand']('goToNextRestrictedEditingException');const _0x21eeaf=_0x14e339['plugins']['get']('RestrictedEditingModeEditing');_0x21eeaf['enableCommand']('trackChanges'),_0x21eeaf['enableCommand']('acceptSuggestion'),_0x21eeaf['enableCommand']('discardSuggestion'),_0x21eeaf['enableCommand']('acceptAllSuggestions'),_0x21eeaf['enableCommand']('discardAllSuggestions'),_0x21eeaf['enableCommand']('acceptSelectedSuggestions'),_0x21eeaf['enableCommand']('discardSelectedSuggestions');}}class It extends _0x5c1181{['afterInit'](){const _0x2ab6f3=this['editor'];if(!_0x2ab6f3['plugins']['has']('ShiftEnter'))return;const _0x4c01a4=_0x2ab6f3['plugins']['get']('TrackChangesEditing');_0x4c01a4['enableCommand']('shiftEnter'),_0x2ab6f3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x2ab6f3),{'priority':'high'}),_0x2ab6f3['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x2ab6f3),{'priority':'high'}),_0x2ab6f3['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2d4e77,_0x57c849,_0x578b06)=>{_0x578b06['options']['showSuggestionHighlights']&&je(_0x2ab6f3,{'showActiveMarker':!0x1})(_0x2d4e77,_0x57c849,_0x578b06);}),_0x4c01a4['descriptionFactory']['registerElementLabel']('softBreak',_0x5c97a6=>c(_0x2ab6f3['locale'],'ELEMENT_LINE_BREAK',_0x5c97a6));}}function je(_0x51c80b,{showActiveMarker:_0x33b1aa=!0x0}={}){return(_0x2cf5ae,_0x35c851,_0x435b13)=>{const _0x5b948b=_0x51c80b['plugins']['get']('TrackChangesEditing');if(!_0x435b13['consumable']['test'](_0x35c851['markerRange'],_0x2cf5ae['name']))return;const _0x19d24c=_0x51c80b['model'];for(const _0xd3dc20 of _0x35c851['markerRange']['getItems']()){if(!_0xd3dc20['is']('element','softBreak'))continue;const _0x2c8328='deletion'==_0x35c851['markerName']['split'](':')[0x1]?'merge':'split',{id:_0xd72984,authorId:_0x590195}=_0x5b948b['_splitMarkerName'](_0x35c851['markerName']),_0x2d9190=_0x435b13['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2c8328,'data-suggestion':_0xd72984,'data-author-id':_0x590195}),_0x2f7f34=_0x435b13['mapper']['toViewPosition'](_0x19d24c['createPositionBefore'](_0xd3dc20));_0x33b1aa&&_0x5b948b['activeMarkers']['includes'](_0x35c851['markerName'])&&_0x435b13['writer']['addClass']('ck-suggestion-marker--active',_0x2d9190),_0x435b13['writer']['insert'](_0x2f7f34,_0x2d9190),_0x435b13['mapper']['bindElementToMarker'](_0x2d9190,_0x35c851['markerName']);}};}class _t extends _0x5c1181{['afterInit'](){const _0x1cfe32=this['editor'],_0x3bf2a1=_0x1cfe32['model'],_0x3e863e=_0x1cfe32['locale'];if(!_0x1cfe32['plugins']['has']('StandardEditingModeEditing'))return;const _0x1f3ed7=_0x1cfe32['plugins']['get']('TrackChangesEditing'),_0x50df6d='restrictedEditingException',_0x35e0b6=_0x1cfe32['commands']['get'](_0x50df6d);_0x1f3ed7['enableCommand'](_0x50df6d,(_0x360c93,_0x556ce6={})=>{const _0xfa6e35=_0x3bf2a1['document']['selection'];if(_0xfa6e35['isCollapsed'])return void _0x360c93(_0x556ce6);const _0x152b01=void 0x0!==_0x556ce6['forceValue']?_0x556ce6['forceValue']:!_0x35e0b6['value'];_0x3bf2a1['change'](()=>{const _0x45758e=Array['from'](_0xfa6e35['getRanges']());for(const _0x4d5603 of _0x45758e){const _0x585d1d=_0x152b01?[_0x4d5603]:io(_0x50df6d,_0x4d5603,_0x3bf2a1);for(const _0x5ecf77 of _0x585d1d)_0x1f3ed7['markInlineFormat'](_0x5ecf77,{'commandName':_0x50df6d,'commandParams':[{'forceValue':_0x152b01}]});}});}),_0x1f3ed7['descriptionFactory']['registerDescriptionCallback'](_0x494b42=>{if('formatBlock'!=_0x494b42['type']&&'formatInline'!=_0x494b42['type'])return;const {data:_0x1acf51}=_0x494b42;return _0x1acf51&&_0x1acf51['commandName']==_0x50df6d?_0x1acf51['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3e863e,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x3e863e,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x5c1181{['afterInit'](){const _0x318ed9=this['editor'];if(!_0x318ed9['plugins']['has']('Style')||!_0x318ed9['plugins']['has']('DataSchema'))return;const _0x2d59d7=_0x318ed9['plugins']['get']('TrackChangesEditing'),_0x339337=_0x318ed9['locale'],_0x21cf3d=_0x318ed9['config']['get']('style')||{},_0x252131=_0x318ed9['plugins']['get']('GeneralHtmlSupport'),_0x416cd8=_0x318ed9['plugins']['get']('StyleUtils')['normalizeConfig'](_0x318ed9['plugins']['get']('DataSchema'),_0x21cf3d['definitions']);_0x2d59d7['enableDefaultAttributesIntegration']('style');const _0x1b1299=new Set();for(const _0x2631be of _0x416cd8['block']){const _0x177dae=_0x252131['getGhsAttributeNameForElement'](_0x2631be['element']);_0x1b1299['add'](_0x177dae);}const _0x5a5110=new Set();for(const _0x53623 of _0x416cd8['inline']){const _0x4450ec=_0x252131['getGhsAttributeNameForElement'](_0x53623['element']);_0x5a5110['add'](_0x4450ec);for(const _0xfee731 of _0x53623['ghsAttributes'])_0x5a5110['add'](_0xfee731);}for(const _0x39ed88 of _0x1b1299)_0x2d59d7['registerBlockAttribute'](_0x39ed88),_0x2d59d7['descriptionFactory']['registerAttributeLabel'](_0x39ed88,c(_0x339337,'FORMAT_STYLE'));for(const _0x5297d4 of _0x5a5110)_0x2d59d7['registerInlineAttribute'](_0x5297d4),_0x2d59d7['descriptionFactory']['registerAttributeLabel'](_0x5297d4,c(_0x339337,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3499ff=this['editor'],_0x12d355=_0x3499ff['locale'];_0x3499ff['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x178aba=>{if('formatBlock'!=_0x178aba['type']&&'formatInline'!=_0x178aba['type'])return;const {data:_0x1f2507}=_0x178aba;return _0x1f2507&&'style'===_0x1f2507['commandName']?_0x1f2507['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x12d355,'*Set\x20format:*\x20%0',_0x1f2507['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x12d355,'*Remove\x20format:*\x20%0',_0x1f2507['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x5c1181{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x1ef109){super(_0x1ef109),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x57e576=this['editor'],_0xa3374f=_0x57e576['model']['document']['selection'];if(!_0x57e576['plugins']['has']('TableEditing'))return;const _0xb11b81=_0x57e576['locale'],_0x8c1bf9=_0x57e576['plugins']['get']('TrackChangesEditing'),_0x1e2bb0=_0x57e576['plugins']['get']('TableUtils');_0x8c1bf9['descriptionFactory']['registerElementLabel']('table',_0x113a89=>c(_0xb11b81,'ELEMENT_TABLE',_0x113a89)),this['_setupColumnsRowsFixing'](),_0x8c1bf9['enableCommand']('insertTable'),_0x8c1bf9['enableCommand']('selectTableRow'),_0x8c1bf9['enableCommand']('selectTableColumn');for(const _0x2505f8 of['insertTableRowAbove','insertTableRowBelow']){const _0x3be292=_0x57e576['commands']['get'](_0x2505f8);_0x8c1bf9['enableCommand'](_0x2505f8,_0xd5ab25=>{_0x57e576['model']['change'](_0x3ec080=>{_0xd5ab25();const _0x4d6ea4='above'===_0x3be292['order'],_0x48dca6=_0x1e2bb0['getSelectionAffectedTableCells'](_0xa3374f),_0x1f203f=_0x1e2bb0['getRowIndexes'](_0x48dca6),_0x2d6ea2=_0x4d6ea4?_0x1f203f['first']-0x1:_0x1f203f['last']+0x1,_0x41cc91=_0x48dca6[0x0]['findAncestor']('table'),_0x345c1d=_0x1e2bb0['createTableWalker'](_0x41cc91,{'startRow':_0x2d6ea2,'endRow':_0x2d6ea2}),_0x3de694=Array['from'](_0x345c1d)['map'](_0x17b622=>_0x3ec080['createRangeOn'](_0x17b622['cell']));_0x8c1bf9['markMultiRangeInsertion'](_0x3de694,'tableRow');});});}for(const _0x1ac714 of['insertTableColumnLeft','insertTableColumnRight']){const _0x5cf812=_0x57e576['commands']['get'](_0x1ac714);_0x8c1bf9['enableCommand'](_0x1ac714,_0x4583fd=>{_0x57e576['model']['change'](_0x374c66=>{_0x4583fd();const _0x15d843='left'===_0x5cf812['order'],_0x44efaf=_0x1e2bb0['getSelectionAffectedTableCells'](_0xa3374f),_0x3da570=_0x1e2bb0['getColumnIndexes'](_0x44efaf),_0x1e90ca=_0x15d843?_0x3da570['first']-0x1:_0x3da570['last']+0x1,_0x169b21=_0x44efaf[0x0]['findAncestor']('table'),_0x3e4d7c=_0x1e2bb0['createTableWalker'](_0x169b21,{'startRow':0x0,'column':_0x1e90ca,'includeAllSlots':!0x1}),_0x1dc74e=Array['from'](_0x3e4d7c)['map'](_0x645c02=>_0x374c66['createRangeOn'](_0x645c02['cell']));_0x8c1bf9['markMultiRangeInsertion'](_0x1dc74e,'tableColumn');});});}for(const _0x32b901 of['removeTableRow','removeTableColumn']){const _0x4f56e0=_0x32b901['substr'](0xb),_0x5d6c10=_0x4f56e0['toLowerCase'](),_0x404fb3=_0x5d6c10['substr'](0x0,0x3)+'span',_0x210c12='table'+_0x4f56e0,_0x2323d1='min'+_0x4f56e0,_0xbb2abd='max'+_0x4f56e0;_0x8c1bf9['enableCommand'](_0x32b901,()=>{_0x57e576['model']['change'](_0x354ead=>{const _0x569ff2=_0x1e2bb0['getSelectionAffectedTableCells'](_0xa3374f),_0x1487d0=_0x569ff2[0x0]['findAncestor']('table');let _0x24a66b;if('removeTableRow'==_0x32b901){const _0x3258cc=_0x1e2bb0['getRowIndexes'](_0x569ff2);_0x24a66b={'startRow':_0x3258cc['first'],'endRow':_0x3258cc['last'],'includeAllSlots':!0x0};}else{const _0x4a1fea=_0x1e2bb0['getColumnIndexes'](_0x569ff2);_0x24a66b={'startColumn':_0x4a1fea['first'],'endColumn':_0x4a1fea['last'],'includeAllSlots':!0x0};}const _0x13a4d1=_0x1e2bb0['createTableWalker'](_0x1487d0,_0x24a66b),_0x5228dd=Array['from'](_0x13a4d1)['map'](({cell:_0x328a6e})=>_0x328a6e),_0x267236=xe(_0x5228dd['filter'](_0x11f588=>_0x11f588['hasAttribute'](_0x404fb3))),_0x19e3c7=xe(_0x5228dd['filter'](_0x4e03d5=>!_0x4e03d5['hasAttribute'](_0x404fb3)))['map'](_0x397950=>_0x354ead['createRangeOn'](_0x397950)),_0x637803=_0x8c1bf9['markMultiRangeDeletion'](_0x19e3c7,_0x210c12);if(_0x637803&&('tableRow'==_0x637803['subType']||'tableColumn'==_0x637803['subType'])){const _0x4adf48=this['_getSuggestionCoords'](_0x637803);for(const _0x349518 of _0x267236){const _0x45194f=_0x354ead['createRangeOn'](_0x349518),_0x43dba1=_0x1e2bb0['getCellLocation'](_0x349518),_0x158157=_0x349518['getAttribute'](_0x404fb3)-0x1,_0x1c834b=_0x4adf48[_0x2323d1],_0x3ba80e=_0x4adf48[_0xbb2abd];_0x1c834b<=_0x43dba1[_0x5d6c10]&&_0x43dba1[_0x5d6c10]+_0x158157<=_0x3ba80e&&_0x637803['addRange'](_0x45194f);}}});});}function _0x5e713e(_0x52e2d5){const _0x4e3574=Array['from'](_0xa3374f['getRanges']())['map'](_0xdfa02c=>_0x597cd7['fromRange'](_0xdfa02c));_0x57e576['model']['change'](_0x3832b6=>{const _0x4d69bf=_0x3832b6['batch'];_0x52e2d5=_0x52e2d5['filter'](_0x1ff1cc=>'$graveyard'!=_0x1ff1cc['root']['rootName']),_0x3832b6['setSelection'](_0x52e2d5),_0x57e576['commands']['get']('removeTableRow')['refresh'](),_0x57e576['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x57e576['model']['enqueueChange'](()=>{_0x57e576['model']['enqueueChange'](_0x4d69bf,_0x3af659=>{const _0x451f69=_0x4e3574['filter'](_0x38de7e=>'$graveyard'!=_0x38de7e['root']['rootName']);_0x451f69['length']>0x0&&_0x3af659['setSelection'](_0x451f69);for(const _0x43d185 of _0x4e3574)_0x43d185['detach']();});});});}function _0x2c8f90(_0x30cfe9){_0x57e576['model']['change'](_0x285949=>{const _0x2a2b4a=Array['from'](_0xa3374f['getRanges']())['map'](_0x3626f2=>_0x597cd7['fromRange'](_0x3626f2)),_0x4be49a=[];for(const _0x1348e3 of _0x30cfe9)for(const _0x19c5d5 of _0x1348e3['getItems']({'shallow':!0x0}))_0x4be49a['push'](_0x19c5d5);for(const _0x15000f of _0x4be49a)'$graveyard'!=_0x15000f['root']['rootName']&&(_0x285949['setSelection'](_0x285949['createPositionAt'](_0x15000f,0x0)),_0x57e576['commands']['get']('removeTableColumn')['refresh'](),_0x57e576['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0xa073de=_0x2a2b4a['filter'](_0x25156e=>'$graveyard'!=_0x25156e['root']['rootName']);_0xa073de['length']>0x0&&_0x285949['setSelection'](_0xa073de);for(const _0x18d8b3 of _0x2a2b4a)_0x18d8b3['detach']();});}function _0x45dfd5(_0x1fde30,_0x4eeec6){return _0x4eeec6['every'](_0x34899f=>_0x1fde30['some'](_0x3b8d9a=>_0x3b8d9a['end']['isEqual'](_0x34899f['start'])||_0x34899f['end']['isEqual'](_0x3b8d9a['start'])));}function _0x647545(_0x3d041b,_0x3bc82d){return!_0x3d041b['some'](_0x3c36d1=>_0x3bc82d['some'](_0x429bfd=>_0x3c36d1['isIntersecting'](_0x429bfd)))&&_0x3d041b['some'](_0x51462f=>_0x3bc82d['some'](_0x4dade5=>_0x51462f['end']['isTouching'](_0x4dade5['start'])));}_0x57e576['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x772040,_0xc7fca3,_0x47d182)=>{if(!_0x47d182['options']['showSuggestionHighlights'])return;const _0x21df90=_0xc7fca3['item'];if(!_0x21df90||!_0x21df90['is']('element','tableCell'))return;const _0x4776ab=_0x47d182['mapper']['toViewElement'](_0x21df90);if(_0x4776ab){const {id:_0x4b7e53,authorId:_0x276ef5}=_0x8c1bf9['_splitMarkerName'](_0xc7fca3['markerName']);_0x3adf2c(_0x4776ab,_0x47d182['writer'],(_0x139e90,_0x22ea14,_0x4dec12)=>{_0x4dec12['addClass'](_0x4f6f0d(_0x22ea14['classes']),_0x139e90),_0x4dec12['setAttribute']('data-suggestion-id',_0x4b7e53,_0x139e90),_0x4dec12['setAttribute']('data-author-id',_0x276ef5,_0x139e90);},(_0x2b8146,_0x2e88d4,_0x5dade7)=>{_0x5dade7['removeClass'](_0x4f6f0d(_0x2e88d4['classes']),_0x2b8146),_0x5dade7['removeAttribute']('data-suggestion-id',_0x2b8146),_0x5dade7['removeAttribute']('data-author-id',_0x2b8146);});}},{'priority':'highest'}),_0x8c1bf9['descriptionFactory']['registerDescriptionCallback'](_0x55bb87=>{if('insertion'!=_0x55bb87['type']&&'deletion'!=_0x55bb87['type'])return;const _0x3f7cf5=_0x55bb87['getContainedElement']();if(null!=_0x3f7cf5&&_0x3f7cf5['is']('element','table')){if('insertion'==_0x55bb87['type']){const _0x5dffc6=_0x55bb87['getItems']()['filter'](_0x37bdc4=>_0x37bdc4['is']('$textProxy'))['map'](_0x11d980=>_0x11d980['data']);if(_0x5dffc6['length'])return{'type':'insertion','content':c(_0xb11b81,'*Insert:*\x20%0',c(_0xb11b81,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5dffc6['join']('\x20')+'\x22'))};}if('deletion'==_0x55bb87['type']){const _0x233bb2=_0x55bb87['getItems']()['filter'](_0x32ea12=>_0x32ea12['is']('$textProxy'))['map'](_0x449d34=>_0x449d34['data']);if(_0x233bb2['length'])return{'type':'deletion','content':c(_0xb11b81,'*Remove:*\x20%0',c(_0xb11b81,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x233bb2['join']('\x20')+'\x22'))};}}}),_0x8c1bf9['descriptionFactory']['registerDescriptionCallback'](_0x361650=>{if('tableRow'==_0x361650['subType']){const _0x493699=_0x361650['getItems']()['filter'](_0x11ba87=>_0x11ba87['is']('$textProxy'))['map'](_0x16374f=>_0x16374f['data']),_0x2fda7d=this['_getSuggestionCoords'](_0x361650),_0x4efdbc=_0x2fda7d['maxRow']-_0x2fda7d['minRow']+0x1;if('insertion'==_0x361650['type'])return _0x493699['length']?{'type':'insertion','content':c(_0xb11b81,'*Insert:*\x20%0',c(_0xb11b81,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4efdbc,'\x22'+_0x493699['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0xb11b81,'*Insert:*\x20%0',c(_0xb11b81,'ELEMENT_TABLE_ROW',_0x4efdbc))};if('deletion'==_0x361650['type'])return _0x493699['length']?{'type':'deletion','content':c(_0xb11b81,'*Remove:*\x20%0',c(_0xb11b81,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4efdbc,'\x22'+_0x493699['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0xb11b81,'*Remove:*\x20%0',c(_0xb11b81,'ELEMENT_TABLE_ROW',_0x4efdbc))};}if('tableColumn'==_0x361650['subType']){const _0x1a074a=_0x361650['getItems']()['filter'](_0x402499=>_0x402499['is']('$textProxy'))['map'](_0x3062b8=>_0x3062b8['data']),_0x3ab509=this['_getSuggestionCoords'](_0x361650),_0x2598bc=_0x3ab509['maxColumn']-_0x3ab509['minColumn']+0x1;if('insertion'==_0x361650['type'])return _0x1a074a['length']?{'type':'insertion','content':c(_0xb11b81,'*Insert:*\x20%0',c(_0xb11b81,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2598bc,'\x22'+_0x1a074a['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0xb11b81,'*Insert:*\x20%0',c(_0xb11b81,'ELEMENT_TABLE_COLUMN',_0x2598bc))};if('deletion'==_0x361650['type'])return _0x1a074a['length']?{'type':'deletion','content':c(_0xb11b81,'*Remove:*\x20%0',c(_0xb11b81,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2598bc,'\x22'+_0x1a074a['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0xb11b81,'*Remove:*\x20%0',c(_0xb11b81,'ELEMENT_TABLE_COLUMN',_0x2598bc))};}}),_0x8c1bf9['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x5e713e),_0x8c1bf9['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x5e713e),_0x8c1bf9['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x2c8f90),_0x8c1bf9['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x2c8f90),_0x8c1bf9['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x45dfd5),_0x8c1bf9['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x45dfd5),_0x8c1bf9['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x647545),_0x8c1bf9['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x647545);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4a3b1d=this['editor'],_0x3e4d81=_0x4a3b1d['model']['document']['selection'];return(_0x4c7641,_0x27f545)=>{_0x4a3b1d['model']['change'](_0x7b835=>{const {commandName:_0x3db69f,commandParams:_0x1bebbc}=_0x27f545;let _0x5d4cb4=_0x4c7641[0x0]['end']['nodeBefore'];_0x1bebbc&&_0x1bebbc[0x0]&&!0x1===_0x1bebbc[0x0]['forceValue']&&(_0x5d4cb4=_0x4c7641[0x0]['start']['nodeAfter']);const _0x2c0c31=_0x7b835['createRangeIn'](_0x5d4cb4);if('$graveyard'==_0x2c0c31['root']['rootName'])return;const _0x25d38f=Array['from'](_0x3e4d81['getRanges']())['map'](_0x45dba2=>_0x597cd7['fromRange'](_0x45dba2));_0x7b835['setSelection'](_0x2c0c31),_0x4a3b1d['commands']['get'](_0x3db69f)['refresh'](),_0x1bebbc['push']({'forceDefaultExecution':!0x0}),_0x4a3b1d['execute'](_0x3db69f,..._0x1bebbc);const _0x54adf6=_0x25d38f['filter'](_0x33529d=>'$graveyard'!=_0x33529d['root']['rootName']);_0x54adf6['length']>0x0&&_0x7b835['setSelection'](_0x54adf6);for(const _0x1017a5 of _0x25d38f)_0x1017a5['detach']();});};}['_getCoordsForCells'](_0x3902bc){const _0x2dd335=this['editor']['plugins']['get']('TableUtils');let _0x4a1679=Number['MAX_SAFE_INTEGER'],_0x4bf90f=Number['MIN_SAFE_INTEGER'],_0x2a8448=Number['MAX_SAFE_INTEGER'],_0x3aa7a3=Number['MIN_SAFE_INTEGER'];for(const _0x51142b of _0x3902bc){if('$graveyard'==_0x51142b['root']['rootName'])continue;const {row:_0x918ce8,column:_0x4d40bc}=_0x2dd335['getCellLocation'](_0x51142b),_0x414cff=_0x51142b['hasAttribute']('rowspan')?_0x51142b['getAttribute']('rowspan')-0x1:0x0,_0x387c16=_0x51142b['hasAttribute']('colspan')?_0x51142b['getAttribute']('colspan')-0x1:0x0;_0x4a1679=_0x918ce8<_0x4a1679?_0x918ce8:_0x4a1679,_0x4bf90f=_0x918ce8+_0x414cff>_0x4bf90f?_0x918ce8+_0x414cff:_0x4bf90f,_0x2a8448=_0x4d40bc<_0x2a8448?_0x4d40bc:_0x2a8448,_0x3aa7a3=_0x4d40bc+_0x387c16>_0x3aa7a3?_0x4d40bc+_0x387c16:_0x3aa7a3;}return{'minRow':_0x4a1679,'maxRow':_0x4bf90f,'minColumn':_0x2a8448,'maxColumn':_0x3aa7a3};}['_setupColumnsRowsFixing'](){const _0x51c472=this['editor'],_0x5e8aee=_0x51c472['plugins']['get']('TrackChangesEditing'),_0x4da5a8=_0x51c472['plugins']['get']('TableUtils');_0x51c472['model']['document']['on']('change:data',()=>{const _0x47f6f0=Array['from'](_0x51c472['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x25698b,data:_0x3aeba3}of _0x47f6f0){const {group:_0x21beb7,id:_0x35fcea,subType:_0x55e64b}=_0x5e8aee['_splitMarkerName'](_0x25698b);if('suggestion'!=_0x21beb7)continue;if(null!=_0x3aeba3['oldRange'])continue;const _0x516d17=_0x5e8aee['getSuggestion'](_0x35fcea);this['_tablePostFixingSubtypes']['includes'](_0x55e64b)&&this['_tableSuggestions']['add'](_0x516d17);}},{'priority':'low'});const _0xbea5bc=(_0x16c669,_0x4d7da4)=>{let _0x10aab2=!0x1;const _0x13fab=_0x4d7da4['createRangeOn'](_0x16c669),_0x263c90=_0x16c669['findAncestor']('table'),_0x4bcce8=_0x4da5a8['getCellLocation'](_0x16c669);for(const _0x415c89 of this['_tableSuggestions']){const _0x45bcd8=_0x415c89['subType'],_0x20e6b8=_0x45bcd8['startsWith']('tablePaste'),_0x597ae7=_0x45bcd8['substr'](_0x20e6b8?0xa:0x5),_0x1be13f=_0x597ae7['toLowerCase'](),_0x40dd92=_0x1be13f['substr'](0x0,0x3)+'span',_0x68a9bd='min'+_0x597ae7,_0x44932a='max'+_0x597ae7;if(!_0x415c89['isInContent'])continue;if(_0x263c90!=_0x415c89['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x415c89['isIntersectingWithRange'](_0x13fab))continue;const _0x30a02c=_0x16c669['hasAttribute'](_0x40dd92)?_0x16c669['getAttribute'](_0x40dd92)-0x1:0x0,_0x5480a0=this['_getSuggestionCoords'](_0x415c89),_0x197036=_0x5480a0[_0x68a9bd],_0x47d768=_0x5480a0[_0x44932a];_0x197036<=_0x4bcce8[_0x1be13f]&&_0x4bcce8[_0x1be13f]+_0x30a02c<=_0x47d768&&(_0x415c89['addRange'](_0x13fab),_0x10aab2=!0x0);}return _0x10aab2;};_0x51c472['model']['document']['registerPostFixer'](_0x40e61e=>{let _0x2986d1=!0x1;for(const _0x588482 of _0x51c472['model']['document']['differ']['getChanges']())if('insert'==_0x588482['type']){if('tableRow'==_0x588482['name']){for(const _0x3799e0 of _0x588482['position']['nodeAfter']['getChildren']())_0x2986d1=_0x2986d1||_0xbea5bc(_0x3799e0,_0x40e61e);}else'tableCell'==_0x588482['name']&&(_0x2986d1=_0x2986d1||_0xbea5bc(_0x588482['position']['nodeAfter'],_0x40e61e));}return _0x2986d1;});}['_getSuggestionCoords'](_0x3e9edc){return this['_getCoordsForCells'](_0x3e9edc['getRanges']()['map'](_0x4cbf2b=>_0x4cbf2b['start']['nodeAfter']));}}function xe(_0xd3f111){return Array['from'](new Set(_0xd3f111)['values']());}class Nt extends _0x5c1181{static get['requires'](){return[Ct];}['afterInit'](){const _0x118743=this['editor'],_0x22fb83=_0x118743['model']['document']['selection'],_0x56df16=_0x118743['locale'];if(!_0x118743['plugins']['has']('TableEditing'))return;const _0xba5eed=_0x118743['plugins']['get']('TrackChangesEditing'),_0x19f79f=_0x118743['plugins']['get']('TableUtils'),_0x30dc06=_0x118743['plugins']['get'](Ct);_0x30dc06['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0xba5eed['enableCommand']('mergeTableCells',()=>{const _0x2ed95f=_0x19f79f['getSelectionAffectedTableCells'](_0x118743['model']['document']['selection']);_0x118743['model']['change'](()=>{_0xba5eed['markMultiRangeBlockFormat'](_0x2ed95f,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x118743['commands']['get']('mergeTableCells')['on']('execute',(_0x115638,_0x20034a)=>{_0x118743['commands']['get']('trackChanges')['value']&&(_0x20034a['length']>0x0&&_0x20034a[_0x20034a['length']-0x1]&&_0x20034a[_0x20034a['length']-0x1]['forceDefaultExecution']||_0xba5eed['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x115638['stop']());},{'priority':'highest'});for(const _0x1bb830 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x33d15d=_0x118743['commands']['get'](_0x1bb830);_0xba5eed['enableCommand'](_0x1bb830,()=>{const _0x48358d=_0x118743['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x42664f=>_0x42664f['is']('element','tableCell')),_0x2e688c=_0x33d15d['value'];_0x118743['model']['change'](()=>{_0xba5eed['markMultiRangeBlockFormat']([_0x48358d,_0x2e688c],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x3971bf of['splitTableCellVertically','splitTableCellHorizontally']){const _0x588bb9=_0x118743['commands']['get'](_0x3971bf);_0xba5eed['enableCommand'](_0x3971bf,()=>{const _0x129405=_0x19f79f['getSelectionAffectedTableCells'](_0x118743['model']['document']['selection'])[0x0],_0x5c4e7c=_0x129405['findAncestor']('table'),{column:_0x1b036b,row:_0x29cec9}=_0x19f79f['getCellLocation'](_0x129405);let _0x1cabc6=[];if('horizontally'==_0x588bb9['direction']){const _0x2270f9=_0x19f79f['createTableWalker'](_0x5c4e7c,{'startRow':_0x29cec9,'endRow':_0x29cec9,'includeAllSlots':!0x0});_0x1cabc6=Array['from'](_0x2270f9)['map'](_0x1cedb9=>_0x1cedb9['cell']);}else{const _0x38f608=_0x19f79f['createTableWalker'](_0x5c4e7c,{'column':_0x1b036b,'includeAllSlots':!0x0});_0x1cabc6=Array['from'](_0x38f608)['map'](_0x38c993=>_0x38c993['cell']);}_0x118743['model']['change'](_0x4e1ac5=>{_0xba5eed['markBlockFormat'](_0x4e1ac5['createRangeOn'](_0x129405),{'commandName':_0x3971bf,'commandParams':[]},_0x1cabc6,_0x3971bf);});});}_0xba5eed['descriptionFactory']['registerDescriptionCallback'](_0x4e6dea=>{if('formatBlock'!=_0x4e6dea['type']&&'formatInline'!=_0x4e6dea['type'])return;const {data:_0x1042de}=_0x4e6dea;return _0x1042de&&'mergeTableCells'==_0x1042de['commandName']?{'type':'format','content':c(_0x56df16,'*Merge\x20cells*')}:void 0x0;}),_0xba5eed['descriptionFactory']['registerDescriptionCallback'](_0x52cbaf=>{if('formatBlock'!=_0x52cbaf['type']&&'formatInline'!=_0x52cbaf['type'])return;const {data:_0x3f658a}=_0x52cbaf;return _0x3f658a?'splitTableCellVertically'==_0x3f658a['commandName']?{'type':'format','content':c(_0x56df16,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3f658a['commandName']?{'type':'format','content':c(_0x56df16,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x56b17c=_0x30dc06['_acceptFormatSuggestionCallbackFactory']();for(const _0x539c33 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0xba5eed['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x539c33,'accept',_0x56b17c);for(const _0x3e4937 of['splitTableCellVertically','splitTableCellHorizontally'])_0xba5eed['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3e4937,'accept',_0x56b17c);_0xba5eed['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x42658a=>{_0x118743['model']['change'](_0x4f3031=>{const _0x562f0f=Array['from'](_0x22fb83['getRanges']())['map'](_0x2fb9b3=>_0x597cd7['fromRange'](_0x2fb9b3));_0x4f3031['setSelection'](_0x42658a),_0x118743['commands']['get']('mergeTableCells')['refresh'](),_0x118743['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x43b3b8=_0x562f0f['filter'](_0x76a11b=>'$graveyard'!=_0x76a11b['root']['rootName']);_0x43b3b8['length']>0x0&&_0x4f3031['setSelection'](_0x43b3b8);for(const _0x17f383 of _0x562f0f)_0x17f383['detach']();});});for(const _0x6f8b78 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x31b405=_0x118743['commands']['get'](_0x6f8b78);_0x31b405['on']('set:isEnabled',(_0x35ff14,_0x6cbec1,_0x5222e6)=>{if(_0x5222e6){const _0x1d7033=_0x118743['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3cc38f=>_0x3cc38f['is']('element','tableCell'));this['_areMergableCells'](_0x31b405['value'],_0x1d7033)||(_0x35ff14['return']=!0x1,_0x35ff14['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x3d33ec=this['editor']['commands']['get']('mergeTableCells'),_0x74b01a=this['editor']['plugins']['get']('TableUtils');if(!_0x3d33ec['isEnabled'])return!0x1;const _0x404937=_0x74b01a['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2d95d8 of _0x404937)for(const _0x1db6bf of _0x404937)if(_0x2d95d8!=_0x1db6bf&&!this['_areMergableCells'](_0x2d95d8,_0x1db6bf))return!0x1;return!0x0;}['_areMergableCells'](_0x4f2c9f,_0x453b53){const _0x174cc6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2a4e0d=this['editor']['model']['createRangeOn'](_0x4f2c9f),_0x5609f7=this['editor']['model']['createRangeOn'](_0x453b53),_0x1f3d28=new Set(),_0x4f2f1c=new Set();for(const _0x4e5811 of _0x174cc6['getSuggestions']())if(('insertion'==_0x4e5811['type']||'deletion'==_0x4e5811['type']||'mergeTableCells'==_0x4e5811['subType'])&&_0x4e5811['isInContent']){for(const _0x43701a of _0x4e5811['getRanges']())_0x43701a['containsRange'](_0x2a4e0d,!0x0)&&_0x1f3d28['add'](_0x4e5811['type']+':'+_0x4e5811['author']['id']),_0x43701a['containsRange'](_0x5609f7,!0x0)&&_0x4f2f1c['add'](_0x4e5811['type']+':'+_0x4e5811['author']['id']);}if(_0x1f3d28['size']!=_0x4f2f1c['size'])return!0x1;for(const _0x19782c of _0x1f3d28)if(!_0x4f2f1c['has'](_0x19782c))return!0x1;return!0x0;}}class Dt extends _0x5c1181{static get['requires'](){return[Ct];}['afterInit'](){const _0x5114ef=this['editor'];if(!_0x5114ef['plugins']['has']('TableEditing'))return;const _0x432e28=_0x5114ef['locale'],_0x2fa127=_0x5114ef['plugins']['get']('TrackChangesEditing');_0x2fa127['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x2fa127['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x2fa127['registerBlockAttribute']('headingRows'),_0x2fa127['registerBlockAttribute']('headingColumns'),_0x2fa127['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x432e28,'FORMAT_HEADER_ROW')),_0x2fa127['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x432e28,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x280e7f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4946db=this['editor']['plugins']['get']('TableUtils'),_0x32b77d=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x6f8e46({showActiveMarker:_0x3895cd=!0x0,setDataAttribute:_0x6a502c=!0x0}={}){return(_0x14b264,_0x2b56fb,_0x9b882e)=>{const {type:_0x33e6a1,id:_0x1b33d2}=_0x280e7f['_splitMarkerName'](_0x2b56fb['markerName']),_0x4a538d=_0x280e7f['getSuggestion'](_0x1b33d2),_0x122f79=_0x4a538d['data'];if('formatBlock'!=_0x4a538d['type']||!_0x122f79||'setTableColumnHeader'!=_0x122f79['commandName'])return;if(_0x2b56fb['item'])return void _0x14b264['stop']();if(!_0x9b882e['consumable']['consume'](_0x2b56fb['markerRange'],_0x14b264['name']))return;const _0x4ba097=_0x2b56fb['markerRange']['start']['nodeAfter'],_0xaec9ca=_0x2b56fb['markerRange']['end']['nodeBefore'],_0x4a92ae=_0x4ba097['parent']['parent'],{column:_0x5ba43e}=_0x4946db['getCellLocation'](_0x4ba097),{column:_0x39a2df}=_0x4946db['getCellLocation'](_0xaec9ca);for(let _0xef3aff=_0x5ba43e;_0xef3aff<=_0x39a2df;_0xef3aff++){const _0xd1e047=_0x4946db['createTableWalker'](_0x4a92ae,{'column':_0xef3aff,'includeAllSlots':!0x1});for(const _0x4cf010 of _0xd1e047){const _0x12e85c=_0x4cf010['cell'],_0x5aef2f=_0x9b882e['mapper']['toViewElement'](_0x12e85c);_0x9b882e['writer']['addClass']('ck-suggestion-marker-'+_0x33e6a1,_0x5aef2f),_0x6a502c&&_0x9b882e['writer']['setAttribute']('data-suggestion',_0x1b33d2,_0x5aef2f),_0x9b882e['mapper']['bindElementToMarker'](_0x5aef2f,_0x2b56fb['markerName']),_0x3895cd&&(_0x280e7f['activeMarkers']['includes'](_0x2b56fb['markerName'])?_0x9b882e['writer']['addClass']('ck-suggestion-marker--active',_0x5aef2f):_0x9b882e['writer']['removeClass']('ck-suggestion-marker--active',_0x5aef2f));}}};}_0x280e7f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x32b77d),_0x280e7f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x32b77d),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x6f8e46(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3db401,_0x3d00c3,_0x2a2e61)=>{_0x2a2e61['options']['showSuggestionHighlights']&&_0x6f8e46({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x3db401,_0x3d00c3,_0x2a2e61);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4856a7,_0x21dd47,_0x82cb43)=>{const {type:_0x315457,id:_0x4fb6e4}=_0x280e7f['_splitMarkerName'](_0x21dd47['markerName']),_0x20b7be=_0x280e7f['getSuggestion'](_0x4fb6e4),_0x93b82b=_0x20b7be['data'];if('formatBlock'!=_0x20b7be['type']||!_0x93b82b||'setTableColumnHeader'!=_0x93b82b['commandName'])return;const _0x2c3b6f=_0x82cb43['mapper']['markerNameToElements'](_0x21dd47['markerName']);if(_0x2c3b6f){for(const _0x1f959d of _0x2c3b6f)_0x82cb43['writer']['removeClass']('ck-suggestion-marker-'+_0x315457,_0x1f959d),_0x82cb43['writer']['removeClass']('ck-suggestion-marker--active',_0x1f959d),_0x82cb43['writer']['removeAttribute']('data-suggestion',_0x1f959d),_0x82cb43['mapper']['unbindElementFromMarkerName'](_0x1f959d,_0x21dd47['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x7c1297=this['editor'],_0x1a813b=_0x7c1297['locale'];function _0x526e5a(_0x170fcf){return{'type':'format','content':c(_0x1a813b,'*Format:*\x20%0',_0x170fcf)};}_0x7c1297['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4697e1=>{if('formatBlock'!=_0x4697e1['type'])return;const {data:_0x269050}=_0x4697e1;if(_0x269050){if('setTableRowHeader'==_0x269050['commandName']){const _0x27bef4=_0x269050['commandParams'][0x0]['forceValue'];return _0x526e5a(c(_0x1a813b,_0x27bef4?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x269050['commandName']){const _0x31857d=_0x269050['commandParams'][0x0]['forceValue'];return _0x526e5a(c(_0x1a813b,_0x31857d?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x5c1181{['afterInit'](){const _0x1e8da9=this['editor'],_0x276247=_0x1e8da9['locale'],_0x5d4cf8=_0x1e8da9['plugins']['get']('TrackChangesEditing');function _0x2ac53d(_0x14ce99){return{'type':'format','content':''+c(_0x276247,'*Set\x20table\x20type:*\x20%0',_0x14ce99)};}_0x1e8da9['plugins']['has']('TableLayout')&&(_0x5d4cf8['enableCommand']('insertTableLayout'),_0x5d4cf8['enableDefaultAttributesIntegration']('tableType'),_0x5d4cf8['registerBlockAttribute']('tableType'),_0x5d4cf8['descriptionFactory']['registerElementLabel'](_0xb0cfdb=>_0xb0cfdb['is']('element','table')&&'layout'===_0xb0cfdb['getAttribute']('tableType'),_0x47075e=>c(_0x276247,'ELEMENT_LAYOUT_TABLE',_0x47075e)),_0x5d4cf8['descriptionFactory']['registerDescriptionCallback'](_0x325f01=>{const {data:_0x341fbc}=_0x325f01;if(_0x341fbc&&'tableType'==_0x341fbc['key'])switch(_0x341fbc['newValue']){case'layout':return _0x2ac53d(c(_0x276247,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x2ac53d(c(_0x276247,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=Object['fromEntries'](Oe['map'](_0x12ed10=>[_0x12ed10,null]));class $t extends _0x5c1181{static get['requires'](){return[Ct];}['afterInit'](){const _0x73ff8=this['editor'];if(!_0x73ff8['plugins']['has']('TableClipboard'))return;const _0x57f583=_0x73ff8['plugins']['get']('TrackChangesEditing'),_0x1737f5=_0x73ff8['plugins']['get']('TableUtils'),_0x4dc73d=_0x73ff8['plugins']['get'](Ct),_0x4926c3=_0x73ff8['plugins']['get']('TableClipboard'),_0x543fe4=_0x73ff8['plugins']['get']('TableSelection'),_0x374e84=_0x73ff8['plugins']['get'](_0x47d534);_0x4dc73d['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x73ff8['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x73ff8['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x46c0f0=null,_0x5b47af=!0x1;_0x374e84['on']('contentInsertion',(_0x2e16e6,_0x518a5c)=>{_0x5b47af='paste'===_0x518a5c['method'];}),_0x73ff8['model']['on']('insertContent',(_0x320b37,_0x2a1264)=>{if(!_0x5b47af&&null===_0x543fe4['getSelectedTableCells']())return;const [_0x446dc1,_0x5b5b36]=_0x2a1264,_0x5c5935=_0x2a1264[_0x2a1264['length']-0x1];_0x5c5935&&_0x5c5935['forceDefaultExecution']||_0x57f583['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x7e0f93,_0x240f10,_0x4011ed,_0x257b07,_0x28d98b){if(_0x240f10&&!_0x240f10['is']('documentSelection'))return!0x1;const _0x351046=_0x28d98b['getTableIfOnlyTableInContent'](_0x7e0f93,_0x4011ed);if(!_0x351046||!He(_0x351046,void 0x0,_0x257b07))return!0x1;const _0x45affd=_0x257b07['getSelectionAffectedTableCells'](_0x4011ed['document']['selection']);if(!_0x45affd['length'])return!0x1;const _0x38f035=_0x45affd[0x0]['findAncestor']('table'),_0x4414b0=_0x257b07['getRowIndexes'](_0x45affd),_0x2c4d42=_0x257b07['getColumnIndexes'](_0x45affd),_0x572745={'startRow':_0x4414b0['first'],'endRow':_0x4414b0['last'],'startColumn':_0x2c4d42['first'],'endColumn':_0x2c4d42['last']};return 0x1==_0x45affd['length']&&(_0x572745['endRow']+=_0x257b07['getRows'](_0x351046)-0x1,_0x572745['endColumn']+=_0x257b07['getColumns'](_0x351046)-0x1),He(_0x38f035,_0x572745,_0x257b07);}(_0x446dc1,_0x5b5b36,_0x73ff8['model'],_0x1737f5,_0x4926c3)&&(_0x320b37['stop'](),_0x46c0f0={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x73ff8['model']['change'](()=>{_0x73ff8['model']['insertContent'](_0x2a1264[0x0],_0x2a1264[0x1],_0x2a1264[0x2],{'forceDefaultExecution':!0x0});const _0x574895=_0x1b595f(),{rowInsertionRanges:_0x18dd96,columnInsertionRanges:_0x539803,insertionRanges:_0x334640,deletionRanges:_0x293b4d,cells:_0x5bdeb5}=_0x46c0f0;_0x18dd96['length']&&_0x57f583['markMultiRangeInsertion'](_0x18dd96,'tablePasteRow',{'tablePasteChainId':_0x574895}),_0x539803['length']&&_0x57f583['markMultiRangeInsertion'](_0x539803,'tablePasteColumn',{'tablePasteChainId':_0x574895}),_0x334640['length']&&(_0x57f583['markMultiRangeInsertion'](_0x334640,'tablePaste',{'tablePasteChainId':_0x574895,'skipNestingCheck':!0x0}),_0x334640['forEach'](_0xfbfafc=>_0xfbfafc['detach']?.())),_0x293b4d['length']&&(_0x57f583['markMultiRangeDeletion'](_0x293b4d,'tablePaste',{'tablePasteChainId':_0x574895,'skipNestingCheck':!0x0}),_0x293b4d['forEach'](_0x1aef95=>_0x1aef95['detach']?.()));const _0x38d19e=_0x57f583['markMultiRangeBlockFormat'](_0x5bdeb5['map'](({element:_0x3e482a})=>_0x3e482a),{'formatGroupId':_0x1b595f()},[],'tablePasteCell',{'tablePasteChainId':_0x574895});if(_0x38d19e){const _0x5f062e=_0x38d19e['getMarkers'](),_0x53e8ad=[];for(const {element:_0x598b50,attributes:_0x1d3f26}of _0x5bdeb5){if(!_0x1d3f26)continue;const _0x2ea6bc=_0x73ff8['model']['createRangeOn'](_0x598b50),_0x44848b=_0x5f062e['find'](_0x1328d9=>_0x1328d9['getRange']()['isEqual'](_0x2ea6bc));_0x44848b&&_0x53e8ad['push']([_0x44848b['name'],_0x1d3f26]);}_0x53e8ad['length']&&_0x38d19e['setAttribute']('markerAttributes',Object['fromEntries'](_0x53e8ad));}_0x46c0f0=null;}));},{'priority':_0x4b8f33['high']+0xa}),_0x374e84['on']('contentInsertion',()=>{_0x5b47af=!0x1;},{'priority':'lowest'}),_0x73ff8['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x5d6c80,_0x39e42d)=>{const [_0x9ff03e,_0x4c1621,,_0x8d7076]=_0x39e42d;if(!_0x46c0f0)return;_0x5d6c80['stop']();const _0x3ba080=_0x9ff03e['cell'],_0x3791fd=_0x4c1621,_0x1700c7=De(_0x3ba080),_0x3ef618=De(_0x3791fd);_0x5d6c80['return']=_0x3ba080;let _0x31e5b7=null,_0x1c7ffc=null;if(_0x3ef618||_0x1700c7){if(_0x1700c7&&!_0x3ef618){_0x8d7076['remove'](_0x3ba080['getChild'](0x0));for(const _0x39a105 of Array['from'](_0x3791fd['getChildren']()))_0x8d7076['insert'](_0x39a105,_0x3ba080,'end');const _0x72e7ef=_0x46c0f0['rowInsertionIndexes']['includes'](_0x9ff03e['row']),_0x296e77=_0x46c0f0['columnInsertionIndexes']['includes'](_0x9ff03e['column']);_0x72e7ef||_0x296e77||(_0x31e5b7=_0x597cd7['fromRange'](_0x8d7076['createRangeIn'](_0x3ba080)));}else _0x3ef618&&!_0x1700c7&&(_0x1c7ffc=_0x8d7076['createRangeIn'](_0x3ba080));}else{const _0x365c2f=_0x8d7076['createElement']('tableCellSuggestion'),_0x3e8c81=_0x8d7076['createElement']('tableCellSuggestion');_0x8d7076['wrap'](_0x8d7076['createRangeIn'](_0x3ba080),_0x3e8c81),_0x8d7076['insert'](_0x365c2f,_0x3ba080,0x0);for(const _0x31020a of Array['from'](_0x3791fd['getChildren']()))_0x8d7076['insert'](_0x31020a,_0x365c2f,'end');_0x31e5b7=_0x597cd7['fromRange'](_0x8d7076['createRangeOn'](_0x365c2f)),_0x1c7ffc=_0x597cd7['fromRange'](_0x8d7076['createRangeOn'](_0x3e8c81));}const _0x51a8a0=Array['from'](_0x3791fd['getAttributes']())['filter'](([_0x10bfe3])=>Oe['includes'](_0x10bfe3));_0x46c0f0['cells']['push']({'element':_0x3ba080,'attributes':_0x51a8a0['length']?Object['fromEntries'](_0x51a8a0):null}),_0x31e5b7&&_0x46c0f0['insertionRanges']['push'](_0x31e5b7),_0x1c7ffc&&_0x46c0f0['deletionRanges']['push'](_0x1c7ffc);},{'priority':'high'}),_0x1737f5['on']('insertColumns',(_0x2a968c,_0x422223)=>{const [_0x1ec8f0,_0x41440c={}]=_0x422223;if(!_0x46c0f0)return;const _0x1609cd=_0x41440c['at']||0x0,_0x12fde7=_0x41440c['columns']||0x1;_0x46c0f0['columnInsertionIndexes']=new Array(_0x12fde7)['fill'](_0x1609cd)['map']((_0x39eb9a,_0xa6bc08)=>_0x39eb9a+_0xa6bc08);for(const {cell:_0x4cb6dc}of _0x1737f5['createTableWalker'](_0x1ec8f0,{'startColumn':_0x1609cd,'endColumn':_0x1609cd+_0x12fde7-0x1}))_0x46c0f0['columnInsertionRanges']['push'](_0x73ff8['model']['createRangeOn'](_0x4cb6dc));},{'priority':'low'}),_0x1737f5['on']('insertRows',(_0x2cf119,_0x180d23)=>{const [_0x5439dc,_0x2c0bb3={}]=_0x180d23;if(!_0x46c0f0)return;const _0xf5ba1c=_0x2c0bb3['at']||0x0,_0x1bcc63=_0x2c0bb3['rows']||0x1;_0x46c0f0['rowInsertionIndexes']=new Array(_0x1bcc63)['fill'](_0xf5ba1c)['map']((_0x49c7a3,_0xa817ae)=>_0x49c7a3+_0xa817ae);for(const {cell:_0x171578}of _0x1737f5['createTableWalker'](_0x5439dc,{'startRow':_0xf5ba1c,'endRow':_0xf5ba1c+_0x1bcc63-0x1}))_0x46c0f0['rowInsertionRanges']['push'](_0x73ff8['model']['createRangeOn'](_0x171578));},{'priority':'low'}),_0x57f583['descriptionFactory']['registerDescriptionCallback'](_0x3ee1db=>{if(_0x3ee1db['subType']&&_0x3ee1db['subType']['startsWith']('tablePaste'))return _0x3ee1db['previous']?{}:{'type':'insertion','content':c(_0x73ff8['locale'],'*Replace\x20table\x20cells*')};});const _0x3edf0e=()=>!0x1;for(const _0x5da8ab of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x57f583['_suggestionFactory']['registerCustomCallback']('insertion',_0x5da8ab,'join',_0x3edf0e),_0x57f583['_suggestionFactory']['registerCustomCallback']('deletion',_0x5da8ab,'join',_0x3edf0e),_0x57f583['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5da8ab,'join',_0x3edf0e);_0x57f583['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3edf0e),_0x57f583['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x53b615,_0x342703,_0x591bae)=>{const _0x1d4fe2=_0x53b615['map'](_0x35c2bd=>_0x35c2bd['getContainedElement']())['filter'](_0x29716d=>_0x29716d),_0x5a4a99=new Map(_0x1d4fe2['map'](_0x8a72b9=>[_0x8a72b9,null]));if(_0x46c0f0){for(const {element:_0x5963f7,attributes:_0x14eb9b}of _0x46c0f0['cells'])_0x14eb9b&&_0x5a4a99['set'](_0x5963f7,_0x14eb9b);}else{if(_0x591bae&&_0x591bae['markerAttributes'])for(const [_0x49fd7c,_0x5ab748]of Object['entries'](_0x591bae['markerAttributes'])){const _0x278a41=_0x73ff8['model']['markers']['get'](_0x49fd7c),_0x36535c=_0x278a41?_0x278a41['getRange']()['getContainedElement']():null;_0x36535c&&_0x5a4a99['set'](_0x36535c,_0x5ab748);}}_0x73ff8['model']['change'](_0x549734=>{for(const [_0x20ae9a,_0x4f6ec0]of _0x5a4a99)_0x549734['setAttributes']({...Ue,..._0x4f6ec0},_0x20ae9a);});});const _0x17b9ff=(_0x204047,_0x401e6e)=>{_0x57f583['_suggestionFactory']['registerCustomCallback'](_0x204047,'tablePaste',_0x401e6e,(_0x70f32b,_0x5b14b3,_0x1857ef)=>{_0x73ff8['model']['change'](_0x1e07dd=>{const _0x48be72=[];for(const _0x8b203f of _0x70f32b){const _0x77af71=_0x8b203f['start']['nodeAfter'];_0x77af71['is']('element','tableCellSuggestion')&&_0x48be72['push'](_0x77af71);}_0x57f583['_suggestionFactory']['getSuggestionCallback'](_0x204047,null,_0x401e6e)(_0x70f32b,_0x5b14b3,_0x1857ef);for(const _0x4fca3c of _0x48be72)'$graveyard'!=_0x4fca3c['root']['rootName']&&_0x1e07dd['unwrap'](_0x4fca3c);});});};_0x17b9ff('insertion','accept'),_0x17b9ff('insertion','discard'),_0x17b9ff('deletion','accept'),_0x17b9ff('deletion','discard'),_0x57f583['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x5973ef=>{const _0x2611c5=_0x5973ef['map'](_0x158b48=>_0x158b48['getContainedElement']()),_0x240273=_0x2611c5[0x0]['findAncestor']('table'),{minRow:_0x1b97f1,maxRow:_0x20bcbc}=_0x4dc73d['_getCoordsForCells'](_0x2611c5);_0x1737f5['removeRows'](_0x240273,{'at':_0x1b97f1,'rows':_0x20bcbc-_0x1b97f1+0x1});}),_0x57f583['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0xd5eb66=>{const _0x2a8b7d=_0xd5eb66['map'](_0x88d2f4=>_0x88d2f4['getContainedElement']()),_0x407c91=_0x2a8b7d[0x0]['findAncestor']('table'),{minColumn:_0x46e219,maxColumn:_0x178516}=_0x4dc73d['_getCoordsForCells'](_0x2a8b7d);_0x1737f5['removeColumns'](_0x407c91,{'at':_0x46e219,'columns':_0x178516-_0x46e219+0x1});});const _0x94e5e9=(_0x24169a,_0x3354c0)=>{if(!_0x3354c0['subType']||!_0x3354c0['subType']['startsWith']('tablePaste'))return;const _0x5f747e=_0x3354c0['attributes']['tablePasteChainId'],_0x37c937=_0x57f583['getSuggestions']()['filter'](_0x1539fd=>_0x1539fd['isInContent']&&_0x1539fd['attributes']&&_0x1539fd['attributes']['tablePasteChainId']==_0x5f747e);_0x37c937['length']&&_0x3354c0['getAllAdjacentSuggestions']()['length']!=_0x37c937['length']&&_0x37c937['reduce']((_0x26d444,_0x230816)=>(_0x26d444['next']=_0x230816,_0x230816['previous']=_0x26d444,_0x230816));};function _0x2b0a57(_0x57beea,_0x1ac47f=!0x0){const {id:_0xeaa9ed,authorId:_0x1f5fa1}=_0x57f583['_splitMarkerName'](_0x57beea['markerName']),_0x312e7a=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5094c1=_0x57f583['activeMarkers']['includes'](_0x57beea['markerName']);return _0x5094c1&&_0x312e7a['push']('ck-suggestion-marker--active'),{'classes':_0x312e7a,'attributes':{'data-suggestion':_0xeaa9ed,'data-author-id':_0x1f5fa1},'priority':_0x5094c1&&_0x1ac47f?0xbc2:0xbb8};}_0x57f583['on']('suggestionLoaded',_0x94e5e9,{'priority':'high'}),_0x57f583['on']('suggestionUnloaded',_0x94e5e9,{'priority':'high'}),_0x73ff8['model']['document']['registerPostFixer'](()=>{let _0x1eeabf=!0x1;const _0x292c88=Array['from'](_0x73ff8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x42de37,data:_0x2ce2f6}of _0x292c88){const {group:_0x4eac86,type:_0x46d34b,id:_0x320522}=_0x57f583['_splitMarkerName'](_0x42de37);if('suggestion'!=_0x4eac86||'deletion'!=_0x46d34b||_0x2ce2f6['oldRange'])continue;if(!_0x57f583['hasSuggestion'](_0x320522))continue;const _0x28dc55=_0x57f583['getSuggestion'](_0x320522)['getRanges'](),_0x3cb35a=_0x73ff8['plugins']['get']('Users')['me'];for(const _0x92704b of _0x57f583['getSuggestions']()){if(!_0x92704b['isInContent']||_0x92704b['author']!=_0x3cb35a)continue;if('formatBlock'!=_0x92704b['type']||'tablePasteCell'!=_0x92704b['subType'])continue;if(_0x92704b['getRanges']()['every'](_0x3076c2=>_0x28dc55['some'](_0x3efc84=>_0x3efc84['containsRange'](_0x3076c2,!0x0)))){for(const _0x2a2516 of _0x92704b['getAllAdjacentSuggestions']())_0x2a2516['isInContent']&&(_0x2a2516['discard'](),_0x1eeabf=!0x0);}}}return _0x1eeabf;}),_0x73ff8['model']['document']['registerPostFixer'](_0xc257cd=>{const _0x4087f2=_0x73ff8['commands']['get']('redo');if(!_0x4087f2||!_0x4087f2['_createdBatches']['has'](_0xc257cd['batch']))return!0x1;let _0x397a69=!0x1;const _0x103dfe=_0x73ff8['plugins']['get']('Users')['me'],_0x1a7661=_0x73ff8['model']['document']['differ']['getChanges'](),_0x3ab427=Array['from'](_0x73ff8['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x21f894,data:_0x329c6a})=>{const {group:_0x46ca97,subType:_0x401b37,authorId:_0x2be004}=_0x57f583['_splitMarkerName'](_0x21f894);return'suggestion'==_0x46ca97&&'tablePaste'==_0x401b37&&_0x2be004==_0x103dfe['id']&&!_0x329c6a['oldRange'];});for(const _0x1e4f40 of _0x1a7661){if('insert'!=_0x1e4f40['type']||'tableCellSuggestion'!=_0x1e4f40['name']||0x1!=_0x1e4f40['length'])continue;const _0x1a9354=_0xc257cd['createRange'](_0x1e4f40['position'],_0x1e4f40['position']['getShiftedBy'](0x1));if(!_0x3ab427['find'](({data:_0x26b28e})=>_0x26b28e['newRange']['isEqual'](_0x1a9354))){for(const {name:_0x124dee,data:_0x52b0d8}of _0x3ab427)if(_0x1a9354['containsRange'](_0x52b0d8['newRange'])){_0xc257cd['updateMarker'](_0x124dee,{'range':_0x1a9354}),_0x397a69=!0x0;break;}}}return _0x397a69;}),_0x73ff8['model']['document']['registerPostFixer'](_0x570ce7=>{let _0x31695c=!0x1;const _0x55002d=_0x73ff8['plugins']['get']('Users')['me'],_0x400629=_0x57f583['getSuggestions']()['filter'](_0x435e9e=>_0x435e9e['isInContent']&&_0x435e9e['author']==_0x55002d),_0x1ae5f4=new Set(),_0xecf94d=new Set();for(const _0x4e35a0 of _0x400629)if('tablePaste'==_0x4e35a0['subType'])for(const _0x16dbf1 of _0x4e35a0['getMarkers']()){const _0x26c214=_0x16dbf1['getRange']()['getContainedElement']();if(_0x26c214){if(_0x26c214['is']('element','tableCellSuggestion')&&De(_0x26c214)){_0x4e35a0['removeMarker'](_0x16dbf1['name']),_0x1ae5f4['add'](_0x26c214),_0x31695c=!0x0;const _0x363230=_0x26c214['nextSibling'],_0x259456=_0x26c214['previousSibling'],_0x3d0ec3=_0x363230&&_0x363230['is']('element','tableCellSuggestion'),_0x5b699b=_0x259456&&_0x259456['is']('element','tableCellSuggestion');_0x3d0ec3&&!_0x1ae5f4['has'](_0x363230)&&_0xecf94d['add'](_0x363230),_0x5b699b&&!_0x1ae5f4['has'](_0x259456)&&_0xecf94d['add'](_0x259456);}else _0x26c214['is']('element','paragraph')&&_0x26c214['isEmpty']&&(_0x4e35a0['removeMarker'](_0x16dbf1['name']),_0x31695c=!0x0);}}else{if('tablePasteCell'==_0x4e35a0['subType']){if(!_0x4e35a0['attributes']||!_0x4e35a0['attributes']['tablePasteChainId'])continue;const _0x1c775c=_0x4e35a0['attributes']['markerAttributes'];if(_0x1c775c&&Object['keys'](_0x1c775c)['length'])continue;const _0x3df7be=_0x4e35a0['attributes']['tablePasteChainId'];let _0x2b9e6f=!0x0,_0x39630f=!0x0;for(const _0xecaaa0 of _0x400629)if(_0xecaaa0['subType']&&_0xecaaa0['subType']['startsWith']('tablePaste')){if(!_0xecaaa0['attributes']['tablePasteChainId']){_0x39630f=!0x1;break;}if(_0xecaaa0['id']!=_0x4e35a0['id']&&_0xecaaa0['attributes']['tablePasteChainId']==_0x3df7be){_0x2b9e6f=!0x1;break;}}_0x39630f&&_0x2b9e6f&&(_0x4e35a0['removeMarkers'](),_0x31695c=!0x0);}}for(const _0x54ee75 of _0x1ae5f4)_0x570ce7['remove'](_0x54ee75);for(const _0xaa8ced of _0xecf94d)_0x570ce7['unwrap'](_0xaa8ced);return _0x31695c;}),_0x73ff8['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x2be315=>_0x2b0a57(_0x2be315),'converterPriority':'high'}),_0x73ff8['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1f8e0d,_0x43d100)=>_0x43d100['options']['showSuggestionHighlights']?_0x2b0a57(_0x1f8e0d,!0x1):null,'converterPriority':'high'});const _0x15104d=_0x73ff8['editing']['view'];this['listenTo'](_0x15104d['document'],'clipboardOutput',(_0x2ecfbc,_0x1b1215)=>{const _0x14dacd=[];for(const _0x2e07dd of _0x15104d['createRangeIn'](_0x1b1215['content'])['getItems']())_0x2e07dd['is']('element','suggestion-td')&&_0x14dacd['push'](_0x2e07dd);_0x15104d['change'](_0x490d86=>{for(const _0x50297c of _0x14dacd)_0x490d86['move'](_0x490d86['createRangeIn'](_0x50297c),_0x490d86['createPositionBefore'](_0x50297c)),_0x490d86['remove'](_0x50297c);});});}}function De(_0x30c8ae){if(_0x30c8ae['isEmpty'])return!0x0;const _0x480335=_0x30c8ae['getChild'](0x0);return _0x480335['is']('element','paragraph')&&_0x480335['isEmpty'];}function He(_0x1a8f41,_0x2356aa={},_0x5ead01){for(const {isAnchor:_0x33792d,cellHeight:_0xb76efb,cellWidth:_0x295531}of _0x5ead01['createTableWalker'](_0x1a8f41,{'includeAllSlots':!0x0,..._0x2356aa}))if(!_0x33792d||0x1!=_0xb76efb||0x1!=_0x295531)return!0x1;return!0x0;}class Bt extends _0x5c1181{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x3969e1=this['editor']['plugins']['get']('TrackChangesEditing');_0x3969e1['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x3969e1['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x3969e1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3969e1['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x3969e1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x3969e1['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x227295,_0x150f96){const _0x4a9869=this['editor']['plugins']['get']('TrackChangesEditing'),_0x91d15f=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x292853=_0x150f96['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x347104=_0x91d15f['getColumnGroupElement'](_0x292853);let _0x873a46=_0x347104?_0x91d15f['getTableColumnsWidths'](_0x347104):null,_0x6178c9=_0x292853['getAttribute']('tableWidth')||null;const _0x2821bd=_0x150f96['tableWidth']||_0x6178c9,_0x348546=_0x150f96['columnWidths']||_0x873a46,_0x2407ee=this['editor']['plugins']['get']('Users')['me'];for(const _0x58b90a of _0x4a9869['getSuggestions']()){const _0x53d001=_0x58b90a['getContainedElement']();if('resizeTable'===_0x58b90a['subType']&&_0x53d001===_0x292853){_0x58b90a['author']!==_0x2407ee&&_0x58b90a['discard']();const _0x8799e1=_0x58b90a['data']['commandParams'];_0x6178c9=_0x8799e1[0x0]['tableWidth'],_0x873a46=_0x8799e1[0x0]['columnWidths'];break;}}_0x227295({'table':_0x292853,'tableWidth':_0x2821bd,'columnWidths':_0x348546}),_0x4a9869['markBlockFormat'](_0x292853,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x6178c9,'columnWidths':_0x873a46}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x43acb1){if('formatBlock'!=_0x43acb1['type']&&'formatInline'!=_0x43acb1['type'])return;const {data:_0x558f5f}=_0x43acb1;if(_0x558f5f&&'resizeTable'===_0x558f5f['formatGroupId']){const _0x351f39='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x351f39)};}}}class xt extends _0x5c1181{['afterInit'](){const _0x1bab27=this['editor'];_0x1bab27['plugins']['has']('Template')&&_0x1bab27['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x5c1181{['afterInit'](){const _0x376765=this['editor'];if(!_0x376765['commands']['get']('insertTableOfContents'))return;_0x376765['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x572a21=_0x376765['plugins']['get']('TrackChangesEditing'),_0x4f2f9b=_0x376765['locale'];_0x572a21['descriptionFactory']['registerElementLabel']('tableOfContents',_0x5845f4=>c(_0x4f2f9b,'ELEMENT_TABLE_OF_CONTENTS',_0x5845f4));}}class Rt extends _0x5c1181{['afterInit'](){const _0x394c72=this['editor'];if(!_0x394c72['plugins']['has']('Title'))return;const _0xef86a5=_0x394c72['plugins']['get']('TrackChangesEditing');_0xef86a5['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x394c72['locale'],'ELEMENT_TITLE')),_0x394c72['model']['document']['registerPostFixer'](_0xa029ee=>{let _0x924f91=!0x1;const _0x3a6905=Array['from'](_0x394c72['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5dcb49,data:_0x103fac}of _0x3a6905){const {group:_0x3facf9}=_0xef86a5['_splitMarkerName'](_0x5dcb49);if('suggestion'!==_0x3facf9||!_0x103fac['newRange'])continue;const _0x3c82ca=_0x103fac['newRange'],_0x4d1024=_0x3c82ca['end']['nodeBefore'];if(!_0x4d1024||!_0x4d1024['is']('element','title-content'))continue;if(!_0x3c82ca['start']['isTouching'](_0x3c82ca['end']))continue;const _0xda8261=_0x394c72['model']['schema']['getNearestSelectionRange'](_0x3c82ca['end'],'forward');if(_0xda8261&&_0xda8261['isCollapsed']){const _0x13e695=_0xa029ee['createRange'](_0x3c82ca['start'],_0xda8261['start']);_0x13e695['isEqual'](_0x3c82ca)||(_0xa029ee['updateMarker'](_0x5dcb49,{'range':_0x13e695}),_0x924f91=!0x0);}_0x924f91||(_0xa029ee['removeMarker'](_0x5dcb49),_0x924f91=!0x0);}return _0x924f91;});}}class Tt extends _0x5c1181{['afterInit'](){const _0x3b0cc0=this['editor'],_0x2f3849=_0x3b0cc0['plugins']['get']('TrackChangesEditing');_0x3b0cc0['plugins']['has']('Uploadcare')&&(_0x2f3849['enableCommand']('uploadcare'),_0x3b0cc0['plugins']['has']('UploadcareImageEdit')&&(_0x2f3849['enableCommand']('uploadcareImageEdit'),_0x2f3849['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x2f3849['registerBlockAttribute']('uploadcareImageId'),_0x2f3849['descriptionFactory']['registerDescriptionCallback'](_0x45f021=>{if('attribute'!=_0x45f021['type'])return;const {data:_0x1da00f}=_0x45f021;return _0x1da00f&&'uploadcareImageId'==_0x1da00f['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x5c1181{['afterInit'](){const _0x570d49=this['editor'],_0x339f37=_0x570d49['plugins']['get']('TrackChangesEditing');_0x570d49['plugins']['has']('UndoEditing')&&(_0x339f37['enableCommand']('undo'),_0x339f37['enableCommand']('redo'));}}class Ut extends _0x5c1181{static get['requires'](){return[Ct];}['afterInit'](){const _0x432e05=this['editor'];if(!_0x432e05['plugins']['has']('TableCaptionEditing'))return;_0x432e05['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x5c1181{['tableProperties'];['tableCellProperties'];constructor(_0x4a96bc){super(_0x4a96bc),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 _0x45724e=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x422929 of this['tableProperties'])_0x45724e['enableCommand'](_0x422929,(_0x475fd3,_0xbf8f31)=>{const _0x2e8790=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x422929,[_0x2e8790],this['tableProperties'],'tableProperties',_0x475fd3,_0xbf8f31);});_0x45724e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x45724e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x45724e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x12dc53,_0x1a78a9)=>this['handleDiscardAction'](this['tableProperties'],_0x12dc53,_0x1a78a9)),_0x45724e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x3d8aa3 of this['tableCellProperties'])_0x45724e['enableCommand'](_0x3d8aa3,(_0x967719,_0x41b70a)=>{const _0x469ef0=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x3d8aa3,_0x469ef0,this['tableCellProperties'],'tableCellProperties',_0x967719,_0x41b70a);});_0x45724e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x45724e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x45724e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x270605,_0x2ffae1)=>this['handleDiscardAction'](this['tableCellProperties'],_0x270605,_0x2ffae1)),_0x45724e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x45724e['descriptionFactory']['registerDescriptionCallback'](_0x4f9c9a=>this['handleSuggestionDescription'](_0x4f9c9a));}['_handlePropertyChange'](_0x54cd60,_0x4c0dbd,_0x47f6ba,_0x1a5dda,_0x5c1891,_0x43e813){const _0x103985=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x43e813['batch'],()=>{for(const _0x6294d of _0x4c0dbd){if(this['_getSuggestion'](_0x6294d,_0x1a5dda))_0x5c1891(_0x43e813);else{const _0x88abd0={};for(const _0x588a3f of _0x47f6ba){const _0x1249a=_0x6294d['getAttribute'](_0x588a3f);void 0x0!==_0x1249a&&(_0x88abd0[_0x588a3f]=_0x1249a);}_0x5c1891(_0x43e813),_0x103985['markBlockFormat'](_0x6294d,{'commandParams':[_0x88abd0]},[],_0x1a5dda);}}});}['handleDiscardAction'](_0x272848,_0x8f6f53,_0x4e65e0){const _0x276dcb=_0x8f6f53[0x0]['start']['nodeAfter'],_0x49aebe=_0x4e65e0['commandParams'][0x0];this['editor']['model']['change'](_0x2c9a90=>{for(const _0x1a487c of _0x272848)void 0x0!==_0x49aebe[_0x1a487c]?_0x2c9a90['setAttribute'](_0x1a487c,_0x49aebe[_0x1a487c],_0x276dcb):_0x2c9a90['removeAttribute'](_0x1a487c,_0x276dcb);});}['handleSuggestionDescription'](_0x116d15){if(_0x116d15['data'])switch(_0x116d15['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x236924,_0x1c5957){const _0x29a88c=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x28dcdf of _0x29a88c['getSuggestions']({'skipNotAttached':!0x0})){const _0x5d83cd=_0x28dcdf['getContainedElement']();if(_0x28dcdf['subType']===_0x1c5957&&_0x5d83cd===_0x236924)return _0x28dcdf;}return null;}}const u='$elementName';class p extends _0x5c1181{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x4a4901,_0x2f18b2,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,it,et,nt,st,ot,rt,ct,at,ut,ft,ht,gt,Q,wt,lt,W,Se,mt,pt,kt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Ot,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x23ce1b){super(_0x23ce1b),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x542b8e,_0x1cdbe5,_0x507ca1,_0x31a80d)=>{this['_model']['change'](()=>{for(const _0x59f763 of[..._0x31a80d,..._0x507ca1])this['_model']['markers']['has'](_0x59f763)&&_0x23ce1b['editing']['reconvertMarker'](_0x59f763);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x23ce1b['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x23ce1b['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x23ce1b['config']['get']('trackChanges.trackFormatChanges'),_0x23ce1b['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x23ce1b['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x23ce1b,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x27bdfc=this['editor'],_0x58e709=(_0xe0a5c8,_0x184635)=>{if('attribute'!=_0xe0a5c8)return'ck-suggestion-marker-'+_0xe0a5c8;const _0x3708cb=_0x184635['split']('|')[0x0];return this['_isBlockAttribute'](_0x3708cb)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x27bdfc['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x42636d=>{const {id:_0x9ae946,authorId:_0x25ff33,type:_0x4f2165,subType:_0x5d5537}=this['_splitMarkerName'](_0x42636d['markerName']),_0x3ffda=['ck-suggestion-marker',_0x58e709(_0x4f2165,_0x5d5537)];let _0x43f9a9=0xbb8;return this['activeMarkers']['includes'](_0x42636d['markerName'])&&(_0x3ffda['push']('ck-suggestion-marker--active'),_0x43f9a9=0xbc2),'deletion'==_0x4f2165&&(_0x43f9a9+=0x5),{'classes':_0x3ffda,'attributes':{'data-suggestion':_0x9ae946,'data-author-id':_0x25ff33},'priority':_0x43f9a9};}}),_0x27bdfc['conversion']['for']('dataDowncast')['add'](_0x14070a=>{_0x14070a['on']('addMarker:suggestion',(_0x5adf9c,_0x181634,_0x3ade61)=>{if(!_0x3ade61['options']['showSuggestionHighlights'])return;const _0x3e5f55=_0x181634['item'];if(!_0x3e5f55)return;const _0x27bc8a=_0x3ade61['mapper']['toViewElement'](_0x3e5f55);_0x27bdfc['model']['schema']['isObject'](_0x3e5f55)&&_0x27bc8a&&!_0x27bc8a['getCustomProperty']('widget')&&_0x27bc8a['is']('containerElement')&&_0x586b6a(_0x27bc8a,_0x3ade61['writer']);},{'priority':'high'});}),_0x27bdfc['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x9e9787,_0xcebd7a)=>{if(!_0xcebd7a['options']['showSuggestionHighlights'])return null;const {id:_0x2180bf,authorId:_0x54f9ad,type:_0x114650,subType:_0x48c3e0}=this['_splitMarkerName'](_0x9e9787['markerName']);return{'classes':['ck-suggestion-marker',_0x58e709(_0x114650,_0x48c3e0)],'priority':0xbb8,'attributes':{'data-suggestion':_0x2180bf,'data-author-id':_0x54f9ad}};}});const _0x56f5f9=({showActiveMarkers:_0xd1f67a=!0x0,isAttributeSuggestion:_0x35bd7d=!0x1}={})=>(_0x38e9ba,_0x540d10,_0x2bda81)=>{if(!_0x540d10['item'])return;const {id:_0x8837a7,authorId:_0x5ef822}=this['_splitMarkerName'](_0x540d10['markerName']);if(_0x35bd7d){const _0x7f65b3=this['_suggestions']['get'](_0x8837a7),_0x4823c8=this['_getAttributeKey'](_0x7f65b3);if(!this['_isBlockAttribute'](_0x4823c8))return;}if(_0x540d10['item']['is']('selection'))return void _0x2bda81['consumable']['consume'](_0x540d10['item'],_0x38e9ba['name']);const _0x123394=_0x2bda81['mapper']['toViewElement'](_0x540d10['item']);if(_0x540d10['item']['is']('element')&&_0x27bdfc['model']['schema']['isBlock'](_0x540d10['item'])&&!_0x123394['getCustomProperty']('addHighlight')){_0x2bda81['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x123394),_0x2bda81['writer']['setAttribute']('data-suggestion',_0x8837a7,_0x123394),_0x2bda81['writer']['setAttribute']('data-author-id',_0x5ef822,_0x123394),_0x2bda81['mapper']['bindElementToMarker'](_0x123394,_0x540d10['markerName']),_0xd1f67a&&(this['activeMarkers']['includes'](_0x540d10['markerName'])?_0x2bda81['writer']['addClass']('ck-suggestion-marker--active',_0x123394):_0x2bda81['writer']['removeClass']('ck-suggestion-marker--active',_0x123394));for(const _0x23599e of _0x27bdfc['model']['createRangeIn'](_0x540d10['item'])['getItems']())_0x2bda81['consumable']['consume'](_0x23599e,_0x38e9ba['name']);_0x2bda81['consumable']['consume'](_0x540d10['item'],_0x38e9ba['name']);}};_0x27bdfc['conversion']['for']('dataDowncast')['add'](_0x1ae102=>{_0x1ae102['on']('addMarker:suggestion:formatBlock',(_0x2c6289,_0x540165,_0x248e19)=>{_0x248e19['options']['showSuggestionHighlights']&&_0x56f5f9({'showActiveMarkers':!0x1})(_0x2c6289,_0x540165,_0x248e19);},{'priority':'highest'});}),_0x27bdfc['conversion']['for']('dataDowncast')['add'](_0x11da31=>{_0x11da31['on']('addMarker:suggestion:attribute',(_0x448100,_0x457581,_0x211673)=>{_0x211673['options']['showSuggestionHighlights']&&_0x56f5f9({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x448100,_0x457581,_0x211673);},{'priority':'highest'});}),_0x27bdfc['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x554929,_0x5550a6)=>{if(_0x5550a6['options']['showSuggestionHighlights']){const {id:_0x307adb,authorId:_0x23c175}=this['_splitMarkerName'](_0x554929);return _0x554929['includes'](':split')||_0x554929['includes'](':merge')?{'group':'suggestion','name':_0x554929['substr'](0xb),'attributes':{'data-suggestion':_0x307adb,'data-author-id':_0x23c175}}:null;}return{'group':'suggestion','name':_0x554929['substr'](0xb)};}}),_0x27bdfc['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3f89cd,{writer:_0x95d2de})=>{let _0x19de02='suggestion:'+_0x3f89cd['getAttribute']('suggestion-type')+':'+_0x3f89cd['getAttribute']('id');return _0x3f89cd['getAttribute']('marker-count')&&(_0x19de02+=':'+_0x3f89cd['getAttribute']('marker-count')),_0x95d2de['createElement']('$marker',{'data-name':_0x19de02});}}),_0x27bdfc['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x27bdfc['conversion']['for']('editingDowncast')['add'](_0x1c0678=>{_0x1c0678['on']('addMarker:suggestion:formatBlock',_0x56f5f9(),{'priority':'high'});}),_0x27bdfc['conversion']['for']('editingDowncast')['add'](_0x4f1a29=>{_0x4f1a29['on']('addMarker:suggestion:attribute',_0x56f5f9({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x27bdfc['conversion']['for']('editingDowncast')['add'](_0x178c6b=>{_0x178c6b['on']('removeMarker:suggestion:formatBlock',(_0x4c02ad,_0x4a7a07,_0x44024b)=>{const _0x5d8c9f=_0x44024b['mapper']['markerNameToElements'](_0x4a7a07['markerName']);if(_0x5d8c9f){for(const _0x53157b of _0x5d8c9f)_0x53157b['getCustomProperty']('addHighlight')||(_0x44024b['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x53157b),_0x44024b['writer']['removeAttribute']('data-suggestion',_0x53157b),_0x44024b['writer']['removeAttribute']('data-author-id',_0x53157b),_0x44024b['mapper']['unbindElementFromMarkerName'](_0x53157b,_0x4a7a07['markerName']));}},{'priority':'high'});}),_0x27bdfc['conversion']['for']('editingDowncast')['add'](_0x3a196e=>{_0x3a196e['on']('removeMarker:suggestion:attribute',(_0x31f6a4,_0x58a796,_0x2f592a)=>{const _0x494800=_0x2f592a['mapper']['markerNameToElements'](_0x58a796['markerName']);if(!_0x494800)return;const {id:_0x4aacb9}=this['_splitMarkerName'](_0x58a796['markerName']),_0x55c613=this['_suggestions']['get'](_0x4aacb9),_0x2ad7a5=this['_getAttributeKey'](_0x55c613);if(this['_isBlockAttribute'](_0x2ad7a5)){for(const _0x3fe9ed of _0x494800)_0x3fe9ed['getCustomProperty']('addHighlight')||(_0x2f592a['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3fe9ed),_0x2f592a['writer']['removeAttribute']('data-suggestion',_0x3fe9ed),_0x2f592a['writer']['removeAttribute']('data-author-id',_0x3fe9ed),_0x2f592a['mapper']['unbindElementFromMarkerName'](_0x3fe9ed,_0x58a796['markerName']));}},{'priority':'high'});}),_0x27bdfc['model']['document']['registerPostFixer'](_0xadfc78=>{let _0x467c5a=!0x1;const _0x4dda9d=Array['from'](_0x27bdfc['model']['document']['differ']['getChangedMarkers']()),_0x3b5bd9=new Set();for(const {name:_0x580c09,data:_0x13f1cd}of _0x4dda9d){const {group:_0x42645b,type:_0x44d4b9,subType:_0x4e8c15,id:_0x2d27e4}=this['_splitMarkerName'](_0x580c09);if('suggestion'!==_0x42645b)continue;const _0x439c13=this['_suggestions']['get'](_0x2d27e4);if(null!=_0x13f1cd['newRange']){'formatInline'==_0x44d4b9&&(_0x467c5a=_0x467c5a||Jt(_0x13f1cd['newRange'],_0x580c09,_0xadfc78,_0x27bdfc['model']['schema']));const _0x3b4d87='attribute'==_0x44d4b9&&this['_isBlockAttribute'](_0x4e8c15['split']('|')[0x0]);if(_0x13f1cd['newRange']['isCollapsed']||'$graveyard'==_0x13f1cd['newRange']['root']['rootName']||'formatBlock'==_0x44d4b9&&!Ht(_0x13f1cd['newRange'])||_0x3b4d87&&!Ht(_0x13f1cd['newRange'])||'deletion'==_0x44d4b9&&!(!Lt(_0xbb1453=_0x13f1cd['newRange'])&&!function(_0x1d5216){return _0x1d5216['start']['parent']==_0x1d5216['end']['nodeBefore']&&_0x1d5216['start']['isAtEnd'];}(_0xbb1453)))_0xadfc78['removeMarker'](_0x580c09),_0x467c5a=!0x0;else{if(!_0x439c13||!_0x439c13['isInContent'])continue;if(_0x13f1cd['newRange']&&_0x13f1cd['oldRange']&&_0x13f1cd['newRange']['isEqual'](_0x13f1cd['oldRange']))continue;_0x3b5bd9['add'](_0x439c13);}}}var _0xbb1453;return _0x3b5bd9['size']>0x0&&(_0x467c5a=!!this['_joinWithAdjacentSuggestions'](_0x3b5bd9)||_0x467c5a),_0x467c5a;}),_0x27bdfc['model']['document']['registerPostFixer'](_0xcb3fbc=>{let _0x3fa8eb=!0x1;for(const _0x1cf71f of _0x27bdfc['model']['document']['differ']['getChanges']())if('insert'==_0x1cf71f['type'])for(const _0x478887 of this['_suggestions']['values']()){if(_0x478887['isMultiRange']||!_0x478887['isInContent'])continue;const _0x1c501c='formatBlock'==_0x478887['type'],_0x306233=this['_getAttributeKey'](_0x478887),_0x4c1ac6=_0x306233&&this['_isBlockAttribute'](_0x306233);if(!_0x1c501c&&!_0x4c1ac6)continue;const _0x1a6bb4=_0x478887['getFirstRange']();if(_0x1a6bb4['start']['parent']!=_0x1a6bb4['end']['parent']&&!_0x1a6bb4['end']['isAtEnd']){const _0x3fe5c7=_0x27bdfc['model']['createPositionAt'](_0x1a6bb4['start']['nodeAfter'],'end'),_0x2d60c1=_0x27bdfc['model']['createRange'](_0x1a6bb4['start'],_0x3fe5c7);_0xcb3fbc['updateMarker'](_0x478887['getFirstMarker'](),{'range':_0x2d60c1}),_0x3fa8eb=!0x0;}}return _0x3fa8eb;}),_0x27bdfc['model']['document']['registerPostFixer'](_0x456794=>this['_processAttributeChanges'](_0x456794)),_0x27bdfc['model']['document']['registerPostFixer'](_0x2bd9fa=>!_0x2bd9fa['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2bd9fa)),_0x27bdfc['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x27bdfc['model']['document']['on']('change:data',(_0xf6f88e,_0x575f3b)=>{if(!_0x575f3b['isLocal']||_0x575f3b['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2b52ec=_0x27bdfc['model']['document']['differ']['getChanges']();if(0x0==_0x2b52ec['length'])return;const _0x2a91d1=[],_0x4e4fef=_0x2b52ec['filter'](_0x7b1cf1=>'attribute'==_0x7b1cf1['type']),_0x287ce1=_0x2b52ec['filter'](_0x1782a5=>'insert'==_0x1782a5['type']&&'$text'!=_0x1782a5['name']);for(const _0x2f10f1 of _0x4e4fef)this['_isRegisteredAttribute'](_0x2f10f1['attributeKey'])&&_0x2a91d1['push']({'key':_0x2f10f1['attributeKey'],'newValue':_0x2f10f1['attributeNewValue'],'oldValue':_0x2f10f1['attributeOldValue'],'range':qt(_0x2f10f1['range'],_0x27bdfc['model'])});for(const _0x50f0ce of _0x287ce1){if('rename'!=_0x50f0ce['action']&&'refresh'!=_0x50f0ce['action'])continue;const _0xa53430=zt(_0x50f0ce['position']['nodeAfter'],_0x27bdfc['model']),_0x26ffa7=_0x50f0ce['before'];'rename'==_0x50f0ce['action']&&_0x2a91d1['push']({'key':u,'newValue':_0x50f0ce['name'],'oldValue':_0x26ffa7['name'],'range':_0xa53430});for(const [_0x16f017,_0x486e85]of _0x26ffa7['attributes']){if(!this['_isRegisteredAttribute'](_0x16f017))continue;const _0x2d89cd=_0x50f0ce['attributes']['get'](_0x16f017);_0x486e85!==_0x2d89cd&&_0x2a91d1['push']({'key':_0x16f017,'newValue':_0x2d89cd,'oldValue':_0x486e85,'range':_0xa53430});}for(const [_0x3dd5fe,_0x35f5b9]of _0x50f0ce['attributes'])this['_isRegisteredAttribute'](_0x3dd5fe)&&(_0x26ffa7['attributes']['has'](_0x3dd5fe)||_0x2a91d1['push']({'key':_0x3dd5fe,'newValue':_0x35f5b9,'oldValue':null,'range':_0xa53430}));}0x0!=_0x2a91d1['length']&&_0x27bdfc['model']['enqueueChange'](_0x575f3b,_0xb50389=>{const _0x4ab150=_0x1b595f();for(const {range:_0x326a40,key:_0x317137,oldValue:_0x1d7332,newValue:_0x37fc76}of _0x2a91d1)this['markAttributeChange'](_0x326a40,_0x317137,_0x1d7332,_0x37fc76,{'groupId':_0x4ab150});this['_reduceExistingSuggestions'](_0xb50389,_0x2a91d1);});},{'priority':'lowest'}),_0x27bdfc['model']['markers']['on']('update:suggestion',(_0xa35f07,_0x108d88,_0x1bf24d)=>{if(null==_0x1bf24d){const {id:_0x1dd81d}=this['_splitMarkerName'](_0x108d88['name']),_0x2273b0=this['_suggestions']['get'](_0x1dd81d);_0x2273b0&&_0x2273b0['addMarkerName'](_0x108d88['name']);}}),_0x27bdfc['model']['document']['on']('change:data',()=>{const _0x2afd02=Array['from'](_0x27bdfc['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2a28ff=>'suggestion'===this['_splitMarkerName'](_0x2a28ff['name'])['group']);if(0x0===_0x2afd02['length'])return;_0x2afd02['sort']((_0x41fed7,_0x56229e)=>{const _0x752787=_0x41fed7['data']['oldRange'],_0x14d30f=_0x56229e['data']['oldRange'];return null===_0x752787&&null===_0x14d30f?0x0:null===_0x752787&&null!==_0x14d30f?-0x1:null!==_0x752787&&null===_0x14d30f?0x1:_0x752787['start']['isBefore'](_0x14d30f['start'])?-0x1:0x1;});const _0x35ebd4=new Set(),_0x493ac4=new Set();for(const {name:_0x54c021,data:_0x1d25de}of _0x2afd02){const {id:_0x5bd328}=this['_splitMarkerName'](_0x54c021);if(null===_0x1d25de['oldRange']){const _0x585905=this['_handleNewSuggestionMarker'](_0x54c021);_0x493ac4['add'](_0x585905);}else{const _0x2fae8a=this['_suggestions']['get'](_0x5bd328);null!==_0x1d25de['newRange']||_0x2fae8a['isInContent']?(_0x35ebd4['add'](_0x2fae8a['head']),_0x493ac4['add'](_0x2fae8a)):this['_removeSuggestion'](_0x2fae8a);}}_0x493ac4['size']>0x0&&this['_refreshSuggestionsChain'](_0x493ac4);for(const _0x528f05 of _0x35ebd4)this['fire']('suggestionChanged',_0x528f05);}),_0x27bdfc['model']['on']('applyOperation',(_0x3c1cbe,_0x3b3298)=>{const _0x34988e=_0x3b3298[0x0];if(!this['_suggestions']['size'])return;if(!_0x34988e['isDocumentOperation'])return;if(_0x34988e['batch']['isUndo']||!_0x34988e['batch']['isLocal'])return;let _0x5ee98e,_0x50fb5d;switch(_0x34988e['type']){case'insert':_0x5ee98e=_0x27bdfc['model']['createPositionAt'](_0x34988e['position']),_0x50fb5d=_0x5ee98e['getShiftedBy'](_0x34988e['howMany']);break;case'split':_0x5ee98e=_0x27bdfc['model']['createPositionAt'](_0x34988e['splitPosition']),_0x50fb5d=_0x27bdfc['model']['createPositionAt'](_0x34988e['moveTargetPosition']);break;case'move':_0x5ee98e=_0x27bdfc['model']['createPositionAt'](_0x34988e['targetPosition']),_0x50fb5d=_0x5ee98e['getShiftedBy'](_0x34988e['howMany']);break;default:return;}const _0x5a3239=_0x27bdfc['model']['createRange'](_0x5ee98e,_0x50fb5d);_0x27bdfc['model']['change'](()=>{for(const {suggestion:_0x4e05f4,meta:_0x101a0a}of this['_findSuggestions'](_0x5a3239)){if(_0x4e05f4['isMultiRange'])continue;if('formatInline'==_0x4e05f4['type'])continue;const _0x1dadb2=this['_getAttributeKey'](_0x4e05f4);if(_0x1dadb2&&this['_isBlockAttribute'](_0x1dadb2)&&'split'!=_0x34988e['type'])continue;const _0x17ecd0=_0x4e05f4['data']&&_0x4e05f4['data']['multipleBlocks'];('formatBlock'!=_0x4e05f4['type']||'split'==_0x34988e['type']&&!_0x17ecd0)&&(_0x101a0a['containsRangeInObject']||'insertion'==_0x4e05f4['type']&&_0x101a0a['isOwn']||_0x4e05f4['getFirstRange']()['containsRange'](_0x5a3239)&&this['_breakSuggestionMarker'](_0x4e05f4,_0x5ee98e,_0x50fb5d));}});},{'priority':'lowest'}),_0x27bdfc['model']['on']('deleteContent',(_0x3c7033,_0x3b3051)=>{const _0x2bd991=_0x3b3051[0x0],_0x30dcdf=_0x3b3051[0x1];if(_0x30dcdf&&_0x30dcdf['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2bd991['isCollapsed'])return;const _0x2b8be7=_0x27bdfc['model']['schema'],{start:_0x442002,end:_0x58677c}=_0x2bd991['getFirstRange'](),_0x42e5b=_0x442002['nodeAfter']&&_0x2b8be7['isLimit'](_0x442002['nodeAfter'])?null:_0x2b8be7['getNearestSelectionRange'](_0x442002,'forward'),_0x1a3a00=_0x58677c['nodeBefore']&&_0x2b8be7['isLimit'](_0x58677c['nodeBefore'])?null:_0x2b8be7['getNearestSelectionRange'](_0x58677c,'backward'),_0x413234=_0x27bdfc['model']['createRange'](_0x42e5b?_0x42e5b['start']:_0x442002,_0x1a3a00?_0x1a3a00['end']:_0x58677c);_0x27bdfc['model']['change'](_0x599c63=>{this['markDeletion'](_0x413234);const _0x21f4e5=_0x27bdfc['model']['schema']['getNearestSelectionRange'](_0x413234['start']);_0x2bd991['is']('documentSelection')?_0x599c63['setSelection'](_0x21f4e5):_0x2bd991['setTo'](_0x21f4e5);}),_0x3c7033['stop']();},{'priority':_0x4b8f33['normal']+0xa}),_0x27bdfc['model']['on']('insertContent',(_0xc8d6e2,_0x907cf1)=>{const _0x39c94a=_0x907cf1[_0x907cf1['length']-0x1];_0x39c94a&&_0x39c94a['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x27bdfc['model']['change'](()=>{let _0x2d1fb1=_0x27bdfc['model']['insertContent'](_0x907cf1[0x0],_0x907cf1[0x1],_0x907cf1[0x2],{'forceDefaultExecution':!0x0});if(!_0x2d1fb1)return;_0xc8d6e2['return']=_0x2d1fb1['clone']();const _0x39a679=_0x2d1fb1['end']['nodeBefore'],_0xa352e0=_0x27bdfc['model']['schema'];_0x39a679&&_0xa352e0['isBlock'](_0x39a679)&&!_0xa352e0['isObject'](_0x39a679)&&(_0x2d1fb1=_0x27bdfc['model']['createRange'](_0x2d1fb1['start'],_0x27bdfc['model']['createPositionAt'](_0x39a679,'end'))),this['markInsertion'](_0x2d1fb1);}),_0xc8d6e2['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x6477ff=new x(_0x27bdfc,this['_suggestions']);_0x27bdfc['commands']['add']('acceptSuggestion',_0x6477ff),this['enableCommand']('acceptSuggestion');const _0x39ecb0=new O(_0x27bdfc,this['_suggestions']);_0x27bdfc['commands']['add']('discardSuggestion',_0x39ecb0),this['enableCommand']('discardSuggestion'),_0x27bdfc['commands']['add']('acceptAllSuggestions',new R(_0x27bdfc,_0x6477ff,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x27bdfc['commands']['add']('discardAllSuggestions',new R(_0x27bdfc,_0x39ecb0,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x27bdfc['commands']['add']('acceptSelectedSuggestions',new E(_0x27bdfc,_0x6477ff,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x27bdfc['commands']['add']('discardSelectedSuggestions',new E(_0x27bdfc,_0x39ecb0,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x45a24d=_0x27bdfc['plugins']['get']('CommentsRepository');this['listenTo'](_0x45a24d,'addComment',(_0x38b74c,{threadId:_0x5570d1})=>{const _0x4c626b=this['_suggestions']['get'](_0x5570d1);_0x4c626b&&_0x4c626b['commentThread']&&0x1===_0x4c626b['commentThread']['length']&&this['_updateSuggestionData'](_0x5570d1,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x45a24d,'removeComment',(_0x209817,{threadId:_0xde2e00})=>{const _0x5c337a=this['_suggestions']['get'](_0xde2e00);_0x5c337a&&_0x5c337a['commentThread']&&!_0x5c337a['commentThread']['length']&&this['_updateSuggestionData'](_0xde2e00,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x5c263a){const _0x396a95=_0x244c3f([0x69,0x4a,0x68,0x37,0x6f,0x35,0x6d,0x32,0x54,0x6c,0x5a,0x72,0x39,0x64,0x47,0x71,0x58,0x79,0x45,0x75,0x31,0x4b,0x4d,0x48,0x76,0x46,0x70,0x50,0x6b,0x4f,0x73,0x67,0x4c,0x57,0x78,0x36,0x49,0x6e,0x33,0x55,0x65,0x38,0x42,0x63,0x7a,0x62,0x34,0x59,0x51,0x30,0x66,0x53,0x6a,0x43,0x61,0x74,0x77,0x44,0x4e,0x41,0x56,0x52]),_0x1f573c=0x38ed8500,_0x530f7b=0x38eae288^_0x1f573c,_0x86b5a7=window[_0x244c3f([0x44,0x61,0x74,0x65])][_0x244c3f([0x6e,0x6f,0x77])](),_0x576d50=_0x5c263a[_0x244c3f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3a6316=new window[(_0x244c3f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x10122e=>{_0x576d50[_0x244c3f([0x6f,0x6e,0x63,0x65])](_0x244c3f([0x72,0x65,0x61,0x64,0x79]),_0x10122e);}),_0x249101={[_0x244c3f([0x6b,0x74,0x79])]:_0x244c3f([0x45,0x43]),[_0x244c3f([0x75,0x73,0x65])]:_0x244c3f([0x73,0x69,0x67]),[_0x244c3f([0x63,0x72,0x76])]:_0x244c3f([0x50,0x2d,0x32,0x35,0x36]),[_0x244c3f([0x78])]:_0x244c3f([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]),[_0x244c3f([0x79])]:_0x244c3f([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]),[_0x244c3f([0x61,0x6c,0x67])]:_0x244c3f([0x45,0x53,0x32,0x35,0x36])},_0x142b8a=_0x576d50[_0x244c3f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x244c3f([0x67,0x65,0x74])](_0x244c3f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2cb41f(){let _0x3b40b6,_0x1601ee=null,_0x3afaba=null;try{if(_0x142b8a==_0x244c3f([0x47,0x50,0x4c]))return _0x244c3f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3b40b6=_0x6a9165(),!_0x3b40b6)return _0x244c3f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3b40b6[_0x244c3f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3afaba=_0x4437c0(_0x3b40b6[_0x244c3f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3b40b6[_0x244c3f([0x6a,0x74,0x69])])),await _0x3c6dc6()?_0x339992()?_0x47327f()?_0x244c3f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x40e750()?(_0x3b40b6[_0x244c3f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x244c3f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1601ee=_0x4b0d7e(_0x244c3f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3b40b6[_0x244c3f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x244c3f([0x74,0x72,0x69,0x61,0x6c])&&(_0x1601ee=_0x4b0d7e(_0x244c3f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2c9601()):_0x244c3f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x244c3f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x244c3f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x2296a3){return _0x244c3f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x47327f(){const _0xec1351=[_0x244c3f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x244c3f([0x74,0x72,0x69,0x61,0x6c])][_0x244c3f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b40b6[_0x244c3f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x86b5a7/0x3e8:0xe10*_0x530f7b;return _0x3b40b6[_0x244c3f([0x65,0x78,0x70])]<_0xec1351;}function _0x339992(){const _0x62c6e3=_0x3b40b6[_0x244c3f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x62c6e3)return!0x1;if(_0x62c6e3[_0x244c3f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x244c3f([0x2a])))return!0x0;if(_0x62c6e3[_0x244c3f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x244c3f([0x54,0x43])))return!0x0;if(_0x62c6e3[_0x244c3f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x244c3f([0x52,0x54,0x43]))){if(_0x1cc6aa())return!0x0;if(_0x41a6f8()||_0x277b5c())return!0x0;}return!0x1;}function _0x40e750(){const _0x262c91=_0x3b40b6[_0x244c3f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x262c91||0x0==_0x262c91[_0x244c3f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x6fc0a9}=new URL(window[_0x244c3f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x262c91[_0x244c3f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6fc0a9))return!0x0;const _0x41b3a2=_0x6fc0a9[_0x244c3f([0x73,0x70,0x6c,0x69,0x74])](_0x244c3f([0x2e]));return _0x262c91[_0x244c3f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x24ee2d=>_0x24ee2d[_0x244c3f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x244c3f([0x2a])))[_0x244c3f([0x6d,0x61,0x70])](_0x8b5385=>_0x8b5385[_0x244c3f([0x73,0x70,0x6c,0x69,0x74])](_0x244c3f([0x2e])))[_0x244c3f([0x73,0x6f,0x6d,0x65])](_0x1c38f5=>_0x41b3a2[_0x244c3f([0x65,0x76,0x65,0x72,0x79])]((_0x2e5bec,_0x520398)=>_0x1c38f5[_0x520398]===_0x2e5bec||_0x1c38f5[_0x520398]===_0x244c3f([0x2a])));}function _0x2c9601(){return _0x1601ee&&_0x3afaba?new window[(_0x244c3f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4736e9,_0x4aeffb)=>{_0x1601ee[_0x244c3f([0x74,0x68,0x65,0x6e])](_0x4736e9,_0x4aeffb),_0x3afaba[_0x244c3f([0x74,0x68,0x65,0x6e])](_0x1cb066=>{_0x1cb066!=_0x244c3f([0x56,0x61,0x6c,0x69,0x64])&&_0x4736e9(_0x1cb066);},_0x4aeffb);}):_0x1601ee||_0x3afaba||_0x244c3f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4437c0(_0x2e41c4,_0x5955cd){return new window[(_0x244c3f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d033a=>{if(_0x35b4b6())return _0x5d033a(_0x244c3f([0x56,0x61,0x6c,0x69,0x64]));_0x58a48e(),_0x576d50[_0x244c3f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x244c3f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x28e10b=!0x1;const _0xfab0fb=_0x1b595f();function _0x5d18d0(_0x1cef14){return!!_0x1cef14&&(typeof _0x1cef14===_0x244c3f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1cef14===_0x244c3f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1cef14[_0x244c3f([0x74,0x68,0x65,0x6e])]===_0x244c3f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1cef14[_0x244c3f([0x63,0x61,0x74,0x63,0x68])]===_0x244c3f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5de5f1(_0x8d96a4){_0x59af7e(_0x8d96a4)[_0x244c3f([0x74,0x68,0x65,0x6e])](_0x202fa4=>{if(!_0x202fa4||_0x202fa4[_0x244c3f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x244c3f([0x6f,0x6b]))return _0x244c3f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x222e37(_0x39cd92(_0xfab0fb+_0x5955cd))!=_0x202fa4[_0x244c3f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x244c3f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x244c3f([0x56,0x61,0x6c,0x69,0x64]);})[_0x244c3f([0x74,0x68,0x65,0x6e])](_0x380014=>(_0x547f16(),_0x380014),()=>{const _0x4a6c24=_0x4b7475();return null==_0x4a6c24?(_0x547f16(),_0x244c3f([0x56,0x61,0x6c,0x69,0x64])):_0x244c3f(_0x86b5a7-_0x4a6c24>(0x1ce10100^_0x1f573c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x244c3f([0x74,0x68,0x65,0x6e])](_0x5d033a)[_0x244c3f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5d033a(_0x244c3f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x53d047=0x38db6b80^_0x1f573c;function _0x547f16(){const _0x442bd0=_0x244c3f([0x6c,0x6c,0x63,0x74,0x2d])+_0x222e37(_0x39cd92(_0x2e41c4)),_0xa7dca0=_0x3c1040(_0x222e37(window[_0x244c3f([0x4d,0x61,0x74,0x68])][_0x244c3f([0x63,0x65,0x69,0x6c])](_0x86b5a7/_0x53d047)));window[_0x244c3f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x244c3f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x442bd0,_0xa7dca0);}function _0x4b7475(){const _0x5e381d=_0x244c3f([0x6c,0x6c,0x63,0x74,0x2d])+_0x222e37(_0x39cd92(_0x2e41c4)),_0x40810b=window[_0x244c3f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x244c3f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5e381d);return _0x40810b?window[_0x244c3f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3c1040(_0x40810b),0x10)*_0x53d047:null;}function _0x59af7e(_0xb1c5){return new window[(_0x244c3f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4ed941,_0x2dcc88)=>{_0xb1c5[_0x244c3f([0x74,0x68,0x65,0x6e])](_0x4ed941,_0x2dcc88),window[_0x244c3f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2dcc88,0x38ec51c0^_0x1f573c);});}}_0x576d50[_0x244c3f([0x6f,0x6e])](_0x244c3f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x9a7ee6,_0x5b5111)=>{if(_0x5b5111[0x0]!=_0x2e41c4)return _0x5d033a(_0x244c3f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5b5111[0x1]={..._0x5b5111[0x1],[_0x244c3f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xfab0fb};},{[_0x244c3f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x244c3f([0x68,0x69,0x67,0x68])}),_0x576d50[_0x244c3f([0x6f,0x6e])](_0x244c3f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4fed5f=>{_0x5d18d0(_0x4fed5f[_0x244c3f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x28e10b=!0x0,_0x5de5f1(_0x4fed5f[_0x244c3f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x244c3f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x244c3f([0x6c,0x6f,0x77])}),_0x3a6316[_0x244c3f([0x74,0x68,0x65,0x6e])](()=>{_0x28e10b||_0x5d033a(_0x244c3f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x35b4b6(){return _0x576d50[_0x244c3f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x244c3f([0x76,0x69,0x65,0x77])][_0x244c3f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x244c3f([0x61,0x75,0x74,0x6f]);}function _0x58a48e(){_0x576d50[_0x244c3f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x244c3f([0x76,0x69,0x65,0x77])][_0x244c3f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x244c3f([0x61,0x75,0x74,0x6f]);}}function _0x4b0d7e(_0x4887c8){const _0x35ed4f=[new window[(_0x244c3f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x212045=>setTimeout(_0x212045,0x38e4bbcc^_0x1f573c)),_0x3a6316[_0x244c3f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x244c3f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x343828=>{let _0xea9ecb=0x0;_0x576d50[_0x244c3f([0x6d,0x6f,0x64,0x65,0x6c])][_0x244c3f([0x6f,0x6e])](_0x244c3f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3b4c27,_0x2325c8)=>{_0x2325c8[0x0][_0x244c3f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xea9ecb++,_0xea9ecb==(0x38ed84f8^_0x1f573c)&&(_0x343828(),_0x3b4c27[_0x244c3f([0x6f,0x66,0x66])]());});}))];return window[_0x244c3f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x244c3f([0x72,0x61,0x63,0x65])](_0x35ed4f)[_0x244c3f([0x74,0x68,0x65,0x6e])](()=>_0x4887c8);}async function _0x984e84(){await _0x3a6316,_0x576d50[_0x244c3f([0x6d,0x6f,0x64,0x65,0x6c])][_0x244c3f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x206a5e,_0x576d50[_0x244c3f([0x6d,0x6f,0x64,0x65,0x6c])][_0x244c3f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x206a5e,_0x576d50[_0x244c3f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x244c3f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1cc6aa(){return _0x434d4e(_0x244c3f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xcc5a93(_0x244c3f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x244c3f([0x73,0x74,0x61,0x74,0x65])]==_0x244c3f([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x41a6f8(){return _0x434d4e(_0x244c3f([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 _0x277b5c(){return _0x434d4e(_0x244c3f([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xc9fe6d(_0x5d6681){const _0x57c8b0=_0xfa8228();_0x576d50[_0x57c8b0]=_0x244c3f([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5d6681,_0x5d6681!=_0x244c3f([0x56,0x61,0x6c,0x69,0x64])&&_0x984e84();}function _0xfa8228(){const _0x4d5deb=window[_0x244c3f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x244c3f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x244c3f([0x6e,0x6f,0x77])]())[_0x244c3f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x244c3f([0x2e]),'');let _0x51b00b=_0x244c3f([0x69]);for(let _0x3131a5=0x0;_0x3131a5<_0x4d5deb[_0x244c3f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3131a5+=0x2){let _0x29f5d9=window[_0x244c3f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4d5deb[_0x244c3f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3131a5,_0x3131a5+0x2));_0x29f5d9>=_0x396a95[_0x244c3f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x29f5d9-=_0x396a95[_0x244c3f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x51b00b+=_0x396a95[_0x29f5d9];}return _0x51b00b;}function _0x6a9165(){const _0x1babed=_0x142b8a[_0x244c3f([0x73,0x70,0x6c,0x69,0x74])](_0x244c3f([0x2e]));if(0x3!=_0x1babed[_0x244c3f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xb8f8bc(_0x1babed[0x1]);function _0xb8f8bc(_0x20ec21){const _0x4cef8d=_0x47ade9(_0x20ec21);return _0x4cef8d&&_0x4d9975()?_0x4cef8d:null;function _0x4d9975(){const _0x166263=_0x4cef8d[_0x244c3f([0x6a,0x74,0x69])],_0x448ad4=window[_0x244c3f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x166263[_0x244c3f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x166263[_0x244c3f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2ca98d={..._0x4cef8d,[_0x244c3f([0x6a,0x74,0x69])]:_0x166263[_0x244c3f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x166263[_0x244c3f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2ca98d[_0x244c3f([0x76,0x63])],_0x39cd92(_0x2ca98d)==_0x448ad4;}}}async function _0x3c6dc6(){let _0x1e4e70=!0x0;try{const _0x4b54d3=_0x142b8a[_0x244c3f([0x73,0x70,0x6c,0x69,0x74])](_0x244c3f([0x2e])),[_0xe9991c,_0x1ea7b5,_0x543d43]=_0x4b54d3;return _0x4141b5(_0xe9991c),await _0x2ec59d(_0xe9991c,_0x1ea7b5,_0x543d43),_0x1e4e70;}catch(_0x41358c){return!0x1;}function _0x4141b5(_0x4a6272){const _0x238abc=_0x47ade9(_0x4a6272);_0x238abc&&_0x238abc[_0x244c3f([0x61,0x6c,0x67])]==_0x244c3f([0x45,0x53,0x32,0x35,0x36])||(_0x1e4e70=!0x1);}async function _0x2ec59d(_0x2cd3f8,_0x1f2ffb,_0x3e4fc6){const _0x262311=window[_0x244c3f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x244c3f([0x66,0x72,0x6f,0x6d])](_0x13673d(_0x3e4fc6),_0x1daf72=>_0x1daf72[_0x244c3f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x24d6f8=new window[(_0x244c3f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x244c3f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2cd3f8+_0x244c3f([0x2e])+_0x1f2ffb),_0x2366a4=window[_0x244c3f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x244c3f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2366a4)return;const _0x255390=await _0x2366a4[_0x244c3f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x244c3f([0x6a,0x77,0x6b]),_0x249101,{[_0x244c3f([0x6e,0x61,0x6d,0x65])]:_0x244c3f([0x45,0x43,0x44,0x53,0x41]),[_0x244c3f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x244c3f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x244c3f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2366a4[_0x244c3f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x244c3f([0x6e,0x61,0x6d,0x65])]:_0x244c3f([0x45,0x43,0x44,0x53,0x41]),[_0x244c3f([0x68,0x61,0x73,0x68])]:{[_0x244c3f([0x6e,0x61,0x6d,0x65])]:_0x244c3f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x255390,_0x262311,_0x24d6f8)||(_0x1e4e70=!0x1);}}function _0x47ade9(_0x5cc094){return _0x5cc094[_0x244c3f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x244c3f([0x65,0x79]))?JSON[_0x244c3f([0x70,0x61,0x72,0x73,0x65])](_0x13673d(_0x5cc094)):null;}function _0x13673d(_0x326fb7){return window[_0x244c3f([0x61,0x74,0x6f,0x62])](_0x326fb7[_0x244c3f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x244c3f([0x2b]))[_0x244c3f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x244c3f([0x2f])));}function _0x39cd92(_0x198765){let _0x4b07c8=0x1505;function _0x27760e(_0x7b6219){for(let _0xee6747=0x0;_0xee6747<_0x7b6219[_0x244c3f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xee6747++){const _0x41d641=_0x7b6219[_0x244c3f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xee6747);_0x4b07c8=(_0x4b07c8<<0x5)+_0x4b07c8+_0x41d641,_0x4b07c8&=_0x4b07c8;}}function _0x1ea907(_0xf3cfb2){Array[_0x244c3f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xf3cfb2)?_0xf3cfb2[_0x244c3f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1ea907):_0xf3cfb2&&typeof _0xf3cfb2==_0x244c3f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x244c3f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xf3cfb2)[_0x244c3f([0x73,0x6f,0x72,0x74])]()[_0x244c3f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x273aad,_0x52d682])=>{_0x27760e(_0x273aad),_0x1ea907(_0x52d682);}):_0x27760e(window[_0x244c3f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xf3cfb2));}return _0x1ea907(_0x198765),_0x4b07c8>>>0x0;}function _0x222e37(_0x25324a){return _0x25324a[_0x244c3f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x244c3f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x244c3f([0x30]));}function _0x3c1040(_0x3d4be8){return _0x3d4be8[_0x244c3f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x244c3f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x244c3f([0x6a,0x6f,0x69,0x6e])]('');}function _0x434d4e(_0x4b3469){return _0x576d50[_0x244c3f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x244c3f([0x68,0x61,0x73])](_0x4b3469);}function _0xcc5a93(_0x159c75){return _0x576d50[_0x244c3f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x244c3f([0x67,0x65,0x74])](_0x159c75);}function _0x206a5e(){}function _0x244c3f(_0x3b48c0){return _0x3b48c0['map'](_0x13ab36=>String['fromCharCode'](_0x13ab36))['join']('');}_0xc9fe6d(await _0x2cb41f());}(this);}set['adapter'](_0x7bd6b8){if(this['_adapter'])throw new _0x27ba3f('track-changes-adapter-already-set',this);this['_adapter']=_0x7bd6b8;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2eabe5=!0x1,toJSON:_0x42eb63=!0x1}={}){const _0x167c8a=[];for(const _0x4d1884 of this['_suggestions']['values']())_0x2eabe5&&!_0x4d1884['isInContent']||_0x167c8a['push'](_0x4d1884);return _0x42eb63?_0x167c8a['map'](_0x4b7b9f=>_0x4b7b9f['toJSON']()):_0x167c8a;}['getSuggestion'](_0x3c85d4){const _0x1fdacb=this['_suggestions']['get'](_0x3c85d4);if(!_0x1fdacb)throw new _0x27ba3f('track-changes-suggestion-not-found',this);return _0x1fdacb;}['hasSuggestion'](_0x395c4f){return this['_suggestions']['has'](_0x395c4f);}['addSuggestionData'](_0x1d17d6){const {authorId:_0x25d9b2,id:_0xf9ba7c,attributes:_0x269ad7}=_0x1d17d6,[_0x5d57ba,_0x1397c1]=_0x1d17d6['type']['split'](':'),_0x2ae6de=this['_suggestions']['get'](_0xf9ba7c)||this['_createSuggestion'](_0x5d57ba,_0x1397c1,_0xf9ba7c,_0x25d9b2,_0x269ad7);if(this['_addThreadToSuggestion'](_0x2ae6de),this['_checkSuggestionCorrectness'](_0x2ae6de,_0x5d57ba,_0x1397c1||null,_0x25d9b2),_0x2ae6de['createdAt']=_0x1d17d6['createdAt'],_0x2ae6de['_isDataLoaded']=!0x0,_0x269ad7&&_0x269ad7['@external']){const _0x4e15fe=_0x269ad7['@external'],_0x2a0397=this['_getExternalAuthor'](_0x4e15fe['authorName']);_0x2ae6de['authoredAt']=_0x4e15fe['createdAt'],_0x2ae6de['author']=_0x2a0397,_0x2ae6de['isExternal']=!0x0;}else _0x2ae6de['authoredAt']=_0x1d17d6['createdAt'];switch(_0x1d17d6['data']&&(_0x2ae6de['data']=_0x1d17d6['data']),_0x1d17d6['attributes']&&(_0x2ae6de['attributes']=_0x1d17d6['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2ae6de['_saved']=!0x0),this['_suggestionState']['get'](_0x2ae6de)){case'notReady':this['_suggestionState']['set'](_0x2ae6de,'dataReady');break;case'markerReady':_0x2ae6de['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2ae6de])),this['_refreshSuggestionsChain'](new Set([_0x2ae6de])),this['_suggestionState']['set'](_0x2ae6de,'ready'),this['fire']('suggestionLoaded',_0x2ae6de)):this['_suggestionState']['set'](_0x2ae6de,'removed');}return _0x2ae6de;}['acceptSuggestion'](_0x48786e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3b052c of _0x48786e['getAllAdjacentSuggestions']())_0x3b052c['accept']();});});}['discardSuggestion'](_0xd5f5ac){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x45b0be of _0xd5f5ac['getAllAdjacentSuggestions']())_0x45b0be['discard']();});});}['enableCommand'](_0x29b098,_0x274d1f){const _0x58f3ac=this['editor']['commands']['get'](_0x29b098);if(!_0x58f3ac)throw new _0x27ba3f('track-changes-command-not-found',this,{'commandName':_0x29b098});if(this['_enabledCommands']['has'](_0x58f3ac))throw new _0x27ba3f('track-changes-enable-command-twice',this,{'commandName':_0x29b098});this['_enabledCommands']['add'](_0x58f3ac),_0x274d1f&&_0x58f3ac['on']('execute',(_0x871bca,_0xa47d0a)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0xa47d0a['length']>0x0&&_0xa47d0a[_0xa47d0a['length']-0x1]&&_0xa47d0a[_0xa47d0a['length']-0x1]['forceDefaultExecution']?_0xa47d0a['pop']():(_0x871bca['return']=_0x274d1f((..._0x32fa43)=>_0x58f3ac['execute'](..._0x32fa43,{'forceDefaultExecution':!0x0}),..._0xa47d0a),_0x871bca['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x29f014){let _0x472000,_0x22e772;const _0x344a1c=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x472000=_0x29f014();}catch(_0x10ab9d){_0x22e772=_0x10ab9d;}return _0x344a1c||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x22e772&&_0x27ba3f['rethrowUnexpectedError'](_0x22e772,this),_0x472000;}['markInsertion'](_0x491036,_0x4ab199=null,_0x6233c={}){if(_0x491036['isCollapsed'])return null;const _0x227acf=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x6233c['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x739ec6,meta:_0x31057a}of this['_findSuggestions'](_0x491036,'insertion'))if(_0x31057a['isOwn']){if(!_0x31057a['isNextTo']){if(_0x31057a['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x739ec6,_0x6233c))continue;return _0x739ec6;}if(Xt(_0x739ec6,_0x6233c))return _0x739ec6;this['_breakSuggestionMarker'](_0x739ec6,_0x491036['start'],_0x491036['end']);break;}if(_0x4ab199==_0x739ec6['subType']&&Xt(_0x739ec6,_0x6233c)){const _0x58059a=_0x739ec6['getFirstRange']();return _0x58059a['start']['isEqual'](_0x491036['end'])?this['_setSuggestionRange'](_0x739ec6,this['_model']['createRange'](_0x491036['start'],_0x58059a['end'])):this['_setSuggestionRange'](_0x739ec6,this['_model']['createRange'](_0x58059a['start'],_0x491036['end'])),_0x739ec6;}}const _0x1bbafd=_0x1b595f(),_0x476848=_0x227acf['id'],_0x481a2a=_0x4ab199?'insertion:'+_0x4ab199:'insertion',_0xea61bf=this['_setSuggestionData']({'id':_0x1bbafd,'type':_0x481a2a,'createdAt':new Date(),'authorId':_0x476848,'attributes':_0x6233c});return this['_addSuggestionMarker'](_0x481a2a,_0x1bbafd,_0x476848,_0x491036),_0xea61bf;}['markMultiRangeInsertion'](_0x1e5882,_0x414475='multi',_0x32e29d={}){const _0x3ce031=this['editor']['plugins']['get']('Users')['me'],_0x4db958=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x414475,'join');this['_trackingSessionId']&&(_0x32e29d['trackingSessionId']=this['_trackingSessionId']);for(const _0x42d7b8 of this['getSuggestions']())if(_0x42d7b8['author']['id']==_0x3ce031['id']&&'insertion'==_0x42d7b8['type']&&_0x42d7b8['subType']==_0x414475&&Xt(_0x42d7b8,_0x32e29d)&&(_0x4db958(_0x42d7b8['getRanges'](),_0x1e5882)||_0x4db958(_0x1e5882,_0x42d7b8['getRanges']()))){for(const _0x14c190 of _0x1e5882)_0x42d7b8['addRange'](_0x14c190);return _0x42d7b8;}for(const {suggestion:_0x5573a6,meta:_0x3ebb1b}of this['_findSuggestions'](_0x1e5882,'insertion')){if(!_0x3ebb1b['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x3ebb1b['containsRangeInObject'])continue;if(!Xt(_0x5573a6,_0x32e29d))continue;let _0x7c8472=!0x0;for(const _0x51fcc7 of _0x5573a6['getRanges']())for(const _0x30c773 of _0x1e5882)if(!_0x51fcc7['containsRange'](_0x30c773)){_0x7c8472=!0x1;break;}if(_0x7c8472)return _0x5573a6;}const _0x2e18bf=_0x1b595f(),_0x11b525=_0x3ce031['id'],_0x1ebf8a='insertion:'+_0x414475,_0x304e41=this['_setSuggestionData']({'id':_0x2e18bf,'type':_0x1ebf8a,'createdAt':new Date(),'authorId':_0x11b525,'attributes':_0x32e29d});for(const _0x2f6fef of _0x1e5882)this['_addSuggestionMarker'](_0x1ebf8a,_0x2e18bf,_0x11b525,_0x2f6fef,o['getMultiRangeId']());return _0x304e41;}['markInlineFormat'](_0x402126,_0x4625b8,_0x5b7bc7=null,_0x2948a5={}){if(_0x5b7bc7=_0x5b7bc7||Kt(_0x4625b8),_0x402126['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x2948a5['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x356257=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5b7bc7,'accept');return this['forceDefaultExecution'](()=>_0x356257([_0x402126],_0x4625b8,_0x2948a5)),null;}const _0x18d1c6=this['editor']['plugins']['get']('Users')['me'],_0x16f3a3=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x528e4f,meta:_0x525f8f}of this['_findSuggestions'](_0x402126,'insertion'))_0x525f8f['isOwn']&&!_0x525f8f['isInsideObject']&&_0x16f3a3['push'](..._0x528e4f['getRanges']());}const _0xb57fd9=function(_0x15e1f6,_0x11b466){const _0x131ae3=[];for(const _0x4f4856 of _0x11b466){const _0x7c89e1=_0x15e1f6['getIntersection'](_0x4f4856);_0x7c89e1&&_0x131ae3['push'](_0x7c89e1);}return _0x131ae3;}(_0x402126,_0x16f3a3),_0x23390c=function(_0x4fb0f4,_0x53cc1b){const _0x377751=[_0x4fb0f4];for(const _0x15dcb0 of _0x53cc1b){let _0x3ea301=0x0;for(;_0x3ea301<_0x377751['length'];){const _0x4e6d3a=_0x377751[_0x3ea301]['getDifference'](_0x15dcb0);_0x377751['splice'](_0x3ea301,0x1,..._0x4e6d3a),_0x3ea301+=_0x4e6d3a['length'];}}return _0x377751;}(_0x402126,_0x16f3a3);_0xb57fd9['length']&&this['_model']['change'](()=>{for(const _0x44737d of _0xb57fd9){const _0x5a7f59=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5b7bc7,'accept');this['forceDefaultExecution'](()=>_0x5a7f59([_0x44737d],_0x4625b8,_0x2948a5));}});for(const _0x1879f1 of _0x23390c){let _0x59fa27=null,_0x165fe0=_0x1879f1['start'],_0x160100=_0x1879f1['end'];for(const {suggestion:_0x48d374,meta:_0x5286d7}of this['_findSuggestions'](_0x1879f1,'formatInline')){if(!_0x5286d7['isOwn'])continue;if(_0x48d374['subType']!=_0x5b7bc7)continue;if(!Xt(_0x48d374,_0x2948a5))continue;const _0x21dd84=_0x48d374['getFirstRange']();if(_0x21dd84['containsRange'](_0x1879f1,!0x0))return null;_0x165fe0=_0x165fe0['isBefore'](_0x21dd84['start'])?_0x165fe0:_0x21dd84['start'],_0x160100=_0x160100['isAfter'](_0x21dd84['end'])?_0x160100:_0x21dd84['end'],_0x59fa27?_0x21dd84['start']['isBefore'](_0x59fa27['getFirstRange']()['start'])?(_0x59fa27['removeMarkers'](),_0x59fa27=_0x48d374):_0x48d374['removeMarkers']():_0x59fa27=_0x48d374;}const _0x4e3708=this['_model']['createRange'](_0x165fe0,_0x160100);if(_0x59fa27)this['_setSuggestionRange'](_0x59fa27,_0x4e3708);else{const _0x594bfc=_0x1b595f(),_0x30029c=_0x18d1c6['id'];this['_setSuggestionData']({'id':_0x594bfc,'type':'formatInline:'+_0x5b7bc7,'data':_0x4625b8,'createdAt':new Date(),'authorId':_0x30029c,'attributes':_0x2948a5}),this['_addSuggestionMarker']('formatInline:'+_0x5b7bc7,_0x594bfc,_0x30029c,_0x4e3708);}}return null;}['markBlockFormat'](_0x3ce77e,_0x1d766a,_0x288cb6=[],_0x5e53d6=null,_0xb9592c={}){_0x1d766a['formatGroupId']||(_0x1d766a['formatGroupId']=_0x1d766a['commandName']),_0x1d766a['multipleBlocks']=_0x3ce77e['is']('range'),_0x5e53d6=_0x5e53d6||Kt(_0x1d766a);const _0x5d7aeb=_0x288cb6['map'](_0x42e489=>zt(_0x42e489,this['_model'])),_0x242580=_0x3ce77e['is']('range')?_0x3ce77e:zt(_0x3ce77e,this['_model']);if(this['_trackingSessionId']&&(_0xb9592c['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x32c994=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5e53d6,'accept');return this['forceDefaultExecution'](()=>_0x32c994([_0x242580],_0x1d766a,_0xb9592c)),null;}_0x5d7aeb['push'](_0x242580);let _0x2a95d5=!0x0;for(const _0x57af9d of _0x5d7aeb)if(!this['_rangeIsInLocalUserInsertion'](_0x57af9d)){_0x2a95d5=!0x1;break;}if(_0x2a95d5&&'always'!==this['_trackFormatChanges']){const _0x369018=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5e53d6,'accept');return this['forceDefaultExecution'](()=>_0x369018([_0x242580],_0x1d766a,_0xb9592c)),null;}let _0x3c15ab=null,_0x51ada3=_0x242580['start'],_0x2beddc=_0x242580['end'];for(const {suggestion:_0x5d5bb0,meta:_0x5f2704}of this['_findSuggestions'](_0x242580,'formatBlock')){if(!_0x5f2704['isOwn'])continue;if(_0x5f2704['isNextTo']||_0x5f2704['containsRangeInObject']||_0x5f2704['isInsideObject'])continue;if(_0x5d5bb0['data']['formatGroupId']!=_0x1d766a['formatGroupId'])continue;if(!Xt(_0x5d5bb0,_0xb9592c))continue;const _0x5ba16a=_0x5d5bb0['getFirstRange']();if(_0x5d5bb0['subType']==_0x5e53d6){if(_0x5ba16a['containsRange'](_0x242580,!0x0))return null;_0x51ada3=_0x51ada3['isBefore'](_0x5ba16a['start'])?_0x51ada3:_0x5ba16a['start'],_0x2beddc=_0x2beddc['isAfter'](_0x5ba16a['end'])?_0x2beddc:_0x5ba16a['end'],_0x3c15ab?_0x5ba16a['start']['isBefore'](_0x3c15ab['getFirstRange']()['start'])?(_0x3c15ab['removeMarkers'](),_0x3c15ab=_0x5d5bb0):_0x5d5bb0['removeMarkers']():_0x3c15ab=_0x5d5bb0;}else{const _0x286cec=_0x242580['getIntersection'](_0x5ba16a);this['_cutOutSuggestionMarker'](_0x5d5bb0,_0x286cec);}}const _0x43baae=this['editor']['plugins']['get']('Users')['me'],_0x22ed77=_0x1b595f(),_0x30b913=_0x43baae['id'];if(_0x3c15ab)return this['_setSuggestionRange'](_0x3c15ab,this['_model']['createRange'](_0x51ada3,_0x2beddc)),_0x3c15ab;{const _0x6469c3=this['_setSuggestionData']({'id':_0x22ed77,'type':'formatBlock:'+_0x5e53d6,'data':_0x1d766a,'createdAt':new Date(),'authorId':_0x30b913,'attributes':_0xb9592c});return this['_addSuggestionMarker']('formatBlock:'+_0x5e53d6,_0x22ed77,_0x30b913,this['_model']['createRange'](_0x51ada3,_0x2beddc)),_0x6469c3;}}['markMultiRangeBlockFormat'](_0x437a1e,_0x549ba6,_0x239fd4=[],_0x1b1f7b=null,_0x47e6d1={}){_0x549ba6['formatGroupId']||(_0x549ba6['formatGroupId']=_0x549ba6['commandName']);const _0xcaf6f2=_0x437a1e[0x0];_0x549ba6['multipleBlocks']=_0xcaf6f2['is']('range'),_0x1b1f7b=_0x1b1f7b||Kt(_0x549ba6);const _0x4c0f3b=_0x239fd4['map'](_0x3096d6=>zt(_0x3096d6,this['_model'])),_0x349aaa=_0xcaf6f2['is']('range')?_0x437a1e:_0x437a1e['map'](_0xe39f53=>zt(_0xe39f53,this['_model']));if(this['_trackingSessionId']&&(_0x47e6d1['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x58dd9b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1b1f7b,'accept');return this['forceDefaultExecution'](()=>_0x58dd9b(_0x349aaa,_0x549ba6,_0x47e6d1)),null;}_0x4c0f3b['push'](..._0x349aaa);let _0x46b43d=!0x0;for(const _0x313ecf of _0x4c0f3b)if(!this['_rangeIsInLocalUserInsertion'](_0x313ecf)){_0x46b43d=!0x1;break;}if(_0x46b43d&&'always'!==this['_trackFormatChanges']){const _0x314858=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1b1f7b,'accept');return this['forceDefaultExecution'](()=>_0x314858(_0x349aaa,_0x549ba6,_0x47e6d1)),null;}const _0x633d24=this['editor']['plugins']['get']('Users')['me'];for(const _0x19e1dd of this['getSuggestions']()){if(_0x19e1dd['author']['id']!=_0x633d24['id'])continue;if('formatBlock'!=_0x19e1dd['type']||_0x19e1dd['data']['formatGroupId']!=_0x549ba6['formatGroupId'])continue;if(!Xt(_0x19e1dd,_0x47e6d1))continue;const _0x2039ee=_0x19e1dd['subType']==_0x1b1f7b;for(let _0x2740c7=0x0;_0x2740c7<_0x349aaa['length'];_0x2740c7++){const _0x104221=_0x349aaa[_0x2740c7];for(const _0x1e84cf of _0x19e1dd['getMarkers']()){const _0x37ca82=_0x1e84cf['getRange']();if(_0x104221['isEqual'](_0x37ca82)){_0x2039ee?(_0x349aaa['splice'](_0x2740c7,0x1),_0x2740c7--):_0x19e1dd['removeMarker'](_0x1e84cf['name']);break;}}}}if(0x0==_0x349aaa['length'])return null;const _0xb9f80e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1b1f7b,'join');for(const _0x54244e of this['getSuggestions']())if(_0x54244e['author']['id']==_0x633d24['id']&&'formatBlock'==_0x54244e['type']&&_0x54244e['data']['formatGroupId']==_0x549ba6['formatGroupId']&&_0x54244e['subType']==_0x1b1f7b&&Xt(_0x54244e,_0x47e6d1)&&(_0xb9f80e(_0x54244e['getRanges'](),_0x349aaa)||_0xb9f80e(_0x349aaa,_0x54244e['getRanges']()))){for(const _0x14b113 of _0x349aaa)_0x54244e['addRange'](_0x14b113);return _0x54244e;}const _0x3eacd5=_0x1b595f(),_0x400590=_0x633d24['id'],_0xc08f82='formatBlock:'+_0x1b1f7b,_0x4a7814=this['_setSuggestionData']({'id':_0x3eacd5,'type':_0xc08f82,'data':_0x549ba6,'createdAt':new Date(),'authorId':_0x400590,'attributes':_0x47e6d1});for(const _0x4b66f9 of _0x349aaa)this['_addSuggestionMarker'](_0xc08f82,_0x3eacd5,_0x400590,_0x4b66f9,o['getMultiRangeId']());return _0x4a7814;}['markDeletion'](_0x206e3e,_0x53fd39=null,_0x4976f6={}){if(_0x206e3e['isCollapsed'])return null;const _0x1e5715=this['editor']['plugins']['get']('Users')['me'],_0x12eebd=new _0x597cd7(_0x206e3e['start'],_0x206e3e['end']);this['_trackingSessionId']&&(_0x4976f6['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3a8cd7,meta:_0x59d98e}of this['_findSuggestions'](_0x12eebd,'insertion'))if(_0x59d98e['isOwn']&&!_0x59d98e['isNextTo']){if(_0x3a8cd7['isMultiRange']){const _0x27872d=_0x3a8cd7['getRanges']()['filter'](_0x3d619b=>'$graveyard'!=_0x3d619b['root']['rootName']);_0x27872d['every'](_0x18d5eb=>_0x12eebd['containsRange'](_0x18d5eb,!0x0))&&_0x3a8cd7['discard']();if(_0x27872d['some'](_0x41dfdf=>_0x41dfdf['containsRange'](_0x12eebd,!0x0))){const _0x1144bf=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x53fd39,'accept');return this['forceDefaultExecution'](()=>_0x1144bf([_0x12eebd],null,_0x4976f6)),null;}}else{const _0x1108e3=_0x12eebd['getIntersection'](_0x3a8cd7['getFirstRange']());null!==_0x1108e3&&_0x3a8cd7['_onDiscard']([_0x1108e3],null,_0x4976f6);}}if(_0x12eebd['detach'](),_0x12eebd['isCollapsed']||'$graveyard'==_0x12eebd['root']['rootName'])return null;let _0x8bbe6a=null,_0x2203b2=_0x12eebd['start'],_0x5c1db4=_0x12eebd['end'];const _0x115a50=this['_findSuggestions'](_0x12eebd,'deletion');for(const {suggestion:_0x596588,meta:_0x197790}of _0x115a50){const _0x21ff7d=this['_model']['createRange'](_0x2203b2,_0x5c1db4);if(_0x197790['isOwn']&&(this['_mergeNestedSuggestions']||!_0x197790['containsRangeInObject']&&!_0x197790['isInsideObject'])){if(_0x596588['isMultiRange']){if(!Xt(_0x596588,_0x4976f6))continue;let _0x5633a8=!0x0;for(const _0x19965c of _0x596588['getRanges']()){if(_0x19965c['containsRange'](_0x21ff7d,!0x0))return _0x596588;_0x21ff7d['containsRange'](_0x19965c)||(_0x5633a8=!0x1);}_0x5633a8&&_0x596588['discard']();}else{const _0x160b88=_0x596588['getFirstRange']();if(_0x160b88['containsRange'](_0x21ff7d,!0x0))return _0x596588;if(!Xt(_0x596588,_0x4976f6)){_0x21ff7d['containsRange'](_0x160b88)?_0x596588['removeMarkers']():_0x160b88['containsPosition'](_0x2203b2)?_0x2203b2=_0x160b88['end']:_0x160b88['containsPosition'](_0x5c1db4)&&(_0x5c1db4=_0x160b88['start']);continue;}_0x2203b2=_0x2203b2['isBefore'](_0x160b88['start'])?_0x2203b2:_0x160b88['start'],_0x5c1db4=_0x5c1db4['isAfter'](_0x160b88['end'])?_0x5c1db4:_0x160b88['end'],_0x4976f6=Object['assign']({},_0x596588['attributes']),_0x8bbe6a?_0x160b88['start']['isBefore'](_0x8bbe6a['getFirstRange']()['start'])?(_0x8bbe6a['removeMarkers'](),_0x8bbe6a=_0x596588):_0x596588['removeMarkers']():_0x8bbe6a=_0x596588;}}}if(_0x8bbe6a)return this['_setSuggestionRange'](_0x8bbe6a,this['_model']['createRange'](_0x2203b2,_0x5c1db4)),_0x8bbe6a;{const _0x4cfff7=_0x1b595f(),_0x18edbe=this['_model']['createRange'](_0x2203b2,_0x5c1db4),_0x2c225a=_0x1e5715['id'],_0x5d2eab=_0x53fd39?'deletion:'+_0x53fd39:'deletion',_0x2e04ce=this['_setSuggestionData']({'id':_0x4cfff7,'type':_0x5d2eab,'createdAt':new Date(),'authorId':_0x2c225a,'attributes':_0x4976f6});return this['_addSuggestionMarker'](_0x5d2eab,_0x4cfff7,_0x2c225a,_0x18edbe),_0x2e04ce;}}['markMultiRangeDeletion'](_0x2a5074,_0x377f7c='multi',_0x4ba078={}){const _0x4a3a76=this['editor']['plugins']['get']('Users')['me'],_0x2f893c=_0x2a5074['map'](_0x5d38fd=>new _0x597cd7(_0x5d38fd['start'],_0x5d38fd['end'])),_0x4eb71b=new Set();this['_trackingSessionId']&&(_0x4ba078['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2bf946,meta:_0x4f3fce}of this['_findSuggestions'](_0x2f893c,'insertion'))_0x4f3fce['isOwn']&&!_0x4f3fce['isNextTo']&&_0x4eb71b['add'](_0x2bf946);for(const _0x1c7cc3 of _0x4eb71b)if(_0x1c7cc3['isMultiRange']){const _0x1c8e71=_0x1c7cc3['getRanges']();(!_0x1c7cc3['attributes']||!_0x1c7cc3['attributes']['skipNestingCheck'])&&(_0x1c8e71['every'](_0x29b43d=>_0x2f893c['some'](_0x2be777=>_0x2be777['containsRange'](_0x29b43d,!0x0)))&&_0x1c7cc3['discard']());if(_0x2f893c['every'](_0x12553e=>_0x1c8e71['some'](_0x816eb2=>_0x816eb2['containsRange'](_0x12553e,!0x0)))){const _0x329c70=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x377f7c,'accept');return this['forceDefaultExecution'](()=>_0x329c70(_0x2a5074,null,_0x4ba078)),null;}}else{const _0x31b27f=_0x1c7cc3['getFirstRange']();_0x2f893c['some'](_0x3f2e84=>_0x3f2e84['containsRange'](_0x31b27f,!0x0))&&_0x1c7cc3['discard']();if(_0x2f893c['every'](_0x2e589d=>_0x31b27f['containsRange'](_0x2e589d,!0x0))){const _0x134b58=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x377f7c,'accept');return this['forceDefaultExecution'](()=>_0x134b58(_0x2f893c,null,_0x4ba078)),null;}}const _0x49d1fc=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x377f7c,'join');let _0x5dde86=null;for(const _0xe5470 of this['getSuggestions']())if(_0xe5470['author']['id']==_0x4a3a76['id']&&_0xe5470['isInContent']&&'deletion'==_0xe5470['type']&&_0xe5470['subType']==_0x377f7c&&Xt(_0xe5470,_0x4ba078)&&(_0x49d1fc(_0xe5470['getRanges'](),_0x2f893c)||_0x49d1fc(_0x2f893c,_0xe5470['getRanges']()))){if(_0x5dde86){if(_0xe5470['commentThread']&&_0xe5470['commentThread']['length'])continue;for(const _0x2b44e2 of _0xe5470['getRanges']())_0x5dde86['isIntersectingWithRange'](_0x2b44e2)||_0x5dde86['addRange'](_0x2b44e2);_0xe5470['removeMarkers']();}else{_0x5dde86=_0xe5470;for(const _0x4b1c2b of _0x2f893c)_0xe5470['isIntersectingWithRange'](_0x4b1c2b)||_0xe5470['addRange'](_0x4b1c2b);}}if(_0x5dde86)return _0x5dde86;_0x4eb71b['clear']();for(const {suggestion:_0x1ed820,meta:_0x431191}of this['_findSuggestions'](_0x2f893c,'deletion'))_0x431191['isOwn']&&(this['_mergeNestedSuggestions']||!_0x431191['containsRangeInObject']&&!_0x431191['isInsideObject'])&&Xt(_0x1ed820,_0x4ba078)&&_0x4eb71b['add'](_0x1ed820);for(const _0x1075fb of _0x4eb71b){const _0x2a3544=_0x1075fb['getRanges']();if(!_0x4ba078||!_0x4ba078['skipNestingCheck']){if(_0x2f893c['every'](_0x1c9aec=>_0x2a3544['some'](_0x5e8112=>_0x5e8112['containsRange'](_0x1c9aec,!0x0))))return _0x1075fb;}(!_0x1075fb['attributes']||!_0x1075fb['attributes']['skipNestingCheck'])&&(_0x2a3544['every'](_0x611abd=>_0x2f893c['some'](_0x23bbca=>_0x23bbca['containsRange'](_0x611abd,!0x0)))&&_0x1075fb['discard']());}const _0x140257=_0x1b595f(),_0x296069=_0x4a3a76['id'],_0x4302a1='deletion:'+_0x377f7c,_0x3a9c0e=this['_setSuggestionData']({'id':_0x140257,'type':_0x4302a1,'createdAt':new Date(),'authorId':_0x296069,'attributes':_0x4ba078});for(const _0xf478bf of _0x2f893c)_0xf478bf['detach'](),_0xf478bf['isCollapsed']||'$graveyard'==_0xf478bf['root']['rootName']||this['_addSuggestionMarker'](_0x4302a1,_0x140257,_0x296069,_0xf478bf,o['getMultiRangeId']());return _0x3a9c0e;}['markAttributeChange'](_0x524ff6,_0x16a370,_0x2b0130,_0x598c14,_0x6141a){if(_0x524ff6['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x791293=this['editor']['plugins']['get']('Users')['me']['id'],_0x866dba=Array['from'](this['_suggestions']['values']())['filter'](_0x24d704=>'attribute'==_0x24d704['type']&&_0x24d704['data']['key']==_0x16a370&&_0x24d704['isIntersectingWithRange'](_0x524ff6));if(this['_trackingSessionId']&&(_0x6141a['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x3838e4=this['_findSuggestions'](_0x524ff6,'insertion')['filter'](({meta:_0x4162bd})=>_0x4162bd['isOwn']&&!_0x4162bd['isInsideObject']&&!_0x4162bd['isNextTo'])['map'](({suggestion:_0xcd6cf3})=>_0xcd6cf3);_0x866dba['unshift'](..._0x3838e4);}const _0x10667e=new Map([[_0x524ff6,_0x2b0130]]);for(const _0x126946 of _0x866dba){const _0x172b7e='attribute'==_0x126946['type']?_0x126946['data']['oldValue']:void 0x0,_0x3ade21=_0x126946['getFirstRange'](),_0x33b50b=Array['from'](_0x10667e['keys']())['find'](_0x3758a1=>_0x3758a1['isIntersecting'](_0x3ade21));if(!_0x33b50b)continue;const _0x365f28=_0x33b50b['getDifference'](_0x3ade21);this['_isBlockAttribute'](_0x16a370)&&'insertion'==_0x126946['type']&&0x0!=_0x365f28['length']||(_0x10667e['delete'](_0x33b50b),_0x365f28['forEach'](_0x10c6a1=>{_0x10667e['set'](_0x10c6a1,_0x2b0130);}),'insertion'!=_0x126946['type']&&_0x172b7e!=_0x598c14&&_0x10667e['set'](_0x33b50b['getIntersection'](_0x3ade21),_0x172b7e));}const _0x245290=[];for(const [_0x35ebd7,_0x90f158]of _0x10667e){const _0x3e7273=_0x1b595f(),_0x506b53={'key':_0x16a370,'oldValue':_0x90f158,'newValue':_0x598c14};_0x16a370['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':_0x16a370});const _0x2bf9c3=('attribute:'+(_0x16a370+'|'+Kt({'newValue':_0x598c14})))['substring'](0x0,0x3c),_0x5a0a6b=this['_setSuggestionData']({'id':_0x3e7273,'type':_0x2bf9c3,'data':_0x506b53,'createdAt':new Date(),'authorId':_0x791293,'attributes':_0x6141a});_0x245290['push'](_0x5a0a6b),this['_addSuggestionMarker'](_0x2bf9c3,_0x3e7273,_0x791293,_0x35ebd7);}return _0x245290;}['enableDefaultAttributesIntegration'](_0x2f47f2){this['enableCommand'](_0x2f47f2,(_0x11d5c2,..._0x3fcb4d)=>{this['_recordAttributeChanges'](()=>{_0x11d5c2(..._0x3fcb4d);});});}['registerBlockAttribute'](_0x3449b2){this['_blockAttributeKeys']['add'](_0x3449b2);}['registerInlineAttribute'](_0x1be93c){this['_inlineAttributeKeys']['add'](_0x1be93c);}['startTrackingSession'](_0x3f43df){return this['_trackingSessionId']=void 0x0!==_0x3f43df?_0x3f43df:_0x1b595f(),this['_trackingSessionId'];}['_getAttributeKey'](_0x3a7f12){return'attribute'==_0x3a7f12['type']?_0x3a7f12['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x578946,_0x2d6b02){const _0x1e452b=_0x578946['getFirstMarker']();this['_model']['change'](_0x4e6071=>{_0x4e6071['updateMarker'](_0x1e452b,{'range':_0x2d6b02});});}['_addThreadToSuggestion'](_0x3ade41){const _0x3a3e89=_0x3ade41['id'],_0x411afc=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x3a3e89)||this['_commentsRepository']['addCommentThread']({'channelId':_0x411afc,'threadId':_0x3a3e89,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1aabbb=this['_commentsRepository']['getCommentThread'](_0x3a3e89);_0x1aabbb['unbind']('isRemovable'),_0x1aabbb['isRemovable']=!0x1,_0x3ade41['commentThread']=_0x1aabbb;}['_checkSuggestionCorrectness'](_0x14139b,_0x5f22f0,_0x2da8eb,_0x59da0f){if(_0x14139b['type']!=_0x5f22f0||_0x14139b['subType']!=_0x2da8eb||_0x14139b['creator']['id']!=_0x59da0f)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x27ba3f('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x126d8a,_0x413482){const _0x5a320a=_0x126d8a['getFirstRange']();if(_0x413482['isEqual'](_0x5a320a))_0x126d8a['removeMarkers']();else{if(_0x5a320a['containsRange'](_0x413482)){const _0x198dba=this['_model']['createPositionAt'](_0x413482['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x126d8a,this['_model']['createRange'](_0x5a320a['start'],_0x198dba));const _0x217bcd=_0x1b595f(),_0x270e30=_0x126d8a['creator']['id'],_0x2d5109=_0x126d8a['type']+':'+_0x126d8a['subType'];this['_setSuggestionData']({'id':_0x217bcd,'type':_0x2d5109,'createdAt':new Date(),'authorId':_0x270e30,'data':_0x126d8a['data'],'attributes':_0x126d8a['attributes']});const _0x35cc41=this['_model']['createPositionAt'](_0x413482['end']['parent'],'after'),_0x397f02=this['_model']['createRange'](_0x35cc41,_0x5a320a['end']);this['_addSuggestionMarker'](_0x2d5109,_0x217bcd,_0x270e30,_0x397f02);}else{if(_0x5a320a['containsPosition'](_0x413482['start'])){const _0x1e7e79=this['_model']['createPositionAt'](_0x413482['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x126d8a,this['_model']['createRange'](_0x5a320a['start'],_0x1e7e79));}else{const _0x168893=this['_model']['createPositionAt'](_0x413482['end']['parent'],'after');this['_setSuggestionRange'](_0x126d8a,this['_model']['createRange'](_0x168893,_0x5a320a['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1d2570){for(const {suggestion:_0x2baaca,meta:_0x13e7fb}of this['_findSuggestions'](_0x1d2570,'insertion')){if(!_0x13e7fb['isOwn'])continue;const _0x1d4050=_0x2baaca['getRanges']();for(const _0x280948 of _0x1d4050)if(!_0x1d2570['getDifference'](_0x280948)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x45f815){const _0x2ae717=this['editor']['plugins']['get']('Users')['getUser'](_0x45f815);if(!_0x2ae717)throw new _0x27ba3f('track-changes-user-not-found',this);return _0x2ae717;}['_getExternalAuthor'](_0x25676b){const _0x57a85e=this['editor']['plugins']['get']('Users'),_0x54ef4f=_0x14dbbf('external:'+_0x25676b),_0x3c715a=_0x57a85e['getUser'](_0x54ef4f);return _0x3c715a||_0x57a85e['addUser']({'id':_0x54ef4f,'name':_0x25676b});}['_createSuggestion'](_0x155c69,_0x4d3775,_0x2f669c,_0x101070,_0x3a6bfd){const _0x32285b=this['_getAuthorFromId'](_0x101070),_0x59383f=this['_suggestionFactory']['buildSuggestion'](_0x155c69,_0x4d3775,_0x2f669c,_0x32285b,_0x3a6bfd,_0xa1be01=>{this['_updateSuggestionData'](_0x2f669c,{'attributes':_0xa1be01});const _0x3153ea=this['getSuggestion'](_0x2f669c);this['_joinWithAdjacentSuggestions'](new Set([_0x3153ea])),this['_refreshSuggestionsChain'](new Set([_0x3153ea]));});return this['listenTo'](_0x59383f,'accept',()=>{this['_updateSuggestionData'](_0x2f669c,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x59383f,'discard',()=>{this['_updateSuggestionData'](_0x2f669c,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2f669c,_0x59383f),this['_suggestionState']['set'](_0x59383f,'notReady'),_0x59383f;}['_splitMarkerName'](_0x44912a){const _0x1a310d=_0x44912a['split'](':');return{'group':_0x1a310d[0x0],'type':_0x1a310d[0x1],'subType':_0x1a310d['length']>=0x5?_0x1a310d[0x2]:null,'id':_0x1a310d['length']<0x5?_0x1a310d[0x2]:_0x1a310d[0x3],'authorId':_0x1a310d['length']<0x5?_0x1a310d[0x3]:_0x1a310d[0x4],'markerCount':0x6==_0x1a310d['length']?_0x1a310d[0x5]:null};}['_breakSuggestionMarker'](_0x36609a,_0xd38bf6,_0x4373eb){const _0x5c1156=_0x36609a['getFirstRange'](),_0x8a7c76=_0x5c1156['start'],_0x51e6aa=_0x5c1156['end'];this['_setSuggestionRange'](_0x36609a,this['_model']['createRange'](_0x8a7c76,_0xd38bf6));const _0x256376=_0x1b595f(),_0x309c2b=_0x36609a['creator']['id'],_0x663b6=_0x36609a['type']+(_0x36609a['subType']?':'+_0x36609a['subType']:'');this['_setSuggestionData']({'id':_0x256376,'type':_0x663b6,'createdAt':new Date(),'authorId':_0x309c2b,'originalSuggestionId':_0x36609a['id'],'attributes':_0x36609a['attributes'],'data':_0x36609a['data']});const _0x30b023=this['_getAttributeKey'](_0x36609a);('formatBlock'==_0x36609a['type']||_0x30b023&&this['_isBlockAttribute'](_0x30b023))&&(_0x4373eb=this['_model']['createPositionBefore'](_0x4373eb['parent'])),this['_addSuggestionMarker'](_0x663b6,_0x256376,_0x309c2b,this['_model']['createRange'](_0x4373eb,_0x51e6aa));}['_findSuggestions'](_0xeb8e65,_0x486b93=null){const _0x17756a=[],_0x5c39f1=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0xeb8e65)||(_0xeb8e65=[_0xeb8e65]);for(const _0x1bcf7f of this['getSuggestions']()){if(!_0x1bcf7f['isInContent'])continue;if(_0x486b93&&_0x1bcf7f['type']!=_0x486b93)continue;let _0x5f5c72=!0x1;for(const _0x4b4b06 of _0x1bcf7f['getRanges']()){for(const _0x305589 of _0xeb8e65){const _0x9c259=_0x305589['start']['isEqual'](_0x4b4b06['end'])||_0x305589['end']['isEqual'](_0x4b4b06['start']);if(_0x9c259||_0x305589['getIntersection'](_0x4b4b06)){const _0x347601=_0x305589['containsRange'](_0x4b4b06)&&Gt(this['_model']['schema'],_0x4b4b06['start'],_0x305589),_0x2ef053=_0x4b4b06['containsRange'](_0x305589)&&Gt(this['_model']['schema'],_0x305589['start'],_0x4b4b06);_0x17756a['push']({'suggestion':_0x1bcf7f,'meta':{'isOwn':_0x5c39f1==_0x1bcf7f['author'],'isNextTo':_0x9c259,'isInsideObject':_0x347601,'containsRangeInObject':_0x2ef053}}),_0x5f5c72=!0x0;break;}}if(_0x5f5c72)break;}}return _0x17756a;}['_addSuggestionMarker'](_0x4465c3,_0x522828,_0x56eccc,_0x40f4e6,_0x10f0cc){this['_model']['change'](_0x151e0c=>{let _0x78c43d='suggestion:'+_0x4465c3+':'+_0x522828+':'+_0x56eccc;_0x10f0cc&&(_0x78c43d=_0x78c43d+':'+_0x10f0cc),_0x151e0c['addMarker'](_0x78c43d,{'range':_0x40f4e6,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x329065){const _0x2e8674=_0x329065['previous'],_0x3340c5=_0x329065['next'];_0x329065['previous']=null,_0x329065['next']=null,null!=_0x2e8674&&_0x2e8674['next']==_0x329065&&(_0x2e8674['next']=_0x3340c5),null!=_0x3340c5&&_0x3340c5['previous']==_0x329065&&(_0x3340c5['previous']=_0x2e8674),'ready'==this['_suggestionState']['get'](_0x329065)&&(this['_suggestionState']['set'](_0x329065,'removed'),this['fire']('suggestionUnloaded',_0x329065,_0x2e8674,_0x3340c5));}['_setSuggestionData'](_0x58bf61){const _0x53d5ae=_0x58bf61['id'],_0x4bfb23=this['addSuggestionData'](_0x58bf61);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x5a3bd0=this['editor']['plugins']['get']('PendingActions'),_0x57dea1=_0x4bfb23['hasComments'],_0x385b05=_0x4bfb23['subType']?_0x4bfb23['type']+':'+_0x4bfb23['subType']:_0x4bfb23['type'],_0x15c4c2=this['editor']['locale'],_0x3194e1=_0x5a3bd0['add'](c(_0x15c4c2,'PENDING_ACTION_SUGGESTION')),_0x2f5aa6={'id':_0x53d5ae,'type':_0x385b05,'hasComments':_0x57dea1,'data':_0x58bf61['data']||null,'originalSuggestionId':_0x58bf61['originalSuggestionId']||null,'attributes':_0x4bfb23['attributes']};this['_adapter']['addSuggestion'](_0x2f5aa6)['then'](_0x324129=>{_0x4bfb23['_saved']=!0x0,_0x5a3bd0['remove'](_0x3194e1),_0x324129&&_0x324129['createdAt']&&(this['_suggestions']['get'](_0x53d5ae)['createdAt']=_0x324129['createdAt']);})['catch'](_0x15ffcb=>{throw _0x7309e5('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4bfb23['discard']();}),_0x4bfb23['stopListening'](),this['_suggestions']['delete'](_0x4bfb23['id']),this['_suggestionState']['delete'](_0x4bfb23),_0x15ffcb;});}return _0x4bfb23;}['_isBlockAttribute'](_0xa86bc8){return this['_blockAttributeKeys']['has'](_0xa86bc8);}['_updateSuggestionData'](_0x1e486b,_0x404b81){const _0x136773=this['editor']['plugins']['get']('PendingActions'),_0x50a584=this['getSuggestion'](_0x1e486b);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x50a584['_saved']){const _0x4e463e=_0x136773['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x1e486b,_0x404b81)['then'](()=>{_0x136773['remove'](_0x4e463e);});}else _0x50a584['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x1e486b,_0x404b81);});}}['_getSuggestionData'](_0x46e3d1){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x27ba3f('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x46e3d1);}['_handleNewSuggestionMarker'](_0x5c2e73){const {id:_0x30decb,type:_0x159f08,subType:_0x5b3977,authorId:_0x2b4eb5}=this['_splitMarkerName'](_0x5c2e73),_0x91e00=this['_suggestions']['get'](_0x30decb)||this['_createSuggestion'](_0x159f08,_0x5b3977,_0x30decb,_0x2b4eb5,{});switch(this['_checkSuggestionCorrectness'](_0x91e00,_0x159f08,_0x5b3977,_0x2b4eb5),this['_suggestionState']['get'](_0x91e00)){case'notReady':this['_getSuggestionData'](_0x30decb)['then'](_0x271c0e=>{let _0x10eb99=Promise['resolve']();_0x271c0e['hasComments']&&(_0x10eb99=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x30decb})),_0x10eb99['then'](()=>{this['addSuggestionData'](_0x271c0e)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x91e00,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x30decb,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x91e00,'ready'),this['fire']('suggestionLoaded',_0x91e00);break;case'ready':this['fire']('suggestionChanged',_0x91e00);}return _0x91e00['addMarkerName'](_0x5c2e73),_0x91e00;}['_refreshSuggestionsChain'](_0x2729d7){const _0xad5dee=Array['from'](_0x2729d7),_0xd27dce=_0xad5dee['filter'](_0x3132c2=>'attribute'==_0x3132c2['type']);this['_refreshAttributeSuggestionsChain'](_0xd27dce);const _0x2feb23=_0xad5dee['filter'](_0x3334c3=>!_0x3334c3['isMultiRange']&&'attribute'!=_0x3334c3['type']),_0x5da8e0=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5491b8=>!_0x5491b8['isMultiRange']&&'attribute'!=_0x5491b8['type']),_0x907daa=_0x5da8e0['filter'](_0x48f9bd=>!_0x2729d7['has'](_0x48f9bd)),_0x73b53e=new Map(_0x5da8e0['map'](_0x43a2b1=>[_0x43a2b1,this['_suggestionFactory']['getSuggestionCallback'](_0x43a2b1['type'],_0x43a2b1['subType'],'chain')])),_0x295393=new Map(_0x5da8e0['map'](_0x14d840=>[_0x14d840,_0x14d840['getFirstRange']()])),_0xad975=new Set(),_0x65a71d=new Set();for(let _0xabad00=0x0;_0xabad00<_0x2feb23['length'];_0xabad00++)_0x31c075(_0x2feb23[_0xabad00],_0x2feb23,_0xabad00+0x1);for(let _0x2e502d=0x0;_0x2e502d<_0x2feb23['length'];_0x2e502d++)_0x31c075(_0x2feb23[_0x2e502d],_0x907daa,0x0);const _0x3507b2=new Set();for(let _0x3f3b62=0x0;_0x3f3b62<_0x2feb23['length'];_0x3f3b62++){const _0x4d4159=_0x2feb23[_0x3f3b62];!_0x65a71d['has'](_0x4d4159)&&_0x4d4159['previous']&&(_0x3507b2['add'](_0x4d4159['previous']),_0x4d4159['previous']['next']===_0x4d4159&&(_0x4d4159['previous']['next']=null),_0x4d4159['previous']=null),!_0xad975['has'](_0x4d4159)&&_0x4d4159['next']&&(_0x3507b2['add'](_0x4d4159['next']),_0x4d4159['next']['previous']===_0x4d4159&&(_0x4d4159['next']['previous']=null),_0x4d4159['next']=null);}function _0x31c075(_0x384e18,_0x5239e6,_0x5aa853){for(let _0x3803dc=_0x5aa853;_0x3803dc<_0x5239e6['length'];_0x3803dc++){const _0x51aa6a=_0x17fa0d(_0x384e18,_0x5239e6[_0x3803dc]);_0x51aa6a&&(_0x51aa6a[0x0]['next']=_0x51aa6a[0x1],_0x51aa6a[0x1]['previous']=_0x51aa6a[0x0],_0xad975['add'](_0x51aa6a[0x0]),_0x65a71d['add'](_0x51aa6a[0x1]));}}function _0x17fa0d(_0x41b0ae,_0x1bf624){if(_0x41b0ae['author']['id']!==_0x1bf624['author']['id'])return null;const _0xa44495=_0x73b53e['get'](_0x41b0ae)(_0x41b0ae,_0x1bf624,_0x295393['get'](_0x41b0ae),_0x295393['get'](_0x1bf624));if(!_0xa44495)return null;return _0x73b53e['get'](_0x1bf624)(_0x41b0ae,_0x1bf624,_0x295393['get'](_0x41b0ae),_0x295393['get'](_0x1bf624))?_0xa44495[0x1]['commentThread']&&_0xa44495[0x1]['commentThread']['length']?null:_0xa44495:null;}_0x3507b2['size']&&this['_refreshSuggestionsChain'](_0x3507b2);}['_refreshAttributeSuggestionsChain'](_0x12a956){if(0x0==_0x12a956['length'])return;const _0x4b7711=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4039ca=>'attribute'==_0x4039ca['type']&&_0x4039ca['_isDataLoaded']),_0x152e22=[],_0x4bcd2a=new Map();for(const _0x3db85f of _0x4b7711){const _0x2ef82f=_0x14dbbf(_0x3db85f['attributes']);_0x4bcd2a['has'](_0x2ef82f)||(_0x4bcd2a['set'](_0x2ef82f,_0x152e22['length']),_0x152e22['push']([]));const _0x434a37=_0x4bcd2a['get'](_0x2ef82f);_0x152e22[_0x434a37]['push'](_0x3db85f);}!(function(){_0x152e22['sort']((_0x919fc9,_0x1f6f86)=>{const _0x5f1b91=_0x919fc9[0x0]['createdAt'],_0x3299e7=_0x1f6f86[0x0]['createdAt'];return _0x5f1b91==_0x3299e7?_0x919fc9[0x0]['attributes']['groupId']<_0x1f6f86[0x0]['attributes']['groupId']?-0x1:0x1:_0x5f1b91<_0x3299e7?-0x1:0x1;});for(const _0x32201 of _0x152e22)_0x32201['sort']((_0x5e9868,_0xda3a0a)=>_0x5e9868['id']<_0xda3a0a['id']?-0x1:0x1);}());for(let _0x207efa=0x0;_0x207efa<_0x152e22['length'];_0x207efa++){if(0x0==_0x152e22[_0x207efa]['length'])continue;const _0x3fdba2=[];for(let _0x25a21d=_0x207efa+0x1;_0x25a21d<_0x152e22['length'];_0x25a21d++)0x0!=_0x152e22[_0x25a21d]['length']&&_0x113bc3(_0x152e22[_0x207efa],_0x152e22[_0x25a21d])&&_0x3fdba2['push'](_0x25a21d);for(const _0x29bc37 of _0x3fdba2)_0x152e22[_0x207efa]=_0x152e22[_0x207efa]['concat'](_0x152e22[_0x29bc37]),_0x152e22[_0x29bc37]=[];}for(const _0xfa83d0 of _0x152e22)for(let _0x75f793=0x0;_0x75f793<_0xfa83d0['length'];_0x75f793++){const _0x3efb92=_0xfa83d0[_0x75f793+0x1]||null;_0xfa83d0[_0x75f793]['next']!==_0x3efb92&&(_0xfa83d0[_0x75f793]['next']=_0x3efb92);}for(const _0x3b2699 of _0x152e22)for(let _0x525eb0=0x0;_0x525eb0<_0x3b2699['length'];_0x525eb0++){const _0x49e0e9=_0x3b2699[_0x525eb0-0x1]||null;_0x3b2699[_0x525eb0]['previous']!==_0x49e0e9&&(_0x3b2699[_0x525eb0]['previous']=_0x49e0e9);}function _0x113bc3(_0x45bb39,_0x590b17){if(_0x45bb39[0x0]['attributes']['groupId']!==_0x590b17[0x0]['attributes']['groupId']&&_0x45bb39[0x0]['author']!==_0x590b17[0x0]['author'])return!0x1;if(!function(_0x3c4dc4,_0xcad3dc){if(!_0x3c4dc4['hasComments']&&!_0xcad3dc['hasComments'])return!0x0;if(_0x3c4dc4['hasComments']&&_0xcad3dc['hasComments'])return!0x1;if(_0x3c4dc4['hasComments']&&_0xcad3dc['createdAt']<_0x3c4dc4['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0xcad3dc['hasComments']&&_0x3c4dc4['createdAt']<_0xcad3dc['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x45bb39[0x0],_0x590b17[0x0]))return!0x1;const _0x367bf2=Ft(_0x45bb39[0x0]['attributes'],['groupId','trackingSessionId']),_0x1f3342=Ft(_0x590b17[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x16f315(_0x367bf2,_0x1f3342))return!0x1;if(_0x45bb39[0x0]['attributes']['groupId']==_0x590b17[0x0]['attributes']['groupId'])return!0x0;if(_0x45bb39[0x0]['attributes']['trackingSessionId']!==_0x590b17[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x45bb39['every'](_0x4b2209=>_0x590b17['some'](_0x15f27e=>_0x4b2209['getFirstRange']()['isEqual'](_0x15f27e['getFirstRange']())))&&_0x590b17['every'](_0x35fceb=>_0x45bb39['some'](_0x170268=>_0x35fceb['getFirstRange']()['isEqual'](_0x170268['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x24d08c){const _0x1c16f8=Array['from'](_0x24d08c),_0x406b14=this['getSuggestions']({'skipNotAttached':!0x0}),_0x22862e=_0x406b14['filter'](_0x21f313=>!_0x24d08c['has'](_0x21f313)),_0x4a3f23=new Map(_0x1c16f8['map'](_0x3728c5=>[_0x3728c5,this['_suggestionFactory']['getSuggestionCallback'](_0x3728c5['type'],_0x3728c5['subType'],'join')])),_0x14163d=new Map(_0x406b14['map'](_0x1dc311=>[_0x1dc311,_0x1dc311['getRanges']()]));for(let _0xf3f239=0x0;_0xf3f239<_0x1c16f8['length'];_0xf3f239++){if(_0x1cb0e6(this,_0x1c16f8[_0xf3f239],_0x1c16f8,_0xf3f239+0x1))return!0x0;}for(let _0x571ad9=0x0;_0x571ad9<_0x1c16f8['length'];_0x571ad9++){if(_0x1cb0e6(this,_0x1c16f8[_0x571ad9],_0x22862e,0x0))return!0x0;}return!0x1;function _0x1cb0e6(_0x3fe3d9,_0x453cfa,_0x497c00,_0x510473){for(let _0x368490=_0x510473;_0x368490<_0x497c00['length'];_0x368490++){const _0x17e97f=_0x497c00[_0x368490];if(_0x17e97f['type']!==_0x453cfa['type']||_0x17e97f['author']['id']!==_0x453cfa['author']['id']||_0x17e97f['subType']!==_0x453cfa['subType'])continue;if(!Qt(_0x453cfa,_0x17e97f))continue;if('attribute'==_0x453cfa['type']&&_0x453cfa['data']['oldValue']!=_0x17e97f['data']['oldValue'])continue;if('attribute'==_0x453cfa['type']&&_0x3fe3d9['_isBlockAttribute'](_0x453cfa['data']['key']))continue;if('formatBlock'==_0x453cfa['type']){const _0x202da8=_0x3fe3d9['editor']['model'],_0x50d5a4=_0x453cfa['getContainedElement']();if(_0x50d5a4&&(_0x202da8['schema']['isObject'](_0x50d5a4)||_0x202da8['schema']['isLimit'](_0x50d5a4)))continue;}const _0x47b4e9=_0x4a3f23['get'](_0x453cfa),_0x156cf3=_0x14163d['get'](_0x453cfa),_0x4ab35b=_0x14163d['get'](_0x17e97f),_0x380d90=_0x453cfa['commentThread']&&_0x453cfa['commentThread']['length'],_0x2821dc=_0x17e97f['commentThread']&&_0x17e97f['commentThread']['length'];if(!_0x380d90&&_0x47b4e9(_0x4ab35b,_0x156cf3))return _0x3fe3d9['_joinSuggestions'](_0x17e97f,_0x453cfa),_0x14163d['delete'](_0x453cfa),!0x0;if(!_0x2821dc&&_0x47b4e9(_0x156cf3,_0x4ab35b))return _0x3fe3d9['_joinSuggestions'](_0x453cfa,_0x17e97f),_0x14163d['delete'](_0x17e97f),!0x0;}return!0x1;}}['_joinSuggestions'](_0x49fed3,_0x4723fe){if(_0x49fed3['isMultiRange']){for(const _0x52f3d9 of _0x4723fe['getRanges']())_0x49fed3['addRange'](_0x52f3d9);}else{const _0x5bb5d3=_0x4723fe['getFirstRange']()['end'];this['_setSuggestionRange'](_0x49fed3,this['_model']['createRange'](_0x49fed3['getFirstRange']()['start'],_0x5bb5d3));}_0x4723fe['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2648e1,_0x5159b9,_0x23d257){const _0x3129e1=_0x2648e1['startsWith']('format')||_0x2648e1['startsWith']('attribute')?'FORMATTING':_0x2648e1['toUpperCase']();return c(this['editor']['locale'],_0x5159b9+'_'+_0x3129e1+'_SUGGESTION_ANNOUNCEMENT',_0x23d257);}['_initAriaMarkerChangeAnnouncements'](){const _0xe58a69=this['editor'];if(!_0xe58a69['ui'])return;const {ariaLiveAnnouncer:_0x3ba1d3}=_0xe58a69['ui'];_0xd99fe4(this['_model'],({left:_0x28b30f,entered:_0x577f07})=>{for(const _0x57a9c0 of _0x28b30f){const {group:_0x37b6f6,type:_0x32ca04}=this['_splitMarkerName'](_0x57a9c0['name']);if('suggestion'===_0x37b6f6){_0x3ba1d3['announce'](this['_getMarkerAnnouncementText'](_0x32ca04,'LEAVE'));break;}}for(const _0xc7cc8e of _0x577f07){const {group:_0x568090,type:_0x853994}=this['_splitMarkerName'](_0xc7cc8e['name']);if('suggestion'===_0x568090){_0x3ba1d3['announce'](this['_getMarkerAnnouncementText'](_0x853994,'ENTER',_0x2d0d08(_0x3d13f0)));break;}}});}['_processAttributeChanges'](_0x18e8a7){if(this['_recordAttributeSuggestions'])return!0x1;const _0xd84029=this['editor'],_0x77316c=_0xd84029['model']['document']['differ']['getChanges']();if(0x0==_0x77316c['length'])return!0x1;const _0x144591=[],_0x32aa0c=_0x77316c['filter'](_0x9d223a=>'attribute'==_0x9d223a['type']),_0x36f855=_0x77316c['filter'](_0x4d0684=>'insert'==_0x4d0684['type']&&'$text'!=_0x4d0684['name']),_0x5a8d5e=_0x77316c['filter'](_0x2753ec=>'remove'==_0x2753ec['type']&&'$text'!=_0x2753ec['name']);for(const _0xd41ea6 of _0x32aa0c)_0x144591['push']({'key':_0xd41ea6['attributeKey'],'newValue':_0xd41ea6['attributeNewValue'],'oldValue':_0xd41ea6['attributeOldValue'],'range':qt(_0xd41ea6['range'],_0xd84029['model'])});for(const _0x4b42c9 of _0x36f855){const _0x2ea34b=_0x5a8d5e['find'](_0x4ec725=>_0x4ec725['position']['isEqual'](_0x4b42c9['position']));_0x2ea34b&&_0x144591['push']({'key':u,'newValue':_0x4b42c9['name'],'oldValue':_0x2ea34b['name'],'range':_0xd84029['model']['createRangeOn'](_0x4b42c9['position']['nodeAfter'])});}return 0x0!=_0x144591['length']&&this['_reduceExistingSuggestions'](_0x18e8a7,_0x144591);}['_processAttributeSuggestions'](_0x21bfb5){let _0x3afb3a=!0x1;const _0x8692ac=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x570358=>_0x570358['data']['newRange']&&_0x570358['name']['startsWith']('suggestion:attribute:'));for(const _0x438e2a of _0x8692ac){const {subType:_0x477211,id:_0x2bf0cb}=this['_splitMarkerName'](_0x438e2a['name']),_0x10b38e=_0x477211['split']('|')[0x0];for(const _0x17317e of this['getSuggestions']({'skipNotAttached':!0x0}))_0x17317e['id']!=_0x2bf0cb&&'attribute'==_0x17317e['type']&&_0x17317e['data']&&_0x17317e['data']['key']==_0x10b38e&&_0x17317e['getFirstRange']()['isIntersecting'](_0x438e2a['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x17317e,_0x438e2a['data']['newRange'],_0x21bfb5),_0x3afb3a=!0x0);}return _0x3afb3a;}['_recordAttributeChanges'](_0x1a9bd9){this['_recordAttributeSuggestions']=!0x0,_0x1a9bd9();}['_isRegisteredAttribute'](_0x3edf22){const _0x4c7b2b=this['_isBlockAttribute'](_0x3edf22),_0x42c1d1=this['_inlineAttributeKeys']['has'](_0x3edf22);return _0x4c7b2b||_0x42c1d1;}['_reduceExistingSuggestions'](_0x48fda3,_0xe3b2d8){if(0x0==_0xe3b2d8['length'])return!0x1;let _0x4a259b=!0x1;for(const _0x43b680 of _0xe3b2d8){const _0x2e2619=this['_findSuggestions'](_0x43b680['range'],'attribute')['filter'](_0x371715=>!_0x371715['meta']['isNextTo'])['map'](_0x379647=>_0x379647['suggestion']),_0x547c5b=_0x14dbbf({'newValue':_0x43b680['newValue']});_0x2e2619['filter'](_0x221e39=>{const [_0x55663a,_0x19e444]=_0x221e39['subType']['split']('|');return _0x55663a==_0x43b680['key']&&_0x19e444!=_0x547c5b;})['forEach'](_0x447ecd=>{this['_reduceSuggestionAttributeRange'](_0x447ecd,_0x43b680['range'],_0x48fda3),_0x4a259b=!0x0;});}return _0x4a259b;}['_reduceSuggestionAttributeRange'](_0x7c4038,_0xe38601,_0x2d66b3){const _0x152499=_0x7c4038['getFirstRange']()['getDifference'](_0xe38601);0x0!==_0x152499['length']?0x1!==_0x152499['length']?this['_breakSuggestionMarker'](_0x7c4038,_0xe38601['start'],_0xe38601['end']):this['_setSuggestionRange'](_0x7c4038,_0x152499[0x0]):_0x2d66b3['removeMarker'](_0x7c4038['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0xd56356){this['_editor']=_0xd56356,this['_model']=_0xd56356['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x4c0f2c,_0x4d4c0e,_0x4d148,_0x534034,_0x58586a,_0x39fbd7){return new o(this['_model'],{'type':_0x4c0f2c,'subType':_0x4d4c0e,'id':_0x4d148,'author':_0x534034,'creator':_0x534034,'attributes':_0x58586a,'onAttributesChange':_0x39fbd7,'onAccept':(..._0x3348dc)=>this['getSuggestionCallback'](_0x4c0f2c,_0x4d4c0e,'accept')(..._0x3348dc),'onDiscard':(..._0x573b10)=>this['getSuggestionCallback'](_0x4c0f2c,_0x4d4c0e,'discard')(..._0x573b10)});}['registerCustomCallback'](_0x2af03c,_0x5697de,_0x182ec9,_0x16a51b){const _0x152388=_0x2af03c+':'+_0x5697de+':'+_0x182ec9;this['_customCallbacks']['set'](_0x152388,_0x16a51b);}['getSuggestionCallback'](_0x355893,_0xd21f2e,_0x38601a){const _0x2acde8=_0x355893+':'+_0xd21f2e+':'+_0x38601a;return this['_customCallbacks']['get'](_0x2acde8)||this['_defaultCallbacks']['get'](_0x355893+':'+_0x38601a);}['_registerDefaultCallbacks'](){const _0x50ae55=()=>!0x1,_0x566ede=_0x333d6a=>{_0x333d6a['sort']((_0x265220,_0x1f6a47)=>_0x265220['start']['isBefore'](_0x1f6a47['start'])?0x1:-0x1),this['_model']['change'](_0xd58211=>{for(const _0x158fb3 of _0x333d6a){let _0x6fe662;_0x6fe662=_0x158fb3['end']['isAtEnd']&&_0x158fb3['end']['parent']==_0x158fb3['start']['nodeAfter']?_0xd58211['createSelection'](_0x158fb3['start']['nodeAfter'],'on'):_0xd58211['createSelection'](_0x158fb3),this['_model']['deleteContent'](_0x6fe662,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x1c1b8c=(_0x10ed31,_0x3cff22)=>{_0x3cff22&&this['_model']['change'](_0x3aadec=>{const {commandName:_0x5f4b91,commandParams:_0x4cda29=[]}=_0x3cff22,_0x3c9434=_0x10ed31['map'](_0x12ddd2=>(Lt(_0x12ddd2)&&(_0x12ddd2=this['_model']['createRange'](_0x12ddd2['end'])),_0x12ddd2))['filter'](_0x16f846=>'$graveyard'!==_0x16f846['root']['rootName']);if(_0x3c9434['length']<0x1)return;const _0x19e71c=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x300918=>_0x597cd7['fromRange'](_0x300918));_0x3aadec['setSelection'](_0x3c9434);for(const _0x1c15fe of this['_editor']['commands']['commands']())_0x1c15fe['refresh']();_0x4cda29['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x5f4b91,..._0x4cda29);const _0x255767=_0x19e71c['filter'](_0x12a658=>'$graveyard'!=_0x12a658['root']['rootName']);_0x255767['length']>0x0&&_0x3aadec['setSelection'](_0x255767);for(const _0x32c1bd of _0x19e71c)_0x32c1bd['detach']();});},_0x5958c8=(_0x2a5d6a,_0x592d45)=>0x1==_0x2a5d6a['length']&&0x1==_0x592d45['length']&&_0x2a5d6a[0x0]['end']['isEqual'](_0x592d45[0x0]['start']),_0x32dfb1=(_0x5b040c,_0x629ae9,_0xe56fe2,_0x1d6533)=>Wt(_0x5b040c,_0x629ae9,_0xe56fe2,_0x1d6533)?[_0x5b040c,_0x629ae9]:Wt(_0x629ae9,_0x5b040c,_0x1d6533,_0xe56fe2)?[_0x629ae9,_0x5b040c]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x50ae55),this['_defaultCallbacks']['set']('insertion:discard',_0x566ede),this['_defaultCallbacks']['set']('insertion:join',_0x5958c8),this['_defaultCallbacks']['set']('insertion:chain',_0x32dfb1),this['_defaultCallbacks']['set']('deletion:accept',_0x566ede),this['_defaultCallbacks']['set']('deletion:discard',_0x50ae55),this['_defaultCallbacks']['set']('deletion:join',_0x5958c8),this['_defaultCallbacks']['set']('deletion:chain',_0x32dfb1),this['_defaultCallbacks']['set']('formatInline:accept',_0x1c1b8c),this['_defaultCallbacks']['set']('formatInline:discard',_0x50ae55),this['_defaultCallbacks']['set']('formatInline:join',_0x5958c8),this['_defaultCallbacks']['set']('formatInline:chain',_0x50ae55),this['_defaultCallbacks']['set']('formatBlock:accept',_0x1c1b8c),this['_defaultCallbacks']['set']('formatBlock:discard',_0x50ae55),this['_defaultCallbacks']['set']('formatBlock:join',_0x5958c8),this['_defaultCallbacks']['set']('formatBlock:chain',_0x50ae55),this['_defaultCallbacks']['set']('attribute:accept',_0x50ae55),this['_defaultCallbacks']['set']('attribute:discard',(_0x115019,_0x1b5e25)=>{if(!_0x1b5e25)return;const _0xcaf941=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x546749=>{if(_0x1b5e25['key']==u)for(const _0x2045bf of _0x115019){const _0x27bec8=_0x2045bf['start']['nodeAfter'],_0x2d30c2=_0x1b5e25['oldValue'];_0x546749['rename'](_0x27bec8,_0x2d30c2);}else{if(_0xcaf941['_isBlockAttribute'](_0x1b5e25['key'])){for(const _0x2469c0 of _0x115019)void 0x0!==_0x1b5e25['oldValue']?_0x546749['setAttribute'](_0x1b5e25['key'],_0x1b5e25['oldValue'],_0x2469c0['start']['nodeAfter']):_0x546749['removeAttribute'](_0x1b5e25['key'],_0x2469c0['start']['nodeAfter']);}else{for(const _0x824532 of _0x115019)_0x1b5e25['oldValue']?_0x546749['setAttribute'](_0x1b5e25['key'],_0x1b5e25['oldValue'],_0x824532):_0x546749['removeAttribute'](_0x1b5e25['key'],_0x824532);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x5958c8);}}function Gt(_0x45e587,_0x4b7cd4,_0x18ca35){for(const _0x2f9616 of _0x4b7cd4['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2f9616['root']==_0x2f9616)return!0x1;if(!_0x18ca35['containsItem'](_0x2f9616))return!0x1;if(_0x45e587['isObject'](_0x2f9616)||_0x45e587['isLimit'](_0x2f9616))return!0x0;}return!0x1;}function Lt(_0xbacc6c){return _0xbacc6c['end']['parent']==_0xbacc6c['start']['nodeAfter']&&_0xbacc6c['end']['isAtStart'];}function Jt(_0x33bb83,_0x383308,_0x4c80f3,_0x2c04a3){const _0xe0da74=_0xf08bba=>!_0xf08bba['item']['is']('$textProxy')&&!_0x2c04a3['isObject'](_0xf08bba['item']),_0x6f8c07=_0x33bb83['start']['getLastMatchingPosition'](_0xe0da74),_0x135e20=_0x33bb83['end']['getLastMatchingPosition'](_0xe0da74,{'direction':'backward'});return(!_0x33bb83['start']['isEqual'](_0x6f8c07)||!_0x33bb83['end']['isEqual'](_0x135e20))&&(_0x6f8c07['isBefore'](_0x135e20)?_0x4c80f3['updateMarker'](_0x383308,{'range':_0x4c80f3['createRange'](_0x6f8c07,_0x135e20)}):_0x4c80f3['removeMarker'](_0x383308),!0x0);}function Kt(_0x4f1602){return _0x14dbbf(_0x4f1602);}function Ht(_0x51e115){const _0x6b033b=_0x51e115['start']['nodeAfter'];return _0x6b033b&&_0x6b033b['is']('element');}function qt(_0x1ae194,_0x300a03){return null==_0x1ae194['end']['nodeBefore']&&_0x1ae194['end']['parent']==_0x1ae194['start']['nodeAfter']?zt(_0x1ae194['start']['nodeAfter'],_0x300a03):_0x1ae194;}function zt(_0xdcdac6,_0x5ed868){const _0x5094fa=_0x5ed868['schema']['isObject'](_0xdcdac6)||_0x5ed868['schema']['isSelectable'](_0xdcdac6);return _0x5ed868['createRange'](_0x5ed868['createPositionAt'](_0xdcdac6,'before'),_0x5094fa?_0x5ed868['createPositionAfter'](_0xdcdac6):_0x5ed868['createPositionAt'](_0xdcdac6,'end'));}function Wt(_0x38ab1c,_0x13c7c4,_0x50daf2,_0x4115d6){return!!Qt(_0x38ab1c,_0x13c7c4)&&_0x50daf2['end']['isEqual'](_0x4115d6['start']);}function Qt(_0x20abbe,_0x1703ad){if(!_0x20abbe['_isDataLoaded']||!_0x1703ad['_isDataLoaded'])return!0x1;const _0x3096a1=new Set(Object['keys'](_0x20abbe['attributes'])),_0x837f5d=new Set(Object['keys'](_0x1703ad['attributes']));if(_0x3096a1['delete']('groupId'),_0x837f5d['delete']('groupId'),0x0==_0x3096a1['size']&&0x0==_0x837f5d['size'])return!0x0;if(_0x3096a1['size']!=_0x837f5d['size'])return!0x1;const _0x3a2fb2={..._0x20abbe['attributes']},_0x48e155={..._0x1703ad['attributes']};return delete _0x3a2fb2['groupId'],delete _0x48e155['groupId'],JSON['stringify'](_0x3a2fb2)==JSON['stringify'](_0x48e155);}function Xt(_0x120ea3,_0x4dc8ae){const _0x190b0f=Yt(_0x120ea3['attributes']),_0x4a43c1=Yt(_0x4dc8ae);if(!_0x120ea3['_isDataLoaded'])return!0x1;for(const _0x53a538 of Object['keys'](_0x4a43c1))if(!_0x16f315(_0x190b0f[_0x53a538],_0x4a43c1[_0x53a538]))return!0x1;return!0x0;}function Yt(_0xcbb90c){const _0x382c02=Object['assign']({},_0xcbb90c);return delete _0x382c02['skipNestingCheck'],delete _0x382c02['tablePasteChainId'],_0x382c02;}class pe extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x52bea3(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x278dce,_0x30a5d7,_0x546600,_0x295e99){super(),this['model']=_0x30a5d7,this['view']=_0x546600,this['commentThreadController']=_0x295e99,this['_editor']=_0x278dce,this['_acceptCommand']=_0x278dce['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x278dce['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2e0122,_0x131284)=>_0x2e0122||_0x131284),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x283e00=>_0x283e00&&this['_editor']['model']['canEditAt'](_0x30a5d7['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x66e74=>_0x66e74&&this['_editor']['model']['canEditAt'](_0x30a5d7['getRanges']())),this['_pendingAction']=null,_0x546600['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x546600,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x546600,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x546600,'change:isDirty',()=>{_0x546600['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 _0x2caadb=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x2caadb);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x1a544d{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4b4efd,_0x3bc722,_0x1aa08b,_0x2095b6){super(_0x4b4efd),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x50f820(_0x4b4efd,c(_0x4b4efd,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x3bc722['authoredAt']),this['bind']('authoredAt')['to'](_0x3bc722),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',_0x3bc722,'authoredAt',this,'descriptionParts',(_0x400170,_0x207b9a,_0x15c60b)=>{const _0x1af1ea=_0x15c60b['map'](_0x4b1fdf=>ls(_0x4b1fdf['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x400170-0x1,_0x3bc722['author']['name'],_0x207b9a?_0x2095b6['formatDateTime'](_0x207b9a):'',new DOMParser()['parseFromString'](_0x1af1ea,'text/html')['body']['textContent']]);}),this['focusables']=new _0x4468c6(),this['focusTracker']=new _0x4b0c7e(),this['keystrokes']=new _0x1a0162(),this['focusCycler']=new _0x28c7b7({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x579d9f=>_0x579d9f['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x3bc722,this['_localUser']=_0x1aa08b,this['_config']=_0x2095b6,_0x2095b6['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x5058bd(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x3787ff}=this['_config'];this['commentsListView']=new _0x3787ff(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',_0x3be854=>_0x3be854+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x18a545,_0x4835e6)=>_0x18a545||!!_0x4835e6);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x1745c8}=this['_config'],_0x1e4818=new _0x1745c8(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0xe8ab94=_0x1e4818['commentInputView'];return _0x1e4818['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0xe8ab94,'value',(_0x34183c,_0x39539d,_0x292728)=>!!_0x292728||_0x34183c&&!_0x39539d),_0xe8ab94['on']('submit',(_0x2107f8,_0x25062e)=>{this['fire']('addComment',_0x25062e),_0xe8ab94['editor']['setData']('');}),_0xe8ab94['on']('cancel',()=>this['focus']()),_0xe8ab94['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x1e4818;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x37774f,_0x183629,_0x4f0b7e,_0x24ef6e){super(_0x37774f,_0x183629,_0x4f0b7e,_0x24ef6e),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x173f30=>_0x173f30&&_0x173f30[0x0]?_0x173f30[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x26c75b,_0x5b644f)=>{let _0x16b1a9='';for(const _0x28c0f0 of _0x26c75b)_0x16b1a9+='<p>'+ls(_0x28c0f0['content'],_0x28c0f0['color'])+'</p>';return _0x5b644f?_0x16b1a9:ti(_0x16b1a9,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x24ef6e['SuggestionView'](_0x37774f,_0x183629,{'formatDateTime':_0x24ef6e['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 _0x35bc3a=this['bindTemplate'],_0x1b738e=[this['suggestionView']];return this['commentsListView']&&_0x1b738e['push'](this['commentsListView']),this['commentThreadInputView']&&_0x1b738e['push'](this['commentThreadInputView']),_0x1b738e['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x35bc3a['if']('isActive','ck-suggestion-wrapper--active'),_0x35bc3a['to']('type',_0x474a44=>'ck-suggestion-'+_0x474a44),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':_0x35bc3a['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x1b738e};}['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 _0x1a544d{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x443ec4,_0x2628f1,_0x368fab){super(_0x443ec4),this['_model']=_0x2628f1,this['_config']=_0x368fab,this['set']('description',''),this['bind']('authoredAt')['to'](_0x2628f1),this['acceptButton']=this['_createButton'](c(_0x443ec4,'Accept\x20suggestion'),_0x480e97,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x443ec4,'Discard\x20suggestion'),_0x101f8f,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x595140(_0x443ec4,_0x2628f1['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x4468c6([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x4b0c7e(),this['keystrokes']=new _0x1a0162(),this['focusCycler']=new _0x28c7b7({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x3f4aa2=>_0x3f4aa2['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x485f3d=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x485f3d['innerHTML']=this['description'],this['on']('change:description',(_0x201743,_0x530c52,_0xbcc965)=>{_0x485f3d['innerHTML']=_0xbcc965;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x1cafcc=this['bindTemplate'],_0x5cb8e1=[{'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':_0x1cafcc['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1cafcc['to']('authoredAt',_0x1dcc5f=>this['_config']['formatDateTime'](_0x1dcc5f))}]}]},{'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']&&_0x5cb8e1['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':_0x5cb8e1}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x49d792,_0x4fe5c3,_0x281733,_0x580e50,_0x2db415){const _0x14d6b9=new _0x5edada(this['locale']);return _0x14d6b9['set']({'label':_0x49d792,'icon':_0x4fe5c3,'tooltip':!0x0,'tooltipPosition':_0x2db415}),_0x14d6b9['extendTemplate']({'attributes':{'class':_0x281733}}),_0x14d6b9['on']('execute',()=>{this['fire'](_0x580e50,this['_model']['id']);}),_0x14d6b9;}['_setupKeyboardNavigation'](){const _0x2de1f7=this['element'];this['keystrokes']['listenTo'](_0x2de1f7);for(const _0x451678 of this['focusables'])this['focusTracker']['add'](_0x451678['element']),this['keystrokes']['listenTo'](_0x451678['element']);this['keystrokes']['set']('enter',(_0x33eb55,_0x1f6746)=>{_0x2de1f7===_0x33eb55['target']&&(this['focusCycler']['focusFirst'](),_0x1f6746());}),this['keystrokes']['set']('esc',(_0x457df7,_0x5787d9)=>{_0x2de1f7!==_0x457df7['target']&&(this['focus'](),_0x5787d9());});}}class d extends _0x5c1181{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x4a4901,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x45c0ac){super(_0x45c0ac),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0xc05fdf=this['editor']['config'];_0xc05fdf['define']('trackChanges.SuggestionThreadView',fe),_0xc05fdf['define']('trackChanges.SuggestionView',we),_0xc05fdf['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0xc05fdf['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x3564ca,_0x150e51){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x340554,_0x3b5321]of this['_handleControllerBuffer']){const _0x6cf43d=this['_suggestionToController']['has'](_0x340554);_0x6cf43d||_0x3b5321?_0x6cf43d&&_0x3b5321&&this['_destroyController'](_0x340554):this['_initializeController'](_0x340554);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x3564ca,_0x150e51);}['init'](){const _0x2e19b6=this['editor'],_0x357c22=_0x2e19b6['plugins']['get']('TrackChangesEditing'),_0x86e2de=_0x2e19b6['plugins']['get']('Annotations'),_0xaa2d6f=_0x2e19b6['plugins']['get']('EditorAnnotations'),_0x531304=_0x2e19b6['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0xaa2d6f['addSourceCollector'](()=>{const _0x38fac0=[];for(const [_0x4f62fa,_0xee3ecc]of Array['from'](this['_suggestionToController'])){const _0x16352d=_0x4f62fa['getAllAdjacentSuggestions'](),_0x1b94e6=[];for(const _0x45da47 of _0x16352d){if(!_0x45da47['isInContent'])continue;if(_0x45da47['isMultiRange']){_0x1b94e6['push'](..._0x45da47['getRanges']());continue;}const _0x5a9c4=_0x45da47['getFirstRange']();if(_0x1b94e6['length']>0x0){const _0x2ccf4e=_0x1b94e6[0x0]['getJoined'](_0x5a9c4);if(_0x2ccf4e){_0x1b94e6[0x0]=_0x2ccf4e;continue;}}_0x1b94e6['push'](_0x5a9c4);}_0x38fac0['push']([_0xee3ecc['view'],_0x1b94e6]);}return _0x38fac0;}),this['listenTo'](_0x357c22,'suggestionLoaded',(_0x3b4ee2,_0x4428dd)=>{this['listenTo'](_0x4428dd,'change:previous',(_0x3cbab2,_0x400aad,_0x2c74e7,_0x38b4f5)=>{_0x4428dd['isInContent']&&(null==_0x2c74e7?(this['_updateController'](_0x38b4f5['head']),this['_handleSuggestionControllerDelayed'](_0x4428dd,!0x1)):(this['_updateController'](_0x2c74e7['head']),null==_0x38b4f5&&this['_handleSuggestionControllerDelayed'](_0x4428dd,!0x0)));}),null!==_0x4428dd['previous']?this['_updateController'](_0x4428dd['head']):this['_handleSuggestionControllerDelayed'](_0x4428dd,!0x1);}),this['listenTo'](_0x357c22,'suggestionUnloaded',(_0x5ecc7b,_0x52326d,_0x544ccb)=>{this['stopListening'](_0x52326d,'change:previous'),this['_handleControllerBuffer']['delete'](_0x52326d),this['_suggestionToController']['has'](_0x52326d)&&this['_destroyController'](_0x52326d),_0x544ccb&&this['_updateController'](_0x544ccb['head']);}),this['listenTo'](_0x357c22,'suggestionChanged',(_0x1284c5,_0x2e31ba)=>{this['_updateController'](_0x2e31ba);}),this['listenTo'](_0x86e2de,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x531304,'addComment',(_0x35fa20,{threadId:_0x24d8fc,isFromAdapter:_0x1ed5ff})=>{if(_0x1ed5ff||!_0x357c22['hasSuggestion'](_0x24d8fc))return;const _0x46cf3c=_0x357c22['getSuggestion'](_0x24d8fc);this['_suggestionToController']['get'](_0x46cf3c)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x52eaca=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x55f968;for(const _0x2856cf in _0x52eaca){const _0x3f347b=_0x2856cf,_0x3b042d=_0x52eaca[_0x3f347b];if('trackChangesLicenseKeyValid'==_0x3b042d||'trackChangesLicenseKeyInvalid'==_0x3b042d||'trackChangesLicenseKeyExpired'==_0x3b042d||'trackChangesLicenseKeyDomainLimit'==_0x3b042d||'trackChangesLicenseKeyNotAllowed'==_0x3b042d||'trackChangesLicenseKeyEvaluationLimit'==_0x3b042d||'trackChangesLicenseKeyTrialLimit'==_0x3b042d||'trackChangesLicenseKeyUsageLimit'==_0x3b042d){delete _0x52eaca[_0x3f347b],_0x55f968=_0x3b042d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x55f968&&_0x52eaca['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x55f968&&_0x52eaca['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x55f968&&_0x52eaca['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x55f968&&_0x52eaca['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x55f968&&_0x52eaca['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x55f968&&_0x52eaca['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x55f968&&_0x52eaca['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x14a77b=this['editor']['plugins']['get']('Annotations'),_0x41e3bf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x51a008=Array['from'](_0x14a77b['activeAnnotations'],_0x562103=>_0x562103['innerView'])['filter'](_0x33946b=>this['_viewToController']['has'](_0x33946b)),_0x51a1e8=[];for(const _0x48dce4 of _0x51a008){const _0x1dc293=this['_viewToController']['get'](_0x48dce4)['model']['getAllAdjacentSuggestions']();_0x51a1e8['push'](..._0x1dc293['reduce']((_0x500d45,_0x4d4ac7)=>[..._0x500d45,..._0x4d4ac7['getMarkerNames']()],[]));}_0x41e3bf['activeMarkers']=_0x51a1e8;}['_addUIComponentsToFactory'](){const _0x53ccec=this['editor'],_0x1c3706=_0x53ccec['locale'],_0x57b994=c(_0x1c3706,'Track\x20changes'),_0x40238e=new _0x1fedff([{'type':'switchbutton','model':new _0x1b419b({'withText':!0x0,'isToggleable':!0x0,'label':_0x57b994,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x1b419b({'withText':!0x0,'label':c(_0x1c3706,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1b419b({'withText':!0x0,'label':c(_0x1c3706,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1b419b({'withText':!0x0,'label':c(_0x1c3706,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1b419b({'withText':!0x0,'label':c(_0x1c3706,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x53ccec['plugins']['has']('TrackChangesPreview')&&_0x40238e['addMany']([{'type':'separator'},{'type':'button','model':new _0x1b419b({'withText':!0x0,'label':c(_0x1c3706,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x260dc6 of _0x40238e)if(ke(_0x260dc6)){const _0xdd3b96=_0x53ccec['commands']['get'](_0x260dc6['model']['commandName']);_0x260dc6['model']['bind']('isOn','isEnabled')['to'](_0xdd3b96,'value','isEnabled');}_0x53ccec['ui']['componentFactory']['add']('trackChanges',_0x1799bd=>this['_createToolbarButton'](_0x1799bd,_0x40238e,_0x57b994)),_0x53ccec['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2ea15b=>this['_createMenuBarMenu'](_0x2ea15b,_0x40238e,_0x57b994));}['_createToolbarButton'](_0x41a4cf,_0x561feb,_0xdd47){const _0x271d45=_0x3c0e80(_0x41a4cf,_0x53e4cf),_0x5f0f7=this['editor']['commands']['get']('trackChanges');_0x271d45['buttonView']['set']({'tooltip':_0xdd47,'label':_0xdd47,'icon':_0xaf24d}),_0x271d45['buttonView']['bind']('isOn')['to'](_0x5f0f7,'value'),_0x271d45['buttonView']['on']('execute',()=>{_0x5f0f7['execute'](),this['editor']['editing']['view']['focus']();}),_0x45bee5(_0x271d45,_0x561feb,{'role':'menu'});const _0x1071c2=[];for(const _0x2aa82e of _0x561feb)ke(_0x2aa82e)&&_0x1071c2['push'](this['editor']['commands']['get'](_0x2aa82e['model']['commandName']));const _0x58e51c=_0x271d45['buttonView'];return _0x58e51c['actionView']['unbind']('isEnabled'),_0x58e51c['arrowView']['unbind']('isEnabled'),_0x58e51c['actionView']['bind']('isEnabled')['to'](_0x5f0f7,'isEnabled'),_0x58e51c['arrowView']['bind']('isEnabled')['toMany'](_0x1071c2,'isEnabled',(..._0x121f32)=>_0x121f32['some'](_0x13091b=>_0x13091b)),_0x271d45['on']('execute',_0x362eb2=>{this['editor']['execute'](_0x362eb2['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x271d45;}['_createMenuBarMenu'](_0x475c7b,_0x4c89c8,_0x135964){const _0x4ef2dd=new _0x52108a(_0x475c7b),_0x14bcf5=this['editor']['commands']['get']('trackChanges');_0x4ef2dd['buttonView']['set']({'label':_0x135964,'icon':_0xaf24d});const _0x2c4783=new _0x3b3307(_0x475c7b);for(const _0x4fa81b of _0x4c89c8){if('separator'==_0x4fa81b['type']){_0x2c4783['items']['add'](new _0x1dd12e(_0x475c7b));continue;}const _0x3d70a2=new _0x2891fd(_0x475c7b,_0x4ef2dd),_0x13d3d2=new _0x5ec854(_0x475c7b),_0x2f6696=_0x4fa81b['model'];_0x13d3d2['bind'](...Object['keys'](_0x2f6696))['to'](_0x2f6696),_0x13d3d2['delegate']('execute')['to'](_0x4ef2dd),_0x13d3d2['on']('execute',()=>{this['editor']['execute'](_0x2f6696['commandName']),this['editor']['editing']['view']['focus']();}),_0x3d70a2['children']['add'](_0x13d3d2),_0x2c4783['items']['add'](_0x3d70a2);}return _0x4ef2dd['bind']('isEnabled')['to'](_0x14bcf5,'isEnabled'),_0x4ef2dd['panelView']['children']['add'](_0x2c4783),_0x4ef2dd;}['_initializeController'](_0x5b7fdf){const _0x33c6a7=this['editor'],_0x122ef0=_0x33c6a7['config'],_0x4cf2ac=_0x33c6a7['plugins']['get']('Annotations'),_0x2cb97d=_0x33c6a7['plugins']['get']('CommentsRepository'),_0x50c6fa=_0x33c6a7['plugins']['get']('EditorAnnotations'),_0x1febe1=_0x33c6a7['plugins']['get'](_0x4a4901)['me'],_0xcf30e=_0x122ef0['get']('trackChanges')['SuggestionThreadView'],_0x5d6958=_0x122ef0['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x258c59,CommentThreadInputView:_0x2f8fb2}=_0x33c6a7['plugins']['get']('CommentsUI');let _0x5cef19,_0x408aa7,_0x4597b6;this['_annotationViews']['has'](_0x5b7fdf['id'])?(_0x408aa7=this['_annotationViews']['get'](_0x5b7fdf['id']),_0x5cef19=_0x408aa7['mainView']):(_0x5cef19=new _0xcf30e(_0x33c6a7['locale'],_0x5b7fdf,_0x1febe1,{'disableComments':this['_disableComments'],'editorConfig':{..._0x122ef0['get']('comments.editorConfig'),'licenseKey':_0x122ef0['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x122ef0['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x122ef0['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x122ef0['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4af0d7(_0x122ef0['get']('locale'),_0x33c6a7['locale']),'CommentView':_0x122ef0['get']('comments')['CommentView'],'CommentsListView':_0x258c59,'CommentThreadInputView':_0x2f8fb2,'SuggestionView':_0x5d6958}),_0x5cef19['suggestionView']['acceptButton']['on']('execute',()=>{_0x33c6a7['editing']['view']['focus']();}),_0x5cef19['suggestionView']['discardButton']['on']('execute',()=>{_0x33c6a7['editing']['view']['focus']();}),_0x408aa7=_0x4cf2ac['createAnnotationView'](this['editor']['locale'],_0x5cef19),_0x408aa7['bind']('isDirty')['to'](_0x5cef19,'isDirty'),_0x408aa7['bind']('length')['to'](_0x5cef19),_0x408aa7['bind']('type')['to'](_0x5cef19,'type',_0x341f35=>'suggestion-'+_0x341f35),_0x5cef19['on']('escape',()=>{_0x4597b6['fire']('escape');}),this['_annotationViews']['set'](_0x5b7fdf['id'],_0x408aa7));const _0x4357c2=_0x2cb97d['createCommentThreadController'](_0x5b7fdf['commentThread'],_0x5cef19),_0x9a2a7d=new pe(_0x33c6a7,_0x5b7fdf,_0x5cef19,_0x4357c2),_0x42a7c5=_0x5b7fdf['getAllAdjacentSuggestions']()['filter'](_0x193d37=>_0x193d37['isInContent']);_0x5cef19['descriptionParts']=_0x33c6a7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x42a7c5),this['_suggestionToController']['set'](_0x5b7fdf,_0x9a2a7d),this['_viewToController']['set'](_0x5cef19,_0x9a2a7d),_0x4597b6=_0x4cf2ac['createAnnotation']({'view':_0x408aa7,'target':()=>{const _0x10e788=[],_0x41ccf9=_0x5b7fdf['getAllAdjacentSuggestions']()['filter'](_0x243168=>_0x243168['isInContent']);for(const _0x43bb48 of _0x41ccf9)_0x10e788['push'](..._0x43bb48['getMarkers']());return _0x1e60ff(_0x33c6a7['editing'],_0x10e788);},'type':()=>'suggestion-'+_0x9a2a7d['view']['type']}),_0x2cb97d['_bindAnnotationToEditors'](_0x5cef19,_0x4597b6),_0x4cf2ac['add'](_0x4597b6),_0x50c6fa['registerAnnotation'](_0x4597b6);}['_destroyController'](_0x57718b){const _0x545737=this['editor']['plugins']['get']('CommentsRepository'),_0x2d2821=this['editor']['plugins']['get']('Annotations'),_0xc03532=this['_suggestionToController']['get'](_0x57718b),_0x43d1d3=_0xc03532['view'],_0x32e894=_0x2d2821['getByInnerView'](_0x43d1d3);_0x545737['_unbindEditors'](_0x43d1d3),_0x32e894&&_0x2d2821['remove'](_0x32e894),this['_suggestionToController']['delete'](_0x57718b),this['_viewToController']['delete'](_0x43d1d3),_0xc03532['destroy']();}['_updateController'](_0x3abd3f){if(!_0x3abd3f['isInContent']||!this['_suggestionToController']['has'](_0x3abd3f))return;const _0x4f3521=this['editor']['plugins']['get']('TrackChangesEditing'),_0xd13dad=this['_suggestionToController']['get'](_0x3abd3f),_0x46d017=_0x3abd3f['getAllAdjacentSuggestions']();_0xd13dad['view']['descriptionParts']=_0x4f3521['descriptionFactory']['getDescriptions'](_0x46d017);}['destroy'](){for(const _0x9b0dd of this['_suggestionToController']['keys']())this['_destroyController'](_0x9b0dd);for(const _0x31da68 of this['_annotationViews']['values']())_0x31da68['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x565010){return'model'in _0x565010;}class k extends _0x5c1181{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x23f33d){this['editor']['plugins']['get'](p)['adapter']=_0x23f33d;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x116c58){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x116c58);}['getSuggestions']({skipNotAttached:_0x3bf23e=!0x1,toJSON:_0x370545=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x3bf23e,'toJSON':_0x370545});}['getSuggestion'](_0x60048f){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x60048f);}}const w=['Pagination'];class T extends _0x5c1181{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x54fa6e=this['editor'];if(_0x54fa6e['config']['define']('trackChangesData.editorCreator',_0x315b1d=>{const _0x47a972=_0x54fa6e['model']['document']['getRootNames']()['reduce']((_0x1b1887,_0x115d72)=>(_0x1b1887[_0x115d72]='',_0x1b1887),{});return _0x54fa6e['constructor']['create'](_0x47a972,_0x315b1d);}),'function'!=typeof _0x54fa6e['config']['get']('trackChangesData')['editorCreator'])throw new _0x27ba3f('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x538908){return N(this['editor'],!0x0,_0x538908);}['getDataWithDiscardedSuggestions'](_0x5d089d){return N(this['editor'],!0x1,_0x5d089d);}}class D extends _0x5c1181{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2bfb6c){function _0x3d3f8a(_0x2588f4){return _0x2588f4['map'](_0x3d3a05=>String['fromCharCode'](_0x3d3a05))['join']('');}super(_0x2bfb6c),this['result']='end',_0x2bfb6c[_0x3d3f8a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d3f8a([0x76,0x69,0x65,0x77])][_0x3d3f8a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3d3f8a([0x61,0x75,0x74,0x6f]),_0x2bfb6c[_0x3d3f8a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3d3f8a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3d3f8a([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3d3f8a([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3d3f8a([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Ge(_0x149913){return void 0x0!==_0x149913['getRootsAttributes'];}async function N(_0x85fd99,_0x35fd29,_0x3327f7){const _0x138adf=_0x420930(_0x85fd99,w);_0x138adf['plugins']['push'](p,D),_0x138adf['rootsAttributes']=Ge(_0x85fd99)?_0x85fd99['getRootsAttributes']():void 0x0;const _0x400d2c=document['createDocumentFragment'](),_0xc8168a=_0x85fd99['config']['get']('trackChangesData')['editorCreator'],_0x50cd46=await _0xc8168a(_0x138adf,()=>function(_0x3de939){const _0x54d41a=document['createElement']('div');return _0x3de939['appendChild'](_0x54d41a),_0x54d41a;}(_0x400d2c));!function(_0x29e257,_0x59a484){const _0x318496=_0x29e257['model']['document']['getRootNames']()['reduce']((_0xc66e20,_0x41f008)=>(_0xc66e20[_0x41f008]=_0x29e257['data']['get']({'rootName':_0x41f008}),_0xc66e20),{}),_0x3cbce4=_0x29e257['plugins']['get']('Users')['users']['map'](_0x52977c=>({'id':_0x52977c['id'],'name':_0x52977c['name']})),_0x4ef197=_0x29e257['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xa8c8db=_0x29e257['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x16fe01=_0x59a484['plugins']['get']('Users'),_0x1d5167=_0x59a484['plugins']['get']('TrackChangesEditing'),_0x4cdf70=_0x59a484['plugins']['get']('CommentsRepository');for(const _0x38eb30 of _0x4cdf70['getCommentThreads']())_0x38eb30['remove']();for(const _0x4e99ef of _0x3cbce4)_0x16fe01['getUser'](_0x4e99ef['id'])||_0x16fe01['addUser'](_0x4e99ef);_0x16fe01['me']||_0x16fe01['useAnonymousUser']();for(const _0x56e03f of _0xa8c8db)_0x4cdf70['addCommentThread'](_0x56e03f);for(const _0x34c416 of _0x4ef197)_0x1d5167['addSuggestionData'](_0x34c416);_0x59a484['data']['set'](_0x318496);}(_0x85fd99,_0x50cd46),_0x50cd46['execute'](_0x35fd29?'acceptAllSuggestions':'discardAllSuggestions');const _0x1a48b8=Ge(_0x50cd46)?_0x50cd46['getFullData'](_0x3327f7):_0x50cd46['data']['get'](_0x3327f7);return await _0x50cd46['destroy'](),_0x1a48b8;}class Me extends _0x1a544d{['options'];constructor(_0x3ca307,_0x5738d8){super(_0x3ca307),this['options']=_0x5738d8,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'](_0x84d0e,_0x3a02c2){if(!this['element'])return;const _0x4abf17=[];for(const [_0x15d7c9,_0x53634c]of _0x84d0e){const _0x51548f=document['createElement']('div');_0x51548f['setAttribute']('data-ck-root-name',_0x15d7c9),_0x51548f['className']=_0x53634c['classes']+'\x20ck-track-changes-preview__root-container',_0x51548f['innerHTML']=_0x53634c['content'],_0x4abf17['push'](_0x51548f);}_0x3a02c2(this['element'],_0x4abf17),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x1b6f03{constructor(_0x152558){super(_0x152558),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x40e4c6=this['editor'],_0x1eb686=_0x40e4c6['locale'],_0x245e82=_0x40e4c6['plugins']['get']('Dialog');let _0x1accae;const _0x1c42ad=function(_0x58e8a3){const _0x5003b3={};if('editables'in _0x58e8a3['ui']['view']){for(const [_0x4ef1a4,_0x37ad86]of Object['entries'](_0x58e8a3['ui']['view']['editables']))_0x5003b3[_0x4ef1a4]=_0x37ad86['element'];}else _0x5003b3[_0x58e8a3['model']['document']['getRootNames']()[0x0]]=_0x58e8a3['ui']['view']['editable']['element'];return _0x5003b3;}(_0x40e4c6),_0x33e44c=function(_0x15b11c){let _0x4f84b3=0x0;for(const _0x23b1af of Object['values'](_0x15b11c))_0x4f84b3=Math['max'](_0x4f84b3,_0x23b1af['getBoundingClientRect']()['width']);let _0x20ad4e=0x0;for(const _0x175945 of Object['values'](_0x15b11c))_0x20ad4e+=_0x175945['getBoundingClientRect']()['height'];const _0x5768c8=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x300a84=Math['min'](_0x20ad4e,_0x5768c8);return{'width':_0x4f84b3,'height':_0x300a84};}(_0x1c42ad);_0x245e82['show']({'id':'finalContentPreview','title':c(_0x1eb686,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x1eb686,{'dialogRects':_0x33e44c}),'onHide':()=>{_0x1accae['detachFromDom']();},'onShow':()=>{_0x40e4c6['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x540a17=>{const _0x2d30ab=this['_standarizeRootsData'](_0x540a17,_0x40e4c6,_0x1c42ad);_0x245e82['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x2d30ab,_0x40e4c6['config']['get']('trackChanges.preview.renderFunction'));}),_0x1accae=new _0x4f698a(_0x1eb686,[_0x245e82['view']]),_0x1accae['attachToDom'](),_0x1accae['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x40e4c6['once']('destroy',()=>{_0x1accae['detachFromDom']();});const _0x3753ab=_0x245e82['view']['headerView']['class'];_0x245e82['view']['headerView']['class']=_0x3753ab?_0x3753ab+'\x20ck-reset_all':'ck-reset_all',_0x245e82['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x245e82['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x3fc1c9=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x4ddf51=_0x3fc1c9['previewMode'],_0x471d66={};if('$labels'===_0x4ddf51){for(const _0x168c43 of _0x3fc1c9['getMergeFieldsIds']())_0x471d66[_0x168c43]=_0x3fc1c9['getLabel'](_0x168c43)||_0x168c43;}else{const _0x38c0a0='$defaultValues'===_0x4ddf51?_0x3fc1c9['getDefaultValues']():_0x3fc1c9['getDataSetValues'](_0x4ddf51,!0x0);for(const _0x5c1175 of Object['entries'](_0x38c0a0)){const [_0x46f934,_0x3bf578]=_0x5c1175;_0x471d66[_0x46f934]=null!==_0x3bf578?_0x3bf578:_0x3fc1c9['getLabel'](_0x46f934)||_0x46f934;}}return{'mergeFieldsData':_0x471d66};}['_standarizeRootsData'](_0x1a6b75,_0x3fde72,_0x5828dc){let _0x3309f6;if('string'==typeof _0x1a6b75){const _0x3e750d=_0x3fde72['model']['document']['getRootNames']()[0x0];_0x3309f6={[_0x3e750d]:_0x1a6b75};}else _0x3309f6=_0x1a6b75;const _0x414602=this['_fixMediaEmbeds'](_0x3309f6,_0x3fde72),_0x12eaa1=function(_0x3fd53c,_0x4c9857){for(const [_0x3c23bd,_0x376160]of _0x3fd53c)_0x376160['classes']=_0x4c9857[_0x3c23bd]['classList']['value']['replace']('ck-focused','');return _0x3fd53c;}(this['_sortRoots'](_0x3fde72)['reduce']((_0x16dc4f,_0x2d891a)=>(_0x16dc4f['push']([_0x2d891a,{'content':_0x414602[_0x2d891a],'classes':''}]),_0x16dc4f),[]),_0x5828dc);return _0x12eaa1;}['_fixMediaEmbeds'](_0x1c1bce,_0x1824c0){if(!_0x1824c0['plugins']['has']('MediaEmbedEditing'))return _0x1c1bce;const _0x2190d7=_0x1824c0['plugins']['get']('MediaEmbedEditing');for(const [_0x1bda9c,_0x3b2df3]of Object['entries'](_0x1c1bce)){const _0x4695e7=document['createElement']('div');_0x4695e7['innerHTML']=_0x3b2df3,(_0x4695e7['querySelectorAll']('figure.media')['forEach'](_0x559715=>{const _0x1e07f6=_0x559715['querySelector']('oembed');if(_0x1e07f6){const _0x2b3dd7=_0x1e07f6['getAttribute']('url');if(_0x2b3dd7){const _0x2f77b6=_0x2190d7['registry']['getMediaViewElement'](new _0x20bc2a(_0x1824c0['editing']['view']['document']),_0x2b3dd7,{'elementName':'','renderForEditingView':!0x0}),_0x197689=document['createElement']('div');_0x197689['classList']['add']('ck-media__wrapper'),_0x2f77b6['render'](_0x197689,_0x1824c0['editing']['view']['domConverter']),_0x1e07f6['replaceWith'](_0x197689);}}}),_0x1c1bce[_0x1bda9c]=_0x4695e7['innerHTML']);}return _0x1c1bce;}['_sortRoots'](_0x432acd){if(!function(_0x27d1fe){return void 0x0!==_0x27d1fe['getRootsAttributes'];}(_0x432acd))return _0x432acd['model']['document']['getRootNames']();const _0x1a4181=[],_0x43d9da=new Map();for(const _0x4323dc of _0x432acd['model']['document']['getRootNames']()){const _0x3e6929=_0x432acd['editing']['view']['getDomRoot'](_0x4323dc)['getClientRects']()['item'](0x0);_0x1a4181['push'](_0x4323dc),_0x43d9da['set'](_0x4323dc,_0x3e6929);}return _0x1a4181['sort']((_0x50d1ad,_0x50123b)=>{const _0x1e6541=_0x43d9da['get'](_0x50d1ad),_0x33a75d=_0x43d9da['get'](_0x50123b);return _0x1e6541['y']-_0x33a75d['y']||_0x1e6541['x']-_0x33a75d['x'];}),_0x1a4181;}}class te extends _0x5c1181{static get['requires'](){return[T,_0x236eb9];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3e8994){super(_0x3e8994),_0x3e8994['commands']['add']('previewFinalContent',new re(this['editor'])),_0x3e8994['config']['define']('trackChanges.preview.renderFunction',(_0x2e934b,_0x3ddb65)=>{for(const _0x280269 of _0x3ddb65)_0x2e934b['appendChild'](_0x280269);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
|