@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250216.0 → 0.0.0-nightly-20250217.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +25 -25
- 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 Yt,Plugin as
|
|
24
|
-
_0xbf6237(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4070c9,_0x4ef099){super(),this['id']=_0x4ef099['id'],this['type']=_0x4ef099['type'],this['subType']=_0x4ef099['subType']||null,this['author']=_0x4ef099['author'],this['creator']=_0x4ef099['creator']||_0x4ef099['author'],this['isExternal']=Boolean(_0x4ef099['attributes']&&_0x4ef099['attributes']['@external']),this['data']=null,this['_model']=_0x4070c9,this['_onAccept']=_0x4ef099['onAccept'],this['_onDiscard']=_0x4ef099['onDiscard'],this['_onAttributesChange']=_0x4ef099['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4ef099['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 _0x2a57b8=this;for(;_0x2a57b8['previous'];)_0x2a57b8=_0x2a57b8['previous'];return _0x2a57b8;}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'](_0x5189b7){this['_markerNames']['add'](_0x5189b7);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x5420d6=>this['_model']['markers']['get'](_0x5420d6))['filter'](_0x3e1ffb=>_0x3e1ffb);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x54300c=>{for(const _0x22962a of this['getMarkers']())_0x54300c['removeMarker'](_0x22962a);}),this['_markerNames']['clear']();}['removeMarker'](_0x3c5efa){this['_model']['change'](_0x3ca127=>{_0x3ca127['removeMarker'](_0x3c5efa);}),this['_markerNames']['delete'](_0x3c5efa);}['addRange'](_0x6ba855){const _0x5cef1b='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x5cef1b),this['_model']['change'](_0x3bf244=>{_0x3bf244['addMarker'](_0x5cef1b,{'range':_0x6ba855,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x5ccd7c){for(const _0x48ed99 of this['getRanges']())if(_0x48ed99['isIntersecting'](_0x5ccd7c))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x1f5edc=>_0x1f5edc['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2a3ec5,_0x2c62f8)=>[..._0x2a3ec5,..._0x2c62f8['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2cab48=this['getRanges']();if(0x1!=_0x2cab48['length'])return null;const _0x5e90b2=_0x2cab48[0x0],_0x5bad86=_0x5e90b2['start']['nodeAfter'],_0xdc7073=_0x5e90b2['end']['nodeBefore'];return _0x5bad86 instanceof _0x2621dc?_0x5bad86!=_0xdc7073?null:_0x5bad86: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 _0x4bfaf0=[];let _0x8a64b4=this['head'];for(;_0x8a64b4;)_0x4bfaf0['push'](_0x8a64b4),_0x8a64b4=_0x8a64b4['next'];return _0x4bfaf0;}['setAttribute'](_0x1d1117,_0x516eac){const _0x5cff9e=_0x24768c(this['attributes']);_0x282a21(_0x5cff9e,_0x1d1117,_0x516eac),_0x46d056(_0x5cff9e,this['attributes'])||(this['attributes']=_0x5cff9e,this['_onAttributesChange'](_0x5cff9e));}['removeAttribute'](_0x596a2c){const _0x39f9ec=_0x24768c(this['attributes']);_0x2e8c25(_0x39f9ec,_0x596a2c),_0x46d056(_0x39f9ec,this['attributes'])||(this['attributes']=_0x39f9ec,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 _0x2730a7()['substr'](0x1,0x5);}}function o(_0x20383f,_0x14acbb,_0x3f2a65){const _0x22565a=_0x20383f['t'],t=_0x20383f['t'];switch(_0x14acbb){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',_0x3f2a65);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3f2a65);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3f2a65);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3f2a65);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3f2a65);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',_0x3f2a65);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3f2a65);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',_0x3f2a65);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3f2a65);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3f2a65);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3f2a65);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3f2a65);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3f2a65);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x3f2a65);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3f2a65);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3f2a65);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3f2a65);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3f2a65);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3f2a65);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3f2a65);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3f2a65);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3f2a65);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3f2a65);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3f2a65);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'},_0x3f2a65);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3f2a65);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3f2a65);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3f2a65);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3f2a65);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3f2a65);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'},_0x3f2a65);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3f2a65);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3f2a65);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3f2a65);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3f2a65);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'},_0x3f2a65);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3f2a65);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'},_0x3f2a65);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'},_0x3f2a65);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3f2a65);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'},_0x3f2a65);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3f2a65);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'},_0x3f2a65);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3f2a65);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3f2a65);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'},_0x3f2a65);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x3f2a65);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 _0x22565a({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x3f2a65);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x22565a({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x3f2a65);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x3f2a65);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'},_0x3f2a65);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'},_0x3f2a65);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'},_0x3f2a65);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x14acbb;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x45aa4e,_0x1fbc6f){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x45aa4e,this['_locale']=_0x1fbc6f;}['getDescriptions'](_0x5523ab){const _0x217601=[],_0x46cab1=new Set(),_0x12ed64=new Set();for(let _0x311a59=0x0;_0x311a59<_0x5523ab['length'];_0x311a59++){const _0x543148=_0x5523ab[_0x311a59];if(!_0x543148['isInContent'])continue;const _0x3e1bc9=this['_handleCustomCallbackDescription'](_0x543148);if(_0x3e1bc9){if(null!=_0x543148['subType']){if(_0x46cab1['has'](_0x543148['subType']))continue;_0x46cab1['add'](_0x543148['subType']);}_0x217601['push'](_0x3e1bc9);}else{if('attribute'!=_0x543148['type'])'insertion'!=_0x543148['type']&&'deletion'!=_0x543148['type']||this['_handleInsertRemoveSuggestionDescription'](_0x217601,_0x543148,_0x5523ab[_0x311a59+0x1]);else{const _0x40b19f=_0x543148['data']['key'];if(_0x12ed64['has'](_0x40b19f))continue;_0x12ed64['add'](_0x543148['data']['key']),_0x40b19f==m?this['_handleRenameSuggestionDescription'](_0x217601,_0x543148):this['_handleAttributeSuggestionDescription'](_0x217601,_0x543148);}}}return this['_resolveDescriptionItems'](_0x217601);}['registerDescriptionCallback'](_0x21769d){this['_customCallbacks']['push'](_0x21769d);}['registerElementLabel'](_0x105328,_0x23c54d,_0x268acd=_0x1ed5be['normal']){'function'==typeof _0x105328?_0x42aa9e(this['_itemLabelsCallbacks'],{'matchingCallback':_0x105328,'label':_0x23c54d,'priority':_0x268acd}):this['_itemLabels']['set'](_0x105328,_0x23c54d);}['registerAttributeLabel'](_0x24c6f1,_0x165bfc){this['_attributeLabels']['set'](_0x24c6f1,_0x165bfc);}['getItemLabel'](_0x4dafdd,_0x26a1a8=0x1){let _0x5b8622;for(const _0x53732b of this['_itemLabelsCallbacks'])if(_0x53732b['matchingCallback'](_0x4dafdd)){_0x5b8622=_0x53732b['label'];break;}return _0x5b8622||(_0x5b8622=this['_itemLabels']['get'](_0x4dafdd['name'])),_0x5b8622?_0x5b8622(_0x26a1a8):0x1!==_0x26a1a8?_0x26a1a8+'\x20'+_0x4dafdd['name']+'s':''+_0x4dafdd['name'];}['_addDescriptionItems'](_0x50502,_0x27c6ea){const _0x3235cb=_0x27c6ea['getFirstRange']()['getWalker'](),_0x2d3655='insertion'==_0x27c6ea['type']?'add':'remove';for(const _0x243b94 of _0x3235cb){const _0x4a46fa=_0x243b94['item'],_0x3ef50c=_0x50502[_0x50502['length']-0x1];if(_0x4a46fa['is']('$textProxy'))_0x3ef50c&&_0x3ef50c['type']['indexOf']('Container')>-0x1&&_0x50502['pop'](),_0x3ef50c&&'text'==_0x3ef50c['type']?_0x3ef50c[_0x2d3655]+=_0x4a46fa['data']:_0x50502['push']({'type':'text','add':'add'==_0x2d3655?_0x4a46fa['data']:'','remove':'remove'==_0x2d3655?_0x4a46fa['data']:''});else{if(this['_schema']['isObject'](_0x4a46fa)){const _0x357bd4=_0x4a46fa;if(_0x3ef50c&&_0x3ef50c['type']['indexOf']('Container')>-0x1&&_0x50502['pop'](),'elementEnd'==_0x243b94['type'])continue;_0x3ef50c&&_0x3ef50c['type']==_0x2d3655+'Object'&&_0x3ef50c['element']['name']==_0x357bd4['name']?_0x3ef50c['quantity']++:_0x50502['push']({'type':_0x2d3655+'Object','element':_0x357bd4,'quantity':0x1}),_0x3235cb['skip'](_0x23b55c=>!('elementEnd'==_0x23b55c['type']&&_0x23b55c['item']==_0x4a46fa));}else{if(this['_schema']['checkChild'](_0x4a46fa,'$text')||_0x4a46fa['is']('element','softBreak')){const _0xfcf9cc=_0x4a46fa;if('add'==_0x2d3655&&'elementStart'==_0x243b94['type']||'remove'==_0x2d3655&&'elementEnd'==_0x243b94['type'])continue;if(_0x3ef50c&&-0x1==_0x3ef50c['type']['indexOf']('Container')){'text'==_0x3ef50c['type']&&(_0x3ef50c[_0x2d3655]+='\x0a');continue;}let _0x232ec7;if(_0x232ec7='add'==_0x2d3655?_0xfcf9cc['nextSibling']&&!this['_schema']['isObject'](_0xfcf9cc['nextSibling'])?_0xfcf9cc['nextSibling']:null:_0xfcf9cc['previousSibling']&&!this['_schema']['isObject'](_0xfcf9cc['previousSibling'])?_0xfcf9cc['previousSibling']:null,_0xfcf9cc['isEmpty']||_0x232ec7&&_0x232ec7['isEmpty']){const _0x1c7eae=_0x232ec7&&_0x232ec7['isEmpty']?_0x232ec7:_0xfcf9cc;_0x3ef50c&&_0x3ef50c['type']==_0x2d3655+'EmptyContainer'&&_0x3ef50c['element']['name']==_0x1c7eae['name']?_0x3ef50c['quantity']++:_0x50502['push']({'type':_0x2d3655+'EmptyContainer','element':_0x1c7eae,'quantity':0x1});}else _0x50502['push']({'type':_0x2d3655+'Container','element':_0xfcf9cc});}}}}}['_resolveDescriptionItems'](_0x57e751){const _0x4bdcca=this['_locale'],_0x23f60c=[],_0x112d74=[],_0x85fec=[];for(const _0x35ce56 of _0x57e751)switch(_0x35ce56['type']){case'text':if(_0x35ce56['add']=_0x35ce56['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x35ce56['remove']=_0x35ce56['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x35ce56['add']&&''!=_0x35ce56['remove']){_0x23f60c['push']({'type':'replace','content':o(_0x4bdcca,'REPLACE_TEXT',['\x22'+_0x35ce56['remove']+'\x22','\x22'+_0x35ce56['add']+'\x22'])});continue;}if(null!=_0x35ce56['add']['match'](/^ +$/)){_0x23f60c['push']({'type':'insertion','content':o(_0x4bdcca,'*Insert:*\x20%0',o(_0x4bdcca,'ELEMENT_SPACE',_0x35ce56['add']['length']))});continue;}if(null!=_0x35ce56['remove']['match'](/^ +$/)){_0x23f60c['push']({'type':'deletion','content':o(_0x4bdcca,'*Remove:*\x20%0',o(_0x4bdcca,'ELEMENT_SPACE',_0x35ce56['remove']['length']))});continue;}if(''!=_0x35ce56['add']){_0x23f60c['push']({'type':'insertion','content':o(_0x4bdcca,'*Insert:*\x20%0','\x22'+_0x35ce56['add']+'\x22')});continue;}_0x23f60c['push']({'type':'deletion','content':o(_0x4bdcca,'*Remove:*\x20%0','\x22'+_0x35ce56['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x23f60c['push']({'type':'insertion','content':o(_0x4bdcca,'*Insert:*\x20%0',this['getItemLabel'](_0x35ce56['element'],_0x35ce56['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x23f60c['push']({'type':'deletion','content':o(_0x4bdcca,'*Remove:*\x20%0',this['getItemLabel'](_0x35ce56['element'],_0x35ce56['quantity']))});continue;case'addContainer':_0x23f60c['push']({'type':'insertion','content':o(_0x4bdcca,'*Split:*\x20%0',this['getItemLabel'](_0x35ce56['element'],_0x35ce56['quantity']))});continue;case'removeContainer':_0x23f60c['push']({'type':'deletion','content':o(_0x4bdcca,'*Merge:*\x20%0',this['getItemLabel'](_0x35ce56['element'],_0x35ce56['quantity']))});continue;case'addFormat':_0x112d74['push'](_0x35ce56['key']);continue;case'removeFormat':_0x85fec['push'](_0x35ce56['key']);continue;default:_0x23f60c['push'](_0x35ce56);}if(_0x112d74['length']){const _0x21d4fc=_0x112d74['map'](_0x50c000=>this['_attributeLabels']['has'](_0x50c000)?this['_attributeLabels']['get'](_0x50c000):_0x50c000)['join'](',\x20');_0x23f60c['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x21d4fc)});}if(_0x85fec['length']){const _0x144790=_0x85fec['map'](_0x5c6444=>this['_attributeLabels']['has'](_0x5c6444)?this['_attributeLabels']['get'](_0x5c6444):_0x5c6444)['join'](',\x20');_0x23f60c['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x144790)});}return _0x23f60c;}['_handleCustomCallbackDescription'](_0x3c6c38){for(const _0x543e3a of this['_customCallbacks']){const _0x27392e=_0x543e3a(_0x3c6c38);if(_0x27392e&&'type'in _0x27392e)return _0x27392e;}}['_handleAttributeSuggestionDescription'](_0x35f25c,_0x5551e2){const _0x4bb0b5=_0x5551e2['data'],_0xb88255=void 0x0===_0x4bb0b5['newValue']?'removeFormat':'addFormat';_0x35f25c['push']({'type':_0xb88255,'key':_0x4bb0b5['key']});}['_handleRenameSuggestionDescription'](_0x34fa2d,_0x17d56a){_0x34fa2d['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x17d56a['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2cf93f,_0x5b6bbf,_0x335c36){if(this['_addDescriptionItems'](_0x2cf93f,_0x5b6bbf),_0x335c36&&_0x335c36['getFirstRange']()&&!_0x5b6bbf['getFirstRange']()['end']['isEqual'](_0x335c36['getFirstRange']()['start'])){const _0x6cc956=_0x2cf93f[_0x2cf93f['length']-0x1],_0x9426f='insertion'==_0x5b6bbf['type']?'add':'remove';_0x6cc956&&'text'==_0x6cc956['type']&&(_0x6cc956[_0x9426f]+='\x0a');}}}class U extends _0x577abc{['afterInit'](){const _0x4d1508=this['editor'],_0x3cbd48=_0x4d1508['plugins']['get']('TrackChangesEditing');_0x4d1508['commands']['get']('showAIAssistant')&&_0x3cbd48['enableCommand']('showAIAssistant');}}class V extends _0x577abc{['afterInit'](){const _0x16f3bd=this['editor'],_0x400b99=_0x16f3bd['locale'];if(!_0x16f3bd['plugins']['has']('AlignmentEditing'))return;const _0x3e6fe9=_0x16f3bd['plugins']['get']('TrackChangesEditing');_0x3e6fe9['enableDefaultAttributesIntegration']('alignment'),_0x3e6fe9['registerBlockAttribute']('alignment'),_0x3e6fe9['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x400b99,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x8d6dba=this['editor'],_0x3d79cf=_0x8d6dba['locale'];_0x8d6dba['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1efba8=>{if('formatBlock'!=_0x1efba8['type'])return;const {data:_0x169119}=_0x1efba8;if(_0x169119&&'alignment'==_0x169119['commandName']){const _0x575c7f=_0x169119['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x3d79cf,'*Format:*\x20%0',function(_0x204fe9){switch(_0x204fe9){case'left':return o(_0x3d79cf,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x3d79cf,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x3d79cf,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x3d79cf,'FORMAT_JUSTIFY_TEXT');}}(_0x575c7f))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x577abc{['afterInit'](){const _0x24d66b=this['editor'],_0x4b6cb8=_0x24d66b['plugins']['get']('TrackChangesEditing'),_0x1aa979=_0x24d66b['locale'];for(const _0x94bbaa of ti){if(!_0x24d66b['plugins']['has'](_0x94bbaa))continue;const _0x274d71=_0x94bbaa['slice'](0x0,-0x7)['toLowerCase'](),_0x26ce7c='FORMAT_'+_0x274d71['toUpperCase']();_0x4b6cb8['enableDefaultAttributesIntegration'](_0x274d71),_0x4b6cb8['registerInlineAttribute'](_0x274d71),_0x4b6cb8['descriptionFactory']['registerAttributeLabel'](_0x274d71,o(_0x1aa979,_0x26ce7c));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x41e08e=this['editor'],_0x2116ed=_0x41e08e['locale'],_0x2d8a7e=_0x41e08e['plugins']['get']('TrackChangesEditing');function _0xb0e10c(_0x425b68,_0x3621ab){_0x2d8a7e['descriptionFactory']['registerDescriptionCallback'](_0x3d4c76=>{if('formatInline'!=_0x3d4c76['type'])return;const {data:_0x5df66c}=_0x3d4c76;return _0x5df66c&&_0x5df66c['commandName']===_0x425b68?_0x5df66c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2116ed,'*Format:*\x20%0',_0x3621ab)}:{'type':'format','content':o(_0x2116ed,'*Remove\x20format:*\x20%0',_0x3621ab)}:void 0x0;});}_0xb0e10c('bold',o(_0x2116ed,'FORMAT_BOLD')),_0xb0e10c('italic',o(_0x2116ed,'FORMAT_ITALIC')),_0xb0e10c('underline',o(_0x2116ed,'FORMAT_UNDERLINE')),_0xb0e10c('code',o(_0x2116ed,'FORMAT_CODE')),_0xb0e10c('strikethrough',o(_0x2116ed,'FORMAT_STRIKETHROUGH')),_0xb0e10c('subscript',o(_0x2116ed,'FORMAT_SUBSCRIPT')),_0xb0e10c('superscript',o(_0x2116ed,'FORMAT_SUPERSCRIPT'));}}class F extends _0x577abc{['afterInit'](){const _0x372a8b=this['editor'],_0x55f4fb=_0x372a8b['locale'];if(!_0x372a8b['plugins']['has']('BlockQuoteEditing'))return;const _0x3b9d90=_0x372a8b['plugins']['get']('TrackChangesEditing'),_0x3108fa=this['editor']['commands']['get']('blockQuote');_0x3b9d90['enableCommand']('blockQuote',(_0x5d4c20,_0x321a38={})=>{const _0x379e63=this['editor']['model']['document']['selection'],_0x284ae9=_0x321a38&&void 0x0!==_0x321a38['forceValue']?_0x321a38['forceValue']:!_0x3108fa['value'];let _0x6f1667=[];if(_0x284ae9){const _0x46f594=Array['from'](_0x379e63['getSelectedBlocks']())['filter'](_0x16b7fc=>oo(_0x16b7fc)||function(_0x2dce26,_0x27b410){const _0x355ccd=_0x27b410['checkChild'](_0x2dce26['parent'],'blockQuote'),_0x4b5d27=_0x27b410['checkChild'](['$root','blockQuote'],_0x2dce26);return _0x355ccd&&_0x4b5d27;}(_0x16b7fc,this['editor']['model']['schema']));_0x6f1667=to(_0x46f594,_0x372a8b['model']);}else{const _0x455cbe=Array['from'](_0x379e63['getSelectedBlocks']())['filter'](_0xbc11d6=>oo(_0xbc11d6));_0x6f1667=to(_0x455cbe,_0x372a8b['model']);}_0x372a8b['model']['change'](()=>{for(const _0x4702c3 of _0x6f1667)_0x3b9d90['markBlockFormat'](_0x4702c3,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x284ae9}]});});}),_0x3b9d90['descriptionFactory']['registerDescriptionCallback'](_0x2d5cd2=>{const {data:_0x70473b}=_0x2d5cd2;if(_0x70473b&&'blockQuote'==_0x70473b['commandName']){const _0xef798d=o(_0x55f4fb,'ELEMENT_BLOCK_QUOTE');return _0x70473b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x55f4fb,'*Set\x20format:*\x20%0',_0xef798d)}:{'type':'format','content':o(_0x55f4fb,'*Remove\x20format:*\x20%0',_0xef798d)};}});}}function oo(_0x3bf5ab){return'blockQuote'==_0x3bf5ab['parent']['name'];}class L extends _0x577abc{['afterInit'](){const _0x514ecf=this['editor'],_0xc2676e=_0x514ecf['locale'],_0x131fb3=_0x514ecf['plugins']['get']('TrackChangesEditing');_0x514ecf['plugins']['has']('BookmarkEditing')&&(_0x131fb3['enableCommand']('insertBookmark'),_0x131fb3['enableDefaultAttributesIntegration']('updateBookmark'),_0x131fb3['registerBlockAttribute']('bookmarkId'),_0x131fb3['descriptionFactory']['registerDescriptionCallback'](_0x4f671a=>{if('insertion'!=_0x4f671a['type']&&'deletion'!=_0x4f671a['type']&&'attribute'!=_0x4f671a['type'])return;const _0x5ae118=_0x4f671a['getContainedElement']();if(null==_0x5ae118)return;if(!_0x5ae118['is']('element','bookmark'))return;const _0x246118=_0x5ae118['getAttribute']('bookmarkId');if('insertion'==_0x4f671a['type'])return{'type':'insertion','content':o(_0xc2676e,'*Insert:*\x20%0','\x22'+_0x246118+'\x22\x20'+o(_0xc2676e,'ELEMENT_BOOKMARK'))};if('deletion'==_0x4f671a['type'])return{'type':'deletion','content':o(_0xc2676e,'*Remove:*\x20%0','\x22'+_0x246118+'\x22\x20'+o(_0xc2676e,'ELEMENT_BOOKMARK'))};const {data:_0x4ca9dd}=_0x4f671a;if(!_0x4ca9dd||'bookmarkId'!=_0x4ca9dd['key'])return;return{'type':'format','content':o(_0xc2676e,'*Set\x20bookmark:*\x20%0','\x22'+_0x4ca9dd['newValue']+'\x22')};}));}}class J extends _0x577abc{['afterInit'](){const _0x42bf13=this['editor'];_0x42bf13['plugins']['has']('CaseChange')&&(_0x42bf13['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x42bf13['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x42bf13['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x577abc{['afterInit'](){const _0x1e0d16=this['editor'];_0x1e0d16['commands']['get']('ckbox')&&_0x1e0d16['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x577abc{['afterInit'](){const _0x1af2ad=this['editor'];if(!_0x1af2ad['plugins']['has']('CodeBlock'))return;const _0x54a6a1=_0x1af2ad['plugins']['get']('TrackChangesEditing'),_0xeb17ca=_0x1af2ad['locale'],_0x45becc=_0x1af2ad['config']['get']('codeBlock')['languages'],_0x2b8f65=_0x1af2ad['commands']['get']('codeBlock');_0x54a6a1['enableCommand']('indentCodeBlock'),_0x54a6a1['enableCommand']('outdentCodeBlock'),_0x54a6a1['enableCommand']('codeBlock',(_0xb3c9e,_0xb8da85={})=>{const _0x986165=_0x1af2ad['model'],_0x3c07cf=_0x1af2ad['model']['document']['selection'],_0x5af0d8=_0xb8da85&&void 0x0!==_0xb8da85['forceValue']?_0xb8da85['forceValue']:!_0x2b8f65['value'];let _0x1ed1ae;_0xb8da85['language']||(_0xb8da85['language']=_0x45becc[0x0]['language']),_0x1ed1ae=_0x5af0d8?Array['from'](_0x3c07cf['getSelectedBlocks']())['filter'](_0x23535b=>eo(_0x23535b)||function(_0x5d3802,_0x7b68d5){if(_0x5d3802['is']('rootElement')||_0x7b68d5['isLimit'](_0x5d3802))return!0x1;return _0x7b68d5['checkChild'](_0x5d3802['parent'],'codeBlock');}(_0x23535b,_0x986165['schema'])):Array['from'](_0x3c07cf['getSelectedBlocks']())['filter'](_0x369b2a=>eo(_0x369b2a));const _0x205974=to(_0x1ed1ae,_0x986165);_0x986165['change'](()=>{for(const _0x4637cc of _0x205974)_0x54a6a1['markBlockFormat'](_0x4637cc,{'commandName':'codeBlock','commandParams':[{..._0xb8da85,'forceValue':_0x5af0d8}],'formatGroupId':'blockName'});});}),(_0x54a6a1['descriptionFactory']['registerElementLabel']('codeBlock',_0x4610ad=>o(_0xeb17ca,'ELEMENT_CODE_BLOCK',_0x4610ad)),_0x54a6a1['descriptionFactory']['registerDescriptionCallback'](_0x31a316=>{if('formatBlock'!=_0x31a316['type'])return;const _0x2f25c6=_0xeb17ca['t'],{data:_0x8c8beb}=_0x31a316;if(!_0x8c8beb||'codeBlock'!=_0x8c8beb['commandName'])return;const _0x505a09=_0x8c8beb['commandParams'][0x0]['language'],_0x333185=_0x2f25c6(_0x45becc['find'](_0x85e5d7=>_0x85e5d7['language']===_0x505a09)['label'])['toLowerCase']();return _0x8c8beb['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xeb17ca,'*Set\x20format:*\x20%0',o(_0xeb17ca,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x333185+')')}:{'type':'format','content':o(_0xeb17ca,'*Remove\x20format:*\x20%0',o(_0xeb17ca,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x3d121b){return'codeBlock'==_0x3d121b['name'];}class z extends _0x577abc{['afterInit'](){const _0x2408ad=this['editor'];if(!_0x2408ad['plugins']['has']('CommentsEditing'))return;_0x2408ad['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x54ae69,_0x23d1ad,_0x12791c){const _0x2d4345=[];for(const _0x55834b of _0x23d1ad['getItems']())_0x55834b['hasAttribute'](_0x54ae69)&&_0x2d4345['push'](_0x12791c['createRangeOn'](_0x55834b));return _0x2d4345;}function De(_0xa9902a,_0x8f10f,{showActiveMarker:_0x2b8733=!0x0}={}){const _0x3769cb=_0xa9902a['plugins']['get']('TrackChangesEditing');return(_0x4644b0,_0x598b59,_0x2d81d6)=>{if(!_0x2d81d6['consumable']['test'](_0x598b59['markerRange'],_0x4644b0['name']))return;const _0xbec622=_0x598b59['markerRange']['getWalker'](),_0x23f9f8=_0x598b59['markerRange']['start'],_0x2d2d2b=_0xa9902a['model']['schema'];let _0x3e2991=null,_0x561094=null,_0x5f5657=!0x1,_0x1f148d=!0x1;for(const _0x23717d of _0xbec622){const _0x25370d=_0x23717d['item'];_0x5f5657=_0x5f5657||_0x2d2d2b['isContent'](_0x25370d);const _0x16111e=_0x2d81d6['mapper']['toViewElement'](_0x25370d);if(_0x16111e&&_0x16111e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x23717d['type']&&(_0x2d2d2b['isBlock'](_0x25370d)&&!_0x2d2d2b['isLimit'](_0x25370d)&&(_0x25370d['nextSibling']||_0x23f9f8['isAtEnd']?_0x3e2991&&_0x3e2991['parent']==_0x25370d||(_0x3e2991=_0x25370d,_0x156d8c(_0x23717d['previousPosition']),_0x1f148d=!0x0):_0x561094=_0x561094||_0x23717d['previousPosition']));}function _0x156d8c(_0x29823e){const {authorId:_0x1fbab9}=_0x3769cb['_splitMarkerName'](_0x598b59['markerName']),_0x178115=_0x2d81d6['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x8f10f,'data-author-id':_0x1fbab9}),_0x2d41ce=_0x2d81d6['mapper']['toViewPosition'](_0x29823e);_0x2b8733&&_0x3769cb['activeMarkers']['includes'](_0x598b59['markerName'])&&_0x2d81d6['writer']['addClass']('ck-suggestion-marker--active',_0x178115),_0x2d81d6['writer']['insert'](_0x2d41ce,_0x178115),_0x2d81d6['mapper']['bindElementToMarker'](_0x178115,_0x598b59['markerName']);}_0x5f5657||_0x1f148d||!_0x561094||_0x156d8c(_0x561094);};}class K extends _0x577abc{static get['requires'](){return[_0xf029fe];}['init'](){const _0x4f5246=this['editor'],_0x15d941=_0x4f5246['plugins']['get']('TrackChangesEditing');_0x15d941['enableCommand']('delete');const _0x5704de=_0x4f5246['commands']['get']('deleteForward');_0x15d941['enableCommand']('deleteForward',(_0x3e8920,_0x27b6f3={})=>{const _0x11f9b5=_0x4f5246['model']['createSelection'](_0x4f5246['model']['document']['selection']);_0x11f9b5['isCollapsed']&&_0x4f5246['model']['modifySelection'](_0x11f9b5,{'direction':'forward','unit':_0x27b6f3['unit']});const _0x56fa4d=_0x11f9b5['getFirstRange'](),_0x2d28ef=_0x157a8e['fromRange'](_0x56fa4d);let _0x27e521;_0x3e8920(_0x27b6f3),_0x27e521='$graveyard'==_0x2d28ef['root']['rootName']?_0x4f5246['model']['createRange'](_0x56fa4d['start']):_0x4f5246['model']['createRange'](_0x2d28ef['start'],_0x2d28ef['end']),_0x2d28ef['detach'](),_0x4f5246['model']['enqueueChange'](_0x5704de['buffer']['batch'],_0x35e518=>{_0x5704de['buffer']['lock'](),_0x35e518['setSelection'](_0x35e518['createRange'](_0x27e521['end'])),_0x5704de['buffer']['unlock']();});}),_0x4f5246['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x4f5246,'merge'),{'priority':'high'}),_0x4f5246['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x367cf2,_0x351adc,_0x154e15)=>{_0x154e15['options']['showSuggestionHighlights']&&De(_0x4f5246,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x367cf2,_0x351adc,_0x154e15);},{'priority':'high'}),_0x4f5246['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x27c5b8,_0x483b87,_0x51d03c)=>{const _0x3a124e=_0x51d03c['mapper']['markerNameToElements'](_0x483b87['markerName']);if(_0x3a124e){for(const _0x284355 of _0x3a124e)_0x284355['is']('uiElement')&&(_0x51d03c['mapper']['unbindElementFromMarkerName'](_0x284355,_0x483b87['markerName']),_0x51d03c['writer']['remove'](_0x284355));}},{'priority':'high'});}}class W extends _0x577abc{['afterInit'](){const _0x5f50d5=this['editor'];if(!_0x5f50d5['plugins']['has']('ListEditing'))return;const _0xc4e62d=_0x5f50d5['locale'],_0x5f34eb=_0x5f50d5['plugins']['get']('TrackChangesEditing'),_0x3d7edd=_0x5f50d5['plugins']['has']('TodoListEditing'),_0x380650=!!_0x5f50d5['config']['get']('list.multiBlock');function _0x268a3a(_0xf106a2){return{'type':'format','content':''+o(_0xc4e62d,'*Set\x20format:*\x20%0',_0xf106a2)};}function _0x3c73e9(_0x254bcc){return{'type':'format','content':''+o(_0xc4e62d,'*Remove\x20format:*\x20%0',_0x254bcc)};}_0x5f34eb['enableDefaultAttributesIntegration']('numberedList'),_0x5f34eb['enableDefaultAttributesIntegration']('bulletedList'),_0x5f34eb['enableDefaultAttributesIntegration']('customNumberedList'),_0x5f34eb['enableDefaultAttributesIntegration']('customBulletedList'),_0x5f34eb['enableDefaultAttributesIntegration']('indentList'),_0x5f34eb['enableDefaultAttributesIntegration']('outdentList'),_0x5f34eb['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x5f34eb['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x5f34eb['registerBlockAttribute']('listItemId'),_0x5f34eb['registerBlockAttribute']('listType'),_0x5f34eb['registerBlockAttribute']('listIndent'),_0x380650&&(_0x5f34eb['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x5f34eb['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x3d7edd&&(_0x5f34eb['enableDefaultAttributesIntegration']('todoList'),_0x5f34eb['enableDefaultAttributesIntegration']('checkTodoList'),_0x5f34eb['registerBlockAttribute']('todoListChecked'),_0x5f34eb['descriptionFactory']['registerDescriptionCallback'](_0x1ebd80=>{const {data:_0x303d22}=_0x1ebd80;if(_0x303d22&&'todoListChecked'==_0x303d22['key'])return{'type':'format','content':_0x303d22['newValue']?o(_0xc4e62d,'*Check\x20item*'):o(_0xc4e62d,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x3f142a=>{if(_0x3f142a['batch']['isUndo'])return!0x1;let _0x4917d3=!0x1;const _0x37ff1f=_0x5f34eb['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xc743be=>'todoListChecked'===_0x5f34eb['_getAttributeKey'](_0xc743be));for(const _0x9991c of _0x37ff1f){'todo'!=_0x9991c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x5f34eb['_findSuggestions'](_0x9991c['getFirstRange'](),'attribute')['find'](_0x5ab192=>'listType'===_0x5f34eb['_getAttributeKey'](_0x5ab192['suggestion']))||(_0x3f142a['removeMarker'](_0x9991c['getFirstMarker']()),_0x4917d3=!0x0));}return _0x4917d3;})),_0x5f34eb['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0xc4e62d,'FORMAT_INDENT'));const _0x2e4fbe={'type':'format','content':''};_0x5f34eb['descriptionFactory']['registerDescriptionCallback'](_0x1caf83=>{const {data:_0x3beebd}=_0x1caf83;if(!_0x3beebd||'listType'!=_0x3beebd['key'])return;let _0x2067f1=_0x1caf83['head'];for(;_0x2067f1;){if(_0x2067f1['data']&&(('listStyle'==_0x2067f1['data']['key']||'listMarkerStyle'==_0x2067f1['data']['key'])&&(_0x2067f1['data']['newValue']&&'default'!=_0x2067f1['data']['newValue']||'default'!=_0x2067f1['data']['oldValue']&&!_0x3beebd['newValue'])||!_0x380650&&_0x2067f1['data']['key']==m))return _0x2e4fbe;_0x2067f1=_0x2067f1['next'];}if(null==_0x3beebd['newValue'])switch(_0x3beebd['oldValue']){case'bulleted':return _0x3c73e9(o(_0xc4e62d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3c73e9(o(_0xc4e62d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3c73e9(o(_0xc4e62d,'ELEMENT_TODO_LIST'));}switch(_0x3beebd['newValue']){case'bulleted':return _0x268a3a(o(_0xc4e62d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x268a3a(o(_0xc4e62d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x268a3a(o(_0xc4e62d,'ELEMENT_TODO_LIST'));}}),_0x5f34eb['descriptionFactory']['registerDescriptionCallback'](_0x54a569=>{const {data:_0x46ef5d}=_0x54a569;if(_0x46ef5d&&'listIndent'==_0x46ef5d['key'])return null==_0x46ef5d['newValue']||null==_0x46ef5d['oldValue']&&0x0==_0x46ef5d['newValue']?_0x2e4fbe:void 0x0;}),_0x5f34eb['descriptionFactory']['registerDescriptionCallback'](_0x55bc5e=>{if('attribute'!=_0x55bc5e['type'])return;const {data:_0x3dde09}=_0x55bc5e;if(!_0x3dde09||'listItemId'!=_0x3dde09['key'])return;const _0x49bb47=Te(_0x55bc5e);return'newValue'==_0x49bb47?{'type':'format','content':o(_0xc4e62d,'*Merge:*\x20list\x20item')}:'oldValue'==_0x49bb47?{'type':'format','content':o(_0xc4e62d,'*Split:*\x20list\x20item')}:_0x2e4fbe;}),_0x5f50d5['model']['document']['registerPostFixer'](_0x3c29c7=>this['listItemIdFixer'](_0x3c29c7)),_0x5f50d5['model']['document']['registerPostFixer'](_0x25653e=>this['noTrackChangesFixer'](_0x25653e)),_0x5f50d5['model']['document']['on']('change:data',(_0x5689d3,_0x5da559)=>{if(_0x5da559['isUndo']||!_0x5da559['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x4616f6){if(_0x4616f6['batch']['isUndo']||!_0x4616f6['batch']['isLocal'])return!0x1;let _0x45e447=!0x1;const _0x5bee95=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xff1da5=>_0xff1da5['data']&&'listItemId'==_0xff1da5['data']['key'])['filter'](_0x4133e0=>_0x4133e0['data']['newValue']&&_0x4133e0['data']['oldValue']);for(const _0x5259a0 of _0x5bee95)Te(_0x5259a0)||(_0x4616f6['removeMarker'](_0x5259a0['getFirstMarker']()),_0x45e447=!0x0);return _0x45e447;}['noTrackChangesFixer'](_0xe30dd1){if(_0xe30dd1['batch']['isUndo']||!_0xe30dd1['batch']['isLocal'])return!0x1;const _0x7cba97=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x7cba97['trackChangesCommand']['value'])return!0x1;let _0x20f910=!0x1;const _0x4f95e9=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x23a1f7=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x485f93=>'attribute'==_0x485f93['type'])['filter'](_0x445000=>_0x4f95e9['includes'](_0x445000['attributeKey']));if(0x0==_0x23a1f7['length'])return _0x20f910;for(const _0x566019 of _0x23a1f7){const _0x2e2c03=_0x7cba97['_findSuggestions'](_0x566019['range'],'attribute')['filter'](_0x3f37de=>!_0x3f37de['meta']['isNextTo'])['map'](_0x5137fa=>_0x5137fa['suggestion'])['filter'](_0x123c3d=>{const _0x46f8db=_0x7cba97['_getAttributeKey'](_0x123c3d);return _0x4f95e9['includes'](_0x46f8db);});if(_0x2e2c03['length']){for(const _0x37c577 of _0x2e2c03)_0xe30dd1['removeMarker'](_0x37c577['getFirstMarker']());_0x20f910=!0x0;}}return _0x20f910;}['assureChains'](){const _0x29c0c8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e898f=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x5eac1c;const _0x19a6de=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2be83e=>{if(_0x2be83e['data']['oldRange']||!_0x2be83e['data']['newRange'])return null;if(!_0x2be83e['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x147bd9}=_0x29c0c8['_splitMarkerName'](_0x2be83e['name']);if(!_0x29c0c8['hasSuggestion'](_0x147bd9))return null;const _0x36e325=_0x29c0c8['getSuggestion'](_0x147bd9);return _0x3e898f['includes'](_0x36e325['data']['key']);})['map'](_0x3bd6b5=>{const {id:_0x2bbb3e}=_0x29c0c8['_splitMarkerName'](_0x3bd6b5['name']),_0x29ba7e=_0x29c0c8['getSuggestion'](_0x2bbb3e);return _0x5eac1c=_0x29ba7e['attributes']['groupId'],_0x29ba7e['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x19a6de['size'])return;const _0x219aa1=_0x29c0c8['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x597139=>'attribute'==_0x597139['type']&&_0x597139['data']&&_0x3e898f['includes'](_0x597139['data']['key'])&&_0x597139['attributes']['groupId']!=_0x5eac1c)['map'](_0x4ddfa2=>({'listItem':_0x4ddfa2['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4ddfa2['attributes']['groupId']})),_0x473a5d=new Set();for(const {groupId:_0x487624,listItem:_0x1360fd}of _0x219aa1)_0x19a6de['has'](_0x1360fd)&&_0x473a5d['add'](_0x487624);for(const _0x985c22 of _0x29c0c8['getSuggestions']())_0x473a5d['has'](_0x985c22['attributes']['groupId'])&&_0x985c22['setAttribute']('groupId',_0x5eac1c);}['_supportLegacySuggestions'](){const _0x2cf022=this['editor'],_0xf806b4=_0x2cf022['locale'],_0x192448=_0x2cf022['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x192448['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1d151f,_0x4516be){const _0x222f13=[];for(let _0x429577 of _0x1d151f)_0x429577['start']['nodeAfter']===_0x429577['end']['parent']&&(_0x429577=_0x2cf022['model']['createRange'](_0x2cf022['model']['createPositionAt'](_0x429577['start']['nodeAfter'],0x0))),_0x222f13['push'](_0x429577);_0x2cf022['model']['change'](_0x89844a=>{const _0x431a1b=_0x2cf022['model']['document']['selection'],_0x5e80e8=Array['from'](_0x431a1b['getRanges']())['map'](_0x53051a=>_0x157a8e['fromRange'](_0x53051a));_0x89844a['setSelection'](_0x222f13),_0x2cf022['commands']['get'](_0x4516be['commandName'])['refresh'](),_0x4516be['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2cf022['execute'](_0x4516be['commandName'],..._0x4516be['commandParams']),_0x89844a['setSelection'](_0x5e80e8);for(const _0x1d2f7d of _0x5e80e8)_0x1d2f7d['detach']();});}),_0x192448['descriptionFactory']['registerElementLabel'](function(_0x3cf7ca){const _0x6aba3=!_0x2cf022['model']['schema']['isObject'](_0x3cf7ca),_0x48cc32=_0x3cf7ca['previousSibling'],_0xf92834=_0x3cf7ca['nextSibling'],_0x4ca13a=_0x3cf7ca['getAttribute']('listItemId'),_0x2cae46=!_0x48cc32||_0x48cc32['getAttribute']('listItemId')!==_0x4ca13a,_0x6c7d57=!_0xf92834||_0xf92834['getAttribute']('listItemId')!==_0x4ca13a;return _0x6aba3&&Boolean(_0x4ca13a)&&_0x2cae46&&_0x6c7d57;},_0x5ef4a5=>o(_0xf806b4,'ELEMENT_LIST_ITEM',_0x5ef4a5));}['_registerLegacyDescription'](){const _0x2f2cda=this['editor'],_0x2dfd83=_0x2f2cda['locale'];function _0x4eed35(_0xb5153f){const _0x5cad49=_0x2f2cda['commands']['get']('bulletedList')['value'],_0x3b3928=_0x2f2cda['commands']['get']('numberedList')['value'];return'numberedList'===_0xb5153f?_0x5cad49:_0x3b3928;}_0x2f2cda['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3b93e4){if('formatBlock'!=_0x3b93e4['type'])return;const {data:_0x572e9c}=_0x3b93e4;if(!_0x572e9c)return;let _0xf07db8,_0x379e07,_0x382908,_0x3b8026;switch(_0x572e9c['commandName']){case'bulletedList':_0x382908=_0x572e9c['commandParams'][0x0]['forceValue'],_0x3b8026=_0x4eed35(_0x572e9c['commandName']),_0xf07db8=_0x382908?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3b8026&&_0x2f2cda['config']['get']('list.multiBlock')||(_0xf07db8='*Change\x20to:*\x20%0'),_0x379e07={'type':'format','content':o(_0x2dfd83,_0xf07db8,o(_0x2dfd83,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x382908=_0x572e9c['commandParams'][0x0]['forceValue'],_0x3b8026=_0x4eed35(_0x572e9c['commandName']),_0xf07db8=_0x382908?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3b8026&&_0x2f2cda['config']['get']('list.multiBlock')||(_0xf07db8='*Change\x20to:*\x20%0'),_0x379e07={'type':'format','content':o(_0x2dfd83,_0xf07db8,o(_0x2dfd83,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0xf07db8='*Indent:*\x20%0',_0x379e07={'type':'format','content':o(_0x2dfd83,_0xf07db8,o(_0x2dfd83,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0xf07db8=function(_0x10400d){const _0x97383b=_0x10400d['getFirstRange']();let _0x360520=_0x97383b['start']['nodeAfter'];for(;_0x360520&&_0x97383b['containsItem'](_0x360520);){if(_0x360520['getAttribute']('listIndent')>0x0)return!0x1;_0x360520=_0x360520['nextSibling'];}return!0x0;}(_0x3b93e4)?o(_0x2dfd83,'*Format:*\x20remove\x20from\x20%0',o(_0x2dfd83,function(_0x32f00f){return'ELEMENT_'+_0x32f00f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3b93e4))):o(_0x2dfd83,'*Outdent:*\x20%0',o(_0x2dfd83,'ELEMENT_LIST_ITEM')),_0x379e07={'type':'format','content':_0xf07db8};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x572e9c['multipleBlocks']&&(_0xf07db8='*Merge:*\x20%0',_0x379e07={'type':'deletion','content':o(_0x2dfd83,_0xf07db8,o(_0x2dfd83,'ELEMENT_LIST_ITEM'))});}return _0x379e07;});}}function Te(_0x430ee3){let _0x2392dd=_0x430ee3['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x2392dd;){const _0x2c83c=_0x2392dd['getAttribute']('listItemId');if(!_0x2c83c)return!0x1;if(_0x2c83c==_0x430ee3['data']['newValue'])return'newValue';if(_0x2c83c==_0x430ee3['data']['oldValue'])return'oldValue';_0x2392dd=_0x2392dd['previousSibling'];}return!0x1;}class Se extends _0x577abc{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x15a2aa=this['editor']['config']['get']('list.properties'),_0x49e36f=this['editor']['plugins']['get']('TrackChangesEditing');_0x15a2aa['styles']&&(_0x49e36f['enableDefaultAttributesIntegration']('listStyle'),_0x49e36f['registerBlockAttribute']('listStyle')),_0x15a2aa['reversed']&&(_0x49e36f['enableDefaultAttributesIntegration']('listReversed'),_0x49e36f['registerBlockAttribute']('listReversed')),_0x15a2aa['startIndex']&&(_0x49e36f['enableDefaultAttributesIntegration']('listStart'),_0x49e36f['registerBlockAttribute']('listStart'));const _0x5d0e14={'type':'format','content':''};_0x49e36f['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x40e3ea=this['editor']['locale'];_0x49e36f['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x40e3ea,'FORMAT_LIST_REVERSED')),_0x49e36f['descriptionFactory']['registerDescriptionCallback'](_0x488b72=>{const {data:_0x3f63d8}=_0x488b72;if(_0x3f63d8&&'listReversed'==_0x3f63d8['key'])return null==_0x3f63d8['newValue']||0x0==_0x3f63d8['newValue']&&null==_0x3f63d8['oldValue']?_0x5d0e14:void 0x0;}),_0x49e36f['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x40e3ea,'FORMAT_LIST_START')),_0x49e36f['descriptionFactory']['registerDescriptionCallback'](_0x3df4a8=>{const {data:_0xe493b0}=_0x3df4a8;if(_0xe493b0&&'listStart'==_0xe493b0['key'])return null==_0xe493b0['newValue']||0x1==_0xe493b0['newValue']&&null==_0xe493b0['oldValue']?_0x5d0e14:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0xf591cd=>{if(_0xf591cd['batch']['isUndo'])return!0x1;let _0x3d6059=!0x1;const _0x2673c7=_0x49e36f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x68a690=>{const _0x4c5069=_0x49e36f['_getAttributeKey'](_0x68a690);return'listStart'==_0x4c5069||'listReversed'==_0x4c5069;});for(const _0x3b9c94 of _0x2673c7){const _0x1a6770=_0x3b9c94['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x1a6770||'customNumbered'==_0x1a6770)continue;_0x49e36f['_findSuggestions'](_0x3b9c94['getFirstRange'](),'attribute')['find'](_0x59d5bc=>'listType'==_0x49e36f['_getAttributeKey'](_0x59d5bc['suggestion']))||(_0xf591cd['removeMarker'](_0x3b9c94['getFirstMarker']()),_0x3d6059=!0x0);}return _0x3d6059;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x396720){const _0xb91aef=this['editor']['locale'],{data:_0x15df53}=_0x396720,_0x27bf5a={'type':'format','content':''};if(!_0x15df53||'listStyle'!=_0x15df53['key'])return;if(!_0x15df53['oldValue'])return'default'==_0x15df53['newValue']?_0x27bf5a:{'type':'format','content':''+o(_0xb91aef,'*Set\x20format:*\x20%0',o(_0xb91aef,this['_getTranslationKeyForListStyle'](_0x15df53['newValue'])))};if(!_0x15df53['newValue']){if('default'==_0x15df53['oldValue'])return _0x27bf5a;let _0x5bedc9=_0x396720['head'];for(;_0x5bedc9;){if(_0x5bedc9['data']&&'listType'==_0x5bedc9['data']['key']&&_0x5bedc9['data']['newValue'])return _0x27bf5a;_0x5bedc9=_0x5bedc9['next'];}return{'type':'format','content':''+o(_0xb91aef,'*Remove\x20format:*\x20%0',o(_0xb91aef,this['_getTranslationKeyForListStyle'](_0x15df53['oldValue'])))};}if('default'!=_0x15df53['newValue'])return{'type':'format','content':''+o(_0xb91aef,'*Set\x20format:*\x20%0',o(_0xb91aef,this['_getTranslationKeyForListStyle'](_0x15df53['newValue'])))};let _0x5990c7=_0x396720['head'];for(;_0x5990c7;){if(_0x5990c7['data']&&'listType'==_0x5990c7['data']['key']&&_0x5990c7['data']['newValue']&&_0x5990c7['data']['oldValue'])return _0x27bf5a;_0x5990c7=_0x5990c7['next'];}return{'type':'format','content':o(_0xb91aef,'*Set\x20format:*\x20%0',o(_0xb91aef,'ELEMENT_'+_0x396720['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0xbf08=this['editor'],_0x853488=_0xbf08['locale'];_0xbf08['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e2aa0=>{if('formatBlock'!=_0x2e2aa0['type'])return;const {data:_0x3dc2bd}=_0x2e2aa0;if(!_0x3dc2bd)return;let _0x265faf,_0x467675;switch(_0x3dc2bd['commandName']){case'listStyle':_0x265faf='*Change\x20to:*\x20%0',_0x467675={'type':'format','content':o(_0x853488,_0x265faf,o(_0x853488,this['_getTranslationKeyForListStyle'](_0x3dc2bd['commandParams'][0x0]['type'])))};break;case'listReversed':_0x265faf=_0x3dc2bd['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x467675={'type':'format','content':o(_0x853488,_0x265faf)};break;case'listStart':_0x265faf='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x467675={'type':'format','content':o(_0x853488,_0x265faf,_0x3dc2bd['commandParams'][0x0]['startIndex'])};}return _0x467675;});}['_getTranslationKeyForListStyle'](_0x3ffd63){return'ELEMENT_'+function(_0x5306a2){if(_e['includes'](_0x5306a2))return'bulleted';if(Re['includes'](_0x5306a2))return'numbered';return null;}(_0x3ffd63)['toUpperCase']()+'_LIST_'+_0x3ffd63['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x577abc{['afterInit'](){const _0x4d5208=this['editor'];_0x4d5208['commands']['get']('emoji')&&_0x4d5208['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x577abc{static get['requires'](){return[_0x42434e];}['init'](){const _0x1f6cff=this['editor'],_0x4f61da=_0x1f6cff['plugins']['get']('TrackChangesEditing'),_0x453f75=_0x1f6cff['commands']['get']('enter');_0x4f61da['enableCommand']('enter',()=>{_0x1f6cff['model']['change'](_0x5e5e1e=>{const _0x59544a=_0x1f6cff['model']['document']['selection'],_0x5a5978=_0x59544a['getFirstPosition'](),_0x52172f=_0x157a8e['fromRange'](_0x59544a['getFirstRange']());if(_0x453f75['enterBlock'](_0x5e5e1e)){const _0x3bf702=_0x1f6cff['model']['createPositionAt'](_0x5a5978['parent']['nextSibling'],0x0),_0x329e57=_0x5e5e1e['createRange'](_0x5a5978,_0x3bf702);_0x4f61da['markInsertion'](_0x329e57);}else _0x5e5e1e['setSelection'](_0x5e5e1e['createRange'](_0x52172f['end']));_0x52172f['detach'](),_0x453f75['fire']('afterExecute',{'writer':_0x5e5e1e});});}),_0x1f6cff['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x1f6cff,'split'),{'priority':'high'}),_0x1f6cff['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x1ad432,_0x1c6aeb,_0xd68022)=>{const _0x4a4bb8=_0xd68022['mapper']['markerNameToElements'](_0x1c6aeb['markerName']);if(_0x4a4bb8){for(const _0x29bd11 of _0x4a4bb8)_0x29bd11['hasClass']('ck-suggestion-marker-split')&&(_0xd68022['mapper']['unbindElementFromMarkerName'](_0x29bd11,_0x1c6aeb['markerName']),_0xd68022['writer']['remove'](_0x29bd11));}},{'priority':'high'}),_0x1f6cff['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x11458d,_0xcf68c4,_0x13cf42)=>{_0x13cf42['options']['showSuggestionHighlights']&&De(_0x1f6cff,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x11458d,_0xcf68c4,_0x13cf42);},{'priority':'high'});}}class Z extends _0x577abc{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x515f1f=this['editor']['plugins']['get']('TrackChangesEditing');_0x515f1f['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x515f1f['enableCommand']('findNext'),_0x515f1f['enableCommand']('findPrevious'),_0x515f1f['enableCommand']('replace'),_0x515f1f['enableCommand']('replaceAll');}['handleFindCommand'](_0x20d761,_0xe07969,_0x526cb4={}){const _0x5a239f=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x20d761(_0x137bcb=>{let _0x419ff9=('string'==typeof _0xe07969?_0x5a239f['findByTextCallback'](_0xe07969,_0x526cb4):_0xe07969)(_0x137bcb);Array['isArray'](_0x419ff9)&&(_0x419ff9={'results':_0x419ff9,'searchText':'string'==typeof _0xe07969?_0xe07969:''});const _0x1a9860=_0x419ff9['results']['filter'](_0x41699a=>!0x1===this['_isInDeletionRange'](_0x41699a,_0x137bcb['item']));return{..._0x419ff9,'results':_0x1a9860};},_0x526cb4);}['_isInDeletionRange'](_0x533e98,_0x2cad3d){const _0x38dd17=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2cad3d,_0x533e98['start']),this['editor']['model']['createPositionAt'](_0x2cad3d,_0x533e98['end']));for(const _0xc499e2 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x38dd17['getIntersection'](_0xc499e2['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 _0x577abc{['afterInit'](){const _0x39a114=this['editor']['locale'],_0x27bbb3=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x57832f,commandName:_0x543a28}of ro)this['editor']['plugins']['has'](_0x57832f)&&(_0x27bbb3['enableDefaultAttributesIntegration'](_0x543a28),_0x27bbb3['registerInlineAttribute'](_0x543a28));_0x27bbb3['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x39a114,'FORMAT_FONT_SIZE')),_0x27bbb3['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x39a114,'FORMAT_FONT_FAMILY')),_0x27bbb3['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x39a114,'FORMAT_FONT_COLOR')),_0x27bbb3['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x39a114,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x38aa98=this['editor'],_0x572bb1=_0x38aa98['locale'];_0x38aa98['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3da3ce=>{const _0x2b478d=_0x572bb1['t'];if('formatInline'!=_0x3da3ce['type'])return;const {data:_0x2f7413}=_0x3da3ce;if(null!=_0x2f7413){if('fontSize'==_0x2f7413['commandName']){const _0x4c7062=_0x2f7413['commandParams'][0x0]['value'];if(_0x4c7062){const _0x5b83e4=_0x2b478d(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x2e770b=>_0x2e770b['model']==_0x4c7062)['title'])['toLowerCase']();return{'type':'format','content':o(_0x572bb1,'*Set\x20font\x20size:*\x20%0',_0x5b83e4)};}return{'type':'format','content':o(_0x572bb1,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2f7413['commandName']){const _0x1b4ee8=_0x2f7413['commandParams'][0x0]['value'];return _0x1b4ee8?{'type':'format','content':o(_0x572bb1,'*Set\x20font\x20family:*\x20%0',_0x1b4ee8)}:{'type':'format','content':o(_0x572bb1,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2f7413['commandName']){const _0x32bc72=_0x2f7413['commandParams'][0x0]['value'];if(_0x32bc72){const _0x364765=_0x2cec03(this['editor']['config']['get']('fontColor.colors'))['find'](_0x27428c=>_0x27428c['model']==_0x32bc72);let _0x24b0c2=_0x32bc72,_0x176e7c='';return _0x364765&&(_0x24b0c2=_0x364765['label'],_0x176e7c=_0x2b478d(_0x24b0c2)['toLowerCase']()),{'type':'format','content':o(_0x572bb1,'*Set\x20font\x20color:*\x20%0',_0x176e7c)['trim'](),'color':{'value':_0x32bc72,'title':_0x176e7c||_0x24b0c2}};}return{'type':'format','content':o(_0x572bb1,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2f7413['commandName']){const _0x263df8=_0x2f7413['commandParams'][0x0]['value'];if(_0x263df8){const _0x2fb71c=_0x2cec03(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x410dae=>_0x410dae['model']==_0x263df8);let _0x49e1be=_0x263df8,_0x15e135='';return _0x2fb71c&&(_0x49e1be=_0x2fb71c['label'],_0x15e135=_0x2b478d(_0x49e1be)['toLowerCase']()),{'type':'format','content':o(_0x572bb1,'*Set\x20font\x20background\x20color:*\x20%0',_0x15e135)['trim'](),'color':{'value':_0x263df8,'title':_0x15e135||_0x49e1be}};}return{'type':'format','content':o(_0x572bb1,'*Reset\x20font\x20background\x20color*')};}}});}}class nt extends _0x577abc{['afterInit'](){const _0x1e5c91=this['editor'],_0x547265=_0x1e5c91['plugins']['get']('TrackChangesEditing'),_0x41fb21=_0x1e5c91['commands']['get']('copyFormat'),_0xc78bb3=_0x1e5c91['commands']['get']('pasteFormat');_0x41fb21&&_0xc78bb3&&(_0x547265['enableDefaultAttributesIntegration']('pasteFormat'),_0x547265['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3c22d8=this['editor'],_0x344b4d=_0x3c22d8['locale'];_0x3c22d8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x55e12e=>{if('formatBlock'!=_0x55e12e['type']&&'formatInline'!=_0x55e12e['type'])return;const {data:_0x30f284}=_0x55e12e;if(_0x30f284&&'pasteFormat'===_0x30f284['commandName']){const _0x556221=[],_0x2e0e23=_0x30f284['commandParams'][0x0];for(const [_0x5cbf21,_0x2db879]of Object['entries'](_0x2e0e23))_0x556221['push'](so(_0x3c22d8,_0x5cbf21,_0x2db879));return _0x556221['length']?{'type':'format','content':o(_0x344b4d,'*Set\x20format\x20to:*\x20%0',_0x556221['join'](',\x20'))}:{'type':'format','content':o(_0x344b4d,'*Remove\x20all\x20formatting*')};}});}}function so(_0x11783f,_0x6c273b,_0x44f183){const _0x136101=_0x11783f['locale']['t'],_0x291aa9=_0x6c273b['split'](/(?=[A-Z])/)['join']('\x20'),_0x41d50c=_0x136101(_0x291aa9['charAt'](0x0)['toUpperCase']()+_0x291aa9['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x44f183)return _0x41d50c;if('fontColor'===_0x6c273b||'fontBackgroundColor'===_0x6c273b){const _0x4b2873=_0x2cec03(_0x11783f['config']['get']('fontColor.colors'))['find'](_0x53bb34=>_0x53bb34['model']==_0x44f183);return _0x41d50c+'\x20('+(_0x4b2873?_0x136101(_0x4b2873['label'])['toLowerCase']():_0x44f183)+')';}if('fontSize'===_0x6c273b&&isNaN(parseFloat(_0x44f183))){const _0x9d4aa=_0x11783f['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x11783f['config']['get']('fontSize.options'))['find'](_0x5d4b81=>_0x5d4b81['model']==_0x44f183);return _0x41d50c+'\x20('+(_0x9d4aa?_0x136101(_0x9d4aa['title'])['toLowerCase']():_0x44f183)+')';}return _0x41d50c+'\x20('+_0x44f183+')';}class it extends _0x577abc{['_headingOptions'];['afterInit'](){const _0x425fdb=this['editor'];if(!_0x425fdb['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x425fdb['config']['get']('heading.options');const _0x6e78ef=_0x425fdb['locale'],_0x56d07e=_0x425fdb['plugins']['get']('TrackChangesEditing');_0x56d07e['enableDefaultAttributesIntegration']('heading');for(const _0x3d838f of this['_headingOptions'])'paragraph'!=_0x3d838f['model']&&_0x56d07e['descriptionFactory']['registerElementLabel'](_0x3d838f['model'],_0x9ea518=>{const _0x233057=this['_getHeadingLevel'](_0x3d838f['model']);return null!==_0x233057?_0x20df1b(_0x9ea518,_0x233057):_0x45c421(_0x9ea518,_0x3d838f['title']);});function _0x20df1b(_0x7f0533,_0x294ffc){return o(_0x6e78ef,'ELEMENT_HEADING',[_0x7f0533,_0x294ffc]);}function _0x45c421(_0x3db4c3,_0x5012af){return o(_0x6e78ef,'ELEMENT_HEADING_CUSTOM',[_0x3db4c3,_0x5012af]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x508ebb=this['editor'],_0x26bad9=_0x508ebb['locale'];function _0x4b6656(_0x45954d,_0x5dade7){return o(_0x26bad9,'ELEMENT_HEADING_CUSTOM',[_0x45954d,_0x5dade7]);}_0x508ebb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ca2c1=>{if('formatBlock'!=_0x2ca2c1['type'])return;const {data:_0x3a5ac6}=_0x2ca2c1;if(_0x3a5ac6&&'heading'==_0x3a5ac6['commandName']){const _0x185ea3=_0x3a5ac6['commandParams'][0x0]['value'],_0x49ebef=this['_getHeadingLevel'](_0x185ea3);if(null!==_0x49ebef)return{'type':'format','content':o(_0x26bad9,'*Change\x20to:*\x20%0',(_0x397b78=0x1,_0x36a24d=_0x49ebef,o(_0x26bad9,'ELEMENT_HEADING',[_0x397b78,_0x36a24d])))};const _0x3e2a9d=this['_headingOptions']['find'](_0x4087a9=>_0x4087a9['model']===_0x185ea3)['title'];return{'type':'format','content':o(_0x26bad9,'*Change\x20to:*\x20%0',_0x4b6656(0x1,_0x3e2a9d))};}var _0x397b78,_0x36a24d;});}['_getHeadingLevel'](_0x22b0e2){const _0x157cf6=_0x22b0e2['match'](/^heading(\d+)/);if(_0x157cf6)return _0x157cf6[0x1];const _0x56f6d8=this['_headingOptions']?.['find'](_0x32c131=>_0x32c131['model']==_0x22b0e2);if(_0x56f6d8&&_0x56f6d8['view']){const _0x417169=_0x56f6d8['view'],_0x7add14=(_0x417169['name']??_0x417169)['match'](/^h(\d+)/);if(_0x7add14)return _0x7add14[0x1];}return null;}}class et extends _0x577abc{['afterInit'](){const _0x469b14=this['editor'];if(!_0x469b14['plugins']['has']('HighlightEditing'))return;const _0x2cbf9d=_0x469b14['plugins']['get']('TrackChangesEditing'),_0x59af17=_0x469b14['locale'];_0x2cbf9d['enableDefaultAttributesIntegration']('highlight'),_0x2cbf9d['registerInlineAttribute']('highlight'),_0x2cbf9d['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x59af17,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x6c9f6b=this['editor'],_0x517897=_0x6c9f6b['locale'];_0x6c9f6b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x524953=>{if('formatInline'!=_0x524953['type'])return;const {data:_0x16167a}=_0x524953;if(_0x16167a&&'highlight'==_0x16167a['commandName']){const _0x21abb1=_0x517897['t'],_0x160a19=_0x16167a['commandParams'][0x0]['value'];if(_0x160a19){const _0x210074=_0x6c9f6b['config']['get']('highlight.options')['find'](_0x1cc400=>_0x1cc400['model']==_0x160a19),_0x5e0120=_0x21abb1(_0x210074['title'])['toLowerCase']();return{'type':'format','content':o(_0x517897,'*Set\x20highlight:*\x20%0',_0x5e0120),'color':{'value':_0x210074['color'],'title':_0x210074['title']}};}return{'type':'format','content':o(_0x517897,'*Remove\x20highlight*',o(_0x517897,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x577abc{['afterInit'](){const _0x401746=this['editor'];if(!_0x401746['plugins']['has']('HorizontalLineEditing'))return;_0x401746['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4d1d0d=_0x401746['plugins']['get']('TrackChangesEditing'),_0x40e598=_0x401746['locale'];_0x4d1d0d['descriptionFactory']['registerElementLabel']('horizontalLine',_0x5d2ad1=>o(_0x40e598,'ELEMENT_HORIZONTAL_LINE',_0x5d2ad1)),_0x401746['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x17d1a4,{writer:_0xafdc45,options:_0x2ed3a2})=>{if(!_0x2ed3a2['showSuggestionHighlights'])return null;const _0x455ecc=_0xafdc45['createContainerElement']('div'),_0x3ab122=_0xafdc45['createEmptyElement']('hr');return _0xafdc45['addClass']('ck-horizontal-line',_0x455ecc),_0xafdc45['insert'](_0xafdc45['createPositionAt'](_0x455ecc,0x0),_0x3ab122),_0x455ecc;},'converterPriority':'high'});}}class ot extends _0x577abc{['afterInit'](){const _0x15b120=this['editor'];if(!_0x15b120['plugins']['has']('HtmlEmbed'))return;const _0x26e222=_0x15b120['plugins']['get']('TrackChangesEditing'),_0x586827=_0x15b120['locale'];_0x26e222['descriptionFactory']['registerElementLabel']('rawHtml',_0x25ccbe=>o(_0x586827,'ELEMENT_HTML_EMBED',_0x25ccbe)),_0x26e222['enableDefaultAttributesIntegration']('htmlEmbed'),_0x26e222['registerBlockAttribute']('value'),_0x26e222['descriptionFactory']['registerDescriptionCallback'](_0x4a2571=>{if('attribute'!=_0x4a2571['type'])return;const {data:_0x2954f3}=_0x4a2571;if(_0x2954f3&&'value'==_0x2954f3['key']&&_0x4a2571['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x517536=o(_0x586827,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x586827,'*Change\x20%0\x20content*',_0x517536)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x433d8f=this['editor'],_0x1d9844=_0x433d8f['locale'];_0x433d8f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f13a6=>{if('formatBlock'!=_0x2f13a6['type'])return;const {data:_0x591ed6}=_0x2f13a6;if(_0x591ed6&&'htmlEmbed'==_0x591ed6['commandName']){const _0x5aac65=o(_0x1d9844,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1d9844,'*Change\x20%0\x20content*',_0x5aac65)};}});}}class rt extends _0x577abc{['afterInit'](){const _0x3b1e8e=this['editor'];if(!_0x3b1e8e['plugins']['has']('ImageEditing'))return;const _0x48d475=_0x3b1e8e['plugins']['get']('TrackChangesEditing'),_0x17b1a5=_0x3b1e8e['plugins']['get']('ImageUtils'),_0x218c6f=_0x3b1e8e['locale'];_0x48d475['enableCommand']('insertImage'),_0x48d475['descriptionFactory']['registerElementLabel']('imageBlock',_0x1df5e2=>o(_0x218c6f,'ELEMENT_IMAGE',_0x1df5e2)),_0x48d475['descriptionFactory']['registerElementLabel']('imageInline',_0x2ffb3f=>o(_0x218c6f,'ELEMENT_INLINE_IMAGE',_0x2ffb3f)),_0x48d475['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x218c6f,'ELEMENT_CAPTION')),_0x3b1e8e['plugins']['has']('ImageUploadEditing')&&_0x48d475['enableCommand']('uploadImage'),_0x3b1e8e['plugins']['has']('ImageBlockEditing')&&_0x3b1e8e['plugins']['has']('ImageInlineEditing')&&(_0x48d475['enableCommand']('imageTypeInline',(_0x563e19,_0x40d163)=>{const _0x3591c6=_0x17b1a5['getClosestSelectedImageElement'](_0x3b1e8e['model']['document']['selection']);_0x3b1e8e['model']['change'](()=>{_0x48d475['markBlockFormat'](_0x3591c6,{'commandName':'imageTypeInline','commandParams':[_0x40d163]},[],'convertBlockImageToInline');});}),_0x48d475['enableCommand']('imageTypeBlock',(_0x4a278b,_0x7f73c5)=>{_0x3b1e8e['model']['change'](_0x4d8f01=>{let _0x5ed967=_0x17b1a5['getClosestSelectedImageElement'](_0x3b1e8e['model']['document']['selection']),_0x556927=_0x4d8f01['createRangeOn'](_0x5ed967);const _0x2bdeed=_0x5a4948['fromPosition'](_0x556927['start'],'toPrevious'),_0x102133=_0x5a4948['fromPosition'](_0x556927['end'],'toNext');_0x48d475['forceDefaultExecution'](()=>_0x4a278b(_0x7f73c5)),_0x5ed967=_0x17b1a5['getClosestSelectedImageElement'](_0x3b1e8e['model']['document']['selection']),_0x556927=_0x4d8f01['createRangeOn'](_0x5ed967);const _0x309c7b=_0x4d8f01['createRange'](_0x2bdeed,_0x102133);_0x2bdeed['detach'](),_0x102133['detach'](),_0x48d475['markBlockFormat'](_0x5ed967,{'commandName':'imageTypeInline','commandParams':[_0x7f73c5]},[],'convertInlineImageToBlock'),_0x309c7b['start']['isBefore'](_0x556927['start'])&&_0x48d475['markInsertion'](_0x4d8f01['createRange'](_0x309c7b['start'],_0x556927['start']),'convertInlineImageToBlock'),_0x556927['end']['isBefore'](_0x309c7b['end'])&&_0x48d475['markInsertion'](_0x4d8f01['createRange'](_0x556927['end'],_0x309c7b['end']),'convertInlineImageToBlock');});}),_0x48d475['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x48d475['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x48d475['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x48d475['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x48d475['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x48d475['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x2e9187])=>{const _0x120099=_0x48d475['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x49635a=_0x2e9187['start'],_0x31298f=_0x2e9187['end'];const _0x2f5fb0=_0x3b1e8e['model']['schema']['getNearestSelectionRange'](_0x49635a,'backward'),_0xb403b3=_0x3b1e8e['model']['schema']['getNearestSelectionRange'](_0x31298f,'forward');_0x2f5fb0['isCollapsed']&&(_0x49635a=_0x2f5fb0['start']),_0xb403b3['isCollapsed']&&(_0x31298f=_0xb403b3['end']),_0x120099([_0x3b1e8e['model']['createRange'](_0x49635a,_0x31298f)]);}),_0x48d475['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x37750a),_0x48d475['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x37750a)),_0x3b1e8e['plugins']['has']('ImageCaptionEditing')&&(_0x48d475['enableCommand']('toggleImageCaption',(_0x4690ce,_0x5a3d42)=>{const _0x4d2a19=_0x3b1e8e['plugins']['get']('ImageCaptionUtils');let _0x13167f=_0x17b1a5['getClosestSelectedImageElement'](_0x3b1e8e['model']['document']['selection']),_0x428260=_0x4d2a19['getCaptionFromImageModelElement'](_0x13167f);_0x3b1e8e['model']['change'](()=>{if(_0x428260)return void _0x48d475['markDeletion'](_0x3b1e8e['model']['createRangeOn'](_0x428260));const _0xdf9400=_0x17b1a5['isBlockImage'](_0x13167f);_0x4690ce(_0x5a3d42),_0x13167f=_0x17b1a5['getClosestSelectedImageElement'](_0x3b1e8e['model']['document']['selection']),_0x428260=_0x4d2a19['getCaptionFromImageModelElement'](_0x13167f),_0x48d475['markInsertion'](_0x3b1e8e['model']['createRangeOn'](_0x428260),_0xdf9400?null:'imageCaption');});}),_0x48d475['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x37750a));const _0xbca1f7=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x48a7f5(_0x51b9f6,_0x1e413c){const _0x4a2539=_0xbca1f7['findIndex'](({type:_0x56f85e,subType:_0x4de033})=>_0x51b9f6['type']==_0x56f85e&&_0x51b9f6['subType']==_0x4de033),_0x406e1a=_0xbca1f7['findIndex'](({type:_0x405cdc,subType:_0x36cdb2})=>_0x1e413c['type']==_0x405cdc&&_0x1e413c['subType']==_0x36cdb2);if(_0x4a2539<0x0||_0x406e1a<0x0)return!0x1;const _0x229fa5=_0x51b9f6['getFirstRange'](),_0x3d2bcd=_0x1e413c['getFirstRange']();if((0x0==_0x4a2539||0x1==_0x4a2539)&&0x2==_0x406e1a&&_0x229fa5['isIntersecting'](_0x3d2bcd))return!0x0;if(0x2==_0x4a2539&&0x3==_0x406e1a){const _0x5a38dd=_0x48d475['_findSuggestions'](_0x229fa5,'insertion')['filter'](({suggestion:_0x225e7a,meta:_0x5e12df})=>_0x5e12df['isOwn']&&'convertInlineImageToBlock'==_0x225e7a['subType']);if(_0x5a38dd['length']>0x1&&_0x3d2bcd['end']['isEqual'](_0x229fa5['start']))return!0x0;if(0x1==_0x5a38dd['length']&&(_0x229fa5['start']['isEqual'](_0x3d2bcd['end'])||_0x229fa5['end']['isEqual'](_0x3d2bcd['start'])))return!0x0;}if(0x3==_0x4a2539&&0x3==_0x406e1a&&_0x229fa5['start']['isBefore'](_0x3d2bcd['start'])){const _0x15c4ce=_0x229fa5['end']['nodeAfter'],_0x4de60f=_0x3d2bcd['start']['nodeBefore'];return _0x17b1a5['isBlockImage'](_0x15c4ce)&&_0x15c4ce===_0x4de60f;}return!0x1;}function _0x37750a(_0x4498e1,_0x101679){return _0x48a7f5(_0x4498e1,_0x101679)?[_0x4498e1,_0x101679]:_0x48a7f5(_0x101679,_0x4498e1)?[_0x101679,_0x4498e1]:null;}_0x3b1e8e['plugins']['has']('ImageResize')&&(_0x48d475['enableDefaultAttributesIntegration']('resizeImage'),_0x48d475['registerBlockAttribute']('resizedWidth'),_0x48d475['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x218c6f,'FORMAT_IMAGE_SIZE'))),_0x3b1e8e['plugins']['has']('ImageTextAlternativeEditing')&&(_0x48d475['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x48d475['registerBlockAttribute']('alt')),_0x3b1e8e['plugins']['has']('PictureEditing')&&(_0x48d475['registerBlockAttribute']('sources'),_0x48d475['descriptionFactory']['registerDescriptionCallback'](_0x5b08ba=>{if('attribute'!=_0x5b08ba['type'])return;const {data:_0x56f1a5}=_0x5b08ba;return _0x56f1a5&&'sources'==_0x56f1a5['key']?{'type':'format','content':''}:void 0x0;})),_0x3b1e8e['plugins']['has']('ImageSizeAttributes')&&(_0x48d475['registerBlockAttribute']('width'),_0x48d475['registerBlockAttribute']('height'),_0x48d475['descriptionFactory']['registerDescriptionCallback'](_0x18497b=>{if('attribute'!=_0x18497b['type'])return;const {data:_0x2a4389}=_0x18497b;return!_0x2a4389||'width'!=_0x2a4389['key']&&'height'!=_0x2a4389['key']?void 0x0:{'type':'format','content':''};})),_0x48d475['descriptionFactory']['registerDescriptionCallback'](_0x21b4e5=>{if(!!_0xbca1f7['find'](({type:_0x413241,subType:_0x4d7535})=>_0x21b4e5['type']==_0x413241&&_0x21b4e5['subType']==_0x4d7535))return _0x21b4e5['previous']?{}:void 0x0;}),_0x48d475['descriptionFactory']['registerDescriptionCallback'](_0x1ee404=>{if('insertion'==_0x1ee404['type']||'deletion'==_0x1ee404['type']){const _0x59b077=_0x1ee404['getContainedElement']();if(_0x59b077&&_0x59b077['is']('element','caption'))return{'type':'insertion'==_0x1ee404['type']?'addObject':'removeObject','element':_0x59b077,'quantity':0x1};}}),_0x48d475['descriptionFactory']['registerDescriptionCallback'](_0x3af96e=>'formatBlock'==_0x3af96e['type']&&'convertInlineImageToBlock'==_0x3af96e['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x3af96e['type']&&'convertBlockImageToInline'==_0x3af96e['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x48d475['descriptionFactory']['registerDescriptionCallback'](_0x1b37d3=>{if('attribute'!=_0x1b37d3['type'])return;const {data:_0x284b0c}=_0x1b37d3;if(!_0x284b0c||'alt'!=_0x284b0c['key'])return;const _0x376165=_0x284b0c['newValue'];return _0x376165?{'type':'format','content':o(_0x218c6f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x376165+'\x22')}:{'type':'format','content':o(_0x218c6f,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x325eef=this['editor'],_0x1a1ea0=_0x325eef['locale'];_0x325eef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x44e68f=>{if('formatBlock'!=_0x44e68f['type']&&'formatInline'!=_0x44e68f['type'])return;const {data:_0x409787}=_0x44e68f;if(_0x409787){if('imageTextAlternative'==_0x409787['commandName']){const _0xa7bc3e=_0x409787['commandParams'][0x0]['newValue'];return _0xa7bc3e?{'type':'format','content':o(_0x1a1ea0,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xa7bc3e+'\x22')}:{'type':'format','content':o(_0x1a1ea0,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x409787['commandName']){const _0x47c5f7=_0x409787['commandParams'][0x0]['width'];return _0x47c5f7?{'type':'format','content':o(_0x1a1ea0,'*Set\x20image\x20width:*\x20%0',_0x47c5f7)}:{'type':'format','content':o(_0x1a1ea0,'*Reset\x20image\x20width*')};}}});}}class at extends _0x577abc{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x3a368d=this['editor']['locale'],_0x2bed3b=this['editor']['plugins']['get']('TrackChangesEditing');_0x2bed3b['enableDefaultAttributesIntegration']('replaceImageSource'),_0x2bed3b['registerBlockAttribute']('src'),_0x2bed3b['descriptionFactory']['registerDescriptionCallback'](_0x4d31d3=>{if('attribute'!=_0x4d31d3['type'])return;const {data:_0x5d25c3}=_0x4d31d3;return _0x5d25c3&&'src'==_0x5d25c3['key']?_0x5d25c3['newValue']&&_0x5d25c3['oldValue']?{'type':'format','content':o(_0x3a368d,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2a8025=this['editor']['plugins']['get']('TrackChangesEditing');_0x2a8025['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x2a8025['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2a8025['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x2a8025['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x41f61a=this['editor'],_0x161819=_0x41f61a['locale'];_0x41f61a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1fa11d=>{if('formatBlock'!=_0x1fa11d['type']&&'formatInline'!=_0x1fa11d['type'])return;const {data:_0x4d07b0}=_0x1fa11d;if(!_0x4d07b0||'replaceImageSource'!=_0x4d07b0['commandName'])return;return{'type':'format','content':o(_0x161819,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x577abc{['afterInit'](){const _0x26f660=this['editor'];if(!_0x26f660['plugins']['has']('ImageStyleEditing'))return;const _0x57265e=_0x26f660['plugins']['get']('TrackChangesEditing'),_0x72ce88=_0x26f660['plugins']['get']('ImageUtils'),_0x4f12c5={};_0x57265e['enableCommand']('imageStyle',(_0x3526ce,_0x5d26c7)=>{const _0x1fcc35=_0x26f660['plugins']['get']('Users')['me'],_0x5afc01=_0x26f660['commands']['get']('imageStyle');let _0x5475a8=_0x72ce88['getClosestSelectedImageElement'](_0x26f660['model']['document']['selection']),_0x4d92ef=_0x26f660['model']['createRangeOn'](_0x5475a8),_0x5a41b6=_0x5afc01['value'];if(_0x5a41b6==_0x5d26c7['value'])return;const _0x33765e={'commandName':'imageStyle','commandParams':[_0x5d26c7],'formatGroupId':_0x2730a7()};_0x26f660['model']['change'](()=>{if(_0x57265e['getSuggestions']()['filter'](_0x2b986a=>_0x2b986a['isInContent']&&_0x1fcc35==_0x2b986a['author']&&('formatBlock'==_0x2b986a['type']||'formatInline'==_0x2b986a['type'])&&('imageStylePreApply'==_0x2b986a['subType']||'imageStylePostApply'==_0x2b986a['subType'])&&_0x2b986a['getFirstRange']()['isEqual'](_0x4d92ef))['forEach'](_0x3036e3=>_0x57265e['discardSuggestion'](_0x3036e3['head'])),_0x5475a8=_0x72ce88['getClosestSelectedImageElement'](_0x26f660['model']['document']['selection']),_0x4d92ef=_0x26f660['model']['createRangeOn'](_0x5475a8),_0x5afc01['refresh'](),_0x26f660['commands']['get']('imageTypeInline')['refresh'](),_0x26f660['commands']['get']('imageTypeBlock')['refresh'](),_0x5a41b6=_0x5afc01['value'],_0x5a41b6!=_0x5d26c7['value'])return _0x72ce88['isInlineImage'](_0x5475a8)&&_0x5afc01['shouldConvertImageType'](_0x5d26c7['value'],_0x5475a8)?(_0x3526ce({..._0x5d26c7,'setImageSizes':!0x1}),_0x5475a8=_0x72ce88['getClosestSelectedImageElement'](_0x26f660['model']['document']['selection']),void _0x57265e['markBlockFormat'](_0x5475a8,{..._0x33765e,'commandReversedParams':[{'value':_0x5a41b6||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x72ce88['isBlockImage'](_0x5475a8)?_0x57265e['markBlockFormat'](_0x5475a8,_0x33765e,[],'imageStylePostApply'):_0x57265e['markInlineFormat'](_0x4d92ef,_0x33765e,'imageStylePostApply'));});});for(const _0x2cb87e of _0x26f660['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4f12c5[_0x2cb87e['name']]=_0x2cb87e['title']['toLowerCase']();_0x57265e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x57265e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x57265e['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x57265e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4821ab])=>{_0x72ce88['setImageNaturalSizeAttributes'](_0x4821ab['getContainedElement']());}),_0x57265e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x5a2944,_0xc8f563)=>{_0x57265e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5a2944,{'commandName':_0xc8f563['commandName'],'commandParams':_0xc8f563['commandReversedParams']});}),_0x57265e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x120a6c,_0x4b21e0){if(_0x2097af(_0x120a6c,_0x4b21e0))return[_0x120a6c,_0x4b21e0];if(_0x2097af(_0x4b21e0,_0x120a6c))return[_0x4b21e0,_0x120a6c];return null;});const _0x2f1563=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2097af(_0x2fe2b5,_0x5877ce){const _0x8dbf49=_0x2f1563['findIndex'](({type:_0x183c98,subType:_0x1b81ff})=>_0x2fe2b5['type']==_0x183c98&&_0x2fe2b5['subType']==_0x1b81ff),_0x421e16=_0x2f1563['findIndex'](({type:_0xffa4d1,subType:_0x3cc7cb})=>_0x5877ce['type']==_0xffa4d1&&_0x5877ce['subType']==_0x3cc7cb);if(_0x8dbf49<0x0||_0x421e16<0x0)return!0x1;const _0x400d23=_0x2fe2b5['getFirstRange'](),_0x5d42d4=_0x5877ce['getFirstRange']();if((0x0==_0x8dbf49||0x1==_0x8dbf49)&&0x2==_0x421e16&&_0x400d23['isIntersecting'](_0x5d42d4))return!0x0;if(0x2==_0x8dbf49&&0x3==_0x421e16){const _0x4f77b2=_0x57265e['_findSuggestions'](_0x400d23,'insertion')['filter'](({suggestion:_0x50219b,meta:_0x35057b})=>_0x35057b['isOwn']&&'convertInlineImageToBlock'==_0x50219b['subType']);if(_0x4f77b2['length']>0x1&&_0x5d42d4['end']['isEqual'](_0x400d23['start']))return!0x0;if(0x1==_0x4f77b2['length']&&(_0x400d23['start']['isEqual'](_0x5d42d4['end'])||_0x400d23['end']['isEqual'](_0x5d42d4['start'])))return!0x0;}if(0x3==_0x8dbf49&&0x3==_0x421e16&&_0x400d23['start']['isBefore'](_0x5d42d4['start'])){const _0x2594cd=_0x400d23['end']['nodeAfter'],_0x5aa441=_0x5d42d4['start']['nodeBefore'];return _0x72ce88['isBlockImage'](_0x2594cd)&&_0x2594cd===_0x5aa441;}return!0x1;}_0x26f660['model']['document']['registerPostFixer'](()=>{let _0x3660c4=!0x1;const _0x217363=Array['from'](_0x26f660['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x145b19,data:_0x2b33ca}of _0x217363){const {group:_0x49bc48,type:_0x210de7,subType:_0x50bea9,id:_0x2c39bd}=_0x57265e['_splitMarkerName'](_0x145b19);if('suggestion'==_0x49bc48&&_0x57265e['hasSuggestion'](_0x2c39bd)){if('formatBlock'==_0x210de7&&('imageStylePreApply'==_0x50bea9||'imageStylePostApply'==_0x50bea9)){const _0x3db41d=_0x57265e['getSuggestion'](_0x2c39bd);if(_0x2b33ca['newRange']){const _0x531f25=_0x3db41d['getFirstRange']()['getContainedElement']();if(_0x72ce88['isBlockImage'](_0x531f25))continue;_0x57265e['discardSuggestion'](_0x3db41d),_0x3660c4=!0x0;}}if('insertion'==_0x210de7&&'imageCaption'==_0x50bea9&&!_0x2b33ca['newRange']){const _0x2c53d9=_0x57265e['getSuggestion'](_0x2c39bd);_0x2c53d9['next']&&_0x2c53d9['next']['isInContent']&&(_0x57265e['discardSuggestion'](_0x2c53d9['next']),_0x3660c4=!0x0);}}}return _0x3660c4;}),this['_registerLegacyDescription'](_0x4f12c5);}['_registerLegacyDescription'](_0x2ce0ea){const _0x15327a=this['editor'],_0x38ac66=_0x15327a['locale'];_0x15327a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x32a155=>{if('formatBlock'!=_0x32a155['type']&&'formatInline'!=_0x32a155['type'])return;const {data:_0xd11f31}=_0x32a155;if(!_0xd11f31||'imageStyle'!=_0xd11f31['commandName'])return;const _0x4dd5ff=_0xd11f31['commandParams'][0x0]['value'];return _0x2eb730('side'===_0x4dd5ff?o(_0x38ac66,'FORMAT_SIDE_IMAGE'):_0x2ce0ea[_0x4dd5ff]||_0x4dd5ff);function _0x2eb730(_0xcca9c5){return{'type':'format','content':o(_0x38ac66,'*Format:*\x20%0',_0xcca9c5)};}});}}class ut extends _0x577abc{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x1d0d00){super(_0x1d0d00),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x409f8f=this['editor'],_0x4cfa28=_0x409f8f['commands']['get']('importWord'),_0x389099=_0x409f8f['commands']['get']('trackChanges');_0x4cfa28&&(_0x4cfa28['on']('execute',(_0x43e89b,[,_0x213d4e])=>{this['_trackChangesValueDuringImport']=_0x389099['value'],_0x213d4e['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4cfa28,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4cfa28,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x389099['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x409f8f['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x3ba2c8,_0x32eab8){const {suggestions:_0x3d31d6}=_0x32eab8,_0x52e883=this['editor']['commands']['get']('trackChanges'),_0x2d1df9=_0x52e883['value'];this['_trackChangesValueDuringImport']!==_0x2d1df9&&(_0x52e883['execute'](),this['_trackChangesExecuted']=!0x0),_0x3d31d6&&_0x3d31d6['forEach'](({id:_0x5911e0,type:_0x4703b4,author:_0x2a24a1,created_at:_0x3d7cfe})=>{const _0x31a377={'id':_0x5911e0,'type':_0x4703b4,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2a24a1,'createdAt':_0x3d7cfe?new Date(_0x3d7cfe):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x31a377);});}}class ft extends _0x577abc{['afterInit'](){const _0x313af7=this['editor'],_0x555b85=_0x313af7['plugins']['get']('TrackChangesEditing');if(_0x313af7['plugins']['has']('IndentEditing')&&(_0x555b85['enableCommand']('indent'),_0x555b85['enableCommand']('outdent')),_0x313af7['plugins']['has']('IndentBlock')){for(const _0x3600a5 of['indentBlock','outdentBlock'])_0x555b85['enableDefaultAttributesIntegration'](_0x3600a5);}const _0x331d9e=_0x313af7['locale'];_0x555b85['registerBlockAttribute']('blockIndent'),_0x555b85['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x331d9e,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x325c4e=this['editor'],_0x2ae6d1=_0x325c4e['locale'],_0x5aa2ce=_0x325c4e['plugins']['get']('TrackChangesEditing');_0x5aa2ce['descriptionFactory']['registerDescriptionCallback'](_0x11af60=>{if('formatBlock'!=_0x11af60['type'])return;const {data:_0x23114f}=_0x11af60;if(!_0x23114f)return;if('indentBlock'!=_0x23114f['commandName']&&'outdentBlock'!=_0x23114f['commandName'])return;const _0x49098a=_0x11af60['getItems']()[0x0],_0x40c4c2=_0x5aa2ce['descriptionFactory']['getItemLabel'](_0x49098a);return'indentBlock'==_0x23114f['commandName']?{'type':'format','content':o(_0x2ae6d1,'*Indent:*\x20%0',_0x40c4c2)}:'outdentBlock'==_0x23114f['commandName']?{'type':'format','content':o(_0x2ae6d1,'*Outdent:*\x20%0',_0x40c4c2)}:void 0x0;});}}class ht extends _0x577abc{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x577abc{['afterInit'](){const _0x595787=this['editor'];if(!_0x595787['plugins']['has']('LinkEditing'))return;const _0x423724=_0x595787['plugins']['get']('TrackChangesEditing'),_0x150af0=_0x595787['commands']['get']('link');_0x423724['enableDefaultAttributesIntegration']('link'),_0x423724['enableDefaultAttributesIntegration']('unlink'),_0x423724['registerInlineAttribute']('linkHref');for(const _0x1620d5 of _0x150af0['manualDecorators'])_0x423724['registerInlineAttribute'](_0x1620d5['id']),_0x423724['descriptionFactory']['registerAttributeLabel'](_0x1620d5['id'],'link\x20('+_0x1620d5['label']['toLowerCase']()+')');_0x423724['descriptionFactory']['registerDescriptionCallback'](_0x21396f=>{if('attribute'!=_0x21396f['type'])return;const {data:_0x6311e2}=_0x21396f;if(!_0x6311e2||'linkHref'!=_0x6311e2['key'])return;const _0x2b7e31=_0x6311e2['newValue'],_0x413e0d=_0x595787['locale'];return{'type':'format','content':null==_0x2b7e31?o(_0x413e0d,'*Remove\x20link*'):o(_0x413e0d,'*Set\x20link:*\x20%0','\x22'+_0x2b7e31+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f328a=this['editor'],_0x1c3523=_0x4f328a['locale'];_0x4f328a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c855b=>{if('formatInline'!=_0x5c855b['type'])return;const {data:_0x5abb4f}=_0x5c855b;if(_0x5abb4f){if('link'==_0x5abb4f['commandName']){const _0x135bf6=_0x5abb4f['commandParams'][0x0];return{'type':'format','content':o(_0x1c3523,'*Set\x20link:*\x20%0','\x22'+_0x135bf6+'\x22')};}return'unlink'==_0x5abb4f['commandName']?{'type':'format','content':o(_0x1c3523,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x577abc{['afterInit'](){const _0x5986dc=this['editor'],_0x439550=_0x5986dc['locale'];if(!_0x5986dc['plugins']['has']('LegacyListEditing'))return;const _0x28f8ae=_0x5986dc['plugins']['get']('TrackChangesEditing'),_0x56709d=_0x5986dc['plugins']['has']('LegacyTodoListEditing');function _0x188892(_0x1364b2){return()=>{const _0xb18b2d=_0x5986dc['model']['document']['selection'],_0x13bff9=_0x5986dc['commands']['get'](_0x1364b2);if(_0x13bff9['value'])return void _0x5986dc['execute']('paragraph',{});const _0x501ae9=_0x1364b2['slice'](0x0,-0x4),_0x270699=function(_0x541b92,_0x388f66,_0x37df1b){let _0x3ed427=Array['from'](_0x541b92)['filter'](_0x58f41f=>function(_0x7b6b53,_0x115faa){return _0x115faa['checkChild'](_0x7b6b53['parent'],'listItem')&&!_0x115faa['isObject'](_0x7b6b53);}(_0x58f41f,_0x37df1b));_0x3ed427=_0x3ed427['filter'](_0x49ec42=>!_0x49ec42['is']('element','listItem')||_0x49ec42['getAttribute']('listType')!=_0x388f66);const _0xd70ec4=new Set();for(const _0xb5c49e of _0x3ed427)_0xb5c49e['is']('element','listItem')?_0xd70ec4['add'](Le(_0xb5c49e)):_0xd70ec4['add'](_0xb5c49e);return Array['from'](_0xd70ec4);}(_0xb18b2d['getSelectedBlocks'](),_0x501ae9,_0x5986dc['model']['schema']);_0x5986dc['model']['change'](()=>{for(const _0x2cfa9b of _0x270699)_0x28f8ae['markBlockFormat'](_0x2cfa9b,{'commandName':_0x1364b2,'commandParams':[{'forceValue':!_0x13bff9['value']}],'formatGroupId':'blockName'},Ee(_0x2cfa9b));});};}function _0x558189(_0x2fad43){return()=>{const _0xa2c196=function(_0x39e92e){let _0x4623c7=Array['from'](_0x39e92e);const _0x118211=_0x4623c7['findIndex'](_0x3a3568=>'listItem'!=_0x3a3568['name']);return _0x118211>-0x1&&(_0x4623c7=_0x4623c7['slice'](0x0,_0x118211)),_0x4623c7;}(_0x5986dc['model']['document']['selection']['getSelectedBlocks']()),_0x432385=_0x5986dc['model']['createRange'](_0x5986dc['model']['createPositionAt'](_0xa2c196[0x0],'before'),_0x5986dc['model']['createPositionAt'](_0xa2c196[_0xa2c196['length']-0x1],'end'));_0x5986dc['model']['change'](()=>{_0x28f8ae['markBlockFormat'](_0x432385,{'commandName':_0x2fad43,'commandParams':[],'formatGroupId':'listIndent'},function(_0x37f707){const _0x260690=new Set();for(const _0x58be12 of _0x37f707){let _0x46bd5f=_0x58be12['nextSibling'];for(;_0x46bd5f&&_0x46bd5f['getAttribute']('listIndent')>_0x58be12['getAttribute']('listIndent');)_0x260690['add'](_0x46bd5f),_0x46bd5f=_0x46bd5f['nextSibling'];}return Array['from'](_0x260690);}(_0xa2c196));});};}_0x28f8ae['enableCommand']('numberedList',_0x188892('numberedList')),_0x28f8ae['enableCommand']('bulletedList',_0x188892('bulletedList')),_0x56709d&&_0x28f8ae['enableCommand']('todoList',_0x188892('todoList')),_0x28f8ae['enableCommand']('indentList',_0x558189('indentList')),_0x28f8ae['enableCommand']('outdentList',_0x558189('outdentList')),_0x56709d&&_0x28f8ae['enableCommand']('checkTodoList',()=>{const _0x1506f4=_0x5986dc['commands']['get']('checkTodoList'),_0x178223=Array['from'](_0x1506f4['_selectedElements']);_0x178223['filter'](_0x1efad6=>_0x1efad6['getAttribute']('todoListChecked')!=_0x1506f4['value']),_0x5986dc['model']['change'](()=>{for(const _0x3e045c of _0x178223)_0x28f8ae['markBlockFormat'](_0x3e045c,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x1506f4['value']}]});});}),_0x28f8ae['descriptionFactory']['registerElementLabel']('listItem',_0x20a98e=>o(_0x439550,'ELEMENT_LIST_ITEM',_0x20a98e)),_0x28f8ae['descriptionFactory']['registerDescriptionCallback'](_0x52a638=>{if('formatBlock'!=_0x52a638['type']&&'formatInline'!=_0x52a638['type'])return;const {data:_0x47a47c}=_0x52a638;if(_0x47a47c){if('numberedList'==_0x47a47c['commandName']||'bulletedList'==_0x47a47c['commandName']||'todoList'==_0x47a47c['commandName'])switch(_0x47a47c['commandName']['replace']('List','')){case'bulleted':return _0x1c0999(o(_0x439550,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1c0999(o(_0x439550,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1c0999(o(_0x439550,'ELEMENT_TODO_LIST'));}if('indentList'==_0x47a47c['commandName'])return{'type':'format','content':o(_0x439550,'*Indent:*\x20%0',o(_0x439550,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x47a47c['commandName'])return{'type':'format','content':o(_0x439550,'*Outdent:*\x20%0',o(_0x439550,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x47a47c['commandName'])return _0x47a47c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x439550,'*Check\x20item*')}:{'type':'format','content':o(_0x439550,'*Uncheck\x20item*')};}function _0x1c0999(_0x56b97a){return{'type':'format','content':o(_0x439550,'*Change\x20to:*\x20%0',_0x56b97a)};}});}}function Le(_0x4c2574){const _0x84b93f=_0x4c2574['getAttribute']('listIndent');if(0x0==_0x84b93f)return _0x4c2574;let _0x257d83=_0x4c2574;for(;_0x4c2574['previousSibling']&&_0x4c2574['previousSibling']['is']('element','listItem');){const _0x4edef1=_0x4c2574['previousSibling']['getAttribute']('listIndent');if(_0x4edef1==_0x84b93f)_0x257d83=_0x4c2574['previousSibling'];else{if(_0x4edef1<_0x84b93f)break;}_0x4c2574=_0x4c2574['previousSibling'];}return _0x257d83;}function Ee(_0x5b72ca){const _0x3ef95b=[];if(_0x5b72ca['is']('element','listItem')&&_0x5b72ca['getAttribute']('listIndent')>0x0){let _0x453d47=_0x5b72ca['nextSibling'];for(;_0x453d47&&'listItem'==_0x453d47['name']&&_0x453d47['getAttribute']('listIndent')==_0x5b72ca['getAttribute']('listIndent');)_0x3ef95b['push'](_0x453d47),_0x453d47=_0x453d47['nextSibling'];}return _0x3ef95b;}class Q extends _0x577abc{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x35b595=this['editor']['config']['get']('list.properties'),_0x5c135e=this['editor']['plugins']['get']('TrackChangesEditing');_0x35b595['styles']&&_0x5c135e['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x35b595['reversed']&&_0x5c135e['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x35b595['startIndex']&&_0x5c135e['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x5c135e['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x4cf8b0,_0x4b0723={}){const _0x4da5a6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4cad77=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x4da5a6['markMultiRangeBlockFormat'](_0x4cad77,{'commandName':'listStyle','commandParams':[{'type':_0x4b0723['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x56a0d8,_0xbf10da={}){const _0xd2b53e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x172493=this['_getSuggestionBlocks'](_0xc69cf8=>_0xc69cf8['is']('element','listItem')&&'numbered'===_0xc69cf8['getAttribute']('listType'));if(_0x172493['length']<0x1)return;const _0x2e6f48=_0x172493['map'](_0x10b3d4=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x10b3d4,'before'),this['editor']['model']['createPositionAt'](_0x10b3d4,0x0)));this['editor']['model']['change'](()=>{_0xd2b53e['markMultiRangeBlockFormat'](_0x2e6f48,{'commandName':'listReversed','commandParams':[{'reversed':_0xbf10da['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3b6441,_0x40fbdf={}){const _0x512565=this['editor']['plugins']['get']('TrackChangesEditing'),_0x59352a=this['_getSuggestionBlocks'](_0x59377e=>_0x59377e['is']('element','listItem')&&'numbered'===_0x59377e['getAttribute']('listType'));if(_0x59352a['length']<0x1)return;const _0x3ad07d=_0x59352a['map'](_0x12d10a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x12d10a,'before'),this['editor']['model']['createPositionAt'](_0x12d10a,0x0)));this['editor']['model']['change'](()=>{_0x512565['markMultiRangeBlockFormat'](_0x3ad07d,{'commandName':'listStart','commandParams':[{'startIndex':_0x40fbdf['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x2ef3b0){if('formatBlock'!=_0x2ef3b0['type']&&'formatInline'!=_0x2ef3b0['type'])return;const _0x1b88a1=this['editor']['locale'],{data:_0x1a6414}=_0x2ef3b0;if(!_0x1a6414)return;let _0x8f1f9d,_0x3ecf8b;switch(_0x1a6414['commandName']){case'listStyle':_0x8f1f9d='*Change\x20to:*\x20%0',_0x3ecf8b={'type':'format','content':o(_0x1b88a1,_0x8f1f9d,o(_0x1b88a1,this['_getTranslationKeyForListStyle'](_0x1a6414['commandParams'][0x0]['type'])))};break;case'listReversed':_0x8f1f9d=_0x1a6414['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3ecf8b={'type':'format','content':o(_0x1b88a1,_0x8f1f9d)};break;case'listStart':_0x8f1f9d='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3ecf8b={'type':'format','content':o(_0x1b88a1,_0x8f1f9d,_0x1a6414['commandParams'][0x0]['startIndex'])};}return _0x3ecf8b;}['_getSuggestionBlocksForListStyle'](){const _0xaa22db=this['editor']['plugins']['get']('LegacyListUtils');let _0x2077ff=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x2077ff[0x0]?.['is']('element','listItem')&&_0x2077ff['unshift'](..._0xaa22db['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x2077ff[_0x2077ff['length']-0x1]?.['is']('element','listItem')&&_0x2077ff['push'](..._0xaa22db['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2077ff=[...new Set(_0x2077ff)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x2077ff=_0x2077ff['filter'](_0x2a90d6=>_0x2a90d6['is']('element','listItem'))),_0x2077ff;}['_getSuggestionBlocks'](_0x425004){const _0xb5a516=this['editor']['plugins']['get']('LegacyListUtils');let _0x3e4819=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x425004)['map'](_0x401c3d=>{const _0x5e03b9=this['editor']['model']['createPositionAt'](_0x401c3d,0x0);return[..._0xb5a516['getSiblingNodes'](_0x5e03b9,'backward'),..._0xb5a516['getSiblingNodes'](_0x5e03b9,'forward')];})['flat']();return _0x3e4819=[...new Set(_0x3e4819)],_0x3e4819;}['_getTranslationKeyForListStyle'](_0x39b5be){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x39b5be)||'default')['toUpperCase']()+'_LIST_'+_0x39b5be['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x577abc{['afterInit'](){const _0x4ce20f=this['editor'];if(!_0x4ce20f['plugins']['has']('MediaEmbedEditing'))return;const _0x411fa6=_0x4ce20f['plugins']['get']('TrackChangesEditing'),_0x21a05f=_0x4ce20f['locale'];_0x411fa6['enableCommand']('mediaEmbed'),_0x411fa6['descriptionFactory']['registerElementLabel']('media',_0x3b984c=>o(_0x21a05f,'ELEMENT_MEDIA',_0x3b984c)),_0x4ce20f['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x3a804a,{writer:_0x4a16f4,options:_0x5e4d15})=>{if(_0x5e4d15['showSuggestionHighlights'])return _0x4a16f4['createEmptyElement']('div');},'converterPriority':'high'}),_0x4ce20f['data']['downcastDispatcher']['on']('attribute:url:media',(_0x50c09e,_0xe4074a,_0x3317d0)=>{_0x3317d0['options']['showSuggestionHighlights']&&_0x50c09e['stop']();},{'priority':'high'});}}class pt extends _0x577abc{['afterInit'](){const _0x2d9668=this['editor'];_0x2d9668['plugins']['has']('MentionEditing')&&_0x2d9668['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x577abc{['afterInit'](){const _0x5e6dc0=this['editor'];if(!_0x5e6dc0['plugins']['has']('MergeFieldsEditing'))return;const _0x5cc5dd=_0x5e6dc0['plugins']['get']('TrackChangesEditing'),_0x54ed42=_0x5e6dc0['locale'];_0x5cc5dd['enableCommand']('insertMergeField'),_0x5cc5dd['enableCommand']('insertMergeFieldBlock'),_0x5cc5dd['enableCommand']('insertMergeFieldImage'),_0x5cc5dd['descriptionFactory']['registerElementLabel']('mergeField',_0x7720d9=>o(_0x54ed42,'ELEMENT_MERGE_FIELD',_0x7720d9)),_0x5cc5dd['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x431f27=>o(_0x54ed42,'ELEMENT_MERGE_FIELD',_0x431f27)),_0x5cc5dd['descriptionFactory']['registerDescriptionCallback'](_0x2a94f0=>{if('insertion'!=_0x2a94f0['type']&&'deletion'!=_0x2a94f0['type'])return;const _0x25d196=_0x2a94f0['getContainedElement']();if(null==_0x25d196)return;const _0x47f300=_0x5e6dc0['plugins']['get']('MergeFieldsEditing');let _0x2c78ab;switch(_0x47f300['getMergeFieldType'](_0x25d196)){case null:return;case'image':{const _0x5a29d3=_0x47f300['unwrapAffixes'](_0x25d196['getAttribute']('src'));_0x2c78ab=_0x47f300['getLabel'](_0x5a29d3)||_0x5a29d3;break;}default:{const _0x564d2c=_0x25d196['getAttribute']('id');_0x2c78ab=_0x47f300['getLabel'](_0x564d2c)||_0x564d2c;break;}}return'insertion'==_0x2a94f0['type']?{'type':'insertion','content':o(_0x54ed42,'*Insert:*\x20%0','\x22'+_0x2c78ab+'\x22\x20'+o(_0x54ed42,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x54ed42,'*Remove:*\x20%0','\x22'+_0x2c78ab+'\x22\x20'+o(_0x54ed42,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x577abc{['afterInit'](){const _0x24352b=this['editor'],_0x15a0cb=_0x24352b['plugins']['get']('TrackChangesEditing');_0x24352b['plugins']['has']('MultiLevelList')&&(_0x15a0cb['enableDefaultAttributesIntegration']('multiLevelList'),_0x15a0cb['registerBlockAttribute']('listMarkerStyle'),_0x15a0cb['descriptionFactory']['registerDescriptionCallback'](_0x31dd70=>this['handleDescriptions'](_0x31dd70)));}['handleDescriptions'](_0x12df86){const _0x35bea3=this['editor']['locale'],{data:_0x413f74}=_0x12df86,_0x50d35c={'type':'format','content':''};if(_0x413f74&&'listMarkerStyle'==_0x413f74['key']){if(!_0x413f74['oldValue'])return{'type':'format','content':o(_0x35bea3,'*Set\x20format:*\x20%0',o(_0x35bea3,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x413f74['newValue']+')'};if(!_0x413f74['newValue']){let _0x4e3e1f=_0x12df86['head'];for(;_0x4e3e1f;){if(_0x4e3e1f['data']&&'listType'==_0x4e3e1f['data']['key']&&_0x4e3e1f['data']['newValue'])return _0x50d35c;_0x4e3e1f=_0x4e3e1f['next'];}return{'type':'format','content':o(_0x35bea3,'*Remove\x20format:*\x20%0',o(_0x35bea3,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x413f74['oldValue']+')'};}}}}class bt extends _0x577abc{['afterInit'](){const _0x28f47d=this['editor'];if(!_0x28f47d['plugins']['has']('PageBreakEditing'))return;_0x28f47d['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x38331a=_0x28f47d['plugins']['get']('TrackChangesEditing'),_0x11aa2a=_0x28f47d['locale'];_0x38331a['descriptionFactory']['registerElementLabel']('pageBreak',_0x4ae0d7=>o(_0x11aa2a,'ELEMENT_PAGE_BREAK',_0x4ae0d7));}}class yt extends _0x577abc{['afterInit'](){const _0x2ba5a3=this['editor'];if(!_0x2ba5a3['plugins']['has']('Paragraph'))return;const _0x46787f=_0x2ba5a3['locale'],_0x5069c9=_0x2ba5a3['plugins']['get']('TrackChangesEditing');_0x5069c9['descriptionFactory']['registerElementLabel']('paragraph',_0x453db7=>o(_0x46787f,'ELEMENT_PARAGRAPH',_0x453db7)),_0x5069c9['enableDefaultAttributesIntegration']('paragraph'),_0x5069c9['enableCommand']('insertParagraph'),_0x2ba5a3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x2ba5a3),{'priority':'highest'}),_0x2ba5a3['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x37cf0e,_0x27237f,_0x1a8030)=>{_0x1a8030['options']['showSuggestionHighlights']&&nr(_0x2ba5a3,{'showActiveMarker':!0x1})(_0x37cf0e,_0x27237f,_0x1a8030);},{'priority':'highest'});const _0x11c70b=_0x5069c9['descriptionFactory'];_0x11c70b['registerDescriptionCallback'](_0x580ad4=>{if('insertion'!==_0x580ad4['type'])return;const {start:_0x10ebd8,end:_0x4e5e51}=_0x580ad4['getFirstRange']();if(!_0x10ebd8['isTouching'](_0x4e5e51)||!_0x10ebd8['nodeAfter'])return;const _0x467393=_0x2ba5a3['model']['schema'],_0x5f559b=_0x10ebd8['nodeAfter'];return _0x467393['isBlock'](_0x5f559b)&&!_0x467393['isLimit'](_0x5f559b)&&_0x467393['checkChild'](_0x5f559b,'$text')?{'type':'insertion','content':o(_0x46787f,'*Insert:*\x20%0',_0x11c70b['getItemLabel'](_0x5f559b,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x369690=this['editor'],_0x14adda=_0x369690['locale'];_0x369690['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5d4ebf=>{if('formatBlock'!=_0x5d4ebf['type'])return;const {data:_0x5eda24}=_0x5d4ebf;return _0x5eda24&&'paragraph'==_0x5eda24['commandName']?{'type':'format','content':o(_0x14adda,'*Change\x20to:*\x20%0',o(_0x14adda,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x3bcdab,{showActiveMarker:_0x10bec2=!0x0}={}){return(_0x4b5ad7,_0x25ab35,_0x193a30)=>{const _0x4234f3=_0x3bcdab['plugins']['get']('TrackChangesEditing'),_0x564490=_0x25ab35['markerRange']['start'],_0x520318=_0x25ab35['markerRange']['end'],_0x10d8e8=_0x3bcdab['model']['schema'];if(!_0x564490['isTouching'](_0x520318)||!_0x564490['nodeAfter'])return;const _0x169081=_0x564490['nodeAfter'];if(_0x10d8e8['isBlock'](_0x169081)&&!_0x10d8e8['isLimit'](_0x169081)&&_0x10d8e8['checkChild'](_0x169081,'$text')){if(!_0x193a30['consumable']['consume'](_0x25ab35['markerRange'],_0x4b5ad7['name']))return;const {authorId:_0x38335d}=_0x4234f3['_splitMarkerName'](_0x25ab35['markerName']),_0x20a6f5=_0x193a30['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x38335d}),_0x477fde=_0x193a30['mapper']['toViewPosition'](_0x520318);_0x10bec2&&_0x4234f3['activeMarkers']['includes'](_0x25ab35['markerName'])&&_0x193a30['writer']['addClass']('ck-suggestion-marker--active',_0x20a6f5),_0x193a30['writer']['insert'](_0x477fde,_0x20a6f5),_0x193a30['mapper']['bindElementToMarker'](_0x20a6f5,_0x25ab35['markerName']);}};}class jt extends _0x577abc{['afterInit'](){const _0x1e1c10=this['editor'];_0x1e1c10['commands']['get']('replaceSource')&&_0x1e1c10['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x577abc{['afterInit'](){const _0x2dc860=this['editor'];if(!_0x2dc860['plugins']['has']('RemoveFormatEditing'))return;_0x2dc860['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5be764=this['editor'];_0x5be764['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4340eb=>{if('formatBlock'!=_0x4340eb['type']&&'formatInline'!=_0x4340eb['type'])return;const {data:_0xba826d}=_0x4340eb;return _0xba826d&&'removeFormat'==_0xba826d['commandName']?{'type':'format','content':o(_0x5be764['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x577abc{['afterInit'](){const _0x469fc9=this['editor'];if(!_0x469fc9['plugins']['has']('RestrictedEditingModeEditing'))return;const _0xdef331=_0x469fc9['plugins']['get']('TrackChangesEditing');_0xdef331['enableCommand']('goToPreviousRestrictedEditingException'),_0xdef331['enableCommand']('goToNextRestrictedEditingException');const _0x12950b=_0x469fc9['plugins']['get']('RestrictedEditingModeEditing');_0x12950b['enableCommand']('trackChanges'),_0x12950b['enableCommand']('acceptSuggestion'),_0x12950b['enableCommand']('discardSuggestion'),_0x12950b['enableCommand']('acceptAllSuggestions'),_0x12950b['enableCommand']('discardAllSuggestions'),_0x12950b['enableCommand']('acceptSelectedSuggestions'),_0x12950b['enableCommand']('discardSelectedSuggestions');}}class It extends _0x577abc{static get['requires'](){return[_0x5d02f6];}['init'](){const _0x52a534=this['editor'],_0xdb09a2=_0x52a534['plugins']['get']('TrackChangesEditing');_0xdb09a2['enableCommand']('shiftEnter'),_0x52a534['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x52a534),{'priority':'high'}),_0x52a534['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x52a534),{'priority':'high'}),_0x52a534['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x205168,_0x43165b,_0x1c1766)=>{_0x1c1766['options']['showSuggestionHighlights']&&je(_0x52a534,{'showActiveMarker':!0x1})(_0x205168,_0x43165b,_0x1c1766);}),_0xdb09a2['descriptionFactory']['registerElementLabel']('softBreak',_0x9af6b0=>o(_0x52a534['locale'],'ELEMENT_LINE_BREAK',_0x9af6b0));}}function je(_0x3cb876,{showActiveMarker:_0x2ea516=!0x0}={}){return(_0x2e0e63,_0x1d7a7f,_0x2675e8)=>{const _0x5942bc=_0x3cb876['plugins']['get']('TrackChangesEditing');if(!_0x2675e8['consumable']['test'](_0x1d7a7f['markerRange'],_0x2e0e63['name']))return;const _0x12c18e=_0x3cb876['model'];for(const _0x54b0c1 of _0x1d7a7f['markerRange']['getItems']()){if(!_0x54b0c1['is']('element','softBreak'))continue;const _0x109624='deletion'==_0x1d7a7f['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x11a92c}=_0x5942bc['_splitMarkerName'](_0x1d7a7f['markerName']),_0x3cbb38=_0x2675e8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x109624,'data-author-id':_0x11a92c}),_0x9de33b=_0x2675e8['mapper']['toViewPosition'](_0x12c18e['createPositionBefore'](_0x54b0c1));_0x2ea516&&_0x5942bc['activeMarkers']['includes'](_0x1d7a7f['markerName'])&&_0x2675e8['writer']['addClass']('ck-suggestion-marker--active',_0x3cbb38),_0x2675e8['writer']['insert'](_0x9de33b,_0x3cbb38),_0x2675e8['mapper']['bindElementToMarker'](_0x3cbb38,_0x1d7a7f['markerName']);}};}class vt extends _0x577abc{['afterInit'](){const _0x4dcdd2=this['editor'],_0x4e4dea=_0x4dcdd2['model'],_0xa4b805=_0x4dcdd2['locale'];if(!_0x4dcdd2['plugins']['has']('StandardEditingModeEditing'))return;const _0x2fd44b=_0x4dcdd2['plugins']['get']('TrackChangesEditing'),_0x1d099f='restrictedEditingException',_0x24101e=_0x4dcdd2['commands']['get'](_0x1d099f);_0x2fd44b['enableCommand'](_0x1d099f,(_0x31dc9c,_0x567b37={})=>{const _0x249979=_0x4e4dea['document']['selection'];if(_0x249979['isCollapsed'])return void _0x31dc9c(_0x567b37);const _0x3058b2=void 0x0!==_0x567b37['forceValue']?_0x567b37['forceValue']:!_0x24101e['value'];_0x4e4dea['change'](()=>{const _0x285fee=Array['from'](_0x249979['getRanges']());for(const _0xc3fec2 of _0x285fee){const _0x9d6513=_0x3058b2?[_0xc3fec2]:io(_0x1d099f,_0xc3fec2,_0x4e4dea);for(const _0x253b3b of _0x9d6513)_0x2fd44b['markInlineFormat'](_0x253b3b,{'commandName':_0x1d099f,'commandParams':[{'forceValue':_0x3058b2}]});}});}),_0x2fd44b['descriptionFactory']['registerDescriptionCallback'](_0x29eac6=>{if('formatBlock'!=_0x29eac6['type']&&'formatInline'!=_0x29eac6['type'])return;const {data:_0x200f5a}=_0x29eac6;return _0x200f5a&&_0x200f5a['commandName']==_0x1d099f?_0x200f5a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xa4b805,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0xa4b805,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class _t extends _0x577abc{['afterInit'](){const _0x57c2ec=this['editor'];if(!_0x57c2ec['plugins']['has']('Style')||!_0x57c2ec['plugins']['has']('DataSchema'))return;const _0x13f152=_0x57c2ec['plugins']['get']('TrackChangesEditing'),_0x1b3cae=_0x57c2ec['locale'],_0x3b6982=_0x57c2ec['config']['get']('style')||{},_0x2b723f=_0x57c2ec['plugins']['get']('GeneralHtmlSupport'),_0x407602=_0x57c2ec['plugins']['get']('StyleUtils')['normalizeConfig'](_0x57c2ec['plugins']['get']('DataSchema'),_0x3b6982['definitions']);_0x13f152['enableDefaultAttributesIntegration']('style');const _0x2aea65=new Set();for(const _0x148927 of _0x407602['block']){const _0x382fb5=_0x2b723f['getGhsAttributeNameForElement'](_0x148927['element']);_0x2aea65['add'](_0x382fb5);}const _0x439a73=new Set();for(const _0x515184 of _0x407602['inline']){const _0x4cd692=_0x2b723f['getGhsAttributeNameForElement'](_0x515184['element']);_0x439a73['add'](_0x4cd692);for(const _0x207024 of _0x515184['ghsAttributes'])_0x439a73['add'](_0x207024);}for(const _0x1be82b of _0x2aea65)_0x13f152['registerBlockAttribute'](_0x1be82b),_0x13f152['descriptionFactory']['registerAttributeLabel'](_0x1be82b,o(_0x1b3cae,'FORMAT_STYLE'));for(const _0x5b4ee6 of _0x439a73)_0x13f152['registerInlineAttribute'](_0x5b4ee6),_0x13f152['descriptionFactory']['registerAttributeLabel'](_0x5b4ee6,o(_0x1b3cae,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x74ee9f=this['editor'],_0x593105=_0x74ee9f['locale'];_0x74ee9f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2363f1=>{if('formatBlock'!=_0x2363f1['type']&&'formatInline'!=_0x2363f1['type'])return;const {data:_0x5cb7f}=_0x2363f1;return _0x5cb7f&&'style'===_0x5cb7f['commandName']?_0x5cb7f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x593105,'*Set\x20format:*\x20%0',_0x5cb7f['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x593105,'*Remove\x20format:*\x20%0',_0x5cb7f['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x577abc{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x336864){super(_0x336864),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x531273=this['editor'],_0x25cf24=_0x531273['model']['document']['selection'];if(!_0x531273['plugins']['has']('TableEditing'))return;const _0x3ddc7d=_0x531273['locale'],_0x1ddcd9=_0x531273['plugins']['get']('TrackChangesEditing'),_0x4250e9=_0x531273['plugins']['get']('TableUtils');_0x1ddcd9['descriptionFactory']['registerElementLabel']('table',_0x163d46=>o(_0x3ddc7d,'ELEMENT_TABLE',_0x163d46)),this['_setupColumnsRowsFixing'](),_0x1ddcd9['enableCommand']('insertTable'),_0x1ddcd9['enableCommand']('selectTableRow'),_0x1ddcd9['enableCommand']('selectTableColumn');for(const _0x199d8c of['insertTableRowAbove','insertTableRowBelow']){const _0x243635=_0x531273['commands']['get'](_0x199d8c);_0x1ddcd9['enableCommand'](_0x199d8c,_0x519911=>{_0x531273['model']['change'](_0x268935=>{_0x519911();const _0x4808df='above'===_0x243635['order'],_0x747857=_0x4250e9['getSelectionAffectedTableCells'](_0x25cf24),_0x15c66d=_0x4250e9['getRowIndexes'](_0x747857),_0x336eda=_0x4808df?_0x15c66d['first']-0x1:_0x15c66d['last']+0x1,_0xa41b41=_0x747857[0x0]['findAncestor']('table'),_0x19630f=_0x4250e9['createTableWalker'](_0xa41b41,{'startRow':_0x336eda,'endRow':_0x336eda}),_0xff3b4=Array['from'](_0x19630f)['map'](_0x54e277=>_0x268935['createRangeOn'](_0x54e277['cell']));_0x1ddcd9['markMultiRangeInsertion'](_0xff3b4,'tableRow');});});}for(const _0x1a61fe of['insertTableColumnLeft','insertTableColumnRight']){const _0x45bd33=_0x531273['commands']['get'](_0x1a61fe);_0x1ddcd9['enableCommand'](_0x1a61fe,_0xc33e44=>{_0x531273['model']['change'](_0x44e4fd=>{_0xc33e44();const _0x16478a='left'===_0x45bd33['order'],_0x1c2868=_0x4250e9['getSelectionAffectedTableCells'](_0x25cf24),_0x6f660a=_0x4250e9['getColumnIndexes'](_0x1c2868),_0x2df82a=_0x16478a?_0x6f660a['first']-0x1:_0x6f660a['last']+0x1,_0x50f750=_0x1c2868[0x0]['findAncestor']('table'),_0x17cbe8=_0x4250e9['createTableWalker'](_0x50f750,{'startRow':0x0,'column':_0x2df82a,'includeAllSlots':!0x1}),_0x15c7cf=Array['from'](_0x17cbe8)['map'](_0x196b41=>_0x44e4fd['createRangeOn'](_0x196b41['cell']));_0x1ddcd9['markMultiRangeInsertion'](_0x15c7cf,'tableColumn');});});}for(const _0x235ba0 of['removeTableRow','removeTableColumn']){const _0x5e57d5=_0x235ba0['substr'](0xb),_0x5bf300=_0x5e57d5['toLowerCase'](),_0x5644e1=_0x5bf300['substr'](0x0,0x3)+'span',_0x1e16f9='table'+_0x5e57d5,_0x224859='min'+_0x5e57d5,_0x4d53f6='max'+_0x5e57d5;_0x1ddcd9['enableCommand'](_0x235ba0,()=>{_0x531273['model']['change'](_0x391d4d=>{const _0x7eef0d=_0x4250e9['getSelectionAffectedTableCells'](_0x25cf24),_0xe16885=_0x7eef0d[0x0]['findAncestor']('table');let _0x3e6707;if('removeTableRow'==_0x235ba0){const _0x2a8dc3=_0x4250e9['getRowIndexes'](_0x7eef0d);_0x3e6707={'startRow':_0x2a8dc3['first'],'endRow':_0x2a8dc3['last'],'includeAllSlots':!0x0};}else{const _0x52d735=_0x4250e9['getColumnIndexes'](_0x7eef0d);_0x3e6707={'startColumn':_0x52d735['first'],'endColumn':_0x52d735['last'],'includeAllSlots':!0x0};}const _0x49cb29=_0x4250e9['createTableWalker'](_0xe16885,_0x3e6707),_0x62c607=Array['from'](_0x49cb29)['map'](({cell:_0x3ac8d1})=>_0x3ac8d1),_0x2b6c87=Ne(_0x62c607['filter'](_0x4afadd=>_0x4afadd['hasAttribute'](_0x5644e1))),_0x2c5d9c=Ne(_0x62c607['filter'](_0x2d0475=>!_0x2d0475['hasAttribute'](_0x5644e1)))['map'](_0x12df83=>_0x391d4d['createRangeOn'](_0x12df83)),_0x54bf63=_0x1ddcd9['markMultiRangeDeletion'](_0x2c5d9c,_0x1e16f9);if(_0x54bf63&&('tableRow'==_0x54bf63['subType']||'tableColumn'==_0x54bf63['subType'])){const _0x2f1a89=this['_getSuggestionCoords'](_0x54bf63);for(const _0x55cf14 of _0x2b6c87){const _0x5056d2=_0x391d4d['createRangeOn'](_0x55cf14),_0x32ee1c=_0x4250e9['getCellLocation'](_0x55cf14),_0x364e2d=_0x55cf14['getAttribute'](_0x5644e1)-0x1,_0x3a9a11=_0x2f1a89[_0x224859],_0x7b2f80=_0x2f1a89[_0x4d53f6];_0x3a9a11<=_0x32ee1c[_0x5bf300]&&_0x32ee1c[_0x5bf300]+_0x364e2d<=_0x7b2f80&&_0x54bf63['addRange'](_0x5056d2);}}});});}function _0x1c9203(_0x4a4a98){const _0x596ea5=Array['from'](_0x25cf24['getRanges']())['map'](_0x508154=>_0x157a8e['fromRange'](_0x508154));_0x531273['model']['change'](_0x23c6e4=>{const _0x52c283=_0x23c6e4['batch'];_0x4a4a98=_0x4a4a98['filter'](_0x2518e9=>'$graveyard'!=_0x2518e9['root']['rootName']),_0x23c6e4['setSelection'](_0x4a4a98),_0x531273['commands']['get']('removeTableRow')['refresh'](),_0x531273['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x531273['model']['enqueueChange'](()=>{_0x531273['model']['enqueueChange'](_0x52c283,_0x5b6b0d=>{const _0x81bf3d=_0x596ea5['filter'](_0x3fe834=>'$graveyard'!=_0x3fe834['root']['rootName']);_0x81bf3d['length']>0x0&&_0x5b6b0d['setSelection'](_0x81bf3d);for(const _0x4cb308 of _0x596ea5)_0x4cb308['detach']();});});});}function _0x274f81(_0x1c500c){_0x531273['model']['change'](_0x534d04=>{const _0x276f80=Array['from'](_0x25cf24['getRanges']())['map'](_0x314081=>_0x157a8e['fromRange'](_0x314081)),_0x13838e=[];for(const _0x2b87b9 of _0x1c500c)for(const _0x45788e of _0x2b87b9['getItems']({'shallow':!0x0}))_0x13838e['push'](_0x45788e);for(const _0x1785d7 of _0x13838e)'$graveyard'!=_0x1785d7['root']['rootName']&&(_0x534d04['setSelection'](_0x534d04['createPositionAt'](_0x1785d7,0x0)),_0x531273['commands']['get']('removeTableColumn')['refresh'](),_0x531273['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5bad39=_0x276f80['filter'](_0x1a521e=>'$graveyard'!=_0x1a521e['root']['rootName']);_0x5bad39['length']>0x0&&_0x534d04['setSelection'](_0x5bad39);for(const _0x388e75 of _0x276f80)_0x388e75['detach']();});}function _0x9726f5(_0x4e300d,_0x4d3593){return _0x4d3593['every'](_0x23d792=>_0x4e300d['some'](_0x3ff7d4=>_0x3ff7d4['end']['isEqual'](_0x23d792['start'])||_0x23d792['end']['isEqual'](_0x3ff7d4['start'])));}function _0x4e8d51(_0x46ff78,_0x3d43eb){return!_0x46ff78['some'](_0x1a1340=>_0x3d43eb['some'](_0x378863=>_0x1a1340['isIntersecting'](_0x378863)))&&_0x46ff78['some'](_0x32dd22=>_0x3d43eb['some'](_0x333ba8=>_0x32dd22['end']['isTouching'](_0x333ba8['start'])));}_0x531273['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x30da51,_0x580400,_0x27004c)=>{if(!_0x27004c['options']['showSuggestionHighlights'])return;const _0x35ce24=_0x580400['item'];if(!_0x35ce24)return;const _0x3b1ae1=_0x27004c['mapper']['toViewElement'](_0x35ce24);function _0x5a0dbb(_0x1fc0ce){return Array['isArray'](_0x1fc0ce)?_0x1fc0ce:[_0x1fc0ce];}_0x3b1ae1&&'tableCell'===_0x35ce24['name']&&_0x3e776a(_0x3b1ae1,_0x27004c['writer'],(_0x232c02,_0x3ac8c6,_0x3179c1)=>_0x3179c1['addClass'](_0x5a0dbb(_0x3ac8c6['classes']),_0x232c02),(_0x27980b,_0x27336b,_0x3d0bf8)=>_0x3d0bf8['removeClass'](_0x5a0dbb(_0x27336b['classes']),_0x27980b));},{'priority':'highest'}),_0x1ddcd9['descriptionFactory']['registerDescriptionCallback'](_0xb2c6fb=>{if('insertion'!=_0xb2c6fb['type']&&'deletion'!=_0xb2c6fb['type'])return;const _0x2c9113=_0xb2c6fb['getContainedElement']();if(null!=_0x2c9113&&_0x2c9113['is']('element','table')){if('insertion'==_0xb2c6fb['type']){const _0x229858=_0xb2c6fb['getItems']()['filter'](_0x17f0b3=>_0x17f0b3['is']('$textProxy'))['map'](_0x20f178=>_0x20f178['data']);if(_0x229858['length'])return{'type':'insertion','content':o(_0x3ddc7d,'*Insert:*\x20%0',o(_0x3ddc7d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x229858['join']('\x20')+'\x22'))};}if('deletion'==_0xb2c6fb['type']){const _0x17211e=_0xb2c6fb['getItems']()['filter'](_0x1f9739=>_0x1f9739['is']('$textProxy'))['map'](_0x1b5be3=>_0x1b5be3['data']);if(_0x17211e['length'])return{'type':'deletion','content':o(_0x3ddc7d,'*Remove:*\x20%0',o(_0x3ddc7d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x17211e['join']('\x20')+'\x22'))};}}}),_0x1ddcd9['descriptionFactory']['registerDescriptionCallback'](_0x4b0bf4=>{if('tableRow'==_0x4b0bf4['subType']){const _0xa68473=_0x4b0bf4['getItems']()['filter'](_0x299ee8=>_0x299ee8['is']('$textProxy'))['map'](_0x2a1ddb=>_0x2a1ddb['data']),_0x3f803e=this['_getSuggestionCoords'](_0x4b0bf4),_0x1fdc70=_0x3f803e['maxRow']-_0x3f803e['minRow']+0x1;if('insertion'==_0x4b0bf4['type'])return _0xa68473['length']?{'type':'insertion','content':o(_0x3ddc7d,'*Insert:*\x20%0',o(_0x3ddc7d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1fdc70,'\x22'+_0xa68473['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3ddc7d,'*Insert:*\x20%0',o(_0x3ddc7d,'ELEMENT_TABLE_ROW',_0x1fdc70))};if('deletion'==_0x4b0bf4['type'])return _0xa68473['length']?{'type':'deletion','content':o(_0x3ddc7d,'*Remove:*\x20%0',o(_0x3ddc7d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1fdc70,'\x22'+_0xa68473['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3ddc7d,'*Remove:*\x20%0',o(_0x3ddc7d,'ELEMENT_TABLE_ROW',_0x1fdc70))};}if('tableColumn'==_0x4b0bf4['subType']){const _0x16c002=_0x4b0bf4['getItems']()['filter'](_0x5b2715=>_0x5b2715['is']('$textProxy'))['map'](_0x47050f=>_0x47050f['data']),_0x53fc4f=this['_getSuggestionCoords'](_0x4b0bf4),_0x5e8f63=_0x53fc4f['maxColumn']-_0x53fc4f['minColumn']+0x1;if('insertion'==_0x4b0bf4['type'])return _0x16c002['length']?{'type':'insertion','content':o(_0x3ddc7d,'*Insert:*\x20%0',o(_0x3ddc7d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5e8f63,'\x22'+_0x16c002['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3ddc7d,'*Insert:*\x20%0',o(_0x3ddc7d,'ELEMENT_TABLE_COLUMN',_0x5e8f63))};if('deletion'==_0x4b0bf4['type'])return _0x16c002['length']?{'type':'deletion','content':o(_0x3ddc7d,'*Remove:*\x20%0',o(_0x3ddc7d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5e8f63,'\x22'+_0x16c002['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3ddc7d,'*Remove:*\x20%0',o(_0x3ddc7d,'ELEMENT_TABLE_COLUMN',_0x5e8f63))};}}),_0x1ddcd9['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1c9203),_0x1ddcd9['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1c9203),_0x1ddcd9['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x274f81),_0x1ddcd9['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x274f81),_0x1ddcd9['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x9726f5),_0x1ddcd9['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x9726f5),_0x1ddcd9['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4e8d51),_0x1ddcd9['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4e8d51);}['_acceptFormatSuggestionCallbackFactory'](){const _0x59b7b3=this['editor'],_0x3886fb=_0x59b7b3['model']['document']['selection'];return(_0x5e4482,_0x21383f)=>{_0x59b7b3['model']['change'](_0x3e6a87=>{const {commandName:_0x100994,commandParams:_0x472b54}=_0x21383f;let _0x24ac50=_0x5e4482[0x0]['end']['nodeBefore'];_0x472b54&&_0x472b54[0x0]&&!0x1===_0x472b54[0x0]['forceValue']&&(_0x24ac50=_0x5e4482[0x0]['start']['nodeAfter']);const _0x1ffef9=_0x3e6a87['createRangeIn'](_0x24ac50);if('$graveyard'==_0x1ffef9['root']['rootName'])return;const _0x40c250=Array['from'](_0x3886fb['getRanges']())['map'](_0x28e14d=>_0x157a8e['fromRange'](_0x28e14d));_0x3e6a87['setSelection'](_0x1ffef9),_0x59b7b3['commands']['get'](_0x100994)['refresh'](),_0x472b54['push']({'forceDefaultExecution':!0x0}),_0x59b7b3['execute'](_0x100994,..._0x472b54);const _0x23ffd4=_0x40c250['filter'](_0x3828cb=>'$graveyard'!=_0x3828cb['root']['rootName']);_0x23ffd4['length']>0x0&&_0x3e6a87['setSelection'](_0x23ffd4);for(const _0x32bdc1 of _0x40c250)_0x32bdc1['detach']();});};}['_getCoordsForCells'](_0x548f85){const _0x4a8533=this['editor']['plugins']['get']('TableUtils');let _0x30a939=Number['MAX_SAFE_INTEGER'],_0x3e1cde=Number['MIN_SAFE_INTEGER'],_0x4b4e6e=Number['MAX_SAFE_INTEGER'],_0x2cf51a=Number['MIN_SAFE_INTEGER'];for(const _0x1cd4ea of _0x548f85){if('$graveyard'==_0x1cd4ea['root']['rootName'])continue;const {row:_0x811990,column:_0x45a2eb}=_0x4a8533['getCellLocation'](_0x1cd4ea),_0x451f10=_0x1cd4ea['hasAttribute']('rowspan')?_0x1cd4ea['getAttribute']('rowspan')-0x1:0x0,_0x169184=_0x1cd4ea['hasAttribute']('colspan')?_0x1cd4ea['getAttribute']('colspan')-0x1:0x0;_0x30a939=_0x811990<_0x30a939?_0x811990:_0x30a939,_0x3e1cde=_0x811990+_0x451f10>_0x3e1cde?_0x811990+_0x451f10:_0x3e1cde,_0x4b4e6e=_0x45a2eb<_0x4b4e6e?_0x45a2eb:_0x4b4e6e,_0x2cf51a=_0x45a2eb+_0x169184>_0x2cf51a?_0x45a2eb+_0x169184:_0x2cf51a;}return{'minRow':_0x30a939,'maxRow':_0x3e1cde,'minColumn':_0x4b4e6e,'maxColumn':_0x2cf51a};}['_setupColumnsRowsFixing'](){const _0x465ab5=this['editor'],_0x4bdc88=_0x465ab5['plugins']['get']('TrackChangesEditing'),_0x22e7a2=_0x465ab5['plugins']['get']('TableUtils');_0x465ab5['model']['document']['on']('change:data',()=>{const _0x11644c=Array['from'](_0x465ab5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x379c45,data:_0x169670}of _0x11644c){const {group:_0x237946,id:_0x1b5f3b,subType:_0x1fdd4a}=_0x4bdc88['_splitMarkerName'](_0x379c45);if('suggestion'!=_0x237946)continue;if(null!=_0x169670['oldRange'])continue;const _0x1b0ec5=_0x4bdc88['getSuggestion'](_0x1b5f3b);this['_tablePostFixingSubtypes']['includes'](_0x1fdd4a)&&this['_tableSuggestions']['add'](_0x1b0ec5);}},{'priority':'low'});const _0x25d13c=(_0x1a2327,_0x200d07)=>{let _0x15c743=!0x1;const _0x51d121=_0x200d07['createRangeOn'](_0x1a2327),_0x42ea68=_0x1a2327['findAncestor']('table'),_0x1dd1bc=_0x22e7a2['getCellLocation'](_0x1a2327);for(const _0x2cbf71 of this['_tableSuggestions']){const _0x23d314=_0x2cbf71['subType'],_0x271148=_0x23d314['startsWith']('tablePaste'),_0x303dc5=_0x23d314['substr'](_0x271148?0xa:0x5),_0x59963c=_0x303dc5['toLowerCase'](),_0xe081fb=_0x59963c['substr'](0x0,0x3)+'span',_0x5e2ba2='min'+_0x303dc5,_0x33664d='max'+_0x303dc5;if(!_0x2cbf71['isInContent'])continue;if(_0x42ea68!=_0x2cbf71['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x2cbf71['isIntersectingWithRange'](_0x51d121))continue;const _0xdaa260=_0x1a2327['hasAttribute'](_0xe081fb)?_0x1a2327['getAttribute'](_0xe081fb)-0x1:0x0,_0x188a27=this['_getSuggestionCoords'](_0x2cbf71),_0x51b21c=_0x188a27[_0x5e2ba2],_0x514e31=_0x188a27[_0x33664d];_0x51b21c<=_0x1dd1bc[_0x59963c]&&_0x1dd1bc[_0x59963c]+_0xdaa260<=_0x514e31&&(_0x2cbf71['addRange'](_0x51d121),_0x15c743=!0x0);}return _0x15c743;};_0x465ab5['model']['document']['registerPostFixer'](_0x4fef18=>{let _0x1f9968=!0x1;for(const _0x175831 of _0x465ab5['model']['document']['differ']['getChanges']())if('insert'==_0x175831['type']){if('tableRow'==_0x175831['name']){for(const _0xa00ddd of _0x175831['position']['nodeAfter']['getChildren']())_0x1f9968=_0x1f9968||_0x25d13c(_0xa00ddd,_0x4fef18);}else'tableCell'==_0x175831['name']&&(_0x1f9968=_0x1f9968||_0x25d13c(_0x175831['position']['nodeAfter'],_0x4fef18));}return _0x1f9968;});}['_getSuggestionCoords'](_0x418869){return this['_getCoordsForCells'](_0x418869['getRanges']()['map'](_0x5d3fac=>_0x5d3fac['start']['nodeAfter']));}}function Ne(_0x27d9c0){return Array['from'](new Set(_0x27d9c0)['values']());}class Nt extends _0x577abc{static get['requires'](){return[Ct];}['afterInit'](){const _0x5c5ccd=this['editor'],_0x58aa68=_0x5c5ccd['model']['document']['selection'],_0x29c402=_0x5c5ccd['locale'];if(!_0x5c5ccd['plugins']['has']('TableEditing'))return;const _0x480a89=_0x5c5ccd['plugins']['get']('TrackChangesEditing'),_0x19d8c0=_0x5c5ccd['plugins']['get']('TableUtils'),_0x3e6a85=_0x5c5ccd['plugins']['get'](Ct);_0x3e6a85['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x480a89['enableCommand']('mergeTableCells',()=>{const _0x585aec=_0x19d8c0['getSelectionAffectedTableCells'](_0x5c5ccd['model']['document']['selection']);_0x5c5ccd['model']['change'](()=>{_0x480a89['markMultiRangeBlockFormat'](_0x585aec,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5c5ccd['commands']['get']('mergeTableCells')['on']('execute',(_0x3314d4,_0x3b6435)=>{_0x5c5ccd['commands']['get']('trackChanges')['value']&&(_0x3b6435['length']>0x0&&_0x3b6435[_0x3b6435['length']-0x1]&&_0x3b6435[_0x3b6435['length']-0x1]['forceDefaultExecution']||_0x480a89['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x3314d4['stop']());},{'priority':'highest'});for(const _0x35c558 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x411710=_0x5c5ccd['commands']['get'](_0x35c558);_0x480a89['enableCommand'](_0x35c558,()=>{const _0x2068b3=_0x5c5ccd['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1bb5d0=>_0x1bb5d0['is']('element','tableCell')),_0x4d31aa=_0x411710['value'];_0x5c5ccd['model']['change'](()=>{_0x480a89['markMultiRangeBlockFormat']([_0x2068b3,_0x4d31aa],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x4454e7 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x3a1be4=_0x5c5ccd['commands']['get'](_0x4454e7);_0x480a89['enableCommand'](_0x4454e7,()=>{const _0x228167=_0x19d8c0['getSelectionAffectedTableCells'](_0x5c5ccd['model']['document']['selection'])[0x0],_0x249fdf=_0x228167['findAncestor']('table'),{column:_0x3cb8f2,row:_0x5bdafa}=_0x19d8c0['getCellLocation'](_0x228167);let _0x303c95=[];if('horizontally'==_0x3a1be4['direction']){const _0x4cc358=_0x19d8c0['createTableWalker'](_0x249fdf,{'startRow':_0x5bdafa,'endRow':_0x5bdafa,'includeAllSlots':!0x0});_0x303c95=Array['from'](_0x4cc358)['map'](_0x5f9642=>_0x5f9642['cell']);}else{const _0x45a957=_0x19d8c0['createTableWalker'](_0x249fdf,{'column':_0x3cb8f2,'includeAllSlots':!0x0});_0x303c95=Array['from'](_0x45a957)['map'](_0x18f189=>_0x18f189['cell']);}_0x5c5ccd['model']['change'](_0x5183cd=>{_0x480a89['markBlockFormat'](_0x5183cd['createRangeOn'](_0x228167),{'commandName':_0x4454e7,'commandParams':[]},_0x303c95,_0x4454e7);});});}_0x480a89['descriptionFactory']['registerDescriptionCallback'](_0x1f3275=>{if('formatBlock'!=_0x1f3275['type']&&'formatInline'!=_0x1f3275['type'])return;const {data:_0x1e64c5}=_0x1f3275;return _0x1e64c5&&'mergeTableCells'==_0x1e64c5['commandName']?{'type':'format','content':o(_0x29c402,'*Merge\x20cells*')}:void 0x0;}),_0x480a89['descriptionFactory']['registerDescriptionCallback'](_0x135bb9=>{if('formatBlock'!=_0x135bb9['type']&&'formatInline'!=_0x135bb9['type'])return;const {data:_0x532cb6}=_0x135bb9;return _0x532cb6?'splitTableCellVertically'==_0x532cb6['commandName']?{'type':'format','content':o(_0x29c402,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x532cb6['commandName']?{'type':'format','content':o(_0x29c402,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x153c6c=_0x3e6a85['_acceptFormatSuggestionCallbackFactory']();for(const _0x3aef88 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x480a89['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3aef88,'accept',_0x153c6c);for(const _0x34fe5c of['splitTableCellVertically','splitTableCellHorizontally'])_0x480a89['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x34fe5c,'accept',_0x153c6c);_0x480a89['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x1deda0=>{_0x5c5ccd['model']['change'](_0x3ae226=>{const _0xf41ba2=Array['from'](_0x58aa68['getRanges']())['map'](_0x251be8=>_0x157a8e['fromRange'](_0x251be8));_0x3ae226['setSelection'](_0x1deda0),_0x5c5ccd['commands']['get']('mergeTableCells')['refresh'](),_0x5c5ccd['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x36c1a0=_0xf41ba2['filter'](_0x529cbd=>'$graveyard'!=_0x529cbd['root']['rootName']);_0x36c1a0['length']>0x0&&_0x3ae226['setSelection'](_0x36c1a0);for(const _0x178613 of _0xf41ba2)_0x178613['detach']();});});for(const _0x46b9fc of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x20fe47=_0x5c5ccd['commands']['get'](_0x46b9fc);_0x20fe47['on']('set:isEnabled',(_0x4cc3f6,_0x272ac2,_0x13be49)=>{if(_0x13be49){const _0x322411=_0x5c5ccd['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1af0e5=>_0x1af0e5['is']('element','tableCell'));this['_areMergableCells'](_0x20fe47['value'],_0x322411)||(_0x4cc3f6['return']=!0x1,_0x4cc3f6['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x4b59d1=this['editor']['commands']['get']('mergeTableCells'),_0xab7ae4=this['editor']['plugins']['get']('TableUtils');if(!_0x4b59d1['isEnabled'])return!0x1;const _0x3765d9=_0xab7ae4['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4bb6ca of _0x3765d9)for(const _0x2f391c of _0x3765d9)if(_0x4bb6ca!=_0x2f391c&&!this['_areMergableCells'](_0x4bb6ca,_0x2f391c))return!0x1;return!0x0;}['_areMergableCells'](_0x149d9e,_0x5ba26e){const _0x564c9c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e75ce=this['editor']['model']['createRangeOn'](_0x149d9e),_0x2f152a=this['editor']['model']['createRangeOn'](_0x5ba26e),_0x35c767=new Set(),_0x445a84=new Set();for(const _0x80b382 of _0x564c9c['getSuggestions']())if(('insertion'==_0x80b382['type']||'deletion'==_0x80b382['type']||'mergeTableCells'==_0x80b382['subType'])&&_0x80b382['isInContent']){for(const _0x129e3b of _0x80b382['getRanges']())_0x129e3b['containsRange'](_0x3e75ce,!0x0)&&_0x35c767['add'](_0x80b382['type']+':'+_0x80b382['author']['id']),_0x129e3b['containsRange'](_0x2f152a,!0x0)&&_0x445a84['add'](_0x80b382['type']+':'+_0x80b382['author']['id']);}if(_0x35c767['size']!=_0x445a84['size'])return!0x1;for(const _0x1c7d47 of _0x35c767)if(!_0x445a84['has'](_0x1c7d47))return!0x1;return!0x0;}}class Dt extends _0x577abc{static get['requires'](){return[Ct];}['afterInit'](){const _0x4a5efd=this['editor'];if(!_0x4a5efd['plugins']['has']('TableEditing'))return;const _0x2a6917=_0x4a5efd['locale'],_0x3c8052=_0x4a5efd['plugins']['get']('TrackChangesEditing');_0x3c8052['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x3c8052['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x3c8052['registerBlockAttribute']('headingRows'),_0x3c8052['registerBlockAttribute']('headingColumns'),_0x3c8052['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x2a6917,'FORMAT_HEADER_ROW')),_0x3c8052['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x2a6917,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x48a692=this['editor']['plugins']['get']('TrackChangesEditing'),_0x36942a=this['editor']['plugins']['get']('TableUtils'),_0x4cb418=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x46b3a6({showActiveMarker:_0xd8b34e=!0x0,setDataAttribute:_0x59ae51=!0x0}={}){return(_0x551617,_0x40883a,_0x4a3bcd)=>{const {type:_0x54ad9a,id:_0x131eb5}=_0x48a692['_splitMarkerName'](_0x40883a['markerName']),_0x21d9a9=_0x48a692['getSuggestion'](_0x131eb5),_0x2c907a=_0x21d9a9['data'];if('formatBlock'!=_0x21d9a9['type']||!_0x2c907a||'setTableColumnHeader'!=_0x2c907a['commandName'])return;if(_0x40883a['item'])return void _0x551617['stop']();if(!_0x4a3bcd['consumable']['consume'](_0x40883a['markerRange'],_0x551617['name']))return;const _0x401d0f=_0x40883a['markerRange']['start']['nodeAfter'],_0x1ba3d2=_0x40883a['markerRange']['end']['nodeBefore'],_0x5e3721=_0x401d0f['parent']['parent'],{column:_0x17c594}=_0x36942a['getCellLocation'](_0x401d0f),{column:_0x1ab0a0}=_0x36942a['getCellLocation'](_0x1ba3d2);for(let _0x416dd2=_0x17c594;_0x416dd2<=_0x1ab0a0;_0x416dd2++){const _0x4a51b3=_0x36942a['createTableWalker'](_0x5e3721,{'column':_0x416dd2,'includeAllSlots':!0x1});for(const _0x5241be of _0x4a51b3){const _0x10ee58=_0x5241be['cell'],_0x3e01e7=_0x4a3bcd['mapper']['toViewElement'](_0x10ee58);_0x4a3bcd['writer']['addClass']('ck-suggestion-marker-'+_0x54ad9a,_0x3e01e7),_0x59ae51&&_0x4a3bcd['writer']['setAttribute']('data-suggestion',_0x131eb5,_0x3e01e7),_0x4a3bcd['mapper']['bindElementToMarker'](_0x3e01e7,_0x40883a['markerName']),_0xd8b34e&&(_0x48a692['activeMarkers']['includes'](_0x40883a['markerName'])?_0x4a3bcd['writer']['addClass']('ck-suggestion-marker--active',_0x3e01e7):_0x4a3bcd['writer']['removeClass']('ck-suggestion-marker--active',_0x3e01e7));}}};}_0x48a692['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4cb418),_0x48a692['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4cb418),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x46b3a6(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3d89bd,_0x27dca9,_0x3eff9d)=>{_0x3eff9d['options']['showSuggestionHighlights']&&_0x46b3a6({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x3d89bd,_0x27dca9,_0x3eff9d);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x34d258,_0x41b06a,_0x5f3e9e)=>{const {type:_0x3adf2d,id:_0x5e30d0}=_0x48a692['_splitMarkerName'](_0x41b06a['markerName']),_0x1bfb5e=_0x48a692['getSuggestion'](_0x5e30d0),_0x3e70cf=_0x1bfb5e['data'];if('formatBlock'!=_0x1bfb5e['type']||!_0x3e70cf||'setTableColumnHeader'!=_0x3e70cf['commandName'])return;const _0x4445d2=_0x5f3e9e['mapper']['markerNameToElements'](_0x41b06a['markerName']);if(_0x4445d2){for(const _0x310533 of _0x4445d2)_0x5f3e9e['writer']['removeClass']('ck-suggestion-marker-'+_0x3adf2d,_0x310533),_0x5f3e9e['writer']['removeClass']('ck-suggestion-marker--active',_0x310533),_0x5f3e9e['writer']['removeAttribute']('data-suggestion',_0x310533),_0x5f3e9e['mapper']['unbindElementFromMarkerName'](_0x310533,_0x41b06a['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x229d05=this['editor'],_0x67e7d3=_0x229d05['locale'];function _0x5bccc8(_0x23760b){return{'type':'format','content':o(_0x67e7d3,'*Format:*\x20%0',_0x23760b)};}_0x229d05['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd75577=>{if('formatBlock'!=_0xd75577['type'])return;const {data:_0x36780a}=_0xd75577;if(_0x36780a){if('setTableRowHeader'==_0x36780a['commandName']){const _0x114a36=_0x36780a['commandParams'][0x0]['forceValue'];return _0x5bccc8(o(_0x67e7d3,_0x114a36?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x36780a['commandName']){const _0x43917e=_0x36780a['commandParams'][0x0]['forceValue'];return _0x5bccc8(o(_0x67e7d3,_0x43917e?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x2977e5=>[_0x2977e5,null]));class Mt extends _0x577abc{static get['requires'](){return[Ct];}['afterInit'](){const _0x328752=this['editor'];if(!_0x328752['plugins']['has']('TableClipboard'))return;const _0x24f8ed=_0x328752['plugins']['get']('TrackChangesEditing'),_0x34cfb1=_0x328752['plugins']['get']('TableUtils'),_0xda9c27=_0x328752['plugins']['get'](Ct),_0x16c3a8=_0x328752['plugins']['get']('TableClipboard');_0xda9c27['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x328752['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x328752['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x57cb14=null;_0x328752['model']['on']('insertContent',(_0x1a6fb5,_0x1f5ea8)=>{const [_0x1128e4,_0x5a4f0f]=_0x1f5ea8,_0x5df45f=_0x1f5ea8[_0x1f5ea8['length']-0x1];_0x5df45f&&_0x5df45f['forceDefaultExecution']||_0x24f8ed['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x180037,_0x2e5cd1,_0x3e7be8,_0x134fe9,_0x2be6a1){if(_0x2e5cd1&&!_0x2e5cd1['is']('documentSelection'))return!0x1;const _0x18e660=_0x2be6a1['getTableIfOnlyTableInContent'](_0x180037,_0x3e7be8);if(!_0x18e660||!Ue(_0x18e660,void 0x0,_0x134fe9))return!0x1;const _0x16f765=_0x134fe9['getSelectionAffectedTableCells'](_0x3e7be8['document']['selection']);if(!_0x16f765['length'])return!0x1;const _0x704440=_0x16f765[0x0]['findAncestor']('table'),_0x1d19d4=_0x134fe9['getRowIndexes'](_0x16f765),_0x242859=_0x134fe9['getColumnIndexes'](_0x16f765),_0xaacccd={'startRow':_0x1d19d4['first'],'endRow':_0x1d19d4['last'],'startColumn':_0x242859['first'],'endColumn':_0x242859['last']};return 0x1==_0x16f765['length']&&(_0xaacccd['endRow']+=_0x134fe9['getRows'](_0x18e660)-0x1,_0xaacccd['endColumn']+=_0x134fe9['getColumns'](_0x18e660)-0x1),Ue(_0x704440,_0xaacccd,_0x134fe9);}(_0x1128e4,_0x5a4f0f,_0x328752['model'],_0x34cfb1,_0x16c3a8)&&(_0x1a6fb5['stop'](),_0x57cb14={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x328752['model']['change'](()=>{_0x328752['model']['insertContent'](_0x1f5ea8[0x0],_0x1f5ea8[0x1],_0x1f5ea8[0x2],{'forceDefaultExecution':!0x0});const _0x197d95=_0x2730a7(),{rowInsertionRanges:_0x4804c1,columnInsertionRanges:_0x1be824,insertionRanges:_0x30c046,deletionRanges:_0x4ce967,cells:_0x1465ee}=_0x57cb14;_0x4804c1['length']&&_0x24f8ed['markMultiRangeInsertion'](_0x4804c1,'tablePasteRow',{'tablePasteChainId':_0x197d95}),_0x1be824['length']&&_0x24f8ed['markMultiRangeInsertion'](_0x1be824,'tablePasteColumn',{'tablePasteChainId':_0x197d95}),_0x30c046['length']&&(_0x24f8ed['markMultiRangeInsertion'](_0x30c046,'tablePaste',{'tablePasteChainId':_0x197d95,'skipNestingCheck':!0x0}),_0x30c046['forEach'](_0x28d952=>_0x28d952['detach']?.())),_0x4ce967['length']&&(_0x24f8ed['markMultiRangeDeletion'](_0x4ce967,'tablePaste',{'tablePasteChainId':_0x197d95,'skipNestingCheck':!0x0}),_0x4ce967['forEach'](_0x162b9f=>_0x162b9f['detach']?.()));const _0x38410e=_0x24f8ed['markMultiRangeBlockFormat'](_0x1465ee['map'](({element:_0x13fa4f})=>_0x13fa4f),{'formatGroupId':_0x2730a7()},[],'tablePasteCell',{'tablePasteChainId':_0x197d95});if(_0x38410e){const _0x123b68=_0x38410e['getMarkers'](),_0xb2a50e=[];for(const {element:_0x31cc4e,attributes:_0x2a6085}of _0x1465ee){if(!_0x2a6085)continue;const _0x33e794=_0x328752['model']['createRangeOn'](_0x31cc4e),_0x26c226=_0x123b68['find'](_0x42f9d8=>_0x42f9d8['getRange']()['isEqual'](_0x33e794));_0x26c226&&_0xb2a50e['push']([_0x26c226['name'],_0x2a6085]);}_0xb2a50e['length']&&_0x38410e['setAttribute']('markerAttributes',Object['fromEntries'](_0xb2a50e));}_0x57cb14=null;}));},{'priority':_0x1ed5be['high']+0xa}),_0x328752['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x42a0f2,_0x3c6c00)=>{const [_0x2abeb8,_0x424c3a,,_0x43f80]=_0x3c6c00;if(!_0x57cb14)return;_0x42a0f2['stop']();const _0x36981b=_0x2abeb8['cell'],_0x16bc67=_0x424c3a,_0x7ed98=Oe(_0x36981b),_0x3f4ab4=Oe(_0x16bc67);_0x42a0f2['return']=_0x36981b;let _0x18b72f=null,_0x988bb1=null;if(_0x3f4ab4||_0x7ed98){if(_0x7ed98&&!_0x3f4ab4){_0x43f80['remove'](_0x36981b['getChild'](0x0));for(const _0x4493f7 of Array['from'](_0x16bc67['getChildren']()))_0x43f80['insert'](_0x4493f7,_0x36981b,'end');const _0x101a6d=_0x57cb14['rowInsertionIndexes']['includes'](_0x2abeb8['row']),_0x52a199=_0x57cb14['columnInsertionIndexes']['includes'](_0x2abeb8['column']);_0x101a6d||_0x52a199||(_0x18b72f=_0x157a8e['fromRange'](_0x43f80['createRangeIn'](_0x36981b)));}else _0x3f4ab4&&!_0x7ed98&&(_0x988bb1=_0x43f80['createRangeIn'](_0x36981b));}else{const _0x429730=_0x43f80['createElement']('tableCellSuggestion'),_0x398c51=_0x43f80['createElement']('tableCellSuggestion');_0x43f80['wrap'](_0x43f80['createRangeIn'](_0x36981b),_0x398c51),_0x43f80['insert'](_0x429730,_0x36981b,0x0);for(const _0x5db0be of Array['from'](_0x16bc67['getChildren']()))_0x43f80['insert'](_0x5db0be,_0x429730,'end');_0x18b72f=_0x157a8e['fromRange'](_0x43f80['createRangeOn'](_0x429730)),_0x988bb1=_0x157a8e['fromRange'](_0x43f80['createRangeOn'](_0x398c51));}const _0x29cb72=Array['from'](_0x16bc67['getAttributes']())['filter'](([_0x124f9a])=>Be['includes'](_0x124f9a));_0x57cb14['cells']['push']({'element':_0x36981b,'attributes':_0x29cb72['length']?Object['fromEntries'](_0x29cb72):null}),_0x18b72f&&_0x57cb14['insertionRanges']['push'](_0x18b72f),_0x988bb1&&_0x57cb14['deletionRanges']['push'](_0x988bb1);},{'priority':'high'}),_0x34cfb1['on']('insertColumns',(_0x287e85,_0x7b7de6)=>{const [_0x1709b3,_0x22b865={}]=_0x7b7de6;if(!_0x57cb14)return;const _0x13be86=_0x22b865['at']||0x0,_0x2bc113=_0x22b865['columns']||0x1;_0x57cb14['columnInsertionIndexes']=new Array(_0x2bc113)['fill'](_0x13be86)['map']((_0x12fd88,_0x2821)=>_0x12fd88+_0x2821);for(const {cell:_0x59bb0a}of _0x34cfb1['createTableWalker'](_0x1709b3,{'startColumn':_0x13be86,'endColumn':_0x13be86+_0x2bc113-0x1}))_0x57cb14['columnInsertionRanges']['push'](_0x328752['model']['createRangeOn'](_0x59bb0a));},{'priority':'low'}),_0x34cfb1['on']('insertRows',(_0x2e8a86,_0x4e34ed)=>{const [_0x4c08c7,_0x1dfb99={}]=_0x4e34ed;if(!_0x57cb14)return;const _0xbd2887=_0x1dfb99['at']||0x0,_0x5704ff=_0x1dfb99['rows']||0x1;_0x57cb14['rowInsertionIndexes']=new Array(_0x5704ff)['fill'](_0xbd2887)['map']((_0x10a243,_0x209df1)=>_0x10a243+_0x209df1);for(const {cell:_0x3e154d}of _0x34cfb1['createTableWalker'](_0x4c08c7,{'startRow':_0xbd2887,'endRow':_0xbd2887+_0x5704ff-0x1}))_0x57cb14['rowInsertionRanges']['push'](_0x328752['model']['createRangeOn'](_0x3e154d));},{'priority':'low'}),_0x24f8ed['descriptionFactory']['registerDescriptionCallback'](_0x3e7889=>{if(_0x3e7889['subType']&&_0x3e7889['subType']['startsWith']('tablePaste'))return _0x3e7889['previous']?{}:{'type':'insertion','content':o(_0x328752['locale'],'*Replace\x20table\x20cells*')};});const _0x43c710=()=>!0x1;for(const _0x50fd6d of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x24f8ed['_suggestionFactory']['registerCustomCallback']('insertion',_0x50fd6d,'join',_0x43c710),_0x24f8ed['_suggestionFactory']['registerCustomCallback']('deletion',_0x50fd6d,'join',_0x43c710),_0x24f8ed['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x50fd6d,'join',_0x43c710);_0x24f8ed['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x43c710),_0x24f8ed['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x352c74,_0x38e3b1,_0x57869a)=>{const _0xad8e38=_0x352c74['map'](_0x4aa533=>_0x4aa533['getContainedElement']())['filter'](_0x1b0a9e=>_0x1b0a9e),_0x10113d=new Map(_0xad8e38['map'](_0x4f9f2f=>[_0x4f9f2f,null]));if(_0x57cb14){for(const {element:_0x3b2a78,attributes:_0x47b828}of _0x57cb14['cells'])_0x47b828&&_0x10113d['set'](_0x3b2a78,_0x47b828);}else{if(_0x57869a&&_0x57869a['markerAttributes'])for(const [_0x5e0efc,_0x1c8518]of Object['entries'](_0x57869a['markerAttributes'])){const _0x147390=_0x328752['model']['markers']['get'](_0x5e0efc),_0x499eff=_0x147390?_0x147390['getRange']()['getContainedElement']():null;_0x499eff&&_0x10113d['set'](_0x499eff,_0x1c8518);}}_0x328752['model']['change'](_0x2f1b86=>{for(const [_0x3466ab,_0x3cba56]of _0x10113d)_0x2f1b86['setAttributes']({...xe,..._0x3cba56},_0x3466ab);});});const _0x983de9=(_0x3d53a4,_0x4cd03b)=>{_0x24f8ed['_suggestionFactory']['registerCustomCallback'](_0x3d53a4,'tablePaste',_0x4cd03b,(_0x5bb8b4,_0x40c5cf,_0x27e486)=>{_0x328752['model']['change'](_0x47bd99=>{const _0x313094=[];for(const _0x52afc8 of _0x5bb8b4){const _0x133a46=_0x52afc8['start']['nodeAfter'];_0x133a46['is']('element','tableCellSuggestion')&&_0x313094['push'](_0x133a46);}_0x24f8ed['_suggestionFactory']['getSuggestionCallback'](_0x3d53a4,null,_0x4cd03b)(_0x5bb8b4,_0x40c5cf,_0x27e486);for(const _0x57543c of _0x313094)'$graveyard'!=_0x57543c['root']['rootName']&&_0x47bd99['unwrap'](_0x57543c);});});};_0x983de9('insertion','accept'),_0x983de9('insertion','discard'),_0x983de9('deletion','accept'),_0x983de9('deletion','discard'),_0x24f8ed['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x347da9=>{const _0x1ad473=_0x347da9['map'](_0x2a961b=>_0x2a961b['getContainedElement']()),_0x149a3e=_0x1ad473[0x0]['findAncestor']('table'),{minRow:_0x7a4991,maxRow:_0x3732da}=_0xda9c27['_getCoordsForCells'](_0x1ad473);_0x34cfb1['removeRows'](_0x149a3e,{'at':_0x7a4991,'rows':_0x3732da-_0x7a4991+0x1});}),_0x24f8ed['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1bb233=>{const _0x536659=_0x1bb233['map'](_0x7b801d=>_0x7b801d['getContainedElement']()),_0x1c1296=_0x536659[0x0]['findAncestor']('table'),{minColumn:_0x455c77,maxColumn:_0x1df2ae}=_0xda9c27['_getCoordsForCells'](_0x536659);_0x34cfb1['removeColumns'](_0x1c1296,{'at':_0x455c77,'columns':_0x1df2ae-_0x455c77+0x1});});const _0x485003=(_0x440d64,_0x202790)=>{if(!_0x202790['subType']||!_0x202790['subType']['startsWith']('tablePaste'))return;const _0x9859e8=_0x202790['attributes']['tablePasteChainId'],_0x44dc5d=_0x24f8ed['getSuggestions']()['filter'](_0x46dc52=>_0x46dc52['isInContent']&&_0x46dc52['attributes']&&_0x46dc52['attributes']['tablePasteChainId']==_0x9859e8);_0x44dc5d['length']&&_0x202790['getAllAdjacentSuggestions']()['length']!=_0x44dc5d['length']&&_0x44dc5d['reduce']((_0x183f10,_0x448aab)=>(_0x183f10['next']=_0x448aab,_0x448aab['previous']=_0x183f10,_0x448aab));};function _0x7c8259(_0x26f32d,_0x334d1b=!0x0){const {id:_0x6f5344,authorId:_0x1c4b24}=_0x24f8ed['_splitMarkerName'](_0x26f32d['markerName']),_0x3a57e5=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x490307=_0x24f8ed['activeMarkers']['includes'](_0x26f32d['markerName']);return _0x490307&&_0x3a57e5['push']('ck-suggestion-marker--active'),{'classes':_0x3a57e5,'attributes':{'data-suggestion':_0x6f5344,'data-author-id':_0x1c4b24},'priority':_0x490307&&_0x334d1b?0xbc2:0xbb8};}_0x24f8ed['on']('suggestionLoaded',_0x485003,{'priority':'high'}),_0x24f8ed['on']('suggestionUnloaded',_0x485003,{'priority':'high'}),_0x328752['model']['document']['registerPostFixer'](()=>{let _0x2d30a1=!0x1;const _0x131d3c=Array['from'](_0x328752['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3f35f,data:_0x341e55}of _0x131d3c){const {group:_0x3d3658,type:_0x367201,id:_0x1a64fd}=_0x24f8ed['_splitMarkerName'](_0x3f35f);if('suggestion'!=_0x3d3658||'deletion'!=_0x367201||_0x341e55['oldRange'])continue;if(!_0x24f8ed['hasSuggestion'](_0x1a64fd))continue;const _0x342249=_0x24f8ed['getSuggestion'](_0x1a64fd)['getRanges'](),_0x3041ff=_0x328752['plugins']['get']('Users')['me'];for(const _0x25d9e6 of _0x24f8ed['getSuggestions']()){if(!_0x25d9e6['isInContent']||_0x25d9e6['author']!=_0x3041ff)continue;if('formatBlock'!=_0x25d9e6['type']||'tablePasteCell'!=_0x25d9e6['subType'])continue;if(_0x25d9e6['getRanges']()['every'](_0x3e28a4=>_0x342249['some'](_0x339447=>_0x339447['containsRange'](_0x3e28a4,!0x0)))){for(const _0x5a81d6 of _0x25d9e6['getAllAdjacentSuggestions']())_0x5a81d6['isInContent']&&(_0x5a81d6['discard'](),_0x2d30a1=!0x0);}}}return _0x2d30a1;}),_0x328752['model']['document']['registerPostFixer'](_0x378e5a=>{const _0x38d790=_0x328752['commands']['get']('redo');if(!_0x38d790||!_0x38d790['_createdBatches']['has'](_0x378e5a['batch']))return!0x1;let _0x358ec6=!0x1;const _0x264bb4=_0x328752['plugins']['get']('Users')['me'],_0x3e83b4=_0x328752['model']['document']['differ']['getChanges'](),_0x19c6c2=Array['from'](_0x328752['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x1ca6bd,data:_0x2f607a})=>{const {group:_0x1b384c,subType:_0x9dd3a,authorId:_0xd3de34}=_0x24f8ed['_splitMarkerName'](_0x1ca6bd);return'suggestion'==_0x1b384c&&'tablePaste'==_0x9dd3a&&_0xd3de34==_0x264bb4['id']&&!_0x2f607a['oldRange'];});for(const _0x390b2a of _0x3e83b4){if('insert'!=_0x390b2a['type']||'tableCellSuggestion'!=_0x390b2a['name']||0x1!=_0x390b2a['length'])continue;const _0x4468c7=_0x378e5a['createRange'](_0x390b2a['position'],_0x390b2a['position']['getShiftedBy'](0x1));if(!_0x19c6c2['find'](({data:_0x1a955f})=>_0x1a955f['newRange']['isEqual'](_0x4468c7))){for(const {name:_0x4e3e27,data:_0x23534a}of _0x19c6c2)if(_0x4468c7['containsRange'](_0x23534a['newRange'])){_0x378e5a['updateMarker'](_0x4e3e27,{'range':_0x4468c7}),_0x358ec6=!0x0;break;}}}return _0x358ec6;}),_0x328752['model']['document']['registerPostFixer'](_0x3d5c7c=>{let _0x4c5dab=!0x1;const _0x3f14fc=_0x328752['plugins']['get']('Users')['me'],_0x1c4112=_0x24f8ed['getSuggestions']()['filter'](_0x384be4=>_0x384be4['isInContent']&&_0x384be4['author']==_0x3f14fc),_0x23c5cc=new Set(),_0x5bac7b=new Set();for(const _0x5c71c1 of _0x1c4112)if('tablePaste'==_0x5c71c1['subType'])for(const _0x4d72f1 of _0x5c71c1['getMarkers']()){const _0x3684d5=_0x4d72f1['getRange']()['getContainedElement']();if(_0x3684d5){if(_0x3684d5['is']('element','tableCellSuggestion')&&Oe(_0x3684d5)){_0x5c71c1['removeMarker'](_0x4d72f1['name']),_0x23c5cc['add'](_0x3684d5),_0x4c5dab=!0x0;const _0x384709=_0x3684d5['nextSibling'],_0x3708da=_0x3684d5['previousSibling'],_0x14d2f1=_0x384709&&_0x384709['is']('element','tableCellSuggestion'),_0x2ffb20=_0x3708da&&_0x3708da['is']('element','tableCellSuggestion');_0x14d2f1&&!_0x23c5cc['has'](_0x384709)&&_0x5bac7b['add'](_0x384709),_0x2ffb20&&!_0x23c5cc['has'](_0x3708da)&&_0x5bac7b['add'](_0x3708da);}else _0x3684d5['is']('element','paragraph')&&_0x3684d5['isEmpty']&&(_0x5c71c1['removeMarker'](_0x4d72f1['name']),_0x4c5dab=!0x0);}}else{if('tablePasteCell'==_0x5c71c1['subType']){if(!_0x5c71c1['attributes']||!_0x5c71c1['attributes']['tablePasteChainId'])continue;const _0x251e88=_0x5c71c1['attributes']['markerAttributes'];if(_0x251e88&&Object['keys'](_0x251e88)['length'])continue;const _0x6d6396=_0x5c71c1['attributes']['tablePasteChainId'];let _0x1e7a93=!0x0,_0x9ed725=!0x0;for(const _0x325c13 of _0x1c4112)if(_0x325c13['subType']&&_0x325c13['subType']['startsWith']('tablePaste')){if(!_0x325c13['attributes']['tablePasteChainId']){_0x9ed725=!0x1;break;}if(_0x325c13['id']!=_0x5c71c1['id']&&_0x325c13['attributes']['tablePasteChainId']==_0x6d6396){_0x1e7a93=!0x1;break;}}_0x9ed725&&_0x1e7a93&&(_0x5c71c1['removeMarkers'](),_0x4c5dab=!0x0);}}for(const _0x139a22 of _0x23c5cc)_0x3d5c7c['remove'](_0x139a22);for(const _0x357201 of _0x5bac7b)_0x3d5c7c['unwrap'](_0x357201);return _0x4c5dab;}),_0x328752['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x5eca12=>_0x7c8259(_0x5eca12),'converterPriority':'high'}),_0x328752['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x523fff,_0x47fbee)=>_0x47fbee['options']['showSuggestionHighlights']?_0x7c8259(_0x523fff,!0x1):null,'converterPriority':'high'});const _0x254c1b=_0x328752['editing']['view'];this['listenTo'](_0x254c1b['document'],'clipboardOutput',(_0x5d05b0,_0x35b956)=>{const _0x558b35=[];for(const _0x77a763 of _0x254c1b['createRangeIn'](_0x35b956['content'])['getItems']())_0x77a763['is']('element','suggestion-td')&&_0x558b35['push'](_0x77a763);_0x254c1b['change'](_0x1e92c0=>{for(const _0x35de8b of _0x558b35)_0x1e92c0['move'](_0x1e92c0['createRangeIn'](_0x35de8b),_0x1e92c0['createPositionBefore'](_0x35de8b)),_0x1e92c0['remove'](_0x35de8b);});});}}function Oe(_0x3b230a){if(_0x3b230a['isEmpty'])return!0x0;const _0x164427=_0x3b230a['getChild'](0x0);return _0x164427['is']('element','paragraph')&&_0x164427['isEmpty'];}function Ue(_0x3c0aca,_0x450147={},_0x1e30c3){for(const {isAnchor:_0x520887,cellHeight:_0x4eebf3,cellWidth:_0x658f31}of _0x1e30c3['createTableWalker'](_0x3c0aca,{'includeAllSlots':!0x0,..._0x450147}))if(!_0x520887||0x1!=_0x4eebf3||0x1!=_0x658f31)return!0x1;return!0x0;}class $t extends _0x577abc{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x17aba2=this['editor']['plugins']['get']('TrackChangesEditing');_0x17aba2['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x17aba2['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x17aba2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x17aba2['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x17aba2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x17aba2['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x279b31,_0x49ebc2){const _0x3d46c0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2232c3=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x8adcf1=_0x49ebc2['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x1fe110=_0x2232c3['getColumnGroupElement'](_0x8adcf1);let _0x3f516a=_0x1fe110?_0x2232c3['getTableColumnsWidths'](_0x1fe110):null,_0x1b87f2=_0x8adcf1['getAttribute']('tableWidth')||null;const _0x457779=_0x49ebc2['tableWidth']||_0x1b87f2,_0x5e1893=_0x49ebc2['columnWidths']||_0x3f516a,_0x13b46d=this['editor']['plugins']['get']('Users')['me'];for(const _0x40a9c9 of _0x3d46c0['getSuggestions']()){const _0xd50676=_0x40a9c9['getContainedElement']();if('resizeTable'===_0x40a9c9['subType']&&_0xd50676===_0x8adcf1){_0x40a9c9['author']!==_0x13b46d&&_0x40a9c9['discard']();const _0x41ccab=_0x40a9c9['data']['commandParams'];_0x1b87f2=_0x41ccab[0x0]['tableWidth'],_0x3f516a=_0x41ccab[0x0]['columnWidths'];break;}}_0x279b31({'table':_0x8adcf1,'tableWidth':_0x457779,'columnWidths':_0x5e1893}),_0x3d46c0['markBlockFormat'](_0x8adcf1,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x1b87f2,'columnWidths':_0x3f516a}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4f85e1){if('formatBlock'!=_0x4f85e1['type']&&'formatInline'!=_0x4f85e1['type'])return;const {data:_0x1ce90e}=_0x4f85e1;if(_0x1ce90e&&'resizeTable'===_0x1ce90e['formatGroupId']){const _0x5d2ac0='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x5d2ac0)};}}}class Bt extends _0x577abc{['afterInit'](){const _0xec744b=this['editor'];_0xec744b['plugins']['has']('Template')&&_0xec744b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x577abc{['afterInit'](){const _0x25c65e=this['editor'];if(!_0x25c65e['commands']['get']('insertTableOfContents'))return;_0x25c65e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x28b1ef=_0x25c65e['plugins']['get']('TrackChangesEditing'),_0x3a3a22=_0x25c65e['locale'];_0x28b1ef['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3e8942=>o(_0x3a3a22,'ELEMENT_TABLE_OF_CONTENTS',_0x3e8942));}}class Rt extends _0x577abc{['afterInit'](){const _0x569ab6=this['editor'];if(!_0x569ab6['plugins']['has']('Title'))return;const _0x32a821=_0x569ab6['plugins']['get']('TrackChangesEditing');_0x32a821['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x569ab6['locale'],'ELEMENT_TITLE')),_0x569ab6['model']['document']['registerPostFixer'](_0x21df21=>{let _0xca8ab1=!0x1;const _0x23633d=Array['from'](_0x569ab6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x19a521,data:_0x180b4a}of _0x23633d){const {group:_0x2a5aca}=_0x32a821['_splitMarkerName'](_0x19a521);if('suggestion'!==_0x2a5aca||!_0x180b4a['newRange'])continue;const _0x4f5f54=_0x180b4a['newRange'],_0x522d26=_0x4f5f54['end']['nodeBefore'];if(!_0x522d26||!_0x522d26['is']('element','title-content'))continue;if(!_0x4f5f54['start']['isTouching'](_0x4f5f54['end']))continue;const _0x578fbc=_0x569ab6['model']['schema']['getNearestSelectionRange'](_0x4f5f54['end'],'forward');if(_0x578fbc&&_0x578fbc['isCollapsed']){const _0x56ba22=_0x21df21['createRange'](_0x4f5f54['start'],_0x578fbc['start']);_0x56ba22['isEqual'](_0x4f5f54)||(_0x21df21['updateMarker'](_0x19a521,{'range':_0x56ba22}),_0xca8ab1=!0x0);}_0xca8ab1||(_0x21df21['removeMarker'](_0x19a521),_0xca8ab1=!0x0);}return _0xca8ab1;});}}class Tt extends _0x577abc{['afterInit'](){const _0x1a48a7=this['editor'],_0x2c30b7=_0x1a48a7['plugins']['get']('TrackChangesEditing');_0x1a48a7['plugins']['has']('Uploadcare')&&(_0x2c30b7['enableCommand']('uploadcare'),_0x1a48a7['plugins']['has']('UploadcareImageEdit')&&(_0x2c30b7['enableCommand']('uploadcareImageEdit'),_0x2c30b7['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x2c30b7['registerBlockAttribute']('uploadcareImageId'),_0x2c30b7['descriptionFactory']['registerDescriptionCallback'](_0x3d6102=>{if('attribute'!=_0x3d6102['type'])return;const {data:_0x2b3309}=_0x3d6102;return _0x2b3309&&'uploadcareImageId'==_0x2b3309['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x577abc{['afterInit'](){const _0x51a80c=this['editor'],_0x9f4454=_0x51a80c['plugins']['get']('TrackChangesEditing');_0x51a80c['plugins']['has']('UndoEditing')&&(_0x9f4454['enableCommand']('undo'),_0x9f4454['enableCommand']('redo'));}}class Et extends _0x577abc{static get['requires'](){return[Ct];}['afterInit'](){const _0x16161d=this['editor'];if(!_0x16161d['plugins']['has']('TableCaptionEditing'))return;_0x16161d['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0x577abc{['tableProperties'];['tableCellProperties'];constructor(_0x146393){super(_0x146393),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 _0x47f4e3=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x82270a of this['tableProperties'])_0x47f4e3['enableCommand'](_0x82270a,(_0x1944d6,_0xc97fb1)=>{const _0x20fac9=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x82270a,[_0x20fac9],this['tableProperties'],'tableProperties',_0x1944d6,_0xc97fb1);});_0x47f4e3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x47f4e3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x47f4e3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x392d74,_0xd3d967)=>this['handleDiscardAction'](this['tableProperties'],_0x392d74,_0xd3d967)),_0x47f4e3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x38f126 of this['tableCellProperties'])_0x47f4e3['enableCommand'](_0x38f126,(_0x1eb995,_0x5e0f6c)=>{const _0x49c35f=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x38f126,_0x49c35f,this['tableCellProperties'],'tableCellProperties',_0x1eb995,_0x5e0f6c);});_0x47f4e3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x47f4e3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x47f4e3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x319e6d,_0xa882b0)=>this['handleDiscardAction'](this['tableCellProperties'],_0x319e6d,_0xa882b0)),_0x47f4e3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x47f4e3['descriptionFactory']['registerDescriptionCallback'](_0x164b5b=>this['handleSuggestionDescription'](_0x164b5b));}['_handlePropertyChange'](_0x57ed28,_0x2e5ec0,_0xf19246,_0x4f174b,_0x5b11ef,_0x18b448){const _0x2b9adf=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x18b448['batch'],()=>{for(const _0x538f49 of _0x2e5ec0){if(this['_getSuggestion'](_0x538f49,_0x4f174b))_0x5b11ef(_0x18b448);else{const _0x1b1af1={};for(const _0xad6e7f of _0xf19246){const _0x58313b=_0x538f49['getAttribute'](_0xad6e7f);void 0x0!==_0x58313b&&(_0x1b1af1[_0xad6e7f]=_0x58313b);}_0x5b11ef(_0x18b448),_0x2b9adf['markBlockFormat'](_0x538f49,{'commandParams':[_0x1b1af1]},[],_0x4f174b);}}});}['handleDiscardAction'](_0x1872a6,_0xb8c32c,_0x452390){const _0x4aaec1=_0xb8c32c[0x0]['start']['nodeAfter'],_0x19190f=_0x452390['commandParams'][0x0];this['editor']['model']['change'](_0x316624=>{for(const _0x58340a of _0x1872a6)void 0x0!==_0x19190f[_0x58340a]?_0x316624['setAttribute'](_0x58340a,_0x19190f[_0x58340a],_0x4aaec1):_0x316624['removeAttribute'](_0x58340a,_0x4aaec1);});}['handleSuggestionDescription'](_0x2de244){if(_0x2de244['data'])switch(_0x2de244['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x1f1beb,_0x294274){const _0x1498bc=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0xfdc4f1 of _0x1498bc['getSuggestions']({'skipNotAttached':!0x0})){const _0x69690f=_0xfdc4f1['getContainedElement']();if(_0xfdc4f1['subType']===_0x294274&&_0x69690f===_0x1f1beb)return _0xfdc4f1;}return null;}}const m='$elementName';class p extends _0x577abc{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x389bec,_0x5d334d,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,vt,_t,Ct,Nt,Dt,Et,Mt,$t,Ot,Ut,Bt,Rt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5c0b2f){super(_0x5c0b2f),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x356c16,_0x5892b2,_0x3b0a88,_0xae5296)=>{this['_model']['change'](()=>{for(const _0x3d665c of[..._0xae5296,..._0x3b0a88])this['_model']['markers']['has'](_0x3d665c)&&_0x5c0b2f['editing']['reconvertMarker'](_0x3d665c);});}),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']=_0x5c0b2f['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x5c0b2f['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x5c0b2f['config']['get']('trackChanges.trackFormatChanges'),_0x5c0b2f['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5c0b2f['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x5c0b2f,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x7dce00=this['editor'],_0x211528=(_0x2afc2f,_0x1866d2)=>{if('attribute'!=_0x2afc2f)return'ck-suggestion-marker-'+_0x2afc2f;const _0x2d2346=_0x1866d2['split']('|')[0x0];return this['_isBlockAttribute'](_0x2d2346)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x7dce00['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0xa55ac1=>{const {id:_0x9ae96c,authorId:_0x1024c4,type:_0x283859,subType:_0x323bc5}=this['_splitMarkerName'](_0xa55ac1['markerName']),_0x3fb503=['ck-suggestion-marker',_0x211528(_0x283859,_0x323bc5)];let _0x5a4128=0xbb8;return this['activeMarkers']['includes'](_0xa55ac1['markerName'])&&(_0x3fb503['push']('ck-suggestion-marker--active'),_0x5a4128=0xbc2),'deletion'==_0x283859&&(_0x5a4128+=0x5),{'classes':_0x3fb503,'attributes':{'data-suggestion':_0x9ae96c,'data-author-id':_0x1024c4},'priority':_0x5a4128};}}),_0x7dce00['conversion']['for']('dataDowncast')['add'](_0x9749e2=>{_0x9749e2['on']('addMarker:suggestion',(_0x4fd7aa,_0xc5eb1e,_0x8a5971)=>{if(!_0x8a5971['options']['showSuggestionHighlights'])return;const _0x219a38=_0xc5eb1e['item'];if(!_0x219a38)return;const _0x40b996=_0x8a5971['mapper']['toViewElement'](_0x219a38);_0x7dce00['model']['schema']['isObject'](_0x219a38)&&_0x40b996&&!_0x40b996['getCustomProperty']('widget')&&_0x40b996['is']('containerElement')&&_0x378aa8(_0x40b996,_0x8a5971['writer']);},{'priority':'high'});}),_0x7dce00['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x3dc084,_0x275d7e)=>{if(!_0x275d7e['options']['showSuggestionHighlights'])return null;const {type:_0x36149a,subType:_0x1f0429}=this['_splitMarkerName'](_0x3dc084['markerName']);return{'classes':['ck-suggestion-marker',_0x211528(_0x36149a,_0x1f0429)],'priority':0xbb8};}});const _0x9fcfe0=({showActiveMarkers:_0x4bed3d=!0x0,isAttributeSuggestion:_0xf6102d=!0x1}={})=>(_0xd972a,_0x519699,_0x3c9d46)=>{if(!_0x519699['item'])return;const {id:_0x325222,authorId:_0x1994c0}=this['_splitMarkerName'](_0x519699['markerName']);if(_0xf6102d){const _0x32d4b6=this['_suggestions']['get'](_0x325222),_0x5c6cb6=this['_getAttributeKey'](_0x32d4b6);if(!this['_isBlockAttribute'](_0x5c6cb6))return;}if(_0x519699['item']['is']('selection'))return void _0x3c9d46['consumable']['consume'](_0x519699['item'],_0xd972a['name']);const _0x1dc745=_0x3c9d46['mapper']['toViewElement'](_0x519699['item']);if(_0x519699['item']['is']('element')&&_0x7dce00['model']['schema']['isBlock'](_0x519699['item'])&&!_0x1dc745['getCustomProperty']('addHighlight')){_0x3c9d46['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1dc745),_0x3c9d46['writer']['setAttribute']('data-suggestion',_0x325222,_0x1dc745),_0x3c9d46['writer']['setAttribute']('data-author-id',_0x1994c0,_0x1dc745),_0x3c9d46['mapper']['bindElementToMarker'](_0x1dc745,_0x519699['markerName']),_0x4bed3d&&(this['activeMarkers']['includes'](_0x519699['markerName'])?_0x3c9d46['writer']['addClass']('ck-suggestion-marker--active',_0x1dc745):_0x3c9d46['writer']['removeClass']('ck-suggestion-marker--active',_0x1dc745));for(const _0x4c6287 of _0x7dce00['model']['createRangeIn'](_0x519699['item'])['getItems']())_0x3c9d46['consumable']['consume'](_0x4c6287,_0xd972a['name']);_0x3c9d46['consumable']['consume'](_0x519699['item'],_0xd972a['name']);}};_0x7dce00['conversion']['for']('dataDowncast')['add'](_0x2fa89d=>{_0x2fa89d['on']('addMarker:suggestion:formatBlock',(_0x20d0cb,_0x585ad6,_0x435e31)=>{_0x435e31['options']['showSuggestionHighlights']&&_0x9fcfe0({'showActiveMarkers':!0x1})(_0x20d0cb,_0x585ad6,_0x435e31);},{'priority':'highest'});}),_0x7dce00['conversion']['for']('dataDowncast')['add'](_0x11b8ee=>{_0x11b8ee['on']('addMarker:suggestion:attribute',(_0x1c701b,_0x2c38be,_0x3d3e4b)=>{_0x3d3e4b['options']['showSuggestionHighlights']&&_0x9fcfe0({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x1c701b,_0x2c38be,_0x3d3e4b);},{'priority':'highest'});}),_0x7dce00['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x2a847d,_0x969ffd)=>_0x969ffd['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x2a847d['substr'](0xb)}}),_0x7dce00['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4b1757,{writer:_0x5415ab})=>{let _0x3c0ffc='suggestion:'+_0x4b1757['getAttribute']('suggestion-type')+':'+_0x4b1757['getAttribute']('id');return _0x4b1757['getAttribute']('marker-count')&&(_0x3c0ffc+=':'+_0x4b1757['getAttribute']('marker-count')),_0x5415ab['createElement']('$marker',{'data-name':_0x3c0ffc});}}),_0x7dce00['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x7dce00['conversion']['for']('editingDowncast')['add'](_0x384ae0=>{_0x384ae0['on']('addMarker:suggestion:formatBlock',_0x9fcfe0(),{'priority':'high'});}),_0x7dce00['conversion']['for']('editingDowncast')['add'](_0x140cbd=>{_0x140cbd['on']('addMarker:suggestion:attribute',_0x9fcfe0({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x7dce00['conversion']['for']('editingDowncast')['add'](_0x379d10=>{_0x379d10['on']('removeMarker:suggestion:formatBlock',(_0x18a7e7,_0x3ece6f,_0x49d83a)=>{const _0x1ba986=_0x49d83a['mapper']['markerNameToElements'](_0x3ece6f['markerName']);if(_0x1ba986){for(const _0x18aeab of _0x1ba986)_0x18aeab['getCustomProperty']('addHighlight')||(_0x49d83a['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x18aeab),_0x49d83a['writer']['removeAttribute']('data-suggestion',_0x18aeab),_0x49d83a['writer']['removeAttribute']('data-author-id',_0x18aeab),_0x49d83a['mapper']['unbindElementFromMarkerName'](_0x18aeab,_0x3ece6f['markerName']));}},{'priority':'high'});}),_0x7dce00['conversion']['for']('editingDowncast')['add'](_0x3c2c79=>{_0x3c2c79['on']('removeMarker:suggestion:attribute',(_0x51b2a7,_0x34ef31,_0x2e8f19)=>{const _0x4d36fd=_0x2e8f19['mapper']['markerNameToElements'](_0x34ef31['markerName']);if(!_0x4d36fd)return;const {id:_0x34ca42}=this['_splitMarkerName'](_0x34ef31['markerName']),_0x18718=this['_suggestions']['get'](_0x34ca42),_0x1c9915=this['_getAttributeKey'](_0x18718);if(this['_isBlockAttribute'](_0x1c9915)){for(const _0x3ed0bb of _0x4d36fd)_0x3ed0bb['getCustomProperty']('addHighlight')||(_0x2e8f19['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3ed0bb),_0x2e8f19['writer']['removeAttribute']('data-suggestion',_0x3ed0bb),_0x2e8f19['writer']['removeAttribute']('data-author-id',_0x3ed0bb),_0x2e8f19['mapper']['unbindElementFromMarkerName'](_0x3ed0bb,_0x34ef31['markerName']));}},{'priority':'high'});}),_0x7dce00['model']['document']['registerPostFixer'](_0x188400=>{let _0x256a95=!0x1;const _0x50655b=Array['from'](_0x7dce00['model']['document']['differ']['getChangedMarkers']()),_0x52f1d1=new Set();for(const {name:_0x3fdf4b,data:_0x4f5c68}of _0x50655b){const {group:_0x4a6a66,type:_0x546a37,subType:_0x5f118b,id:_0x52a1bc}=this['_splitMarkerName'](_0x3fdf4b);if('suggestion'!==_0x4a6a66)continue;const _0x57ca89=this['_suggestions']['get'](_0x52a1bc);if(null!=_0x4f5c68['newRange']){'formatInline'==_0x546a37&&(_0x256a95=_0x256a95||Lt(_0x4f5c68['newRange'],_0x3fdf4b,_0x188400,_0x7dce00['model']['schema']));const _0x4d664e='attribute'==_0x546a37&&this['_isBlockAttribute'](_0x5f118b['split']('|')[0x0]);if(_0x4f5c68['newRange']['isCollapsed']||'$graveyard'==_0x4f5c68['newRange']['root']['rootName']||'formatBlock'==_0x546a37&&!Ht(_0x4f5c68['newRange'])||_0x4d664e&&!Ht(_0x4f5c68['newRange'])||'deletion'==_0x546a37&&!(!Ft(_0x571472=_0x4f5c68['newRange'])&&!function(_0x3ca72d){return _0x3ca72d['start']['parent']==_0x3ca72d['end']['nodeBefore']&&_0x3ca72d['start']['isAtEnd'];}(_0x571472)))_0x188400['removeMarker'](_0x3fdf4b),_0x256a95=!0x0;else{if(!_0x57ca89||!_0x57ca89['isInContent'])continue;if(_0x4f5c68['newRange']&&_0x4f5c68['oldRange']&&_0x4f5c68['newRange']['isEqual'](_0x4f5c68['oldRange']))continue;_0x52f1d1['add'](_0x57ca89);}}}var _0x571472;return _0x52f1d1['size']>0x0&&(_0x256a95=!!this['_joinWithAdjacentSuggestions'](_0x52f1d1)||_0x256a95),_0x256a95;}),_0x7dce00['model']['document']['registerPostFixer'](_0x372613=>{let _0x4cbb2f=!0x1;for(const _0xb6af31 of _0x7dce00['model']['document']['differ']['getChanges']())if('insert'==_0xb6af31['type'])for(const _0x235c43 of this['_suggestions']['values']()){if(_0x235c43['isMultiRange']||!_0x235c43['isInContent'])continue;const _0xcc5220='formatBlock'==_0x235c43['type'],_0x4cd768=this['_getAttributeKey'](_0x235c43),_0x35eb29=_0x4cd768&&this['_isBlockAttribute'](_0x4cd768);if(!_0xcc5220&&!_0x35eb29)continue;const _0x2cd6f0=_0x235c43['getFirstRange']();if(_0x2cd6f0['start']['parent']!=_0x2cd6f0['end']['parent']&&!_0x2cd6f0['end']['isAtEnd']){const _0x106167=_0x7dce00['model']['createPositionAt'](_0x2cd6f0['start']['nodeAfter'],'end'),_0x32cd32=_0x7dce00['model']['createRange'](_0x2cd6f0['start'],_0x106167);_0x372613['updateMarker'](_0x235c43['getFirstMarker'](),{'range':_0x32cd32}),_0x4cbb2f=!0x0;}}return _0x4cbb2f;}),_0x7dce00['model']['document']['registerPostFixer'](_0x5ea678=>this['_processAttributeChanges'](_0x5ea678)),_0x7dce00['model']['document']['registerPostFixer'](_0x801277=>!_0x801277['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x801277)),_0x7dce00['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x7dce00['model']['document']['on']('change:data',(_0x495571,_0x84a079)=>{if(!_0x84a079['isLocal']||_0x84a079['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1f87fd=_0x7dce00['model']['document']['differ']['getChanges']();if(0x0==_0x1f87fd['length'])return;const _0x25bde7=[],_0x190f57=_0x1f87fd['filter'](_0x342738=>'attribute'==_0x342738['type']),_0x67beb1=_0x1f87fd['filter'](_0x3cc9b5=>'insert'==_0x3cc9b5['type']&&'$text'!=_0x3cc9b5['name']);for(const _0x5dee32 of _0x190f57)this['_isRegisteredAttribute'](_0x5dee32['attributeKey'])&&_0x25bde7['push']({'key':_0x5dee32['attributeKey'],'newValue':_0x5dee32['attributeNewValue'],'oldValue':_0x5dee32['attributeOldValue'],'range':qt(_0x5dee32['range'],_0x7dce00['model'])});for(const _0x4bd70c of _0x67beb1){if('rename'!=_0x4bd70c['action']&&'refresh'!=_0x4bd70c['action'])continue;const _0x1b443d=zt(_0x4bd70c['position']['nodeAfter'],_0x7dce00['model']),_0x4d0379=_0x4bd70c['before'];'rename'==_0x4bd70c['action']&&_0x25bde7['push']({'key':m,'newValue':_0x4bd70c['name'],'oldValue':_0x4d0379['name'],'range':_0x1b443d});for(const [_0x2fc53b,_0x1c5f1a]of _0x4d0379['attributes']){if(!this['_isRegisteredAttribute'](_0x2fc53b))continue;const _0x494782=_0x4bd70c['attributes']['get'](_0x2fc53b);_0x1c5f1a!==_0x494782&&_0x25bde7['push']({'key':_0x2fc53b,'newValue':_0x494782,'oldValue':_0x1c5f1a,'range':_0x1b443d});}for(const [_0xe95495,_0x2e095e]of _0x4bd70c['attributes'])this['_isRegisteredAttribute'](_0xe95495)&&(_0x4d0379['attributes']['has'](_0xe95495)||_0x25bde7['push']({'key':_0xe95495,'newValue':_0x2e095e,'oldValue':null,'range':_0x1b443d}));}0x0!=_0x25bde7['length']&&_0x7dce00['model']['enqueueChange'](_0x84a079,_0x5d11fe=>{const _0x5cabe4=_0x2730a7();for(const {range:_0x517248,key:_0x1828d6,oldValue:_0x5bbdbe,newValue:_0x24ffca}of _0x25bde7)this['markAttributeChange'](_0x517248,_0x1828d6,_0x5bbdbe,_0x24ffca,{'groupId':_0x5cabe4});this['_reduceExistingSuggestions'](_0x5d11fe,_0x25bde7);});},{'priority':'lowest'}),_0x7dce00['model']['markers']['on']('update:suggestion',(_0x283d0a,_0x597128,_0x2d2f32)=>{if(null==_0x2d2f32){const {id:_0x2ea079}=this['_splitMarkerName'](_0x597128['name']),_0x8c6432=this['_suggestions']['get'](_0x2ea079);_0x8c6432&&_0x8c6432['addMarkerName'](_0x597128['name']);}}),_0x7dce00['model']['document']['on']('change:data',()=>{const _0x5584ac=Array['from'](_0x7dce00['model']['document']['differ']['getChangedMarkers']())['filter'](_0x3a41d8=>'suggestion'===this['_splitMarkerName'](_0x3a41d8['name'])['group']);if(0x0===_0x5584ac['length'])return;_0x5584ac['sort']((_0x38d3ae,_0x69d37)=>{const _0x344065=_0x38d3ae['data']['oldRange'],_0x393f75=_0x69d37['data']['oldRange'];return null===_0x344065&&null===_0x393f75?0x0:null===_0x344065&&null!==_0x393f75?-0x1:null!==_0x344065&&null===_0x393f75?0x1:_0x344065['start']['isBefore'](_0x393f75['start'])?-0x1:0x1;});const _0x16e70e=new Set(),_0x590f39=new Set();for(const {name:_0x40a322,data:_0x2638e9}of _0x5584ac){const {id:_0x4e9280}=this['_splitMarkerName'](_0x40a322);if(null===_0x2638e9['oldRange']){const _0x3c5ae3=this['_handleNewSuggestionMarker'](_0x40a322);_0x590f39['add'](_0x3c5ae3);}else{const _0x7f067a=this['_suggestions']['get'](_0x4e9280);null!==_0x2638e9['newRange']||_0x7f067a['isInContent']?(_0x16e70e['add'](_0x7f067a['head']),_0x590f39['add'](_0x7f067a)):this['_removeSuggestion'](_0x7f067a);}}_0x590f39['size']>0x0&&this['_refreshSuggestionsChain'](_0x590f39);for(const _0xfcc36e of _0x16e70e)this['fire']('suggestionChanged',_0xfcc36e);}),_0x7dce00['model']['on']('applyOperation',(_0x3785cb,_0x5cd9d9)=>{const _0x178ef7=_0x5cd9d9[0x0];if(!this['_suggestions']['size'])return;if(!_0x178ef7['isDocumentOperation'])return;if(_0x178ef7['batch']['isUndo']||!_0x178ef7['batch']['isLocal'])return;let _0xf16bdd,_0x5ae0c6;switch(_0x178ef7['type']){case'insert':_0xf16bdd=_0x7dce00['model']['createPositionAt'](_0x178ef7['position']),_0x5ae0c6=_0xf16bdd['getShiftedBy'](_0x178ef7['howMany']);break;case'split':_0xf16bdd=_0x7dce00['model']['createPositionAt'](_0x178ef7['splitPosition']),_0x5ae0c6=_0x7dce00['model']['createPositionAt'](_0x178ef7['moveTargetPosition']);break;case'move':_0xf16bdd=_0x7dce00['model']['createPositionAt'](_0x178ef7['targetPosition']),_0x5ae0c6=_0xf16bdd['getShiftedBy'](_0x178ef7['howMany']);break;default:return;}const _0x51ca71=_0x7dce00['model']['createRange'](_0xf16bdd,_0x5ae0c6);_0x7dce00['model']['change'](()=>{for(const {suggestion:_0x2974fd,meta:_0x2c6d4f}of this['_findSuggestions'](_0x51ca71)){if(_0x2974fd['isMultiRange'])continue;if('formatInline'==_0x2974fd['type'])continue;const _0xe1ffb9=this['_getAttributeKey'](_0x2974fd);if(_0xe1ffb9&&this['_isBlockAttribute'](_0xe1ffb9)&&'split'!=_0x178ef7['type'])continue;const _0x548054=_0x2974fd['data']&&_0x2974fd['data']['multipleBlocks'];('formatBlock'!=_0x2974fd['type']||'split'==_0x178ef7['type']&&!_0x548054)&&(_0x2c6d4f['containsRangeInObject']||'insertion'==_0x2974fd['type']&&_0x2c6d4f['isOwn']||_0x2974fd['getFirstRange']()['containsRange'](_0x51ca71)&&this['_breakSuggestionMarker'](_0x2974fd,_0xf16bdd,_0x5ae0c6));}});},{'priority':'lowest'}),_0x7dce00['model']['on']('deleteContent',(_0x2288b1,_0x4ae0f4)=>{const _0x175c55=_0x4ae0f4[0x0],_0x11cf1d=_0x4ae0f4[0x1];if(_0x11cf1d&&_0x11cf1d['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x175c55['isCollapsed'])return;const _0x37511b=_0x7dce00['model']['schema'],{start:_0x4d12a2,end:_0xd3d4b}=_0x175c55['getFirstRange'](),_0x35b5ff=_0x4d12a2['nodeAfter']&&_0x37511b['isLimit'](_0x4d12a2['nodeAfter'])?null:_0x37511b['getNearestSelectionRange'](_0x4d12a2,'forward'),_0x58027e=_0xd3d4b['nodeBefore']&&_0x37511b['isLimit'](_0xd3d4b['nodeBefore'])?null:_0x37511b['getNearestSelectionRange'](_0xd3d4b,'backward'),_0x4e7220=_0x7dce00['model']['createRange'](_0x35b5ff?_0x35b5ff['start']:_0x4d12a2,_0x58027e?_0x58027e['end']:_0xd3d4b);_0x7dce00['model']['change'](_0x34b34e=>{this['markDeletion'](_0x4e7220);const _0xae485d=_0x7dce00['model']['schema']['getNearestSelectionRange'](_0x4e7220['start']);_0x175c55['is']('documentSelection')?_0x34b34e['setSelection'](_0xae485d):_0x175c55['setTo'](_0xae485d);}),_0x2288b1['stop']();},{'priority':_0x1ed5be['normal']+0xa}),_0x7dce00['model']['on']('insertContent',(_0x3b5b99,_0x43bb01)=>{const _0x46dacc=_0x43bb01[_0x43bb01['length']-0x1];_0x46dacc&&_0x46dacc['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x7dce00['model']['change'](()=>{let _0x2b88d3=_0x7dce00['model']['insertContent'](_0x43bb01[0x0],_0x43bb01[0x1],_0x43bb01[0x2],{'forceDefaultExecution':!0x0});if(!_0x2b88d3)return;_0x3b5b99['return']=_0x2b88d3['clone']();const _0x32b029=_0x2b88d3['end']['nodeBefore'],_0x3eba30=_0x7dce00['model']['schema'];_0x32b029&&_0x3eba30['isBlock'](_0x32b029)&&!_0x3eba30['isObject'](_0x32b029)&&(_0x2b88d3=_0x7dce00['model']['createRange'](_0x2b88d3['start'],_0x7dce00['model']['createPositionAt'](_0x32b029,'end'))),this['markInsertion'](_0x2b88d3);}),_0x3b5b99['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3208a6=new O(_0x7dce00,this['_suggestions']);_0x7dce00['commands']['add']('acceptSuggestion',_0x3208a6),this['enableCommand']('acceptSuggestion');const _0x54c6e0=new R(_0x7dce00,this['_suggestions']);_0x7dce00['commands']['add']('discardSuggestion',_0x54c6e0),this['enableCommand']('discardSuggestion'),_0x7dce00['commands']['add']('acceptAllSuggestions',new x(_0x7dce00,_0x3208a6,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x7dce00['commands']['add']('discardAllSuggestions',new x(_0x7dce00,_0x54c6e0,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x7dce00['commands']['add']('acceptSelectedSuggestions',new E(_0x7dce00,_0x3208a6,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x7dce00['commands']['add']('discardSelectedSuggestions',new E(_0x7dce00,_0x54c6e0,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2a3638=_0x7dce00['plugins']['get']('CommentsRepository');this['listenTo'](_0x2a3638,'addComment',(_0x4f2ba9,{threadId:_0x1407aa})=>{const _0x34aceb=this['_suggestions']['get'](_0x1407aa);_0x34aceb&&_0x34aceb['commentThread']&&0x1===_0x34aceb['commentThread']['length']&&this['_updateSuggestionData'](_0x1407aa,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2a3638,'removeComment',(_0x39f002,{threadId:_0x2fc95e})=>{const _0x34194e=this['_suggestions']['get'](_0x2fc95e);_0x34194e&&_0x34194e['commentThread']&&!_0x34194e['commentThread']['length']&&this['_updateSuggestionData'](_0x2fc95e,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x4185aa){const _0x4e08e7=_0x52aee0([0x31,0x4d,0x41,0x4f,0x4e,0x50,0x75,0x72,0x58,0x34,0x52,0x7a,0x36,0x6c,0x32,0x57,0x6e,0x69,0x51,0x62,0x73,0x4c,0x53,0x66,0x6b,0x47,0x61,0x56,0x68,0x4a,0x48,0x65,0x42,0x67,0x45,0x6f,0x64,0x6d,0x71,0x39,0x74,0x76,0x49,0x43,0x6a,0x59,0x63,0x46,0x54,0x33,0x55,0x78,0x70,0x5a,0x4b,0x44,0x37,0x35,0x77,0x38,0x79,0x30]),_0x484e3d=0x7e09cfe8,_0xf4811c=0x7e0e9040^_0x484e3d,_0x4a6d8d=window[_0x52aee0([0x44,0x61,0x74,0x65])][_0x52aee0([0x6e,0x6f,0x77])](),_0x31f848=_0x4185aa[_0x52aee0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2eebd0=new window[(_0x52aee0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x224c26=>{_0x31f848[_0x52aee0([0x6f,0x6e,0x63,0x65])](_0x52aee0([0x72,0x65,0x61,0x64,0x79]),_0x224c26);}),_0x37e687={[_0x52aee0([0x6b,0x74,0x79])]:_0x52aee0([0x45,0x43]),[_0x52aee0([0x75,0x73,0x65])]:_0x52aee0([0x73,0x69,0x67]),[_0x52aee0([0x63,0x72,0x76])]:_0x52aee0([0x50,0x2d,0x32,0x35,0x36]),[_0x52aee0([0x78])]:_0x52aee0([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]),[_0x52aee0([0x79])]:_0x52aee0([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]),[_0x52aee0([0x61,0x6c,0x67])]:_0x52aee0([0x45,0x53,0x32,0x35,0x36])},_0x4ecb0e=_0x31f848[_0x52aee0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x52aee0([0x67,0x65,0x74])](_0x52aee0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5d7074(){let _0x574205,_0x58c1bb=null,_0x2ebce6=null;try{if(_0x4ecb0e==_0x52aee0([0x47,0x50,0x4c]))return _0x52aee0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x574205=_0x56e141(),!_0x574205)return _0x52aee0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x574205[_0x52aee0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2ebce6=_0x4817d3(_0x574205[_0x52aee0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x574205[_0x52aee0([0x6a,0x74,0x69])])),await _0x47cdcf()?_0x134921()?_0x4d85b5()?_0x52aee0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xfaebc()?(_0x574205[_0x52aee0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x52aee0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x58c1bb=_0x227059(_0x52aee0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x574205[_0x52aee0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x52aee0([0x74,0x72,0x69,0x61,0x6c])&&(_0x58c1bb=_0x227059(_0x52aee0([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4049f7()):_0x52aee0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x52aee0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x52aee0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1f4345){return _0x52aee0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4d85b5(){const _0x158c14=[_0x52aee0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x52aee0([0x74,0x72,0x69,0x61,0x6c])][_0x52aee0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x574205[_0x52aee0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4a6d8d/0x3e8:0xe10*_0xf4811c;return _0x574205[_0x52aee0([0x65,0x78,0x70])]<_0x158c14;}function _0x134921(){const _0x11711d=_0x574205[_0x52aee0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x11711d)return!0x1;if(_0x11711d[_0x52aee0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52aee0([0x2a])))return!0x0;if(_0x11711d[_0x52aee0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52aee0([0x54,0x43])))return!0x0;if(_0x11711d[_0x52aee0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52aee0([0x52,0x54,0x43]))){if(_0x2dda5d())return!0x0;if(_0x19bfe9()||_0x2c0cbd())return!0x0;}return!0x1;}function _0xfaebc(){const _0x46741b=_0x574205[_0x52aee0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x46741b||0x0==_0x46741b[_0x52aee0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2540e1}=new URL(window[_0x52aee0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x46741b[_0x52aee0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2540e1))return!0x0;const _0x3cad69=_0x2540e1[_0x52aee0([0x73,0x70,0x6c,0x69,0x74])](_0x52aee0([0x2e]));return _0x46741b[_0x52aee0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3f4f71=>_0x3f4f71[_0x52aee0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52aee0([0x2a])))[_0x52aee0([0x6d,0x61,0x70])](_0x57e539=>_0x57e539[_0x52aee0([0x73,0x70,0x6c,0x69,0x74])](_0x52aee0([0x2e])))[_0x52aee0([0x73,0x6f,0x6d,0x65])](_0x40465a=>_0x3cad69[_0x52aee0([0x65,0x76,0x65,0x72,0x79])]((_0xe772ee,_0x2f7f97)=>_0x40465a[_0x2f7f97]===_0xe772ee||_0x40465a[_0x2f7f97]===_0x52aee0([0x2a])));}function _0x4049f7(){return _0x58c1bb&&_0x2ebce6?new window[(_0x52aee0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x122cd7,_0x4b1516)=>{_0x58c1bb[_0x52aee0([0x74,0x68,0x65,0x6e])](_0x122cd7,_0x4b1516),_0x2ebce6[_0x52aee0([0x74,0x68,0x65,0x6e])](_0x40be3b=>{_0x40be3b!=_0x52aee0([0x56,0x61,0x6c,0x69,0x64])&&_0x122cd7(_0x40be3b);},_0x4b1516);}):_0x58c1bb||_0x2ebce6||_0x52aee0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4817d3(_0x32d607,_0x3bb661){return new window[(_0x52aee0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x59d860=>{if(_0x5b933d())return _0x59d860(_0x52aee0([0x56,0x61,0x6c,0x69,0x64]));_0x333702(),_0x31f848[_0x52aee0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x52aee0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x485adf=!0x1;const _0x24fe65=_0x2730a7();function _0x343e66(_0x2a9b47){return!!_0x2a9b47&&(typeof _0x2a9b47===_0x52aee0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2a9b47===_0x52aee0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2a9b47[_0x52aee0([0x74,0x68,0x65,0x6e])]===_0x52aee0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2a9b47[_0x52aee0([0x63,0x61,0x74,0x63,0x68])]===_0x52aee0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x38130e(_0xcab826){_0x2b9f95(_0xcab826)[_0x52aee0([0x74,0x68,0x65,0x6e])](_0xa7b129=>{if(!_0xa7b129||_0xa7b129[_0x52aee0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x52aee0([0x6f,0x6b]))return _0x52aee0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3c8d71(_0x2127ed(_0x24fe65+_0x3bb661))!=_0xa7b129[_0x52aee0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x52aee0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x52aee0([0x56,0x61,0x6c,0x69,0x64]);})[_0x52aee0([0x74,0x68,0x65,0x6e])](_0x5c3d00=>(_0x28230a(),_0x5c3d00),()=>{const _0x5cacad=_0x3ce586();return null==_0x5cacad?(_0x28230a(),_0x52aee0([0x56,0x61,0x6c,0x69,0x64])):_0x52aee0(_0x4a6d8d-_0x5cacad>(0x5a054be8^_0x484e3d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x52aee0([0x74,0x68,0x65,0x6e])](_0x59d860)[_0x52aee0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x59d860(_0x52aee0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2bdf4d=0x7e3f2168^_0x484e3d;function _0x28230a(){const _0x511ee7=_0x52aee0([0x6c,0x6c,0x63,0x74,0x2d])+_0x3c8d71(_0x2127ed(_0x32d607)),_0x8ef7e2=_0x347e98(_0x3c8d71(window[_0x52aee0([0x4d,0x61,0x74,0x68])][_0x52aee0([0x63,0x65,0x69,0x6c])](_0x4a6d8d/_0x2bdf4d)));window[_0x52aee0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x52aee0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x511ee7,_0x8ef7e2);}function _0x3ce586(){const _0x4099e6=_0x52aee0([0x6c,0x6c,0x63,0x74,0x2d])+_0x3c8d71(_0x2127ed(_0x32d607)),_0x3bdff3=window[_0x52aee0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x52aee0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4099e6);return _0x3bdff3?window[_0x52aee0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x347e98(_0x3bdff3),0x10)*_0x2bdf4d:null;}function _0x2b9f95(_0x3d98bc){return new window[(_0x52aee0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x225a41,_0x17f89d)=>{_0x3d98bc[_0x52aee0([0x74,0x68,0x65,0x6e])](_0x225a41,_0x17f89d),window[_0x52aee0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x17f89d,0x7e081b28^_0x484e3d);});}}_0x31f848[_0x52aee0([0x6f,0x6e])](_0x52aee0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x50b2e2,_0x1bd13f)=>{if(_0x1bd13f[0x0]!=_0x32d607)return _0x59d860(_0x52aee0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1bd13f[0x1]={..._0x1bd13f[0x1],[_0x52aee0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x24fe65};},{[_0x52aee0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x52aee0([0x68,0x69,0x67,0x68])}),_0x31f848[_0x52aee0([0x6f,0x6e])](_0x52aee0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x138a96=>{_0x343e66(_0x138a96[_0x52aee0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x485adf=!0x0,_0x38130e(_0x138a96[_0x52aee0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x52aee0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x52aee0([0x6c,0x6f,0x77])}),_0x2eebd0[_0x52aee0([0x74,0x68,0x65,0x6e])](()=>{_0x485adf||_0x59d860(_0x52aee0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5b933d(){return _0x31f848[_0x52aee0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x52aee0([0x76,0x69,0x65,0x77])][_0x52aee0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x52aee0([0x61,0x75,0x74,0x6f]);}function _0x333702(){_0x31f848[_0x52aee0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x52aee0([0x76,0x69,0x65,0x77])][_0x52aee0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x52aee0([0x61,0x75,0x74,0x6f]);}}function _0x227059(_0x363bb2){const _0x3e2011=[new window[(_0x52aee0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x6e5c8=>setTimeout(_0x6e5c8,0x7e00f124^_0x484e3d)),_0x2eebd0[_0x52aee0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x52aee0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x458170=>{let _0x26d7ca=0x0;_0x31f848[_0x52aee0([0x6d,0x6f,0x64,0x65,0x6c])][_0x52aee0([0x6f,0x6e])](_0x52aee0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x39ec9d,_0x1e13ba)=>{_0x1e13ba[0x0][_0x52aee0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x26d7ca++,_0x26d7ca==(0x7e09ce10^_0x484e3d)&&(_0x458170(),_0x39ec9d[_0x52aee0([0x6f,0x66,0x66])]());});}))];return window[_0x52aee0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x52aee0([0x72,0x61,0x63,0x65])](_0x3e2011)[_0x52aee0([0x74,0x68,0x65,0x6e])](()=>_0x363bb2);}async function _0x116dc3(){await _0x2eebd0,_0x31f848[_0x52aee0([0x6d,0x6f,0x64,0x65,0x6c])][_0x52aee0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xc9f7ca,_0x31f848[_0x52aee0([0x6d,0x6f,0x64,0x65,0x6c])][_0x52aee0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xc9f7ca,_0x31f848[_0x52aee0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x52aee0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2dda5d(){return _0x1a2294(_0x52aee0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x21887a(_0x52aee0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x52aee0([0x73,0x74,0x61,0x74,0x65])]==_0x52aee0([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x19bfe9(){return _0x1a2294(_0x52aee0([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 _0x2c0cbd(){return _0x1a2294(_0x52aee0([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1d24ed(_0x4321b1){const _0x362669=_0x21fdc5();_0x31f848[_0x362669]=_0x52aee0([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4321b1,_0x4321b1!=_0x52aee0([0x56,0x61,0x6c,0x69,0x64])&&_0x116dc3();}function _0x21fdc5(){const _0x10e3b3=window[_0x52aee0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x52aee0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x52aee0([0x6e,0x6f,0x77])]())[_0x52aee0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x52aee0([0x2e]),'');let _0x5036ec=_0x52aee0([0x4d]);for(let _0xbb54fc=0x0;_0xbb54fc<_0x10e3b3[_0x52aee0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xbb54fc+=0x2){let _0x5187f7=window[_0x52aee0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x10e3b3[_0x52aee0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xbb54fc,_0xbb54fc+0x2));_0x5187f7>=_0x4e08e7[_0x52aee0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5187f7-=_0x4e08e7[_0x52aee0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5036ec+=_0x4e08e7[_0x5187f7];}return _0x5036ec;}function _0x56e141(){const _0x5411a7=_0x4ecb0e[_0x52aee0([0x73,0x70,0x6c,0x69,0x74])](_0x52aee0([0x2e]));if(0x3!=_0x5411a7[_0x52aee0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3226e3(_0x5411a7[0x1]);function _0x3226e3(_0x540b11){const _0x3bbcbd=_0x310320(_0x540b11);return _0x3bbcbd&&_0x34021c()?_0x3bbcbd:null;function _0x34021c(){const _0x4f7e42=_0x3bbcbd[_0x52aee0([0x6a,0x74,0x69])],_0x3748b3=window[_0x52aee0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4f7e42[_0x52aee0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4f7e42[_0x52aee0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x552a7f={..._0x3bbcbd,[_0x52aee0([0x6a,0x74,0x69])]:_0x4f7e42[_0x52aee0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4f7e42[_0x52aee0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x552a7f[_0x52aee0([0x76,0x63])],_0x2127ed(_0x552a7f)==_0x3748b3;}}}async function _0x47cdcf(){let _0x575239=!0x0;try{const _0x5a2f09=_0x4ecb0e[_0x52aee0([0x73,0x70,0x6c,0x69,0x74])](_0x52aee0([0x2e])),[_0x1b6513,_0x200445,_0x32f6dc]=_0x5a2f09;return _0x5552da(_0x1b6513),await _0x458f64(_0x1b6513,_0x200445,_0x32f6dc),_0x575239;}catch(_0x19e760){return!0x1;}function _0x5552da(_0x739c55){const _0x17a473=_0x310320(_0x739c55);_0x17a473&&_0x17a473[_0x52aee0([0x61,0x6c,0x67])]==_0x52aee0([0x45,0x53,0x32,0x35,0x36])||(_0x575239=!0x1);}async function _0x458f64(_0x1d0c78,_0x4cf9a9,_0x4fa817){const _0x33645e=window[_0x52aee0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x52aee0([0x66,0x72,0x6f,0x6d])](_0x26bb9(_0x4fa817),_0x50b4e3=>_0x50b4e3[_0x52aee0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1e6fa3=new window[(_0x52aee0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x52aee0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1d0c78+_0x52aee0([0x2e])+_0x4cf9a9),_0x520167=window[_0x52aee0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x52aee0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x520167)return;const _0xcd9431=await _0x520167[_0x52aee0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x52aee0([0x6a,0x77,0x6b]),_0x37e687,{[_0x52aee0([0x6e,0x61,0x6d,0x65])]:_0x52aee0([0x45,0x43,0x44,0x53,0x41]),[_0x52aee0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x52aee0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x52aee0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x520167[_0x52aee0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x52aee0([0x6e,0x61,0x6d,0x65])]:_0x52aee0([0x45,0x43,0x44,0x53,0x41]),[_0x52aee0([0x68,0x61,0x73,0x68])]:{[_0x52aee0([0x6e,0x61,0x6d,0x65])]:_0x52aee0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xcd9431,_0x33645e,_0x1e6fa3)||(_0x575239=!0x1);}}function _0x310320(_0x1d24a2){return _0x1d24a2[_0x52aee0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x52aee0([0x65,0x79]))?JSON[_0x52aee0([0x70,0x61,0x72,0x73,0x65])](_0x26bb9(_0x1d24a2)):null;}function _0x26bb9(_0x313923){return window[_0x52aee0([0x61,0x74,0x6f,0x62])](_0x313923[_0x52aee0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x52aee0([0x2b]))[_0x52aee0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x52aee0([0x2f])));}function _0x2127ed(_0x2fd4a9){let _0x36595b=0x1505;function _0x1aa81d(_0x2bf3f4){for(let _0x129c47=0x0;_0x129c47<_0x2bf3f4[_0x52aee0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x129c47++){const _0x48e054=_0x2bf3f4[_0x52aee0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x129c47);_0x36595b=(_0x36595b<<0x5)+_0x36595b+_0x48e054,_0x36595b&=_0x36595b;}}function _0xb30fd9(_0xb66773){Array[_0x52aee0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xb66773)?_0xb66773[_0x52aee0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xb30fd9):_0xb66773&&typeof _0xb66773==_0x52aee0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x52aee0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xb66773)[_0x52aee0([0x73,0x6f,0x72,0x74])]()[_0x52aee0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5d08e3,_0x38f0eb])=>{_0x1aa81d(_0x5d08e3),_0xb30fd9(_0x38f0eb);}):_0x1aa81d(window[_0x52aee0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xb66773));}return _0xb30fd9(_0x2fd4a9),_0x36595b>>>0x0;}function _0x3c8d71(_0x52a63d){return _0x52a63d[_0x52aee0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x52aee0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x52aee0([0x30]));}function _0x347e98(_0x3e493a){return _0x3e493a[_0x52aee0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x52aee0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x52aee0([0x6a,0x6f,0x69,0x6e])]('');}function _0x1a2294(_0x21fd98){return _0x31f848[_0x52aee0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x52aee0([0x68,0x61,0x73])](_0x21fd98);}function _0x21887a(_0x54032f){return _0x31f848[_0x52aee0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x52aee0([0x67,0x65,0x74])](_0x54032f);}function _0xc9f7ca(){}function _0x52aee0(_0x3a6e20){return _0x3a6e20['map'](_0x2733f7=>String['fromCharCode'](_0x2733f7))['join']('');}_0x1d24ed(await _0x5d7074());}(this);}set['adapter'](_0x3a3b8f){if(this['_adapter'])throw new _0x4d7761('track-changes-adapter-already-set',this);this['_adapter']=_0x3a3b8f;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x5e92d8=!0x1,toJSON:_0x30f874=!0x1}={}){const _0x532265=[];for(const _0x30a0c6 of this['_suggestions']['values']())_0x5e92d8&&!_0x30a0c6['isInContent']||_0x532265['push'](_0x30a0c6);return _0x30f874?_0x532265['map'](_0x5a3424=>_0x5a3424['toJSON']()):_0x532265;}['getSuggestion'](_0x55b2ed){const _0x33569b=this['_suggestions']['get'](_0x55b2ed);if(!_0x33569b)throw new _0x4d7761('track-changes-suggestion-not-found',this);return _0x33569b;}['hasSuggestion'](_0x173ef9){return this['_suggestions']['has'](_0x173ef9);}['addSuggestionData'](_0x5c3d98){const {authorId:_0x2fd76f,id:_0x35d165,attributes:_0x44d51c}=_0x5c3d98,[_0x591e13,_0x5f3796]=_0x5c3d98['type']['split'](':'),_0x92871d=this['_suggestions']['get'](_0x35d165)||this['_createSuggestion'](_0x591e13,_0x5f3796,_0x35d165,_0x2fd76f,_0x44d51c);if(this['_addThreadToSuggestion'](_0x92871d),this['_checkSuggestionCorrectness'](_0x92871d,_0x591e13,_0x5f3796||null,_0x2fd76f),_0x92871d['createdAt']=_0x5c3d98['createdAt'],_0x92871d['_isDataLoaded']=!0x0,_0x44d51c&&_0x44d51c['@external']){const _0x13cffb=_0x44d51c['@external'],_0x23c5a0=this['_getExternalAuthor'](_0x13cffb['authorName']);_0x92871d['authoredAt']=_0x13cffb['createdAt'],_0x92871d['author']=_0x23c5a0,_0x92871d['isExternal']=!0x0;}else _0x92871d['authoredAt']=_0x5c3d98['createdAt'];switch(_0x5c3d98['data']&&(_0x92871d['data']=_0x5c3d98['data']),_0x5c3d98['attributes']&&(_0x92871d['attributes']=_0x5c3d98['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x92871d['_saved']=!0x0),this['_suggestionState']['get'](_0x92871d)){case'notReady':this['_suggestionState']['set'](_0x92871d,'dataReady');break;case'markerReady':_0x92871d['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x92871d])),this['_refreshSuggestionsChain'](new Set([_0x92871d])),this['_suggestionState']['set'](_0x92871d,'ready'),this['fire']('suggestionLoaded',_0x92871d)):this['_suggestionState']['set'](_0x92871d,'removed');}return _0x92871d;}['acceptSuggestion'](_0x30faab){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1dd5a1 of _0x30faab['getAllAdjacentSuggestions']())_0x1dd5a1['accept']();});});}['discardSuggestion'](_0x5129aa){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xd04e19 of _0x5129aa['getAllAdjacentSuggestions']())_0xd04e19['discard']();});});}['enableCommand'](_0x32a959,_0x272731){const _0x583e09=this['editor']['commands']['get'](_0x32a959);if(!_0x583e09)throw new _0x4d7761('track-changes-command-not-found',this,{'commandName':_0x32a959});if(this['_enabledCommands']['has'](_0x583e09))throw new _0x4d7761('track-changes-enable-command-twice',this,{'commandName':_0x32a959});this['_enabledCommands']['add'](_0x583e09),_0x272731&&_0x583e09['on']('execute',(_0x4f66f5,_0x4d0679)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x4d0679['length']>0x0&&_0x4d0679[_0x4d0679['length']-0x1]&&_0x4d0679[_0x4d0679['length']-0x1]['forceDefaultExecution']?_0x4d0679['pop']():(_0x4f66f5['return']=_0x272731((..._0x178496)=>_0x583e09['execute'](..._0x178496,{'forceDefaultExecution':!0x0}),..._0x4d0679),_0x4f66f5['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x579334){let _0x3685a0,_0x582d02;const _0x3fcd0a=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3685a0=_0x579334();}catch(_0x3cb4b0){_0x582d02=_0x3cb4b0;}return _0x3fcd0a||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x582d02&&_0x4d7761['rethrowUnexpectedError'](_0x582d02,this),_0x3685a0;}['markInsertion'](_0x518fc0,_0xb8fe1a=null,_0x4114ea={}){if(_0x518fc0['isCollapsed'])return null;const _0x1dbdf8=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x32c02c,meta:_0x38b889}of this['_findSuggestions'](_0x518fc0,'insertion'))if(_0x38b889['isOwn']){if(!_0x38b889['isNextTo']){if(_0x38b889['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x32c02c,_0x4114ea))continue;return _0x32c02c;}if(Qt(_0x32c02c,_0x4114ea))return _0x32c02c;this['_breakSuggestionMarker'](_0x32c02c,_0x518fc0['start'],_0x518fc0['end']);break;}if(_0xb8fe1a==_0x32c02c['subType']&&Qt(_0x32c02c,_0x4114ea)){const _0x1b5ed6=_0x32c02c['getFirstRange']();return _0x1b5ed6['start']['isEqual'](_0x518fc0['end'])?this['_setSuggestionRange'](_0x32c02c,this['_model']['createRange'](_0x518fc0['start'],_0x1b5ed6['end'])):this['_setSuggestionRange'](_0x32c02c,this['_model']['createRange'](_0x1b5ed6['start'],_0x518fc0['end'])),_0x32c02c;}}const _0x6d97dd=_0x2730a7(),_0x24c2b4=_0x1dbdf8['id'],_0x25f8ea=_0xb8fe1a?'insertion:'+_0xb8fe1a:'insertion',_0x58f708=this['_setSuggestionData']({'id':_0x6d97dd,'type':_0x25f8ea,'createdAt':new Date(),'authorId':_0x24c2b4,'attributes':_0x4114ea});return this['_addSuggestionMarker'](_0x25f8ea,_0x6d97dd,_0x24c2b4,_0x518fc0),_0x58f708;}['markMultiRangeInsertion'](_0x3f4121,_0x3b0876='multi',_0x4ef0fc={}){const _0x19ec44=this['editor']['plugins']['get']('Users')['me'],_0x5e670e=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3b0876,'join');for(const _0x340f02 of this['getSuggestions']())if(_0x340f02['author']['id']==_0x19ec44['id']&&'insertion'==_0x340f02['type']&&_0x340f02['subType']==_0x3b0876&&Qt(_0x340f02,_0x4ef0fc)&&(_0x5e670e(_0x340f02['getRanges'](),_0x3f4121)||_0x5e670e(_0x3f4121,_0x340f02['getRanges']()))){for(const _0x916350 of _0x3f4121)_0x340f02['addRange'](_0x916350);return _0x340f02;}for(const {suggestion:_0x4c3a62,meta:_0x1e5f2a}of this['_findSuggestions'](_0x3f4121,'insertion')){if(!_0x1e5f2a['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1e5f2a['containsRangeInObject'])continue;if(!Qt(_0x4c3a62,_0x4ef0fc))continue;let _0xb6315a=!0x0;for(const _0x2da065 of _0x4c3a62['getRanges']())for(const _0xff7770 of _0x3f4121)if(!_0x2da065['containsRange'](_0xff7770)){_0xb6315a=!0x1;break;}if(_0xb6315a)return _0x4c3a62;}const _0x47a1d3=_0x2730a7(),_0x5c1b41=_0x19ec44['id'],_0x2579d5='insertion:'+_0x3b0876,_0x3f574b=this['_setSuggestionData']({'id':_0x47a1d3,'type':_0x2579d5,'createdAt':new Date(),'authorId':_0x5c1b41,'attributes':_0x4ef0fc});for(const _0x542010 of _0x3f4121)this['_addSuggestionMarker'](_0x2579d5,_0x47a1d3,_0x5c1b41,_0x542010,u['getMultiRangeId']());return _0x3f574b;}['markInlineFormat'](_0x1794ea,_0x5c1174,_0x11be37=null,_0x36aff5={}){if(_0x11be37=_0x11be37||Jt(_0x5c1174),_0x1794ea['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x466f80=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x11be37,'accept');return this['forceDefaultExecution'](()=>_0x466f80([_0x1794ea],_0x5c1174,_0x36aff5)),null;}const _0x4a8148=this['editor']['plugins']['get']('Users')['me'],_0x309dbb=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x4fd7fa,meta:_0x4f1e53}of this['_findSuggestions'](_0x1794ea,'insertion'))_0x4f1e53['isOwn']&&!_0x4f1e53['isInsideObject']&&_0x309dbb['push'](..._0x4fd7fa['getRanges']());}const _0x3cca4b=function(_0xdc96b5,_0x27dde2){const _0x380ccc=[];for(const _0x1da049 of _0x27dde2){const _0x2a02a6=_0xdc96b5['getIntersection'](_0x1da049);_0x2a02a6&&_0x380ccc['push'](_0x2a02a6);}return _0x380ccc;}(_0x1794ea,_0x309dbb),_0x314c18=function(_0x196a34,_0x15095d){const _0x9bd2e9=[_0x196a34];for(const _0x37bb24 of _0x15095d){let _0x5b7156=0x0;for(;_0x5b7156<_0x9bd2e9['length'];){const _0x463baf=_0x9bd2e9[_0x5b7156]['getDifference'](_0x37bb24);_0x9bd2e9['splice'](_0x5b7156,0x1,..._0x463baf),_0x5b7156+=_0x463baf['length'];}}return _0x9bd2e9;}(_0x1794ea,_0x309dbb);_0x3cca4b['length']&&this['_model']['change'](()=>{for(const _0x1ac4f5 of _0x3cca4b){const _0x462873=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x11be37,'accept');this['forceDefaultExecution'](()=>_0x462873([_0x1ac4f5],_0x5c1174,_0x36aff5));}});for(const _0x1c0a04 of _0x314c18){let _0x36c1ff=null,_0x53e784=_0x1c0a04['start'],_0x40321d=_0x1c0a04['end'];for(const {suggestion:_0x25c532,meta:_0x10b952}of this['_findSuggestions'](_0x1c0a04,'formatInline')){if(!_0x10b952['isOwn'])continue;if(_0x25c532['subType']!=_0x11be37)continue;if(!Qt(_0x25c532,_0x36aff5))continue;const _0x3d9110=_0x25c532['getFirstRange']();if(_0x3d9110['containsRange'](_0x1c0a04,!0x0))return null;_0x53e784=_0x53e784['isBefore'](_0x3d9110['start'])?_0x53e784:_0x3d9110['start'],_0x40321d=_0x40321d['isAfter'](_0x3d9110['end'])?_0x40321d:_0x3d9110['end'],_0x36c1ff?_0x3d9110['start']['isBefore'](_0x36c1ff['getFirstRange']()['start'])?(_0x36c1ff['removeMarkers'](),_0x36c1ff=_0x25c532):_0x25c532['removeMarkers']():_0x36c1ff=_0x25c532;}const _0x111574=this['_model']['createRange'](_0x53e784,_0x40321d);if(_0x36c1ff)this['_setSuggestionRange'](_0x36c1ff,_0x111574);else{const _0x5bccbf=_0x2730a7(),_0x4a63d9=_0x4a8148['id'];this['_setSuggestionData']({'id':_0x5bccbf,'type':'formatInline:'+_0x11be37,'data':_0x5c1174,'createdAt':new Date(),'authorId':_0x4a63d9,'attributes':_0x36aff5}),this['_addSuggestionMarker']('formatInline:'+_0x11be37,_0x5bccbf,_0x4a63d9,_0x111574);}}return null;}['markBlockFormat'](_0x5bb55a,_0xc44788,_0x3e9aa5=[],_0xd08c9c=null,_0xc80b1d={}){_0xc44788['formatGroupId']||(_0xc44788['formatGroupId']=_0xc44788['commandName']),_0xc44788['multipleBlocks']=_0x5bb55a['is']('range'),_0xd08c9c=_0xd08c9c||Jt(_0xc44788);const _0x1a6bf4=_0x3e9aa5['map'](_0x44006b=>zt(_0x44006b,this['_model'])),_0x2bbe1c=_0x5bb55a['is']('range')?_0x5bb55a:zt(_0x5bb55a,this['_model']);if('never'===this['_trackFormatChanges']){const _0x23f35d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xd08c9c,'accept');return this['forceDefaultExecution'](()=>_0x23f35d([_0x2bbe1c],_0xc44788,_0xc80b1d)),null;}_0x1a6bf4['push'](_0x2bbe1c);let _0x28b2b8=!0x0;for(const _0x1f4e37 of _0x1a6bf4)if(!this['_rangeIsInLocalUserInsertion'](_0x1f4e37)){_0x28b2b8=!0x1;break;}if(_0x28b2b8&&'always'!==this['_trackFormatChanges']){const _0x38458a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xd08c9c,'accept');return this['forceDefaultExecution'](()=>_0x38458a([_0x2bbe1c],_0xc44788,_0xc80b1d)),null;}let _0x34d4ca=null,_0x1ae9ef=_0x2bbe1c['start'],_0x1e23fe=_0x2bbe1c['end'];for(const {suggestion:_0x5bd7f0,meta:_0x34c484}of this['_findSuggestions'](_0x2bbe1c,'formatBlock')){if(!_0x34c484['isOwn'])continue;if(_0x34c484['isNextTo']||_0x34c484['containsRangeInObject']||_0x34c484['isInsideObject'])continue;if(_0x5bd7f0['data']['formatGroupId']!=_0xc44788['formatGroupId'])continue;if(!Qt(_0x5bd7f0,_0xc80b1d))continue;const _0x560659=_0x5bd7f0['getFirstRange']();if(_0x5bd7f0['subType']==_0xd08c9c){if(_0x560659['containsRange'](_0x2bbe1c,!0x0))return null;_0x1ae9ef=_0x1ae9ef['isBefore'](_0x560659['start'])?_0x1ae9ef:_0x560659['start'],_0x1e23fe=_0x1e23fe['isAfter'](_0x560659['end'])?_0x1e23fe:_0x560659['end'],_0x34d4ca?_0x560659['start']['isBefore'](_0x34d4ca['getFirstRange']()['start'])?(_0x34d4ca['removeMarkers'](),_0x34d4ca=_0x5bd7f0):_0x5bd7f0['removeMarkers']():_0x34d4ca=_0x5bd7f0;}else{const _0x3e4dce=_0x2bbe1c['getIntersection'](_0x560659);this['_cutOutSuggestionMarker'](_0x5bd7f0,_0x3e4dce);}}const _0x48630a=this['editor']['plugins']['get']('Users')['me'],_0x145fb1=_0x2730a7(),_0x55f5ea=_0x48630a['id'];if(_0x34d4ca)return this['_setSuggestionRange'](_0x34d4ca,this['_model']['createRange'](_0x1ae9ef,_0x1e23fe)),_0x34d4ca;{const _0x2b26e6=this['_setSuggestionData']({'id':_0x145fb1,'type':'formatBlock:'+_0xd08c9c,'data':_0xc44788,'createdAt':new Date(),'authorId':_0x55f5ea,'attributes':_0xc80b1d});return this['_addSuggestionMarker']('formatBlock:'+_0xd08c9c,_0x145fb1,_0x55f5ea,this['_model']['createRange'](_0x1ae9ef,_0x1e23fe)),_0x2b26e6;}}['markMultiRangeBlockFormat'](_0x4153b2,_0x5d5490,_0x2a35b0=[],_0x6c7827=null,_0x5bc2cd={}){_0x5d5490['formatGroupId']||(_0x5d5490['formatGroupId']=_0x5d5490['commandName']);const _0x2c6885=_0x4153b2[0x0];_0x5d5490['multipleBlocks']=_0x2c6885['is']('range'),_0x6c7827=_0x6c7827||Jt(_0x5d5490);const _0x1c3409=_0x2a35b0['map'](_0x2c4c3c=>zt(_0x2c4c3c,this['_model'])),_0x2f70d9=_0x2c6885['is']('range')?_0x4153b2:_0x4153b2['map'](_0x37c1fa=>zt(_0x37c1fa,this['_model']));if('never'===this['_trackFormatChanges']){const _0x477b16=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x6c7827,'accept');return this['forceDefaultExecution'](()=>_0x477b16(_0x2f70d9,_0x5d5490,_0x5bc2cd)),null;}_0x1c3409['push'](..._0x2f70d9);let _0x11df2c=!0x0;for(const _0x4f06a3 of _0x1c3409)if(!this['_rangeIsInLocalUserInsertion'](_0x4f06a3)){_0x11df2c=!0x1;break;}if(_0x11df2c&&'always'!==this['_trackFormatChanges']){const _0x5694a9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x6c7827,'accept');return this['forceDefaultExecution'](()=>_0x5694a9(_0x2f70d9,_0x5d5490,_0x5bc2cd)),null;}const _0x36196b=this['editor']['plugins']['get']('Users')['me'];for(const _0x4df676 of this['getSuggestions']()){if(_0x4df676['author']['id']!=_0x36196b['id'])continue;if('formatBlock'!=_0x4df676['type']||_0x4df676['data']['formatGroupId']!=_0x5d5490['formatGroupId'])continue;if(!Qt(_0x4df676,_0x5bc2cd))continue;const _0x2e05a5=_0x4df676['subType']==_0x6c7827;for(let _0x3f65ce=0x0;_0x3f65ce<_0x2f70d9['length'];_0x3f65ce++){const _0x122efb=_0x2f70d9[_0x3f65ce];for(const _0x16d85b of _0x4df676['getMarkers']()){const _0x3ef556=_0x16d85b['getRange']();if(_0x122efb['isEqual'](_0x3ef556)){_0x2e05a5?(_0x2f70d9['splice'](_0x3f65ce,0x1),_0x3f65ce--):_0x4df676['removeMarker'](_0x16d85b['name']);break;}}}}if(0x0==_0x2f70d9['length'])return null;const _0x37d920=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x6c7827,'join');for(const _0x160ec1 of this['getSuggestions']())if(_0x160ec1['author']['id']==_0x36196b['id']&&'formatBlock'==_0x160ec1['type']&&_0x160ec1['data']['formatGroupId']==_0x5d5490['formatGroupId']&&_0x160ec1['subType']==_0x6c7827&&Qt(_0x160ec1,_0x5bc2cd)&&(_0x37d920(_0x160ec1['getRanges'](),_0x2f70d9)||_0x37d920(_0x2f70d9,_0x160ec1['getRanges']()))){for(const _0x55f266 of _0x2f70d9)_0x160ec1['addRange'](_0x55f266);return _0x160ec1;}const _0x25fc09=_0x2730a7(),_0xa248a3=_0x36196b['id'],_0x3ae8b9='formatBlock:'+_0x6c7827,_0x3426ff=this['_setSuggestionData']({'id':_0x25fc09,'type':_0x3ae8b9,'data':_0x5d5490,'createdAt':new Date(),'authorId':_0xa248a3,'attributes':_0x5bc2cd});for(const _0xd16772 of _0x2f70d9)this['_addSuggestionMarker'](_0x3ae8b9,_0x25fc09,_0xa248a3,_0xd16772,u['getMultiRangeId']());return _0x3426ff;}['markDeletion'](_0x4c9304,_0xbac996=null,_0x54e92d={}){if(_0x4c9304['isCollapsed'])return null;const _0x2f75e0=this['editor']['plugins']['get']('Users')['me'],_0x2c21d5=new _0x157a8e(_0x4c9304['start'],_0x4c9304['end']);for(const {suggestion:_0x49970a,meta:_0x2e32e2}of this['_findSuggestions'](_0x2c21d5,'insertion'))if(_0x2e32e2['isOwn']&&!_0x2e32e2['isNextTo']){if(_0x49970a['isMultiRange']){const _0xdabc61=_0x49970a['getRanges']()['filter'](_0x4cdc78=>'$graveyard'!=_0x4cdc78['root']['rootName']);_0xdabc61['every'](_0x570b5e=>_0x2c21d5['containsRange'](_0x570b5e,!0x0))&&_0x49970a['discard']();if(_0xdabc61['some'](_0x4254d6=>_0x4254d6['containsRange'](_0x2c21d5,!0x0))){const _0x13f16b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xbac996,'accept');return this['forceDefaultExecution'](()=>_0x13f16b([_0x2c21d5],null,_0x54e92d)),null;}}else{const _0x596d9f=_0x2c21d5['getIntersection'](_0x49970a['getFirstRange']());null!==_0x596d9f&&_0x49970a['_onDiscard']([_0x596d9f],null,_0x54e92d);}}if(_0x2c21d5['detach'](),_0x2c21d5['isCollapsed']||'$graveyard'==_0x2c21d5['root']['rootName'])return null;let _0x27a027=null,_0x2488e0=_0x2c21d5['start'],_0x915301=_0x2c21d5['end'];const _0x1397c8=this['_findSuggestions'](_0x2c21d5,'deletion');for(const {suggestion:_0x5c964c,meta:_0x536ae6}of _0x1397c8){const _0x3a306c=this['_model']['createRange'](_0x2488e0,_0x915301);if(_0x536ae6['isOwn']&&(this['_mergeNestedSuggestions']||!_0x536ae6['containsRangeInObject']&&!_0x536ae6['isInsideObject'])){if(_0x5c964c['isMultiRange']){if(!Qt(_0x5c964c,_0x54e92d))continue;let _0x4f994c=!0x0;for(const _0x3cbb41 of _0x5c964c['getRanges']()){if(_0x3cbb41['containsRange'](_0x3a306c,!0x0))return _0x5c964c;_0x3a306c['containsRange'](_0x3cbb41)||(_0x4f994c=!0x1);}_0x4f994c&&_0x5c964c['discard']();}else{const _0x37d7b7=_0x5c964c['getFirstRange']();if(_0x37d7b7['containsRange'](_0x3a306c,!0x0))return _0x5c964c;if(!Qt(_0x5c964c,_0x54e92d)){_0x3a306c['containsRange'](_0x37d7b7)?_0x5c964c['removeMarkers']():_0x37d7b7['containsPosition'](_0x2488e0)?_0x2488e0=_0x37d7b7['end']:_0x37d7b7['containsPosition'](_0x915301)&&(_0x915301=_0x37d7b7['start']);continue;}_0x2488e0=_0x2488e0['isBefore'](_0x37d7b7['start'])?_0x2488e0:_0x37d7b7['start'],_0x915301=_0x915301['isAfter'](_0x37d7b7['end'])?_0x915301:_0x37d7b7['end'],_0x54e92d=Object['assign']({},_0x5c964c['attributes']),_0x27a027?_0x37d7b7['start']['isBefore'](_0x27a027['getFirstRange']()['start'])?(_0x27a027['removeMarkers'](),_0x27a027=_0x5c964c):_0x5c964c['removeMarkers']():_0x27a027=_0x5c964c;}}}if(_0x27a027)return this['_setSuggestionRange'](_0x27a027,this['_model']['createRange'](_0x2488e0,_0x915301)),_0x27a027;{const _0x407baa=_0x2730a7(),_0x59dc55=this['_model']['createRange'](_0x2488e0,_0x915301),_0x87979f=_0x2f75e0['id'],_0x46ab19=_0xbac996?'deletion:'+_0xbac996:'deletion',_0x2d615c=this['_setSuggestionData']({'id':_0x407baa,'type':_0x46ab19,'createdAt':new Date(),'authorId':_0x87979f,'attributes':_0x54e92d});return this['_addSuggestionMarker'](_0x46ab19,_0x407baa,_0x87979f,_0x59dc55),_0x2d615c;}}['markMultiRangeDeletion'](_0x5b9846,_0x516851='multi',_0x91cc36={}){const _0x8688fa=this['editor']['plugins']['get']('Users')['me'],_0x4db967=_0x5b9846['map'](_0x52248e=>new _0x157a8e(_0x52248e['start'],_0x52248e['end'])),_0x23beaa=new Set();for(const {suggestion:_0x410512,meta:_0x11030e}of this['_findSuggestions'](_0x4db967,'insertion'))_0x11030e['isOwn']&&!_0x11030e['isNextTo']&&_0x23beaa['add'](_0x410512);for(const _0x5b5cd8 of _0x23beaa)if(_0x5b5cd8['isMultiRange']){const _0x5e0770=_0x5b5cd8['getRanges']();(!_0x5b5cd8['attributes']||!_0x5b5cd8['attributes']['skipNestingCheck'])&&(_0x5e0770['every'](_0x2f1860=>_0x4db967['some'](_0x1f89de=>_0x1f89de['containsRange'](_0x2f1860,!0x0)))&&_0x5b5cd8['discard']());if(_0x4db967['every'](_0x1f0e4b=>_0x5e0770['some'](_0x2ce1b7=>_0x2ce1b7['containsRange'](_0x1f0e4b,!0x0)))){const _0xcca17a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x516851,'accept');return this['forceDefaultExecution'](()=>_0xcca17a(_0x5b9846,null,_0x91cc36)),null;}}else{const _0x4d7287=_0x5b5cd8['getFirstRange']();_0x4db967['some'](_0x102efd=>_0x102efd['containsRange'](_0x4d7287,!0x0))&&_0x5b5cd8['discard']();if(_0x4db967['every'](_0x51cfc2=>_0x4d7287['containsRange'](_0x51cfc2,!0x0))){const _0x1e0391=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x516851,'accept');return this['forceDefaultExecution'](()=>_0x1e0391(_0x4db967,null,_0x91cc36)),null;}}const _0x3a89dd=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x516851,'join');let _0x109d8c=null;for(const _0x1ae596 of this['getSuggestions']())if(_0x1ae596['author']['id']==_0x8688fa['id']&&_0x1ae596['isInContent']&&'deletion'==_0x1ae596['type']&&_0x1ae596['subType']==_0x516851&&Qt(_0x1ae596,_0x91cc36)&&(_0x3a89dd(_0x1ae596['getRanges'](),_0x4db967)||_0x3a89dd(_0x4db967,_0x1ae596['getRanges']()))){if(_0x109d8c){if(_0x1ae596['commentThread']&&_0x1ae596['commentThread']['length'])continue;for(const _0x363231 of _0x1ae596['getRanges']())_0x109d8c['isIntersectingWithRange'](_0x363231)||_0x109d8c['addRange'](_0x363231);_0x1ae596['removeMarkers']();}else{_0x109d8c=_0x1ae596;for(const _0x3bdb64 of _0x4db967)_0x1ae596['isIntersectingWithRange'](_0x3bdb64)||_0x1ae596['addRange'](_0x3bdb64);}}if(_0x109d8c)return _0x109d8c;_0x23beaa['clear']();for(const {suggestion:_0x2570be,meta:_0x31ebfa}of this['_findSuggestions'](_0x4db967,'deletion'))_0x31ebfa['isOwn']&&(this['_mergeNestedSuggestions']||!_0x31ebfa['containsRangeInObject']&&!_0x31ebfa['isInsideObject'])&&Qt(_0x2570be,_0x91cc36)&&_0x23beaa['add'](_0x2570be);for(const _0xba983e of _0x23beaa){const _0x1ba6e4=_0xba983e['getRanges']();if(!_0x91cc36||!_0x91cc36['skipNestingCheck']){if(_0x4db967['every'](_0x47f720=>_0x1ba6e4['some'](_0x306093=>_0x306093['containsRange'](_0x47f720,!0x0))))return _0xba983e;}(!_0xba983e['attributes']||!_0xba983e['attributes']['skipNestingCheck'])&&(_0x1ba6e4['every'](_0x113439=>_0x4db967['some'](_0x16b39d=>_0x16b39d['containsRange'](_0x113439,!0x0)))&&_0xba983e['discard']());}const _0x2fd971=_0x2730a7(),_0x5acba6=_0x8688fa['id'],_0x487bd5='deletion:'+_0x516851,_0x43354=this['_setSuggestionData']({'id':_0x2fd971,'type':_0x487bd5,'createdAt':new Date(),'authorId':_0x5acba6,'attributes':_0x91cc36});for(const _0x4cef02 of _0x4db967)_0x4cef02['detach'](),_0x4cef02['isCollapsed']||'$graveyard'==_0x4cef02['root']['rootName']||this['_addSuggestionMarker'](_0x487bd5,_0x2fd971,_0x5acba6,_0x4cef02,u['getMultiRangeId']());return _0x43354;}['markAttributeChange'](_0x14aa6a,_0x1ce219,_0x366496,_0xeaedae,_0x12dc97){if(_0x14aa6a['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x5bcf49=this['editor']['plugins']['get']('Users')['me']['id'],_0x445273=Array['from'](this['_suggestions']['values']())['filter'](_0x295f7f=>'attribute'==_0x295f7f['type']&&_0x295f7f['data']['key']==_0x1ce219&&_0x295f7f['isIntersectingWithRange'](_0x14aa6a));if('default'===this['_trackFormatChanges']){const _0x4d44b=this['_findSuggestions'](_0x14aa6a,'insertion')['filter'](({meta:_0x3162be})=>_0x3162be['isOwn']&&!_0x3162be['isInsideObject']&&!_0x3162be['isNextTo'])['map'](({suggestion:_0x2b84e7})=>_0x2b84e7);_0x445273['unshift'](..._0x4d44b);}const _0x2c10ee=new Map([[_0x14aa6a,_0x366496]]);for(const _0x39f568 of _0x445273){const _0x52372e='attribute'==_0x39f568['type']?_0x39f568['data']['oldValue']:void 0x0,_0x12a441=_0x39f568['getFirstRange'](),_0x21b585=Array['from'](_0x2c10ee['keys']())['find'](_0x4ae61e=>_0x4ae61e['isIntersecting'](_0x12a441));if(!_0x21b585)continue;const _0x28d982=_0x21b585['getDifference'](_0x12a441);this['_isBlockAttribute'](_0x1ce219)&&'insertion'==_0x39f568['type']&&0x0!=_0x28d982['length']||(_0x2c10ee['delete'](_0x21b585),_0x28d982['forEach'](_0x512f0b=>{_0x2c10ee['set'](_0x512f0b,_0x366496);}),'insertion'!=_0x39f568['type']&&_0x52372e!=_0xeaedae&&_0x2c10ee['set'](_0x21b585['getIntersection'](_0x12a441),_0x52372e));}const _0x471921=[];for(const [_0x3db638,_0x4b9a1d]of _0x2c10ee){const _0x28a598=_0x2730a7(),_0x22f667={'key':_0x1ce219,'oldValue':_0x4b9a1d,'newValue':_0xeaedae};_0x1ce219['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':_0x1ce219});const _0x16d7a3=('attribute:'+(_0x1ce219+'|'+Jt({'newValue':_0xeaedae})))['substring'](0x0,0x3c),_0x2c3f11=this['_setSuggestionData']({'id':_0x28a598,'type':_0x16d7a3,'data':_0x22f667,'createdAt':new Date(),'authorId':_0x5bcf49,'attributes':_0x12dc97});_0x471921['push'](_0x2c3f11),this['_addSuggestionMarker'](_0x16d7a3,_0x28a598,_0x5bcf49,_0x3db638);}return _0x471921;}['enableDefaultAttributesIntegration'](_0x5088d4){this['enableCommand'](_0x5088d4,(_0x3c5142,..._0x50ebd8)=>{this['_recordAttributeChanges'](()=>{_0x3c5142(..._0x50ebd8);});});}['registerBlockAttribute'](_0x32baa8){this['_blockAttributeKeys']['add'](_0x32baa8);}['registerInlineAttribute'](_0x7ebec9){this['_inlineAttributeKeys']['add'](_0x7ebec9);}['_getAttributeKey'](_0x63a5e9){return'attribute'==_0x63a5e9['type']?_0x63a5e9['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x3bb564,_0x4e9858){const _0x49d1dc=_0x3bb564['getFirstMarker']();this['_model']['change'](_0xcf48d8=>{_0xcf48d8['updateMarker'](_0x49d1dc,{'range':_0x4e9858});});}['_addThreadToSuggestion'](_0x413a39){const _0x57c727=_0x413a39['id'],_0xb75903=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x57c727)||this['_commentsRepository']['addCommentThread']({'channelId':_0xb75903,'threadId':_0x57c727,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x6a64a=this['_commentsRepository']['getCommentThread'](_0x57c727);_0x6a64a['unbind']('isRemovable'),_0x6a64a['isRemovable']=!0x1,_0x413a39['commentThread']=_0x6a64a;}['_checkSuggestionCorrectness'](_0x3c6f25,_0x1d54bc,_0x22cf17,_0x247d65){if(_0x3c6f25['type']!=_0x1d54bc||_0x3c6f25['subType']!=_0x22cf17||_0x3c6f25['creator']['id']!=_0x247d65)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4d7761('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0xa541a9,_0x5eefca){const _0x32581e=_0xa541a9['getFirstRange']();if(_0x5eefca['isEqual'](_0x32581e))_0xa541a9['removeMarkers']();else{if(_0x32581e['containsRange'](_0x5eefca)){const _0x2c6bb7=this['_model']['createPositionAt'](_0x5eefca['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xa541a9,this['_model']['createRange'](_0x32581e['start'],_0x2c6bb7));const _0x4f7680=_0x2730a7(),_0x81f7d0=_0xa541a9['creator']['id'],_0x537d6f=_0xa541a9['type']+':'+_0xa541a9['subType'];this['_setSuggestionData']({'id':_0x4f7680,'type':_0x537d6f,'createdAt':new Date(),'authorId':_0x81f7d0,'data':_0xa541a9['data'],'attributes':_0xa541a9['attributes']});const _0x559139=this['_model']['createPositionAt'](_0x5eefca['end']['parent'],'after'),_0x52f39e=this['_model']['createRange'](_0x559139,_0x32581e['end']);this['_addSuggestionMarker'](_0x537d6f,_0x4f7680,_0x81f7d0,_0x52f39e);}else{if(_0x32581e['containsPosition'](_0x5eefca['start'])){const _0x115c0c=this['_model']['createPositionAt'](_0x5eefca['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xa541a9,this['_model']['createRange'](_0x32581e['start'],_0x115c0c));}else{const _0x2e5d60=this['_model']['createPositionAt'](_0x5eefca['end']['parent'],'after');this['_setSuggestionRange'](_0xa541a9,this['_model']['createRange'](_0x2e5d60,_0x32581e['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x3866ee){for(const {suggestion:_0x1dd80f,meta:_0x47aefa}of this['_findSuggestions'](_0x3866ee,'insertion')){if(!_0x47aefa['isOwn'])continue;const _0x3a6d6a=_0x1dd80f['getRanges']();for(const _0x3b0f27 of _0x3a6d6a)if(!_0x3866ee['getDifference'](_0x3b0f27)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4e4ec4){const _0x20aa96=this['editor']['plugins']['get']('Users')['getUser'](_0x4e4ec4);if(!_0x20aa96)throw new _0x4d7761('track-changes-user-not-found',this);return _0x20aa96;}['_getExternalAuthor'](_0x36ac69){const _0x186fc4=this['editor']['plugins']['get']('Users'),_0x5ea8c6=_0x2731c3('external:'+_0x36ac69),_0x57fdd2=_0x186fc4['getUser'](_0x5ea8c6);return _0x57fdd2||_0x186fc4['addUser']({'id':_0x5ea8c6,'name':_0x36ac69});}['_createSuggestion'](_0x8bfab1,_0x542e73,_0x25e292,_0x2c9b4b,_0x2dfe09){const _0x188582=this['_getAuthorFromId'](_0x2c9b4b),_0x21bb79=this['_suggestionFactory']['buildSuggestion'](_0x8bfab1,_0x542e73,_0x25e292,_0x188582,_0x2dfe09,_0x17344c=>{this['_updateSuggestionData'](_0x25e292,{'attributes':_0x17344c});const _0x5a8090=this['getSuggestion'](_0x25e292);this['_joinWithAdjacentSuggestions'](new Set([_0x5a8090])),this['_refreshSuggestionsChain'](new Set([_0x5a8090]));});return this['listenTo'](_0x21bb79,'accept',()=>{this['_updateSuggestionData'](_0x25e292,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x21bb79,'discard',()=>{this['_updateSuggestionData'](_0x25e292,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x25e292,_0x21bb79),this['_suggestionState']['set'](_0x21bb79,'notReady'),_0x21bb79;}['_splitMarkerName'](_0x7a962b){const _0x565ad2=_0x7a962b['split'](':');return{'group':_0x565ad2[0x0],'type':_0x565ad2[0x1],'subType':_0x565ad2['length']>=0x5?_0x565ad2[0x2]:null,'id':_0x565ad2['length']<0x5?_0x565ad2[0x2]:_0x565ad2[0x3],'authorId':_0x565ad2['length']<0x5?_0x565ad2[0x3]:_0x565ad2[0x4],'markerCount':0x6==_0x565ad2['length']?_0x565ad2[0x5]:null};}['_breakSuggestionMarker'](_0x4c32fd,_0x4b0f3c,_0x230e8b){const _0x1f3f25=_0x4c32fd['getFirstRange'](),_0x41c2e2=_0x1f3f25['start'],_0x565483=_0x1f3f25['end'];this['_setSuggestionRange'](_0x4c32fd,this['_model']['createRange'](_0x41c2e2,_0x4b0f3c));const _0x94ed06=_0x2730a7(),_0x477076=_0x4c32fd['creator']['id'],_0xbfa4e9=_0x4c32fd['type']+(_0x4c32fd['subType']?':'+_0x4c32fd['subType']:'');this['_setSuggestionData']({'id':_0x94ed06,'type':_0xbfa4e9,'createdAt':new Date(),'authorId':_0x477076,'originalSuggestionId':_0x4c32fd['id'],'attributes':_0x4c32fd['attributes'],'data':_0x4c32fd['data']});const _0x1ef1e1=this['_getAttributeKey'](_0x4c32fd);('formatBlock'==_0x4c32fd['type']||_0x1ef1e1&&this['_isBlockAttribute'](_0x1ef1e1))&&(_0x230e8b=this['_model']['createPositionBefore'](_0x230e8b['parent'])),this['_addSuggestionMarker'](_0xbfa4e9,_0x94ed06,_0x477076,this['_model']['createRange'](_0x230e8b,_0x565483));}['_findSuggestions'](_0x95688c,_0x4b4549=null){const _0x5cef2e=[],_0x5bee54=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x95688c)||(_0x95688c=[_0x95688c]);for(const _0x5cc420 of this['getSuggestions']()){if(!_0x5cc420['isInContent'])continue;if(_0x4b4549&&_0x5cc420['type']!=_0x4b4549)continue;let _0x4fecec=!0x1;for(const _0x2d7b29 of _0x5cc420['getRanges']()){for(const _0x46f9cf of _0x95688c){const _0x35eff3=_0x46f9cf['start']['isEqual'](_0x2d7b29['end'])||_0x46f9cf['end']['isEqual'](_0x2d7b29['start']);if(_0x35eff3||_0x46f9cf['getIntersection'](_0x2d7b29)){const _0xc285b1=_0x46f9cf['containsRange'](_0x2d7b29)&&Gt(this['_model']['schema'],_0x2d7b29['start'],_0x46f9cf),_0x162b78=_0x2d7b29['containsRange'](_0x46f9cf)&&Gt(this['_model']['schema'],_0x46f9cf['start'],_0x2d7b29);_0x5cef2e['push']({'suggestion':_0x5cc420,'meta':{'isOwn':_0x5bee54==_0x5cc420['author'],'isNextTo':_0x35eff3,'isInsideObject':_0xc285b1,'containsRangeInObject':_0x162b78}}),_0x4fecec=!0x0;break;}}if(_0x4fecec)break;}}return _0x5cef2e;}['_addSuggestionMarker'](_0x97e50,_0x3416fe,_0x223e7f,_0x345ce2,_0x95ed93){this['_model']['change'](_0x902d66=>{let _0x55edb8='suggestion:'+_0x97e50+':'+_0x3416fe+':'+_0x223e7f;_0x95ed93&&(_0x55edb8=_0x55edb8+':'+_0x95ed93),_0x902d66['addMarker'](_0x55edb8,{'range':_0x345ce2,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0xcd9541){const _0x3ce93b=_0xcd9541['previous'],_0x2a6373=_0xcd9541['next'];_0xcd9541['previous']=null,_0xcd9541['next']=null,null!=_0x3ce93b&&_0x3ce93b['next']==_0xcd9541&&(_0x3ce93b['next']=_0x2a6373),null!=_0x2a6373&&_0x2a6373['previous']==_0xcd9541&&(_0x2a6373['previous']=_0x3ce93b),'ready'==this['_suggestionState']['get'](_0xcd9541)&&(this['_suggestionState']['set'](_0xcd9541,'removed'),this['fire']('suggestionUnloaded',_0xcd9541,_0x3ce93b,_0x2a6373));}['_setSuggestionData'](_0x1b69c7){const _0x5e7128=_0x1b69c7['id'],_0x20301c=this['addSuggestionData'](_0x1b69c7);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x17400b=this['editor']['plugins']['get']('PendingActions'),_0x27efaf=_0x20301c['hasComments'],_0x2babd5=_0x20301c['subType']?_0x20301c['type']+':'+_0x20301c['subType']:_0x20301c['type'],_0x28cd27=this['editor']['locale'],_0x4d2aea=_0x17400b['add'](o(_0x28cd27,'PENDING_ACTION_SUGGESTION')),_0x1aff92={'id':_0x5e7128,'type':_0x2babd5,'hasComments':_0x27efaf,'data':_0x1b69c7['data']||null,'originalSuggestionId':_0x1b69c7['originalSuggestionId']||null,'attributes':_0x20301c['attributes']};this['_adapter']['addSuggestion'](_0x1aff92)['then'](_0x49da8c=>{_0x20301c['_saved']=!0x0,_0x17400b['remove'](_0x4d2aea),_0x49da8c&&_0x49da8c['createdAt']&&(this['_suggestions']['get'](_0x5e7128)['createdAt']=_0x49da8c['createdAt']);})['catch'](_0x39a0be=>{throw _0xbbe712('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x20301c['discard']();}),_0x20301c['stopListening'](),this['_suggestions']['delete'](_0x20301c['id']),this['_suggestionState']['delete'](_0x20301c),_0x39a0be;});}return _0x20301c;}['_isBlockAttribute'](_0x7edcfd){return this['_blockAttributeKeys']['has'](_0x7edcfd);}['_updateSuggestionData'](_0x2da443,_0x3dcea2){const _0x274315=this['editor']['plugins']['get']('PendingActions'),_0x18cccc=this['getSuggestion'](_0x2da443);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x18cccc['_saved']){const _0x582cc3=_0x274315['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2da443,_0x3dcea2)['then'](()=>{_0x274315['remove'](_0x582cc3);});}else _0x18cccc['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2da443,_0x3dcea2);});}}['_getSuggestionData'](_0x1d8f28){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4d7761('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1d8f28);}['_handleNewSuggestionMarker'](_0xb77f3e){const {id:_0x3a7941,type:_0x591ff8,subType:_0x144180,authorId:_0x58f9ff}=this['_splitMarkerName'](_0xb77f3e),_0x3edfbd=this['_suggestions']['get'](_0x3a7941)||this['_createSuggestion'](_0x591ff8,_0x144180,_0x3a7941,_0x58f9ff,{});switch(this['_checkSuggestionCorrectness'](_0x3edfbd,_0x591ff8,_0x144180,_0x58f9ff),this['_suggestionState']['get'](_0x3edfbd)){case'notReady':this['_getSuggestionData'](_0x3a7941)['then'](_0x3b9fcc=>{let _0x11f7be=Promise['resolve']();_0x3b9fcc['hasComments']&&(_0x11f7be=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3a7941})),_0x11f7be['then'](()=>{this['addSuggestionData'](_0x3b9fcc)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3edfbd,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3a7941,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3edfbd,'ready'),this['fire']('suggestionLoaded',_0x3edfbd);break;case'ready':this['fire']('suggestionChanged',_0x3edfbd);}return _0x3edfbd['addMarkerName'](_0xb77f3e),_0x3edfbd;}['_refreshSuggestionsChain'](_0x35952c){const _0x3e49c2=Array['from'](_0x35952c),_0x3d4feb=_0x3e49c2['filter'](_0x472e17=>'attribute'==_0x472e17['type']);this['_refreshAttributeSuggestionsChain'](_0x3d4feb);const _0x2ec40b=_0x3e49c2['filter'](_0x1c81a2=>!_0x1c81a2['isMultiRange']&&'attribute'!=_0x1c81a2['type']),_0x1ab4e7=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x232ad1=>!_0x232ad1['isMultiRange']&&'attribute'!=_0x232ad1['type']),_0x384154=_0x1ab4e7['filter'](_0x730e82=>!_0x35952c['has'](_0x730e82)),_0x5874fb=new Map(_0x1ab4e7['map'](_0x9be5fe=>[_0x9be5fe,this['_suggestionFactory']['getSuggestionCallback'](_0x9be5fe['type'],_0x9be5fe['subType'],'chain')])),_0x139578=new Map(_0x1ab4e7['map'](_0x3f5c61=>[_0x3f5c61,_0x3f5c61['getFirstRange']()])),_0x596d1f=new Set(),_0x3581a3=new Set();for(let _0x1d9019=0x0;_0x1d9019<_0x2ec40b['length'];_0x1d9019++)_0x53f4f4(_0x2ec40b[_0x1d9019],_0x2ec40b,_0x1d9019+0x1);for(let _0x1aee51=0x0;_0x1aee51<_0x2ec40b['length'];_0x1aee51++)_0x53f4f4(_0x2ec40b[_0x1aee51],_0x384154,0x0);const _0x5a91a0=new Set();for(let _0x3991c6=0x0;_0x3991c6<_0x2ec40b['length'];_0x3991c6++){const _0x318158=_0x2ec40b[_0x3991c6];!_0x3581a3['has'](_0x318158)&&_0x318158['previous']&&(_0x5a91a0['add'](_0x318158['previous']),_0x318158['previous']['next']===_0x318158&&(_0x318158['previous']['next']=null),_0x318158['previous']=null),!_0x596d1f['has'](_0x318158)&&_0x318158['next']&&(_0x5a91a0['add'](_0x318158['next']),_0x318158['next']['previous']===_0x318158&&(_0x318158['next']['previous']=null),_0x318158['next']=null);}function _0x53f4f4(_0x12f3da,_0x4d66df,_0x33ebde){for(let _0x5481a3=_0x33ebde;_0x5481a3<_0x4d66df['length'];_0x5481a3++){const _0x2538c5=_0x137270(_0x12f3da,_0x4d66df[_0x5481a3]);_0x2538c5&&(_0x2538c5[0x0]['next']=_0x2538c5[0x1],_0x2538c5[0x1]['previous']=_0x2538c5[0x0],_0x596d1f['add'](_0x2538c5[0x0]),_0x3581a3['add'](_0x2538c5[0x1]));}}function _0x137270(_0x598e5f,_0x4abde3){if(_0x598e5f['author']['id']!==_0x4abde3['author']['id'])return null;const _0x359008=_0x5874fb['get'](_0x598e5f)(_0x598e5f,_0x4abde3,_0x139578['get'](_0x598e5f),_0x139578['get'](_0x4abde3));if(!_0x359008)return null;return _0x5874fb['get'](_0x4abde3)(_0x598e5f,_0x4abde3,_0x139578['get'](_0x598e5f),_0x139578['get'](_0x4abde3))?_0x359008[0x1]['commentThread']&&_0x359008[0x1]['commentThread']['length']?null:_0x359008:null;}_0x5a91a0['size']&&this['_refreshSuggestionsChain'](_0x5a91a0);}['_refreshAttributeSuggestionsChain'](_0x468cca){if(0x0==_0x468cca['length'])return;const _0x35cbca=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3fb046=>'attribute'==_0x3fb046['type']&&_0x3fb046['_isDataLoaded']),_0x3e7b00=[],_0x325077=new Map();for(const _0x1c43bc of _0x35cbca){const _0x528614=_0x2731c3(_0x1c43bc['attributes']);_0x325077['has'](_0x528614)||(_0x325077['set'](_0x528614,_0x3e7b00['length']),_0x3e7b00['push']([]));const _0x2bb2e8=_0x325077['get'](_0x528614);_0x3e7b00[_0x2bb2e8]['push'](_0x1c43bc);}!(function(){_0x3e7b00['sort']((_0x5a1fab,_0x2c2269)=>{const _0x1e5a70=_0x5a1fab[0x0]['createdAt'],_0x2dc2d6=_0x2c2269[0x0]['createdAt'];return _0x1e5a70==_0x2dc2d6?_0x5a1fab[0x0]['attributes']['groupId']<_0x2c2269[0x0]['attributes']['groupId']?-0x1:0x1:_0x1e5a70<_0x2dc2d6?-0x1:0x1;});for(const _0x826763 of _0x3e7b00)_0x826763['sort']((_0x329422,_0x4c6a96)=>_0x329422['id']<_0x4c6a96['id']?-0x1:0x1);}());for(let _0x165443=0x0;_0x165443<_0x3e7b00['length'];_0x165443++){if(0x0==_0x3e7b00[_0x165443]['length'])continue;const _0x2e0eb9=[];for(let _0x34a405=_0x165443+0x1;_0x34a405<_0x3e7b00['length'];_0x34a405++)0x0!=_0x3e7b00[_0x34a405]['length']&&_0x324dec(_0x3e7b00[_0x165443],_0x3e7b00[_0x34a405])&&_0x2e0eb9['push'](_0x34a405);for(const _0x4eb56e of _0x2e0eb9)_0x3e7b00[_0x165443]=_0x3e7b00[_0x165443]['concat'](_0x3e7b00[_0x4eb56e]),_0x3e7b00[_0x4eb56e]=[];}for(const _0x356d73 of _0x3e7b00)for(let _0x36276f=0x0;_0x36276f<_0x356d73['length'];_0x36276f++){const _0x132fbc=_0x356d73[_0x36276f+0x1]||null;_0x356d73[_0x36276f]['next']!==_0x132fbc&&(_0x356d73[_0x36276f]['next']=_0x132fbc);}for(const _0x19d0f5 of _0x3e7b00)for(let _0x43101f=0x0;_0x43101f<_0x19d0f5['length'];_0x43101f++){const _0x41adc4=_0x19d0f5[_0x43101f-0x1]||null;_0x19d0f5[_0x43101f]['previous']!==_0x41adc4&&(_0x19d0f5[_0x43101f]['previous']=_0x41adc4);}function _0x324dec(_0x2cd907,_0x275cd7){if(_0x2cd907[0x0]['attributes']['groupId']!==_0x275cd7[0x0]['attributes']['groupId']&&_0x2cd907[0x0]['author']!==_0x275cd7[0x0]['author'])return!0x1;if(!function(_0x2bdefd,_0x5c163d){if(!_0x2bdefd['hasComments']&&!_0x5c163d['hasComments'])return!0x0;if(_0x2bdefd['hasComments']&&_0x5c163d['hasComments'])return!0x1;if(_0x2bdefd['hasComments']&&_0x5c163d['createdAt']<_0x2bdefd['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x5c163d['hasComments']&&_0x2bdefd['createdAt']<_0x5c163d['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2cd907[0x0],_0x275cd7[0x0]))return!0x1;const _0x584dab=Vt(_0x2cd907[0x0]['attributes'],'groupId'),_0x1225bd=Vt(_0x275cd7[0x0]['attributes'],'groupId');if(!_0x46d056(_0x584dab,_0x1225bd))return!0x1;return!!_0x2cd907['every'](_0x4b4107=>_0x275cd7['some'](_0x6f704a=>_0x4b4107['getFirstRange']()['isEqual'](_0x6f704a['getFirstRange']())))&&_0x275cd7['every'](_0x4363cc=>_0x2cd907['some'](_0x5bcd0a=>_0x4363cc['getFirstRange']()['isEqual'](_0x5bcd0a['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x6f4e49){const _0x55fae3=Array['from'](_0x6f4e49),_0x375b46=this['getSuggestions']({'skipNotAttached':!0x0}),_0x12652a=_0x375b46['filter'](_0x5b6e48=>!_0x6f4e49['has'](_0x5b6e48)),_0x1ef9de=new Map(_0x55fae3['map'](_0x517d32=>[_0x517d32,this['_suggestionFactory']['getSuggestionCallback'](_0x517d32['type'],_0x517d32['subType'],'join')])),_0x424ece=new Map(_0x375b46['map'](_0x4f8e82=>[_0x4f8e82,_0x4f8e82['getRanges']()]));for(let _0x3ab8dc=0x0;_0x3ab8dc<_0x55fae3['length'];_0x3ab8dc++){if(_0x5f305a(this,_0x55fae3[_0x3ab8dc],_0x55fae3,_0x3ab8dc+0x1))return!0x0;}for(let _0x1ec5f1=0x0;_0x1ec5f1<_0x55fae3['length'];_0x1ec5f1++){if(_0x5f305a(this,_0x55fae3[_0x1ec5f1],_0x12652a,0x0))return!0x0;}return!0x1;function _0x5f305a(_0x22bf26,_0x168b19,_0x49f7ee,_0x55c462){for(let _0x409ce6=_0x55c462;_0x409ce6<_0x49f7ee['length'];_0x409ce6++){const _0x53e65e=_0x49f7ee[_0x409ce6];if(_0x53e65e['type']!==_0x168b19['type']||_0x53e65e['author']['id']!==_0x168b19['author']['id']||_0x53e65e['subType']!==_0x168b19['subType'])continue;if(!Wt(_0x168b19,_0x53e65e))continue;if('attribute'==_0x168b19['type']&&_0x168b19['data']['oldValue']!=_0x53e65e['data']['oldValue'])continue;if('attribute'==_0x168b19['type']&&_0x22bf26['_isBlockAttribute'](_0x168b19['data']['key']))continue;if('formatBlock'==_0x168b19['type']){const _0x15f8a0=_0x22bf26['editor']['model'],_0x4640c1=_0x168b19['getContainedElement']();if(_0x4640c1&&(_0x15f8a0['schema']['isObject'](_0x4640c1)||_0x15f8a0['schema']['isLimit'](_0x4640c1)))continue;}const _0x5081ed=_0x1ef9de['get'](_0x168b19),_0x4267d7=_0x424ece['get'](_0x168b19),_0x3952f9=_0x424ece['get'](_0x53e65e),_0x4f3955=_0x168b19['commentThread']&&_0x168b19['commentThread']['length'],_0x1260b0=_0x53e65e['commentThread']&&_0x53e65e['commentThread']['length'];if(!_0x4f3955&&_0x5081ed(_0x3952f9,_0x4267d7))return _0x22bf26['_joinSuggestions'](_0x53e65e,_0x168b19),_0x424ece['delete'](_0x168b19),!0x0;if(!_0x1260b0&&_0x5081ed(_0x4267d7,_0x3952f9))return _0x22bf26['_joinSuggestions'](_0x168b19,_0x53e65e),_0x424ece['delete'](_0x53e65e),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2ba3db,_0x10517c){if(_0x2ba3db['isMultiRange']){for(const _0x9b7c7b of _0x10517c['getRanges']())_0x2ba3db['addRange'](_0x9b7c7b);}else{const _0x4806f3=_0x10517c['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2ba3db,this['_model']['createRange'](_0x2ba3db['getFirstRange']()['start'],_0x4806f3));}_0x10517c['removeMarkers']();}['_getMarkerAnnouncementText'](_0x17790d,_0x4dffe6,_0x349d20){const _0x194355=_0x17790d['startsWith']('format')||_0x17790d['startsWith']('attribute')?'FORMATTING':_0x17790d['toUpperCase']();return o(this['editor']['locale'],_0x4dffe6+'_'+_0x194355+'_SUGGESTION_ANNOUNCEMENT',_0x349d20);}['_initAriaMarkerChangeAnnouncements'](){const _0xc7cfc6=this['editor'];if(!_0xc7cfc6['ui'])return;const {ariaLiveAnnouncer:_0x202943}=_0xc7cfc6['ui'];_0x569c12(this['_model'],({left:_0x260580,entered:_0x176e5e})=>{for(const _0x18978f of _0x260580){const {group:_0x3de4ca,type:_0x56309b}=this['_splitMarkerName'](_0x18978f['name']);if('suggestion'===_0x3de4ca){_0x202943['announce'](this['_getMarkerAnnouncementText'](_0x56309b,'LEAVE'));break;}}for(const _0x463341 of _0x176e5e){const {group:_0x5e4bee,type:_0x5bf4c7}=this['_splitMarkerName'](_0x463341['name']);if('suggestion'===_0x5e4bee){_0x202943['announce'](this['_getMarkerAnnouncementText'](_0x5bf4c7,'ENTER',_0x3ae4b2(_0x4e8ea0)));break;}}});}['_processAttributeChanges'](_0x271d10){if(this['_recordAttributeSuggestions'])return!0x1;const _0x50822c=this['editor'],_0x1a60de=_0x50822c['model']['document']['differ']['getChanges']();if(0x0==_0x1a60de['length'])return!0x1;const _0x4c4406=[],_0x5ca80e=_0x1a60de['filter'](_0x3e0430=>'attribute'==_0x3e0430['type']),_0x34c6ec=_0x1a60de['filter'](_0x326e7e=>'insert'==_0x326e7e['type']&&'$text'!=_0x326e7e['name']),_0x5097c0=_0x1a60de['filter'](_0x53270e=>'remove'==_0x53270e['type']&&'$text'!=_0x53270e['name']);for(const _0x4f6073 of _0x5ca80e)_0x4c4406['push']({'key':_0x4f6073['attributeKey'],'newValue':_0x4f6073['attributeNewValue'],'oldValue':_0x4f6073['attributeOldValue'],'range':qt(_0x4f6073['range'],_0x50822c['model'])});for(const _0x5e98fa of _0x34c6ec){const _0x352d59=_0x5097c0['find'](_0x2b8ff3=>_0x2b8ff3['position']['isEqual'](_0x5e98fa['position']));_0x352d59&&_0x4c4406['push']({'key':m,'newValue':_0x5e98fa['name'],'oldValue':_0x352d59['name'],'range':_0x50822c['model']['createRangeOn'](_0x5e98fa['position']['nodeAfter'])});}return 0x0!=_0x4c4406['length']&&this['_reduceExistingSuggestions'](_0x271d10,_0x4c4406);}['_processAttributeSuggestions'](_0x23bba6){let _0x57ea87=!0x1;const _0x41de57=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x38df92=>_0x38df92['data']['newRange']&&_0x38df92['name']['startsWith']('suggestion:attribute:'));for(const _0xd6c486 of _0x41de57){const {subType:_0x1fe3f7,id:_0x6c0a61}=this['_splitMarkerName'](_0xd6c486['name']),_0x29d8a6=_0x1fe3f7['split']('|')[0x0];for(const _0x343c02 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x343c02['id']!=_0x6c0a61&&'attribute'==_0x343c02['type']&&_0x343c02['data']&&_0x343c02['data']['key']==_0x29d8a6&&_0x343c02['getFirstRange']()['isIntersecting'](_0xd6c486['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x343c02,_0xd6c486['data']['newRange'],_0x23bba6),_0x57ea87=!0x0);}return _0x57ea87;}['_recordAttributeChanges'](_0x185951){this['_recordAttributeSuggestions']=!0x0,_0x185951();}['_isRegisteredAttribute'](_0x5d73f5){const _0x277c60=this['_isBlockAttribute'](_0x5d73f5),_0x80804b=this['_inlineAttributeKeys']['has'](_0x5d73f5);return _0x277c60||_0x80804b;}['_reduceExistingSuggestions'](_0x48d7df,_0x3bb504){if(0x0==_0x3bb504['length'])return!0x1;let _0x46de56=!0x1;for(const _0xb5bcba of _0x3bb504){const _0x489775=this['_findSuggestions'](_0xb5bcba['range'],'attribute')['filter'](_0x1227c3=>!_0x1227c3['meta']['isNextTo'])['map'](_0x2d6f3a=>_0x2d6f3a['suggestion']),_0x53af63=_0x2731c3({'newValue':_0xb5bcba['newValue']});_0x489775['filter'](_0x2b6ea9=>{const [_0x41829f,_0x63f307]=_0x2b6ea9['subType']['split']('|');return _0x41829f==_0xb5bcba['key']&&_0x63f307!=_0x53af63;})['forEach'](_0x154df5=>{this['_reduceSuggestionAttributeRange'](_0x154df5,_0xb5bcba['range'],_0x48d7df),_0x46de56=!0x0;});}return _0x46de56;}['_reduceSuggestionAttributeRange'](_0x53a7ec,_0x1e7b0d,_0xf4945){const _0x52a410=_0x53a7ec['getFirstRange']()['getDifference'](_0x1e7b0d);0x0!==_0x52a410['length']?0x1!==_0x52a410['length']?this['_breakSuggestionMarker'](_0x53a7ec,_0x1e7b0d['start'],_0x1e7b0d['end']):this['_setSuggestionRange'](_0x53a7ec,_0x52a410[0x0]):_0xf4945['removeMarker'](_0x53a7ec['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4535c2){this['_editor']=_0x4535c2,this['_model']=_0x4535c2['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x1887ec,_0x1b04f7,_0x56e707,_0x246090,_0x528db9,_0x24d408){return new u(this['_model'],{'type':_0x1887ec,'subType':_0x1b04f7,'id':_0x56e707,'author':_0x246090,'creator':_0x246090,'attributes':_0x528db9,'onAttributesChange':_0x24d408,'onAccept':(..._0x4145eb)=>this['getSuggestionCallback'](_0x1887ec,_0x1b04f7,'accept')(..._0x4145eb),'onDiscard':(..._0x4a087)=>this['getSuggestionCallback'](_0x1887ec,_0x1b04f7,'discard')(..._0x4a087)});}['registerCustomCallback'](_0x296b23,_0x321a47,_0x375c2b,_0x36c2dc){const _0x46e87e=_0x296b23+':'+_0x321a47+':'+_0x375c2b;this['_customCallbacks']['set'](_0x46e87e,_0x36c2dc);}['getSuggestionCallback'](_0x900ac3,_0x454219,_0x39afa7){const _0x50f88f=_0x900ac3+':'+_0x454219+':'+_0x39afa7;return this['_customCallbacks']['get'](_0x50f88f)||this['_defaultCallbacks']['get'](_0x900ac3+':'+_0x39afa7);}['_registerDefaultCallbacks'](){const _0x2a13da=()=>!0x1,_0x32d756=_0x184ec4=>{_0x184ec4['sort']((_0x17838b,_0x441441)=>_0x17838b['start']['isBefore'](_0x441441['start'])?0x1:-0x1),this['_model']['change'](_0x2a9093=>{for(const _0x1a1750 of _0x184ec4){let _0x1afe38;_0x1afe38=_0x1a1750['end']['isAtEnd']&&_0x1a1750['end']['parent']==_0x1a1750['start']['nodeAfter']?_0x2a9093['createSelection'](_0x1a1750['start']['nodeAfter'],'on'):_0x2a9093['createSelection'](_0x1a1750),this['_model']['deleteContent'](_0x1afe38,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x29c38c=(_0x44f754,_0x43cffb)=>{_0x43cffb&&this['_model']['change'](_0xc395bb=>{const {commandName:_0x5dba1c,commandParams:_0x2a407a=[]}=_0x43cffb,_0x114098=_0x44f754['map'](_0x10b54b=>(Ft(_0x10b54b)&&(_0x10b54b=this['_model']['createRange'](_0x10b54b['end'])),_0x10b54b))['filter'](_0x386b31=>'$graveyard'!==_0x386b31['root']['rootName']);if(_0x114098['length']<0x1)return;const _0x32a923=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1e6694=>_0x157a8e['fromRange'](_0x1e6694));_0xc395bb['setSelection'](_0x114098);for(const _0x26027d of this['_editor']['commands']['commands']())_0x26027d['refresh']();_0x2a407a['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x5dba1c,..._0x2a407a);const _0x328682=_0x32a923['filter'](_0x145b86=>'$graveyard'!=_0x145b86['root']['rootName']);_0x328682['length']>0x0&&_0xc395bb['setSelection'](_0x328682);for(const _0x13a347 of _0x32a923)_0x13a347['detach']();});},_0x4529c8=(_0x3d1f5d,_0x2a3339)=>0x1==_0x3d1f5d['length']&&0x1==_0x2a3339['length']&&_0x3d1f5d[0x0]['end']['isEqual'](_0x2a3339[0x0]['start']),_0x20b08a=(_0x5d64da,_0x2a661e,_0x3385a7,_0x23378f)=>Kt(_0x5d64da,_0x2a661e,_0x3385a7,_0x23378f)?[_0x5d64da,_0x2a661e]:Kt(_0x2a661e,_0x5d64da,_0x23378f,_0x3385a7)?[_0x2a661e,_0x5d64da]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2a13da),this['_defaultCallbacks']['set']('insertion:discard',_0x32d756),this['_defaultCallbacks']['set']('insertion:join',_0x4529c8),this['_defaultCallbacks']['set']('insertion:chain',_0x20b08a),this['_defaultCallbacks']['set']('deletion:accept',_0x32d756),this['_defaultCallbacks']['set']('deletion:discard',_0x2a13da),this['_defaultCallbacks']['set']('deletion:join',_0x4529c8),this['_defaultCallbacks']['set']('deletion:chain',_0x20b08a),this['_defaultCallbacks']['set']('formatInline:accept',_0x29c38c),this['_defaultCallbacks']['set']('formatInline:discard',_0x2a13da),this['_defaultCallbacks']['set']('formatInline:join',_0x4529c8),this['_defaultCallbacks']['set']('formatInline:chain',_0x2a13da),this['_defaultCallbacks']['set']('formatBlock:accept',_0x29c38c),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2a13da),this['_defaultCallbacks']['set']('formatBlock:join',_0x4529c8),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2a13da),this['_defaultCallbacks']['set']('attribute:accept',_0x2a13da),this['_defaultCallbacks']['set']('attribute:discard',(_0x36e453,_0x13c4ff)=>{if(!_0x13c4ff)return;const _0x1ef511=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x3d817a=>{if(_0x13c4ff['key']==m)for(const _0x7d2339 of _0x36e453){const _0x52d4e1=_0x7d2339['start']['nodeAfter'],_0x37326c=_0x13c4ff['oldValue'];_0x3d817a['rename'](_0x52d4e1,_0x37326c);}else{if(_0x1ef511['_isBlockAttribute'](_0x13c4ff['key'])){for(const _0x3a0e76 of _0x36e453)void 0x0!==_0x13c4ff['oldValue']?_0x3d817a['setAttribute'](_0x13c4ff['key'],_0x13c4ff['oldValue'],_0x3a0e76['start']['nodeAfter']):_0x3d817a['removeAttribute'](_0x13c4ff['key'],_0x3a0e76['start']['nodeAfter']);}else{for(const _0x5a86a5 of _0x36e453)_0x13c4ff['oldValue']?_0x3d817a['setAttribute'](_0x13c4ff['key'],_0x13c4ff['oldValue'],_0x5a86a5):_0x3d817a['removeAttribute'](_0x13c4ff['key'],_0x5a86a5);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4529c8);}}function Gt(_0x1c6843,_0x18a549,_0x48e936){for(const _0x415742 of _0x18a549['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x415742['root']==_0x415742)return!0x1;if(!_0x48e936['containsItem'](_0x415742))return!0x1;if(_0x1c6843['isObject'](_0x415742)||_0x1c6843['isLimit'](_0x415742))return!0x0;}return!0x1;}function Ft(_0xa4aba0){return _0xa4aba0['end']['parent']==_0xa4aba0['start']['nodeAfter']&&_0xa4aba0['end']['isAtStart'];}function Lt(_0x12a4a3,_0x1c7890,_0x527740,_0x372d86){const _0x1b82fb=_0x19615e=>!_0x19615e['item']['is']('$textProxy')&&!_0x372d86['isObject'](_0x19615e['item']),_0x1891c=_0x12a4a3['start']['getLastMatchingPosition'](_0x1b82fb),_0x500175=_0x12a4a3['end']['getLastMatchingPosition'](_0x1b82fb,{'direction':'backward'});return(!_0x12a4a3['start']['isEqual'](_0x1891c)||!_0x12a4a3['end']['isEqual'](_0x500175))&&(_0x1891c['isBefore'](_0x500175)?_0x527740['updateMarker'](_0x1c7890,{'range':_0x527740['createRange'](_0x1891c,_0x500175)}):_0x527740['removeMarker'](_0x1c7890),!0x0);}function Jt(_0x571234){return _0x2731c3(_0x571234);}function Ht(_0x15bfeb){const _0x51149c=_0x15bfeb['start']['nodeAfter'];return _0x51149c&&_0x51149c['is']('element');}function qt(_0x4851ff,_0x3f4609){return null==_0x4851ff['end']['nodeBefore']&&_0x4851ff['end']['parent']==_0x4851ff['start']['nodeAfter']?zt(_0x4851ff['start']['nodeAfter'],_0x3f4609):_0x4851ff;}function zt(_0x97acbb,_0x4ad169){const _0x3e8133=_0x4ad169['schema']['isObject'](_0x97acbb)||_0x4ad169['schema']['isSelectable'](_0x97acbb);return _0x4ad169['createRange'](_0x4ad169['createPositionAt'](_0x97acbb,'before'),_0x3e8133?_0x4ad169['createPositionAfter'](_0x97acbb):_0x4ad169['createPositionAt'](_0x97acbb,'end'));}function Kt(_0x124e78,_0x3696a6,_0x4e4aec,_0x33489d){return!!Wt(_0x124e78,_0x3696a6)&&_0x4e4aec['end']['isEqual'](_0x33489d['start']);}function Wt(_0x22025b,_0x192761){if(!_0x22025b['_isDataLoaded']||!_0x192761['_isDataLoaded'])return!0x1;const _0x593d4e=new Set(Object['keys'](_0x22025b['attributes'])),_0x520357=new Set(Object['keys'](_0x192761['attributes']));if(_0x593d4e['delete']('groupId'),_0x520357['delete']('groupId'),0x0==_0x593d4e['size']&&0x0==_0x520357['size'])return!0x0;if(_0x593d4e['size']!=_0x520357['size'])return!0x1;const _0x980e85={..._0x22025b['attributes']},_0x48e356={..._0x192761['attributes']};return delete _0x980e85['groupId'],delete _0x48e356['groupId'],JSON['stringify'](_0x980e85)==JSON['stringify'](_0x48e356);}function Qt(_0x1f1eac,_0x43f176){const _0x5e1250=Xt(_0x1f1eac['attributes']),_0x318e4c=Xt(_0x43f176);if(!_0x1f1eac['_isDataLoaded'])return!0x1;for(const _0x464e76 of Object['keys'](_0x318e4c))if(!_0x46d056(_0x5e1250[_0x464e76],_0x318e4c[_0x464e76]))return!0x1;return!0x0;}function Xt(_0x4e588f){const _0x1ef74c=Object['assign']({},_0x4e588f);return delete _0x1ef74c['skipNestingCheck'],delete _0x1ef74c['tablePasteChainId'],_0x1ef74c;}class Ce extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0xbf6237(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x3d715a,_0x99ef4f,_0x435c91,_0x1cccf5){super(),this['model']=_0x99ef4f,this['view']=_0x435c91,this['commentThreadController']=_0x1cccf5,this['_editor']=_0x3d715a,this['_acceptCommand']=_0x3d715a['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3d715a['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3a8723,_0x221929)=>_0x3a8723||_0x221929),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x126de9=>_0x126de9&&this['_editor']['model']['canEditAt'](_0x99ef4f['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0xb43185=>_0xb43185&&this['_editor']['model']['canEditAt'](_0x99ef4f['getRanges']())),this['_pendingAction']=null,_0x435c91['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x435c91,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x435c91,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x435c91,'change:isDirty',()=>{_0x435c91['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 _0x27c7ff=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x27c7ff);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ms extends _0x3964e1{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x880966,_0x446e8b,_0x175615,_0x4b3d04){super(_0x880966),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x499cb3(_0x880966,o(_0x880966,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x446e8b['authoredAt']),this['bind']('authoredAt')['to'](_0x446e8b),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',_0x446e8b,'authoredAt',this,'descriptionParts',(_0xf7b59e,_0x466083,_0x4064e6)=>{const _0xa4f075=_0x4064e6['map'](_0x33612b=>cs(_0x33612b['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0xf7b59e-0x1,_0x446e8b['author']['name'],_0x466083?_0x4b3d04['formatDateTime'](_0x466083):'',new DOMParser()['parseFromString'](_0xa4f075,'text/html')['body']['textContent']]);}),this['focusables']=new _0x4011a5(),this['focusTracker']=new _0x24e6e1(),this['keystrokes']=new _0x4c05a3(),this['focusCycler']=new _0xdcfb15({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2f7031=>_0x2f7031['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x446e8b,this['_localUser']=_0x175615,this['_config']=_0x4b3d04,_0x4b3d04['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x4a61a7(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x49e99b}=this['_config'];this['commentsListView']=new _0x49e99b(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',_0x3c6d9b=>_0x3c6d9b+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x201558,_0x4fb543)=>_0x201558||!!_0x4fb543);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x32bf51}=this['_config'],_0x12c156=new _0x32bf51(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x220b2c=_0x12c156['commentInputView'];return _0x12c156['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x220b2c,'value',(_0x6247f5,_0x2b5d4d,_0x265c93)=>!!_0x265c93||_0x6247f5&&!_0x2b5d4d),_0x220b2c['on']('submit',(_0x58836b,_0x2e7f6d)=>{this['fire']('addComment',_0x2e7f6d),_0x220b2c['editor']['setData']('');}),_0x220b2c['on']('cancel',()=>this['focus']()),_0x220b2c['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x12c156;}}class pe extends ms{['suggestionView'];['_descriptionElement'];constructor(_0x3365c3,_0x56065b,_0x325a1e,_0x3e71f9){super(_0x3365c3,_0x56065b,_0x325a1e,_0x3e71f9),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x4a7fa8=>_0x4a7fa8&&_0x4a7fa8[0x0]?_0x4a7fa8[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x44222c,_0x208535)=>{let _0x5dac8f='';for(const _0x5c07b9 of _0x44222c)_0x5dac8f+='<p>'+cs(_0x5c07b9['content'],_0x5c07b9['color'])+'</p>';return _0x208535?_0x5dac8f:_0x277e55(_0x5dac8f,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x3e71f9['SuggestionView'](_0x3365c3,_0x56065b,{'formatDateTime':_0x3e71f9['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 _0x23f744=this['bindTemplate'],_0x1c99dc=[this['suggestionView']];return this['commentsListView']&&_0x1c99dc['push'](this['commentsListView']),this['commentThreadInputView']&&_0x1c99dc['push'](this['commentThreadInputView']),_0x1c99dc['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x23f744['if']('isActive','ck-suggestion-wrapper--active'),_0x23f744['to']('type',_0x402206=>'ck-suggestion-'+_0x402206),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':_0x23f744['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x1c99dc};}['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 fe extends _0x3964e1{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x1febc5,_0x1f2423,_0x1005ec){super(_0x1febc5),this['_model']=_0x1f2423,this['_config']=_0x1005ec,this['set']('description',''),this['bind']('authoredAt')['to'](_0x1f2423),this['acceptButton']=this['_createButton'](o(_0x1febc5,'Accept\x20suggestion'),_0x29e319['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x1febc5,'Discard\x20suggestion'),_0x29e319['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x5893a1(_0x1febc5,_0x1f2423['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x4011a5([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x24e6e1(),this['keystrokes']=new _0x4c05a3(),this['focusCycler']=new _0xdcfb15({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x18afce=>_0x18afce['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x3f9f61=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x3f9f61['innerHTML']=this['description'],this['on']('change:description',(_0x1430fe,_0x53013a,_0x4eb5b8)=>{_0x3f9f61['innerHTML']=_0x4eb5b8;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0xc97b25=this['bindTemplate'],_0x6146fb=[{'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':_0xc97b25['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0xc97b25['to']('authoredAt',_0x5c3bb8=>this['_config']['formatDateTime'](_0x5c3bb8))}]}]},{'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']&&_0x6146fb['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':_0x6146fb}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0xdb1e4d,_0x1b1f5b,_0x420e43,_0x32c2bb,_0x3d2f18){const _0x13d195=new _0x2099e1(this['locale']);return _0x13d195['set']({'label':_0xdb1e4d,'icon':_0x1b1f5b,'tooltip':!0x0,'tooltipPosition':_0x3d2f18}),_0x13d195['extendTemplate']({'attributes':{'class':_0x420e43}}),_0x13d195['on']('execute',()=>{this['fire'](_0x32c2bb,this['_model']['id']);}),_0x13d195;}['_setupKeyboardNavigation'](){const _0x388c93=this['element'];this['keystrokes']['listenTo'](_0x388c93);for(const _0x4240cc of this['focusables'])this['focusTracker']['add'](_0x4240cc['element']),this['keystrokes']['listenTo'](_0x4240cc['element']);this['keystrokes']['set']('enter',(_0x5c65d7,_0xf7b1af)=>{_0x388c93===_0x5c65d7['target']&&(this['focusCycler']['focusFirst'](),_0xf7b1af());}),this['keystrokes']['set']('esc',(_0x2d24ae,_0x13f9bb)=>{_0x388c93!==_0x2d24ae['target']&&(this['focus'](),_0x13f9bb());});}}var we='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x577abc{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x389bec,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x24796e){super(_0x24796e),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x54456d=this['editor']['config'];_0x54456d['define']('trackChanges.SuggestionThreadView',pe),_0x54456d['define']('trackChanges.SuggestionView',fe),_0x54456d['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x54456d['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x57e5c0,_0x3f166d){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x4b1066,_0x35ec21]of this['_handleControllerBuffer']){const _0x5907b6=this['_suggestionToController']['has'](_0x4b1066);_0x5907b6||_0x35ec21?_0x5907b6&&_0x35ec21&&this['_destroyController'](_0x4b1066):this['_initializeController'](_0x4b1066);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x57e5c0,_0x3f166d);}['init'](){const _0x3696e2=this['editor'],_0x626e0e=_0x3696e2['plugins']['get']('TrackChangesEditing'),_0x4271d9=_0x3696e2['plugins']['get']('Annotations'),_0x1f4b86=_0x3696e2['plugins']['get']('EditorAnnotations'),_0x5d9159=_0x3696e2['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x1f4b86['addSourceCollector'](()=>{const _0x3f219d=[];for(const [_0x101355,_0x576495]of Array['from'](this['_suggestionToController'])){const _0x39385a=_0x101355['getAllAdjacentSuggestions'](),_0x1c87c4=[];for(const _0x20f8ce of _0x39385a){if(!_0x20f8ce['isInContent'])continue;if(_0x20f8ce['isMultiRange']){_0x1c87c4['push'](..._0x20f8ce['getRanges']());continue;}const _0x17535a=_0x20f8ce['getFirstRange']();if(_0x1c87c4['length']>0x0){const _0xfd36bd=_0x1c87c4[0x0]['getJoined'](_0x17535a);if(_0xfd36bd){_0x1c87c4[0x0]=_0xfd36bd;continue;}}_0x1c87c4['push'](_0x17535a);}_0x3f219d['push']([_0x576495['view'],_0x1c87c4]);}return _0x3f219d;}),this['listenTo'](_0x626e0e,'suggestionLoaded',(_0x56a233,_0x147da3)=>{this['listenTo'](_0x147da3,'change:previous',(_0x18159f,_0x256e53,_0x28c419,_0x3a9d03)=>{_0x147da3['isInContent']&&(null==_0x28c419?(this['_updateController'](_0x3a9d03['head']),this['_handleSuggestionControllerDelayed'](_0x147da3,!0x1)):(this['_updateController'](_0x28c419['head']),null==_0x3a9d03&&this['_handleSuggestionControllerDelayed'](_0x147da3,!0x0)));}),null!==_0x147da3['previous']?this['_updateController'](_0x147da3['head']):this['_handleSuggestionControllerDelayed'](_0x147da3,!0x1);}),this['listenTo'](_0x626e0e,'suggestionUnloaded',(_0x4cebbc,_0xe067ba,_0x49dda4)=>{this['stopListening'](_0xe067ba,'change:previous'),this['_handleControllerBuffer']['delete'](_0xe067ba),this['_suggestionToController']['has'](_0xe067ba)&&this['_destroyController'](_0xe067ba),_0x49dda4&&this['_updateController'](_0x49dda4['head']);}),this['listenTo'](_0x626e0e,'suggestionChanged',(_0x4179e8,_0x43e938)=>{this['_updateController'](_0x43e938);}),this['listenTo'](_0x4271d9,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5d9159,'addComment',(_0x45aefe,{threadId:_0x163bc9,isFromAdapter:_0x40a25b})=>{if(_0x40a25b||!_0x626e0e['hasSuggestion'](_0x163bc9))return;const _0x4b3219=_0x626e0e['getSuggestion'](_0x163bc9);this['_suggestionToController']['get'](_0x4b3219)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1e2f95=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2da008;for(const _0x37fa16 in _0x1e2f95){const _0x42e892=_0x37fa16,_0x280519=_0x1e2f95[_0x42e892];if('trackChangesLicenseKeyValid'==_0x280519||'trackChangesLicenseKeyInvalid'==_0x280519||'trackChangesLicenseKeyExpired'==_0x280519||'trackChangesLicenseKeyDomainLimit'==_0x280519||'trackChangesLicenseKeyNotAllowed'==_0x280519||'trackChangesLicenseKeyEvaluationLimit'==_0x280519||'trackChangesLicenseKeyTrialLimit'==_0x280519||'trackChangesLicenseKeyUsageLimit'==_0x280519){delete _0x1e2f95[_0x42e892],_0x2da008=_0x280519,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x2da008&&_0x1e2f95['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x2da008&&_0x1e2f95['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x2da008&&_0x1e2f95['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x2da008&&_0x1e2f95['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x2da008&&_0x1e2f95['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x2da008&&_0x1e2f95['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x2da008&&_0x1e2f95['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x4e0e0c=this['editor']['plugins']['get']('Annotations'),_0x235e14=this['editor']['plugins']['get']('TrackChangesEditing'),_0x524d57=Array['from'](_0x4e0e0c['activeAnnotations'],_0x1e37fb=>_0x1e37fb['innerView'])['filter'](_0x970a75=>this['_viewToController']['has'](_0x970a75)),_0x2a35ea=[];for(const _0x53bb2f of _0x524d57){const _0x2f7cba=this['_viewToController']['get'](_0x53bb2f)['model']['getAllAdjacentSuggestions']();_0x2a35ea['push'](..._0x2f7cba['reduce']((_0x5ec369,_0x392de6)=>[..._0x5ec369,..._0x392de6['getMarkerNames']()],[]));}_0x235e14['activeMarkers']=_0x2a35ea;}['_addUIComponentsToFactory'](){const _0x9790c6=this['editor'],_0x2f2729=_0x9790c6['locale'],_0x148c05=o(_0x2f2729,'Track\x20changes'),_0x2a5822=new _0xc60cdf([{'type':'switchbutton','model':new _0x1bd82c({'withText':!0x0,'isToggleable':!0x0,'label':_0x148c05,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x1bd82c({'withText':!0x0,'label':o(_0x2f2729,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1bd82c({'withText':!0x0,'label':o(_0x2f2729,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1bd82c({'withText':!0x0,'label':o(_0x2f2729,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1bd82c({'withText':!0x0,'label':o(_0x2f2729,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x9790c6['plugins']['has']('TrackChangesPreview')&&_0x2a5822['addMany']([{'type':'separator'},{'type':'button','model':new _0x1bd82c({'withText':!0x0,'label':o(_0x2f2729,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x23f239 of _0x2a5822)if(ke(_0x23f239)){const _0x4d5305=_0x9790c6['commands']['get'](_0x23f239['model']['commandName']);_0x23f239['model']['bind']('isOn','isEnabled')['to'](_0x4d5305,'value','isEnabled');}_0x9790c6['ui']['componentFactory']['add']('trackChanges',_0x4d3551=>this['_createToolbarButton'](_0x4d3551,_0x2a5822,_0x148c05)),_0x9790c6['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1dc479=>this['_createMenuBarMenu'](_0x1dc479,_0x2a5822,_0x148c05));}['_createToolbarButton'](_0x41d344,_0x17c7d2,_0x2bf7e6){const _0x349c94=_0x5d588b(_0x41d344,_0x5846c4),_0x5d5a9c=this['editor']['commands']['get']('trackChanges');_0x349c94['buttonView']['set']({'tooltip':_0x2bf7e6,'label':_0x2bf7e6,'icon':we}),_0x349c94['buttonView']['bind']('isOn')['to'](_0x5d5a9c,'value'),_0x349c94['buttonView']['on']('execute',()=>{_0x5d5a9c['execute'](),this['editor']['editing']['view']['focus']();}),_0x18b49c(_0x349c94,_0x17c7d2,{'role':'menu'});const _0x1bc71=[];for(const _0x332659 of _0x17c7d2)ke(_0x332659)&&_0x1bc71['push'](this['editor']['commands']['get'](_0x332659['model']['commandName']));const _0x33d642=_0x349c94['buttonView'];return _0x33d642['actionView']['unbind']('isEnabled'),_0x33d642['arrowView']['unbind']('isEnabled'),_0x33d642['actionView']['bind']('isEnabled')['to'](_0x5d5a9c,'isEnabled'),_0x33d642['arrowView']['bind']('isEnabled')['toMany'](_0x1bc71,'isEnabled',(..._0x1f3f5a)=>_0x1f3f5a['some'](_0x51ff78=>_0x51ff78)),_0x349c94['on']('execute',_0xd470e9=>{this['editor']['execute'](_0xd470e9['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x349c94;}['_createMenuBarMenu'](_0x2312f7,_0x1b3640,_0x3c4139){const _0x46d903=new _0x225691(_0x2312f7),_0x49b60f=this['editor']['commands']['get']('trackChanges');_0x46d903['buttonView']['set']({'label':_0x3c4139,'icon':we});const _0x59405e=new _0x31fb4c(_0x2312f7);for(const _0x1df414 of _0x1b3640){if('separator'==_0x1df414['type']){_0x59405e['items']['add'](new _0x5d4809(_0x2312f7));continue;}const _0x121b99=new _0x17e556(_0x2312f7,_0x46d903),_0x297597=new _0x12e83f(_0x2312f7),_0x24439c=_0x1df414['model'];_0x297597['bind'](...Object['keys'](_0x24439c))['to'](_0x24439c),_0x297597['delegate']('execute')['to'](_0x46d903),_0x297597['on']('execute',()=>{this['editor']['execute'](_0x24439c['commandName']),this['editor']['editing']['view']['focus']();}),_0x121b99['children']['add'](_0x297597),_0x59405e['items']['add'](_0x121b99);}return _0x46d903['bind']('isEnabled')['to'](_0x49b60f,'isEnabled'),_0x46d903['panelView']['children']['add'](_0x59405e),_0x46d903;}['_initializeController'](_0x434686){const _0x9123f8=this['editor'],_0x11221b=_0x9123f8['config'],_0x48a98d=_0x9123f8['plugins']['get']('Annotations'),_0x2d595b=_0x9123f8['plugins']['get']('CommentsRepository'),_0x3c62f8=_0x9123f8['plugins']['get']('EditorAnnotations'),_0x4a4065=_0x9123f8['plugins']['get'](_0x389bec)['me'],_0x49979c=_0x11221b['get']('trackChanges')['SuggestionThreadView'],_0x378bfd=_0x11221b['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x5670e5,CommentThreadInputView:_0x3de49f}=_0x9123f8['plugins']['get']('CommentsUI');let _0x32b494,_0x41b0bb,_0x564c72;this['_annotationViews']['has'](_0x434686['id'])?(_0x41b0bb=this['_annotationViews']['get'](_0x434686['id']),_0x32b494=_0x41b0bb['mainView']):(_0x32b494=new _0x49979c(_0x9123f8['locale'],_0x434686,_0x4a4065,{'disableComments':this['_disableComments'],'editorConfig':{..._0x11221b['get']('comments.editorConfig'),'licenseKey':_0x11221b['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x11221b['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x11221b['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x11221b['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1e2d61(_0x11221b['get']('locale')),'CommentView':_0x11221b['get']('comments')['CommentView'],'CommentsListView':_0x5670e5,'CommentThreadInputView':_0x3de49f,'SuggestionView':_0x378bfd}),_0x32b494['suggestionView']['acceptButton']['on']('execute',()=>{_0x9123f8['editing']['view']['focus']();}),_0x32b494['suggestionView']['discardButton']['on']('execute',()=>{_0x9123f8['editing']['view']['focus']();}),_0x41b0bb=_0x48a98d['createAnnotationView'](this['editor']['locale'],_0x32b494),_0x41b0bb['bind']('isDirty')['to'](_0x32b494,'isDirty'),_0x41b0bb['bind']('length')['to'](_0x32b494),_0x41b0bb['bind']('type')['to'](_0x32b494,'type',_0xc3b867=>'suggestion-'+_0xc3b867),_0x32b494['on']('escape',()=>{_0x564c72['fire']('escape');}),this['_annotationViews']['set'](_0x434686['id'],_0x41b0bb));const _0xec2aff=_0x2d595b['createCommentThreadController'](_0x434686['commentThread'],_0x32b494),_0x54fe7a=new Ce(_0x9123f8,_0x434686,_0x32b494,_0xec2aff),_0x5942f5=_0x434686['getAllAdjacentSuggestions']()['filter'](_0x156396=>_0x156396['isInContent']);_0x32b494['descriptionParts']=_0x9123f8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x5942f5),this['_suggestionToController']['set'](_0x434686,_0x54fe7a),this['_viewToController']['set'](_0x32b494,_0x54fe7a),_0x564c72=_0x48a98d['createAnnotation']({'view':_0x41b0bb,'target':()=>{const _0x4b548b=[],_0x50f54b=_0x434686['getAllAdjacentSuggestions']()['filter'](_0x51e804=>_0x51e804['isInContent']);for(const _0x525d90 of _0x50f54b)_0x4b548b['push'](..._0x525d90['getMarkers']());return _0x49b58d(_0x9123f8['editing'],_0x4b548b);},'type':()=>'suggestion-'+_0x54fe7a['view']['type']}),_0x2d595b['_bindAnnotationToEditors'](_0x32b494,_0x564c72),_0x48a98d['add'](_0x564c72),_0x3c62f8['registerAnnotation'](_0x564c72);}['_destroyController'](_0x2426ed){const _0x460130=this['editor']['plugins']['get']('CommentsRepository'),_0x4bcfed=this['editor']['plugins']['get']('Annotations'),_0x50ac53=this['_suggestionToController']['get'](_0x2426ed),_0x5be897=_0x50ac53['view'],_0x3e059f=_0x4bcfed['getByInnerView'](_0x5be897);_0x460130['_unbindEditors'](_0x5be897),_0x3e059f&&_0x4bcfed['remove'](_0x3e059f),this['_suggestionToController']['delete'](_0x2426ed),this['_viewToController']['delete'](_0x5be897),_0x50ac53['destroy']();}['_updateController'](_0x5298f7){if(!_0x5298f7['isInContent']||!this['_suggestionToController']['has'](_0x5298f7))return;const _0x473e6c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x50a0e5=this['_suggestionToController']['get'](_0x5298f7),_0x392fc7=_0x5298f7['getAllAdjacentSuggestions']();_0x50a0e5['view']['descriptionParts']=_0x473e6c['descriptionFactory']['getDescriptions'](_0x392fc7);}['destroy'](){for(const _0x300831 of this['_suggestionToController']['keys']())this['_destroyController'](_0x300831);for(const _0x4614b8 of this['_annotationViews']['values']())_0x4614b8['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x411547){return'model'in _0x411547;}class k extends _0x577abc{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x1a44eb){this['editor']['plugins']['get'](p)['adapter']=_0x1a44eb;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x16f769){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x16f769);}['getSuggestions']({skipNotAttached:_0x169be4=!0x1,toJSON:_0x5788cf=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x169be4,'toJSON':_0x5788cf});}['getSuggestion'](_0x42dcbc){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x42dcbc);}}const w=['Pagination'];class T extends _0x577abc{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x19e3cc=this['editor'];if(_0x19e3cc['config']['define']('trackChangesData.editorCreator',_0x733e4a=>{const _0x28881e=_0x19e3cc['model']['document']['getRootNames']()['reduce']((_0x5c7f2f,_0x1ead35)=>(_0x5c7f2f[_0x1ead35]='',_0x5c7f2f),{});return _0x19e3cc['constructor']['create'](_0x28881e,_0x733e4a);}),'function'!=typeof _0x19e3cc['config']['get']('trackChangesData')['editorCreator'])throw new _0x4d7761('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x28d4c1){return N(this['editor'],!0x0,_0x28d4c1);}['getDataWithDiscardedSuggestions'](_0x26b817){return N(this['editor'],!0x1,_0x26b817);}}class D extends _0x577abc{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x35afc9){function _0x1a07a3(_0x2b09dc){return _0x2b09dc['map'](_0x4f69e6=>String['fromCharCode'](_0x4f69e6))['join']('');}super(_0x35afc9),this['result']='end',_0x35afc9[_0x1a07a3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1a07a3([0x76,0x69,0x65,0x77])][_0x1a07a3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1a07a3([0x61,0x75,0x74,0x6f]),_0x35afc9[_0x1a07a3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1a07a3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1a07a3([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1a07a3([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1a07a3([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 Fe(_0x54d770){return void 0x0!==_0x54d770['getRootsAttributes'];}async function N(_0x95886d,_0x2c0d4f,_0x583154){const _0x211702=_0x4646b0(_0x95886d,w);_0x211702['plugins']['push'](p,D),_0x211702['rootsAttributes']=Fe(_0x95886d)?_0x95886d['getRootsAttributes']():void 0x0;const _0x30fe90=document['createDocumentFragment'](),_0x5cfa95=_0x95886d['config']['get']('trackChangesData')['editorCreator'],_0x53ac1a=await _0x5cfa95(_0x211702,()=>function(_0x428e58){const _0xada943=document['createElement']('div');return _0x428e58['appendChild'](_0xada943),_0xada943;}(_0x30fe90));!function(_0x4b399b,_0x3e4458){const _0x569982=_0x4b399b['model']['document']['getRootNames']()['reduce']((_0x256a20,_0x280c38)=>(_0x256a20[_0x280c38]=_0x4b399b['data']['get']({'rootName':_0x280c38}),_0x256a20),{}),_0x278687=_0x4b399b['plugins']['get']('Users')['users']['map'](_0xc43150=>({'id':_0xc43150['id'],'name':_0xc43150['name']})),_0x4c2cd6=_0x4b399b['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x25e590=_0x4b399b['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xe0b20d=_0x3e4458['plugins']['get']('Users'),_0x27b9d4=_0x3e4458['plugins']['get']('TrackChangesEditing'),_0xff332b=_0x3e4458['plugins']['get']('CommentsRepository');for(const _0x5137b4 of _0xff332b['getCommentThreads']())_0x5137b4['remove']();for(const _0x35ed2f of _0x278687)_0xe0b20d['getUser'](_0x35ed2f['id'])||_0xe0b20d['addUser'](_0x35ed2f);_0xe0b20d['me']||_0xe0b20d['useAnonymousUser']();for(const _0x4fe611 of _0x25e590)_0xff332b['addCommentThread'](_0x4fe611);for(const _0x579076 of _0x4c2cd6)_0x27b9d4['addSuggestionData'](_0x579076);_0x3e4458['data']['set'](_0x569982);}(_0x95886d,_0x53ac1a),_0x53ac1a['execute'](_0x2c0d4f?'acceptAllSuggestions':'discardAllSuggestions');const _0x5ddcb2=Fe(_0x53ac1a)?_0x53ac1a['getFullData'](_0x583154):_0x53ac1a['data']['get'](_0x583154);return await _0x53ac1a['destroy'](),_0x5ddcb2;}class Me extends _0x3964e1{['options'];constructor(_0x4055a9,_0x2bd26f){super(_0x4055a9),this['options']=_0x2bd26f,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'](_0x43f65f,_0x43ba7d){if(!this['element'])return;const _0x189ef7=[];for(const [_0x13f67b,_0x2fcce5]of _0x43f65f){const _0x43948a=document['createElement']('div');_0x43948a['setAttribute']('data-ck-root-name',_0x13f67b),_0x43948a['className']=_0x2fcce5['classes']+'\x20ck-track-changes-preview__root-container',_0x43948a['innerHTML']=_0x2fcce5['content'],_0x189ef7['push'](_0x43948a);}_0x43ba7d(this['element'],_0x189ef7),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Yt{constructor(_0x1acab7){super(_0x1acab7),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x17c328=this['editor'],_0x3bc905=_0x17c328['locale'],_0x27b237=_0x17c328['plugins']['get']('Dialog');let _0x46de14;const _0x53f037=function(_0x270ea3){const _0x2a7234={};if('editables'in _0x270ea3['ui']['view']){for(const [_0x3a29b4,_0x56b071]of Object['entries'](_0x270ea3['ui']['view']['editables']))_0x2a7234[_0x3a29b4]=_0x56b071['element'];}else _0x2a7234[_0x270ea3['model']['document']['getRootNames']()[0x0]]=_0x270ea3['ui']['view']['editable']['element'];return _0x2a7234;}(_0x17c328),_0xf8031f=function(_0x2538d1){let _0x2e7608=0x0;for(const _0x547de6 of Object['values'](_0x2538d1))_0x2e7608=Math['max'](_0x2e7608,_0x547de6['getBoundingClientRect']()['width']);let _0x42862f=0x0;for(const _0x16d3af of Object['values'](_0x2538d1))_0x42862f+=_0x16d3af['getBoundingClientRect']()['height'];const _0x1da4a8=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x2a5335=Math['min'](_0x42862f,_0x1da4a8);return{'width':_0x2e7608,'height':_0x2a5335};}(_0x53f037);_0x27b237['show']({'id':'finalContentPreview','title':o(_0x3bc905,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x3bc905,{'dialogRects':_0xf8031f}),'onHide':()=>{_0x46de14['detachFromDom']();},'onShow':()=>{_0x17c328['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x45fb25=>{const _0x3e79e5=this['_standarizeRootsData'](_0x45fb25,_0x17c328,_0x53f037);_0x27b237['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x3e79e5,_0x17c328['config']['get']('trackChanges.preview.renderFunction'));}),_0x46de14=new _0x59be9e(_0x3bc905,[_0x27b237['view']]),_0x46de14['attachToDom'](),_0x46de14['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x17c328['once']('destroy',()=>{_0x46de14['detachFromDom']();});const _0x5ee9f0=_0x27b237['view']['headerView']['class'];_0x27b237['view']['headerView']['class']=_0x5ee9f0?_0x5ee9f0+'\x20ck-reset_all':'ck-reset_all',_0x27b237['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x27b237['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x54d600=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x3f30e1=_0x54d600['previewMode'],_0x3ef6e4={};if('$labels'===_0x3f30e1){for(const _0x3e488d of _0x54d600['getMergeFieldsIds']())_0x3ef6e4[_0x3e488d]=_0x54d600['getLabel'](_0x3e488d)||_0x3e488d;}else{const _0x318ef5='$defaultValues'===_0x3f30e1?_0x54d600['getDefaultValues']():_0x54d600['getDataSetValues'](_0x3f30e1,!0x0);for(const _0x47acce of Object['entries'](_0x318ef5)){const [_0x4c5427,_0x11f211]=_0x47acce;_0x3ef6e4[_0x4c5427]=null!==_0x11f211?_0x11f211:_0x54d600['getLabel'](_0x4c5427)||_0x4c5427;}}return{'mergeFieldsData':_0x3ef6e4};}['_standarizeRootsData'](_0x3afc6b,_0x29d21f,_0x12e21a){let _0x28f6fe;if('string'==typeof _0x3afc6b){const _0x9232e3=_0x29d21f['model']['document']['getRootNames']()[0x0];_0x28f6fe={[_0x9232e3]:_0x3afc6b};}else _0x28f6fe=_0x3afc6b;const _0x18d0c2=this['_fixMediaEmbeds'](_0x28f6fe,_0x29d21f),_0x38c008=function(_0x475141,_0x1c3d17){for(const [_0x7135d6,_0x3c6c13]of _0x475141)_0x3c6c13['classes']=_0x1c3d17[_0x7135d6]['classList']['value']['replace']('ck-focused','');return _0x475141;}(this['_sortRoots'](_0x29d21f)['reduce']((_0x456c82,_0x412ee9)=>(_0x456c82['push']([_0x412ee9,{'content':_0x18d0c2[_0x412ee9],'classes':''}]),_0x456c82),[]),_0x12e21a);return _0x38c008;}['_fixMediaEmbeds'](_0x5fa399,_0x93faf1){if(!_0x93faf1['plugins']['has']('MediaEmbedEditing'))return _0x5fa399;const _0x309559=_0x93faf1['plugins']['get']('MediaEmbedEditing');for(const [_0x3af91b,_0x3fa0c9]of Object['entries'](_0x5fa399)){const _0x499083=document['createElement']('div');_0x499083['innerHTML']=_0x3fa0c9,(_0x499083['querySelectorAll']('figure.media')['forEach'](_0xe67408=>{const _0x31d6e6=_0xe67408['querySelector']('oembed');if(_0x31d6e6){const _0x5abbfe=_0x31d6e6['getAttribute']('url');if(_0x5abbfe){const _0x4b085e=_0x309559['registry']['getMediaViewElement'](new _0xb71fdb(_0x93faf1['editing']['view']['document']),_0x5abbfe,{'elementName':'','renderForEditingView':!0x0}),_0x7c9d5e=document['createElement']('div');_0x7c9d5e['classList']['add']('ck-media__wrapper'),_0x4b085e['render'](_0x7c9d5e,_0x93faf1['editing']['view']['domConverter']),_0x31d6e6['replaceWith'](_0x7c9d5e);}}}),_0x5fa399[_0x3af91b]=_0x499083['innerHTML']);}return _0x5fa399;}['_sortRoots'](_0x28c99b){if(!function(_0x55cd26){return void 0x0!==_0x55cd26['getRootsAttributes'];}(_0x28c99b))return _0x28c99b['model']['document']['getRootNames']();const _0x3b150d=[],_0x3676b5=new Map();for(const _0xf25870 of _0x28c99b['model']['document']['getRootNames']()){const _0x3de4ab=_0x28c99b['editing']['view']['getDomRoot'](_0xf25870)['getClientRects']()['item'](0x0);_0x3b150d['push'](_0xf25870),_0x3676b5['set'](_0xf25870,_0x3de4ab);}return _0x3b150d['sort']((_0x3d03ce,_0x281412)=>{const _0x4edea9=_0x3676b5['get'](_0x3d03ce),_0x2d2366=_0x3676b5['get'](_0x281412);return _0x4edea9['y']-_0x2d2366['y']||_0x4edea9['x']-_0x2d2366['x'];}),_0x3b150d;}}class te extends _0x577abc{static get['requires'](){return[T,_0x1bef8c];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2140e9){super(_0x2140e9),_0x2140e9['commands']['add']('previewFinalContent',new re(this['editor'])),_0x2140e9['config']['define']('trackChanges.preview.renderFunction',(_0x5a57ff,_0x150a49)=>{for(const _0x4b1f98 of _0x150a49)_0x5a57ff['appendChild'](_0x4b1f98);});}}export{ms as BaseSuggestionThreadView,u as Suggestion,pe as SuggestionThreadView,fe as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
|
|
23
|
+
import{Command as Yt,Plugin as _0x952b97,PendingActions as _0x508918,icons as _0x34d706}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x4f0098,ObservableMixin as _0x25d450,uid as _0x414b78,priorities as _0x254b36,insertToPriorityArray as _0x4127a8,logWarning as _0x47c69a,getEnvKeystrokeText as _0x248181,FocusTracker as _0x2cdc57,KeystrokeHandler as _0x57ec14,Collection as _0x17a785}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0xeaec6f,View as _0x573577,ViewCollection as _0xda8a68,FocusCycler as _0x2317b6,ViewModel as _0xe83ab4,createDropdown as _0x3f7aa2,SplitButtonView as _0x15f923,addListToDropdown as _0x2bd254,MenuBarMenuView as _0x3a3a46,MenuBarMenuListView as _0xeb3d49,ListSeparatorView as _0x535d03,MenuBarMenuListItemView as _0x4dd9e8,MenuBarMenuListItemButtonView as _0x21eef5,BodyCollection as _0x4ea731,Dialog as _0x1b8728}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x295a1a,hashObject as _0x2fd678,surroundingMarkersDetector as _0x181ff2,FOCUS_ANNOTATION_KEYSTROKE as _0x1776cf,AriaDescriptionView as _0x54b8cc,setupThreadKeyboardNavigation as _0x35fe76,trimHtml as _0x5f0aa4,UserView as _0x4ae5c3,LateFocusButtonView as _0x58eddd,getDateTimeFormatter as _0x44ddd8,getAllMarkersDomElementsSorted as _0x1edc5b,sanitizeEditorConfig as _0x243aec}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x3ced40,LiveRange as _0x4d5435,LivePosition as _0x187869,DowncastWriter as _0x3538cf}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x501a6a,toWidget as _0x59f4f8}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x46eb1a,set as _0x54021e,isEqual as _0x664dce,unset as _0x34f8a8,omit as Vt}from'lodash-es';import{Delete as _0x49f936,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x40ae35,ShiftEnter as _0x3b3aad}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Yt{['_enabledCommands'];constructor(_0x572836,_0x177813){super(_0x572836),this['_enabledCommands']=_0x177813,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 _0x3a443d of this['editor']['commands']['commands']())_0x3a443d['affectsData']&&!this['_enabledCommands']['has'](_0x3a443d)&&_0x3a443d['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x134fcd of this['editor']['commands']['commands']())_0x134fcd['affectsData']&&!this['_enabledCommands']['has'](_0x134fcd)&&_0x134fcd['clearForceDisabled']('TrackChangesCommand');}}class O extends Yt{['_suggestions'];constructor(_0x1ef29d,_0x5662e9){super(_0x1ef29d),this['_suggestions']=_0x5662e9,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x469ba1){const _0x3ddfc1=this['_suggestions']['get'](_0x469ba1);if(!_0x3ddfc1)throw new _0x4f0098('track-changes-accept-suggestion-not-found',this);const _0x5ce4f4=_0x3ddfc1['getRanges']();this['editor']['model']['canEditAt'](_0x5ce4f4)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x3ddfc1);}}class R extends Yt{['_suggestions'];constructor(_0x4e6412,_0x44df5f){super(_0x4e6412),this['_suggestions']=_0x44df5f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3bf8e4){const _0x947241=this['_suggestions']['get'](_0x3bf8e4);if(!_0x947241)throw new _0x4f0098('track-changes-discard-suggestion-not-found',this);const _0x37174f=_0x947241['getRanges']();this['editor']['model']['canEditAt'](_0x37174f)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x947241);}}function cs(_0x48c431,_0x596e53){let _0x44ef77='';return _0x44ef77+=_0x48c431['split']('*')['map']((_0x5d40e7,_0x596a5a)=>_0x596a5a%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x5d40e7)+'</span>':nn(_0x5d40e7))['join'](''),_0x596e53&&(_0x44ef77+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x596e53['value']+'\x22\x20title=\x22'+_0x596e53['title']+'\x22></span>'),_0x44ef77;}function nn(_0x2c0d9e){const _0x1fd158=document['createElement']('span');return _0x1fd158['innerText']=_0x2c0d9e,_0x1fd158['innerHTML'];}function Zt(_0x9ad18a){return _0x9ad18a['sort']((_0x4fd826,_0x58f4e8)=>'deletion'==_0x4fd826['type']&&'deletion'!=_0x58f4e8['type']?-0x1:'deletion'!=_0x4fd826['type']&&'deletion'==_0x58f4e8['type']?0x1:0x0);}function to(_0x3ae434,_0x3b79a3){let _0x433fe0,_0x4eea0b=0x0;const _0x27b926=[],_0x31de63=_0x3b79a3['schema'];for(;_0x4eea0b<_0x3ae434['length'];){const _0x3f9c82=_0x3ae434[_0x4eea0b],_0x443681=_0x3ae434[_0x4eea0b+0x1];_0x433fe0||(_0x433fe0=_0x3b79a3['createPositionBefore'](_0x3f9c82)),on(_0x3b79a3,_0x3f9c82,_0x443681)||(_0x27b926['push'](_0x3b79a3['createRange'](_0x433fe0,_0x31de63['isObject'](_0x3f9c82)?_0x3b79a3['createPositionAfter'](_0x3f9c82):_0x3b79a3['createPositionAt'](_0x3f9c82,'end'))),_0x433fe0=null),_0x4eea0b++;}return _0x27b926;}function on(_0x2d34cf,_0xdcc973,_0x1cd10a){if(!_0x1cd10a)return!0x1;const _0x53c415=_0x2d34cf['createPositionAfter'](_0xdcc973),_0x355cdf=_0x2d34cf['createPositionBefore'](_0x1cd10a);return _0x53c415['isTouching'](_0x355cdf);}function ts(_0x535797,_0x558915,_0x447e75){for(;_0x447e75['length'];){const _0x51ff74=_0x447e75['splice'](0x0,0x64);_0x535797['change'](()=>{for(const _0x222b08 of _0x51ff74)_0x222b08['isInContent']&&_0x558915['execute'](_0x222b08['id']);});}}class x extends Yt{['_command'];['_suggestions'];constructor(_0xa55864,_0x4751a2,_0x11a955){super(_0xa55864),this['_command']=_0x4751a2,this['_suggestions']=_0x11a955,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x377f6b=Array['from'](this['_suggestions']['values']())['some'](_0xfeb7b8=>_0xfeb7b8['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x377f6b;}['execute'](){const _0x2630ca=Zt(Array['from'](this['_suggestions']['values']()));for(const _0x2d90ef of _0x2630ca){const _0x169414=_0x2d90ef['getRanges']();if(!this['editor']['model']['canEditAt'](_0x169414))return;}ts(this['editor']['model'],this['_command'],_0x2630ca);}}class E extends Yt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x26c7bf,_0x523691,_0x1ee276){super(_0x26c7bf),this['_command']=_0x523691,this['_suggestions']=_0x1ee276,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x43e314=this['editor']['model']['document']['selection'],_0x4bf33b=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x314d4f,_0x59a870){const _0x229003=Array['from'](_0x314d4f['getRanges']()),_0x2c323c=new Set();for(const _0x3726b8 of _0x59a870)if(_0x3726b8['isInContent']){for(const _0xe003d4 of _0x229003)for(const _0x18e778 of _0x3726b8['getRanges']())(_0xe003d4['isIntersecting'](_0x18e778)||_0x314d4f['isCollapsed']&&!_0x3726b8['isMultiRange']&&_0x3726b8['next']&&_0x18e778['end']['isTouching'](_0xe003d4['start']))&&_0x2c323c['add'](_0x3726b8);}return _0x2c323c;}(_0x43e314,_0x4bf33b),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x38b466=Zt(Array['from'](this['_selectedSuggestions']));for(const _0x39cefd of _0x38b466){const _0x5bdf91=_0x39cefd['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5bdf91))return;}ts(this['editor']['model'],this['_command'],_0x38b466);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x25d450(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x54d902,_0x45c317){super(),this['id']=_0x45c317['id'],this['type']=_0x45c317['type'],this['subType']=_0x45c317['subType']||null,this['author']=_0x45c317['author'],this['creator']=_0x45c317['creator']||_0x45c317['author'],this['isExternal']=Boolean(_0x45c317['attributes']&&_0x45c317['attributes']['@external']),this['data']=null,this['_model']=_0x54d902,this['_onAccept']=_0x45c317['onAccept'],this['_onDiscard']=_0x45c317['onDiscard'],this['_onAttributesChange']=_0x45c317['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x45c317['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 _0x131df1=this;for(;_0x131df1['previous'];)_0x131df1=_0x131df1['previous'];return _0x131df1;}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'](_0x32353b){this['_markerNames']['add'](_0x32353b);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x241eef=>this['_model']['markers']['get'](_0x241eef))['filter'](_0x550f8e=>_0x550f8e);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x51a3bb=>{for(const _0x75b879 of this['getMarkers']())_0x51a3bb['removeMarker'](_0x75b879);}),this['_markerNames']['clear']();}['removeMarker'](_0x125060){this['_model']['change'](_0x3833af=>{_0x3833af['removeMarker'](_0x125060);}),this['_markerNames']['delete'](_0x125060);}['addRange'](_0xdb1068){const _0x4410b5='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x4410b5),this['_model']['change'](_0x49d0b4=>{_0x49d0b4['addMarker'](_0x4410b5,{'range':_0xdb1068,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1540ba){for(const _0x5a673f of this['getRanges']())if(_0x5a673f['isIntersecting'](_0x1540ba))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x5e68bf=>_0x5e68bf['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x41bc83,_0x370a97)=>[..._0x41bc83,..._0x370a97['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2bb853=this['getRanges']();if(0x1!=_0x2bb853['length'])return null;const _0x15a842=_0x2bb853[0x0],_0x3f58b4=_0x15a842['start']['nodeAfter'],_0x13d145=_0x15a842['end']['nodeBefore'];return _0x3f58b4 instanceof _0x3ced40?_0x3f58b4!=_0x13d145?null:_0x3f58b4: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 _0x34f278=[];let _0x5a1a03=this['head'];for(;_0x5a1a03;)_0x34f278['push'](_0x5a1a03),_0x5a1a03=_0x5a1a03['next'];return _0x34f278;}['setAttribute'](_0x26441f,_0x2ff235){const _0x108113=_0x46eb1a(this['attributes']);_0x54021e(_0x108113,_0x26441f,_0x2ff235),_0x664dce(_0x108113,this['attributes'])||(this['attributes']=_0x108113,this['_onAttributesChange'](_0x108113));}['removeAttribute'](_0x3f37f4){const _0x4a5553=_0x46eb1a(this['attributes']);_0x34f8a8(_0x4a5553,_0x3f37f4),_0x664dce(_0x4a5553,this['attributes'])||(this['attributes']=_0x4a5553,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 _0x414b78()['substr'](0x1,0x5);}}function o(_0x10fa74,_0x437a03,_0x552f8b){const _0xce823a=_0x10fa74['t'],t=_0x10fa74['t'];switch(_0x437a03){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',_0x552f8b);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x552f8b);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x552f8b);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x552f8b);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x552f8b);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',_0x552f8b);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x552f8b);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',_0x552f8b);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x552f8b);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x552f8b);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x552f8b);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x552f8b);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x552f8b);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x552f8b);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x552f8b);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x552f8b);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x552f8b);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x552f8b);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x552f8b);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x552f8b);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x552f8b);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x552f8b);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x552f8b);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x552f8b);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'},_0x552f8b);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x552f8b);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x552f8b);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x552f8b);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x552f8b);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x552f8b);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'},_0x552f8b);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x552f8b);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x552f8b);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x552f8b);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x552f8b);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'},_0x552f8b);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x552f8b);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'},_0x552f8b);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'},_0x552f8b);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x552f8b);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'},_0x552f8b);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x552f8b);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'},_0x552f8b);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x552f8b);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x552f8b);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'},_0x552f8b);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x552f8b);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 _0xce823a({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x552f8b);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0xce823a({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x552f8b);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x552f8b);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'},_0x552f8b);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'},_0x552f8b);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'},_0x552f8b);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x437a03;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x509992,_0x4cdc44){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x509992,this['_locale']=_0x4cdc44;}['getDescriptions'](_0x5b298b){const _0x101168=[],_0x198ad2=new Set(),_0x26f609=new Set();for(let _0x50afa1=0x0;_0x50afa1<_0x5b298b['length'];_0x50afa1++){const _0x358dbd=_0x5b298b[_0x50afa1];if(!_0x358dbd['isInContent'])continue;const _0x33977e=this['_handleCustomCallbackDescription'](_0x358dbd);if(_0x33977e){if(null!=_0x358dbd['subType']){if(_0x198ad2['has'](_0x358dbd['subType']))continue;_0x198ad2['add'](_0x358dbd['subType']);}_0x101168['push'](_0x33977e);}else{if('attribute'!=_0x358dbd['type'])'insertion'!=_0x358dbd['type']&&'deletion'!=_0x358dbd['type']||this['_handleInsertRemoveSuggestionDescription'](_0x101168,_0x358dbd,_0x5b298b[_0x50afa1+0x1]);else{const _0x1120f7=_0x358dbd['data']['key'];if(_0x26f609['has'](_0x1120f7))continue;_0x26f609['add'](_0x358dbd['data']['key']),_0x1120f7==m?this['_handleRenameSuggestionDescription'](_0x101168,_0x358dbd):this['_handleAttributeSuggestionDescription'](_0x101168,_0x358dbd);}}}return this['_resolveDescriptionItems'](_0x101168);}['registerDescriptionCallback'](_0x2ef2de){this['_customCallbacks']['push'](_0x2ef2de);}['registerElementLabel'](_0x6d6f93,_0x3bd32d,_0x1122cc=_0x254b36['normal']){'function'==typeof _0x6d6f93?_0x4127a8(this['_itemLabelsCallbacks'],{'matchingCallback':_0x6d6f93,'label':_0x3bd32d,'priority':_0x1122cc}):this['_itemLabels']['set'](_0x6d6f93,_0x3bd32d);}['registerAttributeLabel'](_0x58a918,_0x4da956){this['_attributeLabels']['set'](_0x58a918,_0x4da956);}['getItemLabel'](_0x4dab7c,_0x5b3445=0x1){let _0x3ca9dc;for(const _0x3dbb91 of this['_itemLabelsCallbacks'])if(_0x3dbb91['matchingCallback'](_0x4dab7c)){_0x3ca9dc=_0x3dbb91['label'];break;}return _0x3ca9dc||(_0x3ca9dc=this['_itemLabels']['get'](_0x4dab7c['name'])),_0x3ca9dc?_0x3ca9dc(_0x5b3445):0x1!==_0x5b3445?_0x5b3445+'\x20'+_0x4dab7c['name']+'s':''+_0x4dab7c['name'];}['_addDescriptionItems'](_0x3707f9,_0x1926d2){const _0x466998=_0x1926d2['getFirstRange']()['getWalker'](),_0x439e31='insertion'==_0x1926d2['type']?'add':'remove';for(const _0x28ff19 of _0x466998){const _0x3187c7=_0x28ff19['item'],_0x3a8ebd=_0x3707f9[_0x3707f9['length']-0x1];if(_0x3187c7['is']('$textProxy'))_0x3a8ebd&&_0x3a8ebd['type']['indexOf']('Container')>-0x1&&_0x3707f9['pop'](),_0x3a8ebd&&'text'==_0x3a8ebd['type']?_0x3a8ebd[_0x439e31]+=_0x3187c7['data']:_0x3707f9['push']({'type':'text','add':'add'==_0x439e31?_0x3187c7['data']:'','remove':'remove'==_0x439e31?_0x3187c7['data']:''});else{if(this['_schema']['isObject'](_0x3187c7)){const _0x2e6e64=_0x3187c7;if(_0x3a8ebd&&_0x3a8ebd['type']['indexOf']('Container')>-0x1&&_0x3707f9['pop'](),'elementEnd'==_0x28ff19['type'])continue;_0x3a8ebd&&_0x3a8ebd['type']==_0x439e31+'Object'&&_0x3a8ebd['element']['name']==_0x2e6e64['name']?_0x3a8ebd['quantity']++:_0x3707f9['push']({'type':_0x439e31+'Object','element':_0x2e6e64,'quantity':0x1}),_0x466998['skip'](_0x4ff562=>!('elementEnd'==_0x4ff562['type']&&_0x4ff562['item']==_0x3187c7));}else{if(this['_schema']['checkChild'](_0x3187c7,'$text')||_0x3187c7['is']('element','softBreak')){const _0x357781=_0x3187c7;if('add'==_0x439e31&&'elementStart'==_0x28ff19['type']||'remove'==_0x439e31&&'elementEnd'==_0x28ff19['type'])continue;if(_0x3a8ebd&&-0x1==_0x3a8ebd['type']['indexOf']('Container')){'text'==_0x3a8ebd['type']&&(_0x3a8ebd[_0x439e31]+='\x0a');continue;}let _0x2d5a8c;if(_0x2d5a8c='add'==_0x439e31?_0x357781['nextSibling']&&!this['_schema']['isObject'](_0x357781['nextSibling'])?_0x357781['nextSibling']:null:_0x357781['previousSibling']&&!this['_schema']['isObject'](_0x357781['previousSibling'])?_0x357781['previousSibling']:null,_0x357781['isEmpty']||_0x2d5a8c&&_0x2d5a8c['isEmpty']){const _0x32efe9=_0x2d5a8c&&_0x2d5a8c['isEmpty']?_0x2d5a8c:_0x357781;_0x3a8ebd&&_0x3a8ebd['type']==_0x439e31+'EmptyContainer'&&_0x3a8ebd['element']['name']==_0x32efe9['name']?_0x3a8ebd['quantity']++:_0x3707f9['push']({'type':_0x439e31+'EmptyContainer','element':_0x32efe9,'quantity':0x1});}else _0x3707f9['push']({'type':_0x439e31+'Container','element':_0x357781});}}}}}['_resolveDescriptionItems'](_0x2e1c97){const _0x15626b=this['_locale'],_0xd0f536=[],_0x3a7462=[],_0x373f4d=[];for(const _0x158325 of _0x2e1c97)switch(_0x158325['type']){case'text':if(_0x158325['add']=_0x158325['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x158325['remove']=_0x158325['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x158325['add']&&''!=_0x158325['remove']){_0xd0f536['push']({'type':'replace','content':o(_0x15626b,'REPLACE_TEXT',['\x22'+_0x158325['remove']+'\x22','\x22'+_0x158325['add']+'\x22'])});continue;}if(null!=_0x158325['add']['match'](/^ +$/)){_0xd0f536['push']({'type':'insertion','content':o(_0x15626b,'*Insert:*\x20%0',o(_0x15626b,'ELEMENT_SPACE',_0x158325['add']['length']))});continue;}if(null!=_0x158325['remove']['match'](/^ +$/)){_0xd0f536['push']({'type':'deletion','content':o(_0x15626b,'*Remove:*\x20%0',o(_0x15626b,'ELEMENT_SPACE',_0x158325['remove']['length']))});continue;}if(''!=_0x158325['add']){_0xd0f536['push']({'type':'insertion','content':o(_0x15626b,'*Insert:*\x20%0','\x22'+_0x158325['add']+'\x22')});continue;}_0xd0f536['push']({'type':'deletion','content':o(_0x15626b,'*Remove:*\x20%0','\x22'+_0x158325['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0xd0f536['push']({'type':'insertion','content':o(_0x15626b,'*Insert:*\x20%0',this['getItemLabel'](_0x158325['element'],_0x158325['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0xd0f536['push']({'type':'deletion','content':o(_0x15626b,'*Remove:*\x20%0',this['getItemLabel'](_0x158325['element'],_0x158325['quantity']))});continue;case'addContainer':_0xd0f536['push']({'type':'insertion','content':o(_0x15626b,'*Split:*\x20%0',this['getItemLabel'](_0x158325['element'],_0x158325['quantity']))});continue;case'removeContainer':_0xd0f536['push']({'type':'deletion','content':o(_0x15626b,'*Merge:*\x20%0',this['getItemLabel'](_0x158325['element'],_0x158325['quantity']))});continue;case'addFormat':_0x3a7462['push'](_0x158325['key']);continue;case'removeFormat':_0x373f4d['push'](_0x158325['key']);continue;default:_0xd0f536['push'](_0x158325);}if(_0x3a7462['length']){const _0x5a8e13=_0x3a7462['map'](_0x4f6cfc=>this['_attributeLabels']['has'](_0x4f6cfc)?this['_attributeLabels']['get'](_0x4f6cfc):_0x4f6cfc)['join'](',\x20');_0xd0f536['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x5a8e13)});}if(_0x373f4d['length']){const _0xb619d2=_0x373f4d['map'](_0x5bfb56=>this['_attributeLabels']['has'](_0x5bfb56)?this['_attributeLabels']['get'](_0x5bfb56):_0x5bfb56)['join'](',\x20');_0xd0f536['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0xb619d2)});}return _0xd0f536;}['_handleCustomCallbackDescription'](_0x27c1a1){for(const _0x102e5e of this['_customCallbacks']){const _0x1149fa=_0x102e5e(_0x27c1a1);if(_0x1149fa&&'type'in _0x1149fa)return _0x1149fa;}}['_handleAttributeSuggestionDescription'](_0x298841,_0x34c218){const _0x2d22db=_0x34c218['data'],_0x3a56d6=void 0x0===_0x2d22db['newValue']?'removeFormat':'addFormat';_0x298841['push']({'type':_0x3a56d6,'key':_0x2d22db['key']});}['_handleRenameSuggestionDescription'](_0x2c6c3e,_0x2350ef){_0x2c6c3e['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x2350ef['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x9cf4c2,_0x3ba1ac,_0x5dac17){if(this['_addDescriptionItems'](_0x9cf4c2,_0x3ba1ac),_0x5dac17&&_0x5dac17['getFirstRange']()&&!_0x3ba1ac['getFirstRange']()['end']['isEqual'](_0x5dac17['getFirstRange']()['start'])){const _0x291e25=_0x9cf4c2[_0x9cf4c2['length']-0x1],_0x4cfff5='insertion'==_0x3ba1ac['type']?'add':'remove';_0x291e25&&'text'==_0x291e25['type']&&(_0x291e25[_0x4cfff5]+='\x0a');}}}class U extends _0x952b97{['afterInit'](){const _0x2d404b=this['editor'],_0x2f5bc0=_0x2d404b['plugins']['get']('TrackChangesEditing');_0x2d404b['commands']['get']('showAIAssistant')&&_0x2f5bc0['enableCommand']('showAIAssistant');}}class V extends _0x952b97{['afterInit'](){const _0x3624cd=this['editor'],_0x37983c=_0x3624cd['locale'];if(!_0x3624cd['plugins']['has']('AlignmentEditing'))return;const _0x25f7cc=_0x3624cd['plugins']['get']('TrackChangesEditing');_0x25f7cc['enableDefaultAttributesIntegration']('alignment'),_0x25f7cc['registerBlockAttribute']('alignment'),_0x25f7cc['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x37983c,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x24c5f2=this['editor'],_0x2b1a93=_0x24c5f2['locale'];_0x24c5f2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x597d30=>{if('formatBlock'!=_0x597d30['type'])return;const {data:_0x52cbc7}=_0x597d30;if(_0x52cbc7&&'alignment'==_0x52cbc7['commandName']){const _0xba570b=_0x52cbc7['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x2b1a93,'*Format:*\x20%0',function(_0x59338c){switch(_0x59338c){case'left':return o(_0x2b1a93,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x2b1a93,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x2b1a93,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x2b1a93,'FORMAT_JUSTIFY_TEXT');}}(_0xba570b))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x952b97{['afterInit'](){const _0x2fa366=this['editor'],_0x415cf5=_0x2fa366['plugins']['get']('TrackChangesEditing'),_0x2e94fd=_0x2fa366['locale'];for(const _0x294b4b of ti){if(!_0x2fa366['plugins']['has'](_0x294b4b))continue;const _0x17e4ad=_0x294b4b['slice'](0x0,-0x7)['toLowerCase'](),_0x1495f4='FORMAT_'+_0x17e4ad['toUpperCase']();_0x415cf5['enableDefaultAttributesIntegration'](_0x17e4ad),_0x415cf5['registerInlineAttribute'](_0x17e4ad),_0x415cf5['descriptionFactory']['registerAttributeLabel'](_0x17e4ad,o(_0x2e94fd,_0x1495f4));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5758df=this['editor'],_0x44049e=_0x5758df['locale'],_0x2ee5d2=_0x5758df['plugins']['get']('TrackChangesEditing');function _0x2e4657(_0x870562,_0xe313cb){_0x2ee5d2['descriptionFactory']['registerDescriptionCallback'](_0x49cdbd=>{if('formatInline'!=_0x49cdbd['type'])return;const {data:_0x1ff478}=_0x49cdbd;return _0x1ff478&&_0x1ff478['commandName']===_0x870562?_0x1ff478['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x44049e,'*Format:*\x20%0',_0xe313cb)}:{'type':'format','content':o(_0x44049e,'*Remove\x20format:*\x20%0',_0xe313cb)}:void 0x0;});}_0x2e4657('bold',o(_0x44049e,'FORMAT_BOLD')),_0x2e4657('italic',o(_0x44049e,'FORMAT_ITALIC')),_0x2e4657('underline',o(_0x44049e,'FORMAT_UNDERLINE')),_0x2e4657('code',o(_0x44049e,'FORMAT_CODE')),_0x2e4657('strikethrough',o(_0x44049e,'FORMAT_STRIKETHROUGH')),_0x2e4657('subscript',o(_0x44049e,'FORMAT_SUBSCRIPT')),_0x2e4657('superscript',o(_0x44049e,'FORMAT_SUPERSCRIPT'));}}class F extends _0x952b97{['afterInit'](){const _0x2e335a=this['editor'],_0x4fa04a=_0x2e335a['locale'];if(!_0x2e335a['plugins']['has']('BlockQuoteEditing'))return;const _0x5cde53=_0x2e335a['plugins']['get']('TrackChangesEditing'),_0x56445b=this['editor']['commands']['get']('blockQuote');_0x5cde53['enableCommand']('blockQuote',(_0xed3391,_0xbb10a2={})=>{const _0x3b2aab=this['editor']['model']['document']['selection'],_0x2cc24e=_0xbb10a2&&void 0x0!==_0xbb10a2['forceValue']?_0xbb10a2['forceValue']:!_0x56445b['value'];let _0x1635f7=[];if(_0x2cc24e){const _0x4d9b66=Array['from'](_0x3b2aab['getSelectedBlocks']())['filter'](_0x435330=>oo(_0x435330)||function(_0x271275,_0x117c1c){const _0x4260b7=_0x117c1c['checkChild'](_0x271275['parent'],'blockQuote'),_0x239973=_0x117c1c['checkChild'](['$root','blockQuote'],_0x271275);return _0x4260b7&&_0x239973;}(_0x435330,this['editor']['model']['schema']));_0x1635f7=to(_0x4d9b66,_0x2e335a['model']);}else{const _0x4e4eda=Array['from'](_0x3b2aab['getSelectedBlocks']())['filter'](_0x5128b8=>oo(_0x5128b8));_0x1635f7=to(_0x4e4eda,_0x2e335a['model']);}_0x2e335a['model']['change'](()=>{for(const _0x11489a of _0x1635f7)_0x5cde53['markBlockFormat'](_0x11489a,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2cc24e}]});});}),_0x5cde53['descriptionFactory']['registerDescriptionCallback'](_0x289856=>{const {data:_0xa7cacf}=_0x289856;if(_0xa7cacf&&'blockQuote'==_0xa7cacf['commandName']){const _0x420e8a=o(_0x4fa04a,'ELEMENT_BLOCK_QUOTE');return _0xa7cacf['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4fa04a,'*Set\x20format:*\x20%0',_0x420e8a)}:{'type':'format','content':o(_0x4fa04a,'*Remove\x20format:*\x20%0',_0x420e8a)};}});}}function oo(_0x226e69){return'blockQuote'==_0x226e69['parent']['name'];}class L extends _0x952b97{['afterInit'](){const _0x58a682=this['editor'],_0x8c5b5f=_0x58a682['locale'],_0xf4c651=_0x58a682['plugins']['get']('TrackChangesEditing');_0x58a682['plugins']['has']('BookmarkEditing')&&(_0xf4c651['enableCommand']('insertBookmark'),_0xf4c651['enableDefaultAttributesIntegration']('updateBookmark'),_0xf4c651['registerBlockAttribute']('bookmarkId'),_0xf4c651['descriptionFactory']['registerDescriptionCallback'](_0x5e745d=>{if('insertion'!=_0x5e745d['type']&&'deletion'!=_0x5e745d['type']&&'attribute'!=_0x5e745d['type'])return;const _0x2e21e6=_0x5e745d['getContainedElement']();if(null==_0x2e21e6)return;if(!_0x2e21e6['is']('element','bookmark'))return;const _0x485e41=_0x2e21e6['getAttribute']('bookmarkId');if('insertion'==_0x5e745d['type'])return{'type':'insertion','content':o(_0x8c5b5f,'*Insert:*\x20%0','\x22'+_0x485e41+'\x22\x20'+o(_0x8c5b5f,'ELEMENT_BOOKMARK'))};if('deletion'==_0x5e745d['type'])return{'type':'deletion','content':o(_0x8c5b5f,'*Remove:*\x20%0','\x22'+_0x485e41+'\x22\x20'+o(_0x8c5b5f,'ELEMENT_BOOKMARK'))};const {data:_0x4ab17d}=_0x5e745d;if(!_0x4ab17d||'bookmarkId'!=_0x4ab17d['key'])return;return{'type':'format','content':o(_0x8c5b5f,'*Set\x20bookmark:*\x20%0','\x22'+_0x4ab17d['newValue']+'\x22')};}));}}class J extends _0x952b97{['afterInit'](){const _0x1eadc7=this['editor'];_0x1eadc7['plugins']['has']('CaseChange')&&(_0x1eadc7['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1eadc7['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1eadc7['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x952b97{['afterInit'](){const _0x54d678=this['editor'];_0x54d678['commands']['get']('ckbox')&&_0x54d678['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x952b97{['afterInit'](){const _0x3a982f=this['editor'];if(!_0x3a982f['plugins']['has']('CodeBlock'))return;const _0x2da313=_0x3a982f['plugins']['get']('TrackChangesEditing'),_0x1bbb93=_0x3a982f['locale'],_0x1db48f=_0x3a982f['config']['get']('codeBlock')['languages'],_0x35405e=_0x3a982f['commands']['get']('codeBlock');_0x2da313['enableCommand']('indentCodeBlock'),_0x2da313['enableCommand']('outdentCodeBlock'),_0x2da313['enableCommand']('codeBlock',(_0x13580d,_0x16d06a={})=>{const _0x6eccb1=_0x3a982f['model'],_0x158323=_0x3a982f['model']['document']['selection'],_0x23c885=_0x16d06a&&void 0x0!==_0x16d06a['forceValue']?_0x16d06a['forceValue']:!_0x35405e['value'];let _0x339e1b;_0x16d06a['language']||(_0x16d06a['language']=_0x1db48f[0x0]['language']),_0x339e1b=_0x23c885?Array['from'](_0x158323['getSelectedBlocks']())['filter'](_0x339b04=>eo(_0x339b04)||function(_0x1fad4b,_0x5b9620){if(_0x1fad4b['is']('rootElement')||_0x5b9620['isLimit'](_0x1fad4b))return!0x1;return _0x5b9620['checkChild'](_0x1fad4b['parent'],'codeBlock');}(_0x339b04,_0x6eccb1['schema'])):Array['from'](_0x158323['getSelectedBlocks']())['filter'](_0x47395d=>eo(_0x47395d));const _0x30171b=to(_0x339e1b,_0x6eccb1);_0x6eccb1['change'](()=>{for(const _0x33c98e of _0x30171b)_0x2da313['markBlockFormat'](_0x33c98e,{'commandName':'codeBlock','commandParams':[{..._0x16d06a,'forceValue':_0x23c885}],'formatGroupId':'blockName'});});}),(_0x2da313['descriptionFactory']['registerElementLabel']('codeBlock',_0x3829a1=>o(_0x1bbb93,'ELEMENT_CODE_BLOCK',_0x3829a1)),_0x2da313['descriptionFactory']['registerDescriptionCallback'](_0x4732b0=>{if('formatBlock'!=_0x4732b0['type'])return;const _0x2f2204=_0x1bbb93['t'],{data:_0x3cac85}=_0x4732b0;if(!_0x3cac85||'codeBlock'!=_0x3cac85['commandName'])return;const _0xcb9d49=_0x3cac85['commandParams'][0x0]['language'],_0x3b9e80=_0x2f2204(_0x1db48f['find'](_0x11cb18=>_0x11cb18['language']===_0xcb9d49)['label'])['toLowerCase']();return _0x3cac85['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1bbb93,'*Set\x20format:*\x20%0',o(_0x1bbb93,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x3b9e80+')')}:{'type':'format','content':o(_0x1bbb93,'*Remove\x20format:*\x20%0',o(_0x1bbb93,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x9d040a){return'codeBlock'==_0x9d040a['name'];}class z extends _0x952b97{['afterInit'](){const _0x3f1e85=this['editor'];if(!_0x3f1e85['plugins']['has']('CommentsEditing'))return;_0x3f1e85['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x5f1ca1,_0x2270fe,_0x27739){const _0x118673=[];for(const _0x2b69df of _0x2270fe['getItems']())_0x2b69df['hasAttribute'](_0x5f1ca1)&&_0x118673['push'](_0x27739['createRangeOn'](_0x2b69df));return _0x118673;}function De(_0x136d17,_0x4e9969,{showActiveMarker:_0x567ec0=!0x0}={}){const _0x163aa8=_0x136d17['plugins']['get']('TrackChangesEditing');return(_0x516a91,_0x5478d8,_0x3f5526)=>{if(!_0x3f5526['consumable']['test'](_0x5478d8['markerRange'],_0x516a91['name']))return;const _0x50dda9=_0x5478d8['markerRange']['getWalker'](),_0x5c5671=_0x5478d8['markerRange']['start'],_0x1c4459=_0x136d17['model']['schema'];let _0x5a5c97=null,_0x3a7467=null,_0x8ed32c=!0x1,_0x1f5e79=!0x1;for(const _0x4e7e6e of _0x50dda9){const _0x5ce75f=_0x4e7e6e['item'];_0x8ed32c=_0x8ed32c||_0x1c4459['isContent'](_0x5ce75f);const _0x581c27=_0x3f5526['mapper']['toViewElement'](_0x5ce75f);if(_0x581c27&&_0x581c27['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4e7e6e['type']&&(_0x1c4459['isBlock'](_0x5ce75f)&&!_0x1c4459['isLimit'](_0x5ce75f)&&(_0x5ce75f['nextSibling']||_0x5c5671['isAtEnd']?_0x5a5c97&&_0x5a5c97['parent']==_0x5ce75f||(_0x5a5c97=_0x5ce75f,_0x39b1be(_0x4e7e6e['previousPosition']),_0x1f5e79=!0x0):_0x3a7467=_0x3a7467||_0x4e7e6e['previousPosition']));}function _0x39b1be(_0x283d6d){const {authorId:_0xdbe4f4}=_0x163aa8['_splitMarkerName'](_0x5478d8['markerName']),_0xb682ec=_0x3f5526['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4e9969,'data-author-id':_0xdbe4f4}),_0x551c90=_0x3f5526['mapper']['toViewPosition'](_0x283d6d);_0x567ec0&&_0x163aa8['activeMarkers']['includes'](_0x5478d8['markerName'])&&_0x3f5526['writer']['addClass']('ck-suggestion-marker--active',_0xb682ec),_0x3f5526['writer']['insert'](_0x551c90,_0xb682ec),_0x3f5526['mapper']['bindElementToMarker'](_0xb682ec,_0x5478d8['markerName']);}_0x8ed32c||_0x1f5e79||!_0x3a7467||_0x39b1be(_0x3a7467);};}class K extends _0x952b97{static get['requires'](){return[_0x49f936];}['init'](){const _0x2eac41=this['editor'],_0x4406bf=_0x2eac41['plugins']['get']('TrackChangesEditing');_0x4406bf['enableCommand']('delete');const _0x40ff00=_0x2eac41['commands']['get']('deleteForward');_0x4406bf['enableCommand']('deleteForward',(_0x4c04aa,_0x851cb9={})=>{const _0x1fe9a2=_0x2eac41['model']['createSelection'](_0x2eac41['model']['document']['selection']);_0x1fe9a2['isCollapsed']&&_0x2eac41['model']['modifySelection'](_0x1fe9a2,{'direction':'forward','unit':_0x851cb9['unit']});const _0xb8ca58=_0x1fe9a2['getFirstRange'](),_0x2ef283=_0x4d5435['fromRange'](_0xb8ca58);let _0x384421;_0x4c04aa(_0x851cb9),_0x384421='$graveyard'==_0x2ef283['root']['rootName']?_0x2eac41['model']['createRange'](_0xb8ca58['start']):_0x2eac41['model']['createRange'](_0x2ef283['start'],_0x2ef283['end']),_0x2ef283['detach'](),_0x2eac41['model']['enqueueChange'](_0x40ff00['buffer']['batch'],_0x267171=>{_0x40ff00['buffer']['lock'](),_0x267171['setSelection'](_0x267171['createRange'](_0x384421['end'])),_0x40ff00['buffer']['unlock']();});}),_0x2eac41['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x2eac41,'merge'),{'priority':'high'}),_0x2eac41['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x31d13b,_0x4ce4b1,_0x3e9a96)=>{_0x3e9a96['options']['showSuggestionHighlights']&&De(_0x2eac41,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x31d13b,_0x4ce4b1,_0x3e9a96);},{'priority':'high'}),_0x2eac41['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x36433b,_0x4358d2,_0x38bc24)=>{const _0x3ed75a=_0x38bc24['mapper']['markerNameToElements'](_0x4358d2['markerName']);if(_0x3ed75a){for(const _0x168c87 of _0x3ed75a)_0x168c87['is']('uiElement')&&(_0x38bc24['mapper']['unbindElementFromMarkerName'](_0x168c87,_0x4358d2['markerName']),_0x38bc24['writer']['remove'](_0x168c87));}},{'priority':'high'});}}class W extends _0x952b97{['afterInit'](){const _0x1e00b5=this['editor'];if(!_0x1e00b5['plugins']['has']('ListEditing'))return;const _0x38903c=_0x1e00b5['locale'],_0x3daa2d=_0x1e00b5['plugins']['get']('TrackChangesEditing'),_0x30cc05=_0x1e00b5['plugins']['has']('TodoListEditing'),_0x53d88d=!!_0x1e00b5['config']['get']('list.multiBlock');function _0x4126ce(_0x1a9003){return{'type':'format','content':''+o(_0x38903c,'*Set\x20format:*\x20%0',_0x1a9003)};}function _0x5058ca(_0x3f744a){return{'type':'format','content':''+o(_0x38903c,'*Remove\x20format:*\x20%0',_0x3f744a)};}_0x3daa2d['enableDefaultAttributesIntegration']('numberedList'),_0x3daa2d['enableDefaultAttributesIntegration']('bulletedList'),_0x3daa2d['enableDefaultAttributesIntegration']('customNumberedList'),_0x3daa2d['enableDefaultAttributesIntegration']('customBulletedList'),_0x3daa2d['enableDefaultAttributesIntegration']('indentList'),_0x3daa2d['enableDefaultAttributesIntegration']('outdentList'),_0x3daa2d['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x3daa2d['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x3daa2d['registerBlockAttribute']('listItemId'),_0x3daa2d['registerBlockAttribute']('listType'),_0x3daa2d['registerBlockAttribute']('listIndent'),_0x53d88d&&(_0x3daa2d['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x3daa2d['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x30cc05&&(_0x3daa2d['enableDefaultAttributesIntegration']('todoList'),_0x3daa2d['enableDefaultAttributesIntegration']('checkTodoList'),_0x3daa2d['registerBlockAttribute']('todoListChecked'),_0x3daa2d['descriptionFactory']['registerDescriptionCallback'](_0x553e05=>{const {data:_0x6d2ccf}=_0x553e05;if(_0x6d2ccf&&'todoListChecked'==_0x6d2ccf['key'])return{'type':'format','content':_0x6d2ccf['newValue']?o(_0x38903c,'*Check\x20item*'):o(_0x38903c,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4228be=>{if(_0x4228be['batch']['isUndo'])return!0x1;let _0x167b39=!0x1;const _0x231b25=_0x3daa2d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x326b5b=>'todoListChecked'===_0x3daa2d['_getAttributeKey'](_0x326b5b));for(const _0x3cef77 of _0x231b25){'todo'!=_0x3cef77['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x3daa2d['_findSuggestions'](_0x3cef77['getFirstRange'](),'attribute')['find'](_0x2a5e68=>'listType'===_0x3daa2d['_getAttributeKey'](_0x2a5e68['suggestion']))||(_0x4228be['removeMarker'](_0x3cef77['getFirstMarker']()),_0x167b39=!0x0));}return _0x167b39;})),_0x3daa2d['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x38903c,'FORMAT_INDENT'));const _0x1fcaf6={'type':'format','content':''};_0x3daa2d['descriptionFactory']['registerDescriptionCallback'](_0x5d8572=>{const {data:_0x20c171}=_0x5d8572;if(!_0x20c171||'listType'!=_0x20c171['key'])return;let _0x46ea5b=_0x5d8572['head'];for(;_0x46ea5b;){if(_0x46ea5b['data']&&(('listStyle'==_0x46ea5b['data']['key']||'listMarkerStyle'==_0x46ea5b['data']['key'])&&(_0x46ea5b['data']['newValue']&&'default'!=_0x46ea5b['data']['newValue']||'default'!=_0x46ea5b['data']['oldValue']&&!_0x20c171['newValue'])||!_0x53d88d&&_0x46ea5b['data']['key']==m))return _0x1fcaf6;_0x46ea5b=_0x46ea5b['next'];}if(null==_0x20c171['newValue'])switch(_0x20c171['oldValue']){case'bulleted':return _0x5058ca(o(_0x38903c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5058ca(o(_0x38903c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5058ca(o(_0x38903c,'ELEMENT_TODO_LIST'));}switch(_0x20c171['newValue']){case'bulleted':return _0x4126ce(o(_0x38903c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4126ce(o(_0x38903c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4126ce(o(_0x38903c,'ELEMENT_TODO_LIST'));}}),_0x3daa2d['descriptionFactory']['registerDescriptionCallback'](_0x29040a=>{const {data:_0x48c7e6}=_0x29040a;if(_0x48c7e6&&'listIndent'==_0x48c7e6['key'])return null==_0x48c7e6['newValue']||null==_0x48c7e6['oldValue']&&0x0==_0x48c7e6['newValue']?_0x1fcaf6:void 0x0;}),_0x3daa2d['descriptionFactory']['registerDescriptionCallback'](_0xaaf947=>{if('attribute'!=_0xaaf947['type'])return;const {data:_0x1824e6}=_0xaaf947;if(!_0x1824e6||'listItemId'!=_0x1824e6['key'])return;const _0x5bc1b7=Te(_0xaaf947);return'newValue'==_0x5bc1b7?{'type':'format','content':o(_0x38903c,'*Merge:*\x20list\x20item')}:'oldValue'==_0x5bc1b7?{'type':'format','content':o(_0x38903c,'*Split:*\x20list\x20item')}:_0x1fcaf6;}),_0x1e00b5['model']['document']['registerPostFixer'](_0x199869=>this['listItemIdFixer'](_0x199869)),_0x1e00b5['model']['document']['registerPostFixer'](_0x3bd341=>this['noTrackChangesFixer'](_0x3bd341)),_0x1e00b5['model']['document']['on']('change:data',(_0x42735e,_0x124a08)=>{if(_0x124a08['isUndo']||!_0x124a08['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x4257bf){if(_0x4257bf['batch']['isUndo']||!_0x4257bf['batch']['isLocal'])return!0x1;let _0x126ddc=!0x1;const _0x3576ee=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2310b8=>_0x2310b8['data']&&'listItemId'==_0x2310b8['data']['key'])['filter'](_0x233912=>_0x233912['data']['newValue']&&_0x233912['data']['oldValue']);for(const _0x24b2ad of _0x3576ee)Te(_0x24b2ad)||(_0x4257bf['removeMarker'](_0x24b2ad['getFirstMarker']()),_0x126ddc=!0x0);return _0x126ddc;}['noTrackChangesFixer'](_0x741f70){if(_0x741f70['batch']['isUndo']||!_0x741f70['batch']['isLocal'])return!0x1;const _0xc725fa=this['editor']['plugins']['get']('TrackChangesEditing');if(_0xc725fa['trackChangesCommand']['value'])return!0x1;let _0x70104b=!0x1;const _0x53db13=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x598b5c=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x10c464=>'attribute'==_0x10c464['type'])['filter'](_0x32fb7f=>_0x53db13['includes'](_0x32fb7f['attributeKey']));if(0x0==_0x598b5c['length'])return _0x70104b;for(const _0x508906 of _0x598b5c){const _0x4c9ad6=_0xc725fa['_findSuggestions'](_0x508906['range'],'attribute')['filter'](_0x4aadd3=>!_0x4aadd3['meta']['isNextTo'])['map'](_0x212ffc=>_0x212ffc['suggestion'])['filter'](_0xc065d0=>{const _0x19ac35=_0xc725fa['_getAttributeKey'](_0xc065d0);return _0x53db13['includes'](_0x19ac35);});if(_0x4c9ad6['length']){for(const _0x35af8f of _0x4c9ad6)_0x741f70['removeMarker'](_0x35af8f['getFirstMarker']());_0x70104b=!0x0;}}return _0x70104b;}['assureChains'](){const _0x56829d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x27623a=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x1d6950;const _0x3cb973=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x13c7cf=>{if(_0x13c7cf['data']['oldRange']||!_0x13c7cf['data']['newRange'])return null;if(!_0x13c7cf['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x5aa188}=_0x56829d['_splitMarkerName'](_0x13c7cf['name']);if(!_0x56829d['hasSuggestion'](_0x5aa188))return null;const _0x7ff93=_0x56829d['getSuggestion'](_0x5aa188);return _0x27623a['includes'](_0x7ff93['data']['key']);})['map'](_0x6ee4f9=>{const {id:_0x333234}=_0x56829d['_splitMarkerName'](_0x6ee4f9['name']),_0xef724f=_0x56829d['getSuggestion'](_0x333234);return _0x1d6950=_0xef724f['attributes']['groupId'],_0xef724f['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3cb973['size'])return;const _0x4d7ac4=_0x56829d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x55062c=>'attribute'==_0x55062c['type']&&_0x55062c['data']&&_0x27623a['includes'](_0x55062c['data']['key'])&&_0x55062c['attributes']['groupId']!=_0x1d6950)['map'](_0x5ee6b8=>({'listItem':_0x5ee6b8['getFirstRange']()['start']['nodeAfter'],'groupId':_0x5ee6b8['attributes']['groupId']})),_0xaf36c1=new Set();for(const {groupId:_0xe93815,listItem:_0x3a5aea}of _0x4d7ac4)_0x3cb973['has'](_0x3a5aea)&&_0xaf36c1['add'](_0xe93815);for(const _0x2d8195 of _0x56829d['getSuggestions']())_0xaf36c1['has'](_0x2d8195['attributes']['groupId'])&&_0x2d8195['setAttribute']('groupId',_0x1d6950);}['_supportLegacySuggestions'](){const _0x1fd1f0=this['editor'],_0x48dd6f=_0x1fd1f0['locale'],_0x46e9c7=_0x1fd1f0['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x46e9c7['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x12b12b,_0x2cf948){const _0x235c22=[];for(let _0x280688 of _0x12b12b)_0x280688['start']['nodeAfter']===_0x280688['end']['parent']&&(_0x280688=_0x1fd1f0['model']['createRange'](_0x1fd1f0['model']['createPositionAt'](_0x280688['start']['nodeAfter'],0x0))),_0x235c22['push'](_0x280688);_0x1fd1f0['model']['change'](_0x37a23e=>{const _0x5103f9=_0x1fd1f0['model']['document']['selection'],_0x4756b9=Array['from'](_0x5103f9['getRanges']())['map'](_0x3bd4af=>_0x4d5435['fromRange'](_0x3bd4af));_0x37a23e['setSelection'](_0x235c22),_0x1fd1f0['commands']['get'](_0x2cf948['commandName'])['refresh'](),_0x2cf948['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x1fd1f0['execute'](_0x2cf948['commandName'],..._0x2cf948['commandParams']),_0x37a23e['setSelection'](_0x4756b9);for(const _0xfa220 of _0x4756b9)_0xfa220['detach']();});}),_0x46e9c7['descriptionFactory']['registerElementLabel'](function(_0xbc01b9){const _0x9ec9c4=!_0x1fd1f0['model']['schema']['isObject'](_0xbc01b9),_0x2f1cd7=_0xbc01b9['previousSibling'],_0x564e8f=_0xbc01b9['nextSibling'],_0x51531b=_0xbc01b9['getAttribute']('listItemId'),_0x2d8bf8=!_0x2f1cd7||_0x2f1cd7['getAttribute']('listItemId')!==_0x51531b,_0x40dfd8=!_0x564e8f||_0x564e8f['getAttribute']('listItemId')!==_0x51531b;return _0x9ec9c4&&Boolean(_0x51531b)&&_0x2d8bf8&&_0x40dfd8;},_0x8cf6cc=>o(_0x48dd6f,'ELEMENT_LIST_ITEM',_0x8cf6cc));}['_registerLegacyDescription'](){const _0x8ba0a7=this['editor'],_0x43742e=_0x8ba0a7['locale'];function _0xbac4a(_0x4f9ff5){const _0x1313da=_0x8ba0a7['commands']['get']('bulletedList')['value'],_0x51bd67=_0x8ba0a7['commands']['get']('numberedList')['value'];return'numberedList'===_0x4f9ff5?_0x1313da:_0x51bd67;}_0x8ba0a7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x57c339){if('formatBlock'!=_0x57c339['type'])return;const {data:_0x2474bd}=_0x57c339;if(!_0x2474bd)return;let _0x5aaa2a,_0x4af054,_0x52607e,_0x4c2a47;switch(_0x2474bd['commandName']){case'bulletedList':_0x52607e=_0x2474bd['commandParams'][0x0]['forceValue'],_0x4c2a47=_0xbac4a(_0x2474bd['commandName']),_0x5aaa2a=_0x52607e?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4c2a47&&_0x8ba0a7['config']['get']('list.multiBlock')||(_0x5aaa2a='*Change\x20to:*\x20%0'),_0x4af054={'type':'format','content':o(_0x43742e,_0x5aaa2a,o(_0x43742e,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x52607e=_0x2474bd['commandParams'][0x0]['forceValue'],_0x4c2a47=_0xbac4a(_0x2474bd['commandName']),_0x5aaa2a=_0x52607e?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4c2a47&&_0x8ba0a7['config']['get']('list.multiBlock')||(_0x5aaa2a='*Change\x20to:*\x20%0'),_0x4af054={'type':'format','content':o(_0x43742e,_0x5aaa2a,o(_0x43742e,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x5aaa2a='*Indent:*\x20%0',_0x4af054={'type':'format','content':o(_0x43742e,_0x5aaa2a,o(_0x43742e,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x5aaa2a=function(_0x31a20a){const _0x151c9a=_0x31a20a['getFirstRange']();let _0x416b73=_0x151c9a['start']['nodeAfter'];for(;_0x416b73&&_0x151c9a['containsItem'](_0x416b73);){if(_0x416b73['getAttribute']('listIndent')>0x0)return!0x1;_0x416b73=_0x416b73['nextSibling'];}return!0x0;}(_0x57c339)?o(_0x43742e,'*Format:*\x20remove\x20from\x20%0',o(_0x43742e,function(_0x649308){return'ELEMENT_'+_0x649308['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x57c339))):o(_0x43742e,'*Outdent:*\x20%0',o(_0x43742e,'ELEMENT_LIST_ITEM')),_0x4af054={'type':'format','content':_0x5aaa2a};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x2474bd['multipleBlocks']&&(_0x5aaa2a='*Merge:*\x20%0',_0x4af054={'type':'deletion','content':o(_0x43742e,_0x5aaa2a,o(_0x43742e,'ELEMENT_LIST_ITEM'))});}return _0x4af054;});}}function Te(_0x46b0a8){let _0x2a192a=_0x46b0a8['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x2a192a;){const _0x3bd8be=_0x2a192a['getAttribute']('listItemId');if(!_0x3bd8be)return!0x1;if(_0x3bd8be==_0x46b0a8['data']['newValue'])return'newValue';if(_0x3bd8be==_0x46b0a8['data']['oldValue'])return'oldValue';_0x2a192a=_0x2a192a['previousSibling'];}return!0x1;}class Se extends _0x952b97{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x496e16=this['editor']['config']['get']('list.properties'),_0x4761bf=this['editor']['plugins']['get']('TrackChangesEditing');_0x496e16['styles']&&(_0x4761bf['enableDefaultAttributesIntegration']('listStyle'),_0x4761bf['registerBlockAttribute']('listStyle')),_0x496e16['reversed']&&(_0x4761bf['enableDefaultAttributesIntegration']('listReversed'),_0x4761bf['registerBlockAttribute']('listReversed')),_0x496e16['startIndex']&&(_0x4761bf['enableDefaultAttributesIntegration']('listStart'),_0x4761bf['registerBlockAttribute']('listStart'));const _0x41ba96={'type':'format','content':''};_0x4761bf['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x321e6a=this['editor']['locale'];_0x4761bf['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x321e6a,'FORMAT_LIST_REVERSED')),_0x4761bf['descriptionFactory']['registerDescriptionCallback'](_0x2ebf16=>{const {data:_0x4125b7}=_0x2ebf16;if(_0x4125b7&&'listReversed'==_0x4125b7['key'])return null==_0x4125b7['newValue']||0x0==_0x4125b7['newValue']&&null==_0x4125b7['oldValue']?_0x41ba96:void 0x0;}),_0x4761bf['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x321e6a,'FORMAT_LIST_START')),_0x4761bf['descriptionFactory']['registerDescriptionCallback'](_0x348081=>{const {data:_0x5118c3}=_0x348081;if(_0x5118c3&&'listStart'==_0x5118c3['key'])return null==_0x5118c3['newValue']||0x1==_0x5118c3['newValue']&&null==_0x5118c3['oldValue']?_0x41ba96:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1a3c44=>{if(_0x1a3c44['batch']['isUndo'])return!0x1;let _0x20f5f6=!0x1;const _0x4bd180=_0x4761bf['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1beddf=>{const _0x44bb53=_0x4761bf['_getAttributeKey'](_0x1beddf);return'listStart'==_0x44bb53||'listReversed'==_0x44bb53;});for(const _0x72b910 of _0x4bd180){const _0x54a3cd=_0x72b910['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x54a3cd||'customNumbered'==_0x54a3cd)continue;_0x4761bf['_findSuggestions'](_0x72b910['getFirstRange'](),'attribute')['find'](_0x13f631=>'listType'==_0x4761bf['_getAttributeKey'](_0x13f631['suggestion']))||(_0x1a3c44['removeMarker'](_0x72b910['getFirstMarker']()),_0x20f5f6=!0x0);}return _0x20f5f6;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1e89cc){const _0x875486=this['editor']['locale'],{data:_0x54e64a}=_0x1e89cc,_0x101747={'type':'format','content':''};if(!_0x54e64a||'listStyle'!=_0x54e64a['key'])return;if(!_0x54e64a['oldValue'])return'default'==_0x54e64a['newValue']?_0x101747:{'type':'format','content':''+o(_0x875486,'*Set\x20format:*\x20%0',o(_0x875486,this['_getTranslationKeyForListStyle'](_0x54e64a['newValue'])))};if(!_0x54e64a['newValue']){if('default'==_0x54e64a['oldValue'])return _0x101747;let _0x17291b=_0x1e89cc['head'];for(;_0x17291b;){if(_0x17291b['data']&&'listType'==_0x17291b['data']['key']&&_0x17291b['data']['newValue'])return _0x101747;_0x17291b=_0x17291b['next'];}return{'type':'format','content':''+o(_0x875486,'*Remove\x20format:*\x20%0',o(_0x875486,this['_getTranslationKeyForListStyle'](_0x54e64a['oldValue'])))};}if('default'!=_0x54e64a['newValue'])return{'type':'format','content':''+o(_0x875486,'*Set\x20format:*\x20%0',o(_0x875486,this['_getTranslationKeyForListStyle'](_0x54e64a['newValue'])))};let _0x2b3440=_0x1e89cc['head'];for(;_0x2b3440;){if(_0x2b3440['data']&&'listType'==_0x2b3440['data']['key']&&_0x2b3440['data']['newValue']&&_0x2b3440['data']['oldValue'])return _0x101747;_0x2b3440=_0x2b3440['next'];}return{'type':'format','content':o(_0x875486,'*Set\x20format:*\x20%0',o(_0x875486,'ELEMENT_'+_0x1e89cc['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1c17b1=this['editor'],_0x523eed=_0x1c17b1['locale'];_0x1c17b1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x33e4dc=>{if('formatBlock'!=_0x33e4dc['type'])return;const {data:_0x3e92f0}=_0x33e4dc;if(!_0x3e92f0)return;let _0x2d7120,_0x4d3eb4;switch(_0x3e92f0['commandName']){case'listStyle':_0x2d7120='*Change\x20to:*\x20%0',_0x4d3eb4={'type':'format','content':o(_0x523eed,_0x2d7120,o(_0x523eed,this['_getTranslationKeyForListStyle'](_0x3e92f0['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2d7120=_0x3e92f0['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4d3eb4={'type':'format','content':o(_0x523eed,_0x2d7120)};break;case'listStart':_0x2d7120='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4d3eb4={'type':'format','content':o(_0x523eed,_0x2d7120,_0x3e92f0['commandParams'][0x0]['startIndex'])};}return _0x4d3eb4;});}['_getTranslationKeyForListStyle'](_0x49b38e){return'ELEMENT_'+function(_0x4b6c42){if(_e['includes'](_0x4b6c42))return'bulleted';if(Re['includes'](_0x4b6c42))return'numbered';return null;}(_0x49b38e)['toUpperCase']()+'_LIST_'+_0x49b38e['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x952b97{['afterInit'](){const _0x489b79=this['editor'];_0x489b79['commands']['get']('emoji')&&_0x489b79['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x952b97{static get['requires'](){return[_0x40ae35];}['init'](){const _0x49259b=this['editor'],_0x398a6f=_0x49259b['plugins']['get']('TrackChangesEditing'),_0x1f86e8=_0x49259b['commands']['get']('enter');_0x398a6f['enableCommand']('enter',()=>{_0x49259b['model']['change'](_0x2a1fd7=>{const _0x18770d=_0x49259b['model']['document']['selection'],_0x12139c=_0x18770d['getFirstPosition'](),_0x42eae4=_0x4d5435['fromRange'](_0x18770d['getFirstRange']());if(_0x1f86e8['enterBlock'](_0x2a1fd7)){const _0x986a6d=_0x49259b['model']['createPositionAt'](_0x12139c['parent']['nextSibling'],0x0),_0x8e756c=_0x2a1fd7['createRange'](_0x12139c,_0x986a6d);_0x398a6f['markInsertion'](_0x8e756c);}else _0x2a1fd7['setSelection'](_0x2a1fd7['createRange'](_0x42eae4['end']));_0x42eae4['detach'](),_0x1f86e8['fire']('afterExecute',{'writer':_0x2a1fd7});});}),_0x49259b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x49259b,'split'),{'priority':'high'}),_0x49259b['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x371cad,_0x157682,_0x4e3669)=>{const _0x34ade4=_0x4e3669['mapper']['markerNameToElements'](_0x157682['markerName']);if(_0x34ade4){for(const _0x3d67e4 of _0x34ade4)_0x3d67e4['hasClass']('ck-suggestion-marker-split')&&(_0x4e3669['mapper']['unbindElementFromMarkerName'](_0x3d67e4,_0x157682['markerName']),_0x4e3669['writer']['remove'](_0x3d67e4));}},{'priority':'high'}),_0x49259b['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x24bd68,_0x485144,_0x292893)=>{_0x292893['options']['showSuggestionHighlights']&&De(_0x49259b,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x24bd68,_0x485144,_0x292893);},{'priority':'high'});}}class Z extends _0x952b97{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x258207=this['editor']['plugins']['get']('TrackChangesEditing');_0x258207['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x258207['enableCommand']('findNext'),_0x258207['enableCommand']('findPrevious'),_0x258207['enableCommand']('replace'),_0x258207['enableCommand']('replaceAll');}['handleFindCommand'](_0x51f04b,_0x40f0ec,_0x4a2524={}){const _0x54b121=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x51f04b(_0x3a13c3=>{let _0x1caadd=('string'==typeof _0x40f0ec?_0x54b121['findByTextCallback'](_0x40f0ec,_0x4a2524):_0x40f0ec)(_0x3a13c3);Array['isArray'](_0x1caadd)&&(_0x1caadd={'results':_0x1caadd,'searchText':'string'==typeof _0x40f0ec?_0x40f0ec:''});const _0x440dba=_0x1caadd['results']['filter'](_0x25676c=>!0x1===this['_isInDeletionRange'](_0x25676c,_0x3a13c3['item']));return{..._0x1caadd,'results':_0x440dba};},_0x4a2524);}['_isInDeletionRange'](_0x3430e0,_0x27b334){const _0x525457=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x27b334,_0x3430e0['start']),this['editor']['model']['createPositionAt'](_0x27b334,_0x3430e0['end']));for(const _0x1977f6 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x525457['getIntersection'](_0x1977f6['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 _0x952b97{['afterInit'](){const _0x23b9b8=this['editor']['locale'],_0x224a05=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4b0c6b,commandName:_0x35c855}of ro)this['editor']['plugins']['has'](_0x4b0c6b)&&(_0x224a05['enableDefaultAttributesIntegration'](_0x35c855),_0x224a05['registerInlineAttribute'](_0x35c855));_0x224a05['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x23b9b8,'FORMAT_FONT_SIZE')),_0x224a05['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x23b9b8,'FORMAT_FONT_FAMILY')),_0x224a05['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x23b9b8,'FORMAT_FONT_COLOR')),_0x224a05['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x23b9b8,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c9681=this['editor'],_0x13bc29=_0x3c9681['locale'];_0x3c9681['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x400756=>{const _0x5b6bb5=_0x13bc29['t'];if('formatInline'!=_0x400756['type'])return;const {data:_0x3dac50}=_0x400756;if(null!=_0x3dac50){if('fontSize'==_0x3dac50['commandName']){const _0x208e8e=_0x3dac50['commandParams'][0x0]['value'];if(_0x208e8e){const _0x3694ee=_0x5b6bb5(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x404c96=>_0x404c96['model']==_0x208e8e)['title'])['toLowerCase']();return{'type':'format','content':o(_0x13bc29,'*Set\x20font\x20size:*\x20%0',_0x3694ee)};}return{'type':'format','content':o(_0x13bc29,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x3dac50['commandName']){const _0x40ffda=_0x3dac50['commandParams'][0x0]['value'];return _0x40ffda?{'type':'format','content':o(_0x13bc29,'*Set\x20font\x20family:*\x20%0',_0x40ffda)}:{'type':'format','content':o(_0x13bc29,'*Reset\x20font\x20family*')};}if('fontColor'==_0x3dac50['commandName']){const _0x20803a=_0x3dac50['commandParams'][0x0]['value'];if(_0x20803a){const _0x44b38f=_0xeaec6f(this['editor']['config']['get']('fontColor.colors'))['find'](_0x1fd876=>_0x1fd876['model']==_0x20803a);let _0x492ce0=_0x20803a,_0x54e6e8='';return _0x44b38f&&(_0x492ce0=_0x44b38f['label'],_0x54e6e8=_0x5b6bb5(_0x492ce0)['toLowerCase']()),{'type':'format','content':o(_0x13bc29,'*Set\x20font\x20color:*\x20%0',_0x54e6e8)['trim'](),'color':{'value':_0x20803a,'title':_0x54e6e8||_0x492ce0}};}return{'type':'format','content':o(_0x13bc29,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x3dac50['commandName']){const _0x148f1c=_0x3dac50['commandParams'][0x0]['value'];if(_0x148f1c){const _0xbb3c2d=_0xeaec6f(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x58cbb2=>_0x58cbb2['model']==_0x148f1c);let _0x53ff08=_0x148f1c,_0x403de1='';return _0xbb3c2d&&(_0x53ff08=_0xbb3c2d['label'],_0x403de1=_0x5b6bb5(_0x53ff08)['toLowerCase']()),{'type':'format','content':o(_0x13bc29,'*Set\x20font\x20background\x20color:*\x20%0',_0x403de1)['trim'](),'color':{'value':_0x148f1c,'title':_0x403de1||_0x53ff08}};}return{'type':'format','content':o(_0x13bc29,'*Reset\x20font\x20background\x20color*')};}}});}}class nt extends _0x952b97{['afterInit'](){const _0xcfc421=this['editor'],_0x21a7d8=_0xcfc421['plugins']['get']('TrackChangesEditing'),_0x50fc57=_0xcfc421['commands']['get']('copyFormat'),_0x1ba56f=_0xcfc421['commands']['get']('pasteFormat');_0x50fc57&&_0x1ba56f&&(_0x21a7d8['enableDefaultAttributesIntegration']('pasteFormat'),_0x21a7d8['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x528029=this['editor'],_0x49c361=_0x528029['locale'];_0x528029['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1f1f42=>{if('formatBlock'!=_0x1f1f42['type']&&'formatInline'!=_0x1f1f42['type'])return;const {data:_0x3ceb4a}=_0x1f1f42;if(_0x3ceb4a&&'pasteFormat'===_0x3ceb4a['commandName']){const _0x1aaa21=[],_0x3c3537=_0x3ceb4a['commandParams'][0x0];for(const [_0x4e3953,_0x24b402]of Object['entries'](_0x3c3537))_0x1aaa21['push'](so(_0x528029,_0x4e3953,_0x24b402));return _0x1aaa21['length']?{'type':'format','content':o(_0x49c361,'*Set\x20format\x20to:*\x20%0',_0x1aaa21['join'](',\x20'))}:{'type':'format','content':o(_0x49c361,'*Remove\x20all\x20formatting*')};}});}}function so(_0x3b2618,_0x50ee2d,_0x53a6f2){const _0x43db9c=_0x3b2618['locale']['t'],_0x291195=_0x50ee2d['split'](/(?=[A-Z])/)['join']('\x20'),_0x56df82=_0x43db9c(_0x291195['charAt'](0x0)['toUpperCase']()+_0x291195['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x53a6f2)return _0x56df82;if('fontColor'===_0x50ee2d||'fontBackgroundColor'===_0x50ee2d){const _0x49ccfe=_0xeaec6f(_0x3b2618['config']['get']('fontColor.colors'))['find'](_0x46766d=>_0x46766d['model']==_0x53a6f2);return _0x56df82+'\x20('+(_0x49ccfe?_0x43db9c(_0x49ccfe['label'])['toLowerCase']():_0x53a6f2)+')';}if('fontSize'===_0x50ee2d&&isNaN(parseFloat(_0x53a6f2))){const _0x213847=_0x3b2618['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3b2618['config']['get']('fontSize.options'))['find'](_0xfb1524=>_0xfb1524['model']==_0x53a6f2);return _0x56df82+'\x20('+(_0x213847?_0x43db9c(_0x213847['title'])['toLowerCase']():_0x53a6f2)+')';}return _0x56df82+'\x20('+_0x53a6f2+')';}class it extends _0x952b97{['_headingOptions'];['afterInit'](){const _0x4c8b1f=this['editor'];if(!_0x4c8b1f['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x4c8b1f['config']['get']('heading.options');const _0x338b9c=_0x4c8b1f['locale'],_0x98190f=_0x4c8b1f['plugins']['get']('TrackChangesEditing');_0x98190f['enableDefaultAttributesIntegration']('heading');for(const _0x3a8018 of this['_headingOptions'])'paragraph'!=_0x3a8018['model']&&_0x98190f['descriptionFactory']['registerElementLabel'](_0x3a8018['model'],_0x399362=>{const _0x57d235=this['_getHeadingLevel'](_0x3a8018['model']);return null!==_0x57d235?_0x298ddd(_0x399362,_0x57d235):_0x29feac(_0x399362,_0x3a8018['title']);});function _0x298ddd(_0xef0013,_0x2fc63b){return o(_0x338b9c,'ELEMENT_HEADING',[_0xef0013,_0x2fc63b]);}function _0x29feac(_0x107c96,_0x2b0f90){return o(_0x338b9c,'ELEMENT_HEADING_CUSTOM',[_0x107c96,_0x2b0f90]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf21569=this['editor'],_0x107330=_0xf21569['locale'];function _0x5c81f1(_0x445e69,_0x37cff7){return o(_0x107330,'ELEMENT_HEADING_CUSTOM',[_0x445e69,_0x37cff7]);}_0xf21569['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x589cca=>{if('formatBlock'!=_0x589cca['type'])return;const {data:_0x50178d}=_0x589cca;if(_0x50178d&&'heading'==_0x50178d['commandName']){const _0x26dd84=_0x50178d['commandParams'][0x0]['value'],_0x2f30b0=this['_getHeadingLevel'](_0x26dd84);if(null!==_0x2f30b0)return{'type':'format','content':o(_0x107330,'*Change\x20to:*\x20%0',(_0x1fb376=0x1,_0x268645=_0x2f30b0,o(_0x107330,'ELEMENT_HEADING',[_0x1fb376,_0x268645])))};const _0x39e709=this['_headingOptions']['find'](_0x3167ef=>_0x3167ef['model']===_0x26dd84)['title'];return{'type':'format','content':o(_0x107330,'*Change\x20to:*\x20%0',_0x5c81f1(0x1,_0x39e709))};}var _0x1fb376,_0x268645;});}['_getHeadingLevel'](_0x544b93){const _0x5f2608=_0x544b93['match'](/^heading(\d+)/);if(_0x5f2608)return _0x5f2608[0x1];const _0x1ee121=this['_headingOptions']?.['find'](_0x22acf7=>_0x22acf7['model']==_0x544b93);if(_0x1ee121&&_0x1ee121['view']){const _0x3d4f1b=_0x1ee121['view'],_0x43e519=(_0x3d4f1b['name']??_0x3d4f1b)['match'](/^h(\d+)/);if(_0x43e519)return _0x43e519[0x1];}return null;}}class et extends _0x952b97{['afterInit'](){const _0x2a3a01=this['editor'];if(!_0x2a3a01['plugins']['has']('HighlightEditing'))return;const _0x5d3b9c=_0x2a3a01['plugins']['get']('TrackChangesEditing'),_0x5efae3=_0x2a3a01['locale'];_0x5d3b9c['enableDefaultAttributesIntegration']('highlight'),_0x5d3b9c['registerInlineAttribute']('highlight'),_0x5d3b9c['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x5efae3,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x157daa=this['editor'],_0xc648df=_0x157daa['locale'];_0x157daa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x531dd6=>{if('formatInline'!=_0x531dd6['type'])return;const {data:_0x1e7ad9}=_0x531dd6;if(_0x1e7ad9&&'highlight'==_0x1e7ad9['commandName']){const _0x3b4016=_0xc648df['t'],_0x311174=_0x1e7ad9['commandParams'][0x0]['value'];if(_0x311174){const _0x12aa98=_0x157daa['config']['get']('highlight.options')['find'](_0x36ff06=>_0x36ff06['model']==_0x311174),_0x296da2=_0x3b4016(_0x12aa98['title'])['toLowerCase']();return{'type':'format','content':o(_0xc648df,'*Set\x20highlight:*\x20%0',_0x296da2),'color':{'value':_0x12aa98['color'],'title':_0x12aa98['title']}};}return{'type':'format','content':o(_0xc648df,'*Remove\x20highlight*',o(_0xc648df,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x952b97{['afterInit'](){const _0x1744c9=this['editor'];if(!_0x1744c9['plugins']['has']('HorizontalLineEditing'))return;_0x1744c9['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x237eac=_0x1744c9['plugins']['get']('TrackChangesEditing'),_0x247082=_0x1744c9['locale'];_0x237eac['descriptionFactory']['registerElementLabel']('horizontalLine',_0x2509fc=>o(_0x247082,'ELEMENT_HORIZONTAL_LINE',_0x2509fc)),_0x1744c9['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x48c8ba,{writer:_0x180ec1,options:_0x5dbd46})=>{if(!_0x5dbd46['showSuggestionHighlights'])return null;const _0x1fe4c5=_0x180ec1['createContainerElement']('div'),_0x4fd08a=_0x180ec1['createEmptyElement']('hr');return _0x180ec1['addClass']('ck-horizontal-line',_0x1fe4c5),_0x180ec1['insert'](_0x180ec1['createPositionAt'](_0x1fe4c5,0x0),_0x4fd08a),_0x1fe4c5;},'converterPriority':'high'});}}class ot extends _0x952b97{['afterInit'](){const _0xb58092=this['editor'];if(!_0xb58092['plugins']['has']('HtmlEmbed'))return;const _0x1370be=_0xb58092['plugins']['get']('TrackChangesEditing'),_0x36b5b7=_0xb58092['locale'];_0x1370be['descriptionFactory']['registerElementLabel']('rawHtml',_0x50d7bf=>o(_0x36b5b7,'ELEMENT_HTML_EMBED',_0x50d7bf)),_0x1370be['enableDefaultAttributesIntegration']('htmlEmbed'),_0x1370be['registerBlockAttribute']('value'),_0x1370be['descriptionFactory']['registerDescriptionCallback'](_0xf4873e=>{if('attribute'!=_0xf4873e['type'])return;const {data:_0x298976}=_0xf4873e;if(_0x298976&&'value'==_0x298976['key']&&_0xf4873e['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x4dec36=o(_0x36b5b7,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x36b5b7,'*Change\x20%0\x20content*',_0x4dec36)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x27ecd5=this['editor'],_0x447996=_0x27ecd5['locale'];_0x27ecd5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56ef42=>{if('formatBlock'!=_0x56ef42['type'])return;const {data:_0x2ecc3d}=_0x56ef42;if(_0x2ecc3d&&'htmlEmbed'==_0x2ecc3d['commandName']){const _0x256792=o(_0x447996,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x447996,'*Change\x20%0\x20content*',_0x256792)};}});}}class rt extends _0x952b97{['afterInit'](){const _0x3a5d6e=this['editor'];if(!_0x3a5d6e['plugins']['has']('ImageEditing'))return;const _0x483dfc=_0x3a5d6e['plugins']['get']('TrackChangesEditing'),_0x4f5c4e=_0x3a5d6e['plugins']['get']('ImageUtils'),_0x486f6e=_0x3a5d6e['locale'];_0x483dfc['enableCommand']('insertImage'),_0x483dfc['descriptionFactory']['registerElementLabel']('imageBlock',_0x2a9626=>o(_0x486f6e,'ELEMENT_IMAGE',_0x2a9626)),_0x483dfc['descriptionFactory']['registerElementLabel']('imageInline',_0x2bf235=>o(_0x486f6e,'ELEMENT_INLINE_IMAGE',_0x2bf235)),_0x483dfc['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x486f6e,'ELEMENT_CAPTION')),_0x3a5d6e['plugins']['has']('ImageUploadEditing')&&_0x483dfc['enableCommand']('uploadImage'),_0x3a5d6e['plugins']['has']('ImageBlockEditing')&&_0x3a5d6e['plugins']['has']('ImageInlineEditing')&&(_0x483dfc['enableCommand']('imageTypeInline',(_0x123ae7,_0x5bb0ed)=>{const _0x5eb391=_0x4f5c4e['getClosestSelectedImageElement'](_0x3a5d6e['model']['document']['selection']);_0x3a5d6e['model']['change'](()=>{_0x483dfc['markBlockFormat'](_0x5eb391,{'commandName':'imageTypeInline','commandParams':[_0x5bb0ed]},[],'convertBlockImageToInline');});}),_0x483dfc['enableCommand']('imageTypeBlock',(_0x282db2,_0x515f64)=>{_0x3a5d6e['model']['change'](_0x7ca416=>{let _0x808d6a=_0x4f5c4e['getClosestSelectedImageElement'](_0x3a5d6e['model']['document']['selection']),_0x2c3704=_0x7ca416['createRangeOn'](_0x808d6a);const _0x36ea4b=_0x187869['fromPosition'](_0x2c3704['start'],'toPrevious'),_0x1e5aa4=_0x187869['fromPosition'](_0x2c3704['end'],'toNext');_0x483dfc['forceDefaultExecution'](()=>_0x282db2(_0x515f64)),_0x808d6a=_0x4f5c4e['getClosestSelectedImageElement'](_0x3a5d6e['model']['document']['selection']),_0x2c3704=_0x7ca416['createRangeOn'](_0x808d6a);const _0x5c7e17=_0x7ca416['createRange'](_0x36ea4b,_0x1e5aa4);_0x36ea4b['detach'](),_0x1e5aa4['detach'](),_0x483dfc['markBlockFormat'](_0x808d6a,{'commandName':'imageTypeInline','commandParams':[_0x515f64]},[],'convertInlineImageToBlock'),_0x5c7e17['start']['isBefore'](_0x2c3704['start'])&&_0x483dfc['markInsertion'](_0x7ca416['createRange'](_0x5c7e17['start'],_0x2c3704['start']),'convertInlineImageToBlock'),_0x2c3704['end']['isBefore'](_0x5c7e17['end'])&&_0x483dfc['markInsertion'](_0x7ca416['createRange'](_0x2c3704['end'],_0x5c7e17['end']),'convertInlineImageToBlock');});}),_0x483dfc['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x483dfc['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x483dfc['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x483dfc['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x483dfc['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x483dfc['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x5557b7])=>{const _0x3bfb83=_0x483dfc['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0xfba083=_0x5557b7['start'],_0x1c6903=_0x5557b7['end'];const _0x23f1d2=_0x3a5d6e['model']['schema']['getNearestSelectionRange'](_0xfba083,'backward'),_0x320da5=_0x3a5d6e['model']['schema']['getNearestSelectionRange'](_0x1c6903,'forward');_0x23f1d2['isCollapsed']&&(_0xfba083=_0x23f1d2['start']),_0x320da5['isCollapsed']&&(_0x1c6903=_0x320da5['end']),_0x3bfb83([_0x3a5d6e['model']['createRange'](_0xfba083,_0x1c6903)]);}),_0x483dfc['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x269f33),_0x483dfc['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x269f33)),_0x3a5d6e['plugins']['has']('ImageCaptionEditing')&&(_0x483dfc['enableCommand']('toggleImageCaption',(_0x5c2a35,_0x219f9f)=>{const _0x10da0c=_0x3a5d6e['plugins']['get']('ImageCaptionUtils');let _0x3e02d5=_0x4f5c4e['getClosestSelectedImageElement'](_0x3a5d6e['model']['document']['selection']),_0x5924cc=_0x10da0c['getCaptionFromImageModelElement'](_0x3e02d5);_0x3a5d6e['model']['change'](()=>{if(_0x5924cc)return void _0x483dfc['markDeletion'](_0x3a5d6e['model']['createRangeOn'](_0x5924cc));const _0x3dd265=_0x4f5c4e['isBlockImage'](_0x3e02d5);_0x5c2a35(_0x219f9f),_0x3e02d5=_0x4f5c4e['getClosestSelectedImageElement'](_0x3a5d6e['model']['document']['selection']),_0x5924cc=_0x10da0c['getCaptionFromImageModelElement'](_0x3e02d5),_0x483dfc['markInsertion'](_0x3a5d6e['model']['createRangeOn'](_0x5924cc),_0x3dd265?null:'imageCaption');});}),_0x483dfc['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x269f33));const _0x3c80fc=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x21a491(_0x223f3d,_0xc9420f){const _0x384db5=_0x3c80fc['findIndex'](({type:_0x4c0c90,subType:_0x1b74ed})=>_0x223f3d['type']==_0x4c0c90&&_0x223f3d['subType']==_0x1b74ed),_0x14059f=_0x3c80fc['findIndex'](({type:_0x447a37,subType:_0xedd36f})=>_0xc9420f['type']==_0x447a37&&_0xc9420f['subType']==_0xedd36f);if(_0x384db5<0x0||_0x14059f<0x0)return!0x1;const _0x5b4e2c=_0x223f3d['getFirstRange'](),_0x3ef445=_0xc9420f['getFirstRange']();if((0x0==_0x384db5||0x1==_0x384db5)&&0x2==_0x14059f&&_0x5b4e2c['isIntersecting'](_0x3ef445))return!0x0;if(0x2==_0x384db5&&0x3==_0x14059f){const _0x5a0b6d=_0x483dfc['_findSuggestions'](_0x5b4e2c,'insertion')['filter'](({suggestion:_0x35fc82,meta:_0x4ac8d9})=>_0x4ac8d9['isOwn']&&'convertInlineImageToBlock'==_0x35fc82['subType']);if(_0x5a0b6d['length']>0x1&&_0x3ef445['end']['isEqual'](_0x5b4e2c['start']))return!0x0;if(0x1==_0x5a0b6d['length']&&(_0x5b4e2c['start']['isEqual'](_0x3ef445['end'])||_0x5b4e2c['end']['isEqual'](_0x3ef445['start'])))return!0x0;}if(0x3==_0x384db5&&0x3==_0x14059f&&_0x5b4e2c['start']['isBefore'](_0x3ef445['start'])){const _0x44ebc5=_0x5b4e2c['end']['nodeAfter'],_0x33e3c7=_0x3ef445['start']['nodeBefore'];return _0x4f5c4e['isBlockImage'](_0x44ebc5)&&_0x44ebc5===_0x33e3c7;}return!0x1;}function _0x269f33(_0x52ae7e,_0x48e7e8){return _0x21a491(_0x52ae7e,_0x48e7e8)?[_0x52ae7e,_0x48e7e8]:_0x21a491(_0x48e7e8,_0x52ae7e)?[_0x48e7e8,_0x52ae7e]:null;}_0x3a5d6e['plugins']['has']('ImageResize')&&(_0x483dfc['enableDefaultAttributesIntegration']('resizeImage'),_0x483dfc['registerBlockAttribute']('resizedWidth'),_0x483dfc['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x486f6e,'FORMAT_IMAGE_SIZE'))),_0x3a5d6e['plugins']['has']('ImageTextAlternativeEditing')&&(_0x483dfc['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x483dfc['registerBlockAttribute']('alt')),_0x3a5d6e['plugins']['has']('PictureEditing')&&(_0x483dfc['registerBlockAttribute']('sources'),_0x483dfc['descriptionFactory']['registerDescriptionCallback'](_0x79877d=>{if('attribute'!=_0x79877d['type'])return;const {data:_0x13686b}=_0x79877d;return _0x13686b&&'sources'==_0x13686b['key']?{'type':'format','content':''}:void 0x0;})),_0x3a5d6e['plugins']['has']('ImageSizeAttributes')&&(_0x483dfc['registerBlockAttribute']('width'),_0x483dfc['registerBlockAttribute']('height'),_0x483dfc['descriptionFactory']['registerDescriptionCallback'](_0xecdac2=>{if('attribute'!=_0xecdac2['type'])return;const {data:_0x1dbafd}=_0xecdac2;return!_0x1dbafd||'width'!=_0x1dbafd['key']&&'height'!=_0x1dbafd['key']?void 0x0:{'type':'format','content':''};})),_0x483dfc['descriptionFactory']['registerDescriptionCallback'](_0x109c84=>{if(!!_0x3c80fc['find'](({type:_0x540e61,subType:_0x3f81ca})=>_0x109c84['type']==_0x540e61&&_0x109c84['subType']==_0x3f81ca))return _0x109c84['previous']?{}:void 0x0;}),_0x483dfc['descriptionFactory']['registerDescriptionCallback'](_0x456de4=>{if('insertion'==_0x456de4['type']||'deletion'==_0x456de4['type']){const _0x412838=_0x456de4['getContainedElement']();if(_0x412838&&_0x412838['is']('element','caption'))return{'type':'insertion'==_0x456de4['type']?'addObject':'removeObject','element':_0x412838,'quantity':0x1};}}),_0x483dfc['descriptionFactory']['registerDescriptionCallback'](_0x58faa9=>'formatBlock'==_0x58faa9['type']&&'convertInlineImageToBlock'==_0x58faa9['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x58faa9['type']&&'convertBlockImageToInline'==_0x58faa9['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x483dfc['descriptionFactory']['registerDescriptionCallback'](_0x4dda74=>{if('attribute'!=_0x4dda74['type'])return;const {data:_0x55a6bf}=_0x4dda74;if(!_0x55a6bf||'alt'!=_0x55a6bf['key'])return;const _0x38155a=_0x55a6bf['newValue'];return _0x38155a?{'type':'format','content':o(_0x486f6e,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x38155a+'\x22')}:{'type':'format','content':o(_0x486f6e,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2dd82f=this['editor'],_0x5a2ef1=_0x2dd82f['locale'];_0x2dd82f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x250aad=>{if('formatBlock'!=_0x250aad['type']&&'formatInline'!=_0x250aad['type'])return;const {data:_0x2fbd71}=_0x250aad;if(_0x2fbd71){if('imageTextAlternative'==_0x2fbd71['commandName']){const _0x230db7=_0x2fbd71['commandParams'][0x0]['newValue'];return _0x230db7?{'type':'format','content':o(_0x5a2ef1,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x230db7+'\x22')}:{'type':'format','content':o(_0x5a2ef1,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2fbd71['commandName']){const _0x4c91e3=_0x2fbd71['commandParams'][0x0]['width'];return _0x4c91e3?{'type':'format','content':o(_0x5a2ef1,'*Set\x20image\x20width:*\x20%0',_0x4c91e3)}:{'type':'format','content':o(_0x5a2ef1,'*Reset\x20image\x20width*')};}}});}}class at extends _0x952b97{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x559a3f=this['editor']['locale'],_0x31ea78=this['editor']['plugins']['get']('TrackChangesEditing');_0x31ea78['enableDefaultAttributesIntegration']('replaceImageSource'),_0x31ea78['registerBlockAttribute']('src'),_0x31ea78['descriptionFactory']['registerDescriptionCallback'](_0x440c14=>{if('attribute'!=_0x440c14['type'])return;const {data:_0x3d4d0f}=_0x440c14;return _0x3d4d0f&&'src'==_0x3d4d0f['key']?_0x3d4d0f['newValue']&&_0x3d4d0f['oldValue']?{'type':'format','content':o(_0x559a3f,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1d069f=this['editor']['plugins']['get']('TrackChangesEditing');_0x1d069f['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x1d069f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1d069f['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x1d069f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x496a62=this['editor'],_0x18b69b=_0x496a62['locale'];_0x496a62['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x559c7a=>{if('formatBlock'!=_0x559c7a['type']&&'formatInline'!=_0x559c7a['type'])return;const {data:_0x567c11}=_0x559c7a;if(!_0x567c11||'replaceImageSource'!=_0x567c11['commandName'])return;return{'type':'format','content':o(_0x18b69b,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x952b97{['afterInit'](){const _0x41efee=this['editor'];if(!_0x41efee['plugins']['has']('ImageStyleEditing'))return;const _0x157172=_0x41efee['plugins']['get']('TrackChangesEditing'),_0x5e45eb=_0x41efee['plugins']['get']('ImageUtils'),_0x24d94c={};_0x157172['enableCommand']('imageStyle',(_0x314569,_0x28afd1)=>{const _0x591712=_0x41efee['plugins']['get']('Users')['me'],_0x1240f0=_0x41efee['commands']['get']('imageStyle');let _0x37fc6b=_0x5e45eb['getClosestSelectedImageElement'](_0x41efee['model']['document']['selection']),_0x35f445=_0x41efee['model']['createRangeOn'](_0x37fc6b),_0x542b13=_0x1240f0['value'];if(_0x542b13==_0x28afd1['value'])return;const _0x300891={'commandName':'imageStyle','commandParams':[_0x28afd1],'formatGroupId':_0x414b78()};_0x41efee['model']['change'](()=>{if(_0x157172['getSuggestions']()['filter'](_0x22eed0=>_0x22eed0['isInContent']&&_0x591712==_0x22eed0['author']&&('formatBlock'==_0x22eed0['type']||'formatInline'==_0x22eed0['type'])&&('imageStylePreApply'==_0x22eed0['subType']||'imageStylePostApply'==_0x22eed0['subType'])&&_0x22eed0['getFirstRange']()['isEqual'](_0x35f445))['forEach'](_0x6b396e=>_0x157172['discardSuggestion'](_0x6b396e['head'])),_0x37fc6b=_0x5e45eb['getClosestSelectedImageElement'](_0x41efee['model']['document']['selection']),_0x35f445=_0x41efee['model']['createRangeOn'](_0x37fc6b),_0x1240f0['refresh'](),_0x41efee['commands']['get']('imageTypeInline')['refresh'](),_0x41efee['commands']['get']('imageTypeBlock')['refresh'](),_0x542b13=_0x1240f0['value'],_0x542b13!=_0x28afd1['value'])return _0x5e45eb['isInlineImage'](_0x37fc6b)&&_0x1240f0['shouldConvertImageType'](_0x28afd1['value'],_0x37fc6b)?(_0x314569({..._0x28afd1,'setImageSizes':!0x1}),_0x37fc6b=_0x5e45eb['getClosestSelectedImageElement'](_0x41efee['model']['document']['selection']),void _0x157172['markBlockFormat'](_0x37fc6b,{..._0x300891,'commandReversedParams':[{'value':_0x542b13||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x5e45eb['isBlockImage'](_0x37fc6b)?_0x157172['markBlockFormat'](_0x37fc6b,_0x300891,[],'imageStylePostApply'):_0x157172['markInlineFormat'](_0x35f445,_0x300891,'imageStylePostApply'));});});for(const _0x2173f4 of _0x41efee['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x24d94c[_0x2173f4['name']]=_0x2173f4['title']['toLowerCase']();_0x157172['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x157172['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x157172['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x157172['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x168218])=>{_0x5e45eb['setImageNaturalSizeAttributes'](_0x168218['getContainedElement']());}),_0x157172['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x19e768,_0x271256)=>{_0x157172['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x19e768,{'commandName':_0x271256['commandName'],'commandParams':_0x271256['commandReversedParams']});}),_0x157172['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0xdd48db,_0x52bad7){if(_0x476baf(_0xdd48db,_0x52bad7))return[_0xdd48db,_0x52bad7];if(_0x476baf(_0x52bad7,_0xdd48db))return[_0x52bad7,_0xdd48db];return null;});const _0x40c247=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x476baf(_0x13c9ad,_0x3b201f){const _0x2be39c=_0x40c247['findIndex'](({type:_0x4c27fb,subType:_0x5211fe})=>_0x13c9ad['type']==_0x4c27fb&&_0x13c9ad['subType']==_0x5211fe),_0x306dd8=_0x40c247['findIndex'](({type:_0x3fc910,subType:_0x1c0212})=>_0x3b201f['type']==_0x3fc910&&_0x3b201f['subType']==_0x1c0212);if(_0x2be39c<0x0||_0x306dd8<0x0)return!0x1;const _0x533072=_0x13c9ad['getFirstRange'](),_0x3e2e1a=_0x3b201f['getFirstRange']();if((0x0==_0x2be39c||0x1==_0x2be39c)&&0x2==_0x306dd8&&_0x533072['isIntersecting'](_0x3e2e1a))return!0x0;if(0x2==_0x2be39c&&0x3==_0x306dd8){const _0x41b090=_0x157172['_findSuggestions'](_0x533072,'insertion')['filter'](({suggestion:_0x4a12a9,meta:_0x5a8069})=>_0x5a8069['isOwn']&&'convertInlineImageToBlock'==_0x4a12a9['subType']);if(_0x41b090['length']>0x1&&_0x3e2e1a['end']['isEqual'](_0x533072['start']))return!0x0;if(0x1==_0x41b090['length']&&(_0x533072['start']['isEqual'](_0x3e2e1a['end'])||_0x533072['end']['isEqual'](_0x3e2e1a['start'])))return!0x0;}if(0x3==_0x2be39c&&0x3==_0x306dd8&&_0x533072['start']['isBefore'](_0x3e2e1a['start'])){const _0xe2c151=_0x533072['end']['nodeAfter'],_0x64c813=_0x3e2e1a['start']['nodeBefore'];return _0x5e45eb['isBlockImage'](_0xe2c151)&&_0xe2c151===_0x64c813;}return!0x1;}_0x41efee['model']['document']['registerPostFixer'](()=>{let _0x49babd=!0x1;const _0x3ce64d=Array['from'](_0x41efee['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2e6207,data:_0x23ef27}of _0x3ce64d){const {group:_0x3db8e5,type:_0x2df295,subType:_0x307c8a,id:_0x4489e9}=_0x157172['_splitMarkerName'](_0x2e6207);if('suggestion'==_0x3db8e5&&_0x157172['hasSuggestion'](_0x4489e9)){if('formatBlock'==_0x2df295&&('imageStylePreApply'==_0x307c8a||'imageStylePostApply'==_0x307c8a)){const _0x1dd324=_0x157172['getSuggestion'](_0x4489e9);if(_0x23ef27['newRange']){const _0x105cd3=_0x1dd324['getFirstRange']()['getContainedElement']();if(_0x5e45eb['isBlockImage'](_0x105cd3))continue;_0x157172['discardSuggestion'](_0x1dd324),_0x49babd=!0x0;}}if('insertion'==_0x2df295&&'imageCaption'==_0x307c8a&&!_0x23ef27['newRange']){const _0x3bee12=_0x157172['getSuggestion'](_0x4489e9);_0x3bee12['next']&&_0x3bee12['next']['isInContent']&&(_0x157172['discardSuggestion'](_0x3bee12['next']),_0x49babd=!0x0);}}}return _0x49babd;}),this['_registerLegacyDescription'](_0x24d94c);}['_registerLegacyDescription'](_0x498734){const _0x289e72=this['editor'],_0x488465=_0x289e72['locale'];_0x289e72['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6fce49=>{if('formatBlock'!=_0x6fce49['type']&&'formatInline'!=_0x6fce49['type'])return;const {data:_0x201055}=_0x6fce49;if(!_0x201055||'imageStyle'!=_0x201055['commandName'])return;const _0xe71351=_0x201055['commandParams'][0x0]['value'];return _0xa05820('side'===_0xe71351?o(_0x488465,'FORMAT_SIDE_IMAGE'):_0x498734[_0xe71351]||_0xe71351);function _0xa05820(_0x225b8a){return{'type':'format','content':o(_0x488465,'*Format:*\x20%0',_0x225b8a)};}});}}class ut extends _0x952b97{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x5e28e5){super(_0x5e28e5),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x26c69a=this['editor'],_0x58db21=_0x26c69a['commands']['get']('importWord'),_0xf180b1=_0x26c69a['commands']['get']('trackChanges');_0x58db21&&(_0x58db21['on']('execute',(_0xccb129,[,_0x25d701])=>{this['_trackChangesValueDuringImport']=_0xf180b1['value'],_0x25d701['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x58db21,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x58db21,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0xf180b1['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x26c69a['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x51a321,_0x4b17e7){const {suggestions:_0x3f87df}=_0x4b17e7,_0x51e29d=this['editor']['commands']['get']('trackChanges'),_0x1bcd89=_0x51e29d['value'];this['_trackChangesValueDuringImport']!==_0x1bcd89&&(_0x51e29d['execute'](),this['_trackChangesExecuted']=!0x0),_0x3f87df&&_0x3f87df['forEach'](({id:_0x26006c,type:_0xb3d213,author:_0x1e0661,created_at:_0x3d8f46})=>{const _0x3e861e={'id':_0x26006c,'type':_0xb3d213,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1e0661,'createdAt':_0x3d8f46?new Date(_0x3d8f46):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x3e861e);});}}class ft extends _0x952b97{['afterInit'](){const _0x10005f=this['editor'],_0x39c42b=_0x10005f['plugins']['get']('TrackChangesEditing');if(_0x10005f['plugins']['has']('IndentEditing')&&(_0x39c42b['enableCommand']('indent'),_0x39c42b['enableCommand']('outdent')),_0x10005f['plugins']['has']('IndentBlock')){for(const _0xf4f6d0 of['indentBlock','outdentBlock'])_0x39c42b['enableDefaultAttributesIntegration'](_0xf4f6d0);}const _0x3e9588=_0x10005f['locale'];_0x39c42b['registerBlockAttribute']('blockIndent'),_0x39c42b['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x3e9588,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1dbae4=this['editor'],_0x1a92d2=_0x1dbae4['locale'],_0x37ddde=_0x1dbae4['plugins']['get']('TrackChangesEditing');_0x37ddde['descriptionFactory']['registerDescriptionCallback'](_0x54d80f=>{if('formatBlock'!=_0x54d80f['type'])return;const {data:_0x5262c3}=_0x54d80f;if(!_0x5262c3)return;if('indentBlock'!=_0x5262c3['commandName']&&'outdentBlock'!=_0x5262c3['commandName'])return;const _0x3f95fc=_0x54d80f['getItems']()[0x0],_0x994d58=_0x37ddde['descriptionFactory']['getItemLabel'](_0x3f95fc);return'indentBlock'==_0x5262c3['commandName']?{'type':'format','content':o(_0x1a92d2,'*Indent:*\x20%0',_0x994d58)}:'outdentBlock'==_0x5262c3['commandName']?{'type':'format','content':o(_0x1a92d2,'*Outdent:*\x20%0',_0x994d58)}:void 0x0;});}}class ht extends _0x952b97{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x952b97{['afterInit'](){const _0x4c0bef=this['editor'];if(!_0x4c0bef['plugins']['has']('LinkEditing'))return;const _0x4fc77e=_0x4c0bef['plugins']['get']('TrackChangesEditing'),_0xee8fd=_0x4c0bef['commands']['get']('link');_0x4fc77e['enableDefaultAttributesIntegration']('link'),_0x4fc77e['enableDefaultAttributesIntegration']('unlink'),_0x4fc77e['registerInlineAttribute']('linkHref');for(const _0x1ff12a of _0xee8fd['manualDecorators'])_0x4fc77e['registerInlineAttribute'](_0x1ff12a['id']),_0x4fc77e['descriptionFactory']['registerAttributeLabel'](_0x1ff12a['id'],'link\x20('+_0x1ff12a['label']['toLowerCase']()+')');_0x4fc77e['descriptionFactory']['registerDescriptionCallback'](_0x2f8d32=>{if('attribute'!=_0x2f8d32['type'])return;const {data:_0x10e224}=_0x2f8d32;if(!_0x10e224||'linkHref'!=_0x10e224['key'])return;const _0x44dd65=_0x10e224['newValue'],_0x5a798c=_0x4c0bef['locale'];return{'type':'format','content':null==_0x44dd65?o(_0x5a798c,'*Remove\x20link*'):o(_0x5a798c,'*Set\x20link:*\x20%0','\x22'+_0x44dd65+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c36a0=this['editor'],_0x57a0f6=_0x4c36a0['locale'];_0x4c36a0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x33f8c4=>{if('formatInline'!=_0x33f8c4['type'])return;const {data:_0xc896db}=_0x33f8c4;if(_0xc896db){if('link'==_0xc896db['commandName']){const _0x436970=_0xc896db['commandParams'][0x0];return{'type':'format','content':o(_0x57a0f6,'*Set\x20link:*\x20%0','\x22'+_0x436970+'\x22')};}return'unlink'==_0xc896db['commandName']?{'type':'format','content':o(_0x57a0f6,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x952b97{['afterInit'](){const _0x39a81a=this['editor'],_0x24cd7e=_0x39a81a['locale'];if(!_0x39a81a['plugins']['has']('LegacyListEditing'))return;const _0x21d3f6=_0x39a81a['plugins']['get']('TrackChangesEditing'),_0x3d1455=_0x39a81a['plugins']['has']('LegacyTodoListEditing');function _0x2bfcda(_0x413624){return()=>{const _0x2d53de=_0x39a81a['model']['document']['selection'],_0x535023=_0x39a81a['commands']['get'](_0x413624);if(_0x535023['value'])return void _0x39a81a['execute']('paragraph',{});const _0x4371d8=_0x413624['slice'](0x0,-0x4),_0x4d468a=function(_0x3ecc67,_0xc33466,_0x1ef350){let _0x29bc29=Array['from'](_0x3ecc67)['filter'](_0x22f1de=>function(_0xef7556,_0x52ac35){return _0x52ac35['checkChild'](_0xef7556['parent'],'listItem')&&!_0x52ac35['isObject'](_0xef7556);}(_0x22f1de,_0x1ef350));_0x29bc29=_0x29bc29['filter'](_0xcc7a53=>!_0xcc7a53['is']('element','listItem')||_0xcc7a53['getAttribute']('listType')!=_0xc33466);const _0x4e947b=new Set();for(const _0x3a50bc of _0x29bc29)_0x3a50bc['is']('element','listItem')?_0x4e947b['add'](Le(_0x3a50bc)):_0x4e947b['add'](_0x3a50bc);return Array['from'](_0x4e947b);}(_0x2d53de['getSelectedBlocks'](),_0x4371d8,_0x39a81a['model']['schema']);_0x39a81a['model']['change'](()=>{for(const _0x56f441 of _0x4d468a)_0x21d3f6['markBlockFormat'](_0x56f441,{'commandName':_0x413624,'commandParams':[{'forceValue':!_0x535023['value']}],'formatGroupId':'blockName'},Ee(_0x56f441));});};}function _0x4d01ce(_0x708a2a){return()=>{const _0x1244ef=function(_0x57b04b){let _0x586757=Array['from'](_0x57b04b);const _0x5c6693=_0x586757['findIndex'](_0x336d45=>'listItem'!=_0x336d45['name']);return _0x5c6693>-0x1&&(_0x586757=_0x586757['slice'](0x0,_0x5c6693)),_0x586757;}(_0x39a81a['model']['document']['selection']['getSelectedBlocks']()),_0x21a005=_0x39a81a['model']['createRange'](_0x39a81a['model']['createPositionAt'](_0x1244ef[0x0],'before'),_0x39a81a['model']['createPositionAt'](_0x1244ef[_0x1244ef['length']-0x1],'end'));_0x39a81a['model']['change'](()=>{_0x21d3f6['markBlockFormat'](_0x21a005,{'commandName':_0x708a2a,'commandParams':[],'formatGroupId':'listIndent'},function(_0xdfbc39){const _0x218272=new Set();for(const _0xb28a46 of _0xdfbc39){let _0x921b0a=_0xb28a46['nextSibling'];for(;_0x921b0a&&_0x921b0a['getAttribute']('listIndent')>_0xb28a46['getAttribute']('listIndent');)_0x218272['add'](_0x921b0a),_0x921b0a=_0x921b0a['nextSibling'];}return Array['from'](_0x218272);}(_0x1244ef));});};}_0x21d3f6['enableCommand']('numberedList',_0x2bfcda('numberedList')),_0x21d3f6['enableCommand']('bulletedList',_0x2bfcda('bulletedList')),_0x3d1455&&_0x21d3f6['enableCommand']('todoList',_0x2bfcda('todoList')),_0x21d3f6['enableCommand']('indentList',_0x4d01ce('indentList')),_0x21d3f6['enableCommand']('outdentList',_0x4d01ce('outdentList')),_0x3d1455&&_0x21d3f6['enableCommand']('checkTodoList',()=>{const _0x491d47=_0x39a81a['commands']['get']('checkTodoList'),_0x3d00bb=Array['from'](_0x491d47['_selectedElements']);_0x3d00bb['filter'](_0x35524b=>_0x35524b['getAttribute']('todoListChecked')!=_0x491d47['value']),_0x39a81a['model']['change'](()=>{for(const _0x1a2409 of _0x3d00bb)_0x21d3f6['markBlockFormat'](_0x1a2409,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x491d47['value']}]});});}),_0x21d3f6['descriptionFactory']['registerElementLabel']('listItem',_0x4f9b02=>o(_0x24cd7e,'ELEMENT_LIST_ITEM',_0x4f9b02)),_0x21d3f6['descriptionFactory']['registerDescriptionCallback'](_0x4e5ad3=>{if('formatBlock'!=_0x4e5ad3['type']&&'formatInline'!=_0x4e5ad3['type'])return;const {data:_0x2ea04e}=_0x4e5ad3;if(_0x2ea04e){if('numberedList'==_0x2ea04e['commandName']||'bulletedList'==_0x2ea04e['commandName']||'todoList'==_0x2ea04e['commandName'])switch(_0x2ea04e['commandName']['replace']('List','')){case'bulleted':return _0x126e62(o(_0x24cd7e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x126e62(o(_0x24cd7e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x126e62(o(_0x24cd7e,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2ea04e['commandName'])return{'type':'format','content':o(_0x24cd7e,'*Indent:*\x20%0',o(_0x24cd7e,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2ea04e['commandName'])return{'type':'format','content':o(_0x24cd7e,'*Outdent:*\x20%0',o(_0x24cd7e,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2ea04e['commandName'])return _0x2ea04e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x24cd7e,'*Check\x20item*')}:{'type':'format','content':o(_0x24cd7e,'*Uncheck\x20item*')};}function _0x126e62(_0x1166be){return{'type':'format','content':o(_0x24cd7e,'*Change\x20to:*\x20%0',_0x1166be)};}});}}function Le(_0x368910){const _0x41c5cf=_0x368910['getAttribute']('listIndent');if(0x0==_0x41c5cf)return _0x368910;let _0x595c06=_0x368910;for(;_0x368910['previousSibling']&&_0x368910['previousSibling']['is']('element','listItem');){const _0x23bb9c=_0x368910['previousSibling']['getAttribute']('listIndent');if(_0x23bb9c==_0x41c5cf)_0x595c06=_0x368910['previousSibling'];else{if(_0x23bb9c<_0x41c5cf)break;}_0x368910=_0x368910['previousSibling'];}return _0x595c06;}function Ee(_0xc97eb6){const _0xcb941f=[];if(_0xc97eb6['is']('element','listItem')&&_0xc97eb6['getAttribute']('listIndent')>0x0){let _0x3efe1c=_0xc97eb6['nextSibling'];for(;_0x3efe1c&&'listItem'==_0x3efe1c['name']&&_0x3efe1c['getAttribute']('listIndent')==_0xc97eb6['getAttribute']('listIndent');)_0xcb941f['push'](_0x3efe1c),_0x3efe1c=_0x3efe1c['nextSibling'];}return _0xcb941f;}class Q extends _0x952b97{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x55328b=this['editor']['config']['get']('list.properties'),_0x38f0e3=this['editor']['plugins']['get']('TrackChangesEditing');_0x55328b['styles']&&_0x38f0e3['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x55328b['reversed']&&_0x38f0e3['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x55328b['startIndex']&&_0x38f0e3['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x38f0e3['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x44b63c,_0x70d093={}){const _0x371dab=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4a2517=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x371dab['markMultiRangeBlockFormat'](_0x4a2517,{'commandName':'listStyle','commandParams':[{'type':_0x70d093['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x2d2482,_0x24af35={}){const _0x1485c1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4f8c59=this['_getSuggestionBlocks'](_0x5c118b=>_0x5c118b['is']('element','listItem')&&'numbered'===_0x5c118b['getAttribute']('listType'));if(_0x4f8c59['length']<0x1)return;const _0x2d41e8=_0x4f8c59['map'](_0x2e9a29=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2e9a29,'before'),this['editor']['model']['createPositionAt'](_0x2e9a29,0x0)));this['editor']['model']['change'](()=>{_0x1485c1['markMultiRangeBlockFormat'](_0x2d41e8,{'commandName':'listReversed','commandParams':[{'reversed':_0x24af35['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x772230,_0x927f66={}){const _0x12af1e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4aa238=this['_getSuggestionBlocks'](_0xc62b9c=>_0xc62b9c['is']('element','listItem')&&'numbered'===_0xc62b9c['getAttribute']('listType'));if(_0x4aa238['length']<0x1)return;const _0x597799=_0x4aa238['map'](_0x423656=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x423656,'before'),this['editor']['model']['createPositionAt'](_0x423656,0x0)));this['editor']['model']['change'](()=>{_0x12af1e['markMultiRangeBlockFormat'](_0x597799,{'commandName':'listStart','commandParams':[{'startIndex':_0x927f66['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5a20be){if('formatBlock'!=_0x5a20be['type']&&'formatInline'!=_0x5a20be['type'])return;const _0x2631bc=this['editor']['locale'],{data:_0x237af1}=_0x5a20be;if(!_0x237af1)return;let _0x11eea9,_0x44eb2a;switch(_0x237af1['commandName']){case'listStyle':_0x11eea9='*Change\x20to:*\x20%0',_0x44eb2a={'type':'format','content':o(_0x2631bc,_0x11eea9,o(_0x2631bc,this['_getTranslationKeyForListStyle'](_0x237af1['commandParams'][0x0]['type'])))};break;case'listReversed':_0x11eea9=_0x237af1['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x44eb2a={'type':'format','content':o(_0x2631bc,_0x11eea9)};break;case'listStart':_0x11eea9='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x44eb2a={'type':'format','content':o(_0x2631bc,_0x11eea9,_0x237af1['commandParams'][0x0]['startIndex'])};}return _0x44eb2a;}['_getSuggestionBlocksForListStyle'](){const _0x2b4932=this['editor']['plugins']['get']('LegacyListUtils');let _0x34afdc=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x34afdc[0x0]?.['is']('element','listItem')&&_0x34afdc['unshift'](..._0x2b4932['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x34afdc[_0x34afdc['length']-0x1]?.['is']('element','listItem')&&_0x34afdc['push'](..._0x2b4932['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x34afdc=[...new Set(_0x34afdc)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x34afdc=_0x34afdc['filter'](_0x4dabb4=>_0x4dabb4['is']('element','listItem'))),_0x34afdc;}['_getSuggestionBlocks'](_0x5cdb84){const _0x4bac03=this['editor']['plugins']['get']('LegacyListUtils');let _0x5697c5=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x5cdb84)['map'](_0x567e9f=>{const _0x336f1b=this['editor']['model']['createPositionAt'](_0x567e9f,0x0);return[..._0x4bac03['getSiblingNodes'](_0x336f1b,'backward'),..._0x4bac03['getSiblingNodes'](_0x336f1b,'forward')];})['flat']();return _0x5697c5=[...new Set(_0x5697c5)],_0x5697c5;}['_getTranslationKeyForListStyle'](_0x117ef0){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x117ef0)||'default')['toUpperCase']()+'_LIST_'+_0x117ef0['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x952b97{['afterInit'](){const _0x5323f8=this['editor'];if(!_0x5323f8['plugins']['has']('MediaEmbedEditing'))return;const _0x457352=_0x5323f8['plugins']['get']('TrackChangesEditing'),_0x51f692=_0x5323f8['locale'];_0x457352['enableCommand']('mediaEmbed'),_0x457352['descriptionFactory']['registerElementLabel']('media',_0x4353fa=>o(_0x51f692,'ELEMENT_MEDIA',_0x4353fa)),_0x5323f8['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x277f6d,{writer:_0x52f9b9,options:_0x591967})=>{if(_0x591967['showSuggestionHighlights'])return _0x52f9b9['createEmptyElement']('div');},'converterPriority':'high'}),_0x5323f8['data']['downcastDispatcher']['on']('attribute:url:media',(_0x39d2b7,_0x3dd0b3,_0x3075f7)=>{_0x3075f7['options']['showSuggestionHighlights']&&_0x39d2b7['stop']();},{'priority':'high'});}}class pt extends _0x952b97{['afterInit'](){const _0x5869a0=this['editor'];_0x5869a0['plugins']['has']('MentionEditing')&&_0x5869a0['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x952b97{['afterInit'](){const _0x5951fb=this['editor'];if(!_0x5951fb['plugins']['has']('MergeFieldsEditing'))return;const _0x22521a=_0x5951fb['plugins']['get']('TrackChangesEditing'),_0x50cb3d=_0x5951fb['locale'];_0x22521a['enableCommand']('insertMergeField'),_0x22521a['enableCommand']('insertMergeFieldBlock'),_0x22521a['enableCommand']('insertMergeFieldImage'),_0x22521a['descriptionFactory']['registerElementLabel']('mergeField',_0x19af5a=>o(_0x50cb3d,'ELEMENT_MERGE_FIELD',_0x19af5a)),_0x22521a['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x55d095=>o(_0x50cb3d,'ELEMENT_MERGE_FIELD',_0x55d095)),_0x22521a['descriptionFactory']['registerDescriptionCallback'](_0x55c6d4=>{if('insertion'!=_0x55c6d4['type']&&'deletion'!=_0x55c6d4['type'])return;const _0x860570=_0x55c6d4['getContainedElement']();if(null==_0x860570)return;const _0x402ac3=_0x5951fb['plugins']['get']('MergeFieldsEditing');let _0x34ca8e;switch(_0x402ac3['getMergeFieldType'](_0x860570)){case null:return;case'image':{const _0x99ddca=_0x402ac3['unwrapAffixes'](_0x860570['getAttribute']('src'));_0x34ca8e=_0x402ac3['getLabel'](_0x99ddca)||_0x99ddca;break;}default:{const _0xdf70c1=_0x860570['getAttribute']('id');_0x34ca8e=_0x402ac3['getLabel'](_0xdf70c1)||_0xdf70c1;break;}}return'insertion'==_0x55c6d4['type']?{'type':'insertion','content':o(_0x50cb3d,'*Insert:*\x20%0','\x22'+_0x34ca8e+'\x22\x20'+o(_0x50cb3d,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x50cb3d,'*Remove:*\x20%0','\x22'+_0x34ca8e+'\x22\x20'+o(_0x50cb3d,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x952b97{['afterInit'](){const _0x4d8454=this['editor'],_0x54e8f0=_0x4d8454['plugins']['get']('TrackChangesEditing');_0x4d8454['plugins']['has']('MultiLevelList')&&(_0x54e8f0['enableDefaultAttributesIntegration']('multiLevelList'),_0x54e8f0['registerBlockAttribute']('listMarkerStyle'),_0x54e8f0['descriptionFactory']['registerDescriptionCallback'](_0x146b5b=>this['handleDescriptions'](_0x146b5b)));}['handleDescriptions'](_0x1d5a59){const _0x2ab9ae=this['editor']['locale'],{data:_0x3aadc5}=_0x1d5a59,_0x46e0d5={'type':'format','content':''};if(_0x3aadc5&&'listMarkerStyle'==_0x3aadc5['key']){if(!_0x3aadc5['oldValue'])return{'type':'format','content':o(_0x2ab9ae,'*Set\x20format:*\x20%0',o(_0x2ab9ae,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3aadc5['newValue']+')'};if(!_0x3aadc5['newValue']){let _0x359eac=_0x1d5a59['head'];for(;_0x359eac;){if(_0x359eac['data']&&'listType'==_0x359eac['data']['key']&&_0x359eac['data']['newValue'])return _0x46e0d5;_0x359eac=_0x359eac['next'];}return{'type':'format','content':o(_0x2ab9ae,'*Remove\x20format:*\x20%0',o(_0x2ab9ae,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3aadc5['oldValue']+')'};}}}}class bt extends _0x952b97{['afterInit'](){const _0x55cfd7=this['editor'];if(!_0x55cfd7['plugins']['has']('PageBreakEditing'))return;_0x55cfd7['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x1a9c02=_0x55cfd7['plugins']['get']('TrackChangesEditing'),_0x270360=_0x55cfd7['locale'];_0x1a9c02['descriptionFactory']['registerElementLabel']('pageBreak',_0x18ad06=>o(_0x270360,'ELEMENT_PAGE_BREAK',_0x18ad06));}}class yt extends _0x952b97{['afterInit'](){const _0x8a11a9=this['editor'];if(!_0x8a11a9['plugins']['has']('Paragraph'))return;const _0xd15082=_0x8a11a9['locale'],_0x4a251f=_0x8a11a9['plugins']['get']('TrackChangesEditing');_0x4a251f['descriptionFactory']['registerElementLabel']('paragraph',_0x1659b6=>o(_0xd15082,'ELEMENT_PARAGRAPH',_0x1659b6)),_0x4a251f['enableDefaultAttributesIntegration']('paragraph'),_0x4a251f['enableCommand']('insertParagraph'),_0x8a11a9['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x8a11a9),{'priority':'highest'}),_0x8a11a9['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x291995,_0x2de79e,_0x5867d6)=>{_0x5867d6['options']['showSuggestionHighlights']&&nr(_0x8a11a9,{'showActiveMarker':!0x1})(_0x291995,_0x2de79e,_0x5867d6);},{'priority':'highest'});const _0x54b316=_0x4a251f['descriptionFactory'];_0x54b316['registerDescriptionCallback'](_0x16f3ec=>{if('insertion'!==_0x16f3ec['type'])return;const {start:_0x25707a,end:_0x3d225b}=_0x16f3ec['getFirstRange']();if(!_0x25707a['isTouching'](_0x3d225b)||!_0x25707a['nodeAfter'])return;const _0x201836=_0x8a11a9['model']['schema'],_0x108443=_0x25707a['nodeAfter'];return _0x201836['isBlock'](_0x108443)&&!_0x201836['isLimit'](_0x108443)&&_0x201836['checkChild'](_0x108443,'$text')?{'type':'insertion','content':o(_0xd15082,'*Insert:*\x20%0',_0x54b316['getItemLabel'](_0x108443,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5ce3c0=this['editor'],_0x430b0b=_0x5ce3c0['locale'];_0x5ce3c0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a8bd6=>{if('formatBlock'!=_0x3a8bd6['type'])return;const {data:_0x3b0d8}=_0x3a8bd6;return _0x3b0d8&&'paragraph'==_0x3b0d8['commandName']?{'type':'format','content':o(_0x430b0b,'*Change\x20to:*\x20%0',o(_0x430b0b,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x3af2cd,{showActiveMarker:_0x11f89c=!0x0}={}){return(_0x432009,_0x3046e1,_0x61c8a7)=>{const _0x91b39e=_0x3af2cd['plugins']['get']('TrackChangesEditing'),_0x393f9d=_0x3046e1['markerRange']['start'],_0xf5c96c=_0x3046e1['markerRange']['end'],_0x3fa8dd=_0x3af2cd['model']['schema'];if(!_0x393f9d['isTouching'](_0xf5c96c)||!_0x393f9d['nodeAfter'])return;const _0x515bc5=_0x393f9d['nodeAfter'];if(_0x3fa8dd['isBlock'](_0x515bc5)&&!_0x3fa8dd['isLimit'](_0x515bc5)&&_0x3fa8dd['checkChild'](_0x515bc5,'$text')){if(!_0x61c8a7['consumable']['consume'](_0x3046e1['markerRange'],_0x432009['name']))return;const {authorId:_0x45eafb}=_0x91b39e['_splitMarkerName'](_0x3046e1['markerName']),_0x25dcc6=_0x61c8a7['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x45eafb}),_0x206fda=_0x61c8a7['mapper']['toViewPosition'](_0xf5c96c);_0x11f89c&&_0x91b39e['activeMarkers']['includes'](_0x3046e1['markerName'])&&_0x61c8a7['writer']['addClass']('ck-suggestion-marker--active',_0x25dcc6),_0x61c8a7['writer']['insert'](_0x206fda,_0x25dcc6),_0x61c8a7['mapper']['bindElementToMarker'](_0x25dcc6,_0x3046e1['markerName']);}};}class jt extends _0x952b97{['afterInit'](){const _0x1a1737=this['editor'];_0x1a1737['commands']['get']('replaceSource')&&_0x1a1737['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x952b97{['afterInit'](){const _0x29acd7=this['editor'];if(!_0x29acd7['plugins']['has']('RemoveFormatEditing'))return;_0x29acd7['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3f6ba1=this['editor'];_0x3f6ba1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf519b4=>{if('formatBlock'!=_0xf519b4['type']&&'formatInline'!=_0xf519b4['type'])return;const {data:_0x5871d2}=_0xf519b4;return _0x5871d2&&'removeFormat'==_0x5871d2['commandName']?{'type':'format','content':o(_0x3f6ba1['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x952b97{['afterInit'](){const _0x2355d9=this['editor'];if(!_0x2355d9['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x16b16e=_0x2355d9['plugins']['get']('TrackChangesEditing');_0x16b16e['enableCommand']('goToPreviousRestrictedEditingException'),_0x16b16e['enableCommand']('goToNextRestrictedEditingException');const _0x1aa5e5=_0x2355d9['plugins']['get']('RestrictedEditingModeEditing');_0x1aa5e5['enableCommand']('trackChanges'),_0x1aa5e5['enableCommand']('acceptSuggestion'),_0x1aa5e5['enableCommand']('discardSuggestion'),_0x1aa5e5['enableCommand']('acceptAllSuggestions'),_0x1aa5e5['enableCommand']('discardAllSuggestions'),_0x1aa5e5['enableCommand']('acceptSelectedSuggestions'),_0x1aa5e5['enableCommand']('discardSelectedSuggestions');}}class It extends _0x952b97{static get['requires'](){return[_0x3b3aad];}['init'](){const _0x898035=this['editor'],_0x314781=_0x898035['plugins']['get']('TrackChangesEditing');_0x314781['enableCommand']('shiftEnter'),_0x898035['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x898035),{'priority':'high'}),_0x898035['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x898035),{'priority':'high'}),_0x898035['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xc4752a,_0x34dfd6,_0x74745d)=>{_0x74745d['options']['showSuggestionHighlights']&&je(_0x898035,{'showActiveMarker':!0x1})(_0xc4752a,_0x34dfd6,_0x74745d);}),_0x314781['descriptionFactory']['registerElementLabel']('softBreak',_0x380bf0=>o(_0x898035['locale'],'ELEMENT_LINE_BREAK',_0x380bf0));}}function je(_0xd1abe5,{showActiveMarker:_0x40ee90=!0x0}={}){return(_0x3bfa82,_0x466ecb,_0x1764a2)=>{const _0x46fe3b=_0xd1abe5['plugins']['get']('TrackChangesEditing');if(!_0x1764a2['consumable']['test'](_0x466ecb['markerRange'],_0x3bfa82['name']))return;const _0x4f1389=_0xd1abe5['model'];for(const _0x3712f6 of _0x466ecb['markerRange']['getItems']()){if(!_0x3712f6['is']('element','softBreak'))continue;const _0x2e74d6='deletion'==_0x466ecb['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x4cab6b}=_0x46fe3b['_splitMarkerName'](_0x466ecb['markerName']),_0x2a42e1=_0x1764a2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2e74d6,'data-author-id':_0x4cab6b}),_0x5dfd8d=_0x1764a2['mapper']['toViewPosition'](_0x4f1389['createPositionBefore'](_0x3712f6));_0x40ee90&&_0x46fe3b['activeMarkers']['includes'](_0x466ecb['markerName'])&&_0x1764a2['writer']['addClass']('ck-suggestion-marker--active',_0x2a42e1),_0x1764a2['writer']['insert'](_0x5dfd8d,_0x2a42e1),_0x1764a2['mapper']['bindElementToMarker'](_0x2a42e1,_0x466ecb['markerName']);}};}class vt extends _0x952b97{['afterInit'](){const _0x4a3baf=this['editor'],_0x540cfa=_0x4a3baf['model'],_0x394b9c=_0x4a3baf['locale'];if(!_0x4a3baf['plugins']['has']('StandardEditingModeEditing'))return;const _0x17db23=_0x4a3baf['plugins']['get']('TrackChangesEditing'),_0x3a11c8='restrictedEditingException',_0x4464d5=_0x4a3baf['commands']['get'](_0x3a11c8);_0x17db23['enableCommand'](_0x3a11c8,(_0x34543b,_0x70e2b={})=>{const _0x1da85f=_0x540cfa['document']['selection'];if(_0x1da85f['isCollapsed'])return void _0x34543b(_0x70e2b);const _0x55a6f4=void 0x0!==_0x70e2b['forceValue']?_0x70e2b['forceValue']:!_0x4464d5['value'];_0x540cfa['change'](()=>{const _0x2bf136=Array['from'](_0x1da85f['getRanges']());for(const _0x2ebf66 of _0x2bf136){const _0x44c1a9=_0x55a6f4?[_0x2ebf66]:io(_0x3a11c8,_0x2ebf66,_0x540cfa);for(const _0x5e3f98 of _0x44c1a9)_0x17db23['markInlineFormat'](_0x5e3f98,{'commandName':_0x3a11c8,'commandParams':[{'forceValue':_0x55a6f4}]});}});}),_0x17db23['descriptionFactory']['registerDescriptionCallback'](_0x2d97c5=>{if('formatBlock'!=_0x2d97c5['type']&&'formatInline'!=_0x2d97c5['type'])return;const {data:_0x53578a}=_0x2d97c5;return _0x53578a&&_0x53578a['commandName']==_0x3a11c8?_0x53578a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x394b9c,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x394b9c,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class _t extends _0x952b97{['afterInit'](){const _0x410e5b=this['editor'];if(!_0x410e5b['plugins']['has']('Style')||!_0x410e5b['plugins']['has']('DataSchema'))return;const _0x26ccdb=_0x410e5b['plugins']['get']('TrackChangesEditing'),_0x2af564=_0x410e5b['locale'],_0x155206=_0x410e5b['config']['get']('style')||{},_0x2ccd6b=_0x410e5b['plugins']['get']('GeneralHtmlSupport'),_0x163d02=_0x410e5b['plugins']['get']('StyleUtils')['normalizeConfig'](_0x410e5b['plugins']['get']('DataSchema'),_0x155206['definitions']);_0x26ccdb['enableDefaultAttributesIntegration']('style');const _0x323437=new Set();for(const _0x4cdd3c of _0x163d02['block']){const _0x531d45=_0x2ccd6b['getGhsAttributeNameForElement'](_0x4cdd3c['element']);_0x323437['add'](_0x531d45);}const _0x460673=new Set();for(const _0x4be0c9 of _0x163d02['inline']){const _0x2a063c=_0x2ccd6b['getGhsAttributeNameForElement'](_0x4be0c9['element']);_0x460673['add'](_0x2a063c);for(const _0x51dec0 of _0x4be0c9['ghsAttributes'])_0x460673['add'](_0x51dec0);}for(const _0x489a2f of _0x323437)_0x26ccdb['registerBlockAttribute'](_0x489a2f),_0x26ccdb['descriptionFactory']['registerAttributeLabel'](_0x489a2f,o(_0x2af564,'FORMAT_STYLE'));for(const _0x103a37 of _0x460673)_0x26ccdb['registerInlineAttribute'](_0x103a37),_0x26ccdb['descriptionFactory']['registerAttributeLabel'](_0x103a37,o(_0x2af564,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xa30c7d=this['editor'],_0x48214f=_0xa30c7d['locale'];_0xa30c7d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5df63b=>{if('formatBlock'!=_0x5df63b['type']&&'formatInline'!=_0x5df63b['type'])return;const {data:_0x30792d}=_0x5df63b;return _0x30792d&&'style'===_0x30792d['commandName']?_0x30792d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x48214f,'*Set\x20format:*\x20%0',_0x30792d['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x48214f,'*Remove\x20format:*\x20%0',_0x30792d['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x952b97{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4d5c0b){super(_0x4d5c0b),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3fd388=this['editor'],_0x4d1f83=_0x3fd388['model']['document']['selection'];if(!_0x3fd388['plugins']['has']('TableEditing'))return;const _0x61ee2c=_0x3fd388['locale'],_0x2303cc=_0x3fd388['plugins']['get']('TrackChangesEditing'),_0x3c4290=_0x3fd388['plugins']['get']('TableUtils');_0x2303cc['descriptionFactory']['registerElementLabel']('table',_0x20def2=>o(_0x61ee2c,'ELEMENT_TABLE',_0x20def2)),this['_setupColumnsRowsFixing'](),_0x2303cc['enableCommand']('insertTable'),_0x2303cc['enableCommand']('selectTableRow'),_0x2303cc['enableCommand']('selectTableColumn');for(const _0x26d1ad of['insertTableRowAbove','insertTableRowBelow']){const _0x494a84=_0x3fd388['commands']['get'](_0x26d1ad);_0x2303cc['enableCommand'](_0x26d1ad,_0xe25082=>{_0x3fd388['model']['change'](_0x4d3c38=>{_0xe25082();const _0x41e9b4='above'===_0x494a84['order'],_0x530105=_0x3c4290['getSelectionAffectedTableCells'](_0x4d1f83),_0x2a5719=_0x3c4290['getRowIndexes'](_0x530105),_0x8bae28=_0x41e9b4?_0x2a5719['first']-0x1:_0x2a5719['last']+0x1,_0x68b04=_0x530105[0x0]['findAncestor']('table'),_0x596375=_0x3c4290['createTableWalker'](_0x68b04,{'startRow':_0x8bae28,'endRow':_0x8bae28}),_0x28c75d=Array['from'](_0x596375)['map'](_0x3c8320=>_0x4d3c38['createRangeOn'](_0x3c8320['cell']));_0x2303cc['markMultiRangeInsertion'](_0x28c75d,'tableRow');});});}for(const _0xceb35 of['insertTableColumnLeft','insertTableColumnRight']){const _0x990788=_0x3fd388['commands']['get'](_0xceb35);_0x2303cc['enableCommand'](_0xceb35,_0x348c5d=>{_0x3fd388['model']['change'](_0x12f27e=>{_0x348c5d();const _0x5bbaf9='left'===_0x990788['order'],_0x5bce29=_0x3c4290['getSelectionAffectedTableCells'](_0x4d1f83),_0xaa7dd4=_0x3c4290['getColumnIndexes'](_0x5bce29),_0x1a15d6=_0x5bbaf9?_0xaa7dd4['first']-0x1:_0xaa7dd4['last']+0x1,_0x32f8e6=_0x5bce29[0x0]['findAncestor']('table'),_0x53f591=_0x3c4290['createTableWalker'](_0x32f8e6,{'startRow':0x0,'column':_0x1a15d6,'includeAllSlots':!0x1}),_0x4e3b35=Array['from'](_0x53f591)['map'](_0x44d18e=>_0x12f27e['createRangeOn'](_0x44d18e['cell']));_0x2303cc['markMultiRangeInsertion'](_0x4e3b35,'tableColumn');});});}for(const _0x4f834a of['removeTableRow','removeTableColumn']){const _0x1779fb=_0x4f834a['substr'](0xb),_0x514df2=_0x1779fb['toLowerCase'](),_0x140162=_0x514df2['substr'](0x0,0x3)+'span',_0x23c1fa='table'+_0x1779fb,_0x3a9c94='min'+_0x1779fb,_0x6e719a='max'+_0x1779fb;_0x2303cc['enableCommand'](_0x4f834a,()=>{_0x3fd388['model']['change'](_0x278a36=>{const _0x7d606b=_0x3c4290['getSelectionAffectedTableCells'](_0x4d1f83),_0x2a76c0=_0x7d606b[0x0]['findAncestor']('table');let _0x152058;if('removeTableRow'==_0x4f834a){const _0x529c68=_0x3c4290['getRowIndexes'](_0x7d606b);_0x152058={'startRow':_0x529c68['first'],'endRow':_0x529c68['last'],'includeAllSlots':!0x0};}else{const _0x2ea85b=_0x3c4290['getColumnIndexes'](_0x7d606b);_0x152058={'startColumn':_0x2ea85b['first'],'endColumn':_0x2ea85b['last'],'includeAllSlots':!0x0};}const _0x18b20b=_0x3c4290['createTableWalker'](_0x2a76c0,_0x152058),_0x5a34d6=Array['from'](_0x18b20b)['map'](({cell:_0x9459be})=>_0x9459be),_0x373df7=Ne(_0x5a34d6['filter'](_0x47dac0=>_0x47dac0['hasAttribute'](_0x140162))),_0x3609bb=Ne(_0x5a34d6['filter'](_0x872199=>!_0x872199['hasAttribute'](_0x140162)))['map'](_0x893a5a=>_0x278a36['createRangeOn'](_0x893a5a)),_0x4cc287=_0x2303cc['markMultiRangeDeletion'](_0x3609bb,_0x23c1fa);if(_0x4cc287&&('tableRow'==_0x4cc287['subType']||'tableColumn'==_0x4cc287['subType'])){const _0x32ed52=this['_getSuggestionCoords'](_0x4cc287);for(const _0x49767e of _0x373df7){const _0x2629de=_0x278a36['createRangeOn'](_0x49767e),_0x3b18c0=_0x3c4290['getCellLocation'](_0x49767e),_0x272c2f=_0x49767e['getAttribute'](_0x140162)-0x1,_0x429716=_0x32ed52[_0x3a9c94],_0x72877d=_0x32ed52[_0x6e719a];_0x429716<=_0x3b18c0[_0x514df2]&&_0x3b18c0[_0x514df2]+_0x272c2f<=_0x72877d&&_0x4cc287['addRange'](_0x2629de);}}});});}function _0x2c59c3(_0x5ccb2b){const _0x5f0881=Array['from'](_0x4d1f83['getRanges']())['map'](_0x3eab21=>_0x4d5435['fromRange'](_0x3eab21));_0x3fd388['model']['change'](_0x147a6d=>{const _0x3f1bda=_0x147a6d['batch'];_0x5ccb2b=_0x5ccb2b['filter'](_0x1a1253=>'$graveyard'!=_0x1a1253['root']['rootName']),_0x147a6d['setSelection'](_0x5ccb2b),_0x3fd388['commands']['get']('removeTableRow')['refresh'](),_0x3fd388['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3fd388['model']['enqueueChange'](()=>{_0x3fd388['model']['enqueueChange'](_0x3f1bda,_0x598d5d=>{const _0x429ce7=_0x5f0881['filter'](_0x57d3e1=>'$graveyard'!=_0x57d3e1['root']['rootName']);_0x429ce7['length']>0x0&&_0x598d5d['setSelection'](_0x429ce7);for(const _0x169769 of _0x5f0881)_0x169769['detach']();});});});}function _0x1d95eb(_0x59c6c1){_0x3fd388['model']['change'](_0x2abf53=>{const _0x3c75bc=Array['from'](_0x4d1f83['getRanges']())['map'](_0x1bad25=>_0x4d5435['fromRange'](_0x1bad25)),_0x1c962c=[];for(const _0x13de9a of _0x59c6c1)for(const _0x1cb79e of _0x13de9a['getItems']({'shallow':!0x0}))_0x1c962c['push'](_0x1cb79e);for(const _0x15701b of _0x1c962c)'$graveyard'!=_0x15701b['root']['rootName']&&(_0x2abf53['setSelection'](_0x2abf53['createPositionAt'](_0x15701b,0x0)),_0x3fd388['commands']['get']('removeTableColumn')['refresh'](),_0x3fd388['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1bb1f7=_0x3c75bc['filter'](_0x20583e=>'$graveyard'!=_0x20583e['root']['rootName']);_0x1bb1f7['length']>0x0&&_0x2abf53['setSelection'](_0x1bb1f7);for(const _0x2d9691 of _0x3c75bc)_0x2d9691['detach']();});}function _0x25fa00(_0x58159c,_0x3d3e1c){return _0x3d3e1c['every'](_0x530594=>_0x58159c['some'](_0x5ac21b=>_0x5ac21b['end']['isEqual'](_0x530594['start'])||_0x530594['end']['isEqual'](_0x5ac21b['start'])));}function _0x487136(_0x2e54b7,_0x352941){return!_0x2e54b7['some'](_0x28af83=>_0x352941['some'](_0x537b53=>_0x28af83['isIntersecting'](_0x537b53)))&&_0x2e54b7['some'](_0x59b5ca=>_0x352941['some'](_0xced4d=>_0x59b5ca['end']['isTouching'](_0xced4d['start'])));}_0x3fd388['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x41291b,_0xdb2b7c,_0x3cfb69)=>{if(!_0x3cfb69['options']['showSuggestionHighlights'])return;const _0x19660f=_0xdb2b7c['item'];if(!_0x19660f)return;const _0x1e6507=_0x3cfb69['mapper']['toViewElement'](_0x19660f);function _0x474ba9(_0x1e52af){return Array['isArray'](_0x1e52af)?_0x1e52af:[_0x1e52af];}_0x1e6507&&'tableCell'===_0x19660f['name']&&_0x501a6a(_0x1e6507,_0x3cfb69['writer'],(_0xbf618a,_0x4492a7,_0x485385)=>_0x485385['addClass'](_0x474ba9(_0x4492a7['classes']),_0xbf618a),(_0x1b37ea,_0x17801d,_0x5254e0)=>_0x5254e0['removeClass'](_0x474ba9(_0x17801d['classes']),_0x1b37ea));},{'priority':'highest'}),_0x2303cc['descriptionFactory']['registerDescriptionCallback'](_0x35da60=>{if('insertion'!=_0x35da60['type']&&'deletion'!=_0x35da60['type'])return;const _0x44ddff=_0x35da60['getContainedElement']();if(null!=_0x44ddff&&_0x44ddff['is']('element','table')){if('insertion'==_0x35da60['type']){const _0x4558b3=_0x35da60['getItems']()['filter'](_0x5b91c9=>_0x5b91c9['is']('$textProxy'))['map'](_0x353558=>_0x353558['data']);if(_0x4558b3['length'])return{'type':'insertion','content':o(_0x61ee2c,'*Insert:*\x20%0',o(_0x61ee2c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4558b3['join']('\x20')+'\x22'))};}if('deletion'==_0x35da60['type']){const _0x5098ba=_0x35da60['getItems']()['filter'](_0x1925ef=>_0x1925ef['is']('$textProxy'))['map'](_0x368d98=>_0x368d98['data']);if(_0x5098ba['length'])return{'type':'deletion','content':o(_0x61ee2c,'*Remove:*\x20%0',o(_0x61ee2c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5098ba['join']('\x20')+'\x22'))};}}}),_0x2303cc['descriptionFactory']['registerDescriptionCallback'](_0x5afe07=>{if('tableRow'==_0x5afe07['subType']){const _0x2c4ae0=_0x5afe07['getItems']()['filter'](_0x5886e6=>_0x5886e6['is']('$textProxy'))['map'](_0x2641f8=>_0x2641f8['data']),_0x22f2b0=this['_getSuggestionCoords'](_0x5afe07),_0x586050=_0x22f2b0['maxRow']-_0x22f2b0['minRow']+0x1;if('insertion'==_0x5afe07['type'])return _0x2c4ae0['length']?{'type':'insertion','content':o(_0x61ee2c,'*Insert:*\x20%0',o(_0x61ee2c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x586050,'\x22'+_0x2c4ae0['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x61ee2c,'*Insert:*\x20%0',o(_0x61ee2c,'ELEMENT_TABLE_ROW',_0x586050))};if('deletion'==_0x5afe07['type'])return _0x2c4ae0['length']?{'type':'deletion','content':o(_0x61ee2c,'*Remove:*\x20%0',o(_0x61ee2c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x586050,'\x22'+_0x2c4ae0['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x61ee2c,'*Remove:*\x20%0',o(_0x61ee2c,'ELEMENT_TABLE_ROW',_0x586050))};}if('tableColumn'==_0x5afe07['subType']){const _0x171771=_0x5afe07['getItems']()['filter'](_0x1b4c11=>_0x1b4c11['is']('$textProxy'))['map'](_0x1d9758=>_0x1d9758['data']),_0x172bd4=this['_getSuggestionCoords'](_0x5afe07),_0x183da0=_0x172bd4['maxColumn']-_0x172bd4['minColumn']+0x1;if('insertion'==_0x5afe07['type'])return _0x171771['length']?{'type':'insertion','content':o(_0x61ee2c,'*Insert:*\x20%0',o(_0x61ee2c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x183da0,'\x22'+_0x171771['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x61ee2c,'*Insert:*\x20%0',o(_0x61ee2c,'ELEMENT_TABLE_COLUMN',_0x183da0))};if('deletion'==_0x5afe07['type'])return _0x171771['length']?{'type':'deletion','content':o(_0x61ee2c,'*Remove:*\x20%0',o(_0x61ee2c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x183da0,'\x22'+_0x171771['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x61ee2c,'*Remove:*\x20%0',o(_0x61ee2c,'ELEMENT_TABLE_COLUMN',_0x183da0))};}}),_0x2303cc['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2c59c3),_0x2303cc['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2c59c3),_0x2303cc['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1d95eb),_0x2303cc['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1d95eb),_0x2303cc['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x25fa00),_0x2303cc['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x25fa00),_0x2303cc['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x487136),_0x2303cc['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x487136);}['_acceptFormatSuggestionCallbackFactory'](){const _0x340973=this['editor'],_0x528d57=_0x340973['model']['document']['selection'];return(_0x211450,_0x3f5ca0)=>{_0x340973['model']['change'](_0x181a30=>{const {commandName:_0x33e192,commandParams:_0x5ef86c}=_0x3f5ca0;let _0x16c029=_0x211450[0x0]['end']['nodeBefore'];_0x5ef86c&&_0x5ef86c[0x0]&&!0x1===_0x5ef86c[0x0]['forceValue']&&(_0x16c029=_0x211450[0x0]['start']['nodeAfter']);const _0x27c3b4=_0x181a30['createRangeIn'](_0x16c029);if('$graveyard'==_0x27c3b4['root']['rootName'])return;const _0x63512=Array['from'](_0x528d57['getRanges']())['map'](_0x4738d1=>_0x4d5435['fromRange'](_0x4738d1));_0x181a30['setSelection'](_0x27c3b4),_0x340973['commands']['get'](_0x33e192)['refresh'](),_0x5ef86c['push']({'forceDefaultExecution':!0x0}),_0x340973['execute'](_0x33e192,..._0x5ef86c);const _0x847f37=_0x63512['filter'](_0x2fded5=>'$graveyard'!=_0x2fded5['root']['rootName']);_0x847f37['length']>0x0&&_0x181a30['setSelection'](_0x847f37);for(const _0x171127 of _0x63512)_0x171127['detach']();});};}['_getCoordsForCells'](_0x2b983a){const _0x5b1141=this['editor']['plugins']['get']('TableUtils');let _0xb100ab=Number['MAX_SAFE_INTEGER'],_0x1f596e=Number['MIN_SAFE_INTEGER'],_0x138c79=Number['MAX_SAFE_INTEGER'],_0x1b7845=Number['MIN_SAFE_INTEGER'];for(const _0x324620 of _0x2b983a){if('$graveyard'==_0x324620['root']['rootName'])continue;const {row:_0x4eca28,column:_0x54c3dc}=_0x5b1141['getCellLocation'](_0x324620),_0x4bf40b=_0x324620['hasAttribute']('rowspan')?_0x324620['getAttribute']('rowspan')-0x1:0x0,_0x20dda8=_0x324620['hasAttribute']('colspan')?_0x324620['getAttribute']('colspan')-0x1:0x0;_0xb100ab=_0x4eca28<_0xb100ab?_0x4eca28:_0xb100ab,_0x1f596e=_0x4eca28+_0x4bf40b>_0x1f596e?_0x4eca28+_0x4bf40b:_0x1f596e,_0x138c79=_0x54c3dc<_0x138c79?_0x54c3dc:_0x138c79,_0x1b7845=_0x54c3dc+_0x20dda8>_0x1b7845?_0x54c3dc+_0x20dda8:_0x1b7845;}return{'minRow':_0xb100ab,'maxRow':_0x1f596e,'minColumn':_0x138c79,'maxColumn':_0x1b7845};}['_setupColumnsRowsFixing'](){const _0x2064a6=this['editor'],_0x977aa0=_0x2064a6['plugins']['get']('TrackChangesEditing'),_0x2cc64a=_0x2064a6['plugins']['get']('TableUtils');_0x2064a6['model']['document']['on']('change:data',()=>{const _0x2775c4=Array['from'](_0x2064a6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4d7399,data:_0x1458f5}of _0x2775c4){const {group:_0x2d0860,id:_0x3c5c8a,subType:_0x25bee5}=_0x977aa0['_splitMarkerName'](_0x4d7399);if('suggestion'!=_0x2d0860)continue;if(null!=_0x1458f5['oldRange'])continue;const _0x298b36=_0x977aa0['getSuggestion'](_0x3c5c8a);this['_tablePostFixingSubtypes']['includes'](_0x25bee5)&&this['_tableSuggestions']['add'](_0x298b36);}},{'priority':'low'});const _0x356beb=(_0x513d43,_0x5c17d2)=>{let _0x102d7a=!0x1;const _0x299275=_0x5c17d2['createRangeOn'](_0x513d43),_0x224a7e=_0x513d43['findAncestor']('table'),_0xf8af2c=_0x2cc64a['getCellLocation'](_0x513d43);for(const _0x1d9df9 of this['_tableSuggestions']){const _0x4c748c=_0x1d9df9['subType'],_0x1d0647=_0x4c748c['startsWith']('tablePaste'),_0x549abc=_0x4c748c['substr'](_0x1d0647?0xa:0x5),_0x2c9f3e=_0x549abc['toLowerCase'](),_0x2568b1=_0x2c9f3e['substr'](0x0,0x3)+'span',_0x527b96='min'+_0x549abc,_0x5973a6='max'+_0x549abc;if(!_0x1d9df9['isInContent'])continue;if(_0x224a7e!=_0x1d9df9['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x1d9df9['isIntersectingWithRange'](_0x299275))continue;const _0x226479=_0x513d43['hasAttribute'](_0x2568b1)?_0x513d43['getAttribute'](_0x2568b1)-0x1:0x0,_0x2881f9=this['_getSuggestionCoords'](_0x1d9df9),_0x59a353=_0x2881f9[_0x527b96],_0x4e0338=_0x2881f9[_0x5973a6];_0x59a353<=_0xf8af2c[_0x2c9f3e]&&_0xf8af2c[_0x2c9f3e]+_0x226479<=_0x4e0338&&(_0x1d9df9['addRange'](_0x299275),_0x102d7a=!0x0);}return _0x102d7a;};_0x2064a6['model']['document']['registerPostFixer'](_0x2dc24d=>{let _0xb78498=!0x1;for(const _0x1b326f of _0x2064a6['model']['document']['differ']['getChanges']())if('insert'==_0x1b326f['type']){if('tableRow'==_0x1b326f['name']){for(const _0x13c433 of _0x1b326f['position']['nodeAfter']['getChildren']())_0xb78498=_0xb78498||_0x356beb(_0x13c433,_0x2dc24d);}else'tableCell'==_0x1b326f['name']&&(_0xb78498=_0xb78498||_0x356beb(_0x1b326f['position']['nodeAfter'],_0x2dc24d));}return _0xb78498;});}['_getSuggestionCoords'](_0x4bcd62){return this['_getCoordsForCells'](_0x4bcd62['getRanges']()['map'](_0x4a3b79=>_0x4a3b79['start']['nodeAfter']));}}function Ne(_0x14bf6a){return Array['from'](new Set(_0x14bf6a)['values']());}class Nt extends _0x952b97{static get['requires'](){return[Ct];}['afterInit'](){const _0x2da0b0=this['editor'],_0x3258a6=_0x2da0b0['model']['document']['selection'],_0x32639f=_0x2da0b0['locale'];if(!_0x2da0b0['plugins']['has']('TableEditing'))return;const _0x2c9906=_0x2da0b0['plugins']['get']('TrackChangesEditing'),_0x2db86d=_0x2da0b0['plugins']['get']('TableUtils'),_0x3f8ca4=_0x2da0b0['plugins']['get'](Ct);_0x3f8ca4['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x2c9906['enableCommand']('mergeTableCells',()=>{const _0x3cabaa=_0x2db86d['getSelectionAffectedTableCells'](_0x2da0b0['model']['document']['selection']);_0x2da0b0['model']['change'](()=>{_0x2c9906['markMultiRangeBlockFormat'](_0x3cabaa,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2da0b0['commands']['get']('mergeTableCells')['on']('execute',(_0x40af30,_0x50ca54)=>{_0x2da0b0['commands']['get']('trackChanges')['value']&&(_0x50ca54['length']>0x0&&_0x50ca54[_0x50ca54['length']-0x1]&&_0x50ca54[_0x50ca54['length']-0x1]['forceDefaultExecution']||_0x2c9906['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x40af30['stop']());},{'priority':'highest'});for(const _0x5ae92a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x3b1143=_0x2da0b0['commands']['get'](_0x5ae92a);_0x2c9906['enableCommand'](_0x5ae92a,()=>{const _0x3cd3ce=_0x2da0b0['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3fae10=>_0x3fae10['is']('element','tableCell')),_0x524c95=_0x3b1143['value'];_0x2da0b0['model']['change'](()=>{_0x2c9906['markMultiRangeBlockFormat']([_0x3cd3ce,_0x524c95],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1e4f88 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x409d62=_0x2da0b0['commands']['get'](_0x1e4f88);_0x2c9906['enableCommand'](_0x1e4f88,()=>{const _0x290c68=_0x2db86d['getSelectionAffectedTableCells'](_0x2da0b0['model']['document']['selection'])[0x0],_0x5b6acb=_0x290c68['findAncestor']('table'),{column:_0x33ab65,row:_0x26dc2e}=_0x2db86d['getCellLocation'](_0x290c68);let _0x58afa7=[];if('horizontally'==_0x409d62['direction']){const _0x584e24=_0x2db86d['createTableWalker'](_0x5b6acb,{'startRow':_0x26dc2e,'endRow':_0x26dc2e,'includeAllSlots':!0x0});_0x58afa7=Array['from'](_0x584e24)['map'](_0x11347d=>_0x11347d['cell']);}else{const _0xdb9105=_0x2db86d['createTableWalker'](_0x5b6acb,{'column':_0x33ab65,'includeAllSlots':!0x0});_0x58afa7=Array['from'](_0xdb9105)['map'](_0x49fe99=>_0x49fe99['cell']);}_0x2da0b0['model']['change'](_0x9f2720=>{_0x2c9906['markBlockFormat'](_0x9f2720['createRangeOn'](_0x290c68),{'commandName':_0x1e4f88,'commandParams':[]},_0x58afa7,_0x1e4f88);});});}_0x2c9906['descriptionFactory']['registerDescriptionCallback'](_0x3481a0=>{if('formatBlock'!=_0x3481a0['type']&&'formatInline'!=_0x3481a0['type'])return;const {data:_0x31cb9a}=_0x3481a0;return _0x31cb9a&&'mergeTableCells'==_0x31cb9a['commandName']?{'type':'format','content':o(_0x32639f,'*Merge\x20cells*')}:void 0x0;}),_0x2c9906['descriptionFactory']['registerDescriptionCallback'](_0x5eb61f=>{if('formatBlock'!=_0x5eb61f['type']&&'formatInline'!=_0x5eb61f['type'])return;const {data:_0x9fad18}=_0x5eb61f;return _0x9fad18?'splitTableCellVertically'==_0x9fad18['commandName']?{'type':'format','content':o(_0x32639f,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x9fad18['commandName']?{'type':'format','content':o(_0x32639f,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x146afa=_0x3f8ca4['_acceptFormatSuggestionCallbackFactory']();for(const _0x4c8807 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x2c9906['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4c8807,'accept',_0x146afa);for(const _0x4a38bf of['splitTableCellVertically','splitTableCellHorizontally'])_0x2c9906['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4a38bf,'accept',_0x146afa);_0x2c9906['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3fa2a1=>{_0x2da0b0['model']['change'](_0x17c563=>{const _0x597311=Array['from'](_0x3258a6['getRanges']())['map'](_0x33ed6e=>_0x4d5435['fromRange'](_0x33ed6e));_0x17c563['setSelection'](_0x3fa2a1),_0x2da0b0['commands']['get']('mergeTableCells')['refresh'](),_0x2da0b0['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x733b87=_0x597311['filter'](_0x3b88ed=>'$graveyard'!=_0x3b88ed['root']['rootName']);_0x733b87['length']>0x0&&_0x17c563['setSelection'](_0x733b87);for(const _0x3d1dbf of _0x597311)_0x3d1dbf['detach']();});});for(const _0x4e5a8d of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x1d5ced=_0x2da0b0['commands']['get'](_0x4e5a8d);_0x1d5ced['on']('set:isEnabled',(_0x123ec9,_0x1678cc,_0x21a59d)=>{if(_0x21a59d){const _0x23ff8a=_0x2da0b0['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x334486=>_0x334486['is']('element','tableCell'));this['_areMergableCells'](_0x1d5ced['value'],_0x23ff8a)||(_0x123ec9['return']=!0x1,_0x123ec9['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x4ad029=this['editor']['commands']['get']('mergeTableCells'),_0x293276=this['editor']['plugins']['get']('TableUtils');if(!_0x4ad029['isEnabled'])return!0x1;const _0x2579ff=_0x293276['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3eabd3 of _0x2579ff)for(const _0x517a5c of _0x2579ff)if(_0x3eabd3!=_0x517a5c&&!this['_areMergableCells'](_0x3eabd3,_0x517a5c))return!0x1;return!0x0;}['_areMergableCells'](_0x3c489e,_0x56a78a){const _0xe69c9b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x40f140=this['editor']['model']['createRangeOn'](_0x3c489e),_0x186172=this['editor']['model']['createRangeOn'](_0x56a78a),_0x2113e3=new Set(),_0x5c8659=new Set();for(const _0x31bac2 of _0xe69c9b['getSuggestions']())if(('insertion'==_0x31bac2['type']||'deletion'==_0x31bac2['type']||'mergeTableCells'==_0x31bac2['subType'])&&_0x31bac2['isInContent']){for(const _0x169fb5 of _0x31bac2['getRanges']())_0x169fb5['containsRange'](_0x40f140,!0x0)&&_0x2113e3['add'](_0x31bac2['type']+':'+_0x31bac2['author']['id']),_0x169fb5['containsRange'](_0x186172,!0x0)&&_0x5c8659['add'](_0x31bac2['type']+':'+_0x31bac2['author']['id']);}if(_0x2113e3['size']!=_0x5c8659['size'])return!0x1;for(const _0x11eda0 of _0x2113e3)if(!_0x5c8659['has'](_0x11eda0))return!0x1;return!0x0;}}class Dt extends _0x952b97{static get['requires'](){return[Ct];}['afterInit'](){const _0x3ae8bf=this['editor'];if(!_0x3ae8bf['plugins']['has']('TableEditing'))return;const _0x3fae12=_0x3ae8bf['locale'],_0x28bc3b=_0x3ae8bf['plugins']['get']('TrackChangesEditing');_0x28bc3b['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x28bc3b['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x28bc3b['registerBlockAttribute']('headingRows'),_0x28bc3b['registerBlockAttribute']('headingColumns'),_0x28bc3b['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x3fae12,'FORMAT_HEADER_ROW')),_0x28bc3b['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x3fae12,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1c0903=this['editor']['plugins']['get']('TrackChangesEditing'),_0x208f23=this['editor']['plugins']['get']('TableUtils'),_0x118266=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x29b421({showActiveMarker:_0x131f2d=!0x0,setDataAttribute:_0x1f9341=!0x0}={}){return(_0x4d4844,_0x4e2ed8,_0x2216c1)=>{const {type:_0xd48020,id:_0x2db3c1}=_0x1c0903['_splitMarkerName'](_0x4e2ed8['markerName']),_0x82e149=_0x1c0903['getSuggestion'](_0x2db3c1),_0x5f3f12=_0x82e149['data'];if('formatBlock'!=_0x82e149['type']||!_0x5f3f12||'setTableColumnHeader'!=_0x5f3f12['commandName'])return;if(_0x4e2ed8['item'])return void _0x4d4844['stop']();if(!_0x2216c1['consumable']['consume'](_0x4e2ed8['markerRange'],_0x4d4844['name']))return;const _0xdede4=_0x4e2ed8['markerRange']['start']['nodeAfter'],_0x4578c5=_0x4e2ed8['markerRange']['end']['nodeBefore'],_0x228b09=_0xdede4['parent']['parent'],{column:_0x2de766}=_0x208f23['getCellLocation'](_0xdede4),{column:_0x18b8f3}=_0x208f23['getCellLocation'](_0x4578c5);for(let _0x59fde3=_0x2de766;_0x59fde3<=_0x18b8f3;_0x59fde3++){const _0x11bb9e=_0x208f23['createTableWalker'](_0x228b09,{'column':_0x59fde3,'includeAllSlots':!0x1});for(const _0x208ccd of _0x11bb9e){const _0x17b0cc=_0x208ccd['cell'],_0x304593=_0x2216c1['mapper']['toViewElement'](_0x17b0cc);_0x2216c1['writer']['addClass']('ck-suggestion-marker-'+_0xd48020,_0x304593),_0x1f9341&&_0x2216c1['writer']['setAttribute']('data-suggestion',_0x2db3c1,_0x304593),_0x2216c1['mapper']['bindElementToMarker'](_0x304593,_0x4e2ed8['markerName']),_0x131f2d&&(_0x1c0903['activeMarkers']['includes'](_0x4e2ed8['markerName'])?_0x2216c1['writer']['addClass']('ck-suggestion-marker--active',_0x304593):_0x2216c1['writer']['removeClass']('ck-suggestion-marker--active',_0x304593));}}};}_0x1c0903['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x118266),_0x1c0903['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x118266),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x29b421(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x93ff70,_0x2d07b8,_0xb2cfb5)=>{_0xb2cfb5['options']['showSuggestionHighlights']&&_0x29b421({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x93ff70,_0x2d07b8,_0xb2cfb5);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x45b40a,_0x4565db,_0x4191f9)=>{const {type:_0x2634bf,id:_0x2e8a2f}=_0x1c0903['_splitMarkerName'](_0x4565db['markerName']),_0x3aedcf=_0x1c0903['getSuggestion'](_0x2e8a2f),_0x49cf38=_0x3aedcf['data'];if('formatBlock'!=_0x3aedcf['type']||!_0x49cf38||'setTableColumnHeader'!=_0x49cf38['commandName'])return;const _0x21bf56=_0x4191f9['mapper']['markerNameToElements'](_0x4565db['markerName']);if(_0x21bf56){for(const _0x2832e8 of _0x21bf56)_0x4191f9['writer']['removeClass']('ck-suggestion-marker-'+_0x2634bf,_0x2832e8),_0x4191f9['writer']['removeClass']('ck-suggestion-marker--active',_0x2832e8),_0x4191f9['writer']['removeAttribute']('data-suggestion',_0x2832e8),_0x4191f9['mapper']['unbindElementFromMarkerName'](_0x2832e8,_0x4565db['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x69fdf8=this['editor'],_0x31a0b4=_0x69fdf8['locale'];function _0xc0ab99(_0x5f37d7){return{'type':'format','content':o(_0x31a0b4,'*Format:*\x20%0',_0x5f37d7)};}_0x69fdf8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20126c=>{if('formatBlock'!=_0x20126c['type'])return;const {data:_0x3a7b93}=_0x20126c;if(_0x3a7b93){if('setTableRowHeader'==_0x3a7b93['commandName']){const _0x947b7a=_0x3a7b93['commandParams'][0x0]['forceValue'];return _0xc0ab99(o(_0x31a0b4,_0x947b7a?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x3a7b93['commandName']){const _0x3f5522=_0x3a7b93['commandParams'][0x0]['forceValue'];return _0xc0ab99(o(_0x31a0b4,_0x3f5522?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x1927ed=>[_0x1927ed,null]));class Mt extends _0x952b97{static get['requires'](){return[Ct];}['afterInit'](){const _0x50fa88=this['editor'];if(!_0x50fa88['plugins']['has']('TableClipboard'))return;const _0x50358d=_0x50fa88['plugins']['get']('TrackChangesEditing'),_0x41620c=_0x50fa88['plugins']['get']('TableUtils'),_0x19789b=_0x50fa88['plugins']['get'](Ct),_0x3fb156=_0x50fa88['plugins']['get']('TableClipboard');_0x19789b['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x50fa88['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x50fa88['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1cc62b=null;_0x50fa88['model']['on']('insertContent',(_0x10fd94,_0x1b7ac3)=>{const [_0x4138f9,_0x370242]=_0x1b7ac3,_0x402871=_0x1b7ac3[_0x1b7ac3['length']-0x1];_0x402871&&_0x402871['forceDefaultExecution']||_0x50358d['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0xde978,_0x340073,_0x3a9af7,_0x2e5b7f,_0x33b99b){if(_0x340073&&!_0x340073['is']('documentSelection'))return!0x1;const _0xed43b5=_0x33b99b['getTableIfOnlyTableInContent'](_0xde978,_0x3a9af7);if(!_0xed43b5||!Ue(_0xed43b5,void 0x0,_0x2e5b7f))return!0x1;const _0x1b37f2=_0x2e5b7f['getSelectionAffectedTableCells'](_0x3a9af7['document']['selection']);if(!_0x1b37f2['length'])return!0x1;const _0x328a5d=_0x1b37f2[0x0]['findAncestor']('table'),_0x5c3176=_0x2e5b7f['getRowIndexes'](_0x1b37f2),_0x4d9fdd=_0x2e5b7f['getColumnIndexes'](_0x1b37f2),_0x4c9711={'startRow':_0x5c3176['first'],'endRow':_0x5c3176['last'],'startColumn':_0x4d9fdd['first'],'endColumn':_0x4d9fdd['last']};return 0x1==_0x1b37f2['length']&&(_0x4c9711['endRow']+=_0x2e5b7f['getRows'](_0xed43b5)-0x1,_0x4c9711['endColumn']+=_0x2e5b7f['getColumns'](_0xed43b5)-0x1),Ue(_0x328a5d,_0x4c9711,_0x2e5b7f);}(_0x4138f9,_0x370242,_0x50fa88['model'],_0x41620c,_0x3fb156)&&(_0x10fd94['stop'](),_0x1cc62b={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x50fa88['model']['change'](()=>{_0x50fa88['model']['insertContent'](_0x1b7ac3[0x0],_0x1b7ac3[0x1],_0x1b7ac3[0x2],{'forceDefaultExecution':!0x0});const _0x52fd0e=_0x414b78(),{rowInsertionRanges:_0x378ab4,columnInsertionRanges:_0x5b29b1,insertionRanges:_0x57e9a7,deletionRanges:_0x464c2e,cells:_0x104471}=_0x1cc62b;_0x378ab4['length']&&_0x50358d['markMultiRangeInsertion'](_0x378ab4,'tablePasteRow',{'tablePasteChainId':_0x52fd0e}),_0x5b29b1['length']&&_0x50358d['markMultiRangeInsertion'](_0x5b29b1,'tablePasteColumn',{'tablePasteChainId':_0x52fd0e}),_0x57e9a7['length']&&(_0x50358d['markMultiRangeInsertion'](_0x57e9a7,'tablePaste',{'tablePasteChainId':_0x52fd0e,'skipNestingCheck':!0x0}),_0x57e9a7['forEach'](_0x2e678f=>_0x2e678f['detach']?.())),_0x464c2e['length']&&(_0x50358d['markMultiRangeDeletion'](_0x464c2e,'tablePaste',{'tablePasteChainId':_0x52fd0e,'skipNestingCheck':!0x0}),_0x464c2e['forEach'](_0x3a5245=>_0x3a5245['detach']?.()));const _0x49be91=_0x50358d['markMultiRangeBlockFormat'](_0x104471['map'](({element:_0x67a31b})=>_0x67a31b),{'formatGroupId':_0x414b78()},[],'tablePasteCell',{'tablePasteChainId':_0x52fd0e});if(_0x49be91){const _0x16b7cb=_0x49be91['getMarkers'](),_0x562e5b=[];for(const {element:_0x492932,attributes:_0x56d62e}of _0x104471){if(!_0x56d62e)continue;const _0x109576=_0x50fa88['model']['createRangeOn'](_0x492932),_0x44a7fb=_0x16b7cb['find'](_0xad8092=>_0xad8092['getRange']()['isEqual'](_0x109576));_0x44a7fb&&_0x562e5b['push']([_0x44a7fb['name'],_0x56d62e]);}_0x562e5b['length']&&_0x49be91['setAttribute']('markerAttributes',Object['fromEntries'](_0x562e5b));}_0x1cc62b=null;}));},{'priority':_0x254b36['high']+0xa}),_0x50fa88['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x5c2390,_0xf61a45)=>{const [_0x1ed162,_0xb1c5f7,,_0x349d24]=_0xf61a45;if(!_0x1cc62b)return;_0x5c2390['stop']();const _0x17a60f=_0x1ed162['cell'],_0x340629=_0xb1c5f7,_0x153c21=Oe(_0x17a60f),_0x1510bf=Oe(_0x340629);_0x5c2390['return']=_0x17a60f;let _0x1756ef=null,_0x143c7b=null;if(_0x1510bf||_0x153c21){if(_0x153c21&&!_0x1510bf){_0x349d24['remove'](_0x17a60f['getChild'](0x0));for(const _0x2a3c30 of Array['from'](_0x340629['getChildren']()))_0x349d24['insert'](_0x2a3c30,_0x17a60f,'end');const _0x51c10e=_0x1cc62b['rowInsertionIndexes']['includes'](_0x1ed162['row']),_0x24c1d3=_0x1cc62b['columnInsertionIndexes']['includes'](_0x1ed162['column']);_0x51c10e||_0x24c1d3||(_0x1756ef=_0x4d5435['fromRange'](_0x349d24['createRangeIn'](_0x17a60f)));}else _0x1510bf&&!_0x153c21&&(_0x143c7b=_0x349d24['createRangeIn'](_0x17a60f));}else{const _0x2bb348=_0x349d24['createElement']('tableCellSuggestion'),_0x548d52=_0x349d24['createElement']('tableCellSuggestion');_0x349d24['wrap'](_0x349d24['createRangeIn'](_0x17a60f),_0x548d52),_0x349d24['insert'](_0x2bb348,_0x17a60f,0x0);for(const _0x5d011d of Array['from'](_0x340629['getChildren']()))_0x349d24['insert'](_0x5d011d,_0x2bb348,'end');_0x1756ef=_0x4d5435['fromRange'](_0x349d24['createRangeOn'](_0x2bb348)),_0x143c7b=_0x4d5435['fromRange'](_0x349d24['createRangeOn'](_0x548d52));}const _0x469e4b=Array['from'](_0x340629['getAttributes']())['filter'](([_0x25ad5d])=>Be['includes'](_0x25ad5d));_0x1cc62b['cells']['push']({'element':_0x17a60f,'attributes':_0x469e4b['length']?Object['fromEntries'](_0x469e4b):null}),_0x1756ef&&_0x1cc62b['insertionRanges']['push'](_0x1756ef),_0x143c7b&&_0x1cc62b['deletionRanges']['push'](_0x143c7b);},{'priority':'high'}),_0x41620c['on']('insertColumns',(_0x3f0bb5,_0x1fee56)=>{const [_0x366ebb,_0x19fe01={}]=_0x1fee56;if(!_0x1cc62b)return;const _0x569bce=_0x19fe01['at']||0x0,_0x517ce5=_0x19fe01['columns']||0x1;_0x1cc62b['columnInsertionIndexes']=new Array(_0x517ce5)['fill'](_0x569bce)['map']((_0x104ac3,_0x45e033)=>_0x104ac3+_0x45e033);for(const {cell:_0x239e5a}of _0x41620c['createTableWalker'](_0x366ebb,{'startColumn':_0x569bce,'endColumn':_0x569bce+_0x517ce5-0x1}))_0x1cc62b['columnInsertionRanges']['push'](_0x50fa88['model']['createRangeOn'](_0x239e5a));},{'priority':'low'}),_0x41620c['on']('insertRows',(_0x2892f5,_0x453766)=>{const [_0x15bbda,_0x3d0fe5={}]=_0x453766;if(!_0x1cc62b)return;const _0x1087b6=_0x3d0fe5['at']||0x0,_0x130c7d=_0x3d0fe5['rows']||0x1;_0x1cc62b['rowInsertionIndexes']=new Array(_0x130c7d)['fill'](_0x1087b6)['map']((_0x62f9f4,_0x510ee1)=>_0x62f9f4+_0x510ee1);for(const {cell:_0x2ed7e6}of _0x41620c['createTableWalker'](_0x15bbda,{'startRow':_0x1087b6,'endRow':_0x1087b6+_0x130c7d-0x1}))_0x1cc62b['rowInsertionRanges']['push'](_0x50fa88['model']['createRangeOn'](_0x2ed7e6));},{'priority':'low'}),_0x50358d['descriptionFactory']['registerDescriptionCallback'](_0x5eb6ef=>{if(_0x5eb6ef['subType']&&_0x5eb6ef['subType']['startsWith']('tablePaste'))return _0x5eb6ef['previous']?{}:{'type':'insertion','content':o(_0x50fa88['locale'],'*Replace\x20table\x20cells*')};});const _0x50d767=()=>!0x1;for(const _0x100062 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x50358d['_suggestionFactory']['registerCustomCallback']('insertion',_0x100062,'join',_0x50d767),_0x50358d['_suggestionFactory']['registerCustomCallback']('deletion',_0x100062,'join',_0x50d767),_0x50358d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x100062,'join',_0x50d767);_0x50358d['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x50d767),_0x50358d['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4343c2,_0x57bcdd,_0x412e99)=>{const _0x33d4ea=_0x4343c2['map'](_0x714c5a=>_0x714c5a['getContainedElement']())['filter'](_0x29422d=>_0x29422d),_0x15cdb2=new Map(_0x33d4ea['map'](_0x3cab73=>[_0x3cab73,null]));if(_0x1cc62b){for(const {element:_0x5c65bb,attributes:_0x376472}of _0x1cc62b['cells'])_0x376472&&_0x15cdb2['set'](_0x5c65bb,_0x376472);}else{if(_0x412e99&&_0x412e99['markerAttributes'])for(const [_0x2d22cf,_0x2cd3b0]of Object['entries'](_0x412e99['markerAttributes'])){const _0x49fd7f=_0x50fa88['model']['markers']['get'](_0x2d22cf),_0x49fbf4=_0x49fd7f?_0x49fd7f['getRange']()['getContainedElement']():null;_0x49fbf4&&_0x15cdb2['set'](_0x49fbf4,_0x2cd3b0);}}_0x50fa88['model']['change'](_0x14b302=>{for(const [_0x23c1d9,_0x130a1a]of _0x15cdb2)_0x14b302['setAttributes']({...xe,..._0x130a1a},_0x23c1d9);});});const _0x454e08=(_0xff80cd,_0x211cca)=>{_0x50358d['_suggestionFactory']['registerCustomCallback'](_0xff80cd,'tablePaste',_0x211cca,(_0x267cd0,_0x15d181,_0x5b6171)=>{_0x50fa88['model']['change'](_0xee649=>{const _0x56d555=[];for(const _0x525bea of _0x267cd0){const _0x2bd260=_0x525bea['start']['nodeAfter'];_0x2bd260['is']('element','tableCellSuggestion')&&_0x56d555['push'](_0x2bd260);}_0x50358d['_suggestionFactory']['getSuggestionCallback'](_0xff80cd,null,_0x211cca)(_0x267cd0,_0x15d181,_0x5b6171);for(const _0x33485f of _0x56d555)'$graveyard'!=_0x33485f['root']['rootName']&&_0xee649['unwrap'](_0x33485f);});});};_0x454e08('insertion','accept'),_0x454e08('insertion','discard'),_0x454e08('deletion','accept'),_0x454e08('deletion','discard'),_0x50358d['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x5c7646=>{const _0x2761ca=_0x5c7646['map'](_0x1bfe4e=>_0x1bfe4e['getContainedElement']()),_0x2bbfb5=_0x2761ca[0x0]['findAncestor']('table'),{minRow:_0x2ba94f,maxRow:_0x12ec63}=_0x19789b['_getCoordsForCells'](_0x2761ca);_0x41620c['removeRows'](_0x2bbfb5,{'at':_0x2ba94f,'rows':_0x12ec63-_0x2ba94f+0x1});}),_0x50358d['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4590b0=>{const _0x5d7659=_0x4590b0['map'](_0x27c134=>_0x27c134['getContainedElement']()),_0x323f4c=_0x5d7659[0x0]['findAncestor']('table'),{minColumn:_0x101229,maxColumn:_0x2bf6e6}=_0x19789b['_getCoordsForCells'](_0x5d7659);_0x41620c['removeColumns'](_0x323f4c,{'at':_0x101229,'columns':_0x2bf6e6-_0x101229+0x1});});const _0x3ae515=(_0x497613,_0x54ce8d)=>{if(!_0x54ce8d['subType']||!_0x54ce8d['subType']['startsWith']('tablePaste'))return;const _0x432384=_0x54ce8d['attributes']['tablePasteChainId'],_0x7aadf8=_0x50358d['getSuggestions']()['filter'](_0x4a346f=>_0x4a346f['isInContent']&&_0x4a346f['attributes']&&_0x4a346f['attributes']['tablePasteChainId']==_0x432384);_0x7aadf8['length']&&_0x54ce8d['getAllAdjacentSuggestions']()['length']!=_0x7aadf8['length']&&_0x7aadf8['reduce']((_0x2d11a2,_0x5ae3d0)=>(_0x2d11a2['next']=_0x5ae3d0,_0x5ae3d0['previous']=_0x2d11a2,_0x5ae3d0));};function _0x565d5b(_0x3951db,_0x5677dd=!0x0){const {id:_0x144268,authorId:_0xc2dad6}=_0x50358d['_splitMarkerName'](_0x3951db['markerName']),_0x4543ce=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3d8f91=_0x50358d['activeMarkers']['includes'](_0x3951db['markerName']);return _0x3d8f91&&_0x4543ce['push']('ck-suggestion-marker--active'),{'classes':_0x4543ce,'attributes':{'data-suggestion':_0x144268,'data-author-id':_0xc2dad6},'priority':_0x3d8f91&&_0x5677dd?0xbc2:0xbb8};}_0x50358d['on']('suggestionLoaded',_0x3ae515,{'priority':'high'}),_0x50358d['on']('suggestionUnloaded',_0x3ae515,{'priority':'high'}),_0x50fa88['model']['document']['registerPostFixer'](()=>{let _0xb74bba=!0x1;const _0x1c62ff=Array['from'](_0x50fa88['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4d0512,data:_0x1c0d14}of _0x1c62ff){const {group:_0x522dbd,type:_0x39f4c2,id:_0x3446a9}=_0x50358d['_splitMarkerName'](_0x4d0512);if('suggestion'!=_0x522dbd||'deletion'!=_0x39f4c2||_0x1c0d14['oldRange'])continue;if(!_0x50358d['hasSuggestion'](_0x3446a9))continue;const _0xf726a9=_0x50358d['getSuggestion'](_0x3446a9)['getRanges'](),_0x391fb8=_0x50fa88['plugins']['get']('Users')['me'];for(const _0x51df1f of _0x50358d['getSuggestions']()){if(!_0x51df1f['isInContent']||_0x51df1f['author']!=_0x391fb8)continue;if('formatBlock'!=_0x51df1f['type']||'tablePasteCell'!=_0x51df1f['subType'])continue;if(_0x51df1f['getRanges']()['every'](_0x2a95a0=>_0xf726a9['some'](_0x1330d7=>_0x1330d7['containsRange'](_0x2a95a0,!0x0)))){for(const _0x1b88b4 of _0x51df1f['getAllAdjacentSuggestions']())_0x1b88b4['isInContent']&&(_0x1b88b4['discard'](),_0xb74bba=!0x0);}}}return _0xb74bba;}),_0x50fa88['model']['document']['registerPostFixer'](_0xce7b29=>{const _0x23925b=_0x50fa88['commands']['get']('redo');if(!_0x23925b||!_0x23925b['_createdBatches']['has'](_0xce7b29['batch']))return!0x1;let _0x57a80f=!0x1;const _0x1991a5=_0x50fa88['plugins']['get']('Users')['me'],_0x724ab5=_0x50fa88['model']['document']['differ']['getChanges'](),_0x463b2d=Array['from'](_0x50fa88['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x38065b,data:_0x5eedba})=>{const {group:_0x125b5d,subType:_0x44f7b7,authorId:_0x58ead8}=_0x50358d['_splitMarkerName'](_0x38065b);return'suggestion'==_0x125b5d&&'tablePaste'==_0x44f7b7&&_0x58ead8==_0x1991a5['id']&&!_0x5eedba['oldRange'];});for(const _0x47e502 of _0x724ab5){if('insert'!=_0x47e502['type']||'tableCellSuggestion'!=_0x47e502['name']||0x1!=_0x47e502['length'])continue;const _0x465bad=_0xce7b29['createRange'](_0x47e502['position'],_0x47e502['position']['getShiftedBy'](0x1));if(!_0x463b2d['find'](({data:_0x1794bf})=>_0x1794bf['newRange']['isEqual'](_0x465bad))){for(const {name:_0x231cc5,data:_0x2ee9b8}of _0x463b2d)if(_0x465bad['containsRange'](_0x2ee9b8['newRange'])){_0xce7b29['updateMarker'](_0x231cc5,{'range':_0x465bad}),_0x57a80f=!0x0;break;}}}return _0x57a80f;}),_0x50fa88['model']['document']['registerPostFixer'](_0x271443=>{let _0xb7bfb5=!0x1;const _0x1ac1d6=_0x50fa88['plugins']['get']('Users')['me'],_0x5568f6=_0x50358d['getSuggestions']()['filter'](_0x56beba=>_0x56beba['isInContent']&&_0x56beba['author']==_0x1ac1d6),_0x346b3d=new Set(),_0x577df1=new Set();for(const _0x31637f of _0x5568f6)if('tablePaste'==_0x31637f['subType'])for(const _0x325a41 of _0x31637f['getMarkers']()){const _0x99a706=_0x325a41['getRange']()['getContainedElement']();if(_0x99a706){if(_0x99a706['is']('element','tableCellSuggestion')&&Oe(_0x99a706)){_0x31637f['removeMarker'](_0x325a41['name']),_0x346b3d['add'](_0x99a706),_0xb7bfb5=!0x0;const _0xb299a8=_0x99a706['nextSibling'],_0x3e365a=_0x99a706['previousSibling'],_0x478837=_0xb299a8&&_0xb299a8['is']('element','tableCellSuggestion'),_0x180837=_0x3e365a&&_0x3e365a['is']('element','tableCellSuggestion');_0x478837&&!_0x346b3d['has'](_0xb299a8)&&_0x577df1['add'](_0xb299a8),_0x180837&&!_0x346b3d['has'](_0x3e365a)&&_0x577df1['add'](_0x3e365a);}else _0x99a706['is']('element','paragraph')&&_0x99a706['isEmpty']&&(_0x31637f['removeMarker'](_0x325a41['name']),_0xb7bfb5=!0x0);}}else{if('tablePasteCell'==_0x31637f['subType']){if(!_0x31637f['attributes']||!_0x31637f['attributes']['tablePasteChainId'])continue;const _0x43b2a1=_0x31637f['attributes']['markerAttributes'];if(_0x43b2a1&&Object['keys'](_0x43b2a1)['length'])continue;const _0x51df4e=_0x31637f['attributes']['tablePasteChainId'];let _0x51a811=!0x0,_0x21e3cd=!0x0;for(const _0x5034e8 of _0x5568f6)if(_0x5034e8['subType']&&_0x5034e8['subType']['startsWith']('tablePaste')){if(!_0x5034e8['attributes']['tablePasteChainId']){_0x21e3cd=!0x1;break;}if(_0x5034e8['id']!=_0x31637f['id']&&_0x5034e8['attributes']['tablePasteChainId']==_0x51df4e){_0x51a811=!0x1;break;}}_0x21e3cd&&_0x51a811&&(_0x31637f['removeMarkers'](),_0xb7bfb5=!0x0);}}for(const _0x2ef12a of _0x346b3d)_0x271443['remove'](_0x2ef12a);for(const _0x194405 of _0x577df1)_0x271443['unwrap'](_0x194405);return _0xb7bfb5;}),_0x50fa88['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x2dde45=>_0x565d5b(_0x2dde45),'converterPriority':'high'}),_0x50fa88['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x566226,_0x195f34)=>_0x195f34['options']['showSuggestionHighlights']?_0x565d5b(_0x566226,!0x1):null,'converterPriority':'high'});const _0x3e0b7f=_0x50fa88['editing']['view'];this['listenTo'](_0x3e0b7f['document'],'clipboardOutput',(_0x16faaf,_0x1a500f)=>{const _0x273971=[];for(const _0xadd6b of _0x3e0b7f['createRangeIn'](_0x1a500f['content'])['getItems']())_0xadd6b['is']('element','suggestion-td')&&_0x273971['push'](_0xadd6b);_0x3e0b7f['change'](_0x6018e2=>{for(const _0x66e6f8 of _0x273971)_0x6018e2['move'](_0x6018e2['createRangeIn'](_0x66e6f8),_0x6018e2['createPositionBefore'](_0x66e6f8)),_0x6018e2['remove'](_0x66e6f8);});});}}function Oe(_0x2892aa){if(_0x2892aa['isEmpty'])return!0x0;const _0x54f3a4=_0x2892aa['getChild'](0x0);return _0x54f3a4['is']('element','paragraph')&&_0x54f3a4['isEmpty'];}function Ue(_0x7e2171,_0x1b785b={},_0x42d3cb){for(const {isAnchor:_0x116fae,cellHeight:_0x3fba8f,cellWidth:_0x334530}of _0x42d3cb['createTableWalker'](_0x7e2171,{'includeAllSlots':!0x0,..._0x1b785b}))if(!_0x116fae||0x1!=_0x3fba8f||0x1!=_0x334530)return!0x1;return!0x0;}class $t extends _0x952b97{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x5532ec=this['editor']['plugins']['get']('TrackChangesEditing');_0x5532ec['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x5532ec['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x5532ec['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5532ec['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x5532ec['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x5532ec['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x222537,_0x5bb094){const _0x2eb563=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2a28d7=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x3dce18=_0x5bb094['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x532af0=_0x2a28d7['getColumnGroupElement'](_0x3dce18);let _0x3cdd8f=_0x532af0?_0x2a28d7['getTableColumnsWidths'](_0x532af0):null,_0xa398ca=_0x3dce18['getAttribute']('tableWidth')||null;const _0xb8f9fa=_0x5bb094['tableWidth']||_0xa398ca,_0x3289f0=_0x5bb094['columnWidths']||_0x3cdd8f,_0x7d431e=this['editor']['plugins']['get']('Users')['me'];for(const _0x4c40f8 of _0x2eb563['getSuggestions']()){const _0x4ac5c9=_0x4c40f8['getContainedElement']();if('resizeTable'===_0x4c40f8['subType']&&_0x4ac5c9===_0x3dce18){_0x4c40f8['author']!==_0x7d431e&&_0x4c40f8['discard']();const _0x2a4f98=_0x4c40f8['data']['commandParams'];_0xa398ca=_0x2a4f98[0x0]['tableWidth'],_0x3cdd8f=_0x2a4f98[0x0]['columnWidths'];break;}}_0x222537({'table':_0x3dce18,'tableWidth':_0xb8f9fa,'columnWidths':_0x3289f0}),_0x2eb563['markBlockFormat'](_0x3dce18,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0xa398ca,'columnWidths':_0x3cdd8f}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x3172f0){if('formatBlock'!=_0x3172f0['type']&&'formatInline'!=_0x3172f0['type'])return;const {data:_0x292425}=_0x3172f0;if(_0x292425&&'resizeTable'===_0x292425['formatGroupId']){const _0x4c6009='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x4c6009)};}}}class Bt extends _0x952b97{['afterInit'](){const _0x3e9f2c=this['editor'];_0x3e9f2c['plugins']['has']('Template')&&_0x3e9f2c['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x952b97{['afterInit'](){const _0x3fc895=this['editor'];if(!_0x3fc895['commands']['get']('insertTableOfContents'))return;_0x3fc895['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x4df169=_0x3fc895['plugins']['get']('TrackChangesEditing'),_0x1b1711=_0x3fc895['locale'];_0x4df169['descriptionFactory']['registerElementLabel']('tableOfContents',_0x2adef9=>o(_0x1b1711,'ELEMENT_TABLE_OF_CONTENTS',_0x2adef9));}}class Rt extends _0x952b97{['afterInit'](){const _0x59da9e=this['editor'];if(!_0x59da9e['plugins']['has']('Title'))return;const _0x3a24b1=_0x59da9e['plugins']['get']('TrackChangesEditing');_0x3a24b1['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x59da9e['locale'],'ELEMENT_TITLE')),_0x59da9e['model']['document']['registerPostFixer'](_0x49499f=>{let _0xc31814=!0x1;const _0x1f7c7a=Array['from'](_0x59da9e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x117d65,data:_0x1195f8}of _0x1f7c7a){const {group:_0x4224bb}=_0x3a24b1['_splitMarkerName'](_0x117d65);if('suggestion'!==_0x4224bb||!_0x1195f8['newRange'])continue;const _0x2b23be=_0x1195f8['newRange'],_0x1af3b5=_0x2b23be['end']['nodeBefore'];if(!_0x1af3b5||!_0x1af3b5['is']('element','title-content'))continue;if(!_0x2b23be['start']['isTouching'](_0x2b23be['end']))continue;const _0x48647a=_0x59da9e['model']['schema']['getNearestSelectionRange'](_0x2b23be['end'],'forward');if(_0x48647a&&_0x48647a['isCollapsed']){const _0xf2ac7e=_0x49499f['createRange'](_0x2b23be['start'],_0x48647a['start']);_0xf2ac7e['isEqual'](_0x2b23be)||(_0x49499f['updateMarker'](_0x117d65,{'range':_0xf2ac7e}),_0xc31814=!0x0);}_0xc31814||(_0x49499f['removeMarker'](_0x117d65),_0xc31814=!0x0);}return _0xc31814;});}}class Tt extends _0x952b97{['afterInit'](){const _0x2c46a5=this['editor'],_0x5cd4d6=_0x2c46a5['plugins']['get']('TrackChangesEditing');_0x2c46a5['plugins']['has']('Uploadcare')&&(_0x5cd4d6['enableCommand']('uploadcare'),_0x2c46a5['plugins']['has']('UploadcareImageEdit')&&(_0x5cd4d6['enableCommand']('uploadcareImageEdit'),_0x5cd4d6['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x5cd4d6['registerBlockAttribute']('uploadcareImageId'),_0x5cd4d6['descriptionFactory']['registerDescriptionCallback'](_0x2e885c=>{if('attribute'!=_0x2e885c['type'])return;const {data:_0x8a8782}=_0x2e885c;return _0x8a8782&&'uploadcareImageId'==_0x8a8782['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x952b97{['afterInit'](){const _0x314c94=this['editor'],_0x4c4070=_0x314c94['plugins']['get']('TrackChangesEditing');_0x314c94['plugins']['has']('UndoEditing')&&(_0x4c4070['enableCommand']('undo'),_0x4c4070['enableCommand']('redo'));}}class Et extends _0x952b97{static get['requires'](){return[Ct];}['afterInit'](){const _0x17e09f=this['editor'];if(!_0x17e09f['plugins']['has']('TableCaptionEditing'))return;_0x17e09f['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0x952b97{['tableProperties'];['tableCellProperties'];constructor(_0x55cfd9){super(_0x55cfd9),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 _0xca4eb4=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x333a53 of this['tableProperties'])_0xca4eb4['enableCommand'](_0x333a53,(_0xa8b903,_0x4cd50f)=>{const _0x1ba14b=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x333a53,[_0x1ba14b],this['tableProperties'],'tableProperties',_0xa8b903,_0x4cd50f);});_0xca4eb4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0xca4eb4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xca4eb4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0xa63df6,_0x59cf2e)=>this['handleDiscardAction'](this['tableProperties'],_0xa63df6,_0x59cf2e)),_0xca4eb4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x10d587 of this['tableCellProperties'])_0xca4eb4['enableCommand'](_0x10d587,(_0x172204,_0x32b6d1)=>{const _0xb2f83e=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x10d587,_0xb2f83e,this['tableCellProperties'],'tableCellProperties',_0x172204,_0x32b6d1);});_0xca4eb4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0xca4eb4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xca4eb4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x54f8fc,_0x3ee91c)=>this['handleDiscardAction'](this['tableCellProperties'],_0x54f8fc,_0x3ee91c)),_0xca4eb4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0xca4eb4['descriptionFactory']['registerDescriptionCallback'](_0x47bfcf=>this['handleSuggestionDescription'](_0x47bfcf));}['_handlePropertyChange'](_0x123d17,_0x2c48ff,_0x98b990,_0x4c39d1,_0x34e29c,_0x931171){const _0x523809=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x931171['batch'],()=>{for(const _0x32beb8 of _0x2c48ff){if(this['_getSuggestion'](_0x32beb8,_0x4c39d1))_0x34e29c(_0x931171);else{const _0x126f1b={};for(const _0x33b24f of _0x98b990){const _0x326ca5=_0x32beb8['getAttribute'](_0x33b24f);void 0x0!==_0x326ca5&&(_0x126f1b[_0x33b24f]=_0x326ca5);}_0x34e29c(_0x931171),_0x523809['markBlockFormat'](_0x32beb8,{'commandParams':[_0x126f1b]},[],_0x4c39d1);}}});}['handleDiscardAction'](_0x2f1b14,_0x4f7523,_0x2972b5){const _0x1adc6f=_0x4f7523[0x0]['start']['nodeAfter'],_0x1ef8e5=_0x2972b5['commandParams'][0x0];this['editor']['model']['change'](_0x26c569=>{for(const _0x323d41 of _0x2f1b14)void 0x0!==_0x1ef8e5[_0x323d41]?_0x26c569['setAttribute'](_0x323d41,_0x1ef8e5[_0x323d41],_0x1adc6f):_0x26c569['removeAttribute'](_0x323d41,_0x1adc6f);});}['handleSuggestionDescription'](_0x90e327){if(_0x90e327['data'])switch(_0x90e327['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x243fa8,_0x9c5109){const _0x23d91c=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3dd3ee of _0x23d91c['getSuggestions']({'skipNotAttached':!0x0})){const _0x566dd5=_0x3dd3ee['getContainedElement']();if(_0x3dd3ee['subType']===_0x9c5109&&_0x566dd5===_0x243fa8)return _0x3dd3ee;}return null;}}const m='$elementName';class p extends _0x952b97{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x295a1a,_0x508918,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,vt,_t,Ct,Nt,Dt,Et,Mt,$t,Ot,Ut,Bt,Rt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3be5e5){super(_0x3be5e5),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2941a0,_0xf1326,_0xf96cfb,_0x43c3fb)=>{this['_model']['change'](()=>{for(const _0x5e941b of[..._0x43c3fb,..._0xf96cfb])this['_model']['markers']['has'](_0x5e941b)&&_0x3be5e5['editing']['reconvertMarker'](_0x5e941b);});}),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']=_0x3be5e5['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x3be5e5['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3be5e5['config']['get']('trackChanges.trackFormatChanges'),_0x3be5e5['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3be5e5['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x3be5e5,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x8d7e19=this['editor'],_0x5dc2f7=(_0x6f0afc,_0x4667bf)=>{if('attribute'!=_0x6f0afc)return'ck-suggestion-marker-'+_0x6f0afc;const _0x26d2ec=_0x4667bf['split']('|')[0x0];return this['_isBlockAttribute'](_0x26d2ec)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x8d7e19['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x607437=>{const {id:_0x3d7757,authorId:_0x5f5797,type:_0xa6acc,subType:_0x553a54}=this['_splitMarkerName'](_0x607437['markerName']),_0x5e5ee6=['ck-suggestion-marker',_0x5dc2f7(_0xa6acc,_0x553a54)];let _0x2e7803=0xbb8;return this['activeMarkers']['includes'](_0x607437['markerName'])&&(_0x5e5ee6['push']('ck-suggestion-marker--active'),_0x2e7803=0xbc2),'deletion'==_0xa6acc&&(_0x2e7803+=0x5),{'classes':_0x5e5ee6,'attributes':{'data-suggestion':_0x3d7757,'data-author-id':_0x5f5797},'priority':_0x2e7803};}}),_0x8d7e19['conversion']['for']('dataDowncast')['add'](_0x43aa13=>{_0x43aa13['on']('addMarker:suggestion',(_0x40671b,_0x39e05d,_0x207529)=>{if(!_0x207529['options']['showSuggestionHighlights'])return;const _0x41f149=_0x39e05d['item'];if(!_0x41f149)return;const _0x41e78d=_0x207529['mapper']['toViewElement'](_0x41f149);_0x8d7e19['model']['schema']['isObject'](_0x41f149)&&_0x41e78d&&!_0x41e78d['getCustomProperty']('widget')&&_0x41e78d['is']('containerElement')&&_0x59f4f8(_0x41e78d,_0x207529['writer']);},{'priority':'high'});}),_0x8d7e19['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x9f171f,_0xfedb9c)=>{if(!_0xfedb9c['options']['showSuggestionHighlights'])return null;const {type:_0x489b96,subType:_0xc3cc32}=this['_splitMarkerName'](_0x9f171f['markerName']);return{'classes':['ck-suggestion-marker',_0x5dc2f7(_0x489b96,_0xc3cc32)],'priority':0xbb8};}});const _0x230cca=({showActiveMarkers:_0x5cd744=!0x0,isAttributeSuggestion:_0x2a9e46=!0x1}={})=>(_0x1f64e2,_0x211aea,_0x78165d)=>{if(!_0x211aea['item'])return;const {id:_0x2f7629,authorId:_0x26d61a}=this['_splitMarkerName'](_0x211aea['markerName']);if(_0x2a9e46){const _0xeaae55=this['_suggestions']['get'](_0x2f7629),_0x6a836c=this['_getAttributeKey'](_0xeaae55);if(!this['_isBlockAttribute'](_0x6a836c))return;}if(_0x211aea['item']['is']('selection'))return void _0x78165d['consumable']['consume'](_0x211aea['item'],_0x1f64e2['name']);const _0x161094=_0x78165d['mapper']['toViewElement'](_0x211aea['item']);if(_0x211aea['item']['is']('element')&&_0x8d7e19['model']['schema']['isBlock'](_0x211aea['item'])&&!_0x161094['getCustomProperty']('addHighlight')){_0x78165d['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x161094),_0x78165d['writer']['setAttribute']('data-suggestion',_0x2f7629,_0x161094),_0x78165d['writer']['setAttribute']('data-author-id',_0x26d61a,_0x161094),_0x78165d['mapper']['bindElementToMarker'](_0x161094,_0x211aea['markerName']),_0x5cd744&&(this['activeMarkers']['includes'](_0x211aea['markerName'])?_0x78165d['writer']['addClass']('ck-suggestion-marker--active',_0x161094):_0x78165d['writer']['removeClass']('ck-suggestion-marker--active',_0x161094));for(const _0x1785d0 of _0x8d7e19['model']['createRangeIn'](_0x211aea['item'])['getItems']())_0x78165d['consumable']['consume'](_0x1785d0,_0x1f64e2['name']);_0x78165d['consumable']['consume'](_0x211aea['item'],_0x1f64e2['name']);}};_0x8d7e19['conversion']['for']('dataDowncast')['add'](_0x2cf7ea=>{_0x2cf7ea['on']('addMarker:suggestion:formatBlock',(_0x311364,_0xf8913b,_0x56e07b)=>{_0x56e07b['options']['showSuggestionHighlights']&&_0x230cca({'showActiveMarkers':!0x1})(_0x311364,_0xf8913b,_0x56e07b);},{'priority':'highest'});}),_0x8d7e19['conversion']['for']('dataDowncast')['add'](_0x486c82=>{_0x486c82['on']('addMarker:suggestion:attribute',(_0x5bf755,_0x3169d7,_0x1222b2)=>{_0x1222b2['options']['showSuggestionHighlights']&&_0x230cca({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x5bf755,_0x3169d7,_0x1222b2);},{'priority':'highest'});}),_0x8d7e19['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x474fa2,_0x1bc9f0)=>_0x1bc9f0['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x474fa2['substr'](0xb)}}),_0x8d7e19['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x36cce7,{writer:_0x45770e})=>{let _0x4cb960='suggestion:'+_0x36cce7['getAttribute']('suggestion-type')+':'+_0x36cce7['getAttribute']('id');return _0x36cce7['getAttribute']('marker-count')&&(_0x4cb960+=':'+_0x36cce7['getAttribute']('marker-count')),_0x45770e['createElement']('$marker',{'data-name':_0x4cb960});}}),_0x8d7e19['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x8d7e19['conversion']['for']('editingDowncast')['add'](_0x1935ff=>{_0x1935ff['on']('addMarker:suggestion:formatBlock',_0x230cca(),{'priority':'high'});}),_0x8d7e19['conversion']['for']('editingDowncast')['add'](_0x143a4b=>{_0x143a4b['on']('addMarker:suggestion:attribute',_0x230cca({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x8d7e19['conversion']['for']('editingDowncast')['add'](_0x5da2d4=>{_0x5da2d4['on']('removeMarker:suggestion:formatBlock',(_0x90ba3d,_0x58c2b1,_0x2757ea)=>{const _0x48437f=_0x2757ea['mapper']['markerNameToElements'](_0x58c2b1['markerName']);if(_0x48437f){for(const _0x19802c of _0x48437f)_0x19802c['getCustomProperty']('addHighlight')||(_0x2757ea['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x19802c),_0x2757ea['writer']['removeAttribute']('data-suggestion',_0x19802c),_0x2757ea['writer']['removeAttribute']('data-author-id',_0x19802c),_0x2757ea['mapper']['unbindElementFromMarkerName'](_0x19802c,_0x58c2b1['markerName']));}},{'priority':'high'});}),_0x8d7e19['conversion']['for']('editingDowncast')['add'](_0x10e612=>{_0x10e612['on']('removeMarker:suggestion:attribute',(_0x43b960,_0x2cddef,_0x4856d5)=>{const _0x45011f=_0x4856d5['mapper']['markerNameToElements'](_0x2cddef['markerName']);if(!_0x45011f)return;const {id:_0x4cbf2b}=this['_splitMarkerName'](_0x2cddef['markerName']),_0x58fbf9=this['_suggestions']['get'](_0x4cbf2b),_0x37a17c=this['_getAttributeKey'](_0x58fbf9);if(this['_isBlockAttribute'](_0x37a17c)){for(const _0x38b1b8 of _0x45011f)_0x38b1b8['getCustomProperty']('addHighlight')||(_0x4856d5['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x38b1b8),_0x4856d5['writer']['removeAttribute']('data-suggestion',_0x38b1b8),_0x4856d5['writer']['removeAttribute']('data-author-id',_0x38b1b8),_0x4856d5['mapper']['unbindElementFromMarkerName'](_0x38b1b8,_0x2cddef['markerName']));}},{'priority':'high'});}),_0x8d7e19['model']['document']['registerPostFixer'](_0x58cbd0=>{let _0x12e94c=!0x1;const _0x1f2225=Array['from'](_0x8d7e19['model']['document']['differ']['getChangedMarkers']()),_0xd4f132=new Set();for(const {name:_0x44d65e,data:_0x5010e6}of _0x1f2225){const {group:_0x56c4a7,type:_0x1b9ece,subType:_0x3c7500,id:_0x3dd196}=this['_splitMarkerName'](_0x44d65e);if('suggestion'!==_0x56c4a7)continue;const _0x10ae36=this['_suggestions']['get'](_0x3dd196);if(null!=_0x5010e6['newRange']){'formatInline'==_0x1b9ece&&(_0x12e94c=_0x12e94c||Lt(_0x5010e6['newRange'],_0x44d65e,_0x58cbd0,_0x8d7e19['model']['schema']));const _0x48d7fa='attribute'==_0x1b9ece&&this['_isBlockAttribute'](_0x3c7500['split']('|')[0x0]);if(_0x5010e6['newRange']['isCollapsed']||'$graveyard'==_0x5010e6['newRange']['root']['rootName']||'formatBlock'==_0x1b9ece&&!Ht(_0x5010e6['newRange'])||_0x48d7fa&&!Ht(_0x5010e6['newRange'])||'deletion'==_0x1b9ece&&!(!Ft(_0x120dad=_0x5010e6['newRange'])&&!function(_0x5647e7){return _0x5647e7['start']['parent']==_0x5647e7['end']['nodeBefore']&&_0x5647e7['start']['isAtEnd'];}(_0x120dad)))_0x58cbd0['removeMarker'](_0x44d65e),_0x12e94c=!0x0;else{if(!_0x10ae36||!_0x10ae36['isInContent'])continue;if(_0x5010e6['newRange']&&_0x5010e6['oldRange']&&_0x5010e6['newRange']['isEqual'](_0x5010e6['oldRange']))continue;_0xd4f132['add'](_0x10ae36);}}}var _0x120dad;return _0xd4f132['size']>0x0&&(_0x12e94c=!!this['_joinWithAdjacentSuggestions'](_0xd4f132)||_0x12e94c),_0x12e94c;}),_0x8d7e19['model']['document']['registerPostFixer'](_0x1ad3a5=>{let _0x2142dd=!0x1;for(const _0x15354d of _0x8d7e19['model']['document']['differ']['getChanges']())if('insert'==_0x15354d['type'])for(const _0x1fef20 of this['_suggestions']['values']()){if(_0x1fef20['isMultiRange']||!_0x1fef20['isInContent'])continue;const _0x4098f3='formatBlock'==_0x1fef20['type'],_0x4870f2=this['_getAttributeKey'](_0x1fef20),_0x52eb79=_0x4870f2&&this['_isBlockAttribute'](_0x4870f2);if(!_0x4098f3&&!_0x52eb79)continue;const _0x246f44=_0x1fef20['getFirstRange']();if(_0x246f44['start']['parent']!=_0x246f44['end']['parent']&&!_0x246f44['end']['isAtEnd']){const _0x110e7d=_0x8d7e19['model']['createPositionAt'](_0x246f44['start']['nodeAfter'],'end'),_0x3e2942=_0x8d7e19['model']['createRange'](_0x246f44['start'],_0x110e7d);_0x1ad3a5['updateMarker'](_0x1fef20['getFirstMarker'](),{'range':_0x3e2942}),_0x2142dd=!0x0;}}return _0x2142dd;}),_0x8d7e19['model']['document']['registerPostFixer'](_0x4bf0db=>this['_processAttributeChanges'](_0x4bf0db)),_0x8d7e19['model']['document']['registerPostFixer'](_0x4d038b=>!_0x4d038b['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x4d038b)),_0x8d7e19['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x8d7e19['model']['document']['on']('change:data',(_0x5a09b1,_0x1d1465)=>{if(!_0x1d1465['isLocal']||_0x1d1465['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4ad081=_0x8d7e19['model']['document']['differ']['getChanges']();if(0x0==_0x4ad081['length'])return;const _0x39b93c=[],_0x3642c6=_0x4ad081['filter'](_0x3e7b5b=>'attribute'==_0x3e7b5b['type']),_0x2b0c55=_0x4ad081['filter'](_0x5d268e=>'insert'==_0x5d268e['type']&&'$text'!=_0x5d268e['name']);for(const _0x52fd2c of _0x3642c6)this['_isRegisteredAttribute'](_0x52fd2c['attributeKey'])&&_0x39b93c['push']({'key':_0x52fd2c['attributeKey'],'newValue':_0x52fd2c['attributeNewValue'],'oldValue':_0x52fd2c['attributeOldValue'],'range':qt(_0x52fd2c['range'],_0x8d7e19['model'])});for(const _0x5a0f53 of _0x2b0c55){if('rename'!=_0x5a0f53['action']&&'refresh'!=_0x5a0f53['action'])continue;const _0x5f2684=zt(_0x5a0f53['position']['nodeAfter'],_0x8d7e19['model']),_0x5f2187=_0x5a0f53['before'];'rename'==_0x5a0f53['action']&&_0x39b93c['push']({'key':m,'newValue':_0x5a0f53['name'],'oldValue':_0x5f2187['name'],'range':_0x5f2684});for(const [_0x2350f4,_0x4f5fba]of _0x5f2187['attributes']){if(!this['_isRegisteredAttribute'](_0x2350f4))continue;const _0x41858b=_0x5a0f53['attributes']['get'](_0x2350f4);_0x4f5fba!==_0x41858b&&_0x39b93c['push']({'key':_0x2350f4,'newValue':_0x41858b,'oldValue':_0x4f5fba,'range':_0x5f2684});}for(const [_0x5f3531,_0x4d7e12]of _0x5a0f53['attributes'])this['_isRegisteredAttribute'](_0x5f3531)&&(_0x5f2187['attributes']['has'](_0x5f3531)||_0x39b93c['push']({'key':_0x5f3531,'newValue':_0x4d7e12,'oldValue':null,'range':_0x5f2684}));}0x0!=_0x39b93c['length']&&_0x8d7e19['model']['enqueueChange'](_0x1d1465,_0x38d56d=>{const _0xe301ce=_0x414b78();for(const {range:_0x3eaeb2,key:_0x4a001d,oldValue:_0x47fa9c,newValue:_0x43cabf}of _0x39b93c)this['markAttributeChange'](_0x3eaeb2,_0x4a001d,_0x47fa9c,_0x43cabf,{'groupId':_0xe301ce});this['_reduceExistingSuggestions'](_0x38d56d,_0x39b93c);});},{'priority':'lowest'}),_0x8d7e19['model']['markers']['on']('update:suggestion',(_0x515959,_0x5b5a9d,_0x5c5924)=>{if(null==_0x5c5924){const {id:_0xe18f}=this['_splitMarkerName'](_0x5b5a9d['name']),_0x3747a0=this['_suggestions']['get'](_0xe18f);_0x3747a0&&_0x3747a0['addMarkerName'](_0x5b5a9d['name']);}}),_0x8d7e19['model']['document']['on']('change:data',()=>{const _0xe64efa=Array['from'](_0x8d7e19['model']['document']['differ']['getChangedMarkers']())['filter'](_0xa9f691=>'suggestion'===this['_splitMarkerName'](_0xa9f691['name'])['group']);if(0x0===_0xe64efa['length'])return;_0xe64efa['sort']((_0x65067d,_0x52b99e)=>{const _0x4377a5=_0x65067d['data']['oldRange'],_0x959a2f=_0x52b99e['data']['oldRange'];return null===_0x4377a5&&null===_0x959a2f?0x0:null===_0x4377a5&&null!==_0x959a2f?-0x1:null!==_0x4377a5&&null===_0x959a2f?0x1:_0x4377a5['start']['isBefore'](_0x959a2f['start'])?-0x1:0x1;});const _0x2f655d=new Set(),_0x3bdfb1=new Set();for(const {name:_0x21523a,data:_0x322504}of _0xe64efa){const {id:_0x1b66c0}=this['_splitMarkerName'](_0x21523a);if(null===_0x322504['oldRange']){const _0x52de66=this['_handleNewSuggestionMarker'](_0x21523a);_0x3bdfb1['add'](_0x52de66);}else{const _0x31b8d6=this['_suggestions']['get'](_0x1b66c0);null!==_0x322504['newRange']||_0x31b8d6['isInContent']?(_0x2f655d['add'](_0x31b8d6['head']),_0x3bdfb1['add'](_0x31b8d6)):this['_removeSuggestion'](_0x31b8d6);}}_0x3bdfb1['size']>0x0&&this['_refreshSuggestionsChain'](_0x3bdfb1);for(const _0x58c6ec of _0x2f655d)this['fire']('suggestionChanged',_0x58c6ec);}),_0x8d7e19['model']['on']('applyOperation',(_0x469d42,_0xde6e61)=>{const _0x32a0cf=_0xde6e61[0x0];if(!this['_suggestions']['size'])return;if(!_0x32a0cf['isDocumentOperation'])return;if(_0x32a0cf['batch']['isUndo']||!_0x32a0cf['batch']['isLocal'])return;let _0x4925b1,_0x5f0080;switch(_0x32a0cf['type']){case'insert':_0x4925b1=_0x8d7e19['model']['createPositionAt'](_0x32a0cf['position']),_0x5f0080=_0x4925b1['getShiftedBy'](_0x32a0cf['howMany']);break;case'split':_0x4925b1=_0x8d7e19['model']['createPositionAt'](_0x32a0cf['splitPosition']),_0x5f0080=_0x8d7e19['model']['createPositionAt'](_0x32a0cf['moveTargetPosition']);break;case'move':_0x4925b1=_0x8d7e19['model']['createPositionAt'](_0x32a0cf['targetPosition']),_0x5f0080=_0x4925b1['getShiftedBy'](_0x32a0cf['howMany']);break;default:return;}const _0xcd33b3=_0x8d7e19['model']['createRange'](_0x4925b1,_0x5f0080);_0x8d7e19['model']['change'](()=>{for(const {suggestion:_0x5bcec5,meta:_0x40b65d}of this['_findSuggestions'](_0xcd33b3)){if(_0x5bcec5['isMultiRange'])continue;if('formatInline'==_0x5bcec5['type'])continue;const _0x3df31b=this['_getAttributeKey'](_0x5bcec5);if(_0x3df31b&&this['_isBlockAttribute'](_0x3df31b)&&'split'!=_0x32a0cf['type'])continue;const _0x33ed51=_0x5bcec5['data']&&_0x5bcec5['data']['multipleBlocks'];('formatBlock'!=_0x5bcec5['type']||'split'==_0x32a0cf['type']&&!_0x33ed51)&&(_0x40b65d['containsRangeInObject']||'insertion'==_0x5bcec5['type']&&_0x40b65d['isOwn']||_0x5bcec5['getFirstRange']()['containsRange'](_0xcd33b3)&&this['_breakSuggestionMarker'](_0x5bcec5,_0x4925b1,_0x5f0080));}});},{'priority':'lowest'}),_0x8d7e19['model']['on']('deleteContent',(_0x12041d,_0x59392e)=>{const _0x56c7f8=_0x59392e[0x0],_0x38e98a=_0x59392e[0x1];if(_0x38e98a&&_0x38e98a['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x56c7f8['isCollapsed'])return;const _0x6c75bc=_0x8d7e19['model']['schema'],{start:_0x11b71f,end:_0x3e9184}=_0x56c7f8['getFirstRange'](),_0x39917b=_0x11b71f['nodeAfter']&&_0x6c75bc['isLimit'](_0x11b71f['nodeAfter'])?null:_0x6c75bc['getNearestSelectionRange'](_0x11b71f,'forward'),_0x4591ef=_0x3e9184['nodeBefore']&&_0x6c75bc['isLimit'](_0x3e9184['nodeBefore'])?null:_0x6c75bc['getNearestSelectionRange'](_0x3e9184,'backward'),_0x42c30e=_0x8d7e19['model']['createRange'](_0x39917b?_0x39917b['start']:_0x11b71f,_0x4591ef?_0x4591ef['end']:_0x3e9184);_0x8d7e19['model']['change'](_0x5d2e78=>{this['markDeletion'](_0x42c30e);const _0x57f052=_0x8d7e19['model']['schema']['getNearestSelectionRange'](_0x42c30e['start']);_0x56c7f8['is']('documentSelection')?_0x5d2e78['setSelection'](_0x57f052):_0x56c7f8['setTo'](_0x57f052);}),_0x12041d['stop']();},{'priority':_0x254b36['normal']+0xa}),_0x8d7e19['model']['on']('insertContent',(_0xcf7574,_0xb14202)=>{const _0x1fcea0=_0xb14202[_0xb14202['length']-0x1];_0x1fcea0&&_0x1fcea0['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x8d7e19['model']['change'](()=>{let _0x5d5dcb=_0x8d7e19['model']['insertContent'](_0xb14202[0x0],_0xb14202[0x1],_0xb14202[0x2],{'forceDefaultExecution':!0x0});if(!_0x5d5dcb)return;_0xcf7574['return']=_0x5d5dcb['clone']();const _0x75b8e0=_0x5d5dcb['end']['nodeBefore'],_0x200e8f=_0x8d7e19['model']['schema'];_0x75b8e0&&_0x200e8f['isBlock'](_0x75b8e0)&&!_0x200e8f['isObject'](_0x75b8e0)&&(_0x5d5dcb=_0x8d7e19['model']['createRange'](_0x5d5dcb['start'],_0x8d7e19['model']['createPositionAt'](_0x75b8e0,'end'))),this['markInsertion'](_0x5d5dcb);}),_0xcf7574['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3d2857=new O(_0x8d7e19,this['_suggestions']);_0x8d7e19['commands']['add']('acceptSuggestion',_0x3d2857),this['enableCommand']('acceptSuggestion');const _0x2b479d=new R(_0x8d7e19,this['_suggestions']);_0x8d7e19['commands']['add']('discardSuggestion',_0x2b479d),this['enableCommand']('discardSuggestion'),_0x8d7e19['commands']['add']('acceptAllSuggestions',new x(_0x8d7e19,_0x3d2857,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x8d7e19['commands']['add']('discardAllSuggestions',new x(_0x8d7e19,_0x2b479d,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x8d7e19['commands']['add']('acceptSelectedSuggestions',new E(_0x8d7e19,_0x3d2857,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x8d7e19['commands']['add']('discardSelectedSuggestions',new E(_0x8d7e19,_0x2b479d,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x472344=_0x8d7e19['plugins']['get']('CommentsRepository');this['listenTo'](_0x472344,'addComment',(_0x59382c,{threadId:_0x1cecef})=>{const _0x481301=this['_suggestions']['get'](_0x1cecef);_0x481301&&_0x481301['commentThread']&&0x1===_0x481301['commentThread']['length']&&this['_updateSuggestionData'](_0x1cecef,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x472344,'removeComment',(_0x2d6517,{threadId:_0x4b1aa3})=>{const _0x3d46e8=this['_suggestions']['get'](_0x4b1aa3);_0x3d46e8&&_0x3d46e8['commentThread']&&!_0x3d46e8['commentThread']['length']&&this['_updateSuggestionData'](_0x4b1aa3,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x18cbf3){const _0x46b6f8=_0x343834([0x39,0x64,0x42,0x36,0x78,0x77,0x52,0x79,0x32,0x7a,0x4b,0x38,0x75,0x59,0x6b,0x55,0x65,0x54,0x6d,0x57,0x30,0x46,0x35,0x71,0x31,0x4c,0x48,0x6c,0x56,0x70,0x58,0x37,0x43,0x5a,0x67,0x72,0x4d,0x61,0x76,0x6f,0x51,0x4e,0x53,0x49,0x74,0x6e,0x73,0x33,0x34,0x41,0x50,0x68,0x63,0x47,0x66,0x6a,0x44,0x4a,0x4f,0x62,0x45,0x69]),_0x369ec1=0x6fa7b866,_0x49f5d1=0x6fa0e7a6^_0x369ec1,_0x3fed66=window[_0x343834([0x44,0x61,0x74,0x65])][_0x343834([0x6e,0x6f,0x77])](),_0x18c07d=_0x18cbf3[_0x343834([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5cdc02=new window[(_0x343834([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x99dc7c=>{_0x18c07d[_0x343834([0x6f,0x6e,0x63,0x65])](_0x343834([0x72,0x65,0x61,0x64,0x79]),_0x99dc7c);}),_0x4a8257={[_0x343834([0x6b,0x74,0x79])]:_0x343834([0x45,0x43]),[_0x343834([0x75,0x73,0x65])]:_0x343834([0x73,0x69,0x67]),[_0x343834([0x63,0x72,0x76])]:_0x343834([0x50,0x2d,0x32,0x35,0x36]),[_0x343834([0x78])]:_0x343834([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]),[_0x343834([0x79])]:_0x343834([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]),[_0x343834([0x61,0x6c,0x67])]:_0x343834([0x45,0x53,0x32,0x35,0x36])},_0x5d18a8=_0x18c07d[_0x343834([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x343834([0x67,0x65,0x74])](_0x343834([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4e73e2(){let _0x16e0e2,_0xc7e0e7=null,_0x24b9e5=null;try{if(_0x5d18a8==_0x343834([0x47,0x50,0x4c]))return _0x343834([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x16e0e2=_0x2cb623(),!_0x16e0e2)return _0x343834([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x16e0e2[_0x343834([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x24b9e5=_0x471b34(_0x16e0e2[_0x343834([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x16e0e2[_0x343834([0x6a,0x74,0x69])])),await _0x117ec5()?_0x3a4f50()?_0x1c4878()?_0x343834([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x32acee()?(_0x16e0e2[_0x343834([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x343834([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xc7e0e7=_0x3ee948(_0x343834([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x16e0e2[_0x343834([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x343834([0x74,0x72,0x69,0x61,0x6c])&&(_0xc7e0e7=_0x3ee948(_0x343834([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4b86cb()):_0x343834([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x343834([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x343834([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x547cd0){return _0x343834([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1c4878(){const _0x8e7ae2=[_0x343834([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x343834([0x74,0x72,0x69,0x61,0x6c])][_0x343834([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16e0e2[_0x343834([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3fed66/0x3e8:0xe10*_0x49f5d1;return _0x16e0e2[_0x343834([0x65,0x78,0x70])]<_0x8e7ae2;}function _0x3a4f50(){const _0x3bb2cd=_0x16e0e2[_0x343834([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3bb2cd)return!0x1;if(_0x3bb2cd[_0x343834([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x343834([0x2a])))return!0x0;if(_0x3bb2cd[_0x343834([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x343834([0x54,0x43])))return!0x0;if(_0x3bb2cd[_0x343834([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x343834([0x52,0x54,0x43]))){if(_0x22b5ff())return!0x0;if(_0x4c612c()||_0x5ce4c0())return!0x0;}return!0x1;}function _0x32acee(){const _0x1c96f1=_0x16e0e2[_0x343834([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1c96f1||0x0==_0x1c96f1[_0x343834([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2a068b}=new URL(window[_0x343834([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1c96f1[_0x343834([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2a068b))return!0x0;const _0x515032=_0x2a068b[_0x343834([0x73,0x70,0x6c,0x69,0x74])](_0x343834([0x2e]));return _0x1c96f1[_0x343834([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x13d150=>_0x13d150[_0x343834([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x343834([0x2a])))[_0x343834([0x6d,0x61,0x70])](_0x50f76e=>_0x50f76e[_0x343834([0x73,0x70,0x6c,0x69,0x74])](_0x343834([0x2e])))[_0x343834([0x73,0x6f,0x6d,0x65])](_0x9d6624=>_0x515032[_0x343834([0x65,0x76,0x65,0x72,0x79])]((_0x576d0a,_0x44ae9f)=>_0x9d6624[_0x44ae9f]===_0x576d0a||_0x9d6624[_0x44ae9f]===_0x343834([0x2a])));}function _0x4b86cb(){return _0xc7e0e7&&_0x24b9e5?new window[(_0x343834([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4d91e2,_0x48ecc3)=>{_0xc7e0e7[_0x343834([0x74,0x68,0x65,0x6e])](_0x4d91e2,_0x48ecc3),_0x24b9e5[_0x343834([0x74,0x68,0x65,0x6e])](_0x18c26d=>{_0x18c26d!=_0x343834([0x56,0x61,0x6c,0x69,0x64])&&_0x4d91e2(_0x18c26d);},_0x48ecc3);}):_0xc7e0e7||_0x24b9e5||_0x343834([0x56,0x61,0x6c,0x69,0x64]);}}function _0x471b34(_0x4f0d8c,_0x504146){return new window[(_0x343834([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc521a1=>{if(_0x49aa01())return _0xc521a1(_0x343834([0x56,0x61,0x6c,0x69,0x64]));_0x5a95bc(),_0x18c07d[_0x343834([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x343834([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x16279f=!0x1;const _0x54362e=_0x414b78();function _0x4e4a22(_0x225a7f){return!!_0x225a7f&&(typeof _0x225a7f===_0x343834([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x225a7f===_0x343834([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x225a7f[_0x343834([0x74,0x68,0x65,0x6e])]===_0x343834([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x225a7f[_0x343834([0x63,0x61,0x74,0x63,0x68])]===_0x343834([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4eb0fa(_0x148b8b){_0x37ee77(_0x148b8b)[_0x343834([0x74,0x68,0x65,0x6e])](_0x468ee0=>{if(!_0x468ee0||_0x468ee0[_0x343834([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x343834([0x6f,0x6b]))return _0x343834([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3ec2c4(_0x188868(_0x54362e+_0x504146))!=_0x468ee0[_0x343834([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x343834([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x343834([0x56,0x61,0x6c,0x69,0x64]);})[_0x343834([0x74,0x68,0x65,0x6e])](_0x29fc8d=>(_0x98e0fa(),_0x29fc8d),()=>{const _0xd38ff0=_0x4af36a();return null==_0xd38ff0?(_0x98e0fa(),_0x343834([0x56,0x61,0x6c,0x69,0x64])):_0x343834(_0x3fed66-_0xd38ff0>(0x4bab3c66^_0x369ec1)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x343834([0x74,0x68,0x65,0x6e])](_0xc521a1)[_0x343834([0x63,0x61,0x74,0x63,0x68])](()=>{_0xc521a1(_0x343834([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4fbe56=0x6f9156e6^_0x369ec1;function _0x98e0fa(){const _0x58357e=_0x343834([0x6c,0x6c,0x63,0x74,0x2d])+_0x3ec2c4(_0x188868(_0x4f0d8c)),_0x446a16=_0x435051(_0x3ec2c4(window[_0x343834([0x4d,0x61,0x74,0x68])][_0x343834([0x63,0x65,0x69,0x6c])](_0x3fed66/_0x4fbe56)));window[_0x343834([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x343834([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x58357e,_0x446a16);}function _0x4af36a(){const _0x54d530=_0x343834([0x6c,0x6c,0x63,0x74,0x2d])+_0x3ec2c4(_0x188868(_0x4f0d8c)),_0x42d2f7=window[_0x343834([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x343834([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x54d530);return _0x42d2f7?window[_0x343834([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x435051(_0x42d2f7),0x10)*_0x4fbe56:null;}function _0x37ee77(_0x2900ac){return new window[(_0x343834([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5c0b6f,_0x23be40)=>{_0x2900ac[_0x343834([0x74,0x68,0x65,0x6e])](_0x5c0b6f,_0x23be40),window[_0x343834([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x23be40,0x6fa66ca6^_0x369ec1);});}}_0x18c07d[_0x343834([0x6f,0x6e])](_0x343834([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5d525c,_0x168f49)=>{if(_0x168f49[0x0]!=_0x4f0d8c)return _0xc521a1(_0x343834([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x168f49[0x1]={..._0x168f49[0x1],[_0x343834([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x54362e};},{[_0x343834([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x343834([0x68,0x69,0x67,0x68])}),_0x18c07d[_0x343834([0x6f,0x6e])](_0x343834([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x525f84=>{_0x4e4a22(_0x525f84[_0x343834([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x16279f=!0x0,_0x4eb0fa(_0x525f84[_0x343834([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x343834([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x343834([0x6c,0x6f,0x77])}),_0x5cdc02[_0x343834([0x74,0x68,0x65,0x6e])](()=>{_0x16279f||_0xc521a1(_0x343834([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x49aa01(){return _0x18c07d[_0x343834([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x343834([0x76,0x69,0x65,0x77])][_0x343834([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x343834([0x61,0x75,0x74,0x6f]);}function _0x5a95bc(){_0x18c07d[_0x343834([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x343834([0x76,0x69,0x65,0x77])][_0x343834([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x343834([0x61,0x75,0x74,0x6f]);}}function _0x3ee948(_0x48ab89){const _0xc35d2d=[new window[(_0x343834([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x177a2a=>setTimeout(_0x177a2a,0x6fae86aa^_0x369ec1)),_0x5cdc02[_0x343834([0x74,0x68,0x65,0x6e])](()=>new window[(_0x343834([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3575b5=>{let _0x5b93e8=0x0;_0x18c07d[_0x343834([0x6d,0x6f,0x64,0x65,0x6c])][_0x343834([0x6f,0x6e])](_0x343834([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4c6b2a,_0x4e1cd0)=>{_0x4e1cd0[0x0][_0x343834([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5b93e8++,_0x5b93e8==(0x6fa7b99e^_0x369ec1)&&(_0x3575b5(),_0x4c6b2a[_0x343834([0x6f,0x66,0x66])]());});}))];return window[_0x343834([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x343834([0x72,0x61,0x63,0x65])](_0xc35d2d)[_0x343834([0x74,0x68,0x65,0x6e])](()=>_0x48ab89);}async function _0x533881(){await _0x5cdc02,_0x18c07d[_0x343834([0x6d,0x6f,0x64,0x65,0x6c])][_0x343834([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2e9a8a,_0x18c07d[_0x343834([0x6d,0x6f,0x64,0x65,0x6c])][_0x343834([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2e9a8a,_0x18c07d[_0x343834([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x343834([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x22b5ff(){return _0x42c2dc(_0x343834([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x14fecc(_0x343834([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x343834([0x73,0x74,0x61,0x74,0x65])]==_0x343834([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4c612c(){return _0x42c2dc(_0x343834([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 _0x5ce4c0(){return _0x42c2dc(_0x343834([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xf679e5(_0x24ac2e){const _0x379bb2=_0x2a2c4b();_0x18c07d[_0x379bb2]=_0x343834([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x24ac2e,_0x24ac2e!=_0x343834([0x56,0x61,0x6c,0x69,0x64])&&_0x533881();}function _0x2a2c4b(){const _0x3d90b6=window[_0x343834([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x343834([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x343834([0x6e,0x6f,0x77])]())[_0x343834([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x343834([0x2e]),'');let _0x430526=_0x343834([0x64]);for(let _0x5e5e2c=0x0;_0x5e5e2c<_0x3d90b6[_0x343834([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5e5e2c+=0x2){let _0x3ccb31=window[_0x343834([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3d90b6[_0x343834([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5e5e2c,_0x5e5e2c+0x2));_0x3ccb31>=_0x46b6f8[_0x343834([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3ccb31-=_0x46b6f8[_0x343834([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x430526+=_0x46b6f8[_0x3ccb31];}return _0x430526;}function _0x2cb623(){const _0x1ff815=_0x5d18a8[_0x343834([0x73,0x70,0x6c,0x69,0x74])](_0x343834([0x2e]));if(0x3!=_0x1ff815[_0x343834([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x375ace(_0x1ff815[0x1]);function _0x375ace(_0x13dda9){const _0x3580b0=_0x4839c9(_0x13dda9);return _0x3580b0&&_0x39bdce()?_0x3580b0:null;function _0x39bdce(){const _0x47d2f9=_0x3580b0[_0x343834([0x6a,0x74,0x69])],_0xb065a1=window[_0x343834([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x47d2f9[_0x343834([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x47d2f9[_0x343834([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x47b575={..._0x3580b0,[_0x343834([0x6a,0x74,0x69])]:_0x47d2f9[_0x343834([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x47d2f9[_0x343834([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x47b575[_0x343834([0x76,0x63])],_0x188868(_0x47b575)==_0xb065a1;}}}async function _0x117ec5(){let _0x3ef4ca=!0x0;try{const _0x2e7da9=_0x5d18a8[_0x343834([0x73,0x70,0x6c,0x69,0x74])](_0x343834([0x2e])),[_0x31b0a8,_0x29222e,_0x36ab81]=_0x2e7da9;return _0x56698e(_0x31b0a8),await _0x26f22d(_0x31b0a8,_0x29222e,_0x36ab81),_0x3ef4ca;}catch(_0x33ceea){return!0x1;}function _0x56698e(_0x156fcc){const _0x1a3d74=_0x4839c9(_0x156fcc);_0x1a3d74&&_0x1a3d74[_0x343834([0x61,0x6c,0x67])]==_0x343834([0x45,0x53,0x32,0x35,0x36])||(_0x3ef4ca=!0x1);}async function _0x26f22d(_0x16c208,_0x2054c9,_0xbc483e){const _0xcbf187=window[_0x343834([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x343834([0x66,0x72,0x6f,0x6d])](_0x1e9b10(_0xbc483e),_0x1449b7=>_0x1449b7[_0x343834([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xf98932=new window[(_0x343834([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x343834([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x16c208+_0x343834([0x2e])+_0x2054c9),_0x15d3c5=window[_0x343834([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x343834([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x15d3c5)return;const _0x8cd1ce=await _0x15d3c5[_0x343834([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x343834([0x6a,0x77,0x6b]),_0x4a8257,{[_0x343834([0x6e,0x61,0x6d,0x65])]:_0x343834([0x45,0x43,0x44,0x53,0x41]),[_0x343834([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x343834([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x343834([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x15d3c5[_0x343834([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x343834([0x6e,0x61,0x6d,0x65])]:_0x343834([0x45,0x43,0x44,0x53,0x41]),[_0x343834([0x68,0x61,0x73,0x68])]:{[_0x343834([0x6e,0x61,0x6d,0x65])]:_0x343834([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x8cd1ce,_0xcbf187,_0xf98932)||(_0x3ef4ca=!0x1);}}function _0x4839c9(_0x3c9bab){return _0x3c9bab[_0x343834([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x343834([0x65,0x79]))?JSON[_0x343834([0x70,0x61,0x72,0x73,0x65])](_0x1e9b10(_0x3c9bab)):null;}function _0x1e9b10(_0x4948f3){return window[_0x343834([0x61,0x74,0x6f,0x62])](_0x4948f3[_0x343834([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x343834([0x2b]))[_0x343834([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x343834([0x2f])));}function _0x188868(_0x366615){let _0xe00b9e=0x1505;function _0x2a9b7e(_0xff47bd){for(let _0x44e786=0x0;_0x44e786<_0xff47bd[_0x343834([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x44e786++){const _0x3be939=_0xff47bd[_0x343834([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x44e786);_0xe00b9e=(_0xe00b9e<<0x5)+_0xe00b9e+_0x3be939,_0xe00b9e&=_0xe00b9e;}}function _0x875873(_0x2531db){Array[_0x343834([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2531db)?_0x2531db[_0x343834([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x875873):_0x2531db&&typeof _0x2531db==_0x343834([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x343834([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2531db)[_0x343834([0x73,0x6f,0x72,0x74])]()[_0x343834([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x345fd5,_0x277bcb])=>{_0x2a9b7e(_0x345fd5),_0x875873(_0x277bcb);}):_0x2a9b7e(window[_0x343834([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2531db));}return _0x875873(_0x366615),_0xe00b9e>>>0x0;}function _0x3ec2c4(_0x596431){return _0x596431[_0x343834([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x343834([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x343834([0x30]));}function _0x435051(_0x31052d){return _0x31052d[_0x343834([0x73,0x70,0x6c,0x69,0x74])]('')[_0x343834([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x343834([0x6a,0x6f,0x69,0x6e])]('');}function _0x42c2dc(_0x3ed141){return _0x18c07d[_0x343834([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x343834([0x68,0x61,0x73])](_0x3ed141);}function _0x14fecc(_0x2102df){return _0x18c07d[_0x343834([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x343834([0x67,0x65,0x74])](_0x2102df);}function _0x2e9a8a(){}function _0x343834(_0x25aea4){return _0x25aea4['map'](_0x1530c7=>String['fromCharCode'](_0x1530c7))['join']('');}_0xf679e5(await _0x4e73e2());}(this);}set['adapter'](_0x3a09f9){if(this['_adapter'])throw new _0x4f0098('track-changes-adapter-already-set',this);this['_adapter']=_0x3a09f9;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x18ef3c=!0x1,toJSON:_0x399081=!0x1}={}){const _0x3e533c=[];for(const _0x18fa88 of this['_suggestions']['values']())_0x18ef3c&&!_0x18fa88['isInContent']||_0x3e533c['push'](_0x18fa88);return _0x399081?_0x3e533c['map'](_0x51f78a=>_0x51f78a['toJSON']()):_0x3e533c;}['getSuggestion'](_0x1ad7c6){const _0x58ece2=this['_suggestions']['get'](_0x1ad7c6);if(!_0x58ece2)throw new _0x4f0098('track-changes-suggestion-not-found',this);return _0x58ece2;}['hasSuggestion'](_0x24003f){return this['_suggestions']['has'](_0x24003f);}['addSuggestionData'](_0x43d62b){const {authorId:_0x511d0a,id:_0x251801,attributes:_0x5dd0d5}=_0x43d62b,[_0x259560,_0x584c5a]=_0x43d62b['type']['split'](':'),_0x29d7ee=this['_suggestions']['get'](_0x251801)||this['_createSuggestion'](_0x259560,_0x584c5a,_0x251801,_0x511d0a,_0x5dd0d5);if(this['_addThreadToSuggestion'](_0x29d7ee),this['_checkSuggestionCorrectness'](_0x29d7ee,_0x259560,_0x584c5a||null,_0x511d0a),_0x29d7ee['createdAt']=_0x43d62b['createdAt'],_0x29d7ee['_isDataLoaded']=!0x0,_0x5dd0d5&&_0x5dd0d5['@external']){const _0xf24922=_0x5dd0d5['@external'],_0x6d610=this['_getExternalAuthor'](_0xf24922['authorName']);_0x29d7ee['authoredAt']=_0xf24922['createdAt'],_0x29d7ee['author']=_0x6d610,_0x29d7ee['isExternal']=!0x0;}else _0x29d7ee['authoredAt']=_0x43d62b['createdAt'];switch(_0x43d62b['data']&&(_0x29d7ee['data']=_0x43d62b['data']),_0x43d62b['attributes']&&(_0x29d7ee['attributes']=_0x43d62b['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x29d7ee['_saved']=!0x0),this['_suggestionState']['get'](_0x29d7ee)){case'notReady':this['_suggestionState']['set'](_0x29d7ee,'dataReady');break;case'markerReady':_0x29d7ee['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x29d7ee])),this['_refreshSuggestionsChain'](new Set([_0x29d7ee])),this['_suggestionState']['set'](_0x29d7ee,'ready'),this['fire']('suggestionLoaded',_0x29d7ee)):this['_suggestionState']['set'](_0x29d7ee,'removed');}return _0x29d7ee;}['acceptSuggestion'](_0x3df6f8){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x809393 of _0x3df6f8['getAllAdjacentSuggestions']())_0x809393['accept']();});});}['discardSuggestion'](_0x36ade3){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5ea05a of _0x36ade3['getAllAdjacentSuggestions']())_0x5ea05a['discard']();});});}['enableCommand'](_0x591b8e,_0x4c5f5d){const _0x51ab63=this['editor']['commands']['get'](_0x591b8e);if(!_0x51ab63)throw new _0x4f0098('track-changes-command-not-found',this,{'commandName':_0x591b8e});if(this['_enabledCommands']['has'](_0x51ab63))throw new _0x4f0098('track-changes-enable-command-twice',this,{'commandName':_0x591b8e});this['_enabledCommands']['add'](_0x51ab63),_0x4c5f5d&&_0x51ab63['on']('execute',(_0x3006e6,_0x304e0c)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x304e0c['length']>0x0&&_0x304e0c[_0x304e0c['length']-0x1]&&_0x304e0c[_0x304e0c['length']-0x1]['forceDefaultExecution']?_0x304e0c['pop']():(_0x3006e6['return']=_0x4c5f5d((..._0x338357)=>_0x51ab63['execute'](..._0x338357,{'forceDefaultExecution':!0x0}),..._0x304e0c),_0x3006e6['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x452965){let _0x57a5ca,_0x592cf4;const _0x126444=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x57a5ca=_0x452965();}catch(_0x3a7308){_0x592cf4=_0x3a7308;}return _0x126444||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x592cf4&&_0x4f0098['rethrowUnexpectedError'](_0x592cf4,this),_0x57a5ca;}['markInsertion'](_0x515afa,_0x300a64=null,_0x52b757={}){if(_0x515afa['isCollapsed'])return null;const _0x1f60ed=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x1938af,meta:_0x32a042}of this['_findSuggestions'](_0x515afa,'insertion'))if(_0x32a042['isOwn']){if(!_0x32a042['isNextTo']){if(_0x32a042['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x1938af,_0x52b757))continue;return _0x1938af;}if(Qt(_0x1938af,_0x52b757))return _0x1938af;this['_breakSuggestionMarker'](_0x1938af,_0x515afa['start'],_0x515afa['end']);break;}if(_0x300a64==_0x1938af['subType']&&Qt(_0x1938af,_0x52b757)){const _0x19dc50=_0x1938af['getFirstRange']();return _0x19dc50['start']['isEqual'](_0x515afa['end'])?this['_setSuggestionRange'](_0x1938af,this['_model']['createRange'](_0x515afa['start'],_0x19dc50['end'])):this['_setSuggestionRange'](_0x1938af,this['_model']['createRange'](_0x19dc50['start'],_0x515afa['end'])),_0x1938af;}}const _0x5b6a10=_0x414b78(),_0x3d7214=_0x1f60ed['id'],_0x2f8f14=_0x300a64?'insertion:'+_0x300a64:'insertion',_0x3a1937=this['_setSuggestionData']({'id':_0x5b6a10,'type':_0x2f8f14,'createdAt':new Date(),'authorId':_0x3d7214,'attributes':_0x52b757});return this['_addSuggestionMarker'](_0x2f8f14,_0x5b6a10,_0x3d7214,_0x515afa),_0x3a1937;}['markMultiRangeInsertion'](_0x1b4e81,_0x34f4d7='multi',_0x5d12d0={}){const _0x471fe3=this['editor']['plugins']['get']('Users')['me'],_0x55d097=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x34f4d7,'join');for(const _0x10b433 of this['getSuggestions']())if(_0x10b433['author']['id']==_0x471fe3['id']&&'insertion'==_0x10b433['type']&&_0x10b433['subType']==_0x34f4d7&&Qt(_0x10b433,_0x5d12d0)&&(_0x55d097(_0x10b433['getRanges'](),_0x1b4e81)||_0x55d097(_0x1b4e81,_0x10b433['getRanges']()))){for(const _0x36b110 of _0x1b4e81)_0x10b433['addRange'](_0x36b110);return _0x10b433;}for(const {suggestion:_0x2d6da8,meta:_0x141d46}of this['_findSuggestions'](_0x1b4e81,'insertion')){if(!_0x141d46['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x141d46['containsRangeInObject'])continue;if(!Qt(_0x2d6da8,_0x5d12d0))continue;let _0x1b99ef=!0x0;for(const _0x1943a1 of _0x2d6da8['getRanges']())for(const _0x56f777 of _0x1b4e81)if(!_0x1943a1['containsRange'](_0x56f777)){_0x1b99ef=!0x1;break;}if(_0x1b99ef)return _0x2d6da8;}const _0x27e519=_0x414b78(),_0x2b9d43=_0x471fe3['id'],_0x14a93a='insertion:'+_0x34f4d7,_0x1df8b8=this['_setSuggestionData']({'id':_0x27e519,'type':_0x14a93a,'createdAt':new Date(),'authorId':_0x2b9d43,'attributes':_0x5d12d0});for(const _0x2e52ee of _0x1b4e81)this['_addSuggestionMarker'](_0x14a93a,_0x27e519,_0x2b9d43,_0x2e52ee,u['getMultiRangeId']());return _0x1df8b8;}['markInlineFormat'](_0x2d0661,_0x4b7d46,_0x2b46e2=null,_0x14bc41={}){if(_0x2b46e2=_0x2b46e2||Jt(_0x4b7d46),_0x2d0661['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x57e6a5=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2b46e2,'accept');return this['forceDefaultExecution'](()=>_0x57e6a5([_0x2d0661],_0x4b7d46,_0x14bc41)),null;}const _0x2c6f11=this['editor']['plugins']['get']('Users')['me'],_0x4dc8b3=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x5e179c,meta:_0x1c08e2}of this['_findSuggestions'](_0x2d0661,'insertion'))_0x1c08e2['isOwn']&&!_0x1c08e2['isInsideObject']&&_0x4dc8b3['push'](..._0x5e179c['getRanges']());}const _0x487991=function(_0x4d584a,_0x37b4d3){const _0xa67ce4=[];for(const _0x5b932f of _0x37b4d3){const _0x4c63cd=_0x4d584a['getIntersection'](_0x5b932f);_0x4c63cd&&_0xa67ce4['push'](_0x4c63cd);}return _0xa67ce4;}(_0x2d0661,_0x4dc8b3),_0x617ef3=function(_0xdb8d46,_0x2f0829){const _0x1a9579=[_0xdb8d46];for(const _0x81e24d of _0x2f0829){let _0x567235=0x0;for(;_0x567235<_0x1a9579['length'];){const _0x3282e5=_0x1a9579[_0x567235]['getDifference'](_0x81e24d);_0x1a9579['splice'](_0x567235,0x1,..._0x3282e5),_0x567235+=_0x3282e5['length'];}}return _0x1a9579;}(_0x2d0661,_0x4dc8b3);_0x487991['length']&&this['_model']['change'](()=>{for(const _0x53b9bd of _0x487991){const _0x3b58b6=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2b46e2,'accept');this['forceDefaultExecution'](()=>_0x3b58b6([_0x53b9bd],_0x4b7d46,_0x14bc41));}});for(const _0x1d76cc of _0x617ef3){let _0xba7860=null,_0x3da2e5=_0x1d76cc['start'],_0x3da7c6=_0x1d76cc['end'];for(const {suggestion:_0x19959c,meta:_0x12a7a0}of this['_findSuggestions'](_0x1d76cc,'formatInline')){if(!_0x12a7a0['isOwn'])continue;if(_0x19959c['subType']!=_0x2b46e2)continue;if(!Qt(_0x19959c,_0x14bc41))continue;const _0x29cee6=_0x19959c['getFirstRange']();if(_0x29cee6['containsRange'](_0x1d76cc,!0x0))return null;_0x3da2e5=_0x3da2e5['isBefore'](_0x29cee6['start'])?_0x3da2e5:_0x29cee6['start'],_0x3da7c6=_0x3da7c6['isAfter'](_0x29cee6['end'])?_0x3da7c6:_0x29cee6['end'],_0xba7860?_0x29cee6['start']['isBefore'](_0xba7860['getFirstRange']()['start'])?(_0xba7860['removeMarkers'](),_0xba7860=_0x19959c):_0x19959c['removeMarkers']():_0xba7860=_0x19959c;}const _0x45ea87=this['_model']['createRange'](_0x3da2e5,_0x3da7c6);if(_0xba7860)this['_setSuggestionRange'](_0xba7860,_0x45ea87);else{const _0x1e2c6d=_0x414b78(),_0x3fbbf7=_0x2c6f11['id'];this['_setSuggestionData']({'id':_0x1e2c6d,'type':'formatInline:'+_0x2b46e2,'data':_0x4b7d46,'createdAt':new Date(),'authorId':_0x3fbbf7,'attributes':_0x14bc41}),this['_addSuggestionMarker']('formatInline:'+_0x2b46e2,_0x1e2c6d,_0x3fbbf7,_0x45ea87);}}return null;}['markBlockFormat'](_0x5db7fa,_0x6957bf,_0x1d4795=[],_0x44d84d=null,_0x11695f={}){_0x6957bf['formatGroupId']||(_0x6957bf['formatGroupId']=_0x6957bf['commandName']),_0x6957bf['multipleBlocks']=_0x5db7fa['is']('range'),_0x44d84d=_0x44d84d||Jt(_0x6957bf);const _0x347761=_0x1d4795['map'](_0x5493cd=>zt(_0x5493cd,this['_model'])),_0x362847=_0x5db7fa['is']('range')?_0x5db7fa:zt(_0x5db7fa,this['_model']);if('never'===this['_trackFormatChanges']){const _0x1d1cee=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x44d84d,'accept');return this['forceDefaultExecution'](()=>_0x1d1cee([_0x362847],_0x6957bf,_0x11695f)),null;}_0x347761['push'](_0x362847);let _0x35ebf1=!0x0;for(const _0x145453 of _0x347761)if(!this['_rangeIsInLocalUserInsertion'](_0x145453)){_0x35ebf1=!0x1;break;}if(_0x35ebf1&&'always'!==this['_trackFormatChanges']){const _0x86de09=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x44d84d,'accept');return this['forceDefaultExecution'](()=>_0x86de09([_0x362847],_0x6957bf,_0x11695f)),null;}let _0x5176ee=null,_0x460fb0=_0x362847['start'],_0x266eca=_0x362847['end'];for(const {suggestion:_0x303094,meta:_0x522017}of this['_findSuggestions'](_0x362847,'formatBlock')){if(!_0x522017['isOwn'])continue;if(_0x522017['isNextTo']||_0x522017['containsRangeInObject']||_0x522017['isInsideObject'])continue;if(_0x303094['data']['formatGroupId']!=_0x6957bf['formatGroupId'])continue;if(!Qt(_0x303094,_0x11695f))continue;const _0x3dd01a=_0x303094['getFirstRange']();if(_0x303094['subType']==_0x44d84d){if(_0x3dd01a['containsRange'](_0x362847,!0x0))return null;_0x460fb0=_0x460fb0['isBefore'](_0x3dd01a['start'])?_0x460fb0:_0x3dd01a['start'],_0x266eca=_0x266eca['isAfter'](_0x3dd01a['end'])?_0x266eca:_0x3dd01a['end'],_0x5176ee?_0x3dd01a['start']['isBefore'](_0x5176ee['getFirstRange']()['start'])?(_0x5176ee['removeMarkers'](),_0x5176ee=_0x303094):_0x303094['removeMarkers']():_0x5176ee=_0x303094;}else{const _0x3fae0a=_0x362847['getIntersection'](_0x3dd01a);this['_cutOutSuggestionMarker'](_0x303094,_0x3fae0a);}}const _0x3fe60e=this['editor']['plugins']['get']('Users')['me'],_0x356805=_0x414b78(),_0x51a6f6=_0x3fe60e['id'];if(_0x5176ee)return this['_setSuggestionRange'](_0x5176ee,this['_model']['createRange'](_0x460fb0,_0x266eca)),_0x5176ee;{const _0x47b9d8=this['_setSuggestionData']({'id':_0x356805,'type':'formatBlock:'+_0x44d84d,'data':_0x6957bf,'createdAt':new Date(),'authorId':_0x51a6f6,'attributes':_0x11695f});return this['_addSuggestionMarker']('formatBlock:'+_0x44d84d,_0x356805,_0x51a6f6,this['_model']['createRange'](_0x460fb0,_0x266eca)),_0x47b9d8;}}['markMultiRangeBlockFormat'](_0x574a2c,_0x33f10b,_0x1977ad=[],_0x9f9f06=null,_0x2c39c5={}){_0x33f10b['formatGroupId']||(_0x33f10b['formatGroupId']=_0x33f10b['commandName']);const _0x28e99a=_0x574a2c[0x0];_0x33f10b['multipleBlocks']=_0x28e99a['is']('range'),_0x9f9f06=_0x9f9f06||Jt(_0x33f10b);const _0x44684f=_0x1977ad['map'](_0x8b1063=>zt(_0x8b1063,this['_model'])),_0x5e8a64=_0x28e99a['is']('range')?_0x574a2c:_0x574a2c['map'](_0x5a4708=>zt(_0x5a4708,this['_model']));if('never'===this['_trackFormatChanges']){const _0x541517=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x9f9f06,'accept');return this['forceDefaultExecution'](()=>_0x541517(_0x5e8a64,_0x33f10b,_0x2c39c5)),null;}_0x44684f['push'](..._0x5e8a64);let _0x29de45=!0x0;for(const _0x46193d of _0x44684f)if(!this['_rangeIsInLocalUserInsertion'](_0x46193d)){_0x29de45=!0x1;break;}if(_0x29de45&&'always'!==this['_trackFormatChanges']){const _0x5106e5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x9f9f06,'accept');return this['forceDefaultExecution'](()=>_0x5106e5(_0x5e8a64,_0x33f10b,_0x2c39c5)),null;}const _0x31b8c4=this['editor']['plugins']['get']('Users')['me'];for(const _0x431539 of this['getSuggestions']()){if(_0x431539['author']['id']!=_0x31b8c4['id'])continue;if('formatBlock'!=_0x431539['type']||_0x431539['data']['formatGroupId']!=_0x33f10b['formatGroupId'])continue;if(!Qt(_0x431539,_0x2c39c5))continue;const _0x5a6239=_0x431539['subType']==_0x9f9f06;for(let _0x58cd95=0x0;_0x58cd95<_0x5e8a64['length'];_0x58cd95++){const _0x5844f0=_0x5e8a64[_0x58cd95];for(const _0x54481e of _0x431539['getMarkers']()){const _0x283d94=_0x54481e['getRange']();if(_0x5844f0['isEqual'](_0x283d94)){_0x5a6239?(_0x5e8a64['splice'](_0x58cd95,0x1),_0x58cd95--):_0x431539['removeMarker'](_0x54481e['name']);break;}}}}if(0x0==_0x5e8a64['length'])return null;const _0x1925a4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x9f9f06,'join');for(const _0x26a7d9 of this['getSuggestions']())if(_0x26a7d9['author']['id']==_0x31b8c4['id']&&'formatBlock'==_0x26a7d9['type']&&_0x26a7d9['data']['formatGroupId']==_0x33f10b['formatGroupId']&&_0x26a7d9['subType']==_0x9f9f06&&Qt(_0x26a7d9,_0x2c39c5)&&(_0x1925a4(_0x26a7d9['getRanges'](),_0x5e8a64)||_0x1925a4(_0x5e8a64,_0x26a7d9['getRanges']()))){for(const _0x3aeaef of _0x5e8a64)_0x26a7d9['addRange'](_0x3aeaef);return _0x26a7d9;}const _0x4d87c2=_0x414b78(),_0x5cffe0=_0x31b8c4['id'],_0x2b159e='formatBlock:'+_0x9f9f06,_0x3676f0=this['_setSuggestionData']({'id':_0x4d87c2,'type':_0x2b159e,'data':_0x33f10b,'createdAt':new Date(),'authorId':_0x5cffe0,'attributes':_0x2c39c5});for(const _0x21452b of _0x5e8a64)this['_addSuggestionMarker'](_0x2b159e,_0x4d87c2,_0x5cffe0,_0x21452b,u['getMultiRangeId']());return _0x3676f0;}['markDeletion'](_0x526ae6,_0x338a03=null,_0x174f76={}){if(_0x526ae6['isCollapsed'])return null;const _0x303aef=this['editor']['plugins']['get']('Users')['me'],_0x2058dc=new _0x4d5435(_0x526ae6['start'],_0x526ae6['end']);for(const {suggestion:_0x491799,meta:_0x2a7a21}of this['_findSuggestions'](_0x2058dc,'insertion'))if(_0x2a7a21['isOwn']&&!_0x2a7a21['isNextTo']){if(_0x491799['isMultiRange']){const _0x4d66bd=_0x491799['getRanges']()['filter'](_0x32bd41=>'$graveyard'!=_0x32bd41['root']['rootName']);_0x4d66bd['every'](_0x461654=>_0x2058dc['containsRange'](_0x461654,!0x0))&&_0x491799['discard']();if(_0x4d66bd['some'](_0x56c02b=>_0x56c02b['containsRange'](_0x2058dc,!0x0))){const _0xfd64f5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x338a03,'accept');return this['forceDefaultExecution'](()=>_0xfd64f5([_0x2058dc],null,_0x174f76)),null;}}else{const _0x32120e=_0x2058dc['getIntersection'](_0x491799['getFirstRange']());null!==_0x32120e&&_0x491799['_onDiscard']([_0x32120e],null,_0x174f76);}}if(_0x2058dc['detach'](),_0x2058dc['isCollapsed']||'$graveyard'==_0x2058dc['root']['rootName'])return null;let _0x496965=null,_0x86e01f=_0x2058dc['start'],_0x39891a=_0x2058dc['end'];const _0x5ed383=this['_findSuggestions'](_0x2058dc,'deletion');for(const {suggestion:_0x4136e0,meta:_0x753007}of _0x5ed383){const _0x24d627=this['_model']['createRange'](_0x86e01f,_0x39891a);if(_0x753007['isOwn']&&(this['_mergeNestedSuggestions']||!_0x753007['containsRangeInObject']&&!_0x753007['isInsideObject'])){if(_0x4136e0['isMultiRange']){if(!Qt(_0x4136e0,_0x174f76))continue;let _0x2fd125=!0x0;for(const _0x2bd872 of _0x4136e0['getRanges']()){if(_0x2bd872['containsRange'](_0x24d627,!0x0))return _0x4136e0;_0x24d627['containsRange'](_0x2bd872)||(_0x2fd125=!0x1);}_0x2fd125&&_0x4136e0['discard']();}else{const _0x428e17=_0x4136e0['getFirstRange']();if(_0x428e17['containsRange'](_0x24d627,!0x0))return _0x4136e0;if(!Qt(_0x4136e0,_0x174f76)){_0x24d627['containsRange'](_0x428e17)?_0x4136e0['removeMarkers']():_0x428e17['containsPosition'](_0x86e01f)?_0x86e01f=_0x428e17['end']:_0x428e17['containsPosition'](_0x39891a)&&(_0x39891a=_0x428e17['start']);continue;}_0x86e01f=_0x86e01f['isBefore'](_0x428e17['start'])?_0x86e01f:_0x428e17['start'],_0x39891a=_0x39891a['isAfter'](_0x428e17['end'])?_0x39891a:_0x428e17['end'],_0x174f76=Object['assign']({},_0x4136e0['attributes']),_0x496965?_0x428e17['start']['isBefore'](_0x496965['getFirstRange']()['start'])?(_0x496965['removeMarkers'](),_0x496965=_0x4136e0):_0x4136e0['removeMarkers']():_0x496965=_0x4136e0;}}}if(_0x496965)return this['_setSuggestionRange'](_0x496965,this['_model']['createRange'](_0x86e01f,_0x39891a)),_0x496965;{const _0x16eb6d=_0x414b78(),_0x37d1c8=this['_model']['createRange'](_0x86e01f,_0x39891a),_0x37e9e5=_0x303aef['id'],_0x3b285b=_0x338a03?'deletion:'+_0x338a03:'deletion',_0xb1440f=this['_setSuggestionData']({'id':_0x16eb6d,'type':_0x3b285b,'createdAt':new Date(),'authorId':_0x37e9e5,'attributes':_0x174f76});return this['_addSuggestionMarker'](_0x3b285b,_0x16eb6d,_0x37e9e5,_0x37d1c8),_0xb1440f;}}['markMultiRangeDeletion'](_0x2c15f7,_0x2f0ec9='multi',_0x1b3a88={}){const _0x813285=this['editor']['plugins']['get']('Users')['me'],_0x3801b5=_0x2c15f7['map'](_0x851bb5=>new _0x4d5435(_0x851bb5['start'],_0x851bb5['end'])),_0x25860f=new Set();for(const {suggestion:_0x5f3631,meta:_0x2e9baf}of this['_findSuggestions'](_0x3801b5,'insertion'))_0x2e9baf['isOwn']&&!_0x2e9baf['isNextTo']&&_0x25860f['add'](_0x5f3631);for(const _0x3ac7ca of _0x25860f)if(_0x3ac7ca['isMultiRange']){const _0x47a438=_0x3ac7ca['getRanges']();(!_0x3ac7ca['attributes']||!_0x3ac7ca['attributes']['skipNestingCheck'])&&(_0x47a438['every'](_0x2a34c1=>_0x3801b5['some'](_0x1862d1=>_0x1862d1['containsRange'](_0x2a34c1,!0x0)))&&_0x3ac7ca['discard']());if(_0x3801b5['every'](_0x410bd0=>_0x47a438['some'](_0xe18477=>_0xe18477['containsRange'](_0x410bd0,!0x0)))){const _0x58c8c7=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2f0ec9,'accept');return this['forceDefaultExecution'](()=>_0x58c8c7(_0x2c15f7,null,_0x1b3a88)),null;}}else{const _0x20f5be=_0x3ac7ca['getFirstRange']();_0x3801b5['some'](_0x5d2504=>_0x5d2504['containsRange'](_0x20f5be,!0x0))&&_0x3ac7ca['discard']();if(_0x3801b5['every'](_0x1ab470=>_0x20f5be['containsRange'](_0x1ab470,!0x0))){const _0x55c6a6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2f0ec9,'accept');return this['forceDefaultExecution'](()=>_0x55c6a6(_0x3801b5,null,_0x1b3a88)),null;}}const _0x53d1e1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2f0ec9,'join');let _0x821138=null;for(const _0x48ed60 of this['getSuggestions']())if(_0x48ed60['author']['id']==_0x813285['id']&&_0x48ed60['isInContent']&&'deletion'==_0x48ed60['type']&&_0x48ed60['subType']==_0x2f0ec9&&Qt(_0x48ed60,_0x1b3a88)&&(_0x53d1e1(_0x48ed60['getRanges'](),_0x3801b5)||_0x53d1e1(_0x3801b5,_0x48ed60['getRanges']()))){if(_0x821138){if(_0x48ed60['commentThread']&&_0x48ed60['commentThread']['length'])continue;for(const _0x10ccd0 of _0x48ed60['getRanges']())_0x821138['isIntersectingWithRange'](_0x10ccd0)||_0x821138['addRange'](_0x10ccd0);_0x48ed60['removeMarkers']();}else{_0x821138=_0x48ed60;for(const _0x125d7c of _0x3801b5)_0x48ed60['isIntersectingWithRange'](_0x125d7c)||_0x48ed60['addRange'](_0x125d7c);}}if(_0x821138)return _0x821138;_0x25860f['clear']();for(const {suggestion:_0x10974a,meta:_0x278052}of this['_findSuggestions'](_0x3801b5,'deletion'))_0x278052['isOwn']&&(this['_mergeNestedSuggestions']||!_0x278052['containsRangeInObject']&&!_0x278052['isInsideObject'])&&Qt(_0x10974a,_0x1b3a88)&&_0x25860f['add'](_0x10974a);for(const _0x2cdd85 of _0x25860f){const _0x33005d=_0x2cdd85['getRanges']();if(!_0x1b3a88||!_0x1b3a88['skipNestingCheck']){if(_0x3801b5['every'](_0xf9d38b=>_0x33005d['some'](_0x25f1ea=>_0x25f1ea['containsRange'](_0xf9d38b,!0x0))))return _0x2cdd85;}(!_0x2cdd85['attributes']||!_0x2cdd85['attributes']['skipNestingCheck'])&&(_0x33005d['every'](_0x3fcac0=>_0x3801b5['some'](_0x421454=>_0x421454['containsRange'](_0x3fcac0,!0x0)))&&_0x2cdd85['discard']());}const _0x2319e1=_0x414b78(),_0x503b63=_0x813285['id'],_0x4d8915='deletion:'+_0x2f0ec9,_0x10bf4e=this['_setSuggestionData']({'id':_0x2319e1,'type':_0x4d8915,'createdAt':new Date(),'authorId':_0x503b63,'attributes':_0x1b3a88});for(const _0x15d1ab of _0x3801b5)_0x15d1ab['detach'](),_0x15d1ab['isCollapsed']||'$graveyard'==_0x15d1ab['root']['rootName']||this['_addSuggestionMarker'](_0x4d8915,_0x2319e1,_0x503b63,_0x15d1ab,u['getMultiRangeId']());return _0x10bf4e;}['markAttributeChange'](_0x12dce5,_0x415ea0,_0x2fb2a2,_0x329947,_0x2c431b){if(_0x12dce5['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x49f628=this['editor']['plugins']['get']('Users')['me']['id'],_0x11808f=Array['from'](this['_suggestions']['values']())['filter'](_0x6ad9ac=>'attribute'==_0x6ad9ac['type']&&_0x6ad9ac['data']['key']==_0x415ea0&&_0x6ad9ac['isIntersectingWithRange'](_0x12dce5));if('default'===this['_trackFormatChanges']){const _0x312190=this['_findSuggestions'](_0x12dce5,'insertion')['filter'](({meta:_0x266bbb})=>_0x266bbb['isOwn']&&!_0x266bbb['isInsideObject']&&!_0x266bbb['isNextTo'])['map'](({suggestion:_0x4fec3b})=>_0x4fec3b);_0x11808f['unshift'](..._0x312190);}const _0x269209=new Map([[_0x12dce5,_0x2fb2a2]]);for(const _0x6a6f28 of _0x11808f){const _0x5663d8='attribute'==_0x6a6f28['type']?_0x6a6f28['data']['oldValue']:void 0x0,_0xf69163=_0x6a6f28['getFirstRange'](),_0x218d92=Array['from'](_0x269209['keys']())['find'](_0x5d87fd=>_0x5d87fd['isIntersecting'](_0xf69163));if(!_0x218d92)continue;const _0x2cf286=_0x218d92['getDifference'](_0xf69163);this['_isBlockAttribute'](_0x415ea0)&&'insertion'==_0x6a6f28['type']&&0x0!=_0x2cf286['length']||(_0x269209['delete'](_0x218d92),_0x2cf286['forEach'](_0x5e2390=>{_0x269209['set'](_0x5e2390,_0x2fb2a2);}),'insertion'!=_0x6a6f28['type']&&_0x5663d8!=_0x329947&&_0x269209['set'](_0x218d92['getIntersection'](_0xf69163),_0x5663d8));}const _0x4037ae=[];for(const [_0x7fae8b,_0x27dcdd]of _0x269209){const _0x4aab0b=_0x414b78(),_0x46f733={'key':_0x415ea0,'oldValue':_0x27dcdd,'newValue':_0x329947};_0x415ea0['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':_0x415ea0});const _0x2a705c=('attribute:'+(_0x415ea0+'|'+Jt({'newValue':_0x329947})))['substring'](0x0,0x3c),_0x2bc3f4=this['_setSuggestionData']({'id':_0x4aab0b,'type':_0x2a705c,'data':_0x46f733,'createdAt':new Date(),'authorId':_0x49f628,'attributes':_0x2c431b});_0x4037ae['push'](_0x2bc3f4),this['_addSuggestionMarker'](_0x2a705c,_0x4aab0b,_0x49f628,_0x7fae8b);}return _0x4037ae;}['enableDefaultAttributesIntegration'](_0x55fc55){this['enableCommand'](_0x55fc55,(_0x1de2b1,..._0x3a4358)=>{this['_recordAttributeChanges'](()=>{_0x1de2b1(..._0x3a4358);});});}['registerBlockAttribute'](_0x26efeb){this['_blockAttributeKeys']['add'](_0x26efeb);}['registerInlineAttribute'](_0x18ed0c){this['_inlineAttributeKeys']['add'](_0x18ed0c);}['_getAttributeKey'](_0x1b2cb4){return'attribute'==_0x1b2cb4['type']?_0x1b2cb4['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x421f19,_0x276310){const _0x4860bf=_0x421f19['getFirstMarker']();this['_model']['change'](_0x1f48d8=>{_0x1f48d8['updateMarker'](_0x4860bf,{'range':_0x276310});});}['_addThreadToSuggestion'](_0x8487a9){const _0x5bfe73=_0x8487a9['id'],_0x42084b=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x5bfe73)||this['_commentsRepository']['addCommentThread']({'channelId':_0x42084b,'threadId':_0x5bfe73,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1ec29e=this['_commentsRepository']['getCommentThread'](_0x5bfe73);_0x1ec29e['unbind']('isRemovable'),_0x1ec29e['isRemovable']=!0x1,_0x8487a9['commentThread']=_0x1ec29e;}['_checkSuggestionCorrectness'](_0x184821,_0x553ecf,_0x1fc942,_0x1f8c70){if(_0x184821['type']!=_0x553ecf||_0x184821['subType']!=_0x1fc942||_0x184821['creator']['id']!=_0x1f8c70)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4f0098('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3bfe6b,_0x384acb){const _0x2319c9=_0x3bfe6b['getFirstRange']();if(_0x384acb['isEqual'](_0x2319c9))_0x3bfe6b['removeMarkers']();else{if(_0x2319c9['containsRange'](_0x384acb)){const _0x1af72e=this['_model']['createPositionAt'](_0x384acb['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3bfe6b,this['_model']['createRange'](_0x2319c9['start'],_0x1af72e));const _0x324aa3=_0x414b78(),_0x384a05=_0x3bfe6b['creator']['id'],_0x2e2bdf=_0x3bfe6b['type']+':'+_0x3bfe6b['subType'];this['_setSuggestionData']({'id':_0x324aa3,'type':_0x2e2bdf,'createdAt':new Date(),'authorId':_0x384a05,'data':_0x3bfe6b['data'],'attributes':_0x3bfe6b['attributes']});const _0x427025=this['_model']['createPositionAt'](_0x384acb['end']['parent'],'after'),_0x4f46fa=this['_model']['createRange'](_0x427025,_0x2319c9['end']);this['_addSuggestionMarker'](_0x2e2bdf,_0x324aa3,_0x384a05,_0x4f46fa);}else{if(_0x2319c9['containsPosition'](_0x384acb['start'])){const _0x12611e=this['_model']['createPositionAt'](_0x384acb['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3bfe6b,this['_model']['createRange'](_0x2319c9['start'],_0x12611e));}else{const _0x3d08bf=this['_model']['createPositionAt'](_0x384acb['end']['parent'],'after');this['_setSuggestionRange'](_0x3bfe6b,this['_model']['createRange'](_0x3d08bf,_0x2319c9['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x4ba2e7){for(const {suggestion:_0x38527e,meta:_0x394cbf}of this['_findSuggestions'](_0x4ba2e7,'insertion')){if(!_0x394cbf['isOwn'])continue;const _0x1b8579=_0x38527e['getRanges']();for(const _0x333294 of _0x1b8579)if(!_0x4ba2e7['getDifference'](_0x333294)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4f5fdf){const _0x314f41=this['editor']['plugins']['get']('Users')['getUser'](_0x4f5fdf);if(!_0x314f41)throw new _0x4f0098('track-changes-user-not-found',this);return _0x314f41;}['_getExternalAuthor'](_0x59134e){const _0x34c908=this['editor']['plugins']['get']('Users'),_0x32423a=_0x2fd678('external:'+_0x59134e),_0x36b313=_0x34c908['getUser'](_0x32423a);return _0x36b313||_0x34c908['addUser']({'id':_0x32423a,'name':_0x59134e});}['_createSuggestion'](_0x3bd66c,_0x18a6e5,_0x5b9b90,_0x20d07e,_0x52c537){const _0x3b0bb8=this['_getAuthorFromId'](_0x20d07e),_0x1e8492=this['_suggestionFactory']['buildSuggestion'](_0x3bd66c,_0x18a6e5,_0x5b9b90,_0x3b0bb8,_0x52c537,_0x2a2593=>{this['_updateSuggestionData'](_0x5b9b90,{'attributes':_0x2a2593});const _0x1f512f=this['getSuggestion'](_0x5b9b90);this['_joinWithAdjacentSuggestions'](new Set([_0x1f512f])),this['_refreshSuggestionsChain'](new Set([_0x1f512f]));});return this['listenTo'](_0x1e8492,'accept',()=>{this['_updateSuggestionData'](_0x5b9b90,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1e8492,'discard',()=>{this['_updateSuggestionData'](_0x5b9b90,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x5b9b90,_0x1e8492),this['_suggestionState']['set'](_0x1e8492,'notReady'),_0x1e8492;}['_splitMarkerName'](_0x23be43){const _0x17a31d=_0x23be43['split'](':');return{'group':_0x17a31d[0x0],'type':_0x17a31d[0x1],'subType':_0x17a31d['length']>=0x5?_0x17a31d[0x2]:null,'id':_0x17a31d['length']<0x5?_0x17a31d[0x2]:_0x17a31d[0x3],'authorId':_0x17a31d['length']<0x5?_0x17a31d[0x3]:_0x17a31d[0x4],'markerCount':0x6==_0x17a31d['length']?_0x17a31d[0x5]:null};}['_breakSuggestionMarker'](_0x15e877,_0x3547a4,_0x2f611e){const _0x493cb8=_0x15e877['getFirstRange'](),_0x368db7=_0x493cb8['start'],_0x3ba6e5=_0x493cb8['end'];this['_setSuggestionRange'](_0x15e877,this['_model']['createRange'](_0x368db7,_0x3547a4));const _0x186c94=_0x414b78(),_0xf0e8c3=_0x15e877['creator']['id'],_0x330419=_0x15e877['type']+(_0x15e877['subType']?':'+_0x15e877['subType']:'');this['_setSuggestionData']({'id':_0x186c94,'type':_0x330419,'createdAt':new Date(),'authorId':_0xf0e8c3,'originalSuggestionId':_0x15e877['id'],'attributes':_0x15e877['attributes'],'data':_0x15e877['data']});const _0x1ff5c4=this['_getAttributeKey'](_0x15e877);('formatBlock'==_0x15e877['type']||_0x1ff5c4&&this['_isBlockAttribute'](_0x1ff5c4))&&(_0x2f611e=this['_model']['createPositionBefore'](_0x2f611e['parent'])),this['_addSuggestionMarker'](_0x330419,_0x186c94,_0xf0e8c3,this['_model']['createRange'](_0x2f611e,_0x3ba6e5));}['_findSuggestions'](_0x237430,_0x5141d7=null){const _0x4e7f8b=[],_0x213e62=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x237430)||(_0x237430=[_0x237430]);for(const _0x528548 of this['getSuggestions']()){if(!_0x528548['isInContent'])continue;if(_0x5141d7&&_0x528548['type']!=_0x5141d7)continue;let _0x2ac4dd=!0x1;for(const _0xa853ec of _0x528548['getRanges']()){for(const _0x36af4a of _0x237430){const _0x18ef14=_0x36af4a['start']['isEqual'](_0xa853ec['end'])||_0x36af4a['end']['isEqual'](_0xa853ec['start']);if(_0x18ef14||_0x36af4a['getIntersection'](_0xa853ec)){const _0x487804=_0x36af4a['containsRange'](_0xa853ec)&&Gt(this['_model']['schema'],_0xa853ec['start'],_0x36af4a),_0x46dd66=_0xa853ec['containsRange'](_0x36af4a)&&Gt(this['_model']['schema'],_0x36af4a['start'],_0xa853ec);_0x4e7f8b['push']({'suggestion':_0x528548,'meta':{'isOwn':_0x213e62==_0x528548['author'],'isNextTo':_0x18ef14,'isInsideObject':_0x487804,'containsRangeInObject':_0x46dd66}}),_0x2ac4dd=!0x0;break;}}if(_0x2ac4dd)break;}}return _0x4e7f8b;}['_addSuggestionMarker'](_0x352371,_0x2a4c6f,_0x28e649,_0x54c351,_0x27bfac){this['_model']['change'](_0x475ca3=>{let _0x22c2f1='suggestion:'+_0x352371+':'+_0x2a4c6f+':'+_0x28e649;_0x27bfac&&(_0x22c2f1=_0x22c2f1+':'+_0x27bfac),_0x475ca3['addMarker'](_0x22c2f1,{'range':_0x54c351,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0xb518d){const _0x36534f=_0xb518d['previous'],_0x2fa83b=_0xb518d['next'];_0xb518d['previous']=null,_0xb518d['next']=null,null!=_0x36534f&&_0x36534f['next']==_0xb518d&&(_0x36534f['next']=_0x2fa83b),null!=_0x2fa83b&&_0x2fa83b['previous']==_0xb518d&&(_0x2fa83b['previous']=_0x36534f),'ready'==this['_suggestionState']['get'](_0xb518d)&&(this['_suggestionState']['set'](_0xb518d,'removed'),this['fire']('suggestionUnloaded',_0xb518d,_0x36534f,_0x2fa83b));}['_setSuggestionData'](_0x13ab90){const _0x360587=_0x13ab90['id'],_0x532337=this['addSuggestionData'](_0x13ab90);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x40cde8=this['editor']['plugins']['get']('PendingActions'),_0x31692e=_0x532337['hasComments'],_0x512194=_0x532337['subType']?_0x532337['type']+':'+_0x532337['subType']:_0x532337['type'],_0x214036=this['editor']['locale'],_0x1596c3=_0x40cde8['add'](o(_0x214036,'PENDING_ACTION_SUGGESTION')),_0x322d85={'id':_0x360587,'type':_0x512194,'hasComments':_0x31692e,'data':_0x13ab90['data']||null,'originalSuggestionId':_0x13ab90['originalSuggestionId']||null,'attributes':_0x532337['attributes']};this['_adapter']['addSuggestion'](_0x322d85)['then'](_0x73b354=>{_0x532337['_saved']=!0x0,_0x40cde8['remove'](_0x1596c3),_0x73b354&&_0x73b354['createdAt']&&(this['_suggestions']['get'](_0x360587)['createdAt']=_0x73b354['createdAt']);})['catch'](_0x4861a9=>{throw _0x47c69a('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x532337['discard']();}),_0x532337['stopListening'](),this['_suggestions']['delete'](_0x532337['id']),this['_suggestionState']['delete'](_0x532337),_0x4861a9;});}return _0x532337;}['_isBlockAttribute'](_0x1e0a0c){return this['_blockAttributeKeys']['has'](_0x1e0a0c);}['_updateSuggestionData'](_0x298137,_0x138c09){const _0x5c57c9=this['editor']['plugins']['get']('PendingActions'),_0x26f47e=this['getSuggestion'](_0x298137);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x26f47e['_saved']){const _0x188243=_0x5c57c9['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x298137,_0x138c09)['then'](()=>{_0x5c57c9['remove'](_0x188243);});}else _0x26f47e['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x298137,_0x138c09);});}}['_getSuggestionData'](_0x1c91fd){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4f0098('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1c91fd);}['_handleNewSuggestionMarker'](_0x1dd1e2){const {id:_0x213a30,type:_0x1b266b,subType:_0x1018be,authorId:_0x472ede}=this['_splitMarkerName'](_0x1dd1e2),_0x1f8ce1=this['_suggestions']['get'](_0x213a30)||this['_createSuggestion'](_0x1b266b,_0x1018be,_0x213a30,_0x472ede,{});switch(this['_checkSuggestionCorrectness'](_0x1f8ce1,_0x1b266b,_0x1018be,_0x472ede),this['_suggestionState']['get'](_0x1f8ce1)){case'notReady':this['_getSuggestionData'](_0x213a30)['then'](_0x518298=>{let _0xdf632e=Promise['resolve']();_0x518298['hasComments']&&(_0xdf632e=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x213a30})),_0xdf632e['then'](()=>{this['addSuggestionData'](_0x518298)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1f8ce1,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x213a30,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1f8ce1,'ready'),this['fire']('suggestionLoaded',_0x1f8ce1);break;case'ready':this['fire']('suggestionChanged',_0x1f8ce1);}return _0x1f8ce1['addMarkerName'](_0x1dd1e2),_0x1f8ce1;}['_refreshSuggestionsChain'](_0x1fff23){const _0x5f1d65=Array['from'](_0x1fff23),_0x50b24e=_0x5f1d65['filter'](_0x4c789c=>'attribute'==_0x4c789c['type']);this['_refreshAttributeSuggestionsChain'](_0x50b24e);const _0x532265=_0x5f1d65['filter'](_0x306427=>!_0x306427['isMultiRange']&&'attribute'!=_0x306427['type']),_0x469ae8=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2a0e19=>!_0x2a0e19['isMultiRange']&&'attribute'!=_0x2a0e19['type']),_0x5141ce=_0x469ae8['filter'](_0x2d3bb9=>!_0x1fff23['has'](_0x2d3bb9)),_0x417b4e=new Map(_0x469ae8['map'](_0x53e0db=>[_0x53e0db,this['_suggestionFactory']['getSuggestionCallback'](_0x53e0db['type'],_0x53e0db['subType'],'chain')])),_0x2b46cf=new Map(_0x469ae8['map'](_0x5e61e0=>[_0x5e61e0,_0x5e61e0['getFirstRange']()])),_0xa2c5fc=new Set(),_0x5e3be2=new Set();for(let _0x277238=0x0;_0x277238<_0x532265['length'];_0x277238++)_0x17f6bd(_0x532265[_0x277238],_0x532265,_0x277238+0x1);for(let _0x1a0b2a=0x0;_0x1a0b2a<_0x532265['length'];_0x1a0b2a++)_0x17f6bd(_0x532265[_0x1a0b2a],_0x5141ce,0x0);const _0xf23690=new Set();for(let _0x3e123c=0x0;_0x3e123c<_0x532265['length'];_0x3e123c++){const _0x16d55b=_0x532265[_0x3e123c];!_0x5e3be2['has'](_0x16d55b)&&_0x16d55b['previous']&&(_0xf23690['add'](_0x16d55b['previous']),_0x16d55b['previous']['next']===_0x16d55b&&(_0x16d55b['previous']['next']=null),_0x16d55b['previous']=null),!_0xa2c5fc['has'](_0x16d55b)&&_0x16d55b['next']&&(_0xf23690['add'](_0x16d55b['next']),_0x16d55b['next']['previous']===_0x16d55b&&(_0x16d55b['next']['previous']=null),_0x16d55b['next']=null);}function _0x17f6bd(_0x3d97d0,_0x268c01,_0x194dbf){for(let _0x120bf2=_0x194dbf;_0x120bf2<_0x268c01['length'];_0x120bf2++){const _0x49781b=_0x445ff3(_0x3d97d0,_0x268c01[_0x120bf2]);_0x49781b&&(_0x49781b[0x0]['next']=_0x49781b[0x1],_0x49781b[0x1]['previous']=_0x49781b[0x0],_0xa2c5fc['add'](_0x49781b[0x0]),_0x5e3be2['add'](_0x49781b[0x1]));}}function _0x445ff3(_0x240b5f,_0x5ba4f7){if(_0x240b5f['author']['id']!==_0x5ba4f7['author']['id'])return null;const _0x36c75e=_0x417b4e['get'](_0x240b5f)(_0x240b5f,_0x5ba4f7,_0x2b46cf['get'](_0x240b5f),_0x2b46cf['get'](_0x5ba4f7));if(!_0x36c75e)return null;return _0x417b4e['get'](_0x5ba4f7)(_0x240b5f,_0x5ba4f7,_0x2b46cf['get'](_0x240b5f),_0x2b46cf['get'](_0x5ba4f7))?_0x36c75e[0x1]['commentThread']&&_0x36c75e[0x1]['commentThread']['length']?null:_0x36c75e:null;}_0xf23690['size']&&this['_refreshSuggestionsChain'](_0xf23690);}['_refreshAttributeSuggestionsChain'](_0x14d2e1){if(0x0==_0x14d2e1['length'])return;const _0x33361a=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x340592=>'attribute'==_0x340592['type']&&_0x340592['_isDataLoaded']),_0x18ecdd=[],_0x1d7fbb=new Map();for(const _0x331ae6 of _0x33361a){const _0x3ba27e=_0x2fd678(_0x331ae6['attributes']);_0x1d7fbb['has'](_0x3ba27e)||(_0x1d7fbb['set'](_0x3ba27e,_0x18ecdd['length']),_0x18ecdd['push']([]));const _0x44a92d=_0x1d7fbb['get'](_0x3ba27e);_0x18ecdd[_0x44a92d]['push'](_0x331ae6);}!(function(){_0x18ecdd['sort']((_0xe99d9c,_0x3f3c0c)=>{const _0x1cfc62=_0xe99d9c[0x0]['createdAt'],_0x515a0b=_0x3f3c0c[0x0]['createdAt'];return _0x1cfc62==_0x515a0b?_0xe99d9c[0x0]['attributes']['groupId']<_0x3f3c0c[0x0]['attributes']['groupId']?-0x1:0x1:_0x1cfc62<_0x515a0b?-0x1:0x1;});for(const _0x2203c1 of _0x18ecdd)_0x2203c1['sort']((_0x4800a1,_0x59c432)=>_0x4800a1['id']<_0x59c432['id']?-0x1:0x1);}());for(let _0xbd6832=0x0;_0xbd6832<_0x18ecdd['length'];_0xbd6832++){if(0x0==_0x18ecdd[_0xbd6832]['length'])continue;const _0x48cc0b=[];for(let _0x89c6b7=_0xbd6832+0x1;_0x89c6b7<_0x18ecdd['length'];_0x89c6b7++)0x0!=_0x18ecdd[_0x89c6b7]['length']&&_0xbd8edf(_0x18ecdd[_0xbd6832],_0x18ecdd[_0x89c6b7])&&_0x48cc0b['push'](_0x89c6b7);for(const _0x1efa84 of _0x48cc0b)_0x18ecdd[_0xbd6832]=_0x18ecdd[_0xbd6832]['concat'](_0x18ecdd[_0x1efa84]),_0x18ecdd[_0x1efa84]=[];}for(const _0x33083e of _0x18ecdd)for(let _0x5e7b11=0x0;_0x5e7b11<_0x33083e['length'];_0x5e7b11++){const _0x1b93e3=_0x33083e[_0x5e7b11+0x1]||null;_0x33083e[_0x5e7b11]['next']!==_0x1b93e3&&(_0x33083e[_0x5e7b11]['next']=_0x1b93e3);}for(const _0x3c2d67 of _0x18ecdd)for(let _0x4eccc5=0x0;_0x4eccc5<_0x3c2d67['length'];_0x4eccc5++){const _0x584893=_0x3c2d67[_0x4eccc5-0x1]||null;_0x3c2d67[_0x4eccc5]['previous']!==_0x584893&&(_0x3c2d67[_0x4eccc5]['previous']=_0x584893);}function _0xbd8edf(_0x3c8ea9,_0x57ab73){if(_0x3c8ea9[0x0]['attributes']['groupId']!==_0x57ab73[0x0]['attributes']['groupId']&&_0x3c8ea9[0x0]['author']!==_0x57ab73[0x0]['author'])return!0x1;if(!function(_0xe95b87,_0x57f4a3){if(!_0xe95b87['hasComments']&&!_0x57f4a3['hasComments'])return!0x0;if(_0xe95b87['hasComments']&&_0x57f4a3['hasComments'])return!0x1;if(_0xe95b87['hasComments']&&_0x57f4a3['createdAt']<_0xe95b87['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x57f4a3['hasComments']&&_0xe95b87['createdAt']<_0x57f4a3['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x3c8ea9[0x0],_0x57ab73[0x0]))return!0x1;const _0x32f633=Vt(_0x3c8ea9[0x0]['attributes'],'groupId'),_0xd30b40=Vt(_0x57ab73[0x0]['attributes'],'groupId');if(!_0x664dce(_0x32f633,_0xd30b40))return!0x1;return!!_0x3c8ea9['every'](_0x226035=>_0x57ab73['some'](_0x2c9715=>_0x226035['getFirstRange']()['isEqual'](_0x2c9715['getFirstRange']())))&&_0x57ab73['every'](_0x3304d4=>_0x3c8ea9['some'](_0x31c499=>_0x3304d4['getFirstRange']()['isEqual'](_0x31c499['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x26d286){const _0x885515=Array['from'](_0x26d286),_0x4b195d=this['getSuggestions']({'skipNotAttached':!0x0}),_0x54f12f=_0x4b195d['filter'](_0x38d903=>!_0x26d286['has'](_0x38d903)),_0x2ac4b2=new Map(_0x885515['map'](_0x36e8f5=>[_0x36e8f5,this['_suggestionFactory']['getSuggestionCallback'](_0x36e8f5['type'],_0x36e8f5['subType'],'join')])),_0x33f5eb=new Map(_0x4b195d['map'](_0x22d6bf=>[_0x22d6bf,_0x22d6bf['getRanges']()]));for(let _0x1a00a6=0x0;_0x1a00a6<_0x885515['length'];_0x1a00a6++){if(_0x4c7d2b(this,_0x885515[_0x1a00a6],_0x885515,_0x1a00a6+0x1))return!0x0;}for(let _0x2500ba=0x0;_0x2500ba<_0x885515['length'];_0x2500ba++){if(_0x4c7d2b(this,_0x885515[_0x2500ba],_0x54f12f,0x0))return!0x0;}return!0x1;function _0x4c7d2b(_0x1f935f,_0x5b6468,_0x36116d,_0x1715e8){for(let _0x537faf=_0x1715e8;_0x537faf<_0x36116d['length'];_0x537faf++){const _0x3cc798=_0x36116d[_0x537faf];if(_0x3cc798['type']!==_0x5b6468['type']||_0x3cc798['author']['id']!==_0x5b6468['author']['id']||_0x3cc798['subType']!==_0x5b6468['subType'])continue;if(!Wt(_0x5b6468,_0x3cc798))continue;if('attribute'==_0x5b6468['type']&&_0x5b6468['data']['oldValue']!=_0x3cc798['data']['oldValue'])continue;if('attribute'==_0x5b6468['type']&&_0x1f935f['_isBlockAttribute'](_0x5b6468['data']['key']))continue;if('formatBlock'==_0x5b6468['type']){const _0x311b15=_0x1f935f['editor']['model'],_0x24db98=_0x5b6468['getContainedElement']();if(_0x24db98&&(_0x311b15['schema']['isObject'](_0x24db98)||_0x311b15['schema']['isLimit'](_0x24db98)))continue;}const _0x1e858a=_0x2ac4b2['get'](_0x5b6468),_0x3f2a15=_0x33f5eb['get'](_0x5b6468),_0x5ee3b1=_0x33f5eb['get'](_0x3cc798),_0x3728a1=_0x5b6468['commentThread']&&_0x5b6468['commentThread']['length'],_0xb352c1=_0x3cc798['commentThread']&&_0x3cc798['commentThread']['length'];if(!_0x3728a1&&_0x1e858a(_0x5ee3b1,_0x3f2a15))return _0x1f935f['_joinSuggestions'](_0x3cc798,_0x5b6468),_0x33f5eb['delete'](_0x5b6468),!0x0;if(!_0xb352c1&&_0x1e858a(_0x3f2a15,_0x5ee3b1))return _0x1f935f['_joinSuggestions'](_0x5b6468,_0x3cc798),_0x33f5eb['delete'](_0x3cc798),!0x0;}return!0x1;}}['_joinSuggestions'](_0x45e202,_0x4ee973){if(_0x45e202['isMultiRange']){for(const _0x43793c of _0x4ee973['getRanges']())_0x45e202['addRange'](_0x43793c);}else{const _0x3ea798=_0x4ee973['getFirstRange']()['end'];this['_setSuggestionRange'](_0x45e202,this['_model']['createRange'](_0x45e202['getFirstRange']()['start'],_0x3ea798));}_0x4ee973['removeMarkers']();}['_getMarkerAnnouncementText'](_0x14afac,_0x2b05cc,_0x573a09){const _0x2bacf3=_0x14afac['startsWith']('format')||_0x14afac['startsWith']('attribute')?'FORMATTING':_0x14afac['toUpperCase']();return o(this['editor']['locale'],_0x2b05cc+'_'+_0x2bacf3+'_SUGGESTION_ANNOUNCEMENT',_0x573a09);}['_initAriaMarkerChangeAnnouncements'](){const _0x45ee8e=this['editor'];if(!_0x45ee8e['ui'])return;const {ariaLiveAnnouncer:_0x3a2018}=_0x45ee8e['ui'];_0x181ff2(this['_model'],({left:_0x17417f,entered:_0x207ef0})=>{for(const _0x2abb04 of _0x17417f){const {group:_0x25f91e,type:_0x1ea425}=this['_splitMarkerName'](_0x2abb04['name']);if('suggestion'===_0x25f91e){_0x3a2018['announce'](this['_getMarkerAnnouncementText'](_0x1ea425,'LEAVE'));break;}}for(const _0x174b3f of _0x207ef0){const {group:_0x19ca40,type:_0x13628b}=this['_splitMarkerName'](_0x174b3f['name']);if('suggestion'===_0x19ca40){_0x3a2018['announce'](this['_getMarkerAnnouncementText'](_0x13628b,'ENTER',_0x248181(_0x1776cf)));break;}}});}['_processAttributeChanges'](_0x317278){if(this['_recordAttributeSuggestions'])return!0x1;const _0x542264=this['editor'],_0x2d8015=_0x542264['model']['document']['differ']['getChanges']();if(0x0==_0x2d8015['length'])return!0x1;const _0x5e8cba=[],_0x25bfce=_0x2d8015['filter'](_0xb90e22=>'attribute'==_0xb90e22['type']),_0x4a3a31=_0x2d8015['filter'](_0x5c0103=>'insert'==_0x5c0103['type']&&'$text'!=_0x5c0103['name']),_0x16be37=_0x2d8015['filter'](_0x24173e=>'remove'==_0x24173e['type']&&'$text'!=_0x24173e['name']);for(const _0x36cc6e of _0x25bfce)_0x5e8cba['push']({'key':_0x36cc6e['attributeKey'],'newValue':_0x36cc6e['attributeNewValue'],'oldValue':_0x36cc6e['attributeOldValue'],'range':qt(_0x36cc6e['range'],_0x542264['model'])});for(const _0x26fe0b of _0x4a3a31){const _0x3e59b5=_0x16be37['find'](_0x22a68c=>_0x22a68c['position']['isEqual'](_0x26fe0b['position']));_0x3e59b5&&_0x5e8cba['push']({'key':m,'newValue':_0x26fe0b['name'],'oldValue':_0x3e59b5['name'],'range':_0x542264['model']['createRangeOn'](_0x26fe0b['position']['nodeAfter'])});}return 0x0!=_0x5e8cba['length']&&this['_reduceExistingSuggestions'](_0x317278,_0x5e8cba);}['_processAttributeSuggestions'](_0x6d2ae8){let _0xbe0f02=!0x1;const _0x201305=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x564ebf=>_0x564ebf['data']['newRange']&&_0x564ebf['name']['startsWith']('suggestion:attribute:'));for(const _0x289c8f of _0x201305){const {subType:_0x1107b7,id:_0x129dfe}=this['_splitMarkerName'](_0x289c8f['name']),_0x5b6ca3=_0x1107b7['split']('|')[0x0];for(const _0x3b4575 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x3b4575['id']!=_0x129dfe&&'attribute'==_0x3b4575['type']&&_0x3b4575['data']&&_0x3b4575['data']['key']==_0x5b6ca3&&_0x3b4575['getFirstRange']()['isIntersecting'](_0x289c8f['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x3b4575,_0x289c8f['data']['newRange'],_0x6d2ae8),_0xbe0f02=!0x0);}return _0xbe0f02;}['_recordAttributeChanges'](_0x492fe8){this['_recordAttributeSuggestions']=!0x0,_0x492fe8();}['_isRegisteredAttribute'](_0x586717){const _0x5b80af=this['_isBlockAttribute'](_0x586717),_0x155a75=this['_inlineAttributeKeys']['has'](_0x586717);return _0x5b80af||_0x155a75;}['_reduceExistingSuggestions'](_0x2f9e1a,_0x4ffd06){if(0x0==_0x4ffd06['length'])return!0x1;let _0x187b16=!0x1;for(const _0x1e19ab of _0x4ffd06){const _0x2949a0=this['_findSuggestions'](_0x1e19ab['range'],'attribute')['filter'](_0xc511c5=>!_0xc511c5['meta']['isNextTo'])['map'](_0xbf00b1=>_0xbf00b1['suggestion']),_0x33ef2b=_0x2fd678({'newValue':_0x1e19ab['newValue']});_0x2949a0['filter'](_0x111574=>{const [_0x39a5a7,_0x16ca00]=_0x111574['subType']['split']('|');return _0x39a5a7==_0x1e19ab['key']&&_0x16ca00!=_0x33ef2b;})['forEach'](_0x14277a=>{this['_reduceSuggestionAttributeRange'](_0x14277a,_0x1e19ab['range'],_0x2f9e1a),_0x187b16=!0x0;});}return _0x187b16;}['_reduceSuggestionAttributeRange'](_0x1b8738,_0x475bbc,_0x2b8833){const _0x6e168d=_0x1b8738['getFirstRange']()['getDifference'](_0x475bbc);0x0!==_0x6e168d['length']?0x1!==_0x6e168d['length']?this['_breakSuggestionMarker'](_0x1b8738,_0x475bbc['start'],_0x475bbc['end']):this['_setSuggestionRange'](_0x1b8738,_0x6e168d[0x0]):_0x2b8833['removeMarker'](_0x1b8738['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5a7549){this['_editor']=_0x5a7549,this['_model']=_0x5a7549['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2ae177,_0x2f705b,_0x4cab05,_0x58f267,_0x340e69,_0x2de9ad){return new u(this['_model'],{'type':_0x2ae177,'subType':_0x2f705b,'id':_0x4cab05,'author':_0x58f267,'creator':_0x58f267,'attributes':_0x340e69,'onAttributesChange':_0x2de9ad,'onAccept':(..._0x973de9)=>this['getSuggestionCallback'](_0x2ae177,_0x2f705b,'accept')(..._0x973de9),'onDiscard':(..._0xfa42b6)=>this['getSuggestionCallback'](_0x2ae177,_0x2f705b,'discard')(..._0xfa42b6)});}['registerCustomCallback'](_0x3bbb13,_0x29fc21,_0x18be9f,_0x47fb06){const _0x2ad753=_0x3bbb13+':'+_0x29fc21+':'+_0x18be9f;this['_customCallbacks']['set'](_0x2ad753,_0x47fb06);}['getSuggestionCallback'](_0x5688d2,_0x7e5a41,_0x5b1e6c){const _0x3ec294=_0x5688d2+':'+_0x7e5a41+':'+_0x5b1e6c;return this['_customCallbacks']['get'](_0x3ec294)||this['_defaultCallbacks']['get'](_0x5688d2+':'+_0x5b1e6c);}['_registerDefaultCallbacks'](){const _0x2abb7a=()=>!0x1,_0x49f1f4=_0x140951=>{_0x140951['sort']((_0x4ea0a7,_0x4f2e9c)=>_0x4ea0a7['start']['isBefore'](_0x4f2e9c['start'])?0x1:-0x1),this['_model']['change'](_0x39a0f1=>{for(const _0x42a518 of _0x140951){let _0x4b7356;_0x4b7356=_0x42a518['end']['isAtEnd']&&_0x42a518['end']['parent']==_0x42a518['start']['nodeAfter']?_0x39a0f1['createSelection'](_0x42a518['start']['nodeAfter'],'on'):_0x39a0f1['createSelection'](_0x42a518),this['_model']['deleteContent'](_0x4b7356,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x565ec4=(_0x2f99f5,_0x2bcb36)=>{_0x2bcb36&&this['_model']['change'](_0x4dc547=>{const {commandName:_0x1bf1cc,commandParams:_0xa14729=[]}=_0x2bcb36,_0x3e83bc=_0x2f99f5['map'](_0x579c9f=>(Ft(_0x579c9f)&&(_0x579c9f=this['_model']['createRange'](_0x579c9f['end'])),_0x579c9f))['filter'](_0x424a8d=>'$graveyard'!==_0x424a8d['root']['rootName']);if(_0x3e83bc['length']<0x1)return;const _0x96b46f=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x2c7e77=>_0x4d5435['fromRange'](_0x2c7e77));_0x4dc547['setSelection'](_0x3e83bc);for(const _0x27a742 of this['_editor']['commands']['commands']())_0x27a742['refresh']();_0xa14729['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1bf1cc,..._0xa14729);const _0x12b5a0=_0x96b46f['filter'](_0x396944=>'$graveyard'!=_0x396944['root']['rootName']);_0x12b5a0['length']>0x0&&_0x4dc547['setSelection'](_0x12b5a0);for(const _0x1384db of _0x96b46f)_0x1384db['detach']();});},_0x5ec8c2=(_0x23eaa2,_0x409292)=>0x1==_0x23eaa2['length']&&0x1==_0x409292['length']&&_0x23eaa2[0x0]['end']['isEqual'](_0x409292[0x0]['start']),_0x3ef967=(_0x4af7ae,_0x5b1898,_0x55a247,_0x150c12)=>Kt(_0x4af7ae,_0x5b1898,_0x55a247,_0x150c12)?[_0x4af7ae,_0x5b1898]:Kt(_0x5b1898,_0x4af7ae,_0x150c12,_0x55a247)?[_0x5b1898,_0x4af7ae]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2abb7a),this['_defaultCallbacks']['set']('insertion:discard',_0x49f1f4),this['_defaultCallbacks']['set']('insertion:join',_0x5ec8c2),this['_defaultCallbacks']['set']('insertion:chain',_0x3ef967),this['_defaultCallbacks']['set']('deletion:accept',_0x49f1f4),this['_defaultCallbacks']['set']('deletion:discard',_0x2abb7a),this['_defaultCallbacks']['set']('deletion:join',_0x5ec8c2),this['_defaultCallbacks']['set']('deletion:chain',_0x3ef967),this['_defaultCallbacks']['set']('formatInline:accept',_0x565ec4),this['_defaultCallbacks']['set']('formatInline:discard',_0x2abb7a),this['_defaultCallbacks']['set']('formatInline:join',_0x5ec8c2),this['_defaultCallbacks']['set']('formatInline:chain',_0x2abb7a),this['_defaultCallbacks']['set']('formatBlock:accept',_0x565ec4),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2abb7a),this['_defaultCallbacks']['set']('formatBlock:join',_0x5ec8c2),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2abb7a),this['_defaultCallbacks']['set']('attribute:accept',_0x2abb7a),this['_defaultCallbacks']['set']('attribute:discard',(_0x120e39,_0x541432)=>{if(!_0x541432)return;const _0xfabf40=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x1ab99a=>{if(_0x541432['key']==m)for(const _0x2f292a of _0x120e39){const _0x4eecd5=_0x2f292a['start']['nodeAfter'],_0x2e0d3e=_0x541432['oldValue'];_0x1ab99a['rename'](_0x4eecd5,_0x2e0d3e);}else{if(_0xfabf40['_isBlockAttribute'](_0x541432['key'])){for(const _0x5eb468 of _0x120e39)void 0x0!==_0x541432['oldValue']?_0x1ab99a['setAttribute'](_0x541432['key'],_0x541432['oldValue'],_0x5eb468['start']['nodeAfter']):_0x1ab99a['removeAttribute'](_0x541432['key'],_0x5eb468['start']['nodeAfter']);}else{for(const _0x3036fa of _0x120e39)_0x541432['oldValue']?_0x1ab99a['setAttribute'](_0x541432['key'],_0x541432['oldValue'],_0x3036fa):_0x1ab99a['removeAttribute'](_0x541432['key'],_0x3036fa);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x5ec8c2);}}function Gt(_0x452912,_0x3203e0,_0x5812a4){for(const _0x14d8c9 of _0x3203e0['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x14d8c9['root']==_0x14d8c9)return!0x1;if(!_0x5812a4['containsItem'](_0x14d8c9))return!0x1;if(_0x452912['isObject'](_0x14d8c9)||_0x452912['isLimit'](_0x14d8c9))return!0x0;}return!0x1;}function Ft(_0x3aa0e7){return _0x3aa0e7['end']['parent']==_0x3aa0e7['start']['nodeAfter']&&_0x3aa0e7['end']['isAtStart'];}function Lt(_0x5c8e46,_0x276946,_0x4ace76,_0x5d6fbf){const _0x450bf4=_0x574df2=>!_0x574df2['item']['is']('$textProxy')&&!_0x5d6fbf['isObject'](_0x574df2['item']),_0x46f300=_0x5c8e46['start']['getLastMatchingPosition'](_0x450bf4),_0x12e756=_0x5c8e46['end']['getLastMatchingPosition'](_0x450bf4,{'direction':'backward'});return(!_0x5c8e46['start']['isEqual'](_0x46f300)||!_0x5c8e46['end']['isEqual'](_0x12e756))&&(_0x46f300['isBefore'](_0x12e756)?_0x4ace76['updateMarker'](_0x276946,{'range':_0x4ace76['createRange'](_0x46f300,_0x12e756)}):_0x4ace76['removeMarker'](_0x276946),!0x0);}function Jt(_0x14c229){return _0x2fd678(_0x14c229);}function Ht(_0x15f21b){const _0x55fd0b=_0x15f21b['start']['nodeAfter'];return _0x55fd0b&&_0x55fd0b['is']('element');}function qt(_0x14929c,_0x43c3c7){return null==_0x14929c['end']['nodeBefore']&&_0x14929c['end']['parent']==_0x14929c['start']['nodeAfter']?zt(_0x14929c['start']['nodeAfter'],_0x43c3c7):_0x14929c;}function zt(_0x47dffc,_0x39bbf1){const _0x54af99=_0x39bbf1['schema']['isObject'](_0x47dffc)||_0x39bbf1['schema']['isSelectable'](_0x47dffc);return _0x39bbf1['createRange'](_0x39bbf1['createPositionAt'](_0x47dffc,'before'),_0x54af99?_0x39bbf1['createPositionAfter'](_0x47dffc):_0x39bbf1['createPositionAt'](_0x47dffc,'end'));}function Kt(_0x3d00d6,_0x1a14ec,_0x3efe2d,_0x466f04){return!!Wt(_0x3d00d6,_0x1a14ec)&&_0x3efe2d['end']['isEqual'](_0x466f04['start']);}function Wt(_0x264d6b,_0x520686){if(!_0x264d6b['_isDataLoaded']||!_0x520686['_isDataLoaded'])return!0x1;const _0x3be7d0=new Set(Object['keys'](_0x264d6b['attributes'])),_0x2ffcef=new Set(Object['keys'](_0x520686['attributes']));if(_0x3be7d0['delete']('groupId'),_0x2ffcef['delete']('groupId'),0x0==_0x3be7d0['size']&&0x0==_0x2ffcef['size'])return!0x0;if(_0x3be7d0['size']!=_0x2ffcef['size'])return!0x1;const _0x397dcf={..._0x264d6b['attributes']},_0x3a153f={..._0x520686['attributes']};return delete _0x397dcf['groupId'],delete _0x3a153f['groupId'],JSON['stringify'](_0x397dcf)==JSON['stringify'](_0x3a153f);}function Qt(_0x301a86,_0x2695e4){const _0x3fec9b=Xt(_0x301a86['attributes']),_0x2f897c=Xt(_0x2695e4);if(!_0x301a86['_isDataLoaded'])return!0x1;for(const _0x2b24ea of Object['keys'](_0x2f897c))if(!_0x664dce(_0x3fec9b[_0x2b24ea],_0x2f897c[_0x2b24ea]))return!0x1;return!0x0;}function Xt(_0xb837cb){const _0x1e0d85=Object['assign']({},_0xb837cb);return delete _0x1e0d85['skipNestingCheck'],delete _0x1e0d85['tablePasteChainId'],_0x1e0d85;}class Ce extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x25d450(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x2daab2,_0x3abed9,_0x2a5221,_0x3b70de){super(),this['model']=_0x3abed9,this['view']=_0x2a5221,this['commentThreadController']=_0x3b70de,this['_editor']=_0x2daab2,this['_acceptCommand']=_0x2daab2['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x2daab2['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3a4718,_0x48fa4c)=>_0x3a4718||_0x48fa4c),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x26e180=>_0x26e180&&this['_editor']['model']['canEditAt'](_0x3abed9['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x2fbdd2=>_0x2fbdd2&&this['_editor']['model']['canEditAt'](_0x3abed9['getRanges']())),this['_pendingAction']=null,_0x2a5221['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2a5221,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2a5221,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2a5221,'change:isDirty',()=>{_0x2a5221['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 _0x29fcde=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x29fcde);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ms extends _0x573577{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x3d2d6a,_0x14d803,_0x2a6b6b,_0x41ed02){super(_0x3d2d6a),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x54b8cc(_0x3d2d6a,o(_0x3d2d6a,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x14d803['authoredAt']),this['bind']('authoredAt')['to'](_0x14d803),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',_0x14d803,'authoredAt',this,'descriptionParts',(_0x1d014d,_0x1a2c56,_0x51c365)=>{const _0x360812=_0x51c365['map'](_0x37e02a=>cs(_0x37e02a['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x1d014d-0x1,_0x14d803['author']['name'],_0x1a2c56?_0x41ed02['formatDateTime'](_0x1a2c56):'',new DOMParser()['parseFromString'](_0x360812,'text/html')['body']['textContent']]);}),this['focusables']=new _0xda8a68(),this['focusTracker']=new _0x2cdc57(),this['keystrokes']=new _0x57ec14(),this['focusCycler']=new _0x2317b6({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x80907d=>_0x80907d['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x14d803,this['_localUser']=_0x2a6b6b,this['_config']=_0x41ed02,_0x41ed02['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x35fe76(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x4e0584}=this['_config'];this['commentsListView']=new _0x4e0584(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',_0x2e7383=>_0x2e7383+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1e03df,_0x5b23be)=>_0x1e03df||!!_0x5b23be);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x7b384}=this['_config'],_0x232e81=new _0x7b384(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2d0d04=_0x232e81['commentInputView'];return _0x232e81['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2d0d04,'value',(_0x1d8455,_0x128f25,_0x57829f)=>!!_0x57829f||_0x1d8455&&!_0x128f25),_0x2d0d04['on']('submit',(_0x368c4e,_0x4119a3)=>{this['fire']('addComment',_0x4119a3),_0x2d0d04['editor']['setData']('');}),_0x2d0d04['on']('cancel',()=>this['focus']()),_0x2d0d04['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x232e81;}}class pe extends ms{['suggestionView'];['_descriptionElement'];constructor(_0x4f2e13,_0x4e8794,_0x63a596,_0x236d1b){super(_0x4f2e13,_0x4e8794,_0x63a596,_0x236d1b),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3ea3e8=>_0x3ea3e8&&_0x3ea3e8[0x0]?_0x3ea3e8[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x8f4d,_0x52bafd)=>{let _0x419f0a='';for(const _0x37eca3 of _0x8f4d)_0x419f0a+='<p>'+cs(_0x37eca3['content'],_0x37eca3['color'])+'</p>';return _0x52bafd?_0x419f0a:_0x5f0aa4(_0x419f0a,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x236d1b['SuggestionView'](_0x4f2e13,_0x4e8794,{'formatDateTime':_0x236d1b['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 _0x4554b9=this['bindTemplate'],_0x604a36=[this['suggestionView']];return this['commentsListView']&&_0x604a36['push'](this['commentsListView']),this['commentThreadInputView']&&_0x604a36['push'](this['commentThreadInputView']),_0x604a36['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x4554b9['if']('isActive','ck-suggestion-wrapper--active'),_0x4554b9['to']('type',_0x54fd2c=>'ck-suggestion-'+_0x54fd2c),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':_0x4554b9['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x604a36};}['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 fe extends _0x573577{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x42c201,_0x18d7e3,_0x1795fb){super(_0x42c201),this['_model']=_0x18d7e3,this['_config']=_0x1795fb,this['set']('description',''),this['bind']('authoredAt')['to'](_0x18d7e3),this['acceptButton']=this['_createButton'](o(_0x42c201,'Accept\x20suggestion'),_0x34d706['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x42c201,'Discard\x20suggestion'),_0x34d706['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x4ae5c3(_0x42c201,_0x18d7e3['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0xda8a68([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x2cdc57(),this['keystrokes']=new _0x57ec14(),this['focusCycler']=new _0x2317b6({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x1a5e27=>_0x1a5e27['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x41ff4d=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x41ff4d['innerHTML']=this['description'],this['on']('change:description',(_0x2d830f,_0x168481,_0x316799)=>{_0x41ff4d['innerHTML']=_0x316799;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x2b395a=this['bindTemplate'],_0x3d0d07=[{'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':_0x2b395a['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2b395a['to']('authoredAt',_0x2ffe55=>this['_config']['formatDateTime'](_0x2ffe55))}]}]},{'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']&&_0x3d0d07['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':_0x3d0d07}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x3b8f48,_0x323bde,_0x55998b,_0x4c57aa,_0x23eb0c){const _0x511410=new _0x58eddd(this['locale']);return _0x511410['set']({'label':_0x3b8f48,'icon':_0x323bde,'tooltip':!0x0,'tooltipPosition':_0x23eb0c}),_0x511410['extendTemplate']({'attributes':{'class':_0x55998b}}),_0x511410['on']('execute',()=>{this['fire'](_0x4c57aa,this['_model']['id']);}),_0x511410;}['_setupKeyboardNavigation'](){const _0x4c1416=this['element'];this['keystrokes']['listenTo'](_0x4c1416);for(const _0x183448 of this['focusables'])this['focusTracker']['add'](_0x183448['element']),this['keystrokes']['listenTo'](_0x183448['element']);this['keystrokes']['set']('enter',(_0xa1dc4d,_0x27e1c4)=>{_0x4c1416===_0xa1dc4d['target']&&(this['focusCycler']['focusFirst'](),_0x27e1c4());}),this['keystrokes']['set']('esc',(_0x4449c9,_0x14504d)=>{_0x4c1416!==_0x4449c9['target']&&(this['focus'](),_0x14504d());});}}var we='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x952b97{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x295a1a,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x20b314){super(_0x20b314),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3e1fc3=this['editor']['config'];_0x3e1fc3['define']('trackChanges.SuggestionThreadView',pe),_0x3e1fc3['define']('trackChanges.SuggestionView',fe),_0x3e1fc3['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3e1fc3['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x35c05b,_0x44e2cb){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x3c02f8,_0x21e544]of this['_handleControllerBuffer']){const _0x366520=this['_suggestionToController']['has'](_0x3c02f8);_0x366520||_0x21e544?_0x366520&&_0x21e544&&this['_destroyController'](_0x3c02f8):this['_initializeController'](_0x3c02f8);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x35c05b,_0x44e2cb);}['init'](){const _0x48826d=this['editor'],_0x2aeaa3=_0x48826d['plugins']['get']('TrackChangesEditing'),_0x15250f=_0x48826d['plugins']['get']('Annotations'),_0x125ab9=_0x48826d['plugins']['get']('EditorAnnotations'),_0x3369c2=_0x48826d['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x125ab9['addSourceCollector'](()=>{const _0x4142e5=[];for(const [_0x55595e,_0x32ad91]of Array['from'](this['_suggestionToController'])){const _0x5e2e5f=_0x55595e['getAllAdjacentSuggestions'](),_0x5646db=[];for(const _0x1f27a2 of _0x5e2e5f){if(!_0x1f27a2['isInContent'])continue;if(_0x1f27a2['isMultiRange']){_0x5646db['push'](..._0x1f27a2['getRanges']());continue;}const _0x3d6e60=_0x1f27a2['getFirstRange']();if(_0x5646db['length']>0x0){const _0x5deba0=_0x5646db[0x0]['getJoined'](_0x3d6e60);if(_0x5deba0){_0x5646db[0x0]=_0x5deba0;continue;}}_0x5646db['push'](_0x3d6e60);}_0x4142e5['push']([_0x32ad91['view'],_0x5646db]);}return _0x4142e5;}),this['listenTo'](_0x2aeaa3,'suggestionLoaded',(_0x16feca,_0x5ab9f2)=>{this['listenTo'](_0x5ab9f2,'change:previous',(_0x40b87f,_0x3310c4,_0x1afe64,_0x5e6d1c)=>{_0x5ab9f2['isInContent']&&(null==_0x1afe64?(this['_updateController'](_0x5e6d1c['head']),this['_handleSuggestionControllerDelayed'](_0x5ab9f2,!0x1)):(this['_updateController'](_0x1afe64['head']),null==_0x5e6d1c&&this['_handleSuggestionControllerDelayed'](_0x5ab9f2,!0x0)));}),null!==_0x5ab9f2['previous']?this['_updateController'](_0x5ab9f2['head']):this['_handleSuggestionControllerDelayed'](_0x5ab9f2,!0x1);}),this['listenTo'](_0x2aeaa3,'suggestionUnloaded',(_0x3b0a9e,_0x1d6e77,_0x72d545)=>{this['stopListening'](_0x1d6e77,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1d6e77),this['_suggestionToController']['has'](_0x1d6e77)&&this['_destroyController'](_0x1d6e77),_0x72d545&&this['_updateController'](_0x72d545['head']);}),this['listenTo'](_0x2aeaa3,'suggestionChanged',(_0x5dd178,_0x392281)=>{this['_updateController'](_0x392281);}),this['listenTo'](_0x15250f,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x3369c2,'addComment',(_0x3b1051,{threadId:_0x455265,isFromAdapter:_0xed49b4})=>{if(_0xed49b4||!_0x2aeaa3['hasSuggestion'](_0x455265))return;const _0x2ec8ee=_0x2aeaa3['getSuggestion'](_0x455265);this['_suggestionToController']['get'](_0x2ec8ee)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4d0036=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x29de2c;for(const _0x1ac67f in _0x4d0036){const _0x1c7b57=_0x1ac67f,_0x333659=_0x4d0036[_0x1c7b57];if('trackChangesLicenseKeyValid'==_0x333659||'trackChangesLicenseKeyInvalid'==_0x333659||'trackChangesLicenseKeyExpired'==_0x333659||'trackChangesLicenseKeyDomainLimit'==_0x333659||'trackChangesLicenseKeyNotAllowed'==_0x333659||'trackChangesLicenseKeyEvaluationLimit'==_0x333659||'trackChangesLicenseKeyTrialLimit'==_0x333659||'trackChangesLicenseKeyUsageLimit'==_0x333659){delete _0x4d0036[_0x1c7b57],_0x29de2c=_0x333659,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x29de2c&&_0x4d0036['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x29de2c&&_0x4d0036['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x29de2c&&_0x4d0036['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x29de2c&&_0x4d0036['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x29de2c&&_0x4d0036['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x29de2c&&_0x4d0036['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x29de2c&&_0x4d0036['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x32ecb0=this['editor']['plugins']['get']('Annotations'),_0x332b7c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x20dc99=Array['from'](_0x32ecb0['activeAnnotations'],_0x11db7a=>_0x11db7a['innerView'])['filter'](_0x3ea91a=>this['_viewToController']['has'](_0x3ea91a)),_0x405b2f=[];for(const _0x11692b of _0x20dc99){const _0x3d82f8=this['_viewToController']['get'](_0x11692b)['model']['getAllAdjacentSuggestions']();_0x405b2f['push'](..._0x3d82f8['reduce']((_0x5531a0,_0x350f73)=>[..._0x5531a0,..._0x350f73['getMarkerNames']()],[]));}_0x332b7c['activeMarkers']=_0x405b2f;}['_addUIComponentsToFactory'](){const _0x43e72f=this['editor'],_0x56d296=_0x43e72f['locale'],_0x226434=o(_0x56d296,'Track\x20changes'),_0x9aa4c1=new _0x17a785([{'type':'switchbutton','model':new _0xe83ab4({'withText':!0x0,'isToggleable':!0x0,'label':_0x226434,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0xe83ab4({'withText':!0x0,'label':o(_0x56d296,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xe83ab4({'withText':!0x0,'label':o(_0x56d296,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0xe83ab4({'withText':!0x0,'label':o(_0x56d296,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xe83ab4({'withText':!0x0,'label':o(_0x56d296,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x43e72f['plugins']['has']('TrackChangesPreview')&&_0x9aa4c1['addMany']([{'type':'separator'},{'type':'button','model':new _0xe83ab4({'withText':!0x0,'label':o(_0x56d296,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x4529ca of _0x9aa4c1)if(ke(_0x4529ca)){const _0x49da6e=_0x43e72f['commands']['get'](_0x4529ca['model']['commandName']);_0x4529ca['model']['bind']('isOn','isEnabled')['to'](_0x49da6e,'value','isEnabled');}_0x43e72f['ui']['componentFactory']['add']('trackChanges',_0x4245e1=>this['_createToolbarButton'](_0x4245e1,_0x9aa4c1,_0x226434)),_0x43e72f['ui']['componentFactory']['add']('menuBar:trackChanges',_0x5cab66=>this['_createMenuBarMenu'](_0x5cab66,_0x9aa4c1,_0x226434));}['_createToolbarButton'](_0x6e7c45,_0x52fe6f,_0x2887b8){const _0x5e9ac2=_0x3f7aa2(_0x6e7c45,_0x15f923),_0x2448ed=this['editor']['commands']['get']('trackChanges');_0x5e9ac2['buttonView']['set']({'tooltip':_0x2887b8,'label':_0x2887b8,'icon':we}),_0x5e9ac2['buttonView']['bind']('isOn')['to'](_0x2448ed,'value'),_0x5e9ac2['buttonView']['on']('execute',()=>{_0x2448ed['execute'](),this['editor']['editing']['view']['focus']();}),_0x2bd254(_0x5e9ac2,_0x52fe6f,{'role':'menu'});const _0x51c8c3=[];for(const _0xeba457 of _0x52fe6f)ke(_0xeba457)&&_0x51c8c3['push'](this['editor']['commands']['get'](_0xeba457['model']['commandName']));const _0x5c0579=_0x5e9ac2['buttonView'];return _0x5c0579['actionView']['unbind']('isEnabled'),_0x5c0579['arrowView']['unbind']('isEnabled'),_0x5c0579['actionView']['bind']('isEnabled')['to'](_0x2448ed,'isEnabled'),_0x5c0579['arrowView']['bind']('isEnabled')['toMany'](_0x51c8c3,'isEnabled',(..._0xf0bd29)=>_0xf0bd29['some'](_0x4d112b=>_0x4d112b)),_0x5e9ac2['on']('execute',_0x479c8e=>{this['editor']['execute'](_0x479c8e['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x5e9ac2;}['_createMenuBarMenu'](_0x11c54d,_0x41a620,_0x212fce){const _0x3ee22a=new _0x3a3a46(_0x11c54d),_0x591f8f=this['editor']['commands']['get']('trackChanges');_0x3ee22a['buttonView']['set']({'label':_0x212fce,'icon':we});const _0x1a67b3=new _0xeb3d49(_0x11c54d);for(const _0x9fbd63 of _0x41a620){if('separator'==_0x9fbd63['type']){_0x1a67b3['items']['add'](new _0x535d03(_0x11c54d));continue;}const _0x33a94e=new _0x4dd9e8(_0x11c54d,_0x3ee22a),_0x159a70=new _0x21eef5(_0x11c54d),_0x1d492b=_0x9fbd63['model'];_0x159a70['bind'](...Object['keys'](_0x1d492b))['to'](_0x1d492b),_0x159a70['delegate']('execute')['to'](_0x3ee22a),_0x159a70['on']('execute',()=>{this['editor']['execute'](_0x1d492b['commandName']),this['editor']['editing']['view']['focus']();}),_0x33a94e['children']['add'](_0x159a70),_0x1a67b3['items']['add'](_0x33a94e);}return _0x3ee22a['bind']('isEnabled')['to'](_0x591f8f,'isEnabled'),_0x3ee22a['panelView']['children']['add'](_0x1a67b3),_0x3ee22a;}['_initializeController'](_0x117345){const _0x208423=this['editor'],_0x4cfca3=_0x208423['config'],_0x1025ea=_0x208423['plugins']['get']('Annotations'),_0x49c883=_0x208423['plugins']['get']('CommentsRepository'),_0x4f62da=_0x208423['plugins']['get']('EditorAnnotations'),_0xb0cab5=_0x208423['plugins']['get'](_0x295a1a)['me'],_0x50c6a5=_0x4cfca3['get']('trackChanges')['SuggestionThreadView'],_0x4f30e9=_0x4cfca3['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x5ef6a3,CommentThreadInputView:_0x6d24f4}=_0x208423['plugins']['get']('CommentsUI');let _0x45c300,_0x31adaf,_0x331ff1;this['_annotationViews']['has'](_0x117345['id'])?(_0x31adaf=this['_annotationViews']['get'](_0x117345['id']),_0x45c300=_0x31adaf['mainView']):(_0x45c300=new _0x50c6a5(_0x208423['locale'],_0x117345,_0xb0cab5,{'disableComments':this['_disableComments'],'editorConfig':{..._0x4cfca3['get']('comments.editorConfig'),'licenseKey':_0x4cfca3['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x4cfca3['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4cfca3['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4cfca3['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x44ddd8(_0x4cfca3['get']('locale')),'CommentView':_0x4cfca3['get']('comments')['CommentView'],'CommentsListView':_0x5ef6a3,'CommentThreadInputView':_0x6d24f4,'SuggestionView':_0x4f30e9}),_0x45c300['suggestionView']['acceptButton']['on']('execute',()=>{_0x208423['editing']['view']['focus']();}),_0x45c300['suggestionView']['discardButton']['on']('execute',()=>{_0x208423['editing']['view']['focus']();}),_0x31adaf=_0x1025ea['createAnnotationView'](this['editor']['locale'],_0x45c300),_0x31adaf['bind']('isDirty')['to'](_0x45c300,'isDirty'),_0x31adaf['bind']('length')['to'](_0x45c300),_0x31adaf['bind']('type')['to'](_0x45c300,'type',_0x1165a3=>'suggestion-'+_0x1165a3),_0x45c300['on']('escape',()=>{_0x331ff1['fire']('escape');}),this['_annotationViews']['set'](_0x117345['id'],_0x31adaf));const _0x49d53a=_0x49c883['createCommentThreadController'](_0x117345['commentThread'],_0x45c300),_0x44ebb7=new Ce(_0x208423,_0x117345,_0x45c300,_0x49d53a),_0x39e804=_0x117345['getAllAdjacentSuggestions']()['filter'](_0x36d994=>_0x36d994['isInContent']);_0x45c300['descriptionParts']=_0x208423['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x39e804),this['_suggestionToController']['set'](_0x117345,_0x44ebb7),this['_viewToController']['set'](_0x45c300,_0x44ebb7),_0x331ff1=_0x1025ea['createAnnotation']({'view':_0x31adaf,'target':()=>{const _0x1d7b66=[],_0xeb4043=_0x117345['getAllAdjacentSuggestions']()['filter'](_0x3a0801=>_0x3a0801['isInContent']);for(const _0x21d59f of _0xeb4043)_0x1d7b66['push'](..._0x21d59f['getMarkers']());return _0x1edc5b(_0x208423['editing'],_0x1d7b66);},'type':()=>'suggestion-'+_0x44ebb7['view']['type']}),_0x49c883['_bindAnnotationToEditors'](_0x45c300,_0x331ff1),_0x1025ea['add'](_0x331ff1),_0x4f62da['registerAnnotation'](_0x331ff1);}['_destroyController'](_0x58ce54){const _0x1a8647=this['editor']['plugins']['get']('CommentsRepository'),_0x1ba6c2=this['editor']['plugins']['get']('Annotations'),_0x67c790=this['_suggestionToController']['get'](_0x58ce54),_0x23f149=_0x67c790['view'],_0x477b60=_0x1ba6c2['getByInnerView'](_0x23f149);_0x1a8647['_unbindEditors'](_0x23f149),_0x477b60&&_0x1ba6c2['remove'](_0x477b60),this['_suggestionToController']['delete'](_0x58ce54),this['_viewToController']['delete'](_0x23f149),_0x67c790['destroy']();}['_updateController'](_0x31f86e){if(!_0x31f86e['isInContent']||!this['_suggestionToController']['has'](_0x31f86e))return;const _0x3b0023=this['editor']['plugins']['get']('TrackChangesEditing'),_0x314289=this['_suggestionToController']['get'](_0x31f86e),_0x3e03b5=_0x31f86e['getAllAdjacentSuggestions']();_0x314289['view']['descriptionParts']=_0x3b0023['descriptionFactory']['getDescriptions'](_0x3e03b5);}['destroy'](){for(const _0x10017e of this['_suggestionToController']['keys']())this['_destroyController'](_0x10017e);for(const _0xa078bc of this['_annotationViews']['values']())_0xa078bc['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x491cea){return'model'in _0x491cea;}class k extends _0x952b97{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x1202ec){this['editor']['plugins']['get'](p)['adapter']=_0x1202ec;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x214129){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x214129);}['getSuggestions']({skipNotAttached:_0x3f8e4c=!0x1,toJSON:_0x37ac92=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x3f8e4c,'toJSON':_0x37ac92});}['getSuggestion'](_0x4ab601){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x4ab601);}}const w=['Pagination'];class T extends _0x952b97{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x387d40=this['editor'];if(_0x387d40['config']['define']('trackChangesData.editorCreator',_0x5652f9=>{const _0x3517a8=_0x387d40['model']['document']['getRootNames']()['reduce']((_0x50797e,_0x714275)=>(_0x50797e[_0x714275]='',_0x50797e),{});return _0x387d40['constructor']['create'](_0x3517a8,_0x5652f9);}),'function'!=typeof _0x387d40['config']['get']('trackChangesData')['editorCreator'])throw new _0x4f0098('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x4d6687){return N(this['editor'],!0x0,_0x4d6687);}['getDataWithDiscardedSuggestions'](_0x86e3a1){return N(this['editor'],!0x1,_0x86e3a1);}}class D extends _0x952b97{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x407ef8){function _0x309901(_0x2be4bd){return _0x2be4bd['map'](_0x1d8cf9=>String['fromCharCode'](_0x1d8cf9))['join']('');}super(_0x407ef8),this['result']='end',_0x407ef8[_0x309901([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x309901([0x76,0x69,0x65,0x77])][_0x309901([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x309901([0x61,0x75,0x74,0x6f]),_0x407ef8[_0x309901([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x309901([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x309901([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x309901([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x309901([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 Fe(_0x19ee75){return void 0x0!==_0x19ee75['getRootsAttributes'];}async function N(_0x3be9b1,_0x118c06,_0xa1ee92){const _0x4e2248=_0x243aec(_0x3be9b1,w);_0x4e2248['plugins']['push'](p,D),_0x4e2248['rootsAttributes']=Fe(_0x3be9b1)?_0x3be9b1['getRootsAttributes']():void 0x0;const _0x419e98=document['createDocumentFragment'](),_0x1e0021=_0x3be9b1['config']['get']('trackChangesData')['editorCreator'],_0x5aeea0=await _0x1e0021(_0x4e2248,()=>function(_0x2d203d){const _0x54ae56=document['createElement']('div');return _0x2d203d['appendChild'](_0x54ae56),_0x54ae56;}(_0x419e98));!function(_0x486b92,_0x49ef18){const _0x2f0dc4=_0x486b92['model']['document']['getRootNames']()['reduce']((_0xb0a5e9,_0x2925ca)=>(_0xb0a5e9[_0x2925ca]=_0x486b92['data']['get']({'rootName':_0x2925ca}),_0xb0a5e9),{}),_0x1fbfee=_0x486b92['plugins']['get']('Users')['users']['map'](_0x18f2c7=>({'id':_0x18f2c7['id'],'name':_0x18f2c7['name']})),_0x447c80=_0x486b92['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xf8f25c=_0x486b92['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x15fcb0=_0x49ef18['plugins']['get']('Users'),_0x432f2d=_0x49ef18['plugins']['get']('TrackChangesEditing'),_0x37dea4=_0x49ef18['plugins']['get']('CommentsRepository');for(const _0x4c069a of _0x37dea4['getCommentThreads']())_0x4c069a['remove']();for(const _0x59b6b9 of _0x1fbfee)_0x15fcb0['getUser'](_0x59b6b9['id'])||_0x15fcb0['addUser'](_0x59b6b9);_0x15fcb0['me']||_0x15fcb0['useAnonymousUser']();for(const _0x2ca7b1 of _0xf8f25c)_0x37dea4['addCommentThread'](_0x2ca7b1);for(const _0x12a600 of _0x447c80)_0x432f2d['addSuggestionData'](_0x12a600);_0x49ef18['data']['set'](_0x2f0dc4);}(_0x3be9b1,_0x5aeea0),_0x5aeea0['execute'](_0x118c06?'acceptAllSuggestions':'discardAllSuggestions');const _0xd26ded=Fe(_0x5aeea0)?_0x5aeea0['getFullData'](_0xa1ee92):_0x5aeea0['data']['get'](_0xa1ee92);return await _0x5aeea0['destroy'](),_0xd26ded;}class Me extends _0x573577{['options'];constructor(_0x296005,_0x365890){super(_0x296005),this['options']=_0x365890,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'](_0x375578,_0x19b5be){if(!this['element'])return;const _0x5448d5=[];for(const [_0x22c3e3,_0x50ff46]of _0x375578){const _0x3f2ce9=document['createElement']('div');_0x3f2ce9['setAttribute']('data-ck-root-name',_0x22c3e3),_0x3f2ce9['className']=_0x50ff46['classes']+'\x20ck-track-changes-preview__root-container',_0x3f2ce9['innerHTML']=_0x50ff46['content'],_0x5448d5['push'](_0x3f2ce9);}_0x19b5be(this['element'],_0x5448d5),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Yt{constructor(_0x5cba62){super(_0x5cba62),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x33c7db=this['editor'],_0x45d44e=_0x33c7db['locale'],_0x56f80d=_0x33c7db['plugins']['get']('Dialog');let _0x515715;const _0x4f3a7c=function(_0x375248){const _0x38e57c={};if('editables'in _0x375248['ui']['view']){for(const [_0x23ebc4,_0x184efa]of Object['entries'](_0x375248['ui']['view']['editables']))_0x38e57c[_0x23ebc4]=_0x184efa['element'];}else _0x38e57c[_0x375248['model']['document']['getRootNames']()[0x0]]=_0x375248['ui']['view']['editable']['element'];return _0x38e57c;}(_0x33c7db),_0x51b000=function(_0x482292){let _0x53f455=0x0;for(const _0x2640bf of Object['values'](_0x482292))_0x53f455=Math['max'](_0x53f455,_0x2640bf['getBoundingClientRect']()['width']);let _0x33634f=0x0;for(const _0x500542 of Object['values'](_0x482292))_0x33634f+=_0x500542['getBoundingClientRect']()['height'];const _0x2df5fd=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x34359c=Math['min'](_0x33634f,_0x2df5fd);return{'width':_0x53f455,'height':_0x34359c};}(_0x4f3a7c);_0x56f80d['show']({'id':'finalContentPreview','title':o(_0x45d44e,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x45d44e,{'dialogRects':_0x51b000}),'onHide':()=>{_0x515715['detachFromDom']();},'onShow':()=>{_0x33c7db['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x5621dd=>{const _0x85eb4c=this['_standarizeRootsData'](_0x5621dd,_0x33c7db,_0x4f3a7c);_0x56f80d['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x85eb4c,_0x33c7db['config']['get']('trackChanges.preview.renderFunction'));}),_0x515715=new _0x4ea731(_0x45d44e,[_0x56f80d['view']]),_0x515715['attachToDom'](),_0x515715['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x33c7db['once']('destroy',()=>{_0x515715['detachFromDom']();});const _0x353b51=_0x56f80d['view']['headerView']['class'];_0x56f80d['view']['headerView']['class']=_0x353b51?_0x353b51+'\x20ck-reset_all':'ck-reset_all',_0x56f80d['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x56f80d['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x18913d=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x1aa6b1=_0x18913d['previewMode'],_0x27fa2b={};if('$labels'===_0x1aa6b1){for(const _0x103f65 of _0x18913d['getMergeFieldsIds']())_0x27fa2b[_0x103f65]=_0x18913d['getLabel'](_0x103f65)||_0x103f65;}else{const _0x3d5113='$defaultValues'===_0x1aa6b1?_0x18913d['getDefaultValues']():_0x18913d['getDataSetValues'](_0x1aa6b1,!0x0);for(const _0x275a12 of Object['entries'](_0x3d5113)){const [_0xde009d,_0x3e6e1f]=_0x275a12;_0x27fa2b[_0xde009d]=null!==_0x3e6e1f?_0x3e6e1f:_0x18913d['getLabel'](_0xde009d)||_0xde009d;}}return{'mergeFieldsData':_0x27fa2b};}['_standarizeRootsData'](_0x222f8b,_0x594536,_0x8407b1){let _0x2d2451;if('string'==typeof _0x222f8b){const _0xb074bf=_0x594536['model']['document']['getRootNames']()[0x0];_0x2d2451={[_0xb074bf]:_0x222f8b};}else _0x2d2451=_0x222f8b;const _0x113916=this['_fixMediaEmbeds'](_0x2d2451,_0x594536),_0x30dcf8=function(_0x5109ff,_0x2470a1){for(const [_0x1898a6,_0x18c00e]of _0x5109ff)_0x18c00e['classes']=_0x2470a1[_0x1898a6]['classList']['value']['replace']('ck-focused','');return _0x5109ff;}(this['_sortRoots'](_0x594536)['reduce']((_0x7a91b8,_0x46ea4a)=>(_0x7a91b8['push']([_0x46ea4a,{'content':_0x113916[_0x46ea4a],'classes':''}]),_0x7a91b8),[]),_0x8407b1);return _0x30dcf8;}['_fixMediaEmbeds'](_0x2f1b6f,_0x4a41f5){if(!_0x4a41f5['plugins']['has']('MediaEmbedEditing'))return _0x2f1b6f;const _0x2a745f=_0x4a41f5['plugins']['get']('MediaEmbedEditing');for(const [_0x52b252,_0xef33cd]of Object['entries'](_0x2f1b6f)){const _0x411c6a=document['createElement']('div');_0x411c6a['innerHTML']=_0xef33cd,(_0x411c6a['querySelectorAll']('figure.media')['forEach'](_0x4c28d8=>{const _0x11903c=_0x4c28d8['querySelector']('oembed');if(_0x11903c){const _0x19408b=_0x11903c['getAttribute']('url');if(_0x19408b){const _0x5359cd=_0x2a745f['registry']['getMediaViewElement'](new _0x3538cf(_0x4a41f5['editing']['view']['document']),_0x19408b,{'elementName':'','renderForEditingView':!0x0}),_0x2aaf7f=document['createElement']('div');_0x2aaf7f['classList']['add']('ck-media__wrapper'),_0x5359cd['render'](_0x2aaf7f,_0x4a41f5['editing']['view']['domConverter']),_0x11903c['replaceWith'](_0x2aaf7f);}}}),_0x2f1b6f[_0x52b252]=_0x411c6a['innerHTML']);}return _0x2f1b6f;}['_sortRoots'](_0x2a4ec2){if(!function(_0x369ddd){return void 0x0!==_0x369ddd['getRootsAttributes'];}(_0x2a4ec2))return _0x2a4ec2['model']['document']['getRootNames']();const _0xc17608=[],_0x4a3545=new Map();for(const _0x748329 of _0x2a4ec2['model']['document']['getRootNames']()){const _0x406664=_0x2a4ec2['editing']['view']['getDomRoot'](_0x748329)['getClientRects']()['item'](0x0);_0xc17608['push'](_0x748329),_0x4a3545['set'](_0x748329,_0x406664);}return _0xc17608['sort']((_0x134ac0,_0x5f023f)=>{const _0x2d9ab4=_0x4a3545['get'](_0x134ac0),_0x1f70f6=_0x4a3545['get'](_0x5f023f);return _0x2d9ab4['y']-_0x1f70f6['y']||_0x2d9ab4['x']-_0x1f70f6['x'];}),_0xc17608;}}class te extends _0x952b97{static get['requires'](){return[T,_0x1b8728];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x39eb67){super(_0x39eb67),_0x39eb67['commands']['add']('previewFinalContent',new re(this['editor'])),_0x39eb67['config']['define']('trackChanges.preview.renderFunction',(_0x370077,_0x3dd171)=>{for(const _0x552926 of _0x3dd171)_0x370077['appendChild'](_0x552926);});}}export{ms as BaseSuggestionThreadView,u as Suggestion,pe as SuggestionThreadView,fe as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
|